@pantheon-systems/pds-toolkit-react 1.0.0-dev.224 → 1.0.0-dev.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_dist/index.js
CHANGED
|
@@ -788,7 +788,7 @@ const et = () => Math.random().toString(32).substring(2, 13), _1 = (t, s) => {
|
|
|
788
788
|
"uniqueId",
|
|
789
789
|
"className"
|
|
790
790
|
]);
|
|
791
|
-
const
|
|
791
|
+
const f = "pds-avatar", u = `${f}--${r}`, p = n ? `${f}--image` : null, E = {
|
|
792
792
|
backgroundImage: i ? `var(--pds-color-gradient-avatar-${Y1(i)})` : null,
|
|
793
793
|
borderRadius: "100%",
|
|
794
794
|
height: "100%",
|
|
@@ -796,10 +796,10 @@ const et = () => Math.random().toString(32).substring(2, 13), _1 = (t, s) => {
|
|
|
796
796
|
display: "flex",
|
|
797
797
|
alignItems: "center",
|
|
798
798
|
justifyContent: "center"
|
|
799
|
-
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${
|
|
799
|
+
}, y = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${f}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: E }, s && /* @__PURE__ */ e.createElement(R, { iconName: "user", className: `${f}__user-icon` })), v = /* @__PURE__ */ e.createElement("span", { className: `${f}__content` }, y), $ = be(l) ? xe(
|
|
800
800
|
l,
|
|
801
801
|
he(L({}, l.props), {
|
|
802
|
-
className: `${
|
|
802
|
+
className: `${f}__content ${f}__content--link`,
|
|
803
803
|
"aria-label": t
|
|
804
804
|
}),
|
|
805
805
|
y
|
|
@@ -807,7 +807,7 @@ const et = () => Math.random().toString(32).substring(2, 13), _1 = (t, s) => {
|
|
|
807
807
|
return /* @__PURE__ */ e.createElement(
|
|
808
808
|
"div",
|
|
809
809
|
L({
|
|
810
|
-
className: x([
|
|
810
|
+
className: x([f, u, p, a])
|
|
811
811
|
}, c),
|
|
812
812
|
l ? $ : v
|
|
813
813
|
);
|
|
@@ -847,13 +847,13 @@ const et = () => Math.random().toString(32).substring(2, 13), _1 = (t, s) => {
|
|
|
847
847
|
"statusType",
|
|
848
848
|
"className"
|
|
849
849
|
]);
|
|
850
|
-
const d = "pds-status-badge",
|
|
850
|
+
const d = "pds-status-badge", f = `${d}--${t}`, u = `${d}__status`, p = r ? `${u}--${r}` : null;
|
|
851
851
|
return /* @__PURE__ */ e.createElement(
|
|
852
852
|
"div",
|
|
853
853
|
L({
|
|
854
|
-
className: [d,
|
|
854
|
+
className: [d, f, i != null ? i : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
855
855
|
}, a),
|
|
856
|
-
s === !0 && /* @__PURE__ */ e.createElement("span", { className: [u,
|
|
856
|
+
s === !0 && /* @__PURE__ */ e.createElement("span", { className: [u, p].join(" ").trim() }, r && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, l, " ", r)),
|
|
857
857
|
/* @__PURE__ */ e.createElement("span", { className: `${d}__label` }, n)
|
|
858
858
|
);
|
|
859
859
|
}, _t = (i) => {
|
|
@@ -885,7 +885,7 @@ const et = () => Math.random().toString(32).substring(2, 13), _1 = (t, s) => {
|
|
|
885
885
|
};
|
|
886
886
|
_t.displayName = "Tally";
|
|
887
887
|
const zt = 300, Q1 = 400, Fe = (u) => {
|
|
888
|
-
var
|
|
888
|
+
var p = u, {
|
|
889
889
|
content: t,
|
|
890
890
|
customTrigger: s = null,
|
|
891
891
|
offsetValue: n = 8,
|
|
@@ -896,7 +896,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
896
896
|
triggerIconSize: c = "sm",
|
|
897
897
|
zIndex: o = Q1,
|
|
898
898
|
className: d
|
|
899
|
-
} =
|
|
899
|
+
} = p, f = S(p, [
|
|
900
900
|
"content",
|
|
901
901
|
"customTrigger",
|
|
902
902
|
"offsetValue",
|
|
@@ -911,10 +911,10 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
911
911
|
const [b, E] = Z(!1), y = typeof s, v = "pds-tooltip", $ = x([
|
|
912
912
|
`${v}__trigger-custom`,
|
|
913
913
|
y === "string" ? `${v}__trigger-text` : null
|
|
914
|
-
]),
|
|
914
|
+
]), h = x([
|
|
915
915
|
`${v}__trigger`,
|
|
916
916
|
`${v}__trigger--${a}`
|
|
917
|
-
]), { refs: m, floatingStyles:
|
|
917
|
+
]), { refs: m, floatingStyles: g, context: _ } = Ve({
|
|
918
918
|
placement: l,
|
|
919
919
|
open: b,
|
|
920
920
|
onOpenChange: E,
|
|
@@ -930,7 +930,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
930
930
|
H,
|
|
931
931
|
w
|
|
932
932
|
]);
|
|
933
|
-
return /* @__PURE__ */ e.createElement("div", L({ className: x([v, d != null ? d : ""]) },
|
|
933
|
+
return /* @__PURE__ */ e.createElement("div", L({ className: x([v, d != null ? d : ""]) }, f), s ? /* @__PURE__ */ e.createElement(
|
|
934
934
|
"span",
|
|
935
935
|
L({
|
|
936
936
|
className: $,
|
|
@@ -941,7 +941,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
941
941
|
"button",
|
|
942
942
|
L({
|
|
943
943
|
"aria-label": r,
|
|
944
|
-
className:
|
|
944
|
+
className: h,
|
|
945
945
|
ref: m.setReference
|
|
946
946
|
}, z()),
|
|
947
947
|
/* @__PURE__ */ e.createElement(
|
|
@@ -957,7 +957,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
957
957
|
L({
|
|
958
958
|
className: `${v}__container`,
|
|
959
959
|
ref: m.setFloating,
|
|
960
|
-
style: he(L({},
|
|
960
|
+
style: he(L({}, g), { zIndex: o })
|
|
961
961
|
}, k()),
|
|
962
962
|
t
|
|
963
963
|
)));
|
|
@@ -977,10 +977,10 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
977
977
|
"componentWidth",
|
|
978
978
|
"className"
|
|
979
979
|
]);
|
|
980
|
-
const d = "pds-branch-diff",
|
|
981
|
-
let u =
|
|
980
|
+
const d = "pds-branch-diff", f = Math.max(t, n);
|
|
981
|
+
let u = f > 0 ? n / f * 100 : 0, p = f > 0 ? t / f * 100 : 0;
|
|
982
982
|
const b = 10;
|
|
983
|
-
u < b ? (u = b,
|
|
983
|
+
u < b ? (u = b, p = 100 - b) : p < b && (p = b, u = 100 - b);
|
|
984
984
|
const E = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
985
985
|
return /* @__PURE__ */ e.createElement(
|
|
986
986
|
"div",
|
|
@@ -1013,7 +1013,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1013
1013
|
"div",
|
|
1014
1014
|
{
|
|
1015
1015
|
className: `${d}__ahead-line`,
|
|
1016
|
-
style: { width: `${
|
|
1016
|
+
style: { width: `${p}%` }
|
|
1017
1017
|
}
|
|
1018
1018
|
))
|
|
1019
1019
|
}
|
|
@@ -1176,11 +1176,11 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1176
1176
|
"size",
|
|
1177
1177
|
"className"
|
|
1178
1178
|
]);
|
|
1179
|
-
const d = "pds-spinner",
|
|
1179
|
+
const d = "pds-spinner", f = t !== "full-color" ? `${d}--${t}` : null, u = `${d}--${r}`, p = s ? `${d}--inline` : null;
|
|
1180
1180
|
return /* @__PURE__ */ e.createElement(
|
|
1181
1181
|
"span",
|
|
1182
1182
|
L({
|
|
1183
|
-
className: [d,
|
|
1183
|
+
className: [d, f, p, u, i].join(" ").trim().replace(/\s+/g, " "),
|
|
1184
1184
|
role: "status",
|
|
1185
1185
|
"aria-hidden": "true"
|
|
1186
1186
|
}, a),
|
|
@@ -1200,9 +1200,9 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1200
1200
|
isSplitButton: c = !1,
|
|
1201
1201
|
label: o,
|
|
1202
1202
|
onClick: d,
|
|
1203
|
-
size:
|
|
1203
|
+
size: f = "md",
|
|
1204
1204
|
variant: u = "primary",
|
|
1205
|
-
className:
|
|
1205
|
+
className: p = ""
|
|
1206
1206
|
} = v, b = S(v, [
|
|
1207
1207
|
"ariaLabel",
|
|
1208
1208
|
"buttonType",
|
|
@@ -1218,24 +1218,24 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1218
1218
|
"variant",
|
|
1219
1219
|
"className"
|
|
1220
1220
|
]);
|
|
1221
|
-
const $ = "pds-button",
|
|
1222
|
-
let
|
|
1223
|
-
switch (
|
|
1221
|
+
const $ = "pds-button", h = f !== "md" ? `${$}--${f}` : null, m = u !== "primary" ? `${$}--${u}` : null;
|
|
1222
|
+
let g;
|
|
1223
|
+
switch (f) {
|
|
1224
1224
|
case "sm":
|
|
1225
|
-
|
|
1225
|
+
g = "sm";
|
|
1226
1226
|
break;
|
|
1227
1227
|
case "md":
|
|
1228
|
-
|
|
1228
|
+
g = "md";
|
|
1229
1229
|
break;
|
|
1230
1230
|
case "lg":
|
|
1231
|
-
|
|
1231
|
+
g = "lg";
|
|
1232
1232
|
}
|
|
1233
1233
|
const _ = /* @__PURE__ */ e.createElement(
|
|
1234
1234
|
R,
|
|
1235
1235
|
{
|
|
1236
1236
|
key: "icon",
|
|
1237
1237
|
iconName: r,
|
|
1238
|
-
iconSize:
|
|
1238
|
+
iconSize: g,
|
|
1239
1239
|
className: `${$}__icon`
|
|
1240
1240
|
}
|
|
1241
1241
|
);
|
|
@@ -1246,10 +1246,10 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1246
1246
|
type: s,
|
|
1247
1247
|
className: x([
|
|
1248
1248
|
$,
|
|
1249
|
-
|
|
1249
|
+
h,
|
|
1250
1250
|
m,
|
|
1251
1251
|
i && `${$}--full-width`,
|
|
1252
|
-
|
|
1252
|
+
p
|
|
1253
1253
|
]),
|
|
1254
1254
|
disabled: n || a,
|
|
1255
1255
|
"aria-label": t,
|
|
@@ -1278,35 +1278,35 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1278
1278
|
"variant",
|
|
1279
1279
|
"className"
|
|
1280
1280
|
]);
|
|
1281
|
-
const
|
|
1281
|
+
const f = "pds-button-link", u = "pds-button", p = r !== "md" ? `${u}--${r}` : null, b = i !== "primary" ? `${u}--${i}` : null, E = x([
|
|
1282
1282
|
u,
|
|
1283
|
-
|
|
1283
|
+
p,
|
|
1284
1284
|
b
|
|
1285
1285
|
]), y = be(l) ? l.props.children : null, v = /* @__PURE__ */ e.createElement(
|
|
1286
1286
|
R,
|
|
1287
1287
|
{
|
|
1288
1288
|
iconName: n,
|
|
1289
1289
|
iconSize: r,
|
|
1290
|
-
className: `${
|
|
1290
|
+
className: `${f}__icon`,
|
|
1291
1291
|
key: n
|
|
1292
1292
|
}
|
|
1293
1293
|
);
|
|
1294
1294
|
let $ = [y];
|
|
1295
1295
|
s === "icon-start" && n ? $ = [v, y] : s === "icon-end" && n && ($ = [y, v]);
|
|
1296
|
-
const
|
|
1296
|
+
const h = be(l) ? xe(l, {
|
|
1297
1297
|
className: E,
|
|
1298
1298
|
children: $
|
|
1299
1299
|
}) : null;
|
|
1300
1300
|
return t ? /* @__PURE__ */ e.createElement(
|
|
1301
1301
|
dt,
|
|
1302
1302
|
{
|
|
1303
|
-
className: x([
|
|
1303
|
+
className: x([f, a != null ? a : ""]),
|
|
1304
1304
|
disabled: !0,
|
|
1305
1305
|
label: $,
|
|
1306
1306
|
size: r,
|
|
1307
1307
|
variant: i
|
|
1308
1308
|
}
|
|
1309
|
-
) : /* @__PURE__ */ e.createElement("span", L({ className: x([
|
|
1309
|
+
) : /* @__PURE__ */ e.createElement("span", L({ className: x([f, a != null ? a : ""]) }, c), h);
|
|
1310
1310
|
}, e2 = (t, s) => {
|
|
1311
1311
|
const [n, l] = Z(!1), r = s == null ? void 0 : s.duration;
|
|
1312
1312
|
return ce(() => {
|
|
@@ -1324,8 +1324,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
})];
|
|
1326
1326
|
}, vt = Ze(
|
|
1327
|
-
(
|
|
1328
|
-
var b =
|
|
1327
|
+
(p, u) => {
|
|
1328
|
+
var b = p, {
|
|
1329
1329
|
ariaLabel: t,
|
|
1330
1330
|
buttonType: s = "button",
|
|
1331
1331
|
disabled: n = !1,
|
|
@@ -1336,7 +1336,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1336
1336
|
size: c = "md",
|
|
1337
1337
|
variant: o = "standard",
|
|
1338
1338
|
className: d
|
|
1339
|
-
} = b,
|
|
1339
|
+
} = b, f = S(b, [
|
|
1340
1340
|
"ariaLabel",
|
|
1341
1341
|
"buttonType",
|
|
1342
1342
|
"disabled",
|
|
@@ -1353,18 +1353,18 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1353
1353
|
hide: `${E}--hide`,
|
|
1354
1354
|
scaleIn: `${E}--scaleIn`
|
|
1355
1355
|
};
|
|
1356
|
-
let
|
|
1356
|
+
let h, m;
|
|
1357
1357
|
switch (c) {
|
|
1358
1358
|
case "sm":
|
|
1359
|
-
m = "md",
|
|
1359
|
+
m = "md", h = 8;
|
|
1360
1360
|
break;
|
|
1361
1361
|
case "md":
|
|
1362
|
-
m = "md",
|
|
1362
|
+
m = "md", h = 11;
|
|
1363
1363
|
break;
|
|
1364
1364
|
case "lg":
|
|
1365
|
-
m = "xl",
|
|
1365
|
+
m = "xl", h = 12;
|
|
1366
1366
|
}
|
|
1367
|
-
const
|
|
1367
|
+
const g = i !== null, _ = ie(null), C = ie(null), M = () => {
|
|
1368
1368
|
_.current.classList.add($.fadeOut), _.current.classList.add($.hide), C.current.classList.remove($.hide), C.current.classList.add($.scaleIn), setTimeout(() => {
|
|
1369
1369
|
_.current.classList.remove(
|
|
1370
1370
|
$.fadeOut,
|
|
@@ -1372,8 +1372,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1372
1372
|
), _.current.classList.add($.scaleIn), C.current.classList.remove($.scaleIn), C.current.classList.add($.hide);
|
|
1373
1373
|
}, 2e3);
|
|
1374
1374
|
}, H = (z) => {
|
|
1375
|
-
|
|
1376
|
-
}, w =
|
|
1375
|
+
g && M(), a && a(z);
|
|
1376
|
+
}, w = g ? /* @__PURE__ */ e.createElement("div", { className: `${E}__content` }, /* @__PURE__ */ e.createElement("div", { ref: _, className: `${E}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1377
1377
|
R,
|
|
1378
1378
|
{
|
|
1379
1379
|
iconName: r,
|
|
@@ -1417,13 +1417,13 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1417
1417
|
type: s,
|
|
1418
1418
|
title: l && !n ? null : t,
|
|
1419
1419
|
ref: u
|
|
1420
|
-
},
|
|
1420
|
+
}, f),
|
|
1421
1421
|
l && !n ? /* @__PURE__ */ e.createElement(
|
|
1422
1422
|
Fe,
|
|
1423
1423
|
{
|
|
1424
1424
|
content: t,
|
|
1425
1425
|
className: `${E}__tooltip`,
|
|
1426
|
-
offsetValue:
|
|
1426
|
+
offsetValue: h,
|
|
1427
1427
|
customTrigger: w
|
|
1428
1428
|
}
|
|
1429
1429
|
) : w
|
|
@@ -1443,7 +1443,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1443
1443
|
"variant",
|
|
1444
1444
|
"className"
|
|
1445
1445
|
]);
|
|
1446
|
-
const o = "pds-clipboard-button", [d,
|
|
1446
|
+
const o = "pds-clipboard-button", [d, f] = e2(s);
|
|
1447
1447
|
return /* @__PURE__ */ e.createElement(
|
|
1448
1448
|
vt,
|
|
1449
1449
|
L({
|
|
@@ -1453,7 +1453,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1453
1453
|
disabled: n,
|
|
1454
1454
|
iconName: "copy",
|
|
1455
1455
|
icon2Name: "check",
|
|
1456
|
-
onClick:
|
|
1456
|
+
onClick: f,
|
|
1457
1457
|
size: "md",
|
|
1458
1458
|
variant: l
|
|
1459
1459
|
}, i)
|
|
@@ -1476,18 +1476,14 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1476
1476
|
children: t,
|
|
1477
1477
|
mobileMenuMaxWidth: s = 640
|
|
1478
1478
|
}) => {
|
|
1479
|
-
const n = b1(), l = n <= s
|
|
1480
|
-
let r = null;
|
|
1481
|
-
n <= 640 ? r = "sm" : n > 641 && n <= 1024 ? r = "md" : n > 1025 && n <= 1440 ? r = "lg" : n > 1441 && (r = "xl");
|
|
1482
|
-
const i = {
|
|
1483
|
-
breakpoint: r,
|
|
1479
|
+
const n = b1(), l = n <= s, r = {
|
|
1484
1480
|
isMobile: l,
|
|
1485
1481
|
mobileMenuMaxWidth: s,
|
|
1486
1482
|
windowWidth: n
|
|
1487
1483
|
};
|
|
1488
1484
|
return ce(() => {
|
|
1489
1485
|
l ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
1490
|
-
}, [l]), /* @__PURE__ */ e.createElement(ze.Provider, { value:
|
|
1486
|
+
}, [l]), /* @__PURE__ */ e.createElement(ze.Provider, { value: r }, t);
|
|
1491
1487
|
}, kt = (t) => t.isSeparator, Nt = (t) => t.isHeading, xt = (t) => t.isLink, n2 = (t) => t.isNode, a2 = (v) => {
|
|
1492
1488
|
var $ = v, {
|
|
1493
1489
|
disabled: t,
|
|
@@ -1500,9 +1496,9 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1500
1496
|
menuPosition: c = "start",
|
|
1501
1497
|
onClick: o,
|
|
1502
1498
|
size: d = "md",
|
|
1503
|
-
testId:
|
|
1499
|
+
testId: f,
|
|
1504
1500
|
undefinedLabel: u = "Unlabeled group",
|
|
1505
|
-
variant:
|
|
1501
|
+
variant: p = "primary",
|
|
1506
1502
|
withinNavbar: b,
|
|
1507
1503
|
className: E
|
|
1508
1504
|
} = $, y = S($, [
|
|
@@ -1523,9 +1519,9 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1523
1519
|
"className"
|
|
1524
1520
|
]);
|
|
1525
1521
|
const {
|
|
1526
|
-
x:
|
|
1522
|
+
x: h,
|
|
1527
1523
|
y: m,
|
|
1528
|
-
reference:
|
|
1524
|
+
reference: g,
|
|
1529
1525
|
floating: _,
|
|
1530
1526
|
strategy: C,
|
|
1531
1527
|
update: M,
|
|
@@ -1538,7 +1534,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1538
1534
|
let z = !1;
|
|
1539
1535
|
const k = Ce(ze);
|
|
1540
1536
|
k && (z = k.isMobile);
|
|
1541
|
-
const I =
|
|
1537
|
+
const I = p === "navbar" && z, V = "pds-menu-button", A = I ? `${V}--isMobile` : null, T = b ? `${V}--navbar` : null, N = l, [P] = Z(`menu-button-${l}`), B = w.floating, F = ie(null), [K, Q] = Z(!1), [G, Y] = Z(!1), [W, O] = Z(""), [X, ae] = Z(0), te = ie([]), j = ie([]), se = ie([]);
|
|
1542
1538
|
A1(() => {
|
|
1543
1539
|
window.addEventListener("mousedown", Be, !0), M();
|
|
1544
1540
|
const D = B.current;
|
|
@@ -1743,7 +1739,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1743
1739
|
opacity: K ? "1" : "0",
|
|
1744
1740
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1745
1741
|
position: C,
|
|
1746
|
-
transform: `translate(${Math.round(
|
|
1742
|
+
transform: `translate(${Math.round(h)}px,${Math.round(m)}px)`,
|
|
1747
1743
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
1748
1744
|
},
|
|
1749
1745
|
onKeyDown: ke,
|
|
@@ -1785,7 +1781,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1785
1781
|
opacity: K ? "1" : "0",
|
|
1786
1782
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1787
1783
|
position: C,
|
|
1788
|
-
transform: `translate(${Math.round(
|
|
1784
|
+
transform: `translate(${Math.round(h)}px,${Math.round(m)}px)`
|
|
1789
1785
|
},
|
|
1790
1786
|
onKeyDown: ke,
|
|
1791
1787
|
ref: _
|
|
@@ -1802,7 +1798,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1802
1798
|
isSplitButton: r,
|
|
1803
1799
|
label: i,
|
|
1804
1800
|
size: d,
|
|
1805
|
-
variant:
|
|
1801
|
+
variant: p,
|
|
1806
1802
|
displayType: s,
|
|
1807
1803
|
iconName: "angleDown",
|
|
1808
1804
|
type: "button",
|
|
@@ -1813,7 +1809,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1813
1809
|
"aria-expanded": K,
|
|
1814
1810
|
onClick: de,
|
|
1815
1811
|
onKeyDown: De,
|
|
1816
|
-
ref:
|
|
1812
|
+
ref: g
|
|
1817
1813
|
}
|
|
1818
1814
|
)), s === "icon-only") {
|
|
1819
1815
|
const D = Ut(i);
|
|
@@ -1833,7 +1829,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1833
1829
|
"aria-expanded": K,
|
|
1834
1830
|
onClick: de,
|
|
1835
1831
|
onKeyDown: De,
|
|
1836
|
-
ref:
|
|
1832
|
+
ref: g,
|
|
1837
1833
|
hasTooltip: !1
|
|
1838
1834
|
}
|
|
1839
1835
|
);
|
|
@@ -1881,13 +1877,13 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1881
1877
|
Ne,
|
|
1882
1878
|
E
|
|
1883
1879
|
]),
|
|
1884
|
-
"data-testid":
|
|
1880
|
+
"data-testid": f,
|
|
1885
1881
|
ref: F
|
|
1886
1882
|
}, y),
|
|
1887
1883
|
I ? /* @__PURE__ */ e.createElement(e.Fragment, null, we, /* @__PURE__ */ e.createElement(_e, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Re, Qe(a))
|
|
1888
1884
|
);
|
|
1889
|
-
}, ts = (
|
|
1890
|
-
var u =
|
|
1885
|
+
}, ts = (f) => {
|
|
1886
|
+
var u = f, {
|
|
1891
1887
|
disabled: t = !1,
|
|
1892
1888
|
id: s,
|
|
1893
1889
|
defaultValue: n,
|
|
@@ -1908,27 +1904,27 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1908
1904
|
"value",
|
|
1909
1905
|
"className"
|
|
1910
1906
|
]);
|
|
1911
|
-
const
|
|
1907
|
+
const p = "pds-segmented-button", b = t ? "pds-is-disabled" : null, E = a !== "md" ? `${p}--${a}` : null, y = typeof c != "undefined", v = typeof n != "undefined", [$, h] = Z(
|
|
1912
1908
|
v ? n : ""
|
|
1913
|
-
), m = (
|
|
1914
|
-
|
|
1909
|
+
), m = (g) => {
|
|
1910
|
+
h(g.target.value), r && r(g.target.value);
|
|
1915
1911
|
};
|
|
1916
1912
|
if (i.length >= 2 && i.length <= 6)
|
|
1917
1913
|
return /* @__PURE__ */ e.createElement(
|
|
1918
1914
|
"fieldset",
|
|
1919
1915
|
L({
|
|
1920
1916
|
className: x([
|
|
1921
|
-
|
|
1917
|
+
p,
|
|
1922
1918
|
E,
|
|
1923
1919
|
b,
|
|
1924
1920
|
o != null ? o : ""
|
|
1925
1921
|
])
|
|
1926
1922
|
}, d),
|
|
1927
1923
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, l),
|
|
1928
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
1924
|
+
/* @__PURE__ */ e.createElement("div", { className: `${p}__options` }, i.map((g, _) => /* @__PURE__ */ e.createElement(
|
|
1929
1925
|
"div",
|
|
1930
1926
|
{
|
|
1931
|
-
className: `${
|
|
1927
|
+
className: `${p}__option`,
|
|
1932
1928
|
key: `${s}-option-${_}`
|
|
1933
1929
|
},
|
|
1934
1930
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1936,29 +1932,29 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1936
1932
|
{
|
|
1937
1933
|
className: "visually-hidden",
|
|
1938
1934
|
type: "radio",
|
|
1939
|
-
id:
|
|
1935
|
+
id: g.id ? g.id : `${s}-option-${_}`,
|
|
1940
1936
|
name: s,
|
|
1941
|
-
value:
|
|
1937
|
+
value: g.value,
|
|
1942
1938
|
disabled: t,
|
|
1943
1939
|
onChange: m,
|
|
1944
|
-
checked: y ? c ===
|
|
1940
|
+
checked: y ? c === g.value : $ === g.value
|
|
1945
1941
|
}
|
|
1946
1942
|
),
|
|
1947
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor:
|
|
1943
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: g.id ? g.id : `${s}-option-${_}` }, g.tally ? /* @__PURE__ */ e.createElement(
|
|
1948
1944
|
_t,
|
|
1949
1945
|
{
|
|
1950
|
-
label:
|
|
1951
|
-
type:
|
|
1952
|
-
className: `${
|
|
1946
|
+
label: g.tally.label,
|
|
1947
|
+
type: g.tally.type,
|
|
1948
|
+
className: `${p}__tally`
|
|
1953
1949
|
}
|
|
1954
|
-
) :
|
|
1950
|
+
) : g.iconName && /* @__PURE__ */ e.createElement(
|
|
1955
1951
|
R,
|
|
1956
1952
|
{
|
|
1957
|
-
iconName:
|
|
1953
|
+
iconName: g.iconName,
|
|
1958
1954
|
iconSize: a,
|
|
1959
|
-
className: `${
|
|
1955
|
+
className: `${p}__icon`
|
|
1960
1956
|
}
|
|
1961
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
1957
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${p}__label-text` }, g.label))
|
|
1962
1958
|
)))
|
|
1963
1959
|
);
|
|
1964
1960
|
}, ss = (c) => {
|
|
@@ -1977,7 +1973,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
1977
1973
|
"variant",
|
|
1978
1974
|
"className"
|
|
1979
1975
|
]);
|
|
1980
|
-
const d = "pds-split-button",
|
|
1976
|
+
const d = "pds-split-button", f = `${d}--${r}`, u = t[0], p = t.slice(1);
|
|
1981
1977
|
let b = null;
|
|
1982
1978
|
return "isLink" in u && u.isLink === !0 ? b = /* @__PURE__ */ e.createElement(
|
|
1983
1979
|
Et,
|
|
@@ -2002,7 +1998,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2002
1998
|
)), /* @__PURE__ */ e.createElement(
|
|
2003
1999
|
"span",
|
|
2004
2000
|
L({
|
|
2005
|
-
className: x([d,
|
|
2001
|
+
className: x([d, f, i])
|
|
2006
2002
|
}, a),
|
|
2007
2003
|
b,
|
|
2008
2004
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2012,7 +2008,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2012
2008
|
label: n,
|
|
2013
2009
|
size: l,
|
|
2014
2010
|
variant: r,
|
|
2015
|
-
menuItems:
|
|
2011
|
+
menuItems: p,
|
|
2016
2012
|
displayType: "icon-end",
|
|
2017
2013
|
isSplitButton: !0,
|
|
2018
2014
|
disabled: s,
|
|
@@ -2022,8 +2018,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2022
2018
|
}
|
|
2023
2019
|
)
|
|
2024
2020
|
);
|
|
2025
|
-
}, ns = (
|
|
2026
|
-
var u =
|
|
2021
|
+
}, ns = (f) => {
|
|
2022
|
+
var u = f, {
|
|
2027
2023
|
buttonProps: t,
|
|
2028
2024
|
disabled: s = !1,
|
|
2029
2025
|
iconName: n,
|
|
@@ -2044,21 +2040,21 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2044
2040
|
"tooltipText",
|
|
2045
2041
|
"className"
|
|
2046
2042
|
]);
|
|
2047
|
-
const
|
|
2043
|
+
const p = "pds-utility-button", b = l ? `${p}--critical` : null, E = s ? `${p}--disabled` : null, y = r ? `${p}--monospace` : null, v = /* @__PURE__ */ e.createElement(
|
|
2048
2044
|
"button",
|
|
2049
2045
|
L({
|
|
2050
|
-
className: `${
|
|
2046
|
+
className: `${p}__button`,
|
|
2051
2047
|
"aria-disabled": s ? "true" : void 0,
|
|
2052
2048
|
onClick: s ? void 0 : a
|
|
2053
2049
|
}, t),
|
|
2054
2050
|
n && /* @__PURE__ */ e.createElement(R, { iconName: n }),
|
|
2055
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2051
|
+
/* @__PURE__ */ e.createElement("span", { className: `${p}__label` }, i)
|
|
2056
2052
|
);
|
|
2057
2053
|
return /* @__PURE__ */ e.createElement(
|
|
2058
2054
|
"div",
|
|
2059
2055
|
L({
|
|
2060
2056
|
className: x([
|
|
2061
|
-
|
|
2057
|
+
p,
|
|
2062
2058
|
b,
|
|
2063
2059
|
E,
|
|
2064
2060
|
y,
|
|
@@ -2097,7 +2093,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2097
2093
|
"typeLabels",
|
|
2098
2094
|
"className"
|
|
2099
2095
|
]);
|
|
2100
|
-
const o = "pds-callout", d = `${o}--${n}`,
|
|
2096
|
+
const o = "pds-callout", d = `${o}--${n}`, f = `${l[n]}: `;
|
|
2101
2097
|
return /* @__PURE__ */ e.createElement(
|
|
2102
2098
|
"div",
|
|
2103
2099
|
L({
|
|
@@ -2109,7 +2105,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2109
2105
|
iconName: `${n}` in Vt ? Vt[n] : Vt.info,
|
|
2110
2106
|
iconSize: "xl"
|
|
2111
2107
|
}
|
|
2112
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
2108
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${o}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f), s && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, s), t && /* @__PURE__ */ e.createElement("div", { className: `${o}__main-content` }, t)))
|
|
2113
2109
|
);
|
|
2114
2110
|
}, qt = (i) => {
|
|
2115
2111
|
var a = i, {
|
|
@@ -2123,7 +2119,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2123
2119
|
"padding",
|
|
2124
2120
|
"className"
|
|
2125
2121
|
]);
|
|
2126
|
-
const c = "pds-card", o = t !== "default" ? `${c}--${t}` : null, d = n !== "standard" ? `${c}--pad-${n}` : null,
|
|
2122
|
+
const c = "pds-card", o = t !== "default" ? `${c}--${t}` : null, d = n !== "standard" ? `${c}--pad-${n}` : null, f = qe(s), u = f.image, p = f.main;
|
|
2127
2123
|
return /* @__PURE__ */ e.createElement(
|
|
2128
2124
|
"div",
|
|
2129
2125
|
L({
|
|
@@ -2135,7 +2131,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2135
2131
|
])
|
|
2136
2132
|
}, r),
|
|
2137
2133
|
u && /* @__PURE__ */ e.createElement("div", { className: `${c}__image` }, u[0]),
|
|
2138
|
-
|
|
2134
|
+
p && /* @__PURE__ */ e.createElement("div", { className: `${c}__main` }, p)
|
|
2139
2135
|
);
|
|
2140
2136
|
}, C1 = (a) => {
|
|
2141
2137
|
var c = a, {
|
|
@@ -2151,14 +2147,14 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2151
2147
|
"text",
|
|
2152
2148
|
"className"
|
|
2153
2149
|
]);
|
|
2154
|
-
const o = "pds-card-heading", d = t === "XL" ? "pds-ts-xl" : "pds-ts-l",
|
|
2150
|
+
const o = "pds-card-heading", d = t === "XL" ? "pds-ts-xl" : "pds-ts-l", f = s === "bold" ? "pds-fw-bold" : "pds-fw-semibold";
|
|
2155
2151
|
return /* @__PURE__ */ e.createElement(
|
|
2156
2152
|
mt,
|
|
2157
2153
|
L({
|
|
2158
2154
|
className: x([
|
|
2159
2155
|
o,
|
|
2160
2156
|
d,
|
|
2161
|
-
|
|
2157
|
+
f,
|
|
2162
2158
|
r != null ? r : ""
|
|
2163
2159
|
]),
|
|
2164
2160
|
level: n
|
|
@@ -2166,7 +2162,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2166
2162
|
l
|
|
2167
2163
|
);
|
|
2168
2164
|
}, ls = (d) => {
|
|
2169
|
-
var
|
|
2165
|
+
var f = d, {
|
|
2170
2166
|
id: t,
|
|
2171
2167
|
defaultValue: s,
|
|
2172
2168
|
label: n,
|
|
@@ -2175,7 +2171,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2175
2171
|
onChange: i,
|
|
2176
2172
|
options: a,
|
|
2177
2173
|
className: c
|
|
2178
|
-
} =
|
|
2174
|
+
} = f, o = S(f, [
|
|
2179
2175
|
"id",
|
|
2180
2176
|
"defaultValue",
|
|
2181
2177
|
"label",
|
|
@@ -2186,23 +2182,23 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2186
2182
|
"className"
|
|
2187
2183
|
]);
|
|
2188
2184
|
const u = "pds-card-select-group";
|
|
2189
|
-
let
|
|
2190
|
-
l === "center" && (
|
|
2185
|
+
let p = `${u}__legend`;
|
|
2186
|
+
l === "center" && (p = `${u}__legend ${u}__legend--center`), l === "hidden" && (p = `${u}__legend visually-hidden`);
|
|
2191
2187
|
const [b, E] = Z(s), y = (_) => {
|
|
2192
2188
|
E(_.currentTarget.value), i && i(_.currentTarget.value);
|
|
2193
|
-
}, v = a.length, $ = "pds-grid-item",
|
|
2194
|
-
let
|
|
2195
|
-
return r === "twoAcross" ?
|
|
2189
|
+
}, v = a.length, $ = "pds-grid-item", h = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", m = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2190
|
+
let g = "";
|
|
2191
|
+
return r === "twoAcross" ? g = h : r === "threeAcross" ? g = m : r === "auto" && (v === 1 ? g = $ : v % 3 === 0 ? g = m : v % 2 === 0 ? g = h : g = m), /* @__PURE__ */ e.createElement(
|
|
2196
2192
|
"fieldset",
|
|
2197
2193
|
L({
|
|
2198
2194
|
className: [u, c].join(" ").trim().replace(/\s+/g, " "),
|
|
2199
2195
|
id: t
|
|
2200
2196
|
}, o),
|
|
2201
|
-
/* @__PURE__ */ e.createElement("legend", { className:
|
|
2197
|
+
/* @__PURE__ */ e.createElement("legend", { className: p }, n),
|
|
2202
2198
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, a.map((_, C) => /* @__PURE__ */ e.createElement(
|
|
2203
2199
|
"div",
|
|
2204
2200
|
{
|
|
2205
|
-
className: [`${u}__option`,
|
|
2201
|
+
className: [`${u}__option`, g].join(" ").trim().replace(/\s+/g, " "),
|
|
2206
2202
|
key: `${t}-option-${C}`
|
|
2207
2203
|
},
|
|
2208
2204
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2255,7 +2251,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2255
2251
|
level: s,
|
|
2256
2252
|
text: n
|
|
2257
2253
|
}
|
|
2258
|
-
), t && /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" }, t.map((d,
|
|
2254
|
+
), t && /* @__PURE__ */ e.createElement("ul", { className: `${c}__list`, role: "list" }, t.map((d, f) => /* @__PURE__ */ e.createElement("li", { key: f, className: "pds-cta-links-card__item" }, d)))));
|
|
2259
2255
|
return /* @__PURE__ */ e.createElement("div", L({ className: x([c, l != null ? l : ""]) }, r), o);
|
|
2260
2256
|
}, l2 = (l) => {
|
|
2261
2257
|
var r = l, {
|
|
@@ -2539,8 +2535,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2539
2535
|
)
|
|
2540
2536
|
}, s1 = {
|
|
2541
2537
|
"early-access": { label: "Early Access", color: "success" }
|
|
2542
|
-
}, rs = (
|
|
2543
|
-
var u =
|
|
2538
|
+
}, rs = (f) => {
|
|
2539
|
+
var u = f, {
|
|
2544
2540
|
badge: t,
|
|
2545
2541
|
icon: s,
|
|
2546
2542
|
newWindowString: n = "Opens new window",
|
|
@@ -2561,30 +2557,30 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2561
2557
|
"supplementalLinks",
|
|
2562
2558
|
"className"
|
|
2563
2559
|
]);
|
|
2564
|
-
const
|
|
2560
|
+
const p = "pds-new-site-card", b = a.type, E = /* @__PURE__ */ e.createElement(qt, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${p}__main` }, /* @__PURE__ */ e.createElement(
|
|
2565
2561
|
b,
|
|
2566
2562
|
L({
|
|
2567
2563
|
"aria-label": a.props.children,
|
|
2568
|
-
className: `${
|
|
2564
|
+
className: `${p}__selection-link`
|
|
2569
2565
|
}, a.props),
|
|
2570
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2566
|
+
/* @__PURE__ */ e.createElement("div", { className: `${p}__header` }, s && /* @__PURE__ */ e.createElement("div", { className: `${p}__icon` }, /* @__PURE__ */ e.createElement(l2, { platformType: s })), /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, l, r && /* @__PURE__ */ e.createElement("div", { className: `${p}__subtitle` }, r))),
|
|
2571
2567
|
t && /* @__PURE__ */ e.createElement(
|
|
2572
2568
|
it,
|
|
2573
2569
|
{
|
|
2574
2570
|
label: s1[t].label,
|
|
2575
2571
|
size: "sm",
|
|
2576
2572
|
color: s1[t].color,
|
|
2577
|
-
className: `${
|
|
2573
|
+
className: `${p}__badge`
|
|
2578
2574
|
}
|
|
2579
2575
|
),
|
|
2580
|
-
i && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2581
|
-
), c && c.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2576
|
+
i && /* @__PURE__ */ e.createElement("div", { className: `${p}__summary` }, i)
|
|
2577
|
+
), c && c.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${p}__links` }, c.map((y, v) => {
|
|
2582
2578
|
const $ = y.type;
|
|
2583
2579
|
return /* @__PURE__ */ e.createElement(
|
|
2584
2580
|
$,
|
|
2585
2581
|
L({
|
|
2586
2582
|
key: v,
|
|
2587
|
-
className: `${
|
|
2583
|
+
className: `${p}__link`
|
|
2588
2584
|
}, y.props),
|
|
2589
2585
|
y.props.children,
|
|
2590
2586
|
y.props.target === "_blank" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -2592,12 +2588,12 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2592
2588
|
{
|
|
2593
2589
|
iconName: "externalLink",
|
|
2594
2590
|
iconSize: "sm",
|
|
2595
|
-
className: `${
|
|
2591
|
+
className: `${p}__link-icon`
|
|
2596
2592
|
}
|
|
2597
2593
|
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n))
|
|
2598
2594
|
);
|
|
2599
2595
|
}))));
|
|
2600
|
-
return /* @__PURE__ */ e.createElement("div", L({ className: x([
|
|
2596
|
+
return /* @__PURE__ */ e.createElement("div", L({ className: x([p, o != null ? o : ""]) }, d), E);
|
|
2601
2597
|
}, c2 = {
|
|
2602
2598
|
included: "circleCheck",
|
|
2603
2599
|
notIncluded: "xmark",
|
|
@@ -2623,22 +2619,22 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2623
2619
|
"className"
|
|
2624
2620
|
]);
|
|
2625
2621
|
const d = "pds-comparison-list";
|
|
2626
|
-
return /* @__PURE__ */ e.createElement("div", L({ className: x([d, i != null ? i : ""]) }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__intro` }, s), t && /* @__PURE__ */ e.createElement("ul", { className: `${d}__list` }, t.map((
|
|
2622
|
+
return /* @__PURE__ */ e.createElement("div", L({ className: x([d, i != null ? i : ""]) }, a), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__intro` }, s), t && /* @__PURE__ */ e.createElement("ul", { className: `${d}__list` }, t.map((f, u) => /* @__PURE__ */ e.createElement(
|
|
2627
2623
|
"li",
|
|
2628
2624
|
{
|
|
2629
2625
|
key: u,
|
|
2630
|
-
className: `${d}__list-item ${d}__list-item--${
|
|
2626
|
+
className: `${d}__list-item ${d}__list-item--${f.type}`
|
|
2631
2627
|
},
|
|
2632
2628
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2633
2629
|
R,
|
|
2634
2630
|
{
|
|
2635
|
-
iconName: c2[
|
|
2631
|
+
iconName: c2[f.type],
|
|
2636
2632
|
iconSize: "md",
|
|
2637
2633
|
className: `${d}__item-icon`
|
|
2638
2634
|
}
|
|
2639
2635
|
)),
|
|
2640
|
-
l && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[
|
|
2641
|
-
|
|
2636
|
+
l && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r[f.type], ":", " "),
|
|
2637
|
+
f.text
|
|
2642
2638
|
))), n && /* @__PURE__ */ e.createElement("div", { className: `${d}__more-link` }, n));
|
|
2643
2639
|
}, r2 = ({
|
|
2644
2640
|
label: t,
|
|
@@ -2646,8 +2642,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2646
2642
|
}) => {
|
|
2647
2643
|
const n = "pds-select";
|
|
2648
2644
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", className: `${n}__group` }, /* @__PURE__ */ e.createElement("span", { className: `${n}__group-label` }, t), /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${n}__group-options` }, s));
|
|
2649
|
-
}, o2 = (
|
|
2650
|
-
var m =
|
|
2645
|
+
}, o2 = (h) => {
|
|
2646
|
+
var m = h, {
|
|
2651
2647
|
defaultValue: t,
|
|
2652
2648
|
disabled: s,
|
|
2653
2649
|
id: n,
|
|
@@ -2661,9 +2657,9 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2661
2657
|
onBlur: c,
|
|
2662
2658
|
onFocus: o,
|
|
2663
2659
|
onOptionSelect: d,
|
|
2664
|
-
options:
|
|
2660
|
+
options: f,
|
|
2665
2661
|
required: u = !1,
|
|
2666
|
-
showLabel:
|
|
2662
|
+
showLabel: p = !0,
|
|
2667
2663
|
validationMessage: b,
|
|
2668
2664
|
validationStatus: E,
|
|
2669
2665
|
value: y,
|
|
@@ -2688,10 +2684,10 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2688
2684
|
"className"
|
|
2689
2685
|
]);
|
|
2690
2686
|
var Re, st;
|
|
2691
|
-
const
|
|
2687
|
+
const g = tt(l), _ = "pds-select", C = s ? J.disabled : null, M = u && !s ? J.required : null, H = E === "error" ? J.error : null, w = E === "success" ? J.success : null;
|
|
2692
2688
|
let z = null;
|
|
2693
2689
|
E === "error" && (z = "error"), E === "success" && (z = "success");
|
|
2694
|
-
const k = b || a, I = typeof y != "undefined", V = typeof t != "undefined", T = ((_e) => _e.reduce((Ee, fe) => t1(fe) ? [...Ee, ...fe.options] : [...Ee, fe], []))(
|
|
2690
|
+
const k = b || a, I = typeof y != "undefined", V = typeof t != "undefined", T = ((_e) => _e.reduce((Ee, fe) => t1(fe) ? [...Ee, ...fe.options] : [...Ee, fe], []))(f), N = (_e) => T.findIndex((Ee) => Ee.value === _e), P = I && N(y) >= 0 ? N(y) : null, B = V ? N(t) : null, F = P || B, [K, Q] = Z(!1), [G, Y] = Z(null), [W, O] = Z(
|
|
2695
2691
|
F != null ? F : null
|
|
2696
2692
|
), X = W !== null ? (Re = T[W]) == null ? void 0 : Re.label : void 0, ae = W !== null ? (st = T[W]) == null ? void 0 : st.value : void 0, te = ie([]), { context: j, refs: se } = Ve({
|
|
2697
2693
|
open: K,
|
|
@@ -2810,14 +2806,14 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2810
2806
|
w,
|
|
2811
2807
|
v != null ? v : ""
|
|
2812
2808
|
]),
|
|
2813
|
-
style: l ?
|
|
2809
|
+
style: l ? g : null
|
|
2814
2810
|
}, $),
|
|
2815
2811
|
/* @__PURE__ */ e.createElement(
|
|
2816
2812
|
je,
|
|
2817
2813
|
{
|
|
2818
2814
|
id: n,
|
|
2819
2815
|
label: r,
|
|
2820
|
-
showLabel:
|
|
2816
|
+
showLabel: p,
|
|
2821
2817
|
required: u,
|
|
2822
2818
|
disabled: s
|
|
2823
2819
|
}
|
|
@@ -2849,7 +2845,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2849
2845
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2850
2846
|
}
|
|
2851
2847
|
})),
|
|
2852
|
-
/* @__PURE__ */ e.createElement("div", { style: L({}, De) }, /* @__PURE__ */ e.createElement("ul", { className: `${_}__options` }, Qe(
|
|
2848
|
+
/* @__PURE__ */ e.createElement("div", { style: L({}, De) }, /* @__PURE__ */ e.createElement("ul", { className: `${_}__options` }, Qe(f)))
|
|
2853
2849
|
),
|
|
2854
2850
|
k && /* @__PURE__ */ e.createElement(
|
|
2855
2851
|
Te,
|
|
@@ -2862,8 +2858,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2862
2858
|
}
|
|
2863
2859
|
)
|
|
2864
2860
|
);
|
|
2865
|
-
}, os = (
|
|
2866
|
-
var b =
|
|
2861
|
+
}, os = (p) => {
|
|
2862
|
+
var b = p, {
|
|
2867
2863
|
actionPrimary: t,
|
|
2868
2864
|
actionSecondary: s,
|
|
2869
2865
|
hasComparisonList: n = !0,
|
|
@@ -2877,7 +2873,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2877
2873
|
},
|
|
2878
2874
|
selectLabel: o = "Select a plan size",
|
|
2879
2875
|
statusBadgeType: d,
|
|
2880
|
-
className:
|
|
2876
|
+
className: f
|
|
2881
2877
|
} = b, u = S(b, [
|
|
2882
2878
|
"actionPrimary",
|
|
2883
2879
|
"actionSecondary",
|
|
@@ -2891,8 +2887,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2891
2887
|
"statusBadgeType",
|
|
2892
2888
|
"className"
|
|
2893
2889
|
]);
|
|
2894
|
-
const E = "pds-pricing-card", y = `${E}-container`, v = n ? `${y}--with-list` : null, $ = d ? `${E}--${d}` : null,
|
|
2895
|
-
|
|
2890
|
+
const E = "pds-pricing-card", y = `${E}-container`, v = n ? `${y}--with-list` : null, $ = d ? `${E}--${d}` : null, h = (A) => A.toLowerCase().replace(/\s/g, "-"), m = a && a.length > 1, [g, _] = Z(
|
|
2891
|
+
h(a[0].label)
|
|
2896
2892
|
), [C, M] = Z(
|
|
2897
2893
|
t.label
|
|
2898
2894
|
);
|
|
@@ -2914,7 +2910,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2914
2910
|
renderTypeLabels: !1
|
|
2915
2911
|
}
|
|
2916
2912
|
)), m && (H = a.map((A) => {
|
|
2917
|
-
const N =
|
|
2913
|
+
const N = g === h(A.label) ? null : `${E}__pricing-data--hide`;
|
|
2918
2914
|
return /* @__PURE__ */ e.createElement(
|
|
2919
2915
|
"div",
|
|
2920
2916
|
{
|
|
@@ -2922,8 +2918,8 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2922
2918
|
`${E}__pricing-data`,
|
|
2923
2919
|
N
|
|
2924
2920
|
]),
|
|
2925
|
-
id: `data-${
|
|
2926
|
-
key:
|
|
2921
|
+
id: `data-${h(A.label)}`,
|
|
2922
|
+
key: h(A.label)
|
|
2927
2923
|
},
|
|
2928
2924
|
A.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${E}__price-prefix` }, A.pricePrefix),
|
|
2929
2925
|
/* @__PURE__ */ e.createElement("div", { className: `${E}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__price` }, A.price), A.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__details` }, A.priceDetails)),
|
|
@@ -2938,7 +2934,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2938
2934
|
), A.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__savings-details` }, A.savingsDetails))
|
|
2939
2935
|
);
|
|
2940
2936
|
}), w = a.map((A) => {
|
|
2941
|
-
const N =
|
|
2937
|
+
const N = g === h(A.label) ? null : `${E}__list--hide`;
|
|
2942
2938
|
return /* @__PURE__ */ e.createElement(
|
|
2943
2939
|
n1,
|
|
2944
2940
|
{
|
|
@@ -2946,13 +2942,13 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2946
2942
|
listLabel: A.listLabel,
|
|
2947
2943
|
listItems: A.listItems,
|
|
2948
2944
|
renderTypeLabels: !1,
|
|
2949
|
-
key: `${
|
|
2945
|
+
key: `${h(A.label)}-list`
|
|
2950
2946
|
}
|
|
2951
2947
|
);
|
|
2952
2948
|
}));
|
|
2953
2949
|
const z = (A) => {
|
|
2954
2950
|
const T = a.find(
|
|
2955
|
-
(N) =>
|
|
2951
|
+
(N) => h(N.label) === A
|
|
2956
2952
|
);
|
|
2957
2953
|
return T.customActionLabel ? T.customActionLabel : t.label;
|
|
2958
2954
|
};
|
|
@@ -2965,10 +2961,10 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
2965
2961
|
label: o,
|
|
2966
2962
|
showLabel: !1,
|
|
2967
2963
|
options: a.map((A) => ({
|
|
2968
|
-
value:
|
|
2964
|
+
value: h(A.label),
|
|
2969
2965
|
label: A.label
|
|
2970
2966
|
})),
|
|
2971
|
-
defaultValue:
|
|
2967
|
+
defaultValue: h(a[0].label),
|
|
2972
2968
|
onOptionSelect: (A) => {
|
|
2973
2969
|
_(A.value), M(z(A.value)), l && l(A.value);
|
|
2974
2970
|
}
|
|
@@ -3014,7 +3010,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
3014
3010
|
))), /* @__PURE__ */ e.createElement(
|
|
3015
3011
|
"div",
|
|
3016
3012
|
L({
|
|
3017
|
-
className: x([y, v,
|
|
3013
|
+
className: x([y, v, f])
|
|
3018
3014
|
}, u),
|
|
3019
3015
|
/* @__PURE__ */ e.createElement("div", { className: x([E, $]) }, d && /* @__PURE__ */ e.createElement(
|
|
3020
3016
|
Wt,
|
|
@@ -3027,7 +3023,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
3027
3023
|
n && w
|
|
3028
3024
|
);
|
|
3029
3025
|
}, is = (d) => {
|
|
3030
|
-
var
|
|
3026
|
+
var f = d, {
|
|
3031
3027
|
gotoText: t = "Go to",
|
|
3032
3028
|
headingLevel: s = "h3",
|
|
3033
3029
|
siteImage: n,
|
|
@@ -3036,7 +3032,7 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
3036
3032
|
sitePlan: i,
|
|
3037
3033
|
siteStatus: a,
|
|
3038
3034
|
className: c
|
|
3039
|
-
} =
|
|
3035
|
+
} = f, o = S(f, [
|
|
3040
3036
|
"gotoText",
|
|
3041
3037
|
"headingLevel",
|
|
3042
3038
|
"siteImage",
|
|
@@ -3047,12 +3043,12 @@ const zt = 300, Q1 = 400, Fe = (u) => {
|
|
|
3047
3043
|
"className"
|
|
3048
3044
|
]);
|
|
3049
3045
|
const u = "pds-site-card";
|
|
3050
|
-
let
|
|
3051
|
-
a === "active" && (
|
|
3046
|
+
let p, b;
|
|
3047
|
+
a === "active" && (p = "Active", b = "success"), a === "frozen" && (p = "Frozen", b = "frozen");
|
|
3052
3048
|
const E = /* @__PURE__ */ e.createElement(
|
|
3053
3049
|
Wt,
|
|
3054
3050
|
{
|
|
3055
|
-
label:
|
|
3051
|
+
label: p,
|
|
3056
3052
|
statusType: b,
|
|
3057
3053
|
hasStatusIndicator: !0
|
|
3058
3054
|
}
|
|
@@ -3142,8 +3138,8 @@ var $1 = { exports: {} };
|
|
|
3142
3138
|
* @memberof Prism
|
|
3143
3139
|
*/
|
|
3144
3140
|
util: {
|
|
3145
|
-
encode: function
|
|
3146
|
-
return m instanceof o ? new o(m.type,
|
|
3141
|
+
encode: function h(m) {
|
|
3142
|
+
return m instanceof o ? new o(m.type, h(m.content), m.alias) : Array.isArray(m) ? m.map(h) : m.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
3147
3143
|
},
|
|
3148
3144
|
/**
|
|
3149
3145
|
* Returns the name of the type of the given value.
|
|
@@ -3161,8 +3157,8 @@ var $1 = { exports: {} };
|
|
|
3161
3157
|
* type(String) === 'Function'
|
|
3162
3158
|
* type(/abc+/) === 'RegExp'
|
|
3163
3159
|
*/
|
|
3164
|
-
type: function(
|
|
3165
|
-
return Object.prototype.toString.call(
|
|
3160
|
+
type: function(h) {
|
|
3161
|
+
return Object.prototype.toString.call(h).slice(8, -1);
|
|
3166
3162
|
},
|
|
3167
3163
|
/**
|
|
3168
3164
|
* Returns a unique number for the given object. Later calls will still return the same number.
|
|
@@ -3170,8 +3166,8 @@ var $1 = { exports: {} };
|
|
|
3170
3166
|
* @param {Object} obj
|
|
3171
3167
|
* @returns {number}
|
|
3172
3168
|
*/
|
|
3173
|
-
objId: function(
|
|
3174
|
-
return
|
|
3169
|
+
objId: function(h) {
|
|
3170
|
+
return h.__id || Object.defineProperty(h, "__id", { value: ++i }), h.__id;
|
|
3175
3171
|
},
|
|
3176
3172
|
/**
|
|
3177
3173
|
* Creates a deep clone of the given object.
|
|
@@ -3183,26 +3179,26 @@ var $1 = { exports: {} };
|
|
|
3183
3179
|
* @returns {T}
|
|
3184
3180
|
* @template T
|
|
3185
3181
|
*/
|
|
3186
|
-
clone: function
|
|
3187
|
-
|
|
3182
|
+
clone: function h(m, g) {
|
|
3183
|
+
g = g || {};
|
|
3188
3184
|
var _, C;
|
|
3189
3185
|
switch (c.util.type(m)) {
|
|
3190
3186
|
case "Object":
|
|
3191
|
-
if (C = c.util.objId(m),
|
|
3192
|
-
return
|
|
3187
|
+
if (C = c.util.objId(m), g[C])
|
|
3188
|
+
return g[C];
|
|
3193
3189
|
_ = /** @type {Record<string, any>} */
|
|
3194
|
-
{},
|
|
3190
|
+
{}, g[C] = _;
|
|
3195
3191
|
for (var M in m)
|
|
3196
|
-
m.hasOwnProperty(M) && (_[M] =
|
|
3192
|
+
m.hasOwnProperty(M) && (_[M] = h(m[M], g));
|
|
3197
3193
|
return (
|
|
3198
3194
|
/** @type {any} */
|
|
3199
3195
|
_
|
|
3200
3196
|
);
|
|
3201
3197
|
case "Array":
|
|
3202
|
-
return C = c.util.objId(m),
|
|
3198
|
+
return C = c.util.objId(m), g[C] ? g[C] : (_ = [], g[C] = _, /** @type {Array} */
|
|
3203
3199
|
/** @type {any} */
|
|
3204
3200
|
m.forEach(function(H, w) {
|
|
3205
|
-
_[w] =
|
|
3201
|
+
_[w] = h(H, g);
|
|
3206
3202
|
}), /** @type {any} */
|
|
3207
3203
|
_);
|
|
3208
3204
|
default:
|
|
@@ -3217,12 +3213,12 @@ var $1 = { exports: {} };
|
|
|
3217
3213
|
* @param {Element} element
|
|
3218
3214
|
* @returns {string}
|
|
3219
3215
|
*/
|
|
3220
|
-
getLanguage: function(
|
|
3221
|
-
for (;
|
|
3222
|
-
var m = r.exec(
|
|
3216
|
+
getLanguage: function(h) {
|
|
3217
|
+
for (; h; ) {
|
|
3218
|
+
var m = r.exec(h.className);
|
|
3223
3219
|
if (m)
|
|
3224
3220
|
return m[1].toLowerCase();
|
|
3225
|
-
|
|
3221
|
+
h = h.parentElement;
|
|
3226
3222
|
}
|
|
3227
3223
|
return "none";
|
|
3228
3224
|
},
|
|
@@ -3233,8 +3229,8 @@ var $1 = { exports: {} };
|
|
|
3233
3229
|
* @param {string} language
|
|
3234
3230
|
* @returns {void}
|
|
3235
3231
|
*/
|
|
3236
|
-
setLanguage: function(
|
|
3237
|
-
|
|
3232
|
+
setLanguage: function(h, m) {
|
|
3233
|
+
h.className = h.className.replace(RegExp(r, "gi"), ""), h.classList.add("language-" + m);
|
|
3238
3234
|
},
|
|
3239
3235
|
/**
|
|
3240
3236
|
* Returns the script element that is currently executing.
|
|
@@ -3254,12 +3250,12 @@ var $1 = { exports: {} };
|
|
|
3254
3250
|
try {
|
|
3255
3251
|
throw new Error();
|
|
3256
3252
|
} catch (_) {
|
|
3257
|
-
var
|
|
3258
|
-
if (
|
|
3253
|
+
var h = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack) || [])[1];
|
|
3254
|
+
if (h) {
|
|
3259
3255
|
var m = document.getElementsByTagName("script");
|
|
3260
|
-
for (var
|
|
3261
|
-
if (m[
|
|
3262
|
-
return m[
|
|
3256
|
+
for (var g in m)
|
|
3257
|
+
if (m[g].src == h)
|
|
3258
|
+
return m[g];
|
|
3263
3259
|
}
|
|
3264
3260
|
return null;
|
|
3265
3261
|
}
|
|
@@ -3283,16 +3279,16 @@ var $1 = { exports: {} };
|
|
|
3283
3279
|
* @param {boolean} [defaultActivation=false]
|
|
3284
3280
|
* @returns {boolean}
|
|
3285
3281
|
*/
|
|
3286
|
-
isActive: function(
|
|
3287
|
-
for (var _ = "no-" + m;
|
|
3288
|
-
var C =
|
|
3282
|
+
isActive: function(h, m, g) {
|
|
3283
|
+
for (var _ = "no-" + m; h; ) {
|
|
3284
|
+
var C = h.classList;
|
|
3289
3285
|
if (C.contains(m))
|
|
3290
3286
|
return !0;
|
|
3291
3287
|
if (C.contains(_))
|
|
3292
3288
|
return !1;
|
|
3293
|
-
|
|
3289
|
+
h = h.parentElement;
|
|
3294
3290
|
}
|
|
3295
|
-
return !!
|
|
3291
|
+
return !!g;
|
|
3296
3292
|
}
|
|
3297
3293
|
},
|
|
3298
3294
|
/**
|
|
@@ -3338,11 +3334,11 @@ var $1 = { exports: {} };
|
|
|
3338
3334
|
* 'color': /\b(?:red|green|blue)\b/
|
|
3339
3335
|
* });
|
|
3340
3336
|
*/
|
|
3341
|
-
extend: function(
|
|
3342
|
-
var
|
|
3337
|
+
extend: function(h, m) {
|
|
3338
|
+
var g = c.util.clone(c.languages[h]);
|
|
3343
3339
|
for (var _ in m)
|
|
3344
|
-
|
|
3345
|
-
return
|
|
3340
|
+
g[_] = m[_];
|
|
3341
|
+
return g;
|
|
3346
3342
|
},
|
|
3347
3343
|
/**
|
|
3348
3344
|
* Inserts tokens _before_ another token in a language definition or any other grammar.
|
|
@@ -3419,31 +3415,31 @@ var $1 = { exports: {} };
|
|
|
3419
3415
|
* @returns {Grammar} The new grammar object.
|
|
3420
3416
|
* @public
|
|
3421
3417
|
*/
|
|
3422
|
-
insertBefore: function(
|
|
3418
|
+
insertBefore: function(h, m, g, _) {
|
|
3423
3419
|
_ = _ || /** @type {any} */
|
|
3424
3420
|
c.languages;
|
|
3425
|
-
var C = _[
|
|
3421
|
+
var C = _[h], M = {};
|
|
3426
3422
|
for (var H in C)
|
|
3427
3423
|
if (C.hasOwnProperty(H)) {
|
|
3428
3424
|
if (H == m)
|
|
3429
|
-
for (var w in
|
|
3430
|
-
|
|
3431
|
-
|
|
3425
|
+
for (var w in g)
|
|
3426
|
+
g.hasOwnProperty(w) && (M[w] = g[w]);
|
|
3427
|
+
g.hasOwnProperty(H) || (M[H] = C[H]);
|
|
3432
3428
|
}
|
|
3433
|
-
var z = _[
|
|
3434
|
-
return _[
|
|
3435
|
-
I === z && k !=
|
|
3429
|
+
var z = _[h];
|
|
3430
|
+
return _[h] = M, c.languages.DFS(c.languages, function(k, I) {
|
|
3431
|
+
I === z && k != h && (this[k] = M);
|
|
3436
3432
|
}), M;
|
|
3437
3433
|
},
|
|
3438
3434
|
// Traverse a language definition with Depth First Search
|
|
3439
|
-
DFS: function
|
|
3435
|
+
DFS: function h(m, g, _, C) {
|
|
3440
3436
|
C = C || {};
|
|
3441
3437
|
var M = c.util.objId;
|
|
3442
3438
|
for (var H in m)
|
|
3443
3439
|
if (m.hasOwnProperty(H)) {
|
|
3444
|
-
|
|
3440
|
+
g.call(m, H, m[H], _ || H);
|
|
3445
3441
|
var w = m[H], z = c.util.type(w);
|
|
3446
|
-
z === "Object" && !C[M(w)] ? (C[M(w)] = !0,
|
|
3442
|
+
z === "Object" && !C[M(w)] ? (C[M(w)] = !0, h(w, g, null, C)) : z === "Array" && !C[M(w)] && (C[M(w)] = !0, h(w, g, H, C));
|
|
3447
3443
|
}
|
|
3448
3444
|
}
|
|
3449
3445
|
},
|
|
@@ -3460,8 +3456,8 @@ var $1 = { exports: {} };
|
|
|
3460
3456
|
* @memberof Prism
|
|
3461
3457
|
* @public
|
|
3462
3458
|
*/
|
|
3463
|
-
highlightAll: function(
|
|
3464
|
-
c.highlightAllUnder(document,
|
|
3459
|
+
highlightAll: function(h, m) {
|
|
3460
|
+
c.highlightAllUnder(document, h, m);
|
|
3465
3461
|
},
|
|
3466
3462
|
/**
|
|
3467
3463
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -3478,10 +3474,10 @@ var $1 = { exports: {} };
|
|
|
3478
3474
|
* @memberof Prism
|
|
3479
3475
|
* @public
|
|
3480
3476
|
*/
|
|
3481
|
-
highlightAllUnder: function(
|
|
3477
|
+
highlightAllUnder: function(h, m, g) {
|
|
3482
3478
|
var _ = {
|
|
3483
|
-
callback:
|
|
3484
|
-
container:
|
|
3479
|
+
callback: g,
|
|
3480
|
+
container: h,
|
|
3485
3481
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
3486
3482
|
};
|
|
3487
3483
|
c.hooks.run("before-highlightall", _), _.elements = Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)), c.hooks.run("before-all-elements-highlight", _);
|
|
@@ -3516,22 +3512,22 @@ var $1 = { exports: {} };
|
|
|
3516
3512
|
* @memberof Prism
|
|
3517
3513
|
* @public
|
|
3518
3514
|
*/
|
|
3519
|
-
highlightElement: function(
|
|
3520
|
-
var _ = c.util.getLanguage(
|
|
3521
|
-
c.util.setLanguage(
|
|
3522
|
-
var M =
|
|
3515
|
+
highlightElement: function(h, m, g) {
|
|
3516
|
+
var _ = c.util.getLanguage(h), C = c.languages[_];
|
|
3517
|
+
c.util.setLanguage(h, _);
|
|
3518
|
+
var M = h.parentElement;
|
|
3523
3519
|
M && M.nodeName.toLowerCase() === "pre" && c.util.setLanguage(M, _);
|
|
3524
|
-
var H =
|
|
3525
|
-
element:
|
|
3520
|
+
var H = h.textContent, w = {
|
|
3521
|
+
element: h,
|
|
3526
3522
|
language: _,
|
|
3527
3523
|
grammar: C,
|
|
3528
3524
|
code: H
|
|
3529
3525
|
};
|
|
3530
3526
|
function z(I) {
|
|
3531
|
-
w.highlightedCode = I, c.hooks.run("before-insert", w), w.element.innerHTML = w.highlightedCode, c.hooks.run("after-highlight", w), c.hooks.run("complete", w),
|
|
3527
|
+
w.highlightedCode = I, 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);
|
|
3532
3528
|
}
|
|
3533
3529
|
if (c.hooks.run("before-sanity-check", w), M = w.element.parentElement, M && M.nodeName.toLowerCase() === "pre" && !M.hasAttribute("tabindex") && M.setAttribute("tabindex", "0"), !w.code) {
|
|
3534
|
-
c.hooks.run("complete", w),
|
|
3530
|
+
c.hooks.run("complete", w), g && g.call(w.element);
|
|
3535
3531
|
return;
|
|
3536
3532
|
}
|
|
3537
3533
|
if (c.hooks.run("before-highlight", w), !w.grammar) {
|
|
@@ -3570,11 +3566,11 @@ var $1 = { exports: {} };
|
|
|
3570
3566
|
* @example
|
|
3571
3567
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
3572
3568
|
*/
|
|
3573
|
-
highlight: function(
|
|
3569
|
+
highlight: function(h, m, g) {
|
|
3574
3570
|
var _ = {
|
|
3575
|
-
code:
|
|
3571
|
+
code: h,
|
|
3576
3572
|
grammar: m,
|
|
3577
|
-
language:
|
|
3573
|
+
language: g
|
|
3578
3574
|
};
|
|
3579
3575
|
if (c.hooks.run("before-tokenize", _), !_.grammar)
|
|
3580
3576
|
throw new Error('The language "' + _.language + '" has no grammar.');
|
|
@@ -3604,15 +3600,15 @@ var $1 = { exports: {} };
|
|
|
3604
3600
|
* }
|
|
3605
3601
|
* });
|
|
3606
3602
|
*/
|
|
3607
|
-
tokenize: function(
|
|
3608
|
-
var
|
|
3609
|
-
if (
|
|
3610
|
-
for (var _ in
|
|
3611
|
-
m[_] =
|
|
3603
|
+
tokenize: function(h, m) {
|
|
3604
|
+
var g = m.rest;
|
|
3605
|
+
if (g) {
|
|
3606
|
+
for (var _ in g)
|
|
3607
|
+
m[_] = g[_];
|
|
3612
3608
|
delete m.rest;
|
|
3613
3609
|
}
|
|
3614
3610
|
var C = new u();
|
|
3615
|
-
return
|
|
3611
|
+
return p(C, C.head, h), f(h, C, m, C.head, 0), E(C);
|
|
3616
3612
|
},
|
|
3617
3613
|
/**
|
|
3618
3614
|
* @namespace
|
|
@@ -3633,9 +3629,9 @@ var $1 = { exports: {} };
|
|
|
3633
3629
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
3634
3630
|
* @public
|
|
3635
3631
|
*/
|
|
3636
|
-
add: function(
|
|
3637
|
-
var
|
|
3638
|
-
|
|
3632
|
+
add: function(h, m) {
|
|
3633
|
+
var g = c.hooks.all;
|
|
3634
|
+
g[h] = g[h] || [], g[h].push(m);
|
|
3639
3635
|
},
|
|
3640
3636
|
/**
|
|
3641
3637
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -3646,35 +3642,35 @@ var $1 = { exports: {} };
|
|
|
3646
3642
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
3647
3643
|
* @public
|
|
3648
3644
|
*/
|
|
3649
|
-
run: function(
|
|
3650
|
-
var
|
|
3651
|
-
if (!(!
|
|
3652
|
-
for (var _ = 0, C; C =
|
|
3645
|
+
run: function(h, m) {
|
|
3646
|
+
var g = c.hooks.all[h];
|
|
3647
|
+
if (!(!g || !g.length))
|
|
3648
|
+
for (var _ = 0, C; C = g[_++]; )
|
|
3653
3649
|
C(m);
|
|
3654
3650
|
}
|
|
3655
3651
|
},
|
|
3656
3652
|
Token: o
|
|
3657
3653
|
};
|
|
3658
3654
|
l.Prism = c;
|
|
3659
|
-
function o(
|
|
3660
|
-
this.type =
|
|
3655
|
+
function o(h, m, g, _) {
|
|
3656
|
+
this.type = h, this.content = m, this.alias = g, this.length = (_ || "").length | 0;
|
|
3661
3657
|
}
|
|
3662
|
-
o.stringify = function
|
|
3658
|
+
o.stringify = function h(m, g) {
|
|
3663
3659
|
if (typeof m == "string")
|
|
3664
3660
|
return m;
|
|
3665
3661
|
if (Array.isArray(m)) {
|
|
3666
3662
|
var _ = "";
|
|
3667
3663
|
return m.forEach(function(z) {
|
|
3668
|
-
_ +=
|
|
3664
|
+
_ += h(z, g);
|
|
3669
3665
|
}), _;
|
|
3670
3666
|
}
|
|
3671
3667
|
var C = {
|
|
3672
3668
|
type: m.type,
|
|
3673
|
-
content:
|
|
3669
|
+
content: h(m.content, g),
|
|
3674
3670
|
tag: "span",
|
|
3675
3671
|
classes: ["token", m.type],
|
|
3676
3672
|
attributes: {},
|
|
3677
|
-
language:
|
|
3673
|
+
language: g
|
|
3678
3674
|
}, M = m.alias;
|
|
3679
3675
|
M && (Array.isArray(M) ? Array.prototype.push.apply(C.classes, M) : C.classes.push(M)), c.hooks.run("wrap", C);
|
|
3680
3676
|
var H = "";
|
|
@@ -3682,19 +3678,19 @@ var $1 = { exports: {} };
|
|
|
3682
3678
|
H += " " + w + '="' + (C.attributes[w] || "").replace(/"/g, """) + '"';
|
|
3683
3679
|
return "<" + C.tag + ' class="' + C.classes.join(" ") + '"' + H + ">" + C.content + "</" + C.tag + ">";
|
|
3684
3680
|
};
|
|
3685
|
-
function d(
|
|
3686
|
-
|
|
3687
|
-
var C =
|
|
3681
|
+
function d(h, m, g, _) {
|
|
3682
|
+
h.lastIndex = m;
|
|
3683
|
+
var C = h.exec(g);
|
|
3688
3684
|
if (C && _ && C[1]) {
|
|
3689
3685
|
var M = C[1].length;
|
|
3690
3686
|
C.index += M, C[0] = C[0].slice(M);
|
|
3691
3687
|
}
|
|
3692
3688
|
return C;
|
|
3693
3689
|
}
|
|
3694
|
-
function
|
|
3695
|
-
for (var H in
|
|
3696
|
-
if (!(!
|
|
3697
|
-
var w =
|
|
3690
|
+
function f(h, m, g, _, C, M) {
|
|
3691
|
+
for (var H in g)
|
|
3692
|
+
if (!(!g.hasOwnProperty(H) || !g[H])) {
|
|
3693
|
+
var w = g[H];
|
|
3698
3694
|
w = Array.isArray(w) ? w : [w];
|
|
3699
3695
|
for (var z = 0; z < w.length; ++z) {
|
|
3700
3696
|
if (M && M.cause == H + "," + z)
|
|
@@ -3706,12 +3702,12 @@ var $1 = { exports: {} };
|
|
|
3706
3702
|
}
|
|
3707
3703
|
for (var P = k.pattern || k, B = _.next, F = C; B !== m.tail && !(M && F >= M.reach); F += B.value.length, B = B.next) {
|
|
3708
3704
|
var K = B.value;
|
|
3709
|
-
if (m.length >
|
|
3705
|
+
if (m.length > h.length)
|
|
3710
3706
|
return;
|
|
3711
3707
|
if (!(K instanceof o)) {
|
|
3712
3708
|
var Q = 1, G;
|
|
3713
3709
|
if (A) {
|
|
3714
|
-
if (G = d(P, F,
|
|
3710
|
+
if (G = d(P, F, h, V), !G || G.index >= h.length)
|
|
3715
3711
|
break;
|
|
3716
3712
|
var X = G.index, Y = G.index + G[0].length, W = F;
|
|
3717
3713
|
for (W += B.value.length; X >= W; )
|
|
@@ -3720,20 +3716,20 @@ var $1 = { exports: {} };
|
|
|
3720
3716
|
continue;
|
|
3721
3717
|
for (var O = B; O !== m.tail && (W < Y || typeof O.value == "string"); O = O.next)
|
|
3722
3718
|
Q++, W += O.value.length;
|
|
3723
|
-
Q--, K =
|
|
3719
|
+
Q--, K = h.slice(F, W), G.index -= F;
|
|
3724
3720
|
} else if (G = d(P, 0, K, V), !G)
|
|
3725
3721
|
continue;
|
|
3726
3722
|
var X = G.index, ae = G[0], te = K.slice(0, X), j = K.slice(X + ae.length), se = F + K.length;
|
|
3727
3723
|
M && se > M.reach && (M.reach = se);
|
|
3728
3724
|
var ne = B.prev;
|
|
3729
|
-
te && (ne =
|
|
3725
|
+
te && (ne = p(m, ne, te), F += te.length), b(m, ne, Q);
|
|
3730
3726
|
var me = new o(H, I ? c.tokenize(ae, I) : ae, T, ae);
|
|
3731
|
-
if (B =
|
|
3727
|
+
if (B = p(m, ne, me), j && p(m, B, j), Q > 1) {
|
|
3732
3728
|
var ue = {
|
|
3733
3729
|
cause: H + "," + z,
|
|
3734
3730
|
reach: se
|
|
3735
3731
|
};
|
|
3736
|
-
|
|
3732
|
+
f(h, m, g, B.prev, F, ue), M && ue.reach > M.reach && (M.reach = ue.reach);
|
|
3737
3733
|
}
|
|
3738
3734
|
}
|
|
3739
3735
|
}
|
|
@@ -3741,27 +3737,27 @@ var $1 = { exports: {} };
|
|
|
3741
3737
|
}
|
|
3742
3738
|
}
|
|
3743
3739
|
function u() {
|
|
3744
|
-
var
|
|
3745
|
-
|
|
3740
|
+
var h = { value: null, prev: null, next: null }, m = { value: null, prev: h, next: null };
|
|
3741
|
+
h.next = m, this.head = h, this.tail = m, this.length = 0;
|
|
3746
3742
|
}
|
|
3747
|
-
function h
|
|
3748
|
-
var _ = m.next, C = { value:
|
|
3749
|
-
return m.next = C, _.prev = C,
|
|
3743
|
+
function p(h, m, g) {
|
|
3744
|
+
var _ = m.next, C = { value: g, prev: m, next: _ };
|
|
3745
|
+
return m.next = C, _.prev = C, h.length++, C;
|
|
3750
3746
|
}
|
|
3751
|
-
function b(
|
|
3752
|
-
for (var _ = m.next, C = 0; C <
|
|
3747
|
+
function b(h, m, g) {
|
|
3748
|
+
for (var _ = m.next, C = 0; C < g && _ !== h.tail; C++)
|
|
3753
3749
|
_ = _.next;
|
|
3754
|
-
m.next = _, _.prev = m,
|
|
3750
|
+
m.next = _, _.prev = m, h.length -= C;
|
|
3755
3751
|
}
|
|
3756
|
-
function E(
|
|
3757
|
-
for (var m = [],
|
|
3758
|
-
m.push(
|
|
3752
|
+
function E(h) {
|
|
3753
|
+
for (var m = [], g = h.head.next; g !== h.tail; )
|
|
3754
|
+
m.push(g.value), g = g.next;
|
|
3759
3755
|
return m;
|
|
3760
3756
|
}
|
|
3761
3757
|
if (!l.document)
|
|
3762
|
-
return l.addEventListener && (c.disableWorkerMessageHandler || l.addEventListener("message", function(
|
|
3763
|
-
var m = JSON.parse(
|
|
3764
|
-
l.postMessage(c.highlight(_, c.languages[
|
|
3758
|
+
return l.addEventListener && (c.disableWorkerMessageHandler || l.addEventListener("message", function(h) {
|
|
3759
|
+
var m = JSON.parse(h.data), g = m.language, _ = m.code, C = m.immediateClose;
|
|
3760
|
+
l.postMessage(c.highlight(_, c.languages[g], g)), C && l.close();
|
|
3765
3761
|
}, !1)), c;
|
|
3766
3762
|
var y = c.util.currentScript();
|
|
3767
3763
|
y && (c.filename = y.src, y.hasAttribute("data-manual") && (c.manual = !0));
|
|
@@ -4204,8 +4200,8 @@ const m2 = /* @__PURE__ */ i2(d2), u2 = {
|
|
|
4204
4200
|
value: s
|
|
4205
4201
|
});
|
|
4206
4202
|
})(Prism);
|
|
4207
|
-
const ds = (
|
|
4208
|
-
var b =
|
|
4203
|
+
const ds = (p) => {
|
|
4204
|
+
var b = p, {
|
|
4209
4205
|
code: t,
|
|
4210
4206
|
colorType: s = "dark",
|
|
4211
4207
|
copyButtonLabel: n = "Copy to clipboard",
|
|
@@ -4216,7 +4212,7 @@ const ds = (h) => {
|
|
|
4216
4212
|
maxHeight: c,
|
|
4217
4213
|
promptSymbol: o = "$",
|
|
4218
4214
|
shouldWrap: d = !1,
|
|
4219
|
-
className:
|
|
4215
|
+
className: f
|
|
4220
4216
|
} = b, u = S(b, [
|
|
4221
4217
|
"code",
|
|
4222
4218
|
"colorType",
|
|
@@ -4230,11 +4226,11 @@ const ds = (h) => {
|
|
|
4230
4226
|
"shouldWrap",
|
|
4231
4227
|
"className"
|
|
4232
4228
|
]);
|
|
4233
|
-
const E = "pds-code-block", y = `${E}--${s}`, v = d ? `${E}__line-wrapped` : "", $ = c ? { maxHeight: `${c}rem` } : {},
|
|
4229
|
+
const E = "pds-code-block", y = `${E}--${s}`, v = d ? `${E}__line-wrapped` : "", $ = c ? { maxHeight: `${c}rem` } : {}, h = s === "dark" ? "reverse" : "standard", m = s === "dark" ? u2 : p2, g = ["bash", "diff", "twig"], _ = /* @__PURE__ */ e.createElement(ct.LineContent, null, /* @__PURE__ */ e.createElement(ct.Token, null)), C = /* @__PURE__ */ e.createElement("div", { className: `${E}__line ${v}` }, /* @__PURE__ */ e.createElement(ct.LineNumber, { className: `${E}__number` }), _), M = /* @__PURE__ */ e.createElement("div", { className: `${E}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__prompt` }, o), _);
|
|
4234
4230
|
return /* @__PURE__ */ e.createElement(
|
|
4235
4231
|
"div",
|
|
4236
4232
|
L({
|
|
4237
|
-
className: x([E, y,
|
|
4233
|
+
className: x([E, y, f != null ? f : ""]),
|
|
4238
4234
|
style: $
|
|
4239
4235
|
}, u),
|
|
4240
4236
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4243,7 +4239,7 @@ const ds = (h) => {
|
|
|
4243
4239
|
code: t,
|
|
4244
4240
|
language: a || "",
|
|
4245
4241
|
theme: m,
|
|
4246
|
-
prism:
|
|
4242
|
+
prism: g.includes(a) ? m2 : void 0
|
|
4247
4243
|
},
|
|
4248
4244
|
/* @__PURE__ */ e.createElement(ct.Code, { className: `${E}__code`, tabIndex: 0 }, r || i ? r ? C : M : _)
|
|
4249
4245
|
),
|
|
@@ -4252,7 +4248,7 @@ const ds = (h) => {
|
|
|
4252
4248
|
{
|
|
4253
4249
|
ariaLabel: n,
|
|
4254
4250
|
clipboardText: t,
|
|
4255
|
-
variant:
|
|
4251
|
+
variant: h
|
|
4256
4252
|
}
|
|
4257
4253
|
))
|
|
4258
4254
|
);
|
|
@@ -4283,7 +4279,7 @@ const ds = (h) => {
|
|
|
4283
4279
|
)
|
|
4284
4280
|
);
|
|
4285
4281
|
}, ms = (d) => {
|
|
4286
|
-
var
|
|
4282
|
+
var f = d, {
|
|
4287
4283
|
backgroundColor: t = "default",
|
|
4288
4284
|
containerWidth: s = "standard",
|
|
4289
4285
|
headingLevel: n = "h2",
|
|
@@ -4292,7 +4288,7 @@ const ds = (h) => {
|
|
|
4292
4288
|
primaryLinkContent: i,
|
|
4293
4289
|
secondaryLinkContent: a,
|
|
4294
4290
|
className: c
|
|
4295
|
-
} =
|
|
4291
|
+
} = f, o = S(f, [
|
|
4296
4292
|
"backgroundColor",
|
|
4297
4293
|
"containerWidth",
|
|
4298
4294
|
"headingLevel",
|
|
@@ -4302,11 +4298,11 @@ const ds = (h) => {
|
|
|
4302
4298
|
"secondaryLinkContent",
|
|
4303
4299
|
"className"
|
|
4304
4300
|
]);
|
|
4305
|
-
const u = "pds-cta-slice",
|
|
4301
|
+
const u = "pds-cta-slice", p = t && t !== "default" ? `${u}--${t}` : null, b = s && s !== "standard" ? `pds-container pds-container--${s}` : "pds-container";
|
|
4306
4302
|
return /* @__PURE__ */ e.createElement(
|
|
4307
4303
|
"div",
|
|
4308
4304
|
L({
|
|
4309
|
-
className: x([u,
|
|
4305
|
+
className: x([u, p, c])
|
|
4310
4306
|
}, o),
|
|
4311
4307
|
/* @__PURE__ */ e.createElement("div", { className: b }, l && /* @__PURE__ */ e.createElement(mt, { baseClass: u, className: "pds-ts-4xl", level: n }, l), r && /* @__PURE__ */ e.createElement(
|
|
4312
4308
|
"div",
|
|
@@ -4368,12 +4364,12 @@ const ds = (h) => {
|
|
|
4368
4364
|
"className",
|
|
4369
4365
|
"componentWidth"
|
|
4370
4366
|
]);
|
|
4371
|
-
const o = "pds-file-diff", d = t + s,
|
|
4367
|
+
const o = "pds-file-diff", d = t + s, f = d > 0 ? s / d * 100 : 0, u = d > 0 ? t / d * 100 : 0, p = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
4372
4368
|
return /* @__PURE__ */ e.createElement(
|
|
4373
4369
|
"div",
|
|
4374
4370
|
L({
|
|
4375
4371
|
className: x([o, l != null ? l : ""]),
|
|
4376
|
-
style: { width:
|
|
4372
|
+
style: { width: p }
|
|
4377
4373
|
}, i),
|
|
4378
4374
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__total-changes` }, /* @__PURE__ */ e.createElement(
|
|
4379
4375
|
Fe,
|
|
@@ -4388,7 +4384,7 @@ const ds = (h) => {
|
|
|
4388
4384
|
"div",
|
|
4389
4385
|
{
|
|
4390
4386
|
className: `${o}__behind`,
|
|
4391
|
-
style: { width: `${
|
|
4387
|
+
style: { width: `${f}%` }
|
|
4392
4388
|
},
|
|
4393
4389
|
/* @__PURE__ */ e.createElement(
|
|
4394
4390
|
Fe,
|
|
@@ -4426,9 +4422,9 @@ const ds = (h) => {
|
|
|
4426
4422
|
"steps",
|
|
4427
4423
|
"className"
|
|
4428
4424
|
]);
|
|
4429
|
-
const a = "pds-flow-steps", c = `${a}--${t}`, o = s.map(({ header: d, content:
|
|
4430
|
-
const
|
|
4431
|
-
return /* @__PURE__ */ e.createElement("li", { key: u, className: `${a}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
4425
|
+
const a = "pds-flow-steps", c = `${a}--${t}`, o = s.map(({ header: d, content: f }, u) => {
|
|
4426
|
+
const p = /* @__PURE__ */ e.createElement("div", { className: `${a}__number` }, /* @__PURE__ */ e.createElement("span", null, u + 1)), b = /* @__PURE__ */ e.createElement("div", { className: `${a}__header` }, d), E = f ? /* @__PURE__ */ e.createElement("div", { className: `${a}__content` }, f) : null;
|
|
4427
|
+
return /* @__PURE__ */ e.createElement("li", { key: u, className: `${a}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, p, /* @__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` }, p, b), E));
|
|
4432
4428
|
});
|
|
4433
4429
|
return /* @__PURE__ */ e.createElement(
|
|
4434
4430
|
"ol",
|
|
@@ -4499,8 +4495,8 @@ const ds = (h) => {
|
|
|
4499
4495
|
"legalLinks",
|
|
4500
4496
|
"className"
|
|
4501
4497
|
]);
|
|
4502
|
-
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
4503
|
-
return /* @__PURE__ */ e.createElement("footer", L({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, s && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", d, " Pantheon Systems, Inc."),
|
|
4498
|
+
const c = "pds-site-footer", o = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), f = n.includes("privacy"), u = n.includes("dataSubjectRequest"), p = n.includes("cookiePolicy"), b = n.includes("termsOfUse"), E = n.includes("acceptableUse"), y = n.includes("accessibilityStatement");
|
|
4499
|
+
return /* @__PURE__ */ e.createElement("footer", L({ className: x([c, l != null ? l : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: o }, s && /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${c}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${c}__copyright` }, "© ", d, " Pantheon Systems, Inc."), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), p && /* @__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"), y && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4504
4500
|
}, g2 = Ze(
|
|
4505
4501
|
(M, C) => {
|
|
4506
4502
|
var H = M, {
|
|
@@ -4514,17 +4510,17 @@ const ds = (h) => {
|
|
|
4514
4510
|
label: c,
|
|
4515
4511
|
message: o,
|
|
4516
4512
|
name: d,
|
|
4517
|
-
nestingLevel:
|
|
4513
|
+
nestingLevel: f = 0,
|
|
4518
4514
|
onBlur: u,
|
|
4519
|
-
onChange:
|
|
4515
|
+
onChange: p,
|
|
4520
4516
|
onFocus: b,
|
|
4521
4517
|
required: E,
|
|
4522
4518
|
showLabel: y = !0,
|
|
4523
4519
|
size: v = "M",
|
|
4524
4520
|
validationMessage: $,
|
|
4525
|
-
validationStatus:
|
|
4521
|
+
validationStatus: h,
|
|
4526
4522
|
value: m,
|
|
4527
|
-
className:
|
|
4523
|
+
className: g
|
|
4528
4524
|
} = H, _ = S(H, [
|
|
4529
4525
|
"checked",
|
|
4530
4526
|
"defaultChecked",
|
|
@@ -4548,10 +4544,10 @@ const ds = (h) => {
|
|
|
4548
4544
|
"value",
|
|
4549
4545
|
"className"
|
|
4550
4546
|
]);
|
|
4551
|
-
const w = a ? { width: `${a / 16}rem` } : null, z = "pds-checkbox", k = n ? J.disabled : null, I =
|
|
4547
|
+
const w = a ? { width: `${a / 16}rem` } : null, z = "pds-checkbox", k = n ? J.disabled : null, I = h === "error" ? J.error : null, V = f > 0 ? `${z}--indent-${f}` : null, A = E && !n ? J.required : null, T = v === "S" ? `${z}--sm` : null, N = h === "success" ? J.success : null, P = $ || o, B = typeof t != "undefined", F = typeof s != "undefined", [K, Q] = Z(
|
|
4552
4548
|
F ? s : !1
|
|
4553
4549
|
), G = t || K, Y = (te) => {
|
|
4554
|
-
B || Q(te.target.checked),
|
|
4550
|
+
B || Q(te.target.checked), p && p(te);
|
|
4555
4551
|
}, W = `${z}__box`, O = r ? null : G ? `${W}--checked` : null, X = r ? `${W}--indeterminate` : null, ae = T1(() => {
|
|
4556
4552
|
if (r)
|
|
4557
4553
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4583,7 +4579,7 @@ const ds = (h) => {
|
|
|
4583
4579
|
N,
|
|
4584
4580
|
T,
|
|
4585
4581
|
V,
|
|
4586
|
-
|
|
4582
|
+
g != null ? g : ""
|
|
4587
4583
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4588
4584
|
style: a ? w : null
|
|
4589
4585
|
}, _),
|
|
@@ -4602,7 +4598,7 @@ const ds = (h) => {
|
|
|
4602
4598
|
onBlur: u,
|
|
4603
4599
|
onChange: Y,
|
|
4604
4600
|
onFocus: b,
|
|
4605
|
-
"aria-invalid":
|
|
4601
|
+
"aria-invalid": h === "error" ? !0 : null,
|
|
4606
4602
|
"aria-describedby": P ? `${l}__message` : null
|
|
4607
4603
|
}), i)
|
|
4608
4604
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: l, className: `${z}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -4634,7 +4630,7 @@ const ds = (h) => {
|
|
|
4634
4630
|
message: P,
|
|
4635
4631
|
hasValidationMessage: !!$,
|
|
4636
4632
|
validationMessageHasDecorators: !0,
|
|
4637
|
-
validationStatus:
|
|
4633
|
+
validationStatus: h
|
|
4638
4634
|
}
|
|
4639
4635
|
)
|
|
4640
4636
|
);
|
|
@@ -4651,9 +4647,9 @@ const ds = (h) => {
|
|
|
4651
4647
|
required: c = !1,
|
|
4652
4648
|
showLabel: o = !0,
|
|
4653
4649
|
validationMessage: d,
|
|
4654
|
-
validationStatus:
|
|
4650
|
+
validationStatus: f,
|
|
4655
4651
|
className: u
|
|
4656
|
-
} = E,
|
|
4652
|
+
} = E, p = S(E, [
|
|
4657
4653
|
"children",
|
|
4658
4654
|
"disabled",
|
|
4659
4655
|
"fieldsetProps",
|
|
@@ -4667,20 +4663,20 @@ const ds = (h) => {
|
|
|
4667
4663
|
"validationStatus",
|
|
4668
4664
|
"className"
|
|
4669
4665
|
]);
|
|
4670
|
-
const y = r ? { width: `${r / 16}rem` } : null, v = "pds-checkbox-group", $ = s ? J.disabled : null,
|
|
4666
|
+
const y = r ? { width: `${r / 16}rem` } : null, v = "pds-checkbox-group", $ = s ? J.disabled : null, h = c && !s ? J.required : null, m = f === "error" ? J.error : null, g = f === "success" ? J.success : null, _ = d || a;
|
|
4671
4667
|
return /* @__PURE__ */ e.createElement(
|
|
4672
4668
|
"div",
|
|
4673
4669
|
L({
|
|
4674
4670
|
className: [
|
|
4675
4671
|
v,
|
|
4676
4672
|
$,
|
|
4677
|
-
|
|
4673
|
+
h,
|
|
4678
4674
|
m,
|
|
4679
|
-
|
|
4675
|
+
g,
|
|
4680
4676
|
u != null ? u : ""
|
|
4681
4677
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4682
4678
|
style: r ? y : null
|
|
4683
|
-
},
|
|
4679
|
+
}, p),
|
|
4684
4680
|
/* @__PURE__ */ e.createElement("fieldset", L({ className: `${v}__fieldset`, id: l }, n), /* @__PURE__ */ e.createElement(
|
|
4685
4681
|
je,
|
|
4686
4682
|
{
|
|
@@ -4699,7 +4695,7 @@ const ds = (h) => {
|
|
|
4699
4695
|
message: _,
|
|
4700
4696
|
hasValidationMessage: !!d,
|
|
4701
4697
|
validationMessageHasDecorators: !0,
|
|
4702
|
-
validationStatus:
|
|
4698
|
+
validationStatus: f
|
|
4703
4699
|
}
|
|
4704
4700
|
)
|
|
4705
4701
|
);
|
|
@@ -4715,9 +4711,9 @@ const ds = (h) => {
|
|
|
4715
4711
|
onValueChange: c,
|
|
4716
4712
|
options: o,
|
|
4717
4713
|
required: d = !1,
|
|
4718
|
-
showLabel:
|
|
4714
|
+
showLabel: f = !0,
|
|
4719
4715
|
validationMessage: u,
|
|
4720
|
-
validationStatus:
|
|
4716
|
+
validationStatus: p,
|
|
4721
4717
|
className: b
|
|
4722
4718
|
} = v, E = S(v, [
|
|
4723
4719
|
"disabled",
|
|
@@ -4735,7 +4731,7 @@ const ds = (h) => {
|
|
|
4735
4731
|
"validationStatus",
|
|
4736
4732
|
"className"
|
|
4737
4733
|
]);
|
|
4738
|
-
const $ = l ? { width: `${l / 16}rem` } : null,
|
|
4734
|
+
const $ = l ? { width: `${l / 16}rem` } : null, h = "pds-checkbox-group", m = t ? J.disabled : null, g = d && !t ? J.required : null, _ = p === "error" ? J.error : null, C = p === "success" ? J.success : null, M = u || i;
|
|
4739
4735
|
o.map((V) => {
|
|
4740
4736
|
V.id || (V.id = V.value);
|
|
4741
4737
|
});
|
|
@@ -4759,16 +4755,16 @@ const ds = (h) => {
|
|
|
4759
4755
|
"div",
|
|
4760
4756
|
L({
|
|
4761
4757
|
className: [
|
|
4762
|
-
|
|
4758
|
+
h,
|
|
4763
4759
|
m,
|
|
4764
|
-
|
|
4760
|
+
g,
|
|
4765
4761
|
_,
|
|
4766
4762
|
C,
|
|
4767
4763
|
b != null ? b : ""
|
|
4768
4764
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
4769
4765
|
style: l ? $ : null
|
|
4770
4766
|
}, E),
|
|
4771
|
-
/* @__PURE__ */ e.createElement("fieldset", L({ className: `${
|
|
4767
|
+
/* @__PURE__ */ e.createElement("fieldset", L({ className: `${h}__fieldset`, id: n }, s), /* @__PURE__ */ e.createElement(
|
|
4772
4768
|
je,
|
|
4773
4769
|
{
|
|
4774
4770
|
disabled: t,
|
|
@@ -4776,9 +4772,9 @@ const ds = (h) => {
|
|
|
4776
4772
|
id: n,
|
|
4777
4773
|
isLegend: !0,
|
|
4778
4774
|
required: d,
|
|
4779
|
-
showLabel:
|
|
4775
|
+
showLabel: f
|
|
4780
4776
|
}
|
|
4781
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4777
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((V) => /* @__PURE__ */ e.createElement(
|
|
4782
4778
|
g2,
|
|
4783
4779
|
{
|
|
4784
4780
|
key: V.id,
|
|
@@ -4788,7 +4784,7 @@ const ds = (h) => {
|
|
|
4788
4784
|
name: V.name,
|
|
4789
4785
|
value: V.value,
|
|
4790
4786
|
disabled: V.disabled || t,
|
|
4791
|
-
className: `${
|
|
4787
|
+
className: `${h}__checkbox`,
|
|
4792
4788
|
onChange: k,
|
|
4793
4789
|
onBlur: I
|
|
4794
4790
|
}
|
|
@@ -4800,7 +4796,7 @@ const ds = (h) => {
|
|
|
4800
4796
|
message: M,
|
|
4801
4797
|
hasValidationMessage: !!u,
|
|
4802
4798
|
validationMessageHasDecorators: !0,
|
|
4803
|
-
validationStatus:
|
|
4799
|
+
validationStatus: p
|
|
4804
4800
|
}
|
|
4805
4801
|
)
|
|
4806
4802
|
);
|
|
@@ -4817,22 +4813,22 @@ const ds = (h) => {
|
|
|
4817
4813
|
inputWidth: c,
|
|
4818
4814
|
isLoading: o = !1,
|
|
4819
4815
|
label: d,
|
|
4820
|
-
labelStrings:
|
|
4816
|
+
labelStrings: f = {
|
|
4821
4817
|
clearButton: "Clear input text",
|
|
4822
4818
|
inputInstructions: "Type to search options",
|
|
4823
4819
|
searchShortcut: "Press / to focus the search field",
|
|
4824
4820
|
triggerButton: "Toggle dropdown menu"
|
|
4825
4821
|
},
|
|
4826
4822
|
loadingText: u = "Loading results...",
|
|
4827
|
-
message:
|
|
4823
|
+
message: p,
|
|
4828
4824
|
noResultsText: b = "No results found",
|
|
4829
4825
|
onChange: E,
|
|
4830
4826
|
onBlur: y,
|
|
4831
4827
|
onClear: v,
|
|
4832
4828
|
onFocus: $,
|
|
4833
|
-
onOptionSelect:
|
|
4829
|
+
onOptionSelect: h,
|
|
4834
4830
|
options: m,
|
|
4835
|
-
placeholder:
|
|
4831
|
+
placeholder: g,
|
|
4836
4832
|
required: _ = !1,
|
|
4837
4833
|
showLabel: C = !0,
|
|
4838
4834
|
value: M,
|
|
@@ -4871,7 +4867,7 @@ const ds = (h) => {
|
|
|
4871
4867
|
const T = tt(c), N = "pds-combobox", P = s ? J.disabled : null, B = _ && !s ? J.required : null, F = w === "error" ? J.error : null, K = w === "success" ? J.success : null;
|
|
4872
4868
|
let Q = null;
|
|
4873
4869
|
r && (Q = "search"), w === "error" && (Q = "error"), w === "success" && (Q = "success");
|
|
4874
|
-
const G = H ||
|
|
4870
|
+
const G = H || p, Y = typeof M != "undefined", W = typeof t != "undefined", O = (q) => {
|
|
4875
4871
|
const U = m.find((re) => re.value === q);
|
|
4876
4872
|
return U ? U.label : "";
|
|
4877
4873
|
}, [X, ae] = Z(!1), [te, j] = Z(null), [se, ne] = Z(
|
|
@@ -4915,7 +4911,7 @@ const ds = (h) => {
|
|
|
4915
4911
|
$ && $(q);
|
|
4916
4912
|
}, we = (q) => {
|
|
4917
4913
|
const U = me[q];
|
|
4918
|
-
!Y && ne(U.label), j(null), ae(!1),
|
|
4914
|
+
!Y && ne(U.label), j(null), ae(!1), h && h(U);
|
|
4919
4915
|
}, Ne = (q) => q.map((re) => {
|
|
4920
4916
|
const Ue = re, { label: le, optionDisplay: pe, value: oe, searchIndex: ye } = Ue, nt = S(Ue, ["label", "optionDisplay", "value", "searchIndex"]), Le = oe || le, We = [le, oe];
|
|
4921
4917
|
return ye && We.push(...ye), L({
|
|
@@ -5004,9 +5000,9 @@ const ds = (h) => {
|
|
|
5004
5000
|
autoComplete: "off"
|
|
5005
5001
|
}, Be({
|
|
5006
5002
|
"aria-autocomplete": "list",
|
|
5007
|
-
"aria-label":
|
|
5003
|
+
"aria-label": f.inputInstructions,
|
|
5008
5004
|
disabled: s,
|
|
5009
|
-
placeholder:
|
|
5005
|
+
placeholder: g,
|
|
5010
5006
|
value: ge,
|
|
5011
5007
|
onBlur: fe,
|
|
5012
5008
|
onChange: Ee,
|
|
@@ -5020,7 +5016,7 @@ const ds = (h) => {
|
|
|
5020
5016
|
Gt,
|
|
5021
5017
|
{
|
|
5022
5018
|
id: `input-${a}`,
|
|
5023
|
-
clearLabel:
|
|
5019
|
+
clearLabel: f.clearButton,
|
|
5024
5020
|
handleClearInput: _e
|
|
5025
5021
|
}
|
|
5026
5022
|
),
|
|
@@ -5028,7 +5024,7 @@ const ds = (h) => {
|
|
|
5028
5024
|
E1,
|
|
5029
5025
|
{
|
|
5030
5026
|
inputId: `input-${a}`,
|
|
5031
|
-
shortcutLabel:
|
|
5027
|
+
shortcutLabel: f.searchShortcut
|
|
5032
5028
|
}
|
|
5033
5029
|
),
|
|
5034
5030
|
l && /* @__PURE__ */ e.createElement(
|
|
@@ -5040,7 +5036,7 @@ const ds = (h) => {
|
|
|
5040
5036
|
disabled: s,
|
|
5041
5037
|
type: "button",
|
|
5042
5038
|
"aria-expanded": X,
|
|
5043
|
-
"aria-label":
|
|
5039
|
+
"aria-label": f.triggerButton
|
|
5044
5040
|
})), {
|
|
5045
5041
|
className: `${N}__trigger`
|
|
5046
5042
|
}),
|
|
@@ -5078,8 +5074,8 @@ const ds = (h) => {
|
|
|
5078
5074
|
);
|
|
5079
5075
|
}
|
|
5080
5076
|
), vs = Ze(
|
|
5081
|
-
(
|
|
5082
|
-
var _ =
|
|
5077
|
+
(g, m) => {
|
|
5078
|
+
var _ = g, {
|
|
5083
5079
|
accept: t,
|
|
5084
5080
|
defaultValue: s,
|
|
5085
5081
|
disabled: n = !1,
|
|
@@ -5093,15 +5089,15 @@ const ds = (h) => {
|
|
|
5093
5089
|
},
|
|
5094
5090
|
message: o,
|
|
5095
5091
|
multiple: d = !1,
|
|
5096
|
-
onClear:
|
|
5092
|
+
onClear: f,
|
|
5097
5093
|
onFileChange: u,
|
|
5098
|
-
required:
|
|
5094
|
+
required: p = !1,
|
|
5099
5095
|
showFullPath: b,
|
|
5100
5096
|
showLabel: E = !0,
|
|
5101
5097
|
validationMessage: y,
|
|
5102
5098
|
validationStatus: v,
|
|
5103
5099
|
className: $
|
|
5104
|
-
} = _,
|
|
5100
|
+
} = _, h = S(_, [
|
|
5105
5101
|
"accept",
|
|
5106
5102
|
"defaultValue",
|
|
5107
5103
|
"disabled",
|
|
@@ -5121,7 +5117,7 @@ const ds = (h) => {
|
|
|
5121
5117
|
"validationStatus",
|
|
5122
5118
|
"className"
|
|
5123
5119
|
]);
|
|
5124
|
-
const [C, M] = Z(!1), H = tt(a), w = "pds-file-upload", z = n ? J.disabled : null, k =
|
|
5120
|
+
const [C, M] = Z(!1), H = tt(a), w = "pds-file-upload", z = n ? J.disabled : null, k = p && !n ? J.required : null, I = v === "error" ? J.error : null, V = v === "success" ? J.success : null;
|
|
5125
5121
|
let A = null;
|
|
5126
5122
|
v === "error" && (A = "error"), v === "success" && (A = "success");
|
|
5127
5123
|
const T = y || o;
|
|
@@ -5153,7 +5149,7 @@ const ds = (h) => {
|
|
|
5153
5149
|
const F = document.getElementById(
|
|
5154
5150
|
`${r}--input`
|
|
5155
5151
|
);
|
|
5156
|
-
F.value = "", M(!1),
|
|
5152
|
+
F.value = "", M(!1), f && f(), F.focus();
|
|
5157
5153
|
};
|
|
5158
5154
|
return /* @__PURE__ */ e.createElement(
|
|
5159
5155
|
"div",
|
|
@@ -5168,7 +5164,7 @@ const ds = (h) => {
|
|
|
5168
5164
|
$ != null ? $ : ""
|
|
5169
5165
|
]),
|
|
5170
5166
|
style: a ? H : null
|
|
5171
|
-
},
|
|
5167
|
+
}, h),
|
|
5172
5168
|
/* @__PURE__ */ e.createElement(
|
|
5173
5169
|
je,
|
|
5174
5170
|
{
|
|
@@ -5176,7 +5172,7 @@ const ds = (h) => {
|
|
|
5176
5172
|
isPseudoLabel: !0,
|
|
5177
5173
|
label: l,
|
|
5178
5174
|
showLabel: E,
|
|
5179
|
-
required:
|
|
5175
|
+
required: p,
|
|
5180
5176
|
disabled: n
|
|
5181
5177
|
}
|
|
5182
5178
|
),
|
|
@@ -5198,7 +5194,7 @@ const ds = (h) => {
|
|
|
5198
5194
|
accept: t || null,
|
|
5199
5195
|
disabled: n,
|
|
5200
5196
|
multiple: d,
|
|
5201
|
-
required:
|
|
5197
|
+
required: p,
|
|
5202
5198
|
onChange: N,
|
|
5203
5199
|
"aria-invalid": v === "error" ? !0 : null,
|
|
5204
5200
|
"aria-describedby": T ? `${r}__message` : null
|
|
@@ -5232,11 +5228,11 @@ const ds = (h) => {
|
|
|
5232
5228
|
"className"
|
|
5233
5229
|
]);
|
|
5234
5230
|
var b, E, y, v;
|
|
5235
|
-
const i = "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, d = (y = t[0].props.validationMessage) != null ? y : null,
|
|
5231
|
+
const i = "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, d = (y = t[0].props.validationMessage) != null ? y : null, f = (v = t[0].props.validationStatus) != null ? v : null, u = d || o, p = u ? `${i}--has-message` : null;
|
|
5236
5232
|
return /* @__PURE__ */ e.createElement(
|
|
5237
5233
|
"div",
|
|
5238
5234
|
L({
|
|
5239
|
-
className: x([i,
|
|
5235
|
+
className: x([i, p, s != null ? s : ""])
|
|
5240
5236
|
}, n),
|
|
5241
5237
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__inner` }, a),
|
|
5242
5238
|
u && /* @__PURE__ */ e.createElement(
|
|
@@ -5246,12 +5242,12 @@ const ds = (h) => {
|
|
|
5246
5242
|
message: u,
|
|
5247
5243
|
hasValidationMessage: !!d,
|
|
5248
5244
|
validationMessageHasDecorators: !1,
|
|
5249
|
-
validationStatus:
|
|
5245
|
+
validationStatus: f
|
|
5250
5246
|
}
|
|
5251
5247
|
)
|
|
5252
5248
|
);
|
|
5253
|
-
}, Cs = (
|
|
5254
|
-
var m =
|
|
5249
|
+
}, Cs = (h) => {
|
|
5250
|
+
var m = h, {
|
|
5255
5251
|
defaultValue: t,
|
|
5256
5252
|
disabled: s = !1,
|
|
5257
5253
|
fieldsetProps: n,
|
|
@@ -5262,9 +5258,9 @@ const ds = (h) => {
|
|
|
5262
5258
|
onBlur: c,
|
|
5263
5259
|
onChange: o,
|
|
5264
5260
|
onValueChange: d,
|
|
5265
|
-
options:
|
|
5261
|
+
options: f,
|
|
5266
5262
|
required: u = !1,
|
|
5267
|
-
showLabel:
|
|
5263
|
+
showLabel: p = !0,
|
|
5268
5264
|
validationMessage: b,
|
|
5269
5265
|
validationStatus: E,
|
|
5270
5266
|
value: y,
|
|
@@ -5288,7 +5284,7 @@ const ds = (h) => {
|
|
|
5288
5284
|
"value",
|
|
5289
5285
|
"className"
|
|
5290
5286
|
]);
|
|
5291
|
-
const
|
|
5287
|
+
const g = "pds-radio-group", _ = s ? J.disabled : null, C = u && !s ? J.required : null, M = E === "error" ? J.error : null, H = E === "success" ? J.success : null, w = typeof y != "undefined", z = typeof t != "undefined", [k, I] = Z(
|
|
5292
5288
|
z ? t : ""
|
|
5293
5289
|
), V = b || a, A = (N) => {
|
|
5294
5290
|
w || I(N.target.value), o && o(N), d && d(N.target.value);
|
|
@@ -5299,7 +5295,7 @@ const ds = (h) => {
|
|
|
5299
5295
|
"div",
|
|
5300
5296
|
L({
|
|
5301
5297
|
className: x([
|
|
5302
|
-
|
|
5298
|
+
g,
|
|
5303
5299
|
_,
|
|
5304
5300
|
C,
|
|
5305
5301
|
M,
|
|
@@ -5308,7 +5304,7 @@ const ds = (h) => {
|
|
|
5308
5304
|
]),
|
|
5309
5305
|
style: tt(r)
|
|
5310
5306
|
}, $),
|
|
5311
|
-
/* @__PURE__ */ e.createElement("fieldset", L({ className: `${
|
|
5307
|
+
/* @__PURE__ */ e.createElement("fieldset", L({ className: `${g}__fieldset`, id: l }, n), /* @__PURE__ */ e.createElement(
|
|
5312
5308
|
je,
|
|
5313
5309
|
{
|
|
5314
5310
|
disabled: s,
|
|
@@ -5316,12 +5312,12 @@ const ds = (h) => {
|
|
|
5316
5312
|
id: l,
|
|
5317
5313
|
isLegend: !0,
|
|
5318
5314
|
required: u,
|
|
5319
|
-
showLabel:
|
|
5315
|
+
showLabel: p
|
|
5320
5316
|
}
|
|
5321
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5317
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${g}__options` }, f.map((N, P) => /* @__PURE__ */ e.createElement(
|
|
5322
5318
|
"div",
|
|
5323
5319
|
{
|
|
5324
|
-
className: `${
|
|
5320
|
+
className: `${g}__option`,
|
|
5325
5321
|
key: `${l}-option-${P}`
|
|
5326
5322
|
},
|
|
5327
5323
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5376,8 +5372,8 @@ const ds = (h) => {
|
|
|
5376
5372
|
},
|
|
5377
5373
|
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "sm" })
|
|
5378
5374
|
)), $s = Ze(
|
|
5379
|
-
(
|
|
5380
|
-
var m =
|
|
5375
|
+
(h, $) => {
|
|
5376
|
+
var m = h, {
|
|
5381
5377
|
checked: t,
|
|
5382
5378
|
defaultChecked: s,
|
|
5383
5379
|
disabled: n = !1,
|
|
@@ -5388,9 +5384,9 @@ const ds = (h) => {
|
|
|
5388
5384
|
switchPlacement: c = "right",
|
|
5389
5385
|
message: o,
|
|
5390
5386
|
offLabel: d = "Off",
|
|
5391
|
-
onChange:
|
|
5387
|
+
onChange: f,
|
|
5392
5388
|
onLabel: u = "On",
|
|
5393
|
-
required:
|
|
5389
|
+
required: p = !1,
|
|
5394
5390
|
showLabel: b = !0,
|
|
5395
5391
|
showStatusLabel: E = !0,
|
|
5396
5392
|
className: y
|
|
@@ -5412,8 +5408,8 @@ const ds = (h) => {
|
|
|
5412
5408
|
"showStatusLabel",
|
|
5413
5409
|
"className"
|
|
5414
5410
|
]);
|
|
5415
|
-
const
|
|
5416
|
-
H || V(Q.target.checked),
|
|
5411
|
+
const g = tt(i), _ = "pds-switch", C = n ? J.disabled : null, M = p && !n ? J.required : null, H = typeof t != "undefined", w = c == "below", z = c == "right", k = !H && s ? s : !1, [I, V] = Z(k), A = t || I ? u : d, T = (Q) => {
|
|
5412
|
+
H || V(Q.target.checked), f && f(Q);
|
|
5417
5413
|
}, N = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
5418
5414
|
"input",
|
|
5419
5415
|
L({
|
|
@@ -5425,7 +5421,7 @@ const ds = (h) => {
|
|
|
5425
5421
|
className: "visually-hidden",
|
|
5426
5422
|
onChange: T,
|
|
5427
5423
|
disabled: n,
|
|
5428
|
-
required:
|
|
5424
|
+
required: p,
|
|
5429
5425
|
checked: t !== void 0 ? t : I,
|
|
5430
5426
|
"aria-describedby": o ? `${l}__message` : null
|
|
5431
5427
|
}, r)
|
|
@@ -5435,7 +5431,7 @@ const ds = (h) => {
|
|
|
5435
5431
|
id: l,
|
|
5436
5432
|
label: a,
|
|
5437
5433
|
showLabel: b,
|
|
5438
|
-
required:
|
|
5434
|
+
required: p,
|
|
5439
5435
|
disabled: n,
|
|
5440
5436
|
className: x([
|
|
5441
5437
|
"pds-input-label--disable-click",
|
|
@@ -5474,7 +5470,7 @@ const ds = (h) => {
|
|
|
5474
5470
|
K,
|
|
5475
5471
|
y
|
|
5476
5472
|
]),
|
|
5477
|
-
style: i ?
|
|
5473
|
+
style: i ? g : null
|
|
5478
5474
|
}, v),
|
|
5479
5475
|
F
|
|
5480
5476
|
);
|
|
@@ -5492,9 +5488,9 @@ const ds = (h) => {
|
|
|
5492
5488
|
message: c,
|
|
5493
5489
|
onBlur: o,
|
|
5494
5490
|
onChange: d,
|
|
5495
|
-
onFocus:
|
|
5491
|
+
onFocus: f,
|
|
5496
5492
|
placeholder: u,
|
|
5497
|
-
readonly:
|
|
5493
|
+
readonly: p = !1,
|
|
5498
5494
|
required: b = !1,
|
|
5499
5495
|
rows: E = 5,
|
|
5500
5496
|
showLabel: y,
|
|
@@ -5507,9 +5503,9 @@ const ds = (h) => {
|
|
|
5507
5503
|
visibilityToggleHide: "Hide input value",
|
|
5508
5504
|
visibilityToggleShow: "Show input value"
|
|
5509
5505
|
},
|
|
5510
|
-
validationMessage:
|
|
5506
|
+
validationMessage: h,
|
|
5511
5507
|
validationStatus: m,
|
|
5512
|
-
value:
|
|
5508
|
+
value: g,
|
|
5513
5509
|
className: _
|
|
5514
5510
|
} = w, C = S(w, [
|
|
5515
5511
|
"counterMaxLength",
|
|
@@ -5535,9 +5531,9 @@ const ds = (h) => {
|
|
|
5535
5531
|
"value",
|
|
5536
5532
|
"className"
|
|
5537
5533
|
]);
|
|
5538
|
-
const z = tt(r), k = "pds-textarea", I = i ? "pds-is-resizable" : null, V = n ? J.disabled : null, A = b && !n ? J.required : null, T = m === "error" ? J.error : null, N = m === "success" ? J.success : null, P =
|
|
5534
|
+
const z = tt(r), k = "pds-textarea", I = i ? "pds-is-resizable" : null, V = n ? J.disabled : null, A = b && !n ? J.required : null, T = m === "error" ? J.error : null, N = m === "success" ? J.success : null, P = p ? J.readonly : null, B = h || c, F = g != null && d !== void 0, K = typeof s != "undefined", [Q, G] = Z(
|
|
5539
5535
|
K ? s : ""
|
|
5540
|
-
), Y =
|
|
5536
|
+
), Y = g || Q, W = (X) => {
|
|
5541
5537
|
F || G(X.target.value), d && d(X);
|
|
5542
5538
|
}, O = (X) => {
|
|
5543
5539
|
o && o(X);
|
|
@@ -5585,13 +5581,13 @@ const ds = (h) => {
|
|
|
5585
5581
|
name: l,
|
|
5586
5582
|
placeholder: u,
|
|
5587
5583
|
required: b,
|
|
5588
|
-
readOnly:
|
|
5584
|
+
readOnly: p,
|
|
5589
5585
|
disabled: n,
|
|
5590
|
-
value: F ?
|
|
5586
|
+
value: F ? g : Q,
|
|
5591
5587
|
rows: E,
|
|
5592
5588
|
onChange: W,
|
|
5593
5589
|
onBlur: O,
|
|
5594
|
-
onFocus:
|
|
5590
|
+
onFocus: f,
|
|
5595
5591
|
"aria-invalid": m === "error",
|
|
5596
5592
|
"aria-describedby": B ? `${l}__message` : null
|
|
5597
5593
|
}, v)
|
|
@@ -5601,7 +5597,7 @@ const ds = (h) => {
|
|
|
5601
5597
|
{
|
|
5602
5598
|
id: l,
|
|
5603
5599
|
message: B,
|
|
5604
|
-
hasValidationMessage: !!
|
|
5600
|
+
hasValidationMessage: !!h,
|
|
5605
5601
|
validationMessageHasDecorators: !0,
|
|
5606
5602
|
validationStatus: m
|
|
5607
5603
|
}
|
|
@@ -5621,17 +5617,17 @@ const ds = (h) => {
|
|
|
5621
5617
|
inputProps: c,
|
|
5622
5618
|
inputWidth: o,
|
|
5623
5619
|
label: d,
|
|
5624
|
-
message:
|
|
5620
|
+
message: f,
|
|
5625
5621
|
onBlur: u,
|
|
5626
|
-
onChange:
|
|
5622
|
+
onChange: p,
|
|
5627
5623
|
onClear: b,
|
|
5628
5624
|
onFocus: E,
|
|
5629
5625
|
placeholder: y,
|
|
5630
5626
|
readonly: v = !1,
|
|
5631
5627
|
required: $ = !1,
|
|
5632
|
-
searchIcon:
|
|
5628
|
+
searchIcon: h = "search",
|
|
5633
5629
|
showLabel: m = !0,
|
|
5634
|
-
showVisibilityToggle:
|
|
5630
|
+
showVisibilityToggle: g = !1,
|
|
5635
5631
|
translationStrings: _ = {
|
|
5636
5632
|
clearButton: "Clear input text",
|
|
5637
5633
|
counterOverLimit: "Character limit exceeded by",
|
|
@@ -5676,13 +5672,13 @@ const ds = (h) => {
|
|
|
5676
5672
|
]);
|
|
5677
5673
|
const T = tt(o), N = "pds-text-input", P = l ? J.disabled : null, B = $ && !l ? J.required : null, F = H === "error" ? J.error : null, K = H === "success" ? J.success : null, Q = v ? J.readonly : null;
|
|
5678
5674
|
let G = null;
|
|
5679
|
-
C === "search" && (G = "search"), C === "search" &&
|
|
5680
|
-
const Y = M ||
|
|
5675
|
+
C === "search" && (G = "search"), C === "search" && h === "filter" && (G = "filter"), H === "error" && (G = "error"), H === "success" && (G = "success");
|
|
5676
|
+
const Y = M || f, W = typeof w != "undefined", O = typeof n != "undefined", [X, ae] = Z(
|
|
5681
5677
|
O ? n : ""
|
|
5682
5678
|
), te = w || X, j = (ee) => {
|
|
5683
|
-
|
|
5679
|
+
g && me && ue(!1), u && u(ee);
|
|
5684
5680
|
}, se = (ee) => {
|
|
5685
|
-
W || ae(ee.target.value),
|
|
5681
|
+
W || ae(ee.target.value), p && p(ee);
|
|
5686
5682
|
}, ne = () => {
|
|
5687
5683
|
W || ae(""), b && b();
|
|
5688
5684
|
const ee = document.getElementById(a);
|
|
@@ -5693,7 +5689,7 @@ const ds = (h) => {
|
|
|
5693
5689
|
ee && ee.focus();
|
|
5694
5690
|
};
|
|
5695
5691
|
let $e = C;
|
|
5696
|
-
return
|
|
5692
|
+
return g && C === "password" && (me ? $e = "text" : $e = "password"), /* @__PURE__ */ e.createElement(
|
|
5697
5693
|
"div",
|
|
5698
5694
|
L({
|
|
5699
5695
|
className: x([
|
|
@@ -5718,7 +5714,7 @@ const ds = (h) => {
|
|
|
5718
5714
|
disabled: l
|
|
5719
5715
|
}
|
|
5720
5716
|
),
|
|
5721
|
-
|
|
5717
|
+
g && C === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${_.visibilityStatus} ${me ? "visible" : "hidden"}.`),
|
|
5722
5718
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, G && /* @__PURE__ */ e.createElement(ut, { variant: G }), /* @__PURE__ */ e.createElement(
|
|
5723
5719
|
"input",
|
|
5724
5720
|
L({
|
|
@@ -5746,7 +5742,7 @@ const ds = (h) => {
|
|
|
5746
5742
|
clearLabel: _.clearButton,
|
|
5747
5743
|
handleClearInput: ne
|
|
5748
5744
|
}
|
|
5749
|
-
),
|
|
5745
|
+
), g && C === "password" && /* @__PURE__ */ e.createElement(
|
|
5750
5746
|
"button",
|
|
5751
5747
|
{
|
|
5752
5748
|
type: "button",
|
|
@@ -5812,7 +5808,7 @@ const ds = (h) => {
|
|
|
5812
5808
|
/* @__PURE__ */ e.createElement(R, { iconName: "externalLink", className: `${o}__icon` })
|
|
5813
5809
|
);
|
|
5814
5810
|
}, Ls = (d) => {
|
|
5815
|
-
var
|
|
5811
|
+
var f = d, {
|
|
5816
5812
|
ariaLabel: t,
|
|
5817
5813
|
children: s,
|
|
5818
5814
|
hasCloseButton: n = !0,
|
|
@@ -5822,7 +5818,7 @@ const ds = (h) => {
|
|
|
5822
5818
|
size: i = "md",
|
|
5823
5819
|
title: a,
|
|
5824
5820
|
className: c
|
|
5825
|
-
} =
|
|
5821
|
+
} = f, o = S(f, [
|
|
5826
5822
|
"ariaLabel",
|
|
5827
5823
|
"children",
|
|
5828
5824
|
"hasCloseButton",
|
|
@@ -5832,7 +5828,7 @@ const ds = (h) => {
|
|
|
5832
5828
|
"title",
|
|
5833
5829
|
"className"
|
|
5834
5830
|
]);
|
|
5835
|
-
const u = "pds-modal",
|
|
5831
|
+
const u = "pds-modal", p = i !== "md" ? `${u}--${i}` : null, [b, E] = Z(l);
|
|
5836
5832
|
ce(() => {
|
|
5837
5833
|
E(l);
|
|
5838
5834
|
}, [l]), ce(() => {
|
|
@@ -5841,9 +5837,9 @@ const ds = (h) => {
|
|
|
5841
5837
|
const { refs: y, context: v, floatingStyles: $ } = Ve({
|
|
5842
5838
|
open: b,
|
|
5843
5839
|
onOpenChange: E
|
|
5844
|
-
}),
|
|
5840
|
+
}), h = Ke(v), m = Ie(v, {
|
|
5845
5841
|
outsidePressEvent: "mousedown"
|
|
5846
|
-
}),
|
|
5842
|
+
}), g = Se(v), { getFloatingProps: _ } = Ae([h, m, g]), { isMounted: C, styles: M } = Xe(v, {
|
|
5847
5843
|
duration: {
|
|
5848
5844
|
open: 300,
|
|
5849
5845
|
close: 300
|
|
@@ -5878,7 +5874,7 @@ const ds = (h) => {
|
|
|
5878
5874
|
ref: y.setFloating,
|
|
5879
5875
|
"aria-label": t || a
|
|
5880
5876
|
}, _()), {
|
|
5881
|
-
className: [u,
|
|
5877
|
+
className: [u, p, c].join(" ").trim().replace(/\s+/g, " "),
|
|
5882
5878
|
style: he(L(L({}, $), M), {
|
|
5883
5879
|
position: "relative",
|
|
5884
5880
|
top: "5%"
|
|
@@ -5908,9 +5904,9 @@ const ds = (h) => {
|
|
|
5908
5904
|
"crumbs",
|
|
5909
5905
|
"className"
|
|
5910
5906
|
]);
|
|
5911
|
-
const a = "pds-breadcrumb", c = s.length, o = s.map((d,
|
|
5912
|
-
if (
|
|
5913
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
5907
|
+
const a = "pds-breadcrumb", c = s.length, o = s.map((d, f) => {
|
|
5908
|
+
if (f < c - 1)
|
|
5909
|
+
return /* @__PURE__ */ e.createElement("li", { key: f, className: `${a}__crumb` }, d);
|
|
5914
5910
|
{
|
|
5915
5911
|
const u = be(d) ? xe(d, {
|
|
5916
5912
|
"aria-current": "page"
|
|
@@ -5918,7 +5914,7 @@ const ds = (h) => {
|
|
|
5918
5914
|
return /* @__PURE__ */ e.createElement(
|
|
5919
5915
|
"li",
|
|
5920
5916
|
{
|
|
5921
|
-
key:
|
|
5917
|
+
key: f,
|
|
5922
5918
|
className: `${a}__crumb ${a}__crumb--current`
|
|
5923
5919
|
},
|
|
5924
5920
|
u
|
|
@@ -6003,8 +5999,8 @@ const ds = (h) => {
|
|
|
6003
5999
|
}, l),
|
|
6004
6000
|
s
|
|
6005
6001
|
);
|
|
6006
|
-
}, Mt = m1(null), Hs = (
|
|
6007
|
-
var b =
|
|
6002
|
+
}, Mt = m1(null), Hs = (p) => {
|
|
6003
|
+
var b = p, {
|
|
6008
6004
|
children: t,
|
|
6009
6005
|
hasSidebarToggle: s = !0,
|
|
6010
6006
|
isAdmin: n,
|
|
@@ -6016,7 +6012,7 @@ const ds = (h) => {
|
|
|
6016
6012
|
isSidebarExpanded: o,
|
|
6017
6013
|
setIsSidebarExpanded: d = () => {
|
|
6018
6014
|
},
|
|
6019
|
-
className:
|
|
6015
|
+
className: f
|
|
6020
6016
|
} = b, u = S(b, [
|
|
6021
6017
|
"children",
|
|
6022
6018
|
"hasSidebarToggle",
|
|
@@ -6030,23 +6026,21 @@ const ds = (h) => {
|
|
|
6030
6026
|
"setIsSidebarExpanded",
|
|
6031
6027
|
"className"
|
|
6032
6028
|
]);
|
|
6033
|
-
const {
|
|
6034
|
-
E === "xl" || o
|
|
6035
|
-
), p = ie(), [m] = yt(p), f = m.width;
|
|
6029
|
+
const { isMobile: E, windowWidth: y } = Ce(ze), [v, $] = Z(y > 1440 || o), h = ie(), [m] = yt(h), g = m.width;
|
|
6036
6030
|
ce(() => {
|
|
6037
6031
|
o !== void 0 && $(o);
|
|
6038
6032
|
}, [o]), ce(() => {
|
|
6039
6033
|
d(v);
|
|
6040
6034
|
}, [v, d]);
|
|
6041
6035
|
const _ = {
|
|
6042
|
-
isSidebarExpanded:
|
|
6036
|
+
isSidebarExpanded: E ? !0 : v,
|
|
6043
6037
|
logoLinkContent: l,
|
|
6044
|
-
navbarWidth:
|
|
6038
|
+
navbarWidth: g,
|
|
6045
6039
|
isAdmin: n
|
|
6046
|
-
}, C = "pds-dashboard-global", M = n ? `${C}--isAdmin` : null, H =
|
|
6040
|
+
}, C = "pds-dashboard-global", M = n ? `${C}--isAdmin` : null, H = E ? `${C}--isMobile` : `${C}--notMobile`, w = E ? null : v ? `${C}--sidebarExpanded` : `${C}--sidebarCollapsed`, z = v ? `${i}rem` : `${r}rem`, k = {
|
|
6047
6041
|
width: z,
|
|
6048
6042
|
transition: "width 200ms ease-in-out"
|
|
6049
|
-
}, I =
|
|
6043
|
+
}, I = E ? {} : {
|
|
6050
6044
|
width: `calc(100% - ${z})`,
|
|
6051
6045
|
transition: "width 200ms ease-in-out"
|
|
6052
6046
|
}, V = () => {
|
|
@@ -6070,19 +6064,19 @@ const ds = (h) => {
|
|
|
6070
6064
|
H,
|
|
6071
6065
|
w,
|
|
6072
6066
|
"pds-typography--product",
|
|
6073
|
-
|
|
6067
|
+
f != null ? f : ""
|
|
6074
6068
|
])
|
|
6075
6069
|
}, u),
|
|
6076
|
-
|
|
6077
|
-
|
|
6070
|
+
E && T,
|
|
6071
|
+
E ? F : K,
|
|
6078
6072
|
/* @__PURE__ */ e.createElement(
|
|
6079
6073
|
"div",
|
|
6080
6074
|
{
|
|
6081
|
-
ref:
|
|
6075
|
+
ref: h,
|
|
6082
6076
|
className: `${C}__container`,
|
|
6083
6077
|
style: I
|
|
6084
6078
|
},
|
|
6085
|
-
!
|
|
6079
|
+
!E && /* @__PURE__ */ e.createElement("div", { className: `${C}__header` }, T),
|
|
6086
6080
|
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${C}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__main-inner` }, P), B && /* @__PURE__ */ e.createElement("footer", { className: `${C}__footer` }, B))
|
|
6087
6081
|
)
|
|
6088
6082
|
));
|
|
@@ -6094,7 +6088,7 @@ const ds = (h) => {
|
|
|
6094
6088
|
linkContent: r,
|
|
6095
6089
|
links: i
|
|
6096
6090
|
}) => {
|
|
6097
|
-
const a = "pds-dashboard-nav", c = `${a}__item`, o = `${a}__menu`, d = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Bt(a, r, i, t)),
|
|
6091
|
+
const a = "pds-dashboard-nav", c = `${a}__item`, o = `${a}__menu`, d = /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Bt(a, r, i, t)), f = (M, H) => /* @__PURE__ */ e.createElement(
|
|
6098
6092
|
"ul",
|
|
6099
6093
|
{
|
|
6100
6094
|
className: x([
|
|
@@ -6115,19 +6109,19 @@ const ds = (h) => {
|
|
|
6115
6109
|
},
|
|
6116
6110
|
w.linkContent
|
|
6117
6111
|
))
|
|
6118
|
-
), [u,
|
|
6112
|
+
), [u, p] = Z(!1), { refs: b, floatingStyles: E, context: y } = Ve({
|
|
6119
6113
|
placement: "right-start",
|
|
6120
6114
|
open: u,
|
|
6121
|
-
onOpenChange:
|
|
6115
|
+
onOpenChange: p,
|
|
6122
6116
|
middleware: [Ct(12), $t(), wt()],
|
|
6123
6117
|
whileElementsMounted: Pe
|
|
6124
6118
|
}), v = gt(y, {
|
|
6125
6119
|
move: !1,
|
|
6126
6120
|
handleClose: g1()
|
|
6127
|
-
}), $ = p1(y),
|
|
6121
|
+
}), $ = p1(y), h = Ie(y), m = Se(y, { role: "menu" }), { getReferenceProps: g, getFloatingProps: _ } = Ae([
|
|
6128
6122
|
v,
|
|
6129
6123
|
$,
|
|
6130
|
-
|
|
6124
|
+
h,
|
|
6131
6125
|
m
|
|
6132
6126
|
]), C = (M) => {
|
|
6133
6127
|
const H = M.target;
|
|
@@ -6147,7 +6141,7 @@ const ds = (h) => {
|
|
|
6147
6141
|
s ? `${c}--active` : null
|
|
6148
6142
|
]),
|
|
6149
6143
|
ref: n ? null : b.setReference
|
|
6150
|
-
},
|
|
6144
|
+
}, g()),
|
|
6151
6145
|
i ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}-wrapper` }, Bt(
|
|
6152
6146
|
a,
|
|
6153
6147
|
r,
|
|
@@ -6165,7 +6159,7 @@ const ds = (h) => {
|
|
|
6165
6159
|
},
|
|
6166
6160
|
/* @__PURE__ */ e.createElement(R, { iconName: "angleDown", iconSize: "md" }),
|
|
6167
6161
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ge(r)} ${l.submenu}`)
|
|
6168
|
-
)), n &&
|
|
6162
|
+
)), n && f(i, "second-level"), !n && u && /* @__PURE__ */ e.createElement(
|
|
6169
6163
|
"div",
|
|
6170
6164
|
L({
|
|
6171
6165
|
className: `${a}__flyout`,
|
|
@@ -6173,7 +6167,7 @@ const ds = (h) => {
|
|
|
6173
6167
|
style: E
|
|
6174
6168
|
}, _()),
|
|
6175
6169
|
/* @__PURE__ */ e.createElement("div", { className: `${a}__flyout-heading` }, Ge(r)),
|
|
6176
|
-
|
|
6170
|
+
f(i, "second-level-flyout")
|
|
6177
6171
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, n ? d : /* @__PURE__ */ e.createElement(
|
|
6178
6172
|
Fe,
|
|
6179
6173
|
{
|
|
@@ -6199,7 +6193,7 @@ const ds = (h) => {
|
|
|
6199
6193
|
"selectTextFallback",
|
|
6200
6194
|
"className"
|
|
6201
6195
|
]);
|
|
6202
|
-
const c = "pds-dropdown-menu", [o, d] = Z(!1), [
|
|
6196
|
+
const c = "pds-dropdown-menu", [o, d] = Z(!1), [f, u] = Z(null), p = jt(s), b = p ? p.props.children : n, E = /* @__PURE__ */ e.createElement(
|
|
6203
6197
|
R,
|
|
6204
6198
|
{
|
|
6205
6199
|
iconName: "check",
|
|
@@ -6208,7 +6202,7 @@ const ds = (h) => {
|
|
|
6208
6202
|
}
|
|
6209
6203
|
), y = (T) => {
|
|
6210
6204
|
var N;
|
|
6211
|
-
T.key === "Enter" && ((N = _.current[
|
|
6205
|
+
T.key === "Enter" && ((N = _.current[f].querySelector("a")) == null || N.click());
|
|
6212
6206
|
}, v = (T) => {
|
|
6213
6207
|
T.target.nodeName === "A" && d(!1);
|
|
6214
6208
|
};
|
|
@@ -6231,7 +6225,7 @@ const ds = (h) => {
|
|
|
6231
6225
|
tabIndex: -1
|
|
6232
6226
|
}
|
|
6233
6227
|
)
|
|
6234
|
-
}),
|
|
6228
|
+
}), h = (T) => {
|
|
6235
6229
|
const N = [];
|
|
6236
6230
|
return T.forEach((P) => {
|
|
6237
6231
|
P.links ? (N.push($({ item: P, level: "top-level" })), P.links.forEach((B) => {
|
|
@@ -6248,21 +6242,21 @@ const ds = (h) => {
|
|
|
6248
6242
|
})) : N.push($({ item: B, level: "second-level" }));
|
|
6249
6243
|
})) : N.push($({ item: P, level: "top-level" }));
|
|
6250
6244
|
}), N;
|
|
6251
|
-
}, { refs: m, context:
|
|
6245
|
+
}, { refs: m, context: g } = Ve({
|
|
6252
6246
|
placement: "bottom-start",
|
|
6253
6247
|
open: o,
|
|
6254
6248
|
onOpenChange: d,
|
|
6255
6249
|
whileElementsMounted: Pe
|
|
6256
|
-
}), _ = ie([]), C = lt(
|
|
6250
|
+
}), _ = ie([]), C = lt(g, {
|
|
6257
6251
|
listRef: _,
|
|
6258
|
-
activeIndex:
|
|
6252
|
+
activeIndex: f,
|
|
6259
6253
|
onNavigate: u,
|
|
6260
6254
|
loop: !0,
|
|
6261
6255
|
openOnArrowKeyDown: !0,
|
|
6262
6256
|
focusItemOnHover: !0
|
|
6263
|
-
}), M = Ke(
|
|
6257
|
+
}), M = Ke(g, { event: "mousedown" }), H = Ie(g), w = Se(g, { role: "menu" }), { getReferenceProps: z, getFloatingProps: k, getItemProps: I } = Ae(
|
|
6264
6258
|
[H, w, M, C]
|
|
6265
|
-
), { isMounted: V, styles: A } = Xe(
|
|
6259
|
+
), { isMounted: V, styles: A } = Xe(g, {
|
|
6266
6260
|
duration: {
|
|
6267
6261
|
open: 300,
|
|
6268
6262
|
close: 300
|
|
@@ -6301,13 +6295,13 @@ const ds = (h) => {
|
|
|
6301
6295
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
6302
6296
|
})
|
|
6303
6297
|
}, k()),
|
|
6304
|
-
|
|
6298
|
+
h(s).map((T, N) => /* @__PURE__ */ e.createElement(
|
|
6305
6299
|
"li",
|
|
6306
6300
|
L({
|
|
6307
6301
|
key: N,
|
|
6308
6302
|
onKeyDown: y,
|
|
6309
6303
|
className: `${c}__item ${c}__item--${T.level} ${T.isActive === !0 ? `${c}__item--active` : ""}`,
|
|
6310
|
-
tabIndex:
|
|
6304
|
+
tabIndex: f === N ? 0 : -1,
|
|
6311
6305
|
ref: (P) => {
|
|
6312
6306
|
_.current[N] = P;
|
|
6313
6307
|
}
|
|
@@ -6618,7 +6612,7 @@ const ds = (h) => {
|
|
|
6618
6612
|
"subBrand",
|
|
6619
6613
|
"className"
|
|
6620
6614
|
]);
|
|
6621
|
-
const o = "pds-pantheon-logo", d = s && s !== "full" ? `${o}--${s}` : null,
|
|
6615
|
+
const o = "pds-pantheon-logo", d = s && s !== "full" ? `${o}--${s}` : null, f = t && t !== "default" ? `${o}--${t}` : null;
|
|
6622
6616
|
let u;
|
|
6623
6617
|
switch (s) {
|
|
6624
6618
|
case "full":
|
|
@@ -6636,9 +6630,9 @@ const ds = (h) => {
|
|
|
6636
6630
|
case "sub-brand-small":
|
|
6637
6631
|
u = St;
|
|
6638
6632
|
}
|
|
6639
|
-
const
|
|
6633
|
+
const p = e.isValidElement(n) && typeof n.props.children == "string" ? n.props.children : "", b = e.isValidElement(n) ? xe(n, {
|
|
6640
6634
|
children: u,
|
|
6641
|
-
"aria-label":
|
|
6635
|
+
"aria-label": p || null
|
|
6642
6636
|
}) : n;
|
|
6643
6637
|
return /* @__PURE__ */ e.createElement(
|
|
6644
6638
|
"div",
|
|
@@ -6646,7 +6640,7 @@ const ds = (h) => {
|
|
|
6646
6640
|
className: x([
|
|
6647
6641
|
o,
|
|
6648
6642
|
d,
|
|
6649
|
-
|
|
6643
|
+
f,
|
|
6650
6644
|
r != null ? r : ""
|
|
6651
6645
|
])
|
|
6652
6646
|
}, i),
|
|
@@ -6673,26 +6667,26 @@ const ds = (h) => {
|
|
|
6673
6667
|
let o = !1;
|
|
6674
6668
|
const d = Ce(ze);
|
|
6675
6669
|
d && (o = d.isMobile);
|
|
6676
|
-
const
|
|
6677
|
-
let u = !0,
|
|
6678
|
-
|
|
6679
|
-
const b = "pds-dashboard-nav", E = u ? `${b}--expanded` : `${b}--collapsed`, y = /* @__PURE__ */ e.createElement(e.Fragment, null, n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${b}__menu ${b}__menu--top-level` }, n.map((
|
|
6670
|
+
const f = Ce(Mt);
|
|
6671
|
+
let u = !0, p = null;
|
|
6672
|
+
f && (u = f.isSidebarExpanded, p = f.logoLinkContent);
|
|
6673
|
+
const b = "pds-dashboard-nav", E = u ? `${b}--expanded` : `${b}--collapsed`, y = /* @__PURE__ */ e.createElement(e.Fragment, null, n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${b}__menu ${b}__menu--top-level` }, n.map((h, m) => /* @__PURE__ */ e.createElement(
|
|
6680
6674
|
C2,
|
|
6681
6675
|
{
|
|
6682
6676
|
key: m,
|
|
6683
|
-
icon:
|
|
6684
|
-
isActive: ve(
|
|
6677
|
+
icon: h.icon,
|
|
6678
|
+
isActive: ve(h),
|
|
6685
6679
|
isSidebarExpanded: u,
|
|
6686
6680
|
labels: s,
|
|
6687
|
-
linkContent:
|
|
6688
|
-
links:
|
|
6681
|
+
linkContent: h.linkContent,
|
|
6682
|
+
links: h.links
|
|
6689
6683
|
}
|
|
6690
|
-
)))), v = n.map((
|
|
6684
|
+
)))), v = n.map((h) => he(L({}, h), {
|
|
6691
6685
|
linkContent: Bt(
|
|
6692
6686
|
b,
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6687
|
+
h.linkContent,
|
|
6688
|
+
h.links,
|
|
6689
|
+
h.icon
|
|
6696
6690
|
)
|
|
6697
6691
|
})), $ = /* @__PURE__ */ e.createElement(
|
|
6698
6692
|
Kt,
|
|
@@ -6712,7 +6706,7 @@ const ds = (h) => {
|
|
|
6712
6706
|
{
|
|
6713
6707
|
className: `${b}__logo`,
|
|
6714
6708
|
displayType: u ? "full" : "icon",
|
|
6715
|
-
linkContent:
|
|
6709
|
+
linkContent: p
|
|
6716
6710
|
}
|
|
6717
6711
|
),
|
|
6718
6712
|
o ? $ : y
|
|
@@ -6802,9 +6796,9 @@ const ds = (h) => {
|
|
|
6802
6796
|
onFocus: c,
|
|
6803
6797
|
onOptionSelect: o,
|
|
6804
6798
|
placeholder: d = "Search sites",
|
|
6805
|
-
siteList:
|
|
6799
|
+
siteList: f,
|
|
6806
6800
|
horizontalOffset: u = 0,
|
|
6807
|
-
className:
|
|
6801
|
+
className: p
|
|
6808
6802
|
} = y, b = S(y, [
|
|
6809
6803
|
"disabled",
|
|
6810
6804
|
"id",
|
|
@@ -6820,7 +6814,7 @@ const ds = (h) => {
|
|
|
6820
6814
|
"horizontalOffset",
|
|
6821
6815
|
"className"
|
|
6822
6816
|
]);
|
|
6823
|
-
const [v, $] = Z(!1), [
|
|
6817
|
+
const [v, $] = Z(!1), [h, m] = Z(null), g = ie(null);
|
|
6824
6818
|
let _ = !1;
|
|
6825
6819
|
const C = Ce(ze);
|
|
6826
6820
|
C && (_ = C.isMobile);
|
|
@@ -6835,7 +6829,7 @@ const ds = (h) => {
|
|
|
6835
6829
|
width: `${A}rem`
|
|
6836
6830
|
}, N = "pds-dashboard-search", P = _ ? `${N}--isMobile` : null, B = () => {
|
|
6837
6831
|
$(!0), setTimeout(() => {
|
|
6838
|
-
|
|
6832
|
+
g.current.querySelector("input").focus();
|
|
6839
6833
|
}, 500);
|
|
6840
6834
|
}, F = () => {
|
|
6841
6835
|
setTimeout(() => {
|
|
@@ -6846,10 +6840,10 @@ const ds = (h) => {
|
|
|
6846
6840
|
};
|
|
6847
6841
|
ce(() => {
|
|
6848
6842
|
const O = (ae) => {
|
|
6849
|
-
|
|
6843
|
+
g.current && !g.current.contains(ae.target) && $(!1);
|
|
6850
6844
|
}, X = (ae) => {
|
|
6851
6845
|
var j;
|
|
6852
|
-
const te = (j =
|
|
6846
|
+
const te = (j = g.current) == null ? void 0 : j.querySelector("input");
|
|
6853
6847
|
ae.key === "Tab" && v && te === document.activeElement && $(!1);
|
|
6854
6848
|
};
|
|
6855
6849
|
if (v)
|
|
@@ -6857,7 +6851,7 @@ const ds = (h) => {
|
|
|
6857
6851
|
document.removeEventListener("mousedown", O), document.removeEventListener("keydown", X);
|
|
6858
6852
|
};
|
|
6859
6853
|
}, [v]);
|
|
6860
|
-
const Q =
|
|
6854
|
+
const Q = f.map((O) => {
|
|
6861
6855
|
const { id: X, machineName: ae, name: te } = O;
|
|
6862
6856
|
return {
|
|
6863
6857
|
id: X,
|
|
@@ -6865,13 +6859,13 @@ const ds = (h) => {
|
|
|
6865
6859
|
value: ae != null ? ae : te,
|
|
6866
6860
|
optionDisplay: /* @__PURE__ */ e.createElement(L2, { option: O })
|
|
6867
6861
|
};
|
|
6868
|
-
}), G = /* @__PURE__ */ e.createElement("div", { ref:
|
|
6862
|
+
}), G = /* @__PURE__ */ e.createElement("div", { ref: g, className: `${N}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6869
6863
|
_2,
|
|
6870
6864
|
{
|
|
6871
6865
|
disabled: t,
|
|
6872
6866
|
hasClearButton: !1,
|
|
6873
6867
|
id: `${s}-combobox`,
|
|
6874
|
-
defaultValue:
|
|
6868
|
+
defaultValue: h,
|
|
6875
6869
|
isLoading: n,
|
|
6876
6870
|
label: l,
|
|
6877
6871
|
labelStrings: r,
|
|
@@ -6915,7 +6909,7 @@ const ds = (h) => {
|
|
|
6915
6909
|
return /* @__PURE__ */ e.createElement(
|
|
6916
6910
|
"div",
|
|
6917
6911
|
L({
|
|
6918
|
-
className: x([N, P,
|
|
6912
|
+
className: x([N, P, p != null ? p : ""]),
|
|
6919
6913
|
id: s,
|
|
6920
6914
|
style: _ ? null : T,
|
|
6921
6915
|
onKeyDown: _ ? null : (O) => {
|
|
@@ -6942,8 +6936,8 @@ const ds = (h) => {
|
|
|
6942
6936
|
}, l),
|
|
6943
6937
|
t
|
|
6944
6938
|
);
|
|
6945
|
-
}, xs = (
|
|
6946
|
-
var b =
|
|
6939
|
+
}, xs = (p) => {
|
|
6940
|
+
var b = p, {
|
|
6947
6941
|
children: t,
|
|
6948
6942
|
colorType: s = "default",
|
|
6949
6943
|
containerWidth: n = "x-wide",
|
|
@@ -6957,7 +6951,7 @@ const ds = (h) => {
|
|
|
6957
6951
|
closeMobileNav: "Close navigation area",
|
|
6958
6952
|
openMobileNav: "Open navigation area"
|
|
6959
6953
|
},
|
|
6960
|
-
className:
|
|
6954
|
+
className: f
|
|
6961
6955
|
} = b, u = S(b, [
|
|
6962
6956
|
"children",
|
|
6963
6957
|
"colorType",
|
|
@@ -6975,9 +6969,9 @@ const ds = (h) => {
|
|
|
6975
6969
|
let v = !1;
|
|
6976
6970
|
const $ = Ce(ze);
|
|
6977
6971
|
$ && (v = $.isMobile);
|
|
6978
|
-
const
|
|
6979
|
-
|
|
6980
|
-
const m = "pds-navbar",
|
|
6972
|
+
const h = Ce(Mt);
|
|
6973
|
+
h && (a = h.logoLinkContent);
|
|
6974
|
+
const m = "pds-navbar", g = l ? `${m}--noBorder` : "", _ = s !== "default" ? `${m}--${s}` : "", C = v ? `${m}--isMobile` : `${m}--notMobile`, M = (Y) => {
|
|
6981
6975
|
const W = Y.key;
|
|
6982
6976
|
let O = !1;
|
|
6983
6977
|
switch (W) {
|
|
@@ -7065,9 +7059,9 @@ const ds = (h) => {
|
|
|
7065
7059
|
className: x([
|
|
7066
7060
|
m,
|
|
7067
7061
|
_,
|
|
7068
|
-
|
|
7062
|
+
g,
|
|
7069
7063
|
C,
|
|
7070
|
-
|
|
7064
|
+
f != null ? f : ""
|
|
7071
7065
|
])
|
|
7072
7066
|
}, u),
|
|
7073
7067
|
v ? Q : G
|
|
@@ -7083,12 +7077,12 @@ const ds = (h) => {
|
|
|
7083
7077
|
}), []);
|
|
7084
7078
|
const c = () => {
|
|
7085
7079
|
a(window.innerWidth);
|
|
7086
|
-
}, o = i <= n, d = "pds-nav-menu", { refs:
|
|
7080
|
+
}, o = i <= n, d = "pds-nav-menu", { refs: f, context: u } = Ve({
|
|
7087
7081
|
placement: "bottom-start",
|
|
7088
7082
|
open: l,
|
|
7089
7083
|
onOpenChange: r,
|
|
7090
7084
|
whileElementsMounted: Pe
|
|
7091
|
-
}),
|
|
7085
|
+
}), p = Ke(u, { event: "mousedown" }), b = Ie(u), E = Se(u, { role: "menu" });
|
|
7092
7086
|
let y;
|
|
7093
7087
|
o ? y = gt(u, {
|
|
7094
7088
|
enabled: !1
|
|
@@ -7103,14 +7097,14 @@ const ds = (h) => {
|
|
|
7103
7097
|
const { getReferenceProps: v, getFloatingProps: $ } = Ae([
|
|
7104
7098
|
b,
|
|
7105
7099
|
E,
|
|
7106
|
-
|
|
7100
|
+
p,
|
|
7107
7101
|
y
|
|
7108
|
-
]),
|
|
7102
|
+
]), h = (m) => !!(m.isActive || m.linkContent && m.linkContent.props.className && m.linkContent.props.className.includes("pds-isActive"));
|
|
7109
7103
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7110
7104
|
"button",
|
|
7111
7105
|
L({
|
|
7112
7106
|
className: `${d}__trigger`,
|
|
7113
|
-
ref:
|
|
7107
|
+
ref: f.setReference
|
|
7114
7108
|
}, v()),
|
|
7115
7109
|
s,
|
|
7116
7110
|
/* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${d}__trigger-icon` })
|
|
@@ -7118,14 +7112,14 @@ const ds = (h) => {
|
|
|
7118
7112
|
"ul",
|
|
7119
7113
|
L({
|
|
7120
7114
|
className: `${d}__dropdown`,
|
|
7121
|
-
ref:
|
|
7115
|
+
ref: f.setFloating
|
|
7122
7116
|
}, $()),
|
|
7123
|
-
t.map((m,
|
|
7117
|
+
t.map((m, g) => /* @__PURE__ */ e.createElement(
|
|
7124
7118
|
"li",
|
|
7125
7119
|
{
|
|
7126
|
-
key:
|
|
7120
|
+
key: g,
|
|
7127
7121
|
role: m.isSeparator ? "separator" : "menuitem",
|
|
7128
|
-
className: `${d}__item ${m.isSeparator ? `${d}__dropdown--separator` : `${d}__item--second-level`} ${
|
|
7122
|
+
className: `${d}__item ${m.isSeparator ? `${d}__dropdown--separator` : `${d}__item--second-level`} ${h(m) ? `${d}__item--active` : null}`
|
|
7129
7123
|
},
|
|
7130
7124
|
!m.isSeparator && m.linkContent
|
|
7131
7125
|
))
|
|
@@ -7144,34 +7138,34 @@ const ds = (h) => {
|
|
|
7144
7138
|
"mobileMenuMaxWidth",
|
|
7145
7139
|
"className"
|
|
7146
7140
|
]);
|
|
7147
|
-
const [o, d] = Z(1025), [
|
|
7141
|
+
const [o, d] = Z(1025), [f, u] = Z(null), [p, b] = Z(-1), [E, y] = Z(null), [v, $] = Z({
|
|
7148
7142
|
container: null,
|
|
7149
7143
|
containerChildren: []
|
|
7150
7144
|
});
|
|
7151
|
-
ce(() => (d(window.innerWidth), window.addEventListener("resize",
|
|
7152
|
-
window.removeEventListener("resize",
|
|
7145
|
+
ce(() => (d(window.innerWidth), window.addEventListener("resize", h), () => {
|
|
7146
|
+
window.removeEventListener("resize", h);
|
|
7153
7147
|
}), []);
|
|
7154
|
-
const
|
|
7148
|
+
const h = () => {
|
|
7155
7149
|
d(window.innerWidth);
|
|
7156
7150
|
}, m = o <= l;
|
|
7157
7151
|
ce(() => {
|
|
7158
|
-
v.containerChildren[
|
|
7152
|
+
v.containerChildren[f] && (v.containerChildren[f].classList.contains(
|
|
7159
7153
|
"pds-nav-menu__dropdown--separator"
|
|
7160
|
-
) && E == "down" ? u(
|
|
7154
|
+
) && E == "down" ? u(f + 1) : v.containerChildren[f].classList.contains(
|
|
7161
7155
|
"pds-nav-menu__dropdown--separator"
|
|
7162
|
-
) && E == "up" ? u(
|
|
7163
|
-
}, [
|
|
7164
|
-
|
|
7156
|
+
) && E == "up" ? u(f - 1) : v.containerChildren[f].children[0].focus());
|
|
7157
|
+
}, [f]), ce(() => {
|
|
7158
|
+
p != -1 && (M.current[p].children[0].blur(), M.current[p].children[0].focus({
|
|
7165
7159
|
focusVisible: !0
|
|
7166
7160
|
}));
|
|
7167
|
-
}, [
|
|
7168
|
-
const
|
|
7161
|
+
}, [p]);
|
|
7162
|
+
const g = "pds-nav-menu", _ = s !== "default" ? `${g}--${s}` : "", C = m ? `${g}--isMobile` : `${g}--notMobile`, M = ie([]), H = (k) => {
|
|
7169
7163
|
const I = M.current.length - 1, B = {
|
|
7170
7164
|
ArrowRight: () => {
|
|
7171
|
-
u(-1), b(
|
|
7165
|
+
u(-1), b(p === -1 ? 1 : p === I ? 0 : p + 1);
|
|
7172
7166
|
},
|
|
7173
7167
|
ArrowLeft: () => {
|
|
7174
|
-
u(-1), b(
|
|
7168
|
+
u(-1), b(p === 0 ? I : p - 1);
|
|
7175
7169
|
},
|
|
7176
7170
|
ArrowDown: () => {
|
|
7177
7171
|
var Q, G, Y, W;
|
|
@@ -7180,10 +7174,10 @@ const ds = (h) => {
|
|
|
7180
7174
|
v.container != F && F != null && $({
|
|
7181
7175
|
container: F,
|
|
7182
7176
|
containerChildren: [...K]
|
|
7183
|
-
}),
|
|
7177
|
+
}), f === null || f == v.containerChildren.length - 1 ? u(0) : u(parseInt(f) + 1);
|
|
7184
7178
|
},
|
|
7185
7179
|
ArrowUp: () => {
|
|
7186
|
-
y("up"), u(
|
|
7180
|
+
y("up"), u(f === 0 ? v.containerChildren.length - 1 : parseInt(f) - 1);
|
|
7187
7181
|
}
|
|
7188
7182
|
}[k.code];
|
|
7189
7183
|
B && B();
|
|
@@ -7206,7 +7200,7 @@ const ds = (h) => {
|
|
|
7206
7200
|
key: `${I}-dropdown`,
|
|
7207
7201
|
id: A,
|
|
7208
7202
|
ref: (T) => M.current[I] = T,
|
|
7209
|
-
className: `${
|
|
7203
|
+
className: `${g}__item ${g}__item--top-level ${g}__item--has-children ${w(k) === !0 ? `${g}__item--active` : ""}`
|
|
7210
7204
|
},
|
|
7211
7205
|
/* @__PURE__ */ e.createElement(
|
|
7212
7206
|
M2,
|
|
@@ -7224,7 +7218,7 @@ const ds = (h) => {
|
|
|
7224
7218
|
key: I,
|
|
7225
7219
|
id: A,
|
|
7226
7220
|
ref: (T) => M.current[I] = T,
|
|
7227
|
-
className: `${
|
|
7221
|
+
className: `${g}__item ${g}__item--top-level ${g}__item--has-link ${w(k) === !0 ? `${g}__item--active` : ""}`
|
|
7228
7222
|
},
|
|
7229
7223
|
k.linkContent
|
|
7230
7224
|
)
|
|
@@ -7232,16 +7226,16 @@ const ds = (h) => {
|
|
|
7232
7226
|
}), /* @__PURE__ */ e.createElement(
|
|
7233
7227
|
"nav",
|
|
7234
7228
|
L({
|
|
7235
|
-
className: x([
|
|
7229
|
+
className: x([g, _, C, r]),
|
|
7236
7230
|
"aria-label": t,
|
|
7237
7231
|
onKeyDown: (k) => {
|
|
7238
7232
|
H(k);
|
|
7239
7233
|
}
|
|
7240
7234
|
}, i),
|
|
7241
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
7235
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${g}__menu` }, z)
|
|
7242
7236
|
);
|
|
7243
7237
|
}, Is = (d) => {
|
|
7244
|
-
var
|
|
7238
|
+
var f = d, {
|
|
7245
7239
|
ariaLabel: t,
|
|
7246
7240
|
hasMobileMenu: s = !0,
|
|
7247
7241
|
headingText: n,
|
|
@@ -7253,7 +7247,7 @@ const ds = (h) => {
|
|
|
7253
7247
|
mobileMenuMaxWidth: i = 640,
|
|
7254
7248
|
mobileMenuSelectTextFallback: a = "Navigate to...",
|
|
7255
7249
|
className: c
|
|
7256
|
-
} =
|
|
7250
|
+
} = f, o = S(f, [
|
|
7257
7251
|
"ariaLabel",
|
|
7258
7252
|
"hasMobileMenu",
|
|
7259
7253
|
"headingText",
|
|
@@ -7263,19 +7257,19 @@ const ds = (h) => {
|
|
|
7263
7257
|
"mobileMenuSelectTextFallback",
|
|
7264
7258
|
"className"
|
|
7265
7259
|
]);
|
|
7266
|
-
const u = "pds-side-nav", [
|
|
7260
|
+
const u = "pds-side-nav", [p, b] = Z(1025);
|
|
7267
7261
|
ce(() => (b(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
7268
7262
|
window.removeEventListener("resize", E);
|
|
7269
7263
|
}), []);
|
|
7270
7264
|
const E = () => {
|
|
7271
7265
|
b(window.innerWidth);
|
|
7272
|
-
}, y =
|
|
7266
|
+
}, y = p <= i, v = (_) => {
|
|
7273
7267
|
const C = _.target;
|
|
7274
7268
|
C.classList.toggle(`${u}__toggle--expanded`), C.setAttribute(
|
|
7275
7269
|
"aria-expanded",
|
|
7276
7270
|
C.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7277
7271
|
), C.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
7278
|
-
}, $ = (_) => d1.toArray(_).some((C) => be(C) ? C.type && C.type.displayName === "Tally" ? !0 : $(C.props.children) : !1),
|
|
7272
|
+
}, $ = (_) => d1.toArray(_).some((C) => be(C) ? C.type && C.type.displayName === "Tally" ? !0 : $(C.props.children) : !1), h = (_, C) => {
|
|
7279
7273
|
const { linkContent: M, links: H } = _, w = $(M), z = `${u}__item`, k = `${u}__menu`;
|
|
7280
7274
|
return /* @__PURE__ */ e.createElement(
|
|
7281
7275
|
"li",
|
|
@@ -7338,7 +7332,7 @@ const ds = (h) => {
|
|
|
7338
7332
|
M
|
|
7339
7333
|
)
|
|
7340
7334
|
);
|
|
7341
|
-
}, m = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((_, C) =>
|
|
7335
|
+
}, m = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((_, C) => h(_, C)))), g = /* @__PURE__ */ e.createElement(
|
|
7342
7336
|
Kt,
|
|
7343
7337
|
{
|
|
7344
7338
|
headingText: n,
|
|
@@ -7352,10 +7346,10 @@ const ds = (h) => {
|
|
|
7352
7346
|
"aria-label": t,
|
|
7353
7347
|
className: x([u, c != null ? c : ""])
|
|
7354
7348
|
}, o),
|
|
7355
|
-
y && s ?
|
|
7349
|
+
y && s ? g : m
|
|
7356
7350
|
);
|
|
7357
7351
|
}, Ss = (d) => {
|
|
7358
|
-
var
|
|
7352
|
+
var f = d, {
|
|
7359
7353
|
ariaLabel: t,
|
|
7360
7354
|
hasMobileMenu: s = !0,
|
|
7361
7355
|
headingText: n,
|
|
@@ -7367,7 +7361,7 @@ const ds = (h) => {
|
|
|
7367
7361
|
mobileMenuMaxWidth: i = 640,
|
|
7368
7362
|
mobileMenuSelectTextFallback: a = "Navigate to...",
|
|
7369
7363
|
className: c
|
|
7370
|
-
} =
|
|
7364
|
+
} = f, o = S(f, [
|
|
7371
7365
|
"ariaLabel",
|
|
7372
7366
|
"hasMobileMenu",
|
|
7373
7367
|
"headingText",
|
|
@@ -7377,21 +7371,21 @@ const ds = (h) => {
|
|
|
7377
7371
|
"mobileMenuSelectTextFallback",
|
|
7378
7372
|
"className"
|
|
7379
7373
|
]);
|
|
7380
|
-
const u = "pds-side-nav-compact",
|
|
7374
|
+
const u = "pds-side-nav-compact", p = `${u}__item`, b = `${u}__menu`, [E, y] = Z(1025);
|
|
7381
7375
|
ce(() => (y(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
7382
7376
|
window.removeEventListener("resize", v);
|
|
7383
7377
|
}), []);
|
|
7384
7378
|
const v = () => {
|
|
7385
7379
|
y(window.innerWidth);
|
|
7386
|
-
}, $ = E <= i,
|
|
7380
|
+
}, $ = E <= i, h = (H) => {
|
|
7387
7381
|
const w = H.target;
|
|
7388
7382
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
7389
7383
|
"aria-expanded",
|
|
7390
7384
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7391
7385
|
), w.parentElement.nextElementSibling.classList.toggle(`${b}--expanded`);
|
|
7392
|
-
}, m = { 2: "second", 3: "third", 4: "fourth" },
|
|
7393
|
-
const k = m[H], I = `${b}--${k}-level`, V = `${
|
|
7394
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
7386
|
+
}, m = { 2: "second", 3: "third", 4: "fourth" }, g = (H, w, z) => {
|
|
7387
|
+
const k = m[H], I = `${b}--${k}-level`, V = `${p}--${k}-level`, A = H + 1;
|
|
7388
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${p}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7395
7389
|
"button",
|
|
7396
7390
|
{
|
|
7397
7391
|
"aria-expanded": ve(w),
|
|
@@ -7399,7 +7393,7 @@ const ds = (h) => {
|
|
|
7399
7393
|
`${u}__toggle`,
|
|
7400
7394
|
ve(w) ? `${u}__toggle--expanded` : null
|
|
7401
7395
|
]),
|
|
7402
|
-
onClick:
|
|
7396
|
+
onClick: h
|
|
7403
7397
|
},
|
|
7404
7398
|
/* @__PURE__ */ e.createElement(R, { iconName: "caretDown", iconSize: "md" }),
|
|
7405
7399
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${l.toggle} ${Ge(w.linkContent)} ${l.submenu}`)
|
|
@@ -7417,12 +7411,12 @@ const ds = (h) => {
|
|
|
7417
7411
|
{
|
|
7418
7412
|
key: `${N}-${k}`,
|
|
7419
7413
|
className: x([
|
|
7420
|
-
|
|
7414
|
+
p,
|
|
7421
7415
|
V,
|
|
7422
|
-
ve(T) ? `${
|
|
7416
|
+
ve(T) ? `${p}--active` : null
|
|
7423
7417
|
])
|
|
7424
7418
|
},
|
|
7425
|
-
T.links && A in m ?
|
|
7419
|
+
T.links && A in m ? g(
|
|
7426
7420
|
A,
|
|
7427
7421
|
T,
|
|
7428
7422
|
T.links
|
|
@@ -7436,12 +7430,12 @@ const ds = (h) => {
|
|
|
7436
7430
|
{
|
|
7437
7431
|
key: w,
|
|
7438
7432
|
className: x([
|
|
7439
|
-
|
|
7440
|
-
`${
|
|
7441
|
-
ve(H) ? `${
|
|
7433
|
+
p,
|
|
7434
|
+
`${p}--top-level`,
|
|
7435
|
+
ve(H) ? `${p}--active` : null
|
|
7442
7436
|
])
|
|
7443
7437
|
},
|
|
7444
|
-
k ?
|
|
7438
|
+
k ? g(2, H) : z
|
|
7445
7439
|
);
|
|
7446
7440
|
}, C = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, n), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((H, w) => _(H, w)))), M = /* @__PURE__ */ e.createElement(
|
|
7447
7441
|
Kt,
|
|
@@ -7467,13 +7461,13 @@ const ds = (h) => {
|
|
|
7467
7461
|
minFilterItems: r = 5,
|
|
7468
7462
|
noResultsText: i = "No results found"
|
|
7469
7463
|
}) => {
|
|
7470
|
-
const [a, c] = Z(!1), [o, d] = Z(null), [
|
|
7464
|
+
const [a, c] = Z(!1), [o, d] = Z(null), [f, u] = Z(l), [p, b] = Z(""), E = l.length >= r, y = "pds-tab-menu", v = `${y}__dropdown-menu`, $ = E ? `${v}--scroll` : null, h = `${y}__dropdown-item`, m = ie([]), { context: g, refs: _ } = Ve({
|
|
7471
7465
|
open: a,
|
|
7472
7466
|
onOpenChange: c,
|
|
7473
7467
|
whileElementsMounted: Pe
|
|
7474
|
-
}), C = Ke(
|
|
7468
|
+
}), C = Ke(g, {
|
|
7475
7469
|
event: "mousedown"
|
|
7476
|
-
}), M = Ie(
|
|
7470
|
+
}), M = Ie(g), H = Se(g, { role: "listbox" }), w = lt(g, {
|
|
7477
7471
|
listRef: m,
|
|
7478
7472
|
activeIndex: o,
|
|
7479
7473
|
onNavigate: d,
|
|
@@ -7482,7 +7476,7 @@ const ds = (h) => {
|
|
|
7482
7476
|
focusItemOnOpen: !1
|
|
7483
7477
|
}), { getReferenceProps: z, getFloatingProps: k, getItemProps: I } = Ae(
|
|
7484
7478
|
[H, M, w, C]
|
|
7485
|
-
), { isMounted: V, styles: A } = Xe(
|
|
7479
|
+
), { isMounted: V, styles: A } = Xe(g, {
|
|
7486
7480
|
duration: {
|
|
7487
7481
|
open: 300,
|
|
7488
7482
|
close: 150
|
|
@@ -7506,7 +7500,7 @@ const ds = (h) => {
|
|
|
7506
7500
|
u(ae);
|
|
7507
7501
|
};
|
|
7508
7502
|
ce(() => {
|
|
7509
|
-
const O = l.filter((X) => N(X,
|
|
7503
|
+
const O = l.filter((X) => N(X, p));
|
|
7510
7504
|
u(O);
|
|
7511
7505
|
}, [l]);
|
|
7512
7506
|
const B = () => {
|
|
@@ -7531,13 +7525,13 @@ const ds = (h) => {
|
|
|
7531
7525
|
type: "search",
|
|
7532
7526
|
autoComplete: "off"
|
|
7533
7527
|
}
|
|
7534
|
-
)), W =
|
|
7535
|
-
const ae = O.isActive ? `${
|
|
7528
|
+
)), W = f.map((O, X) => {
|
|
7529
|
+
const ae = O.isActive ? `${h}--active` : null;
|
|
7536
7530
|
return /* @__PURE__ */ e.createElement(
|
|
7537
7531
|
"li",
|
|
7538
7532
|
L({
|
|
7539
7533
|
key: X,
|
|
7540
|
-
className: x([
|
|
7534
|
+
className: x([h, ae]),
|
|
7541
7535
|
ref: (te) => {
|
|
7542
7536
|
m.current[X] = te;
|
|
7543
7537
|
},
|
|
@@ -7589,15 +7583,15 @@ const ds = (h) => {
|
|
|
7589
7583
|
let a = !1;
|
|
7590
7584
|
const c = Ce(ze);
|
|
7591
7585
|
c && (a = c.isMobile);
|
|
7592
|
-
const o = "pds-tab-menu", d = a ? `${o}--isMobile` : null,
|
|
7593
|
-
dropdownSettings:
|
|
7586
|
+
const o = "pds-tab-menu", d = a ? `${o}--isMobile` : null, f = ({
|
|
7587
|
+
dropdownSettings: p,
|
|
7594
7588
|
icon: b,
|
|
7595
7589
|
isActive: E,
|
|
7596
7590
|
linkContent: y,
|
|
7597
7591
|
links: v,
|
|
7598
7592
|
promoteActiveChildLink: $ = !1
|
|
7599
7593
|
}) => {
|
|
7600
|
-
const
|
|
7594
|
+
const h = `${o}__item`, m = jt(v), g = (_, C) => {
|
|
7601
7595
|
let M = null;
|
|
7602
7596
|
return typeof _ == "object" && (C ? M = xe(_, he(L({}, _.props), {
|
|
7603
7597
|
children: [
|
|
@@ -7616,33 +7610,33 @@ const ds = (h) => {
|
|
|
7616
7610
|
"li",
|
|
7617
7611
|
{
|
|
7618
7612
|
className: x([
|
|
7619
|
-
|
|
7620
|
-
E ? `${
|
|
7613
|
+
h,
|
|
7614
|
+
E ? `${h}--active` : null
|
|
7621
7615
|
])
|
|
7622
7616
|
},
|
|
7623
|
-
|
|
7617
|
+
g($ ? m : y, b),
|
|
7624
7618
|
v && /* @__PURE__ */ e.createElement(
|
|
7625
7619
|
H2,
|
|
7626
7620
|
{
|
|
7627
7621
|
links: v,
|
|
7628
|
-
buttonLabel:
|
|
7629
|
-
filterLabel:
|
|
7630
|
-
filterPlaceholder:
|
|
7631
|
-
minFilterItems:
|
|
7632
|
-
noResultsText:
|
|
7622
|
+
buttonLabel: p == null ? void 0 : p.buttonLabel,
|
|
7623
|
+
filterLabel: p == null ? void 0 : p.filterLabel,
|
|
7624
|
+
filterPlaceholder: p == null ? void 0 : p.filterPlaceholder,
|
|
7625
|
+
minFilterItems: p == null ? void 0 : p.minFilterItems,
|
|
7626
|
+
noResultsText: p == null ? void 0 : p.noResultsText
|
|
7633
7627
|
}
|
|
7634
7628
|
)
|
|
7635
7629
|
);
|
|
7636
|
-
}, u = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, s.map((
|
|
7637
|
-
|
|
7630
|
+
}, u = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu` }, s.map((p, b) => /* @__PURE__ */ e.createElement(
|
|
7631
|
+
f,
|
|
7638
7632
|
{
|
|
7639
7633
|
key: b,
|
|
7640
|
-
dropdownSettings:
|
|
7641
|
-
icon:
|
|
7642
|
-
isActive: ve(
|
|
7643
|
-
linkContent:
|
|
7644
|
-
links:
|
|
7645
|
-
promoteActiveChildLink:
|
|
7634
|
+
dropdownSettings: p.dropdownSettings,
|
|
7635
|
+
icon: p.icon,
|
|
7636
|
+
isActive: ve(p),
|
|
7637
|
+
linkContent: p.linkContent,
|
|
7638
|
+
links: p.links,
|
|
7639
|
+
promoteActiveChildLink: p.promoteActiveChildLink
|
|
7646
7640
|
}
|
|
7647
7641
|
))) : null;
|
|
7648
7642
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7671,19 +7665,19 @@ const ds = (h) => {
|
|
|
7671
7665
|
"withinNavbar",
|
|
7672
7666
|
"className"
|
|
7673
7667
|
]);
|
|
7674
|
-
const [
|
|
7668
|
+
const [f, u] = Z(null), [p, b] = Z(!1), E = ie([]), y = ie([]);
|
|
7675
7669
|
let v = !1;
|
|
7676
7670
|
const $ = Ce(ze);
|
|
7677
7671
|
$ && (v = $.isMobile);
|
|
7678
|
-
const
|
|
7672
|
+
const h = i && v, m = "pds-user-menu", g = h ? `${m}--isMobile` : null, _ = `${m}__menu`, { refs: C, floatingStyles: M, context: H } = Ve({
|
|
7679
7673
|
placement: "bottom-end",
|
|
7680
|
-
open:
|
|
7674
|
+
open: p,
|
|
7681
7675
|
onOpenChange: b,
|
|
7682
7676
|
middleware: [Ct(12), $t(), wt()],
|
|
7683
7677
|
whileElementsMounted: Pe
|
|
7684
7678
|
}), w = Ke(H, { event: "mousedown" }), z = Ie(H), k = Se(H, { role: "menu" }), I = ie([]), V = lt(H, {
|
|
7685
7679
|
listRef: I,
|
|
7686
|
-
activeIndex:
|
|
7680
|
+
activeIndex: f,
|
|
7687
7681
|
onNavigate: u,
|
|
7688
7682
|
loop: !0,
|
|
7689
7683
|
openOnArrowKeyDown: !0,
|
|
@@ -7714,7 +7708,7 @@ const ds = (h) => {
|
|
|
7714
7708
|
uniqueId: n,
|
|
7715
7709
|
className: `${m}__avatar`
|
|
7716
7710
|
}
|
|
7717
|
-
), K = /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${m}__trigger-icon` }), Q = /* @__PURE__ */ e.createElement("li", { className: `${m}__user-details`, role: "presentation" },
|
|
7711
|
+
), K = /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${m}__trigger-icon` }), Q = /* @__PURE__ */ e.createElement("li", { className: `${m}__user-details`, role: "presentation" }, h ? null : /* @__PURE__ */ e.createElement("div", { className: `${m}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${m}__user-email` }, n));
|
|
7718
7712
|
s.forEach((j) => {
|
|
7719
7713
|
const se = j.id ? j.id : et();
|
|
7720
7714
|
E.current.push(se), y.current.push(j);
|
|
@@ -7735,7 +7729,7 @@ const ds = (h) => {
|
|
|
7735
7729
|
id: ne,
|
|
7736
7730
|
className: x([me, ue]),
|
|
7737
7731
|
role: "menuitem",
|
|
7738
|
-
tabIndex:
|
|
7732
|
+
tabIndex: f === se ? 0 : -1,
|
|
7739
7733
|
ref: (ge) => {
|
|
7740
7734
|
I.current[se] = ge;
|
|
7741
7735
|
},
|
|
@@ -7798,9 +7792,9 @@ const ds = (h) => {
|
|
|
7798
7792
|
return /* @__PURE__ */ e.createElement(
|
|
7799
7793
|
"span",
|
|
7800
7794
|
L({
|
|
7801
|
-
className: x([m,
|
|
7795
|
+
className: x([m, g, a != null ? a : ""])
|
|
7802
7796
|
}, c),
|
|
7803
|
-
|
|
7797
|
+
h ? te : X
|
|
7804
7798
|
);
|
|
7805
7799
|
}, z2 = {
|
|
7806
7800
|
silver: "Silver",
|
|
@@ -7808,7 +7802,7 @@ const ds = (h) => {
|
|
|
7808
7802
|
platinum: "Platinum",
|
|
7809
7803
|
diamond: "Diamond"
|
|
7810
7804
|
}, Ds = (u) => {
|
|
7811
|
-
var
|
|
7805
|
+
var p = u, {
|
|
7812
7806
|
ariaLabel: t = "Workspace selector menu",
|
|
7813
7807
|
createWorkspaceLink: s,
|
|
7814
7808
|
filterPlaceholder: n = "Find workspace...",
|
|
@@ -7819,7 +7813,7 @@ const ds = (h) => {
|
|
|
7819
7813
|
withinNavbar: c = !0,
|
|
7820
7814
|
workspaceList: o,
|
|
7821
7815
|
className: d
|
|
7822
|
-
} =
|
|
7816
|
+
} = p, f = S(p, [
|
|
7823
7817
|
"ariaLabel",
|
|
7824
7818
|
"createWorkspaceLink",
|
|
7825
7819
|
"filterPlaceholder",
|
|
@@ -7831,7 +7825,7 @@ const ds = (h) => {
|
|
|
7831
7825
|
"workspaceList",
|
|
7832
7826
|
"className"
|
|
7833
7827
|
]);
|
|
7834
|
-
const [b, E] = Z(!1), [y, v] = Z(null), [$,
|
|
7828
|
+
const [b, E] = Z(!1), [y, v] = Z(null), [$, h] = Z(o), m = ie([]), g = ie(null), _ = o.length >= i;
|
|
7835
7829
|
let C = !1;
|
|
7836
7830
|
const M = Ce(ze);
|
|
7837
7831
|
M && (C = M.isMobile);
|
|
@@ -7868,16 +7862,16 @@ const ds = (h) => {
|
|
|
7868
7862
|
O || (O = o[0]);
|
|
7869
7863
|
const X = (ee) => {
|
|
7870
7864
|
const { value: de } = ee.target, Me = o.filter((De) => De.displayName.toLowerCase().includes(de.toLowerCase()));
|
|
7871
|
-
|
|
7865
|
+
h(Me);
|
|
7872
7866
|
};
|
|
7873
7867
|
ce(() => {
|
|
7874
7868
|
const ee = o.map((de) => he(L({}, de), {
|
|
7875
7869
|
isActive: de.isActive
|
|
7876
7870
|
}));
|
|
7877
|
-
|
|
7871
|
+
h(ee);
|
|
7878
7872
|
}, [o]);
|
|
7879
7873
|
const ae = (ee) => {
|
|
7880
|
-
ee.preventDefault(), ee.key === "Enter" && m.current[y].querySelector("a").click(), ee.key === "Tab" && (ee.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) : s ?
|
|
7874
|
+
ee.preventDefault(), ee.key === "Enter" && m.current[y].querySelector("a").click(), ee.key === "Tab" && (ee.shiftKey ? _ ? document.getElementById("workspace-filter").focus() : E(!1) : s ? g.current.querySelector("a").focus() : E(!1));
|
|
7881
7875
|
}, te = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
7882
7876
|
Ft,
|
|
7883
7877
|
{
|
|
@@ -7904,7 +7898,7 @@ const ds = (h) => {
|
|
|
7904
7898
|
w1,
|
|
7905
7899
|
{
|
|
7906
7900
|
hasClearButton: !0,
|
|
7907
|
-
onClear: () =>
|
|
7901
|
+
onClear: () => h(o),
|
|
7908
7902
|
id: "workspace-filter",
|
|
7909
7903
|
label: l,
|
|
7910
7904
|
onChange: X,
|
|
@@ -7950,7 +7944,7 @@ const ds = (h) => {
|
|
|
7950
7944
|
)
|
|
7951
7945
|
);
|
|
7952
7946
|
}
|
|
7953
|
-
), me = s && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref:
|
|
7947
|
+
), me = s && /* @__PURE__ */ e.createElement("div", { className: `${w}__create-link`, ref: g }, /* @__PURE__ */ e.createElement(
|
|
7954
7948
|
Et,
|
|
7955
7949
|
{
|
|
7956
7950
|
displayType: "icon-end",
|
|
@@ -8008,7 +8002,7 @@ const ds = (h) => {
|
|
|
8008
8002
|
"span",
|
|
8009
8003
|
L({
|
|
8010
8004
|
className: x([w, z, d])
|
|
8011
|
-
},
|
|
8005
|
+
}, f),
|
|
8012
8006
|
H ? $e : ue
|
|
8013
8007
|
);
|
|
8014
8008
|
}, k2 = {
|
|
@@ -8035,49 +8029,49 @@ const ds = (h) => {
|
|
|
8035
8029
|
"typeLabels",
|
|
8036
8030
|
"className"
|
|
8037
8031
|
]);
|
|
8038
|
-
const [d,
|
|
8032
|
+
const [d, f] = Z(t);
|
|
8039
8033
|
ce(() => {
|
|
8040
|
-
|
|
8034
|
+
f(t);
|
|
8041
8035
|
}, [t]);
|
|
8042
8036
|
const u = d.length;
|
|
8043
8037
|
if (u === 0)
|
|
8044
8038
|
return null;
|
|
8045
|
-
const
|
|
8046
|
-
info: `${
|
|
8047
|
-
warning: `${
|
|
8048
|
-
critical: `${
|
|
8049
|
-
}, y = u > 0 ? d[0].type : null, v = y ? `${
|
|
8039
|
+
const p = "pds-banner", b = u > 1 ? `${p}-group--multiple` : null, E = {
|
|
8040
|
+
info: `${p}--info`,
|
|
8041
|
+
warning: `${p}--warning`,
|
|
8042
|
+
critical: `${p}--critical`
|
|
8043
|
+
}, y = u > 0 ? d[0].type : null, v = y ? `${p}-group--${y}` : null, $ = (M) => ({
|
|
8050
8044
|
zIndex: zt - M
|
|
8051
|
-
}),
|
|
8045
|
+
}), h = (M) => M === 0 ? 0 : -1, m = () => {
|
|
8052
8046
|
const M = document.getElementsByClassName(
|
|
8053
|
-
`${
|
|
8047
|
+
`${p}--fading`
|
|
8054
8048
|
);
|
|
8055
8049
|
for (; M.length; )
|
|
8056
|
-
M[0].classList.remove(`${
|
|
8057
|
-
},
|
|
8058
|
-
m(), document.getElementById(d[0].id).classList.add(`${
|
|
8059
|
-
|
|
8050
|
+
M[0].classList.remove(`${p}--fading`);
|
|
8051
|
+
}, g = () => {
|
|
8052
|
+
m(), document.getElementById(d[0].id).classList.add(`${p}--fading`), setTimeout(() => {
|
|
8053
|
+
f((M) => [
|
|
8060
8054
|
...M.slice(1),
|
|
8061
8055
|
M[0]
|
|
8062
8056
|
]);
|
|
8063
8057
|
}, 200);
|
|
8064
8058
|
}, _ = () => {
|
|
8065
8059
|
m(), document.getElementById(d[0].id).style.zIndex = (zt + 2).toString(), document.getElementById(d[u - 1].id).style.zIndex = (zt + 1).toString(), setTimeout(() => {
|
|
8066
|
-
document.getElementById(d[0].id).classList.add(`${
|
|
8060
|
+
document.getElementById(d[0].id).classList.add(`${p}--fading`);
|
|
8067
8061
|
}, 50), setTimeout(() => {
|
|
8068
|
-
|
|
8062
|
+
f((M) => [
|
|
8069
8063
|
M[M.length - 1],
|
|
8070
8064
|
...M.slice(0, M.length - 1)
|
|
8071
|
-
]), document.getElementById(d[0].id).classList.remove(`${
|
|
8065
|
+
]), document.getElementById(d[0].id).classList.remove(`${p}--fading`);
|
|
8072
8066
|
}, 200);
|
|
8073
8067
|
}, C = (M, H) => {
|
|
8074
8068
|
const { id: w, isDismissible: z, message: k, onDismiss: I, type: V } = M, T = ["critical", "warning"].includes(V) ? "alert" : "status", N = `${r[V]}: `, P = (B) => {
|
|
8075
|
-
B.preventDefault(), document.getElementById(w).classList.add(`${
|
|
8069
|
+
B.preventDefault(), document.getElementById(w).classList.add(`${p}--dismissing`), setTimeout(() => {
|
|
8076
8070
|
if (u === 1) {
|
|
8077
|
-
|
|
8071
|
+
f([]);
|
|
8078
8072
|
return;
|
|
8079
8073
|
}
|
|
8080
|
-
|
|
8074
|
+
f(
|
|
8081
8075
|
(F) => F.filter((K) => K.id !== w)
|
|
8082
8076
|
), I && M.onDismiss();
|
|
8083
8077
|
}, 200);
|
|
@@ -8087,26 +8081,26 @@ const ds = (h) => {
|
|
|
8087
8081
|
{
|
|
8088
8082
|
key: w,
|
|
8089
8083
|
id: w,
|
|
8090
|
-
className: x([
|
|
8084
|
+
className: x([p, E[V]]),
|
|
8091
8085
|
role: T,
|
|
8092
8086
|
style: {
|
|
8093
8087
|
zIndex: $(H).zIndex
|
|
8094
8088
|
}
|
|
8095
8089
|
},
|
|
8096
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
8090
|
+
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
8097
8091
|
R,
|
|
8098
8092
|
{
|
|
8099
8093
|
iconName: k2[V],
|
|
8100
8094
|
iconSize: "md",
|
|
8101
|
-
className: `${
|
|
8095
|
+
className: `${p}__icon ${p}__icon--${M.type}`
|
|
8102
8096
|
}
|
|
8103
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8097
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${p}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, N, " "), k)),
|
|
8104
8098
|
z && /* @__PURE__ */ e.createElement(
|
|
8105
8099
|
"button",
|
|
8106
8100
|
{
|
|
8107
|
-
className: `${
|
|
8101
|
+
className: `${p}__dismiss-button`,
|
|
8108
8102
|
onClick: P,
|
|
8109
|
-
tabIndex:
|
|
8103
|
+
tabIndex: h(H)
|
|
8110
8104
|
},
|
|
8111
8105
|
s
|
|
8112
8106
|
)
|
|
@@ -8116,18 +8110,18 @@ const ds = (h) => {
|
|
|
8116
8110
|
"div",
|
|
8117
8111
|
L({
|
|
8118
8112
|
className: x([
|
|
8119
|
-
`${
|
|
8113
|
+
`${p}-group`,
|
|
8120
8114
|
v,
|
|
8121
8115
|
b,
|
|
8122
8116
|
i != null ? i : ""
|
|
8123
8117
|
])
|
|
8124
8118
|
}, a),
|
|
8125
|
-
u > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8119
|
+
u > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${p}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
8126
8120
|
vt,
|
|
8127
8121
|
{
|
|
8128
8122
|
iconName: "angleLeft",
|
|
8129
8123
|
size: "lg",
|
|
8130
|
-
className: `${
|
|
8124
|
+
className: `${p}__nav-button ${p}__nav-button--prev`,
|
|
8131
8125
|
ariaLabel: l,
|
|
8132
8126
|
onClick: _
|
|
8133
8127
|
}
|
|
@@ -8136,9 +8130,9 @@ const ds = (h) => {
|
|
|
8136
8130
|
{
|
|
8137
8131
|
iconName: "angleRight",
|
|
8138
8132
|
size: "lg",
|
|
8139
|
-
className: `${
|
|
8133
|
+
className: `${p}__nav-button ${p}__nav-button--next`,
|
|
8140
8134
|
ariaLabel: n,
|
|
8141
|
-
onClick:
|
|
8135
|
+
onClick: g
|
|
8142
8136
|
}
|
|
8143
8137
|
), d.map((M, H) => C(M, H))) : C(d[0], 0)
|
|
8144
8138
|
);
|
|
@@ -8174,12 +8168,12 @@ const ds = (h) => {
|
|
|
8174
8168
|
info: `${o}--info`,
|
|
8175
8169
|
critical: `${o}--critical`,
|
|
8176
8170
|
working: `${o}--working`
|
|
8177
|
-
},
|
|
8171
|
+
}, f = t ? `${o}--hasTitle` : null, p = ["critical", "warning"].includes(n) ? "alert" : "status", b = `${l[n]}: `;
|
|
8178
8172
|
return /* @__PURE__ */ e.createElement(
|
|
8179
8173
|
"div",
|
|
8180
8174
|
L({
|
|
8181
|
-
className: [o, d[n],
|
|
8182
|
-
role:
|
|
8175
|
+
className: [o, d[n], f, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8176
|
+
role: p
|
|
8183
8177
|
}, i),
|
|
8184
8178
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon ${o}__icon-${n}` }, n === "working" ? /* @__PURE__ */ e.createElement(Lt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
8185
8179
|
R,
|
|
@@ -8195,8 +8189,8 @@ const ds = (h) => {
|
|
|
8195
8189
|
success: "circleCheck",
|
|
8196
8190
|
critical: "diamondExclamation",
|
|
8197
8191
|
discovery: "squareQuestion"
|
|
8198
|
-
}, Fs = (
|
|
8199
|
-
var u =
|
|
8192
|
+
}, Fs = (f) => {
|
|
8193
|
+
var u = f, {
|
|
8200
8194
|
dismissLabel: t = "Dismiss",
|
|
8201
8195
|
id: s,
|
|
8202
8196
|
isDismissible: n,
|
|
@@ -8223,7 +8217,7 @@ const ds = (h) => {
|
|
|
8223
8217
|
"typeLabels",
|
|
8224
8218
|
"className"
|
|
8225
8219
|
]);
|
|
8226
|
-
const
|
|
8220
|
+
const p = ie(null), b = "pds-section-message", E = {
|
|
8227
8221
|
error: `${b}--error`,
|
|
8228
8222
|
success: `${b}--success`,
|
|
8229
8223
|
warning: `${b}--warning`,
|
|
@@ -8232,15 +8226,15 @@ const ds = (h) => {
|
|
|
8232
8226
|
discovery: `${b}--discovery`,
|
|
8233
8227
|
dismissing: `${b}--dismissing`,
|
|
8234
8228
|
dismissed: `${b}--dismissed`
|
|
8235
|
-
}, y = i ? `${b}--hasTitle` : null, $ = ["critical", "warning"].includes(a) ? "alert" : "status",
|
|
8236
|
-
|
|
8229
|
+
}, y = i ? `${b}--hasTitle` : null, $ = ["critical", "warning"].includes(a) ? "alert" : "status", h = `${c[a]}: `, m = () => {
|
|
8230
|
+
p.current.addEventListener("animationend", g, {
|
|
8237
8231
|
once: !0
|
|
8238
8232
|
});
|
|
8239
|
-
},
|
|
8233
|
+
}, g = (C) => {
|
|
8240
8234
|
l(C, s);
|
|
8241
8235
|
}, _ = () => {
|
|
8242
|
-
m(),
|
|
8243
|
-
|
|
8236
|
+
m(), p.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
8237
|
+
p.current.classList.toggle(E.dismissing), p.current.classList.toggle(E.dismissed);
|
|
8244
8238
|
}, 400);
|
|
8245
8239
|
};
|
|
8246
8240
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8248,7 +8242,7 @@ const ds = (h) => {
|
|
|
8248
8242
|
L({
|
|
8249
8243
|
className: [b, E[a], y, o != null ? o : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
8250
8244
|
id: s,
|
|
8251
|
-
ref:
|
|
8245
|
+
ref: p,
|
|
8252
8246
|
role: $
|
|
8253
8247
|
}, d),
|
|
8254
8248
|
/* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__icon ${b}__icon-${a}` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8257,7 +8251,7 @@ const ds = (h) => {
|
|
|
8257
8251
|
iconName: `${a}` in Tt ? Tt[a] : Tt.info,
|
|
8258
8252
|
iconSize: "md"
|
|
8259
8253
|
}
|
|
8260
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
8254
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${b}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), i && /* @__PURE__ */ e.createElement("div", { className: `${b}__title` }, i), /* @__PURE__ */ e.createElement("div", { className: `${b}__message` }, r))),
|
|
8261
8255
|
n && /* @__PURE__ */ e.createElement(
|
|
8262
8256
|
"button",
|
|
8263
8257
|
{
|
|
@@ -8365,23 +8359,23 @@ const Bs = () => {
|
|
|
8365
8359
|
const i = Math.ceil(l / n), a = t + 5, c = 1, o = i;
|
|
8366
8360
|
if (a >= i)
|
|
8367
8361
|
return ht(1, i);
|
|
8368
|
-
const d = Math.max(s - t, 1),
|
|
8362
|
+
const d = Math.max(s - t, 1), f = Math.min(
|
|
8369
8363
|
s + t,
|
|
8370
8364
|
i
|
|
8371
|
-
), u = d > 2,
|
|
8372
|
-
if (!u &&
|
|
8365
|
+
), u = d > 2, p = f < i - 2;
|
|
8366
|
+
if (!u && p) {
|
|
8373
8367
|
const b = 3 + 2 * t;
|
|
8374
8368
|
return [...ht(1, b), ot, i];
|
|
8375
8369
|
}
|
|
8376
|
-
if (u && !
|
|
8370
|
+
if (u && !p) {
|
|
8377
8371
|
const b = 3 + 2 * t, E = ht(
|
|
8378
8372
|
i - b + 1,
|
|
8379
8373
|
i
|
|
8380
8374
|
);
|
|
8381
8375
|
return [c, ot, ...E];
|
|
8382
8376
|
}
|
|
8383
|
-
if (u &&
|
|
8384
|
-
const b = ht(d,
|
|
8377
|
+
if (u && p) {
|
|
8378
|
+
const b = ht(d, f);
|
|
8385
8379
|
return [
|
|
8386
8380
|
c,
|
|
8387
8381
|
ot,
|
|
@@ -8390,8 +8384,8 @@ const Bs = () => {
|
|
|
8390
8384
|
o
|
|
8391
8385
|
];
|
|
8392
8386
|
}
|
|
8393
|
-
}, [l, n, t, s]), Ws = (
|
|
8394
|
-
var u =
|
|
8387
|
+
}, [l, n, t, s]), Ws = (f) => {
|
|
8388
|
+
var u = f, {
|
|
8395
8389
|
bufferCount: t = 1,
|
|
8396
8390
|
currentPage: s,
|
|
8397
8391
|
headingLevel: n = "h2",
|
|
@@ -8415,17 +8409,17 @@ const Bs = () => {
|
|
|
8415
8409
|
"totalItemCount",
|
|
8416
8410
|
"className"
|
|
8417
8411
|
]);
|
|
8418
|
-
const
|
|
8412
|
+
const p = I2({
|
|
8419
8413
|
currentPage: s,
|
|
8420
8414
|
totalItemCount: c,
|
|
8421
8415
|
bufferCount: t,
|
|
8422
8416
|
itemsPerPage: r
|
|
8423
|
-
}), b =
|
|
8417
|
+
}), b = p[p.length - 1], E = () => {
|
|
8424
8418
|
a(s + 1);
|
|
8425
8419
|
}, y = () => {
|
|
8426
8420
|
a(s - 1);
|
|
8427
|
-
}, v = "pds-pagination", $ = `${v}__item`,
|
|
8428
|
-
return s === 0 ||
|
|
8421
|
+
}, v = "pds-pagination", $ = `${v}__item`, h = `${$}--current`, m = `${$}--disabled`;
|
|
8422
|
+
return s === 0 || p.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
8429
8423
|
"nav",
|
|
8430
8424
|
L({
|
|
8431
8425
|
"aria-labelledby": "pagination",
|
|
@@ -8459,7 +8453,7 @@ const Bs = () => {
|
|
|
8459
8453
|
},
|
|
8460
8454
|
/* @__PURE__ */ e.createElement(R, { iconName: "arrowLeft" })
|
|
8461
8455
|
)
|
|
8462
|
-
),
|
|
8456
|
+
), p.map((g, _) => g === ot ? /* @__PURE__ */ e.createElement(
|
|
8463
8457
|
"li",
|
|
8464
8458
|
{
|
|
8465
8459
|
key: _,
|
|
@@ -8472,16 +8466,16 @@ const Bs = () => {
|
|
|
8472
8466
|
key: _,
|
|
8473
8467
|
className: x([
|
|
8474
8468
|
$,
|
|
8475
|
-
s ===
|
|
8469
|
+
s === g ? h : void 0
|
|
8476
8470
|
])
|
|
8477
8471
|
},
|
|
8478
8472
|
/* @__PURE__ */ e.createElement(
|
|
8479
8473
|
"button",
|
|
8480
8474
|
{
|
|
8481
|
-
"aria-current": s ===
|
|
8482
|
-
onClick: () => a(Number(
|
|
8475
|
+
"aria-current": s === g ? "page" : void 0,
|
|
8476
|
+
onClick: () => a(Number(g))
|
|
8483
8477
|
},
|
|
8484
|
-
|
|
8478
|
+
g
|
|
8485
8479
|
)
|
|
8486
8480
|
)), /* @__PURE__ */ e.createElement(
|
|
8487
8481
|
"li",
|
|
@@ -8517,46 +8511,46 @@ const Bs = () => {
|
|
|
8517
8511
|
"summary",
|
|
8518
8512
|
"className"
|
|
8519
8513
|
]);
|
|
8520
|
-
const [o, d] = Z(n),
|
|
8514
|
+
const [o, d] = Z(n), f = s || `expansion-panel-${et()}`, u = "pds-expansion-panel", p = ie(null), b = ie(null), E = ie(null);
|
|
8521
8515
|
return ce(() => {
|
|
8522
|
-
const y =
|
|
8516
|
+
const y = p.current, v = b.current, $ = E.current;
|
|
8523
8517
|
if (!y || !v || !$) return;
|
|
8524
|
-
let
|
|
8518
|
+
let h = null, m = !1, g = !1;
|
|
8525
8519
|
const _ = (z) => {
|
|
8526
|
-
z.preventDefault(), y.style.overflow = "hidden", m || !y.open ? M() : (
|
|
8520
|
+
z.preventDefault(), y.style.overflow = "hidden", m || !y.open ? M() : (g || y.open) && C();
|
|
8527
8521
|
}, C = () => {
|
|
8528
8522
|
m = !0, d(!1);
|
|
8529
8523
|
const z = `${y.offsetHeight}px`, k = `${v.offsetHeight}px`;
|
|
8530
|
-
|
|
8524
|
+
h && h.cancel(), h = y.animate(
|
|
8531
8525
|
{ height: [z, k] },
|
|
8532
8526
|
{
|
|
8533
8527
|
duration: l1,
|
|
8534
8528
|
easing: c1
|
|
8535
8529
|
}
|
|
8536
|
-
),
|
|
8530
|
+
), h.onfinish = () => w(!1), h.oncancel = () => m = !1;
|
|
8537
8531
|
}, M = () => {
|
|
8538
8532
|
y.style.height = `${y.offsetHeight}px`, y.open = !0, d(!0), requestAnimationFrame(() => H());
|
|
8539
8533
|
}, H = () => {
|
|
8540
|
-
|
|
8534
|
+
g = !0;
|
|
8541
8535
|
const z = `${y.offsetHeight}px`, k = `${v.offsetHeight + $.offsetHeight}px`;
|
|
8542
|
-
|
|
8536
|
+
h && h.cancel(), h = y.animate(
|
|
8543
8537
|
{ height: [z, k] },
|
|
8544
8538
|
{
|
|
8545
8539
|
duration: l1,
|
|
8546
8540
|
easing: c1
|
|
8547
8541
|
}
|
|
8548
|
-
),
|
|
8542
|
+
), h.onfinish = () => w(!0), h.oncancel = () => g = !1;
|
|
8549
8543
|
}, w = (z) => {
|
|
8550
|
-
y.open = z,
|
|
8544
|
+
y.open = z, h = null, m = !1, g = !1, y.style.height = y.style.overflow = "";
|
|
8551
8545
|
};
|
|
8552
8546
|
return v.addEventListener("click", _), () => v.removeEventListener("click", _);
|
|
8553
8547
|
}, []), /* @__PURE__ */ e.createElement("div", L({ className: x([u, r]) }, i), /* @__PURE__ */ e.createElement(
|
|
8554
8548
|
"details",
|
|
8555
8549
|
{
|
|
8556
|
-
key:
|
|
8557
|
-
id:
|
|
8550
|
+
key: f,
|
|
8551
|
+
id: f,
|
|
8558
8552
|
open: n,
|
|
8559
|
-
ref:
|
|
8553
|
+
ref: p
|
|
8560
8554
|
},
|
|
8561
8555
|
/* @__PURE__ */ e.createElement("summary", { ref: b }, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(
|
|
8562
8556
|
R,
|
|
@@ -8601,14 +8595,14 @@ const Bs = () => {
|
|
|
8601
8595
|
"variant",
|
|
8602
8596
|
"className"
|
|
8603
8597
|
]);
|
|
8604
|
-
const d = "pds-panel",
|
|
8598
|
+
const d = "pds-panel", f = s ? `${d}__status ${d}__status-${l}` : null, u = `${d}--${r}`, p = `${d}__content`, b = n !== "standard" ? `${p}--pad-${n}` : null;
|
|
8605
8599
|
return /* @__PURE__ */ e.createElement(
|
|
8606
8600
|
"div",
|
|
8607
8601
|
L({
|
|
8608
8602
|
className: [d, u, i != null ? i : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
8609
8603
|
}, a),
|
|
8610
|
-
s && l && /* @__PURE__ */ e.createElement("span", { className:
|
|
8611
|
-
/* @__PURE__ */ e.createElement("div", { className: x([
|
|
8604
|
+
s && l && /* @__PURE__ */ e.createElement("span", { className: f }),
|
|
8605
|
+
/* @__PURE__ */ e.createElement("div", { className: x([p, b]) }, t)
|
|
8612
8606
|
);
|
|
8613
8607
|
}, qs = (i) => {
|
|
8614
8608
|
var a = i, {
|
|
@@ -8652,10 +8646,10 @@ const Bs = () => {
|
|
|
8652
8646
|
triggerIcon: c = "circleInfo",
|
|
8653
8647
|
triggerAccessibleText: o = "Show more information",
|
|
8654
8648
|
popoverIsOpen: d = !1,
|
|
8655
|
-
setPopoverIsOpen:
|
|
8649
|
+
setPopoverIsOpen: f = () => {
|
|
8656
8650
|
},
|
|
8657
8651
|
className: u
|
|
8658
|
-
} = E,
|
|
8652
|
+
} = E, p = S(E, [
|
|
8659
8653
|
"content",
|
|
8660
8654
|
"customTrigger",
|
|
8661
8655
|
"hasCloseButton",
|
|
@@ -8674,19 +8668,19 @@ const Bs = () => {
|
|
|
8674
8668
|
ce(() => {
|
|
8675
8669
|
v(d);
|
|
8676
8670
|
}, [d]), ce(() => {
|
|
8677
|
-
|
|
8671
|
+
f(y);
|
|
8678
8672
|
}, [y]);
|
|
8679
|
-
const $ = typeof s,
|
|
8680
|
-
`${
|
|
8681
|
-
$ === "string" ? `${
|
|
8682
|
-
]),
|
|
8673
|
+
const $ = typeof s, h = "pds-popover", m = x([
|
|
8674
|
+
`${h}__trigger-custom`,
|
|
8675
|
+
$ === "string" ? `${h}__trigger-text` : ""
|
|
8676
|
+
]), g = s ? l : 0, _ = ie(null), { refs: C, floatingStyles: M, context: H, middlewareData: w } = Ve({
|
|
8683
8677
|
placement: i,
|
|
8684
8678
|
open: y,
|
|
8685
8679
|
onOpenChange(O) {
|
|
8686
8680
|
v(O), O || r();
|
|
8687
8681
|
},
|
|
8688
8682
|
middleware: [
|
|
8689
|
-
Ct(Je + S2 +
|
|
8683
|
+
Ct(Je + S2 + g),
|
|
8690
8684
|
$t({ padding: 8 }),
|
|
8691
8685
|
wt({ padding: 8 }),
|
|
8692
8686
|
B1({ element: _ })
|
|
@@ -8711,10 +8705,10 @@ const Bs = () => {
|
|
|
8711
8705
|
}[O]
|
|
8712
8706
|
})
|
|
8713
8707
|
});
|
|
8714
|
-
return /* @__PURE__ */ e.createElement("div", L({ className: x([
|
|
8708
|
+
return /* @__PURE__ */ e.createElement("div", L({ className: x([h, u]) }, p), /* @__PURE__ */ e.createElement(
|
|
8715
8709
|
"span",
|
|
8716
8710
|
L({
|
|
8717
|
-
className: `${
|
|
8711
|
+
className: `${h}__trigger`,
|
|
8718
8712
|
ref: C.setReference,
|
|
8719
8713
|
role: "button"
|
|
8720
8714
|
}, A()),
|
|
@@ -8722,14 +8716,14 @@ const Bs = () => {
|
|
|
8722
8716
|
R,
|
|
8723
8717
|
{
|
|
8724
8718
|
iconName: c,
|
|
8725
|
-
className: `${
|
|
8719
|
+
className: `${h}__icon`,
|
|
8726
8720
|
iconSize: "md"
|
|
8727
8721
|
}
|
|
8728
8722
|
))
|
|
8729
8723
|
), K && /* @__PURE__ */ e.createElement(h1, null, /* @__PURE__ */ e.createElement(f1, { context: H, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
8730
8724
|
"div",
|
|
8731
8725
|
L({
|
|
8732
|
-
className: `${
|
|
8726
|
+
className: `${h}__container`,
|
|
8733
8727
|
ref: C.setFloating,
|
|
8734
8728
|
style: M
|
|
8735
8729
|
}, T()),
|
|
@@ -8744,14 +8738,14 @@ const Bs = () => {
|
|
|
8744
8738
|
fill: "var(--pds-color-background-default)",
|
|
8745
8739
|
stroke: "var(--pds-color-border-default)",
|
|
8746
8740
|
strokeWidth: 1,
|
|
8747
|
-
className: `${
|
|
8741
|
+
className: `${h}__arrow`
|
|
8748
8742
|
}
|
|
8749
8743
|
),
|
|
8750
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
8744
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__container-inner` }, a && /* @__PURE__ */ e.createElement("div", { className: `${h}__title` }, a), t && /* @__PURE__ */ e.createElement("div", { className: `${h}__content` }, t), n && /* @__PURE__ */ e.createElement(
|
|
8751
8745
|
"button",
|
|
8752
8746
|
{
|
|
8753
8747
|
onClick: z,
|
|
8754
|
-
className: `${
|
|
8748
|
+
className: `${h}__close`
|
|
8755
8749
|
},
|
|
8756
8750
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
8757
8751
|
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: "lg" })
|
|
@@ -8764,7 +8758,7 @@ const Bs = () => {
|
|
|
8764
8758
|
warning: "--pds-color-status-warning-foreground",
|
|
8765
8759
|
critical: "--pds-color-status-critical-foreground"
|
|
8766
8760
|
}, Xs = (u) => {
|
|
8767
|
-
var
|
|
8761
|
+
var p = u, {
|
|
8768
8762
|
colorBreakpoints: t = [
|
|
8769
8763
|
{ colorType: "info", percentage: 0 },
|
|
8770
8764
|
{ colorType: "success", percentage: 100 }
|
|
@@ -8778,7 +8772,7 @@ const Bs = () => {
|
|
|
8778
8772
|
showPercentage: c = !1,
|
|
8779
8773
|
size: o = "md",
|
|
8780
8774
|
className: d
|
|
8781
|
-
} =
|
|
8775
|
+
} = p, f = S(p, [
|
|
8782
8776
|
"colorBreakpoints",
|
|
8783
8777
|
"id",
|
|
8784
8778
|
"label",
|
|
@@ -8791,24 +8785,24 @@ const Bs = () => {
|
|
|
8791
8785
|
"className"
|
|
8792
8786
|
]);
|
|
8793
8787
|
const b = s || et(), E = "pds-progress-bar", y = a ? `${E}__label` : "visually-hidden", v = `${E}__track ${E}__track--${o}`, $ = i > 100 ? 100 : i;
|
|
8794
|
-
let
|
|
8788
|
+
let h = "neutral";
|
|
8795
8789
|
t.forEach((C) => {
|
|
8796
|
-
i >= C.percentage && (
|
|
8790
|
+
i >= C.percentage && (h = C.colorType);
|
|
8797
8791
|
});
|
|
8798
|
-
const m = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, l),
|
|
8792
|
+
const m = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, l), g = l && r === "above", _ = l && r === "below";
|
|
8799
8793
|
return /* @__PURE__ */ e.createElement(
|
|
8800
8794
|
"div",
|
|
8801
8795
|
L({
|
|
8802
8796
|
className: [E, d].join(" ").trim().replace(/\s+/g, " "),
|
|
8803
8797
|
style: { "--bar-percentage": `${$}%` }
|
|
8804
|
-
},
|
|
8798
|
+
}, f),
|
|
8805
8799
|
/* @__PURE__ */ e.createElement("div", { id: b, className: y }, n),
|
|
8806
|
-
(
|
|
8800
|
+
(g || c) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, g && m, c && /* @__PURE__ */ e.createElement(
|
|
8807
8801
|
"div",
|
|
8808
8802
|
{
|
|
8809
8803
|
className: `${E}__percentage`,
|
|
8810
8804
|
style: {
|
|
8811
|
-
color: `hsl(from var(${o1[
|
|
8805
|
+
color: `hsl(from var(${o1[h]}) h s calc(l - 7))`
|
|
8812
8806
|
}
|
|
8813
8807
|
},
|
|
8814
8808
|
i,
|
|
@@ -8828,7 +8822,7 @@ const Bs = () => {
|
|
|
8828
8822
|
className: `${E}__bar`,
|
|
8829
8823
|
style: {
|
|
8830
8824
|
width: `${$}%`,
|
|
8831
|
-
backgroundColor: `var(${o1[
|
|
8825
|
+
backgroundColor: `var(${o1[h]})`
|
|
8832
8826
|
}
|
|
8833
8827
|
}
|
|
8834
8828
|
)
|
|
@@ -8836,7 +8830,7 @@ const Bs = () => {
|
|
|
8836
8830
|
_ && m
|
|
8837
8831
|
);
|
|
8838
8832
|
}, A2 = 3.815, T2 = 4.678, D2 = 5.96, O2 = (d) => {
|
|
8839
|
-
var
|
|
8833
|
+
var f = d, {
|
|
8840
8834
|
id: t,
|
|
8841
8835
|
innerLabel: s,
|
|
8842
8836
|
label: n,
|
|
@@ -8845,7 +8839,7 @@ const Bs = () => {
|
|
|
8845
8839
|
showPercentage: i = !1,
|
|
8846
8840
|
size: a = "md",
|
|
8847
8841
|
className: c
|
|
8848
|
-
} =
|
|
8842
|
+
} = f, o = S(f, [
|
|
8849
8843
|
"id",
|
|
8850
8844
|
"innerLabel",
|
|
8851
8845
|
"label",
|
|
@@ -8855,17 +8849,17 @@ const Bs = () => {
|
|
|
8855
8849
|
"size",
|
|
8856
8850
|
"className"
|
|
8857
8851
|
]);
|
|
8858
|
-
const u = t || et(),
|
|
8852
|
+
const u = t || et(), p = "pds-progress-ring", b = r ? `${p}__label` : "visually-hidden", E = `${p}__loading-text ${p}__loading-text--${a}`, y = (C) => C * 16;
|
|
8859
8853
|
let v = y(T2), $ = 7;
|
|
8860
8854
|
a === "sm" && (v = y(A2), $ = $ / 1.25), a === "lg" && (v = y(D2), $ = $ * 1.25);
|
|
8861
|
-
const
|
|
8855
|
+
const h = v / 2 - $ / 2, m = 2 * Math.PI * h, g = m - m * l / 100;
|
|
8862
8856
|
let _;
|
|
8863
8857
|
return s ? _ = s : i ? _ = `${l}%` : _ = "", /* @__PURE__ */ e.createElement(
|
|
8864
8858
|
"div",
|
|
8865
8859
|
L({
|
|
8866
|
-
className: [
|
|
8860
|
+
className: [p, c].join(" ").trim().replace(/\s+/g, " "),
|
|
8867
8861
|
style: {
|
|
8868
|
-
"--ring-stroke-dashoffset":
|
|
8862
|
+
"--ring-stroke-dashoffset": g,
|
|
8869
8863
|
"--ring-stroke-dasharray": m
|
|
8870
8864
|
}
|
|
8871
8865
|
}, o),
|
|
@@ -8873,7 +8867,7 @@ const Bs = () => {
|
|
|
8873
8867
|
/* @__PURE__ */ e.createElement(
|
|
8874
8868
|
"div",
|
|
8875
8869
|
{
|
|
8876
|
-
className: `${
|
|
8870
|
+
className: `${p}__ring`,
|
|
8877
8871
|
role: "progressbar",
|
|
8878
8872
|
"aria-labelledby": u,
|
|
8879
8873
|
"aria-valuenow": l
|
|
@@ -8888,23 +8882,23 @@ const Bs = () => {
|
|
|
8888
8882
|
/* @__PURE__ */ e.createElement(
|
|
8889
8883
|
"circle",
|
|
8890
8884
|
{
|
|
8891
|
-
className: `${
|
|
8885
|
+
className: `${p}__track`,
|
|
8892
8886
|
cx: v / 2,
|
|
8893
8887
|
cy: v / 2,
|
|
8894
|
-
r:
|
|
8888
|
+
r: h,
|
|
8895
8889
|
strokeWidth: $
|
|
8896
8890
|
}
|
|
8897
8891
|
),
|
|
8898
8892
|
/* @__PURE__ */ e.createElement(
|
|
8899
8893
|
"circle",
|
|
8900
8894
|
{
|
|
8901
|
-
className: `${
|
|
8895
|
+
className: `${p}__progress`,
|
|
8902
8896
|
cx: v / 2,
|
|
8903
8897
|
cy: v / 2,
|
|
8904
|
-
r:
|
|
8898
|
+
r: h,
|
|
8905
8899
|
strokeWidth: $,
|
|
8906
8900
|
strokeDasharray: m,
|
|
8907
|
-
strokeDashoffset:
|
|
8901
|
+
strokeDashoffset: g,
|
|
8908
8902
|
transform: `rotate(-90 ${v / 2} ${v / 2})`
|
|
8909
8903
|
}
|
|
8910
8904
|
),
|
|
@@ -8955,106 +8949,108 @@ const Bs = () => {
|
|
|
8955
8949
|
);
|
|
8956
8950
|
};
|
|
8957
8951
|
var R2 = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.WORKING = "working", t.CHECKED = "checked", t))(R2 || {});
|
|
8958
|
-
const Qs = (
|
|
8959
|
-
var
|
|
8952
|
+
const Qs = (o) => {
|
|
8953
|
+
var d = o, {
|
|
8960
8954
|
alignment: t = "left",
|
|
8961
8955
|
componentWidth: s,
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8956
|
+
initialState: n,
|
|
8957
|
+
labelStrings: l = {},
|
|
8958
|
+
lastChecked: r,
|
|
8959
|
+
onCheck: i,
|
|
8960
|
+
className: a
|
|
8961
|
+
} = d, c = S(d, [
|
|
8967
8962
|
"alignment",
|
|
8968
8963
|
"componentWidth",
|
|
8964
|
+
"initialState",
|
|
8969
8965
|
"labelStrings",
|
|
8970
8966
|
"lastChecked",
|
|
8971
8967
|
"onCheck",
|
|
8972
8968
|
"className"
|
|
8973
8969
|
]);
|
|
8974
|
-
const [
|
|
8975
|
-
"default"
|
|
8970
|
+
const [f, u] = Z(
|
|
8971
|
+
n != null ? n : "default"
|
|
8976
8972
|
/* DEFAULT */
|
|
8977
|
-
),
|
|
8973
|
+
), p = L({
|
|
8978
8974
|
checkForUpdates: "Check for updates",
|
|
8979
8975
|
checking: "Checking...",
|
|
8980
|
-
checked: "
|
|
8976
|
+
checked: "Last checked",
|
|
8981
8977
|
ariaLabel: "Check for updates"
|
|
8982
|
-
},
|
|
8983
|
-
switch (
|
|
8978
|
+
}, l), b = () => {
|
|
8979
|
+
switch (f) {
|
|
8984
8980
|
case "default":
|
|
8985
|
-
return
|
|
8981
|
+
return p.checkForUpdates;
|
|
8986
8982
|
case "working":
|
|
8987
|
-
return
|
|
8983
|
+
return p.checking;
|
|
8988
8984
|
case "checked":
|
|
8989
|
-
if (
|
|
8990
|
-
const
|
|
8985
|
+
if (r) {
|
|
8986
|
+
const _ = r instanceof Date ? r : new Date(r), C = Date.now() - _.getTime(), M = Math.floor(C / 1e3), H = Math.floor(M / 60), w = Math.floor(H / 60), z = Math.floor(w / 24), k = {
|
|
8991
8987
|
year: "numeric",
|
|
8992
8988
|
month: "short",
|
|
8993
8989
|
day: "numeric"
|
|
8994
8990
|
};
|
|
8995
|
-
let
|
|
8996
|
-
return
|
|
8991
|
+
let I = "";
|
|
8992
|
+
return z > 7 ? I = _.toLocaleDateString(
|
|
8997
8993
|
void 0,
|
|
8998
|
-
|
|
8999
|
-
) :
|
|
8994
|
+
k
|
|
8995
|
+
) : z > 0 && z <= 7 ? I = `${z} day${z !== 1 ? "s" : ""} ago` : w > 0 ? I = `${w} hour${w !== 1 ? "s" : ""} ago` : H > 0 ? I = `${H} minute${H !== 1 ? "s" : ""} ago` : I = `${M} second${M !== 1 ? "s" : ""} ago`, `${p.checked} ${I}`;
|
|
9000
8996
|
}
|
|
9001
|
-
return
|
|
8997
|
+
return p.checked;
|
|
9002
8998
|
}
|
|
9003
|
-
},
|
|
9004
|
-
if (
|
|
9005
|
-
|
|
8999
|
+
}, E = () => Ht(void 0, null, function* () {
|
|
9000
|
+
if (f !== "working") {
|
|
9001
|
+
u(
|
|
9006
9002
|
"working"
|
|
9007
9003
|
/* WORKING */
|
|
9008
9004
|
);
|
|
9009
9005
|
try {
|
|
9010
|
-
yield
|
|
9006
|
+
yield i == null ? void 0 : i(), u(
|
|
9011
9007
|
"checked"
|
|
9012
9008
|
/* CHECKED */
|
|
9013
9009
|
);
|
|
9014
|
-
} catch (
|
|
9015
|
-
|
|
9010
|
+
} catch (_) {
|
|
9011
|
+
u(
|
|
9016
9012
|
"default"
|
|
9017
9013
|
/* DEFAULT */
|
|
9018
9014
|
);
|
|
9019
9015
|
}
|
|
9020
9016
|
}
|
|
9021
|
-
}),
|
|
9022
|
-
`${
|
|
9023
|
-
|
|
9024
|
-
]),
|
|
9017
|
+
}), y = "pds-refresh-checker", v = `${y}--${t}`, $ = x([
|
|
9018
|
+
`${y}__button`,
|
|
9019
|
+
f === "working" ? `${y}__button--spinning` : ""
|
|
9020
|
+
]), h = s !== null && s > 0 ? `${s}rem` : "100%", m = /* @__PURE__ */ e.createElement("span", { className: `${y}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
9025
9021
|
R,
|
|
9026
9022
|
{
|
|
9027
9023
|
iconName: "rotate",
|
|
9028
9024
|
iconSize: "md",
|
|
9029
|
-
className: `${
|
|
9025
|
+
className: `${y}__icon ${f === "working" ? `${y}__icon--spinning` : ""}`
|
|
9030
9026
|
}
|
|
9031
|
-
)),
|
|
9027
|
+
)), g = /* @__PURE__ */ e.createElement("span", { className: `${y}__label` }, b());
|
|
9032
9028
|
return /* @__PURE__ */ e.createElement(
|
|
9033
9029
|
"div",
|
|
9034
9030
|
L({
|
|
9035
|
-
className: x([
|
|
9036
|
-
style: { width:
|
|
9037
|
-
},
|
|
9031
|
+
className: x([y, v, a != null ? a : ""]),
|
|
9032
|
+
style: { width: h }
|
|
9033
|
+
}, c),
|
|
9038
9034
|
/* @__PURE__ */ e.createElement(
|
|
9039
9035
|
"button",
|
|
9040
9036
|
{
|
|
9041
9037
|
type: "button",
|
|
9042
|
-
className:
|
|
9043
|
-
onClick:
|
|
9038
|
+
className: $,
|
|
9039
|
+
onClick: E,
|
|
9044
9040
|
"aria-live": "polite",
|
|
9045
|
-
"aria-label":
|
|
9041
|
+
"aria-label": p.ariaLabel
|
|
9046
9042
|
},
|
|
9047
|
-
t === "right" &&
|
|
9043
|
+
t === "right" && g,
|
|
9048
9044
|
/* @__PURE__ */ e.createElement(
|
|
9049
9045
|
Fe,
|
|
9050
9046
|
{
|
|
9051
|
-
content:
|
|
9052
|
-
customTrigger:
|
|
9047
|
+
content: p.tooltipContent || p.ariaLabel,
|
|
9048
|
+
customTrigger: m,
|
|
9053
9049
|
triggerIconColor: "default",
|
|
9054
9050
|
triggerIconSize: "sm"
|
|
9055
9051
|
}
|
|
9056
9052
|
),
|
|
9057
|
-
t === "left" &&
|
|
9053
|
+
t === "left" && g
|
|
9058
9054
|
)
|
|
9059
9055
|
);
|
|
9060
9056
|
}, Js = (i) => {
|
|
@@ -9187,10 +9183,10 @@ const Qs = (c) => {
|
|
|
9187
9183
|
"translatableLabels",
|
|
9188
9184
|
"className"
|
|
9189
9185
|
]);
|
|
9190
|
-
const a = "pds-stepper", c = "pds-stepper-mobile", o = ie(), [d] = yt(o),
|
|
9186
|
+
const a = "pds-stepper", c = "pds-stepper-mobile", o = ie(), [d] = yt(o), f = d.width, u = Number(
|
|
9191
9187
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9192
|
-
) * 16,
|
|
9193
|
-
const _ =
|
|
9188
|
+
) * 16, p = -40, b = 2, E = 5, y = t.length, v = t.map((m) => m.isCurrent).lastIndexOf(!0), $ = t.map((m, g) => {
|
|
9189
|
+
const _ = g + 1, C = g === v, M = g < v, H = m.hasError && C, z = (f - y * u) / (y + (y - 2)), k = u + z * 2, I = u + z, V = z + p * -1, A = g === 0, T = g === y - 1;
|
|
9194
9190
|
let N = k;
|
|
9195
9191
|
(A || T) && (N = I);
|
|
9196
9192
|
const P = `${a}__step`, B = [P];
|
|
@@ -9238,7 +9234,7 @@ const Qs = (c) => {
|
|
|
9238
9234
|
className: `${a}__connector ${a}__connector--before`,
|
|
9239
9235
|
style: {
|
|
9240
9236
|
width: V,
|
|
9241
|
-
marginRight:
|
|
9237
|
+
marginRight: p
|
|
9242
9238
|
}
|
|
9243
9239
|
}
|
|
9244
9240
|
),
|
|
@@ -9247,12 +9243,12 @@ const Qs = (c) => {
|
|
|
9247
9243
|
"span",
|
|
9248
9244
|
{
|
|
9249
9245
|
className: `${a}__connector ${a}__connector--after`,
|
|
9250
|
-
style: { width: V, marginLeft:
|
|
9246
|
+
style: { width: V, marginLeft: p }
|
|
9251
9247
|
}
|
|
9252
9248
|
)
|
|
9253
9249
|
);
|
|
9254
|
-
}),
|
|
9255
|
-
const _ =
|
|
9250
|
+
}), h = t.map((m, g) => {
|
|
9251
|
+
const _ = g + 1, C = g === v, M = g === y - 1, H = m.hasError && C, w = t[v + 1] ? t[v + 1].label : null;
|
|
9256
9252
|
if (C) {
|
|
9257
9253
|
const z = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), _, " of ", y), k = _ / y * 100, I = H ? {
|
|
9258
9254
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
@@ -9301,7 +9297,7 @@ const Qs = (c) => {
|
|
|
9301
9297
|
className: [c, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9302
9298
|
"data-steps": y
|
|
9303
9299
|
}, l),
|
|
9304
|
-
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` },
|
|
9300
|
+
/* @__PURE__ */ e.createElement("div", { className: `${c}__steps` }, h)
|
|
9305
9301
|
));
|
|
9306
9302
|
}, nn = (r) => {
|
|
9307
9303
|
var i = r, {
|
|
@@ -9313,18 +9309,18 @@ const Qs = (c) => {
|
|
|
9313
9309
|
"rowData",
|
|
9314
9310
|
"className"
|
|
9315
9311
|
]);
|
|
9316
|
-
const [a] = Z(t), [c, o] = Z(s), [d,
|
|
9317
|
-
o(c.sort(($,
|
|
9318
|
-
},
|
|
9319
|
-
o(c.sort(($,
|
|
9312
|
+
const [a] = Z(t), [c, o] = Z(s), [d, f] = Z({ order: "asc", key: "" }), u = (v) => {
|
|
9313
|
+
o(c.sort(($, h) => $[v].localeCompare(h[v]))), f({ order: "desc", key: v });
|
|
9314
|
+
}, p = (v) => {
|
|
9315
|
+
o(c.sort(($, h) => h[v].localeCompare($[v]))), f({ order: "asc", key: v });
|
|
9320
9316
|
}, b = (v, $) => {
|
|
9321
|
-
|
|
9322
|
-
}, E = (v, $) => /* @__PURE__ */ e.createElement("tr", { id: $, key: `table-row-${$}` }, v.map((
|
|
9317
|
+
f(he(L({}, d), { key: $ })), d.order === "asc" ? u($) : p($);
|
|
9318
|
+
}, E = (v, $) => /* @__PURE__ */ e.createElement("tr", { id: $, key: `table-row-${$}` }, v.map((h, m) => /* @__PURE__ */ e.createElement("td", { key: `${$}-cell-${m}` }, /* @__PURE__ */ e.createElement("span", null, h)))), y = "pds-table";
|
|
9323
9319
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", L({ className: x([y, n]) }, l), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, a.map((v, $) => /* @__PURE__ */ e.createElement("th", { key: `header-${$}` }, v.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${y}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9324
9320
|
"span",
|
|
9325
9321
|
{
|
|
9326
9322
|
className: `${y}__sort-header`,
|
|
9327
|
-
onClick: (
|
|
9323
|
+
onClick: (h) => b(h, $)
|
|
9328
9324
|
},
|
|
9329
9325
|
v.title
|
|
9330
9326
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -9332,7 +9328,7 @@ const Qs = (c) => {
|
|
|
9332
9328
|
{
|
|
9333
9329
|
className: `${y}__sort-button`,
|
|
9334
9330
|
title: `Sort by ${v.title}`,
|
|
9335
|
-
onClick: (
|
|
9331
|
+
onClick: (h) => b(h, $)
|
|
9336
9332
|
},
|
|
9337
9333
|
/* @__PURE__ */ e.createElement(
|
|
9338
9334
|
"span",
|
|
@@ -9350,7 +9346,7 @@ const Qs = (c) => {
|
|
|
9350
9346
|
)
|
|
9351
9347
|
)) : /* @__PURE__ */ e.createElement("span", null, v.title))))), /* @__PURE__ */ e.createElement("tbody", null, c.map((v, $) => E(v, $)))));
|
|
9352
9348
|
}, an = (d) => {
|
|
9353
|
-
var
|
|
9349
|
+
var f = d, {
|
|
9354
9350
|
appendIds: t = !1,
|
|
9355
9351
|
ariaLabel: s = "Table of contents",
|
|
9356
9352
|
headingLevel: n = "h2",
|
|
@@ -9359,7 +9355,7 @@ const Qs = (c) => {
|
|
|
9359
9355
|
showHeading: i = !1,
|
|
9360
9356
|
sourceID: a = "pds-toc-source",
|
|
9361
9357
|
className: c
|
|
9362
|
-
} =
|
|
9358
|
+
} = f, o = S(f, [
|
|
9363
9359
|
"appendIds",
|
|
9364
9360
|
"ariaLabel",
|
|
9365
9361
|
"headingLevel",
|
|
@@ -9369,7 +9365,7 @@ const Qs = (c) => {
|
|
|
9369
9365
|
"sourceID",
|
|
9370
9366
|
"className"
|
|
9371
9367
|
]);
|
|
9372
|
-
const u = "pds-toc",
|
|
9368
|
+
const u = "pds-toc", p = [
|
|
9373
9369
|
" ",
|
|
9374
9370
|
"/",
|
|
9375
9371
|
".",
|
|
@@ -9394,7 +9390,7 @@ const Qs = (c) => {
|
|
|
9394
9390
|
document.querySelectorAll(b)
|
|
9395
9391
|
);
|
|
9396
9392
|
z.map((I) => {
|
|
9397
|
-
|
|
9393
|
+
p.forEach((V) => {
|
|
9398
9394
|
I.id.includes(V) && (I.id = I.id.replaceAll(V, "-"));
|
|
9399
9395
|
});
|
|
9400
9396
|
}), z.map((I) => {
|
|
@@ -9413,7 +9409,7 @@ const Qs = (c) => {
|
|
|
9413
9409
|
title: k
|
|
9414
9410
|
});
|
|
9415
9411
|
}), w;
|
|
9416
|
-
}, { nestedHeadings: v } = E(), [$,
|
|
9412
|
+
}, { nestedHeadings: v } = E(), [$, h] = Z();
|
|
9417
9413
|
((H) => {
|
|
9418
9414
|
const w = ie({});
|
|
9419
9415
|
ce(() => {
|
|
@@ -9440,8 +9436,8 @@ const Qs = (c) => {
|
|
|
9440
9436
|
);
|
|
9441
9437
|
return I.forEach((V) => k.observe(V)), () => k.disconnect();
|
|
9442
9438
|
}, [H]);
|
|
9443
|
-
})(
|
|
9444
|
-
const
|
|
9439
|
+
})(h);
|
|
9440
|
+
const g = (H) => {
|
|
9445
9441
|
typeof window != "undefined" && window.location.hash !== `#${H}` && window.history.pushState({}, "", `#${H}`);
|
|
9446
9442
|
}, _ = (H) => {
|
|
9447
9443
|
document.querySelector(`#${H}`).scrollIntoView({
|
|
@@ -9449,7 +9445,7 @@ const Qs = (c) => {
|
|
|
9449
9445
|
block: "start"
|
|
9450
9446
|
});
|
|
9451
9447
|
}, C = (H, w) => {
|
|
9452
|
-
H.preventDefault(), t &&
|
|
9448
|
+
H.preventDefault(), t && g(w), _(w);
|
|
9453
9449
|
}, M = ({ headings: H }) => /* @__PURE__ */ e.createElement("ul", { className: `${u}__list ${u}__list--top-level` }, H.map((w) => /* @__PURE__ */ e.createElement("li", { key: w.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9454
9450
|
"a",
|
|
9455
9451
|
{
|
|
@@ -9511,48 +9507,48 @@ const Qs = (c) => {
|
|
|
9511
9507
|
"tabs",
|
|
9512
9508
|
"className"
|
|
9513
9509
|
]);
|
|
9514
|
-
const d = "pds-tabs", [
|
|
9510
|
+
const d = "pds-tabs", [f, u] = Z(l != null ? l : s);
|
|
9515
9511
|
ce(() => {
|
|
9516
9512
|
l !== void 0 && u(l);
|
|
9517
9513
|
}, [l]);
|
|
9518
|
-
const
|
|
9514
|
+
const p = (v) => {
|
|
9519
9515
|
const $ = v.currentTarget.getAttribute("data-tabnumber");
|
|
9520
9516
|
if ($) {
|
|
9521
|
-
const
|
|
9522
|
-
u(
|
|
9517
|
+
const h = parseInt($, 10);
|
|
9518
|
+
u(h);
|
|
9523
9519
|
}
|
|
9524
9520
|
}, b = ie([]);
|
|
9525
9521
|
ce(() => {
|
|
9526
|
-
n(
|
|
9527
|
-
}, [
|
|
9522
|
+
n(f);
|
|
9523
|
+
}, [f, n]), ce(() => {
|
|
9528
9524
|
const v = b.current.length - 1;
|
|
9529
|
-
if (
|
|
9525
|
+
if (f > v) {
|
|
9530
9526
|
u(0);
|
|
9531
9527
|
return;
|
|
9532
|
-
} else if (
|
|
9528
|
+
} else if (f < 0) {
|
|
9533
9529
|
u(v);
|
|
9534
9530
|
return;
|
|
9535
9531
|
}
|
|
9536
|
-
}, [
|
|
9532
|
+
}, [f]);
|
|
9537
9533
|
const E = (v, $) => {
|
|
9538
|
-
const
|
|
9539
|
-
let m = b.current[$ === "next" ?
|
|
9534
|
+
const h = f;
|
|
9535
|
+
let m = b.current[$ === "next" ? h + 1 < b.current.length ? h + 1 : 0 : h - 1 >= 0 ? h - 1 : b.current.length - 1];
|
|
9540
9536
|
m || (m = $ == "next" ? b.current[v + 1] == null ? b.current[0] : b.current[v + 1] : b.current[v - 1]), m.focus();
|
|
9541
9537
|
}, y = (v) => {
|
|
9542
|
-
const $ = b.current.length,
|
|
9543
|
-
E((
|
|
9538
|
+
const $ = b.current.length, h = () => {
|
|
9539
|
+
E((f + 1) % $, "next"), u(f + 1);
|
|
9544
9540
|
}, m = () => {
|
|
9545
|
-
E((
|
|
9546
|
-
},
|
|
9541
|
+
E((f - 1 + $) % $, "prev"), u(f - 1);
|
|
9542
|
+
}, g = () => {
|
|
9547
9543
|
E(0), u(0);
|
|
9548
9544
|
}, _ = () => {
|
|
9549
9545
|
E($ - 1), u($ - 1);
|
|
9550
9546
|
}, C = () => {
|
|
9551
|
-
b.current[
|
|
9547
|
+
b.current[f].focus();
|
|
9552
9548
|
}, H = {
|
|
9553
|
-
ArrowRight:
|
|
9549
|
+
ArrowRight: h,
|
|
9554
9550
|
ArrowLeft: m,
|
|
9555
|
-
Home:
|
|
9551
|
+
Home: g,
|
|
9556
9552
|
End: _,
|
|
9557
9553
|
Space: C,
|
|
9558
9554
|
Enter: C
|
|
@@ -9567,28 +9563,28 @@ const Qs = (c) => {
|
|
|
9567
9563
|
"aria-label": t,
|
|
9568
9564
|
"aria-orientation": "horizontal"
|
|
9569
9565
|
},
|
|
9570
|
-
r.map(({ disabled: v, icon: $, tabId:
|
|
9566
|
+
r.map(({ disabled: v, icon: $, tabId: h, tabLabel: m, tally: g }, _) => /* @__PURE__ */ e.createElement(
|
|
9571
9567
|
"button",
|
|
9572
9568
|
{
|
|
9573
9569
|
className: `${d}__tab`,
|
|
9574
|
-
"aria-selected": _ ==
|
|
9570
|
+
"aria-selected": _ == f,
|
|
9575
9571
|
"data-tabnumber": _,
|
|
9576
9572
|
role: "tab",
|
|
9577
|
-
id:
|
|
9573
|
+
id: h,
|
|
9578
9574
|
onKeyDown: (C) => {
|
|
9579
9575
|
C.preventDefault(), y(C);
|
|
9580
9576
|
},
|
|
9581
9577
|
key: _,
|
|
9582
9578
|
ref: (C) => v ? null : b.current[_] = C,
|
|
9583
9579
|
"aria-controls": `${d}__tab--${_}`,
|
|
9584
|
-
tabIndex:
|
|
9580
|
+
tabIndex: f === _ ? 0 : -1,
|
|
9585
9581
|
"aria-disabled": !!v,
|
|
9586
|
-
onClick: v ? null :
|
|
9582
|
+
onClick: v ? null : p,
|
|
9587
9583
|
type: "button"
|
|
9588
9584
|
},
|
|
9589
|
-
/* @__PURE__ */ e.createElement("div", { key: $, className: `${d}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconName: $, iconSize: "md" }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label:
|
|
9585
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${d}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconName: $, iconSize: "md" }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label: g.label, type: g.type }) : null)
|
|
9590
9586
|
))
|
|
9591
|
-
), r.map(({ disabled: v, icon: $, panelContent:
|
|
9587
|
+
), r.map(({ disabled: v, icon: $, panelContent: h, tabLabel: m, tally: g }, _) => /* @__PURE__ */ e.createElement(
|
|
9592
9588
|
"div",
|
|
9593
9589
|
{
|
|
9594
9590
|
className: `${d}__panel`,
|
|
@@ -9601,19 +9597,19 @@ const Qs = (c) => {
|
|
|
9601
9597
|
"button",
|
|
9602
9598
|
{
|
|
9603
9599
|
className: `${d}__trigger`,
|
|
9604
|
-
"aria-selected": _ ==
|
|
9600
|
+
"aria-selected": _ == f,
|
|
9605
9601
|
role: "tab",
|
|
9606
9602
|
"data-tabnumber": _,
|
|
9607
9603
|
key: _,
|
|
9608
9604
|
onKeyDown: y,
|
|
9609
9605
|
"aria-disabled": !!v,
|
|
9610
9606
|
"aria-controls": `tabpanel_${_}`,
|
|
9611
|
-
tabIndex:
|
|
9612
|
-
onClick: v ? null :
|
|
9607
|
+
tabIndex: f === _ ? 1 : -1,
|
|
9608
|
+
onClick: v ? null : p,
|
|
9613
9609
|
type: "button"
|
|
9614
9610
|
},
|
|
9615
|
-
/* @__PURE__ */ e.createElement("div", { key: $, className: `${d}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: $ }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label:
|
|
9616
|
-
_ ==
|
|
9611
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${d}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: $ }) : null, " ", m, r[_].tally ? /* @__PURE__ */ e.createElement(_t, { label: g.label, type: g.type }) : null),
|
|
9612
|
+
_ == f ? /* @__PURE__ */ e.createElement(
|
|
9617
9613
|
R,
|
|
9618
9614
|
{
|
|
9619
9615
|
iconName: "angleUp",
|
|
@@ -9633,9 +9629,9 @@ const Qs = (c) => {
|
|
|
9633
9629
|
"section",
|
|
9634
9630
|
{
|
|
9635
9631
|
className: `${d}__panel-content`,
|
|
9636
|
-
hidden: _ !=
|
|
9632
|
+
hidden: _ != f
|
|
9637
9633
|
},
|
|
9638
|
-
|
|
9634
|
+
h
|
|
9639
9635
|
)
|
|
9640
9636
|
))));
|
|
9641
9637
|
};
|
|
@@ -9682,23 +9678,23 @@ const F2 = (t) => {
|
|
|
9682
9678
|
"tagLabel",
|
|
9683
9679
|
"className"
|
|
9684
9680
|
]);
|
|
9685
|
-
const [
|
|
9681
|
+
const [f, u] = Z(!0), p = "pds-tag", b = r ? `${p}--${r}` : `${p}--${F2(i)}`, E = f ? null : "pds-tag--hide", y = () => {
|
|
9686
9682
|
u((m) => !m);
|
|
9687
9683
|
};
|
|
9688
|
-
let v, $,
|
|
9689
|
-
return t && !s && be(t) ? (v = t.type, $ = t.props.href ? "href" : "to",
|
|
9684
|
+
let v, $, h;
|
|
9685
|
+
return t && !s && be(t) ? (v = t.type, $ = t.props.href ? "href" : "to", h = $ === "href" ? t.props.href : t.props.to) : (v = "span", $ = null, h = null), /* @__PURE__ */ e.createElement(
|
|
9690
9686
|
v,
|
|
9691
9687
|
L({
|
|
9692
|
-
href: $ === "href" ?
|
|
9693
|
-
to: $ === "to" ?
|
|
9694
|
-
className: [
|
|
9688
|
+
href: $ === "href" ? h : null,
|
|
9689
|
+
to: $ === "to" ? h : null,
|
|
9690
|
+
className: [p, b, E, a].join(" ").trim().replace(/\s+/g, " ")
|
|
9695
9691
|
}, c),
|
|
9696
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
9692
|
+
/* @__PURE__ */ e.createElement("span", { className: `${p}__label`, title: i }, P2(i, 20)),
|
|
9697
9693
|
s ? /* @__PURE__ */ e.createElement(
|
|
9698
9694
|
"button",
|
|
9699
9695
|
{
|
|
9700
9696
|
type: "button",
|
|
9701
|
-
className: `${
|
|
9697
|
+
className: `${p}__remove`,
|
|
9702
9698
|
"aria-label": `${l}: ${i}`,
|
|
9703
9699
|
onClick: () => {
|
|
9704
9700
|
y(), n();
|
|
@@ -9708,7 +9704,7 @@ const F2 = (t) => {
|
|
|
9708
9704
|
R,
|
|
9709
9705
|
{
|
|
9710
9706
|
iconName: "xmark",
|
|
9711
|
-
className: `${
|
|
9707
|
+
className: `${p}__remove-icon`,
|
|
9712
9708
|
iconSize: "md"
|
|
9713
9709
|
}
|
|
9714
9710
|
)
|
|
@@ -9723,15 +9719,15 @@ const F2 = (t) => {
|
|
|
9723
9719
|
"className"
|
|
9724
9720
|
]);
|
|
9725
9721
|
const i = "pds-avatar-tile-list", a = "pds-tile-list", c = ({
|
|
9726
|
-
image:
|
|
9722
|
+
image: f,
|
|
9727
9723
|
alt: u,
|
|
9728
|
-
name:
|
|
9724
|
+
name: p,
|
|
9729
9725
|
title: b,
|
|
9730
9726
|
org: E
|
|
9731
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
9732
|
-
children: /* @__PURE__ */ e.createElement(c, L({},
|
|
9727
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("div", { className: `${a}__image ${a}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: f, alt: u })), p && /* @__PURE__ */ e.createElement("div", { className: `${a}__name` }, p), b && /* @__PURE__ */ e.createElement("div", { className: `${a}__title` }, b), E && /* @__PURE__ */ e.createElement("div", { className: `${a}__org` }, E)), o = (f) => be(f.linkContent) ? xe(f.linkContent, {
|
|
9728
|
+
children: /* @__PURE__ */ e.createElement(c, L({}, f)),
|
|
9733
9729
|
className: `${a}__item`
|
|
9734
|
-
}) : /* @__PURE__ */ e.createElement("span", { className: `${a}__item` }, /* @__PURE__ */ e.createElement(c, L({},
|
|
9730
|
+
}) : /* @__PURE__ */ e.createElement("span", { className: `${a}__item` }, /* @__PURE__ */ e.createElement(c, L({}, f))), d = () => t.map((f, u) => /* @__PURE__ */ e.createElement(R1, { key: `tile-${u}` }, o(f), /* @__PURE__ */ e.createElement("div", { className: "pds-tile__separator" })));
|
|
9735
9731
|
return /* @__PURE__ */ e.createElement(
|
|
9736
9732
|
"div",
|
|
9737
9733
|
L({
|
|
@@ -9762,32 +9758,32 @@ const F2 = (t) => {
|
|
|
9762
9758
|
"summary",
|
|
9763
9759
|
"className"
|
|
9764
9760
|
]);
|
|
9765
|
-
const
|
|
9761
|
+
const f = "pds-tile", u = `${f}--${t}`;
|
|
9766
9762
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9767
9763
|
"div",
|
|
9768
9764
|
L({
|
|
9769
|
-
className: x([
|
|
9765
|
+
className: x([f, u, a != null ? a : ""])
|
|
9770
9766
|
}, c),
|
|
9771
|
-
l && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9767
|
+
l && /* @__PURE__ */ e.createElement("div", { className: `${f}__image` }, /* @__PURE__ */ e.createElement("img", { src: l, alt: "" })),
|
|
9772
9768
|
n && /* @__PURE__ */ e.createElement(
|
|
9773
9769
|
mt,
|
|
9774
9770
|
{
|
|
9775
|
-
baseClass:
|
|
9771
|
+
baseClass: f,
|
|
9776
9772
|
className: "pds-ts-xl",
|
|
9777
9773
|
level: s
|
|
9778
9774
|
},
|
|
9779
9775
|
n
|
|
9780
9776
|
),
|
|
9781
|
-
i && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9777
|
+
i && /* @__PURE__ */ e.createElement("div", { className: `${f}__summary` }, /* @__PURE__ */ e.createElement("p", null, i)),
|
|
9782
9778
|
r && (t == "border" || t == "clean") && /* @__PURE__ */ e.createElement(
|
|
9783
9779
|
h2,
|
|
9784
9780
|
{
|
|
9785
9781
|
linkContent: r,
|
|
9786
9782
|
size: "sm",
|
|
9787
|
-
className: `${
|
|
9783
|
+
className: `${f}__cta`
|
|
9788
9784
|
}
|
|
9789
9785
|
)
|
|
9790
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
9786
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${f}__separator` }));
|
|
9791
9787
|
}, on = (i) => {
|
|
9792
9788
|
var a = i, {
|
|
9793
9789
|
displayType: t = "border",
|
|
@@ -9806,10 +9802,10 @@ const F2 = (t) => {
|
|
|
9806
9802
|
L({
|
|
9807
9803
|
className: x([c, o, l != null ? l : ""])
|
|
9808
9804
|
}, r),
|
|
9809
|
-
n.map((d,
|
|
9805
|
+
n.map((d, f) => /* @__PURE__ */ e.createElement(
|
|
9810
9806
|
B2,
|
|
9811
9807
|
{
|
|
9812
|
-
key:
|
|
9808
|
+
key: f,
|
|
9813
9809
|
displayType: t,
|
|
9814
9810
|
headingLevel: s,
|
|
9815
9811
|
headingText: d.headingText,
|
|
@@ -9828,13 +9824,13 @@ const F2 = (t) => {
|
|
|
9828
9824
|
"children",
|
|
9829
9825
|
"className"
|
|
9830
9826
|
]);
|
|
9831
|
-
const { isMobile: i } = Ce(ze), a = "pds-dashboard-inner", c = i ? `${a}--isMobile` : `${a}--notMobile`, o = qe(t), d = o["header-left"],
|
|
9827
|
+
const { isMobile: i } = Ce(ze), a = "pds-dashboard-inner", c = i ? `${a}--isMobile` : `${a}--notMobile`, o = qe(t), d = o["header-left"], f = o["header-right"], u = o.content;
|
|
9832
9828
|
return /* @__PURE__ */ e.createElement(
|
|
9833
9829
|
"div",
|
|
9834
9830
|
L({
|
|
9835
9831
|
className: x([a, c, s != null ? s : ""])
|
|
9836
9832
|
}, n),
|
|
9837
|
-
(d ||
|
|
9833
|
+
(d || f) && /* @__PURE__ */ e.createElement("div", { className: `${a}__header` }, (d || f) && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-top` }, d && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-left` }, d), f && /* @__PURE__ */ e.createElement("div", { className: `${a}__header-right` }, f))),
|
|
9838
9834
|
u && u
|
|
9839
9835
|
);
|
|
9840
9836
|
}, mn = (y) => {
|
|
@@ -9849,9 +9845,9 @@ const F2 = (t) => {
|
|
|
9849
9845
|
mobileAlignContent: c,
|
|
9850
9846
|
mobileFlexDirection: o = "column",
|
|
9851
9847
|
mobileFlexWrap: d,
|
|
9852
|
-
mobileGap:
|
|
9848
|
+
mobileGap: f,
|
|
9853
9849
|
mobileJustifyContent: u,
|
|
9854
|
-
children:
|
|
9850
|
+
children: p,
|
|
9855
9851
|
className: b
|
|
9856
9852
|
} = v, E = S(v, [
|
|
9857
9853
|
"alignContent",
|
|
@@ -9869,22 +9865,22 @@ const F2 = (t) => {
|
|
|
9869
9865
|
"children",
|
|
9870
9866
|
"className"
|
|
9871
9867
|
]);
|
|
9872
|
-
let
|
|
9868
|
+
let h = b1() <= 640;
|
|
9873
9869
|
const m = Ce(ze);
|
|
9874
|
-
m && (
|
|
9875
|
-
const
|
|
9870
|
+
m && (h = m.isMobile);
|
|
9871
|
+
const g = "pds-flex", _ = `${g}-container`, C = h ? `${_}--mobile` : null;
|
|
9876
9872
|
let M = null;
|
|
9877
|
-
|
|
9873
|
+
h ? M = `${g}-direction--${o}` : n !== "row" && (M = `${g}-direction--${n}`);
|
|
9878
9874
|
let H = null;
|
|
9879
|
-
|
|
9875
|
+
h ? d ? d !== "nowrap" && (H = `${g}-wrap--${d}`) : l !== "nowrap" && (H = `${g}-wrap--${l}`) : l !== "nowrap" && (H = `${g}-wrap--${l}`);
|
|
9880
9876
|
let w = null;
|
|
9881
|
-
|
|
9877
|
+
h ? u ? u !== "flex-start" && (w = `${g}-justify--${u}`) : i !== "flex-start" && (w = `${g}-justify--${i}`) : i !== "flex-start" && (w = `${g}-justify--${i}`);
|
|
9882
9878
|
let z = null;
|
|
9883
|
-
|
|
9879
|
+
h ? a ? a !== "stretch" && (z = `${g}-align-items--${a}`) : s !== "stretch" && (z = `${g}-align-items--${s}`) : s !== "stretch" && (z = `${g}-align-items--${s}`);
|
|
9884
9880
|
let k = null;
|
|
9885
|
-
|
|
9881
|
+
h ? c ? c !== "flex-start" && (k = `${g}-align-content--${c}`) : t !== "flex-start" && (k = `${g}-align-content--${t}`) : t !== "flex-start" && (k = `${g}-align-content--${t}`);
|
|
9886
9882
|
let I = null;
|
|
9887
|
-
return
|
|
9883
|
+
return h ? f ? f !== "none" && (I = `${g}-gap--${f}`) : r !== "none" && (I = `${g}-gap--${r}`) : r !== "none" && (I = `${g}-gap--${r}`), /* @__PURE__ */ e.createElement(
|
|
9888
9884
|
"div",
|
|
9889
9885
|
L({
|
|
9890
9886
|
className: x([
|
|
@@ -9899,7 +9895,7 @@ const F2 = (t) => {
|
|
|
9899
9895
|
b != null ? b : ""
|
|
9900
9896
|
])
|
|
9901
9897
|
}, E),
|
|
9902
|
-
|
|
9898
|
+
p
|
|
9903
9899
|
);
|
|
9904
9900
|
}, un = ({
|
|
9905
9901
|
children: t,
|
|
@@ -9920,10 +9916,10 @@ const F2 = (t) => {
|
|
|
9920
9916
|
"sidebarWidth",
|
|
9921
9917
|
"className"
|
|
9922
9918
|
]);
|
|
9923
|
-
const d = "pds-sidebar-layout",
|
|
9924
|
-
let
|
|
9919
|
+
const d = "pds-sidebar-layout", f = `pds-grid pds-grid--${s}`, u = `${d}--${r}`;
|
|
9920
|
+
let p = !1;
|
|
9925
9921
|
const b = Ce(ze);
|
|
9926
|
-
b && (
|
|
9922
|
+
b && (p = b.isMobile);
|
|
9927
9923
|
const E = qe(t);
|
|
9928
9924
|
let y = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9", v = "pds-grid-item pds-grid-item--lg-3";
|
|
9929
9925
|
r === "narrow" && (y = "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" && (y = "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");
|
|
@@ -9931,14 +9927,14 @@ const F2 = (t) => {
|
|
|
9931
9927
|
"div",
|
|
9932
9928
|
{
|
|
9933
9929
|
key: "content",
|
|
9934
|
-
className: `${d}__main ${
|
|
9930
|
+
className: `${d}__main ${p ? "pds-grid-item" : y}`
|
|
9935
9931
|
},
|
|
9936
9932
|
E.content
|
|
9937
|
-
),
|
|
9933
|
+
), h = /* @__PURE__ */ e.createElement(
|
|
9938
9934
|
"div",
|
|
9939
9935
|
{
|
|
9940
9936
|
key: "sidebar",
|
|
9941
|
-
className: `${d}__side ${
|
|
9937
|
+
className: `${d}__side ${p ? "pds-grid-item" : v}`
|
|
9942
9938
|
},
|
|
9943
9939
|
E.sidebar
|
|
9944
9940
|
);
|
|
@@ -9947,12 +9943,12 @@ const F2 = (t) => {
|
|
|
9947
9943
|
L({
|
|
9948
9944
|
className: x([
|
|
9949
9945
|
d,
|
|
9950
|
-
|
|
9946
|
+
f,
|
|
9951
9947
|
u,
|
|
9952
9948
|
i != null ? i : ""
|
|
9953
9949
|
])
|
|
9954
9950
|
}, a),
|
|
9955
|
-
|
|
9951
|
+
p ? l === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, $) : /* @__PURE__ */ e.createElement(e.Fragment, null, $, h) : n === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, h, $) : /* @__PURE__ */ e.createElement(e.Fragment, null, $, h)
|
|
9956
9952
|
);
|
|
9957
9953
|
}, hn = (l) => {
|
|
9958
9954
|
var r = l, {
|
|
@@ -9962,10 +9958,10 @@ const F2 = (t) => {
|
|
|
9962
9958
|
"children",
|
|
9963
9959
|
"className"
|
|
9964
9960
|
]);
|
|
9965
|
-
const i = qe(t), a = i.stepper, c = i.form, o = ie(), [d] = yt(o),
|
|
9961
|
+
const i = qe(t), a = i.stepper, c = i.form, o = ie(), [d] = yt(o), f = d.width;
|
|
9966
9962
|
document.documentElement.style.setProperty(
|
|
9967
9963
|
"--pds-stepper-layout-max-width",
|
|
9968
|
-
|
|
9964
|
+
f + "px"
|
|
9969
9965
|
);
|
|
9970
9966
|
const u = "pds-stepper-layout";
|
|
9971
9967
|
return /* @__PURE__ */ e.createElement(rt, L({ className: x([u, s]) }, n), a && /* @__PURE__ */ e.createElement(
|
|
@@ -9988,10 +9984,10 @@ const F2 = (t) => {
|
|
|
9988
9984
|
"verticalAlign",
|
|
9989
9985
|
"className"
|
|
9990
9986
|
]);
|
|
9991
|
-
const c = "pds-three-item-layout", o = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${c}--${n}`,
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9987
|
+
const c = "pds-three-item-layout", o = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${c}--${n}`, f = qe(t), u = [
|
|
9988
|
+
f["first-item"],
|
|
9989
|
+
f["second-item"],
|
|
9990
|
+
f["third-item"]
|
|
9995
9991
|
];
|
|
9996
9992
|
return /* @__PURE__ */ e.createElement(
|
|
9997
9993
|
"div",
|
|
@@ -10003,13 +9999,13 @@ const F2 = (t) => {
|
|
|
10003
9999
|
l
|
|
10004
10000
|
])
|
|
10005
10001
|
}, r),
|
|
10006
|
-
u.map((
|
|
10002
|
+
u.map((p, b) => /* @__PURE__ */ e.createElement(
|
|
10007
10003
|
"div",
|
|
10008
10004
|
{
|
|
10009
10005
|
key: b,
|
|
10010
10006
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
10011
10007
|
},
|
|
10012
|
-
|
|
10008
|
+
p
|
|
10013
10009
|
))
|
|
10014
10010
|
);
|
|
10015
10011
|
}, gn = (a) => {
|
|
@@ -10026,30 +10022,30 @@ const F2 = (t) => {
|
|
|
10026
10022
|
"verticalAlign",
|
|
10027
10023
|
"className"
|
|
10028
10024
|
]);
|
|
10029
|
-
const o = "pds-two-item-layout", d = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`,
|
|
10025
|
+
const o = "pds-two-item-layout", d = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, f = `${o}--${l}`, u = ["pds-grid-item--md-6"], p = ["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"];
|
|
10030
10026
|
let y, v;
|
|
10031
10027
|
switch (n) {
|
|
10032
10028
|
case "equal":
|
|
10033
10029
|
y = E.concat(u), v = E.concat(u);
|
|
10034
10030
|
break;
|
|
10035
10031
|
case "one-third-start":
|
|
10036
|
-
y = E.concat(
|
|
10032
|
+
y = E.concat(p), v = E.concat(b);
|
|
10037
10033
|
break;
|
|
10038
10034
|
case "one-third-end":
|
|
10039
|
-
y = E.concat(b), v = E.concat(
|
|
10035
|
+
y = E.concat(b), v = E.concat(p);
|
|
10040
10036
|
}
|
|
10041
|
-
const $ = qe(t),
|
|
10037
|
+
const $ = qe(t), h = $["first-item"], m = $["second-item"];
|
|
10042
10038
|
return /* @__PURE__ */ e.createElement(
|
|
10043
10039
|
"div",
|
|
10044
10040
|
L({
|
|
10045
10041
|
className: x([
|
|
10046
10042
|
o,
|
|
10047
10043
|
d,
|
|
10048
|
-
|
|
10044
|
+
f,
|
|
10049
10045
|
r
|
|
10050
10046
|
])
|
|
10051
10047
|
}, i),
|
|
10052
|
-
/* @__PURE__ */ e.createElement("div", { className: y.join(" ").trim() },
|
|
10048
|
+
/* @__PURE__ */ e.createElement("div", { className: y.join(" ").trim() }, h),
|
|
10053
10049
|
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() }, m)
|
|
10054
10050
|
);
|
|
10055
10051
|
};
|