@pantheon-systems/pds-toolkit-react 1.0.0-dev.279 → 1.0.0-dev.280
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/Modal/Modal.d.ts +5 -1
- package/_dist/css/component-css/pds-file-diff.css +1 -1
- package/_dist/css/component-css/pds-index.css +2 -2
- package/_dist/css/component-css/pds-inline-message.css +1 -1
- package/_dist/css/pds-components.css +2 -2
- package/_dist/index.css +1 -1
- package/_dist/index.js +900 -898
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -837,7 +837,7 @@ const c2 = () => Math.random().toString(32).substring(2, 13), Vt = (t, n) => {
|
|
|
837
837
|
"uniqueId",
|
|
838
838
|
"className"
|
|
839
839
|
]);
|
|
840
|
-
const g = "pds-avatar", u = `${g}--${r}`, p = s ? `${g}--image` : null, [$,
|
|
840
|
+
const g = "pds-avatar", u = `${g}--${r}`, p = s ? `${g}--image` : null, [$, _] = K(void 0), C = {
|
|
841
841
|
backgroundImage: d ? `var(--pds-color-gradient-avatar-${g1(d)})` : null,
|
|
842
842
|
borderRadius: "100%",
|
|
843
843
|
height: "100%",
|
|
@@ -851,10 +851,10 @@ const c2 = () => Math.random().toString(32).substring(2, 13), Vt = (t, n) => {
|
|
|
851
851
|
src: `${s}`,
|
|
852
852
|
className: `${g}__image`,
|
|
853
853
|
alt: "",
|
|
854
|
-
onLoad: () =>
|
|
855
|
-
onError: () =>
|
|
854
|
+
onLoad: () => _(!1),
|
|
855
|
+
onError: () => _(!0)
|
|
856
856
|
}
|
|
857
|
-
) : /* @__PURE__ */ e.createElement("span", { style:
|
|
857
|
+
) : /* @__PURE__ */ e.createElement("span", { style: C }, n && /* @__PURE__ */ e.createElement(G, { iconName: "user", className: `${g}__user-icon` })), h = /* @__PURE__ */ e.createElement("span", { className: `${g}__content` }, E), o = Me(a) ? Ie(
|
|
858
858
|
a,
|
|
859
859
|
ae(y({}, a.props), {
|
|
860
860
|
className: `${g}__content ${g}__content--link`,
|
|
@@ -971,29 +971,29 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
971
971
|
"zIndex",
|
|
972
972
|
"className"
|
|
973
973
|
]);
|
|
974
|
-
const [$,
|
|
975
|
-
`${
|
|
976
|
-
w === "string" ? `${
|
|
974
|
+
const [$, _] = K(!1), w = typeof n, C = "pds-tooltip", E = N([
|
|
975
|
+
`${C}__trigger-custom`,
|
|
976
|
+
w === "string" ? `${C}__trigger-text` : null
|
|
977
977
|
]), h = N([
|
|
978
|
-
`${
|
|
979
|
-
`${
|
|
978
|
+
`${C}__trigger`,
|
|
979
|
+
`${C}__trigger--${c}`
|
|
980
980
|
]), { refs: o, floatingStyles: f, context: v } = Ae({
|
|
981
981
|
placement: a,
|
|
982
982
|
open: $,
|
|
983
|
-
onOpenChange:
|
|
983
|
+
onOpenChange: _,
|
|
984
984
|
middleware: [i2(s), d2(), b2()],
|
|
985
985
|
whileElementsMounted: Fe
|
|
986
986
|
}), b = E2(v, {
|
|
987
987
|
restMs: 300,
|
|
988
988
|
delay: { open: 500, close: 0 },
|
|
989
989
|
move: !1
|
|
990
|
-
}),
|
|
990
|
+
}), H = Y2(v), M = Te(v), L = De(v, { role: "tooltip" }), { getReferenceProps: k, getFloatingProps: z } = Re([
|
|
991
991
|
b,
|
|
992
|
-
M,
|
|
993
992
|
H,
|
|
993
|
+
M,
|
|
994
994
|
L
|
|
995
995
|
]);
|
|
996
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([
|
|
996
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([C, m != null ? m : ""]) }, g), n ? /* @__PURE__ */ e.createElement(
|
|
997
997
|
"span",
|
|
998
998
|
y({
|
|
999
999
|
className: E,
|
|
@@ -1012,14 +1012,14 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1012
1012
|
G,
|
|
1013
1013
|
{
|
|
1014
1014
|
iconName: d,
|
|
1015
|
-
className: `${
|
|
1015
|
+
className: `${C}__icon`,
|
|
1016
1016
|
iconSize: l
|
|
1017
1017
|
}
|
|
1018
1018
|
)
|
|
1019
1019
|
), $ && /* @__PURE__ */ e.createElement(zt, null, /* @__PURE__ */ e.createElement(
|
|
1020
1020
|
"div",
|
|
1021
1021
|
y({
|
|
1022
|
-
className: `${
|
|
1022
|
+
className: `${C}__container`,
|
|
1023
1023
|
ref: o.setFloating,
|
|
1024
1024
|
style: ae(y({}, f), { zIndex: i })
|
|
1025
1025
|
}, z()),
|
|
@@ -1045,19 +1045,19 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1045
1045
|
"componentWidth",
|
|
1046
1046
|
"className"
|
|
1047
1047
|
]);
|
|
1048
|
-
const u = "pds-branch-diff", p = t ? `${u}--loading` : null, $ = t ? "pds-pulse" : null,
|
|
1049
|
-
let w = Math.max(0, s),
|
|
1050
|
-
t && (w = 1,
|
|
1051
|
-
const E = Math.max(w,
|
|
1052
|
-
let h = E > 0 ?
|
|
1048
|
+
const u = "pds-branch-diff", p = t ? `${u}--loading` : null, $ = t ? "pds-pulse" : null, _ = c !== null && c > 0 ? `${c}rem` : "100%";
|
|
1049
|
+
let w = Math.max(0, s), C = Math.max(0, r);
|
|
1050
|
+
t && (w = 1, C = 1);
|
|
1051
|
+
const E = Math.max(w, C);
|
|
1052
|
+
let h = E > 0 ? C / E * 100 : 0, o = E > 0 ? w / E * 100 : 0;
|
|
1053
1053
|
const f = 10;
|
|
1054
1054
|
h < f ? (h = f, o = 100 - f) : o < f && (o = f, h = 100 - f);
|
|
1055
|
-
const v = t ? n : `${
|
|
1055
|
+
const v = t ? n : `${C} ${d} & ${w} ${a}`;
|
|
1056
1056
|
return /* @__PURE__ */ e.createElement(
|
|
1057
1057
|
"div",
|
|
1058
1058
|
y({
|
|
1059
1059
|
className: N([u, p, l != null ? l : ""]),
|
|
1060
|
-
style: { width:
|
|
1060
|
+
style: { width: _ }
|
|
1061
1061
|
}, i),
|
|
1062
1062
|
/* @__PURE__ */ e.createElement(
|
|
1063
1063
|
Ve,
|
|
@@ -1069,8 +1069,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1069
1069
|
{
|
|
1070
1070
|
className: `${u}__segment ${u}__segment--behind`
|
|
1071
1071
|
},
|
|
1072
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__number` }, !t &&
|
|
1073
|
-
|
|
1072
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__number` }, !t && C),
|
|
1073
|
+
C > 0 && /* @__PURE__ */ e.createElement(
|
|
1074
1074
|
"div",
|
|
1075
1075
|
{
|
|
1076
1076
|
className: N([
|
|
@@ -1271,8 +1271,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1271
1271
|
a && !n ? /* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, s) : /* @__PURE__ */ e.createElement(nt, { label: s })
|
|
1272
1272
|
);
|
|
1273
1273
|
}, qe = Ue(
|
|
1274
|
-
(
|
|
1275
|
-
var E =
|
|
1274
|
+
(C, w) => {
|
|
1275
|
+
var E = C, {
|
|
1276
1276
|
ariaLabel: t,
|
|
1277
1277
|
buttonType: n = "button",
|
|
1278
1278
|
disabled: s = !1,
|
|
@@ -1287,7 +1287,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1287
1287
|
tooltipText: u,
|
|
1288
1288
|
variant: p = "primary",
|
|
1289
1289
|
className: $ = ""
|
|
1290
|
-
} = E,
|
|
1290
|
+
} = E, _ = D(E, [
|
|
1291
1291
|
"ariaLabel",
|
|
1292
1292
|
"buttonType",
|
|
1293
1293
|
"disabled",
|
|
@@ -1315,7 +1315,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1315
1315
|
case "lg":
|
|
1316
1316
|
b = "lg";
|
|
1317
1317
|
}
|
|
1318
|
-
const
|
|
1318
|
+
const H = /* @__PURE__ */ e.createElement(
|
|
1319
1319
|
G,
|
|
1320
1320
|
{
|
|
1321
1321
|
key: "icon",
|
|
@@ -1324,8 +1324,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1324
1324
|
className: `${h}__icon`
|
|
1325
1325
|
}
|
|
1326
1326
|
);
|
|
1327
|
-
let
|
|
1328
|
-
a == "icon-start" && r &&
|
|
1327
|
+
let M = [i];
|
|
1328
|
+
a == "icon-start" && r && M.unshift(H), a == "icon-end" && r && M.push(H), l && (M = [H], t = et(i));
|
|
1329
1329
|
const L = /* @__PURE__ */ e.createElement(
|
|
1330
1330
|
"button",
|
|
1331
1331
|
y({
|
|
@@ -1341,9 +1341,9 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1341
1341
|
"aria-label": t,
|
|
1342
1342
|
onClick: m,
|
|
1343
1343
|
ref: w
|
|
1344
|
-
},
|
|
1344
|
+
}, _),
|
|
1345
1345
|
c && /* @__PURE__ */ e.createElement(w2, { className: `${h}__loading-indicator`, size: "md" }),
|
|
1346
|
-
|
|
1346
|
+
M
|
|
1347
1347
|
);
|
|
1348
1348
|
return (s || c) && u ? /* @__PURE__ */ e.createElement(Ve, { content: u, customTrigger: L }) : /* @__PURE__ */ e.createElement(e.Fragment, null, L);
|
|
1349
1349
|
}
|
|
@@ -1367,11 +1367,11 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1367
1367
|
"variant",
|
|
1368
1368
|
"className"
|
|
1369
1369
|
]);
|
|
1370
|
-
const u = "pds-button-link", p = "pds-button", $ = r !== "md" ? `${p}--${r}` : null,
|
|
1370
|
+
const u = "pds-button-link", p = "pds-button", $ = r !== "md" ? `${p}--${r}` : null, _ = c !== "primary" ? `${p}--${c}` : null, w = N([
|
|
1371
1371
|
p,
|
|
1372
1372
|
$,
|
|
1373
|
-
|
|
1374
|
-
]),
|
|
1373
|
+
_
|
|
1374
|
+
]), C = Me(a) ? a.props.children : null, E = /* @__PURE__ */ e.createElement(
|
|
1375
1375
|
G,
|
|
1376
1376
|
{
|
|
1377
1377
|
iconName: s,
|
|
@@ -1380,8 +1380,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1380
1380
|
key: s
|
|
1381
1381
|
}
|
|
1382
1382
|
);
|
|
1383
|
-
let h = [
|
|
1384
|
-
n === "icon-start" && s ? h = [E,
|
|
1383
|
+
let h = [C];
|
|
1384
|
+
n === "icon-start" && s ? h = [E, C] : n === "icon-end" && s && (h = [C, E]);
|
|
1385
1385
|
const o = Me(a) ? Ie(a, {
|
|
1386
1386
|
className: w,
|
|
1387
1387
|
children: h
|
|
@@ -1438,10 +1438,10 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1438
1438
|
"variant",
|
|
1439
1439
|
"className"
|
|
1440
1440
|
]);
|
|
1441
|
-
const
|
|
1442
|
-
fadeOut: `${
|
|
1443
|
-
hide: `${
|
|
1444
|
-
scaleIn: `${
|
|
1441
|
+
const _ = "pds-icon-button", w = l !== "md" ? `${_}--${l}` : null, C = i !== "standard" ? `${_}--${i}` : null, E = {
|
|
1442
|
+
fadeOut: `${_}--fadeOut`,
|
|
1443
|
+
hide: `${_}--hide`,
|
|
1444
|
+
scaleIn: `${_}--scaleIn`
|
|
1445
1445
|
};
|
|
1446
1446
|
let h, o;
|
|
1447
1447
|
switch (l) {
|
|
@@ -1454,42 +1454,42 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1454
1454
|
case "lg":
|
|
1455
1455
|
o = "xl", h = 12;
|
|
1456
1456
|
}
|
|
1457
|
-
const f = d !== null, v = oe(null), b = oe(null),
|
|
1457
|
+
const f = d !== null, v = oe(null), b = oe(null), H = () => {
|
|
1458
1458
|
v.current.classList.add(E.fadeOut), v.current.classList.add(E.hide), b.current.classList.remove(E.hide), b.current.classList.add(E.scaleIn), setTimeout(() => {
|
|
1459
1459
|
v.current.classList.remove(
|
|
1460
1460
|
E.fadeOut,
|
|
1461
1461
|
E.hide
|
|
1462
1462
|
), v.current.classList.add(E.scaleIn), b.current.classList.remove(E.scaleIn), b.current.classList.add(E.hide);
|
|
1463
1463
|
}, 2e3);
|
|
1464
|
-
},
|
|
1465
|
-
f &&
|
|
1466
|
-
}, L = f ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1464
|
+
}, M = (k) => {
|
|
1465
|
+
f && H(), c && c(k);
|
|
1466
|
+
}, L = f ? /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { ref: v, className: `${_}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1467
1467
|
G,
|
|
1468
1468
|
{
|
|
1469
1469
|
iconName: r,
|
|
1470
1470
|
iconSize: o,
|
|
1471
|
-
className: `${
|
|
1471
|
+
className: `${_}__icon`
|
|
1472
1472
|
}
|
|
1473
1473
|
)), /* @__PURE__ */ e.createElement(
|
|
1474
1474
|
"div",
|
|
1475
1475
|
{
|
|
1476
1476
|
ref: b,
|
|
1477
|
-
className: `${
|
|
1477
|
+
className: `${_}__icon-wrapper ${E.hide}`
|
|
1478
1478
|
},
|
|
1479
1479
|
/* @__PURE__ */ e.createElement(
|
|
1480
1480
|
G,
|
|
1481
1481
|
{
|
|
1482
1482
|
iconName: d,
|
|
1483
1483
|
iconSize: o,
|
|
1484
|
-
className: `${
|
|
1484
|
+
className: `${_}__icon`
|
|
1485
1485
|
}
|
|
1486
1486
|
)
|
|
1487
|
-
)) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1487
|
+
)) : /* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement(
|
|
1488
1488
|
G,
|
|
1489
1489
|
{
|
|
1490
1490
|
iconName: r,
|
|
1491
1491
|
iconSize: o,
|
|
1492
|
-
className: `${
|
|
1492
|
+
className: `${_}__icon`
|
|
1493
1493
|
}
|
|
1494
1494
|
));
|
|
1495
1495
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1497,13 +1497,13 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1497
1497
|
y({
|
|
1498
1498
|
"aria-label": t,
|
|
1499
1499
|
className: N([
|
|
1500
|
-
C,
|
|
1501
|
-
w,
|
|
1502
1500
|
_,
|
|
1501
|
+
w,
|
|
1502
|
+
C,
|
|
1503
1503
|
m
|
|
1504
1504
|
]),
|
|
1505
1505
|
disabled: s,
|
|
1506
|
-
onClick:
|
|
1506
|
+
onClick: M,
|
|
1507
1507
|
type: n,
|
|
1508
1508
|
title: a && !s ? null : t,
|
|
1509
1509
|
ref: u
|
|
@@ -1512,7 +1512,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1512
1512
|
Ve,
|
|
1513
1513
|
{
|
|
1514
1514
|
content: t,
|
|
1515
|
-
className: `${
|
|
1515
|
+
className: `${_}__tooltip`,
|
|
1516
1516
|
offsetValue: h,
|
|
1517
1517
|
customTrigger: L
|
|
1518
1518
|
}
|
|
@@ -1596,8 +1596,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1596
1596
|
return ce(() => {
|
|
1597
1597
|
a ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
1598
1598
|
}, [a]), /* @__PURE__ */ e.createElement(ye.Provider, { value: r }, t);
|
|
1599
|
-
}, R2 = (t) => t.isSeparator, O2 = (t) => t.isHeading, F2 = (t) => t.isLink, $1 = (t) => t.isNode, Rt = (
|
|
1600
|
-
var E =
|
|
1599
|
+
}, R2 = (t) => t.isSeparator, O2 = (t) => t.isHeading, F2 = (t) => t.isLink, $1 = (t) => t.isNode, Rt = (C) => {
|
|
1600
|
+
var E = C, {
|
|
1601
1601
|
disabled: t,
|
|
1602
1602
|
displayType: n = "icon-end",
|
|
1603
1603
|
iconName: s = "ellipsisVertical",
|
|
@@ -1612,7 +1612,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1612
1612
|
undefinedLabel: u = "Unlabeled group",
|
|
1613
1613
|
variant: p = "primary",
|
|
1614
1614
|
withinNavbar: $,
|
|
1615
|
-
className:
|
|
1615
|
+
className: _
|
|
1616
1616
|
} = E, w = D(E, [
|
|
1617
1617
|
"disabled",
|
|
1618
1618
|
"displayType",
|
|
@@ -1636,8 +1636,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1636
1636
|
reference: f,
|
|
1637
1637
|
floating: v,
|
|
1638
1638
|
strategy: b,
|
|
1639
|
-
update:
|
|
1640
|
-
placement:
|
|
1639
|
+
update: H,
|
|
1640
|
+
placement: M,
|
|
1641
1641
|
refs: L
|
|
1642
1642
|
} = i1({
|
|
1643
1643
|
placement: "bottom-start",
|
|
@@ -1646,16 +1646,16 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1646
1646
|
let k = !1;
|
|
1647
1647
|
const z = be(ye);
|
|
1648
1648
|
z && (k = z.isMobile);
|
|
1649
|
-
const x = p === "navbar" && k,
|
|
1649
|
+
const x = p === "navbar" && k, I = "pds-menu-button", T = x ? `${I}--isMobile` : null, B = $ ? `${I}--navbar` : null, R = a, [F] = K(`menu-button-${a}`), P = L.floating, q = oe(null), [X, se] = K(!1), [Q, J] = K(!1), [Y, Z] = K(""), [A, V] = K(0), S = oe([]), O = oe([]), j = oe([]);
|
|
1650
1650
|
e1(() => {
|
|
1651
|
-
window.addEventListener("mousedown", Se, !0),
|
|
1651
|
+
window.addEventListener("mousedown", Se, !0), H();
|
|
1652
1652
|
const W = P.current;
|
|
1653
|
-
return W && (W.dataset.fuiPlacement =
|
|
1653
|
+
return W && (W.dataset.fuiPlacement = M), Q && (setTimeout(() => {
|
|
1654
1654
|
W.focus();
|
|
1655
1655
|
}, 0), J(!1)), () => {
|
|
1656
1656
|
window.removeEventListener("mousedown", Se, !0);
|
|
1657
1657
|
};
|
|
1658
|
-
}, [X,
|
|
1658
|
+
}, [X, M]);
|
|
1659
1659
|
const ee = (W, le) => {
|
|
1660
1660
|
Z(W), V(le);
|
|
1661
1661
|
}, ue = () => {
|
|
@@ -1665,13 +1665,13 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1665
1665
|
}, Ce = (W) => {
|
|
1666
1666
|
W = W.toLowerCase();
|
|
1667
1667
|
let le = !1;
|
|
1668
|
-
for (let U =
|
|
1668
|
+
for (let U = A + 1; U < j.current.length; U++)
|
|
1669
1669
|
if (j.current[U].label.toLowerCase().startsWith(W)) {
|
|
1670
1670
|
ee(O.current[U], U), le = !0;
|
|
1671
1671
|
break;
|
|
1672
1672
|
}
|
|
1673
1673
|
if (le === !1) {
|
|
1674
|
-
for (let U = 0; U <
|
|
1674
|
+
for (let U = 0; U < A; U++)
|
|
1675
1675
|
if (j.current[U].label.toLowerCase().startsWith(W)) {
|
|
1676
1676
|
ee(O.current[U], U);
|
|
1677
1677
|
break;
|
|
@@ -1684,7 +1684,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1684
1684
|
ne && ne.click();
|
|
1685
1685
|
}
|
|
1686
1686
|
}, re = () => {
|
|
1687
|
-
const W = O.current[
|
|
1687
|
+
const W = O.current[A];
|
|
1688
1688
|
_e(W);
|
|
1689
1689
|
}, he = (W) => {
|
|
1690
1690
|
X ? de() : ue(), i && i(), J((le) => !le), W.stopPropagation(), W.preventDefault();
|
|
@@ -1733,11 +1733,11 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1733
1733
|
break;
|
|
1734
1734
|
case "Up":
|
|
1735
1735
|
case "ArrowUp":
|
|
1736
|
-
ie =
|
|
1736
|
+
ie = A - 1, ie < 0 && (ie = O.current.length - 1), ne = O.current[ie], ee(ne, ie), U = !0;
|
|
1737
1737
|
break;
|
|
1738
1738
|
case "ArrowDown":
|
|
1739
1739
|
case "Down":
|
|
1740
|
-
ie =
|
|
1740
|
+
ie = A + 1, ie > O.current.length - 1 && (ie = 0), ne = O.current[ie], ee(ne, ie), U = !0;
|
|
1741
1741
|
break;
|
|
1742
1742
|
case "Home":
|
|
1743
1743
|
case "PageUp":
|
|
@@ -1771,7 +1771,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1771
1771
|
role: "presentation",
|
|
1772
1772
|
id: ne || null,
|
|
1773
1773
|
key: ne,
|
|
1774
|
-
className: `${
|
|
1774
|
+
className: `${I}__listbox-heading`
|
|
1775
1775
|
},
|
|
1776
1776
|
W.label
|
|
1777
1777
|
);
|
|
@@ -1794,20 +1794,20 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1794
1794
|
ze.unshift(We);
|
|
1795
1795
|
}
|
|
1796
1796
|
let Ke;
|
|
1797
|
-
W.description && (Ke = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1797
|
+
W.description && (Ke = /* @__PURE__ */ e.createElement("span", { className: `${I}__item-description` }, W.description));
|
|
1798
1798
|
let Ge;
|
|
1799
1799
|
if (F2(W)) {
|
|
1800
1800
|
const We = W.linkContent.type;
|
|
1801
|
-
Ge = /* @__PURE__ */ e.createElement(We, y({ tabIndex: -1 }, W.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1801
|
+
Ge = /* @__PURE__ */ e.createElement(We, y({ tabIndex: -1 }, W.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${I}__item-label` }, ze), Ke);
|
|
1802
1802
|
} else
|
|
1803
|
-
Ge = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1803
|
+
Ge = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${I}__item-label` }, ze), Ke);
|
|
1804
1804
|
return /* @__PURE__ */ e.createElement(
|
|
1805
1805
|
"li",
|
|
1806
1806
|
y({
|
|
1807
1807
|
id: Ee,
|
|
1808
1808
|
key: Ee,
|
|
1809
1809
|
"data-testid": W.testId,
|
|
1810
|
-
className: s2 ? `${
|
|
1810
|
+
className: s2 ? `${I}__item-focused` : null,
|
|
1811
1811
|
role: "menuitem",
|
|
1812
1812
|
tabIndex: -1,
|
|
1813
1813
|
onClick: pe,
|
|
@@ -1827,8 +1827,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1827
1827
|
const le = W, U = W.filter(
|
|
1828
1828
|
O2 || R2
|
|
1829
1829
|
), ne = U.length > 0;
|
|
1830
|
-
let ie = [`${
|
|
1831
|
-
if ($ && ie.push(`${
|
|
1830
|
+
let ie = [`${I}__listbox`];
|
|
1831
|
+
if ($ && ie.push(`${I}__listbox--navbar`), l === "end" && ie.push(`${I}__listbox--end`), n === "icon-only" && ie.push(`${I}__listbox--icon-only`), ie = N(ie), ne) {
|
|
1832
1832
|
const fe = e2(W, U);
|
|
1833
1833
|
fe.forEach(() => {
|
|
1834
1834
|
S.current.push(c2());
|
|
@@ -1915,7 +1915,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1915
1915
|
iconName: "angleDown",
|
|
1916
1916
|
type: "button",
|
|
1917
1917
|
disabled: t,
|
|
1918
|
-
className: `${
|
|
1918
|
+
className: `${I}__trigger`,
|
|
1919
1919
|
"aria-haspopup": "true",
|
|
1920
1920
|
"aria-controls": F,
|
|
1921
1921
|
"aria-expanded": X,
|
|
@@ -1935,7 +1935,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1935
1935
|
iconName: s,
|
|
1936
1936
|
type: "button",
|
|
1937
1937
|
disabled: t,
|
|
1938
|
-
className: `${
|
|
1938
|
+
className: `${I}__trigger ${I}__trigger--icon-only`,
|
|
1939
1939
|
"aria-haspopup": "true",
|
|
1940
1940
|
"aria-controls": F,
|
|
1941
1941
|
"aria-expanded": X,
|
|
@@ -1948,14 +1948,14 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
const p2 = (W) => {
|
|
1950
1950
|
const le = W.target;
|
|
1951
|
-
le.classList.toggle(`${
|
|
1951
|
+
le.classList.toggle(`${I}__toggle--expanded`), le.setAttribute(
|
|
1952
1952
|
"aria-expanded",
|
|
1953
1953
|
le.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
1954
|
-
), le.nextElementSibling.classList.toggle(`${
|
|
1955
|
-
}, r2 = () => /* @__PURE__ */ e.createElement("ul", { className: `${
|
|
1954
|
+
), le.nextElementSibling.classList.toggle(`${I}__mobile-menu--expanded`);
|
|
1955
|
+
}, r2 = () => /* @__PURE__ */ e.createElement("ul", { className: `${I}__mobile-menu`, role: "menu" }, c.map((W, le) => ke(W, le)));
|
|
1956
1956
|
let n2;
|
|
1957
1957
|
const $e = n === "icon-end" ? "pds-button pds-button--navbar" : null, He = N([
|
|
1958
|
-
`${
|
|
1958
|
+
`${I}__toggle`,
|
|
1959
1959
|
$e
|
|
1960
1960
|
]);
|
|
1961
1961
|
x && (n2 = /* @__PURE__ */ e.createElement(
|
|
@@ -1968,26 +1968,26 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
1968
1968
|
"aria-expanded": !1,
|
|
1969
1969
|
onClick: p2
|
|
1970
1970
|
},
|
|
1971
|
-
n === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1971
|
+
n === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${I}__icon-label` }, /* @__PURE__ */ e.createElement(G, { iconName: s }), " ", d) : d,
|
|
1972
1972
|
/* @__PURE__ */ e.createElement(
|
|
1973
1973
|
G,
|
|
1974
1974
|
{
|
|
1975
1975
|
iconName: "angleDown",
|
|
1976
1976
|
iconSize: "md",
|
|
1977
|
-
className: `${
|
|
1977
|
+
className: `${I}__toggle-icon ${I}__toggle-icon--${n}`
|
|
1978
1978
|
}
|
|
1979
1979
|
)
|
|
1980
1980
|
));
|
|
1981
|
-
const ve = n2, Ne = X ? `${
|
|
1981
|
+
const ve = n2, Ne = X ? `${I}--expanded` : null;
|
|
1982
1982
|
return /* @__PURE__ */ e.createElement(
|
|
1983
1983
|
"span",
|
|
1984
1984
|
y({
|
|
1985
1985
|
className: N([
|
|
1986
|
-
|
|
1986
|
+
I,
|
|
1987
1987
|
B,
|
|
1988
1988
|
T,
|
|
1989
1989
|
Ne,
|
|
1990
|
-
|
|
1990
|
+
_
|
|
1991
1991
|
]),
|
|
1992
1992
|
"data-testid": g,
|
|
1993
1993
|
ref: q
|
|
@@ -2016,8 +2016,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2016
2016
|
"value",
|
|
2017
2017
|
"className"
|
|
2018
2018
|
]);
|
|
2019
|
-
const p = "pds-segmented-button", $ = t ? "pds-is-disabled" : null,
|
|
2020
|
-
|
|
2019
|
+
const p = "pds-segmented-button", $ = t ? "pds-is-disabled" : null, _ = c !== "md" ? `${p}--${c}` : null, w = typeof l != "undefined", C = typeof s != "undefined", [E, h] = K(
|
|
2020
|
+
C ? s : ""
|
|
2021
2021
|
), o = (f) => {
|
|
2022
2022
|
h(f.target.value), r && r(f.target.value);
|
|
2023
2023
|
};
|
|
@@ -2027,18 +2027,18 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2027
2027
|
y({
|
|
2028
2028
|
className: N([
|
|
2029
2029
|
p,
|
|
2030
|
-
|
|
2030
|
+
_,
|
|
2031
2031
|
$,
|
|
2032
2032
|
i != null ? i : ""
|
|
2033
2033
|
])
|
|
2034
2034
|
}, m),
|
|
2035
2035
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, a),
|
|
2036
2036
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, d.map((f, v) => {
|
|
2037
|
-
const b = w ? l === f.value : E === f.value,
|
|
2037
|
+
const b = w ? l === f.value : E === f.value, H = `${p}__option`, M = b ? `${H}--checked` : null;
|
|
2038
2038
|
return /* @__PURE__ */ e.createElement(
|
|
2039
2039
|
"div",
|
|
2040
2040
|
{
|
|
2041
|
-
className: N([
|
|
2041
|
+
className: N([H, M]),
|
|
2042
2042
|
key: `${n}-option-${v}`
|
|
2043
2043
|
},
|
|
2044
2044
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2091,8 +2091,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2091
2091
|
"className"
|
|
2092
2092
|
]);
|
|
2093
2093
|
const g = "pds-split-button", u = `${g}--${d}`, p = t[0], $ = t.slice(1);
|
|
2094
|
-
let
|
|
2095
|
-
return "isLink" in p && p.isLink === !0 ?
|
|
2094
|
+
let _ = null;
|
|
2095
|
+
return "isLink" in p && p.isLink === !0 ? _ = /* @__PURE__ */ e.createElement(
|
|
2096
2096
|
$2,
|
|
2097
2097
|
{
|
|
2098
2098
|
className: `${g}__primary-action`,
|
|
@@ -2102,7 +2102,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2102
2102
|
disabled: n,
|
|
2103
2103
|
linkContent: p.linkContent
|
|
2104
2104
|
}
|
|
2105
|
-
) : "label" in p && (
|
|
2105
|
+
) : "label" in p && (_ = /* @__PURE__ */ e.createElement(
|
|
2106
2106
|
qe,
|
|
2107
2107
|
{
|
|
2108
2108
|
className: `${g}__primary-action`,
|
|
@@ -2118,7 +2118,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2118
2118
|
className: N([g, u, c]),
|
|
2119
2119
|
id: s
|
|
2120
2120
|
}, l),
|
|
2121
|
-
|
|
2121
|
+
_,
|
|
2122
2122
|
/* @__PURE__ */ e.createElement(
|
|
2123
2123
|
Rt,
|
|
2124
2124
|
{
|
|
@@ -2162,32 +2162,32 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2162
2162
|
"tooltipText",
|
|
2163
2163
|
"className"
|
|
2164
2164
|
]);
|
|
2165
|
-
const
|
|
2165
|
+
const _ = "pds-utility-button", w = a ? `${_}--critical` : null, C = n ? `${_}--disabled` : null, E = r ? `${_}--loading` : null, h = d ? `${_}--working` : null, o = c ? `${_}--monospace` : null, f = r ? "pds-pulse" : null, v = /* @__PURE__ */ e.createElement(
|
|
2166
2166
|
"button",
|
|
2167
2167
|
y({
|
|
2168
|
-
className: N([`${
|
|
2168
|
+
className: N([`${_}__button`, f]),
|
|
2169
2169
|
"aria-disabled": n || r || d,
|
|
2170
2170
|
onClick: n ? void 0 : i,
|
|
2171
2171
|
type: "button"
|
|
2172
2172
|
}, t),
|
|
2173
|
-
s && !d && /* @__PURE__ */ e.createElement(G, { iconName: s, className: `${
|
|
2173
|
+
s && !d && /* @__PURE__ */ e.createElement(G, { iconName: s, className: `${_}__icon` }),
|
|
2174
2174
|
d && /* @__PURE__ */ e.createElement(
|
|
2175
2175
|
w2,
|
|
2176
2176
|
{
|
|
2177
|
-
className: `${
|
|
2177
|
+
className: `${_}__spinner`,
|
|
2178
2178
|
size: "sm",
|
|
2179
2179
|
colorType: "monochromatic"
|
|
2180
2180
|
}
|
|
2181
2181
|
),
|
|
2182
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2182
|
+
/* @__PURE__ */ e.createElement("span", { className: `${_}__label` }, l)
|
|
2183
2183
|
);
|
|
2184
2184
|
return /* @__PURE__ */ e.createElement(
|
|
2185
2185
|
"div",
|
|
2186
2186
|
y({
|
|
2187
2187
|
className: N([
|
|
2188
|
-
C,
|
|
2189
|
-
w,
|
|
2190
2188
|
_,
|
|
2189
|
+
w,
|
|
2190
|
+
C,
|
|
2191
2191
|
E,
|
|
2192
2192
|
h,
|
|
2193
2193
|
o,
|
|
@@ -2317,11 +2317,11 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2317
2317
|
const u = "pds-card-select-group";
|
|
2318
2318
|
let p = `${u}__legend`;
|
|
2319
2319
|
a === "center" && (p = `${u}__legend ${u}__legend--center`), a === "hidden" && (p = `${u}__legend visually-hidden`);
|
|
2320
|
-
const [$,
|
|
2321
|
-
|
|
2322
|
-
},
|
|
2320
|
+
const [$, _] = K(n), w = (v) => {
|
|
2321
|
+
_(v.currentTarget.value), d && d(v.currentTarget.value);
|
|
2322
|
+
}, C = c.length, E = "pds-grid-item", h = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", o = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2323
2323
|
let f = "";
|
|
2324
|
-
return r === "twoAcross" ? f = h : r === "threeAcross" ? f = o : r === "auto" && (
|
|
2324
|
+
return r === "twoAcross" ? f = h : r === "threeAcross" ? f = o : r === "auto" && (C === 1 ? f = E : C % 3 === 0 ? f = o : C % 2 === 0 ? f = h : f = o), /* @__PURE__ */ e.createElement(
|
|
2325
2325
|
"fieldset",
|
|
2326
2326
|
y({
|
|
2327
2327
|
className: [u, l].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -2721,7 +2721,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2721
2721
|
"supplementalLinks",
|
|
2722
2722
|
"className"
|
|
2723
2723
|
]);
|
|
2724
|
-
const p = "pds-new-site-card", $ = c.type,
|
|
2724
|
+
const p = "pds-new-site-card", $ = c.type, _ = /* @__PURE__ */ e.createElement(I2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${p}__main` }, /* @__PURE__ */ e.createElement(
|
|
2725
2725
|
$,
|
|
2726
2726
|
y({
|
|
2727
2727
|
"aria-label": c.props.children,
|
|
@@ -2738,12 +2738,12 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2738
2738
|
}
|
|
2739
2739
|
),
|
|
2740
2740
|
d && /* @__PURE__ */ e.createElement("div", { className: `${p}__summary` }, d)
|
|
2741
|
-
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${p}__links` }, l.map((w,
|
|
2741
|
+
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${p}__links` }, l.map((w, C) => {
|
|
2742
2742
|
const E = w.type;
|
|
2743
2743
|
return /* @__PURE__ */ e.createElement(
|
|
2744
2744
|
E,
|
|
2745
2745
|
y({
|
|
2746
|
-
key:
|
|
2746
|
+
key: C,
|
|
2747
2747
|
className: `${p}__link`
|
|
2748
2748
|
}, w.props),
|
|
2749
2749
|
w.props.children,
|
|
@@ -2757,7 +2757,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
2757
2757
|
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s))
|
|
2758
2758
|
);
|
|
2759
2759
|
}))));
|
|
2760
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([p, i != null ? i : ""]) }, m),
|
|
2760
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([p, i != null ? i : ""]) }, m), _);
|
|
2761
2761
|
}, y1 = {
|
|
2762
2762
|
amex: /* @__PURE__ */ e.createElement(
|
|
2763
2763
|
"svg",
|
|
@@ -3207,9 +3207,9 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3207
3207
|
required: u = !1,
|
|
3208
3208
|
showLabel: p = !0,
|
|
3209
3209
|
tooltipText: $ = null,
|
|
3210
|
-
validationMessage:
|
|
3210
|
+
validationMessage: _,
|
|
3211
3211
|
validationStatus: w,
|
|
3212
|
-
value:
|
|
3212
|
+
value: C,
|
|
3213
3213
|
className: E
|
|
3214
3214
|
} = f, h = D(f, [
|
|
3215
3215
|
"defaultValue",
|
|
@@ -3232,10 +3232,10 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3232
3232
|
"className"
|
|
3233
3233
|
]);
|
|
3234
3234
|
var r2, n2;
|
|
3235
|
-
const v = Je(a), b = "pds-select",
|
|
3235
|
+
const v = Je(a), b = "pds-select", H = n ? te.disabled : null, M = u && !n ? te.required : null, L = w === "error" ? te.error : null, k = w === "success" ? te.success : null;
|
|
3236
3236
|
let z = null;
|
|
3237
3237
|
w === "error" && (z = "error"), w === "success" && (z = "success");
|
|
3238
|
-
const x =
|
|
3238
|
+
const x = _ || c, I = typeof C != "undefined", T = typeof t != "undefined", R = (($e) => $e.reduce((He, ve) => pt(ve) ? [...He, ...ve.options] : [...He, ve], []))(g), F = ($e) => R.findIndex((He) => He.value === $e), P = I && F(C) >= 0 ? F(C) : null, q = T ? F(t) : null, X = P || q, [se, Q] = K(!1), [J, Y] = K(null), [Z, A] = K(
|
|
3239
3239
|
X != null ? X : null
|
|
3240
3240
|
), V = Z !== null ? (r2 = R[Z]) == null ? void 0 : r2.label : void 0, S = Z !== null ? (n2 = R[Z]) == null ? void 0 : n2.value : void 0, O = oe([]), { context: j, refs: ee, floatingStyles: ue } = Ae({
|
|
3241
3241
|
open: se,
|
|
@@ -3280,14 +3280,14 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
}), ke = ($e) => {
|
|
3282
3282
|
const He = R[$e];
|
|
3283
|
-
|
|
3283
|
+
I || (A($e), Q(!1)), m && m(He);
|
|
3284
3284
|
};
|
|
3285
3285
|
ce(() => {
|
|
3286
|
-
if (
|
|
3287
|
-
const $e = F(
|
|
3288
|
-
|
|
3286
|
+
if (I) {
|
|
3287
|
+
const $e = F(C);
|
|
3288
|
+
A($e), Q(!1);
|
|
3289
3289
|
}
|
|
3290
|
-
}, [
|
|
3290
|
+
}, [C]);
|
|
3291
3291
|
const e2 = () => {
|
|
3292
3292
|
l && l(S);
|
|
3293
3293
|
}, t2 = () => {
|
|
@@ -3360,8 +3360,8 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3360
3360
|
className: N([
|
|
3361
3361
|
te.base,
|
|
3362
3362
|
b,
|
|
3363
|
-
M,
|
|
3364
3363
|
H,
|
|
3364
|
+
M,
|
|
3365
3365
|
L,
|
|
3366
3366
|
k,
|
|
3367
3367
|
E != null ? E : ""
|
|
@@ -3412,7 +3412,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3412
3412
|
{
|
|
3413
3413
|
id: s,
|
|
3414
3414
|
message: x,
|
|
3415
|
-
hasValidationMessage: !!
|
|
3415
|
+
hasValidationMessage: !!_,
|
|
3416
3416
|
validationMessageHasDecorators: !1,
|
|
3417
3417
|
validationStatus: w
|
|
3418
3418
|
}
|
|
@@ -3447,58 +3447,58 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3447
3447
|
"statusBadgeType",
|
|
3448
3448
|
"className"
|
|
3449
3449
|
]);
|
|
3450
|
-
const
|
|
3450
|
+
const _ = "pds-pricing-card", w = `${_}-container`, C = s ? `${w}--with-list` : null, E = m ? `${_}--${m}` : null, h = (T) => T.toLowerCase().replace(/\s/g, "-"), o = c && c.length > 1, [f, v] = K(
|
|
3451
3451
|
h(c[0].label)
|
|
3452
|
-
), [b,
|
|
3452
|
+
), [b, H] = K(
|
|
3453
3453
|
t.label
|
|
3454
3454
|
);
|
|
3455
|
-
let
|
|
3456
|
-
o || (
|
|
3455
|
+
let M = null, L = null;
|
|
3456
|
+
o || (M = /* @__PURE__ */ e.createElement("div", { className: `${_}__pricing-data` }, c[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${_}__price-prefix` }, c[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, c[0].price), c[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, c[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, c[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3457
3457
|
v2,
|
|
3458
3458
|
{
|
|
3459
|
-
className: `${
|
|
3459
|
+
className: `${_}__savings-badge`,
|
|
3460
3460
|
color: "neutral",
|
|
3461
3461
|
size: "sm",
|
|
3462
3462
|
label: c[0].savingsBadgeLabel
|
|
3463
3463
|
}
|
|
3464
|
-
), c[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3464
|
+
), c[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__savings-details` }, c[0].savingsDetails))), L = /* @__PURE__ */ e.createElement(
|
|
3465
3465
|
gt,
|
|
3466
3466
|
{
|
|
3467
|
-
className: `${
|
|
3467
|
+
className: `${_}__list`,
|
|
3468
3468
|
listLabel: c[0].listLabel,
|
|
3469
3469
|
listItems: c[0].listItems,
|
|
3470
3470
|
renderTypeLabels: !1
|
|
3471
3471
|
}
|
|
3472
|
-
)), o && (
|
|
3473
|
-
const R = f === h(T.label) ? null : `${
|
|
3472
|
+
)), o && (M = c.map((T) => {
|
|
3473
|
+
const R = f === h(T.label) ? null : `${_}__pricing-data--hide`;
|
|
3474
3474
|
return /* @__PURE__ */ e.createElement(
|
|
3475
3475
|
"div",
|
|
3476
3476
|
{
|
|
3477
3477
|
className: N([
|
|
3478
|
-
`${
|
|
3478
|
+
`${_}__pricing-data`,
|
|
3479
3479
|
R
|
|
3480
3480
|
]),
|
|
3481
3481
|
id: `data-${h(T.label)}`,
|
|
3482
3482
|
key: h(T.label)
|
|
3483
3483
|
},
|
|
3484
|
-
T.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3485
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3486
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3484
|
+
T.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${_}__price-prefix` }, T.pricePrefix),
|
|
3485
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, T.price), T.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, T.priceDetails)),
|
|
3486
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, T.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3487
3487
|
v2,
|
|
3488
3488
|
{
|
|
3489
|
-
className: `${
|
|
3489
|
+
className: `${_}__savings-badge`,
|
|
3490
3490
|
color: "neutral",
|
|
3491
3491
|
size: "sm",
|
|
3492
3492
|
label: T.savingsBadgeLabel
|
|
3493
3493
|
}
|
|
3494
|
-
), T.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3494
|
+
), T.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__savings-details` }, T.savingsDetails))
|
|
3495
3495
|
);
|
|
3496
3496
|
}), L = c.map((T) => {
|
|
3497
|
-
const R = f === h(T.label) ? null : `${
|
|
3497
|
+
const R = f === h(T.label) ? null : `${_}__list--hide`;
|
|
3498
3498
|
return /* @__PURE__ */ e.createElement(
|
|
3499
3499
|
gt,
|
|
3500
3500
|
{
|
|
3501
|
-
className: N([`${
|
|
3501
|
+
className: N([`${_}__list`, R]),
|
|
3502
3502
|
listLabel: T.listLabel,
|
|
3503
3503
|
listItems: T.listItems,
|
|
3504
3504
|
renderTypeLabels: !1,
|
|
@@ -3517,7 +3517,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3517
3517
|
k1,
|
|
3518
3518
|
{
|
|
3519
3519
|
id: "plan-select",
|
|
3520
|
-
className: `${
|
|
3520
|
+
className: `${_}__select`,
|
|
3521
3521
|
label: i,
|
|
3522
3522
|
showLabel: !1,
|
|
3523
3523
|
options: c.map((T) => ({
|
|
@@ -3526,7 +3526,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3526
3526
|
})),
|
|
3527
3527
|
defaultValue: h(c[0].label),
|
|
3528
3528
|
onOptionSelect: (T) => {
|
|
3529
|
-
v(T.value),
|
|
3529
|
+
v(T.value), H(k(T.value)), a && a(T.value);
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
3532
|
));
|
|
@@ -3546,15 +3546,15 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3546
3546
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: t.linkUrl, target: t.linkTarget }, t.label)
|
|
3547
3547
|
}
|
|
3548
3548
|
)));
|
|
3549
|
-
let
|
|
3550
|
-
return n && (n.type === "button" && (
|
|
3549
|
+
let I = null;
|
|
3550
|
+
return n && (n.type === "button" && (I = /* @__PURE__ */ e.createElement(
|
|
3551
3551
|
qe,
|
|
3552
3552
|
{
|
|
3553
3553
|
variant: "secondary",
|
|
3554
3554
|
label: n.label,
|
|
3555
3555
|
onClick: n.buttonAction
|
|
3556
3556
|
}
|
|
3557
|
-
)), n.type === "link" && (
|
|
3557
|
+
)), n.type === "link" && (I = /* @__PURE__ */ e.createElement(
|
|
3558
3558
|
$2,
|
|
3559
3559
|
{
|
|
3560
3560
|
variant: "secondary",
|
|
@@ -3570,16 +3570,16 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3570
3570
|
))), /* @__PURE__ */ e.createElement(
|
|
3571
3571
|
"div",
|
|
3572
3572
|
y({
|
|
3573
|
-
className: N([w,
|
|
3573
|
+
className: N([w, C, g])
|
|
3574
3574
|
}, u),
|
|
3575
|
-
/* @__PURE__ */ e.createElement("div", { className: N([
|
|
3575
|
+
/* @__PURE__ */ e.createElement("div", { className: N([_, E]) }, m && /* @__PURE__ */ e.createElement(
|
|
3576
3576
|
J2,
|
|
3577
3577
|
{
|
|
3578
|
-
className: `${
|
|
3578
|
+
className: `${_}__status-badge`,
|
|
3579
3579
|
label: l[m],
|
|
3580
3580
|
color: m === "mostPopular" ? "reverse" : "neutral"
|
|
3581
3581
|
}
|
|
3582
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3582
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${_}__main-content` }, d && /* @__PURE__ */ e.createElement("div", { className: `${_}__plan pds-overline-text` }, d), M, r && /* @__PURE__ */ e.createElement("div", { className: `${_}__description` }, r), z), /* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, t && x, t && n && I)),
|
|
3583
3583
|
s && L
|
|
3584
3584
|
);
|
|
3585
3585
|
}, is = (m) => {
|
|
@@ -3605,7 +3605,7 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3605
3605
|
const u = "pds-site-card";
|
|
3606
3606
|
let p, $;
|
|
3607
3607
|
c === "active" && (p = "Active", $ = "success"), c === "frozen" && (p = "Frozen", $ = "frozen");
|
|
3608
|
-
const
|
|
3608
|
+
const _ = /* @__PURE__ */ e.createElement(
|
|
3609
3609
|
J2,
|
|
3610
3610
|
{
|
|
3611
3611
|
label: p,
|
|
@@ -3620,12 +3620,12 @@ const D2 = 500, C1 = 700, Ve = (u) => {
|
|
|
3620
3620
|
level: n,
|
|
3621
3621
|
text: r
|
|
3622
3622
|
}
|
|
3623
|
-
),
|
|
3623
|
+
), _), /* @__PURE__ */ e.createElement("div", { className: `${u}__plan` }, d))), C = Me(a) ? Ie(a, ae(y({}, a.props), {
|
|
3624
3624
|
className: `${u}__link`,
|
|
3625
3625
|
children: w,
|
|
3626
3626
|
"aria-label": `${t} ${r} dashboard`
|
|
3627
3627
|
})) : null;
|
|
3628
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([u, l != null ? l : ""]) }, i),
|
|
3628
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([u, l != null ? l : ""]) }, i), C);
|
|
3629
3629
|
};
|
|
3630
3630
|
var Ct = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
3631
3631
|
function N1(t) {
|
|
@@ -3748,8 +3748,8 @@ var Ot = { exports: {} };
|
|
|
3748
3748
|
return f[b];
|
|
3749
3749
|
v = /** @type {Record<string, any>} */
|
|
3750
3750
|
{}, f[b] = v;
|
|
3751
|
-
for (var
|
|
3752
|
-
o.hasOwnProperty(
|
|
3751
|
+
for (var H in o)
|
|
3752
|
+
o.hasOwnProperty(H) && (v[H] = h(o[H], f));
|
|
3753
3753
|
return (
|
|
3754
3754
|
/** @type {any} */
|
|
3755
3755
|
v
|
|
@@ -3757,8 +3757,8 @@ var Ot = { exports: {} };
|
|
|
3757
3757
|
case "Array":
|
|
3758
3758
|
return b = l.util.objId(o), f[b] ? f[b] : (v = [], f[b] = v, /** @type {Array} */
|
|
3759
3759
|
/** @type {any} */
|
|
3760
|
-
o.forEach(function(
|
|
3761
|
-
v[L] = h(
|
|
3760
|
+
o.forEach(function(M, L) {
|
|
3761
|
+
v[L] = h(M, f);
|
|
3762
3762
|
}), /** @type {any} */
|
|
3763
3763
|
v);
|
|
3764
3764
|
default:
|
|
@@ -3978,28 +3978,28 @@ var Ot = { exports: {} };
|
|
|
3978
3978
|
insertBefore: function(h, o, f, v) {
|
|
3979
3979
|
v = v || /** @type {any} */
|
|
3980
3980
|
l.languages;
|
|
3981
|
-
var b = v[h],
|
|
3982
|
-
for (var
|
|
3983
|
-
if (b.hasOwnProperty(
|
|
3984
|
-
if (
|
|
3981
|
+
var b = v[h], H = {};
|
|
3982
|
+
for (var M in b)
|
|
3983
|
+
if (b.hasOwnProperty(M)) {
|
|
3984
|
+
if (M == o)
|
|
3985
3985
|
for (var L in f)
|
|
3986
|
-
f.hasOwnProperty(L) && (
|
|
3987
|
-
f.hasOwnProperty(
|
|
3986
|
+
f.hasOwnProperty(L) && (H[L] = f[L]);
|
|
3987
|
+
f.hasOwnProperty(M) || (H[M] = b[M]);
|
|
3988
3988
|
}
|
|
3989
3989
|
var k = v[h];
|
|
3990
|
-
return v[h] =
|
|
3991
|
-
x === k && z != h && (this[z] =
|
|
3992
|
-
}),
|
|
3990
|
+
return v[h] = H, l.languages.DFS(l.languages, function(z, x) {
|
|
3991
|
+
x === k && z != h && (this[z] = H);
|
|
3992
|
+
}), H;
|
|
3993
3993
|
},
|
|
3994
3994
|
// Traverse a language definition with Depth First Search
|
|
3995
3995
|
DFS: function h(o, f, v, b) {
|
|
3996
3996
|
b = b || {};
|
|
3997
|
-
var
|
|
3998
|
-
for (var
|
|
3999
|
-
if (o.hasOwnProperty(
|
|
4000
|
-
f.call(o,
|
|
4001
|
-
var L = o[
|
|
4002
|
-
k === "Object" && !b[
|
|
3997
|
+
var H = l.util.objId;
|
|
3998
|
+
for (var M in o)
|
|
3999
|
+
if (o.hasOwnProperty(M)) {
|
|
4000
|
+
f.call(o, M, o[M], v || M);
|
|
4001
|
+
var L = o[M], k = l.util.type(L);
|
|
4002
|
+
k === "Object" && !b[H(L)] ? (b[H(L)] = !0, h(L, f, null, b)) : k === "Array" && !b[H(L)] && (b[H(L)] = !0, h(L, f, M, b));
|
|
4003
4003
|
}
|
|
4004
4004
|
}
|
|
4005
4005
|
},
|
|
@@ -4041,8 +4041,8 @@ var Ot = { exports: {} };
|
|
|
4041
4041
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4042
4042
|
};
|
|
4043
4043
|
l.hooks.run("before-highlightall", v), v.elements = Array.prototype.slice.apply(v.container.querySelectorAll(v.selector)), l.hooks.run("before-all-elements-highlight", v);
|
|
4044
|
-
for (var b = 0,
|
|
4045
|
-
l.highlightElement(
|
|
4044
|
+
for (var b = 0, H; H = v.elements[b++]; )
|
|
4045
|
+
l.highlightElement(H, o === !0, v.callback);
|
|
4046
4046
|
},
|
|
4047
4047
|
/**
|
|
4048
4048
|
* Highlights the code inside a single element.
|
|
@@ -4075,18 +4075,18 @@ var Ot = { exports: {} };
|
|
|
4075
4075
|
highlightElement: function(h, o, f) {
|
|
4076
4076
|
var v = l.util.getLanguage(h), b = l.languages[v];
|
|
4077
4077
|
l.util.setLanguage(h, v);
|
|
4078
|
-
var
|
|
4079
|
-
|
|
4080
|
-
var
|
|
4078
|
+
var H = h.parentElement;
|
|
4079
|
+
H && H.nodeName.toLowerCase() === "pre" && l.util.setLanguage(H, v);
|
|
4080
|
+
var M = h.textContent, L = {
|
|
4081
4081
|
element: h,
|
|
4082
4082
|
language: v,
|
|
4083
4083
|
grammar: b,
|
|
4084
|
-
code:
|
|
4084
|
+
code: M
|
|
4085
4085
|
};
|
|
4086
4086
|
function k(x) {
|
|
4087
4087
|
L.highlightedCode = x, l.hooks.run("before-insert", L), L.element.innerHTML = L.highlightedCode, l.hooks.run("after-highlight", L), l.hooks.run("complete", L), f && f.call(L.element);
|
|
4088
4088
|
}
|
|
4089
|
-
if (l.hooks.run("before-sanity-check", L),
|
|
4089
|
+
if (l.hooks.run("before-sanity-check", L), H = L.element.parentElement, H && H.nodeName.toLowerCase() === "pre" && !H.hasAttribute("tabindex") && H.setAttribute("tabindex", "0"), !L.code) {
|
|
4090
4090
|
l.hooks.run("complete", L), f && f.call(L.element);
|
|
4091
4091
|
return;
|
|
4092
4092
|
}
|
|
@@ -4168,7 +4168,7 @@ var Ot = { exports: {} };
|
|
|
4168
4168
|
delete o.rest;
|
|
4169
4169
|
}
|
|
4170
4170
|
var b = new u();
|
|
4171
|
-
return p(b, b.head, h), g(h, b, o, b.head, 0),
|
|
4171
|
+
return p(b, b.head, h), g(h, b, o, b.head, 0), _(b);
|
|
4172
4172
|
},
|
|
4173
4173
|
/**
|
|
4174
4174
|
* @namespace
|
|
@@ -4231,65 +4231,65 @@ var Ot = { exports: {} };
|
|
|
4231
4231
|
classes: ["token", o.type],
|
|
4232
4232
|
attributes: {},
|
|
4233
4233
|
language: f
|
|
4234
|
-
},
|
|
4235
|
-
|
|
4236
|
-
var
|
|
4234
|
+
}, H = o.alias;
|
|
4235
|
+
H && (Array.isArray(H) ? Array.prototype.push.apply(b.classes, H) : b.classes.push(H)), l.hooks.run("wrap", b);
|
|
4236
|
+
var M = "";
|
|
4237
4237
|
for (var L in b.attributes)
|
|
4238
|
-
|
|
4239
|
-
return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' +
|
|
4238
|
+
M += " " + L + '="' + (b.attributes[L] || "").replace(/"/g, """) + '"';
|
|
4239
|
+
return "<" + b.tag + ' class="' + b.classes.join(" ") + '"' + M + ">" + b.content + "</" + b.tag + ">";
|
|
4240
4240
|
};
|
|
4241
4241
|
function m(h, o, f, v) {
|
|
4242
4242
|
h.lastIndex = o;
|
|
4243
4243
|
var b = h.exec(f);
|
|
4244
4244
|
if (b && v && b[1]) {
|
|
4245
|
-
var
|
|
4246
|
-
b.index +=
|
|
4245
|
+
var H = b[1].length;
|
|
4246
|
+
b.index += H, b[0] = b[0].slice(H);
|
|
4247
4247
|
}
|
|
4248
4248
|
return b;
|
|
4249
4249
|
}
|
|
4250
|
-
function g(h, o, f, v, b,
|
|
4251
|
-
for (var
|
|
4252
|
-
if (!(!f.hasOwnProperty(
|
|
4253
|
-
var L = f[
|
|
4250
|
+
function g(h, o, f, v, b, H) {
|
|
4251
|
+
for (var M in f)
|
|
4252
|
+
if (!(!f.hasOwnProperty(M) || !f[M])) {
|
|
4253
|
+
var L = f[M];
|
|
4254
4254
|
L = Array.isArray(L) ? L : [L];
|
|
4255
4255
|
for (var k = 0; k < L.length; ++k) {
|
|
4256
|
-
if (
|
|
4256
|
+
if (H && H.cause == M + "," + k)
|
|
4257
4257
|
return;
|
|
4258
|
-
var z = L[k], x = z.inside,
|
|
4258
|
+
var z = L[k], x = z.inside, I = !!z.lookbehind, T = !!z.greedy, B = z.alias;
|
|
4259
4259
|
if (T && !z.pattern.global) {
|
|
4260
4260
|
var R = z.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4261
4261
|
z.pattern = RegExp(z.pattern.source, R + "g");
|
|
4262
4262
|
}
|
|
4263
|
-
for (var F = z.pattern || z, P = v.next, q = b; P !== o.tail && !(
|
|
4263
|
+
for (var F = z.pattern || z, P = v.next, q = b; P !== o.tail && !(H && q >= H.reach); q += P.value.length, P = P.next) {
|
|
4264
4264
|
var X = P.value;
|
|
4265
4265
|
if (o.length > h.length)
|
|
4266
4266
|
return;
|
|
4267
4267
|
if (!(X instanceof i)) {
|
|
4268
4268
|
var se = 1, Q;
|
|
4269
4269
|
if (T) {
|
|
4270
|
-
if (Q = m(F, q, h,
|
|
4270
|
+
if (Q = m(F, q, h, I), !Q || Q.index >= h.length)
|
|
4271
4271
|
break;
|
|
4272
|
-
var
|
|
4273
|
-
for (Y += P.value.length;
|
|
4272
|
+
var A = Q.index, J = Q.index + Q[0].length, Y = q;
|
|
4273
|
+
for (Y += P.value.length; A >= Y; )
|
|
4274
4274
|
P = P.next, Y += P.value.length;
|
|
4275
4275
|
if (Y -= P.value.length, q = Y, P.value instanceof i)
|
|
4276
4276
|
continue;
|
|
4277
4277
|
for (var Z = P; Z !== o.tail && (Y < J || typeof Z.value == "string"); Z = Z.next)
|
|
4278
4278
|
se++, Y += Z.value.length;
|
|
4279
4279
|
se--, X = h.slice(q, Y), Q.index -= q;
|
|
4280
|
-
} else if (Q = m(F, 0, X,
|
|
4280
|
+
} else if (Q = m(F, 0, X, I), !Q)
|
|
4281
4281
|
continue;
|
|
4282
|
-
var
|
|
4283
|
-
|
|
4282
|
+
var A = Q.index, V = Q[0], S = X.slice(0, A), O = X.slice(A + V.length), j = q + X.length;
|
|
4283
|
+
H && j > H.reach && (H.reach = j);
|
|
4284
4284
|
var ee = P.prev;
|
|
4285
4285
|
S && (ee = p(o, ee, S), q += S.length), $(o, ee, se);
|
|
4286
|
-
var ue = new i(
|
|
4286
|
+
var ue = new i(M, x ? l.tokenize(V, x) : V, B, V);
|
|
4287
4287
|
if (P = p(o, ee, ue), O && p(o, P, O), se > 1) {
|
|
4288
4288
|
var de = {
|
|
4289
|
-
cause:
|
|
4289
|
+
cause: M + "," + k,
|
|
4290
4290
|
reach: j
|
|
4291
4291
|
};
|
|
4292
|
-
g(h, o, f, P.prev, q, de),
|
|
4292
|
+
g(h, o, f, P.prev, q, de), H && de.reach > H.reach && (H.reach = de.reach);
|
|
4293
4293
|
}
|
|
4294
4294
|
}
|
|
4295
4295
|
}
|
|
@@ -4309,7 +4309,7 @@ var Ot = { exports: {} };
|
|
|
4309
4309
|
v = v.next;
|
|
4310
4310
|
o.next = v, v.prev = o, h.length -= b;
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4312
|
+
function _(h) {
|
|
4313
4313
|
for (var o = [], f = h.head.next; f !== h.tail; )
|
|
4314
4314
|
o.push(f.value), f = f.next;
|
|
4315
4315
|
return o;
|
|
@@ -4321,12 +4321,12 @@ var Ot = { exports: {} };
|
|
|
4321
4321
|
}, !1)), l;
|
|
4322
4322
|
var w = l.util.currentScript();
|
|
4323
4323
|
w && (l.filename = w.src, w.hasAttribute("data-manual") && (l.manual = !0));
|
|
4324
|
-
function
|
|
4324
|
+
function C() {
|
|
4325
4325
|
l.manual || l.highlightAll();
|
|
4326
4326
|
}
|
|
4327
4327
|
if (!l.manual) {
|
|
4328
4328
|
var E = document.readyState;
|
|
4329
|
-
E === "loading" || E === "interactive" && w && w.defer ? document.addEventListener("DOMContentLoaded",
|
|
4329
|
+
E === "loading" || E === "interactive" && w && w.defer ? document.addEventListener("DOMContentLoaded", C) : window.requestAnimationFrame ? window.requestAnimationFrame(C) : window.setTimeout(C, 16);
|
|
4330
4330
|
}
|
|
4331
4331
|
return l;
|
|
4332
4332
|
}(n);
|
|
@@ -4550,10 +4550,10 @@ const x1 = /* @__PURE__ */ N1(z1), V1 = {
|
|
|
4550
4550
|
"textSize",
|
|
4551
4551
|
"className"
|
|
4552
4552
|
]);
|
|
4553
|
-
const u = "pds-skeleton", p = `${u}--${s}`, $ = n ? `pds-pulse pds-pulse--${t}` : `${u}--${t}`,
|
|
4553
|
+
const u = "pds-skeleton", p = `${u}--${s}`, $ = n ? `pds-pulse pds-pulse--${t}` : `${u}--${t}`, _ = ["text-block", "code-block", "code-block-prefix"], w = a != null && a.height ? typeof a.height == "number" ? `${a.height}rem` : `${_t[`SPACING_${a.height.toUpperCase()}`]}rem` : "1rem", C = a != null && a.width ? typeof a.width == "number" ? `${a.width}rem` : `${_t[`SPACING_${a.width.toUpperCase()}`]}rem` : "100%";
|
|
4554
4554
|
let E = {
|
|
4555
4555
|
height: w,
|
|
4556
|
-
width:
|
|
4556
|
+
width: C
|
|
4557
4557
|
};
|
|
4558
4558
|
s === "circular" && (E = ae(y({}, E), {
|
|
4559
4559
|
width: E.height
|
|
@@ -4572,15 +4572,15 @@ const x1 = /* @__PURE__ */ N1(z1), V1 = {
|
|
|
4572
4572
|
), v = Math.max(1, Math.min(d, s === "code-block" || s === "code-block-prefix" ? 15 : 5));
|
|
4573
4573
|
let b = `${Et[`TYPE_SCALE_${c.toUpperCase()}`] * 0.75}rem`;
|
|
4574
4574
|
(s === "code-block" || s === "code-block-prefix") && (b = `${Et[`TYPE_SCALE_${c.toUpperCase()}`] * 1.25}rem`);
|
|
4575
|
-
const
|
|
4575
|
+
const H = `calc(var(--pds-typography-size-${c}) * 0.75)`, M = (x) => {
|
|
4576
4576
|
if (s === "text-block") {
|
|
4577
4577
|
if (r || x === 0)
|
|
4578
|
-
return
|
|
4579
|
-
const
|
|
4580
|
-
return
|
|
4578
|
+
return C;
|
|
4579
|
+
const I = x + 1;
|
|
4580
|
+
return I === 2 ? `calc(${C} * 0.75)` : I % 2 === 1 ? `calc(${C} * 0.85)` : `calc(${C} * 0.75)`;
|
|
4581
4581
|
}
|
|
4582
4582
|
if (s === "code-block" || s === "code-block-prefix")
|
|
4583
|
-
return x === v - 1 ? `calc(${
|
|
4583
|
+
return x === v - 1 ? `calc(${C} * 0.80)` : C;
|
|
4584
4584
|
}, L = () => `var(--pds-typography-size-${c})`, k = (x) => {
|
|
4585
4585
|
if (!(s === "code-block" || s === "code-block-prefix") || v < 5)
|
|
4586
4586
|
return 1;
|
|
@@ -4603,16 +4603,16 @@ const x1 = /* @__PURE__ */ N1(z1), V1 = {
|
|
|
4603
4603
|
// Ensure container takes full width when no width specified
|
|
4604
4604
|
}
|
|
4605
4605
|
}, i),
|
|
4606
|
-
Array.from({ length: v }, (x,
|
|
4606
|
+
Array.from({ length: v }, (x, I) => /* @__PURE__ */ e.createElement(
|
|
4607
4607
|
"div",
|
|
4608
4608
|
{
|
|
4609
|
-
key:
|
|
4609
|
+
key: I,
|
|
4610
4610
|
className: N([`${u}-line`]),
|
|
4611
4611
|
style: s === "code-block-prefix" ? {
|
|
4612
|
-
gap:
|
|
4613
|
-
opacity: k(
|
|
4612
|
+
gap: H,
|
|
4613
|
+
opacity: k(I)
|
|
4614
4614
|
} : {
|
|
4615
|
-
opacity: k(
|
|
4615
|
+
opacity: k(I)
|
|
4616
4616
|
}
|
|
4617
4617
|
},
|
|
4618
4618
|
s === "code-block-prefix" && /* @__PURE__ */ e.createElement(
|
|
@@ -4634,14 +4634,14 @@ const x1 = /* @__PURE__ */ N1(z1), V1 = {
|
|
|
4634
4634
|
{
|
|
4635
4635
|
className: N([u, $, p]),
|
|
4636
4636
|
style: {
|
|
4637
|
-
width: s === "code-block-prefix" ? `calc(${
|
|
4637
|
+
width: s === "code-block-prefix" ? `calc(${M(I)} - ${L()} - ${H})` : M(I),
|
|
4638
4638
|
height: `var(--pds-typography-size-${c})`
|
|
4639
4639
|
}
|
|
4640
4640
|
}
|
|
4641
4641
|
)
|
|
4642
4642
|
))
|
|
4643
4643
|
);
|
|
4644
|
-
return
|
|
4644
|
+
return _.includes(s) ? z : h;
|
|
4645
4645
|
};
|
|
4646
4646
|
(function(t) {
|
|
4647
4647
|
var n = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", s = {
|
|
@@ -4904,8 +4904,8 @@ const x1 = /* @__PURE__ */ N1(z1), V1 = {
|
|
|
4904
4904
|
value: n
|
|
4905
4905
|
});
|
|
4906
4906
|
})(Prism);
|
|
4907
|
-
const ds = (
|
|
4908
|
-
var E =
|
|
4907
|
+
const ds = (C) => {
|
|
4908
|
+
var E = C, {
|
|
4909
4909
|
code: t,
|
|
4910
4910
|
colorType: n = "dark",
|
|
4911
4911
|
copyButtonLabel: s = "Copy to clipboard",
|
|
@@ -4920,7 +4920,7 @@ const ds = (_) => {
|
|
|
4920
4920
|
promptSymbol: u = "$",
|
|
4921
4921
|
renderAsLegacy: p = !1,
|
|
4922
4922
|
shouldWrap: $ = !1,
|
|
4923
|
-
className:
|
|
4923
|
+
className: _
|
|
4924
4924
|
} = E, w = D(E, [
|
|
4925
4925
|
"code",
|
|
4926
4926
|
"colorType",
|
|
@@ -4940,7 +4940,7 @@ const ds = (_) => {
|
|
|
4940
4940
|
]);
|
|
4941
4941
|
const h = "pds-code-block", o = `${h}--${n}`, f = $ ? `${h}__line-wrapped` : "", v = {};
|
|
4942
4942
|
c && (v.height = `${c}rem`), g && (v.maxHeight = `${g}rem`);
|
|
4943
|
-
const b = n === "dark" ? "reverse" : "standard",
|
|
4943
|
+
const b = n === "dark" ? "reverse" : "standard", H = n === "dark" ? V1 : S1, M = ["bash", "diff", "twig"], L = /* @__PURE__ */ e.createElement("div", { className: `${h}__code` }, /* @__PURE__ */ e.createElement(
|
|
4944
4944
|
an,
|
|
4945
4945
|
{
|
|
4946
4946
|
className: `${h}__skeleton`,
|
|
@@ -4972,7 +4972,7 @@ const ds = (_) => {
|
|
|
4972
4972
|
return /* @__PURE__ */ e.createElement(
|
|
4973
4973
|
"div",
|
|
4974
4974
|
y({
|
|
4975
|
-
className: N([h, o,
|
|
4975
|
+
className: N([h, o, _ != null ? _ : ""]),
|
|
4976
4976
|
style: v
|
|
4977
4977
|
}, w),
|
|
4978
4978
|
l ? L : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("pre", { className: `${h}__code`, tabIndex: 0 }, r || d ? r ? /* @__PURE__ */ e.createElement(e.Fragment, null, z(t)) : /* @__PURE__ */ e.createElement(e.Fragment, null, x(t)) : /* @__PURE__ */ e.createElement(
|
|
@@ -4991,11 +4991,11 @@ const ds = (_) => {
|
|
|
4991
4991
|
)))
|
|
4992
4992
|
);
|
|
4993
4993
|
}
|
|
4994
|
-
const
|
|
4994
|
+
const I = /* @__PURE__ */ e.createElement(h2.LineContent, null, /* @__PURE__ */ e.createElement(h2.Token, null)), T = /* @__PURE__ */ e.createElement("div", { className: `${h}__line ${f}` }, /* @__PURE__ */ e.createElement(h2.LineNumber, { className: `${h}__number` }), I), B = /* @__PURE__ */ e.createElement("div", { className: `${h}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${h}__prompt` }, u), I);
|
|
4995
4995
|
return /* @__PURE__ */ e.createElement(
|
|
4996
4996
|
"div",
|
|
4997
4997
|
y({
|
|
4998
|
-
className: N([h, o,
|
|
4998
|
+
className: N([h, o, _ != null ? _ : ""]),
|
|
4999
4999
|
style: v
|
|
5000
5000
|
}, w),
|
|
5001
5001
|
l ? L : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -5003,10 +5003,10 @@ const ds = (_) => {
|
|
|
5003
5003
|
{
|
|
5004
5004
|
code: t,
|
|
5005
5005
|
language: i || "",
|
|
5006
|
-
theme:
|
|
5007
|
-
prism:
|
|
5006
|
+
theme: H,
|
|
5007
|
+
prism: M.includes(i) ? x1 : void 0
|
|
5008
5008
|
},
|
|
5009
|
-
/* @__PURE__ */ e.createElement(h2.Code, { className: `${h}__code`, tabIndex: 0 }, r || d ? r ? T : B :
|
|
5009
|
+
/* @__PURE__ */ e.createElement(h2.Code, { className: `${h}__code`, tabIndex: 0 }, r || d ? r ? T : B : I)
|
|
5010
5010
|
), a && /* @__PURE__ */ e.createElement("div", { className: `${h}__copy` }, /* @__PURE__ */ e.createElement(
|
|
5011
5011
|
ht,
|
|
5012
5012
|
{
|
|
@@ -5219,20 +5219,20 @@ const ds = (_) => {
|
|
|
5219
5219
|
"imageMarginLeft",
|
|
5220
5220
|
"className"
|
|
5221
5221
|
]);
|
|
5222
|
-
let
|
|
5222
|
+
let _ = !1;
|
|
5223
5223
|
const w = be(ye);
|
|
5224
|
-
w && (
|
|
5225
|
-
const
|
|
5224
|
+
w && (_ = w.isMobile);
|
|
5225
|
+
const C = "pds-horizontal-empty-state", E = `${C}--${t}`, h = _ ? `${C}--isMobile` : null, o = a ? `${C}--panel` : null, f = l ? `${C}--video` : null, v = {
|
|
5226
5226
|
width: i,
|
|
5227
5227
|
marginLeft: m
|
|
5228
5228
|
};
|
|
5229
|
-
typeof c == "string" ? c = /* @__PURE__ */ e.createElement("p", { className: `${
|
|
5230
|
-
const b = l && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5229
|
+
typeof c == "string" ? c = /* @__PURE__ */ e.createElement("p", { className: `${C}__message` }, c) : c = /* @__PURE__ */ e.createElement("div", { className: `${C}__message` }, c);
|
|
5230
|
+
const b = l && /* @__PURE__ */ e.createElement("div", { className: `${C}__media` }, /* @__PURE__ */ e.createElement(rn, { platform: l.platform, videoId: l.videoId }));
|
|
5231
5231
|
return /* @__PURE__ */ e.createElement(
|
|
5232
5232
|
"div",
|
|
5233
5233
|
y({
|
|
5234
5234
|
className: N([
|
|
5235
|
-
|
|
5235
|
+
C,
|
|
5236
5236
|
E,
|
|
5237
5237
|
h,
|
|
5238
5238
|
o,
|
|
@@ -5240,18 +5240,18 @@ const ds = (_) => {
|
|
|
5240
5240
|
g != null ? g : ""
|
|
5241
5241
|
])
|
|
5242
5242
|
}, u),
|
|
5243
|
-
|
|
5244
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5243
|
+
_ && l && b,
|
|
5244
|
+
/* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, /* @__PURE__ */ e.createElement(
|
|
5245
5245
|
Qe,
|
|
5246
5246
|
{
|
|
5247
|
-
baseClass:
|
|
5247
|
+
baseClass: C,
|
|
5248
5248
|
className: `${a ? "pds-ts-2xl" : "pds-ts-4xl"} pds-fw-bold`,
|
|
5249
5249
|
level: d
|
|
5250
5250
|
},
|
|
5251
5251
|
r
|
|
5252
|
-
), c && c, n && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5253
|
-
!
|
|
5254
|
-
!
|
|
5252
|
+
), c && c, n && /* @__PURE__ */ e.createElement("div", { className: `${C}__cta` }, n)),
|
|
5253
|
+
!_ && s && !l && /* @__PURE__ */ e.createElement("div", { className: `${C}__media`, style: v }, typeof s == "string" ? /* @__PURE__ */ e.createElement("img", { className: `${C}__image`, src: s, alt: "" }) : s),
|
|
5254
|
+
!_ && l && b
|
|
5255
5255
|
);
|
|
5256
5256
|
}, fs = (m) => {
|
|
5257
5257
|
var g = m, {
|
|
@@ -5371,8 +5371,8 @@ const ds = (_) => {
|
|
|
5371
5371
|
"className"
|
|
5372
5372
|
]);
|
|
5373
5373
|
const l = "pds-flow-steps", i = `${l}--${t}`, m = n === "horizontal" ? `${l}--horizontal` : "", g = s.map(({ header: u, content: p }, $) => {
|
|
5374
|
-
const
|
|
5375
|
-
return /* @__PURE__ */ e.createElement("li", { key: $, className: E }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
5374
|
+
const _ = /* @__PURE__ */ e.createElement("div", { className: `${l}__number` }, /* @__PURE__ */ e.createElement("span", null, $ + 1)), w = /* @__PURE__ */ e.createElement("div", { className: `${l}__header` }, u), C = p ? /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, p) : null, E = `${l}__step`;
|
|
5375
|
+
return /* @__PURE__ */ e.createElement("li", { key: $, className: E }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, _, /* @__PURE__ */ e.createElement("div", { className: `${l}__content-group` }, w, C)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}__header-group` }, _, w), C));
|
|
5376
5376
|
});
|
|
5377
5377
|
return /* @__PURE__ */ e.createElement(
|
|
5378
5378
|
"ol",
|
|
@@ -5447,17 +5447,17 @@ const ds = (_) => {
|
|
|
5447
5447
|
"legalLinks",
|
|
5448
5448
|
"className"
|
|
5449
5449
|
]);
|
|
5450
|
-
const i = "pds-site-footer", m = s ? `${i}--border` : null, g = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", u = (/* @__PURE__ */ new Date()).getFullYear(), p = a.includes("privacy"), $ = a.includes("dataSubjectRequest"),
|
|
5450
|
+
const i = "pds-site-footer", m = s ? `${i}--border` : null, g = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", u = (/* @__PURE__ */ new Date()).getFullYear(), p = a.includes("privacy"), $ = a.includes("dataSubjectRequest"), _ = a.includes("cookiePolicy"), w = a.includes("termsOfUse"), C = a.includes("acceptableUse"), E = a.includes("accessibilityStatement");
|
|
5451
5451
|
return /* @__PURE__ */ e.createElement(
|
|
5452
5452
|
"footer",
|
|
5453
5453
|
y({
|
|
5454
5454
|
className: N([i, m, r != null ? r : ""])
|
|
5455
5455
|
}, d),
|
|
5456
|
-
/* @__PURE__ */ e.createElement("div", { className: g }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", u, " Pantheon Systems, Inc."), p && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), $ && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
5456
|
+
/* @__PURE__ */ e.createElement("div", { className: g }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", u, " Pantheon Systems, Inc."), p && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), $ && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), w && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), C && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
5457
5457
|
);
|
|
5458
5458
|
}, dn = Ue(
|
|
5459
|
-
(
|
|
5460
|
-
var
|
|
5459
|
+
(H, b) => {
|
|
5460
|
+
var M = H, {
|
|
5461
5461
|
checked: t,
|
|
5462
5462
|
defaultChecked: n,
|
|
5463
5463
|
disabled: s,
|
|
@@ -5472,14 +5472,14 @@ const ds = (_) => {
|
|
|
5472
5472
|
onBlur: u,
|
|
5473
5473
|
onChange: p,
|
|
5474
5474
|
onFocus: $,
|
|
5475
|
-
required:
|
|
5475
|
+
required: _,
|
|
5476
5476
|
showLabel: w = !0,
|
|
5477
|
-
size:
|
|
5477
|
+
size: C = "M",
|
|
5478
5478
|
validationMessage: E,
|
|
5479
5479
|
validationStatus: h,
|
|
5480
5480
|
value: o,
|
|
5481
5481
|
className: f
|
|
5482
|
-
} =
|
|
5482
|
+
} = M, v = D(M, [
|
|
5483
5483
|
"checked",
|
|
5484
5484
|
"defaultChecked",
|
|
5485
5485
|
"disabled",
|
|
@@ -5502,11 +5502,11 @@ const ds = (_) => {
|
|
|
5502
5502
|
"value",
|
|
5503
5503
|
"className"
|
|
5504
5504
|
]);
|
|
5505
|
-
const L = c ? { width: `${c / 16}rem` } : null, k = "pds-checkbox", z = s ? te.disabled : null, x = h === "error" ? te.error : null,
|
|
5505
|
+
const L = c ? { width: `${c / 16}rem` } : null, k = "pds-checkbox", z = s ? te.disabled : null, x = h === "error" ? te.error : null, I = g > 0 ? `${k}--indent-${g}` : null, T = _ && !s ? te.required : null, B = C === "S" ? `${k}--sm` : null, R = h === "success" ? te.success : null, F = E || i, P = typeof t != "undefined", q = typeof n != "undefined", [X, se] = K(
|
|
5506
5506
|
q ? n : !1
|
|
5507
5507
|
), Q = t || X, J = (S) => {
|
|
5508
5508
|
P || se(S.target.checked), p && p(S);
|
|
5509
|
-
}, Y = `${k}__box`, Z = r ? null : Q ? `${Y}--checked` : null,
|
|
5509
|
+
}, Y = `${k}__box`, Z = r ? null : Q ? `${Y}--checked` : null, A = r ? `${Y}--indeterminate` : null, V = K2(() => {
|
|
5510
5510
|
if (r)
|
|
5511
5511
|
return /* @__PURE__ */ e.createElement(
|
|
5512
5512
|
G,
|
|
@@ -5536,7 +5536,7 @@ const ds = (_) => {
|
|
|
5536
5536
|
x,
|
|
5537
5537
|
R,
|
|
5538
5538
|
B,
|
|
5539
|
-
|
|
5539
|
+
I,
|
|
5540
5540
|
f != null ? f : ""
|
|
5541
5541
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5542
5542
|
style: c ? L : null
|
|
@@ -5552,7 +5552,7 @@ const ds = (_) => {
|
|
|
5552
5552
|
"aria-checked": r ? "mixed" : Q ? "true" : "false"
|
|
5553
5553
|
}, o ? { value: o } : {}), {
|
|
5554
5554
|
disabled: s,
|
|
5555
|
-
required:
|
|
5555
|
+
required: _,
|
|
5556
5556
|
onBlur: u,
|
|
5557
5557
|
onChange: J,
|
|
5558
5558
|
onFocus: $,
|
|
@@ -5565,7 +5565,7 @@ const ds = (_) => {
|
|
|
5565
5565
|
className: N([
|
|
5566
5566
|
Y,
|
|
5567
5567
|
Z,
|
|
5568
|
-
|
|
5568
|
+
A
|
|
5569
5569
|
])
|
|
5570
5570
|
},
|
|
5571
5571
|
/* @__PURE__ */ e.createElement(V, null)
|
|
@@ -5579,7 +5579,7 @@ const ds = (_) => {
|
|
|
5579
5579
|
},
|
|
5580
5580
|
l,
|
|
5581
5581
|
" ",
|
|
5582
|
-
|
|
5582
|
+
_ && !s && /* @__PURE__ */ e.createElement(St, null)
|
|
5583
5583
|
))),
|
|
5584
5584
|
F && /* @__PURE__ */ e.createElement(
|
|
5585
5585
|
Pe,
|
|
@@ -5593,8 +5593,8 @@ const ds = (_) => {
|
|
|
5593
5593
|
)
|
|
5594
5594
|
);
|
|
5595
5595
|
}
|
|
5596
|
-
), vs = (
|
|
5597
|
-
var w =
|
|
5596
|
+
), vs = (_) => {
|
|
5597
|
+
var w = _, {
|
|
5598
5598
|
children: t,
|
|
5599
5599
|
disabled: n = !1,
|
|
5600
5600
|
fieldsetProps: s,
|
|
@@ -5623,7 +5623,7 @@ const ds = (_) => {
|
|
|
5623
5623
|
"validationStatus",
|
|
5624
5624
|
"className"
|
|
5625
5625
|
]);
|
|
5626
|
-
const
|
|
5626
|
+
const C = r ? { width: `${r / 16}rem` } : null, E = "pds-checkbox-group", h = n ? te.disabled : null, o = l && !n ? te.required : null, f = u === "error" ? te.error : null, v = u === "success" ? te.success : null, b = g || c;
|
|
5627
5627
|
return /* @__PURE__ */ e.createElement(
|
|
5628
5628
|
"div",
|
|
5629
5629
|
y({
|
|
@@ -5635,7 +5635,7 @@ const ds = (_) => {
|
|
|
5635
5635
|
v,
|
|
5636
5636
|
p != null ? p : ""
|
|
5637
5637
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5638
|
-
style: r ?
|
|
5638
|
+
style: r ? C : null
|
|
5639
5639
|
}, $),
|
|
5640
5640
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${E}__fieldset`, id: a }, s), /* @__PURE__ */ e.createElement(
|
|
5641
5641
|
Be,
|
|
@@ -5660,8 +5660,8 @@ const ds = (_) => {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
)
|
|
5662
5662
|
);
|
|
5663
|
-
}, $s = (
|
|
5664
|
-
var E =
|
|
5663
|
+
}, $s = (C) => {
|
|
5664
|
+
var E = C, {
|
|
5665
5665
|
disabled: t = !1,
|
|
5666
5666
|
fieldsetProps: n,
|
|
5667
5667
|
id: s,
|
|
@@ -5676,7 +5676,7 @@ const ds = (_) => {
|
|
|
5676
5676
|
tooltipText: u = null,
|
|
5677
5677
|
validationMessage: p,
|
|
5678
5678
|
validationStatus: $,
|
|
5679
|
-
className:
|
|
5679
|
+
className: _
|
|
5680
5680
|
} = E, w = D(E, [
|
|
5681
5681
|
"disabled",
|
|
5682
5682
|
"fieldsetProps",
|
|
@@ -5694,7 +5694,7 @@ const ds = (_) => {
|
|
|
5694
5694
|
"validationStatus",
|
|
5695
5695
|
"className"
|
|
5696
5696
|
]);
|
|
5697
|
-
const h = a ? { width: `${a / 16}rem` } : null, o = "pds-checkbox-group", f = t ? te.disabled : null, v = m && !t ? te.required : null, b = $ === "error" ? te.error : null,
|
|
5697
|
+
const h = a ? { width: `${a / 16}rem` } : null, o = "pds-checkbox-group", f = t ? te.disabled : null, v = m && !t ? te.required : null, b = $ === "error" ? te.error : null, H = $ === "success" ? te.success : null, M = p || d;
|
|
5698
5698
|
i.map((T) => {
|
|
5699
5699
|
T.id || (T.id = T.value);
|
|
5700
5700
|
});
|
|
@@ -5709,7 +5709,7 @@ const ds = (_) => {
|
|
|
5709
5709
|
i.map((T) => {
|
|
5710
5710
|
k.includes(T.value) ? T.checked = !0 : T.checked = !1;
|
|
5711
5711
|
});
|
|
5712
|
-
const
|
|
5712
|
+
const I = () => {
|
|
5713
5713
|
c && setTimeout(() => {
|
|
5714
5714
|
i.some((T) => T.id === document.activeElement.id) || c(k);
|
|
5715
5715
|
}, 1500);
|
|
@@ -5722,8 +5722,8 @@ const ds = (_) => {
|
|
|
5722
5722
|
f,
|
|
5723
5723
|
v,
|
|
5724
5724
|
b,
|
|
5725
|
-
|
|
5726
|
-
|
|
5725
|
+
H,
|
|
5726
|
+
_ != null ? _ : ""
|
|
5727
5727
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5728
5728
|
style: a ? h : null
|
|
5729
5729
|
}, w),
|
|
@@ -5750,14 +5750,14 @@ const ds = (_) => {
|
|
|
5750
5750
|
disabled: T.disabled || t,
|
|
5751
5751
|
className: `${o}__checkbox`,
|
|
5752
5752
|
onChange: x,
|
|
5753
|
-
onBlur:
|
|
5753
|
+
onBlur: I
|
|
5754
5754
|
}
|
|
5755
5755
|
)))),
|
|
5756
|
-
|
|
5756
|
+
M && /* @__PURE__ */ e.createElement(
|
|
5757
5757
|
Pe,
|
|
5758
5758
|
{
|
|
5759
5759
|
id: s,
|
|
5760
|
-
message:
|
|
5760
|
+
message: M,
|
|
5761
5761
|
hasValidationMessage: !!p,
|
|
5762
5762
|
validationMessageHasDecorators: !0,
|
|
5763
5763
|
validationStatus: $
|
|
@@ -5765,7 +5765,7 @@ const ds = (_) => {
|
|
|
5765
5765
|
)
|
|
5766
5766
|
);
|
|
5767
5767
|
}, mn = Ue(
|
|
5768
|
-
(T,
|
|
5768
|
+
(T, I) => {
|
|
5769
5769
|
var B = T, {
|
|
5770
5770
|
defaultValue: t,
|
|
5771
5771
|
disabled: n = !1,
|
|
@@ -5786,17 +5786,17 @@ const ds = (_) => {
|
|
|
5786
5786
|
loadingText: u = "Loading results...",
|
|
5787
5787
|
message: p,
|
|
5788
5788
|
noResultsText: $ = "No results found",
|
|
5789
|
-
onChange:
|
|
5789
|
+
onChange: _,
|
|
5790
5790
|
onBlur: w,
|
|
5791
|
-
onClear:
|
|
5791
|
+
onClear: C,
|
|
5792
5792
|
onFocus: E,
|
|
5793
5793
|
onOptionSelect: h,
|
|
5794
5794
|
options: o,
|
|
5795
5795
|
placeholder: f,
|
|
5796
5796
|
required: v = !1,
|
|
5797
5797
|
showLabel: b = !0,
|
|
5798
|
-
tooltipText:
|
|
5799
|
-
value:
|
|
5798
|
+
tooltipText: H = null,
|
|
5799
|
+
value: M,
|
|
5800
5800
|
validationMessage: L,
|
|
5801
5801
|
validationStatus: k,
|
|
5802
5802
|
className: z
|
|
@@ -5833,12 +5833,12 @@ const ds = (_) => {
|
|
|
5833
5833
|
const R = Je(l), F = "pds-combobox", P = n ? te.disabled : null, q = v && !n ? te.required : null, X = k === "error" ? te.error : null, se = k === "success" ? te.success : null;
|
|
5834
5834
|
let Q = null;
|
|
5835
5835
|
r && (Q = "search"), k === "error" && (Q = "error"), k === "success" && (Q = "success");
|
|
5836
|
-
const J = L || p, Y = typeof
|
|
5836
|
+
const J = L || p, Y = typeof M != "undefined", Z = typeof t != "undefined", A = (U) => {
|
|
5837
5837
|
const ne = o.find((ie) => ie.value === U);
|
|
5838
5838
|
return ne ? ne.label : "";
|
|
5839
5839
|
}, [V, S] = K(!1), [O, j] = K(null), [ee, ue] = K(
|
|
5840
|
-
Z ?
|
|
5841
|
-
), [de, Ce] = K([]), _e = Y ?
|
|
5840
|
+
Z ? A(t) : ""
|
|
5841
|
+
), [de, Ce] = K([]), _e = Y ? M : ee, re = oe([]), { context: he, refs: pe } = Ae({
|
|
5842
5842
|
open: V,
|
|
5843
5843
|
onOpenChange: S,
|
|
5844
5844
|
whileElementsMounted: Fe
|
|
@@ -5867,10 +5867,10 @@ const ds = (_) => {
|
|
|
5867
5867
|
S(!V);
|
|
5868
5868
|
}, n2 = () => {
|
|
5869
5869
|
var U;
|
|
5870
|
-
!Y && ue(""), j(null), S(!0), (U = pe.domReference.current) == null || U.focus(),
|
|
5870
|
+
!Y && ue(""), j(null), S(!0), (U = pe.domReference.current) == null || U.focus(), C && C();
|
|
5871
5871
|
}, $e = (U) => {
|
|
5872
5872
|
let ne = U.target.value;
|
|
5873
|
-
|
|
5873
|
+
_ && _(U), Y || (ne.length > 0 && (ne = ne.trimStart()), ue(ne)), ne ? (j(null), S(!0)) : S(!1);
|
|
5874
5874
|
}, He = (U) => {
|
|
5875
5875
|
w && w(U);
|
|
5876
5876
|
}, ve = (U) => {
|
|
@@ -5941,7 +5941,7 @@ const ds = (_) => {
|
|
|
5941
5941
|
id: c,
|
|
5942
5942
|
label: m,
|
|
5943
5943
|
showLabel: b,
|
|
5944
|
-
tooltipText:
|
|
5944
|
+
tooltipText: H,
|
|
5945
5945
|
required: v,
|
|
5946
5946
|
disabled: n
|
|
5947
5947
|
}
|
|
@@ -5950,7 +5950,7 @@ const ds = (_) => {
|
|
|
5950
5950
|
"span",
|
|
5951
5951
|
{
|
|
5952
5952
|
className: `${F}__input-wrapper`,
|
|
5953
|
-
ref:
|
|
5953
|
+
ref: I,
|
|
5954
5954
|
id: c,
|
|
5955
5955
|
"aria-disabled": n ? !0 : null,
|
|
5956
5956
|
"aria-required": v ? !0 : null,
|
|
@@ -6049,8 +6049,8 @@ const ds = (_) => {
|
|
|
6049
6049
|
(d) => d.id === r.id
|
|
6050
6050
|
)
|
|
6051
6051
|
}));
|
|
6052
|
-
}, bs = (
|
|
6053
|
-
var E =
|
|
6052
|
+
}, bs = (C) => {
|
|
6053
|
+
var E = C, {
|
|
6054
6054
|
disabled: t = !1,
|
|
6055
6055
|
id: n,
|
|
6056
6056
|
initialSelectedItems: s = [],
|
|
@@ -6068,7 +6068,7 @@ const ds = (_) => {
|
|
|
6068
6068
|
placeholder: u = "Filter",
|
|
6069
6069
|
required: p = !1,
|
|
6070
6070
|
showLabel: $ = !0,
|
|
6071
|
-
className:
|
|
6071
|
+
className: _
|
|
6072
6072
|
} = E, w = D(E, [
|
|
6073
6073
|
"disabled",
|
|
6074
6074
|
"id",
|
|
@@ -6086,15 +6086,15 @@ const ds = (_) => {
|
|
|
6086
6086
|
"showLabel",
|
|
6087
6087
|
"className"
|
|
6088
6088
|
]);
|
|
6089
|
-
const h = Je(a), o = "pds-combobox-multi", f = t ? te.disabled : null, v = p && !t ? te.required : null, [b,
|
|
6089
|
+
const h = Je(a), o = "pds-combobox-multi", f = t ? te.disabled : null, v = p && !t ? te.required : null, [b, H] = K(""), [M, L] = K(s), [k, z] = K(
|
|
6090
6090
|
null
|
|
6091
6091
|
), x = kt(
|
|
6092
|
-
() => un(g,
|
|
6093
|
-
[g,
|
|
6094
|
-
),
|
|
6092
|
+
() => un(g, M, b),
|
|
6093
|
+
[g, M, b]
|
|
6094
|
+
), I = (S) => {
|
|
6095
6095
|
L(S), m == null || m(S);
|
|
6096
6096
|
}, { getSelectedItemProps: T, getDropdownProps: B, removeSelectedItem: R } = f2({
|
|
6097
|
-
selectedItems:
|
|
6097
|
+
selectedItems: M,
|
|
6098
6098
|
onStateChange: ({ selectedItems: S, type: O }) => {
|
|
6099
6099
|
if (!t)
|
|
6100
6100
|
switch (O) {
|
|
@@ -6102,7 +6102,7 @@ const ds = (_) => {
|
|
|
6102
6102
|
case f2.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
6103
6103
|
case f2.stateChangeTypes.DropdownKeyDownBackspace:
|
|
6104
6104
|
case f2.stateChangeTypes.FunctionRemoveSelectedItem:
|
|
6105
|
-
|
|
6105
|
+
I(S || []);
|
|
6106
6106
|
break;
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
@@ -6142,35 +6142,35 @@ const ds = (_) => {
|
|
|
6142
6142
|
case l2.stateChangeTypes.InputKeyDownEnter:
|
|
6143
6143
|
case l2.stateChangeTypes.ItemClick:
|
|
6144
6144
|
case l2.stateChangeTypes.InputBlur:
|
|
6145
|
-
j && (j.isAlreadySelected ?
|
|
6146
|
-
|
|
6147
|
-
) :
|
|
6145
|
+
j && (j.isAlreadySelected ? I(
|
|
6146
|
+
M.filter((ee) => ee.id !== j.id)
|
|
6147
|
+
) : I([...M, j]), H(""), z(null));
|
|
6148
6148
|
break;
|
|
6149
6149
|
case l2.stateChangeTypes.InputChange:
|
|
6150
|
-
|
|
6150
|
+
H(S || ""), z(null);
|
|
6151
6151
|
break;
|
|
6152
6152
|
}
|
|
6153
6153
|
}
|
|
6154
6154
|
}), Y = () => {
|
|
6155
6155
|
if (k === null)
|
|
6156
|
-
z(
|
|
6156
|
+
z(M.length - 1);
|
|
6157
6157
|
else {
|
|
6158
|
-
const S = [...
|
|
6159
|
-
S.splice(k, 1),
|
|
6158
|
+
const S = [...M];
|
|
6159
|
+
S.splice(k, 1), I(S), z(null);
|
|
6160
6160
|
}
|
|
6161
6161
|
}, Z = (S) => {
|
|
6162
6162
|
var O, j;
|
|
6163
|
-
if (!t && ((S.key === "Backspace" || S.key === "Delete") && !b &&
|
|
6163
|
+
if (!t && ((S.key === "Backspace" || S.key === "Delete") && !b && M.length > 0 && (S.preventDefault(), Y()), S.key === "Enter" && k !== null && (S.preventDefault(), Y()), S.key === "ArrowDown" && !F)) {
|
|
6164
6164
|
S.preventDefault();
|
|
6165
6165
|
const ee = S.nativeEvent;
|
|
6166
6166
|
(j = (O = X()).onClick) == null || j.call(O, ee);
|
|
6167
6167
|
}
|
|
6168
|
-
},
|
|
6168
|
+
}, A = Q(ae(y({}, B({
|
|
6169
6169
|
preventKeyAction: F
|
|
6170
6170
|
})), {
|
|
6171
6171
|
disabled: t,
|
|
6172
6172
|
onKeyDown: Z
|
|
6173
|
-
})), V =
|
|
6173
|
+
})), V = M.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-item` }, M.length - 1) : M.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-item` }, M.length - 1)) : M.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-item` }, M.length - 1)) : "";
|
|
6174
6174
|
return /* @__PURE__ */ e.createElement(
|
|
6175
6175
|
"div",
|
|
6176
6176
|
y({
|
|
@@ -6179,7 +6179,7 @@ const ds = (_) => {
|
|
|
6179
6179
|
o,
|
|
6180
6180
|
f,
|
|
6181
6181
|
v,
|
|
6182
|
-
|
|
6182
|
+
_ != null ? _ : ""
|
|
6183
6183
|
]),
|
|
6184
6184
|
style: a ? h : null
|
|
6185
6185
|
}, w),
|
|
@@ -6202,8 +6202,8 @@ const ds = (_) => {
|
|
|
6202
6202
|
tabIndex: 0,
|
|
6203
6203
|
onKeyDown: Z
|
|
6204
6204
|
},
|
|
6205
|
-
|
|
6206
|
-
|
|
6205
|
+
M.length > 1 && /* @__PURE__ */ e.createElement("div", { className: `${o}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${o}__counter-wrapper` }, V)),
|
|
6206
|
+
M.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${o}__items-wrapper` }, M.map((S, O) => /* @__PURE__ */ e.createElement(
|
|
6207
6207
|
"span",
|
|
6208
6208
|
y({
|
|
6209
6209
|
className: `
|
|
@@ -6250,7 +6250,7 @@ const ds = (_) => {
|
|
|
6250
6250
|
placeholder: u,
|
|
6251
6251
|
className: `${o}__dropdown-input`,
|
|
6252
6252
|
"aria-label": c.inputInstructions
|
|
6253
|
-
},
|
|
6253
|
+
}, A), {
|
|
6254
6254
|
onClick: (S) => {
|
|
6255
6255
|
S.stopPropagation();
|
|
6256
6256
|
}
|
|
@@ -6295,9 +6295,9 @@ const ds = (_) => {
|
|
|
6295
6295
|
onFileChange: u,
|
|
6296
6296
|
required: p = !1,
|
|
6297
6297
|
showFullPath: $,
|
|
6298
|
-
showLabel:
|
|
6298
|
+
showLabel: _ = !0,
|
|
6299
6299
|
tooltipText: w = null,
|
|
6300
|
-
validationMessage:
|
|
6300
|
+
validationMessage: C,
|
|
6301
6301
|
validationStatus: E,
|
|
6302
6302
|
className: h
|
|
6303
6303
|
} = b, o = D(b, [
|
|
@@ -6321,19 +6321,19 @@ const ds = (_) => {
|
|
|
6321
6321
|
"validationStatus",
|
|
6322
6322
|
"className"
|
|
6323
6323
|
]);
|
|
6324
|
-
const [
|
|
6324
|
+
const [H, M] = K(!1), [L, k] = K(
|
|
6325
6325
|
!!(L2 && n)
|
|
6326
|
-
), z = Je(c), x = "pds-file-upload",
|
|
6326
|
+
), z = Je(c), x = "pds-file-upload", I = s ? te.disabled : null, T = p && !s ? te.required : null, B = E === "error" ? te.error : null, R = E === "success" ? te.success : null, F = L ? `${x}--safari-default` : null;
|
|
6327
6327
|
let P = null;
|
|
6328
6328
|
E === "error" && (P = "error"), E === "success" && (P = "success");
|
|
6329
|
-
const q =
|
|
6329
|
+
const q = C || i, X = n ? [n] : null, se = n ? n.split("/").pop() : null, Q = $ ? n : se, J = n ? new File(X, Q) : null;
|
|
6330
6330
|
ce(() => {
|
|
6331
6331
|
const V = new DataTransfer();
|
|
6332
6332
|
if (J && V.items.add(J), V.files.length > 0) {
|
|
6333
6333
|
const S = document.getElementById(
|
|
6334
6334
|
`${r}--input`
|
|
6335
6335
|
);
|
|
6336
|
-
S.files = V.files, L2 && (S.dataset.file = `${Q}`),
|
|
6336
|
+
S.files = V.files, L2 && (S.dataset.file = `${Q}`), M(!0);
|
|
6337
6337
|
}
|
|
6338
6338
|
}, [n, $]);
|
|
6339
6339
|
const Y = () => {
|
|
@@ -6342,18 +6342,18 @@ const ds = (_) => {
|
|
|
6342
6342
|
);
|
|
6343
6343
|
if (!V || !n) return;
|
|
6344
6344
|
const S = new DataTransfer();
|
|
6345
|
-
S.items.add(J), V.files = S.files,
|
|
6345
|
+
S.items.add(J), V.files = S.files, M(!0);
|
|
6346
6346
|
}, Z = (V) => {
|
|
6347
6347
|
if (V.target.files.length === 0) {
|
|
6348
|
-
n ? Y() :
|
|
6348
|
+
n ? Y() : M(!1);
|
|
6349
6349
|
return;
|
|
6350
6350
|
}
|
|
6351
|
-
L2 && n && (n === V.target.value ? k(!0) : k(!1)), u && u(V.target.files),
|
|
6352
|
-
},
|
|
6351
|
+
L2 && n && (n === V.target.value ? k(!0) : k(!1)), u && u(V.target.files), M(!0);
|
|
6352
|
+
}, A = () => {
|
|
6353
6353
|
const V = document.getElementById(
|
|
6354
6354
|
`${r}--input`
|
|
6355
6355
|
);
|
|
6356
|
-
V.value = "", L2 && k(!1), g && g(),
|
|
6356
|
+
V.value = "", L2 && k(!1), g && g(), M(!1), V.focus();
|
|
6357
6357
|
};
|
|
6358
6358
|
return /* @__PURE__ */ e.createElement(
|
|
6359
6359
|
"div",
|
|
@@ -6362,7 +6362,7 @@ const ds = (_) => {
|
|
|
6362
6362
|
te.base,
|
|
6363
6363
|
x,
|
|
6364
6364
|
F,
|
|
6365
|
-
|
|
6365
|
+
I,
|
|
6366
6366
|
T,
|
|
6367
6367
|
B,
|
|
6368
6368
|
R,
|
|
@@ -6376,7 +6376,7 @@ const ds = (_) => {
|
|
|
6376
6376
|
id: r,
|
|
6377
6377
|
isPseudoLabel: !0,
|
|
6378
6378
|
label: a,
|
|
6379
|
-
showLabel:
|
|
6379
|
+
showLabel: _,
|
|
6380
6380
|
tooltipText: w,
|
|
6381
6381
|
required: p,
|
|
6382
6382
|
disabled: s
|
|
@@ -6386,7 +6386,7 @@ const ds = (_) => {
|
|
|
6386
6386
|
"label",
|
|
6387
6387
|
{
|
|
6388
6388
|
htmlFor: `${r}--input`,
|
|
6389
|
-
className:
|
|
6389
|
+
className: H ? "visually-hidden" : `${x}__input-label`
|
|
6390
6390
|
},
|
|
6391
6391
|
/* @__PURE__ */ e.createElement(G, { iconName: "paperclip", iconSize: "sm" }),
|
|
6392
6392
|
l.chooseFile
|
|
@@ -6405,12 +6405,12 @@ const ds = (_) => {
|
|
|
6405
6405
|
"aria-invalid": E === "error" ? !0 : null,
|
|
6406
6406
|
"aria-describedby": q ? `${r}__message` : null
|
|
6407
6407
|
}, d)
|
|
6408
|
-
),
|
|
6408
|
+
), H && /* @__PURE__ */ e.createElement(
|
|
6409
6409
|
tt,
|
|
6410
6410
|
{
|
|
6411
6411
|
id: r,
|
|
6412
6412
|
clearLabel: l.clearButton,
|
|
6413
|
-
handleClearInput:
|
|
6413
|
+
handleClearInput: A
|
|
6414
6414
|
}
|
|
6415
6415
|
)),
|
|
6416
6416
|
q && /* @__PURE__ */ e.createElement(
|
|
@@ -6418,7 +6418,7 @@ const ds = (_) => {
|
|
|
6418
6418
|
{
|
|
6419
6419
|
id: r,
|
|
6420
6420
|
message: q,
|
|
6421
|
-
hasValidationMessage: !!
|
|
6421
|
+
hasValidationMessage: !!C,
|
|
6422
6422
|
validationMessageHasDecorators: !1,
|
|
6423
6423
|
validationStatus: E
|
|
6424
6424
|
}
|
|
@@ -6433,8 +6433,8 @@ const ds = (_) => {
|
|
|
6433
6433
|
"children",
|
|
6434
6434
|
"className"
|
|
6435
6435
|
]);
|
|
6436
|
-
var $,
|
|
6437
|
-
const d = "pds-input-group", c = [t[0], t[1]], l = ($ = t[0].props.id) != null ? $ : null, i = (
|
|
6436
|
+
var $, _, w, C;
|
|
6437
|
+
const d = "pds-input-group", c = [t[0], t[1]], l = ($ = t[0].props.id) != null ? $ : null, i = (_ = t[0].props.message) != null ? _ : null, m = (w = t[0].props.validationMessage) != null ? w : null, g = (C = t[0].props.validationStatus) != null ? C : null, u = m || i, p = u ? `${d}--has-message` : null;
|
|
6438
6438
|
return /* @__PURE__ */ e.createElement(
|
|
6439
6439
|
"div",
|
|
6440
6440
|
y({
|
|
@@ -6469,9 +6469,9 @@ const ds = (_) => {
|
|
|
6469
6469
|
required: u = !1,
|
|
6470
6470
|
showLabel: p = !0,
|
|
6471
6471
|
tooltipText: $ = null,
|
|
6472
|
-
validationMessage:
|
|
6472
|
+
validationMessage: _,
|
|
6473
6473
|
validationStatus: w,
|
|
6474
|
-
value:
|
|
6474
|
+
value: C,
|
|
6475
6475
|
className: E
|
|
6476
6476
|
} = f, h = D(f, [
|
|
6477
6477
|
"defaultValue",
|
|
@@ -6493,10 +6493,10 @@ const ds = (_) => {
|
|
|
6493
6493
|
"value",
|
|
6494
6494
|
"className"
|
|
6495
6495
|
]);
|
|
6496
|
-
const v = "pds-radio-group", b = n ? te.disabled : null,
|
|
6496
|
+
const v = "pds-radio-group", b = n ? te.disabled : null, H = u && !n ? te.required : null, M = w === "error" ? te.error : null, L = w === "success" ? te.success : null, k = typeof C != "undefined", z = typeof t != "undefined", [x, I] = K(
|
|
6497
6497
|
z ? t : ""
|
|
6498
|
-
), T =
|
|
6499
|
-
k ||
|
|
6498
|
+
), T = _ || c, B = (F) => {
|
|
6499
|
+
k || I(F.target.value), i && i(F), m && m(F.target.value);
|
|
6500
6500
|
}, R = (F) => {
|
|
6501
6501
|
l && l(F);
|
|
6502
6502
|
};
|
|
@@ -6506,8 +6506,8 @@ const ds = (_) => {
|
|
|
6506
6506
|
className: N([
|
|
6507
6507
|
v,
|
|
6508
6508
|
b,
|
|
6509
|
-
M,
|
|
6510
6509
|
H,
|
|
6510
|
+
M,
|
|
6511
6511
|
L,
|
|
6512
6512
|
E != null ? E : ""
|
|
6513
6513
|
]),
|
|
@@ -6541,7 +6541,7 @@ const ds = (_) => {
|
|
|
6541
6541
|
disabled: n || F.disabled,
|
|
6542
6542
|
onBlur: R,
|
|
6543
6543
|
onChange: B,
|
|
6544
|
-
checked: k ?
|
|
6544
|
+
checked: k ? C === F.value : x === F.value
|
|
6545
6545
|
}
|
|
6546
6546
|
),
|
|
6547
6547
|
/* @__PURE__ */ e.createElement("label", { htmlFor: F.id ? F.id : `${a}-option-${P}` }, F.label)
|
|
@@ -6551,7 +6551,7 @@ const ds = (_) => {
|
|
|
6551
6551
|
{
|
|
6552
6552
|
id: a,
|
|
6553
6553
|
message: T,
|
|
6554
|
-
hasValidationMessage: !!
|
|
6554
|
+
hasValidationMessage: !!_,
|
|
6555
6555
|
validationMessageHasDecorators: !0,
|
|
6556
6556
|
validationStatus: w
|
|
6557
6557
|
}
|
|
@@ -6598,9 +6598,9 @@ const ds = (_) => {
|
|
|
6598
6598
|
onLabel: u = "On",
|
|
6599
6599
|
required: p = !1,
|
|
6600
6600
|
showLabel: $ = !0,
|
|
6601
|
-
showStatusLabel:
|
|
6601
|
+
showStatusLabel: _ = !0,
|
|
6602
6602
|
className: w
|
|
6603
|
-
} = o,
|
|
6603
|
+
} = o, C = D(o, [
|
|
6604
6604
|
"checked",
|
|
6605
6605
|
"defaultChecked",
|
|
6606
6606
|
"disabled",
|
|
@@ -6618,8 +6618,8 @@ const ds = (_) => {
|
|
|
6618
6618
|
"showStatusLabel",
|
|
6619
6619
|
"className"
|
|
6620
6620
|
]);
|
|
6621
|
-
const f = Je(d), v = "pds-switch", b = s ? te.disabled : null,
|
|
6622
|
-
|
|
6621
|
+
const f = Je(d), v = "pds-switch", b = s ? te.disabled : null, H = p && !s ? te.required : null, M = typeof t != "undefined", L = l == "below", k = l == "right", z = !M && n ? n : !1, [x, I] = K(z), T = t || x ? u : m, B = (se) => {
|
|
6622
|
+
M || I(se.target.checked), g && g(se);
|
|
6623
6623
|
}, R = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
6624
6624
|
"input",
|
|
6625
6625
|
y({
|
|
@@ -6635,7 +6635,7 @@ const ds = (_) => {
|
|
|
6635
6635
|
checked: t !== void 0 ? t : x,
|
|
6636
6636
|
"aria-describedby": i ? `${a}__message` : null
|
|
6637
6637
|
}, r)
|
|
6638
|
-
), !
|
|
6638
|
+
), !_ && /* @__PURE__ */ e.createElement(hn, { toggleStatusLabel: T }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), _ && /* @__PURE__ */ e.createElement(pn, { toggleStatusLabel: T, id: a })), F = /* @__PURE__ */ e.createElement(
|
|
6639
6639
|
Be,
|
|
6640
6640
|
{
|
|
6641
6641
|
id: a,
|
|
@@ -6676,17 +6676,17 @@ const ds = (_) => {
|
|
|
6676
6676
|
te.base,
|
|
6677
6677
|
v,
|
|
6678
6678
|
b,
|
|
6679
|
-
|
|
6679
|
+
H,
|
|
6680
6680
|
X,
|
|
6681
6681
|
w
|
|
6682
6682
|
]),
|
|
6683
6683
|
style: d ? f : null
|
|
6684
|
-
},
|
|
6684
|
+
}, C),
|
|
6685
6685
|
q
|
|
6686
6686
|
);
|
|
6687
6687
|
}
|
|
6688
6688
|
), Ms = Ue(
|
|
6689
|
-
(L,
|
|
6689
|
+
(L, M) => {
|
|
6690
6690
|
var k = L, {
|
|
6691
6691
|
counterMaxLength: t,
|
|
6692
6692
|
defaultValue: n,
|
|
@@ -6702,9 +6702,9 @@ const ds = (_) => {
|
|
|
6702
6702
|
placeholder: u,
|
|
6703
6703
|
readonly: p = !1,
|
|
6704
6704
|
required: $ = !1,
|
|
6705
|
-
rows:
|
|
6705
|
+
rows: _ = 5,
|
|
6706
6706
|
showLabel: w,
|
|
6707
|
-
textareaProps:
|
|
6707
|
+
textareaProps: C,
|
|
6708
6708
|
tooltipText: E = null,
|
|
6709
6709
|
translationStrings: h = {
|
|
6710
6710
|
clearButton: "Clear input text",
|
|
@@ -6718,7 +6718,7 @@ const ds = (_) => {
|
|
|
6718
6718
|
validationStatus: f,
|
|
6719
6719
|
value: v,
|
|
6720
6720
|
className: b
|
|
6721
|
-
} = k,
|
|
6721
|
+
} = k, H = D(k, [
|
|
6722
6722
|
"counterMaxLength",
|
|
6723
6723
|
"defaultValue",
|
|
6724
6724
|
"disabled",
|
|
@@ -6743,11 +6743,11 @@ const ds = (_) => {
|
|
|
6743
6743
|
"value",
|
|
6744
6744
|
"className"
|
|
6745
6745
|
]);
|
|
6746
|
-
const z = Je(r), x = "pds-textarea",
|
|
6746
|
+
const z = Je(r), x = "pds-textarea", I = d ? "pds-is-resizable" : null, T = s ? te.disabled : null, B = $ && !s ? te.required : null, R = f === "error" ? te.error : null, F = f === "success" ? te.success : null, P = p ? te.readonly : null, q = o || l, X = v != null && m !== void 0, se = typeof n != "undefined", [Q, J] = K(
|
|
6747
6747
|
se ? n : ""
|
|
6748
6748
|
), Y = v || Q, Z = (V) => {
|
|
6749
6749
|
X || J(V.target.value), m && m(V);
|
|
6750
|
-
},
|
|
6750
|
+
}, A = (V) => {
|
|
6751
6751
|
i && i(V);
|
|
6752
6752
|
};
|
|
6753
6753
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -6764,7 +6764,7 @@ const ds = (_) => {
|
|
|
6764
6764
|
b != null ? b : ""
|
|
6765
6765
|
]),
|
|
6766
6766
|
style: r ? z : null
|
|
6767
|
-
},
|
|
6767
|
+
}, H),
|
|
6768
6768
|
/* @__PURE__ */ e.createElement("div", { className: `${x}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6769
6769
|
Be,
|
|
6770
6770
|
{
|
|
@@ -6788,8 +6788,8 @@ const ds = (_) => {
|
|
|
6788
6788
|
/* @__PURE__ */ e.createElement("div", { className: `${x}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6789
6789
|
"textarea",
|
|
6790
6790
|
y({
|
|
6791
|
-
ref:
|
|
6792
|
-
className: N([`${x}--textarea`,
|
|
6791
|
+
ref: M,
|
|
6792
|
+
className: N([`${x}--textarea`, I]),
|
|
6793
6793
|
id: a,
|
|
6794
6794
|
name: a,
|
|
6795
6795
|
placeholder: u,
|
|
@@ -6797,13 +6797,13 @@ const ds = (_) => {
|
|
|
6797
6797
|
readOnly: p,
|
|
6798
6798
|
disabled: s,
|
|
6799
6799
|
value: X ? v : Q,
|
|
6800
|
-
rows:
|
|
6800
|
+
rows: _,
|
|
6801
6801
|
onChange: Z,
|
|
6802
|
-
onBlur:
|
|
6802
|
+
onBlur: A,
|
|
6803
6803
|
onFocus: g,
|
|
6804
6804
|
"aria-invalid": f === "error",
|
|
6805
6805
|
"aria-describedby": q ? `${a}__message` : null
|
|
6806
|
-
},
|
|
6806
|
+
}, C)
|
|
6807
6807
|
)),
|
|
6808
6808
|
q && /* @__PURE__ */ e.createElement(
|
|
6809
6809
|
Pe,
|
|
@@ -6834,16 +6834,16 @@ const ds = (_) => {
|
|
|
6834
6834
|
message: u,
|
|
6835
6835
|
onBlur: p,
|
|
6836
6836
|
onChange: $,
|
|
6837
|
-
onClear:
|
|
6837
|
+
onClear: _,
|
|
6838
6838
|
onFocus: w,
|
|
6839
|
-
placeholder:
|
|
6839
|
+
placeholder: C,
|
|
6840
6840
|
readonly: E = !1,
|
|
6841
6841
|
required: h = !1,
|
|
6842
6842
|
searchIcon: o = "search",
|
|
6843
6843
|
showLabel: f = !0,
|
|
6844
6844
|
showVisibilityToggle: v = !1,
|
|
6845
6845
|
tooltipText: b = null,
|
|
6846
|
-
translationStrings:
|
|
6846
|
+
translationStrings: H = {
|
|
6847
6847
|
clearButton: "Clear input text",
|
|
6848
6848
|
counterOverLimit: "Character limit exceeded by",
|
|
6849
6849
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -6851,12 +6851,12 @@ const ds = (_) => {
|
|
|
6851
6851
|
visibilityToggleHide: "Hide input value",
|
|
6852
6852
|
visibilityToggleShow: "Show input value"
|
|
6853
6853
|
},
|
|
6854
|
-
type:
|
|
6854
|
+
type: M = "text",
|
|
6855
6855
|
validationMessage: L,
|
|
6856
6856
|
validationStatus: k,
|
|
6857
6857
|
value: z,
|
|
6858
6858
|
className: x
|
|
6859
|
-
} = R,
|
|
6859
|
+
} = R, I = D(R, [
|
|
6860
6860
|
"autoComplete",
|
|
6861
6861
|
"counterMaxLength",
|
|
6862
6862
|
"defaultValue",
|
|
@@ -6887,13 +6887,13 @@ const ds = (_) => {
|
|
|
6887
6887
|
"value",
|
|
6888
6888
|
"className"
|
|
6889
6889
|
]);
|
|
6890
|
-
const F = Je(m), P = "pds-text-input", q = a ? te.disabled : null, X = h && !a ? te.required : null, se = k === "error" ? te.error : null, Q = k === "success" ? te.success : null, J = E ? te.readonly : null, Y = c &&
|
|
6890
|
+
const F = Je(m), P = "pds-text-input", q = a ? te.disabled : null, X = h && !a ? te.required : null, se = k === "error" ? te.error : null, Q = k === "success" ? te.success : null, J = E ? te.readonly : null, Y = c && M === "url" ? `${P}--has-url-prefix` : null;
|
|
6891
6891
|
let Z = null;
|
|
6892
|
-
|
|
6893
|
-
const
|
|
6892
|
+
M === "search" && (Z = "search"), M === "search" && o === "filter" && (Z = "filter"), k === "error" && (Z = "error"), k === "success" && (Z = "success");
|
|
6893
|
+
const A = L || u, V = typeof z != "undefined", S = typeof s != "undefined", [O, j] = K(
|
|
6894
6894
|
S ? s : ""
|
|
6895
6895
|
), ee = z || O, ue = (me) => {
|
|
6896
|
-
if (v && _e && re(!1), c &&
|
|
6896
|
+
if (v && _e && re(!1), c && M === "url") {
|
|
6897
6897
|
const Le = ut(me.target.value), Se = ae(y({}, me), {
|
|
6898
6898
|
target: ae(y({}, me.target), {
|
|
6899
6899
|
value: Le
|
|
@@ -6902,7 +6902,7 @@ const ds = (_) => {
|
|
|
6902
6902
|
p && p(Se);
|
|
6903
6903
|
} else p && p(me);
|
|
6904
6904
|
}, de = (me) => {
|
|
6905
|
-
if (c &&
|
|
6905
|
+
if (c && M === "url") {
|
|
6906
6906
|
const Le = ut(me.target.value), Se = ae(y({}, me), {
|
|
6907
6907
|
target: ae(y({}, me.target), {
|
|
6908
6908
|
value: Le
|
|
@@ -6912,7 +6912,7 @@ const ds = (_) => {
|
|
|
6912
6912
|
} else
|
|
6913
6913
|
V || j(me.target.value), $ && $(me);
|
|
6914
6914
|
}, Ce = () => {
|
|
6915
|
-
V || j(""),
|
|
6915
|
+
V || j(""), _ && _();
|
|
6916
6916
|
const me = document.getElementById(l);
|
|
6917
6917
|
me && me.focus();
|
|
6918
6918
|
}, [_e, re] = K(!1), he = () => {
|
|
@@ -6920,8 +6920,8 @@ const ds = (_) => {
|
|
|
6920
6920
|
const me = document.getElementById(l);
|
|
6921
6921
|
me && me.focus();
|
|
6922
6922
|
};
|
|
6923
|
-
let pe =
|
|
6924
|
-
return v &&
|
|
6923
|
+
let pe = M;
|
|
6924
|
+
return v && M === "password" && (_e ? pe = "text" : pe = "password"), /* @__PURE__ */ e.createElement(
|
|
6925
6925
|
"div",
|
|
6926
6926
|
y({
|
|
6927
6927
|
className: N([
|
|
@@ -6936,7 +6936,7 @@ const ds = (_) => {
|
|
|
6936
6936
|
x != null ? x : ""
|
|
6937
6937
|
]),
|
|
6938
6938
|
style: m ? F : null
|
|
6939
|
-
},
|
|
6939
|
+
}, I),
|
|
6940
6940
|
/* @__PURE__ */ e.createElement(
|
|
6941
6941
|
Be,
|
|
6942
6942
|
{
|
|
@@ -6948,77 +6948,77 @@ const ds = (_) => {
|
|
|
6948
6948
|
tooltipText: b
|
|
6949
6949
|
}
|
|
6950
6950
|
),
|
|
6951
|
-
v &&
|
|
6951
|
+
v && M === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${H.visibilityStatus} ${_e ? "visible" : "hidden"}.`),
|
|
6952
6952
|
/* @__PURE__ */ e.createElement(
|
|
6953
6953
|
"div",
|
|
6954
6954
|
{
|
|
6955
|
-
className: `${P}__input-wrapper ${c &&
|
|
6955
|
+
className: `${P}__input-wrapper ${c && M === "url" ? `${P}__input-wrapper--has-prefix` : ""}`
|
|
6956
6956
|
},
|
|
6957
6957
|
Z && /* @__PURE__ */ e.createElement(u2, { variant: Z }),
|
|
6958
|
-
c &&
|
|
6958
|
+
c && M === "url" && /* @__PURE__ */ e.createElement(fn, null),
|
|
6959
6959
|
/* @__PURE__ */ e.createElement(
|
|
6960
6960
|
"input",
|
|
6961
6961
|
y({
|
|
6962
6962
|
ref: T,
|
|
6963
|
-
className: `${P}__input ${c &&
|
|
6963
|
+
className: `${P}__input ${c && M === "url" ? `${P}__input--has-prefix` : ""}`,
|
|
6964
6964
|
id: l,
|
|
6965
6965
|
name: l,
|
|
6966
6966
|
type: pe,
|
|
6967
6967
|
value: V ? z : O,
|
|
6968
|
-
placeholder:
|
|
6968
|
+
placeholder: C,
|
|
6969
6969
|
readOnly: E,
|
|
6970
6970
|
disabled: a,
|
|
6971
6971
|
required: h,
|
|
6972
|
-
autoComplete:
|
|
6972
|
+
autoComplete: M === "password" ? "off" : t,
|
|
6973
6973
|
onBlur: ue,
|
|
6974
6974
|
onChange: de,
|
|
6975
6975
|
onFocus: w,
|
|
6976
6976
|
"aria-invalid": k === "error" ? !0 : null,
|
|
6977
|
-
"aria-describedby":
|
|
6977
|
+
"aria-describedby": A ? `${l}__message` : null
|
|
6978
6978
|
}, i)
|
|
6979
6979
|
),
|
|
6980
6980
|
r && ee && /* @__PURE__ */ e.createElement(
|
|
6981
6981
|
tt,
|
|
6982
6982
|
{
|
|
6983
6983
|
id: l,
|
|
6984
|
-
clearLabel:
|
|
6984
|
+
clearLabel: H.clearButton,
|
|
6985
6985
|
handleClearInput: Ce
|
|
6986
6986
|
}
|
|
6987
6987
|
),
|
|
6988
|
-
v &&
|
|
6988
|
+
v && M === "password" && /* @__PURE__ */ e.createElement(
|
|
6989
6989
|
"button",
|
|
6990
6990
|
{
|
|
6991
6991
|
type: "button",
|
|
6992
6992
|
className: `${P}__visibility-toggle`,
|
|
6993
|
-
title: _e ?
|
|
6993
|
+
title: _e ? H.visibilityToggleHide : H.visibilityToggleShow,
|
|
6994
6994
|
"aria-controls": l,
|
|
6995
6995
|
onClick: he,
|
|
6996
6996
|
onMouseDown: (me) => me.preventDefault()
|
|
6997
6997
|
},
|
|
6998
6998
|
/* @__PURE__ */ e.createElement(G, { iconName: _e ? "eyeSlash" : "eye", iconSize: "md" })
|
|
6999
6999
|
),
|
|
7000
|
-
d &&
|
|
7000
|
+
d && M === "search" && !ee && /* @__PURE__ */ e.createElement(
|
|
7001
7001
|
It,
|
|
7002
7002
|
{
|
|
7003
7003
|
inputId: l,
|
|
7004
|
-
shortcutLabel:
|
|
7004
|
+
shortcutLabel: H.searchShortcut
|
|
7005
7005
|
}
|
|
7006
7006
|
),
|
|
7007
|
-
n &&
|
|
7007
|
+
n && M !== "password" && /* @__PURE__ */ e.createElement(
|
|
7008
7008
|
At,
|
|
7009
7009
|
{
|
|
7010
7010
|
id: l,
|
|
7011
7011
|
currentLength: ee.length,
|
|
7012
7012
|
maxLength: n,
|
|
7013
|
-
overLimitMessage:
|
|
7013
|
+
overLimitMessage: H.counterOverLimit
|
|
7014
7014
|
}
|
|
7015
7015
|
)
|
|
7016
7016
|
),
|
|
7017
|
-
|
|
7017
|
+
A && /* @__PURE__ */ e.createElement(
|
|
7018
7018
|
Pe,
|
|
7019
7019
|
{
|
|
7020
7020
|
id: l,
|
|
7021
|
-
message:
|
|
7021
|
+
message: A,
|
|
7022
7022
|
hasValidationMessage: !!L,
|
|
7023
7023
|
validationMessageHasDecorators: !1,
|
|
7024
7024
|
validationStatus: k
|
|
@@ -7068,22 +7068,24 @@ const ds = (_) => {
|
|
|
7068
7068
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${a})`),
|
|
7069
7069
|
/* @__PURE__ */ e.createElement(G, { iconName: "externalLink", className: `${m}__icon` })
|
|
7070
7070
|
);
|
|
7071
|
-
}, Ns = (
|
|
7072
|
-
var
|
|
7071
|
+
}, Ns = (u) => {
|
|
7072
|
+
var p = u, {
|
|
7073
7073
|
ariaLabel: t,
|
|
7074
7074
|
children: n,
|
|
7075
7075
|
closeButtonLabel: s = "Close modal",
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7076
|
+
disableOutsideClick: a,
|
|
7077
|
+
hasCloseButton: r = !0,
|
|
7078
|
+
modalIsOpen: d = !1,
|
|
7079
|
+
setModalIsOpen: c = () => {
|
|
7079
7080
|
},
|
|
7080
|
-
size:
|
|
7081
|
-
title:
|
|
7082
|
-
className:
|
|
7083
|
-
} =
|
|
7081
|
+
size: l = "md",
|
|
7082
|
+
title: i,
|
|
7083
|
+
className: m
|
|
7084
|
+
} = p, g = D(p, [
|
|
7084
7085
|
"ariaLabel",
|
|
7085
7086
|
"children",
|
|
7086
7087
|
"closeButtonLabel",
|
|
7088
|
+
"disableOutsideClick",
|
|
7087
7089
|
"hasCloseButton",
|
|
7088
7090
|
"modalIsOpen",
|
|
7089
7091
|
"setModalIsOpen",
|
|
@@ -7091,18 +7093,18 @@ const ds = (_) => {
|
|
|
7091
7093
|
"title",
|
|
7092
7094
|
"className"
|
|
7093
7095
|
]);
|
|
7094
|
-
const
|
|
7096
|
+
const $ = Oe(n), _ = $.__unslotted, w = $.footer, C = "pds-modal", E = l !== "md" ? `${C}--${l}` : null, h = w ? `${C}--has-footer` : null, [o, f] = K(d);
|
|
7095
7097
|
ce(() => {
|
|
7096
|
-
|
|
7097
|
-
}, [
|
|
7098
|
-
|
|
7099
|
-
}, [
|
|
7100
|
-
const { refs:
|
|
7101
|
-
open:
|
|
7102
|
-
onOpenChange:
|
|
7103
|
-
}), M = Xe(
|
|
7098
|
+
f(d);
|
|
7099
|
+
}, [d]), ce(() => {
|
|
7100
|
+
c(o);
|
|
7101
|
+
}, [o]);
|
|
7102
|
+
const { refs: v, context: b, floatingStyles: H } = Ae({
|
|
7103
|
+
open: o,
|
|
7104
|
+
onOpenChange: f
|
|
7105
|
+
}), M = Xe(b), L = a ? void 0 : Te(b, {
|
|
7104
7106
|
outsidePressEvent: "mousedown"
|
|
7105
|
-
}),
|
|
7107
|
+
}), k = De(b), { getFloatingProps: z } = Re([M, L, k]), { isMounted: x, styles: I } = Ye(b, {
|
|
7106
7108
|
duration: {
|
|
7107
7109
|
open: 300,
|
|
7108
7110
|
close: 300
|
|
@@ -7120,45 +7122,45 @@ const ds = (_) => {
|
|
|
7120
7122
|
transform: "translateY(1rem)"
|
|
7121
7123
|
}
|
|
7122
7124
|
});
|
|
7123
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
7125
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, x && /* @__PURE__ */ e.createElement(
|
|
7124
7126
|
a1,
|
|
7125
7127
|
{
|
|
7126
7128
|
lockScroll: !0,
|
|
7127
|
-
style: ae(y({},
|
|
7129
|
+
style: ae(y({}, H), {
|
|
7128
7130
|
background: "var(--pds-color-overlay)",
|
|
7129
7131
|
transition: "var(--pds-animation-reveal-transition)",
|
|
7130
7132
|
zIndex: "var(--pds-z-index-modal)",
|
|
7131
7133
|
position: "fixed"
|
|
7132
7134
|
})
|
|
7133
7135
|
},
|
|
7134
|
-
/* @__PURE__ */ e.createElement(xt, { context:
|
|
7136
|
+
/* @__PURE__ */ e.createElement(xt, { context: b }, /* @__PURE__ */ e.createElement(
|
|
7135
7137
|
"div",
|
|
7136
7138
|
y(ae(y({
|
|
7137
|
-
ref:
|
|
7138
|
-
"aria-label": t ||
|
|
7139
|
-
},
|
|
7139
|
+
ref: v.setFloating,
|
|
7140
|
+
"aria-label": t || i
|
|
7141
|
+
}, z()), {
|
|
7140
7142
|
className: N([
|
|
7141
|
-
|
|
7142
|
-
_,
|
|
7143
|
+
C,
|
|
7143
7144
|
E,
|
|
7144
|
-
|
|
7145
|
+
h,
|
|
7146
|
+
m
|
|
7145
7147
|
]),
|
|
7146
|
-
style: ae(y(y({},
|
|
7148
|
+
style: ae(y(y({}, H), I), {
|
|
7147
7149
|
position: "relative",
|
|
7148
7150
|
top: "5%"
|
|
7149
7151
|
})
|
|
7150
|
-
}),
|
|
7151
|
-
|
|
7152
|
+
}), g),
|
|
7153
|
+
r && /* @__PURE__ */ e.createElement("div", { className: `${C}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7152
7154
|
Tt,
|
|
7153
7155
|
{
|
|
7154
7156
|
ariaLabel: s,
|
|
7155
|
-
onClick: () =>
|
|
7157
|
+
onClick: () => f(!1),
|
|
7156
7158
|
iconSize: "xl"
|
|
7157
7159
|
}
|
|
7158
7160
|
)),
|
|
7159
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
7160
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
7161
|
-
|
|
7161
|
+
/* @__PURE__ */ e.createElement("div", { className: `${C}__title` }, i),
|
|
7162
|
+
/* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, _),
|
|
7163
|
+
w && /* @__PURE__ */ e.createElement("div", { className: `${C}__footer` }, w)
|
|
7162
7164
|
))
|
|
7163
7165
|
));
|
|
7164
7166
|
}, zs = (r) => {
|
|
@@ -7290,12 +7292,12 @@ const ds = (_) => {
|
|
|
7290
7292
|
if (b !== -1) {
|
|
7291
7293
|
if (h.key === "ArrowRight") {
|
|
7292
7294
|
h.preventDefault();
|
|
7293
|
-
const
|
|
7294
|
-
f[
|
|
7295
|
+
const H = (b + 1) % f.length;
|
|
7296
|
+
f[H].focus();
|
|
7295
7297
|
} else if (h.key === "ArrowLeft") {
|
|
7296
7298
|
h.preventDefault();
|
|
7297
|
-
const
|
|
7298
|
-
f[
|
|
7299
|
+
const H = (b - 1 + f.length) % f.length;
|
|
7300
|
+
f[H].focus();
|
|
7299
7301
|
}
|
|
7300
7302
|
}
|
|
7301
7303
|
};
|
|
@@ -7315,7 +7317,7 @@ const ds = (_) => {
|
|
|
7315
7317
|
},
|
|
7316
7318
|
h
|
|
7317
7319
|
);
|
|
7318
|
-
},
|
|
7320
|
+
}, _ = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${g}__menu` }, n.map((E, h) => /* @__PURE__ */ e.createElement(
|
|
7319
7321
|
$,
|
|
7320
7322
|
{
|
|
7321
7323
|
key: h,
|
|
@@ -7332,7 +7334,7 @@ const ds = (_) => {
|
|
|
7332
7334
|
isLink: !0
|
|
7333
7335
|
}));
|
|
7334
7336
|
});
|
|
7335
|
-
const
|
|
7337
|
+
const C = w.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
7336
7338
|
b1,
|
|
7337
7339
|
{
|
|
7338
7340
|
id: "mobile-nav-split-button",
|
|
@@ -7353,7 +7355,7 @@ const ds = (_) => {
|
|
|
7353
7355
|
a != null ? a : ""
|
|
7354
7356
|
])
|
|
7355
7357
|
}, r),
|
|
7356
|
-
l ?
|
|
7358
|
+
l ? C : _
|
|
7357
7359
|
);
|
|
7358
7360
|
}, Cn = (r) => {
|
|
7359
7361
|
var d = r, {
|
|
@@ -7400,31 +7402,31 @@ const ds = (_) => {
|
|
|
7400
7402
|
"setIsSidebarExpanded",
|
|
7401
7403
|
"className"
|
|
7402
7404
|
]);
|
|
7403
|
-
const { isMobile:
|
|
7405
|
+
const { isMobile: _, windowWidth: w } = be(ye), [C, E] = K(() => i !== void 0 ? i : w > 1440), h = oe(), [o] = S2(h), f = o.width;
|
|
7404
7406
|
ce(() => {
|
|
7405
7407
|
i !== void 0 && E(i);
|
|
7406
7408
|
}, [i]), ce(() => {
|
|
7407
|
-
m(
|
|
7408
|
-
}, [
|
|
7409
|
+
m(C);
|
|
7410
|
+
}, [C, m]);
|
|
7409
7411
|
const v = {
|
|
7410
|
-
isSidebarExpanded:
|
|
7412
|
+
isSidebarExpanded: _ ? !0 : C,
|
|
7411
7413
|
logoLinkContent: a,
|
|
7412
7414
|
navbarWidth: f,
|
|
7413
7415
|
isAdmin: s
|
|
7414
|
-
}, b = "pds-dashboard-global",
|
|
7416
|
+
}, b = "pds-dashboard-global", H = s ? `${b}--isAdmin` : null, M = _ ? `${b}--isMobile` : `${b}--notMobile`, L = _ ? null : C ? `${b}--sidebarExpanded` : `${b}--sidebarCollapsed`, k = C ? `${d}rem` : `${r}rem`, z = {
|
|
7415
7417
|
width: k,
|
|
7416
7418
|
transition: "width 200ms ease-in-out"
|
|
7417
|
-
}, x =
|
|
7419
|
+
}, x = _ ? {} : {
|
|
7418
7420
|
width: `calc(100% - ${k})`,
|
|
7419
7421
|
transition: "width 200ms ease-in-out"
|
|
7420
|
-
},
|
|
7421
|
-
E(!
|
|
7422
|
+
}, I = () => {
|
|
7423
|
+
E(!C);
|
|
7422
7424
|
}, T = Oe(t), B = T.header, R = T.sidebar, F = T.main, P = T.footer, q = /* @__PURE__ */ e.createElement(e.Fragment, null, B, /* @__PURE__ */ e.createElement("aside", { className: `${b}__sidebar` }, R), /* @__PURE__ */ e.createElement("main", { id: "main", className: `${b}__main` }, F), P && /* @__PURE__ */ e.createElement("footer", { className: `${b}__footer` }, P)), X = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("aside", { className: `${b}__sidebar`, style: z }, n && /* @__PURE__ */ e.createElement(
|
|
7423
7425
|
"button",
|
|
7424
7426
|
{
|
|
7425
7427
|
className: `${b}__sidebar-toggle-button`,
|
|
7426
|
-
onClick:
|
|
7427
|
-
"aria-expanded":
|
|
7428
|
+
onClick: I,
|
|
7429
|
+
"aria-expanded": C,
|
|
7428
7430
|
"aria-label": c
|
|
7429
7431
|
},
|
|
7430
7432
|
/* @__PURE__ */ e.createElement("span", { className: `${b}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(G, { iconName: "angleLeft", iconSize: "sm" }))
|
|
@@ -7443,14 +7445,14 @@ const ds = (_) => {
|
|
|
7443
7445
|
y({
|
|
7444
7446
|
className: N([
|
|
7445
7447
|
b,
|
|
7446
|
-
M,
|
|
7447
7448
|
H,
|
|
7449
|
+
M,
|
|
7448
7450
|
L,
|
|
7449
7451
|
"pds-typography--product",
|
|
7450
7452
|
g != null ? g : ""
|
|
7451
7453
|
])
|
|
7452
7454
|
}, u),
|
|
7453
|
-
|
|
7455
|
+
_ ? q : X
|
|
7454
7456
|
));
|
|
7455
7457
|
}, je = "ease-out", vt = 0, _n = ({
|
|
7456
7458
|
icon: t,
|
|
@@ -7481,27 +7483,27 @@ const ds = (_) => {
|
|
|
7481
7483
|
},
|
|
7482
7484
|
z.linkContent
|
|
7483
7485
|
))
|
|
7484
|
-
), [u, p] = K(!1), { refs: $, floatingStyles:
|
|
7486
|
+
), [u, p] = K(!1), { refs: $, floatingStyles: _, context: w } = Ae({
|
|
7485
7487
|
placement: "right-start",
|
|
7486
7488
|
open: u,
|
|
7487
7489
|
onOpenChange: p,
|
|
7488
7490
|
middleware: [i2(12), d2(), b2()],
|
|
7489
7491
|
whileElementsMounted: Fe
|
|
7490
|
-
}),
|
|
7492
|
+
}), C = E2(w, {
|
|
7491
7493
|
move: !1,
|
|
7492
7494
|
handleClose: Q2()
|
|
7493
7495
|
}), E = Y2(w), h = Te(w), o = De(w, { role: "menu" }), { getReferenceProps: f, getFloatingProps: v } = Re([
|
|
7494
|
-
|
|
7496
|
+
C,
|
|
7495
7497
|
E,
|
|
7496
7498
|
h,
|
|
7497
7499
|
o
|
|
7498
7500
|
]), b = (L) => {
|
|
7499
|
-
var
|
|
7500
|
-
const k = L.currentTarget, z = (
|
|
7501
|
+
var I;
|
|
7502
|
+
const k = L.currentTarget, z = (I = k.parentElement) == null ? void 0 : I.nextElementSibling;
|
|
7501
7503
|
if (!z) return;
|
|
7502
7504
|
const x = k.getAttribute("aria-expanded") === "false";
|
|
7503
|
-
k.classList.toggle(`${c}__toggle--expanded`, x), k.setAttribute("aria-expanded", x ? "true" : "false"), x ?
|
|
7504
|
-
},
|
|
7505
|
+
k.classList.toggle(`${c}__toggle--expanded`, x), k.setAttribute("aria-expanded", x ? "true" : "false"), x ? H(z) : M(z);
|
|
7506
|
+
}, H = (L) => {
|
|
7505
7507
|
L.style.display = "flex", L.style.height = "auto";
|
|
7506
7508
|
const k = `${L.scrollHeight}px`;
|
|
7507
7509
|
L.style.marginBlockStart = "0", L.animate(
|
|
@@ -7525,7 +7527,7 @@ const ds = (_) => {
|
|
|
7525
7527
|
marginBlockStart: `${N2}rem`
|
|
7526
7528
|
}), L.classList.add(`${i}--expanded`);
|
|
7527
7529
|
};
|
|
7528
|
-
},
|
|
7530
|
+
}, M = (L) => {
|
|
7529
7531
|
const k = `${L.scrollHeight}px`, z = L.animate(
|
|
7530
7532
|
[
|
|
7531
7533
|
{
|
|
@@ -7586,7 +7588,7 @@ const ds = (_) => {
|
|
|
7586
7588
|
y({
|
|
7587
7589
|
className: `${c}__flyout`,
|
|
7588
7590
|
ref: $.setFloating,
|
|
7589
|
-
style:
|
|
7591
|
+
style: _
|
|
7590
7592
|
}, v()),
|
|
7591
7593
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__flyout-heading` }, xe(r)),
|
|
7592
7594
|
g(d, "second-level-flyout")
|
|
@@ -7615,7 +7617,7 @@ const ds = (_) => {
|
|
|
7615
7617
|
"selectTextFallback",
|
|
7616
7618
|
"className"
|
|
7617
7619
|
]);
|
|
7618
|
-
const l = "pds-dropdown-menu", [i, m] = K(!1), [g, u] = K(null), p = lt(n), $ = p ? p.props.children : s,
|
|
7620
|
+
const l = "pds-dropdown-menu", [i, m] = K(!1), [g, u] = K(null), p = lt(n), $ = p ? p.props.children : s, _ = /* @__PURE__ */ e.createElement(
|
|
7619
7621
|
G,
|
|
7620
7622
|
{
|
|
7621
7623
|
iconName: "check",
|
|
@@ -7625,14 +7627,14 @@ const ds = (_) => {
|
|
|
7625
7627
|
), w = (B) => {
|
|
7626
7628
|
var R;
|
|
7627
7629
|
B.key === "Enter" && ((R = v.current[g].querySelector("a")) == null || R.click());
|
|
7628
|
-
},
|
|
7630
|
+
}, C = (B) => {
|
|
7629
7631
|
B.target.nodeName === "A" && m(!1);
|
|
7630
7632
|
};
|
|
7631
7633
|
ce(() => {
|
|
7632
7634
|
if (i) {
|
|
7633
7635
|
const B = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
7634
|
-
return B.addEventListener("click",
|
|
7635
|
-
B.removeEventListener("click",
|
|
7636
|
+
return B.addEventListener("click", C), () => {
|
|
7637
|
+
B.removeEventListener("click", C);
|
|
7636
7638
|
};
|
|
7637
7639
|
}
|
|
7638
7640
|
}, [i]);
|
|
@@ -7676,9 +7678,9 @@ const ds = (_) => {
|
|
|
7676
7678
|
loop: !0,
|
|
7677
7679
|
openOnArrowKeyDown: !0,
|
|
7678
7680
|
focusItemOnHover: !0
|
|
7679
|
-
}),
|
|
7680
|
-
[
|
|
7681
|
-
), { isMounted:
|
|
7681
|
+
}), H = Xe(f, { event: "mousedown" }), M = Te(f), L = De(f, { role: "menu" }), { getReferenceProps: k, getFloatingProps: z, getItemProps: x } = Re(
|
|
7682
|
+
[M, L, H, b]
|
|
7683
|
+
), { isMounted: I, styles: T } = Ye(f, {
|
|
7682
7684
|
duration: {
|
|
7683
7685
|
open: 300,
|
|
7684
7686
|
close: 300
|
|
@@ -7709,7 +7711,7 @@ const ds = (_) => {
|
|
|
7709
7711
|
className: `${l}__trigger-icon`
|
|
7710
7712
|
}
|
|
7711
7713
|
)
|
|
7712
|
-
),
|
|
7714
|
+
), I && /* @__PURE__ */ e.createElement(
|
|
7713
7715
|
"ul",
|
|
7714
7716
|
y({
|
|
7715
7717
|
className: `${l}__dropdown ${l}__menu ${l}__menu--top-level`,
|
|
@@ -7730,7 +7732,7 @@ const ds = (_) => {
|
|
|
7730
7732
|
}
|
|
7731
7733
|
}, x()),
|
|
7732
7734
|
B.linkContent,
|
|
7733
|
-
B.isActive === !0 &&
|
|
7735
|
+
B.isActive === !0 && _
|
|
7734
7736
|
))
|
|
7735
7737
|
));
|
|
7736
7738
|
}, En = /* @__PURE__ */ e.createElement(
|
|
@@ -8093,7 +8095,7 @@ const ds = (_) => {
|
|
|
8093
8095
|
const g = be(A2);
|
|
8094
8096
|
let u = !0, p = null;
|
|
8095
8097
|
g && (u = g.isSidebarExpanded, p = g.logoLinkContent);
|
|
8096
|
-
const $ = "pds-dashboard-nav",
|
|
8098
|
+
const $ = "pds-dashboard-nav", _ = u ? `${$}--expanded` : `${$}--collapsed`, w = /* @__PURE__ */ e.createElement(e.Fragment, null, s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${$}__menu ${$}__menu--top-level` }, s.map((h, o) => /* @__PURE__ */ e.createElement(
|
|
8097
8099
|
_n,
|
|
8098
8100
|
{
|
|
8099
8101
|
key: o,
|
|
@@ -8104,7 +8106,7 @@ const ds = (_) => {
|
|
|
8104
8106
|
linkContent: h.linkContent,
|
|
8105
8107
|
links: h.links
|
|
8106
8108
|
}
|
|
8107
|
-
)))),
|
|
8109
|
+
)))), C = s.map((h) => ae(y({}, h), {
|
|
8108
8110
|
linkContent: o2(
|
|
8109
8111
|
$,
|
|
8110
8112
|
h.linkContent,
|
|
@@ -8114,7 +8116,7 @@ const ds = (_) => {
|
|
|
8114
8116
|
})), E = /* @__PURE__ */ e.createElement(
|
|
8115
8117
|
T2,
|
|
8116
8118
|
{
|
|
8117
|
-
menuItems:
|
|
8119
|
+
menuItems: C,
|
|
8118
8120
|
selectTextFallback: a
|
|
8119
8121
|
}
|
|
8120
8122
|
);
|
|
@@ -8122,7 +8124,7 @@ const ds = (_) => {
|
|
|
8122
8124
|
"nav",
|
|
8123
8125
|
y({
|
|
8124
8126
|
"aria-label": t,
|
|
8125
|
-
className: N([$,
|
|
8127
|
+
className: N([$, _, r])
|
|
8126
8128
|
}, d),
|
|
8127
8129
|
!i && /* @__PURE__ */ e.createElement(
|
|
8128
8130
|
at,
|
|
@@ -8205,8 +8207,8 @@ const ds = (_) => {
|
|
|
8205
8207
|
)
|
|
8206
8208
|
)
|
|
8207
8209
|
);
|
|
8208
|
-
}, As = (
|
|
8209
|
-
var w =
|
|
8210
|
+
}, As = (_) => {
|
|
8211
|
+
var w = _, {
|
|
8210
8212
|
disabled: t = !1,
|
|
8211
8213
|
id: n,
|
|
8212
8214
|
isLoading: s = !1,
|
|
@@ -8239,16 +8241,16 @@ const ds = (_) => {
|
|
|
8239
8241
|
"horizontalOffset",
|
|
8240
8242
|
"className"
|
|
8241
8243
|
]);
|
|
8242
|
-
const [
|
|
8244
|
+
const [C, E] = K(!1), [h, o] = K(null), f = oe(null);
|
|
8243
8245
|
let v = !1;
|
|
8244
8246
|
const b = be(ye);
|
|
8245
8247
|
b && (v = b.isMobile);
|
|
8246
|
-
let
|
|
8248
|
+
let H = null, M = !1;
|
|
8247
8249
|
const L = be(A2);
|
|
8248
|
-
L && (
|
|
8249
|
-
const k = 2.25, z = 22, x =
|
|
8250
|
+
L && (H = L.navbarWidth, M = L.isAdmin);
|
|
8251
|
+
const k = 2.25, z = 22, x = M ? 14.5 : 9.625, I = H > 900 ? z : H / 16 - (x + u) - k * 0.675;
|
|
8250
8252
|
let T = k;
|
|
8251
|
-
|
|
8253
|
+
C && !H && (T = z), C && H && (T = I);
|
|
8252
8254
|
const B = {
|
|
8253
8255
|
right: `${x + u}rem`,
|
|
8254
8256
|
width: `${T}rem`
|
|
@@ -8266,20 +8268,20 @@ const ds = (_) => {
|
|
|
8266
8268
|
ce(() => {
|
|
8267
8269
|
const Z = (V) => {
|
|
8268
8270
|
f.current && !f.current.contains(V.target) && E(!1);
|
|
8269
|
-
},
|
|
8271
|
+
}, A = (V) => {
|
|
8270
8272
|
var O;
|
|
8271
8273
|
const S = (O = f.current) == null ? void 0 : O.querySelector("input");
|
|
8272
|
-
V.key === "Tab" &&
|
|
8274
|
+
V.key === "Tab" && C && S === document.activeElement && E(!1);
|
|
8273
8275
|
};
|
|
8274
|
-
if (
|
|
8275
|
-
return document.addEventListener("mousedown", Z), document.addEventListener("keydown",
|
|
8276
|
-
document.removeEventListener("mousedown", Z), document.removeEventListener("keydown",
|
|
8276
|
+
if (C)
|
|
8277
|
+
return document.addEventListener("mousedown", Z), document.addEventListener("keydown", A), () => {
|
|
8278
|
+
document.removeEventListener("mousedown", Z), document.removeEventListener("keydown", A);
|
|
8277
8279
|
};
|
|
8278
|
-
}, [
|
|
8280
|
+
}, [C]);
|
|
8279
8281
|
const se = g.map((Z) => {
|
|
8280
|
-
const { id:
|
|
8282
|
+
const { id: A, machineName: V, name: S } = Z;
|
|
8281
8283
|
return {
|
|
8282
|
-
id:
|
|
8284
|
+
id: A,
|
|
8283
8285
|
label: S,
|
|
8284
8286
|
value: V != null ? V : S,
|
|
8285
8287
|
optionDisplay: /* @__PURE__ */ e.createElement(bn, { option: Z })
|
|
@@ -8306,7 +8308,7 @@ const ds = (_) => {
|
|
|
8306
8308
|
)), J = /* @__PURE__ */ e.createElement("div", { className: `${R}--inner` }, /* @__PURE__ */ e.createElement(
|
|
8307
8309
|
"span",
|
|
8308
8310
|
{
|
|
8309
|
-
style:
|
|
8311
|
+
style: C ? { visibility: "visible" } : { visibility: "hidden" }
|
|
8310
8312
|
},
|
|
8311
8313
|
Q
|
|
8312
8314
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -8316,7 +8318,7 @@ const ds = (_) => {
|
|
|
8316
8318
|
"aria-label": r.openSearchButton,
|
|
8317
8319
|
onClick: P,
|
|
8318
8320
|
type: "button",
|
|
8319
|
-
style:
|
|
8321
|
+
style: C ? { visibility: "hidden" } : { visibility: "visible" }
|
|
8320
8322
|
},
|
|
8321
8323
|
/* @__PURE__ */ e.createElement(
|
|
8322
8324
|
Ve,
|
|
@@ -8391,13 +8393,13 @@ const ds = (_) => {
|
|
|
8391
8393
|
"translationStrings",
|
|
8392
8394
|
"className"
|
|
8393
8395
|
]);
|
|
8394
|
-
const [
|
|
8395
|
-
let
|
|
8396
|
+
const [_, w] = K(!1);
|
|
8397
|
+
let C = !1;
|
|
8396
8398
|
const E = be(ye);
|
|
8397
|
-
E && (
|
|
8399
|
+
E && (C = E.isMobile);
|
|
8398
8400
|
const h = be(A2);
|
|
8399
8401
|
h && (c = h.logoLinkContent);
|
|
8400
|
-
const o = "pds-navbar", f = a ? `${o}--noBorder` : "", v = n !== "default" ? `${o}--${n}` : "", b =
|
|
8402
|
+
const o = "pds-navbar", f = a ? `${o}--noBorder` : "", v = n !== "default" ? `${o}--${n}` : "", b = C ? `${o}--isMobile` : `${o}--notMobile`, H = (J) => {
|
|
8401
8403
|
const Y = J.key;
|
|
8402
8404
|
let Z = !1;
|
|
8403
8405
|
switch (Y) {
|
|
@@ -8408,36 +8410,36 @@ const ds = (_) => {
|
|
|
8408
8410
|
}
|
|
8409
8411
|
Z && (J.stopPropagation(), J.preventDefault());
|
|
8410
8412
|
};
|
|
8411
|
-
ce(() => (window.addEventListener("keyup",
|
|
8412
|
-
window.removeEventListener("keyup",
|
|
8413
|
+
ce(() => (window.addEventListener("keyup", H), () => {
|
|
8414
|
+
window.removeEventListener("keyup", H);
|
|
8413
8415
|
}), []);
|
|
8414
|
-
const
|
|
8416
|
+
const M = () => w(!_), L = t1();
|
|
8415
8417
|
ce(() => {
|
|
8416
|
-
if (
|
|
8418
|
+
if (C && t) {
|
|
8417
8419
|
const J = Vt(
|
|
8418
8420
|
document.querySelector(".pds-navbar__mobile")
|
|
8419
8421
|
), Y = ["a", "button", "input", "select", "textarea"];
|
|
8420
|
-
J && (
|
|
8422
|
+
J && (_ ? J.forEach((Z) => {
|
|
8421
8423
|
Y.includes(Z.nodeName.toLowerCase()) && (Z.tabIndex = 0);
|
|
8422
8424
|
}) : J.forEach((Z) => {
|
|
8423
8425
|
Y.includes(Z.nodeName.toLowerCase()) && (Z.tabIndex = -1);
|
|
8424
8426
|
}));
|
|
8425
8427
|
}
|
|
8426
|
-
}, [
|
|
8428
|
+
}, [_]);
|
|
8427
8429
|
const k = (J) => {
|
|
8428
8430
|
J.target.nodeName === "A" && w(!1);
|
|
8429
8431
|
};
|
|
8430
8432
|
ce(() => {
|
|
8431
|
-
if (
|
|
8433
|
+
if (_) {
|
|
8432
8434
|
const J = document.querySelector(".pds-navbar__bar-mobile"), Y = document.querySelector(".pds-navbar__mobile");
|
|
8433
8435
|
return J.addEventListener("click", k), Y.addEventListener("click", k), () => {
|
|
8434
8436
|
J.removeEventListener("click", k), Y.removeEventListener("click", k);
|
|
8435
8437
|
};
|
|
8436
8438
|
}
|
|
8437
|
-
}, [
|
|
8438
|
-
|
|
8439
|
-
}, [
|
|
8440
|
-
const z = Oe(t), x = z["items-left"],
|
|
8439
|
+
}, [_]), ce(() => {
|
|
8440
|
+
_ ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
8441
|
+
}, [_]);
|
|
8442
|
+
const z = Oe(t), x = z["items-left"], I = z["items-right"];
|
|
8441
8443
|
let T = "default";
|
|
8442
8444
|
(n === "reverse" || n === "reverse-transparent") && (T = "reverse");
|
|
8443
8445
|
const B = Me(c) ? c.props.children : null, R = Me(c) && B ? Ie(c, {
|
|
@@ -8455,18 +8457,18 @@ const ds = (_) => {
|
|
|
8455
8457
|
"button",
|
|
8456
8458
|
{
|
|
8457
8459
|
className: `${o}__menu-toggle`,
|
|
8458
|
-
"aria-label":
|
|
8459
|
-
onClick:
|
|
8460
|
+
"aria-label": _ ? m.closeMobileNav : m.openMobileNav,
|
|
8461
|
+
onClick: M,
|
|
8460
8462
|
type: "button"
|
|
8461
8463
|
},
|
|
8462
|
-
/* @__PURE__ */ e.createElement(G, { iconName:
|
|
8464
|
+
/* @__PURE__ */ e.createElement(G, { iconName: _ ? "xmark" : "bars", iconSize: "lg" })
|
|
8463
8465
|
), q = e.Children.toArray(t).sort((J, Y) => {
|
|
8464
|
-
const Z = Me(J) && parseInt(J.props["data-mobile-order"], 10) || 1 / 0,
|
|
8465
|
-
return Z -
|
|
8466
|
+
const Z = Me(J) && parseInt(J.props["data-mobile-order"], 10) || 1 / 0, A = Me(Y) && parseInt(Y.props["data-mobile-order"], 10) || 1 / 0;
|
|
8467
|
+
return Z - A;
|
|
8466
8468
|
}), X = /* @__PURE__ */ e.createElement(
|
|
8467
8469
|
"div",
|
|
8468
8470
|
{
|
|
8469
|
-
className:
|
|
8471
|
+
className: _ ? `${o}__mobile ${o}__mobile--open` : `${o}__mobile ${o}__mobile--closed`,
|
|
8470
8472
|
ref: L
|
|
8471
8473
|
},
|
|
8472
8474
|
/* @__PURE__ */ e.createElement(g2, null, q)
|
|
@@ -8479,7 +8481,7 @@ const ds = (_) => {
|
|
|
8479
8481
|
}
|
|
8480
8482
|
},
|
|
8481
8483
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(g2, { className: `${o}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__inner-mobile` }, F(), t && P)), /* @__PURE__ */ e.createElement(g2, null, t && X))
|
|
8482
|
-
), Q = /* @__PURE__ */ e.createElement(g2, { width: s, className: `${o}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${o}__logo` }, F()), /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null),
|
|
8484
|
+
), Q = /* @__PURE__ */ e.createElement(g2, { width: s, className: `${o}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${o}__logo` }, F()), /* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${o}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null), I && /* @__PURE__ */ e.createElement("div", { className: `${o}__items-right` }, I)));
|
|
8483
8485
|
return /* @__PURE__ */ e.createElement(
|
|
8484
8486
|
"header",
|
|
8485
8487
|
y({
|
|
@@ -8491,7 +8493,7 @@ const ds = (_) => {
|
|
|
8491
8493
|
g != null ? g : ""
|
|
8492
8494
|
])
|
|
8493
8495
|
}, u),
|
|
8494
|
-
|
|
8496
|
+
C ? se : Q
|
|
8495
8497
|
);
|
|
8496
8498
|
}, wn = ({
|
|
8497
8499
|
items: t,
|
|
@@ -8509,7 +8511,7 @@ const ds = (_) => {
|
|
|
8509
8511
|
open: a,
|
|
8510
8512
|
onOpenChange: r,
|
|
8511
8513
|
whileElementsMounted: Fe
|
|
8512
|
-
}), p = Xe(u, { event: "mousedown" }), $ = Te(u),
|
|
8514
|
+
}), p = Xe(u, { event: "mousedown" }), $ = Te(u), _ = De(u, { role: "menu" });
|
|
8513
8515
|
let w;
|
|
8514
8516
|
i ? w = E2(u, {
|
|
8515
8517
|
enabled: !1
|
|
@@ -8521,9 +8523,9 @@ const ds = (_) => {
|
|
|
8521
8523
|
}),
|
|
8522
8524
|
enabled: !0
|
|
8523
8525
|
});
|
|
8524
|
-
const { getReferenceProps:
|
|
8526
|
+
const { getReferenceProps: C, getFloatingProps: E } = Re([
|
|
8525
8527
|
$,
|
|
8526
|
-
|
|
8528
|
+
_,
|
|
8527
8529
|
p,
|
|
8528
8530
|
w
|
|
8529
8531
|
]), h = (o) => !!(o.isActive || o.linkContent && o.linkContent.props.className && o.linkContent.props.className.includes("pds-isActive"));
|
|
@@ -8533,7 +8535,7 @@ const ds = (_) => {
|
|
|
8533
8535
|
className: `${m}__trigger`,
|
|
8534
8536
|
ref: g.setReference,
|
|
8535
8537
|
type: "button"
|
|
8536
|
-
},
|
|
8538
|
+
}, C()),
|
|
8537
8539
|
n,
|
|
8538
8540
|
/* @__PURE__ */ e.createElement(G, { iconName: "angleDown", className: `${m}__trigger-icon` })
|
|
8539
8541
|
), a && /* @__PURE__ */ e.createElement(
|
|
@@ -8566,7 +8568,7 @@ const ds = (_) => {
|
|
|
8566
8568
|
"mobileMenuMaxWidth",
|
|
8567
8569
|
"className"
|
|
8568
8570
|
]);
|
|
8569
|
-
const [i, m] = K(1025), [g, u] = K(null), [p, $] = K(-1), [
|
|
8571
|
+
const [i, m] = K(1025), [g, u] = K(null), [p, $] = K(-1), [_, w] = K(null), [C, E] = K({
|
|
8570
8572
|
container: null,
|
|
8571
8573
|
containerChildren: []
|
|
8572
8574
|
});
|
|
@@ -8577,18 +8579,18 @@ const ds = (_) => {
|
|
|
8577
8579
|
m(window.innerWidth);
|
|
8578
8580
|
}, o = i <= a;
|
|
8579
8581
|
ce(() => {
|
|
8580
|
-
|
|
8582
|
+
C.containerChildren[g] && (C.containerChildren[g].classList.contains(
|
|
8581
8583
|
"pds-nav-menu__dropdown--separator"
|
|
8582
|
-
) &&
|
|
8584
|
+
) && _ == "down" ? u(g + 1) : C.containerChildren[g].classList.contains(
|
|
8583
8585
|
"pds-nav-menu__dropdown--separator"
|
|
8584
|
-
) &&
|
|
8586
|
+
) && _ == "up" ? u(g - 1) : C.containerChildren[g].children[0].focus());
|
|
8585
8587
|
}, [g]), ce(() => {
|
|
8586
|
-
p != -1 && (
|
|
8588
|
+
p != -1 && (H.current[p].children[0].blur(), H.current[p].children[0].focus({
|
|
8587
8589
|
focusVisible: !0
|
|
8588
8590
|
}));
|
|
8589
8591
|
}, [p]);
|
|
8590
|
-
const f = "pds-nav-menu", v = n !== "default" ? `${f}--${n}` : "", b = o ? `${f}--isMobile` : `${f}--notMobile`,
|
|
8591
|
-
const x =
|
|
8592
|
+
const f = "pds-nav-menu", v = n !== "default" ? `${f}--${n}` : "", b = o ? `${f}--isMobile` : `${f}--notMobile`, H = oe([]), M = (z) => {
|
|
8593
|
+
const x = H.current.length - 1, P = {
|
|
8592
8594
|
ArrowRight: () => {
|
|
8593
8595
|
u(-1), $(p === -1 ? 1 : p === x ? 0 : p + 1);
|
|
8594
8596
|
},
|
|
@@ -8599,13 +8601,13 @@ const ds = (_) => {
|
|
|
8599
8601
|
var se, Q, J, Y;
|
|
8600
8602
|
w("down");
|
|
8601
8603
|
const q = z.target.parentNode.children[1], X = ((Q = (se = z.target) == null ? void 0 : se.parentNode.children[1]) == null ? void 0 : Q.children) || ((Y = (J = z.target) == null ? void 0 : J.parentNode.parentNode.children[1]) == null ? void 0 : Y.children);
|
|
8602
|
-
|
|
8604
|
+
C.container != q && q != null && E({
|
|
8603
8605
|
container: q,
|
|
8604
8606
|
containerChildren: [...X]
|
|
8605
|
-
}), g === null || g ==
|
|
8607
|
+
}), g === null || g == C.containerChildren.length - 1 ? u(0) : u(parseInt(g) + 1);
|
|
8606
8608
|
},
|
|
8607
8609
|
ArrowUp: () => {
|
|
8608
|
-
w("up"), u(g === 0 ?
|
|
8610
|
+
w("up"), u(g === 0 ? C.containerChildren.length - 1 : parseInt(g) - 1);
|
|
8609
8611
|
}
|
|
8610
8612
|
}[z.code];
|
|
8611
8613
|
P && P();
|
|
@@ -8620,14 +8622,14 @@ const ds = (_) => {
|
|
|
8620
8622
|
return !1;
|
|
8621
8623
|
}, k = [];
|
|
8622
8624
|
return s.map((z, x) => {
|
|
8623
|
-
const
|
|
8625
|
+
const I = `item-${c2()}`, T = z.id ? z.id : I;
|
|
8624
8626
|
z.links ? k.push(
|
|
8625
8627
|
/* @__PURE__ */ e.createElement(
|
|
8626
8628
|
"li",
|
|
8627
8629
|
{
|
|
8628
8630
|
key: `${x}-dropdown`,
|
|
8629
8631
|
id: T,
|
|
8630
|
-
ref: (B) =>
|
|
8632
|
+
ref: (B) => H.current[x] = B,
|
|
8631
8633
|
className: `${f}__item ${f}__item--top-level ${f}__item--has-children ${L(z) === !0 ? `${f}__item--active` : ""}`
|
|
8632
8634
|
},
|
|
8633
8635
|
/* @__PURE__ */ e.createElement(
|
|
@@ -8645,7 +8647,7 @@ const ds = (_) => {
|
|
|
8645
8647
|
{
|
|
8646
8648
|
key: x,
|
|
8647
8649
|
id: T,
|
|
8648
|
-
ref: (B) =>
|
|
8650
|
+
ref: (B) => H.current[x] = B,
|
|
8649
8651
|
className: `${f}__item ${f}__item--top-level ${f}__item--has-link ${L(z) === !0 ? `${f}__item--active` : ""}`
|
|
8650
8652
|
},
|
|
8651
8653
|
z.linkContent
|
|
@@ -8657,7 +8659,7 @@ const ds = (_) => {
|
|
|
8657
8659
|
className: N([f, v, b, r]),
|
|
8658
8660
|
"aria-label": t,
|
|
8659
8661
|
onKeyDown: (z) => {
|
|
8660
|
-
|
|
8662
|
+
M(z);
|
|
8661
8663
|
}
|
|
8662
8664
|
}, d),
|
|
8663
8665
|
/* @__PURE__ */ e.createElement("ul", { className: `${f}__menu` }, k)
|
|
@@ -8681,15 +8683,15 @@ const ds = (_) => {
|
|
|
8681
8683
|
"mobileMenuSelectTextFallback",
|
|
8682
8684
|
"className"
|
|
8683
8685
|
]);
|
|
8684
|
-
const m = "pds-side-nav", g = `${m}__item`, u = `${m}__menu`, p = (
|
|
8685
|
-
const E =
|
|
8686
|
+
const m = "pds-side-nav", g = `${m}__item`, u = `${m}__menu`, p = (C) => {
|
|
8687
|
+
const E = C.currentTarget;
|
|
8686
8688
|
let h = null;
|
|
8687
8689
|
const o = E.parentElement;
|
|
8688
8690
|
if (o != null && o.classList.contains(`${g}-wrapper`) ? h = o.nextElementSibling : h = E.nextElementSibling, !h) return;
|
|
8689
8691
|
const f = E.getAttribute("aria-expanded") === "false";
|
|
8690
8692
|
E.classList.toggle(`${m}__toggle--expanded`, f), E.setAttribute("aria-expanded", f ? "true" : "false"), h.classList.toggle(`${u}--expanded`, f);
|
|
8691
|
-
}, $ = (
|
|
8692
|
-
const { linkContent: h, links: o } =
|
|
8693
|
+
}, $ = (C, E) => {
|
|
8694
|
+
const { linkContent: h, links: o } = C, f = we(C), v = gn(h), b = f;
|
|
8693
8695
|
return /* @__PURE__ */ e.createElement(
|
|
8694
8696
|
"li",
|
|
8695
8697
|
{
|
|
@@ -8723,19 +8725,19 @@ const ds = (_) => {
|
|
|
8723
8725
|
b ? `${u}--expanded` : null
|
|
8724
8726
|
])
|
|
8725
8727
|
},
|
|
8726
|
-
o.map((
|
|
8728
|
+
o.map((H, M) => /* @__PURE__ */ e.createElement(
|
|
8727
8729
|
"li",
|
|
8728
8730
|
{
|
|
8729
|
-
key:
|
|
8731
|
+
key: M,
|
|
8730
8732
|
className: N([
|
|
8731
8733
|
g,
|
|
8732
8734
|
`${g}--second-level`,
|
|
8733
|
-
we(
|
|
8735
|
+
we(H) ? `${g}--active` : null
|
|
8734
8736
|
])
|
|
8735
8737
|
},
|
|
8736
8738
|
_2(
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
+
H.linkContent,
|
|
8740
|
+
H.links
|
|
8739
8741
|
)
|
|
8740
8742
|
))
|
|
8741
8743
|
)) : (
|
|
@@ -8775,19 +8777,19 @@ const ds = (_) => {
|
|
|
8775
8777
|
b ? `${u}--expanded` : null
|
|
8776
8778
|
])
|
|
8777
8779
|
},
|
|
8778
|
-
o.map((
|
|
8780
|
+
o.map((H, M) => /* @__PURE__ */ e.createElement(
|
|
8779
8781
|
"li",
|
|
8780
8782
|
{
|
|
8781
|
-
key:
|
|
8783
|
+
key: M,
|
|
8782
8784
|
className: N([
|
|
8783
8785
|
g,
|
|
8784
8786
|
`${g}--second-level`,
|
|
8785
|
-
we(
|
|
8787
|
+
we(H) ? `${g}--active` : null
|
|
8786
8788
|
])
|
|
8787
8789
|
},
|
|
8788
8790
|
_2(
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
+
H.linkContent,
|
|
8792
|
+
H.links
|
|
8791
8793
|
)
|
|
8792
8794
|
))
|
|
8793
8795
|
))
|
|
@@ -8796,7 +8798,7 @@ const ds = (_) => {
|
|
|
8796
8798
|
h
|
|
8797
8799
|
)
|
|
8798
8800
|
);
|
|
8799
|
-
},
|
|
8801
|
+
}, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading pds-ts-l` }, n), a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, a.map((C, E) => $(C, E)))), w = /* @__PURE__ */ e.createElement(
|
|
8800
8802
|
T2,
|
|
8801
8803
|
{
|
|
8802
8804
|
headingText: n,
|
|
@@ -8810,7 +8812,7 @@ const ds = (_) => {
|
|
|
8810
8812
|
"aria-label": t,
|
|
8811
8813
|
className: N([m, d != null ? d : ""])
|
|
8812
8814
|
}, c),
|
|
8813
|
-
|
|
8815
|
+
_,
|
|
8814
8816
|
w
|
|
8815
8817
|
);
|
|
8816
8818
|
}, H2 = 0, Os = (m) => {
|
|
@@ -8836,17 +8838,17 @@ const ds = (_) => {
|
|
|
8836
8838
|
"mobileMenuSelectTextFallback",
|
|
8837
8839
|
"className"
|
|
8838
8840
|
]);
|
|
8839
|
-
const u = "pds-side-nav-compact", p = `${u}__item`, $ = `${u}__menu`, [
|
|
8840
|
-
ce(() => (w(window.innerWidth), window.addEventListener("resize",
|
|
8841
|
-
window.removeEventListener("resize",
|
|
8841
|
+
const u = "pds-side-nav-compact", p = `${u}__item`, $ = `${u}__menu`, [_, w] = K(1025), [C, E] = K(!1), [h, o] = K([]), f = oe(null), v = oe(null), b = oe([]), H = oe(-1);
|
|
8842
|
+
ce(() => (w(window.innerWidth), window.addEventListener("resize", M), () => {
|
|
8843
|
+
window.removeEventListener("resize", M);
|
|
8842
8844
|
}), []), ce(() => {
|
|
8843
8845
|
(!L || !n) && k();
|
|
8844
|
-
}, [
|
|
8846
|
+
}, [_, r, h]), ce(() => {
|
|
8845
8847
|
if (f.current) {
|
|
8846
|
-
const
|
|
8848
|
+
const A = f.current.querySelector(
|
|
8847
8849
|
".pds-side-nav-compact__heading a"
|
|
8848
8850
|
);
|
|
8849
|
-
|
|
8851
|
+
A && (v.current = A);
|
|
8850
8852
|
}
|
|
8851
8853
|
}, [s]), ce(() => {
|
|
8852
8854
|
if (f.current && r.length > 0) {
|
|
@@ -8862,57 +8864,57 @@ const ds = (_) => {
|
|
|
8862
8864
|
o(S);
|
|
8863
8865
|
}
|
|
8864
8866
|
}, [r]);
|
|
8865
|
-
const
|
|
8867
|
+
const M = () => {
|
|
8866
8868
|
w(window.innerWidth);
|
|
8867
|
-
}, L =
|
|
8869
|
+
}, L = _ <= d, k = () => {
|
|
8868
8870
|
if (!f.current) return;
|
|
8869
|
-
const
|
|
8871
|
+
const A = Array.from(
|
|
8870
8872
|
f.current.querySelectorAll(
|
|
8871
8873
|
".pds-side-nav-compact__menu a, button.pds-side-nav-compact__toggle"
|
|
8872
8874
|
)
|
|
8873
8875
|
);
|
|
8874
|
-
b.current =
|
|
8876
|
+
b.current = A.filter((V) => {
|
|
8875
8877
|
if (window.getComputedStyle(V).display === "none") return !1;
|
|
8876
8878
|
const O = V.closest(`.${$}`);
|
|
8877
8879
|
return !(O && !O.classList.contains(`${$}--expanded`) && !O.classList.contains(`${$}--top-level`));
|
|
8878
8880
|
});
|
|
8879
|
-
}, z = (
|
|
8880
|
-
const V =
|
|
8881
|
+
}, z = (A) => {
|
|
8882
|
+
const V = A.closest(`.${p}-wrapper`);
|
|
8881
8883
|
if (V)
|
|
8882
8884
|
return V.querySelector(
|
|
8883
8885
|
`.${u}__toggle`
|
|
8884
8886
|
);
|
|
8885
|
-
const S =
|
|
8887
|
+
const S = A.closest(`.${p}`);
|
|
8886
8888
|
return S ? S.querySelector(
|
|
8887
8889
|
`.${u}__toggle`
|
|
8888
8890
|
) : null;
|
|
8889
|
-
}, x = (
|
|
8890
|
-
if (
|
|
8891
|
-
const S =
|
|
8891
|
+
}, x = (A) => {
|
|
8892
|
+
if (A.classList.contains(`${u}__toggle`)) {
|
|
8893
|
+
const S = A.closest(`.${p}-wrapper`);
|
|
8892
8894
|
return (S == null ? void 0 : S.nextElementSibling) || null;
|
|
8893
8895
|
}
|
|
8894
|
-
const V =
|
|
8896
|
+
const V = A.closest(`.${p}`);
|
|
8895
8897
|
return V ? V.querySelector(`.${$}`) : null;
|
|
8896
|
-
},
|
|
8897
|
-
if (
|
|
8898
|
+
}, I = (A) => {
|
|
8899
|
+
if (A.classList.contains(`${u}__toggle`))
|
|
8898
8900
|
return !0;
|
|
8899
|
-
const V =
|
|
8901
|
+
const V = A.closest(`.${p}-wrapper`);
|
|
8900
8902
|
return V ? !!V.querySelector(`.${u}__toggle`) : !1;
|
|
8901
|
-
}, T = (
|
|
8902
|
-
if (!
|
|
8903
|
-
const V = b.current[
|
|
8903
|
+
}, T = (A) => {
|
|
8904
|
+
if (!C) return;
|
|
8905
|
+
const V = b.current[H.current];
|
|
8904
8906
|
if (V)
|
|
8905
|
-
switch (
|
|
8907
|
+
switch (A.key) {
|
|
8906
8908
|
case "ArrowDown": {
|
|
8907
|
-
|
|
8909
|
+
A.preventDefault(), B(1);
|
|
8908
8910
|
break;
|
|
8909
8911
|
}
|
|
8910
8912
|
case "ArrowUp": {
|
|
8911
|
-
|
|
8913
|
+
A.preventDefault(), B(-1);
|
|
8912
8914
|
break;
|
|
8913
8915
|
}
|
|
8914
8916
|
case "ArrowRight": {
|
|
8915
|
-
if (
|
|
8917
|
+
if (A.preventDefault(), I(V)) {
|
|
8916
8918
|
const S = V.classList.contains(
|
|
8917
8919
|
`${u}__toggle`
|
|
8918
8920
|
) ? V : z(V);
|
|
@@ -8925,14 +8927,14 @@ const ds = (_) => {
|
|
|
8925
8927
|
const j = O.querySelector(
|
|
8926
8928
|
"a"
|
|
8927
8929
|
);
|
|
8928
|
-
j && (j.focus(),
|
|
8930
|
+
j && (j.focus(), H.current = b.current.indexOf(j));
|
|
8929
8931
|
}
|
|
8930
8932
|
}, H2 + 50));
|
|
8931
8933
|
}
|
|
8932
8934
|
break;
|
|
8933
8935
|
}
|
|
8934
8936
|
case "ArrowLeft": {
|
|
8935
|
-
|
|
8937
|
+
A.preventDefault();
|
|
8936
8938
|
const S = V.closest(`.${$}`);
|
|
8937
8939
|
if (S && !S.classList.contains(`${$}--top-level`)) {
|
|
8938
8940
|
const O = S.parentElement;
|
|
@@ -8945,10 +8947,10 @@ const ds = (_) => {
|
|
|
8945
8947
|
}), setTimeout(() => {
|
|
8946
8948
|
k();
|
|
8947
8949
|
const ue = O.querySelector("a") || j;
|
|
8948
|
-
ue && (ue.focus(),
|
|
8950
|
+
ue && (ue.focus(), H.current = b.current.indexOf(ue));
|
|
8949
8951
|
}, H2));
|
|
8950
8952
|
}
|
|
8951
|
-
} else if (
|
|
8953
|
+
} else if (I(V)) {
|
|
8952
8954
|
const O = V.classList.contains(
|
|
8953
8955
|
`${u}__toggle`
|
|
8954
8956
|
) ? V : z(V);
|
|
@@ -8959,15 +8961,15 @@ const ds = (_) => {
|
|
|
8959
8961
|
break;
|
|
8960
8962
|
}
|
|
8961
8963
|
}
|
|
8962
|
-
}, B = (
|
|
8964
|
+
}, B = (A) => {
|
|
8963
8965
|
var O;
|
|
8964
8966
|
const V = b.current;
|
|
8965
8967
|
if (V.length === 0) return;
|
|
8966
|
-
let S =
|
|
8967
|
-
S < 0 && (S = V.length - 1), S >= V.length && (S = 0),
|
|
8968
|
-
}, R = (
|
|
8969
|
-
if (
|
|
8970
|
-
|
|
8968
|
+
let S = H.current + A;
|
|
8969
|
+
S < 0 && (S = V.length - 1), S >= V.length && (S = 0), H.current = S, (O = V[S]) == null || O.focus();
|
|
8970
|
+
}, R = (A) => {
|
|
8971
|
+
if (A.key === "Tab" && C && !A.shiftKey) {
|
|
8972
|
+
A.preventDefault(), E(!1), H.current = -1;
|
|
8971
8973
|
const V = Array.from(
|
|
8972
8974
|
document.querySelectorAll(
|
|
8973
8975
|
'a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
@@ -8975,20 +8977,20 @@ const ds = (_) => {
|
|
|
8975
8977
|
), S = V.indexOf(f.current);
|
|
8976
8978
|
S !== -1 && S < V.length - 1 && V[S + 1].focus();
|
|
8977
8979
|
}
|
|
8978
|
-
}, F = (
|
|
8980
|
+
}, F = (A) => {
|
|
8979
8981
|
var V;
|
|
8980
|
-
if (
|
|
8981
|
-
|
|
8982
|
-
else if (
|
|
8982
|
+
if (A.target === f.current && !C)
|
|
8983
|
+
A.preventDefault(), E(!0), k(), b.current.length > 0 && (H.current = 0, (V = b.current[0]) == null || V.focus());
|
|
8984
|
+
else if (A.target !== f.current && !C) {
|
|
8983
8985
|
k();
|
|
8984
8986
|
const S = b.current.indexOf(
|
|
8985
|
-
|
|
8987
|
+
A.target
|
|
8986
8988
|
);
|
|
8987
|
-
S !== -1 && (E(!0),
|
|
8989
|
+
S !== -1 && (E(!0), H.current = S);
|
|
8988
8990
|
}
|
|
8989
|
-
}, P = (
|
|
8991
|
+
}, P = (A) => {
|
|
8990
8992
|
var ee, ue;
|
|
8991
|
-
const V =
|
|
8993
|
+
const V = A.currentTarget, S = (ee = V.parentElement) == null ? void 0 : ee.nextElementSibling;
|
|
8992
8994
|
if (!S) return;
|
|
8993
8995
|
const O = V.getAttribute("aria-expanded") === "false";
|
|
8994
8996
|
V.classList.toggle(`${u}__toggle--expanded`, O), V.setAttribute("aria-expanded", O ? "true" : "false");
|
|
@@ -9000,10 +9002,10 @@ const ds = (_) => {
|
|
|
9000
9002
|
o((Ce) => O && !Ce.includes(de) && de !== -1 ? [...Ce, de] : O ? Ce : Ce.filter((_e) => _e !== de));
|
|
9001
9003
|
}
|
|
9002
9004
|
O ? q(S) : X(S);
|
|
9003
|
-
}, q = (
|
|
9004
|
-
|
|
9005
|
-
const V = `${
|
|
9006
|
-
|
|
9005
|
+
}, q = (A) => {
|
|
9006
|
+
A.style.display = "flex", A.style.height = "auto";
|
|
9007
|
+
const V = `${A.scrollHeight}px`;
|
|
9008
|
+
A.style.marginBlockStart = "0", A.animate(
|
|
9007
9009
|
[
|
|
9008
9010
|
{ height: "0px", opacity: "0", marginBlockStart: "0" },
|
|
9009
9011
|
{
|
|
@@ -9017,15 +9019,15 @@ const ds = (_) => {
|
|
|
9017
9019
|
easing: je
|
|
9018
9020
|
}
|
|
9019
9021
|
).onfinish = () => {
|
|
9020
|
-
Object.assign(
|
|
9022
|
+
Object.assign(A.style, {
|
|
9021
9023
|
height: "auto",
|
|
9022
9024
|
opacity: "1",
|
|
9023
9025
|
display: "flex",
|
|
9024
9026
|
marginBlockStart: `${k2}rem`
|
|
9025
|
-
}),
|
|
9027
|
+
}), A.classList.add(`${$}--expanded`), k();
|
|
9026
9028
|
};
|
|
9027
|
-
}, X = (
|
|
9028
|
-
const V = `${
|
|
9029
|
+
}, X = (A) => {
|
|
9030
|
+
const V = `${A.scrollHeight}px`, S = A.animate(
|
|
9029
9031
|
[
|
|
9030
9032
|
{
|
|
9031
9033
|
height: V,
|
|
@@ -9040,7 +9042,7 @@ const ds = (_) => {
|
|
|
9040
9042
|
}
|
|
9041
9043
|
);
|
|
9042
9044
|
S.onfinish = () => {
|
|
9043
|
-
|
|
9045
|
+
A.classList.remove(`${$}--expanded`), Object.assign(A.style, {
|
|
9044
9046
|
opacity: "0",
|
|
9045
9047
|
height: "",
|
|
9046
9048
|
// Clean height from inline style
|
|
@@ -9049,9 +9051,9 @@ const ds = (_) => {
|
|
|
9049
9051
|
marginBlockStart: "0"
|
|
9050
9052
|
}), k();
|
|
9051
9053
|
};
|
|
9052
|
-
}, se = { 2: "second", 3: "third", 4: "fourth" }, Q = (
|
|
9054
|
+
}, se = { 2: "second", 3: "third", 4: "fourth" }, Q = (A, V, S) => {
|
|
9053
9055
|
var re, he;
|
|
9054
|
-
const O = se[
|
|
9056
|
+
const O = se[A], j = `${$}--${O}-level`, ee = `${p}--${O}-level`, ue = A + 1, de = we(V);
|
|
9055
9057
|
let Ce = !1;
|
|
9056
9058
|
const _e = (re = f.current) == null ? void 0 : re.querySelector(
|
|
9057
9059
|
`.${p}--top-level[data-item-path="${V.path}"]`
|
|
@@ -9110,8 +9112,8 @@ const ds = (_) => {
|
|
|
9110
9112
|
) : pe.linkContent
|
|
9111
9113
|
))
|
|
9112
9114
|
));
|
|
9113
|
-
}, J = (
|
|
9114
|
-
const { linkContent: S, links: O } =
|
|
9115
|
+
}, J = (A, V) => {
|
|
9116
|
+
const { linkContent: S, links: O } = A;
|
|
9115
9117
|
return /* @__PURE__ */ e.createElement(
|
|
9116
9118
|
"li",
|
|
9117
9119
|
{
|
|
@@ -9119,13 +9121,13 @@ const ds = (_) => {
|
|
|
9119
9121
|
className: N([
|
|
9120
9122
|
p,
|
|
9121
9123
|
`${p}--top-level`,
|
|
9122
|
-
we(
|
|
9124
|
+
we(A) ? `${p}--active` : null
|
|
9123
9125
|
]),
|
|
9124
|
-
"data-item-path":
|
|
9126
|
+
"data-item-path": A.path || ""
|
|
9125
9127
|
},
|
|
9126
|
-
O ? Q(2,
|
|
9128
|
+
O ? Q(2, A) : S
|
|
9127
9129
|
);
|
|
9128
|
-
}, Y = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((
|
|
9130
|
+
}, Y = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading pds-ts-l` }, s), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((A, V) => J(A, V)))), Z = /* @__PURE__ */ e.createElement(
|
|
9129
9131
|
T2,
|
|
9130
9132
|
{
|
|
9131
9133
|
headingText: s,
|
|
@@ -9140,8 +9142,8 @@ const ds = (_) => {
|
|
|
9140
9142
|
className: N([u, l != null ? l : ""]),
|
|
9141
9143
|
ref: f,
|
|
9142
9144
|
onFocus: F,
|
|
9143
|
-
onKeyDown: (
|
|
9144
|
-
T(
|
|
9145
|
+
onKeyDown: (A) => {
|
|
9146
|
+
T(A), R(A);
|
|
9145
9147
|
},
|
|
9146
9148
|
tabIndex: 0,
|
|
9147
9149
|
role: "navigation"
|
|
@@ -9156,47 +9158,47 @@ const ds = (_) => {
|
|
|
9156
9158
|
linkContent: r,
|
|
9157
9159
|
links: d
|
|
9158
9160
|
}) => {
|
|
9159
|
-
const c = "pds-side-nav-global", l = `${c}__item`, i = `${c}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, o2(c, r, d, t)), g = (
|
|
9161
|
+
const c = "pds-side-nav-global", l = `${c}__item`, i = `${c}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, o2(c, r, d, t)), g = (H, M) => /* @__PURE__ */ e.createElement(
|
|
9160
9162
|
"ul",
|
|
9161
9163
|
{
|
|
9162
9164
|
className: N([
|
|
9163
9165
|
i,
|
|
9164
|
-
`${i}--${
|
|
9166
|
+
`${i}--${M}`,
|
|
9165
9167
|
n ? `${i}--expanded` : null
|
|
9166
9168
|
])
|
|
9167
9169
|
},
|
|
9168
|
-
|
|
9170
|
+
H.map((L, k) => /* @__PURE__ */ e.createElement(
|
|
9169
9171
|
"li",
|
|
9170
9172
|
{
|
|
9171
9173
|
key: k,
|
|
9172
9174
|
className: N([
|
|
9173
9175
|
l,
|
|
9174
|
-
`${l}--${
|
|
9176
|
+
`${l}--${M}`,
|
|
9175
9177
|
we(L) ? `${l}--active` : null
|
|
9176
9178
|
])
|
|
9177
9179
|
},
|
|
9178
9180
|
L.linkContent
|
|
9179
9181
|
))
|
|
9180
|
-
), [u, p] = K(!1), { refs: $, floatingStyles:
|
|
9182
|
+
), [u, p] = K(!1), { refs: $, floatingStyles: _, context: w } = Ae({
|
|
9181
9183
|
placement: "right-start",
|
|
9182
9184
|
open: u,
|
|
9183
9185
|
onOpenChange: p,
|
|
9184
9186
|
middleware: [i2(8), d2(), b2()],
|
|
9185
9187
|
whileElementsMounted: Fe
|
|
9186
|
-
}),
|
|
9188
|
+
}), C = E2(w, {
|
|
9187
9189
|
move: !1,
|
|
9188
9190
|
handleClose: Q2()
|
|
9189
9191
|
}), E = Y2(w), h = Te(w), o = De(w, { role: "menu" }), { getReferenceProps: f, getFloatingProps: v } = Re([
|
|
9190
|
-
|
|
9192
|
+
C,
|
|
9191
9193
|
E,
|
|
9192
9194
|
h,
|
|
9193
9195
|
o
|
|
9194
|
-
]), b = (
|
|
9196
|
+
]), b = (H) => {
|
|
9195
9197
|
var z;
|
|
9196
|
-
const
|
|
9198
|
+
const M = H.currentTarget, L = (z = M.parentElement) == null ? void 0 : z.nextElementSibling;
|
|
9197
9199
|
if (!L) return;
|
|
9198
|
-
const k =
|
|
9199
|
-
|
|
9200
|
+
const k = M.getAttribute("aria-expanded") === "false";
|
|
9201
|
+
M.classList.toggle(`${c}__toggle--expanded`, k), M.setAttribute("aria-expanded", k ? "true" : "false"), L.classList.toggle(`${i}--expanded`, k);
|
|
9200
9202
|
};
|
|
9201
9203
|
return /* @__PURE__ */ e.createElement(
|
|
9202
9204
|
"li",
|
|
@@ -9233,7 +9235,7 @@ const ds = (_) => {
|
|
|
9233
9235
|
y({
|
|
9234
9236
|
className: `${c}__flyout`,
|
|
9235
9237
|
ref: $.setFloating,
|
|
9236
|
-
style:
|
|
9238
|
+
style: _
|
|
9237
9239
|
}, v()),
|
|
9238
9240
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__flyout-heading` }, xe(r)),
|
|
9239
9241
|
g(d, "second-level-flyout")
|
|
@@ -9280,28 +9282,28 @@ const ds = (_) => {
|
|
|
9280
9282
|
displayType: s ? "icon" : "full",
|
|
9281
9283
|
linkContent: r
|
|
9282
9284
|
}
|
|
9283
|
-
)), d.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, d.map((
|
|
9285
|
+
)), d.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, d.map((C, E) => /* @__PURE__ */ e.createElement(
|
|
9284
9286
|
yn,
|
|
9285
9287
|
{
|
|
9286
9288
|
key: E,
|
|
9287
|
-
icon:
|
|
9288
|
-
isActive: we(
|
|
9289
|
+
icon: C.icon,
|
|
9290
|
+
isActive: we(C),
|
|
9289
9291
|
isSidebarCollapsed: s,
|
|
9290
9292
|
labels: a,
|
|
9291
|
-
linkContent:
|
|
9292
|
-
links:
|
|
9293
|
+
linkContent: C.linkContent,
|
|
9294
|
+
links: C.links
|
|
9293
9295
|
}
|
|
9294
|
-
)))),
|
|
9296
|
+
)))), _ = d.map((C) => ae(y({}, C), {
|
|
9295
9297
|
linkContent: o2(
|
|
9296
9298
|
u,
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9299
|
+
C.linkContent,
|
|
9300
|
+
C.links,
|
|
9301
|
+
C.icon
|
|
9300
9302
|
)
|
|
9301
9303
|
})), w = /* @__PURE__ */ e.createElement(
|
|
9302
9304
|
T2,
|
|
9303
9305
|
{
|
|
9304
|
-
menuItems:
|
|
9306
|
+
menuItems: _,
|
|
9305
9307
|
selectTextFallback: c,
|
|
9306
9308
|
className: `${u}__dropdown-menu`
|
|
9307
9309
|
}
|
|
@@ -9323,13 +9325,13 @@ const ds = (_) => {
|
|
|
9323
9325
|
minFilterItems: r = 5,
|
|
9324
9326
|
noResultsText: d = "No results found"
|
|
9325
9327
|
}) => {
|
|
9326
|
-
const [c, l] = K(!1), [i, m] = K(null), [g, u] = K(a), [p, $] = K(""),
|
|
9328
|
+
const [c, l] = K(!1), [i, m] = K(null), [g, u] = K(a), [p, $] = K(""), _ = a.length >= r, w = "pds-tab-menu", C = `${w}__dropdown-menu`, E = _ ? `${C}--scroll` : null, h = `${w}__dropdown-item`, o = oe([]), { context: f, refs: v } = Ae({
|
|
9327
9329
|
open: c,
|
|
9328
9330
|
onOpenChange: l,
|
|
9329
9331
|
whileElementsMounted: Fe
|
|
9330
9332
|
}), b = Xe(f, {
|
|
9331
9333
|
event: "mousedown"
|
|
9332
|
-
}),
|
|
9334
|
+
}), H = Te(f), M = De(f, { role: "listbox" }), L = m2(f, {
|
|
9333
9335
|
listRef: o,
|
|
9334
9336
|
activeIndex: i,
|
|
9335
9337
|
onNavigate: m,
|
|
@@ -9337,8 +9339,8 @@ const ds = (_) => {
|
|
|
9337
9339
|
focusItemOnHover: !0,
|
|
9338
9340
|
focusItemOnOpen: !1
|
|
9339
9341
|
}), { getReferenceProps: k, getFloatingProps: z, getItemProps: x } = Re(
|
|
9340
|
-
[
|
|
9341
|
-
), { isMounted:
|
|
9342
|
+
[M, H, L, b]
|
|
9343
|
+
), { isMounted: I, styles: T } = Ye(f, {
|
|
9342
9344
|
duration: {
|
|
9343
9345
|
open: 300,
|
|
9344
9346
|
close: 150
|
|
@@ -9353,28 +9355,28 @@ const ds = (_) => {
|
|
|
9353
9355
|
opacity: 0
|
|
9354
9356
|
}
|
|
9355
9357
|
}), B = (Z) => {
|
|
9356
|
-
var
|
|
9357
|
-
Z.preventDefault(), Z.key === "Enter" && ((
|
|
9358
|
-
}, R = (Z,
|
|
9359
|
-
const
|
|
9360
|
-
$(
|
|
9361
|
-
const V = a.filter((S) => R(S,
|
|
9358
|
+
var A;
|
|
9359
|
+
Z.preventDefault(), Z.key === "Enter" && ((A = o.current[i].querySelector("a")) == null || A.click()), Z.key === "Tab" && Z.shiftKey && (_ ? document.getElementById("links-filter").focus() : l(!1));
|
|
9360
|
+
}, R = (Z, A) => xe(Z.linkContent).toLowerCase().includes(A.toLowerCase()), F = (Z) => {
|
|
9361
|
+
const A = Z.target.value;
|
|
9362
|
+
$(A);
|
|
9363
|
+
const V = a.filter((S) => R(S, A));
|
|
9362
9364
|
u(V);
|
|
9363
9365
|
};
|
|
9364
9366
|
ce(() => {
|
|
9365
|
-
const Z = a.filter((
|
|
9367
|
+
const Z = a.filter((A) => R(A, p));
|
|
9366
9368
|
u(Z);
|
|
9367
9369
|
}, [a]);
|
|
9368
9370
|
const P = () => {
|
|
9369
9371
|
$(""), u(a);
|
|
9370
9372
|
}, q = a.reduce(
|
|
9371
|
-
(Z,
|
|
9373
|
+
(Z, A) => xe(Z.linkContent).length > xe(A.linkContent).length ? Z : A
|
|
9372
9374
|
), se = {
|
|
9373
9375
|
minWidth: "13rem",
|
|
9374
9376
|
width: `${xe(
|
|
9375
9377
|
q.linkContent
|
|
9376
9378
|
).length + 2}ch`
|
|
9377
|
-
}, Q = /* @__PURE__ */ e.createElement(G, { iconName: "check", className: `${w}__active-icon` }), J =
|
|
9379
|
+
}, Q = /* @__PURE__ */ e.createElement(G, { iconName: "check", className: `${w}__active-icon` }), J = _ && /* @__PURE__ */ e.createElement("div", { className: `${w}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9378
9380
|
Zt,
|
|
9379
9381
|
{
|
|
9380
9382
|
hasClearButton: !0,
|
|
@@ -9387,17 +9389,17 @@ const ds = (_) => {
|
|
|
9387
9389
|
type: "search",
|
|
9388
9390
|
autoComplete: "off"
|
|
9389
9391
|
}
|
|
9390
|
-
)), Y = g.map((Z,
|
|
9392
|
+
)), Y = g.map((Z, A) => {
|
|
9391
9393
|
const V = Z.isActive ? `${h}--active` : null;
|
|
9392
9394
|
return /* @__PURE__ */ e.createElement(
|
|
9393
9395
|
"li",
|
|
9394
9396
|
y({
|
|
9395
|
-
key:
|
|
9397
|
+
key: A,
|
|
9396
9398
|
className: N([h, V]),
|
|
9397
9399
|
ref: (S) => {
|
|
9398
|
-
o.current[
|
|
9400
|
+
o.current[A] = S;
|
|
9399
9401
|
},
|
|
9400
|
-
tabIndex:
|
|
9402
|
+
tabIndex: A === i ? 0 : -1,
|
|
9401
9403
|
onKeyDown: B
|
|
9402
9404
|
}, x()),
|
|
9403
9405
|
Z.linkContent,
|
|
@@ -9422,7 +9424,7 @@ const ds = (_) => {
|
|
|
9422
9424
|
className: `${w}__dropdown-trigger-icon`
|
|
9423
9425
|
}
|
|
9424
9426
|
)
|
|
9425
|
-
),
|
|
9427
|
+
), I && /* @__PURE__ */ e.createElement(
|
|
9426
9428
|
"div",
|
|
9427
9429
|
y({
|
|
9428
9430
|
ref: v.setFloating,
|
|
@@ -9432,7 +9434,7 @@ const ds = (_) => {
|
|
|
9432
9434
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9433
9435
|
}, se)
|
|
9434
9436
|
})),
|
|
9435
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, T) }, J, /* @__PURE__ */ e.createElement("ul", { className: N([
|
|
9437
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, T) }, J, /* @__PURE__ */ e.createElement("ul", { className: N([C, E]) }, Y.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${w}__no-results` }, d) : Y))
|
|
9436
9438
|
));
|
|
9437
9439
|
}, Ps = (r) => {
|
|
9438
9440
|
var d = r, {
|
|
@@ -9450,14 +9452,14 @@ const ds = (_) => {
|
|
|
9450
9452
|
const i = "pds-tab-menu", m = c ? `${i}--isMobile` : null, g = ({
|
|
9451
9453
|
dropdownSettings: p,
|
|
9452
9454
|
icon: $,
|
|
9453
|
-
isActive:
|
|
9455
|
+
isActive: _,
|
|
9454
9456
|
linkContent: w,
|
|
9455
|
-
links:
|
|
9457
|
+
links: C,
|
|
9456
9458
|
promoteActiveChildLink: E = !1
|
|
9457
9459
|
}) => {
|
|
9458
|
-
const h = `${i}__item`, o = lt(
|
|
9459
|
-
let
|
|
9460
|
-
return typeof v == "object" && (b ?
|
|
9460
|
+
const h = `${i}__item`, o = lt(C), f = (v, b) => {
|
|
9461
|
+
let H = null;
|
|
9462
|
+
return typeof v == "object" && (b ? H = Ie(v, ae(y({}, v.props), {
|
|
9461
9463
|
children: [
|
|
9462
9464
|
/* @__PURE__ */ e.createElement("span", { key: b, className: `${i}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
9463
9465
|
G,
|
|
@@ -9468,21 +9470,21 @@ const ds = (_) => {
|
|
|
9468
9470
|
}
|
|
9469
9471
|
), v.props.children)
|
|
9470
9472
|
]
|
|
9471
|
-
})) :
|
|
9473
|
+
})) : H = v), H;
|
|
9472
9474
|
};
|
|
9473
9475
|
return /* @__PURE__ */ e.createElement(
|
|
9474
9476
|
"li",
|
|
9475
9477
|
{
|
|
9476
9478
|
className: N([
|
|
9477
9479
|
h,
|
|
9478
|
-
|
|
9480
|
+
_ ? `${h}--active` : null
|
|
9479
9481
|
])
|
|
9480
9482
|
},
|
|
9481
9483
|
f(E ? o : w, $),
|
|
9482
|
-
|
|
9484
|
+
C && /* @__PURE__ */ e.createElement(
|
|
9483
9485
|
Ln,
|
|
9484
9486
|
{
|
|
9485
|
-
links:
|
|
9487
|
+
links: C,
|
|
9486
9488
|
buttonLabel: p == null ? void 0 : p.buttonLabel,
|
|
9487
9489
|
filterLabel: p == null ? void 0 : p.filterLabel,
|
|
9488
9490
|
filterPlaceholder: p == null ? void 0 : p.filterPlaceholder,
|
|
@@ -9529,17 +9531,17 @@ const ds = (_) => {
|
|
|
9529
9531
|
"withinNavbar",
|
|
9530
9532
|
"className"
|
|
9531
9533
|
]);
|
|
9532
|
-
const [g, u] = K(null), [p, $] = K(!1),
|
|
9533
|
-
let
|
|
9534
|
+
const [g, u] = K(null), [p, $] = K(!1), _ = oe([]), w = oe([]);
|
|
9535
|
+
let C = !1;
|
|
9534
9536
|
const E = be(ye);
|
|
9535
|
-
E && (
|
|
9536
|
-
const h = d &&
|
|
9537
|
+
E && (C = E.isMobile);
|
|
9538
|
+
const h = d && C, o = "pds-user-menu", f = h ? `${o}--isMobile` : null, v = `${o}__menu`, { refs: b, floatingStyles: H, context: M } = Ae({
|
|
9537
9539
|
placement: "bottom-end",
|
|
9538
9540
|
open: p,
|
|
9539
9541
|
onOpenChange: $,
|
|
9540
9542
|
middleware: [i2(12), d2(), b2()],
|
|
9541
9543
|
whileElementsMounted: Fe
|
|
9542
|
-
}), L = Xe(
|
|
9544
|
+
}), L = Xe(M, { event: "mousedown" }), k = Te(M), z = De(M, { role: "menu" }), x = oe([]), I = m2(M, {
|
|
9543
9545
|
listRef: x,
|
|
9544
9546
|
activeIndex: g,
|
|
9545
9547
|
onNavigate: u,
|
|
@@ -9548,8 +9550,8 @@ const ds = (_) => {
|
|
|
9548
9550
|
focusItemOnOpen: !1,
|
|
9549
9551
|
focusItemOnHover: !0
|
|
9550
9552
|
}), { getReferenceProps: T, getFloatingProps: B, getItemProps: R } = Re(
|
|
9551
|
-
[k, z, L,
|
|
9552
|
-
), { isMounted: F, styles: P } = Ye(
|
|
9553
|
+
[k, z, L, I]
|
|
9554
|
+
), { isMounted: F, styles: P } = Ye(M, {
|
|
9553
9555
|
duration: {
|
|
9554
9556
|
open: 300,
|
|
9555
9557
|
close: 150
|
|
@@ -9575,17 +9577,17 @@ const ds = (_) => {
|
|
|
9575
9577
|
), X = /* @__PURE__ */ e.createElement(G, { iconName: "angleDown", className: `${o}__trigger-icon` }), se = /* @__PURE__ */ e.createElement("li", { className: `${o}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${o}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${o}__user-email` }, s));
|
|
9576
9578
|
n.forEach((O) => {
|
|
9577
9579
|
const j = O.id ? O.id : c2();
|
|
9578
|
-
|
|
9580
|
+
_.current.push(j), w.current.push(O);
|
|
9579
9581
|
});
|
|
9580
9582
|
const Q = (O) => {
|
|
9581
|
-
const j =
|
|
9583
|
+
const j = _.current.indexOf(O), ee = w.current[j];
|
|
9582
9584
|
ee.linkContent && !ee.disabled && (x.current[j].querySelector("a").click(), $(!1)), ee.callback && !ee.disabled && (ee.callback(ee), $(!1));
|
|
9583
9585
|
}, J = (O) => {
|
|
9584
9586
|
O.preventDefault(), O.key === "Enter" && Q(O.currentTarget.id);
|
|
9585
9587
|
}, Y = (O) => {
|
|
9586
9588
|
Q(O.currentTarget.id);
|
|
9587
9589
|
}, Z = n.map((O, j) => {
|
|
9588
|
-
const ee =
|
|
9590
|
+
const ee = _.current[j], ue = `${o}__item`, de = O.disabled ? `${ue}--disabled` : null;
|
|
9589
9591
|
return /* @__PURE__ */ e.createElement(
|
|
9590
9592
|
"li",
|
|
9591
9593
|
y({
|
|
@@ -9609,7 +9611,7 @@ const ds = (_) => {
|
|
|
9609
9611
|
),
|
|
9610
9612
|
O.linkContent ? O.linkContent : O.label
|
|
9611
9613
|
);
|
|
9612
|
-
}),
|
|
9614
|
+
}), A = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9613
9615
|
"button",
|
|
9614
9616
|
y({
|
|
9615
9617
|
className: `${o}__trigger`,
|
|
@@ -9623,7 +9625,7 @@ const ds = (_) => {
|
|
|
9623
9625
|
y({
|
|
9624
9626
|
className: `${o}__dropdown`,
|
|
9625
9627
|
ref: b.setFloating,
|
|
9626
|
-
style: ae(y({},
|
|
9628
|
+
style: ae(y({}, H), {
|
|
9627
9629
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9628
9630
|
})
|
|
9629
9631
|
}, B()),
|
|
@@ -9659,7 +9661,7 @@ const ds = (_) => {
|
|
|
9659
9661
|
y({
|
|
9660
9662
|
className: N([o, f, c != null ? c : ""])
|
|
9661
9663
|
}, l),
|
|
9662
|
-
h ? S :
|
|
9664
|
+
h ? S : A
|
|
9663
9665
|
);
|
|
9664
9666
|
}, Hn = {
|
|
9665
9667
|
silver: "Silver",
|
|
@@ -9690,18 +9692,18 @@ const ds = (_) => {
|
|
|
9690
9692
|
"workspaceList",
|
|
9691
9693
|
"className"
|
|
9692
9694
|
]);
|
|
9693
|
-
const [$,
|
|
9695
|
+
const [$, _] = K(!1), [w, C] = K(null), [E, h] = K(i), o = oe([]), f = oe(null), v = i.length >= d;
|
|
9694
9696
|
let b = !1;
|
|
9695
|
-
const
|
|
9696
|
-
|
|
9697
|
-
const
|
|
9697
|
+
const H = be(ye);
|
|
9698
|
+
H && (b = H.isMobile);
|
|
9699
|
+
const M = l && b, L = "pds-workspace-selector", k = M ? `${L}--isMobile` : null, z = `${L}__menu`, x = v ? `${z}--scroll` : null, { refs: I, floatingStyles: T, context: B } = Ae({
|
|
9698
9700
|
open: $,
|
|
9699
|
-
onOpenChange:
|
|
9701
|
+
onOpenChange: _,
|
|
9700
9702
|
whileElementsMounted: Fe
|
|
9701
9703
|
}), R = Xe(B, { event: "mousedown" }), F = Te(B), P = De(B, { role: "menu" }), q = m2(B, {
|
|
9702
9704
|
listRef: o,
|
|
9703
9705
|
activeIndex: w,
|
|
9704
|
-
onNavigate:
|
|
9706
|
+
onNavigate: C,
|
|
9705
9707
|
loop: !0,
|
|
9706
9708
|
openOnArrowKeyDown: !0,
|
|
9707
9709
|
focusItemOnHover: !0,
|
|
@@ -9725,7 +9727,7 @@ const ds = (_) => {
|
|
|
9725
9727
|
});
|
|
9726
9728
|
let Z = i.find((re) => re.isActive);
|
|
9727
9729
|
Z || (Z = i[0]);
|
|
9728
|
-
const
|
|
9730
|
+
const A = (re) => {
|
|
9729
9731
|
const { value: he } = re.target, pe = i.filter((me) => me.displayName.toLowerCase().includes(he.toLowerCase()));
|
|
9730
9732
|
h(pe);
|
|
9731
9733
|
};
|
|
@@ -9736,7 +9738,7 @@ const ds = (_) => {
|
|
|
9736
9738
|
h(re);
|
|
9737
9739
|
}, [i]);
|
|
9738
9740
|
const V = (re) => {
|
|
9739
|
-
re.preventDefault(), re.key === "Enter" && o.current[w].querySelector("a").click(), re.key === "Tab" && (re.shiftKey ? v ? document.getElementById("workspace-filter").focus() :
|
|
9741
|
+
re.preventDefault(), re.key === "Enter" && o.current[w].querySelector("a").click(), re.key === "Tab" && (re.shiftKey ? v ? document.getElementById("workspace-filter").focus() : _(!1) : n ? f.current.querySelector("a").focus() : _(!1));
|
|
9740
9742
|
}, S = /* @__PURE__ */ e.createElement("div", { className: `${L}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9741
9743
|
X2,
|
|
9742
9744
|
{
|
|
@@ -9766,7 +9768,7 @@ const ds = (_) => {
|
|
|
9766
9768
|
onClear: () => h(i),
|
|
9767
9769
|
id: "workspace-filter",
|
|
9768
9770
|
label: a,
|
|
9769
|
-
onChange:
|
|
9771
|
+
onChange: A,
|
|
9770
9772
|
placeholder: s,
|
|
9771
9773
|
showLabel: !1,
|
|
9772
9774
|
type: "search"
|
|
@@ -9794,7 +9796,7 @@ const ds = (_) => {
|
|
|
9794
9796
|
/* @__PURE__ */ e.createElement(
|
|
9795
9797
|
e2,
|
|
9796
9798
|
ae(y({}, re.workspaceLink.props), {
|
|
9797
|
-
onClick: () =>
|
|
9799
|
+
onClick: () => _(!1)
|
|
9798
9800
|
}),
|
|
9799
9801
|
/* @__PURE__ */ e.createElement("div", { className: `${L}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
9800
9802
|
X2,
|
|
@@ -9816,15 +9818,15 @@ const ds = (_) => {
|
|
|
9816
9818
|
iconName: "plus",
|
|
9817
9819
|
linkContent: n,
|
|
9818
9820
|
variant: "subtle",
|
|
9819
|
-
onBlur:
|
|
9820
|
-
onClick:
|
|
9821
|
+
onBlur: _.bind(null, !1),
|
|
9822
|
+
onClick: _.bind(null, !1)
|
|
9821
9823
|
}
|
|
9822
9824
|
)), de = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9823
9825
|
"button",
|
|
9824
9826
|
y({
|
|
9825
9827
|
className: `${L}__trigger`,
|
|
9826
9828
|
"aria-label": t,
|
|
9827
|
-
ref:
|
|
9829
|
+
ref: I.setReference,
|
|
9828
9830
|
type: "button"
|
|
9829
9831
|
}, X()),
|
|
9830
9832
|
S,
|
|
@@ -9833,7 +9835,7 @@ const ds = (_) => {
|
|
|
9833
9835
|
"div",
|
|
9834
9836
|
y({
|
|
9835
9837
|
className: `${L}__dropdown`,
|
|
9836
|
-
ref:
|
|
9838
|
+
ref: I.setFloating,
|
|
9837
9839
|
style: {
|
|
9838
9840
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
9839
9841
|
}
|
|
@@ -9870,7 +9872,7 @@ const ds = (_) => {
|
|
|
9870
9872
|
y({
|
|
9871
9873
|
className: N([L, k, m])
|
|
9872
9874
|
}, g),
|
|
9873
|
-
|
|
9875
|
+
M ? _e : de
|
|
9874
9876
|
);
|
|
9875
9877
|
}, Mn = {
|
|
9876
9878
|
info: "circleInfo",
|
|
@@ -9903,38 +9905,38 @@ const ds = (_) => {
|
|
|
9903
9905
|
const u = m.length;
|
|
9904
9906
|
if (u === 0)
|
|
9905
9907
|
return null;
|
|
9906
|
-
const p = "pds-banner", $ = u > 1 ? `${p}-group--multiple` : null,
|
|
9908
|
+
const p = "pds-banner", $ = u > 1 ? `${p}-group--multiple` : null, _ = {
|
|
9907
9909
|
info: `${p}--info`,
|
|
9908
9910
|
warning: `${p}--warning`,
|
|
9909
9911
|
critical: `${p}--critical`
|
|
9910
|
-
}, w = u > 0 ? m[0].type : null,
|
|
9911
|
-
zIndex: D2 -
|
|
9912
|
-
}), h = (
|
|
9913
|
-
const
|
|
9912
|
+
}, w = u > 0 ? m[0].type : null, C = w ? `${p}-group--${w}` : null, E = (H) => ({
|
|
9913
|
+
zIndex: D2 - H
|
|
9914
|
+
}), h = (H) => H === 0 ? 0 : -1, o = () => {
|
|
9915
|
+
const H = document.getElementsByClassName(
|
|
9914
9916
|
`${p}--fading`
|
|
9915
9917
|
);
|
|
9916
|
-
for (;
|
|
9917
|
-
|
|
9918
|
+
for (; H.length; )
|
|
9919
|
+
H[0].classList.remove(`${p}--fading`);
|
|
9918
9920
|
}, f = () => {
|
|
9919
9921
|
o(), document.getElementById(m[0].id).classList.add(`${p}--fading`), setTimeout(() => {
|
|
9920
|
-
g((
|
|
9921
|
-
...
|
|
9922
|
-
|
|
9922
|
+
g((H) => [
|
|
9923
|
+
...H.slice(1),
|
|
9924
|
+
H[0]
|
|
9923
9925
|
]);
|
|
9924
9926
|
}, 200);
|
|
9925
9927
|
}, v = () => {
|
|
9926
9928
|
o(), document.getElementById(m[0].id).style.zIndex = (D2 + 2).toString(), document.getElementById(m[u - 1].id).style.zIndex = (D2 + 1).toString(), setTimeout(() => {
|
|
9927
9929
|
document.getElementById(m[0].id).classList.add(`${p}--fading`);
|
|
9928
9930
|
}, 50), setTimeout(() => {
|
|
9929
|
-
g((
|
|
9930
|
-
|
|
9931
|
-
...
|
|
9931
|
+
g((H) => [
|
|
9932
|
+
H[H.length - 1],
|
|
9933
|
+
...H.slice(0, H.length - 1)
|
|
9932
9934
|
]), document.getElementById(m[0].id).classList.remove(`${p}--fading`);
|
|
9933
9935
|
}, 200);
|
|
9934
|
-
}, b = (
|
|
9935
|
-
const { id: L, isDismissible: k, message: z, onDismiss: x, type:
|
|
9936
|
+
}, b = (H, M) => {
|
|
9937
|
+
const { id: L, isDismissible: k, message: z, onDismiss: x, type: I } = H, B = ["critical", "warning"].includes(I) ? "alert" : "status", R = `${r[I]}: `, F = (P) => {
|
|
9936
9938
|
P.preventDefault(), document.getElementById(L).classList.add(`${p}--dismissing`), setTimeout(() => {
|
|
9937
|
-
if (x &&
|
|
9939
|
+
if (x && H.onDismiss(), u === 1) {
|
|
9938
9940
|
g([]);
|
|
9939
9941
|
return;
|
|
9940
9942
|
}
|
|
@@ -9948,18 +9950,18 @@ const ds = (_) => {
|
|
|
9948
9950
|
{
|
|
9949
9951
|
key: L,
|
|
9950
9952
|
id: L,
|
|
9951
|
-
className: N([p,
|
|
9953
|
+
className: N([p, _[I]]),
|
|
9952
9954
|
role: B,
|
|
9953
9955
|
style: {
|
|
9954
|
-
zIndex: E(
|
|
9956
|
+
zIndex: E(M).zIndex
|
|
9955
9957
|
}
|
|
9956
9958
|
},
|
|
9957
9959
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
9958
9960
|
G,
|
|
9959
9961
|
{
|
|
9960
|
-
iconName: Mn[
|
|
9962
|
+
iconName: Mn[I],
|
|
9961
9963
|
iconSize: "md",
|
|
9962
|
-
className: `${p}__icon ${p}__icon--${
|
|
9964
|
+
className: `${p}__icon ${p}__icon--${H.type}`
|
|
9963
9965
|
}
|
|
9964
9966
|
), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, R, " "), z)),
|
|
9965
9967
|
k && /* @__PURE__ */ e.createElement(
|
|
@@ -9967,7 +9969,7 @@ const ds = (_) => {
|
|
|
9967
9969
|
{
|
|
9968
9970
|
className: `${p}__dismiss-button`,
|
|
9969
9971
|
onClick: F,
|
|
9970
|
-
tabIndex: h(
|
|
9972
|
+
tabIndex: h(M),
|
|
9971
9973
|
type: "button"
|
|
9972
9974
|
},
|
|
9973
9975
|
n
|
|
@@ -9979,7 +9981,7 @@ const ds = (_) => {
|
|
|
9979
9981
|
y({
|
|
9980
9982
|
className: N([
|
|
9981
9983
|
`${p}-group`,
|
|
9982
|
-
|
|
9984
|
+
C,
|
|
9983
9985
|
$,
|
|
9984
9986
|
d != null ? d : ""
|
|
9985
9987
|
])
|
|
@@ -10002,7 +10004,7 @@ const ds = (_) => {
|
|
|
10002
10004
|
ariaLabel: s,
|
|
10003
10005
|
onClick: f
|
|
10004
10006
|
}
|
|
10005
|
-
), m.map((
|
|
10007
|
+
), m.map((H, M) => b(H, M))) : b(m[0], 0)
|
|
10006
10008
|
);
|
|
10007
10009
|
}, G2 = {
|
|
10008
10010
|
info: "circleInfo",
|
|
@@ -10088,22 +10090,22 @@ const ds = (_) => {
|
|
|
10088
10090
|
"typeLabels",
|
|
10089
10091
|
"className"
|
|
10090
10092
|
]);
|
|
10091
|
-
const $ = oe(null),
|
|
10092
|
-
error: `${
|
|
10093
|
-
success: `${
|
|
10094
|
-
warning: `${
|
|
10095
|
-
info: `${
|
|
10096
|
-
critical: `${
|
|
10097
|
-
discovery: `${
|
|
10098
|
-
dismissing: `${
|
|
10099
|
-
dismissed: `${
|
|
10100
|
-
},
|
|
10101
|
-
$.current.addEventListener("animationend",
|
|
10093
|
+
const $ = oe(null), _ = "pds-section-message", w = {
|
|
10094
|
+
error: `${_}--error`,
|
|
10095
|
+
success: `${_}--success`,
|
|
10096
|
+
warning: `${_}--warning`,
|
|
10097
|
+
info: `${_}--info`,
|
|
10098
|
+
critical: `${_}--critical`,
|
|
10099
|
+
discovery: `${_}--discovery`,
|
|
10100
|
+
dismissing: `${_}--dismissing`,
|
|
10101
|
+
dismissed: `${_}--dismissed`
|
|
10102
|
+
}, C = a ? `${_}--hasDismiss` : null, E = c ? `${_}--hasTitle` : null, o = ["critical", "warning"].includes(l) ? "alert" : "status", f = `${i[l]}: `, v = typeof d == "string" ? /* @__PURE__ */ e.createElement("p", null, d) : d, b = () => {
|
|
10103
|
+
$.current.addEventListener("animationend", H, {
|
|
10102
10104
|
once: !0
|
|
10103
10105
|
});
|
|
10104
|
-
},
|
|
10106
|
+
}, H = (L) => {
|
|
10105
10107
|
r(L, s);
|
|
10106
|
-
},
|
|
10108
|
+
}, M = () => {
|
|
10107
10109
|
b(), $.current.classList.toggle(w.dismissing), setTimeout(() => {
|
|
10108
10110
|
$.current.classList.toggle(w.dismissing), $.current.classList.toggle(w.dismissed);
|
|
10109
10111
|
}, 400);
|
|
@@ -10112,9 +10114,9 @@ const ds = (_) => {
|
|
|
10112
10114
|
"div",
|
|
10113
10115
|
y({
|
|
10114
10116
|
className: N([
|
|
10115
|
-
C,
|
|
10116
|
-
w[l],
|
|
10117
10117
|
_,
|
|
10118
|
+
w[l],
|
|
10119
|
+
C,
|
|
10118
10120
|
E,
|
|
10119
10121
|
m != null ? m : ""
|
|
10120
10122
|
]),
|
|
@@ -10122,25 +10124,25 @@ const ds = (_) => {
|
|
|
10122
10124
|
ref: $,
|
|
10123
10125
|
role: o
|
|
10124
10126
|
}, g),
|
|
10125
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10127
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
10126
10128
|
G,
|
|
10127
10129
|
{
|
|
10128
10130
|
iconName: `${l}` in W2 ? W2[l] : W2.info,
|
|
10129
10131
|
iconSize: "lg"
|
|
10130
10132
|
}
|
|
10131
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10132
|
-
(t || a) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10133
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${_}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f), c && /* @__PURE__ */ e.createElement("div", { className: `${_}__title` }, c), /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, v))),
|
|
10134
|
+
(t || a) && /* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, t && /* @__PURE__ */ e.createElement(
|
|
10133
10135
|
qe,
|
|
10134
10136
|
ae(y({}, t), {
|
|
10135
|
-
className: `${
|
|
10137
|
+
className: `${_}__cta`,
|
|
10136
10138
|
size: "sm",
|
|
10137
10139
|
variant: "secondary"
|
|
10138
10140
|
})
|
|
10139
10141
|
), a && /* @__PURE__ */ e.createElement(
|
|
10140
10142
|
"button",
|
|
10141
10143
|
{
|
|
10142
|
-
className: `${
|
|
10143
|
-
onClick:
|
|
10144
|
+
className: `${_}__dismiss`,
|
|
10145
|
+
onClick: M,
|
|
10144
10146
|
"aria-label": n,
|
|
10145
10147
|
role: "button",
|
|
10146
10148
|
type: "button"
|
|
@@ -10253,11 +10255,11 @@ const Ks = () => {
|
|
|
10253
10255
|
return [...M2(1, $), C2, d];
|
|
10254
10256
|
}
|
|
10255
10257
|
if (u && !p) {
|
|
10256
|
-
const $ = 3 + 2 * t,
|
|
10258
|
+
const $ = 3 + 2 * t, _ = M2(
|
|
10257
10259
|
d - $ + 1,
|
|
10258
10260
|
d
|
|
10259
10261
|
);
|
|
10260
|
-
return [l, C2, ...
|
|
10262
|
+
return [l, C2, ..._];
|
|
10261
10263
|
}
|
|
10262
10264
|
if (u && p) {
|
|
10263
10265
|
const $ = M2(m, g);
|
|
@@ -10299,28 +10301,28 @@ const Ks = () => {
|
|
|
10299
10301
|
totalItemCount: l,
|
|
10300
10302
|
bufferCount: t,
|
|
10301
10303
|
itemsPerPage: r
|
|
10302
|
-
}), $ = p[p.length - 1],
|
|
10304
|
+
}), $ = p[p.length - 1], _ = () => {
|
|
10303
10305
|
c(n + 1);
|
|
10304
10306
|
}, w = () => {
|
|
10305
10307
|
c(n - 1);
|
|
10306
|
-
},
|
|
10308
|
+
}, C = "pds-pagination", E = `${C}__item`, h = `${E}--current`, o = `${E}--disabled`;
|
|
10307
10309
|
return n === 0 || p.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
10308
10310
|
"nav",
|
|
10309
10311
|
y({
|
|
10310
10312
|
"aria-labelledby": "pagination",
|
|
10311
|
-
className: N([
|
|
10313
|
+
className: N([C, i != null ? i : ""])
|
|
10312
10314
|
}, m),
|
|
10313
10315
|
/* @__PURE__ */ e.createElement(
|
|
10314
10316
|
Qe,
|
|
10315
10317
|
{
|
|
10316
10318
|
id: "pagination",
|
|
10317
|
-
baseClass:
|
|
10319
|
+
baseClass: C,
|
|
10318
10320
|
className: "visually-hidden",
|
|
10319
10321
|
level: s
|
|
10320
10322
|
},
|
|
10321
10323
|
a
|
|
10322
10324
|
),
|
|
10323
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
10325
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${C}__list` }, /* @__PURE__ */ e.createElement(
|
|
10324
10326
|
"li",
|
|
10325
10327
|
{
|
|
10326
10328
|
className: N([
|
|
@@ -10378,7 +10380,7 @@ const Ks = () => {
|
|
|
10378
10380
|
{
|
|
10379
10381
|
"aria-disabled": n === $ ? !0 : void 0,
|
|
10380
10382
|
"aria-label": d.next,
|
|
10381
|
-
onClick: n === $ ? void 0 :
|
|
10383
|
+
onClick: n === $ ? void 0 : _,
|
|
10382
10384
|
type: "button"
|
|
10383
10385
|
},
|
|
10384
10386
|
/* @__PURE__ */ e.createElement(G, { iconName: "arrowRight" })
|
|
@@ -10401,29 +10403,29 @@ const Ks = () => {
|
|
|
10401
10403
|
]);
|
|
10402
10404
|
const [i, m] = K(s), u = oe(
|
|
10403
10405
|
n || `expansion-panel-${c2()}`
|
|
10404
|
-
).current, p = "pds-expansion-panel", $ = oe(null),
|
|
10406
|
+
).current, p = "pds-expansion-panel", $ = oe(null), _ = oe(null), w = oe(null);
|
|
10405
10407
|
return ce(() => {
|
|
10406
|
-
const
|
|
10407
|
-
if (!
|
|
10408
|
+
const C = $.current, E = _.current, h = w.current;
|
|
10409
|
+
if (!C || !E || !h) return;
|
|
10408
10410
|
let o = null, f = !1, v = !1;
|
|
10409
10411
|
const b = (z) => {
|
|
10410
|
-
z.preventDefault(),
|
|
10411
|
-
},
|
|
10412
|
+
z.preventDefault(), C.style.overflow = "hidden", f || !C.open ? M() : (v || C.open) && H();
|
|
10413
|
+
}, H = () => {
|
|
10412
10414
|
f = !0, m(!1);
|
|
10413
|
-
const z = `${
|
|
10414
|
-
o && o.cancel(), o =
|
|
10415
|
+
const z = `${C.offsetHeight}px`, x = `${E.offsetHeight}px`;
|
|
10416
|
+
o && o.cancel(), o = C.animate(
|
|
10415
10417
|
{ height: [z, x] },
|
|
10416
10418
|
{
|
|
10417
10419
|
duration: $t,
|
|
10418
10420
|
easing: je
|
|
10419
10421
|
}
|
|
10420
10422
|
), o.onfinish = () => k(!1), o.oncancel = () => f = !1;
|
|
10421
|
-
},
|
|
10422
|
-
|
|
10423
|
+
}, M = () => {
|
|
10424
|
+
C.style.height = `${C.offsetHeight}px`, C.open = !0, m(!0), requestAnimationFrame(() => L());
|
|
10423
10425
|
}, L = () => {
|
|
10424
10426
|
v = !0;
|
|
10425
|
-
const z = `${
|
|
10426
|
-
o && o.cancel(), o =
|
|
10427
|
+
const z = `${C.offsetHeight}px`, x = `${E.offsetHeight + h.offsetHeight}px`;
|
|
10428
|
+
o && o.cancel(), o = C.animate(
|
|
10427
10429
|
{ height: [z, x] },
|
|
10428
10430
|
{
|
|
10429
10431
|
duration: $t,
|
|
@@ -10431,7 +10433,7 @@ const Ks = () => {
|
|
|
10431
10433
|
}
|
|
10432
10434
|
), o.onfinish = () => k(!0), o.oncancel = () => v = !1;
|
|
10433
10435
|
}, k = (z) => {
|
|
10434
|
-
|
|
10436
|
+
C.open = z, o = null, f = !1, v = !1, C.style.height = C.style.overflow = "";
|
|
10435
10437
|
};
|
|
10436
10438
|
return E.addEventListener("click", b), () => E.removeEventListener("click", b);
|
|
10437
10439
|
}, []), /* @__PURE__ */ e.createElement("div", y({ className: N([p, r]) }, d), /* @__PURE__ */ e.createElement(
|
|
@@ -10442,7 +10444,7 @@ const Ks = () => {
|
|
|
10442
10444
|
open: s,
|
|
10443
10445
|
ref: $
|
|
10444
10446
|
},
|
|
10445
|
-
/* @__PURE__ */ e.createElement("summary", { ref:
|
|
10447
|
+
/* @__PURE__ */ e.createElement("summary", { ref: _ }, /* @__PURE__ */ e.createElement("span", null, a), /* @__PURE__ */ e.createElement(
|
|
10446
10448
|
G,
|
|
10447
10449
|
{
|
|
10448
10450
|
iconName: "angleDown",
|
|
@@ -10531,7 +10533,7 @@ const Ks = () => {
|
|
|
10531
10533
|
"isExpandable",
|
|
10532
10534
|
"expandButtonAriaLabel"
|
|
10533
10535
|
]);
|
|
10534
|
-
const l = "pds-panel-row", [i, m] = K(!1), g = oe(null), u = oe(null), p = Oe(t), $ = p["items-left"],
|
|
10536
|
+
const l = "pds-panel-row", [i, m] = K(!1), g = oe(null), u = oe(null), p = Oe(t), $ = p["items-left"], _ = p["items-right"], w = p["items-below"], C = () => {
|
|
10535
10537
|
const E = u.current, h = g.current;
|
|
10536
10538
|
if (!E || !h) return;
|
|
10537
10539
|
const o = !i;
|
|
@@ -10589,12 +10591,12 @@ const Ks = () => {
|
|
|
10589
10591
|
])
|
|
10590
10592
|
},
|
|
10591
10593
|
$ && /* @__PURE__ */ e.createElement("div", { className: `${l}__items ${l}__items--left` }, $),
|
|
10592
|
-
|
|
10594
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: `${l}__items ${l}__items--right` }, _),
|
|
10593
10595
|
s && /* @__PURE__ */ e.createElement(
|
|
10594
10596
|
"button",
|
|
10595
10597
|
{
|
|
10596
10598
|
className: `${l}__expand-button`,
|
|
10597
|
-
onClick:
|
|
10599
|
+
onClick: C,
|
|
10598
10600
|
"aria-expanded": i,
|
|
10599
10601
|
"aria-label": a
|
|
10600
10602
|
},
|
|
@@ -10645,7 +10647,7 @@ const Ks = () => {
|
|
|
10645
10647
|
}, c)
|
|
10646
10648
|
));
|
|
10647
10649
|
}, a2 = 8, wt = 14, Vn = 6, Sn = (w) => {
|
|
10648
|
-
var
|
|
10650
|
+
var C = w, {
|
|
10649
10651
|
content: t,
|
|
10650
10652
|
closeButtonLabel: n = "Close",
|
|
10651
10653
|
customTrigger: s = !1,
|
|
@@ -10662,7 +10664,7 @@ const Ks = () => {
|
|
|
10662
10664
|
},
|
|
10663
10665
|
className: p,
|
|
10664
10666
|
classNameContainer: $
|
|
10665
|
-
} =
|
|
10667
|
+
} = C, _ = D(C, [
|
|
10666
10668
|
"content",
|
|
10667
10669
|
"closeButtonLabel",
|
|
10668
10670
|
"customTrigger",
|
|
@@ -10678,7 +10680,7 @@ const Ks = () => {
|
|
|
10678
10680
|
"className",
|
|
10679
10681
|
"classNameContainer"
|
|
10680
10682
|
]);
|
|
10681
|
-
var J, Y, Z,
|
|
10683
|
+
var J, Y, Z, A;
|
|
10682
10684
|
const [E, h] = K(g);
|
|
10683
10685
|
ce(() => {
|
|
10684
10686
|
h(g);
|
|
@@ -10688,7 +10690,7 @@ const Ks = () => {
|
|
|
10688
10690
|
const o = typeof s, f = "pds-popover", v = N([
|
|
10689
10691
|
`${f}__trigger-custom`,
|
|
10690
10692
|
o === "string" ? `${f}__trigger-text` : ""
|
|
10691
|
-
]), b = s ? r : 0,
|
|
10693
|
+
]), b = s ? r : 0, H = oe(null), { refs: M, floatingStyles: L, context: k, middlewareData: z } = Ae({
|
|
10692
10694
|
placement: c,
|
|
10693
10695
|
open: E,
|
|
10694
10696
|
onOpenChange(V) {
|
|
@@ -10698,16 +10700,16 @@ const Ks = () => {
|
|
|
10698
10700
|
i2(a2 + Vn + b),
|
|
10699
10701
|
d2({ padding: 8 }),
|
|
10700
10702
|
b2({ padding: 8 }),
|
|
10701
|
-
c1({ element:
|
|
10703
|
+
c1({ element: H })
|
|
10702
10704
|
],
|
|
10703
10705
|
whileElementsMounted: Fe
|
|
10704
10706
|
}), x = () => {
|
|
10705
10707
|
h(!1), d && d();
|
|
10706
|
-
},
|
|
10707
|
-
|
|
10708
|
+
}, I = Xe(k), T = Te(k), B = De(k), { getReferenceProps: R, getFloatingProps: F } = Re([
|
|
10709
|
+
I,
|
|
10708
10710
|
T,
|
|
10709
10711
|
B
|
|
10710
|
-
]), P = (Y = (J = z.arrow) == null ? void 0 : J.x) != null ? Y : 0, q = (
|
|
10712
|
+
]), P = (Y = (J = z.arrow) == null ? void 0 : J.x) != null ? Y : 0, q = (A = (Z = z.arrow) == null ? void 0 : Z.y) != null ? A : 0, X = P + wt / 2, se = q + a2, { isMounted: Q } = Ye(k, {
|
|
10711
10713
|
initial: {
|
|
10712
10714
|
transform: "scale(0)"
|
|
10713
10715
|
},
|
|
@@ -10720,14 +10722,14 @@ const Ks = () => {
|
|
|
10720
10722
|
}[V]
|
|
10721
10723
|
})
|
|
10722
10724
|
});
|
|
10723
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([f, p]) },
|
|
10725
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([f, p]) }, _), /* @__PURE__ */ e.createElement(
|
|
10724
10726
|
"span",
|
|
10725
10727
|
y(y({
|
|
10726
10728
|
className: `${f}__trigger`,
|
|
10727
|
-
ref:
|
|
10729
|
+
ref: M.setReference,
|
|
10728
10730
|
role: "button",
|
|
10729
10731
|
tabIndex: 0
|
|
10730
|
-
}, R()),
|
|
10732
|
+
}, R()), _),
|
|
10731
10733
|
s ? /* @__PURE__ */ e.createElement("span", { className: v }, s) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement(
|
|
10732
10734
|
G,
|
|
10733
10735
|
{
|
|
@@ -10750,13 +10752,13 @@ const Ks = () => {
|
|
|
10750
10752
|
`${f}__container`,
|
|
10751
10753
|
$
|
|
10752
10754
|
]),
|
|
10753
|
-
ref:
|
|
10755
|
+
ref: M.setFloating,
|
|
10754
10756
|
style: L
|
|
10755
10757
|
}, F()),
|
|
10756
10758
|
/* @__PURE__ */ e.createElement(
|
|
10757
10759
|
r1,
|
|
10758
10760
|
{
|
|
10759
|
-
ref:
|
|
10761
|
+
ref: H,
|
|
10760
10762
|
context: k,
|
|
10761
10763
|
height: a2,
|
|
10762
10764
|
width: wt,
|
|
@@ -10810,23 +10812,23 @@ const Ks = () => {
|
|
|
10810
10812
|
"size",
|
|
10811
10813
|
"className"
|
|
10812
10814
|
]);
|
|
10813
|
-
const $ = n || c2(),
|
|
10815
|
+
const $ = n || c2(), _ = "pds-progress-bar", w = c ? `${_}__label` : "visually-hidden", C = `${_}__track ${_}__track--${i}`, E = d > 100 ? 100 : d;
|
|
10814
10816
|
let h = "neutral";
|
|
10815
10817
|
t.forEach((b) => {
|
|
10816
10818
|
d >= b.percentage && (h = b.colorType);
|
|
10817
10819
|
});
|
|
10818
|
-
const o = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10820
|
+
const o = /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, a), f = a && r === "above", v = a && r === "below";
|
|
10819
10821
|
return /* @__PURE__ */ e.createElement(
|
|
10820
10822
|
"div",
|
|
10821
10823
|
y({
|
|
10822
|
-
className: [
|
|
10824
|
+
className: [_, m].join(" ").trim().replace(/\s+/g, " "),
|
|
10823
10825
|
style: { "--bar-percentage": `${E}%` }
|
|
10824
10826
|
}, g),
|
|
10825
10827
|
/* @__PURE__ */ e.createElement("div", { id: $, className: w }, s),
|
|
10826
|
-
(f || l) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10828
|
+
(f || l) && /* @__PURE__ */ e.createElement("div", { className: `${_}__details` }, f && o, l && /* @__PURE__ */ e.createElement(
|
|
10827
10829
|
"div",
|
|
10828
10830
|
{
|
|
10829
|
-
className: `${
|
|
10831
|
+
className: `${_}__percentage`,
|
|
10830
10832
|
style: {
|
|
10831
10833
|
color: `hsl(from var(${yt[h]}) h s calc(l - 7))`
|
|
10832
10834
|
}
|
|
@@ -10834,18 +10836,18 @@ const Ks = () => {
|
|
|
10834
10836
|
d,
|
|
10835
10837
|
"%"
|
|
10836
10838
|
)),
|
|
10837
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10839
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10838
10840
|
"div",
|
|
10839
10841
|
{
|
|
10840
10842
|
role: "progressbar",
|
|
10841
10843
|
"aria-labelledby": $,
|
|
10842
10844
|
"aria-valuenow": E,
|
|
10843
|
-
className:
|
|
10845
|
+
className: C
|
|
10844
10846
|
},
|
|
10845
10847
|
/* @__PURE__ */ e.createElement(
|
|
10846
10848
|
"div",
|
|
10847
10849
|
{
|
|
10848
|
-
className: `${
|
|
10850
|
+
className: `${_}__bar`,
|
|
10849
10851
|
style: {
|
|
10850
10852
|
width: `${E}%`,
|
|
10851
10853
|
backgroundColor: `var(${yt[h]})`
|
|
@@ -10875,10 +10877,10 @@ const Ks = () => {
|
|
|
10875
10877
|
"size",
|
|
10876
10878
|
"className"
|
|
10877
10879
|
]);
|
|
10878
|
-
const u = t || c2(), p = "pds-progress-ring", $ = r ? `${p}__label` : "visually-hidden",
|
|
10879
|
-
let
|
|
10880
|
-
c === "sm" && (
|
|
10881
|
-
const h =
|
|
10880
|
+
const u = t || c2(), p = "pds-progress-ring", $ = r ? `${p}__label` : "visually-hidden", _ = `${p}__loading-text ${p}__loading-text--${c}`, w = (b) => b * 16;
|
|
10881
|
+
let C = w(Pt), E = 7;
|
|
10882
|
+
c === "sm" && (C = w(Ft), E = E / 1.25), c === "lg" && (C = w(Bt), E = E * 1.25);
|
|
10883
|
+
const h = C / 2 - E / 2, o = 2 * Math.PI * h, f = o - o * a / 100;
|
|
10882
10884
|
let v;
|
|
10883
10885
|
return n ? v = n : d ? v = `${a}%` : v = "", /* @__PURE__ */ e.createElement(
|
|
10884
10886
|
"div",
|
|
@@ -10903,16 +10905,16 @@ const Ks = () => {
|
|
|
10903
10905
|
/* @__PURE__ */ e.createElement(
|
|
10904
10906
|
"svg",
|
|
10905
10907
|
{
|
|
10906
|
-
height:
|
|
10907
|
-
width:
|
|
10908
|
-
viewBox: `0 0 ${
|
|
10908
|
+
height: C,
|
|
10909
|
+
width: C,
|
|
10910
|
+
viewBox: `0 0 ${C} ${C}`
|
|
10909
10911
|
},
|
|
10910
10912
|
/* @__PURE__ */ e.createElement(
|
|
10911
10913
|
"circle",
|
|
10912
10914
|
{
|
|
10913
10915
|
className: `${p}__track`,
|
|
10914
|
-
cx:
|
|
10915
|
-
cy:
|
|
10916
|
+
cx: C / 2,
|
|
10917
|
+
cy: C / 2,
|
|
10916
10918
|
r: h,
|
|
10917
10919
|
strokeWidth: E
|
|
10918
10920
|
}
|
|
@@ -10921,19 +10923,19 @@ const Ks = () => {
|
|
|
10921
10923
|
"circle",
|
|
10922
10924
|
{
|
|
10923
10925
|
className: `${p}__progress`,
|
|
10924
|
-
cx:
|
|
10925
|
-
cy:
|
|
10926
|
+
cx: C / 2,
|
|
10927
|
+
cy: C / 2,
|
|
10926
10928
|
r: h,
|
|
10927
10929
|
strokeWidth: E,
|
|
10928
10930
|
strokeDasharray: o,
|
|
10929
10931
|
strokeDashoffset: f,
|
|
10930
|
-
transform: `rotate(-90 ${
|
|
10932
|
+
transform: `rotate(-90 ${C / 2} ${C / 2})`
|
|
10931
10933
|
}
|
|
10932
10934
|
),
|
|
10933
10935
|
/* @__PURE__ */ e.createElement(
|
|
10934
10936
|
"text",
|
|
10935
10937
|
{
|
|
10936
|
-
className:
|
|
10938
|
+
className: _,
|
|
10937
10939
|
fill: "var(--pds-color-fg-default)",
|
|
10938
10940
|
x: "50%",
|
|
10939
10941
|
y: "51%",
|
|
@@ -11015,7 +11017,7 @@ const l4 = (i) => {
|
|
|
11015
11017
|
return p.checking;
|
|
11016
11018
|
case "checked":
|
|
11017
11019
|
if (a) {
|
|
11018
|
-
const v = a instanceof Date ? a : new Date(a), b = Date.now() - v.getTime(),
|
|
11020
|
+
const v = a instanceof Date ? a : new Date(a), b = Date.now() - v.getTime(), H = Math.floor(b / 1e3), M = Math.floor(H / 60), L = Math.floor(M / 60), k = Math.floor(L / 24), z = {
|
|
11019
11021
|
year: "numeric",
|
|
11020
11022
|
month: "short",
|
|
11021
11023
|
day: "numeric"
|
|
@@ -11024,13 +11026,13 @@ const l4 = (i) => {
|
|
|
11024
11026
|
return k > 7 ? x = v.toLocaleDateString(
|
|
11025
11027
|
void 0,
|
|
11026
11028
|
z
|
|
11027
|
-
) : k > 0 && k <= 7 ? x = `${k} day${k !== 1 ? "s" : ""} ago` : L > 0 ? x = `${L} hour${L !== 1 ? "s" : ""} ago` :
|
|
11029
|
+
) : k > 0 && k <= 7 ? x = `${k} day${k !== 1 ? "s" : ""} ago` : L > 0 ? x = `${L} hour${L !== 1 ? "s" : ""} ago` : M > 0 ? x = `${M} minute${M !== 1 ? "s" : ""} ago` : x = `${H} second${H !== 1 ? "s" : ""} ago`, `${p.checked} ${x}`;
|
|
11028
11030
|
}
|
|
11029
11031
|
return p.checked;
|
|
11030
11032
|
}
|
|
11031
|
-
},
|
|
11033
|
+
}, _ = () => {
|
|
11032
11034
|
r == null || r();
|
|
11033
|
-
}, w = "pds-refresh-checker",
|
|
11035
|
+
}, w = "pds-refresh-checker", C = `${w}--${t}`, E = N([
|
|
11034
11036
|
`${w}__button`,
|
|
11035
11037
|
g === "working" ? `${w}__button--spinning` : ""
|
|
11036
11038
|
]), h = n !== null && n > 0 ? `${n}rem` : "100%", o = /* @__PURE__ */ e.createElement("span", { className: `${w}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
@@ -11044,7 +11046,7 @@ const l4 = (i) => {
|
|
|
11044
11046
|
return /* @__PURE__ */ e.createElement(
|
|
11045
11047
|
"div",
|
|
11046
11048
|
y({
|
|
11047
|
-
className: N([w,
|
|
11049
|
+
className: N([w, C, c != null ? c : ""]),
|
|
11048
11050
|
style: { width: h }
|
|
11049
11051
|
}, l),
|
|
11050
11052
|
/* @__PURE__ */ e.createElement(
|
|
@@ -11052,7 +11054,7 @@ const l4 = (i) => {
|
|
|
11052
11054
|
{
|
|
11053
11055
|
type: "button",
|
|
11054
11056
|
className: E,
|
|
11055
|
-
onClick:
|
|
11057
|
+
onClick: _,
|
|
11056
11058
|
"aria-live": "polite",
|
|
11057
11059
|
"aria-label": p.ariaLabel
|
|
11058
11060
|
},
|
|
@@ -11095,8 +11097,8 @@ const l4 = (i) => {
|
|
|
11095
11097
|
"upgradeLabel",
|
|
11096
11098
|
"className"
|
|
11097
11099
|
]);
|
|
11098
|
-
const
|
|
11099
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([
|
|
11100
|
+
const _ = "pds-site-dashboard-heading", w = $n[c], C = l ? Wt[l] : "bolt";
|
|
11101
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([_, g != null ? g : ""]) }, u), /* @__PURE__ */ e.createElement(G, { iconName: C, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, d), /* @__PURE__ */ e.createElement("span", { className: `${_}__plan-level-badge` }, c === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
11100
11102
|
qe,
|
|
11101
11103
|
{
|
|
11102
11104
|
displayType: "icon-start",
|
|
@@ -11229,15 +11231,15 @@ const l4 = (i) => {
|
|
|
11229
11231
|
]);
|
|
11230
11232
|
const c = "pds-stepper", l = "pds-stepper-mobile", i = oe(), [m] = S2(i), g = m.width, u = Number(
|
|
11231
11233
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
11232
|
-
) * 16, p = -40, $ = 2,
|
|
11233
|
-
const v = f + 1, b = f ===
|
|
11234
|
+
) * 16, p = -40, $ = 2, _ = 5, w = t.length, C = t.map((o) => o.isCurrent).lastIndexOf(!0), E = t.map((o, f) => {
|
|
11235
|
+
const v = f + 1, b = f === C, H = f < C, M = o.hasError && b, k = (g - w * u) / (w + (w - 2)), z = u + k * 2, x = u + k, I = k + p * -1, T = f === 0, B = f === w - 1;
|
|
11234
11236
|
let R = z;
|
|
11235
11237
|
(T || B) && (R = x);
|
|
11236
11238
|
const F = `${c}__step`, P = [F];
|
|
11237
|
-
b && P.push(`${F}--current`),
|
|
11239
|
+
b && P.push(`${F}--current`), H && P.push(`${F}--complete`), M && P.push(`${F}--error`);
|
|
11238
11240
|
let q = `${n.step} ${v}`;
|
|
11239
|
-
|
|
11240
|
-
const X =
|
|
11241
|
+
H && (q = `${n.step} ${v}, ${n.completed}`), M && (q = `${n.step} ${v}, ${n.hasError}`);
|
|
11242
|
+
const X = H ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11241
11243
|
G,
|
|
11242
11244
|
{
|
|
11243
11245
|
iconName: "check",
|
|
@@ -11246,7 +11248,7 @@ const l4 = (i) => {
|
|
|
11246
11248
|
}
|
|
11247
11249
|
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }), se = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` }, o.label);
|
|
11248
11250
|
let Q = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-content` }, se, X);
|
|
11249
|
-
if (
|
|
11251
|
+
if (H && o.callback) {
|
|
11250
11252
|
const J = (Y) => {
|
|
11251
11253
|
o.callback(o), Y.preventDefault();
|
|
11252
11254
|
};
|
|
@@ -11278,7 +11280,7 @@ const l4 = (i) => {
|
|
|
11278
11280
|
{
|
|
11279
11281
|
className: `${c}__connector ${c}__connector--before`,
|
|
11280
11282
|
style: {
|
|
11281
|
-
width:
|
|
11283
|
+
width: I,
|
|
11282
11284
|
marginRight: p
|
|
11283
11285
|
}
|
|
11284
11286
|
}
|
|
@@ -11288,18 +11290,18 @@ const l4 = (i) => {
|
|
|
11288
11290
|
"span",
|
|
11289
11291
|
{
|
|
11290
11292
|
className: `${c}__connector ${c}__connector--after`,
|
|
11291
|
-
style: { width:
|
|
11293
|
+
style: { width: I, marginLeft: p }
|
|
11292
11294
|
}
|
|
11293
11295
|
)
|
|
11294
11296
|
);
|
|
11295
11297
|
}), h = t.map((o, f) => {
|
|
11296
|
-
const v = f + 1, b = f ===
|
|
11298
|
+
const v = f + 1, b = f === C, H = f === w - 1, M = o.hasError && b, L = t[C + 1] ? t[C + 1].label : null;
|
|
11297
11299
|
if (b) {
|
|
11298
|
-
const k = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), v, " of ", w), z = v / w * 100, x =
|
|
11300
|
+
const k = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), v, " of ", w), z = v / w * 100, x = M ? {
|
|
11299
11301
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
11300
11302
|
} : {
|
|
11301
11303
|
"--pds-color-status-info-foreground": "var(--pds-color-brand-primary-default)"
|
|
11302
|
-
},
|
|
11304
|
+
}, I = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, n.step, " ", v, ", ", n.hasError);
|
|
11303
11305
|
return /* @__PURE__ */ e.createElement(
|
|
11304
11306
|
"div",
|
|
11305
11307
|
{
|
|
@@ -11317,18 +11319,18 @@ const l4 = (i) => {
|
|
|
11317
11319
|
style: x
|
|
11318
11320
|
}
|
|
11319
11321
|
)),
|
|
11320
|
-
/* @__PURE__ */ e.createElement("div", { className: `${l}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${l}__step-label` },
|
|
11322
|
+
/* @__PURE__ */ e.createElement("div", { className: `${l}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${l}__step-label` }, M && /* @__PURE__ */ e.createElement(e.Fragment, null, I, /* @__PURE__ */ e.createElement(
|
|
11321
11323
|
G,
|
|
11322
11324
|
{
|
|
11323
11325
|
iconName: "diamondExclamation",
|
|
11324
11326
|
iconSize: "md",
|
|
11325
11327
|
className: `${l}__error-icon`
|
|
11326
11328
|
}
|
|
11327
|
-
)), o.label), !
|
|
11329
|
+
)), o.label), !H && /* @__PURE__ */ e.createElement("div", { className: `${l}__next-step` }, `${n.next}: ${L}`))
|
|
11328
11330
|
);
|
|
11329
11331
|
}
|
|
11330
11332
|
});
|
|
11331
|
-
if (w >= $ && w <=
|
|
11333
|
+
if (w >= $ && w <= _)
|
|
11332
11334
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
11333
11335
|
"div",
|
|
11334
11336
|
y({
|
|
@@ -11366,8 +11368,8 @@ const l4 = (i) => {
|
|
|
11366
11368
|
"isComplete",
|
|
11367
11369
|
"_isFirstStep"
|
|
11368
11370
|
]);
|
|
11369
|
-
const p = "pds-vert-stepper", $ = `${p}__step`,
|
|
11370
|
-
return r &&
|
|
11371
|
+
const p = "pds-vert-stepper", $ = `${p}__step`, _ = [$];
|
|
11372
|
+
return r && _.push(`${$}--current`), l && _.push(`${$}--complete`), s && _.push(`${$}--error`), /* @__PURE__ */ e.createElement("li", y({ id: a, className: N([..._]) }, m), /* @__PURE__ */ e.createElement("div", { className: `${p}__step-header` }, /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${p}__step-indicator` }, l && /* @__PURE__ */ e.createElement(
|
|
11371
11373
|
G,
|
|
11372
11374
|
{
|
|
11373
11375
|
iconName: "check",
|
|
@@ -11390,12 +11392,12 @@ const l4 = (i) => {
|
|
|
11390
11392
|
"className"
|
|
11391
11393
|
]);
|
|
11392
11394
|
const c = "pds-vert-stepper", m = n.length, g = n.findIndex(($) => $.isCurrent), u = n.map((p, $) => {
|
|
11393
|
-
const
|
|
11394
|
-
let o = `${t.step} ${
|
|
11395
|
-
return E && (o = `${t.step} ${
|
|
11395
|
+
const _ = $ + 1, w = $ === g, C = $ === 0, E = p.isComplete || !1, h = p.hasError && w;
|
|
11396
|
+
let o = `${t.step} ${_}`;
|
|
11397
|
+
return E && (o = `${t.step} ${_}, ${t.completed}`), h && (o = `${t.step} ${_}, ${t.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11396
11398
|
Tn,
|
|
11397
11399
|
{
|
|
11398
|
-
key: `s${
|
|
11400
|
+
key: `s${_}`,
|
|
11399
11401
|
label: p.label,
|
|
11400
11402
|
stepContent: p.stepContent,
|
|
11401
11403
|
id: p.id,
|
|
@@ -11404,9 +11406,9 @@ const l4 = (i) => {
|
|
|
11404
11406
|
hasError: h,
|
|
11405
11407
|
isCurrent: w,
|
|
11406
11408
|
isComplete: E,
|
|
11407
|
-
_isFirstStep:
|
|
11409
|
+
_isFirstStep: C,
|
|
11408
11410
|
"aria-label": o,
|
|
11409
|
-
"aria-posinset":
|
|
11411
|
+
"aria-posinset": _,
|
|
11410
11412
|
"aria-setsize": m,
|
|
11411
11413
|
"aria-current": w ? "step" : null
|
|
11412
11414
|
}
|
|
@@ -11424,25 +11426,25 @@ const l4 = (i) => {
|
|
|
11424
11426
|
"rowData",
|
|
11425
11427
|
"className"
|
|
11426
11428
|
]);
|
|
11427
|
-
const [c] = K(t), [l, i] = K(n), [m, g] = K({ order: "asc", key: "" }), u = (
|
|
11428
|
-
i(l.sort((E, h) => E[
|
|
11429
|
-
}, p = (
|
|
11430
|
-
i(l.sort((E, h) => h[
|
|
11431
|
-
}, $ = (
|
|
11429
|
+
const [c] = K(t), [l, i] = K(n), [m, g] = K({ order: "asc", key: "" }), u = (C) => {
|
|
11430
|
+
i(l.sort((E, h) => E[C].localeCompare(h[C]))), g({ order: "desc", key: C });
|
|
11431
|
+
}, p = (C) => {
|
|
11432
|
+
i(l.sort((E, h) => h[C].localeCompare(E[C]))), g({ order: "asc", key: C });
|
|
11433
|
+
}, $ = (C, E) => {
|
|
11432
11434
|
g(ae(y({}, m), { key: E })), m.order === "asc" ? u(E) : p(E);
|
|
11433
|
-
},
|
|
11434
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", y({ className: N([w, s]) }, a), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, c.map((
|
|
11435
|
+
}, _ = (C, E) => /* @__PURE__ */ e.createElement("tr", { id: E, key: `table-row-${E}` }, C.map((h, o) => /* @__PURE__ */ e.createElement("td", { key: `${E}-cell-${o}` }, /* @__PURE__ */ e.createElement("span", null, h)))), w = "pds-table";
|
|
11436
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", y({ className: N([w, s]) }, a), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, c.map((C, E) => /* @__PURE__ */ e.createElement("th", { key: `header-${E}` }, C.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${w}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
11435
11437
|
"span",
|
|
11436
11438
|
{
|
|
11437
11439
|
className: `${w}__sort-header`,
|
|
11438
11440
|
onClick: (h) => $(h, E)
|
|
11439
11441
|
},
|
|
11440
|
-
|
|
11442
|
+
C.title
|
|
11441
11443
|
), /* @__PURE__ */ e.createElement(
|
|
11442
11444
|
"button",
|
|
11443
11445
|
{
|
|
11444
11446
|
className: `${w}__sort-button`,
|
|
11445
|
-
title: `Sort by ${
|
|
11447
|
+
title: `Sort by ${C.title}`,
|
|
11446
11448
|
onClick: (h) => $(h, E),
|
|
11447
11449
|
type: "button"
|
|
11448
11450
|
},
|
|
@@ -11460,7 +11462,7 @@ const l4 = (i) => {
|
|
|
11460
11462
|
},
|
|
11461
11463
|
/* @__PURE__ */ e.createElement(G, { iconName: "caretDown", iconSize: "sm" })
|
|
11462
11464
|
)
|
|
11463
|
-
)) : /* @__PURE__ */ e.createElement("span", null,
|
|
11465
|
+
)) : /* @__PURE__ */ e.createElement("span", null, C.title))))), /* @__PURE__ */ e.createElement("tbody", null, l.map((C, E) => _(C, E)))));
|
|
11464
11466
|
}, m4 = (m) => {
|
|
11465
11467
|
var g = m, {
|
|
11466
11468
|
appendIds: t = !1,
|
|
@@ -11499,38 +11501,38 @@ const l4 = (i) => {
|
|
|
11499
11501
|
"=",
|
|
11500
11502
|
"|",
|
|
11501
11503
|
"~"
|
|
11502
|
-
], $ = `#${c} h2:not(.${r}), h3:not(.${r})`,
|
|
11503
|
-
const [
|
|
11504
|
+
], $ = `#${c} h2:not(.${r}), h3:not(.${r})`, _ = () => {
|
|
11505
|
+
const [M, L] = K([]);
|
|
11504
11506
|
return ce(() => {
|
|
11505
11507
|
const k = Array.from(
|
|
11506
11508
|
document.querySelectorAll($)
|
|
11507
11509
|
);
|
|
11508
11510
|
k.map((x) => {
|
|
11509
|
-
p.forEach((
|
|
11510
|
-
x.id.includes(
|
|
11511
|
+
p.forEach((I) => {
|
|
11512
|
+
x.id.includes(I) && (x.id = x.id.replaceAll(I, "-"));
|
|
11511
11513
|
});
|
|
11512
11514
|
}), k.map((x) => {
|
|
11513
|
-
const
|
|
11514
|
-
x.id || (x.id =
|
|
11515
|
+
const I = `item-${c2()}`;
|
|
11516
|
+
x.id || (x.id = I);
|
|
11515
11517
|
});
|
|
11516
11518
|
const z = w(k);
|
|
11517
11519
|
L(z);
|
|
11518
|
-
}, []), { nestedHeadings:
|
|
11519
|
-
}, w = (
|
|
11520
|
+
}, []), { nestedHeadings: M };
|
|
11521
|
+
}, w = (M) => {
|
|
11520
11522
|
const L = [];
|
|
11521
|
-
return
|
|
11523
|
+
return M.forEach((k) => {
|
|
11522
11524
|
const { innerText: z, id: x } = k;
|
|
11523
11525
|
k.nodeName === "H2" ? L.push({ id: x, title: z, items: [] }) : k.nodeName === "H3" && L.length > 0 && L[L.length - 1].items.push({
|
|
11524
11526
|
id: x,
|
|
11525
11527
|
title: z
|
|
11526
11528
|
});
|
|
11527
11529
|
}), L;
|
|
11528
|
-
}, { nestedHeadings:
|
|
11529
|
-
((
|
|
11530
|
+
}, { nestedHeadings: C } = _(), [E, h] = K();
|
|
11531
|
+
((M) => {
|
|
11530
11532
|
const L = oe({});
|
|
11531
11533
|
ce(() => {
|
|
11532
|
-
const k = (
|
|
11533
|
-
L.current =
|
|
11534
|
+
const k = (I) => {
|
|
11535
|
+
L.current = I.reduce((R, F) => (R[F.target.id] = F, R), L.current);
|
|
11534
11536
|
const T = [];
|
|
11535
11537
|
Object.keys(L.current).forEach((R) => {
|
|
11536
11538
|
const F = L.current[R];
|
|
@@ -11538,31 +11540,31 @@ const l4 = (i) => {
|
|
|
11538
11540
|
});
|
|
11539
11541
|
const B = (R) => x.findIndex((F) => F.id === R);
|
|
11540
11542
|
if (T.length === 1)
|
|
11541
|
-
|
|
11543
|
+
M(T[0].target.id);
|
|
11542
11544
|
else if (T.length > 1) {
|
|
11543
11545
|
const R = T.sort(
|
|
11544
11546
|
(F, P) => B(F.target.id) - B(P.target.id)
|
|
11545
11547
|
);
|
|
11546
|
-
|
|
11548
|
+
M(R[0].target.id);
|
|
11547
11549
|
}
|
|
11548
11550
|
}, z = new IntersectionObserver(k, {
|
|
11549
11551
|
rootMargin: "0px 0px -20% 0px"
|
|
11550
11552
|
}), x = Array.from(
|
|
11551
11553
|
document.querySelectorAll($)
|
|
11552
11554
|
);
|
|
11553
|
-
return x.forEach((
|
|
11554
|
-
}, [
|
|
11555
|
+
return x.forEach((I) => z.observe(I)), () => z.disconnect();
|
|
11556
|
+
}, [M]);
|
|
11555
11557
|
})(h);
|
|
11556
|
-
const f = (
|
|
11557
|
-
typeof window != "undefined" && window.location.hash !== `#${
|
|
11558
|
-
}, v = (
|
|
11559
|
-
document.querySelector(`#${
|
|
11558
|
+
const f = (M) => {
|
|
11559
|
+
typeof window != "undefined" && window.location.hash !== `#${M}` && window.history.pushState({}, "", `#${M}`);
|
|
11560
|
+
}, v = (M) => {
|
|
11561
|
+
document.querySelector(`#${M}`).scrollIntoView({
|
|
11560
11562
|
behavior: "smooth",
|
|
11561
11563
|
block: "start"
|
|
11562
11564
|
});
|
|
11563
|
-
}, b = (
|
|
11564
|
-
|
|
11565
|
-
},
|
|
11565
|
+
}, b = (M, L) => {
|
|
11566
|
+
M.preventDefault(), t && f(L), v(L);
|
|
11567
|
+
}, H = ({ headings: M }) => /* @__PURE__ */ e.createElement("ul", { className: `${u}__list ${u}__list--top-level` }, M.map((L) => /* @__PURE__ */ e.createElement("li", { key: L.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
11566
11568
|
"a",
|
|
11567
11569
|
{
|
|
11568
11570
|
className: L.id === E ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
@@ -11604,7 +11606,7 @@ const l4 = (i) => {
|
|
|
11604
11606
|
},
|
|
11605
11607
|
a
|
|
11606
11608
|
),
|
|
11607
|
-
/* @__PURE__ */ e.createElement(
|
|
11609
|
+
/* @__PURE__ */ e.createElement(H, { headings: C, activeID: E })
|
|
11608
11610
|
);
|
|
11609
11611
|
}, u4 = (l) => {
|
|
11610
11612
|
var i = l, {
|
|
@@ -11627,8 +11629,8 @@ const l4 = (i) => {
|
|
|
11627
11629
|
ce(() => {
|
|
11628
11630
|
a !== void 0 && u(a);
|
|
11629
11631
|
}, [a]);
|
|
11630
|
-
const p = (
|
|
11631
|
-
const E =
|
|
11632
|
+
const p = (C) => {
|
|
11633
|
+
const E = C.currentTarget.getAttribute("data-tabnumber");
|
|
11632
11634
|
if (E) {
|
|
11633
11635
|
const h = parseInt(E, 10);
|
|
11634
11636
|
u(h);
|
|
@@ -11637,39 +11639,39 @@ const l4 = (i) => {
|
|
|
11637
11639
|
ce(() => {
|
|
11638
11640
|
s(g);
|
|
11639
11641
|
}, [g, s]), ce(() => {
|
|
11640
|
-
const
|
|
11641
|
-
if (g >
|
|
11642
|
+
const C = $.current.length - 1;
|
|
11643
|
+
if (g > C) {
|
|
11642
11644
|
u(0);
|
|
11643
11645
|
return;
|
|
11644
11646
|
} else if (g < 0) {
|
|
11645
|
-
u(
|
|
11647
|
+
u(C);
|
|
11646
11648
|
return;
|
|
11647
11649
|
}
|
|
11648
11650
|
}, [g]);
|
|
11649
|
-
const
|
|
11651
|
+
const _ = (C, E) => {
|
|
11650
11652
|
const h = g;
|
|
11651
11653
|
let o = $.current[E === "next" ? h + 1 < $.current.length ? h + 1 : 0 : h - 1 >= 0 ? h - 1 : $.current.length - 1];
|
|
11652
|
-
o || (o = E == "next" ? $.current[
|
|
11653
|
-
}, w = (
|
|
11654
|
+
o || (o = E == "next" ? $.current[C + 1] == null ? $.current[0] : $.current[C + 1] : $.current[C - 1]), o.focus();
|
|
11655
|
+
}, w = (C) => {
|
|
11654
11656
|
const E = $.current.length, h = () => {
|
|
11655
|
-
|
|
11657
|
+
_((g + 1) % E, "next"), u(g + 1);
|
|
11656
11658
|
}, o = () => {
|
|
11657
|
-
|
|
11659
|
+
_((g - 1 + E) % E, "prev"), u(g - 1);
|
|
11658
11660
|
}, f = () => {
|
|
11659
|
-
|
|
11661
|
+
_(0), u(0);
|
|
11660
11662
|
}, v = () => {
|
|
11661
|
-
|
|
11663
|
+
_(E - 1), u(E - 1);
|
|
11662
11664
|
}, b = () => {
|
|
11663
11665
|
$.current[g].focus();
|
|
11664
|
-
},
|
|
11666
|
+
}, M = {
|
|
11665
11667
|
ArrowRight: h,
|
|
11666
11668
|
ArrowLeft: o,
|
|
11667
11669
|
Home: f,
|
|
11668
11670
|
End: v,
|
|
11669
11671
|
Space: b,
|
|
11670
11672
|
Enter: b
|
|
11671
|
-
}[
|
|
11672
|
-
|
|
11673
|
+
}[C.code];
|
|
11674
|
+
M && (C.preventDefault(), M());
|
|
11673
11675
|
};
|
|
11674
11676
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", y({ className: N([m, d]) }, c), /* @__PURE__ */ e.createElement(
|
|
11675
11677
|
"div",
|
|
@@ -11679,7 +11681,7 @@ const l4 = (i) => {
|
|
|
11679
11681
|
"aria-label": t,
|
|
11680
11682
|
"aria-orientation": "horizontal"
|
|
11681
11683
|
},
|
|
11682
|
-
r.map(({ disabled:
|
|
11684
|
+
r.map(({ disabled: C, icon: E, tabId: h, tabLabel: o, tally: f }, v) => /* @__PURE__ */ e.createElement(
|
|
11683
11685
|
"button",
|
|
11684
11686
|
{
|
|
11685
11687
|
className: `${m}__tab`,
|
|
@@ -11691,16 +11693,16 @@ const l4 = (i) => {
|
|
|
11691
11693
|
b.preventDefault(), w(b);
|
|
11692
11694
|
},
|
|
11693
11695
|
key: v,
|
|
11694
|
-
ref: (b) =>
|
|
11696
|
+
ref: (b) => C ? null : $.current[v] = b,
|
|
11695
11697
|
"aria-controls": `${m}__tab--${v}`,
|
|
11696
11698
|
tabIndex: g === v ? 0 : -1,
|
|
11697
|
-
"aria-disabled": !!
|
|
11698
|
-
onClick:
|
|
11699
|
+
"aria-disabled": !!C,
|
|
11700
|
+
onClick: C ? null : p,
|
|
11699
11701
|
type: "button"
|
|
11700
11702
|
},
|
|
11701
11703
|
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(G, { iconName: E, iconSize: "md" }) : null, " ", o, r[v].tally ? /* @__PURE__ */ e.createElement(z2, { label: f.label, type: f.type }) : null)
|
|
11702
11704
|
))
|
|
11703
|
-
), r.map(({ disabled:
|
|
11705
|
+
), r.map(({ disabled: C, icon: E, panelContent: h, tabLabel: o, tally: f }, v) => /* @__PURE__ */ e.createElement(
|
|
11704
11706
|
"div",
|
|
11705
11707
|
{
|
|
11706
11708
|
className: `${m}__panel`,
|
|
@@ -11718,10 +11720,10 @@ const l4 = (i) => {
|
|
|
11718
11720
|
"data-tabnumber": v,
|
|
11719
11721
|
key: v,
|
|
11720
11722
|
onKeyDown: w,
|
|
11721
|
-
"aria-disabled": !!
|
|
11723
|
+
"aria-disabled": !!C,
|
|
11722
11724
|
"aria-controls": `tabpanel_${v}`,
|
|
11723
11725
|
tabIndex: g === v ? 1 : -1,
|
|
11724
|
-
onClick:
|
|
11726
|
+
onClick: C ? null : p,
|
|
11725
11727
|
type: "button"
|
|
11726
11728
|
},
|
|
11727
11729
|
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(G, { iconSize: "md", iconName: E }) : null, " ", o, r[v].tally ? /* @__PURE__ */ e.createElement(z2, { label: f.label, type: f.type }) : null),
|
|
@@ -11792,16 +11794,16 @@ const l4 = (i) => {
|
|
|
11792
11794
|
"tagLabel",
|
|
11793
11795
|
"className"
|
|
11794
11796
|
]);
|
|
11795
|
-
const [g, u] = K(!0), p = "pds-tag", $ = r ? `${p}--${r}` : `${p}--${Dn(d)}`,
|
|
11797
|
+
const [g, u] = K(!0), p = "pds-tag", $ = r ? `${p}--${r}` : `${p}--${Dn(d)}`, _ = g ? null : "pds-tag--hide", w = () => {
|
|
11796
11798
|
u((o) => !o);
|
|
11797
11799
|
};
|
|
11798
|
-
let
|
|
11799
|
-
return t && !n && Me(t) ? (
|
|
11800
|
-
|
|
11800
|
+
let C, E, h;
|
|
11801
|
+
return t && !n && Me(t) ? (C = t.type, E = t.props.href ? "href" : "to", h = E === "href" ? t.props.href : t.props.to) : (C = "span", E = null, h = null), /* @__PURE__ */ e.createElement(
|
|
11802
|
+
C,
|
|
11801
11803
|
y({
|
|
11802
11804
|
href: E === "href" ? h : null,
|
|
11803
11805
|
to: E === "to" ? h : null,
|
|
11804
|
-
className: [p, $,
|
|
11806
|
+
className: [p, $, _, c].join(" ").trim().replace(/\s+/g, " ")
|
|
11805
11807
|
}, l),
|
|
11806
11808
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label`, title: d }, Rn(d, 20)),
|
|
11807
11809
|
n ? /* @__PURE__ */ e.createElement(
|
|
@@ -11905,8 +11907,8 @@ const l4 = (i) => {
|
|
|
11905
11907
|
alt: u,
|
|
11906
11908
|
name: p,
|
|
11907
11909
|
title: $,
|
|
11908
|
-
org:
|
|
11909
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("div", { className: `${c}__image ${c}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: g, alt: u })), p && /* @__PURE__ */ e.createElement("div", { className: `${c}__name` }, p), $ && /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, $),
|
|
11910
|
+
org: _
|
|
11911
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("div", { className: `${c}__image ${c}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: g, alt: u })), p && /* @__PURE__ */ e.createElement("div", { className: `${c}__name` }, p), $ && /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, $), _ && /* @__PURE__ */ e.createElement("div", { className: `${c}__org` }, _)), i = (g) => Me(g.linkContent) ? Ie(g.linkContent, {
|
|
11910
11912
|
children: /* @__PURE__ */ e.createElement(l, y({}, g)),
|
|
11911
11913
|
className: `${c}__item`
|
|
11912
11914
|
}) : /* @__PURE__ */ e.createElement("span", { className: `${c}__item` }, /* @__PURE__ */ e.createElement(l, y({}, g))), m = () => t.map((g, u) => /* @__PURE__ */ e.createElement(n1, { key: `tile-${u}` }, i(g), /* @__PURE__ */ e.createElement("div", { className: "pds-tile__separator" })));
|
|
@@ -12003,8 +12005,8 @@ const l4 = (i) => {
|
|
|
12003
12005
|
}
|
|
12004
12006
|
))
|
|
12005
12007
|
);
|
|
12006
|
-
}, C4 = (
|
|
12007
|
-
var w =
|
|
12008
|
+
}, C4 = (_) => {
|
|
12009
|
+
var w = _, {
|
|
12008
12010
|
children: t,
|
|
12009
12011
|
containerWidth: n = "x-wide",
|
|
12010
12012
|
hasSidebarToggle: s,
|
|
@@ -12036,16 +12038,16 @@ const l4 = (i) => {
|
|
|
12036
12038
|
"sidebarProps",
|
|
12037
12039
|
"className"
|
|
12038
12040
|
]);
|
|
12039
|
-
let
|
|
12041
|
+
let C = !1;
|
|
12040
12042
|
const E = be(ye);
|
|
12041
|
-
E && (
|
|
12043
|
+
E && (C = E.isMobile);
|
|
12042
12044
|
const [h, o] = K(
|
|
12043
12045
|
a || !1
|
|
12044
12046
|
);
|
|
12045
12047
|
ce(() => {
|
|
12046
12048
|
o(a || !1);
|
|
12047
12049
|
}, [a]);
|
|
12048
|
-
const f = "pds-app-layout", v = `pds-container pds-container--${n}`, b =
|
|
12050
|
+
const f = "pds-app-layout", v = `pds-container pds-container--${n}`, b = C ? `${f}--isMobile` : null, M = {
|
|
12049
12051
|
width: h ? `${i}rem` : `${m}`,
|
|
12050
12052
|
minWidth: h ? `${i}rem` : `${g}rem`,
|
|
12051
12053
|
transition: "all 200ms ease-in-out"
|
|
@@ -12055,7 +12057,7 @@ const l4 = (i) => {
|
|
|
12055
12057
|
return;
|
|
12056
12058
|
}
|
|
12057
12059
|
o(!h);
|
|
12058
|
-
}, k = Oe(t), z = k.__unslotted, x = k.sidebar,
|
|
12060
|
+
}, k = Oe(t), z = k.__unslotted, x = k.sidebar, I = Ht(
|
|
12059
12061
|
d,
|
|
12060
12062
|
ae(y({}, c), {
|
|
12061
12063
|
className: N([
|
|
@@ -12073,14 +12075,14 @@ const l4 = (i) => {
|
|
|
12073
12075
|
])
|
|
12074
12076
|
}),
|
|
12075
12077
|
x
|
|
12076
|
-
),
|
|
12078
|
+
), I), B = /* @__PURE__ */ e.createElement(e.Fragment, null, x && /* @__PURE__ */ e.createElement(
|
|
12077
12079
|
"div",
|
|
12078
12080
|
ae(y({}, u), {
|
|
12079
12081
|
className: N([
|
|
12080
12082
|
`${f}__sidebar`,
|
|
12081
12083
|
u == null ? void 0 : u.className
|
|
12082
12084
|
]),
|
|
12083
|
-
style:
|
|
12085
|
+
style: M
|
|
12084
12086
|
}),
|
|
12085
12087
|
s && /* @__PURE__ */ e.createElement(
|
|
12086
12088
|
"button",
|
|
@@ -12095,7 +12097,7 @@ const l4 = (i) => {
|
|
|
12095
12097
|
/* @__PURE__ */ e.createElement("span", { className: `${f}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(G, { iconName: "angleLeft", iconSize: "sm", verticalAlign: "-1px" }))
|
|
12096
12098
|
),
|
|
12097
12099
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__sidebar-inner` }, x)
|
|
12098
|
-
),
|
|
12100
|
+
), I);
|
|
12099
12101
|
return /* @__PURE__ */ e.createElement(
|
|
12100
12102
|
"div",
|
|
12101
12103
|
y({
|
|
@@ -12106,7 +12108,7 @@ const l4 = (i) => {
|
|
|
12106
12108
|
p != null ? p : ""
|
|
12107
12109
|
])
|
|
12108
12110
|
}, $),
|
|
12109
|
-
|
|
12111
|
+
C ? T : B
|
|
12110
12112
|
);
|
|
12111
12113
|
}, _4 = (r) => {
|
|
12112
12114
|
var d = r, {
|
|
@@ -12151,7 +12153,7 @@ const l4 = (i) => {
|
|
|
12151
12153
|
const m = "pds-docs-layout", g = l ? `${m}--isMobile` : null, u = {
|
|
12152
12154
|
width: n,
|
|
12153
12155
|
minWidth: `${s}rem`
|
|
12154
|
-
}, p = Oe(t), $ = p.__unslotted || p.content,
|
|
12156
|
+
}, p = Oe(t), $ = p.__unslotted || p.content, _ = p.sidebar, w = /* @__PURE__ */ e.createElement(e.Fragment, null, _ && /* @__PURE__ */ e.createElement("aside", { className: `${m}__sidebar` }, _), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, $)), C = /* @__PURE__ */ e.createElement(e.Fragment, null, _ && /* @__PURE__ */ e.createElement("aside", { className: `${m}__sidebar`, style: u }, /* @__PURE__ */ e.createElement("div", { className: `${m}__sidebar-inner` }, _)), /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, $));
|
|
12155
12157
|
return /* @__PURE__ */ e.createElement(
|
|
12156
12158
|
"div",
|
|
12157
12159
|
y({
|
|
@@ -12162,10 +12164,10 @@ const l4 = (i) => {
|
|
|
12162
12164
|
a != null ? a : ""
|
|
12163
12165
|
])
|
|
12164
12166
|
}, r),
|
|
12165
|
-
l ? w :
|
|
12167
|
+
l ? w : C
|
|
12166
12168
|
);
|
|
12167
12169
|
}, v4 = (w) => {
|
|
12168
|
-
var
|
|
12170
|
+
var C = w, {
|
|
12169
12171
|
alignContent: t = "flex-start",
|
|
12170
12172
|
alignItems: n = "stretch",
|
|
12171
12173
|
flexDirection: s = "row",
|
|
@@ -12180,7 +12182,7 @@ const l4 = (i) => {
|
|
|
12180
12182
|
mobileJustifyContent: u,
|
|
12181
12183
|
children: p,
|
|
12182
12184
|
className: $
|
|
12183
|
-
} =
|
|
12185
|
+
} = C, _ = D(C, [
|
|
12184
12186
|
"alignContent",
|
|
12185
12187
|
"alignItems",
|
|
12186
12188
|
"flexDirection",
|
|
@@ -12200,10 +12202,10 @@ const l4 = (i) => {
|
|
|
12200
12202
|
const o = be(ye);
|
|
12201
12203
|
o && (h = o.isMobile);
|
|
12202
12204
|
const f = "pds-flex", v = `${f}-container`, b = h ? `${v}--mobile` : null;
|
|
12203
|
-
let M = null;
|
|
12204
|
-
h ? M = `${f}-direction--${i}` : s !== "row" && (M = `${f}-direction--${s}`);
|
|
12205
12205
|
let H = null;
|
|
12206
|
-
h ?
|
|
12206
|
+
h ? H = `${f}-direction--${i}` : s !== "row" && (H = `${f}-direction--${s}`);
|
|
12207
|
+
let M = null;
|
|
12208
|
+
h ? m ? m !== "nowrap" && (M = `${f}-wrap--${m}`) : a !== "nowrap" && (M = `${f}-wrap--${a}`) : a !== "nowrap" && (M = `${f}-wrap--${a}`);
|
|
12207
12209
|
let L = null;
|
|
12208
12210
|
h ? u ? u !== "flex-start" && (L = `${f}-justify--${u}`) : d !== "flex-start" && (L = `${f}-justify--${d}`) : d !== "flex-start" && (L = `${f}-justify--${d}`);
|
|
12209
12211
|
let k = null;
|
|
@@ -12217,15 +12219,15 @@ const l4 = (i) => {
|
|
|
12217
12219
|
className: N([
|
|
12218
12220
|
v,
|
|
12219
12221
|
b,
|
|
12220
|
-
M,
|
|
12221
12222
|
H,
|
|
12223
|
+
M,
|
|
12222
12224
|
L,
|
|
12223
12225
|
k,
|
|
12224
12226
|
z,
|
|
12225
12227
|
x,
|
|
12226
12228
|
$ != null ? $ : ""
|
|
12227
12229
|
])
|
|
12228
|
-
},
|
|
12230
|
+
}, _),
|
|
12229
12231
|
p
|
|
12230
12232
|
);
|
|
12231
12233
|
}, $4 = ({
|
|
@@ -12251,23 +12253,23 @@ const l4 = (i) => {
|
|
|
12251
12253
|
let p = !1;
|
|
12252
12254
|
const $ = be(ye);
|
|
12253
12255
|
$ && (p = $.isMobile);
|
|
12254
|
-
const
|
|
12255
|
-
let w = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10",
|
|
12256
|
-
r === "narrow" && (w = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10",
|
|
12256
|
+
const _ = Oe(t);
|
|
12257
|
+
let w = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", C = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
12258
|
+
r === "narrow" && (w = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", C = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (w = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", C = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
12257
12259
|
const E = /* @__PURE__ */ e.createElement(
|
|
12258
12260
|
"div",
|
|
12259
12261
|
{
|
|
12260
12262
|
key: "content",
|
|
12261
12263
|
className: `${m}__main ${p ? "pds-grid-item" : w}`
|
|
12262
12264
|
},
|
|
12263
|
-
|
|
12265
|
+
_.content
|
|
12264
12266
|
), h = /* @__PURE__ */ e.createElement(
|
|
12265
12267
|
"div",
|
|
12266
12268
|
{
|
|
12267
12269
|
key: "sidebar",
|
|
12268
|
-
className: `${m}__side ${p ? "pds-grid-item" :
|
|
12270
|
+
className: `${m}__side ${p ? "pds-grid-item" : C}`
|
|
12269
12271
|
},
|
|
12270
|
-
|
|
12272
|
+
_.sidebar
|
|
12271
12273
|
);
|
|
12272
12274
|
return /* @__PURE__ */ e.createElement(
|
|
12273
12275
|
"div",
|
|
@@ -12353,17 +12355,17 @@ const l4 = (i) => {
|
|
|
12353
12355
|
"verticalAlign",
|
|
12354
12356
|
"className"
|
|
12355
12357
|
]);
|
|
12356
|
-
const i = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, g = `${i}--${a}`, u = ["pds-grid-item--md-6"], p = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], $ = ["pds-grid-item--md-8", "pds-grid-item--lg-9"],
|
|
12357
|
-
let w,
|
|
12358
|
+
const i = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, g = `${i}--${a}`, u = ["pds-grid-item--md-6"], p = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], $ = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], _ = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
12359
|
+
let w, C;
|
|
12358
12360
|
switch (s) {
|
|
12359
12361
|
case "equal":
|
|
12360
|
-
w =
|
|
12362
|
+
w = _.concat(u), C = _.concat(u);
|
|
12361
12363
|
break;
|
|
12362
12364
|
case "one-third-start":
|
|
12363
|
-
w =
|
|
12365
|
+
w = _.concat(p), C = _.concat($);
|
|
12364
12366
|
break;
|
|
12365
12367
|
case "one-third-end":
|
|
12366
|
-
w =
|
|
12368
|
+
w = _.concat($), C = _.concat(p);
|
|
12367
12369
|
}
|
|
12368
12370
|
const E = Oe(t), h = E["first-item"], o = E["second-item"];
|
|
12369
12371
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -12377,7 +12379,7 @@ const l4 = (i) => {
|
|
|
12377
12379
|
])
|
|
12378
12380
|
}, d),
|
|
12379
12381
|
/* @__PURE__ */ e.createElement("div", { className: w.join(" ").trim() }, h),
|
|
12380
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
12382
|
+
/* @__PURE__ */ e.createElement("div", { className: C.join(" ").trim() }, o)
|
|
12381
12383
|
);
|
|
12382
12384
|
}, H4 = (t, n) => {
|
|
12383
12385
|
const [s, a] = K(!1), r = K2(
|