@pantheon-systems/pds-toolkit-react 1.0.0-alpha.10 → 1.0.0-alpha.11
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 +462 -469
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -787,7 +787,7 @@ import './index.css';const et = () => Math.random().toString(32).substring(2, 13
|
|
|
787
787
|
className: l,
|
|
788
788
|
...n
|
|
789
789
|
}) => {
|
|
790
|
-
const d = "pds-avatar", i = `${d}--${o}`, m = a ? `${d}--image` : null, [v,
|
|
790
|
+
const d = "pds-avatar", i = `${d}--${o}`, m = a ? `${d}--image` : null, [v, f] = Z(void 0), p = {
|
|
791
791
|
backgroundImage: r ? `var(--pds-color-gradient-avatar-${a1(r)})` : null,
|
|
792
792
|
borderRadius: "100%",
|
|
793
793
|
height: "100%",
|
|
@@ -795,22 +795,22 @@ import './index.css';const et = () => Math.random().toString(32).substring(2, 13
|
|
|
795
795
|
display: "flex",
|
|
796
796
|
alignItems: "center",
|
|
797
797
|
justifyContent: "center"
|
|
798
|
-
},
|
|
798
|
+
}, g = n1(a) && !v ? /* @__PURE__ */ e.createElement(
|
|
799
799
|
"img",
|
|
800
800
|
{
|
|
801
801
|
src: `${a}`,
|
|
802
802
|
className: `${d}__image`,
|
|
803
803
|
alt: "",
|
|
804
|
-
onLoad: () =>
|
|
805
|
-
onError: () =>
|
|
804
|
+
onLoad: () => f(!1),
|
|
805
|
+
onError: () => f(!0)
|
|
806
806
|
}
|
|
807
|
-
) : /* @__PURE__ */ e.createElement("span", { style: p }, s && /* @__PURE__ */ e.createElement(O, { iconName: "user", className: `${d}__user-icon` })), _ = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` },
|
|
807
|
+
) : /* @__PURE__ */ e.createElement("span", { style: p }, s && /* @__PURE__ */ e.createElement(O, { iconName: "user", className: `${d}__user-icon` })), _ = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` }, g), C = c && fe(c) ? Oe(
|
|
808
808
|
c,
|
|
809
809
|
Object.assign({}, c.props, {
|
|
810
810
|
className: `${d}__content ${d}__content--link`,
|
|
811
811
|
"aria-label": t
|
|
812
812
|
}),
|
|
813
|
-
|
|
813
|
+
g
|
|
814
814
|
) : null;
|
|
815
815
|
return /* @__PURE__ */ e.createElement(
|
|
816
816
|
"div",
|
|
@@ -897,7 +897,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
897
897
|
className: i,
|
|
898
898
|
...m
|
|
899
899
|
}) => {
|
|
900
|
-
const [v,
|
|
900
|
+
const [v, f] = Z(!1), $ = typeof s, p = "pds-tooltip", g = H([
|
|
901
901
|
`${p}__trigger-custom`,
|
|
902
902
|
$ === "string" ? `${p}__trigger-text` : null
|
|
903
903
|
]), _ = H([
|
|
@@ -906,7 +906,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
906
906
|
]), { refs: C, floatingStyles: u, context: h } = ke({
|
|
907
907
|
placement: c,
|
|
908
908
|
open: v,
|
|
909
|
-
onOpenChange:
|
|
909
|
+
onOpenChange: f,
|
|
910
910
|
middleware: [nt(a), at(), Ct()],
|
|
911
911
|
whileElementsMounted: Ae
|
|
912
912
|
}), E = ht(h, {
|
|
@@ -922,7 +922,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
922
922
|
return /* @__PURE__ */ e.createElement("div", { className: H([p, i ?? ""]), ...m }, s ? /* @__PURE__ */ e.createElement(
|
|
923
923
|
"span",
|
|
924
924
|
{
|
|
925
|
-
className:
|
|
925
|
+
className: g,
|
|
926
926
|
ref: C.setReference,
|
|
927
927
|
...y()
|
|
928
928
|
},
|
|
@@ -965,11 +965,11 @@ const xt = 500, l1 = 700, He = ({
|
|
|
965
965
|
className: n,
|
|
966
966
|
...d
|
|
967
967
|
}) => {
|
|
968
|
-
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, v = t ? "pds-pulse" : null,
|
|
968
|
+
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, v = t ? "pds-pulse" : null, f = l !== null && l > 0 ? `${l}rem` : "100%";
|
|
969
969
|
let $ = Math.max(0, a), p = Math.max(0, o);
|
|
970
970
|
t && ($ = 1, p = 1);
|
|
971
|
-
const
|
|
972
|
-
let _ =
|
|
971
|
+
const g = Math.max($, p);
|
|
972
|
+
let _ = g > 0 ? p / g * 100 : 0, C = g > 0 ? $ / g * 100 : 0;
|
|
973
973
|
const u = 10;
|
|
974
974
|
_ < u ? (_ = u, C = 100 - u) : C < u && (C = u, _ = 100 - u);
|
|
975
975
|
const h = t ? s : `${p} ${r} & ${$} ${c}`;
|
|
@@ -977,7 +977,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
977
977
|
"div",
|
|
978
978
|
{
|
|
979
979
|
className: H([i, m, n ?? ""]),
|
|
980
|
-
style: { width:
|
|
980
|
+
style: { width: f },
|
|
981
981
|
...d
|
|
982
982
|
},
|
|
983
983
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1198,11 +1198,11 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1198
1198
|
onClick: i,
|
|
1199
1199
|
size: m = "md",
|
|
1200
1200
|
tooltipText: v,
|
|
1201
|
-
variant:
|
|
1201
|
+
variant: f = "primary",
|
|
1202
1202
|
className: $ = "",
|
|
1203
1203
|
...p
|
|
1204
|
-
},
|
|
1205
|
-
const _ = "pds-button", C = m !== "md" ? `${_}--${m}` : null, u =
|
|
1204
|
+
}, g) => {
|
|
1205
|
+
const _ = "pds-button", C = m !== "md" ? `${_}--${m}` : null, u = f !== "primary" ? `${_}--${f}` : null, h = r ? `${_}--full-width` : null;
|
|
1206
1206
|
let E;
|
|
1207
1207
|
switch (m) {
|
|
1208
1208
|
case "sm":
|
|
@@ -1239,7 +1239,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1239
1239
|
disabled: a || l,
|
|
1240
1240
|
"aria-label": t,
|
|
1241
1241
|
onClick: i,
|
|
1242
|
-
ref:
|
|
1242
|
+
ref: g,
|
|
1243
1243
|
...p
|
|
1244
1244
|
},
|
|
1245
1245
|
l && /* @__PURE__ */ e.createElement(_t, { className: `${_}__loading-indicator`, size: "md" }),
|
|
@@ -1258,11 +1258,11 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1258
1258
|
className: n,
|
|
1259
1259
|
...d
|
|
1260
1260
|
}) => {
|
|
1261
|
-
const i = "pds-button-link", m = "pds-button", v = o !== "md" ? `${m}--${o}` : null,
|
|
1261
|
+
const i = "pds-button-link", m = "pds-button", v = o !== "md" ? `${m}--${o}` : null, f = l !== "primary" ? `${m}--${l}` : null, $ = H([
|
|
1262
1262
|
m,
|
|
1263
1263
|
v,
|
|
1264
|
-
|
|
1265
|
-
]), p = fe(c) ? c.props.children : null,
|
|
1264
|
+
f
|
|
1265
|
+
]), p = fe(c) ? c.props.children : null, g = /* @__PURE__ */ e.createElement(
|
|
1266
1266
|
O,
|
|
1267
1267
|
{
|
|
1268
1268
|
iconName: a,
|
|
@@ -1272,7 +1272,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1272
1272
|
}
|
|
1273
1273
|
);
|
|
1274
1274
|
let _ = [p];
|
|
1275
|
-
s === "icon-start" && a ? _ = [
|
|
1275
|
+
s === "icon-start" && a ? _ = [g, p] : s === "icon-end" && a && (_ = [p, g]);
|
|
1276
1276
|
const C = fe(c) ? Oe(
|
|
1277
1277
|
c,
|
|
1278
1278
|
Object.assign({}, c.props, {
|
|
@@ -1321,10 +1321,10 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1321
1321
|
className: i,
|
|
1322
1322
|
...m
|
|
1323
1323
|
}, v) => {
|
|
1324
|
-
const
|
|
1325
|
-
fadeOut: `${
|
|
1326
|
-
hide: `${
|
|
1327
|
-
scaleIn: `${
|
|
1324
|
+
const f = "pds-icon-button", $ = n !== "md" ? `${f}--${n}` : null, p = d !== "standard" ? `${f}--${d}` : null, g = {
|
|
1325
|
+
fadeOut: `${f}--fadeOut`,
|
|
1326
|
+
hide: `${f}--hide`,
|
|
1327
|
+
scaleIn: `${f}--scaleIn`
|
|
1328
1328
|
};
|
|
1329
1329
|
let _, C;
|
|
1330
1330
|
switch (n) {
|
|
@@ -1338,41 +1338,41 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1338
1338
|
C = "xl", _ = 12;
|
|
1339
1339
|
}
|
|
1340
1340
|
const u = r !== null, h = ne(null), E = ne(null), b = () => {
|
|
1341
|
-
h.current.classList.add(
|
|
1341
|
+
h.current.classList.add(g.fadeOut), h.current.classList.add(g.hide), E.current.classList.remove(g.hide), E.current.classList.add(g.scaleIn), setTimeout(() => {
|
|
1342
1342
|
h.current.classList.remove(
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
), h.current.classList.add(
|
|
1343
|
+
g.fadeOut,
|
|
1344
|
+
g.hide
|
|
1345
|
+
), h.current.classList.add(g.scaleIn), E.current.classList.remove(g.scaleIn), E.current.classList.add(g.hide);
|
|
1346
1346
|
}, 2e3);
|
|
1347
1347
|
}, N = (y) => {
|
|
1348
1348
|
u && b(), l && l(y);
|
|
1349
|
-
}, L = u ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1349
|
+
}, L = u ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref: h, className: `${f}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1350
1350
|
O,
|
|
1351
1351
|
{
|
|
1352
1352
|
iconName: o,
|
|
1353
1353
|
iconSize: C,
|
|
1354
|
-
className: `${
|
|
1354
|
+
className: `${f}__icon`
|
|
1355
1355
|
}
|
|
1356
1356
|
)), /* @__PURE__ */ e.createElement(
|
|
1357
1357
|
"div",
|
|
1358
1358
|
{
|
|
1359
1359
|
ref: E,
|
|
1360
|
-
className: `${
|
|
1360
|
+
className: `${f}__icon-wrapper ${g.hide}`
|
|
1361
1361
|
},
|
|
1362
1362
|
/* @__PURE__ */ e.createElement(
|
|
1363
1363
|
O,
|
|
1364
1364
|
{
|
|
1365
1365
|
iconName: r,
|
|
1366
1366
|
iconSize: C,
|
|
1367
|
-
className: `${
|
|
1367
|
+
className: `${f}__icon`
|
|
1368
1368
|
}
|
|
1369
1369
|
)
|
|
1370
|
-
)) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1370
|
+
)) : /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
1371
1371
|
O,
|
|
1372
1372
|
{
|
|
1373
1373
|
iconName: o,
|
|
1374
1374
|
iconSize: C,
|
|
1375
|
-
className: `${
|
|
1375
|
+
className: `${f}__icon`
|
|
1376
1376
|
}
|
|
1377
1377
|
));
|
|
1378
1378
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1380,7 +1380,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1380
1380
|
{
|
|
1381
1381
|
"aria-label": t,
|
|
1382
1382
|
className: H([
|
|
1383
|
-
|
|
1383
|
+
f,
|
|
1384
1384
|
$,
|
|
1385
1385
|
p,
|
|
1386
1386
|
i
|
|
@@ -1396,7 +1396,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1396
1396
|
He,
|
|
1397
1397
|
{
|
|
1398
1398
|
content: t,
|
|
1399
|
-
className: `${
|
|
1399
|
+
className: `${f}__tooltip`,
|
|
1400
1400
|
offsetValue: _,
|
|
1401
1401
|
customTrigger: L
|
|
1402
1402
|
}
|
|
@@ -1482,10 +1482,10 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1482
1482
|
size: i = "md",
|
|
1483
1483
|
testId: m,
|
|
1484
1484
|
undefinedLabel: v = "Unlabeled group",
|
|
1485
|
-
variant:
|
|
1485
|
+
variant: f = "primary",
|
|
1486
1486
|
withinNavbar: $,
|
|
1487
1487
|
className: p,
|
|
1488
|
-
...
|
|
1488
|
+
...g
|
|
1489
1489
|
}) => {
|
|
1490
1490
|
const {
|
|
1491
1491
|
x: _,
|
|
@@ -1503,7 +1503,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1503
1503
|
let y = !1;
|
|
1504
1504
|
const w = ge(be);
|
|
1505
1505
|
w && (y = w.isMobile);
|
|
1506
|
-
const M =
|
|
1506
|
+
const M = f === "navbar" && y, k = "pds-menu-button", z = M ? `${k}--isMobile` : null, R = $ ? `${k}--navbar` : null, I = c, [S] = Z(`menu-button-${c}`), D = L.floating, B = ne(null), [F, K] = Z(!1), [X, U] = Z(!1), [j, q] = Z(""), [T, x] = Z(0), V = ne([]), A = ne([]), G = ne([]);
|
|
1507
1507
|
B2(() => {
|
|
1508
1508
|
window.addEventListener("mousedown", Me, !0), b();
|
|
1509
1509
|
const P = D.current;
|
|
@@ -1768,7 +1768,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1768
1768
|
isSplitButton: o,
|
|
1769
1769
|
label: r,
|
|
1770
1770
|
size: i,
|
|
1771
|
-
variant:
|
|
1771
|
+
variant: f,
|
|
1772
1772
|
displayType: s,
|
|
1773
1773
|
iconName: "angleDown",
|
|
1774
1774
|
type: "button",
|
|
@@ -1849,7 +1849,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1849
1849
|
]),
|
|
1850
1850
|
"data-testid": m,
|
|
1851
1851
|
ref: B,
|
|
1852
|
-
...
|
|
1852
|
+
...g
|
|
1853
1853
|
},
|
|
1854
1854
|
M ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ne, /* @__PURE__ */ e.createElement(ot, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Fe, Xe(l))
|
|
1855
1855
|
);
|
|
@@ -1865,7 +1865,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1865
1865
|
className: d,
|
|
1866
1866
|
...i
|
|
1867
1867
|
}) => {
|
|
1868
|
-
const m = "pds-segmented-button", v = t ? "pds-is-disabled" : null,
|
|
1868
|
+
const m = "pds-segmented-button", v = t ? "pds-is-disabled" : null, f = l !== "md" ? `${m}--${l}` : null, $ = typeof n < "u", p = typeof a < "u", [g, _] = Z(
|
|
1869
1869
|
p ? a : ""
|
|
1870
1870
|
), C = (u) => {
|
|
1871
1871
|
_(u.target.value), o && o(u.target.value);
|
|
@@ -1876,7 +1876,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1876
1876
|
{
|
|
1877
1877
|
className: H([
|
|
1878
1878
|
m,
|
|
1879
|
-
|
|
1879
|
+
f,
|
|
1880
1880
|
v,
|
|
1881
1881
|
d ?? ""
|
|
1882
1882
|
]),
|
|
@@ -1884,7 +1884,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1884
1884
|
},
|
|
1885
1885
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
1886
1886
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__options` }, r.map((u, h) => {
|
|
1887
|
-
const E = $ ? n === u.value :
|
|
1887
|
+
const E = $ ? n === u.value : g === u.value, b = `${m}__option`, N = E ? `${b}--checked` : null;
|
|
1888
1888
|
return /* @__PURE__ */ e.createElement(
|
|
1889
1889
|
"div",
|
|
1890
1890
|
{
|
|
@@ -1933,8 +1933,8 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1933
1933
|
...n
|
|
1934
1934
|
}) => {
|
|
1935
1935
|
const d = "pds-split-button", i = `${d}--${r}`, m = t[0], v = t.slice(1);
|
|
1936
|
-
let
|
|
1937
|
-
return "isLink" in m && m.isLink === !0 ?
|
|
1936
|
+
let f = null;
|
|
1937
|
+
return "isLink" in m && m.isLink === !0 ? f = /* @__PURE__ */ e.createElement(
|
|
1938
1938
|
gt,
|
|
1939
1939
|
{
|
|
1940
1940
|
className: `${d}__primary-action`,
|
|
@@ -1944,7 +1944,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1944
1944
|
disabled: s,
|
|
1945
1945
|
linkContent: m.linkContent
|
|
1946
1946
|
}
|
|
1947
|
-
) : "label" in m && (
|
|
1947
|
+
) : "label" in m && (f = /* @__PURE__ */ e.createElement(
|
|
1948
1948
|
Be,
|
|
1949
1949
|
{
|
|
1950
1950
|
className: `${d}__primary-action`,
|
|
@@ -1961,7 +1961,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1961
1961
|
id: a,
|
|
1962
1962
|
...n
|
|
1963
1963
|
},
|
|
1964
|
-
|
|
1964
|
+
f,
|
|
1965
1965
|
/* @__PURE__ */ e.createElement(
|
|
1966
1966
|
k2,
|
|
1967
1967
|
{
|
|
@@ -1992,10 +1992,10 @@ const xt = 500, l1 = 700, He = ({
|
|
|
1992
1992
|
label: i,
|
|
1993
1993
|
onClick: m,
|
|
1994
1994
|
tooltipText: v,
|
|
1995
|
-
className:
|
|
1995
|
+
className: f,
|
|
1996
1996
|
...$
|
|
1997
1997
|
}) => {
|
|
1998
|
-
const p = "pds-utility-button",
|
|
1998
|
+
const p = "pds-utility-button", g = a ? `${p}--border` : null, _ = r ? `${p}--critical` : null, C = s ? `${p}--disabled` : null, u = l ? `${p}--loading` : null, h = n ? `${p}--working` : null, E = d ? `${p}--monospace` : null, b = l ? "pds-pulse" : null, N = /* @__PURE__ */ e.createElement(
|
|
1999
1999
|
"button",
|
|
2000
2000
|
{
|
|
2001
2001
|
className: H([`${p}__button`, b]),
|
|
@@ -2021,13 +2021,13 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2021
2021
|
{
|
|
2022
2022
|
className: H([
|
|
2023
2023
|
p,
|
|
2024
|
-
|
|
2024
|
+
g,
|
|
2025
2025
|
_,
|
|
2026
2026
|
C,
|
|
2027
2027
|
u,
|
|
2028
2028
|
h,
|
|
2029
2029
|
E,
|
|
2030
|
-
|
|
2030
|
+
f ?? ""
|
|
2031
2031
|
]),
|
|
2032
2032
|
...$
|
|
2033
2033
|
},
|
|
@@ -2131,11 +2131,11 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2131
2131
|
const i = "pds-card-select-group";
|
|
2132
2132
|
let m = `${i}__legend`;
|
|
2133
2133
|
c === "center" && (m = `${i}__legend ${i}__legend--center`), c === "hidden" && (m = `${i}__legend visually-hidden`);
|
|
2134
|
-
const [v,
|
|
2135
|
-
|
|
2136
|
-
}, p = l.length,
|
|
2134
|
+
const [v, f] = Z(s), $ = (h) => {
|
|
2135
|
+
f(h.currentTarget.value), r && r(h.currentTarget.value);
|
|
2136
|
+
}, p = l.length, g = "pds-grid-item", _ = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", C = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2137
2137
|
let u = "";
|
|
2138
|
-
return o === "twoAcross" ? u = _ : o === "threeAcross" ? u = C : o === "auto" && (p === 1 ? u =
|
|
2138
|
+
return o === "twoAcross" ? u = _ : o === "threeAcross" ? u = C : o === "auto" && (p === 1 ? u = g : p % 3 === 0 ? u = C : p % 2 === 0 ? u = _ : u = C), /* @__PURE__ */ e.createElement(
|
|
2139
2139
|
"fieldset",
|
|
2140
2140
|
{
|
|
2141
2141
|
className: [i, n].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -2504,7 +2504,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2504
2504
|
className: d,
|
|
2505
2505
|
...i
|
|
2506
2506
|
}) => {
|
|
2507
|
-
const m = "pds-new-site-card", v = l.type,
|
|
2507
|
+
const m = "pds-new-site-card", v = l.type, f = /* @__PURE__ */ e.createElement(Mt, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${m}__main` }, /* @__PURE__ */ e.createElement(
|
|
2508
2508
|
v,
|
|
2509
2509
|
{
|
|
2510
2510
|
"aria-label": l.props.children,
|
|
@@ -2523,9 +2523,9 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2523
2523
|
),
|
|
2524
2524
|
r && /* @__PURE__ */ e.createElement("div", { className: `${m}__summary` }, r)
|
|
2525
2525
|
), n && n.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${m}__links` }, n.map(($, p) => {
|
|
2526
|
-
const
|
|
2526
|
+
const g = $.type;
|
|
2527
2527
|
return /* @__PURE__ */ e.createElement(
|
|
2528
|
-
|
|
2528
|
+
g,
|
|
2529
2529
|
{
|
|
2530
2530
|
key: p,
|
|
2531
2531
|
className: `${m}__link`,
|
|
@@ -2542,7 +2542,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2542
2542
|
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, a))
|
|
2543
2543
|
);
|
|
2544
2544
|
}))));
|
|
2545
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([m, d ?? ""]), ...i },
|
|
2545
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([m, d ?? ""]), ...i }, f);
|
|
2546
2546
|
}, u1 = {
|
|
2547
2547
|
amex: /* @__PURE__ */ e.createElement(
|
|
2548
2548
|
"svg",
|
|
@@ -2967,17 +2967,17 @@ const xt = 500, l1 = 700, He = ({
|
|
|
2967
2967
|
onOptionSelect: i,
|
|
2968
2968
|
options: m,
|
|
2969
2969
|
required: v = !1,
|
|
2970
|
-
showLabel:
|
|
2970
|
+
showLabel: f = !0,
|
|
2971
2971
|
tooltipText: $ = null,
|
|
2972
2972
|
validationMessage: p,
|
|
2973
|
-
validationStatus:
|
|
2973
|
+
validationStatus: g,
|
|
2974
2974
|
value: _,
|
|
2975
2975
|
className: C,
|
|
2976
2976
|
...u
|
|
2977
2977
|
}) => {
|
|
2978
|
-
const h = Ke(c), E = "pds-select", b = s ? Q.disabled : null, N = v && !s ? Q.required : null, L =
|
|
2978
|
+
const h = Ke(c), E = "pds-select", b = s ? Q.disabled : null, N = v && !s ? Q.required : null, L = g === "error" ? Q.error : null, y = g === "success" ? Q.success : null;
|
|
2979
2979
|
let w = null;
|
|
2980
|
-
|
|
2980
|
+
g === "error" && (w = "error"), g === "success" && (w = "success");
|
|
2981
2981
|
const M = p || l, k = typeof _ < "u", z = typeof t < "u", I = ((de) => de.reduce((Ce, _e) => n2(_e) ? [...Ce, ..._e.options] : [...Ce, _e], []))(m), S = (de) => I.findIndex((Ce) => Ce.value === de), D = k && S(_) >= 0 ? S(_) : null, B = z ? S(t) : null, F = D || B, [K, X] = Z(!1), [U, j] = Z(null), [q, T] = Z(
|
|
2982
2982
|
F ?? null
|
|
2983
2983
|
), x = q !== null ? I[q]?.label : void 0, V = q !== null ? I[q]?.value : void 0, A = ne([]), { context: G, refs: Y, floatingStyles: le } = ke({
|
|
@@ -3130,7 +3130,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3130
3130
|
{
|
|
3131
3131
|
id: a,
|
|
3132
3132
|
label: o,
|
|
3133
|
-
showLabel:
|
|
3133
|
+
showLabel: f,
|
|
3134
3134
|
tooltipText: $,
|
|
3135
3135
|
required: v,
|
|
3136
3136
|
disabled: s
|
|
@@ -3174,7 +3174,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3174
3174
|
message: M,
|
|
3175
3175
|
hasValidationMessage: !!p,
|
|
3176
3176
|
validationMessageHasDecorators: !1,
|
|
3177
|
-
validationStatus:
|
|
3177
|
+
validationStatus: g
|
|
3178
3178
|
}
|
|
3179
3179
|
)
|
|
3180
3180
|
);
|
|
@@ -3195,58 +3195,58 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3195
3195
|
className: m,
|
|
3196
3196
|
...v
|
|
3197
3197
|
}) => {
|
|
3198
|
-
const
|
|
3198
|
+
const f = "pds-pricing-card", $ = `${f}-container`, p = a ? `${$}--with-list` : null, g = i ? `${f}--${i}` : null, _ = (z) => z.toLowerCase().replace(/\s/g, "-"), C = l && l.length > 1, [u, h] = Z(
|
|
3199
3199
|
_(l[0].label)
|
|
3200
3200
|
), [E, b] = Z(
|
|
3201
3201
|
t.label
|
|
3202
3202
|
);
|
|
3203
3203
|
let N = null, L = null;
|
|
3204
|
-
C || (N = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3204
|
+
C || (N = /* @__PURE__ */ e.createElement("div", { className: `${f}__pricing-data` }, l[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${f}__price-prefix` }, l[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${f}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${f}__price` }, l[0].price), l[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__details` }, l[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${f}__savings-line` }, l[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3205
3205
|
ft,
|
|
3206
3206
|
{
|
|
3207
|
-
className: `${
|
|
3207
|
+
className: `${f}__savings-badge`,
|
|
3208
3208
|
color: "neutral",
|
|
3209
3209
|
size: "sm",
|
|
3210
3210
|
label: l[0].savingsBadgeLabel
|
|
3211
3211
|
}
|
|
3212
|
-
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3212
|
+
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__savings-details` }, l[0].savingsDetails))), L = /* @__PURE__ */ e.createElement(
|
|
3213
3213
|
c2,
|
|
3214
3214
|
{
|
|
3215
|
-
className: `${
|
|
3215
|
+
className: `${f}__list`,
|
|
3216
3216
|
listLabel: l[0].listLabel,
|
|
3217
3217
|
listItems: l[0].listItems,
|
|
3218
3218
|
renderTypeLabels: !1
|
|
3219
3219
|
}
|
|
3220
3220
|
)), C && (N = l.map((z) => {
|
|
3221
|
-
const I = u === _(z.label) ? null : `${
|
|
3221
|
+
const I = u === _(z.label) ? null : `${f}__pricing-data--hide`;
|
|
3222
3222
|
return /* @__PURE__ */ e.createElement(
|
|
3223
3223
|
"div",
|
|
3224
3224
|
{
|
|
3225
3225
|
className: H([
|
|
3226
|
-
`${
|
|
3226
|
+
`${f}__pricing-data`,
|
|
3227
3227
|
I
|
|
3228
3228
|
]),
|
|
3229
3229
|
id: `data-${_(z.label)}`,
|
|
3230
3230
|
key: _(z.label)
|
|
3231
3231
|
},
|
|
3232
|
-
z.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3233
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3234
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3232
|
+
z.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${f}__price-prefix` }, z.pricePrefix),
|
|
3233
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${f}__price` }, z.price), z.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__details` }, z.priceDetails)),
|
|
3234
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__savings-line` }, z.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3235
3235
|
ft,
|
|
3236
3236
|
{
|
|
3237
|
-
className: `${
|
|
3237
|
+
className: `${f}__savings-badge`,
|
|
3238
3238
|
color: "neutral",
|
|
3239
3239
|
size: "sm",
|
|
3240
3240
|
label: z.savingsBadgeLabel
|
|
3241
3241
|
}
|
|
3242
|
-
), z.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3242
|
+
), z.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__savings-details` }, z.savingsDetails))
|
|
3243
3243
|
);
|
|
3244
3244
|
}), L = l.map((z) => {
|
|
3245
|
-
const I = u === _(z.label) ? null : `${
|
|
3245
|
+
const I = u === _(z.label) ? null : `${f}__list--hide`;
|
|
3246
3246
|
return /* @__PURE__ */ e.createElement(
|
|
3247
3247
|
c2,
|
|
3248
3248
|
{
|
|
3249
|
-
className: H([`${
|
|
3249
|
+
className: H([`${f}__list`, I]),
|
|
3250
3250
|
listLabel: z.listLabel,
|
|
3251
3251
|
listItems: z.listItems,
|
|
3252
3252
|
renderTypeLabels: !1,
|
|
@@ -3265,7 +3265,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3265
3265
|
g1,
|
|
3266
3266
|
{
|
|
3267
3267
|
id: "plan-select",
|
|
3268
|
-
className: `${
|
|
3268
|
+
className: `${f}__select`,
|
|
3269
3269
|
label: d,
|
|
3270
3270
|
showLabel: !1,
|
|
3271
3271
|
options: l.map((z) => ({
|
|
@@ -3321,14 +3321,14 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3321
3321
|
className: H([$, p, m]),
|
|
3322
3322
|
...v
|
|
3323
3323
|
},
|
|
3324
|
-
/* @__PURE__ */ e.createElement("div", { className: H([
|
|
3324
|
+
/* @__PURE__ */ e.createElement("div", { className: H([f, g]) }, i && /* @__PURE__ */ e.createElement(
|
|
3325
3325
|
Ut,
|
|
3326
3326
|
{
|
|
3327
|
-
className: `${
|
|
3327
|
+
className: `${f}__status-badge`,
|
|
3328
3328
|
label: n[i],
|
|
3329
3329
|
color: i === "mostPopular" ? "reverse" : "neutral"
|
|
3330
3330
|
}
|
|
3331
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3331
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${f}__main-content` }, r && /* @__PURE__ */ e.createElement("div", { className: `${f}__plan pds-overline-text` }, r), N, o && /* @__PURE__ */ e.createElement("div", { className: `${f}__description` }, o), w), /* @__PURE__ */ e.createElement("div", { className: `${f}__actions` }, t && M, t && s && k)),
|
|
3332
3332
|
a && L
|
|
3333
3333
|
);
|
|
3334
3334
|
}, Ks = ({
|
|
@@ -3345,7 +3345,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3345
3345
|
const i = "pds-site-card";
|
|
3346
3346
|
let m, v;
|
|
3347
3347
|
l === "active" && (m = "Active", v = "success"), l === "frozen" && (m = "Frozen", v = "frozen"), l === "restricted" && (m = "Restricted", v = "critical");
|
|
3348
|
-
const
|
|
3348
|
+
const f = /* @__PURE__ */ e.createElement(
|
|
3349
3349
|
Ut,
|
|
3350
3350
|
{
|
|
3351
3351
|
label: m,
|
|
@@ -3360,7 +3360,7 @@ const xt = 500, l1 = 700, He = ({
|
|
|
3360
3360
|
level: s,
|
|
3361
3361
|
text: o
|
|
3362
3362
|
}
|
|
3363
|
-
),
|
|
3363
|
+
), f), /* @__PURE__ */ e.createElement("div", { className: `${i}__plan` }, r))), p = fe(c) ? Oe(
|
|
3364
3364
|
c,
|
|
3365
3365
|
Object.assign({}, c.props, {
|
|
3366
3366
|
className: `${i}__link`,
|
|
@@ -3911,7 +3911,7 @@ var z2 = { exports: {} };
|
|
|
3911
3911
|
delete h.rest;
|
|
3912
3912
|
}
|
|
3913
3913
|
var N = new v();
|
|
3914
|
-
return
|
|
3914
|
+
return f(N, N.head, u), m(u, N, h, N.head, 0), p(N);
|
|
3915
3915
|
},
|
|
3916
3916
|
/**
|
|
3917
3917
|
* @namespace
|
|
@@ -4025,9 +4025,9 @@ var z2 = { exports: {} };
|
|
|
4025
4025
|
var V = j.index, A = j[0], G = X.slice(0, V), Y = X.slice(V + A.length), le = K + X.length;
|
|
4026
4026
|
L && le > L.reach && (L.reach = le);
|
|
4027
4027
|
var ce = F.prev;
|
|
4028
|
-
G && (ce =
|
|
4028
|
+
G && (ce = f(h, ce, G), K += G.length), $(h, ce, U);
|
|
4029
4029
|
var pe = new d(y, z ? n.tokenize(A, z) : A, S, A);
|
|
4030
|
-
if (F =
|
|
4030
|
+
if (F = f(h, ce, pe), Y && f(h, F, Y), U > 1) {
|
|
4031
4031
|
var ie = {
|
|
4032
4032
|
cause: y + "," + M,
|
|
4033
4033
|
reach: le
|
|
@@ -4043,7 +4043,7 @@ var z2 = { exports: {} };
|
|
|
4043
4043
|
var u = { value: null, prev: null, next: null }, h = { value: null, prev: u, next: null };
|
|
4044
4044
|
u.next = h, this.head = u, this.tail = h, this.length = 0;
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4046
|
+
function f(u, h, E) {
|
|
4047
4047
|
var b = h.next, N = { value: E, prev: h, next: b };
|
|
4048
4048
|
return h.next = N, b.prev = N, u.length++, N;
|
|
4049
4049
|
}
|
|
@@ -4062,14 +4062,14 @@ var z2 = { exports: {} };
|
|
|
4062
4062
|
var h = JSON.parse(u.data), E = h.language, b = h.code, N = h.immediateClose;
|
|
4063
4063
|
c.postMessage(n.highlight(b, n.languages[E], E)), N && c.close();
|
|
4064
4064
|
}, !1)), n;
|
|
4065
|
-
var
|
|
4066
|
-
|
|
4065
|
+
var g = n.util.currentScript();
|
|
4066
|
+
g && (n.filename = g.src, g.hasAttribute("data-manual") && (n.manual = !0));
|
|
4067
4067
|
function _() {
|
|
4068
4068
|
n.manual || n.highlightAll();
|
|
4069
4069
|
}
|
|
4070
4070
|
if (!n.manual) {
|
|
4071
4071
|
var C = document.readyState;
|
|
4072
|
-
C === "loading" || C === "interactive" &&
|
|
4072
|
+
C === "loading" || C === "interactive" && g && g.defer ? document.addEventListener("DOMContentLoaded", _) : window.requestAnimationFrame ? window.requestAnimationFrame(_) : window.setTimeout(_, 16);
|
|
4073
4073
|
}
|
|
4074
4074
|
return n;
|
|
4075
4075
|
}(s);
|
|
@@ -4284,14 +4284,14 @@ const E1 = /* @__PURE__ */ C1(_1), v1 = {
|
|
|
4284
4284
|
className: n,
|
|
4285
4285
|
...d
|
|
4286
4286
|
}) => {
|
|
4287
|
-
const i = "pds-skeleton", m = `${i}--${a}`, v = s ? `pds-pulse pds-pulse--${t}` : `${i}--${t}`,
|
|
4288
|
-
let
|
|
4287
|
+
const i = "pds-skeleton", m = `${i}--${a}`, v = s ? `pds-pulse pds-pulse--${t}` : `${i}--${t}`, f = ["text-block", "code-block", "code-block-prefix"], $ = c?.height ? typeof c.height == "number" ? `${c.height}rem` : `${o2[`SPACING_${c.height.toUpperCase()}`]}rem` : "1rem", p = c?.width ? typeof c.width == "number" ? `${c.width}rem` : `${o2[`SPACING_${c.width.toUpperCase()}`]}rem` : "100%";
|
|
4288
|
+
let g = {
|
|
4289
4289
|
height: $,
|
|
4290
4290
|
width: p
|
|
4291
4291
|
};
|
|
4292
|
-
a === "circular" && (
|
|
4293
|
-
...
|
|
4294
|
-
width:
|
|
4292
|
+
a === "circular" && (g = {
|
|
4293
|
+
...g,
|
|
4294
|
+
width: g.height
|
|
4295
4295
|
});
|
|
4296
4296
|
const _ = /* @__PURE__ */ e.createElement(
|
|
4297
4297
|
"div",
|
|
@@ -4302,7 +4302,7 @@ const E1 = /* @__PURE__ */ C1(_1), v1 = {
|
|
|
4302
4302
|
m,
|
|
4303
4303
|
n ?? ""
|
|
4304
4304
|
]),
|
|
4305
|
-
style:
|
|
4305
|
+
style: g,
|
|
4306
4306
|
...d
|
|
4307
4307
|
}
|
|
4308
4308
|
), h = Math.max(1, Math.min(r, a === "code-block" || a === "code-block-prefix" ? 15 : 5));
|
|
@@ -4378,7 +4378,7 @@ const E1 = /* @__PURE__ */ C1(_1), v1 = {
|
|
|
4378
4378
|
)
|
|
4379
4379
|
))
|
|
4380
4380
|
);
|
|
4381
|
-
return
|
|
4381
|
+
return f.includes(a) ? w : _;
|
|
4382
4382
|
};
|
|
4383
4383
|
(function(t) {
|
|
4384
4384
|
var s = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", a = {
|
|
@@ -4654,10 +4654,10 @@ const Xs = ({
|
|
|
4654
4654
|
loadingLineCount: i = 1,
|
|
4655
4655
|
maxHeight: m,
|
|
4656
4656
|
promptSymbol: v = "$",
|
|
4657
|
-
renderAsLegacy:
|
|
4657
|
+
renderAsLegacy: f = !1,
|
|
4658
4658
|
shouldWrap: $ = !1,
|
|
4659
4659
|
className: p,
|
|
4660
|
-
...
|
|
4660
|
+
...g
|
|
4661
4661
|
}) => {
|
|
4662
4662
|
const _ = "pds-code-block", C = `${_}--${s}`, u = $ ? `${_}__line-wrapped` : "", h = {};
|
|
4663
4663
|
l && (h.height = `${l}rem`), m && (h.maxHeight = `${m}rem`);
|
|
@@ -4688,14 +4688,14 @@ const Xs = ({
|
|
|
4688
4688
|
dangerouslySetInnerHTML: { __html: D }
|
|
4689
4689
|
}
|
|
4690
4690
|
)));
|
|
4691
|
-
if (
|
|
4691
|
+
if (f) {
|
|
4692
4692
|
const I = y(t);
|
|
4693
4693
|
return /* @__PURE__ */ e.createElement(
|
|
4694
4694
|
"div",
|
|
4695
4695
|
{
|
|
4696
4696
|
className: H([_, C, p ?? ""]),
|
|
4697
4697
|
style: h,
|
|
4698
|
-
...
|
|
4698
|
+
...g
|
|
4699
4699
|
},
|
|
4700
4700
|
n ? L : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("pre", { className: `${_}__code`, tabIndex: 0 }, o || r ? o ? /* @__PURE__ */ e.createElement(e.Fragment, null, w(t)) : /* @__PURE__ */ e.createElement(e.Fragment, null, M(t)) : /* @__PURE__ */ e.createElement(
|
|
4701
4701
|
"div",
|
|
@@ -4719,7 +4719,7 @@ const Xs = ({
|
|
|
4719
4719
|
{
|
|
4720
4720
|
className: H([_, C, p ?? ""]),
|
|
4721
4721
|
style: h,
|
|
4722
|
-
...
|
|
4722
|
+
...g
|
|
4723
4723
|
},
|
|
4724
4724
|
n ? L : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4725
4725
|
it,
|
|
@@ -4902,10 +4902,10 @@ const Xs = ({
|
|
|
4902
4902
|
className: m,
|
|
4903
4903
|
...v
|
|
4904
4904
|
}) => {
|
|
4905
|
-
let
|
|
4905
|
+
let f = !1;
|
|
4906
4906
|
const $ = ge(be);
|
|
4907
|
-
$ && (
|
|
4908
|
-
const p = "pds-horizontal-empty-state",
|
|
4907
|
+
$ && (f = $.isMobile);
|
|
4908
|
+
const p = "pds-horizontal-empty-state", g = `${p}--${t}`, _ = f ? `${p}--isMobile` : null, C = c ? `${p}--panel` : null, u = n ? `${p}--video` : null, h = {
|
|
4909
4909
|
width: d,
|
|
4910
4910
|
marginLeft: i
|
|
4911
4911
|
};
|
|
@@ -4916,7 +4916,7 @@ const Xs = ({
|
|
|
4916
4916
|
{
|
|
4917
4917
|
className: H([
|
|
4918
4918
|
p,
|
|
4919
|
-
|
|
4919
|
+
g,
|
|
4920
4920
|
_,
|
|
4921
4921
|
C,
|
|
4922
4922
|
u,
|
|
@@ -4924,7 +4924,7 @@ const Xs = ({
|
|
|
4924
4924
|
]),
|
|
4925
4925
|
...v
|
|
4926
4926
|
},
|
|
4927
|
-
|
|
4927
|
+
f && n && E,
|
|
4928
4928
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
4929
4929
|
je,
|
|
4930
4930
|
{
|
|
@@ -4934,8 +4934,8 @@ const Xs = ({
|
|
|
4934
4934
|
},
|
|
4935
4935
|
o
|
|
4936
4936
|
), l && l, s && /* @__PURE__ */ e.createElement("div", { className: `${p}__cta` }, s)),
|
|
4937
|
-
!
|
|
4938
|
-
!
|
|
4937
|
+
!f && a && !n && /* @__PURE__ */ e.createElement("div", { className: `${p}__media`, style: h }, typeof a == "string" ? /* @__PURE__ */ e.createElement("img", { className: `${p}__image`, src: a, alt: "" }) : a),
|
|
4938
|
+
!f && n && E
|
|
4939
4939
|
);
|
|
4940
4940
|
}, tn = ({
|
|
4941
4941
|
ctaRegion: t,
|
|
@@ -5036,8 +5036,8 @@ const Xs = ({
|
|
|
5036
5036
|
...o
|
|
5037
5037
|
}) => {
|
|
5038
5038
|
const r = "pds-flow-steps", l = `${r}--${t}`, n = s === "horizontal" ? `${r}--horizontal` : "", d = a.map(({ header: i, content: m }, v) => {
|
|
5039
|
-
const
|
|
5040
|
-
return /* @__PURE__ */ e.createElement("li", { key: v, className:
|
|
5039
|
+
const f = /* @__PURE__ */ e.createElement("div", { className: `${r}__number` }, /* @__PURE__ */ e.createElement("span", null, v + 1)), $ = /* @__PURE__ */ e.createElement("div", { className: `${r}__header` }, i), p = m ? /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, m) : null, g = `${r}__step`;
|
|
5040
|
+
return /* @__PURE__ */ e.createElement("li", { key: v, className: g }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, f, /* @__PURE__ */ e.createElement("div", { className: `${r}__content-group` }, $, p)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${r}__header-group` }, f, $), p));
|
|
5041
5041
|
});
|
|
5042
5042
|
return /* @__PURE__ */ e.createElement(
|
|
5043
5043
|
"ol",
|
|
@@ -5099,14 +5099,14 @@ const Xs = ({
|
|
|
5099
5099
|
className: o,
|
|
5100
5100
|
...r
|
|
5101
5101
|
}) => {
|
|
5102
|
-
const l = "pds-site-footer", n = a ? `${l}--border` : null, d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), m = c.includes("privacy"), v = c.includes("dataSubjectRequest"),
|
|
5102
|
+
const l = "pds-site-footer", n = a ? `${l}--border` : null, d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), m = c.includes("privacy"), v = c.includes("dataSubjectRequest"), f = c.includes("cookiePolicy"), $ = c.includes("termsOfUse"), p = c.includes("acceptableUse"), g = c.includes("accessibilityStatement");
|
|
5103
5103
|
return /* @__PURE__ */ e.createElement(
|
|
5104
5104
|
"footer",
|
|
5105
5105
|
{
|
|
5106
5106
|
className: H([l, n, o ?? ""]),
|
|
5107
5107
|
...r
|
|
5108
5108
|
},
|
|
5109
|
-
/* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", i, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
5109
|
+
/* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", i, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), f && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), $ && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), p && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), g && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
5110
5110
|
);
|
|
5111
5111
|
}, Y1 = Ze(
|
|
5112
5112
|
({
|
|
@@ -5122,10 +5122,10 @@ const Xs = ({
|
|
|
5122
5122
|
name: i,
|
|
5123
5123
|
nestingLevel: m = 0,
|
|
5124
5124
|
onBlur: v,
|
|
5125
|
-
onChange:
|
|
5125
|
+
onChange: f,
|
|
5126
5126
|
onFocus: $,
|
|
5127
5127
|
required: p,
|
|
5128
|
-
showLabel:
|
|
5128
|
+
showLabel: g = !0,
|
|
5129
5129
|
size: _ = "M",
|
|
5130
5130
|
validationMessage: C,
|
|
5131
5131
|
validationStatus: u,
|
|
@@ -5136,7 +5136,7 @@ const Xs = ({
|
|
|
5136
5136
|
const L = l ? { width: `${l / 16}rem` } : null, y = "pds-checkbox", w = a ? Q.disabled : null, M = u === "error" ? Q.error : null, k = m > 0 ? `${y}--indent-${m}` : null, z = p && !a ? Q.required : null, R = _ === "S" ? `${y}--sm` : null, I = u === "success" ? Q.success : null, S = C || d, D = typeof t < "u", B = typeof s < "u", [F, K] = Z(
|
|
5137
5137
|
B ? s : !1
|
|
5138
5138
|
), X = t || F, U = (V) => {
|
|
5139
|
-
D || K(V.target.checked),
|
|
5139
|
+
D || K(V.target.checked), f && f(V);
|
|
5140
5140
|
}, j = `${y}__box`, q = o ? null : X ? `${j}--checked` : null, T = o ? `${j}--indeterminate` : null, x = Bt(() => {
|
|
5141
5141
|
if (o)
|
|
5142
5142
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5207,7 +5207,7 @@ const Xs = ({
|
|
|
5207
5207
|
{
|
|
5208
5208
|
className: H([
|
|
5209
5209
|
`${y}__label-text`,
|
|
5210
|
-
|
|
5210
|
+
g ? "" : "visually-hidden"
|
|
5211
5211
|
])
|
|
5212
5212
|
},
|
|
5213
5213
|
n,
|
|
@@ -5239,25 +5239,25 @@ const Xs = ({
|
|
|
5239
5239
|
tooltipText: i = null,
|
|
5240
5240
|
validationMessage: m,
|
|
5241
5241
|
validationStatus: v,
|
|
5242
|
-
className:
|
|
5242
|
+
className: f,
|
|
5243
5243
|
...$
|
|
5244
5244
|
}) => {
|
|
5245
|
-
const p = o ? { width: `${o / 16}rem` } : null,
|
|
5245
|
+
const p = o ? { width: `${o / 16}rem` } : null, g = "pds-checkbox-group", _ = s ? Q.disabled : null, C = n && !s ? Q.required : null, u = v === "error" ? Q.error : null, h = v === "success" ? Q.success : null, E = m || l;
|
|
5246
5246
|
return /* @__PURE__ */ e.createElement(
|
|
5247
5247
|
"div",
|
|
5248
5248
|
{
|
|
5249
5249
|
className: [
|
|
5250
|
-
|
|
5250
|
+
g,
|
|
5251
5251
|
_,
|
|
5252
5252
|
C,
|
|
5253
5253
|
u,
|
|
5254
5254
|
h,
|
|
5255
|
-
|
|
5255
|
+
f ?? ""
|
|
5256
5256
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5257
5257
|
style: o ? p : null,
|
|
5258
5258
|
...$
|
|
5259
5259
|
},
|
|
5260
|
-
/* @__PURE__ */ e.createElement("fieldset", { className: `${
|
|
5260
|
+
/* @__PURE__ */ e.createElement("fieldset", { className: `${g}__fieldset`, id: c, ...a }, /* @__PURE__ */ e.createElement(
|
|
5261
5261
|
Re,
|
|
5262
5262
|
{
|
|
5263
5263
|
disabled: s,
|
|
@@ -5268,7 +5268,7 @@ const Xs = ({
|
|
|
5268
5268
|
showLabel: d,
|
|
5269
5269
|
tooltipText: i
|
|
5270
5270
|
}
|
|
5271
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5271
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${g}__options` }, t)),
|
|
5272
5272
|
E && /* @__PURE__ */ e.createElement(
|
|
5273
5273
|
Te,
|
|
5274
5274
|
{
|
|
@@ -5293,12 +5293,12 @@ const Xs = ({
|
|
|
5293
5293
|
required: i = !1,
|
|
5294
5294
|
showLabel: m = !0,
|
|
5295
5295
|
tooltipText: v = null,
|
|
5296
|
-
validationMessage:
|
|
5296
|
+
validationMessage: f,
|
|
5297
5297
|
validationStatus: $,
|
|
5298
5298
|
className: p,
|
|
5299
|
-
...
|
|
5299
|
+
...g
|
|
5300
5300
|
}) => {
|
|
5301
|
-
const _ = c ? { width: `${c / 16}rem` } : null, C = "pds-checkbox-group", u = t ? Q.disabled : null, h = i && !t ? Q.required : null, E = $ === "error" ? Q.error : null, b = $ === "success" ? Q.success : null, N =
|
|
5301
|
+
const _ = c ? { width: `${c / 16}rem` } : null, C = "pds-checkbox-group", u = t ? Q.disabled : null, h = i && !t ? Q.required : null, E = $ === "error" ? Q.error : null, b = $ === "success" ? Q.success : null, N = f || r;
|
|
5302
5302
|
d.map((z) => {
|
|
5303
5303
|
z.id || (z.id = z.value);
|
|
5304
5304
|
});
|
|
@@ -5330,7 +5330,7 @@ const Xs = ({
|
|
|
5330
5330
|
p ?? ""
|
|
5331
5331
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5332
5332
|
style: c ? _ : null,
|
|
5333
|
-
...
|
|
5333
|
+
...g
|
|
5334
5334
|
},
|
|
5335
5335
|
/* @__PURE__ */ e.createElement("fieldset", { className: `${C}__fieldset`, id: a, ...s }, /* @__PURE__ */ e.createElement(
|
|
5336
5336
|
Re,
|
|
@@ -5363,7 +5363,7 @@ const Xs = ({
|
|
|
5363
5363
|
{
|
|
5364
5364
|
id: a,
|
|
5365
5365
|
message: N,
|
|
5366
|
-
hasValidationMessage: !!
|
|
5366
|
+
hasValidationMessage: !!f,
|
|
5367
5367
|
validationMessageHasDecorators: !0,
|
|
5368
5368
|
validationStatus: $
|
|
5369
5369
|
}
|
|
@@ -5388,10 +5388,10 @@ const Xs = ({
|
|
|
5388
5388
|
triggerButton: "Toggle dropdown menu"
|
|
5389
5389
|
},
|
|
5390
5390
|
loadingText: v = "Loading results...",
|
|
5391
|
-
message:
|
|
5391
|
+
message: f,
|
|
5392
5392
|
noResultsText: $ = "No results found",
|
|
5393
5393
|
onChange: p,
|
|
5394
|
-
onBlur:
|
|
5394
|
+
onBlur: g,
|
|
5395
5395
|
onClear: _,
|
|
5396
5396
|
onFocus: C,
|
|
5397
5397
|
onOptionSelect: u,
|
|
@@ -5409,7 +5409,7 @@ const Xs = ({
|
|
|
5409
5409
|
const I = Ke(n), S = "pds-combobox", D = s ? Q.disabled : null, B = b && !s ? Q.required : null, F = M === "error" ? Q.error : null, K = M === "success" ? Q.success : null;
|
|
5410
5410
|
let X = null;
|
|
5411
5411
|
o && (X = "search"), M === "error" && (X = "error"), M === "success" && (X = "success");
|
|
5412
|
-
const U = w ||
|
|
5412
|
+
const U = w || f, j = typeof y < "u", q = typeof t < "u", T = (W) => {
|
|
5413
5413
|
const te = h.find((ae) => ae.value === W);
|
|
5414
5414
|
return te ? te.label : "";
|
|
5415
5415
|
}, [x, V] = Z(!1), [A, G] = Z(null), [Y, le] = Z(
|
|
@@ -5447,7 +5447,7 @@ const Xs = ({
|
|
|
5447
5447
|
let te = W.target.value;
|
|
5448
5448
|
p && p(W), j || (te.length > 0 && (te = te.trimStart()), le(te)), te ? (G(null), V(!0)) : V(!1);
|
|
5449
5449
|
}, _e = (W) => {
|
|
5450
|
-
|
|
5450
|
+
g && g(W);
|
|
5451
5451
|
}, Ne = (W) => {
|
|
5452
5452
|
C && C(W);
|
|
5453
5453
|
}, we = (W) => {
|
|
@@ -5643,12 +5643,12 @@ const Xs = ({
|
|
|
5643
5643
|
onChange: i,
|
|
5644
5644
|
options: m,
|
|
5645
5645
|
placeholder: v = "Filter",
|
|
5646
|
-
required:
|
|
5646
|
+
required: f = !1,
|
|
5647
5647
|
showLabel: $ = !0,
|
|
5648
5648
|
className: p,
|
|
5649
|
-
...
|
|
5649
|
+
...g
|
|
5650
5650
|
}) => {
|
|
5651
|
-
const _ = Ke(c), C = "pds-combobox-multi", u = t ? Q.disabled : null, h =
|
|
5651
|
+
const _ = Ke(c), C = "pds-combobox-multi", u = t ? Q.disabled : null, h = f && !t ? Q.required : null, [E, b] = Z(""), [N, L] = Z(a), [y, w] = Z(
|
|
5652
5652
|
null
|
|
5653
5653
|
), M = _2(
|
|
5654
5654
|
() => J1(m, N, E),
|
|
@@ -5745,7 +5745,7 @@ const Xs = ({
|
|
|
5745
5745
|
p ?? ""
|
|
5746
5746
|
]),
|
|
5747
5747
|
style: c ? _ : null,
|
|
5748
|
-
...
|
|
5748
|
+
...g
|
|
5749
5749
|
},
|
|
5750
5750
|
/* @__PURE__ */ e.createElement(
|
|
5751
5751
|
Re,
|
|
@@ -5753,7 +5753,7 @@ const Xs = ({
|
|
|
5753
5753
|
id: s,
|
|
5754
5754
|
label: r,
|
|
5755
5755
|
showLabel: $,
|
|
5756
|
-
required:
|
|
5756
|
+
required: f,
|
|
5757
5757
|
disabled: t
|
|
5758
5758
|
}
|
|
5759
5759
|
),
|
|
@@ -5761,7 +5761,7 @@ const Xs = ({
|
|
|
5761
5761
|
"div",
|
|
5762
5762
|
{
|
|
5763
5763
|
"aria-disabled": t ? !0 : null,
|
|
5764
|
-
"aria-required":
|
|
5764
|
+
"aria-required": f ? !0 : null,
|
|
5765
5765
|
className: `${C}__input-wrapper`,
|
|
5766
5766
|
tabIndex: 0,
|
|
5767
5767
|
onKeyDown: q
|
|
@@ -5860,10 +5860,10 @@ const Xs = ({
|
|
|
5860
5860
|
multiple: i = !1,
|
|
5861
5861
|
onClear: m,
|
|
5862
5862
|
onFileChange: v,
|
|
5863
|
-
required:
|
|
5863
|
+
required: f = !1,
|
|
5864
5864
|
showFullPath: $,
|
|
5865
5865
|
showLabel: p = !0,
|
|
5866
|
-
tooltipText:
|
|
5866
|
+
tooltipText: g = null,
|
|
5867
5867
|
validationMessage: _,
|
|
5868
5868
|
validationStatus: C,
|
|
5869
5869
|
className: u,
|
|
@@ -5871,7 +5871,7 @@ const Xs = ({
|
|
|
5871
5871
|
}, E) => {
|
|
5872
5872
|
const [b, N] = Z(!1), [L, y] = Z(
|
|
5873
5873
|
!!(Et && s)
|
|
5874
|
-
), w = Ke(l), M = "pds-file-upload", k = a ? Q.disabled : null, z =
|
|
5874
|
+
), w = Ke(l), M = "pds-file-upload", k = a ? Q.disabled : null, z = f && !a ? Q.required : null, R = C === "error" ? Q.error : null, I = C === "success" ? Q.success : null, S = L ? `${M}--safari-default` : null;
|
|
5875
5875
|
let D = null;
|
|
5876
5876
|
C === "error" && (D = "error"), C === "success" && (D = "success");
|
|
5877
5877
|
const B = _ || d, F = s ? [s] : null, K = s ? s.split("/").pop() : null, X = $ ? s : K, U = s ? new File(F, X) : null;
|
|
@@ -5926,8 +5926,8 @@ const Xs = ({
|
|
|
5926
5926
|
isPseudoLabel: !0,
|
|
5927
5927
|
label: c,
|
|
5928
5928
|
showLabel: p,
|
|
5929
|
-
tooltipText:
|
|
5930
|
-
required:
|
|
5929
|
+
tooltipText: g,
|
|
5930
|
+
required: f,
|
|
5931
5931
|
disabled: a
|
|
5932
5932
|
}
|
|
5933
5933
|
),
|
|
@@ -5949,7 +5949,7 @@ const Xs = ({
|
|
|
5949
5949
|
accept: t || null,
|
|
5950
5950
|
disabled: a,
|
|
5951
5951
|
multiple: i,
|
|
5952
|
-
required:
|
|
5952
|
+
required: f,
|
|
5953
5953
|
onChange: q,
|
|
5954
5954
|
"aria-invalid": C === "error" ? !0 : null,
|
|
5955
5955
|
"aria-describedby": B ? `${o}__message` : null,
|
|
@@ -6013,15 +6013,15 @@ const Xs = ({
|
|
|
6013
6013
|
onValueChange: i,
|
|
6014
6014
|
options: m,
|
|
6015
6015
|
required: v = !1,
|
|
6016
|
-
showLabel:
|
|
6016
|
+
showLabel: f = !0,
|
|
6017
6017
|
tooltipText: $ = null,
|
|
6018
6018
|
validationMessage: p,
|
|
6019
|
-
validationStatus:
|
|
6019
|
+
validationStatus: g,
|
|
6020
6020
|
value: _,
|
|
6021
6021
|
className: C,
|
|
6022
6022
|
...u
|
|
6023
6023
|
}) => {
|
|
6024
|
-
const h = "pds-radio-group", E = s ? Q.disabled : null, b = v && !s ? Q.required : null, N =
|
|
6024
|
+
const h = "pds-radio-group", E = s ? Q.disabled : null, b = v && !s ? Q.required : null, N = g === "error" ? Q.error : null, L = g === "success" ? Q.success : null, y = typeof _ < "u", w = typeof t < "u", [M, k] = Z(
|
|
6025
6025
|
w ? t : ""
|
|
6026
6026
|
), z = p || l, R = (S) => {
|
|
6027
6027
|
y || k(S.target.value), d && d(S), i && i(S.target.value);
|
|
@@ -6050,7 +6050,7 @@ const Xs = ({
|
|
|
6050
6050
|
id: c,
|
|
6051
6051
|
isLegend: !0,
|
|
6052
6052
|
required: v,
|
|
6053
|
-
showLabel:
|
|
6053
|
+
showLabel: f,
|
|
6054
6054
|
tooltipText: $
|
|
6055
6055
|
}
|
|
6056
6056
|
), /* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, m.map((S, D) => /* @__PURE__ */ e.createElement(
|
|
@@ -6082,7 +6082,7 @@ const Xs = ({
|
|
|
6082
6082
|
message: z,
|
|
6083
6083
|
hasValidationMessage: !!p,
|
|
6084
6084
|
validationMessageHasDecorators: !0,
|
|
6085
|
-
validationStatus:
|
|
6085
|
+
validationStatus: g
|
|
6086
6086
|
}
|
|
6087
6087
|
)
|
|
6088
6088
|
);
|
|
@@ -6124,13 +6124,13 @@ const Xs = ({
|
|
|
6124
6124
|
offLabel: i = "Off",
|
|
6125
6125
|
onChange: m,
|
|
6126
6126
|
onLabel: v = "On",
|
|
6127
|
-
required:
|
|
6127
|
+
required: f = !1,
|
|
6128
6128
|
showLabel: $ = !0,
|
|
6129
6129
|
showStatusLabel: p = !0,
|
|
6130
|
-
className:
|
|
6130
|
+
className: g,
|
|
6131
6131
|
..._
|
|
6132
6132
|
}, C) => {
|
|
6133
|
-
const u = Ke(r), h = "pds-switch", E = a ? Q.disabled : null, b =
|
|
6133
|
+
const u = Ke(r), h = "pds-switch", E = a ? Q.disabled : null, b = f && !a ? Q.required : null, N = typeof t < "u", L = n == "below", y = n == "right", w = !N && s ? s : !1, [M, k] = Z(w), z = t || M ? v : i, R = (K) => {
|
|
6134
6134
|
N || k(K.target.checked), m && m(K);
|
|
6135
6135
|
}, I = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
6136
6136
|
"input",
|
|
@@ -6143,7 +6143,7 @@ const Xs = ({
|
|
|
6143
6143
|
className: "visually-hidden",
|
|
6144
6144
|
onChange: R,
|
|
6145
6145
|
disabled: a,
|
|
6146
|
-
required:
|
|
6146
|
+
required: f,
|
|
6147
6147
|
checked: t !== void 0 ? t : M,
|
|
6148
6148
|
"aria-describedby": d ? `${c}__message` : null,
|
|
6149
6149
|
...o
|
|
@@ -6154,7 +6154,7 @@ const Xs = ({
|
|
|
6154
6154
|
id: c,
|
|
6155
6155
|
label: l,
|
|
6156
6156
|
showLabel: $,
|
|
6157
|
-
required:
|
|
6157
|
+
required: f,
|
|
6158
6158
|
disabled: a,
|
|
6159
6159
|
className: H([
|
|
6160
6160
|
"pds-input-label--disable-click",
|
|
@@ -6191,7 +6191,7 @@ const Xs = ({
|
|
|
6191
6191
|
E,
|
|
6192
6192
|
b,
|
|
6193
6193
|
F,
|
|
6194
|
-
|
|
6194
|
+
g
|
|
6195
6195
|
]),
|
|
6196
6196
|
style: r ? u : null,
|
|
6197
6197
|
..._
|
|
@@ -6213,10 +6213,10 @@ const Xs = ({
|
|
|
6213
6213
|
onChange: i,
|
|
6214
6214
|
onFocus: m,
|
|
6215
6215
|
placeholder: v,
|
|
6216
|
-
readonly:
|
|
6216
|
+
readonly: f = !1,
|
|
6217
6217
|
required: $ = !1,
|
|
6218
6218
|
rows: p = 5,
|
|
6219
|
-
showLabel:
|
|
6219
|
+
showLabel: g,
|
|
6220
6220
|
textareaProps: _,
|
|
6221
6221
|
tooltipText: C = null,
|
|
6222
6222
|
translationStrings: u = {
|
|
@@ -6233,7 +6233,7 @@ const Xs = ({
|
|
|
6233
6233
|
className: N,
|
|
6234
6234
|
...L
|
|
6235
6235
|
}, y) => {
|
|
6236
|
-
const w = Ke(o), M = "pds-textarea", k = r ? "pds-is-resizable" : null, z = a ? Q.disabled : null, R = $ && !a ? Q.required : null, I = E === "error" ? Q.error : null, S = E === "success" ? Q.success : null, D =
|
|
6236
|
+
const w = Ke(o), M = "pds-textarea", k = r ? "pds-is-resizable" : null, z = a ? Q.disabled : null, R = $ && !a ? Q.required : null, I = E === "error" ? Q.error : null, S = E === "success" ? Q.success : null, D = f ? Q.readonly : null, B = h || n, F = b != null && i !== void 0, K = typeof s < "u", [X, U] = Z(
|
|
6237
6237
|
K ? s : ""
|
|
6238
6238
|
), j = b || X, q = (x) => {
|
|
6239
6239
|
F || U(x.target.value), i && i(x);
|
|
@@ -6261,7 +6261,7 @@ const Xs = ({
|
|
|
6261
6261
|
{
|
|
6262
6262
|
id: c,
|
|
6263
6263
|
label: l,
|
|
6264
|
-
showLabel:
|
|
6264
|
+
showLabel: g,
|
|
6265
6265
|
tooltipText: C,
|
|
6266
6266
|
required: $,
|
|
6267
6267
|
disabled: a,
|
|
@@ -6285,7 +6285,7 @@ const Xs = ({
|
|
|
6285
6285
|
name: c,
|
|
6286
6286
|
placeholder: v,
|
|
6287
6287
|
required: $,
|
|
6288
|
-
readOnly:
|
|
6288
|
+
readOnly: f,
|
|
6289
6289
|
disabled: a,
|
|
6290
6290
|
value: F ? b : X,
|
|
6291
6291
|
rows: p,
|
|
@@ -6323,10 +6323,10 @@ const Xs = ({
|
|
|
6323
6323
|
inputWidth: i,
|
|
6324
6324
|
label: m,
|
|
6325
6325
|
message: v,
|
|
6326
|
-
onBlur:
|
|
6326
|
+
onBlur: f,
|
|
6327
6327
|
onChange: $,
|
|
6328
6328
|
onClear: p,
|
|
6329
|
-
onFocus:
|
|
6329
|
+
onFocus: g,
|
|
6330
6330
|
placeholder: _,
|
|
6331
6331
|
readonly: C = !1,
|
|
6332
6332
|
required: u = !1,
|
|
@@ -6363,8 +6363,8 @@ const Xs = ({
|
|
|
6363
6363
|
value: Ee
|
|
6364
6364
|
}
|
|
6365
6365
|
};
|
|
6366
|
-
|
|
6367
|
-
} else
|
|
6366
|
+
f && f(Me);
|
|
6367
|
+
} else f && f(re);
|
|
6368
6368
|
}, ce = (re) => {
|
|
6369
6369
|
if (l && y === "url") {
|
|
6370
6370
|
const Ee = s2(re.target.value), Me = {
|
|
@@ -6439,7 +6439,7 @@ const Xs = ({
|
|
|
6439
6439
|
autoComplete: y === "password" ? "off" : t,
|
|
6440
6440
|
onBlur: le,
|
|
6441
6441
|
onChange: ce,
|
|
6442
|
-
onFocus:
|
|
6442
|
+
onFocus: g,
|
|
6443
6443
|
"aria-invalid": M === "error" ? !0 : null,
|
|
6444
6444
|
"aria-describedby": T ? `${n}__message` : null,
|
|
6445
6445
|
...d
|
|
@@ -6545,7 +6545,7 @@ const Xs = ({
|
|
|
6545
6545
|
className: m,
|
|
6546
6546
|
...v
|
|
6547
6547
|
}) => {
|
|
6548
|
-
const
|
|
6548
|
+
const f = Se(s), $ = f.__unslotted, p = f.footer, g = "pds-modal", _ = d !== "md" ? `${g}--${d}` : null, C = c ? {
|
|
6549
6549
|
maxHeight: c,
|
|
6550
6550
|
paddingInlineEnd: "1rem",
|
|
6551
6551
|
marginInlineEnd: "-1rem",
|
|
@@ -6597,7 +6597,7 @@ const Xs = ({
|
|
|
6597
6597
|
ref: E.setFloating,
|
|
6598
6598
|
"aria-label": t || i,
|
|
6599
6599
|
...M(),
|
|
6600
|
-
className: H([
|
|
6600
|
+
className: H([g, _, m]),
|
|
6601
6601
|
style: {
|
|
6602
6602
|
...N,
|
|
6603
6603
|
...z,
|
|
@@ -6606,7 +6606,7 @@ const Xs = ({
|
|
|
6606
6606
|
},
|
|
6607
6607
|
...v
|
|
6608
6608
|
},
|
|
6609
|
-
r && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6609
|
+
r && /* @__PURE__ */ e.createElement("div", { className: `${g}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6610
6610
|
H2,
|
|
6611
6611
|
{
|
|
6612
6612
|
ariaLabel: a,
|
|
@@ -6614,9 +6614,9 @@ const Xs = ({
|
|
|
6614
6614
|
iconSize: "xl"
|
|
6615
6615
|
}
|
|
6616
6616
|
)),
|
|
6617
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
6618
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
6619
|
-
p && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6617
|
+
/* @__PURE__ */ e.createElement("div", { className: `${g}__title` }, i),
|
|
6618
|
+
/* @__PURE__ */ e.createElement("div", { className: `${g}__content`, style: C }, $),
|
|
6619
|
+
p && /* @__PURE__ */ e.createElement("div", { className: `${g}__footer` }, p)
|
|
6620
6620
|
))
|
|
6621
6621
|
));
|
|
6622
6622
|
}, Cn = ({
|
|
@@ -6728,7 +6728,7 @@ const Xs = ({
|
|
|
6728
6728
|
l && (r = l.isMobile);
|
|
6729
6729
|
const n = ne(null), d = "pds-button-nav", i = r ? `${d}--isMobile` : null, m = a !== "md" ? `${d}--${a}` : null;
|
|
6730
6730
|
se(() => {
|
|
6731
|
-
const
|
|
6731
|
+
const g = (_) => {
|
|
6732
6732
|
if (r) return;
|
|
6733
6733
|
const C = n.current;
|
|
6734
6734
|
if (!C) return;
|
|
@@ -6749,36 +6749,36 @@ const Xs = ({
|
|
|
6749
6749
|
}
|
|
6750
6750
|
}
|
|
6751
6751
|
};
|
|
6752
|
-
return document.addEventListener("keydown",
|
|
6753
|
-
document.removeEventListener("keydown",
|
|
6752
|
+
return document.addEventListener("keydown", g), () => {
|
|
6753
|
+
document.removeEventListener("keydown", g);
|
|
6754
6754
|
};
|
|
6755
6755
|
}, [r]);
|
|
6756
|
-
const v = ({ isActive:
|
|
6756
|
+
const v = ({ isActive: g, linkContent: _ }) => {
|
|
6757
6757
|
const C = `${d}__item`;
|
|
6758
6758
|
return /* @__PURE__ */ e.createElement(
|
|
6759
6759
|
"li",
|
|
6760
6760
|
{
|
|
6761
6761
|
className: H([
|
|
6762
6762
|
C,
|
|
6763
|
-
|
|
6763
|
+
g ? `${C}--active` : null
|
|
6764
6764
|
])
|
|
6765
6765
|
},
|
|
6766
6766
|
_
|
|
6767
6767
|
);
|
|
6768
|
-
},
|
|
6768
|
+
}, f = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu` }, s.map((g, _) => /* @__PURE__ */ e.createElement(
|
|
6769
6769
|
v,
|
|
6770
6770
|
{
|
|
6771
6771
|
key: _,
|
|
6772
|
-
linkContent:
|
|
6773
|
-
isActive: ve(
|
|
6772
|
+
linkContent: g.linkContent,
|
|
6773
|
+
isActive: ve(g)
|
|
6774
6774
|
}
|
|
6775
6775
|
))) : null, $ = [];
|
|
6776
|
-
s.map((
|
|
6777
|
-
|
|
6778
|
-
linkContent:
|
|
6776
|
+
s.map((g) => {
|
|
6777
|
+
g.linkContent && (ve(g) ? $.unshift({
|
|
6778
|
+
linkContent: g.linkContent,
|
|
6779
6779
|
isLink: !0
|
|
6780
6780
|
}) : $.push({
|
|
6781
|
-
linkContent:
|
|
6781
|
+
linkContent: g.linkContent,
|
|
6782
6782
|
isLink: !0
|
|
6783
6783
|
}));
|
|
6784
6784
|
});
|
|
@@ -6804,7 +6804,7 @@ const Xs = ({
|
|
|
6804
6804
|
]),
|
|
6805
6805
|
...o
|
|
6806
6806
|
},
|
|
6807
|
-
r ? p :
|
|
6807
|
+
r ? p : f
|
|
6808
6808
|
);
|
|
6809
6809
|
}, as = ({
|
|
6810
6810
|
destination: t = "main",
|
|
@@ -6834,25 +6834,25 @@ const Xs = ({
|
|
|
6834
6834
|
className: m,
|
|
6835
6835
|
...v
|
|
6836
6836
|
}) => {
|
|
6837
|
-
const { isMobile:
|
|
6837
|
+
const { isMobile: f, windowWidth: $ } = ge(be), [p, g] = Z(() => d !== void 0 ? d : $ > 1440), _ = ne(null), [C] = Ht(_), u = C.width;
|
|
6838
6838
|
se(() => {
|
|
6839
|
-
d !== void 0 &&
|
|
6839
|
+
d !== void 0 && g(d);
|
|
6840
6840
|
}, [d]), se(() => {
|
|
6841
6841
|
i(p);
|
|
6842
6842
|
}, [p, i]);
|
|
6843
6843
|
const h = {
|
|
6844
|
-
isSidebarExpanded:
|
|
6844
|
+
isSidebarExpanded: f ? !0 : p,
|
|
6845
6845
|
logoLinkContent: c,
|
|
6846
6846
|
navbarWidth: u,
|
|
6847
6847
|
isAdmin: a
|
|
6848
|
-
}, E = "pds-dashboard-global", b = a ? `${E}--isAdmin` : null, N =
|
|
6848
|
+
}, E = "pds-dashboard-global", b = a ? `${E}--isAdmin` : null, N = f ? `${E}--isMobile` : `${E}--notMobile`, L = f ? null : p ? `${E}--sidebarExpanded` : `${E}--sidebarCollapsed`, y = p ? `${r}rem` : `${o}rem`, w = {
|
|
6849
6849
|
width: y,
|
|
6850
6850
|
transition: "width 200ms ease-in-out"
|
|
6851
|
-
}, M =
|
|
6851
|
+
}, M = f ? {} : {
|
|
6852
6852
|
width: `calc(100% - ${y})`,
|
|
6853
6853
|
transition: "width 200ms ease-in-out"
|
|
6854
6854
|
}, k = () => {
|
|
6855
|
-
|
|
6855
|
+
g(!p);
|
|
6856
6856
|
}, z = Se(t), R = z.header, I = z.sidebar, S = z.main, D = z.footer, B = /* @__PURE__ */ e.createElement(e.Fragment, null, R, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar` }, I), /* @__PURE__ */ e.createElement("main", { id: "main", className: `${E}__main` }, S), D && /* @__PURE__ */ e.createElement("footer", { className: `${E}__footer` }, D)), F = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar`, style: w }, s && /* @__PURE__ */ e.createElement(
|
|
6857
6857
|
"button",
|
|
6858
6858
|
{
|
|
@@ -6885,7 +6885,7 @@ const Xs = ({
|
|
|
6885
6885
|
]),
|
|
6886
6886
|
...v
|
|
6887
6887
|
},
|
|
6888
|
-
|
|
6888
|
+
f ? B : F
|
|
6889
6889
|
));
|
|
6890
6890
|
}, We = "ease-out", m2 = 0, ls = ({
|
|
6891
6891
|
icon: t,
|
|
@@ -6916,16 +6916,16 @@ const Xs = ({
|
|
|
6916
6916
|
},
|
|
6917
6917
|
k.linkContent
|
|
6918
6918
|
))
|
|
6919
|
-
), [v,
|
|
6919
|
+
), [v, f] = Z(!1), { refs: $, floatingStyles: p, context: g } = ke({
|
|
6920
6920
|
placement: "right-start",
|
|
6921
6921
|
open: v,
|
|
6922
|
-
onOpenChange:
|
|
6922
|
+
onOpenChange: f,
|
|
6923
6923
|
middleware: [nt(12), at(), Ct()],
|
|
6924
6924
|
whileElementsMounted: Ae
|
|
6925
|
-
}), _ = ht(
|
|
6925
|
+
}), _ = ht(g, {
|
|
6926
6926
|
move: !1,
|
|
6927
6927
|
handleClose: qt()
|
|
6928
|
-
}), C = Wt(
|
|
6928
|
+
}), C = Wt(g), u = ze(g), h = xe(g, { role: "menu" }), { getReferenceProps: E, getFloatingProps: b } = Ve([
|
|
6929
6929
|
_,
|
|
6930
6930
|
C,
|
|
6931
6931
|
u,
|
|
@@ -7046,7 +7046,7 @@ const Xs = ({
|
|
|
7046
7046
|
className: c,
|
|
7047
7047
|
...o
|
|
7048
7048
|
}) => {
|
|
7049
|
-
const r = "pds-dropdown-menu", [l, n] = Z(!1), [d, i] = Z(null), m = Qt(s), v = m ? m.props.children : a,
|
|
7049
|
+
const r = "pds-dropdown-menu", [l, n] = Z(!1), [d, i] = Z(null), m = Qt(s), v = m ? m.props.children : a, f = /* @__PURE__ */ e.createElement(
|
|
7050
7050
|
O,
|
|
7051
7051
|
{
|
|
7052
7052
|
iconName: "check",
|
|
@@ -7066,7 +7066,7 @@ const Xs = ({
|
|
|
7066
7066
|
};
|
|
7067
7067
|
}
|
|
7068
7068
|
}, [l]);
|
|
7069
|
-
const
|
|
7069
|
+
const g = ({
|
|
7070
7070
|
item: I,
|
|
7071
7071
|
level: S
|
|
7072
7072
|
}) => {
|
|
@@ -7087,19 +7087,19 @@ const Xs = ({
|
|
|
7087
7087
|
}, _ = (I) => {
|
|
7088
7088
|
const S = [];
|
|
7089
7089
|
return I.forEach((D) => {
|
|
7090
|
-
D.links ? (S.push(
|
|
7091
|
-
B.links ? (S.push(
|
|
7090
|
+
D.links ? (S.push(g({ item: D, level: "top-level" })), D.links.forEach((B) => {
|
|
7091
|
+
B.links ? (S.push(g({ item: B, level: "second-level" })), B.links.forEach((F) => {
|
|
7092
7092
|
F.links && (S.push(
|
|
7093
|
-
|
|
7093
|
+
g({ item: F, level: "third-level" })
|
|
7094
7094
|
), F.links.forEach((K) => {
|
|
7095
7095
|
S.push(
|
|
7096
|
-
|
|
7096
|
+
g({ item: K, level: "fourth-level" })
|
|
7097
7097
|
);
|
|
7098
7098
|
})), S.push(
|
|
7099
|
-
|
|
7099
|
+
g({ item: F, level: "third-level" })
|
|
7100
7100
|
);
|
|
7101
|
-
})) : S.push(
|
|
7102
|
-
})) : S.push(
|
|
7101
|
+
})) : S.push(g({ item: B, level: "second-level" }));
|
|
7102
|
+
})) : S.push(g({ item: D, level: "top-level" }));
|
|
7103
7103
|
}), S;
|
|
7104
7104
|
}, { refs: C, context: u } = ke({
|
|
7105
7105
|
placement: "bottom-start",
|
|
@@ -7182,7 +7182,7 @@ const Xs = ({
|
|
|
7182
7182
|
...k()
|
|
7183
7183
|
},
|
|
7184
7184
|
I.linkContent,
|
|
7185
|
-
I.isActive === !0 &&
|
|
7185
|
+
I.isActive === !0 && f
|
|
7186
7186
|
))
|
|
7187
7187
|
));
|
|
7188
7188
|
}, cs = /* @__PURE__ */ e.createElement(
|
|
@@ -7499,7 +7499,7 @@ const Xs = ({
|
|
|
7499
7499
|
case "sub-brand-small":
|
|
7500
7500
|
i = Dt;
|
|
7501
7501
|
}
|
|
7502
|
-
const m = fe(a) && typeof a.props.children == "string" ? a.props.children : "", v = fe(a) ? a.type : null,
|
|
7502
|
+
const m = fe(a) && typeof a.props.children == "string" ? a.props.children : "", v = fe(a) ? a.type : null, f = fe(a) && v ? /* @__PURE__ */ e.createElement(
|
|
7503
7503
|
v,
|
|
7504
7504
|
{
|
|
7505
7505
|
...Object.assign({}, a.props, {
|
|
@@ -7519,7 +7519,7 @@ const Xs = ({
|
|
|
7519
7519
|
]),
|
|
7520
7520
|
...r
|
|
7521
7521
|
},
|
|
7522
|
-
a ?
|
|
7522
|
+
a ? f : i,
|
|
7523
7523
|
c && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, c))
|
|
7524
7524
|
);
|
|
7525
7525
|
}, vn = ({
|
|
@@ -7539,7 +7539,7 @@ const Xs = ({
|
|
|
7539
7539
|
const d = ge(kt);
|
|
7540
7540
|
let i = !0, m = null;
|
|
7541
7541
|
d && (i = d.isSidebarExpanded, m = d.logoLinkContent);
|
|
7542
|
-
const v = "pds-dashboard-nav",
|
|
7542
|
+
const v = "pds-dashboard-nav", f = i ? `${v}--expanded` : `${v}--collapsed`, $ = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu ${v}__menu--top-level` }, a.map((_, C) => /* @__PURE__ */ e.createElement(
|
|
7543
7543
|
ls,
|
|
7544
7544
|
{
|
|
7545
7545
|
key: C,
|
|
@@ -7558,7 +7558,7 @@ const Xs = ({
|
|
|
7558
7558
|
_.links,
|
|
7559
7559
|
_.icon
|
|
7560
7560
|
)
|
|
7561
|
-
})),
|
|
7561
|
+
})), g = /* @__PURE__ */ e.createElement(
|
|
7562
7562
|
zt,
|
|
7563
7563
|
{
|
|
7564
7564
|
menuItems: p,
|
|
@@ -7569,7 +7569,7 @@ const Xs = ({
|
|
|
7569
7569
|
"nav",
|
|
7570
7570
|
{
|
|
7571
7571
|
"aria-label": t,
|
|
7572
|
-
className: H([v,
|
|
7572
|
+
className: H([v, f, o]),
|
|
7573
7573
|
...r
|
|
7574
7574
|
},
|
|
7575
7575
|
!l && /* @__PURE__ */ e.createElement(
|
|
@@ -7580,7 +7580,7 @@ const Xs = ({
|
|
|
7580
7580
|
linkContent: m
|
|
7581
7581
|
}
|
|
7582
7582
|
),
|
|
7583
|
-
l ?
|
|
7583
|
+
l ? g : $
|
|
7584
7584
|
);
|
|
7585
7585
|
}, os = {
|
|
7586
7586
|
sandbox: "Sandbox",
|
|
@@ -7670,10 +7670,10 @@ const Xs = ({
|
|
|
7670
7670
|
placeholder: i = "Search sites",
|
|
7671
7671
|
siteList: m,
|
|
7672
7672
|
horizontalOffset: v = 0,
|
|
7673
|
-
className:
|
|
7673
|
+
className: f,
|
|
7674
7674
|
...$
|
|
7675
7675
|
}) => {
|
|
7676
|
-
const [p,
|
|
7676
|
+
const [p, g] = Z(!1), [_, C] = Z(null), u = ne(null);
|
|
7677
7677
|
let h = !1;
|
|
7678
7678
|
const E = ge(be);
|
|
7679
7679
|
E && (h = E.isMobile);
|
|
@@ -7687,22 +7687,22 @@ const Xs = ({
|
|
|
7687
7687
|
right: `${M + v}rem`,
|
|
7688
7688
|
width: `${z}rem`
|
|
7689
7689
|
}, I = "pds-dashboard-search", S = h ? `${I}--isMobile` : null, D = () => {
|
|
7690
|
-
|
|
7690
|
+
g(!0), setTimeout(() => {
|
|
7691
7691
|
u.current.querySelector("input").focus();
|
|
7692
7692
|
}, 500);
|
|
7693
7693
|
}, B = () => {
|
|
7694
7694
|
setTimeout(() => {
|
|
7695
|
-
|
|
7695
|
+
g(!1);
|
|
7696
7696
|
}, 150);
|
|
7697
7697
|
}, F = (q) => {
|
|
7698
7698
|
C(q.value), d && d(q);
|
|
7699
7699
|
};
|
|
7700
7700
|
se(() => {
|
|
7701
7701
|
const q = (x) => {
|
|
7702
|
-
u.current && !u.current.contains(x.target) &&
|
|
7702
|
+
u.current && !u.current.contains(x.target) && g(!1);
|
|
7703
7703
|
}, T = (x) => {
|
|
7704
7704
|
const V = u.current?.querySelector("input");
|
|
7705
|
-
x.key === "Tab" && p && V === document.activeElement &&
|
|
7705
|
+
x.key === "Tab" && p && V === document.activeElement && g(!1);
|
|
7706
7706
|
};
|
|
7707
7707
|
if (p)
|
|
7708
7708
|
return document.addEventListener("mousedown", q), document.addEventListener("keydown", T), () => {
|
|
@@ -7768,7 +7768,7 @@ const Xs = ({
|
|
|
7768
7768
|
return /* @__PURE__ */ e.createElement(
|
|
7769
7769
|
"div",
|
|
7770
7770
|
{
|
|
7771
|
-
className: H([I, S,
|
|
7771
|
+
className: H([I, S, f ?? ""]),
|
|
7772
7772
|
id: s,
|
|
7773
7773
|
style: h ? null : R,
|
|
7774
7774
|
onKeyDown: h ? null : (q) => {
|
|
@@ -7810,10 +7810,10 @@ const Xs = ({
|
|
|
7810
7810
|
className: m,
|
|
7811
7811
|
...v
|
|
7812
7812
|
}) => {
|
|
7813
|
-
const [
|
|
7813
|
+
const [f, $] = Z(!1);
|
|
7814
7814
|
let p = !1;
|
|
7815
|
-
const
|
|
7816
|
-
|
|
7815
|
+
const g = ge(be);
|
|
7816
|
+
g && (p = g.isMobile);
|
|
7817
7817
|
const _ = ge(kt);
|
|
7818
7818
|
_ && (l = _.logoLinkContent);
|
|
7819
7819
|
const C = "pds-navbar", u = c ? `${C}--noBorder` : "", h = s !== "default" ? `${C}--${s}` : "", E = p ? `${C}--isMobile` : `${C}--notMobile`, b = (U) => {
|
|
@@ -7830,32 +7830,32 @@ const Xs = ({
|
|
|
7830
7830
|
se(() => (window.addEventListener("keyup", b), () => {
|
|
7831
7831
|
window.removeEventListener("keyup", b);
|
|
7832
7832
|
}), []);
|
|
7833
|
-
const N = () => $(!
|
|
7833
|
+
const N = () => $(!f), L = Z2();
|
|
7834
7834
|
se(() => {
|
|
7835
7835
|
if (p && t) {
|
|
7836
7836
|
const U = N2(
|
|
7837
7837
|
document.querySelector(".pds-navbar__mobile")
|
|
7838
7838
|
), j = ["a", "button", "input", "select", "textarea"];
|
|
7839
|
-
U && (
|
|
7839
|
+
U && (f ? U.forEach((q) => {
|
|
7840
7840
|
j.includes(q.nodeName.toLowerCase()) && (q.tabIndex = 0);
|
|
7841
7841
|
}) : U.forEach((q) => {
|
|
7842
7842
|
j.includes(q.nodeName.toLowerCase()) && (q.tabIndex = -1);
|
|
7843
7843
|
}));
|
|
7844
7844
|
}
|
|
7845
|
-
}, [
|
|
7845
|
+
}, [f]);
|
|
7846
7846
|
const y = (U) => {
|
|
7847
7847
|
U.target.nodeName === "A" && $(!1);
|
|
7848
7848
|
};
|
|
7849
7849
|
se(() => {
|
|
7850
|
-
if (
|
|
7850
|
+
if (f) {
|
|
7851
7851
|
const U = document.querySelector(".pds-navbar__bar-mobile"), j = document.querySelector(".pds-navbar__mobile");
|
|
7852
7852
|
return U.addEventListener("click", y), j.addEventListener("click", y), () => {
|
|
7853
7853
|
U.removeEventListener("click", y), j.removeEventListener("click", y);
|
|
7854
7854
|
};
|
|
7855
7855
|
}
|
|
7856
|
-
}, [
|
|
7857
|
-
|
|
7858
|
-
}, [
|
|
7856
|
+
}, [f]), se(() => {
|
|
7857
|
+
f ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
7858
|
+
}, [f]);
|
|
7859
7859
|
const w = Se(t), M = w["items-left"], k = w["items-right"];
|
|
7860
7860
|
let z = "default";
|
|
7861
7861
|
(s === "reverse" || s === "reverse-transparent") && (z = "reverse");
|
|
@@ -7877,18 +7877,18 @@ const Xs = ({
|
|
|
7877
7877
|
"button",
|
|
7878
7878
|
{
|
|
7879
7879
|
className: `${C}__menu-toggle`,
|
|
7880
|
-
"aria-label":
|
|
7880
|
+
"aria-label": f ? i.closeMobileNav : i.openMobileNav,
|
|
7881
7881
|
onClick: N,
|
|
7882
7882
|
type: "button"
|
|
7883
7883
|
},
|
|
7884
|
-
/* @__PURE__ */ e.createElement(O, { iconName:
|
|
7884
|
+
/* @__PURE__ */ e.createElement(O, { iconName: f ? "xmark" : "bars", iconSize: "lg" })
|
|
7885
7885
|
), B = e.Children.toArray(t).sort((U, j) => {
|
|
7886
7886
|
const q = fe(U) && parseInt(U.props["data-mobile-order"], 10) || 1 / 0, T = fe(j) && parseInt(j.props["data-mobile-order"], 10) || 1 / 0;
|
|
7887
7887
|
return q - T;
|
|
7888
7888
|
}), F = /* @__PURE__ */ e.createElement(
|
|
7889
7889
|
"div",
|
|
7890
7890
|
{
|
|
7891
|
-
className:
|
|
7891
|
+
className: f ? `${C}__mobile ${C}__mobile--open` : `${C}__mobile ${C}__mobile--closed`,
|
|
7892
7892
|
ref: L
|
|
7893
7893
|
},
|
|
7894
7894
|
/* @__PURE__ */ e.createElement(dt, null, B)
|
|
@@ -7932,11 +7932,11 @@ const Xs = ({
|
|
|
7932
7932
|
open: c,
|
|
7933
7933
|
onOpenChange: o,
|
|
7934
7934
|
whileElementsMounted: Ae
|
|
7935
|
-
}),
|
|
7936
|
-
let
|
|
7937
|
-
d ?
|
|
7935
|
+
}), f = qe(v, { event: "mousedown" }), $ = ze(v), p = xe(v, { role: "menu" });
|
|
7936
|
+
let g;
|
|
7937
|
+
d ? g = ht(v, {
|
|
7938
7938
|
enabled: !1
|
|
7939
|
-
}) :
|
|
7939
|
+
}) : g = ht(v, {
|
|
7940
7940
|
handleClose: qt({
|
|
7941
7941
|
requireIntent: !1,
|
|
7942
7942
|
buffer: 10,
|
|
@@ -7947,8 +7947,8 @@ const Xs = ({
|
|
|
7947
7947
|
const { getReferenceProps: _, getFloatingProps: C } = Ve([
|
|
7948
7948
|
$,
|
|
7949
7949
|
p,
|
|
7950
|
-
|
|
7951
|
-
|
|
7950
|
+
f,
|
|
7951
|
+
g
|
|
7952
7952
|
]), u = (h) => !!(h.isActive || h.linkContent && h.linkContent.props.className && h.linkContent.props.className.includes("pds-isActive"));
|
|
7953
7953
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7954
7954
|
"button",
|
|
@@ -7985,7 +7985,7 @@ const Xs = ({
|
|
|
7985
7985
|
className: o,
|
|
7986
7986
|
...r
|
|
7987
7987
|
}) => {
|
|
7988
|
-
const [l, n] = Z(1025), [d, i] = Z(null), [m, v] = Z(-1), [
|
|
7988
|
+
const [l, n] = Z(1025), [d, i] = Z(null), [m, v] = Z(-1), [f, $] = Z(null), [p, g] = Z({
|
|
7989
7989
|
container: null,
|
|
7990
7990
|
containerChildren: []
|
|
7991
7991
|
});
|
|
@@ -7998,9 +7998,9 @@ const Xs = ({
|
|
|
7998
7998
|
se(() => {
|
|
7999
7999
|
p.containerChildren[d] && (p.containerChildren[d].classList.contains(
|
|
8000
8000
|
"pds-nav-menu__dropdown--separator"
|
|
8001
|
-
) &&
|
|
8001
|
+
) && f == "down" ? i(d + 1) : p.containerChildren[d].classList.contains(
|
|
8002
8002
|
"pds-nav-menu__dropdown--separator"
|
|
8003
|
-
) &&
|
|
8003
|
+
) && f == "up" ? i(d - 1) : p.containerChildren[d].children[0].focus());
|
|
8004
8004
|
}, [d]), se(() => {
|
|
8005
8005
|
m != -1 && (b.current[m].children[0].blur(), b.current[m].children[0].focus({
|
|
8006
8006
|
focusVisible: !0
|
|
@@ -8017,7 +8017,7 @@ const Xs = ({
|
|
|
8017
8017
|
ArrowDown: () => {
|
|
8018
8018
|
$("down");
|
|
8019
8019
|
const B = w.target.parentNode.children[1], F = w.target?.parentNode.children[1]?.children || w.target?.parentNode.parentNode.children[1]?.children;
|
|
8020
|
-
p.container != B && B != null &&
|
|
8020
|
+
p.container != B && B != null && g({
|
|
8021
8021
|
container: B,
|
|
8022
8022
|
containerChildren: [...F]
|
|
8023
8023
|
}), d === null || d == p.containerChildren.length - 1 ? i(0) : i(parseInt(d) + 1);
|
|
@@ -8098,18 +8098,18 @@ const Xs = ({
|
|
|
8098
8098
|
...l
|
|
8099
8099
|
}) => {
|
|
8100
8100
|
const n = "pds-side-nav", d = `${n}__item`, i = `${n}__menu`, m = (p) => {
|
|
8101
|
-
const
|
|
8101
|
+
const g = p.currentTarget;
|
|
8102
8102
|
let _ = null;
|
|
8103
|
-
const C =
|
|
8104
|
-
if (C?.classList.contains(`${d}-wrapper`) ? _ = C.nextElementSibling : _ =
|
|
8105
|
-
const u =
|
|
8106
|
-
|
|
8107
|
-
}, v = (p,
|
|
8103
|
+
const C = g.parentElement;
|
|
8104
|
+
if (C?.classList.contains(`${d}-wrapper`) ? _ = C.nextElementSibling : _ = g.nextElementSibling, !_) return;
|
|
8105
|
+
const u = g.getAttribute("aria-expanded") === "false";
|
|
8106
|
+
g.classList.toggle(`${n}__toggle--expanded`, u), g.setAttribute("aria-expanded", u ? "true" : "false"), _.classList.toggle(`${i}--expanded`, u);
|
|
8107
|
+
}, v = (p, g) => {
|
|
8108
8108
|
const { linkContent: _, links: C } = p, u = ve(p), h = ns(_), E = u;
|
|
8109
8109
|
return /* @__PURE__ */ e.createElement(
|
|
8110
8110
|
"li",
|
|
8111
8111
|
{
|
|
8112
|
-
key:
|
|
8112
|
+
key: g,
|
|
8113
8113
|
className: H([
|
|
8114
8114
|
d,
|
|
8115
8115
|
`${d}--top-level`,
|
|
@@ -8212,7 +8212,7 @@ const Xs = ({
|
|
|
8212
8212
|
_
|
|
8213
8213
|
)
|
|
8214
8214
|
);
|
|
8215
|
-
},
|
|
8215
|
+
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${n}__heading pds-ts-l` }, s), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${n}__menu ${n}__menu--top-level` }, c.map((p, g) => v(p, g)))), $ = /* @__PURE__ */ e.createElement(
|
|
8216
8216
|
zt,
|
|
8217
8217
|
{
|
|
8218
8218
|
headingText: s,
|
|
@@ -8228,7 +8228,7 @@ const Xs = ({
|
|
|
8228
8228
|
className: H([n, r ?? ""]),
|
|
8229
8229
|
...l
|
|
8230
8230
|
},
|
|
8231
|
-
|
|
8231
|
+
f,
|
|
8232
8232
|
$
|
|
8233
8233
|
);
|
|
8234
8234
|
}, vt = 0, Ln = ({
|
|
@@ -8245,12 +8245,12 @@ const Xs = ({
|
|
|
8245
8245
|
className: n,
|
|
8246
8246
|
...d
|
|
8247
8247
|
}) => {
|
|
8248
|
-
const i = "pds-side-nav-compact", m = `${i}__item`, v = `${i}__menu`, [
|
|
8248
|
+
const i = "pds-side-nav-compact", m = `${i}__item`, v = `${i}__menu`, [f, $] = Z(1025), [p, g] = Z(!1), [_, C] = Z([]), u = ne(null), h = ne(null), E = ne([]), b = ne(-1);
|
|
8249
8249
|
se(() => ($(window.innerWidth), window.addEventListener("resize", N), () => {
|
|
8250
8250
|
window.removeEventListener("resize", N);
|
|
8251
8251
|
}), []), se(() => {
|
|
8252
8252
|
(!L || !s) && y();
|
|
8253
|
-
}, [
|
|
8253
|
+
}, [f, o, _]), se(() => {
|
|
8254
8254
|
if (u.current) {
|
|
8255
8255
|
const T = u.current.querySelector(
|
|
8256
8256
|
".pds-side-nav-compact__heading a"
|
|
@@ -8272,7 +8272,7 @@ const Xs = ({
|
|
|
8272
8272
|
}, [o]);
|
|
8273
8273
|
const N = () => {
|
|
8274
8274
|
$(window.innerWidth);
|
|
8275
|
-
}, L =
|
|
8275
|
+
}, L = f <= r, y = () => {
|
|
8276
8276
|
if (!u.current) return;
|
|
8277
8277
|
const T = Array.from(
|
|
8278
8278
|
u.current.querySelectorAll(
|
|
@@ -8372,7 +8372,7 @@ const Xs = ({
|
|
|
8372
8372
|
V < 0 && (V = x.length - 1), V >= x.length && (V = 0), b.current = V, x[V]?.focus();
|
|
8373
8373
|
}, I = (T) => {
|
|
8374
8374
|
if (T.key === "Tab" && p && !T.shiftKey) {
|
|
8375
|
-
T.preventDefault(),
|
|
8375
|
+
T.preventDefault(), g(!1), b.current = -1;
|
|
8376
8376
|
const x = Array.from(
|
|
8377
8377
|
document.querySelectorAll(
|
|
8378
8378
|
'a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
@@ -8382,13 +8382,13 @@ const Xs = ({
|
|
|
8382
8382
|
}
|
|
8383
8383
|
}, S = (T) => {
|
|
8384
8384
|
if (T.target === u.current && !p)
|
|
8385
|
-
T.preventDefault(),
|
|
8385
|
+
T.preventDefault(), g(!0), y(), E.current.length > 0 && (b.current = 0, E.current[0]?.focus());
|
|
8386
8386
|
else if (T.target !== u.current && !p) {
|
|
8387
8387
|
y();
|
|
8388
8388
|
const x = E.current.indexOf(
|
|
8389
8389
|
T.target
|
|
8390
8390
|
);
|
|
8391
|
-
x !== -1 && (
|
|
8391
|
+
x !== -1 && (g(!0), b.current = x);
|
|
8392
8392
|
}
|
|
8393
8393
|
}, D = (T) => {
|
|
8394
8394
|
const x = T.currentTarget, V = x.parentElement?.nextElementSibling;
|
|
@@ -8580,16 +8580,16 @@ const Xs = ({
|
|
|
8580
8580
|
},
|
|
8581
8581
|
w.linkContent
|
|
8582
8582
|
))
|
|
8583
|
-
), [v,
|
|
8583
|
+
), [v, f] = Z(!1), { refs: $, floatingStyles: p, context: g } = ke({
|
|
8584
8584
|
placement: "right-start",
|
|
8585
8585
|
open: v,
|
|
8586
|
-
onOpenChange:
|
|
8586
|
+
onOpenChange: f,
|
|
8587
8587
|
middleware: [nt(8), at(), Ct()],
|
|
8588
8588
|
whileElementsMounted: Ae
|
|
8589
|
-
}), _ = ht(
|
|
8589
|
+
}), _ = ht(g, {
|
|
8590
8590
|
move: !1,
|
|
8591
8591
|
handleClose: qt()
|
|
8592
|
-
}), C = Wt(
|
|
8592
|
+
}), C = Wt(g), u = ze(g), h = xe(g, { role: "menu" }), { getReferenceProps: E, getFloatingProps: b } = Ve([
|
|
8593
8593
|
_,
|
|
8594
8594
|
C,
|
|
8595
8595
|
u,
|
|
@@ -8675,10 +8675,10 @@ const Xs = ({
|
|
|
8675
8675
|
displayType: a ? "icon" : "full",
|
|
8676
8676
|
linkContent: o
|
|
8677
8677
|
}
|
|
8678
|
-
)), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${i}__menu ${i}__menu--top-level` }, r.map((p,
|
|
8678
|
+
)), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${i}__menu ${i}__menu--top-level` }, r.map((p, g) => /* @__PURE__ */ e.createElement(
|
|
8679
8679
|
ds,
|
|
8680
8680
|
{
|
|
8681
|
-
key:
|
|
8681
|
+
key: g,
|
|
8682
8682
|
icon: p.icon,
|
|
8683
8683
|
isActive: ve(p),
|
|
8684
8684
|
isSidebarCollapsed: a,
|
|
@@ -8686,7 +8686,7 @@ const Xs = ({
|
|
|
8686
8686
|
linkContent: p.linkContent,
|
|
8687
8687
|
links: p.links
|
|
8688
8688
|
}
|
|
8689
|
-
)))),
|
|
8689
|
+
)))), f = r.map((p) => ({
|
|
8690
8690
|
...p,
|
|
8691
8691
|
linkContent: st(
|
|
8692
8692
|
i,
|
|
@@ -8697,7 +8697,7 @@ const Xs = ({
|
|
|
8697
8697
|
})), $ = /* @__PURE__ */ e.createElement(
|
|
8698
8698
|
zt,
|
|
8699
8699
|
{
|
|
8700
|
-
menuItems:
|
|
8700
|
+
menuItems: f,
|
|
8701
8701
|
selectTextFallback: l,
|
|
8702
8702
|
className: `${i}__dropdown-menu`
|
|
8703
8703
|
}
|
|
@@ -8720,7 +8720,7 @@ const Xs = ({
|
|
|
8720
8720
|
minFilterItems: o = 5,
|
|
8721
8721
|
noResultsText: r = "No results found"
|
|
8722
8722
|
}) => {
|
|
8723
|
-
const [l, n] = Z(!1), [d, i] = Z(null), [m, v] = Z(c), [
|
|
8723
|
+
const [l, n] = Z(!1), [d, i] = Z(null), [m, v] = Z(c), [f, $] = Z(""), p = c.length >= o, g = "pds-tab-menu", _ = `${g}__dropdown-menu`, C = p ? `${_}--scroll` : null, u = `${g}__dropdown-item`, h = ne([]), { context: E, refs: b } = ke({
|
|
8724
8724
|
open: l,
|
|
8725
8725
|
onOpenChange: n,
|
|
8726
8726
|
whileElementsMounted: Ae
|
|
@@ -8758,7 +8758,7 @@ const Xs = ({
|
|
|
8758
8758
|
v(A);
|
|
8759
8759
|
};
|
|
8760
8760
|
se(() => {
|
|
8761
|
-
const x = c.filter((V) => D(V,
|
|
8761
|
+
const x = c.filter((V) => D(V, f));
|
|
8762
8762
|
v(x);
|
|
8763
8763
|
}, [c]);
|
|
8764
8764
|
const F = () => {
|
|
@@ -8770,7 +8770,7 @@ const Xs = ({
|
|
|
8770
8770
|
width: `${Le(
|
|
8771
8771
|
K.linkContent
|
|
8772
8772
|
).length + 2}ch`
|
|
8773
|
-
}, j = /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${
|
|
8773
|
+
}, j = /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${g}__active-icon` }), q = p && /* @__PURE__ */ e.createElement("div", { className: `${g}__filter` }, /* @__PURE__ */ e.createElement(
|
|
8774
8774
|
I2,
|
|
8775
8775
|
{
|
|
8776
8776
|
hasClearButton: !0,
|
|
@@ -8804,7 +8804,7 @@ const Xs = ({
|
|
|
8804
8804
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8805
8805
|
"button",
|
|
8806
8806
|
{
|
|
8807
|
-
className: `${
|
|
8807
|
+
className: `${g}__dropdown-trigger`,
|
|
8808
8808
|
ref: b.setReference,
|
|
8809
8809
|
...M({
|
|
8810
8810
|
"aria-expanded": l,
|
|
@@ -8816,14 +8816,14 @@ const Xs = ({
|
|
|
8816
8816
|
O,
|
|
8817
8817
|
{
|
|
8818
8818
|
iconName: "angleDown",
|
|
8819
|
-
className: `${
|
|
8819
|
+
className: `${g}__dropdown-trigger-icon`
|
|
8820
8820
|
}
|
|
8821
8821
|
)
|
|
8822
8822
|
), R && /* @__PURE__ */ e.createElement(
|
|
8823
8823
|
"div",
|
|
8824
8824
|
{
|
|
8825
8825
|
ref: b.setFloating,
|
|
8826
|
-
className: `${
|
|
8826
|
+
className: `${g}__dropdown`,
|
|
8827
8827
|
...k({
|
|
8828
8828
|
style: {
|
|
8829
8829
|
zIndex: "var(--pds-z-index-dropdown)",
|
|
@@ -8831,7 +8831,7 @@ const Xs = ({
|
|
|
8831
8831
|
}
|
|
8832
8832
|
})
|
|
8833
8833
|
},
|
|
8834
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...I } }, q, /* @__PURE__ */ e.createElement("ul", { className: H([_, C]) }, T.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${
|
|
8834
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...I } }, q, /* @__PURE__ */ e.createElement("ul", { className: H([_, C]) }, T.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${g}__no-results` }, r) : T))
|
|
8835
8835
|
));
|
|
8836
8836
|
}, Mn = ({
|
|
8837
8837
|
ariaLabel: t,
|
|
@@ -8845,10 +8845,10 @@ const Xs = ({
|
|
|
8845
8845
|
const l = "pds-tab-menu", n = o ? `${l}--isMobile` : null, d = ({
|
|
8846
8846
|
dropdownSettings: m,
|
|
8847
8847
|
icon: v,
|
|
8848
|
-
isActive:
|
|
8848
|
+
isActive: f,
|
|
8849
8849
|
linkContent: $,
|
|
8850
8850
|
links: p,
|
|
8851
|
-
promoteActiveChildLink:
|
|
8851
|
+
promoteActiveChildLink: g = !1
|
|
8852
8852
|
}) => {
|
|
8853
8853
|
const _ = `${l}__item`, C = Qt(p), u = (h, E) => {
|
|
8854
8854
|
let b = null;
|
|
@@ -8873,10 +8873,10 @@ const Xs = ({
|
|
|
8873
8873
|
{
|
|
8874
8874
|
className: H([
|
|
8875
8875
|
_,
|
|
8876
|
-
|
|
8876
|
+
f ? `${_}--active` : null
|
|
8877
8877
|
])
|
|
8878
8878
|
},
|
|
8879
|
-
u(
|
|
8879
|
+
u(g ? C : $, v),
|
|
8880
8880
|
p && /* @__PURE__ */ e.createElement(
|
|
8881
8881
|
us,
|
|
8882
8882
|
{
|
|
@@ -8920,10 +8920,10 @@ const Xs = ({
|
|
|
8920
8920
|
className: l,
|
|
8921
8921
|
...n
|
|
8922
8922
|
}) => {
|
|
8923
|
-
const [d, i] = Z(null), [m, v] = Z(!1),
|
|
8923
|
+
const [d, i] = Z(null), [m, v] = Z(!1), f = ne([]), $ = ne([]);
|
|
8924
8924
|
let p = !1;
|
|
8925
|
-
const
|
|
8926
|
-
|
|
8925
|
+
const g = ge(be);
|
|
8926
|
+
g && (p = g.isMobile);
|
|
8927
8927
|
const _ = r && p, C = "pds-user-menu", u = _ ? `${C}--isMobile` : null, h = `${C}__menu`, { refs: E, floatingStyles: b, context: N } = ke({
|
|
8928
8928
|
placement: "bottom-end",
|
|
8929
8929
|
open: m,
|
|
@@ -8966,17 +8966,17 @@ const Xs = ({
|
|
|
8966
8966
|
), F = /* @__PURE__ */ e.createElement(O, { iconName: "angleDown", className: `${C}__trigger-icon` }), K = /* @__PURE__ */ e.createElement("li", { className: `${C}__user-details`, role: "presentation" }, _ ? null : /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, o), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, a));
|
|
8967
8967
|
s.forEach((A) => {
|
|
8968
8968
|
const G = A.id ? A.id : et();
|
|
8969
|
-
|
|
8969
|
+
f.current.push(G), $.current.push(A);
|
|
8970
8970
|
});
|
|
8971
8971
|
const X = (A) => {
|
|
8972
|
-
const G =
|
|
8972
|
+
const G = f.current.indexOf(A), Y = $.current[G];
|
|
8973
8973
|
Y.linkContent && !Y.disabled && (M.current[G].querySelector("a").click(), v(!1)), Y.callback && !Y.disabled && (Y.callback(Y), v(!1));
|
|
8974
8974
|
}, U = (A) => {
|
|
8975
8975
|
A.preventDefault(), A.key === "Enter" && X(A.currentTarget.id);
|
|
8976
8976
|
}, j = (A) => {
|
|
8977
8977
|
X(A.currentTarget.id);
|
|
8978
8978
|
}, q = s.map((A, G) => {
|
|
8979
|
-
const Y =
|
|
8979
|
+
const Y = f.current[G], le = `${C}__item`, ce = A.disabled ? `${le}--disabled` : null;
|
|
8980
8980
|
return /* @__PURE__ */ e.createElement(
|
|
8981
8981
|
"li",
|
|
8982
8982
|
{
|
|
@@ -9075,13 +9075,13 @@ const Xs = ({
|
|
|
9075
9075
|
className: i,
|
|
9076
9076
|
...m
|
|
9077
9077
|
}) => {
|
|
9078
|
-
const [v,
|
|
9078
|
+
const [v, f] = Z(!1), [$, p] = Z(null), [g, _] = Z(d), C = ne([]), u = ne(null), h = d.length >= r;
|
|
9079
9079
|
let E = !1;
|
|
9080
9080
|
const b = ge(be);
|
|
9081
9081
|
b && (E = b.isMobile);
|
|
9082
9082
|
const N = n && E, L = "pds-workspace-selector", y = N ? `${L}--isMobile` : null, w = `${L}__menu`, M = h ? `${w}--scroll` : null, { refs: k, floatingStyles: z, context: R } = ke({
|
|
9083
9083
|
open: v,
|
|
9084
|
-
onOpenChange:
|
|
9084
|
+
onOpenChange: f,
|
|
9085
9085
|
whileElementsMounted: Ae
|
|
9086
9086
|
}), I = qe(R, { event: "mousedown" }), S = ze(R), D = xe(R, { role: "menu" }), B = lt(R, {
|
|
9087
9087
|
listRef: C,
|
|
@@ -9122,7 +9122,7 @@ const Xs = ({
|
|
|
9122
9122
|
_(J);
|
|
9123
9123
|
}, [d]);
|
|
9124
9124
|
const x = (J) => {
|
|
9125
|
-
J.preventDefault(), J.key === "Enter" && C.current[$].querySelector("a").click(), J.key === "Tab" && (J.shiftKey ? h ? document.getElementById("workspace-filter").focus() :
|
|
9125
|
+
J.preventDefault(), J.key === "Enter" && C.current[$].querySelector("a").click(), J.key === "Tab" && (J.shiftKey ? h ? document.getElementById("workspace-filter").focus() : f(!1) : s ? u.current.querySelector("a").focus() : f(!1));
|
|
9126
9126
|
}, V = /* @__PURE__ */ e.createElement("div", { className: `${L}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9127
9127
|
Gt,
|
|
9128
9128
|
{
|
|
@@ -9157,7 +9157,7 @@ const Xs = ({
|
|
|
9157
9157
|
showLabel: !1,
|
|
9158
9158
|
type: "search"
|
|
9159
9159
|
}
|
|
9160
|
-
)), Y =
|
|
9160
|
+
)), Y = g.map(
|
|
9161
9161
|
(J, oe) => {
|
|
9162
9162
|
const he = `${L}__item`, re = J.isActive ? `${he}--active` : null, Ee = J.isUnprivileged ? `${he}--unprivileged` : null, Me = /* @__PURE__ */ e.createElement(O, { iconName: "check", className: `${L}__active-icon` }), Ie = J.workspaceId, De = J.workspaceLink.type, Xe = J.isUnprivileged ? null : (Fe) => {
|
|
9163
9163
|
C.current[oe] = Fe;
|
|
@@ -9182,7 +9182,7 @@ const Xs = ({
|
|
|
9182
9182
|
De,
|
|
9183
9183
|
{
|
|
9184
9184
|
...Object.assign({}, J.workspaceLink.props, {
|
|
9185
|
-
onClick: () =>
|
|
9185
|
+
onClick: () => f(!1)
|
|
9186
9186
|
})
|
|
9187
9187
|
},
|
|
9188
9188
|
/* @__PURE__ */ e.createElement("div", { className: `${L}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9205,8 +9205,8 @@ const Xs = ({
|
|
|
9205
9205
|
iconName: "plus",
|
|
9206
9206
|
linkContent: s,
|
|
9207
9207
|
variant: "subtle",
|
|
9208
|
-
onBlur:
|
|
9209
|
-
onClick:
|
|
9208
|
+
onBlur: f.bind(null, !1),
|
|
9209
|
+
onClick: f.bind(null, !1)
|
|
9210
9210
|
}
|
|
9211
9211
|
)), ce = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9212
9212
|
"button",
|
|
@@ -9288,11 +9288,11 @@ const Xs = ({
|
|
|
9288
9288
|
const i = n.length;
|
|
9289
9289
|
if (i === 0)
|
|
9290
9290
|
return null;
|
|
9291
|
-
const m = "pds-banner", v = i > 1 ? `${m}-group--multiple` : null,
|
|
9291
|
+
const m = "pds-banner", v = i > 1 ? `${m}-group--multiple` : null, f = {
|
|
9292
9292
|
info: `${m}--info`,
|
|
9293
9293
|
warning: `${m}--warning`,
|
|
9294
9294
|
critical: `${m}--critical`
|
|
9295
|
-
}, $ = i > 0 ? n[0].type : null, p = $ ? `${m}-group--${$}` : null,
|
|
9295
|
+
}, $ = i > 0 ? n[0].type : null, p = $ ? `${m}-group--${$}` : null, g = (b) => ({
|
|
9296
9296
|
zIndex: xt - b
|
|
9297
9297
|
}), _ = (b) => b === 0 ? 0 : -1, C = () => {
|
|
9298
9298
|
const b = document.getElementsByClassName(
|
|
@@ -9333,10 +9333,10 @@ const Xs = ({
|
|
|
9333
9333
|
{
|
|
9334
9334
|
key: L,
|
|
9335
9335
|
id: L,
|
|
9336
|
-
className: H([m,
|
|
9336
|
+
className: H([m, f[k]]),
|
|
9337
9337
|
role: R,
|
|
9338
9338
|
style: {
|
|
9339
|
-
zIndex:
|
|
9339
|
+
zIndex: g(N).zIndex
|
|
9340
9340
|
}
|
|
9341
9341
|
},
|
|
9342
9342
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9458,16 +9458,16 @@ const Xs = ({
|
|
|
9458
9458
|
className: i,
|
|
9459
9459
|
...m
|
|
9460
9460
|
}) => {
|
|
9461
|
-
const v = ne(null),
|
|
9462
|
-
error: `${
|
|
9463
|
-
success: `${
|
|
9464
|
-
warning: `${
|
|
9465
|
-
info: `${
|
|
9466
|
-
critical: `${
|
|
9467
|
-
discovery: `${
|
|
9468
|
-
dismissing: `${
|
|
9469
|
-
dismissed: `${
|
|
9470
|
-
}, p = c ? `${
|
|
9461
|
+
const v = ne(null), f = "pds-section-message", $ = {
|
|
9462
|
+
error: `${f}--error`,
|
|
9463
|
+
success: `${f}--success`,
|
|
9464
|
+
warning: `${f}--warning`,
|
|
9465
|
+
info: `${f}--info`,
|
|
9466
|
+
critical: `${f}--critical`,
|
|
9467
|
+
discovery: `${f}--discovery`,
|
|
9468
|
+
dismissing: `${f}--dismissing`,
|
|
9469
|
+
dismissed: `${f}--dismissed`
|
|
9470
|
+
}, p = c ? `${f}--hasDismiss` : null, g = l ? `${f}--hasTitle` : null, C = ["critical", "warning"].includes(n) ? "alert" : "status", u = `${d[n]}: `, h = typeof r == "string" ? /* @__PURE__ */ e.createElement("p", null, r) : r, E = () => {
|
|
9471
9471
|
v.current.addEventListener("animationend", b, {
|
|
9472
9472
|
once: !0
|
|
9473
9473
|
});
|
|
@@ -9482,10 +9482,10 @@ const Xs = ({
|
|
|
9482
9482
|
"div",
|
|
9483
9483
|
{
|
|
9484
9484
|
className: H([
|
|
9485
|
-
|
|
9485
|
+
f,
|
|
9486
9486
|
$[n],
|
|
9487
9487
|
p,
|
|
9488
|
-
|
|
9488
|
+
g,
|
|
9489
9489
|
i ?? ""
|
|
9490
9490
|
]),
|
|
9491
9491
|
id: a,
|
|
@@ -9493,25 +9493,25 @@ const Xs = ({
|
|
|
9493
9493
|
role: C,
|
|
9494
9494
|
...m
|
|
9495
9495
|
},
|
|
9496
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9496
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__icon ${f}__icon-${n}` }, /* @__PURE__ */ e.createElement(
|
|
9497
9497
|
O,
|
|
9498
9498
|
{
|
|
9499
9499
|
iconName: `${n}` in Rt ? Rt[n] : Rt.info,
|
|
9500
9500
|
iconSize: "lg"
|
|
9501
9501
|
}
|
|
9502
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9503
|
-
(t || c) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9502
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${f}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), l && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, h))),
|
|
9503
|
+
(t || c) && /* @__PURE__ */ e.createElement("div", { className: `${f}__actions` }, t && /* @__PURE__ */ e.createElement(
|
|
9504
9504
|
Be,
|
|
9505
9505
|
{
|
|
9506
9506
|
...t,
|
|
9507
|
-
className: `${
|
|
9507
|
+
className: `${f}__cta`,
|
|
9508
9508
|
size: "sm",
|
|
9509
9509
|
variant: "secondary"
|
|
9510
9510
|
}
|
|
9511
9511
|
), c && /* @__PURE__ */ e.createElement(
|
|
9512
9512
|
"button",
|
|
9513
9513
|
{
|
|
9514
|
-
className: `${
|
|
9514
|
+
className: `${f}__dismiss`,
|
|
9515
9515
|
onClick: N,
|
|
9516
9516
|
"aria-label": s,
|
|
9517
9517
|
role: "button",
|
|
@@ -9623,19 +9623,19 @@ const An = () => {
|
|
|
9623
9623
|
const i = Math.max(s - t, 1), m = Math.min(
|
|
9624
9624
|
s + t,
|
|
9625
9625
|
r
|
|
9626
|
-
), v = i > 2,
|
|
9627
|
-
if (!v &&
|
|
9626
|
+
), v = i > 2, f = m < r - 2;
|
|
9627
|
+
if (!v && f) {
|
|
9628
9628
|
const $ = 3 + 2 * t;
|
|
9629
9629
|
return [...bt(1, $), ut, r];
|
|
9630
9630
|
}
|
|
9631
|
-
if (v && !
|
|
9631
|
+
if (v && !f) {
|
|
9632
9632
|
const $ = 3 + 2 * t, p = bt(
|
|
9633
9633
|
r - $ + 1,
|
|
9634
9634
|
r
|
|
9635
9635
|
);
|
|
9636
9636
|
return [n, ut, ...p];
|
|
9637
9637
|
}
|
|
9638
|
-
if (v &&
|
|
9638
|
+
if (v && f) {
|
|
9639
9639
|
const $ = bt(i, m);
|
|
9640
9640
|
return [
|
|
9641
9641
|
n,
|
|
@@ -9665,11 +9665,11 @@ const An = () => {
|
|
|
9665
9665
|
totalItemCount: n,
|
|
9666
9666
|
bufferCount: t,
|
|
9667
9667
|
itemsPerPage: o
|
|
9668
|
-
}), v = m[m.length - 1],
|
|
9668
|
+
}), v = m[m.length - 1], f = () => {
|
|
9669
9669
|
l(s + 1);
|
|
9670
9670
|
}, $ = () => {
|
|
9671
9671
|
l(s - 1);
|
|
9672
|
-
}, p = "pds-pagination",
|
|
9672
|
+
}, p = "pds-pagination", g = `${p}__item`, _ = `${g}--current`, C = `${g}--disabled`;
|
|
9673
9673
|
return s === 0 || m.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
9674
9674
|
"nav",
|
|
9675
9675
|
{
|
|
@@ -9691,8 +9691,8 @@ const An = () => {
|
|
|
9691
9691
|
"li",
|
|
9692
9692
|
{
|
|
9693
9693
|
className: H([
|
|
9694
|
-
|
|
9695
|
-
`${
|
|
9694
|
+
g,
|
|
9695
|
+
`${g}--prev`,
|
|
9696
9696
|
s === 1 ? C : void 0
|
|
9697
9697
|
])
|
|
9698
9698
|
},
|
|
@@ -9710,7 +9710,7 @@ const An = () => {
|
|
|
9710
9710
|
"li",
|
|
9711
9711
|
{
|
|
9712
9712
|
key: h,
|
|
9713
|
-
className: H([
|
|
9713
|
+
className: H([g, `${g}--truncated`])
|
|
9714
9714
|
},
|
|
9715
9715
|
/* @__PURE__ */ e.createElement("span", null, "…")
|
|
9716
9716
|
) : /* @__PURE__ */ e.createElement(
|
|
@@ -9718,7 +9718,7 @@ const An = () => {
|
|
|
9718
9718
|
{
|
|
9719
9719
|
key: h,
|
|
9720
9720
|
className: H([
|
|
9721
|
-
|
|
9721
|
+
g,
|
|
9722
9722
|
s === u ? _ : void 0
|
|
9723
9723
|
])
|
|
9724
9724
|
},
|
|
@@ -9735,8 +9735,8 @@ const An = () => {
|
|
|
9735
9735
|
"li",
|
|
9736
9736
|
{
|
|
9737
9737
|
className: H([
|
|
9738
|
-
|
|
9739
|
-
`${
|
|
9738
|
+
g,
|
|
9739
|
+
`${g}--next`,
|
|
9740
9740
|
s === v ? C : void 0
|
|
9741
9741
|
])
|
|
9742
9742
|
},
|
|
@@ -9745,7 +9745,7 @@ const An = () => {
|
|
|
9745
9745
|
{
|
|
9746
9746
|
"aria-disabled": s === v ? !0 : void 0,
|
|
9747
9747
|
"aria-label": r.next,
|
|
9748
|
-
onClick: s === v ? void 0 :
|
|
9748
|
+
onClick: s === v ? void 0 : f,
|
|
9749
9749
|
type: "button"
|
|
9750
9750
|
},
|
|
9751
9751
|
/* @__PURE__ */ e.createElement(O, { iconName: "arrowRight" })
|
|
@@ -9762,16 +9762,16 @@ const An = () => {
|
|
|
9762
9762
|
}) => {
|
|
9763
9763
|
const [l, n] = Z(a), i = ne(
|
|
9764
9764
|
s || `expansion-panel-${et()}`
|
|
9765
|
-
).current, m = "pds-expansion-panel", v = ne(null),
|
|
9765
|
+
).current, m = "pds-expansion-panel", v = ne(null), f = ne(null), $ = ne(null);
|
|
9766
9766
|
return se(() => {
|
|
9767
|
-
const p = v.current,
|
|
9768
|
-
if (!p || !
|
|
9767
|
+
const p = v.current, g = f.current, _ = $.current;
|
|
9768
|
+
if (!p || !g || !_) return;
|
|
9769
9769
|
let C = null, u = !1, h = !1;
|
|
9770
9770
|
const E = (w) => {
|
|
9771
9771
|
w.preventDefault(), p.style.overflow = "hidden", u || !p.open ? N() : (h || p.open) && b();
|
|
9772
9772
|
}, b = () => {
|
|
9773
9773
|
u = !0, n(!1);
|
|
9774
|
-
const w = `${p.offsetHeight}px`, M = `${
|
|
9774
|
+
const w = `${p.offsetHeight}px`, M = `${g.offsetHeight}px`;
|
|
9775
9775
|
C && C.cancel(), C = p.animate(
|
|
9776
9776
|
{ height: [w, M] },
|
|
9777
9777
|
{
|
|
@@ -9783,7 +9783,7 @@ const An = () => {
|
|
|
9783
9783
|
p.style.height = `${p.offsetHeight}px`, p.open = !0, n(!0), requestAnimationFrame(() => L());
|
|
9784
9784
|
}, L = () => {
|
|
9785
9785
|
h = !0;
|
|
9786
|
-
const w = `${p.offsetHeight}px`, M = `${
|
|
9786
|
+
const w = `${p.offsetHeight}px`, M = `${g.offsetHeight + _.offsetHeight}px`;
|
|
9787
9787
|
C && C.cancel(), C = p.animate(
|
|
9788
9788
|
{ height: [w, M] },
|
|
9789
9789
|
{
|
|
@@ -9794,7 +9794,7 @@ const An = () => {
|
|
|
9794
9794
|
}, y = (w) => {
|
|
9795
9795
|
p.open = w, C = null, u = !1, h = !1, p.style.height = p.style.overflow = "";
|
|
9796
9796
|
};
|
|
9797
|
-
return
|
|
9797
|
+
return g.addEventListener("click", E), () => g.removeEventListener("click", E);
|
|
9798
9798
|
}, []), /* @__PURE__ */ e.createElement("div", { className: H([m, o]), ...r }, /* @__PURE__ */ e.createElement(
|
|
9799
9799
|
"details",
|
|
9800
9800
|
{
|
|
@@ -9803,7 +9803,7 @@ const An = () => {
|
|
|
9803
9803
|
open: a,
|
|
9804
9804
|
ref: v
|
|
9805
9805
|
},
|
|
9806
|
-
/* @__PURE__ */ e.createElement("summary", { ref:
|
|
9806
|
+
/* @__PURE__ */ e.createElement("summary", { ref: f }, /* @__PURE__ */ e.createElement("span", null, c), /* @__PURE__ */ e.createElement(
|
|
9807
9807
|
O,
|
|
9808
9808
|
{
|
|
9809
9809
|
iconName: "angleDown",
|
|
@@ -9874,14 +9874,14 @@ const An = () => {
|
|
|
9874
9874
|
expandButtonAriaLabel: c,
|
|
9875
9875
|
...o
|
|
9876
9876
|
}) => {
|
|
9877
|
-
const r = "pds-panel-row", [l, n] = Z(!1), d = ne(null), i = ne(null), m = Se(t), v = m["items-left"],
|
|
9878
|
-
const
|
|
9879
|
-
if (!
|
|
9877
|
+
const r = "pds-panel-row", [l, n] = Z(!1), d = ne(null), i = ne(null), m = Se(t), v = m["items-left"], f = m["items-right"], $ = m["items-below"], p = () => {
|
|
9878
|
+
const g = i.current, _ = d.current;
|
|
9879
|
+
if (!g || !_) return;
|
|
9880
9880
|
const C = !l;
|
|
9881
9881
|
if (n(C), C) {
|
|
9882
|
-
|
|
9883
|
-
const u = `${
|
|
9884
|
-
|
|
9882
|
+
g.style.display = "block", g.style.height = "auto";
|
|
9883
|
+
const u = `${g.scrollHeight}px`;
|
|
9884
|
+
g.animate(
|
|
9885
9885
|
[
|
|
9886
9886
|
{ height: "0px", opacity: "0" },
|
|
9887
9887
|
{ height: u, opacity: "1" }
|
|
@@ -9891,14 +9891,14 @@ const An = () => {
|
|
|
9891
9891
|
easing: We
|
|
9892
9892
|
}
|
|
9893
9893
|
).onfinish = () => {
|
|
9894
|
-
Object.assign(
|
|
9894
|
+
Object.assign(g.style, {
|
|
9895
9895
|
height: "auto",
|
|
9896
9896
|
opacity: "1"
|
|
9897
9897
|
}), _.classList.add("is-expanded");
|
|
9898
9898
|
};
|
|
9899
9899
|
} else {
|
|
9900
|
-
const u = `${
|
|
9901
|
-
|
|
9900
|
+
const u = `${g.scrollHeight}px`;
|
|
9901
|
+
g.animate(
|
|
9902
9902
|
[
|
|
9903
9903
|
{ height: u, opacity: "1" },
|
|
9904
9904
|
{ height: "0px", opacity: "0" }
|
|
@@ -9908,7 +9908,7 @@ const An = () => {
|
|
|
9908
9908
|
easing: We
|
|
9909
9909
|
}
|
|
9910
9910
|
).onfinish = () => {
|
|
9911
|
-
Object.assign(
|
|
9911
|
+
Object.assign(g.style, {
|
|
9912
9912
|
height: "0",
|
|
9913
9913
|
opacity: "0",
|
|
9914
9914
|
display: "none"
|
|
@@ -9932,7 +9932,7 @@ const An = () => {
|
|
|
9932
9932
|
])
|
|
9933
9933
|
},
|
|
9934
9934
|
v && /* @__PURE__ */ e.createElement("div", { className: `${r}__items ${r}__items--left` }, v),
|
|
9935
|
-
|
|
9935
|
+
f && /* @__PURE__ */ e.createElement("div", { className: `${r}__items ${r}__items--right` }, f),
|
|
9936
9936
|
a && /* @__PURE__ */ e.createElement(
|
|
9937
9937
|
"button",
|
|
9938
9938
|
{
|
|
@@ -9996,22 +9996,22 @@ const An = () => {
|
|
|
9996
9996
|
popoverIsOpen: m = !1,
|
|
9997
9997
|
setPopoverIsOpen: v = () => {
|
|
9998
9998
|
},
|
|
9999
|
-
className:
|
|
9999
|
+
className: f,
|
|
10000
10000
|
classNameContainer: $,
|
|
10001
10001
|
...p
|
|
10002
10002
|
}) => {
|
|
10003
|
-
const [
|
|
10003
|
+
const [g, _] = Z(m);
|
|
10004
10004
|
se(() => {
|
|
10005
10005
|
_(m);
|
|
10006
10006
|
}, [m]), se(() => {
|
|
10007
|
-
v(
|
|
10008
|
-
}, [
|
|
10007
|
+
v(g);
|
|
10008
|
+
}, [g]);
|
|
10009
10009
|
const C = typeof a, u = "pds-popover", h = H([
|
|
10010
10010
|
`${u}__trigger-custom`,
|
|
10011
10011
|
C === "string" ? `${u}__trigger-text` : ""
|
|
10012
10012
|
]), E = a ? o : 0, b = ne(null), { refs: N, floatingStyles: L, context: y, middlewareData: w } = ke({
|
|
10013
10013
|
placement: l,
|
|
10014
|
-
open:
|
|
10014
|
+
open: g,
|
|
10015
10015
|
onOpenChange(U) {
|
|
10016
10016
|
_(U), U || r();
|
|
10017
10017
|
},
|
|
@@ -10041,7 +10041,7 @@ const An = () => {
|
|
|
10041
10041
|
}[U]
|
|
10042
10042
|
})
|
|
10043
10043
|
});
|
|
10044
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([u,
|
|
10044
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([u, f]), ...p }, /* @__PURE__ */ e.createElement(
|
|
10045
10045
|
"span",
|
|
10046
10046
|
{
|
|
10047
10047
|
className: `${u}__trigger`,
|
|
@@ -10123,24 +10123,24 @@ const An = () => {
|
|
|
10123
10123
|
className: i,
|
|
10124
10124
|
...m
|
|
10125
10125
|
}) => {
|
|
10126
|
-
const v = s || et(),
|
|
10126
|
+
const v = s || et(), f = "pds-progress-bar", $ = l ? `${f}__label` : "visually-hidden", p = `${f}__track ${f}__track--${d}`, g = r > 100 ? 100 : r;
|
|
10127
10127
|
let _ = "neutral";
|
|
10128
10128
|
t.forEach((E) => {
|
|
10129
10129
|
r >= E.percentage && (_ = E.colorType);
|
|
10130
10130
|
});
|
|
10131
|
-
const C = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10131
|
+
const C = /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, c), u = c && o === "above", h = c && o === "below";
|
|
10132
10132
|
return /* @__PURE__ */ e.createElement(
|
|
10133
10133
|
"div",
|
|
10134
10134
|
{
|
|
10135
|
-
className: [
|
|
10136
|
-
style: { "--bar-percentage": `${
|
|
10135
|
+
className: [f, i].join(" ").trim().replace(/\s+/g, " "),
|
|
10136
|
+
style: { "--bar-percentage": `${g}%` },
|
|
10137
10137
|
...m
|
|
10138
10138
|
},
|
|
10139
10139
|
/* @__PURE__ */ e.createElement("div", { id: v, className: $ }, a),
|
|
10140
|
-
(u || n) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10140
|
+
(u || n) && /* @__PURE__ */ e.createElement("div", { className: `${f}__details` }, u && C, n && /* @__PURE__ */ e.createElement(
|
|
10141
10141
|
"div",
|
|
10142
10142
|
{
|
|
10143
|
-
className: `${
|
|
10143
|
+
className: `${f}__percentage`,
|
|
10144
10144
|
style: {
|
|
10145
10145
|
color: `hsl(from var(${h2[_]}) h s calc(l - 7))`
|
|
10146
10146
|
}
|
|
@@ -10148,20 +10148,20 @@ const An = () => {
|
|
|
10148
10148
|
r,
|
|
10149
10149
|
"%"
|
|
10150
10150
|
)),
|
|
10151
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10151
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10152
10152
|
"div",
|
|
10153
10153
|
{
|
|
10154
10154
|
role: "progressbar",
|
|
10155
10155
|
"aria-labelledby": v,
|
|
10156
|
-
"aria-valuenow":
|
|
10156
|
+
"aria-valuenow": g,
|
|
10157
10157
|
className: p
|
|
10158
10158
|
},
|
|
10159
10159
|
/* @__PURE__ */ e.createElement(
|
|
10160
10160
|
"div",
|
|
10161
10161
|
{
|
|
10162
|
-
className: `${
|
|
10162
|
+
className: `${f}__bar`,
|
|
10163
10163
|
style: {
|
|
10164
|
-
width: `${
|
|
10164
|
+
width: `${g}%`,
|
|
10165
10165
|
backgroundColor: `var(${h2[_]})`
|
|
10166
10166
|
}
|
|
10167
10167
|
}
|
|
@@ -10180,10 +10180,10 @@ const An = () => {
|
|
|
10180
10180
|
className: n,
|
|
10181
10181
|
...d
|
|
10182
10182
|
}) => {
|
|
10183
|
-
const i = t || et(), m = "pds-progress-ring", v = o ? `${m}__label` : "visually-hidden",
|
|
10184
|
-
let p = $(V2),
|
|
10185
|
-
l === "sm" && (p = $(x2),
|
|
10186
|
-
const _ = p / 2 -
|
|
10183
|
+
const i = t || et(), m = "pds-progress-ring", v = o ? `${m}__label` : "visually-hidden", f = `${m}__loading-text ${m}__loading-text--${l}`, $ = (E) => E * 16;
|
|
10184
|
+
let p = $(V2), g = 7;
|
|
10185
|
+
l === "sm" && (p = $(x2), g = g / 1.25), l === "lg" && (p = $(S2), g = g * 1.25);
|
|
10186
|
+
const _ = p / 2 - g / 2, C = 2 * Math.PI * _, u = C - C * c / 100;
|
|
10187
10187
|
let h;
|
|
10188
10188
|
return s ? h = s : r ? h = `${c}%` : h = "", /* @__PURE__ */ e.createElement(
|
|
10189
10189
|
"div",
|
|
@@ -10220,7 +10220,7 @@ const An = () => {
|
|
|
10220
10220
|
cx: p / 2,
|
|
10221
10221
|
cy: p / 2,
|
|
10222
10222
|
r: _,
|
|
10223
|
-
strokeWidth:
|
|
10223
|
+
strokeWidth: g
|
|
10224
10224
|
}
|
|
10225
10225
|
),
|
|
10226
10226
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10230,7 +10230,7 @@ const An = () => {
|
|
|
10230
10230
|
cx: p / 2,
|
|
10231
10231
|
cy: p / 2,
|
|
10232
10232
|
r: _,
|
|
10233
|
-
strokeWidth:
|
|
10233
|
+
strokeWidth: g,
|
|
10234
10234
|
strokeDasharray: C,
|
|
10235
10235
|
strokeDashoffset: u,
|
|
10236
10236
|
transform: `rotate(-90 ${p / 2} ${p / 2})`
|
|
@@ -10239,7 +10239,7 @@ const An = () => {
|
|
|
10239
10239
|
/* @__PURE__ */ e.createElement(
|
|
10240
10240
|
"text",
|
|
10241
10241
|
{
|
|
10242
|
-
className:
|
|
10242
|
+
className: f,
|
|
10243
10243
|
fill: "var(--pds-color-fg-default)",
|
|
10244
10244
|
x: "50%",
|
|
10245
10245
|
y: "51%",
|
|
@@ -10288,80 +10288,73 @@ const Wn = ({
|
|
|
10288
10288
|
className: l,
|
|
10289
10289
|
...n
|
|
10290
10290
|
}) => {
|
|
10291
|
-
const
|
|
10292
|
-
r ?? "default"
|
|
10293
|
-
/* DEFAULT */
|
|
10294
|
-
);
|
|
10295
|
-
se(() => {
|
|
10296
|
-
i(r);
|
|
10297
|
-
}, [r, i]);
|
|
10298
|
-
const m = {
|
|
10291
|
+
const d = r ?? "default", i = {
|
|
10299
10292
|
checkForUpdates: "Check for updates",
|
|
10300
10293
|
checking: "Checking...",
|
|
10301
10294
|
checked: "Last checked",
|
|
10302
10295
|
ariaLabel: "Check for updates",
|
|
10303
10296
|
...a
|
|
10304
|
-
},
|
|
10297
|
+
}, m = () => {
|
|
10305
10298
|
switch (d) {
|
|
10306
10299
|
case "default":
|
|
10307
|
-
return
|
|
10300
|
+
return i.checkForUpdates;
|
|
10308
10301
|
case "working":
|
|
10309
|
-
return
|
|
10302
|
+
return i.checking;
|
|
10310
10303
|
case "checked":
|
|
10311
10304
|
if (c) {
|
|
10312
|
-
const
|
|
10305
|
+
const u = c instanceof Date ? c : new Date(c), h = Date.now() - u.getTime(), E = Math.floor(h / 1e3), b = Math.floor(E / 60), N = Math.floor(b / 60), L = Math.floor(N / 24), y = {
|
|
10313
10306
|
year: "numeric",
|
|
10314
10307
|
month: "short",
|
|
10315
10308
|
day: "numeric"
|
|
10316
10309
|
};
|
|
10317
|
-
let
|
|
10318
|
-
return
|
|
10310
|
+
let w = "";
|
|
10311
|
+
return L > 7 ? w = u.toLocaleDateString(
|
|
10319
10312
|
void 0,
|
|
10320
|
-
|
|
10321
|
-
) :
|
|
10313
|
+
y
|
|
10314
|
+
) : L > 0 && L <= 7 ? w = `${L} day${L !== 1 ? "s" : ""} ago` : N > 0 ? w = `${N} hour${N !== 1 ? "s" : ""} ago` : b > 0 ? w = `${b} minute${b !== 1 ? "s" : ""} ago` : w = `${E} second${E !== 1 ? "s" : ""} ago`, `${i.checked} ${w}`;
|
|
10322
10315
|
}
|
|
10323
|
-
return
|
|
10316
|
+
return i.checked;
|
|
10324
10317
|
}
|
|
10325
|
-
},
|
|
10318
|
+
}, v = () => {
|
|
10326
10319
|
o?.();
|
|
10327
|
-
},
|
|
10328
|
-
`${
|
|
10329
|
-
d === "working" ? `${
|
|
10330
|
-
]),
|
|
10320
|
+
}, f = "pds-refresh-checker", $ = `${f}--${t}`, p = H([
|
|
10321
|
+
`${f}__button`,
|
|
10322
|
+
d === "working" ? `${f}__button--spinning` : ""
|
|
10323
|
+
]), g = s !== null && s > 0 ? `${s}rem` : "100%", _ = /* @__PURE__ */ e.createElement("span", { className: `${f}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
10331
10324
|
O,
|
|
10332
10325
|
{
|
|
10333
10326
|
iconName: "rotate",
|
|
10334
10327
|
iconSize: "md",
|
|
10335
|
-
className: `${
|
|
10328
|
+
className: `${f}__icon ${d === "working" ? `${f}__icon--spinning` : ""}`
|
|
10336
10329
|
}
|
|
10337
|
-
)),
|
|
10330
|
+
)), C = /* @__PURE__ */ e.createElement("span", { className: `${f}__label` }, m());
|
|
10338
10331
|
return /* @__PURE__ */ e.createElement(
|
|
10339
10332
|
"div",
|
|
10340
10333
|
{
|
|
10341
|
-
className: H([$,
|
|
10342
|
-
style: { width:
|
|
10334
|
+
className: H([f, $, l ?? ""]),
|
|
10335
|
+
style: { width: g },
|
|
10343
10336
|
...n
|
|
10344
10337
|
},
|
|
10345
10338
|
/* @__PURE__ */ e.createElement(
|
|
10346
10339
|
"button",
|
|
10347
10340
|
{
|
|
10348
10341
|
type: "button",
|
|
10349
|
-
className:
|
|
10350
|
-
onClick:
|
|
10342
|
+
className: p,
|
|
10343
|
+
onClick: v,
|
|
10351
10344
|
"aria-live": "polite",
|
|
10352
|
-
"aria-label":
|
|
10345
|
+
"aria-label": i.ariaLabel
|
|
10353
10346
|
},
|
|
10354
|
-
t === "right" &&
|
|
10347
|
+
t === "right" && C,
|
|
10355
10348
|
/* @__PURE__ */ e.createElement(
|
|
10356
10349
|
He,
|
|
10357
10350
|
{
|
|
10358
|
-
content:
|
|
10359
|
-
customTrigger:
|
|
10351
|
+
content: i.tooltipContent || i.ariaLabel,
|
|
10352
|
+
customTrigger: _,
|
|
10360
10353
|
triggerIconColor: "default",
|
|
10361
10354
|
triggerIconSize: "sm"
|
|
10362
10355
|
}
|
|
10363
10356
|
),
|
|
10364
|
-
t === "left" &&
|
|
10357
|
+
t === "left" && C
|
|
10365
10358
|
)
|
|
10366
10359
|
);
|
|
10367
10360
|
}, qn = ({
|
|
@@ -10378,8 +10371,8 @@ const Wn = ({
|
|
|
10378
10371
|
className: m,
|
|
10379
10372
|
...v
|
|
10380
10373
|
}) => {
|
|
10381
|
-
const
|
|
10382
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([
|
|
10374
|
+
const f = "pds-site-dashboard-heading", $ = os[l], p = n ? T2[n] : "bolt";
|
|
10375
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([f, m ?? ""]), ...v }, /* @__PURE__ */ e.createElement(O, { iconName: p, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, r), /* @__PURE__ */ e.createElement("span", { className: `${f}__plan-level-badge` }, l === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
10383
10376
|
Be,
|
|
10384
10377
|
{
|
|
10385
10378
|
displayType: "icon-start",
|
|
@@ -10503,7 +10496,7 @@ const Wn = ({
|
|
|
10503
10496
|
}) => {
|
|
10504
10497
|
const o = "pds-stepper", r = "pds-stepper-mobile", l = ne(null), [n] = Ht(l), d = n.width, i = Number(
|
|
10505
10498
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
10506
|
-
) * 16, m = -40, v = 2,
|
|
10499
|
+
) * 16, m = -40, v = 2, f = 5, $ = t.length, p = t.map((C) => C.isCurrent).lastIndexOf(!0), g = t.map((C, u) => {
|
|
10507
10500
|
const h = u + 1, E = u === p, b = C.isComplete || u < p, N = C.hasError && E, y = (d - $ * i) / ($ + ($ - 2)), w = i + y * 2, M = i + y, k = y + m * -1, z = u === 0, R = u === $ - 1;
|
|
10508
10501
|
let I = w;
|
|
10509
10502
|
(z || R) && (I = M);
|
|
@@ -10602,7 +10595,7 @@ const Wn = ({
|
|
|
10602
10595
|
);
|
|
10603
10596
|
}
|
|
10604
10597
|
});
|
|
10605
|
-
if ($ >= v && $ <=
|
|
10598
|
+
if ($ >= v && $ <= f)
|
|
10606
10599
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10607
10600
|
"div",
|
|
10608
10601
|
{
|
|
@@ -10610,7 +10603,7 @@ const Wn = ({
|
|
|
10610
10603
|
"data-steps": $,
|
|
10611
10604
|
...c
|
|
10612
10605
|
},
|
|
10613
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${o}__steps`, ref: l },
|
|
10606
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${o}__steps`, ref: l }, g)
|
|
10614
10607
|
), /* @__PURE__ */ e.createElement(
|
|
10615
10608
|
"div",
|
|
10616
10609
|
{
|
|
@@ -10632,8 +10625,8 @@ const Wn = ({
|
|
|
10632
10625
|
_isFirstStep: d,
|
|
10633
10626
|
...i
|
|
10634
10627
|
}) => {
|
|
10635
|
-
const m = "pds-vert-stepper", v = `${m}__step`,
|
|
10636
|
-
return o &&
|
|
10628
|
+
const m = "pds-vert-stepper", v = `${m}__step`, f = [v];
|
|
10629
|
+
return o && f.push(`${v}--current`), n && f.push(`${v}--complete`), a && f.push(`${v}--error`), /* @__PURE__ */ e.createElement("li", { id: c, className: H([...f]), ...i }, /* @__PURE__ */ e.createElement("div", { className: `${m}__step-header` }, /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${m}__step-indicator` }, n && /* @__PURE__ */ e.createElement(
|
|
10637
10630
|
O,
|
|
10638
10631
|
{
|
|
10639
10632
|
iconName: "check",
|
|
@@ -10652,12 +10645,12 @@ const Wn = ({
|
|
|
10652
10645
|
...c
|
|
10653
10646
|
}) => {
|
|
10654
10647
|
const o = "pds-vert-stepper", n = s.length, d = s.findIndex((v) => v.isCurrent), i = s.map((m, v) => {
|
|
10655
|
-
const
|
|
10656
|
-
let C = `${t.step} ${
|
|
10657
|
-
return
|
|
10648
|
+
const f = v + 1, $ = v === d, p = v === 0, g = m.isComplete || !1, _ = m.hasError && $;
|
|
10649
|
+
let C = `${t.step} ${f}`;
|
|
10650
|
+
return g && (C = `${t.step} ${f}, ${t.completed}`), _ && (C = `${t.step} ${f}, ${t.hasError}`), /* @__PURE__ */ e.createElement(
|
|
10658
10651
|
Ns,
|
|
10659
10652
|
{
|
|
10660
|
-
key: `s${
|
|
10653
|
+
key: `s${f}`,
|
|
10661
10654
|
label: m.label,
|
|
10662
10655
|
stepContent: m.stepContent,
|
|
10663
10656
|
id: m.id,
|
|
@@ -10665,10 +10658,10 @@ const Wn = ({
|
|
|
10665
10658
|
forwardButton: m.forwardButton,
|
|
10666
10659
|
hasError: _,
|
|
10667
10660
|
isCurrent: $,
|
|
10668
|
-
isComplete:
|
|
10661
|
+
isComplete: g,
|
|
10669
10662
|
_isFirstStep: p,
|
|
10670
10663
|
"aria-label": C,
|
|
10671
|
-
"aria-posinset":
|
|
10664
|
+
"aria-posinset": f,
|
|
10672
10665
|
"aria-setsize": n,
|
|
10673
10666
|
"aria-current": $ ? "step" : null
|
|
10674
10667
|
}
|
|
@@ -10683,17 +10676,17 @@ const Wn = ({
|
|
|
10683
10676
|
...c
|
|
10684
10677
|
}) => {
|
|
10685
10678
|
const [o] = Z(t), [r, l] = Z(s), [n, d] = Z({ order: "asc", key: "" }), i = (p) => {
|
|
10686
|
-
l(r.sort((
|
|
10679
|
+
l(r.sort((g, _) => g[p].localeCompare(_[p]))), d({ order: "desc", key: p });
|
|
10687
10680
|
}, m = (p) => {
|
|
10688
|
-
l(r.sort((
|
|
10689
|
-
}, v = (p,
|
|
10690
|
-
d({ ...n, key:
|
|
10691
|
-
},
|
|
10692
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", { className: H([$, a]), ...c }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, o.map((p,
|
|
10681
|
+
l(r.sort((g, _) => _[p].localeCompare(g[p]))), d({ order: "asc", key: p });
|
|
10682
|
+
}, v = (p, g) => {
|
|
10683
|
+
d({ ...n, key: g }), n.order === "asc" ? i(g) : m(g);
|
|
10684
|
+
}, f = (p, g) => /* @__PURE__ */ e.createElement("tr", { id: g, key: `table-row-${g}` }, p.map((_, C) => /* @__PURE__ */ e.createElement("td", { key: `${g}-cell-${C}` }, /* @__PURE__ */ e.createElement("span", null, _)))), $ = "pds-table";
|
|
10685
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", { className: H([$, a]), ...c }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, o.map((p, g) => /* @__PURE__ */ e.createElement("th", { key: `header-${g}` }, p.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${$}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10693
10686
|
"span",
|
|
10694
10687
|
{
|
|
10695
10688
|
className: `${$}__sort-header`,
|
|
10696
|
-
onClick: (_) => v(_,
|
|
10689
|
+
onClick: (_) => v(_, g)
|
|
10697
10690
|
},
|
|
10698
10691
|
p.title
|
|
10699
10692
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -10701,24 +10694,24 @@ const Wn = ({
|
|
|
10701
10694
|
{
|
|
10702
10695
|
className: `${$}__sort-button`,
|
|
10703
10696
|
title: `Sort by ${p.title}`,
|
|
10704
|
-
onClick: (_) => v(_,
|
|
10697
|
+
onClick: (_) => v(_, g),
|
|
10705
10698
|
type: "button"
|
|
10706
10699
|
},
|
|
10707
10700
|
/* @__PURE__ */ e.createElement(
|
|
10708
10701
|
"span",
|
|
10709
10702
|
{
|
|
10710
|
-
className: `${$}__sort-button-top ${
|
|
10703
|
+
className: `${$}__sort-button-top ${g != Number(n.key) && n.key !== "" ? "pds-table__sort-inactive" : Number(n.key) == g ? n.order : "asc"}`
|
|
10711
10704
|
},
|
|
10712
10705
|
/* @__PURE__ */ e.createElement(O, { iconName: "caretUp", iconSize: "sm" })
|
|
10713
10706
|
),
|
|
10714
10707
|
/* @__PURE__ */ e.createElement(
|
|
10715
10708
|
"span",
|
|
10716
10709
|
{
|
|
10717
|
-
className: `${$}__sort-button-bottom ${Number(n.key) ==
|
|
10710
|
+
className: `${$}__sort-button-bottom ${Number(n.key) == g ? n.order : "asc"}`
|
|
10718
10711
|
},
|
|
10719
10712
|
/* @__PURE__ */ e.createElement(O, { iconName: "caretDown", iconSize: "sm" })
|
|
10720
10713
|
)
|
|
10721
|
-
)) : /* @__PURE__ */ e.createElement("span", null, p.title))))), /* @__PURE__ */ e.createElement("tbody", null, r.map((p,
|
|
10714
|
+
)) : /* @__PURE__ */ e.createElement("span", null, p.title))))), /* @__PURE__ */ e.createElement("tbody", null, r.map((p, g) => f(p, g)))));
|
|
10722
10715
|
}, Qn = ({
|
|
10723
10716
|
appendIds: t = !1,
|
|
10724
10717
|
ariaLabel: s = "Table of contents",
|
|
@@ -10748,7 +10741,7 @@ const Wn = ({
|
|
|
10748
10741
|
"=",
|
|
10749
10742
|
"|",
|
|
10750
10743
|
"~"
|
|
10751
|
-
], v = `#${l} h2:not(.${o}), h3:not(.${o})`,
|
|
10744
|
+
], v = `#${l} h2:not(.${o}), h3:not(.${o})`, f = (L) => L.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), $ = () => {
|
|
10752
10745
|
const [L, y] = Z([]);
|
|
10753
10746
|
return se(() => {
|
|
10754
10747
|
const w = Array.from(
|
|
@@ -10757,7 +10750,7 @@ const Wn = ({
|
|
|
10757
10750
|
w.map((k) => {
|
|
10758
10751
|
m.forEach((z) => {
|
|
10759
10752
|
k.id.includes(z) && (k.id = k.id.replace(
|
|
10760
|
-
new RegExp(
|
|
10753
|
+
new RegExp(f(z), "g"),
|
|
10761
10754
|
"-"
|
|
10762
10755
|
));
|
|
10763
10756
|
});
|
|
@@ -10777,7 +10770,7 @@ const Wn = ({
|
|
|
10777
10770
|
title: M
|
|
10778
10771
|
});
|
|
10779
10772
|
}), y;
|
|
10780
|
-
}, { nestedHeadings:
|
|
10773
|
+
}, { nestedHeadings: g } = $(), [_, C] = Z();
|
|
10781
10774
|
((L) => {
|
|
10782
10775
|
const y = ne({});
|
|
10783
10776
|
se(() => {
|
|
@@ -10857,7 +10850,7 @@ const Wn = ({
|
|
|
10857
10850
|
},
|
|
10858
10851
|
c
|
|
10859
10852
|
),
|
|
10860
|
-
/* @__PURE__ */ e.createElement(N, { headings:
|
|
10853
|
+
/* @__PURE__ */ e.createElement(N, { headings: g, activeID: _ })
|
|
10861
10854
|
);
|
|
10862
10855
|
}, Jn = ({
|
|
10863
10856
|
ariaLabel: t,
|
|
@@ -10874,9 +10867,9 @@ const Wn = ({
|
|
|
10874
10867
|
c !== void 0 && i(c);
|
|
10875
10868
|
}, [c]);
|
|
10876
10869
|
const m = (p) => {
|
|
10877
|
-
const
|
|
10878
|
-
if (
|
|
10879
|
-
const _ = parseInt(
|
|
10870
|
+
const g = p.currentTarget.getAttribute("data-tabnumber");
|
|
10871
|
+
if (g) {
|
|
10872
|
+
const _ = parseInt(g, 10);
|
|
10880
10873
|
i(_);
|
|
10881
10874
|
}
|
|
10882
10875
|
}, v = ne([]);
|
|
@@ -10892,19 +10885,19 @@ const Wn = ({
|
|
|
10892
10885
|
return;
|
|
10893
10886
|
}
|
|
10894
10887
|
}, [d]);
|
|
10895
|
-
const
|
|
10888
|
+
const f = (p, g) => {
|
|
10896
10889
|
const _ = d;
|
|
10897
|
-
let C = v.current[
|
|
10898
|
-
C || (C =
|
|
10890
|
+
let C = v.current[g === "next" ? _ + 1 < v.current.length ? _ + 1 : 0 : _ - 1 >= 0 ? _ - 1 : v.current.length - 1];
|
|
10891
|
+
C || (C = g == "next" ? v.current[p + 1] == null ? v.current[0] : v.current[p + 1] : v.current[p - 1]), C.focus();
|
|
10899
10892
|
}, $ = (p) => {
|
|
10900
|
-
const
|
|
10901
|
-
|
|
10893
|
+
const g = v.current.length, _ = () => {
|
|
10894
|
+
f((d + 1) % g, "next"), i(d + 1);
|
|
10902
10895
|
}, C = () => {
|
|
10903
|
-
|
|
10896
|
+
f((d - 1 + g) % g, "prev"), i(d - 1);
|
|
10904
10897
|
}, u = () => {
|
|
10905
|
-
|
|
10898
|
+
f(0), i(0);
|
|
10906
10899
|
}, h = () => {
|
|
10907
|
-
g
|
|
10900
|
+
f(g - 1), i(g - 1);
|
|
10908
10901
|
}, E = () => {
|
|
10909
10902
|
v.current[d].focus();
|
|
10910
10903
|
}, N = {
|
|
@@ -10925,7 +10918,7 @@ const Wn = ({
|
|
|
10925
10918
|
"aria-label": t,
|
|
10926
10919
|
"aria-orientation": "horizontal"
|
|
10927
10920
|
},
|
|
10928
|
-
o.map(({ disabled: p, icon:
|
|
10921
|
+
o.map(({ disabled: p, icon: g, tabId: _, tabLabel: C, tally: u }, h) => /* @__PURE__ */ e.createElement(
|
|
10929
10922
|
"button",
|
|
10930
10923
|
{
|
|
10931
10924
|
className: `${n}__tab`,
|
|
@@ -10946,9 +10939,9 @@ const Wn = ({
|
|
|
10946
10939
|
onClick: p ? null : m,
|
|
10947
10940
|
type: "button"
|
|
10948
10941
|
},
|
|
10949
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
10942
|
+
/* @__PURE__ */ e.createElement("div", { key: g, className: `${n}__tab-label` }, g ? /* @__PURE__ */ e.createElement(O, { iconName: g, iconSize: "md" }) : null, " ", C, o[h].tally ? /* @__PURE__ */ e.createElement(wt, { label: u.label, type: u.type }) : null)
|
|
10950
10943
|
))
|
|
10951
|
-
), o.map(({ disabled: p, icon:
|
|
10944
|
+
), o.map(({ disabled: p, icon: g, panelContent: _, tabLabel: C, tally: u }, h) => /* @__PURE__ */ e.createElement(
|
|
10952
10945
|
"div",
|
|
10953
10946
|
{
|
|
10954
10947
|
className: `${n}__panel`,
|
|
@@ -10972,7 +10965,7 @@ const Wn = ({
|
|
|
10972
10965
|
onClick: p ? null : m,
|
|
10973
10966
|
type: "button"
|
|
10974
10967
|
},
|
|
10975
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
10968
|
+
/* @__PURE__ */ e.createElement("div", { key: g, className: `${n}__tab-label` }, g ? /* @__PURE__ */ e.createElement(O, { iconSize: "md", iconName: g }) : null, " ", C, o[h].tally ? /* @__PURE__ */ e.createElement(wt, { label: u.label, type: u.type }) : null),
|
|
10976
10969
|
h == d ? /* @__PURE__ */ e.createElement(
|
|
10977
10970
|
O,
|
|
10978
10971
|
{
|
|
@@ -11032,22 +11025,22 @@ const Wn = ({
|
|
|
11032
11025
|
className: l,
|
|
11033
11026
|
...n
|
|
11034
11027
|
}) => {
|
|
11035
|
-
const [d, i] = Z(!0), m = "pds-tag", v = o ? `${m}--${o}` : `${m}--${ws(r)}`,
|
|
11028
|
+
const [d, i] = Z(!0), m = "pds-tag", v = o ? `${m}--${o}` : `${m}--${ws(r)}`, f = d ? null : "pds-tag--hide", $ = () => {
|
|
11036
11029
|
i((C) => !C);
|
|
11037
11030
|
};
|
|
11038
|
-
let p,
|
|
11031
|
+
let p, g, _;
|
|
11039
11032
|
if (t && !s && fe(t)) {
|
|
11040
11033
|
p = t.type;
|
|
11041
11034
|
const C = t.props;
|
|
11042
|
-
|
|
11035
|
+
g = C.href ? "href" : "to", _ = g === "href" ? C.href : C.to;
|
|
11043
11036
|
} else
|
|
11044
|
-
p = "span",
|
|
11037
|
+
p = "span", g = null, _ = null;
|
|
11045
11038
|
return /* @__PURE__ */ e.createElement(
|
|
11046
11039
|
p,
|
|
11047
11040
|
{
|
|
11048
|
-
href:
|
|
11049
|
-
to:
|
|
11050
|
-
className: [m, v,
|
|
11041
|
+
href: g === "href" ? _ : null,
|
|
11042
|
+
to: g === "to" ? _ : null,
|
|
11043
|
+
className: [m, v, f, l].join(" ").trim().replace(/\s+/g, " "),
|
|
11051
11044
|
...n
|
|
11052
11045
|
},
|
|
11053
11046
|
/* @__PURE__ */ e.createElement("span", { className: `${m}__label`, title: r }, ys(r, 20)),
|
|
@@ -11143,8 +11136,8 @@ const Wn = ({
|
|
|
11143
11136
|
alt: i,
|
|
11144
11137
|
name: m,
|
|
11145
11138
|
title: v,
|
|
11146
|
-
org:
|
|
11147
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("div", { className: `${o}__image ${o}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: d, alt: i })), m && /* @__PURE__ */ e.createElement("div", { className: `${o}__name` }, m), v && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, v),
|
|
11139
|
+
org: f
|
|
11140
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("div", { className: `${o}__image ${o}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: d, alt: i })), m && /* @__PURE__ */ e.createElement("div", { className: `${o}__name` }, m), v && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, v), f && /* @__PURE__ */ e.createElement("div", { className: `${o}__org` }, f)), l = (d) => {
|
|
11148
11141
|
if (fe(d.linkContent)) {
|
|
11149
11142
|
const i = d.linkContent, m = Object.assign({}, i.props, {
|
|
11150
11143
|
children: /* @__PURE__ */ e.createElement(r, { ...d }),
|
|
@@ -11253,12 +11246,12 @@ const Wn = ({
|
|
|
11253
11246
|
sidebarExpandedWidth: i = "15%",
|
|
11254
11247
|
sidebarExpandedWidthMin: m = 13,
|
|
11255
11248
|
sidebarProps: v,
|
|
11256
|
-
className:
|
|
11249
|
+
className: f,
|
|
11257
11250
|
...$
|
|
11258
11251
|
}) => {
|
|
11259
11252
|
let p = !1;
|
|
11260
|
-
const
|
|
11261
|
-
|
|
11253
|
+
const g = ge(be);
|
|
11254
|
+
g && (p = g.isMobile);
|
|
11262
11255
|
const [_, C] = Z(
|
|
11263
11256
|
c || !1
|
|
11264
11257
|
);
|
|
@@ -11326,7 +11319,7 @@ const Wn = ({
|
|
|
11326
11319
|
u,
|
|
11327
11320
|
E,
|
|
11328
11321
|
h,
|
|
11329
|
-
|
|
11322
|
+
f ?? ""
|
|
11330
11323
|
]),
|
|
11331
11324
|
...$
|
|
11332
11325
|
},
|
|
@@ -11367,7 +11360,7 @@ const Wn = ({
|
|
|
11367
11360
|
const n = "pds-docs-layout", d = r ? `${n}--isMobile` : null, i = {
|
|
11368
11361
|
width: s,
|
|
11369
11362
|
minWidth: `${a}rem`
|
|
11370
|
-
}, m = Se(t), v = m.__unslotted || m.content,
|
|
11363
|
+
}, m = Se(t), v = m.__unslotted || m.content, f = m.sidebar, $ = /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar` }, f), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, v)), p = /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar`, style: i }, /* @__PURE__ */ e.createElement("div", { className: `${n}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, v));
|
|
11371
11364
|
return /* @__PURE__ */ e.createElement(
|
|
11372
11365
|
"div",
|
|
11373
11366
|
{
|
|
@@ -11394,7 +11387,7 @@ const Wn = ({
|
|
|
11394
11387
|
mobileFlexWrap: i,
|
|
11395
11388
|
mobileGap: m,
|
|
11396
11389
|
mobileJustifyContent: v,
|
|
11397
|
-
children:
|
|
11390
|
+
children: f,
|
|
11398
11391
|
className: $,
|
|
11399
11392
|
...p
|
|
11400
11393
|
}) => {
|
|
@@ -11429,7 +11422,7 @@ const Wn = ({
|
|
|
11429
11422
|
]),
|
|
11430
11423
|
...p
|
|
11431
11424
|
},
|
|
11432
|
-
|
|
11425
|
+
f
|
|
11433
11426
|
);
|
|
11434
11427
|
}, oa = ({
|
|
11435
11428
|
children: t,
|
|
@@ -11447,23 +11440,23 @@ const Wn = ({
|
|
|
11447
11440
|
let m = !1;
|
|
11448
11441
|
const v = ge(be);
|
|
11449
11442
|
v && (m = v.isMobile);
|
|
11450
|
-
const
|
|
11443
|
+
const f = Se(t);
|
|
11451
11444
|
let $ = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", p = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
11452
11445
|
o === "narrow" && ($ = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", p = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), o === "wide" && ($ = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", p = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
11453
|
-
const
|
|
11446
|
+
const g = /* @__PURE__ */ e.createElement(
|
|
11454
11447
|
"div",
|
|
11455
11448
|
{
|
|
11456
11449
|
key: "content",
|
|
11457
11450
|
className: `${n}__main ${m ? "pds-grid-item" : $}`
|
|
11458
11451
|
},
|
|
11459
|
-
|
|
11452
|
+
f.content
|
|
11460
11453
|
), _ = /* @__PURE__ */ e.createElement(
|
|
11461
11454
|
"div",
|
|
11462
11455
|
{
|
|
11463
11456
|
key: "sidebar",
|
|
11464
11457
|
className: `${n}__side ${m ? "pds-grid-item" : p}`
|
|
11465
11458
|
},
|
|
11466
|
-
|
|
11459
|
+
f.sidebar
|
|
11467
11460
|
);
|
|
11468
11461
|
return /* @__PURE__ */ e.createElement(
|
|
11469
11462
|
"div",
|
|
@@ -11476,7 +11469,7 @@ const Wn = ({
|
|
|
11476
11469
|
]),
|
|
11477
11470
|
...l
|
|
11478
11471
|
},
|
|
11479
|
-
m ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, _,
|
|
11472
|
+
m ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, _, g) : /* @__PURE__ */ e.createElement(e.Fragment, null, g, _) : a === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, _, g) : /* @__PURE__ */ e.createElement(e.Fragment, null, g, _)
|
|
11480
11473
|
);
|
|
11481
11474
|
}, ma = ({
|
|
11482
11475
|
children: t,
|
|
@@ -11537,19 +11530,19 @@ const Wn = ({
|
|
|
11537
11530
|
className: o,
|
|
11538
11531
|
...r
|
|
11539
11532
|
}) => {
|
|
11540
|
-
const l = "pds-two-item-layout", n = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${l}--${c}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], v = ["pds-grid-item--md-8", "pds-grid-item--lg-9"],
|
|
11533
|
+
const l = "pds-two-item-layout", n = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${l}--${c}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], v = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], f = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
11541
11534
|
let $, p;
|
|
11542
11535
|
switch (a) {
|
|
11543
11536
|
case "equal":
|
|
11544
|
-
$ =
|
|
11537
|
+
$ = f.concat(i), p = f.concat(i);
|
|
11545
11538
|
break;
|
|
11546
11539
|
case "one-third-start":
|
|
11547
|
-
$ =
|
|
11540
|
+
$ = f.concat(m), p = f.concat(v);
|
|
11548
11541
|
break;
|
|
11549
11542
|
case "one-third-end":
|
|
11550
|
-
$ =
|
|
11543
|
+
$ = f.concat(v), p = f.concat(m);
|
|
11551
11544
|
}
|
|
11552
|
-
const
|
|
11545
|
+
const g = Se(t), _ = g["first-item"], C = g["second-item"];
|
|
11553
11546
|
return /* @__PURE__ */ e.createElement(
|
|
11554
11547
|
"div",
|
|
11555
11548
|
{
|