@pantheon-systems/pds-toolkit-react 1.0.0-dev.237 → 1.0.0-dev.238
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/buttons/Button/Button.d.ts +1 -1
- package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -1
- package/_dist/css/component-css/pds-button-nav.css +1 -1
- package/_dist/css/component-css/pds-button.css +27 -63
- package/_dist/css/component-css/pds-index.css +28 -64
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +9 -0
- package/_dist/css/pds-components.css +28 -64
- package/_dist/css/pds-core.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +749 -735
- package/_dist/index.js.map +1 -1
- package/package.json +2 -2
package/_dist/index.js
CHANGED
|
@@ -794,7 +794,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
794
794
|
"uniqueId",
|
|
795
795
|
"className"
|
|
796
796
|
]);
|
|
797
|
-
const f = "pds-avatar", p = `${f}--${r}`, u = s ? `${f}--image` : null, [
|
|
797
|
+
const f = "pds-avatar", p = `${f}--${r}`, u = s ? `${f}--image` : null, [b, E] = U(void 0), v = {
|
|
798
798
|
backgroundImage: d ? `var(--pds-color-gradient-avatar-${a2(d)})` : null,
|
|
799
799
|
borderRadius: "100%",
|
|
800
800
|
height: "100%",
|
|
@@ -802,7 +802,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
802
802
|
display: "flex",
|
|
803
803
|
alignItems: "center",
|
|
804
804
|
justifyContent: "center"
|
|
805
|
-
}, C = s2(s) && !
|
|
805
|
+
}, C = s2(s) && !b ? /* @__PURE__ */ e.createElement(
|
|
806
806
|
"img",
|
|
807
807
|
{
|
|
808
808
|
src: `${s}`,
|
|
@@ -811,7 +811,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
811
811
|
onLoad: () => E(!1),
|
|
812
812
|
onError: () => E(!0)
|
|
813
813
|
}
|
|
814
|
-
) : /* @__PURE__ */ e.createElement("span", { style:
|
|
814
|
+
) : /* @__PURE__ */ e.createElement("span", { style: v }, n && /* @__PURE__ */ e.createElement(P, { iconName: "user", className: `${f}__user-icon` })), h = /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, C), i = we(l) ? Ie(
|
|
815
815
|
l,
|
|
816
816
|
me(M({}, l.props), {
|
|
817
817
|
className: `${f}__content ${f}__content--link`,
|
|
@@ -824,7 +824,7 @@ const lt = () => Math.random().toString(32).substring(2, 13), w1 = (t, n) => {
|
|
|
824
824
|
M({
|
|
825
825
|
className: x([f, p, u, a])
|
|
826
826
|
}, c),
|
|
827
|
-
l ? i :
|
|
827
|
+
l ? i : h
|
|
828
828
|
);
|
|
829
829
|
}, ft = (d) => {
|
|
830
830
|
var a = d, {
|
|
@@ -923,15 +923,15 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
923
923
|
"zIndex",
|
|
924
924
|
"className"
|
|
925
925
|
]);
|
|
926
|
-
const [
|
|
927
|
-
`${
|
|
928
|
-
L === "string" ? `${
|
|
929
|
-
]),
|
|
930
|
-
`${
|
|
931
|
-
`${
|
|
932
|
-
]), { refs: i, floatingStyles:
|
|
926
|
+
const [b, E] = U(!1), L = typeof n, v = "pds-tooltip", C = x([
|
|
927
|
+
`${v}__trigger-custom`,
|
|
928
|
+
L === "string" ? `${v}__trigger-text` : null
|
|
929
|
+
]), h = x([
|
|
930
|
+
`${v}__trigger`,
|
|
931
|
+
`${v}__trigger--${a}`
|
|
932
|
+
]), { refs: i, floatingStyles: g, context: _ } = Ve({
|
|
933
933
|
placement: l,
|
|
934
|
-
open:
|
|
934
|
+
open: b,
|
|
935
935
|
onOpenChange: E,
|
|
936
936
|
middleware: [kt(s), Ht(), zt()],
|
|
937
937
|
whileElementsMounted: Re
|
|
@@ -945,7 +945,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
945
945
|
z,
|
|
946
946
|
w
|
|
947
947
|
]);
|
|
948
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([
|
|
948
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([v, m != null ? m : ""]) }, f), n ? /* @__PURE__ */ e.createElement(
|
|
949
949
|
"span",
|
|
950
950
|
M({
|
|
951
951
|
className: C,
|
|
@@ -957,23 +957,23 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
957
957
|
M({
|
|
958
958
|
type: "button",
|
|
959
959
|
"aria-label": r,
|
|
960
|
-
className:
|
|
960
|
+
className: h,
|
|
961
961
|
ref: i.setReference
|
|
962
962
|
}, y()),
|
|
963
963
|
/* @__PURE__ */ e.createElement(
|
|
964
964
|
P,
|
|
965
965
|
{
|
|
966
966
|
iconName: d,
|
|
967
|
-
className: `${
|
|
967
|
+
className: `${v}__icon`,
|
|
968
968
|
iconSize: c
|
|
969
969
|
}
|
|
970
970
|
)
|
|
971
|
-
),
|
|
971
|
+
), b && /* @__PURE__ */ e.createElement(b1, null, /* @__PURE__ */ e.createElement(
|
|
972
972
|
"div",
|
|
973
973
|
M({
|
|
974
|
-
className: `${
|
|
974
|
+
className: `${v}__container`,
|
|
975
975
|
ref: i.setFloating,
|
|
976
|
-
style: me(M({},
|
|
976
|
+
style: me(M({}, g), { zIndex: o })
|
|
977
977
|
}, H()),
|
|
978
978
|
t
|
|
979
979
|
)));
|
|
@@ -995,8 +995,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
995
995
|
]);
|
|
996
996
|
const m = "pds-branch-diff", f = Math.max(t, s);
|
|
997
997
|
let p = f > 0 ? s / f * 100 : 0, u = f > 0 ? t / f * 100 : 0;
|
|
998
|
-
const
|
|
999
|
-
p <
|
|
998
|
+
const b = 10;
|
|
999
|
+
p < b ? (p = b, u = 100 - b) : u < b && (u = b, p = 100 - b);
|
|
1000
1000
|
const E = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
1001
1001
|
return /* @__PURE__ */ e.createElement(
|
|
1002
1002
|
"div",
|
|
@@ -1206,7 +1206,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1206
1206
|
);
|
|
1207
1207
|
}, gt = Ze(
|
|
1208
1208
|
(L, E) => {
|
|
1209
|
-
var
|
|
1209
|
+
var v = L, {
|
|
1210
1210
|
ariaLabel: t,
|
|
1211
1211
|
buttonType: n = "button",
|
|
1212
1212
|
disabled: s = !1,
|
|
@@ -1220,7 +1220,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1220
1220
|
size: f = "md",
|
|
1221
1221
|
variant: p = "primary",
|
|
1222
1222
|
className: u = ""
|
|
1223
|
-
} =
|
|
1223
|
+
} = v, b = A(v, [
|
|
1224
1224
|
"ariaLabel",
|
|
1225
1225
|
"buttonType",
|
|
1226
1226
|
"disabled",
|
|
@@ -1235,46 +1235,46 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1235
1235
|
"variant",
|
|
1236
1236
|
"className"
|
|
1237
1237
|
]);
|
|
1238
|
-
const C = "pds-button",
|
|
1239
|
-
let
|
|
1238
|
+
const C = "pds-button", h = f !== "md" ? `${C}--${f}` : null, i = p !== "primary" ? `${C}--${p}` : null, g = d ? `${C}--full-width` : null;
|
|
1239
|
+
let _;
|
|
1240
1240
|
switch (f) {
|
|
1241
1241
|
case "sm":
|
|
1242
|
-
|
|
1242
|
+
_ = "sm";
|
|
1243
1243
|
break;
|
|
1244
1244
|
case "md":
|
|
1245
|
-
|
|
1245
|
+
_ = "md";
|
|
1246
1246
|
break;
|
|
1247
1247
|
case "lg":
|
|
1248
|
-
|
|
1248
|
+
_ = "lg";
|
|
1249
1249
|
}
|
|
1250
|
-
const
|
|
1250
|
+
const $ = /* @__PURE__ */ e.createElement(
|
|
1251
1251
|
P,
|
|
1252
1252
|
{
|
|
1253
1253
|
key: "icon",
|
|
1254
1254
|
iconName: r,
|
|
1255
|
-
iconSize:
|
|
1255
|
+
iconSize: _,
|
|
1256
1256
|
className: `${C}__icon`
|
|
1257
1257
|
}
|
|
1258
1258
|
);
|
|
1259
|
-
let
|
|
1260
|
-
return l == "icon-start" && r &&
|
|
1259
|
+
let k = [o];
|
|
1260
|
+
return l == "icon-start" && r && k.unshift($), l == "icon-end" && r && k.push($), c && (k = [$], t = Yt(o)), /* @__PURE__ */ e.createElement(
|
|
1261
1261
|
"button",
|
|
1262
1262
|
M({
|
|
1263
1263
|
type: n,
|
|
1264
1264
|
className: x([
|
|
1265
1265
|
C,
|
|
1266
|
-
|
|
1266
|
+
h,
|
|
1267
1267
|
i,
|
|
1268
|
-
|
|
1268
|
+
g,
|
|
1269
1269
|
u
|
|
1270
1270
|
]),
|
|
1271
1271
|
disabled: s || a,
|
|
1272
1272
|
"aria-label": t,
|
|
1273
1273
|
onClick: m,
|
|
1274
1274
|
ref: E
|
|
1275
|
-
},
|
|
1275
|
+
}, b),
|
|
1276
1276
|
a && /* @__PURE__ */ e.createElement(xt, { className: `${C}__loading-indicator`, size: "md" }),
|
|
1277
|
-
|
|
1277
|
+
k
|
|
1278
1278
|
);
|
|
1279
1279
|
}
|
|
1280
1280
|
), yt = (o) => {
|
|
@@ -1295,11 +1295,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1295
1295
|
"variant",
|
|
1296
1296
|
"className"
|
|
1297
1297
|
]);
|
|
1298
|
-
const f = "pds-button-link", p = "pds-button", u = r !== "md" ? `${p}--${r}` : null,
|
|
1298
|
+
const f = "pds-button-link", p = "pds-button", u = r !== "md" ? `${p}--${r}` : null, b = d !== "primary" ? `${p}--${d}` : null, E = x([
|
|
1299
1299
|
p,
|
|
1300
1300
|
u,
|
|
1301
|
-
|
|
1302
|
-
]), L = we(l) ? l.props.children : null,
|
|
1301
|
+
b
|
|
1302
|
+
]), L = we(l) ? l.props.children : null, v = /* @__PURE__ */ e.createElement(
|
|
1303
1303
|
P,
|
|
1304
1304
|
{
|
|
1305
1305
|
iconName: s,
|
|
@@ -1309,8 +1309,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
);
|
|
1311
1311
|
let C = [L];
|
|
1312
|
-
n === "icon-start" && s ? C = [
|
|
1313
|
-
const
|
|
1312
|
+
n === "icon-start" && s ? C = [v, L] : n === "icon-end" && s && (C = [L, v]);
|
|
1313
|
+
const h = we(l) ? Ie(l, {
|
|
1314
1314
|
className: E,
|
|
1315
1315
|
children: C
|
|
1316
1316
|
}) : null;
|
|
@@ -1323,7 +1323,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1323
1323
|
size: r,
|
|
1324
1324
|
variant: d
|
|
1325
1325
|
}
|
|
1326
|
-
) : /* @__PURE__ */ e.createElement("span", M({ className: x([f, a != null ? a : ""]) }, c),
|
|
1326
|
+
) : /* @__PURE__ */ e.createElement("span", M({ className: x([f, a != null ? a : ""]) }, c), h);
|
|
1327
1327
|
}, r2 = (t, n) => {
|
|
1328
1328
|
const [s, l] = U(!1), r = n == null ? void 0 : n.duration;
|
|
1329
1329
|
return oe(() => {
|
|
@@ -1342,7 +1342,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1342
1342
|
})];
|
|
1343
1343
|
}, Lt = Ze(
|
|
1344
1344
|
(u, p) => {
|
|
1345
|
-
var
|
|
1345
|
+
var b = u, {
|
|
1346
1346
|
ariaLabel: t,
|
|
1347
1347
|
buttonType: n = "button",
|
|
1348
1348
|
disabled: s = !1,
|
|
@@ -1353,7 +1353,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1353
1353
|
size: c = "md",
|
|
1354
1354
|
variant: o = "standard",
|
|
1355
1355
|
className: m
|
|
1356
|
-
} =
|
|
1356
|
+
} = b, f = A(b, [
|
|
1357
1357
|
"ariaLabel",
|
|
1358
1358
|
"buttonType",
|
|
1359
1359
|
"disabled",
|
|
@@ -1365,23 +1365,23 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1365
1365
|
"variant",
|
|
1366
1366
|
"className"
|
|
1367
1367
|
]);
|
|
1368
|
-
const E = "pds-icon-button", L = c !== "md" ? `${E}--${c}` : null,
|
|
1368
|
+
const E = "pds-icon-button", L = c !== "md" ? `${E}--${c}` : null, v = o !== "standard" ? `${E}--${o}` : null, C = {
|
|
1369
1369
|
fadeOut: `${E}--fadeOut`,
|
|
1370
1370
|
hide: `${E}--hide`,
|
|
1371
1371
|
scaleIn: `${E}--scaleIn`
|
|
1372
1372
|
};
|
|
1373
|
-
let
|
|
1373
|
+
let h, i;
|
|
1374
1374
|
switch (c) {
|
|
1375
1375
|
case "sm":
|
|
1376
|
-
i = "md",
|
|
1376
|
+
i = "md", h = 8;
|
|
1377
1377
|
break;
|
|
1378
1378
|
case "md":
|
|
1379
|
-
i = "md",
|
|
1379
|
+
i = "md", h = 11;
|
|
1380
1380
|
break;
|
|
1381
1381
|
case "lg":
|
|
1382
|
-
i = "xl",
|
|
1382
|
+
i = "xl", h = 12;
|
|
1383
1383
|
}
|
|
1384
|
-
const
|
|
1384
|
+
const g = d !== null, _ = de(null), $ = de(null), k = () => {
|
|
1385
1385
|
_.current.classList.add(C.fadeOut), _.current.classList.add(C.hide), $.current.classList.remove(C.hide), $.current.classList.add(C.scaleIn), setTimeout(() => {
|
|
1386
1386
|
_.current.classList.remove(
|
|
1387
1387
|
C.fadeOut,
|
|
@@ -1389,8 +1389,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1389
1389
|
), _.current.classList.add(C.scaleIn), $.current.classList.remove(C.scaleIn), $.current.classList.add(C.hide);
|
|
1390
1390
|
}, 2e3);
|
|
1391
1391
|
}, z = (y) => {
|
|
1392
|
-
|
|
1393
|
-
}, w =
|
|
1392
|
+
g && k(), a && a(y);
|
|
1393
|
+
}, w = g ? /* @__PURE__ */ e.createElement("div", { className: `${E}__content` }, /* @__PURE__ */ e.createElement("div", { ref: _, className: `${E}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1394
1394
|
P,
|
|
1395
1395
|
{
|
|
1396
1396
|
iconName: r,
|
|
@@ -1426,7 +1426,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1426
1426
|
className: x([
|
|
1427
1427
|
E,
|
|
1428
1428
|
L,
|
|
1429
|
-
|
|
1429
|
+
v,
|
|
1430
1430
|
m
|
|
1431
1431
|
]),
|
|
1432
1432
|
disabled: s,
|
|
@@ -1440,7 +1440,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1440
1440
|
{
|
|
1441
1441
|
content: t,
|
|
1442
1442
|
className: `${E}__tooltip`,
|
|
1443
|
-
offsetValue:
|
|
1443
|
+
offsetValue: h,
|
|
1444
1444
|
customTrigger: w
|
|
1445
1445
|
}
|
|
1446
1446
|
) : w
|
|
@@ -1523,8 +1523,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1523
1523
|
return oe(() => {
|
|
1524
1524
|
l ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
1525
1525
|
}, [l]), /* @__PURE__ */ e.createElement(ye.Provider, { value: r }, t);
|
|
1526
|
-
}, Tt = (t) => t.isSeparator, At = (t) => t.isHeading, Dt = (t) => t.isLink, d2 = (t) => t.isNode, m2 = (
|
|
1527
|
-
var C =
|
|
1526
|
+
}, Tt = (t) => t.isSeparator, At = (t) => t.isHeading, Dt = (t) => t.isLink, d2 = (t) => t.isNode, m2 = (v) => {
|
|
1527
|
+
var C = v, {
|
|
1528
1528
|
disabled: t,
|
|
1529
1529
|
displayType: n = "icon-end",
|
|
1530
1530
|
iconName: s = "ellipsisVertical",
|
|
@@ -1538,7 +1538,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1538
1538
|
testId: f,
|
|
1539
1539
|
undefinedLabel: p = "Unlabeled group",
|
|
1540
1540
|
variant: u = "primary",
|
|
1541
|
-
withinNavbar:
|
|
1541
|
+
withinNavbar: b,
|
|
1542
1542
|
className: E
|
|
1543
1543
|
} = C, L = A(C, [
|
|
1544
1544
|
"disabled",
|
|
@@ -1558,9 +1558,9 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1558
1558
|
"className"
|
|
1559
1559
|
]);
|
|
1560
1560
|
const {
|
|
1561
|
-
x:
|
|
1561
|
+
x: h,
|
|
1562
1562
|
y: i,
|
|
1563
|
-
reference:
|
|
1563
|
+
reference: g,
|
|
1564
1564
|
floating: _,
|
|
1565
1565
|
strategy: $,
|
|
1566
1566
|
update: k,
|
|
@@ -1573,7 +1573,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1573
1573
|
let y = !1;
|
|
1574
1574
|
const H = ve(ye);
|
|
1575
1575
|
H && (y = H.isMobile);
|
|
1576
|
-
const N = u === "navbar" && y, V = "pds-menu-button", I = N ? `${V}--isMobile` : null, D =
|
|
1576
|
+
const N = u === "navbar" && y, V = "pds-menu-button", I = N ? `${V}--isMobile` : null, D = b ? `${V}--navbar` : null, S = l, [T] = U(`menu-button-${l}`), W = w.floating, Z = de(null), [K, ne] = U(!1), [Y, j] = U(!1), [q, O] = U(""), [Q, X] = U(0), F = de([]), B = de([]), J = de([]);
|
|
1577
1577
|
W1(() => {
|
|
1578
1578
|
window.addEventListener("mousedown", ze, !0), k();
|
|
1579
1579
|
const R = W.current;
|
|
@@ -1755,7 +1755,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1755
1755
|
At || Tt
|
|
1756
1756
|
), ae = G.length > 0;
|
|
1757
1757
|
let re = [`${V}__listbox`];
|
|
1758
|
-
if (
|
|
1758
|
+
if (b && re.push(`${V}__listbox--navbar`), c === "end" && re.push(`${V}__listbox--end`), n === "icon-only" && re.push(`${V}__listbox--icon-only`), re = x(re), ae) {
|
|
1759
1759
|
const ue = et(R, G);
|
|
1760
1760
|
ue.forEach(() => {
|
|
1761
1761
|
F.current.push(lt());
|
|
@@ -1778,7 +1778,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1778
1778
|
opacity: K ? "1" : "0",
|
|
1779
1779
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1780
1780
|
position: $,
|
|
1781
|
-
transform: `translate(${Math.round(
|
|
1781
|
+
transform: `translate(${Math.round(h)}px,${Math.round(i)}px)`,
|
|
1782
1782
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
1783
1783
|
},
|
|
1784
1784
|
onKeyDown: qe,
|
|
@@ -1820,7 +1820,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1820
1820
|
opacity: K ? "1" : "0",
|
|
1821
1821
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1822
1822
|
position: $,
|
|
1823
|
-
transform: `translate(${Math.round(
|
|
1823
|
+
transform: `translate(${Math.round(h)}px,${Math.round(i)}px)`
|
|
1824
1824
|
},
|
|
1825
1825
|
onKeyDown: qe,
|
|
1826
1826
|
ref: _
|
|
@@ -1848,7 +1848,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1848
1848
|
"aria-expanded": K,
|
|
1849
1849
|
onClick: le,
|
|
1850
1850
|
onKeyDown: Oe,
|
|
1851
|
-
ref:
|
|
1851
|
+
ref: g
|
|
1852
1852
|
}
|
|
1853
1853
|
)), n === "icon-only") {
|
|
1854
1854
|
const R = Yt(d);
|
|
@@ -1868,7 +1868,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1868
1868
|
"aria-expanded": K,
|
|
1869
1869
|
onClick: le,
|
|
1870
1870
|
onKeyDown: Oe,
|
|
1871
|
-
ref:
|
|
1871
|
+
ref: g,
|
|
1872
1872
|
hasTooltip: !1
|
|
1873
1873
|
}
|
|
1874
1874
|
);
|
|
@@ -1943,10 +1943,10 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1943
1943
|
"value",
|
|
1944
1944
|
"className"
|
|
1945
1945
|
]);
|
|
1946
|
-
const u = "pds-segmented-button",
|
|
1947
|
-
|
|
1948
|
-
), i = (
|
|
1949
|
-
g
|
|
1946
|
+
const u = "pds-segmented-button", b = t ? "pds-is-disabled" : null, E = a !== "md" ? `${u}--${a}` : null, L = typeof c != "undefined", v = typeof s != "undefined", [C, h] = U(
|
|
1947
|
+
v ? s : ""
|
|
1948
|
+
), i = (g) => {
|
|
1949
|
+
h(g.target.value), r && r(g.target.value);
|
|
1950
1950
|
};
|
|
1951
1951
|
if (d.length >= 2 && d.length <= 6)
|
|
1952
1952
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1955,13 +1955,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1955
1955
|
className: x([
|
|
1956
1956
|
u,
|
|
1957
1957
|
E,
|
|
1958
|
-
|
|
1958
|
+
b,
|
|
1959
1959
|
o != null ? o : ""
|
|
1960
1960
|
])
|
|
1961
1961
|
}, m),
|
|
1962
1962
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, l),
|
|
1963
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, d.map((
|
|
1964
|
-
const $ = L ? c ===
|
|
1963
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, d.map((g, _) => {
|
|
1964
|
+
const $ = L ? c === g.value : C === g.value, k = `${u}__option`, z = $ ? `${k}--checked` : null;
|
|
1965
1965
|
return /* @__PURE__ */ e.createElement(
|
|
1966
1966
|
"div",
|
|
1967
1967
|
{
|
|
@@ -1973,29 +1973,29 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
1973
1973
|
{
|
|
1974
1974
|
className: "visually-hidden",
|
|
1975
1975
|
type: "radio",
|
|
1976
|
-
id:
|
|
1976
|
+
id: g.id ? g.id : `${n}-option-${_}`,
|
|
1977
1977
|
name: n,
|
|
1978
|
-
value:
|
|
1979
|
-
disabled: t ||
|
|
1978
|
+
value: g.value,
|
|
1979
|
+
disabled: t || g.disabled,
|
|
1980
1980
|
onChange: i,
|
|
1981
1981
|
checked: $
|
|
1982
1982
|
}
|
|
1983
1983
|
),
|
|
1984
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor:
|
|
1984
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: g.id ? g.id : `${n}-option-${_}` }, g.tally ? /* @__PURE__ */ e.createElement(
|
|
1985
1985
|
$t,
|
|
1986
1986
|
{
|
|
1987
|
-
label:
|
|
1988
|
-
type:
|
|
1987
|
+
label: g.tally.label,
|
|
1988
|
+
type: g.tally.type,
|
|
1989
1989
|
className: `${u}__tally`
|
|
1990
1990
|
}
|
|
1991
|
-
) :
|
|
1991
|
+
) : g.iconName && /* @__PURE__ */ e.createElement(
|
|
1992
1992
|
P,
|
|
1993
1993
|
{
|
|
1994
|
-
iconName:
|
|
1994
|
+
iconName: g.iconName,
|
|
1995
1995
|
iconSize: a,
|
|
1996
1996
|
className: `${u}__icon`
|
|
1997
1997
|
}
|
|
1998
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${u}__label-text` },
|
|
1998
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${u}__label-text` }, g.label))
|
|
1999
1999
|
);
|
|
2000
2000
|
}))
|
|
2001
2001
|
);
|
|
@@ -2016,8 +2016,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2016
2016
|
"className"
|
|
2017
2017
|
]);
|
|
2018
2018
|
const m = "pds-split-button", f = `${m}--${r}`, p = t[0], u = t.slice(1);
|
|
2019
|
-
let
|
|
2020
|
-
return "isLink" in p && p.isLink === !0 ?
|
|
2019
|
+
let b = null;
|
|
2020
|
+
return "isLink" in p && p.isLink === !0 ? b = /* @__PURE__ */ e.createElement(
|
|
2021
2021
|
yt,
|
|
2022
2022
|
{
|
|
2023
2023
|
className: `${m}__primary-action`,
|
|
@@ -2027,7 +2027,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2027
2027
|
disabled: n,
|
|
2028
2028
|
linkContent: p.linkContent
|
|
2029
2029
|
}
|
|
2030
|
-
) : "label" in p && (
|
|
2030
|
+
) : "label" in p && (b = /* @__PURE__ */ e.createElement(
|
|
2031
2031
|
gt,
|
|
2032
2032
|
{
|
|
2033
2033
|
className: `${m}__primary-action`,
|
|
@@ -2042,7 +2042,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2042
2042
|
M({
|
|
2043
2043
|
className: x([m, f, d])
|
|
2044
2044
|
}, a),
|
|
2045
|
-
|
|
2045
|
+
b,
|
|
2046
2046
|
/* @__PURE__ */ e.createElement(
|
|
2047
2047
|
m2,
|
|
2048
2048
|
{
|
|
@@ -2082,7 +2082,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2082
2082
|
"tooltipText",
|
|
2083
2083
|
"className"
|
|
2084
2084
|
]);
|
|
2085
|
-
const u = "pds-utility-button",
|
|
2085
|
+
const u = "pds-utility-button", b = l ? `${u}--critical` : null, E = n ? `${u}--disabled` : null, L = r ? `${u}--monospace` : null, v = /* @__PURE__ */ e.createElement(
|
|
2086
2086
|
"button",
|
|
2087
2087
|
M({
|
|
2088
2088
|
className: `${u}__button`,
|
|
@@ -2098,13 +2098,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2098
2098
|
M({
|
|
2099
2099
|
className: x([
|
|
2100
2100
|
u,
|
|
2101
|
-
|
|
2101
|
+
b,
|
|
2102
2102
|
E,
|
|
2103
2103
|
L,
|
|
2104
2104
|
o != null ? o : ""
|
|
2105
2105
|
])
|
|
2106
2106
|
}, m),
|
|
2107
|
-
c ? /* @__PURE__ */ e.createElement(xe, { content: c, customTrigger:
|
|
2107
|
+
c ? /* @__PURE__ */ e.createElement(xe, { content: c, customTrigger: v }) : v
|
|
2108
2108
|
);
|
|
2109
2109
|
}, Ot = {
|
|
2110
2110
|
info: "circleInfo",
|
|
@@ -2227,11 +2227,11 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2227
2227
|
const p = "pds-card-select-group";
|
|
2228
2228
|
let u = `${p}__legend`;
|
|
2229
2229
|
l === "center" && (u = `${p}__legend ${p}__legend--center`), l === "hidden" && (u = `${p}__legend visually-hidden`);
|
|
2230
|
-
const [
|
|
2230
|
+
const [b, E] = U(n), L = (_) => {
|
|
2231
2231
|
E(_.currentTarget.value), d && d(_.currentTarget.value);
|
|
2232
|
-
},
|
|
2233
|
-
let
|
|
2234
|
-
return r === "twoAcross" ?
|
|
2232
|
+
}, v = a.length, C = "pds-grid-item", h = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", i = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2233
|
+
let g = "";
|
|
2234
|
+
return r === "twoAcross" ? g = h : r === "threeAcross" ? g = i : r === "auto" && (v === 1 ? g = C : v % 3 === 0 ? g = i : v % 2 === 0 ? g = h : g = i), /* @__PURE__ */ e.createElement(
|
|
2235
2235
|
"fieldset",
|
|
2236
2236
|
M({
|
|
2237
2237
|
className: [p, c].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -2241,7 +2241,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2241
2241
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__options pds-grid pds-grid--narrow` }, a.map((_, $) => /* @__PURE__ */ e.createElement(
|
|
2242
2242
|
"div",
|
|
2243
2243
|
{
|
|
2244
|
-
className: [`${p}__option`,
|
|
2244
|
+
className: [`${p}__option`, g].join(" ").trim().replace(/\s+/g, " "),
|
|
2245
2245
|
key: `${t}-option-${$}`
|
|
2246
2246
|
},
|
|
2247
2247
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2252,21 +2252,21 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2252
2252
|
name: t,
|
|
2253
2253
|
value: _.value,
|
|
2254
2254
|
onClick: L,
|
|
2255
|
-
defaultChecked:
|
|
2255
|
+
defaultChecked: b === _.value
|
|
2256
2256
|
}
|
|
2257
2257
|
),
|
|
2258
2258
|
/* @__PURE__ */ e.createElement(
|
|
2259
2259
|
"label",
|
|
2260
2260
|
{
|
|
2261
2261
|
htmlFor: _.id ? _.id : `${t}-option-${$}`,
|
|
2262
|
-
className:
|
|
2262
|
+
className: b === _.value ? `${p}__option-label ${p}__option-label--selected` : `${p}__option-label`
|
|
2263
2263
|
},
|
|
2264
2264
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
2265
2265
|
P,
|
|
2266
2266
|
{
|
|
2267
|
-
iconName:
|
|
2267
|
+
iconName: b === _.value ? "circleCheck" : "circle",
|
|
2268
2268
|
iconSize: "xl",
|
|
2269
|
-
className:
|
|
2269
|
+
className: b === _.value ? `${p}__option-icon ${p}__option-icon--selected` : `${p}__option-icon`
|
|
2270
2270
|
}
|
|
2271
2271
|
)),
|
|
2272
2272
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__option-label-text` }, _.label, _.description && /* @__PURE__ */ e.createElement("div", { className: `${p}__option-description` }, _.description))
|
|
@@ -2600,8 +2600,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2600
2600
|
"supplementalLinks",
|
|
2601
2601
|
"className"
|
|
2602
2602
|
]);
|
|
2603
|
-
const u = "pds-new-site-card",
|
|
2604
|
-
|
|
2603
|
+
const u = "pds-new-site-card", b = a.type, E = /* @__PURE__ */ e.createElement(e1, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${u}__main` }, /* @__PURE__ */ e.createElement(
|
|
2604
|
+
b,
|
|
2605
2605
|
M({
|
|
2606
2606
|
"aria-label": a.props.children,
|
|
2607
2607
|
className: `${u}__selection-link`
|
|
@@ -2617,12 +2617,12 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
),
|
|
2619
2619
|
d && /* @__PURE__ */ e.createElement("div", { className: `${u}__summary` }, d)
|
|
2620
|
-
), c && c.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, c.map((L,
|
|
2620
|
+
), c && c.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, c.map((L, v) => {
|
|
2621
2621
|
const C = L.type;
|
|
2622
2622
|
return /* @__PURE__ */ e.createElement(
|
|
2623
2623
|
C,
|
|
2624
2624
|
M({
|
|
2625
|
-
key:
|
|
2625
|
+
key: v,
|
|
2626
2626
|
className: `${u}__link`
|
|
2627
2627
|
}, L.props),
|
|
2628
2628
|
L.props.children,
|
|
@@ -2686,7 +2686,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2686
2686
|
const s = "pds-select";
|
|
2687
2687
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", className: `${s}__group` }, /* @__PURE__ */ e.createElement("span", { className: `${s}__group-label` }, t), /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${s}__group-options` }, n));
|
|
2688
2688
|
}, g2 = (i) => {
|
|
2689
|
-
var
|
|
2689
|
+
var g = i, {
|
|
2690
2690
|
defaultValue: t,
|
|
2691
2691
|
disabled: n,
|
|
2692
2692
|
id: s,
|
|
@@ -2703,12 +2703,12 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2703
2703
|
options: f,
|
|
2704
2704
|
required: p = !1,
|
|
2705
2705
|
showLabel: u = !0,
|
|
2706
|
-
tooltipText:
|
|
2706
|
+
tooltipText: b = null,
|
|
2707
2707
|
validationMessage: E,
|
|
2708
2708
|
validationStatus: L,
|
|
2709
|
-
value:
|
|
2709
|
+
value: v,
|
|
2710
2710
|
className: C
|
|
2711
|
-
} =
|
|
2711
|
+
} = g, h = A(g, [
|
|
2712
2712
|
"defaultValue",
|
|
2713
2713
|
"disabled",
|
|
2714
2714
|
"id",
|
|
@@ -2732,7 +2732,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2732
2732
|
const _ = Je(l), $ = "pds-select", k = n ? ee.disabled : null, z = p && !n ? ee.required : null, w = L === "error" ? ee.error : null, y = L === "success" ? ee.success : null;
|
|
2733
2733
|
let H = null;
|
|
2734
2734
|
L === "error" && (H = "error"), L === "success" && (H = "success");
|
|
2735
|
-
const N = E || a, V = typeof
|
|
2735
|
+
const N = E || a, V = typeof v != "undefined", I = typeof t != "undefined", S = ((Ce) => Ce.reduce((Le, _e) => o1(_e) ? [...Le, ..._e.options] : [...Le, _e], []))(f), T = (Ce) => S.findIndex((Le) => Le.value === Ce), W = V && T(v) >= 0 ? T(v) : null, Z = I ? T(t) : null, K = W || Z, [ne, Y] = U(!1), [j, q] = U(null), [O, Q] = U(
|
|
2736
2736
|
K != null ? K : null
|
|
2737
2737
|
), X = O !== null ? (ct = S[O]) == null ? void 0 : ct.label : void 0, F = O !== null ? (rt = S[O]) == null ? void 0 : rt.value : void 0, B = de([]), { context: J, refs: te } = Ve({
|
|
2738
2738
|
open: ne,
|
|
@@ -2769,10 +2769,10 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2769
2769
|
};
|
|
2770
2770
|
oe(() => {
|
|
2771
2771
|
if (V) {
|
|
2772
|
-
const Ce = T(
|
|
2772
|
+
const Ce = T(v);
|
|
2773
2773
|
Q(Ce), Y(!1);
|
|
2774
2774
|
}
|
|
2775
|
-
}, [
|
|
2775
|
+
}, [v]);
|
|
2776
2776
|
const Ne = () => {
|
|
2777
2777
|
c && c(F);
|
|
2778
2778
|
}, et = () => {
|
|
@@ -2852,14 +2852,14 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2852
2852
|
C != null ? C : ""
|
|
2853
2853
|
]),
|
|
2854
2854
|
style: l ? _ : null
|
|
2855
|
-
},
|
|
2855
|
+
}, h),
|
|
2856
2856
|
/* @__PURE__ */ e.createElement(
|
|
2857
2857
|
Pe,
|
|
2858
2858
|
{
|
|
2859
2859
|
id: s,
|
|
2860
2860
|
label: r,
|
|
2861
2861
|
showLabel: u,
|
|
2862
|
-
tooltipText:
|
|
2862
|
+
tooltipText: b,
|
|
2863
2863
|
required: p,
|
|
2864
2864
|
disabled: n
|
|
2865
2865
|
}
|
|
@@ -2905,7 +2905,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2905
2905
|
)
|
|
2906
2906
|
);
|
|
2907
2907
|
}, vn = (u) => {
|
|
2908
|
-
var
|
|
2908
|
+
var b = u, {
|
|
2909
2909
|
actionPrimary: t,
|
|
2910
2910
|
actionSecondary: n,
|
|
2911
2911
|
hasComparisonList: s = !0,
|
|
@@ -2920,7 +2920,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2920
2920
|
selectLabel: o = "Select a plan size",
|
|
2921
2921
|
statusBadgeType: m,
|
|
2922
2922
|
className: f
|
|
2923
|
-
} =
|
|
2923
|
+
} = b, p = A(b, [
|
|
2924
2924
|
"actionPrimary",
|
|
2925
2925
|
"actionSecondary",
|
|
2926
2926
|
"hasComparisonList",
|
|
@@ -2933,8 +2933,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2933
2933
|
"statusBadgeType",
|
|
2934
2934
|
"className"
|
|
2935
2935
|
]);
|
|
2936
|
-
const E = "pds-pricing-card", L = `${E}-container`,
|
|
2937
|
-
|
|
2936
|
+
const E = "pds-pricing-card", L = `${E}-container`, v = s ? `${L}--with-list` : null, C = m ? `${E}--${m}` : null, h = (I) => I.toLowerCase().replace(/\s/g, "-"), i = a && a.length > 1, [g, _] = U(
|
|
2937
|
+
h(a[0].label)
|
|
2938
2938
|
), [$, k] = U(
|
|
2939
2939
|
t.label
|
|
2940
2940
|
);
|
|
@@ -2956,7 +2956,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2956
2956
|
renderTypeLabels: !1
|
|
2957
2957
|
}
|
|
2958
2958
|
)), i && (z = a.map((I) => {
|
|
2959
|
-
const S =
|
|
2959
|
+
const S = g === h(I.label) ? null : `${E}__pricing-data--hide`;
|
|
2960
2960
|
return /* @__PURE__ */ e.createElement(
|
|
2961
2961
|
"div",
|
|
2962
2962
|
{
|
|
@@ -2964,8 +2964,8 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2964
2964
|
`${E}__pricing-data`,
|
|
2965
2965
|
S
|
|
2966
2966
|
]),
|
|
2967
|
-
id: `data-${
|
|
2968
|
-
key:
|
|
2967
|
+
id: `data-${h(I.label)}`,
|
|
2968
|
+
key: h(I.label)
|
|
2969
2969
|
},
|
|
2970
2970
|
I.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${E}__price-prefix` }, I.pricePrefix),
|
|
2971
2971
|
/* @__PURE__ */ e.createElement("div", { className: `${E}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__price` }, I.price), I.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__details` }, I.priceDetails)),
|
|
@@ -2980,7 +2980,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2980
2980
|
), I.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__savings-details` }, I.savingsDetails))
|
|
2981
2981
|
);
|
|
2982
2982
|
}), w = a.map((I) => {
|
|
2983
|
-
const S =
|
|
2983
|
+
const S = g === h(I.label) ? null : `${E}__list--hide`;
|
|
2984
2984
|
return /* @__PURE__ */ e.createElement(
|
|
2985
2985
|
d1,
|
|
2986
2986
|
{
|
|
@@ -2988,13 +2988,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
2988
2988
|
listLabel: I.listLabel,
|
|
2989
2989
|
listItems: I.listItems,
|
|
2990
2990
|
renderTypeLabels: !1,
|
|
2991
|
-
key: `${
|
|
2991
|
+
key: `${h(I.label)}-list`
|
|
2992
2992
|
}
|
|
2993
2993
|
);
|
|
2994
2994
|
}));
|
|
2995
2995
|
const y = (I) => {
|
|
2996
2996
|
const D = a.find(
|
|
2997
|
-
(S) =>
|
|
2997
|
+
(S) => h(S.label) === I
|
|
2998
2998
|
);
|
|
2999
2999
|
return D.customActionLabel ? D.customActionLabel : t.label;
|
|
3000
3000
|
};
|
|
@@ -3007,10 +3007,10 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3007
3007
|
label: o,
|
|
3008
3008
|
showLabel: !1,
|
|
3009
3009
|
options: a.map((I) => ({
|
|
3010
|
-
value:
|
|
3010
|
+
value: h(I.label),
|
|
3011
3011
|
label: I.label
|
|
3012
3012
|
})),
|
|
3013
|
-
defaultValue:
|
|
3013
|
+
defaultValue: h(a[0].label),
|
|
3014
3014
|
onOptionSelect: (I) => {
|
|
3015
3015
|
_(I.value), k(y(I.value)), l && l(I.value);
|
|
3016
3016
|
}
|
|
@@ -3056,7 +3056,7 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3056
3056
|
))), /* @__PURE__ */ e.createElement(
|
|
3057
3057
|
"div",
|
|
3058
3058
|
M({
|
|
3059
|
-
className: x([L,
|
|
3059
|
+
className: x([L, v, f])
|
|
3060
3060
|
}, p),
|
|
3061
3061
|
/* @__PURE__ */ e.createElement("div", { className: x([E, C]) }, m && /* @__PURE__ */ e.createElement(
|
|
3062
3062
|
Xt,
|
|
@@ -3089,13 +3089,13 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3089
3089
|
"className"
|
|
3090
3090
|
]);
|
|
3091
3091
|
const p = "pds-site-card";
|
|
3092
|
-
let u,
|
|
3093
|
-
a === "active" && (u = "Active",
|
|
3092
|
+
let u, b;
|
|
3093
|
+
a === "active" && (u = "Active", b = "success"), a === "frozen" && (u = "Frozen", b = "frozen");
|
|
3094
3094
|
const E = /* @__PURE__ */ e.createElement(
|
|
3095
3095
|
Xt,
|
|
3096
3096
|
{
|
|
3097
3097
|
label: u,
|
|
3098
|
-
statusType:
|
|
3098
|
+
statusType: b,
|
|
3099
3099
|
hasStatusIndicator: !0
|
|
3100
3100
|
}
|
|
3101
3101
|
), L = /* @__PURE__ */ e.createElement(e1, null, /* @__PURE__ */ e.createElement("img", { slot: "image", src: s, alt: "" }), /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${p}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${p}__header` }, /* @__PURE__ */ e.createElement(
|
|
@@ -3106,12 +3106,12 @@ const St = 300, l2 = 400, xe = (p) => {
|
|
|
3106
3106
|
level: n,
|
|
3107
3107
|
text: r
|
|
3108
3108
|
}
|
|
3109
|
-
), E), /* @__PURE__ */ e.createElement("div", { className: `${p}__plan` }, d))),
|
|
3109
|
+
), E), /* @__PURE__ */ e.createElement("div", { className: `${p}__plan` }, d))), v = we(l) ? Ie(l, me(M({}, l.props), {
|
|
3110
3110
|
className: `${p}__link`,
|
|
3111
3111
|
children: L,
|
|
3112
3112
|
"aria-label": `${t} ${r} dashboard`
|
|
3113
3113
|
})) : null;
|
|
3114
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([p, c != null ? c : ""]) }, o),
|
|
3114
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([p, c != null ? c : ""]) }, o), v);
|
|
3115
3115
|
};
|
|
3116
3116
|
var m1 = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
3117
3117
|
function _2(t) {
|
|
@@ -3184,8 +3184,8 @@ var N1 = { exports: {} };
|
|
|
3184
3184
|
* @memberof Prism
|
|
3185
3185
|
*/
|
|
3186
3186
|
util: {
|
|
3187
|
-
encode: function
|
|
3188
|
-
return i instanceof o ? new o(i.type,
|
|
3187
|
+
encode: function h(i) {
|
|
3188
|
+
return i instanceof o ? new o(i.type, h(i.content), i.alias) : Array.isArray(i) ? i.map(h) : i.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
3189
3189
|
},
|
|
3190
3190
|
/**
|
|
3191
3191
|
* Returns the name of the type of the given value.
|
|
@@ -3203,8 +3203,8 @@ var N1 = { exports: {} };
|
|
|
3203
3203
|
* type(String) === 'Function'
|
|
3204
3204
|
* type(/abc+/) === 'RegExp'
|
|
3205
3205
|
*/
|
|
3206
|
-
type: function(
|
|
3207
|
-
return Object.prototype.toString.call(
|
|
3206
|
+
type: function(h) {
|
|
3207
|
+
return Object.prototype.toString.call(h).slice(8, -1);
|
|
3208
3208
|
},
|
|
3209
3209
|
/**
|
|
3210
3210
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
@@ -3212,8 +3212,8 @@ var N1 = { exports: {} };
|
|
|
3212
3212
|
* @param {Object} obj
|
|
3213
3213
|
* @returns {number}
|
|
3214
3214
|
*/
|
|
3215
|
-
objId: function(
|
|
3216
|
-
return
|
|
3215
|
+
objId: function(h) {
|
|
3216
|
+
return h.__id || Object.defineProperty(h, "__id", { value: ++d }), h.__id;
|
|
3217
3217
|
},
|
|
3218
3218
|
/**
|
|
3219
3219
|
* Creates a deep clone of the given object.
|
|
@@ -3225,26 +3225,26 @@ var N1 = { exports: {} };
|
|
|
3225
3225
|
* @returns {T}
|
|
3226
3226
|
* @template T
|
|
3227
3227
|
*/
|
|
3228
|
-
clone: function
|
|
3229
|
-
|
|
3228
|
+
clone: function h(i, g) {
|
|
3229
|
+
g = g || {};
|
|
3230
3230
|
var _, $;
|
|
3231
3231
|
switch (c.util.type(i)) {
|
|
3232
3232
|
case "Object":
|
|
3233
|
-
if ($ = c.util.objId(i),
|
|
3234
|
-
return
|
|
3233
|
+
if ($ = c.util.objId(i), g[$])
|
|
3234
|
+
return g[$];
|
|
3235
3235
|
_ = /** @type {Record<string, any>} */
|
|
3236
|
-
{},
|
|
3236
|
+
{}, g[$] = _;
|
|
3237
3237
|
for (var k in i)
|
|
3238
|
-
i.hasOwnProperty(k) && (_[k] =
|
|
3238
|
+
i.hasOwnProperty(k) && (_[k] = h(i[k], g));
|
|
3239
3239
|
return (
|
|
3240
3240
|
/** @type {any} */
|
|
3241
3241
|
_
|
|
3242
3242
|
);
|
|
3243
3243
|
case "Array":
|
|
3244
|
-
return $ = c.util.objId(i),
|
|
3244
|
+
return $ = c.util.objId(i), g[$] ? g[$] : (_ = [], g[$] = _, /** @type {Array} */
|
|
3245
3245
|
/** @type {any} */
|
|
3246
3246
|
i.forEach(function(z, w) {
|
|
3247
|
-
_[w] =
|
|
3247
|
+
_[w] = h(z, g);
|
|
3248
3248
|
}), /** @type {any} */
|
|
3249
3249
|
_);
|
|
3250
3250
|
default:
|
|
@@ -3259,12 +3259,12 @@ var N1 = { exports: {} };
|
|
|
3259
3259
|
* @param {Element} element
|
|
3260
3260
|
* @returns {string}
|
|
3261
3261
|
*/
|
|
3262
|
-
getLanguage: function(
|
|
3263
|
-
for (;
|
|
3264
|
-
var i = r.exec(
|
|
3262
|
+
getLanguage: function(h) {
|
|
3263
|
+
for (; h; ) {
|
|
3264
|
+
var i = r.exec(h.className);
|
|
3265
3265
|
if (i)
|
|
3266
3266
|
return i[1].toLowerCase();
|
|
3267
|
-
|
|
3267
|
+
h = h.parentElement;
|
|
3268
3268
|
}
|
|
3269
3269
|
return "none";
|
|
3270
3270
|
},
|
|
@@ -3275,8 +3275,8 @@ var N1 = { exports: {} };
|
|
|
3275
3275
|
* @param {string} language
|
|
3276
3276
|
* @returns {void}
|
|
3277
3277
|
*/
|
|
3278
|
-
setLanguage: function(
|
|
3279
|
-
|
|
3278
|
+
setLanguage: function(h, i) {
|
|
3279
|
+
h.className = h.className.replace(RegExp(r, "gi"), ""), h.classList.add("language-" + i);
|
|
3280
3280
|
},
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Returns the script element that is currently executing.
|
|
@@ -3296,12 +3296,12 @@ var N1 = { exports: {} };
|
|
|
3296
3296
|
try {
|
|
3297
3297
|
throw new Error();
|
|
3298
3298
|
} catch (_) {
|
|
3299
|
-
var
|
|
3300
|
-
if (
|
|
3299
|
+
var h = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack) || [])[1];
|
|
3300
|
+
if (h) {
|
|
3301
3301
|
var i = document.getElementsByTagName("script");
|
|
3302
|
-
for (var
|
|
3303
|
-
if (i[
|
|
3304
|
-
return i[
|
|
3302
|
+
for (var g in i)
|
|
3303
|
+
if (i[g].src == h)
|
|
3304
|
+
return i[g];
|
|
3305
3305
|
}
|
|
3306
3306
|
return null;
|
|
3307
3307
|
}
|
|
@@ -3325,16 +3325,16 @@ var N1 = { exports: {} };
|
|
|
3325
3325
|
* @param {boolean} [defaultActivation=false]
|
|
3326
3326
|
* @returns {boolean}
|
|
3327
3327
|
*/
|
|
3328
|
-
isActive: function(
|
|
3329
|
-
for (var _ = "no-" + i;
|
|
3330
|
-
var $ =
|
|
3328
|
+
isActive: function(h, i, g) {
|
|
3329
|
+
for (var _ = "no-" + i; h; ) {
|
|
3330
|
+
var $ = h.classList;
|
|
3331
3331
|
if ($.contains(i))
|
|
3332
3332
|
return !0;
|
|
3333
3333
|
if ($.contains(_))
|
|
3334
3334
|
return !1;
|
|
3335
|
-
|
|
3335
|
+
h = h.parentElement;
|
|
3336
3336
|
}
|
|
3337
|
-
return !!
|
|
3337
|
+
return !!g;
|
|
3338
3338
|
}
|
|
3339
3339
|
},
|
|
3340
3340
|
/**
|
|
@@ -3380,11 +3380,11 @@ var N1 = { exports: {} };
|
|
|
3380
3380
|
* 'color': /\b(?:red|green|blue)\b/
|
|
3381
3381
|
* });
|
|
3382
3382
|
*/
|
|
3383
|
-
extend: function(
|
|
3384
|
-
var
|
|
3383
|
+
extend: function(h, i) {
|
|
3384
|
+
var g = c.util.clone(c.languages[h]);
|
|
3385
3385
|
for (var _ in i)
|
|
3386
|
-
|
|
3387
|
-
return
|
|
3386
|
+
g[_] = i[_];
|
|
3387
|
+
return g;
|
|
3388
3388
|
},
|
|
3389
3389
|
/**
|
|
3390
3390
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -3461,31 +3461,31 @@ var N1 = { exports: {} };
|
|
|
3461
3461
|
* @returns {Grammar} The new grammar object.
|
|
3462
3462
|
* @public
|
|
3463
3463
|
*/
|
|
3464
|
-
insertBefore: function(
|
|
3464
|
+
insertBefore: function(h, i, g, _) {
|
|
3465
3465
|
_ = _ || /** @type {any} */
|
|
3466
3466
|
c.languages;
|
|
3467
|
-
var $ = _[
|
|
3467
|
+
var $ = _[h], k = {};
|
|
3468
3468
|
for (var z in $)
|
|
3469
3469
|
if ($.hasOwnProperty(z)) {
|
|
3470
3470
|
if (z == i)
|
|
3471
|
-
for (var w in
|
|
3472
|
-
|
|
3473
|
-
|
|
3471
|
+
for (var w in g)
|
|
3472
|
+
g.hasOwnProperty(w) && (k[w] = g[w]);
|
|
3473
|
+
g.hasOwnProperty(z) || (k[z] = $[z]);
|
|
3474
3474
|
}
|
|
3475
|
-
var y = _[
|
|
3476
|
-
return _[
|
|
3477
|
-
N === y && H !=
|
|
3475
|
+
var y = _[h];
|
|
3476
|
+
return _[h] = k, c.languages.DFS(c.languages, function(H, N) {
|
|
3477
|
+
N === y && H != h && (this[H] = k);
|
|
3478
3478
|
}), k;
|
|
3479
3479
|
},
|
|
3480
3480
|
// Traverse a language definition with Depth First Search
|
|
3481
|
-
DFS: function
|
|
3481
|
+
DFS: function h(i, g, _, $) {
|
|
3482
3482
|
$ = $ || {};
|
|
3483
3483
|
var k = c.util.objId;
|
|
3484
3484
|
for (var z in i)
|
|
3485
3485
|
if (i.hasOwnProperty(z)) {
|
|
3486
|
-
|
|
3486
|
+
g.call(i, z, i[z], _ || z);
|
|
3487
3487
|
var w = i[z], y = c.util.type(w);
|
|
3488
|
-
y === "Object" && !$[k(w)] ? ($[k(w)] = !0,
|
|
3488
|
+
y === "Object" && !$[k(w)] ? ($[k(w)] = !0, h(w, g, null, $)) : y === "Array" && !$[k(w)] && ($[k(w)] = !0, h(w, g, z, $));
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
},
|
|
@@ -3502,8 +3502,8 @@ var N1 = { exports: {} };
|
|
|
3502
3502
|
* @memberof Prism
|
|
3503
3503
|
* @public
|
|
3504
3504
|
*/
|
|
3505
|
-
highlightAll: function(
|
|
3506
|
-
c.highlightAllUnder(document,
|
|
3505
|
+
highlightAll: function(h, i) {
|
|
3506
|
+
c.highlightAllUnder(document, h, i);
|
|
3507
3507
|
},
|
|
3508
3508
|
/**
|
|
3509
3509
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -3520,10 +3520,10 @@ var N1 = { exports: {} };
|
|
|
3520
3520
|
* @memberof Prism
|
|
3521
3521
|
* @public
|
|
3522
3522
|
*/
|
|
3523
|
-
highlightAllUnder: function(
|
|
3523
|
+
highlightAllUnder: function(h, i, g) {
|
|
3524
3524
|
var _ = {
|
|
3525
|
-
callback:
|
|
3526
|
-
container:
|
|
3525
|
+
callback: g,
|
|
3526
|
+
container: h,
|
|
3527
3527
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
3528
3528
|
};
|
|
3529
3529
|
c.hooks.run("before-highlightall", _), _.elements = Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)), c.hooks.run("before-all-elements-highlight", _);
|
|
@@ -3558,22 +3558,22 @@ var N1 = { exports: {} };
|
|
|
3558
3558
|
* @memberof Prism
|
|
3559
3559
|
* @public
|
|
3560
3560
|
*/
|
|
3561
|
-
highlightElement: function(
|
|
3562
|
-
var _ = c.util.getLanguage(
|
|
3563
|
-
c.util.setLanguage(
|
|
3564
|
-
var k =
|
|
3561
|
+
highlightElement: function(h, i, g) {
|
|
3562
|
+
var _ = c.util.getLanguage(h), $ = c.languages[_];
|
|
3563
|
+
c.util.setLanguage(h, _);
|
|
3564
|
+
var k = h.parentElement;
|
|
3565
3565
|
k && k.nodeName.toLowerCase() === "pre" && c.util.setLanguage(k, _);
|
|
3566
|
-
var z =
|
|
3567
|
-
element:
|
|
3566
|
+
var z = h.textContent, w = {
|
|
3567
|
+
element: h,
|
|
3568
3568
|
language: _,
|
|
3569
3569
|
grammar: $,
|
|
3570
3570
|
code: z
|
|
3571
3571
|
};
|
|
3572
3572
|
function y(N) {
|
|
3573
|
-
w.highlightedCode = N, c.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, c.hooks.run("after-highlight", w), c.hooks.run("complete", w),
|
|
3573
|
+
w.highlightedCode = N, c.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, c.hooks.run("after-highlight", w), c.hooks.run("complete", w), g && g.call(w.element);
|
|
3574
3574
|
}
|
|
3575
3575
|
if (c.hooks.run("before-sanity-check", w), k = w.element.parentElement, k && k.nodeName.toLowerCase() === "pre" && !k.hasAttribute("tabindex") && k.setAttribute("tabindex", "0"), !w.code) {
|
|
3576
|
-
c.hooks.run("complete", w),
|
|
3576
|
+
c.hooks.run("complete", w), g && g.call(w.element);
|
|
3577
3577
|
return;
|
|
3578
3578
|
}
|
|
3579
3579
|
if (c.hooks.run("before-highlight", w), !w.grammar) {
|
|
@@ -3612,11 +3612,11 @@ var N1 = { exports: {} };
|
|
|
3612
3612
|
* @example
|
|
3613
3613
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
3614
3614
|
*/
|
|
3615
|
-
highlight: function(
|
|
3615
|
+
highlight: function(h, i, g) {
|
|
3616
3616
|
var _ = {
|
|
3617
|
-
code:
|
|
3617
|
+
code: h,
|
|
3618
3618
|
grammar: i,
|
|
3619
|
-
language:
|
|
3619
|
+
language: g
|
|
3620
3620
|
};
|
|
3621
3621
|
if (c.hooks.run("before-tokenize", _), !_.grammar)
|
|
3622
3622
|
throw new Error('The language "' + _.language + '" has no grammar.');
|
|
@@ -3646,15 +3646,15 @@ var N1 = { exports: {} };
|
|
|
3646
3646
|
* }
|
|
3647
3647
|
* });
|
|
3648
3648
|
*/
|
|
3649
|
-
tokenize: function(
|
|
3650
|
-
var
|
|
3651
|
-
if (
|
|
3652
|
-
for (var _ in
|
|
3653
|
-
i[_] =
|
|
3649
|
+
tokenize: function(h, i) {
|
|
3650
|
+
var g = i.rest;
|
|
3651
|
+
if (g) {
|
|
3652
|
+
for (var _ in g)
|
|
3653
|
+
i[_] = g[_];
|
|
3654
3654
|
delete i.rest;
|
|
3655
3655
|
}
|
|
3656
3656
|
var $ = new p();
|
|
3657
|
-
return u($, $.head,
|
|
3657
|
+
return u($, $.head, h), f(h, $, i, $.head, 0), E($);
|
|
3658
3658
|
},
|
|
3659
3659
|
/**
|
|
3660
3660
|
* @namespace
|
|
@@ -3675,9 +3675,9 @@ var N1 = { exports: {} };
|
|
|
3675
3675
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
3676
3676
|
* @public
|
|
3677
3677
|
*/
|
|
3678
|
-
add: function(
|
|
3679
|
-
var
|
|
3680
|
-
h
|
|
3678
|
+
add: function(h, i) {
|
|
3679
|
+
var g = c.hooks.all;
|
|
3680
|
+
g[h] = g[h] || [], g[h].push(i);
|
|
3681
3681
|
},
|
|
3682
3682
|
/**
|
|
3683
3683
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -3688,35 +3688,35 @@ var N1 = { exports: {} };
|
|
|
3688
3688
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
3689
3689
|
* @public
|
|
3690
3690
|
*/
|
|
3691
|
-
run: function(
|
|
3692
|
-
var
|
|
3693
|
-
if (!(!
|
|
3694
|
-
for (var _ = 0, $; $ =
|
|
3691
|
+
run: function(h, i) {
|
|
3692
|
+
var g = c.hooks.all[h];
|
|
3693
|
+
if (!(!g || !g.length))
|
|
3694
|
+
for (var _ = 0, $; $ = g[_++]; )
|
|
3695
3695
|
$(i);
|
|
3696
3696
|
}
|
|
3697
3697
|
},
|
|
3698
3698
|
Token: o
|
|
3699
3699
|
};
|
|
3700
3700
|
l.Prism = c;
|
|
3701
|
-
function o(
|
|
3702
|
-
this.type =
|
|
3701
|
+
function o(h, i, g, _) {
|
|
3702
|
+
this.type = h, this.content = i, this.alias = g, this.length = (_ || "").length | 0;
|
|
3703
3703
|
}
|
|
3704
|
-
o.stringify = function
|
|
3704
|
+
o.stringify = function h(i, g) {
|
|
3705
3705
|
if (typeof i == "string")
|
|
3706
3706
|
return i;
|
|
3707
3707
|
if (Array.isArray(i)) {
|
|
3708
3708
|
var _ = "";
|
|
3709
3709
|
return i.forEach(function(y) {
|
|
3710
|
-
_ +=
|
|
3710
|
+
_ += h(y, g);
|
|
3711
3711
|
}), _;
|
|
3712
3712
|
}
|
|
3713
3713
|
var $ = {
|
|
3714
3714
|
type: i.type,
|
|
3715
|
-
content:
|
|
3715
|
+
content: h(i.content, g),
|
|
3716
3716
|
tag: "span",
|
|
3717
3717
|
classes: ["token", i.type],
|
|
3718
3718
|
attributes: {},
|
|
3719
|
-
language:
|
|
3719
|
+
language: g
|
|
3720
3720
|
}, k = i.alias;
|
|
3721
3721
|
k && (Array.isArray(k) ? Array.prototype.push.apply($.classes, k) : $.classes.push(k)), c.hooks.run("wrap", $);
|
|
3722
3722
|
var z = "";
|
|
@@ -3724,19 +3724,19 @@ var N1 = { exports: {} };
|
|
|
3724
3724
|
z += " " + w + '="' + ($.attributes[w] || "").replace(/"/g, """) + '"';
|
|
3725
3725
|
return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' + z + ">" + $.content + "</" + $.tag + ">";
|
|
3726
3726
|
};
|
|
3727
|
-
function m(
|
|
3728
|
-
|
|
3729
|
-
var $ =
|
|
3727
|
+
function m(h, i, g, _) {
|
|
3728
|
+
h.lastIndex = i;
|
|
3729
|
+
var $ = h.exec(g);
|
|
3730
3730
|
if ($ && _ && $[1]) {
|
|
3731
3731
|
var k = $[1].length;
|
|
3732
3732
|
$.index += k, $[0] = $[0].slice(k);
|
|
3733
3733
|
}
|
|
3734
3734
|
return $;
|
|
3735
3735
|
}
|
|
3736
|
-
function f(
|
|
3737
|
-
for (var z in
|
|
3738
|
-
if (!(!
|
|
3739
|
-
var w =
|
|
3736
|
+
function f(h, i, g, _, $, k) {
|
|
3737
|
+
for (var z in g)
|
|
3738
|
+
if (!(!g.hasOwnProperty(z) || !g[z])) {
|
|
3739
|
+
var w = g[z];
|
|
3740
3740
|
w = Array.isArray(w) ? w : [w];
|
|
3741
3741
|
for (var y = 0; y < w.length; ++y) {
|
|
3742
3742
|
if (k && k.cause == z + "," + y)
|
|
@@ -3748,12 +3748,12 @@ var N1 = { exports: {} };
|
|
|
3748
3748
|
}
|
|
3749
3749
|
for (var T = H.pattern || H, W = _.next, Z = $; W !== i.tail && !(k && Z >= k.reach); Z += W.value.length, W = W.next) {
|
|
3750
3750
|
var K = W.value;
|
|
3751
|
-
if (i.length >
|
|
3751
|
+
if (i.length > h.length)
|
|
3752
3752
|
return;
|
|
3753
3753
|
if (!(K instanceof o)) {
|
|
3754
3754
|
var ne = 1, Y;
|
|
3755
3755
|
if (I) {
|
|
3756
|
-
if (Y = m(T, Z,
|
|
3756
|
+
if (Y = m(T, Z, h, V), !Y || Y.index >= h.length)
|
|
3757
3757
|
break;
|
|
3758
3758
|
var Q = Y.index, j = Y.index + Y[0].length, q = Z;
|
|
3759
3759
|
for (q += W.value.length; Q >= q; )
|
|
@@ -3762,20 +3762,20 @@ var N1 = { exports: {} };
|
|
|
3762
3762
|
continue;
|
|
3763
3763
|
for (var O = W; O !== i.tail && (q < j || typeof O.value == "string"); O = O.next)
|
|
3764
3764
|
ne++, q += O.value.length;
|
|
3765
|
-
ne--, K =
|
|
3765
|
+
ne--, K = h.slice(Z, q), Y.index -= Z;
|
|
3766
3766
|
} else if (Y = m(T, 0, K, V), !Y)
|
|
3767
3767
|
continue;
|
|
3768
3768
|
var Q = Y.index, X = Y[0], F = K.slice(0, Q), B = K.slice(Q + X.length), J = Z + K.length;
|
|
3769
3769
|
k && J > k.reach && (k.reach = J);
|
|
3770
3770
|
var te = W.prev;
|
|
3771
|
-
F && (te = u(i, te, F), Z += F.length),
|
|
3771
|
+
F && (te = u(i, te, F), Z += F.length), b(i, te, ne);
|
|
3772
3772
|
var fe = new o(z, N ? c.tokenize(X, N) : X, D, X);
|
|
3773
3773
|
if (W = u(i, te, fe), B && u(i, W, B), ne > 1) {
|
|
3774
3774
|
var ie = {
|
|
3775
3775
|
cause: z + "," + y,
|
|
3776
3776
|
reach: J
|
|
3777
3777
|
};
|
|
3778
|
-
f(
|
|
3778
|
+
f(h, i, g, W.prev, Z, ie), k && ie.reach > k.reach && (k.reach = ie.reach);
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
@@ -3783,36 +3783,36 @@ var N1 = { exports: {} };
|
|
|
3783
3783
|
}
|
|
3784
3784
|
}
|
|
3785
3785
|
function p() {
|
|
3786
|
-
var
|
|
3787
|
-
|
|
3786
|
+
var h = { value: null, prev: null, next: null }, i = { value: null, prev: h, next: null };
|
|
3787
|
+
h.next = i, this.head = h, this.tail = i, this.length = 0;
|
|
3788
3788
|
}
|
|
3789
|
-
function u(
|
|
3790
|
-
var _ = i.next, $ = { value:
|
|
3791
|
-
return i.next = $, _.prev = $,
|
|
3789
|
+
function u(h, i, g) {
|
|
3790
|
+
var _ = i.next, $ = { value: g, prev: i, next: _ };
|
|
3791
|
+
return i.next = $, _.prev = $, h.length++, $;
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3794
|
-
for (var _ = i.next, $ = 0; $ <
|
|
3793
|
+
function b(h, i, g) {
|
|
3794
|
+
for (var _ = i.next, $ = 0; $ < g && _ !== h.tail; $++)
|
|
3795
3795
|
_ = _.next;
|
|
3796
|
-
i.next = _, _.prev = i,
|
|
3796
|
+
i.next = _, _.prev = i, h.length -= $;
|
|
3797
3797
|
}
|
|
3798
|
-
function E(
|
|
3799
|
-
for (var i = [],
|
|
3800
|
-
i.push(
|
|
3798
|
+
function E(h) {
|
|
3799
|
+
for (var i = [], g = h.head.next; g !== h.tail; )
|
|
3800
|
+
i.push(g.value), g = g.next;
|
|
3801
3801
|
return i;
|
|
3802
3802
|
}
|
|
3803
3803
|
if (!l.document)
|
|
3804
|
-
return l.addEventListener && (c.disableWorkerMessageHandler || l.addEventListener("message", function(
|
|
3805
|
-
var i = JSON.parse(
|
|
3806
|
-
l.postMessage(c.highlight(_, c.languages[
|
|
3804
|
+
return l.addEventListener && (c.disableWorkerMessageHandler || l.addEventListener("message", function(h) {
|
|
3805
|
+
var i = JSON.parse(h.data), g = i.language, _ = i.code, $ = i.immediateClose;
|
|
3806
|
+
l.postMessage(c.highlight(_, c.languages[g], g)), $ && l.close();
|
|
3807
3807
|
}, !1)), c;
|
|
3808
3808
|
var L = c.util.currentScript();
|
|
3809
3809
|
L && (c.filename = L.src, L.hasAttribute("data-manual") && (c.manual = !0));
|
|
3810
|
-
function
|
|
3810
|
+
function v() {
|
|
3811
3811
|
c.manual || c.highlightAll();
|
|
3812
3812
|
}
|
|
3813
3813
|
if (!c.manual) {
|
|
3814
3814
|
var C = document.readyState;
|
|
3815
|
-
C === "loading" || C === "interactive" && L && L.defer ? document.addEventListener("DOMContentLoaded",
|
|
3815
|
+
C === "loading" || C === "interactive" && L && L.defer ? document.addEventListener("DOMContentLoaded", v) : window.requestAnimationFrame ? window.requestAnimationFrame(v) : window.setTimeout(v, 16);
|
|
3816
3816
|
}
|
|
3817
3817
|
return c;
|
|
3818
3818
|
}(n);
|
|
@@ -4247,7 +4247,7 @@ const v2 = /* @__PURE__ */ _2(E2), b2 = {
|
|
|
4247
4247
|
});
|
|
4248
4248
|
})(Prism);
|
|
4249
4249
|
const Cn = (u) => {
|
|
4250
|
-
var
|
|
4250
|
+
var b = u, {
|
|
4251
4251
|
code: t,
|
|
4252
4252
|
colorType: n = "dark",
|
|
4253
4253
|
copyButtonLabel: s = "Copy to clipboard",
|
|
@@ -4259,7 +4259,7 @@ const Cn = (u) => {
|
|
|
4259
4259
|
promptSymbol: o = "$",
|
|
4260
4260
|
shouldWrap: m = !1,
|
|
4261
4261
|
className: f
|
|
4262
|
-
} =
|
|
4262
|
+
} = b, p = A(b, [
|
|
4263
4263
|
"code",
|
|
4264
4264
|
"colorType",
|
|
4265
4265
|
"copyButtonLabel",
|
|
@@ -4272,7 +4272,7 @@ const Cn = (u) => {
|
|
|
4272
4272
|
"shouldWrap",
|
|
4273
4273
|
"className"
|
|
4274
4274
|
]);
|
|
4275
|
-
const E = "pds-code-block", L = `${E}--${n}`,
|
|
4275
|
+
const E = "pds-code-block", L = `${E}--${n}`, v = m ? `${E}__line-wrapped` : "", C = c ? { maxHeight: `${c}rem` } : {}, h = n === "dark" ? "reverse" : "standard", i = n === "dark" ? b2 : C2, g = ["bash", "diff", "twig"], _ = /* @__PURE__ */ e.createElement(mt.LineContent, null, /* @__PURE__ */ e.createElement(mt.Token, null)), $ = /* @__PURE__ */ e.createElement("div", { className: `${E}__line ${v}` }, /* @__PURE__ */ e.createElement(mt.LineNumber, { className: `${E}__number` }), _), k = /* @__PURE__ */ e.createElement("div", { className: `${E}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__prompt` }, o), _);
|
|
4276
4276
|
return /* @__PURE__ */ e.createElement(
|
|
4277
4277
|
"div",
|
|
4278
4278
|
M({
|
|
@@ -4285,7 +4285,7 @@ const Cn = (u) => {
|
|
|
4285
4285
|
code: t,
|
|
4286
4286
|
language: a || "",
|
|
4287
4287
|
theme: i,
|
|
4288
|
-
prism:
|
|
4288
|
+
prism: g.includes(a) ? v2 : void 0
|
|
4289
4289
|
},
|
|
4290
4290
|
/* @__PURE__ */ e.createElement(mt.Code, { className: `${E}__code`, tabIndex: 0 }, r || d ? r ? $ : k : _)
|
|
4291
4291
|
),
|
|
@@ -4294,7 +4294,7 @@ const Cn = (u) => {
|
|
|
4294
4294
|
{
|
|
4295
4295
|
ariaLabel: s,
|
|
4296
4296
|
clipboardText: t,
|
|
4297
|
-
variant:
|
|
4297
|
+
variant: h
|
|
4298
4298
|
}
|
|
4299
4299
|
))
|
|
4300
4300
|
);
|
|
@@ -4344,13 +4344,13 @@ const Cn = (u) => {
|
|
|
4344
4344
|
"secondaryLinkContent",
|
|
4345
4345
|
"className"
|
|
4346
4346
|
]);
|
|
4347
|
-
const p = "pds-cta-slice", u = t && t !== "default" ? `${p}--${t}` : null,
|
|
4347
|
+
const p = "pds-cta-slice", u = t && t !== "default" ? `${p}--${t}` : null, b = n && n !== "standard" ? `pds-container pds-container--${n}` : "pds-container";
|
|
4348
4348
|
return /* @__PURE__ */ e.createElement(
|
|
4349
4349
|
"div",
|
|
4350
4350
|
M({
|
|
4351
4351
|
className: x([p, u, c])
|
|
4352
4352
|
}, o),
|
|
4353
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4353
|
+
/* @__PURE__ */ e.createElement("div", { className: b }, l && /* @__PURE__ */ e.createElement(_t, { baseClass: p, className: "pds-ts-4xl", level: s }, l), r && /* @__PURE__ */ e.createElement(
|
|
4354
4354
|
"div",
|
|
4355
4355
|
{
|
|
4356
4356
|
className: `${p}__lead-text pds-lead-text pds-lead-text--sm`
|
|
@@ -4469,8 +4469,8 @@ const Cn = (u) => {
|
|
|
4469
4469
|
"className"
|
|
4470
4470
|
]);
|
|
4471
4471
|
const a = "pds-flow-steps", c = `${a}--${t}`, o = n.map(({ header: m, content: f }, p) => {
|
|
4472
|
-
const u = /* @__PURE__ */ e.createElement("div", { className: `${a}__number` }, /* @__PURE__ */ e.createElement("span", null, p + 1)),
|
|
4473
|
-
return /* @__PURE__ */ e.createElement("li", { key: p, className: `${a}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, u, /* @__PURE__ */ e.createElement("div", { className: `${a}__content-group` },
|
|
4472
|
+
const u = /* @__PURE__ */ e.createElement("div", { className: `${a}__number` }, /* @__PURE__ */ e.createElement("span", null, p + 1)), b = /* @__PURE__ */ e.createElement("div", { className: `${a}__header` }, m), E = f ? /* @__PURE__ */ e.createElement("div", { className: `${a}__content` }, f) : null;
|
|
4473
|
+
return /* @__PURE__ */ e.createElement("li", { key: p, className: `${a}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, u, /* @__PURE__ */ e.createElement("div", { className: `${a}__content-group` }, b, E)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${a}__header-group` }, u, b), E));
|
|
4474
4474
|
});
|
|
4475
4475
|
return /* @__PURE__ */ e.createElement(
|
|
4476
4476
|
"ol",
|
|
@@ -4541,8 +4541,8 @@ const Cn = (u) => {
|
|
|
4541
4541
|
"legalLinks",
|
|
4542
4542
|
"className"
|
|
4543
4543
|
]);
|
|
4544
|
-
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", m = (/* @__PURE__ */ new Date()).getFullYear(), f = s.includes("privacy"), p = s.includes("dataSubjectRequest"), u = s.includes("cookiePolicy"),
|
|
4545
|
-
return /* @__PURE__ */ e.createElement("footer", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, n && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", m, " Pantheon Systems, Inc."), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), u && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"),
|
|
4544
|
+
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", m = (/* @__PURE__ */ new Date()).getFullYear(), f = s.includes("privacy"), p = s.includes("dataSubjectRequest"), u = s.includes("cookiePolicy"), b = s.includes("termsOfUse"), E = s.includes("acceptableUse"), L = s.includes("accessibilityStatement");
|
|
4545
|
+
return /* @__PURE__ */ e.createElement("footer", M({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, n && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", m, " Pantheon Systems, Inc."), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), u && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), b && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), L && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4546
4546
|
}, y2 = Ze(
|
|
4547
4547
|
(k, $) => {
|
|
4548
4548
|
var z = k, {
|
|
@@ -4559,14 +4559,14 @@ const Cn = (u) => {
|
|
|
4559
4559
|
nestingLevel: f = 0,
|
|
4560
4560
|
onBlur: p,
|
|
4561
4561
|
onChange: u,
|
|
4562
|
-
onFocus:
|
|
4562
|
+
onFocus: b,
|
|
4563
4563
|
required: E,
|
|
4564
4564
|
showLabel: L = !0,
|
|
4565
|
-
size:
|
|
4565
|
+
size: v = "M",
|
|
4566
4566
|
validationMessage: C,
|
|
4567
|
-
validationStatus:
|
|
4567
|
+
validationStatus: h,
|
|
4568
4568
|
value: i,
|
|
4569
|
-
className:
|
|
4569
|
+
className: g
|
|
4570
4570
|
} = z, _ = A(z, [
|
|
4571
4571
|
"checked",
|
|
4572
4572
|
"defaultChecked",
|
|
@@ -4590,7 +4590,7 @@ const Cn = (u) => {
|
|
|
4590
4590
|
"value",
|
|
4591
4591
|
"className"
|
|
4592
4592
|
]);
|
|
4593
|
-
const w = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox", H = s ? ee.disabled : null, N =
|
|
4593
|
+
const w = a ? { width: `${a / 16}rem` } : null, y = "pds-checkbox", H = s ? ee.disabled : null, N = h === "error" ? ee.error : null, V = f > 0 ? `${y}--indent-${f}` : null, I = E && !s ? ee.required : null, D = v === "S" ? `${y}--sm` : null, S = h === "success" ? ee.success : null, T = C || o, W = typeof t != "undefined", Z = typeof n != "undefined", [K, ne] = U(
|
|
4594
4594
|
Z ? n : !1
|
|
4595
4595
|
), Y = t || K, j = (F) => {
|
|
4596
4596
|
W || ne(F.target.checked), u && u(F);
|
|
@@ -4625,7 +4625,7 @@ const Cn = (u) => {
|
|
|
4625
4625
|
S,
|
|
4626
4626
|
D,
|
|
4627
4627
|
V,
|
|
4628
|
-
|
|
4628
|
+
g != null ? g : ""
|
|
4629
4629
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4630
4630
|
style: a ? w : null
|
|
4631
4631
|
}, _),
|
|
@@ -4643,8 +4643,8 @@ const Cn = (u) => {
|
|
|
4643
4643
|
required: E,
|
|
4644
4644
|
onBlur: p,
|
|
4645
4645
|
onChange: j,
|
|
4646
|
-
onFocus:
|
|
4647
|
-
"aria-invalid":
|
|
4646
|
+
onFocus: b,
|
|
4647
|
+
"aria-invalid": h === "error" ? !0 : null,
|
|
4648
4648
|
"aria-describedby": T ? `${l}__message` : null
|
|
4649
4649
|
}), d)
|
|
4650
4650
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: l, className: `${y}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -4676,7 +4676,7 @@ const Cn = (u) => {
|
|
|
4676
4676
|
message: T,
|
|
4677
4677
|
hasValidationMessage: !!C,
|
|
4678
4678
|
validationMessageHasDecorators: !0,
|
|
4679
|
-
validationStatus:
|
|
4679
|
+
validationStatus: h
|
|
4680
4680
|
}
|
|
4681
4681
|
)
|
|
4682
4682
|
);
|
|
@@ -4696,7 +4696,7 @@ const Cn = (u) => {
|
|
|
4696
4696
|
validationMessage: f,
|
|
4697
4697
|
validationStatus: p,
|
|
4698
4698
|
className: u
|
|
4699
|
-
} = L,
|
|
4699
|
+
} = L, b = A(L, [
|
|
4700
4700
|
"children",
|
|
4701
4701
|
"disabled",
|
|
4702
4702
|
"fieldsetProps",
|
|
@@ -4711,20 +4711,20 @@ const Cn = (u) => {
|
|
|
4711
4711
|
"validationStatus",
|
|
4712
4712
|
"className"
|
|
4713
4713
|
]);
|
|
4714
|
-
const
|
|
4714
|
+
const v = r ? { width: `${r / 16}rem` } : null, C = "pds-checkbox-group", h = n ? ee.disabled : null, i = c && !n ? ee.required : null, g = p === "error" ? ee.error : null, _ = p === "success" ? ee.success : null, $ = f || a;
|
|
4715
4715
|
return /* @__PURE__ */ e.createElement(
|
|
4716
4716
|
"div",
|
|
4717
4717
|
M({
|
|
4718
4718
|
className: [
|
|
4719
4719
|
C,
|
|
4720
|
-
g,
|
|
4721
|
-
i,
|
|
4722
4720
|
h,
|
|
4721
|
+
i,
|
|
4722
|
+
g,
|
|
4723
4723
|
_,
|
|
4724
4724
|
u != null ? u : ""
|
|
4725
4725
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4726
|
-
style: r ?
|
|
4727
|
-
},
|
|
4726
|
+
style: r ? v : null
|
|
4727
|
+
}, b),
|
|
4728
4728
|
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${C}__fieldset`, id: l }, s), /* @__PURE__ */ e.createElement(
|
|
4729
4729
|
Pe,
|
|
4730
4730
|
{
|
|
@@ -4748,8 +4748,8 @@ const Cn = (u) => {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
)
|
|
4750
4750
|
);
|
|
4751
|
-
}, zn = (
|
|
4752
|
-
var C =
|
|
4751
|
+
}, zn = (v) => {
|
|
4752
|
+
var C = v, {
|
|
4753
4753
|
disabled: t = !1,
|
|
4754
4754
|
fieldsetProps: n,
|
|
4755
4755
|
id: s,
|
|
@@ -4763,7 +4763,7 @@ const Cn = (u) => {
|
|
|
4763
4763
|
showLabel: f = !0,
|
|
4764
4764
|
tooltipText: p = null,
|
|
4765
4765
|
validationMessage: u,
|
|
4766
|
-
validationStatus:
|
|
4766
|
+
validationStatus: b,
|
|
4767
4767
|
className: E
|
|
4768
4768
|
} = C, L = A(C, [
|
|
4769
4769
|
"disabled",
|
|
@@ -4782,7 +4782,7 @@ const Cn = (u) => {
|
|
|
4782
4782
|
"validationStatus",
|
|
4783
4783
|
"className"
|
|
4784
4784
|
]);
|
|
4785
|
-
const
|
|
4785
|
+
const h = l ? { width: `${l / 16}rem` } : null, i = "pds-checkbox-group", g = t ? ee.disabled : null, _ = m && !t ? ee.required : null, $ = b === "error" ? ee.error : null, k = b === "success" ? ee.success : null, z = u || d;
|
|
4786
4786
|
o.map((I) => {
|
|
4787
4787
|
I.id || (I.id = I.value);
|
|
4788
4788
|
});
|
|
@@ -4807,13 +4807,13 @@ const Cn = (u) => {
|
|
|
4807
4807
|
M({
|
|
4808
4808
|
className: [
|
|
4809
4809
|
i,
|
|
4810
|
-
|
|
4810
|
+
g,
|
|
4811
4811
|
_,
|
|
4812
4812
|
$,
|
|
4813
4813
|
k,
|
|
4814
4814
|
E != null ? E : ""
|
|
4815
4815
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4816
|
-
style: l ?
|
|
4816
|
+
style: l ? h : null
|
|
4817
4817
|
}, L),
|
|
4818
4818
|
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${i}__fieldset`, id: s }, n), /* @__PURE__ */ e.createElement(
|
|
4819
4819
|
Pe,
|
|
@@ -4848,7 +4848,7 @@ const Cn = (u) => {
|
|
|
4848
4848
|
message: z,
|
|
4849
4849
|
hasValidationMessage: !!u,
|
|
4850
4850
|
validationMessageHasDecorators: !0,
|
|
4851
|
-
validationStatus:
|
|
4851
|
+
validationStatus: b
|
|
4852
4852
|
}
|
|
4853
4853
|
)
|
|
4854
4854
|
);
|
|
@@ -4873,14 +4873,14 @@ const Cn = (u) => {
|
|
|
4873
4873
|
},
|
|
4874
4874
|
loadingText: p = "Loading results...",
|
|
4875
4875
|
message: u,
|
|
4876
|
-
noResultsText:
|
|
4876
|
+
noResultsText: b = "No results found",
|
|
4877
4877
|
onChange: E,
|
|
4878
4878
|
onBlur: L,
|
|
4879
|
-
onClear:
|
|
4879
|
+
onClear: v,
|
|
4880
4880
|
onFocus: C,
|
|
4881
|
-
onOptionSelect:
|
|
4881
|
+
onOptionSelect: h,
|
|
4882
4882
|
options: i,
|
|
4883
|
-
placeholder:
|
|
4883
|
+
placeholder: g,
|
|
4884
4884
|
required: _ = !1,
|
|
4885
4885
|
showLabel: $ = !0,
|
|
4886
4886
|
tooltipText: k = null,
|
|
@@ -4955,7 +4955,7 @@ const Cn = (u) => {
|
|
|
4955
4955
|
F(!X);
|
|
4956
4956
|
}, Ce = () => {
|
|
4957
4957
|
var G;
|
|
4958
|
-
!q && fe(""), J(null), F(!0), (G = ge.domReference.current) == null || G.focus(),
|
|
4958
|
+
!q && fe(""), J(null), F(!0), (G = ge.domReference.current) == null || G.focus(), v && v();
|
|
4959
4959
|
}, Le = (G) => {
|
|
4960
4960
|
let ae = G.target.value;
|
|
4961
4961
|
E && E(G), q || (ae.length > 0 && (ae = ae.trimStart()), fe(ae)), ae ? (J(null), F(!0)) : F(!1);
|
|
@@ -4965,7 +4965,7 @@ const Cn = (u) => {
|
|
|
4965
4965
|
C && C(G);
|
|
4966
4966
|
}, Me = (G) => {
|
|
4967
4967
|
const ae = ie[G];
|
|
4968
|
-
!q && fe(ae.label), J(null), F(!1),
|
|
4968
|
+
!q && fe(ae.label), J(null), F(!1), h && h(ae);
|
|
4969
4969
|
}, R = (G) => G.map((re) => {
|
|
4970
4970
|
const Ge = re, { label: ue, optionDisplay: pe, value: he, searchIndex: nt } = Ge, ke = A(Ge, ["label", "optionDisplay", "value", "searchIndex"]), je = he || ue, We = [ue, he];
|
|
4971
4971
|
return nt && We.push(...nt), M({
|
|
@@ -5057,7 +5057,7 @@ const Cn = (u) => {
|
|
|
5057
5057
|
"aria-autocomplete": "list",
|
|
5058
5058
|
"aria-label": f.inputInstructions,
|
|
5059
5059
|
disabled: n,
|
|
5060
|
-
placeholder:
|
|
5060
|
+
placeholder: g,
|
|
5061
5061
|
value: $e,
|
|
5062
5062
|
onBlur: _e,
|
|
5063
5063
|
onChange: Le,
|
|
@@ -5114,7 +5114,7 @@ const Cn = (u) => {
|
|
|
5114
5114
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5115
5115
|
}
|
|
5116
5116
|
})),
|
|
5117
|
-
/* @__PURE__ */ e.createElement("div", { style: M({}, ct) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${T}__options` }, se) : /* @__PURE__ */ e.createElement("div", { className: `${T}__no-results` },
|
|
5117
|
+
/* @__PURE__ */ e.createElement("div", { style: M({}, ct) }, o ? /* @__PURE__ */ e.createElement("div", { className: `${T}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${T}__options` }, se) : /* @__PURE__ */ e.createElement("div", { className: `${T}__no-results` }, b))
|
|
5118
5118
|
),
|
|
5119
5119
|
j && /* @__PURE__ */ e.createElement(
|
|
5120
5120
|
De,
|
|
@@ -5137,8 +5137,8 @@ const Cn = (u) => {
|
|
|
5137
5137
|
(d) => d.id === r.id
|
|
5138
5138
|
)
|
|
5139
5139
|
}));
|
|
5140
|
-
}, Nn = (
|
|
5141
|
-
var C =
|
|
5140
|
+
}, Nn = (v) => {
|
|
5141
|
+
var C = v, {
|
|
5142
5142
|
disabled: t = !1,
|
|
5143
5143
|
id: n,
|
|
5144
5144
|
initialSelectedItems: s = [],
|
|
@@ -5155,7 +5155,7 @@ const Cn = (u) => {
|
|
|
5155
5155
|
options: f,
|
|
5156
5156
|
placeholder: p = "Filter",
|
|
5157
5157
|
required: u = !1,
|
|
5158
|
-
showLabel:
|
|
5158
|
+
showLabel: b = !0,
|
|
5159
5159
|
className: E
|
|
5160
5160
|
} = C, L = A(C, [
|
|
5161
5161
|
"disabled",
|
|
@@ -5174,7 +5174,7 @@ const Cn = (u) => {
|
|
|
5174
5174
|
"showLabel",
|
|
5175
5175
|
"className"
|
|
5176
5176
|
]);
|
|
5177
|
-
const
|
|
5177
|
+
const h = Je(l), i = "pds-combobox-multi", g = t ? ee.disabled : null, _ = u && !t ? ee.required : null, [$, k] = U(""), [z, w] = U(s), [y, H] = U(
|
|
5178
5178
|
null
|
|
5179
5179
|
), N = _1(
|
|
5180
5180
|
() => M2(f, z, $),
|
|
@@ -5265,18 +5265,18 @@ const Cn = (u) => {
|
|
|
5265
5265
|
className: x([
|
|
5266
5266
|
ee.base,
|
|
5267
5267
|
i,
|
|
5268
|
-
|
|
5268
|
+
g,
|
|
5269
5269
|
_,
|
|
5270
5270
|
E != null ? E : ""
|
|
5271
5271
|
]),
|
|
5272
|
-
style: l ?
|
|
5272
|
+
style: l ? h : null
|
|
5273
5273
|
}, L),
|
|
5274
5274
|
/* @__PURE__ */ e.createElement(
|
|
5275
5275
|
Pe,
|
|
5276
5276
|
{
|
|
5277
5277
|
id: n,
|
|
5278
5278
|
label: d,
|
|
5279
|
-
showLabel:
|
|
5279
|
+
showLabel: b,
|
|
5280
5280
|
required: u,
|
|
5281
5281
|
disabled: t
|
|
5282
5282
|
}
|
|
@@ -5319,7 +5319,7 @@ const Cn = (u) => {
|
|
|
5319
5319
|
"button",
|
|
5320
5320
|
M({
|
|
5321
5321
|
"aria-label": a.triggerButton,
|
|
5322
|
-
className: `${i}__trigger ${
|
|
5322
|
+
className: `${i}__trigger ${g}`,
|
|
5323
5323
|
disabled: t,
|
|
5324
5324
|
tabIndex: -1,
|
|
5325
5325
|
type: "button"
|
|
@@ -5364,7 +5364,7 @@ const Cn = (u) => {
|
|
|
5364
5364
|
)
|
|
5365
5365
|
);
|
|
5366
5366
|
}, xn = Ze(
|
|
5367
|
-
(_,
|
|
5367
|
+
(_, g) => {
|
|
5368
5368
|
var $ = _, {
|
|
5369
5369
|
accept: t,
|
|
5370
5370
|
defaultValue: n,
|
|
@@ -5382,12 +5382,12 @@ const Cn = (u) => {
|
|
|
5382
5382
|
onClear: f,
|
|
5383
5383
|
onFileChange: p,
|
|
5384
5384
|
required: u = !1,
|
|
5385
|
-
showFullPath:
|
|
5385
|
+
showFullPath: b,
|
|
5386
5386
|
showLabel: E = !0,
|
|
5387
5387
|
tooltipText: L = null,
|
|
5388
|
-
validationMessage:
|
|
5388
|
+
validationMessage: v,
|
|
5389
5389
|
validationStatus: C,
|
|
5390
|
-
className:
|
|
5390
|
+
className: h
|
|
5391
5391
|
} = $, i = A($, [
|
|
5392
5392
|
"accept",
|
|
5393
5393
|
"defaultValue",
|
|
@@ -5414,7 +5414,7 @@ const Cn = (u) => {
|
|
|
5414
5414
|
), H = Je(a), N = "pds-file-upload", V = s ? ee.disabled : null, I = u && !s ? ee.required : null, D = C === "error" ? ee.error : null, S = C === "success" ? ee.success : null, T = w ? `${N}--safari-default` : null;
|
|
5415
5415
|
let W = null;
|
|
5416
5416
|
C === "error" && (W = "error"), C === "success" && (W = "success");
|
|
5417
|
-
const Z =
|
|
5417
|
+
const Z = v || o, K = n ? [n] : null, ne = n ? n.split("/").pop() : null, Y = b ? n : ne, j = n ? new File(K, Y) : null;
|
|
5418
5418
|
oe(() => {
|
|
5419
5419
|
const X = new DataTransfer();
|
|
5420
5420
|
if (j && X.items.add(j), X.files.length > 0) {
|
|
@@ -5423,7 +5423,7 @@ const Cn = (u) => {
|
|
|
5423
5423
|
);
|
|
5424
5424
|
F.files = X.files, vt && (F.dataset.file = `${Y}`), z(!0);
|
|
5425
5425
|
}
|
|
5426
|
-
}, [n,
|
|
5426
|
+
}, [n, b]);
|
|
5427
5427
|
const q = () => {
|
|
5428
5428
|
const X = document.getElementById(
|
|
5429
5429
|
`${r}--input`
|
|
@@ -5454,7 +5454,7 @@ const Cn = (u) => {
|
|
|
5454
5454
|
I,
|
|
5455
5455
|
D,
|
|
5456
5456
|
S,
|
|
5457
|
-
|
|
5457
|
+
h != null ? h : ""
|
|
5458
5458
|
]),
|
|
5459
5459
|
style: a ? H : null
|
|
5460
5460
|
}, i),
|
|
@@ -5481,7 +5481,7 @@ const Cn = (u) => {
|
|
|
5481
5481
|
), /* @__PURE__ */ e.createElement(
|
|
5482
5482
|
"input",
|
|
5483
5483
|
M({
|
|
5484
|
-
ref:
|
|
5484
|
+
ref: g,
|
|
5485
5485
|
className: x([`${N}__input`]),
|
|
5486
5486
|
type: "file",
|
|
5487
5487
|
id: `${r}--input`,
|
|
@@ -5506,7 +5506,7 @@ const Cn = (u) => {
|
|
|
5506
5506
|
{
|
|
5507
5507
|
id: r,
|
|
5508
5508
|
message: Z,
|
|
5509
|
-
hasValidationMessage: !!
|
|
5509
|
+
hasValidationMessage: !!v,
|
|
5510
5510
|
validationMessageHasDecorators: !1,
|
|
5511
5511
|
validationStatus: C
|
|
5512
5512
|
}
|
|
@@ -5521,8 +5521,8 @@ const Cn = (u) => {
|
|
|
5521
5521
|
"children",
|
|
5522
5522
|
"className"
|
|
5523
5523
|
]);
|
|
5524
|
-
var
|
|
5525
|
-
const d = "pds-input-group", a = [t[0], t[1]], c = (
|
|
5524
|
+
var b, E, L, v;
|
|
5525
|
+
const d = "pds-input-group", a = [t[0], t[1]], c = (b = t[0].props.id) != null ? b : null, o = (E = t[0].props.message) != null ? E : null, m = (L = t[0].props.validationMessage) != null ? L : null, f = (v = t[0].props.validationStatus) != null ? v : null, p = m || o, u = p ? `${d}--has-message` : null;
|
|
5526
5526
|
return /* @__PURE__ */ e.createElement(
|
|
5527
5527
|
"div",
|
|
5528
5528
|
M({
|
|
@@ -5541,7 +5541,7 @@ const Cn = (u) => {
|
|
|
5541
5541
|
)
|
|
5542
5542
|
);
|
|
5543
5543
|
}, Vn = (i) => {
|
|
5544
|
-
var
|
|
5544
|
+
var g = i, {
|
|
5545
5545
|
defaultValue: t,
|
|
5546
5546
|
disabled: n = !1,
|
|
5547
5547
|
fieldsetProps: s,
|
|
@@ -5555,12 +5555,12 @@ const Cn = (u) => {
|
|
|
5555
5555
|
options: f,
|
|
5556
5556
|
required: p = !1,
|
|
5557
5557
|
showLabel: u = !0,
|
|
5558
|
-
tooltipText:
|
|
5558
|
+
tooltipText: b = null,
|
|
5559
5559
|
validationMessage: E,
|
|
5560
5560
|
validationStatus: L,
|
|
5561
|
-
value:
|
|
5561
|
+
value: v,
|
|
5562
5562
|
className: C
|
|
5563
|
-
} =
|
|
5563
|
+
} = g, h = A(g, [
|
|
5564
5564
|
"defaultValue",
|
|
5565
5565
|
"disabled",
|
|
5566
5566
|
"fieldsetProps",
|
|
@@ -5580,7 +5580,7 @@ const Cn = (u) => {
|
|
|
5580
5580
|
"value",
|
|
5581
5581
|
"className"
|
|
5582
5582
|
]);
|
|
5583
|
-
const _ = "pds-radio-group", $ = n ? ee.disabled : null, k = p && !n ? ee.required : null, z = L === "error" ? ee.error : null, w = L === "success" ? ee.success : null, y = typeof
|
|
5583
|
+
const _ = "pds-radio-group", $ = n ? ee.disabled : null, k = p && !n ? ee.required : null, z = L === "error" ? ee.error : null, w = L === "success" ? ee.success : null, y = typeof v != "undefined", H = typeof t != "undefined", [N, V] = U(
|
|
5584
5584
|
H ? t : ""
|
|
5585
5585
|
), I = E || a, D = (T) => {
|
|
5586
5586
|
y || V(T.target.value), o && o(T), m && m(T.target.value);
|
|
@@ -5599,7 +5599,7 @@ const Cn = (u) => {
|
|
|
5599
5599
|
C != null ? C : ""
|
|
5600
5600
|
]),
|
|
5601
5601
|
style: Je(r)
|
|
5602
|
-
},
|
|
5602
|
+
}, h),
|
|
5603
5603
|
/* @__PURE__ */ e.createElement("fieldset", M({ className: `${_}__fieldset`, id: l }, s), /* @__PURE__ */ e.createElement(
|
|
5604
5604
|
Pe,
|
|
5605
5605
|
{
|
|
@@ -5609,7 +5609,7 @@ const Cn = (u) => {
|
|
|
5609
5609
|
isLegend: !0,
|
|
5610
5610
|
required: p,
|
|
5611
5611
|
showLabel: u,
|
|
5612
|
-
tooltipText:
|
|
5612
|
+
tooltipText: b
|
|
5613
5613
|
}
|
|
5614
5614
|
), /* @__PURE__ */ e.createElement("div", { className: `${_}__options` }, f.map((T, W) => /* @__PURE__ */ e.createElement(
|
|
5615
5615
|
"div",
|
|
@@ -5628,7 +5628,7 @@ const Cn = (u) => {
|
|
|
5628
5628
|
disabled: n || T.disabled,
|
|
5629
5629
|
onBlur: S,
|
|
5630
5630
|
onChange: D,
|
|
5631
|
-
checked: y ?
|
|
5631
|
+
checked: y ? v === T.value : N === T.value
|
|
5632
5632
|
}
|
|
5633
5633
|
),
|
|
5634
5634
|
/* @__PURE__ */ e.createElement("label", { htmlFor: T.id ? T.id : `${l}-option-${W}` }, T.label)
|
|
@@ -5669,8 +5669,8 @@ const Cn = (u) => {
|
|
|
5669
5669
|
},
|
|
5670
5670
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "sm" })
|
|
5671
5671
|
)), Sn = Ze(
|
|
5672
|
-
(
|
|
5673
|
-
var i =
|
|
5672
|
+
(h, C) => {
|
|
5673
|
+
var i = h, {
|
|
5674
5674
|
checked: t,
|
|
5675
5675
|
defaultChecked: n,
|
|
5676
5676
|
disabled: s = !1,
|
|
@@ -5684,10 +5684,10 @@ const Cn = (u) => {
|
|
|
5684
5684
|
onChange: f,
|
|
5685
5685
|
onLabel: p = "On",
|
|
5686
5686
|
required: u = !1,
|
|
5687
|
-
showLabel:
|
|
5687
|
+
showLabel: b = !0,
|
|
5688
5688
|
showStatusLabel: E = !0,
|
|
5689
5689
|
className: L
|
|
5690
|
-
} = i,
|
|
5690
|
+
} = i, v = A(i, [
|
|
5691
5691
|
"checked",
|
|
5692
5692
|
"defaultChecked",
|
|
5693
5693
|
"disabled",
|
|
@@ -5705,7 +5705,7 @@ const Cn = (u) => {
|
|
|
5705
5705
|
"showStatusLabel",
|
|
5706
5706
|
"className"
|
|
5707
5707
|
]);
|
|
5708
|
-
const
|
|
5708
|
+
const g = Je(d), _ = "pds-switch", $ = s ? ee.disabled : null, k = u && !s ? ee.required : null, z = typeof t != "undefined", w = c == "below", y = c == "right", H = !z && n ? n : !1, [N, V] = U(H), I = t || N ? p : m, D = (ne) => {
|
|
5709
5709
|
z || V(ne.target.checked), f && f(ne);
|
|
5710
5710
|
}, S = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
5711
5711
|
"input",
|
|
@@ -5727,7 +5727,7 @@ const Cn = (u) => {
|
|
|
5727
5727
|
{
|
|
5728
5728
|
id: l,
|
|
5729
5729
|
label: a,
|
|
5730
|
-
showLabel:
|
|
5730
|
+
showLabel: b,
|
|
5731
5731
|
required: u,
|
|
5732
5732
|
disabled: s,
|
|
5733
5733
|
className: x([
|
|
@@ -5767,8 +5767,8 @@ const Cn = (u) => {
|
|
|
5767
5767
|
K,
|
|
5768
5768
|
L
|
|
5769
5769
|
]),
|
|
5770
|
-
style: d ?
|
|
5771
|
-
},
|
|
5770
|
+
style: d ? g : null
|
|
5771
|
+
}, v),
|
|
5772
5772
|
Z
|
|
5773
5773
|
);
|
|
5774
5774
|
}
|
|
@@ -5788,12 +5788,12 @@ const Cn = (u) => {
|
|
|
5788
5788
|
onFocus: f,
|
|
5789
5789
|
placeholder: p,
|
|
5790
5790
|
readonly: u = !1,
|
|
5791
|
-
required:
|
|
5791
|
+
required: b = !1,
|
|
5792
5792
|
rows: E = 5,
|
|
5793
5793
|
showLabel: L,
|
|
5794
|
-
textareaProps:
|
|
5794
|
+
textareaProps: v,
|
|
5795
5795
|
tooltipText: C = null,
|
|
5796
|
-
translationStrings:
|
|
5796
|
+
translationStrings: h = {
|
|
5797
5797
|
clearButton: "Clear input text",
|
|
5798
5798
|
counterOverLimit: "Character limit exceeded by",
|
|
5799
5799
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -5802,7 +5802,7 @@ const Cn = (u) => {
|
|
|
5802
5802
|
visibilityToggleShow: "Show input value"
|
|
5803
5803
|
},
|
|
5804
5804
|
validationMessage: i,
|
|
5805
|
-
validationStatus:
|
|
5805
|
+
validationStatus: g,
|
|
5806
5806
|
value: _,
|
|
5807
5807
|
className: $
|
|
5808
5808
|
} = y, k = A(y, [
|
|
@@ -5830,7 +5830,7 @@ const Cn = (u) => {
|
|
|
5830
5830
|
"value",
|
|
5831
5831
|
"className"
|
|
5832
5832
|
]);
|
|
5833
|
-
const H = Je(r), N = "pds-textarea", V = d ? "pds-is-resizable" : null, I = s ? ee.disabled : null, D =
|
|
5833
|
+
const H = Je(r), N = "pds-textarea", V = d ? "pds-is-resizable" : null, I = s ? ee.disabled : null, D = b && !s ? ee.required : null, S = g === "error" ? ee.error : null, T = g === "success" ? ee.success : null, W = u ? ee.readonly : null, Z = i || c, K = _ != null && m !== void 0, ne = typeof n != "undefined", [Y, j] = U(
|
|
5834
5834
|
ne ? n : ""
|
|
5835
5835
|
), q = _ || Y, O = (X) => {
|
|
5836
5836
|
K || j(X.target.value), m && m(X);
|
|
@@ -5859,7 +5859,7 @@ const Cn = (u) => {
|
|
|
5859
5859
|
label: a,
|
|
5860
5860
|
showLabel: L,
|
|
5861
5861
|
tooltipText: C,
|
|
5862
|
-
required:
|
|
5862
|
+
required: b,
|
|
5863
5863
|
disabled: s,
|
|
5864
5864
|
className: `${N}__inputlabel`
|
|
5865
5865
|
}
|
|
@@ -5869,7 +5869,7 @@ const Cn = (u) => {
|
|
|
5869
5869
|
id: l,
|
|
5870
5870
|
currentLength: q.length,
|
|
5871
5871
|
maxLength: t,
|
|
5872
|
-
overLimitMessage:
|
|
5872
|
+
overLimitMessage: h.counterOverLimit
|
|
5873
5873
|
}
|
|
5874
5874
|
)),
|
|
5875
5875
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -5880,7 +5880,7 @@ const Cn = (u) => {
|
|
|
5880
5880
|
id: l,
|
|
5881
5881
|
name: l,
|
|
5882
5882
|
placeholder: p,
|
|
5883
|
-
required:
|
|
5883
|
+
required: b,
|
|
5884
5884
|
readOnly: u,
|
|
5885
5885
|
disabled: s,
|
|
5886
5886
|
value: K ? _ : Y,
|
|
@@ -5888,9 +5888,9 @@ const Cn = (u) => {
|
|
|
5888
5888
|
onChange: O,
|
|
5889
5889
|
onBlur: Q,
|
|
5890
5890
|
onFocus: f,
|
|
5891
|
-
"aria-invalid":
|
|
5891
|
+
"aria-invalid": g === "error",
|
|
5892
5892
|
"aria-describedby": Z ? `${l}__message` : null
|
|
5893
|
-
},
|
|
5893
|
+
}, v)
|
|
5894
5894
|
)),
|
|
5895
5895
|
Z && /* @__PURE__ */ e.createElement(
|
|
5896
5896
|
De,
|
|
@@ -5899,7 +5899,7 @@ const Cn = (u) => {
|
|
|
5899
5899
|
message: Z,
|
|
5900
5900
|
hasValidationMessage: !!i,
|
|
5901
5901
|
validationMessageHasDecorators: !0,
|
|
5902
|
-
validationStatus:
|
|
5902
|
+
validationStatus: g
|
|
5903
5903
|
}
|
|
5904
5904
|
)
|
|
5905
5905
|
);
|
|
@@ -5920,14 +5920,14 @@ const Cn = (u) => {
|
|
|
5920
5920
|
message: f,
|
|
5921
5921
|
onBlur: p,
|
|
5922
5922
|
onChange: u,
|
|
5923
|
-
onClear:
|
|
5923
|
+
onClear: b,
|
|
5924
5924
|
onFocus: E,
|
|
5925
5925
|
placeholder: L,
|
|
5926
|
-
readonly:
|
|
5926
|
+
readonly: v = !1,
|
|
5927
5927
|
required: C = !1,
|
|
5928
|
-
searchIcon:
|
|
5928
|
+
searchIcon: h = "search",
|
|
5929
5929
|
showLabel: i = !0,
|
|
5930
|
-
showVisibilityToggle:
|
|
5930
|
+
showVisibilityToggle: g = !1,
|
|
5931
5931
|
tooltipText: _ = null,
|
|
5932
5932
|
translationStrings: $ = {
|
|
5933
5933
|
clearButton: "Clear input text",
|
|
@@ -5972,17 +5972,17 @@ const Cn = (u) => {
|
|
|
5972
5972
|
"value",
|
|
5973
5973
|
"className"
|
|
5974
5974
|
]);
|
|
5975
|
-
const S = Je(o), T = "pds-text-input", W = l ? ee.disabled : null, Z = C && !l ? ee.required : null, K = w === "error" ? ee.error : null, ne = w === "success" ? ee.success : null, Y =
|
|
5975
|
+
const S = Je(o), T = "pds-text-input", W = l ? ee.disabled : null, Z = C && !l ? ee.required : null, K = w === "error" ? ee.error : null, ne = w === "success" ? ee.success : null, Y = v ? ee.readonly : null;
|
|
5976
5976
|
let j = null;
|
|
5977
|
-
k === "search" && (j = "search"), k === "search" &&
|
|
5977
|
+
k === "search" && (j = "search"), k === "search" && h === "filter" && (j = "filter"), w === "error" && (j = "error"), w === "success" && (j = "success");
|
|
5978
5978
|
const q = z || f, O = typeof y != "undefined", Q = typeof s != "undefined", [X, F] = U(
|
|
5979
5979
|
Q ? s : ""
|
|
5980
5980
|
), B = y || X, J = (le) => {
|
|
5981
|
-
|
|
5981
|
+
g && ie && be(!1), p && p(le);
|
|
5982
5982
|
}, te = (le) => {
|
|
5983
5983
|
O || F(le.target.value), u && u(le);
|
|
5984
5984
|
}, fe = () => {
|
|
5985
|
-
O || F(""),
|
|
5985
|
+
O || F(""), b && b();
|
|
5986
5986
|
const le = document.getElementById(a);
|
|
5987
5987
|
le && le.focus();
|
|
5988
5988
|
}, [ie, be] = U(!1), $e = () => {
|
|
@@ -5991,7 +5991,7 @@ const Cn = (u) => {
|
|
|
5991
5991
|
le && le.focus();
|
|
5992
5992
|
};
|
|
5993
5993
|
let ce = k;
|
|
5994
|
-
return
|
|
5994
|
+
return g && k === "password" && (ie ? ce = "text" : ce = "password"), /* @__PURE__ */ e.createElement(
|
|
5995
5995
|
"div",
|
|
5996
5996
|
M({
|
|
5997
5997
|
className: x([
|
|
@@ -6017,7 +6017,7 @@ const Cn = (u) => {
|
|
|
6017
6017
|
tooltipText: _
|
|
6018
6018
|
}
|
|
6019
6019
|
),
|
|
6020
|
-
|
|
6020
|
+
g && k === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${$.visibilityStatus} ${ie ? "visible" : "hidden"}.`),
|
|
6021
6021
|
/* @__PURE__ */ e.createElement("div", { className: `${T}__input-wrapper` }, j && /* @__PURE__ */ e.createElement(dt, { variant: j }), /* @__PURE__ */ e.createElement(
|
|
6022
6022
|
"input",
|
|
6023
6023
|
M({
|
|
@@ -6028,7 +6028,7 @@ const Cn = (u) => {
|
|
|
6028
6028
|
type: ce,
|
|
6029
6029
|
value: O ? y : X,
|
|
6030
6030
|
placeholder: L,
|
|
6031
|
-
readOnly:
|
|
6031
|
+
readOnly: v,
|
|
6032
6032
|
disabled: l,
|
|
6033
6033
|
required: C,
|
|
6034
6034
|
autoComplete: k === "password" ? "off" : t,
|
|
@@ -6045,7 +6045,7 @@ const Cn = (u) => {
|
|
|
6045
6045
|
clearLabel: $.clearButton,
|
|
6046
6046
|
handleClearInput: fe
|
|
6047
6047
|
}
|
|
6048
|
-
),
|
|
6048
|
+
), g && k === "password" && /* @__PURE__ */ e.createElement(
|
|
6049
6049
|
"button",
|
|
6050
6050
|
{
|
|
6051
6051
|
type: "button",
|
|
@@ -6133,18 +6133,18 @@ const Cn = (u) => {
|
|
|
6133
6133
|
"title",
|
|
6134
6134
|
"className"
|
|
6135
6135
|
]);
|
|
6136
|
-
const u = "pds-modal",
|
|
6136
|
+
const u = "pds-modal", b = a !== "md" ? `${u}--${a}` : null, [E, L] = U(r);
|
|
6137
6137
|
oe(() => {
|
|
6138
6138
|
L(r);
|
|
6139
6139
|
}, [r]), oe(() => {
|
|
6140
6140
|
d(E);
|
|
6141
6141
|
}, [E]);
|
|
6142
|
-
const { refs:
|
|
6142
|
+
const { refs: v, context: C, floatingStyles: h } = Ve({
|
|
6143
6143
|
open: E,
|
|
6144
6144
|
onOpenChange: L
|
|
6145
|
-
}), i = Ye(C),
|
|
6145
|
+
}), i = Ye(C), g = Se(C, {
|
|
6146
6146
|
outsidePressEvent: "mousedown"
|
|
6147
|
-
}), _ = Te(C), { getFloatingProps: $ } = Ae([i,
|
|
6147
|
+
}), _ = Te(C), { getFloatingProps: $ } = Ae([i, g, _]), { isMounted: k, styles: z } = Qe(C, {
|
|
6148
6148
|
duration: {
|
|
6149
6149
|
open: 300,
|
|
6150
6150
|
close: 300
|
|
@@ -6166,7 +6166,7 @@ const Cn = (u) => {
|
|
|
6166
6166
|
q1,
|
|
6167
6167
|
{
|
|
6168
6168
|
lockScroll: !0,
|
|
6169
|
-
style: me(M({},
|
|
6169
|
+
style: me(M({}, h), {
|
|
6170
6170
|
background: "var(--pds-color-overlay)",
|
|
6171
6171
|
transition: "var(--pds-animation-reveal-transition)",
|
|
6172
6172
|
zIndex: "var(--pds-z-index-modal)",
|
|
@@ -6176,11 +6176,11 @@ const Cn = (u) => {
|
|
|
6176
6176
|
/* @__PURE__ */ e.createElement(C1, { context: C }, /* @__PURE__ */ e.createElement(
|
|
6177
6177
|
"div",
|
|
6178
6178
|
M(me(M({
|
|
6179
|
-
ref:
|
|
6179
|
+
ref: v.setFloating,
|
|
6180
6180
|
"aria-label": t || c
|
|
6181
6181
|
}, $()), {
|
|
6182
|
-
className: [u,
|
|
6183
|
-
style: me(M(M({},
|
|
6182
|
+
className: [u, b, o].join(" ").trim().replace(/\s+/g, " "),
|
|
6183
|
+
style: me(M(M({}, h), z), {
|
|
6184
6184
|
position: "relative",
|
|
6185
6185
|
top: "5%"
|
|
6186
6186
|
})
|
|
@@ -6265,56 +6265,70 @@ const Cn = (u) => {
|
|
|
6265
6265
|
} else
|
|
6266
6266
|
s = t;
|
|
6267
6267
|
return s;
|
|
6268
|
-
}, Rn = (
|
|
6269
|
-
var
|
|
6268
|
+
}, Rn = (d) => {
|
|
6269
|
+
var a = d, {
|
|
6270
6270
|
ariaLabel: t,
|
|
6271
6271
|
menuItems: n,
|
|
6272
|
-
|
|
6273
|
-
|
|
6272
|
+
size: s = "md",
|
|
6273
|
+
className: l
|
|
6274
|
+
} = a, r = A(a, [
|
|
6274
6275
|
"ariaLabel",
|
|
6275
6276
|
"menuItems",
|
|
6277
|
+
"size",
|
|
6276
6278
|
"className"
|
|
6277
6279
|
]);
|
|
6278
|
-
let
|
|
6279
|
-
const
|
|
6280
|
-
|
|
6281
|
-
const
|
|
6282
|
-
const
|
|
6280
|
+
let c = !1;
|
|
6281
|
+
const o = ve(ye);
|
|
6282
|
+
o && (c = o.isMobile);
|
|
6283
|
+
const m = "pds-button-nav", f = c ? `${m}--isMobile` : null, p = s !== "md" ? `${m}--${s}` : null, u = ({ isActive: v, linkContent: C }) => {
|
|
6284
|
+
const h = `${m}__item`;
|
|
6283
6285
|
return /* @__PURE__ */ e.createElement(
|
|
6284
6286
|
"li",
|
|
6285
6287
|
{
|
|
6286
6288
|
className: x([
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
+
h,
|
|
6290
|
+
v ? `${h}--active` : null
|
|
6289
6291
|
])
|
|
6290
6292
|
},
|
|
6291
|
-
|
|
6293
|
+
C
|
|
6292
6294
|
);
|
|
6293
|
-
},
|
|
6294
|
-
|
|
6295
|
+
}, b = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu` }, n.map((v, C) => /* @__PURE__ */ e.createElement(
|
|
6296
|
+
u,
|
|
6295
6297
|
{
|
|
6296
|
-
key:
|
|
6297
|
-
linkContent:
|
|
6298
|
-
isActive: Ee(
|
|
6298
|
+
key: C,
|
|
6299
|
+
linkContent: v.linkContent,
|
|
6300
|
+
isActive: Ee(v)
|
|
6299
6301
|
}
|
|
6300
|
-
))) : null,
|
|
6301
|
-
n.map((
|
|
6302
|
-
|
|
6303
|
-
linkContent:
|
|
6302
|
+
))) : null, E = [];
|
|
6303
|
+
n.map((v) => {
|
|
6304
|
+
v.linkContent && (Ee(v) ? E.unshift({
|
|
6305
|
+
linkContent: v.linkContent,
|
|
6304
6306
|
isLink: !0
|
|
6305
|
-
}) :
|
|
6306
|
-
linkContent:
|
|
6307
|
+
}) : E.push({
|
|
6308
|
+
linkContent: v.linkContent,
|
|
6307
6309
|
isLink: !0
|
|
6308
6310
|
}));
|
|
6309
6311
|
});
|
|
6310
|
-
const
|
|
6312
|
+
const L = E.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
6313
|
+
u2,
|
|
6314
|
+
{
|
|
6315
|
+
actionItems: E,
|
|
6316
|
+
variant: "secondary",
|
|
6317
|
+
size: s
|
|
6318
|
+
}
|
|
6319
|
+
) : null;
|
|
6311
6320
|
return /* @__PURE__ */ e.createElement(
|
|
6312
6321
|
"nav",
|
|
6313
6322
|
M({
|
|
6314
6323
|
"aria-label": t,
|
|
6315
|
-
className: x([
|
|
6316
|
-
|
|
6317
|
-
|
|
6324
|
+
className: x([
|
|
6325
|
+
m,
|
|
6326
|
+
p,
|
|
6327
|
+
f,
|
|
6328
|
+
l != null ? l : ""
|
|
6329
|
+
])
|
|
6330
|
+
}, r),
|
|
6331
|
+
c ? L : b
|
|
6318
6332
|
);
|
|
6319
6333
|
}, Kt = (t, n, s, l) => {
|
|
6320
6334
|
let r = null;
|
|
@@ -6354,7 +6368,7 @@ const Cn = (u) => {
|
|
|
6354
6368
|
n
|
|
6355
6369
|
);
|
|
6356
6370
|
}, It = g1(null), Fn = (u) => {
|
|
6357
|
-
var
|
|
6371
|
+
var b = u, {
|
|
6358
6372
|
children: t,
|
|
6359
6373
|
hasSidebarToggle: n = !0,
|
|
6360
6374
|
isAdmin: s,
|
|
@@ -6367,7 +6381,7 @@ const Cn = (u) => {
|
|
|
6367
6381
|
setIsSidebarExpanded: m = () => {
|
|
6368
6382
|
},
|
|
6369
6383
|
className: f
|
|
6370
|
-
} =
|
|
6384
|
+
} = b, p = A(b, [
|
|
6371
6385
|
"children",
|
|
6372
6386
|
"hasSidebarToggle",
|
|
6373
6387
|
"isAdmin",
|
|
@@ -6380,31 +6394,31 @@ const Cn = (u) => {
|
|
|
6380
6394
|
"setIsSidebarExpanded",
|
|
6381
6395
|
"className"
|
|
6382
6396
|
]);
|
|
6383
|
-
const { isMobile: E, windowWidth: L } = ve(ye), [
|
|
6397
|
+
const { isMobile: E, windowWidth: L } = ve(ye), [v, C] = U(L > 1440 || o), h = de(), [i] = Nt(h), g = i.width;
|
|
6384
6398
|
oe(() => {
|
|
6385
6399
|
o !== void 0 && C(o);
|
|
6386
6400
|
}, [o]), oe(() => {
|
|
6387
|
-
m(
|
|
6388
|
-
}, [
|
|
6401
|
+
m(v);
|
|
6402
|
+
}, [v, m]);
|
|
6389
6403
|
const _ = {
|
|
6390
|
-
isSidebarExpanded: E ? !0 :
|
|
6404
|
+
isSidebarExpanded: E ? !0 : v,
|
|
6391
6405
|
logoLinkContent: l,
|
|
6392
|
-
navbarWidth:
|
|
6406
|
+
navbarWidth: g,
|
|
6393
6407
|
isAdmin: s
|
|
6394
|
-
}, $ = "pds-dashboard-global", k = s ? `${$}--isAdmin` : null, z = E ? `${$}--isMobile` : `${$}--notMobile`, w = E ? null :
|
|
6408
|
+
}, $ = "pds-dashboard-global", k = s ? `${$}--isAdmin` : null, z = E ? `${$}--isMobile` : `${$}--notMobile`, w = E ? null : v ? `${$}--sidebarExpanded` : `${$}--sidebarCollapsed`, y = v ? `${d}rem` : `${r}rem`, H = {
|
|
6395
6409
|
width: y,
|
|
6396
6410
|
transition: "width 200ms ease-in-out"
|
|
6397
6411
|
}, N = E ? {} : {
|
|
6398
6412
|
width: `calc(100% - ${y})`,
|
|
6399
6413
|
transition: "width 200ms ease-in-out"
|
|
6400
6414
|
}, V = () => {
|
|
6401
|
-
C(!
|
|
6415
|
+
C(!v);
|
|
6402
6416
|
}, I = Fe(t), D = I.header, S = I.sidebar, T = I.main, W = I.footer, Z = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar` }, S), K = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar`, style: H }, n && /* @__PURE__ */ e.createElement(
|
|
6403
6417
|
"button",
|
|
6404
6418
|
{
|
|
6405
6419
|
className: `${$}__sidebar-toggle-button`,
|
|
6406
6420
|
onClick: V,
|
|
6407
|
-
"aria-expanded":
|
|
6421
|
+
"aria-expanded": v,
|
|
6408
6422
|
"aria-label": a
|
|
6409
6423
|
},
|
|
6410
6424
|
/* @__PURE__ */ e.createElement("span", { className: `${$}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: "angleLeft", iconSize: "sm" }))
|
|
@@ -6426,7 +6440,7 @@ const Cn = (u) => {
|
|
|
6426
6440
|
/* @__PURE__ */ e.createElement(
|
|
6427
6441
|
"div",
|
|
6428
6442
|
{
|
|
6429
|
-
ref:
|
|
6443
|
+
ref: h,
|
|
6430
6444
|
className: `${$}__container`,
|
|
6431
6445
|
style: N
|
|
6432
6446
|
},
|
|
@@ -6463,19 +6477,19 @@ const Cn = (u) => {
|
|
|
6463
6477
|
},
|
|
6464
6478
|
H.linkContent
|
|
6465
6479
|
))
|
|
6466
|
-
), [p, u] = U(!1), { refs:
|
|
6480
|
+
), [p, u] = U(!1), { refs: b, floatingStyles: E, context: L } = Ve({
|
|
6467
6481
|
placement: "right-start",
|
|
6468
6482
|
open: p,
|
|
6469
6483
|
onOpenChange: u,
|
|
6470
6484
|
middleware: [kt(12), Ht(), zt()],
|
|
6471
6485
|
whileElementsMounted: Re
|
|
6472
|
-
}),
|
|
6486
|
+
}), v = Ct(L, {
|
|
6473
6487
|
move: !1,
|
|
6474
6488
|
handleClose: $1()
|
|
6475
|
-
}), C = v1(L),
|
|
6476
|
-
|
|
6489
|
+
}), C = v1(L), h = Se(L), i = Te(L, { role: "menu" }), { getReferenceProps: g, getFloatingProps: _ } = Ae([
|
|
6490
|
+
v,
|
|
6477
6491
|
C,
|
|
6478
|
-
|
|
6492
|
+
h,
|
|
6479
6493
|
i
|
|
6480
6494
|
]), $ = (w) => {
|
|
6481
6495
|
var V;
|
|
@@ -6543,8 +6557,8 @@ const Cn = (u) => {
|
|
|
6543
6557
|
s ? null : `${c}--collapsed`,
|
|
6544
6558
|
n ? `${c}--active` : null
|
|
6545
6559
|
]),
|
|
6546
|
-
ref: s ? null :
|
|
6547
|
-
},
|
|
6560
|
+
ref: s ? null : b.setReference
|
|
6561
|
+
}, g()),
|
|
6548
6562
|
d ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Kt(
|
|
6549
6563
|
a,
|
|
6550
6564
|
r,
|
|
@@ -6567,7 +6581,7 @@ const Cn = (u) => {
|
|
|
6567
6581
|
"div",
|
|
6568
6582
|
M({
|
|
6569
6583
|
className: `${a}__flyout`,
|
|
6570
|
-
ref:
|
|
6584
|
+
ref: b.setFloating,
|
|
6571
6585
|
style: E
|
|
6572
6586
|
}, _()),
|
|
6573
6587
|
/* @__PURE__ */ e.createElement("div", { className: `${a}__flyout-heading` }, Ue(r)),
|
|
@@ -6597,7 +6611,7 @@ const Cn = (u) => {
|
|
|
6597
6611
|
"selectTextFallback",
|
|
6598
6612
|
"className"
|
|
6599
6613
|
]);
|
|
6600
|
-
const c = "pds-dropdown-menu", [o, m] = U(!1), [f, p] = U(null), u = t1(n),
|
|
6614
|
+
const c = "pds-dropdown-menu", [o, m] = U(!1), [f, p] = U(null), u = t1(n), b = u ? u.props.children : s, E = /* @__PURE__ */ e.createElement(
|
|
6601
6615
|
P,
|
|
6602
6616
|
{
|
|
6603
6617
|
iconName: "check",
|
|
@@ -6607,14 +6621,14 @@ const Cn = (u) => {
|
|
|
6607
6621
|
), L = (D) => {
|
|
6608
6622
|
var S;
|
|
6609
6623
|
D.key === "Enter" && ((S = _.current[f].querySelector("a")) == null || S.click());
|
|
6610
|
-
},
|
|
6624
|
+
}, v = (D) => {
|
|
6611
6625
|
D.target.nodeName === "A" && m(!1);
|
|
6612
6626
|
};
|
|
6613
6627
|
oe(() => {
|
|
6614
6628
|
if (o) {
|
|
6615
6629
|
const D = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
6616
|
-
return D.addEventListener("click",
|
|
6617
|
-
D.removeEventListener("click",
|
|
6630
|
+
return D.addEventListener("click", v), () => {
|
|
6631
|
+
D.removeEventListener("click", v);
|
|
6618
6632
|
};
|
|
6619
6633
|
}
|
|
6620
6634
|
}, [o]);
|
|
@@ -6629,7 +6643,7 @@ const Cn = (u) => {
|
|
|
6629
6643
|
tabIndex: -1
|
|
6630
6644
|
}
|
|
6631
6645
|
)
|
|
6632
|
-
}),
|
|
6646
|
+
}), h = (D) => {
|
|
6633
6647
|
const S = [];
|
|
6634
6648
|
return D.forEach((T) => {
|
|
6635
6649
|
T.links ? (S.push(C({ item: T, level: "top-level" })), T.links.forEach((W) => {
|
|
@@ -6646,21 +6660,21 @@ const Cn = (u) => {
|
|
|
6646
6660
|
})) : S.push(C({ item: W, level: "second-level" }));
|
|
6647
6661
|
})) : S.push(C({ item: T, level: "top-level" }));
|
|
6648
6662
|
}), S;
|
|
6649
|
-
}, { refs: i, context:
|
|
6663
|
+
}, { refs: i, context: g } = Ve({
|
|
6650
6664
|
placement: "bottom-start",
|
|
6651
6665
|
open: o,
|
|
6652
6666
|
onOpenChange: m,
|
|
6653
6667
|
whileElementsMounted: Re
|
|
6654
|
-
}), _ = de([]), $ = it(
|
|
6668
|
+
}), _ = de([]), $ = it(g, {
|
|
6655
6669
|
listRef: _,
|
|
6656
6670
|
activeIndex: f,
|
|
6657
6671
|
onNavigate: p,
|
|
6658
6672
|
loop: !0,
|
|
6659
6673
|
openOnArrowKeyDown: !0,
|
|
6660
6674
|
focusItemOnHover: !0
|
|
6661
|
-
}), k = Ye(
|
|
6675
|
+
}), k = Ye(g, { event: "mousedown" }), z = Se(g), w = Te(g, { role: "menu" }), { getReferenceProps: y, getFloatingProps: H, getItemProps: N } = Ae(
|
|
6662
6676
|
[z, w, k, $]
|
|
6663
|
-
), { isMounted: V, styles: I } = Qe(
|
|
6677
|
+
), { isMounted: V, styles: I } = Qe(g, {
|
|
6664
6678
|
duration: {
|
|
6665
6679
|
open: 300,
|
|
6666
6680
|
close: 300
|
|
@@ -6682,7 +6696,7 @@ const Cn = (u) => {
|
|
|
6682
6696
|
ref: i.setReference,
|
|
6683
6697
|
type: "button"
|
|
6684
6698
|
}, y()),
|
|
6685
|
-
/* @__PURE__ */ e.createElement("span", { className: `${c}__active-label` },
|
|
6699
|
+
/* @__PURE__ */ e.createElement("span", { className: `${c}__active-label` }, b),
|
|
6686
6700
|
/* @__PURE__ */ e.createElement(
|
|
6687
6701
|
P,
|
|
6688
6702
|
{
|
|
@@ -6700,7 +6714,7 @@ const Cn = (u) => {
|
|
|
6700
6714
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6701
6715
|
})
|
|
6702
6716
|
}, H()),
|
|
6703
|
-
|
|
6717
|
+
h(n).map((D, S) => /* @__PURE__ */ e.createElement(
|
|
6704
6718
|
"li",
|
|
6705
6719
|
M({
|
|
6706
6720
|
key: S,
|
|
@@ -7035,7 +7049,7 @@ const Cn = (u) => {
|
|
|
7035
7049
|
case "sub-brand-small":
|
|
7036
7050
|
p = Pt;
|
|
7037
7051
|
}
|
|
7038
|
-
const u = e.isValidElement(s) && typeof s.props.children == "string" ? s.props.children : "",
|
|
7052
|
+
const u = e.isValidElement(s) && typeof s.props.children == "string" ? s.props.children : "", b = e.isValidElement(s) ? Ie(s, {
|
|
7039
7053
|
children: p,
|
|
7040
7054
|
"aria-label": u || null
|
|
7041
7055
|
}) : s;
|
|
@@ -7049,7 +7063,7 @@ const Cn = (u) => {
|
|
|
7049
7063
|
r != null ? r : ""
|
|
7050
7064
|
])
|
|
7051
7065
|
}, d),
|
|
7052
|
-
s ?
|
|
7066
|
+
s ? b : p,
|
|
7053
7067
|
l && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, l))
|
|
7054
7068
|
);
|
|
7055
7069
|
}, Pn = (a) => {
|
|
@@ -7075,28 +7089,28 @@ const Cn = (u) => {
|
|
|
7075
7089
|
const f = ve(It);
|
|
7076
7090
|
let p = !0, u = null;
|
|
7077
7091
|
f && (p = f.isSidebarExpanded, u = f.logoLinkContent);
|
|
7078
|
-
const
|
|
7092
|
+
const b = "pds-dashboard-nav", E = p ? `${b}--expanded` : `${b}--collapsed`, L = /* @__PURE__ */ e.createElement(e.Fragment, null, s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${b}__menu ${b}__menu--top-level` }, s.map((h, i) => /* @__PURE__ */ e.createElement(
|
|
7079
7093
|
V2,
|
|
7080
7094
|
{
|
|
7081
7095
|
key: i,
|
|
7082
|
-
icon:
|
|
7083
|
-
isActive: Ee(
|
|
7096
|
+
icon: h.icon,
|
|
7097
|
+
isActive: Ee(h),
|
|
7084
7098
|
isSidebarExpanded: p,
|
|
7085
7099
|
labels: n,
|
|
7086
|
-
linkContent:
|
|
7087
|
-
links:
|
|
7100
|
+
linkContent: h.linkContent,
|
|
7101
|
+
links: h.links
|
|
7088
7102
|
}
|
|
7089
|
-
)))),
|
|
7103
|
+
)))), v = s.map((h) => me(M({}, h), {
|
|
7090
7104
|
linkContent: Kt(
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7105
|
+
b,
|
|
7106
|
+
h.linkContent,
|
|
7107
|
+
h.links,
|
|
7108
|
+
h.icon
|
|
7095
7109
|
)
|
|
7096
7110
|
})), C = /* @__PURE__ */ e.createElement(
|
|
7097
7111
|
n1,
|
|
7098
7112
|
{
|
|
7099
|
-
menuItems:
|
|
7113
|
+
menuItems: v,
|
|
7100
7114
|
selectTextFallback: l
|
|
7101
7115
|
}
|
|
7102
7116
|
);
|
|
@@ -7104,12 +7118,12 @@ const Cn = (u) => {
|
|
|
7104
7118
|
"nav",
|
|
7105
7119
|
M({
|
|
7106
7120
|
"aria-label": t,
|
|
7107
|
-
className: x([
|
|
7121
|
+
className: x([b, E, r])
|
|
7108
7122
|
}, d),
|
|
7109
7123
|
!o && /* @__PURE__ */ e.createElement(
|
|
7110
7124
|
V1,
|
|
7111
7125
|
{
|
|
7112
|
-
className: `${
|
|
7126
|
+
className: `${b}__logo`,
|
|
7113
7127
|
displayType: p ? "full" : "icon",
|
|
7114
7128
|
linkContent: u
|
|
7115
7129
|
}
|
|
@@ -7204,7 +7218,7 @@ const Cn = (u) => {
|
|
|
7204
7218
|
siteList: f,
|
|
7205
7219
|
horizontalOffset: p = 0,
|
|
7206
7220
|
className: u
|
|
7207
|
-
} = L,
|
|
7221
|
+
} = L, b = A(L, [
|
|
7208
7222
|
"disabled",
|
|
7209
7223
|
"id",
|
|
7210
7224
|
"isLoading",
|
|
@@ -7219,7 +7233,7 @@ const Cn = (u) => {
|
|
|
7219
7233
|
"horizontalOffset",
|
|
7220
7234
|
"className"
|
|
7221
7235
|
]);
|
|
7222
|
-
const [
|
|
7236
|
+
const [v, C] = U(!1), [h, i] = U(null), g = de(null);
|
|
7223
7237
|
let _ = !1;
|
|
7224
7238
|
const $ = ve(ye);
|
|
7225
7239
|
$ && (_ = $.isMobile);
|
|
@@ -7228,13 +7242,13 @@ const Cn = (u) => {
|
|
|
7228
7242
|
w && (k = w.navbarWidth, z = w.isAdmin);
|
|
7229
7243
|
const y = 2.25, H = 22, N = z ? 14.5 : 9.625, V = k > 900 ? H : k / 16 - (N + p) - y * 0.675;
|
|
7230
7244
|
let I = y;
|
|
7231
|
-
|
|
7245
|
+
v && !k && (I = H), v && k && (I = V);
|
|
7232
7246
|
const D = {
|
|
7233
7247
|
right: `${N + p}rem`,
|
|
7234
7248
|
width: `${I}rem`
|
|
7235
7249
|
}, S = "pds-dashboard-search", T = _ ? `${S}--isMobile` : null, W = () => {
|
|
7236
7250
|
C(!0), setTimeout(() => {
|
|
7237
|
-
|
|
7251
|
+
g.current.querySelector("input").focus();
|
|
7238
7252
|
}, 500);
|
|
7239
7253
|
}, Z = () => {
|
|
7240
7254
|
setTimeout(() => {
|
|
@@ -7245,17 +7259,17 @@ const Cn = (u) => {
|
|
|
7245
7259
|
};
|
|
7246
7260
|
oe(() => {
|
|
7247
7261
|
const O = (X) => {
|
|
7248
|
-
|
|
7262
|
+
g.current && !g.current.contains(X.target) && C(!1);
|
|
7249
7263
|
}, Q = (X) => {
|
|
7250
7264
|
var B;
|
|
7251
|
-
const F = (B =
|
|
7252
|
-
X.key === "Tab" &&
|
|
7265
|
+
const F = (B = g.current) == null ? void 0 : B.querySelector("input");
|
|
7266
|
+
X.key === "Tab" && v && F === document.activeElement && C(!1);
|
|
7253
7267
|
};
|
|
7254
|
-
if (
|
|
7268
|
+
if (v)
|
|
7255
7269
|
return document.addEventListener("mousedown", O), document.addEventListener("keydown", Q), () => {
|
|
7256
7270
|
document.removeEventListener("mousedown", O), document.removeEventListener("keydown", Q);
|
|
7257
7271
|
};
|
|
7258
|
-
}, [
|
|
7272
|
+
}, [v]);
|
|
7259
7273
|
const ne = f.map((O) => {
|
|
7260
7274
|
const { id: Q, machineName: X, name: F } = O;
|
|
7261
7275
|
return {
|
|
@@ -7264,13 +7278,13 @@ const Cn = (u) => {
|
|
|
7264
7278
|
value: X != null ? X : F,
|
|
7265
7279
|
optionDisplay: /* @__PURE__ */ e.createElement(D2, { option: O })
|
|
7266
7280
|
};
|
|
7267
|
-
}), Y = /* @__PURE__ */ e.createElement("div", { ref:
|
|
7281
|
+
}), Y = /* @__PURE__ */ e.createElement("div", { ref: g, className: `${S}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7268
7282
|
L2,
|
|
7269
7283
|
{
|
|
7270
7284
|
disabled: t,
|
|
7271
7285
|
hasClearButton: !1,
|
|
7272
7286
|
id: `${n}-combobox`,
|
|
7273
|
-
defaultValue:
|
|
7287
|
+
defaultValue: h,
|
|
7274
7288
|
isLoading: s,
|
|
7275
7289
|
label: l,
|
|
7276
7290
|
labelStrings: r,
|
|
@@ -7286,7 +7300,7 @@ const Cn = (u) => {
|
|
|
7286
7300
|
)), j = /* @__PURE__ */ e.createElement("div", { className: `${S}--inner` }, /* @__PURE__ */ e.createElement(
|
|
7287
7301
|
"span",
|
|
7288
7302
|
{
|
|
7289
|
-
style:
|
|
7303
|
+
style: v ? { visibility: "visible" } : { visibility: "hidden" }
|
|
7290
7304
|
},
|
|
7291
7305
|
Y
|
|
7292
7306
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -7296,7 +7310,7 @@ const Cn = (u) => {
|
|
|
7296
7310
|
"aria-label": r.openSearchButton,
|
|
7297
7311
|
onClick: W,
|
|
7298
7312
|
type: "button",
|
|
7299
|
-
style:
|
|
7313
|
+
style: v ? { visibility: "hidden" } : { visibility: "visible" }
|
|
7300
7314
|
},
|
|
7301
7315
|
/* @__PURE__ */ e.createElement(
|
|
7302
7316
|
xe,
|
|
@@ -7321,7 +7335,7 @@ const Cn = (u) => {
|
|
|
7321
7335
|
onKeyDown: _ ? null : (O) => {
|
|
7322
7336
|
O.key === "Escape" && Z();
|
|
7323
7337
|
}
|
|
7324
|
-
},
|
|
7338
|
+
}, b),
|
|
7325
7339
|
_ ? q : j
|
|
7326
7340
|
);
|
|
7327
7341
|
}, pt = (r) => {
|
|
@@ -7343,7 +7357,7 @@ const Cn = (u) => {
|
|
|
7343
7357
|
t
|
|
7344
7358
|
);
|
|
7345
7359
|
}, Gn = (u) => {
|
|
7346
|
-
var
|
|
7360
|
+
var b = u, {
|
|
7347
7361
|
children: t,
|
|
7348
7362
|
colorType: n = "default",
|
|
7349
7363
|
containerWidth: s = "x-wide",
|
|
@@ -7358,7 +7372,7 @@ const Cn = (u) => {
|
|
|
7358
7372
|
openMobileNav: "Open navigation area"
|
|
7359
7373
|
},
|
|
7360
7374
|
className: f
|
|
7361
|
-
} =
|
|
7375
|
+
} = b, p = A(b, [
|
|
7362
7376
|
"children",
|
|
7363
7377
|
"colorType",
|
|
7364
7378
|
"containerWidth",
|
|
@@ -7372,12 +7386,12 @@ const Cn = (u) => {
|
|
|
7372
7386
|
"className"
|
|
7373
7387
|
]);
|
|
7374
7388
|
const [E, L] = U(!1);
|
|
7375
|
-
let
|
|
7389
|
+
let v = !1;
|
|
7376
7390
|
const C = ve(ye);
|
|
7377
|
-
C && (
|
|
7378
|
-
const
|
|
7379
|
-
|
|
7380
|
-
const i = "pds-navbar",
|
|
7391
|
+
C && (v = C.isMobile);
|
|
7392
|
+
const h = ve(It);
|
|
7393
|
+
h && (a = h.logoLinkContent);
|
|
7394
|
+
const i = "pds-navbar", g = l ? `${i}--noBorder` : "", _ = n !== "default" ? `${i}--${n}` : "", $ = v ? `${i}--isMobile` : `${i}--notMobile`, k = (j) => {
|
|
7381
7395
|
const q = j.key;
|
|
7382
7396
|
let O = !1;
|
|
7383
7397
|
switch (q) {
|
|
@@ -7393,7 +7407,7 @@ const Cn = (u) => {
|
|
|
7393
7407
|
}), []);
|
|
7394
7408
|
const z = () => L(!E), w = G1();
|
|
7395
7409
|
oe(() => {
|
|
7396
|
-
if (
|
|
7410
|
+
if (v && t) {
|
|
7397
7411
|
const j = w1(
|
|
7398
7412
|
document.querySelector(".pds-navbar__mobile")
|
|
7399
7413
|
), q = ["a", "button", "input", "select", "textarea"];
|
|
@@ -7466,12 +7480,12 @@ const Cn = (u) => {
|
|
|
7466
7480
|
className: x([
|
|
7467
7481
|
i,
|
|
7468
7482
|
_,
|
|
7469
|
-
|
|
7483
|
+
g,
|
|
7470
7484
|
$,
|
|
7471
7485
|
f != null ? f : ""
|
|
7472
7486
|
])
|
|
7473
7487
|
}, p),
|
|
7474
|
-
|
|
7488
|
+
v ? ne : Y
|
|
7475
7489
|
);
|
|
7476
7490
|
}, O2 = ({
|
|
7477
7491
|
items: t,
|
|
@@ -7489,7 +7503,7 @@ const Cn = (u) => {
|
|
|
7489
7503
|
open: l,
|
|
7490
7504
|
onOpenChange: r,
|
|
7491
7505
|
whileElementsMounted: Re
|
|
7492
|
-
}), u = Ye(p, { event: "mousedown" }),
|
|
7506
|
+
}), u = Ye(p, { event: "mousedown" }), b = Se(p), E = Te(p, { role: "menu" });
|
|
7493
7507
|
let L;
|
|
7494
7508
|
o ? L = Ct(p, {
|
|
7495
7509
|
enabled: !1
|
|
@@ -7501,19 +7515,19 @@ const Cn = (u) => {
|
|
|
7501
7515
|
}),
|
|
7502
7516
|
enabled: !0
|
|
7503
7517
|
});
|
|
7504
|
-
const { getReferenceProps:
|
|
7505
|
-
|
|
7518
|
+
const { getReferenceProps: v, getFloatingProps: C } = Ae([
|
|
7519
|
+
b,
|
|
7506
7520
|
E,
|
|
7507
7521
|
u,
|
|
7508
7522
|
L
|
|
7509
|
-
]),
|
|
7523
|
+
]), h = (i) => !!(i.isActive || i.linkContent && i.linkContent.props.className && i.linkContent.props.className.includes("pds-isActive"));
|
|
7510
7524
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7511
7525
|
"button",
|
|
7512
7526
|
M({
|
|
7513
7527
|
className: `${m}__trigger`,
|
|
7514
7528
|
ref: f.setReference,
|
|
7515
7529
|
type: "button"
|
|
7516
|
-
},
|
|
7530
|
+
}, v()),
|
|
7517
7531
|
n,
|
|
7518
7532
|
/* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${m}__trigger-icon` })
|
|
7519
7533
|
), l && /* @__PURE__ */ e.createElement(
|
|
@@ -7522,12 +7536,12 @@ const Cn = (u) => {
|
|
|
7522
7536
|
className: `${m}__dropdown`,
|
|
7523
7537
|
ref: f.setFloating
|
|
7524
7538
|
}, C()),
|
|
7525
|
-
t.map((i,
|
|
7539
|
+
t.map((i, g) => /* @__PURE__ */ e.createElement(
|
|
7526
7540
|
"li",
|
|
7527
7541
|
{
|
|
7528
|
-
key:
|
|
7542
|
+
key: g,
|
|
7529
7543
|
role: i.isSeparator ? "separator" : "menuitem",
|
|
7530
|
-
className: `${m}__item ${i.isSeparator ? `${m}__dropdown--separator` : `${m}__item--second-level`} ${
|
|
7544
|
+
className: `${m}__item ${i.isSeparator ? `${m}__dropdown--separator` : `${m}__item--second-level`} ${h(i) ? `${m}__item--active` : null}`
|
|
7531
7545
|
},
|
|
7532
7546
|
!i.isSeparator && i.linkContent
|
|
7533
7547
|
))
|
|
@@ -7546,46 +7560,46 @@ const Cn = (u) => {
|
|
|
7546
7560
|
"mobileMenuMaxWidth",
|
|
7547
7561
|
"className"
|
|
7548
7562
|
]);
|
|
7549
|
-
const [o, m] = U(1025), [f, p] = U(null), [u,
|
|
7563
|
+
const [o, m] = U(1025), [f, p] = U(null), [u, b] = U(-1), [E, L] = U(null), [v, C] = U({
|
|
7550
7564
|
container: null,
|
|
7551
7565
|
containerChildren: []
|
|
7552
7566
|
});
|
|
7553
|
-
oe(() => (m(window.innerWidth), window.addEventListener("resize",
|
|
7554
|
-
window.removeEventListener("resize",
|
|
7567
|
+
oe(() => (m(window.innerWidth), window.addEventListener("resize", h), () => {
|
|
7568
|
+
window.removeEventListener("resize", h);
|
|
7555
7569
|
}), []);
|
|
7556
|
-
const
|
|
7570
|
+
const h = () => {
|
|
7557
7571
|
m(window.innerWidth);
|
|
7558
7572
|
}, i = o <= l;
|
|
7559
7573
|
oe(() => {
|
|
7560
|
-
|
|
7574
|
+
v.containerChildren[f] && (v.containerChildren[f].classList.contains(
|
|
7561
7575
|
"pds-nav-menu__dropdown--separator"
|
|
7562
|
-
) && E == "down" ? p(f + 1) :
|
|
7576
|
+
) && E == "down" ? p(f + 1) : v.containerChildren[f].classList.contains(
|
|
7563
7577
|
"pds-nav-menu__dropdown--separator"
|
|
7564
|
-
) && E == "up" ? p(f - 1) :
|
|
7578
|
+
) && E == "up" ? p(f - 1) : v.containerChildren[f].children[0].focus());
|
|
7565
7579
|
}, [f]), oe(() => {
|
|
7566
7580
|
u != -1 && (k.current[u].children[0].blur(), k.current[u].children[0].focus({
|
|
7567
7581
|
focusVisible: !0
|
|
7568
7582
|
}));
|
|
7569
7583
|
}, [u]);
|
|
7570
|
-
const
|
|
7584
|
+
const g = "pds-nav-menu", _ = n !== "default" ? `${g}--${n}` : "", $ = i ? `${g}--isMobile` : `${g}--notMobile`, k = de([]), z = (H) => {
|
|
7571
7585
|
const N = k.current.length - 1, W = {
|
|
7572
7586
|
ArrowRight: () => {
|
|
7573
|
-
p(-1),
|
|
7587
|
+
p(-1), b(u === -1 ? 1 : u === N ? 0 : u + 1);
|
|
7574
7588
|
},
|
|
7575
7589
|
ArrowLeft: () => {
|
|
7576
|
-
p(-1),
|
|
7590
|
+
p(-1), b(u === 0 ? N : u - 1);
|
|
7577
7591
|
},
|
|
7578
7592
|
ArrowDown: () => {
|
|
7579
7593
|
var ne, Y, j, q;
|
|
7580
7594
|
L("down");
|
|
7581
7595
|
const Z = H.target.parentNode.children[1], K = ((Y = (ne = H.target) == null ? void 0 : ne.parentNode.children[1]) == null ? void 0 : Y.children) || ((q = (j = H.target) == null ? void 0 : j.parentNode.parentNode.children[1]) == null ? void 0 : q.children);
|
|
7582
|
-
|
|
7596
|
+
v.container != Z && Z != null && C({
|
|
7583
7597
|
container: Z,
|
|
7584
7598
|
containerChildren: [...K]
|
|
7585
|
-
}), f === null || f ==
|
|
7599
|
+
}), f === null || f == v.containerChildren.length - 1 ? p(0) : p(parseInt(f) + 1);
|
|
7586
7600
|
},
|
|
7587
7601
|
ArrowUp: () => {
|
|
7588
|
-
L("up"), p(f === 0 ?
|
|
7602
|
+
L("up"), p(f === 0 ? v.containerChildren.length - 1 : parseInt(f) - 1);
|
|
7589
7603
|
}
|
|
7590
7604
|
}[H.code];
|
|
7591
7605
|
W && W();
|
|
@@ -7608,7 +7622,7 @@ const Cn = (u) => {
|
|
|
7608
7622
|
key: `${N}-dropdown`,
|
|
7609
7623
|
id: I,
|
|
7610
7624
|
ref: (D) => k.current[N] = D,
|
|
7611
|
-
className: `${
|
|
7625
|
+
className: `${g}__item ${g}__item--top-level ${g}__item--has-children ${w(H) === !0 ? `${g}__item--active` : ""}`
|
|
7612
7626
|
},
|
|
7613
7627
|
/* @__PURE__ */ e.createElement(
|
|
7614
7628
|
O2,
|
|
@@ -7626,7 +7640,7 @@ const Cn = (u) => {
|
|
|
7626
7640
|
key: N,
|
|
7627
7641
|
id: I,
|
|
7628
7642
|
ref: (D) => k.current[N] = D,
|
|
7629
|
-
className: `${
|
|
7643
|
+
className: `${g}__item ${g}__item--top-level ${g}__item--has-link ${w(H) === !0 ? `${g}__item--active` : ""}`
|
|
7630
7644
|
},
|
|
7631
7645
|
H.linkContent
|
|
7632
7646
|
)
|
|
@@ -7634,13 +7648,13 @@ const Cn = (u) => {
|
|
|
7634
7648
|
}), /* @__PURE__ */ e.createElement(
|
|
7635
7649
|
"nav",
|
|
7636
7650
|
M({
|
|
7637
|
-
className: x([
|
|
7651
|
+
className: x([g, _, $, r]),
|
|
7638
7652
|
"aria-label": t,
|
|
7639
7653
|
onKeyDown: (H) => {
|
|
7640
7654
|
z(H);
|
|
7641
7655
|
}
|
|
7642
7656
|
}, d),
|
|
7643
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
7657
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${g}__menu` }, y)
|
|
7644
7658
|
);
|
|
7645
7659
|
}, Zn = (m) => {
|
|
7646
7660
|
var f = m, {
|
|
@@ -7665,18 +7679,18 @@ const Cn = (u) => {
|
|
|
7665
7679
|
"mobileMenuSelectTextFallback",
|
|
7666
7680
|
"className"
|
|
7667
7681
|
]);
|
|
7668
|
-
const p = "pds-side-nav", u = `${p}__item`,
|
|
7669
|
-
oe(() => (L(window.innerWidth), window.addEventListener("resize",
|
|
7670
|
-
window.removeEventListener("resize",
|
|
7682
|
+
const p = "pds-side-nav", u = `${p}__item`, b = `${p}__menu`, [E, L] = U(1025);
|
|
7683
|
+
oe(() => (L(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
7684
|
+
window.removeEventListener("resize", v);
|
|
7671
7685
|
}), []);
|
|
7672
|
-
const
|
|
7686
|
+
const v = () => {
|
|
7673
7687
|
L(window.innerWidth);
|
|
7674
|
-
}, C = E <= d,
|
|
7688
|
+
}, C = E <= d, h = (w) => {
|
|
7675
7689
|
var V;
|
|
7676
7690
|
const y = w.currentTarget, H = (V = y.parentElement) == null ? void 0 : V.nextElementSibling;
|
|
7677
7691
|
if (!H) return;
|
|
7678
7692
|
const N = y.getAttribute("aria-expanded") === "false";
|
|
7679
|
-
y.classList.toggle(`${p}__toggle--expanded`, N), y.setAttribute("aria-expanded", N ? "true" : "false"), N ? i(H) :
|
|
7693
|
+
y.classList.toggle(`${p}__toggle--expanded`, N), y.setAttribute("aria-expanded", N ? "true" : "false"), N ? i(H) : g(H);
|
|
7680
7694
|
}, i = (w) => {
|
|
7681
7695
|
w.style.display = "flex", w.style.height = "auto";
|
|
7682
7696
|
const y = `${w.scrollHeight}px`;
|
|
@@ -7699,9 +7713,9 @@ const Cn = (u) => {
|
|
|
7699
7713
|
opacity: "1",
|
|
7700
7714
|
display: "flex",
|
|
7701
7715
|
marginBlockStart: `${ot}rem`
|
|
7702
|
-
}), w.classList.add(`${
|
|
7716
|
+
}), w.classList.add(`${b}--expanded`);
|
|
7703
7717
|
};
|
|
7704
|
-
},
|
|
7718
|
+
}, g = (w) => {
|
|
7705
7719
|
const y = `${w.scrollHeight}px`, H = w.animate(
|
|
7706
7720
|
[
|
|
7707
7721
|
{
|
|
@@ -7717,7 +7731,7 @@ const Cn = (u) => {
|
|
|
7717
7731
|
}
|
|
7718
7732
|
);
|
|
7719
7733
|
H.onfinish = () => {
|
|
7720
|
-
w.classList.remove(`${
|
|
7734
|
+
w.classList.remove(`${b}--expanded`), Object.assign(w.style, {
|
|
7721
7735
|
opacity: "0",
|
|
7722
7736
|
height: "",
|
|
7723
7737
|
// Clean height from inline style
|
|
@@ -7749,7 +7763,7 @@ const Cn = (u) => {
|
|
|
7749
7763
|
`${p}__toggle`,
|
|
7750
7764
|
Ee(w) ? `${p}__toggle--expanded` : null
|
|
7751
7765
|
]),
|
|
7752
|
-
onClick:
|
|
7766
|
+
onClick: h,
|
|
7753
7767
|
type: "button"
|
|
7754
7768
|
},
|
|
7755
7769
|
/* @__PURE__ */ e.createElement(P, { iconName: "angleDown", iconSize: "md" }),
|
|
@@ -7758,9 +7772,9 @@ const Cn = (u) => {
|
|
|
7758
7772
|
"ul",
|
|
7759
7773
|
{
|
|
7760
7774
|
className: x([
|
|
7761
|
-
|
|
7762
|
-
`${
|
|
7763
|
-
Ee(w) ? `${
|
|
7775
|
+
b,
|
|
7776
|
+
`${b}--second-level`,
|
|
7777
|
+
Ee(w) ? `${b}--expanded` : null
|
|
7764
7778
|
])
|
|
7765
7779
|
},
|
|
7766
7780
|
N.map((I, D) => {
|
|
@@ -7829,18 +7843,18 @@ const Cn = (u) => {
|
|
|
7829
7843
|
"mobileMenuSelectTextFallback",
|
|
7830
7844
|
"className"
|
|
7831
7845
|
]);
|
|
7832
|
-
const p = "pds-side-nav-compact", u = `${p}__item`,
|
|
7833
|
-
oe(() => (L(window.innerWidth), window.addEventListener("resize",
|
|
7834
|
-
window.removeEventListener("resize",
|
|
7846
|
+
const p = "pds-side-nav-compact", u = `${p}__item`, b = `${p}__menu`, [E, L] = U(1025);
|
|
7847
|
+
oe(() => (L(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
7848
|
+
window.removeEventListener("resize", v);
|
|
7835
7849
|
}), []);
|
|
7836
|
-
const
|
|
7850
|
+
const v = () => {
|
|
7837
7851
|
L(window.innerWidth);
|
|
7838
|
-
}, C = E <= d,
|
|
7852
|
+
}, C = E <= d, h = (y) => {
|
|
7839
7853
|
var I;
|
|
7840
7854
|
const H = y.currentTarget, N = (I = H.parentElement) == null ? void 0 : I.nextElementSibling;
|
|
7841
7855
|
if (!N) return;
|
|
7842
7856
|
const V = H.getAttribute("aria-expanded") === "false";
|
|
7843
|
-
H.classList.toggle(`${p}__toggle--expanded`, V), H.setAttribute("aria-expanded", V ? "true" : "false"), V ? i(N) :
|
|
7857
|
+
H.classList.toggle(`${p}__toggle--expanded`, V), H.setAttribute("aria-expanded", V ? "true" : "false"), V ? i(N) : g(N);
|
|
7844
7858
|
}, i = (y) => {
|
|
7845
7859
|
y.style.display = "flex", y.style.height = "auto";
|
|
7846
7860
|
const H = `${y.scrollHeight}px`;
|
|
@@ -7859,9 +7873,9 @@ const Cn = (u) => {
|
|
|
7859
7873
|
opacity: "1",
|
|
7860
7874
|
display: "flex",
|
|
7861
7875
|
marginBlockStart: `${Ft}rem`
|
|
7862
|
-
}), y.classList.add(`${
|
|
7876
|
+
}), y.classList.add(`${b}--expanded`);
|
|
7863
7877
|
};
|
|
7864
|
-
},
|
|
7878
|
+
}, g = (y) => {
|
|
7865
7879
|
const H = `${y.scrollHeight}px`, N = y.animate(
|
|
7866
7880
|
[
|
|
7867
7881
|
{ height: H, opacity: "1", marginBlockStart: `${Ft}rem` },
|
|
@@ -7873,7 +7887,7 @@ const Cn = (u) => {
|
|
|
7873
7887
|
}
|
|
7874
7888
|
);
|
|
7875
7889
|
N.onfinish = () => {
|
|
7876
|
-
y.classList.remove(`${
|
|
7890
|
+
y.classList.remove(`${b}--expanded`), Object.assign(y.style, {
|
|
7877
7891
|
opacity: "0",
|
|
7878
7892
|
height: "",
|
|
7879
7893
|
// Clean height from inline style
|
|
@@ -7883,7 +7897,7 @@ const Cn = (u) => {
|
|
|
7883
7897
|
});
|
|
7884
7898
|
};
|
|
7885
7899
|
}, _ = { 2: "second", 3: "third", 4: "fourth" }, $ = (y, H, N) => {
|
|
7886
|
-
const V = _[y], I = `${
|
|
7900
|
+
const V = _[y], I = `${b}--${V}-level`, D = `${u}--${V}-level`, S = y + 1;
|
|
7887
7901
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${u}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7888
7902
|
"button",
|
|
7889
7903
|
{
|
|
@@ -7892,7 +7906,7 @@ const Cn = (u) => {
|
|
|
7892
7906
|
`${p}__toggle`,
|
|
7893
7907
|
Ee(H) ? `${p}__toggle--expanded` : null
|
|
7894
7908
|
]),
|
|
7895
|
-
onClick:
|
|
7909
|
+
onClick: h,
|
|
7896
7910
|
type: "button"
|
|
7897
7911
|
},
|
|
7898
7912
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "md" }),
|
|
@@ -7901,9 +7915,9 @@ const Cn = (u) => {
|
|
|
7901
7915
|
"ul",
|
|
7902
7916
|
{
|
|
7903
7917
|
className: x([
|
|
7904
|
-
|
|
7918
|
+
b,
|
|
7905
7919
|
I,
|
|
7906
|
-
Ee(H) ? `${
|
|
7920
|
+
Ee(H) ? `${b}--expanded` : null
|
|
7907
7921
|
])
|
|
7908
7922
|
},
|
|
7909
7923
|
H.links.map((T, W) => /* @__PURE__ */ e.createElement(
|
|
@@ -7961,13 +7975,13 @@ const Cn = (u) => {
|
|
|
7961
7975
|
minFilterItems: r = 5,
|
|
7962
7976
|
noResultsText: d = "No results found"
|
|
7963
7977
|
}) => {
|
|
7964
|
-
const [a, c] = U(!1), [o, m] = U(null), [f, p] = U(l), [u,
|
|
7978
|
+
const [a, c] = U(!1), [o, m] = U(null), [f, p] = U(l), [u, b] = U(""), E = l.length >= r, L = "pds-tab-menu", v = `${L}__dropdown-menu`, C = E ? `${v}--scroll` : null, h = `${L}__dropdown-item`, i = de([]), { context: g, refs: _ } = Ve({
|
|
7965
7979
|
open: a,
|
|
7966
7980
|
onOpenChange: c,
|
|
7967
7981
|
whileElementsMounted: Re
|
|
7968
|
-
}), $ = Ye(
|
|
7982
|
+
}), $ = Ye(g, {
|
|
7969
7983
|
event: "mousedown"
|
|
7970
|
-
}), k = Se(
|
|
7984
|
+
}), k = Se(g), z = Te(g, { role: "listbox" }), w = it(g, {
|
|
7971
7985
|
listRef: i,
|
|
7972
7986
|
activeIndex: o,
|
|
7973
7987
|
onNavigate: m,
|
|
@@ -7976,7 +7990,7 @@ const Cn = (u) => {
|
|
|
7976
7990
|
focusItemOnOpen: !1
|
|
7977
7991
|
}), { getReferenceProps: y, getFloatingProps: H, getItemProps: N } = Ae(
|
|
7978
7992
|
[z, k, w, $]
|
|
7979
|
-
), { isMounted: V, styles: I } = Qe(
|
|
7993
|
+
), { isMounted: V, styles: I } = Qe(g, {
|
|
7980
7994
|
duration: {
|
|
7981
7995
|
open: 300,
|
|
7982
7996
|
close: 150
|
|
@@ -7995,7 +8009,7 @@ const Cn = (u) => {
|
|
|
7995
8009
|
O.preventDefault(), O.key === "Enter" && ((Q = i.current[o].querySelector("a")) == null || Q.click()), O.key === "Tab" && O.shiftKey && (E ? document.getElementById("links-filter").focus() : c(!1));
|
|
7996
8010
|
}, S = (O, Q) => Ue(O.linkContent).toLowerCase().includes(Q.toLowerCase()), T = (O) => {
|
|
7997
8011
|
const Q = O.target.value;
|
|
7998
|
-
|
|
8012
|
+
b(Q);
|
|
7999
8013
|
const X = l.filter((F) => S(F, Q));
|
|
8000
8014
|
p(X);
|
|
8001
8015
|
};
|
|
@@ -8004,7 +8018,7 @@ const Cn = (u) => {
|
|
|
8004
8018
|
p(O);
|
|
8005
8019
|
}, [l]);
|
|
8006
8020
|
const W = () => {
|
|
8007
|
-
|
|
8021
|
+
b(""), p(l);
|
|
8008
8022
|
}, Z = l.reduce(
|
|
8009
8023
|
(O, Q) => Ue(O.linkContent).length > Ue(Q.linkContent).length ? O : Q
|
|
8010
8024
|
), ne = {
|
|
@@ -8026,12 +8040,12 @@ const Cn = (u) => {
|
|
|
8026
8040
|
autoComplete: "off"
|
|
8027
8041
|
}
|
|
8028
8042
|
)), q = f.map((O, Q) => {
|
|
8029
|
-
const X = O.isActive ? `${
|
|
8043
|
+
const X = O.isActive ? `${h}--active` : null;
|
|
8030
8044
|
return /* @__PURE__ */ e.createElement(
|
|
8031
8045
|
"li",
|
|
8032
8046
|
M({
|
|
8033
8047
|
key: Q,
|
|
8034
|
-
className: x([
|
|
8048
|
+
className: x([h, X]),
|
|
8035
8049
|
ref: (F) => {
|
|
8036
8050
|
i.current[Q] = F;
|
|
8037
8051
|
},
|
|
@@ -8070,7 +8084,7 @@ const Cn = (u) => {
|
|
|
8070
8084
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8071
8085
|
}, ne)
|
|
8072
8086
|
})),
|
|
8073
|
-
/* @__PURE__ */ e.createElement("div", { style: M({}, I) }, j, /* @__PURE__ */ e.createElement("ul", { className: x([
|
|
8087
|
+
/* @__PURE__ */ e.createElement("div", { style: M({}, I) }, j, /* @__PURE__ */ e.createElement("ul", { className: x([v, C]) }, q.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${L}__no-results` }, d) : q))
|
|
8074
8088
|
));
|
|
8075
8089
|
}, jn = (r) => {
|
|
8076
8090
|
var d = r, {
|
|
@@ -8087,13 +8101,13 @@ const Cn = (u) => {
|
|
|
8087
8101
|
c && (a = c.isMobile);
|
|
8088
8102
|
const o = "pds-tab-menu", m = a ? `${o}--isMobile` : null, f = ({
|
|
8089
8103
|
dropdownSettings: u,
|
|
8090
|
-
icon:
|
|
8104
|
+
icon: b,
|
|
8091
8105
|
isActive: E,
|
|
8092
8106
|
linkContent: L,
|
|
8093
|
-
links:
|
|
8107
|
+
links: v,
|
|
8094
8108
|
promoteActiveChildLink: C = !1
|
|
8095
8109
|
}) => {
|
|
8096
|
-
const
|
|
8110
|
+
const h = `${o}__item`, i = t1(v), g = (_, $) => {
|
|
8097
8111
|
let k = null;
|
|
8098
8112
|
return typeof _ == "object" && ($ ? k = Ie(_, me(M({}, _.props), {
|
|
8099
8113
|
children: [
|
|
@@ -8112,15 +8126,15 @@ const Cn = (u) => {
|
|
|
8112
8126
|
"li",
|
|
8113
8127
|
{
|
|
8114
8128
|
className: x([
|
|
8115
|
-
|
|
8116
|
-
E ? `${
|
|
8129
|
+
h,
|
|
8130
|
+
E ? `${h}--active` : null
|
|
8117
8131
|
])
|
|
8118
8132
|
},
|
|
8119
|
-
|
|
8120
|
-
|
|
8133
|
+
g(C ? i : L, b),
|
|
8134
|
+
v && /* @__PURE__ */ e.createElement(
|
|
8121
8135
|
R2,
|
|
8122
8136
|
{
|
|
8123
|
-
links:
|
|
8137
|
+
links: v,
|
|
8124
8138
|
buttonLabel: u == null ? void 0 : u.buttonLabel,
|
|
8125
8139
|
filterLabel: u == null ? void 0 : u.filterLabel,
|
|
8126
8140
|
filterPlaceholder: u == null ? void 0 : u.filterPlaceholder,
|
|
@@ -8129,10 +8143,10 @@ const Cn = (u) => {
|
|
|
8129
8143
|
}
|
|
8130
8144
|
)
|
|
8131
8145
|
);
|
|
8132
|
-
}, p = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, n.map((u,
|
|
8146
|
+
}, p = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, n.map((u, b) => /* @__PURE__ */ e.createElement(
|
|
8133
8147
|
f,
|
|
8134
8148
|
{
|
|
8135
|
-
key:
|
|
8149
|
+
key: b,
|
|
8136
8150
|
dropdownSettings: u.dropdownSettings,
|
|
8137
8151
|
icon: u.icon,
|
|
8138
8152
|
isActive: Ee(u),
|
|
@@ -8167,14 +8181,14 @@ const Cn = (u) => {
|
|
|
8167
8181
|
"withinNavbar",
|
|
8168
8182
|
"className"
|
|
8169
8183
|
]);
|
|
8170
|
-
const [f, p] = U(null), [u,
|
|
8171
|
-
let
|
|
8184
|
+
const [f, p] = U(null), [u, b] = U(!1), E = de([]), L = de([]);
|
|
8185
|
+
let v = !1;
|
|
8172
8186
|
const C = ve(ye);
|
|
8173
|
-
C && (
|
|
8174
|
-
const
|
|
8187
|
+
C && (v = C.isMobile);
|
|
8188
|
+
const h = d && v, i = "pds-user-menu", g = h ? `${i}--isMobile` : null, _ = `${i}__menu`, { refs: $, floatingStyles: k, context: z } = Ve({
|
|
8175
8189
|
placement: "bottom-end",
|
|
8176
8190
|
open: u,
|
|
8177
|
-
onOpenChange:
|
|
8191
|
+
onOpenChange: b,
|
|
8178
8192
|
middleware: [kt(12), Ht(), zt()],
|
|
8179
8193
|
whileElementsMounted: Re
|
|
8180
8194
|
}), w = Ye(z, { event: "mousedown" }), y = Se(z), H = Te(z, { role: "menu" }), N = de([]), V = it(z, {
|
|
@@ -8210,14 +8224,14 @@ const Cn = (u) => {
|
|
|
8210
8224
|
uniqueId: s,
|
|
8211
8225
|
className: `${i}__avatar`
|
|
8212
8226
|
}
|
|
8213
|
-
), K = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${i}__trigger-icon` }), ne = /* @__PURE__ */ e.createElement("li", { className: `${i}__user-details`, role: "presentation" },
|
|
8227
|
+
), K = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${i}__trigger-icon` }), ne = /* @__PURE__ */ e.createElement("li", { className: `${i}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${i}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${i}__user-email` }, s));
|
|
8214
8228
|
n.forEach((B) => {
|
|
8215
8229
|
const J = B.id ? B.id : lt();
|
|
8216
8230
|
E.current.push(J), L.current.push(B);
|
|
8217
8231
|
});
|
|
8218
8232
|
const Y = (B) => {
|
|
8219
8233
|
const J = E.current.indexOf(B), te = L.current[J];
|
|
8220
|
-
te.linkContent && !te.disabled && (N.current[J].querySelector("a").click(),
|
|
8234
|
+
te.linkContent && !te.disabled && (N.current[J].querySelector("a").click(), b(!1)), te.callback && !te.disabled && (te.callback(te), b(!1));
|
|
8221
8235
|
}, j = (B) => {
|
|
8222
8236
|
B.preventDefault(), B.key === "Enter" && Y(B.currentTarget.id);
|
|
8223
8237
|
}, q = (B) => {
|
|
@@ -8295,9 +8309,9 @@ const Cn = (u) => {
|
|
|
8295
8309
|
return /* @__PURE__ */ e.createElement(
|
|
8296
8310
|
"span",
|
|
8297
8311
|
M({
|
|
8298
|
-
className: x([i,
|
|
8312
|
+
className: x([i, g, a != null ? a : ""])
|
|
8299
8313
|
}, c),
|
|
8300
|
-
|
|
8314
|
+
h ? F : Q
|
|
8301
8315
|
);
|
|
8302
8316
|
}, F2 = {
|
|
8303
8317
|
silver: "Silver",
|
|
@@ -8328,18 +8342,18 @@ const Cn = (u) => {
|
|
|
8328
8342
|
"workspaceList",
|
|
8329
8343
|
"className"
|
|
8330
8344
|
]);
|
|
8331
|
-
const [
|
|
8345
|
+
const [b, E] = U(!1), [L, v] = U(null), [C, h] = U(o), i = de([]), g = de(null), _ = o.length >= d;
|
|
8332
8346
|
let $ = !1;
|
|
8333
8347
|
const k = ve(ye);
|
|
8334
8348
|
k && ($ = k.isMobile);
|
|
8335
8349
|
const z = c && $, w = "pds-workspace-selector", y = z ? `${w}--isMobile` : null, H = `${w}__menu`, N = _ ? `${H}--scroll` : null, { refs: V, floatingStyles: I, context: D } = Ve({
|
|
8336
|
-
open:
|
|
8350
|
+
open: b,
|
|
8337
8351
|
onOpenChange: E,
|
|
8338
8352
|
whileElementsMounted: Re
|
|
8339
8353
|
}), S = Ye(D, { event: "mousedown" }), T = Se(D), W = Te(D, { role: "menu" }), Z = it(D, {
|
|
8340
8354
|
listRef: i,
|
|
8341
8355
|
activeIndex: L,
|
|
8342
|
-
onNavigate:
|
|
8356
|
+
onNavigate: v,
|
|
8343
8357
|
loop: !0,
|
|
8344
8358
|
openOnArrowKeyDown: !0,
|
|
8345
8359
|
focusItemOnHover: !0,
|
|
@@ -8365,16 +8379,16 @@ const Cn = (u) => {
|
|
|
8365
8379
|
O || (O = o[0]);
|
|
8366
8380
|
const Q = (ce) => {
|
|
8367
8381
|
const { value: le } = ce.target, ge = o.filter((Oe) => Oe.displayName.toLowerCase().includes(le.toLowerCase()));
|
|
8368
|
-
|
|
8382
|
+
h(ge);
|
|
8369
8383
|
};
|
|
8370
8384
|
oe(() => {
|
|
8371
8385
|
const ce = o.map((le) => me(M({}, le), {
|
|
8372
8386
|
isActive: le.isActive
|
|
8373
8387
|
}));
|
|
8374
|
-
|
|
8388
|
+
h(ce);
|
|
8375
8389
|
}, [o]);
|
|
8376
8390
|
const X = (ce) => {
|
|
8377
|
-
ce.preventDefault(), ce.key === "Enter" && i.current[L].querySelector("a").click(), ce.key === "Tab" && (ce.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) : n ?
|
|
8391
|
+
ce.preventDefault(), ce.key === "Enter" && i.current[L].querySelector("a").click(), ce.key === "Tab" && (ce.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) : n ? g.current.querySelector("a").focus() : E(!1));
|
|
8378
8392
|
}, F = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8379
8393
|
jt,
|
|
8380
8394
|
{
|
|
@@ -8401,7 +8415,7 @@ const Cn = (u) => {
|
|
|
8401
8415
|
x1,
|
|
8402
8416
|
{
|
|
8403
8417
|
hasClearButton: !0,
|
|
8404
|
-
onClear: () =>
|
|
8418
|
+
onClear: () => h(o),
|
|
8405
8419
|
id: "workspace-filter",
|
|
8406
8420
|
label: l,
|
|
8407
8421
|
onChange: Q,
|
|
@@ -8447,7 +8461,7 @@ const Cn = (u) => {
|
|
|
8447
8461
|
)
|
|
8448
8462
|
);
|
|
8449
8463
|
}
|
|
8450
|
-
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref:
|
|
8464
|
+
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref: g }, /* @__PURE__ */ e.createElement(
|
|
8451
8465
|
yt,
|
|
8452
8466
|
{
|
|
8453
8467
|
displayType: "icon-end",
|
|
@@ -8541,19 +8555,19 @@ const Cn = (u) => {
|
|
|
8541
8555
|
const p = m.length;
|
|
8542
8556
|
if (p === 0)
|
|
8543
8557
|
return null;
|
|
8544
|
-
const u = "pds-banner",
|
|
8558
|
+
const u = "pds-banner", b = p > 1 ? `${u}-group--multiple` : null, E = {
|
|
8545
8559
|
info: `${u}--info`,
|
|
8546
8560
|
warning: `${u}--warning`,
|
|
8547
8561
|
critical: `${u}--critical`
|
|
8548
|
-
}, L = p > 0 ? m[0].type : null,
|
|
8562
|
+
}, L = p > 0 ? m[0].type : null, v = L ? `${u}-group--${L}` : null, C = (k) => ({
|
|
8549
8563
|
zIndex: St - k
|
|
8550
|
-
}),
|
|
8564
|
+
}), h = (k) => k === 0 ? 0 : -1, i = () => {
|
|
8551
8565
|
const k = document.getElementsByClassName(
|
|
8552
8566
|
`${u}--fading`
|
|
8553
8567
|
);
|
|
8554
8568
|
for (; k.length; )
|
|
8555
8569
|
k[0].classList.remove(`${u}--fading`);
|
|
8556
|
-
},
|
|
8570
|
+
}, g = () => {
|
|
8557
8571
|
i(), document.getElementById(m[0].id).classList.add(`${u}--fading`), setTimeout(() => {
|
|
8558
8572
|
f((k) => [
|
|
8559
8573
|
...k.slice(1),
|
|
@@ -8572,13 +8586,13 @@ const Cn = (u) => {
|
|
|
8572
8586
|
}, $ = (k, z) => {
|
|
8573
8587
|
const { id: w, isDismissible: y, message: H, onDismiss: N, type: V } = k, D = ["critical", "warning"].includes(V) ? "alert" : "status", S = `${r[V]}: `, T = (W) => {
|
|
8574
8588
|
W.preventDefault(), document.getElementById(w).classList.add(`${u}--dismissing`), setTimeout(() => {
|
|
8575
|
-
if (p === 1) {
|
|
8589
|
+
if (N && k.onDismiss(), p === 1) {
|
|
8576
8590
|
f([]);
|
|
8577
8591
|
return;
|
|
8578
8592
|
}
|
|
8579
8593
|
f(
|
|
8580
8594
|
(Z) => Z.filter((K) => K.id !== w)
|
|
8581
|
-
)
|
|
8595
|
+
);
|
|
8582
8596
|
}, 200);
|
|
8583
8597
|
};
|
|
8584
8598
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8605,7 +8619,7 @@ const Cn = (u) => {
|
|
|
8605
8619
|
{
|
|
8606
8620
|
className: `${u}__dismiss-button`,
|
|
8607
8621
|
onClick: T,
|
|
8608
|
-
tabIndex:
|
|
8622
|
+
tabIndex: h(z),
|
|
8609
8623
|
type: "button"
|
|
8610
8624
|
},
|
|
8611
8625
|
n
|
|
@@ -8617,8 +8631,8 @@ const Cn = (u) => {
|
|
|
8617
8631
|
M({
|
|
8618
8632
|
className: x([
|
|
8619
8633
|
`${u}-group`,
|
|
8620
|
-
b,
|
|
8621
8634
|
v,
|
|
8635
|
+
b,
|
|
8622
8636
|
d != null ? d : ""
|
|
8623
8637
|
])
|
|
8624
8638
|
}, a),
|
|
@@ -8638,7 +8652,7 @@ const Cn = (u) => {
|
|
|
8638
8652
|
size: "lg",
|
|
8639
8653
|
className: `${u}__nav-button ${u}__nav-button--next`,
|
|
8640
8654
|
ariaLabel: s,
|
|
8641
|
-
onClick:
|
|
8655
|
+
onClick: g
|
|
8642
8656
|
}
|
|
8643
8657
|
), m.map((k, z) => $(k, z))) : $(m[0], 0)
|
|
8644
8658
|
);
|
|
@@ -8674,7 +8688,7 @@ const Cn = (u) => {
|
|
|
8674
8688
|
info: `${o}--info`,
|
|
8675
8689
|
critical: `${o}--critical`,
|
|
8676
8690
|
working: `${o}--working`
|
|
8677
|
-
}, f = t ? `${o}--hasTitle` : null, u = ["critical", "warning"].includes(s) ? "alert" : "status",
|
|
8691
|
+
}, f = t ? `${o}--hasTitle` : null, u = ["critical", "warning"].includes(s) ? "alert" : "status", b = `${l[s]}: `;
|
|
8678
8692
|
return /* @__PURE__ */ e.createElement(
|
|
8679
8693
|
"div",
|
|
8680
8694
|
M({
|
|
@@ -8687,7 +8701,7 @@ const Cn = (u) => {
|
|
|
8687
8701
|
iconName: `${s}` in Bt ? Bt[s] : Bt.info,
|
|
8688
8702
|
iconSize: "md"
|
|
8689
8703
|
}
|
|
8690
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
8704
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${o}__secondaryText` }, n)))
|
|
8691
8705
|
);
|
|
8692
8706
|
}, Wt = {
|
|
8693
8707
|
info: "circleInfo",
|
|
@@ -8723,20 +8737,20 @@ const Cn = (u) => {
|
|
|
8723
8737
|
"typeLabels",
|
|
8724
8738
|
"className"
|
|
8725
8739
|
]);
|
|
8726
|
-
const u = de(null),
|
|
8727
|
-
error: `${
|
|
8728
|
-
success: `${
|
|
8729
|
-
warning: `${
|
|
8730
|
-
info: `${
|
|
8731
|
-
critical: `${
|
|
8732
|
-
discovery: `${
|
|
8733
|
-
dismissing: `${
|
|
8734
|
-
dismissed: `${
|
|
8735
|
-
}, L = d ? `${
|
|
8736
|
-
u.current.addEventListener("animationend",
|
|
8740
|
+
const u = de(null), b = "pds-section-message", E = {
|
|
8741
|
+
error: `${b}--error`,
|
|
8742
|
+
success: `${b}--success`,
|
|
8743
|
+
warning: `${b}--warning`,
|
|
8744
|
+
info: `${b}--info`,
|
|
8745
|
+
critical: `${b}--critical`,
|
|
8746
|
+
discovery: `${b}--discovery`,
|
|
8747
|
+
dismissing: `${b}--dismissing`,
|
|
8748
|
+
dismissed: `${b}--dismissed`
|
|
8749
|
+
}, L = d ? `${b}--hasTitle` : null, C = ["critical", "warning"].includes(a) ? "alert" : "status", h = `${c[a]}: `, i = () => {
|
|
8750
|
+
u.current.addEventListener("animationend", g, {
|
|
8737
8751
|
once: !0
|
|
8738
8752
|
});
|
|
8739
|
-
},
|
|
8753
|
+
}, g = ($) => {
|
|
8740
8754
|
l($, n);
|
|
8741
8755
|
}, _ = () => {
|
|
8742
8756
|
i(), u.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
@@ -8746,22 +8760,22 @@ const Cn = (u) => {
|
|
|
8746
8760
|
return /* @__PURE__ */ e.createElement(
|
|
8747
8761
|
"div",
|
|
8748
8762
|
M({
|
|
8749
|
-
className: [
|
|
8763
|
+
className: [b, E[a], L, o != null ? o : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8750
8764
|
id: n,
|
|
8751
8765
|
ref: u,
|
|
8752
8766
|
role: C
|
|
8753
8767
|
}, m),
|
|
8754
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
8768
|
+
/* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__icon ${b}__icon-${a}` }, /* @__PURE__ */ e.createElement(
|
|
8755
8769
|
P,
|
|
8756
8770
|
{
|
|
8757
8771
|
iconName: `${a}` in Wt ? Wt[a] : Wt.info,
|
|
8758
8772
|
iconSize: "md"
|
|
8759
8773
|
}
|
|
8760
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8774
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), d && /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, d), /* @__PURE__ */ e.createElement("div", { className: `${b}__message` }, r))),
|
|
8761
8775
|
s && /* @__PURE__ */ e.createElement(
|
|
8762
8776
|
"button",
|
|
8763
8777
|
{
|
|
8764
|
-
className: `${
|
|
8778
|
+
className: `${b}__dismiss`,
|
|
8765
8779
|
onClick: _,
|
|
8766
8780
|
"aria-label": t,
|
|
8767
8781
|
role: "button",
|
|
@@ -8871,22 +8885,22 @@ const ts = () => {
|
|
|
8871
8885
|
d
|
|
8872
8886
|
), p = m > 2, u = f < d - 2;
|
|
8873
8887
|
if (!p && u) {
|
|
8874
|
-
const
|
|
8875
|
-
return [...bt(1,
|
|
8888
|
+
const b = 3 + 2 * t;
|
|
8889
|
+
return [...bt(1, b), ht, d];
|
|
8876
8890
|
}
|
|
8877
8891
|
if (p && !u) {
|
|
8878
|
-
const
|
|
8879
|
-
d -
|
|
8892
|
+
const b = 3 + 2 * t, E = bt(
|
|
8893
|
+
d - b + 1,
|
|
8880
8894
|
d
|
|
8881
8895
|
);
|
|
8882
8896
|
return [c, ht, ...E];
|
|
8883
8897
|
}
|
|
8884
8898
|
if (p && u) {
|
|
8885
|
-
const
|
|
8899
|
+
const b = bt(m, f);
|
|
8886
8900
|
return [
|
|
8887
8901
|
c,
|
|
8888
8902
|
ht,
|
|
8889
|
-
...
|
|
8903
|
+
...b,
|
|
8890
8904
|
ht,
|
|
8891
8905
|
o
|
|
8892
8906
|
];
|
|
@@ -8921,28 +8935,28 @@ const ts = () => {
|
|
|
8921
8935
|
totalItemCount: c,
|
|
8922
8936
|
bufferCount: t,
|
|
8923
8937
|
itemsPerPage: r
|
|
8924
|
-
}),
|
|
8938
|
+
}), b = u[u.length - 1], E = () => {
|
|
8925
8939
|
a(n + 1);
|
|
8926
8940
|
}, L = () => {
|
|
8927
8941
|
a(n - 1);
|
|
8928
|
-
},
|
|
8942
|
+
}, v = "pds-pagination", C = `${v}__item`, h = `${C}--current`, i = `${C}--disabled`;
|
|
8929
8943
|
return n === 0 || u.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
8930
8944
|
"nav",
|
|
8931
8945
|
M({
|
|
8932
8946
|
"aria-labelledby": "pagination",
|
|
8933
|
-
className: x([
|
|
8947
|
+
className: x([v, o != null ? o : ""])
|
|
8934
8948
|
}, m),
|
|
8935
8949
|
/* @__PURE__ */ e.createElement(
|
|
8936
8950
|
_t,
|
|
8937
8951
|
{
|
|
8938
8952
|
id: "pagination",
|
|
8939
|
-
baseClass:
|
|
8953
|
+
baseClass: v,
|
|
8940
8954
|
className: "visually-hidden",
|
|
8941
8955
|
level: s
|
|
8942
8956
|
},
|
|
8943
8957
|
l
|
|
8944
8958
|
),
|
|
8945
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
8959
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${v}__list` }, /* @__PURE__ */ e.createElement(
|
|
8946
8960
|
"li",
|
|
8947
8961
|
{
|
|
8948
8962
|
className: x([
|
|
@@ -8961,7 +8975,7 @@ const ts = () => {
|
|
|
8961
8975
|
},
|
|
8962
8976
|
/* @__PURE__ */ e.createElement(P, { iconName: "arrowLeft" })
|
|
8963
8977
|
)
|
|
8964
|
-
), u.map((
|
|
8978
|
+
), u.map((g, _) => g === ht ? /* @__PURE__ */ e.createElement(
|
|
8965
8979
|
"li",
|
|
8966
8980
|
{
|
|
8967
8981
|
key: _,
|
|
@@ -8974,17 +8988,17 @@ const ts = () => {
|
|
|
8974
8988
|
key: _,
|
|
8975
8989
|
className: x([
|
|
8976
8990
|
C,
|
|
8977
|
-
n ===
|
|
8991
|
+
n === g ? h : void 0
|
|
8978
8992
|
])
|
|
8979
8993
|
},
|
|
8980
8994
|
/* @__PURE__ */ e.createElement(
|
|
8981
8995
|
"button",
|
|
8982
8996
|
{
|
|
8983
|
-
"aria-current": n ===
|
|
8984
|
-
onClick: () => a(Number(
|
|
8997
|
+
"aria-current": n === g ? "page" : void 0,
|
|
8998
|
+
onClick: () => a(Number(g)),
|
|
8985
8999
|
type: "button"
|
|
8986
9000
|
},
|
|
8987
|
-
|
|
9001
|
+
g
|
|
8988
9002
|
)
|
|
8989
9003
|
)), /* @__PURE__ */ e.createElement(
|
|
8990
9004
|
"li",
|
|
@@ -8992,15 +9006,15 @@ const ts = () => {
|
|
|
8992
9006
|
className: x([
|
|
8993
9007
|
C,
|
|
8994
9008
|
`${C}--next`,
|
|
8995
|
-
n ===
|
|
9009
|
+
n === b ? i : void 0
|
|
8996
9010
|
])
|
|
8997
9011
|
},
|
|
8998
9012
|
/* @__PURE__ */ e.createElement(
|
|
8999
9013
|
"button",
|
|
9000
9014
|
{
|
|
9001
|
-
"aria-disabled": n ===
|
|
9015
|
+
"aria-disabled": n === b ? !0 : void 0,
|
|
9002
9016
|
"aria-label": d.next,
|
|
9003
|
-
onClick: n ===
|
|
9017
|
+
onClick: n === b ? void 0 : E,
|
|
9004
9018
|
type: "button"
|
|
9005
9019
|
},
|
|
9006
9020
|
/* @__PURE__ */ e.createElement(P, { iconName: "arrowRight" })
|
|
@@ -9021,39 +9035,39 @@ const ts = () => {
|
|
|
9021
9035
|
"summary",
|
|
9022
9036
|
"className"
|
|
9023
9037
|
]);
|
|
9024
|
-
const [o, m] = U(s), f = n || `expansion-panel-${lt()}`, p = "pds-expansion-panel", u = de(null),
|
|
9038
|
+
const [o, m] = U(s), f = n || `expansion-panel-${lt()}`, p = "pds-expansion-panel", u = de(null), b = de(null), E = de(null);
|
|
9025
9039
|
return oe(() => {
|
|
9026
|
-
const L = u.current,
|
|
9027
|
-
if (!L || !
|
|
9028
|
-
let
|
|
9040
|
+
const L = u.current, v = b.current, C = E.current;
|
|
9041
|
+
if (!L || !v || !C) return;
|
|
9042
|
+
let h = null, i = !1, g = !1;
|
|
9029
9043
|
const _ = (y) => {
|
|
9030
|
-
y.preventDefault(), L.style.overflow = "hidden", i || !L.open ? k() : (
|
|
9044
|
+
y.preventDefault(), L.style.overflow = "hidden", i || !L.open ? k() : (g || L.open) && $();
|
|
9031
9045
|
}, $ = () => {
|
|
9032
9046
|
i = !0, m(!1);
|
|
9033
|
-
const y = `${L.offsetHeight}px`, H = `${
|
|
9034
|
-
|
|
9047
|
+
const y = `${L.offsetHeight}px`, H = `${v.offsetHeight}px`;
|
|
9048
|
+
h && h.cancel(), h = L.animate(
|
|
9035
9049
|
{ height: [y, H] },
|
|
9036
9050
|
{
|
|
9037
9051
|
duration: Ke,
|
|
9038
9052
|
easing: Xe
|
|
9039
9053
|
}
|
|
9040
|
-
),
|
|
9054
|
+
), h.onfinish = () => w(!1), h.oncancel = () => i = !1;
|
|
9041
9055
|
}, k = () => {
|
|
9042
9056
|
L.style.height = `${L.offsetHeight}px`, L.open = !0, m(!0), requestAnimationFrame(() => z());
|
|
9043
9057
|
}, z = () => {
|
|
9044
|
-
|
|
9045
|
-
const y = `${L.offsetHeight}px`, H = `${
|
|
9046
|
-
|
|
9058
|
+
g = !0;
|
|
9059
|
+
const y = `${L.offsetHeight}px`, H = `${v.offsetHeight + C.offsetHeight}px`;
|
|
9060
|
+
h && h.cancel(), h = L.animate(
|
|
9047
9061
|
{ height: [y, H] },
|
|
9048
9062
|
{
|
|
9049
9063
|
duration: Ke,
|
|
9050
9064
|
easing: Xe
|
|
9051
9065
|
}
|
|
9052
|
-
),
|
|
9066
|
+
), h.onfinish = () => w(!0), h.oncancel = () => g = !1;
|
|
9053
9067
|
}, w = (y) => {
|
|
9054
|
-
L.open = y,
|
|
9068
|
+
L.open = y, h = null, i = !1, g = !1, L.style.height = L.style.overflow = "";
|
|
9055
9069
|
};
|
|
9056
|
-
return
|
|
9070
|
+
return v.addEventListener("click", _), () => v.removeEventListener("click", _);
|
|
9057
9071
|
}, []), /* @__PURE__ */ e.createElement("div", M({ className: x([p, r]) }, d), /* @__PURE__ */ e.createElement(
|
|
9058
9072
|
"details",
|
|
9059
9073
|
{
|
|
@@ -9062,7 +9076,7 @@ const ts = () => {
|
|
|
9062
9076
|
open: s,
|
|
9063
9077
|
ref: u
|
|
9064
9078
|
},
|
|
9065
|
-
/* @__PURE__ */ e.createElement("summary", { ref:
|
|
9079
|
+
/* @__PURE__ */ e.createElement("summary", { ref: b }, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(
|
|
9066
9080
|
P,
|
|
9067
9081
|
{
|
|
9068
9082
|
iconName: "angleDown",
|
|
@@ -9105,14 +9119,14 @@ const ts = () => {
|
|
|
9105
9119
|
"variant",
|
|
9106
9120
|
"className"
|
|
9107
9121
|
]);
|
|
9108
|
-
const m = "pds-panel", f = n ? `${m}__status ${m}__status-${l}` : null, p = `${m}--${r}`, u = `${m}__content`,
|
|
9122
|
+
const m = "pds-panel", f = n ? `${m}__status ${m}__status-${l}` : null, p = `${m}--${r}`, u = `${m}__content`, b = s !== "standard" ? `${u}--pad-${s}` : null;
|
|
9109
9123
|
return /* @__PURE__ */ e.createElement(
|
|
9110
9124
|
"div",
|
|
9111
9125
|
M({
|
|
9112
9126
|
className: [m, p, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
9113
9127
|
}, a),
|
|
9114
9128
|
n && l && /* @__PURE__ */ e.createElement("span", { className: f }),
|
|
9115
|
-
/* @__PURE__ */ e.createElement("div", { className: x([u,
|
|
9129
|
+
/* @__PURE__ */ e.createElement("div", { className: x([u, b]) }, t)
|
|
9116
9130
|
);
|
|
9117
9131
|
}, cs = (d) => {
|
|
9118
9132
|
var a = d, {
|
|
@@ -9144,7 +9158,7 @@ const ts = () => {
|
|
|
9144
9158
|
const d = "pds-panel-row", a = Fe(t), c = a["items-left"], o = a["items-right"];
|
|
9145
9159
|
return /* @__PURE__ */ e.createElement("li", M({ className: x([d, n != null ? n : ""]) }, s), c && /* @__PURE__ */ e.createElement("div", { className: `${d}__items ${d}__items--left` }, c), o && /* @__PURE__ */ e.createElement("div", { className: `${d}__items ${d}__items--right` }, o));
|
|
9146
9160
|
}, at = 8, u1 = 14, Z2 = 6, os = (L) => {
|
|
9147
|
-
var
|
|
9161
|
+
var v = L, {
|
|
9148
9162
|
content: t,
|
|
9149
9163
|
closeButtonLabel: n = "Close",
|
|
9150
9164
|
customTrigger: s = !1,
|
|
@@ -9160,8 +9174,8 @@ const ts = () => {
|
|
|
9160
9174
|
setPopoverIsOpen: p = () => {
|
|
9161
9175
|
},
|
|
9162
9176
|
className: u,
|
|
9163
|
-
classNameContainer:
|
|
9164
|
-
} =
|
|
9177
|
+
classNameContainer: b
|
|
9178
|
+
} = v, E = A(v, [
|
|
9165
9179
|
"content",
|
|
9166
9180
|
"closeButtonLabel",
|
|
9167
9181
|
"customTrigger",
|
|
@@ -9178,20 +9192,20 @@ const ts = () => {
|
|
|
9178
9192
|
"classNameContainer"
|
|
9179
9193
|
]);
|
|
9180
9194
|
var j, q, O, Q;
|
|
9181
|
-
const [C,
|
|
9195
|
+
const [C, h] = U(f);
|
|
9182
9196
|
oe(() => {
|
|
9183
|
-
|
|
9197
|
+
h(f);
|
|
9184
9198
|
}, [f]), oe(() => {
|
|
9185
9199
|
p(C);
|
|
9186
9200
|
}, [C]);
|
|
9187
|
-
const i = typeof s,
|
|
9188
|
-
`${
|
|
9189
|
-
i === "string" ? `${
|
|
9201
|
+
const i = typeof s, g = "pds-popover", _ = x([
|
|
9202
|
+
`${g}__trigger-custom`,
|
|
9203
|
+
i === "string" ? `${g}__trigger-text` : ""
|
|
9190
9204
|
]), $ = s ? r : 0, k = de(null), { refs: z, floatingStyles: w, context: y, middlewareData: H } = Ve({
|
|
9191
9205
|
placement: a,
|
|
9192
9206
|
open: C,
|
|
9193
9207
|
onOpenChange(X) {
|
|
9194
|
-
|
|
9208
|
+
h(X), X || d();
|
|
9195
9209
|
},
|
|
9196
9210
|
middleware: [
|
|
9197
9211
|
kt(at + Z2 + $),
|
|
@@ -9201,7 +9215,7 @@ const ts = () => {
|
|
|
9201
9215
|
],
|
|
9202
9216
|
whileElementsMounted: Re
|
|
9203
9217
|
}), N = () => {
|
|
9204
|
-
|
|
9218
|
+
h(!1), d && d();
|
|
9205
9219
|
}, V = Ye(y), I = Se(y), D = Te(y), { getReferenceProps: S, getFloatingProps: T } = Ae([
|
|
9206
9220
|
V,
|
|
9207
9221
|
I,
|
|
@@ -9219,10 +9233,10 @@ const ts = () => {
|
|
|
9219
9233
|
}[X]
|
|
9220
9234
|
})
|
|
9221
9235
|
});
|
|
9222
|
-
return /* @__PURE__ */ e.createElement("div", M({ className: x([
|
|
9236
|
+
return /* @__PURE__ */ e.createElement("div", M({ className: x([g, u]) }, E), /* @__PURE__ */ e.createElement(
|
|
9223
9237
|
"span",
|
|
9224
9238
|
M({
|
|
9225
|
-
className: `${
|
|
9239
|
+
className: `${g}__trigger`,
|
|
9226
9240
|
ref: z.setReference,
|
|
9227
9241
|
role: "button",
|
|
9228
9242
|
tabIndex: 0
|
|
@@ -9231,7 +9245,7 @@ const ts = () => {
|
|
|
9231
9245
|
P,
|
|
9232
9246
|
{
|
|
9233
9247
|
iconName: o,
|
|
9234
|
-
className: `${
|
|
9248
|
+
className: `${g}__icon`,
|
|
9235
9249
|
iconSize: "md"
|
|
9236
9250
|
}
|
|
9237
9251
|
))
|
|
@@ -9245,7 +9259,7 @@ const ts = () => {
|
|
|
9245
9259
|
/* @__PURE__ */ e.createElement(
|
|
9246
9260
|
"div",
|
|
9247
9261
|
M({
|
|
9248
|
-
className: x([`${
|
|
9262
|
+
className: x([`${g}__container`, b]),
|
|
9249
9263
|
ref: z.setFloating,
|
|
9250
9264
|
style: w
|
|
9251
9265
|
}, T()),
|
|
@@ -9260,10 +9274,10 @@ const ts = () => {
|
|
|
9260
9274
|
fill: "var(--pds-color-background-default)",
|
|
9261
9275
|
stroke: "var(--pds-color-border-default)",
|
|
9262
9276
|
strokeWidth: 1,
|
|
9263
|
-
className: `${
|
|
9277
|
+
className: `${g}__arrow`
|
|
9264
9278
|
}
|
|
9265
9279
|
),
|
|
9266
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9280
|
+
/* @__PURE__ */ e.createElement("div", { className: `${g}__container-inner` }, c && /* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, c), t && /* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, t), l && /* @__PURE__ */ e.createElement("div", { className: `${g}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9267
9281
|
k1,
|
|
9268
9282
|
{
|
|
9269
9283
|
ariaLabel: n,
|
|
@@ -9306,25 +9320,25 @@ const ts = () => {
|
|
|
9306
9320
|
"size",
|
|
9307
9321
|
"className"
|
|
9308
9322
|
]);
|
|
9309
|
-
const
|
|
9310
|
-
let
|
|
9323
|
+
const b = n || lt(), E = "pds-progress-bar", L = a ? `${E}__label` : "visually-hidden", v = `${E}__track ${E}__track--${o}`, C = d > 100 ? 100 : d;
|
|
9324
|
+
let h = "neutral";
|
|
9311
9325
|
t.forEach(($) => {
|
|
9312
|
-
d >= $.percentage && (
|
|
9326
|
+
d >= $.percentage && (h = $.colorType);
|
|
9313
9327
|
});
|
|
9314
|
-
const i = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, l),
|
|
9328
|
+
const i = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, l), g = l && r === "above", _ = l && r === "below";
|
|
9315
9329
|
return /* @__PURE__ */ e.createElement(
|
|
9316
9330
|
"div",
|
|
9317
9331
|
M({
|
|
9318
9332
|
className: [E, m].join(" ").trim().replace(/\s+/g, " "),
|
|
9319
9333
|
style: { "--bar-percentage": `${C}%` }
|
|
9320
9334
|
}, f),
|
|
9321
|
-
/* @__PURE__ */ e.createElement("div", { id:
|
|
9322
|
-
(
|
|
9335
|
+
/* @__PURE__ */ e.createElement("div", { id: b, className: L }, s),
|
|
9336
|
+
(g || c) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, g && i, c && /* @__PURE__ */ e.createElement(
|
|
9323
9337
|
"div",
|
|
9324
9338
|
{
|
|
9325
9339
|
className: `${E}__percentage`,
|
|
9326
9340
|
style: {
|
|
9327
|
-
color: `hsl(from var(${p1[
|
|
9341
|
+
color: `hsl(from var(${p1[h]}) h s calc(l - 7))`
|
|
9328
9342
|
}
|
|
9329
9343
|
},
|
|
9330
9344
|
d,
|
|
@@ -9334,9 +9348,9 @@ const ts = () => {
|
|
|
9334
9348
|
"div",
|
|
9335
9349
|
{
|
|
9336
9350
|
role: "progressbar",
|
|
9337
|
-
"aria-labelledby":
|
|
9351
|
+
"aria-labelledby": b,
|
|
9338
9352
|
"aria-valuenow": C,
|
|
9339
|
-
className:
|
|
9353
|
+
className: v
|
|
9340
9354
|
},
|
|
9341
9355
|
/* @__PURE__ */ e.createElement(
|
|
9342
9356
|
"div",
|
|
@@ -9344,7 +9358,7 @@ const ts = () => {
|
|
|
9344
9358
|
className: `${E}__bar`,
|
|
9345
9359
|
style: {
|
|
9346
9360
|
width: `${C}%`,
|
|
9347
|
-
backgroundColor: `var(${p1[
|
|
9361
|
+
backgroundColor: `var(${p1[h]})`
|
|
9348
9362
|
}
|
|
9349
9363
|
}
|
|
9350
9364
|
)
|
|
@@ -9371,21 +9385,21 @@ const ts = () => {
|
|
|
9371
9385
|
"size",
|
|
9372
9386
|
"className"
|
|
9373
9387
|
]);
|
|
9374
|
-
const p = t || lt(), u = "pds-progress-ring",
|
|
9375
|
-
let
|
|
9376
|
-
a === "sm" && (
|
|
9377
|
-
const
|
|
9388
|
+
const p = t || lt(), u = "pds-progress-ring", b = r ? `${u}__label` : "visually-hidden", E = `${u}__loading-text ${u}__loading-text--${a}`, L = ($) => $ * 16;
|
|
9389
|
+
let v = L(x2), C = 7;
|
|
9390
|
+
a === "sm" && (v = L(N2), C = C / 1.25), a === "lg" && (v = L(I2), C = C * 1.25);
|
|
9391
|
+
const h = v / 2 - C / 2, i = 2 * Math.PI * h, g = i - i * l / 100;
|
|
9378
9392
|
let _;
|
|
9379
9393
|
return n ? _ = n : d ? _ = `${l}%` : _ = "", /* @__PURE__ */ e.createElement(
|
|
9380
9394
|
"div",
|
|
9381
9395
|
M({
|
|
9382
9396
|
className: [u, c].join(" ").trim().replace(/\s+/g, " "),
|
|
9383
9397
|
style: {
|
|
9384
|
-
"--ring-stroke-dashoffset":
|
|
9398
|
+
"--ring-stroke-dashoffset": g,
|
|
9385
9399
|
"--ring-stroke-dasharray": i
|
|
9386
9400
|
}
|
|
9387
9401
|
}, o),
|
|
9388
|
-
/* @__PURE__ */ e.createElement("div", { id: p, className:
|
|
9402
|
+
/* @__PURE__ */ e.createElement("div", { id: p, className: b }, s),
|
|
9389
9403
|
/* @__PURE__ */ e.createElement(
|
|
9390
9404
|
"div",
|
|
9391
9405
|
{
|
|
@@ -9397,17 +9411,17 @@ const ts = () => {
|
|
|
9397
9411
|
/* @__PURE__ */ e.createElement(
|
|
9398
9412
|
"svg",
|
|
9399
9413
|
{
|
|
9400
|
-
height:
|
|
9401
|
-
width:
|
|
9402
|
-
viewBox: `0 0 ${
|
|
9414
|
+
height: v,
|
|
9415
|
+
width: v,
|
|
9416
|
+
viewBox: `0 0 ${v} ${v}`
|
|
9403
9417
|
},
|
|
9404
9418
|
/* @__PURE__ */ e.createElement(
|
|
9405
9419
|
"circle",
|
|
9406
9420
|
{
|
|
9407
9421
|
className: `${u}__track`,
|
|
9408
|
-
cx:
|
|
9409
|
-
cy:
|
|
9410
|
-
r:
|
|
9422
|
+
cx: v / 2,
|
|
9423
|
+
cy: v / 2,
|
|
9424
|
+
r: h,
|
|
9411
9425
|
strokeWidth: C
|
|
9412
9426
|
}
|
|
9413
9427
|
),
|
|
@@ -9415,13 +9429,13 @@ const ts = () => {
|
|
|
9415
9429
|
"circle",
|
|
9416
9430
|
{
|
|
9417
9431
|
className: `${u}__progress`,
|
|
9418
|
-
cx:
|
|
9419
|
-
cy:
|
|
9420
|
-
r:
|
|
9432
|
+
cx: v / 2,
|
|
9433
|
+
cy: v / 2,
|
|
9434
|
+
r: h,
|
|
9421
9435
|
strokeWidth: C,
|
|
9422
9436
|
strokeDasharray: i,
|
|
9423
|
-
strokeDashoffset:
|
|
9424
|
-
transform: `rotate(-90 ${
|
|
9437
|
+
strokeDashoffset: g,
|
|
9438
|
+
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
9425
9439
|
}
|
|
9426
9440
|
),
|
|
9427
9441
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9497,7 +9511,7 @@ const ms = (o) => {
|
|
|
9497
9511
|
checking: "Checking...",
|
|
9498
9512
|
checked: "Last checked",
|
|
9499
9513
|
ariaLabel: "Check for updates"
|
|
9500
|
-
}, l),
|
|
9514
|
+
}, l), b = () => {
|
|
9501
9515
|
switch (f) {
|
|
9502
9516
|
case "default":
|
|
9503
9517
|
return u.checkForUpdates;
|
|
@@ -9536,22 +9550,22 @@ const ms = (o) => {
|
|
|
9536
9550
|
);
|
|
9537
9551
|
}
|
|
9538
9552
|
}
|
|
9539
|
-
}), L = "pds-refresh-checker",
|
|
9553
|
+
}), L = "pds-refresh-checker", v = `${L}--${t}`, C = x([
|
|
9540
9554
|
`${L}__button`,
|
|
9541
9555
|
f === "working" ? `${L}__button--spinning` : ""
|
|
9542
|
-
]),
|
|
9556
|
+
]), h = n !== null && n > 0 ? `${n}rem` : "100%", i = /* @__PURE__ */ e.createElement("span", { className: `${L}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
9543
9557
|
P,
|
|
9544
9558
|
{
|
|
9545
9559
|
iconName: "rotate",
|
|
9546
9560
|
iconSize: "md",
|
|
9547
9561
|
className: `${L}__icon ${f === "working" ? `${L}__icon--spinning` : ""}`
|
|
9548
9562
|
}
|
|
9549
|
-
)),
|
|
9563
|
+
)), g = /* @__PURE__ */ e.createElement("span", { className: `${L}__label` }, b());
|
|
9550
9564
|
return /* @__PURE__ */ e.createElement(
|
|
9551
9565
|
"div",
|
|
9552
9566
|
M({
|
|
9553
|
-
className: x([L,
|
|
9554
|
-
style: { width:
|
|
9567
|
+
className: x([L, v, a != null ? a : ""]),
|
|
9568
|
+
style: { width: h }
|
|
9555
9569
|
}, c),
|
|
9556
9570
|
/* @__PURE__ */ e.createElement(
|
|
9557
9571
|
"button",
|
|
@@ -9562,7 +9576,7 @@ const ms = (o) => {
|
|
|
9562
9576
|
"aria-live": "polite",
|
|
9563
9577
|
"aria-label": u.ariaLabel
|
|
9564
9578
|
},
|
|
9565
|
-
t === "right" &&
|
|
9579
|
+
t === "right" && g,
|
|
9566
9580
|
/* @__PURE__ */ e.createElement(
|
|
9567
9581
|
xe,
|
|
9568
9582
|
{
|
|
@@ -9572,7 +9586,7 @@ const ms = (o) => {
|
|
|
9572
9586
|
triggerIconSize: "sm"
|
|
9573
9587
|
}
|
|
9574
9588
|
),
|
|
9575
|
-
t === "left" &&
|
|
9589
|
+
t === "left" && g
|
|
9576
9590
|
)
|
|
9577
9591
|
);
|
|
9578
9592
|
}, us = (d) => {
|
|
@@ -9707,8 +9721,8 @@ const ms = (o) => {
|
|
|
9707
9721
|
]);
|
|
9708
9722
|
const a = "pds-stepper", c = "pds-stepper-mobile", o = de(), [m] = Nt(o), f = m.width, p = Number(
|
|
9709
9723
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9710
|
-
) * 16, u = -40,
|
|
9711
|
-
const _ =
|
|
9724
|
+
) * 16, u = -40, b = 2, E = 5, L = t.length, v = t.map((i) => i.isCurrent).lastIndexOf(!0), C = t.map((i, g) => {
|
|
9725
|
+
const _ = g + 1, $ = g === v, k = g < v, z = i.hasError && $, y = (f - L * p) / (L + (L - 2)), H = p + y * 2, N = p + y, V = y + u * -1, I = g === 0, D = g === L - 1;
|
|
9712
9726
|
let S = H;
|
|
9713
9727
|
(I || D) && (S = N);
|
|
9714
9728
|
const T = `${a}__step`, W = [T];
|
|
@@ -9770,8 +9784,8 @@ const ms = (o) => {
|
|
|
9770
9784
|
}
|
|
9771
9785
|
)
|
|
9772
9786
|
);
|
|
9773
|
-
}),
|
|
9774
|
-
const _ =
|
|
9787
|
+
}), h = t.map((i, g) => {
|
|
9788
|
+
const _ = g + 1, $ = g === v, k = g === L - 1, z = i.hasError && $, w = t[v + 1] ? t[v + 1].label : null;
|
|
9775
9789
|
if ($) {
|
|
9776
9790
|
const y = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), _, " of ", L), H = _ / L * 100, N = z ? {
|
|
9777
9791
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
@@ -9806,7 +9820,7 @@ const ms = (o) => {
|
|
|
9806
9820
|
);
|
|
9807
9821
|
}
|
|
9808
9822
|
});
|
|
9809
|
-
if (L >=
|
|
9823
|
+
if (L >= b && L <= E)
|
|
9810
9824
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9811
9825
|
"div",
|
|
9812
9826
|
M({
|
|
@@ -9820,7 +9834,7 @@ const ms = (o) => {
|
|
|
9820
9834
|
className: [c, s].join(" ").trim().replace(/\s+/g, " "),
|
|
9821
9835
|
"data-steps": L
|
|
9822
9836
|
}, l),
|
|
9823
|
-
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` },
|
|
9837
|
+
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` }, h)
|
|
9824
9838
|
));
|
|
9825
9839
|
}, gs = (r) => {
|
|
9826
9840
|
var d = r, {
|
|
@@ -9832,26 +9846,26 @@ const ms = (o) => {
|
|
|
9832
9846
|
"rowData",
|
|
9833
9847
|
"className"
|
|
9834
9848
|
]);
|
|
9835
|
-
const [a] = U(t), [c, o] = U(n), [m, f] = U({ order: "asc", key: "" }), p = (
|
|
9836
|
-
o(c.sort((C,
|
|
9837
|
-
}, u = (
|
|
9838
|
-
o(c.sort((C,
|
|
9839
|
-
},
|
|
9849
|
+
const [a] = U(t), [c, o] = U(n), [m, f] = U({ order: "asc", key: "" }), p = (v) => {
|
|
9850
|
+
o(c.sort((C, h) => C[v].localeCompare(h[v]))), f({ order: "desc", key: v });
|
|
9851
|
+
}, u = (v) => {
|
|
9852
|
+
o(c.sort((C, h) => h[v].localeCompare(C[v]))), f({ order: "asc", key: v });
|
|
9853
|
+
}, b = (v, C) => {
|
|
9840
9854
|
f(me(M({}, m), { key: C })), m.order === "asc" ? p(C) : u(C);
|
|
9841
|
-
}, E = (
|
|
9842
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", M({ className: x([L, s]) }, l), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, a.map((
|
|
9855
|
+
}, E = (v, C) => /* @__PURE__ */ e.createElement("tr", { id: C, key: `table-row-${C}` }, v.map((h, i) => /* @__PURE__ */ e.createElement("td", { key: `${C}-cell-${i}` }, /* @__PURE__ */ e.createElement("span", null, h)))), L = "pds-table";
|
|
9856
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", M({ className: x([L, s]) }, l), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, a.map((v, C) => /* @__PURE__ */ e.createElement("th", { key: `header-${C}` }, v.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${L}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9843
9857
|
"span",
|
|
9844
9858
|
{
|
|
9845
9859
|
className: `${L}__sort-header`,
|
|
9846
|
-
onClick: (
|
|
9860
|
+
onClick: (h) => b(h, C)
|
|
9847
9861
|
},
|
|
9848
|
-
|
|
9862
|
+
v.title
|
|
9849
9863
|
), /* @__PURE__ */ e.createElement(
|
|
9850
9864
|
"button",
|
|
9851
9865
|
{
|
|
9852
9866
|
className: `${L}__sort-button`,
|
|
9853
|
-
title: `Sort by ${
|
|
9854
|
-
onClick: (
|
|
9867
|
+
title: `Sort by ${v.title}`,
|
|
9868
|
+
onClick: (h) => b(h, C),
|
|
9855
9869
|
type: "button"
|
|
9856
9870
|
},
|
|
9857
9871
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9868,7 +9882,7 @@ const ms = (o) => {
|
|
|
9868
9882
|
},
|
|
9869
9883
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "sm" })
|
|
9870
9884
|
)
|
|
9871
|
-
)) : /* @__PURE__ */ e.createElement("span", null,
|
|
9885
|
+
)) : /* @__PURE__ */ e.createElement("span", null, v.title))))), /* @__PURE__ */ e.createElement("tbody", null, c.map((v, C) => E(v, C)))));
|
|
9872
9886
|
}, _s = (m) => {
|
|
9873
9887
|
var f = m, {
|
|
9874
9888
|
appendIds: t = !1,
|
|
@@ -9907,11 +9921,11 @@ const ms = (o) => {
|
|
|
9907
9921
|
"=",
|
|
9908
9922
|
"|",
|
|
9909
9923
|
"~"
|
|
9910
|
-
],
|
|
9924
|
+
], b = `#${a} h2:not(.${r}), h3:not(.${r})`, E = () => {
|
|
9911
9925
|
const [z, w] = U([]);
|
|
9912
9926
|
return oe(() => {
|
|
9913
9927
|
const y = Array.from(
|
|
9914
|
-
document.querySelectorAll(
|
|
9928
|
+
document.querySelectorAll(b)
|
|
9915
9929
|
);
|
|
9916
9930
|
y.map((N) => {
|
|
9917
9931
|
u.forEach((V) => {
|
|
@@ -9933,7 +9947,7 @@ const ms = (o) => {
|
|
|
9933
9947
|
title: H
|
|
9934
9948
|
});
|
|
9935
9949
|
}), w;
|
|
9936
|
-
}, { nestedHeadings:
|
|
9950
|
+
}, { nestedHeadings: v } = E(), [C, h] = U();
|
|
9937
9951
|
((z) => {
|
|
9938
9952
|
const w = de({});
|
|
9939
9953
|
oe(() => {
|
|
@@ -9956,12 +9970,12 @@ const ms = (o) => {
|
|
|
9956
9970
|
}, H = new IntersectionObserver(y, {
|
|
9957
9971
|
rootMargin: "0px 0px -20% 0px"
|
|
9958
9972
|
}), N = Array.from(
|
|
9959
|
-
document.querySelectorAll(
|
|
9973
|
+
document.querySelectorAll(b)
|
|
9960
9974
|
);
|
|
9961
9975
|
return N.forEach((V) => H.observe(V)), () => H.disconnect();
|
|
9962
9976
|
}, [z]);
|
|
9963
|
-
})(
|
|
9964
|
-
const
|
|
9977
|
+
})(h);
|
|
9978
|
+
const g = (z) => {
|
|
9965
9979
|
typeof window != "undefined" && window.location.hash !== `#${z}` && window.history.pushState({}, "", `#${z}`);
|
|
9966
9980
|
}, _ = (z) => {
|
|
9967
9981
|
document.querySelector(`#${z}`).scrollIntoView({
|
|
@@ -9969,7 +9983,7 @@ const ms = (o) => {
|
|
|
9969
9983
|
block: "start"
|
|
9970
9984
|
});
|
|
9971
9985
|
}, $ = (z, w) => {
|
|
9972
|
-
z.preventDefault(), t &&
|
|
9986
|
+
z.preventDefault(), t && g(w), _(w);
|
|
9973
9987
|
}, k = ({ headings: z }) => /* @__PURE__ */ e.createElement("ul", { className: `${p}__list ${p}__list--top-level` }, z.map((w) => /* @__PURE__ */ e.createElement("li", { key: w.id, className: `${p}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9974
9988
|
"a",
|
|
9975
9989
|
{
|
|
@@ -10012,7 +10026,7 @@ const ms = (o) => {
|
|
|
10012
10026
|
},
|
|
10013
10027
|
l
|
|
10014
10028
|
),
|
|
10015
|
-
/* @__PURE__ */ e.createElement(k, { headings:
|
|
10029
|
+
/* @__PURE__ */ e.createElement(k, { headings: v, activeID: C })
|
|
10016
10030
|
);
|
|
10017
10031
|
}, Es = (c) => {
|
|
10018
10032
|
var o = c, {
|
|
@@ -10035,49 +10049,49 @@ const ms = (o) => {
|
|
|
10035
10049
|
oe(() => {
|
|
10036
10050
|
l !== void 0 && p(l);
|
|
10037
10051
|
}, [l]);
|
|
10038
|
-
const u = (
|
|
10039
|
-
const C =
|
|
10052
|
+
const u = (v) => {
|
|
10053
|
+
const C = v.currentTarget.getAttribute("data-tabnumber");
|
|
10040
10054
|
if (C) {
|
|
10041
|
-
const
|
|
10042
|
-
p(
|
|
10055
|
+
const h = parseInt(C, 10);
|
|
10056
|
+
p(h);
|
|
10043
10057
|
}
|
|
10044
|
-
},
|
|
10058
|
+
}, b = de([]);
|
|
10045
10059
|
oe(() => {
|
|
10046
10060
|
s(f);
|
|
10047
10061
|
}, [f, s]), oe(() => {
|
|
10048
|
-
const
|
|
10049
|
-
if (f >
|
|
10062
|
+
const v = b.current.length - 1;
|
|
10063
|
+
if (f > v) {
|
|
10050
10064
|
p(0);
|
|
10051
10065
|
return;
|
|
10052
10066
|
} else if (f < 0) {
|
|
10053
|
-
p(
|
|
10067
|
+
p(v);
|
|
10054
10068
|
return;
|
|
10055
10069
|
}
|
|
10056
10070
|
}, [f]);
|
|
10057
|
-
const E = (
|
|
10058
|
-
const
|
|
10059
|
-
let i =
|
|
10060
|
-
i || (i = C == "next" ?
|
|
10061
|
-
}, L = (
|
|
10062
|
-
const C =
|
|
10071
|
+
const E = (v, C) => {
|
|
10072
|
+
const h = f;
|
|
10073
|
+
let i = b.current[C === "next" ? h + 1 < b.current.length ? h + 1 : 0 : h - 1 >= 0 ? h - 1 : b.current.length - 1];
|
|
10074
|
+
i || (i = C == "next" ? b.current[v + 1] == null ? b.current[0] : b.current[v + 1] : b.current[v - 1]), i.focus();
|
|
10075
|
+
}, L = (v) => {
|
|
10076
|
+
const C = b.current.length, h = () => {
|
|
10063
10077
|
E((f + 1) % C, "next"), p(f + 1);
|
|
10064
10078
|
}, i = () => {
|
|
10065
10079
|
E((f - 1 + C) % C, "prev"), p(f - 1);
|
|
10066
|
-
},
|
|
10080
|
+
}, g = () => {
|
|
10067
10081
|
E(0), p(0);
|
|
10068
10082
|
}, _ = () => {
|
|
10069
10083
|
E(C - 1), p(C - 1);
|
|
10070
10084
|
}, $ = () => {
|
|
10071
|
-
|
|
10085
|
+
b.current[f].focus();
|
|
10072
10086
|
}, z = {
|
|
10073
|
-
ArrowRight:
|
|
10087
|
+
ArrowRight: h,
|
|
10074
10088
|
ArrowLeft: i,
|
|
10075
|
-
Home:
|
|
10089
|
+
Home: g,
|
|
10076
10090
|
End: _,
|
|
10077
10091
|
Space: $,
|
|
10078
10092
|
Enter: $
|
|
10079
|
-
}[
|
|
10080
|
-
z && (
|
|
10093
|
+
}[v.code];
|
|
10094
|
+
z && (v.preventDefault(), z());
|
|
10081
10095
|
};
|
|
10082
10096
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", M({ className: x([m, d]) }, a), /* @__PURE__ */ e.createElement(
|
|
10083
10097
|
"div",
|
|
@@ -10087,28 +10101,28 @@ const ms = (o) => {
|
|
|
10087
10101
|
"aria-label": t,
|
|
10088
10102
|
"aria-orientation": "horizontal"
|
|
10089
10103
|
},
|
|
10090
|
-
r.map(({ disabled:
|
|
10104
|
+
r.map(({ disabled: v, icon: C, tabId: h, tabLabel: i, tally: g }, _) => /* @__PURE__ */ e.createElement(
|
|
10091
10105
|
"button",
|
|
10092
10106
|
{
|
|
10093
10107
|
className: `${m}__tab`,
|
|
10094
10108
|
"aria-selected": _ == f,
|
|
10095
10109
|
"data-tabnumber": _,
|
|
10096
10110
|
role: "tab",
|
|
10097
|
-
id:
|
|
10111
|
+
id: h,
|
|
10098
10112
|
onKeyDown: ($) => {
|
|
10099
10113
|
$.preventDefault(), L($);
|
|
10100
10114
|
},
|
|
10101
10115
|
key: _,
|
|
10102
|
-
ref: ($) =>
|
|
10116
|
+
ref: ($) => v ? null : b.current[_] = $,
|
|
10103
10117
|
"aria-controls": `${m}__tab--${_}`,
|
|
10104
10118
|
tabIndex: f === _ ? 0 : -1,
|
|
10105
|
-
"aria-disabled": !!
|
|
10106
|
-
onClick:
|
|
10119
|
+
"aria-disabled": !!v,
|
|
10120
|
+
onClick: v ? null : u,
|
|
10107
10121
|
type: "button"
|
|
10108
10122
|
},
|
|
10109
|
-
/* @__PURE__ */ e.createElement("div", { key: C, className: `${m}__tab-label` }, C ? /* @__PURE__ */ e.createElement(P, { iconName: C, iconSize: "md" }) : null, " ", i, r[_].tally ? /* @__PURE__ */ e.createElement($t, { label:
|
|
10123
|
+
/* @__PURE__ */ e.createElement("div", { key: C, className: `${m}__tab-label` }, C ? /* @__PURE__ */ e.createElement(P, { iconName: C, iconSize: "md" }) : null, " ", i, r[_].tally ? /* @__PURE__ */ e.createElement($t, { label: g.label, type: g.type }) : null)
|
|
10110
10124
|
))
|
|
10111
|
-
), r.map(({ disabled:
|
|
10125
|
+
), r.map(({ disabled: v, icon: C, panelContent: h, tabLabel: i, tally: g }, _) => /* @__PURE__ */ e.createElement(
|
|
10112
10126
|
"div",
|
|
10113
10127
|
{
|
|
10114
10128
|
className: `${m}__panel`,
|
|
@@ -10126,13 +10140,13 @@ const ms = (o) => {
|
|
|
10126
10140
|
"data-tabnumber": _,
|
|
10127
10141
|
key: _,
|
|
10128
10142
|
onKeyDown: L,
|
|
10129
|
-
"aria-disabled": !!
|
|
10143
|
+
"aria-disabled": !!v,
|
|
10130
10144
|
"aria-controls": `tabpanel_${_}`,
|
|
10131
10145
|
tabIndex: f === _ ? 1 : -1,
|
|
10132
|
-
onClick:
|
|
10146
|
+
onClick: v ? null : u,
|
|
10133
10147
|
type: "button"
|
|
10134
10148
|
},
|
|
10135
|
-
/* @__PURE__ */ e.createElement("div", { key: C, className: `${m}__tab-label` }, C ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: C }) : null, " ", i, r[_].tally ? /* @__PURE__ */ e.createElement($t, { label:
|
|
10149
|
+
/* @__PURE__ */ e.createElement("div", { key: C, className: `${m}__tab-label` }, C ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: C }) : null, " ", i, r[_].tally ? /* @__PURE__ */ e.createElement($t, { label: g.label, type: g.type }) : null),
|
|
10136
10150
|
_ == f ? /* @__PURE__ */ e.createElement(
|
|
10137
10151
|
P,
|
|
10138
10152
|
{
|
|
@@ -10155,7 +10169,7 @@ const ms = (o) => {
|
|
|
10155
10169
|
className: `${m}__panel-content`,
|
|
10156
10170
|
hidden: _ != f
|
|
10157
10171
|
},
|
|
10158
|
-
|
|
10172
|
+
h
|
|
10159
10173
|
)
|
|
10160
10174
|
))));
|
|
10161
10175
|
};
|
|
@@ -10202,16 +10216,16 @@ const K2 = (t) => {
|
|
|
10202
10216
|
"tagLabel",
|
|
10203
10217
|
"className"
|
|
10204
10218
|
]);
|
|
10205
|
-
const [f, p] = U(!0), u = "pds-tag",
|
|
10219
|
+
const [f, p] = U(!0), u = "pds-tag", b = r ? `${u}--${r}` : `${u}--${K2(d)}`, E = f ? null : "pds-tag--hide", L = () => {
|
|
10206
10220
|
p((i) => !i);
|
|
10207
10221
|
};
|
|
10208
|
-
let
|
|
10209
|
-
return t && !n && we(t) ? (
|
|
10210
|
-
|
|
10222
|
+
let v, C, h;
|
|
10223
|
+
return t && !n && we(t) ? (v = t.type, C = t.props.href ? "href" : "to", h = C === "href" ? t.props.href : t.props.to) : (v = "span", C = null, h = null), /* @__PURE__ */ e.createElement(
|
|
10224
|
+
v,
|
|
10211
10225
|
M({
|
|
10212
|
-
href: C === "href" ?
|
|
10213
|
-
to: C === "to" ?
|
|
10214
|
-
className: [u,
|
|
10226
|
+
href: C === "href" ? h : null,
|
|
10227
|
+
to: C === "to" ? h : null,
|
|
10228
|
+
className: [u, b, E, a].join(" ").trim().replace(/\s+/g, " ")
|
|
10215
10229
|
}, c),
|
|
10216
10230
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__label`, title: d }, X2(d, 20)),
|
|
10217
10231
|
n ? /* @__PURE__ */ e.createElement(
|
|
@@ -10246,9 +10260,9 @@ const K2 = (t) => {
|
|
|
10246
10260
|
image: f,
|
|
10247
10261
|
alt: p,
|
|
10248
10262
|
name: u,
|
|
10249
|
-
title:
|
|
10263
|
+
title: b,
|
|
10250
10264
|
org: E
|
|
10251
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("div", { className: `${a}__image ${a}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: f, alt: p })), u && /* @__PURE__ */ e.createElement("div", { className: `${a}__name` }, u),
|
|
10265
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("div", { className: `${a}__image ${a}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: f, alt: p })), u && /* @__PURE__ */ e.createElement("div", { className: `${a}__name` }, u), b && /* @__PURE__ */ e.createElement("div", { className: `${a}__title` }, b), E && /* @__PURE__ */ e.createElement("div", { className: `${a}__org` }, E)), o = (f) => we(f.linkContent) ? Ie(f.linkContent, {
|
|
10252
10266
|
children: /* @__PURE__ */ e.createElement(c, M({}, f)),
|
|
10253
10267
|
className: `${a}__item`
|
|
10254
10268
|
}) : /* @__PURE__ */ e.createElement("span", { className: `${a}__item` }, /* @__PURE__ */ e.createElement(c, M({}, f))), m = () => t.map((f, p) => /* @__PURE__ */ e.createElement(U1, { key: `tile-${p}` }, o(f), /* @__PURE__ */ e.createElement("div", { className: "pds-tile__separator" })));
|
|
@@ -10377,7 +10391,7 @@ const K2 = (t) => {
|
|
|
10377
10391
|
[f, p]
|
|
10378
10392
|
);
|
|
10379
10393
|
}, ys = (L) => {
|
|
10380
|
-
var
|
|
10394
|
+
var v = L, {
|
|
10381
10395
|
alignContent: t = "flex-start",
|
|
10382
10396
|
alignItems: n = "stretch",
|
|
10383
10397
|
flexDirection: s = "row",
|
|
@@ -10391,8 +10405,8 @@ const K2 = (t) => {
|
|
|
10391
10405
|
mobileGap: f,
|
|
10392
10406
|
mobileJustifyContent: p,
|
|
10393
10407
|
children: u,
|
|
10394
|
-
className:
|
|
10395
|
-
} =
|
|
10408
|
+
className: b
|
|
10409
|
+
} = v, E = A(v, [
|
|
10396
10410
|
"alignContent",
|
|
10397
10411
|
"alignItems",
|
|
10398
10412
|
"flexDirection",
|
|
@@ -10408,22 +10422,22 @@ const K2 = (t) => {
|
|
|
10408
10422
|
"children",
|
|
10409
10423
|
"className"
|
|
10410
10424
|
]);
|
|
10411
|
-
let
|
|
10425
|
+
let h = H1() <= 640;
|
|
10412
10426
|
const i = ve(ye);
|
|
10413
|
-
i && (
|
|
10414
|
-
const
|
|
10427
|
+
i && (h = i.isMobile);
|
|
10428
|
+
const g = "pds-flex", _ = `${g}-container`, $ = h ? `${_}--mobile` : null;
|
|
10415
10429
|
let k = null;
|
|
10416
|
-
|
|
10430
|
+
h ? k = `${g}-direction--${o}` : s !== "row" && (k = `${g}-direction--${s}`);
|
|
10417
10431
|
let z = null;
|
|
10418
|
-
|
|
10432
|
+
h ? m ? m !== "nowrap" && (z = `${g}-wrap--${m}`) : l !== "nowrap" && (z = `${g}-wrap--${l}`) : l !== "nowrap" && (z = `${g}-wrap--${l}`);
|
|
10419
10433
|
let w = null;
|
|
10420
|
-
|
|
10434
|
+
h ? p ? p !== "flex-start" && (w = `${g}-justify--${p}`) : d !== "flex-start" && (w = `${g}-justify--${d}`) : d !== "flex-start" && (w = `${g}-justify--${d}`);
|
|
10421
10435
|
let y = null;
|
|
10422
|
-
|
|
10436
|
+
h ? a ? a !== "stretch" && (y = `${g}-align-items--${a}`) : n !== "stretch" && (y = `${g}-align-items--${n}`) : n !== "stretch" && (y = `${g}-align-items--${n}`);
|
|
10423
10437
|
let H = null;
|
|
10424
|
-
|
|
10438
|
+
h ? c ? c !== "flex-start" && (H = `${g}-align-content--${c}`) : t !== "flex-start" && (H = `${g}-align-content--${t}`) : t !== "flex-start" && (H = `${g}-align-content--${t}`);
|
|
10425
10439
|
let N = null;
|
|
10426
|
-
return
|
|
10440
|
+
return h ? f ? f !== "none" && (N = `${g}-gap--${f}`) : r !== "none" && (N = `${g}-gap--${r}`) : r !== "none" && (N = `${g}-gap--${r}`), /* @__PURE__ */ e.createElement(
|
|
10427
10441
|
"div",
|
|
10428
10442
|
M({
|
|
10429
10443
|
className: x([
|
|
@@ -10435,7 +10449,7 @@ const K2 = (t) => {
|
|
|
10435
10449
|
y,
|
|
10436
10450
|
H,
|
|
10437
10451
|
N,
|
|
10438
|
-
|
|
10452
|
+
b != null ? b : ""
|
|
10439
10453
|
])
|
|
10440
10454
|
}, E),
|
|
10441
10455
|
u
|
|
@@ -10461,11 +10475,11 @@ const K2 = (t) => {
|
|
|
10461
10475
|
]);
|
|
10462
10476
|
const m = "pds-sidebar-layout", f = `pds-grid pds-grid--${n}`, p = `${m}--${r}`;
|
|
10463
10477
|
let u = !1;
|
|
10464
|
-
const
|
|
10465
|
-
|
|
10478
|
+
const b = ve(ye);
|
|
10479
|
+
b && (u = b.isMobile);
|
|
10466
10480
|
const E = Fe(t);
|
|
10467
|
-
let L = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10",
|
|
10468
|
-
r === "narrow" && (L = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10",
|
|
10481
|
+
let L = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", v = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
10482
|
+
r === "narrow" && (L = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", v = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (L = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", v = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10469
10483
|
const C = /* @__PURE__ */ e.createElement(
|
|
10470
10484
|
"div",
|
|
10471
10485
|
{
|
|
@@ -10473,11 +10487,11 @@ const K2 = (t) => {
|
|
|
10473
10487
|
className: `${m}__main ${u ? "pds-grid-item" : L}`
|
|
10474
10488
|
},
|
|
10475
10489
|
E.content
|
|
10476
|
-
),
|
|
10490
|
+
), h = /* @__PURE__ */ e.createElement(
|
|
10477
10491
|
"div",
|
|
10478
10492
|
{
|
|
10479
10493
|
key: "sidebar",
|
|
10480
|
-
className: `${m}__side ${u ? "pds-grid-item" :
|
|
10494
|
+
className: `${m}__side ${u ? "pds-grid-item" : v}`
|
|
10481
10495
|
},
|
|
10482
10496
|
E.sidebar
|
|
10483
10497
|
);
|
|
@@ -10491,7 +10505,7 @@ const K2 = (t) => {
|
|
|
10491
10505
|
d != null ? d : ""
|
|
10492
10506
|
])
|
|
10493
10507
|
}, a),
|
|
10494
|
-
u ? l === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
10508
|
+
u ? l === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, C) : /* @__PURE__ */ e.createElement(e.Fragment, null, C, h) : s === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, C) : /* @__PURE__ */ e.createElement(e.Fragment, null, C, h)
|
|
10495
10509
|
);
|
|
10496
10510
|
}, ks = (l) => {
|
|
10497
10511
|
var r = l, {
|
|
@@ -10542,10 +10556,10 @@ const K2 = (t) => {
|
|
|
10542
10556
|
l
|
|
10543
10557
|
])
|
|
10544
10558
|
}, r),
|
|
10545
|
-
p.map((u,
|
|
10559
|
+
p.map((u, b) => /* @__PURE__ */ e.createElement(
|
|
10546
10560
|
"div",
|
|
10547
10561
|
{
|
|
10548
|
-
key:
|
|
10562
|
+
key: b,
|
|
10549
10563
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
10550
10564
|
},
|
|
10551
10565
|
u
|
|
@@ -10565,19 +10579,19 @@ const K2 = (t) => {
|
|
|
10565
10579
|
"verticalAlign",
|
|
10566
10580
|
"className"
|
|
10567
10581
|
]);
|
|
10568
|
-
const o = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, f = `${o}--${l}`, p = ["pds-grid-item--md-6"], u = ["pds-grid-item--md-4", "pds-grid-item--lg-3"],
|
|
10569
|
-
let L,
|
|
10582
|
+
const o = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, f = `${o}--${l}`, p = ["pds-grid-item--md-6"], u = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], b = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], E = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
10583
|
+
let L, v;
|
|
10570
10584
|
switch (s) {
|
|
10571
10585
|
case "equal":
|
|
10572
|
-
L = E.concat(p),
|
|
10586
|
+
L = E.concat(p), v = E.concat(p);
|
|
10573
10587
|
break;
|
|
10574
10588
|
case "one-third-start":
|
|
10575
|
-
L = E.concat(u),
|
|
10589
|
+
L = E.concat(u), v = E.concat(b);
|
|
10576
10590
|
break;
|
|
10577
10591
|
case "one-third-end":
|
|
10578
|
-
L = E.concat(
|
|
10592
|
+
L = E.concat(b), v = E.concat(u);
|
|
10579
10593
|
}
|
|
10580
|
-
const C = Fe(t),
|
|
10594
|
+
const C = Fe(t), h = C["first-item"], i = C["second-item"];
|
|
10581
10595
|
return /* @__PURE__ */ e.createElement(
|
|
10582
10596
|
"div",
|
|
10583
10597
|
M({
|
|
@@ -10588,8 +10602,8 @@ const K2 = (t) => {
|
|
|
10588
10602
|
r
|
|
10589
10603
|
])
|
|
10590
10604
|
}, d),
|
|
10591
|
-
/* @__PURE__ */ e.createElement("div", { className: L.join(" ").trim() },
|
|
10592
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
10605
|
+
/* @__PURE__ */ e.createElement("div", { className: L.join(" ").trim() }, h),
|
|
10606
|
+
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() }, i)
|
|
10593
10607
|
);
|
|
10594
10608
|
}, Ns = (t, n) => {
|
|
10595
10609
|
const [s, l] = U(!1), r = Zt(
|