@pantheon-systems/pds-toolkit-react 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/components/ComparisonList/ComparisonList.d.ts +5 -1
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -1
- package/_dist/css/component-css/pds-comparison-list.css +1 -1
- package/_dist/css/component-css/pds-expansion-panel.css +1 -1
- package/_dist/css/component-css/pds-index.css +2 -2
- package/_dist/css/layout-css/pds-app-layout.css +2 -0
- package/_dist/css/layout-css/pds-dashboard-global.css +8 -0
- package/_dist/css/layout-css/pds-dashboard-inner.css +1 -0
- package/_dist/css/layout-css/pds-docs-layout.css +1 -0
- package/_dist/css/layout-css/pds-flex-container.css +1 -0
- package/_dist/css/layout-css/pds-index.css +9 -0
- package/_dist/css/layout-css/pds-stepper-layout.css +1 -0
- package/_dist/css/layout-css/pds-three-item-layout.css +1 -0
- package/_dist/css/layout-css/pds-two-item-layout.css +1 -0
- package/_dist/css/pds-components.css +2 -2
- package/_dist/docs/mcp-url-detector.d.ts +7 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +849 -831
- package/_dist/index.js.map +1 -1
- package/package.json +5 -6
package/_dist/index.js
CHANGED
|
@@ -868,7 +868,7 @@ import './index.css';const lt = () => Math.random().toString(32).substring(2, 13
|
|
|
868
868
|
uniqueId: i,
|
|
869
869
|
...n
|
|
870
870
|
}) => {
|
|
871
|
-
const m = "pds-avatar", o = `${m}--${l}`, u = a ? `${m}--image` : null, [_, h] = B(void 0),
|
|
871
|
+
const m = "pds-avatar", o = `${m}--${l}`, u = a ? `${m}--image` : null, [_, h] = B(void 0), C = {
|
|
872
872
|
backgroundImage: i ? `var(--pds-color-gradient-avatar-${o1(i)})` : null,
|
|
873
873
|
borderRadius: "100%",
|
|
874
874
|
height: "100%",
|
|
@@ -885,7 +885,7 @@ import './index.css';const lt = () => Math.random().toString(32).substring(2, 13
|
|
|
885
885
|
onLoad: () => h(!1),
|
|
886
886
|
src: `${a}`
|
|
887
887
|
}
|
|
888
|
-
) : /* @__PURE__ */ e.createElement("span", { style:
|
|
888
|
+
) : /* @__PURE__ */ e.createElement("span", { style: C }, t && /* @__PURE__ */ e.createElement(D, { className: `${m}__user-icon`, iconName: "user" })), g = /* @__PURE__ */ e.createElement("span", { className: `${m}__content` }, f), y = c && Ee(c) ? Re(
|
|
889
889
|
c,
|
|
890
890
|
Object.assign({}, c.props, {
|
|
891
891
|
className: `${m}__content ${m}__content--link`,
|
|
@@ -899,7 +899,7 @@ import './index.css';const lt = () => Math.random().toString(32).substring(2, 13
|
|
|
899
899
|
className: H([m, o, u, r]),
|
|
900
900
|
...n
|
|
901
901
|
},
|
|
902
|
-
c ?
|
|
902
|
+
c ? y : g
|
|
903
903
|
);
|
|
904
904
|
}, vt = ({
|
|
905
905
|
className: s,
|
|
@@ -978,29 +978,29 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
978
978
|
zIndex: o = i1,
|
|
979
979
|
...u
|
|
980
980
|
}) => {
|
|
981
|
-
const [_, h] = B(!1), v = typeof t,
|
|
982
|
-
`${
|
|
983
|
-
v === "string" ? `${
|
|
984
|
-
]),
|
|
985
|
-
`${
|
|
986
|
-
`${
|
|
987
|
-
]), { context:
|
|
981
|
+
const [_, h] = B(!1), v = typeof t, C = "pds-tooltip", f = H([
|
|
982
|
+
`${C}__trigger-custom`,
|
|
983
|
+
v === "string" ? `${C}__trigger-text` : null
|
|
984
|
+
]), g = H([
|
|
985
|
+
`${C}__trigger`,
|
|
986
|
+
`${C}__trigger--${n}`
|
|
987
|
+
]), { context: y, floatingStyles: p, refs: d } = He({
|
|
988
988
|
placement: c,
|
|
989
989
|
open: _,
|
|
990
990
|
onOpenChange: h,
|
|
991
991
|
middleware: [Ue(a), We(), mt()],
|
|
992
992
|
whileElementsMounted: ze
|
|
993
|
-
}), E = Et(
|
|
993
|
+
}), E = Et(y, {
|
|
994
994
|
restMs: 300,
|
|
995
995
|
delay: { open: 100, close: 0 },
|
|
996
996
|
move: !1
|
|
997
|
-
}),
|
|
997
|
+
}), $ = Jt(y), N = De(y), w = Fe(y, { role: "tooltip" }), { getFloatingProps: L, getReferenceProps: b } = Te([
|
|
998
998
|
E,
|
|
999
|
-
|
|
999
|
+
$,
|
|
1000
1000
|
N,
|
|
1001
1001
|
w
|
|
1002
1002
|
]);
|
|
1003
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([
|
|
1003
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([C, s ?? ""]), ...u }, t ? /* @__PURE__ */ e.createElement(
|
|
1004
1004
|
"span",
|
|
1005
1005
|
{
|
|
1006
1006
|
ref: d.setReference,
|
|
@@ -1013,14 +1013,14 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1013
1013
|
{
|
|
1014
1014
|
ref: d.setReference,
|
|
1015
1015
|
"aria-label": l,
|
|
1016
|
-
className:
|
|
1016
|
+
className: g,
|
|
1017
1017
|
type: "button",
|
|
1018
1018
|
...b()
|
|
1019
1019
|
},
|
|
1020
1020
|
/* @__PURE__ */ e.createElement(
|
|
1021
1021
|
D,
|
|
1022
1022
|
{
|
|
1023
|
-
className: `${
|
|
1023
|
+
className: `${C}__icon`,
|
|
1024
1024
|
iconName: i,
|
|
1025
1025
|
iconSize: m
|
|
1026
1026
|
}
|
|
@@ -1030,7 +1030,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1030
1030
|
{
|
|
1031
1031
|
ref: d.setFloating,
|
|
1032
1032
|
"aria-hidden": !_,
|
|
1033
|
-
className: `${
|
|
1033
|
+
className: `${C}__container`,
|
|
1034
1034
|
style: {
|
|
1035
1035
|
...p,
|
|
1036
1036
|
zIndex: o,
|
|
@@ -1054,13 +1054,13 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1054
1054
|
...m
|
|
1055
1055
|
}) => {
|
|
1056
1056
|
const o = "pds-branch-diff", u = t ? `${o}--loading` : null, _ = t ? "pds-pulse" : null, h = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
1057
|
-
let v = Math.max(0, c),
|
|
1058
|
-
t && (v = 1,
|
|
1059
|
-
const f = Math.max(v,
|
|
1060
|
-
let
|
|
1057
|
+
let v = Math.max(0, c), C = Math.max(0, i);
|
|
1058
|
+
t && (v = 1, C = 1);
|
|
1059
|
+
const f = Math.max(v, C);
|
|
1060
|
+
let g = f > 0 ? C / f * 100 : 0, y = f > 0 ? v / f * 100 : 0;
|
|
1061
1061
|
const p = 10;
|
|
1062
|
-
|
|
1063
|
-
const d = t ? a : `${
|
|
1062
|
+
g < p ? (g = p, y = 100 - p) : y < p && (y = p, g = 100 - p);
|
|
1063
|
+
const d = t ? a : `${C} ${n} & ${v} ${l}`;
|
|
1064
1064
|
return /* @__PURE__ */ e.createElement(
|
|
1065
1065
|
"div",
|
|
1066
1066
|
{
|
|
@@ -1077,15 +1077,15 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1077
1077
|
{
|
|
1078
1078
|
className: `${o}__segment ${o}__segment--behind`
|
|
1079
1079
|
},
|
|
1080
|
-
/* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, !t &&
|
|
1081
|
-
|
|
1080
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__number` }, !t && C),
|
|
1081
|
+
C > 0 && /* @__PURE__ */ e.createElement(
|
|
1082
1082
|
"div",
|
|
1083
1083
|
{
|
|
1084
1084
|
className: H([
|
|
1085
1085
|
`${o}__line ${o}__line--behind`,
|
|
1086
1086
|
_
|
|
1087
1087
|
]),
|
|
1088
|
-
style: { width: `${
|
|
1088
|
+
style: { width: `${g}%` }
|
|
1089
1089
|
}
|
|
1090
1090
|
)
|
|
1091
1091
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -1101,7 +1101,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1101
1101
|
`${o}__line ${o}__line--ahead`,
|
|
1102
1102
|
_
|
|
1103
1103
|
]),
|
|
1104
|
-
style: { width: `${
|
|
1104
|
+
style: { width: `${y}%` }
|
|
1105
1105
|
}
|
|
1106
1106
|
)
|
|
1107
1107
|
)),
|
|
@@ -1330,9 +1330,9 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1330
1330
|
size: _ = "md",
|
|
1331
1331
|
tooltipText: h,
|
|
1332
1332
|
variant: v = "primary",
|
|
1333
|
-
...
|
|
1333
|
+
...C
|
|
1334
1334
|
}, f) => {
|
|
1335
|
-
const
|
|
1335
|
+
const g = "pds-button", y = _ !== "md" ? `${g}--${_}` : null, p = v !== "primary" ? `${g}--${v}` : null, d = i ? `${g}--full-width` : null;
|
|
1336
1336
|
let E;
|
|
1337
1337
|
switch (_) {
|
|
1338
1338
|
case "sm":
|
|
@@ -1344,25 +1344,25 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1344
1344
|
case "lg":
|
|
1345
1345
|
E = "lg";
|
|
1346
1346
|
}
|
|
1347
|
-
const
|
|
1347
|
+
const $ = /* @__PURE__ */ e.createElement(
|
|
1348
1348
|
D,
|
|
1349
1349
|
{
|
|
1350
1350
|
key: "icon",
|
|
1351
|
-
className: `${
|
|
1351
|
+
className: `${g}__icon`,
|
|
1352
1352
|
iconName: l,
|
|
1353
1353
|
iconSize: E
|
|
1354
1354
|
}
|
|
1355
1355
|
);
|
|
1356
1356
|
let N = [o];
|
|
1357
|
-
c == "icon-start" && l && N.unshift(
|
|
1357
|
+
c == "icon-start" && l && N.unshift($), c == "icon-end" && l && N.push($), m && (N = [$], s = a2(o));
|
|
1358
1358
|
const w = /* @__PURE__ */ e.createElement(
|
|
1359
1359
|
"button",
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: f,
|
|
1362
1362
|
"aria-label": s,
|
|
1363
1363
|
className: H([
|
|
1364
|
-
|
|
1365
|
-
|
|
1364
|
+
g,
|
|
1365
|
+
y,
|
|
1366
1366
|
p,
|
|
1367
1367
|
d,
|
|
1368
1368
|
t
|
|
@@ -1370,9 +1370,9 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1370
1370
|
disabled: a || n,
|
|
1371
1371
|
onClick: u,
|
|
1372
1372
|
type: r,
|
|
1373
|
-
...
|
|
1373
|
+
...C
|
|
1374
1374
|
},
|
|
1375
|
-
n && /* @__PURE__ */ e.createElement(ot, { className: `${
|
|
1375
|
+
n && /* @__PURE__ */ e.createElement(ot, { className: `${g}__loading-indicator`, size: "md" }),
|
|
1376
1376
|
N
|
|
1377
1377
|
);
|
|
1378
1378
|
return (a || n) && h ? /* @__PURE__ */ e.createElement(Ae, { content: h, customTrigger: w }) : /* @__PURE__ */ e.createElement(e.Fragment, null, w);
|
|
@@ -1392,7 +1392,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1392
1392
|
u,
|
|
1393
1393
|
_,
|
|
1394
1394
|
h
|
|
1395
|
-
]),
|
|
1395
|
+
]), C = Ee(c) ? c.props.children : null, f = /* @__PURE__ */ e.createElement(
|
|
1396
1396
|
D,
|
|
1397
1397
|
{
|
|
1398
1398
|
key: a,
|
|
@@ -1401,13 +1401,13 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1401
1401
|
iconSize: l
|
|
1402
1402
|
}
|
|
1403
1403
|
);
|
|
1404
|
-
let
|
|
1405
|
-
t === "icon-start" && a ?
|
|
1406
|
-
const
|
|
1404
|
+
let g = [C];
|
|
1405
|
+
t === "icon-start" && a ? g = [f, C] : t === "icon-end" && a && (g = [C, f]);
|
|
1406
|
+
const y = Ee(c) ? Re(
|
|
1407
1407
|
c,
|
|
1408
1408
|
Object.assign({}, c.props, {
|
|
1409
1409
|
className: v,
|
|
1410
|
-
children:
|
|
1410
|
+
children: g
|
|
1411
1411
|
})
|
|
1412
1412
|
) : null;
|
|
1413
1413
|
return r ? /* @__PURE__ */ e.createElement(
|
|
@@ -1415,12 +1415,12 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1415
1415
|
{
|
|
1416
1416
|
disabled: !0,
|
|
1417
1417
|
className: H([o, s ?? ""]),
|
|
1418
|
-
label:
|
|
1418
|
+
label: g,
|
|
1419
1419
|
size: l,
|
|
1420
1420
|
tooltipText: i ?? null,
|
|
1421
1421
|
variant: n
|
|
1422
1422
|
}
|
|
1423
|
-
) : /* @__PURE__ */ e.createElement("span", { className: H([o, s ?? ""]), ...m },
|
|
1423
|
+
) : /* @__PURE__ */ e.createElement("span", { className: H([o, s ?? ""]), ...m }, y);
|
|
1424
1424
|
}, p1 = (s, r) => {
|
|
1425
1425
|
const [t, a] = B(!1), c = r?.duration;
|
|
1426
1426
|
return me(() => {
|
|
@@ -1451,23 +1451,23 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1451
1451
|
variant: o = "standard",
|
|
1452
1452
|
...u
|
|
1453
1453
|
}, _) => {
|
|
1454
|
-
const h = "pds-icon-button", v = m !== "md" ? `${h}--${m}` : null,
|
|
1454
|
+
const h = "pds-icon-button", v = m !== "md" ? `${h}--${m}` : null, C = o !== "standard" ? `${h}--${o}` : null, f = {
|
|
1455
1455
|
fadeOut: `${h}--fadeOut`,
|
|
1456
1456
|
hide: `${h}--hide`,
|
|
1457
1457
|
scaleIn: `${h}--scaleIn`
|
|
1458
1458
|
};
|
|
1459
|
-
let
|
|
1459
|
+
let g, y;
|
|
1460
1460
|
switch (m) {
|
|
1461
1461
|
case "sm":
|
|
1462
|
-
|
|
1462
|
+
y = "md", g = 8;
|
|
1463
1463
|
break;
|
|
1464
1464
|
case "md":
|
|
1465
|
-
|
|
1465
|
+
y = "md", g = 11;
|
|
1466
1466
|
break;
|
|
1467
1467
|
case "lg":
|
|
1468
|
-
|
|
1468
|
+
y = "xl", g = 12;
|
|
1469
1469
|
}
|
|
1470
|
-
const p = l !== null, d = ue(null), E = ue(null),
|
|
1470
|
+
const p = l !== null, d = ue(null), E = ue(null), $ = () => {
|
|
1471
1471
|
d.current.classList.add(f.fadeOut), d.current.classList.add(f.hide), E.current.classList.remove(f.hide), E.current.classList.add(f.scaleIn), setTimeout(() => {
|
|
1472
1472
|
d.current.classList.remove(
|
|
1473
1473
|
f.fadeOut,
|
|
@@ -1475,13 +1475,13 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1475
1475
|
), d.current.classList.add(f.scaleIn), E.current.classList.remove(f.scaleIn), E.current.classList.add(f.hide);
|
|
1476
1476
|
}, 2e3);
|
|
1477
1477
|
}, N = (L) => {
|
|
1478
|
-
p &&
|
|
1478
|
+
p && $(), n && n(L);
|
|
1479
1479
|
}, w = p ? /* @__PURE__ */ e.createElement("div", { className: `${h}__content` }, /* @__PURE__ */ e.createElement("div", { ref: d, className: `${h}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1480
1480
|
D,
|
|
1481
1481
|
{
|
|
1482
1482
|
className: `${h}__icon`,
|
|
1483
1483
|
iconName: i,
|
|
1484
|
-
iconSize:
|
|
1484
|
+
iconSize: y
|
|
1485
1485
|
}
|
|
1486
1486
|
)), /* @__PURE__ */ e.createElement(
|
|
1487
1487
|
"div",
|
|
@@ -1494,7 +1494,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1494
1494
|
{
|
|
1495
1495
|
className: `${h}__icon`,
|
|
1496
1496
|
iconName: l,
|
|
1497
|
-
iconSize:
|
|
1497
|
+
iconSize: y
|
|
1498
1498
|
}
|
|
1499
1499
|
)
|
|
1500
1500
|
)) : /* @__PURE__ */ e.createElement("div", { className: `${h}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -1502,7 +1502,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1502
1502
|
{
|
|
1503
1503
|
className: `${h}__icon`,
|
|
1504
1504
|
iconName: i,
|
|
1505
|
-
iconSize:
|
|
1505
|
+
iconSize: y
|
|
1506
1506
|
}
|
|
1507
1507
|
));
|
|
1508
1508
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1513,7 +1513,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1513
1513
|
className: H([
|
|
1514
1514
|
h,
|
|
1515
1515
|
v,
|
|
1516
|
-
|
|
1516
|
+
C,
|
|
1517
1517
|
t
|
|
1518
1518
|
]),
|
|
1519
1519
|
disabled: a,
|
|
@@ -1528,7 +1528,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1528
1528
|
className: `${h}__tooltip`,
|
|
1529
1529
|
content: s,
|
|
1530
1530
|
customTrigger: w,
|
|
1531
|
-
offsetValue:
|
|
1531
|
+
offsetValue: g
|
|
1532
1532
|
}
|
|
1533
1533
|
) : w
|
|
1534
1534
|
);
|
|
@@ -1642,27 +1642,27 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1642
1642
|
testId: _,
|
|
1643
1643
|
undefinedLabel: h = "Unlabeled group",
|
|
1644
1644
|
variant: v = "primary",
|
|
1645
|
-
withinNavbar:
|
|
1645
|
+
withinNavbar: C,
|
|
1646
1646
|
...f
|
|
1647
1647
|
}) => {
|
|
1648
|
-
const { placement:
|
|
1648
|
+
const { placement: g, refs: y, strategy: p, x: d, y: E } = He({
|
|
1649
1649
|
placement: "bottom-start",
|
|
1650
1650
|
middleware: [We()],
|
|
1651
1651
|
whileElementsMounted: ze
|
|
1652
1652
|
});
|
|
1653
|
-
let
|
|
1653
|
+
let $ = !1;
|
|
1654
1654
|
const N = ye(Me);
|
|
1655
|
-
N && (
|
|
1656
|
-
const w = v === "navbar" &&
|
|
1655
|
+
N && ($ = N.isMobile);
|
|
1656
|
+
const w = v === "navbar" && $, L = "pds-menu-button", b = w ? `${L}--isMobile` : null, k = C ? `${L}--navbar` : null, M = c, [z] = B(`menu-button-${c}`), T = y.floating, A = ue(null), [V, I] = B(!1), [Z, W] = B(!1), [X, ce] = B(""), [te, se] = B(0), Y = ue([]), S = ue([]), x = ue([]);
|
|
1657
1657
|
j2(() => {
|
|
1658
1658
|
window.addEventListener("mousedown", ae, !0);
|
|
1659
1659
|
const P = T.current;
|
|
1660
|
-
return P && (P.dataset.fuiPlacement =
|
|
1660
|
+
return P && (P.dataset.fuiPlacement = g), Z && (setTimeout(() => {
|
|
1661
1661
|
P.focus();
|
|
1662
1662
|
}, 0), W(!1)), () => {
|
|
1663
1663
|
window.removeEventListener("mousedown", ae, !0);
|
|
1664
1664
|
};
|
|
1665
|
-
}, [V,
|
|
1665
|
+
}, [V, g]);
|
|
1666
1666
|
const O = (P, ee) => {
|
|
1667
1667
|
ce(P), se(ee);
|
|
1668
1668
|
}, F = () => {
|
|
@@ -1896,7 +1896,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1896
1896
|
Ot || Tt
|
|
1897
1897
|
), ie = j.length > 0;
|
|
1898
1898
|
let le = [`${L}__listbox`];
|
|
1899
|
-
if (
|
|
1899
|
+
if (C && le.push(`${L}__listbox--navbar`), m === "end" && le.push(`${L}__listbox--end`), t === "icon-only" && le.push(`${L}__listbox--icon-only`), le = H(le), ie) {
|
|
1900
1900
|
const ge = ve(P, j);
|
|
1901
1901
|
ge.forEach(() => {
|
|
1902
1902
|
Y.current.push(lt());
|
|
@@ -1908,7 +1908,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1908
1908
|
return /* @__PURE__ */ e.createElement(
|
|
1909
1909
|
"div",
|
|
1910
1910
|
{
|
|
1911
|
-
ref:
|
|
1911
|
+
ref: y.setFloating,
|
|
1912
1912
|
"aria-activedescendant": X !== "" ? X : ke,
|
|
1913
1913
|
"aria-labelledby": M,
|
|
1914
1914
|
className: le.toString(),
|
|
@@ -1950,7 +1950,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1950
1950
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1951
1951
|
"ul",
|
|
1952
1952
|
{
|
|
1953
|
-
ref:
|
|
1953
|
+
ref: y.setFloating,
|
|
1954
1954
|
"aria-activedescendant": X !== "" ? X : ge,
|
|
1955
1955
|
"aria-labelledby": M,
|
|
1956
1956
|
className: le.toString(),
|
|
@@ -1974,7 +1974,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1974
1974
|
if (t === "icon-end" && (we = /* @__PURE__ */ e.createElement(
|
|
1975
1975
|
Oe,
|
|
1976
1976
|
{
|
|
1977
|
-
ref:
|
|
1977
|
+
ref: y.setReference,
|
|
1978
1978
|
"aria-controls": z,
|
|
1979
1979
|
"aria-expanded": V,
|
|
1980
1980
|
"aria-haspopup": "true",
|
|
@@ -1996,7 +1996,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
1996
1996
|
we = /* @__PURE__ */ e.createElement(
|
|
1997
1997
|
xt,
|
|
1998
1998
|
{
|
|
1999
|
-
ref:
|
|
1999
|
+
ref: y.setReference,
|
|
2000
2000
|
"aria-controls": z,
|
|
2001
2001
|
"aria-expanded": V,
|
|
2002
2002
|
"aria-haspopup": "true",
|
|
@@ -2075,10 +2075,10 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2075
2075
|
value: m,
|
|
2076
2076
|
...o
|
|
2077
2077
|
}) => {
|
|
2078
|
-
const u = "pds-segmented-button", _ = t ? "pds-is-disabled" : null, h = n !== "md" ? `${u}--${n}` : null, v = typeof m < "u",
|
|
2079
|
-
|
|
2080
|
-
),
|
|
2081
|
-
|
|
2078
|
+
const u = "pds-segmented-button", _ = t ? "pds-is-disabled" : null, h = n !== "md" ? `${u}--${n}` : null, v = typeof m < "u", C = typeof r < "u", [f, g] = B(
|
|
2079
|
+
C ? r : ""
|
|
2080
|
+
), y = (p) => {
|
|
2081
|
+
g(p.target.value), l && l(p.target.value);
|
|
2082
2082
|
};
|
|
2083
2083
|
if (i.length >= 2 && i.length <= 6)
|
|
2084
2084
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2094,12 +2094,12 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2094
2094
|
},
|
|
2095
2095
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
2096
2096
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, i.map((p, d) => {
|
|
2097
|
-
const E = v ? m === p.value : f === p.value,
|
|
2097
|
+
const E = v ? m === p.value : f === p.value, $ = `${u}__option`, N = E ? `${$}--checked` : null;
|
|
2098
2098
|
return /* @__PURE__ */ e.createElement(
|
|
2099
2099
|
"div",
|
|
2100
2100
|
{
|
|
2101
2101
|
key: `${a}-option-${d}`,
|
|
2102
|
-
className: H([
|
|
2102
|
+
className: H([$, N])
|
|
2103
2103
|
},
|
|
2104
2104
|
/* @__PURE__ */ e.createElement(
|
|
2105
2105
|
"input",
|
|
@@ -2109,7 +2109,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2109
2109
|
disabled: t || p.disabled,
|
|
2110
2110
|
id: p.id ? p.id : `${a}-option-${d}`,
|
|
2111
2111
|
name: a,
|
|
2112
|
-
onChange:
|
|
2112
|
+
onChange: y,
|
|
2113
2113
|
type: "radio",
|
|
2114
2114
|
value: p.value
|
|
2115
2115
|
}
|
|
@@ -2212,9 +2212,9 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2212
2212
|
linkContent: _,
|
|
2213
2213
|
onClick: h,
|
|
2214
2214
|
tooltipText: v,
|
|
2215
|
-
...
|
|
2215
|
+
...C
|
|
2216
2216
|
}) => {
|
|
2217
|
-
const f = "pds-utility-button",
|
|
2217
|
+
const f = "pds-utility-button", g = a ? `${f}--border` : null, y = i ? `${f}--critical` : null, p = t ? `${f}--disabled` : null, d = n ? `${f}--loading` : null, E = o ? `${f}--working` : null, $ = m ? `${f}--monospace` : null, N = n ? "pds-pulse" : null;
|
|
2218
2218
|
if (_ && !t) {
|
|
2219
2219
|
const b = Ee(_) ? _.props.children : null, k = [];
|
|
2220
2220
|
l === "before" && c && !o && k.push(
|
|
@@ -2264,15 +2264,15 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2264
2264
|
{
|
|
2265
2265
|
className: H([
|
|
2266
2266
|
f,
|
|
2267
|
-
|
|
2268
|
-
|
|
2267
|
+
g,
|
|
2268
|
+
y,
|
|
2269
2269
|
p,
|
|
2270
2270
|
d,
|
|
2271
2271
|
E,
|
|
2272
|
-
|
|
2272
|
+
$,
|
|
2273
2273
|
r ?? ""
|
|
2274
2274
|
]),
|
|
2275
|
-
...
|
|
2275
|
+
...C
|
|
2276
2276
|
},
|
|
2277
2277
|
v ? /* @__PURE__ */ e.createElement(Ae, { content: v, customTrigger: M }) : M
|
|
2278
2278
|
);
|
|
@@ -2303,15 +2303,15 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2303
2303
|
{
|
|
2304
2304
|
className: H([
|
|
2305
2305
|
f,
|
|
2306
|
-
|
|
2307
|
-
|
|
2306
|
+
g,
|
|
2307
|
+
y,
|
|
2308
2308
|
p,
|
|
2309
2309
|
d,
|
|
2310
2310
|
E,
|
|
2311
|
-
|
|
2311
|
+
$,
|
|
2312
2312
|
r ?? ""
|
|
2313
2313
|
]),
|
|
2314
|
-
...
|
|
2314
|
+
...C
|
|
2315
2315
|
},
|
|
2316
2316
|
v ? /* @__PURE__ */ e.createElement(Ae, { content: v, customTrigger: L }) : L
|
|
2317
2317
|
);
|
|
@@ -2411,9 +2411,9 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
2411
2411
|
c === "center" && (u = `${o}__legend ${o}__legend--center`), c === "hidden" && (u = `${o}__legend visually-hidden`);
|
|
2412
2412
|
const [_, h] = B(r), v = (d) => {
|
|
2413
2413
|
h(d.currentTarget.value), i && i(d.currentTarget.value);
|
|
2414
|
-
},
|
|
2414
|
+
}, C = n.length, f = "pds-grid-item", g = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", y = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2415
2415
|
let p = "";
|
|
2416
|
-
return l === "twoAcross" ? p =
|
|
2416
|
+
return l === "twoAcross" ? p = g : l === "threeAcross" ? p = y : l === "auto" && (C === 1 ? p = f : C % 3 === 0 ? p = y : C % 2 === 0 ? p = g : p = y), /* @__PURE__ */ e.createElement(
|
|
2417
2417
|
"fieldset",
|
|
2418
2418
|
{
|
|
2419
2419
|
className: H([o, s]),
|
|
@@ -3167,14 +3167,14 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3167
3167
|
title: m,
|
|
3168
3168
|
...o
|
|
3169
3169
|
}) => {
|
|
3170
|
-
const u = "pds-new-site-card", _ = c.type, v = t && ["bitbucket", "github", "gitlab"].includes(t),
|
|
3170
|
+
const u = "pds-new-site-card", _ = c.type, v = t && ["bitbucket", "github", "gitlab"].includes(t), C = t === "pantheon", f = /* @__PURE__ */ e.createElement(Vt, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { className: `${u}__main`, slot: "main" }, /* @__PURE__ */ e.createElement(
|
|
3171
3171
|
_,
|
|
3172
3172
|
{
|
|
3173
3173
|
"aria-label": c.props.children,
|
|
3174
3174
|
className: `${u}__selection-link`,
|
|
3175
3175
|
...c.props
|
|
3176
3176
|
},
|
|
3177
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, t && /* @__PURE__ */ e.createElement("div", { className: `${u}__icon` },
|
|
3177
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, t && /* @__PURE__ */ e.createElement("div", { className: `${u}__icon` }, C ? /* @__PURE__ */ e.createElement(It, { displayType: "icon" }) : v ? /* @__PURE__ */ e.createElement(D, { iconName: t, iconSize: "2xl" }) : /* @__PURE__ */ e.createElement(B2, { platformType: t })), /* @__PURE__ */ e.createElement("div", { className: `${u}__title` }, m, l && /* @__PURE__ */ e.createElement("div", { className: `${u}__subtitle` }, l))),
|
|
3178
3178
|
s && /* @__PURE__ */ e.createElement(
|
|
3179
3179
|
vt,
|
|
3180
3180
|
{
|
|
@@ -3185,17 +3185,17 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3185
3185
|
}
|
|
3186
3186
|
),
|
|
3187
3187
|
i && /* @__PURE__ */ e.createElement("div", { className: `${u}__summary` }, i)
|
|
3188
|
-
), n && n.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, n.map((
|
|
3189
|
-
const p =
|
|
3188
|
+
), n && n.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, n.map((g, y) => {
|
|
3189
|
+
const p = g.type;
|
|
3190
3190
|
return /* @__PURE__ */ e.createElement(
|
|
3191
3191
|
p,
|
|
3192
3192
|
{
|
|
3193
|
-
key:
|
|
3193
|
+
key: y,
|
|
3194
3194
|
className: `${u}__link`,
|
|
3195
|
-
...
|
|
3195
|
+
...g.props
|
|
3196
3196
|
},
|
|
3197
|
-
|
|
3198
|
-
|
|
3197
|
+
g.props.children,
|
|
3198
|
+
g.props.target === "_blank" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3199
3199
|
D,
|
|
3200
3200
|
{
|
|
3201
3201
|
className: `${u}__link-icon`,
|
|
@@ -3583,31 +3583,41 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3583
3583
|
listLabel: t,
|
|
3584
3584
|
moreLink: a,
|
|
3585
3585
|
renderTypeLabels: c = !0,
|
|
3586
|
-
|
|
3586
|
+
showBorder: l = !0,
|
|
3587
|
+
typeLabels: i = {
|
|
3587
3588
|
included: "Included",
|
|
3588
3589
|
notIncluded: "Not included",
|
|
3589
3590
|
addon: "Add-on"
|
|
3590
3591
|
},
|
|
3591
|
-
...
|
|
3592
|
+
...n
|
|
3592
3593
|
}) => {
|
|
3593
|
-
const
|
|
3594
|
-
return /* @__PURE__ */ e.createElement(
|
|
3595
|
-
"
|
|
3594
|
+
const m = "pds-comparison-list", o = l ? null : `${m}--no-border`;
|
|
3595
|
+
return /* @__PURE__ */ e.createElement(
|
|
3596
|
+
"div",
|
|
3596
3597
|
{
|
|
3597
|
-
|
|
3598
|
-
|
|
3598
|
+
className: H([m, o, s ?? ""]),
|
|
3599
|
+
...n
|
|
3599
3600
|
},
|
|
3600
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3601
|
-
|
|
3601
|
+
t && /* @__PURE__ */ e.createElement("div", { className: `${m}__intro` }, t),
|
|
3602
|
+
r && /* @__PURE__ */ e.createElement("ul", { className: `${m}__list` }, r.map((u, _) => /* @__PURE__ */ e.createElement(
|
|
3603
|
+
"li",
|
|
3602
3604
|
{
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
}
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3605
|
+
key: _,
|
|
3606
|
+
className: `${m}__list-item ${m}__list-item--${u.type}`
|
|
3607
|
+
},
|
|
3608
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__item-icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
3609
|
+
D,
|
|
3610
|
+
{
|
|
3611
|
+
className: `${m}__item-icon`,
|
|
3612
|
+
iconName: y1[u.type],
|
|
3613
|
+
iconSize: "md"
|
|
3614
|
+
}
|
|
3615
|
+
)),
|
|
3616
|
+
c && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, i[u.type], ":", " "),
|
|
3617
|
+
u.text
|
|
3618
|
+
))),
|
|
3619
|
+
a && /* @__PURE__ */ e.createElement("div", { className: `${m}__more-link` }, a)
|
|
3620
|
+
);
|
|
3611
3621
|
}, N1 = ({
|
|
3612
3622
|
children: s,
|
|
3613
3623
|
label: r
|
|
@@ -3632,17 +3642,17 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3632
3642
|
onOptionSelect: _,
|
|
3633
3643
|
options: h,
|
|
3634
3644
|
required: v = !1,
|
|
3635
|
-
showLabel:
|
|
3645
|
+
showLabel: C = !0,
|
|
3636
3646
|
tooltipText: f = null,
|
|
3637
|
-
validationMessage:
|
|
3638
|
-
validationStatus:
|
|
3647
|
+
validationMessage: g,
|
|
3648
|
+
validationStatus: y,
|
|
3639
3649
|
value: p,
|
|
3640
3650
|
...d
|
|
3641
3651
|
}) => {
|
|
3642
|
-
const E = je(l),
|
|
3652
|
+
const E = je(l), $ = "pds-select", N = t ? J.disabled : null, w = v && !t ? J.required : null, L = y === "error" ? J.error : null, b = y === "success" ? J.success : null;
|
|
3643
3653
|
let k = null;
|
|
3644
|
-
|
|
3645
|
-
const M =
|
|
3654
|
+
y === "error" && (k = "error"), y === "success" && (k = "success");
|
|
3655
|
+
const M = g || m, z = typeof p < "u", T = typeof r < "u", V = ((ee) => ee.reduce((j, ie) => h2(ie) ? [...j, ...ie.options] : [...j, ie], []))(h), I = (ee) => V.findIndex((j) => j.value === ee), Z = z && I(p) >= 0 ? I(p) : null, W = T ? I(r) : null, X = Z || W, [ce, te] = B(!1), [se, Y] = B(null), [S, x] = B(
|
|
3646
3656
|
X ?? null
|
|
3647
3657
|
), O = S !== null ? V[S]?.label : void 0, F = S !== null ? V[S]?.icon : void 0, K = S !== null ? V[S]?.value : void 0, R = ue([]), { context: G, floatingStyles: oe, refs: re } = He({
|
|
3648
3658
|
open: ce,
|
|
@@ -3754,11 +3764,11 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3754
3764
|
}
|
|
3755
3765
|
})
|
|
3756
3766
|
},
|
|
3757
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
3767
|
+
/* @__PURE__ */ e.createElement("span", { className: `${$}__option-label` }, de.icon && $e(de.icon, `${$}__option-icon`), de.label),
|
|
3758
3768
|
S === pe && /* @__PURE__ */ e.createElement(
|
|
3759
3769
|
D,
|
|
3760
3770
|
{
|
|
3761
|
-
className: `${
|
|
3771
|
+
className: `${$}__checked-icon`,
|
|
3762
3772
|
iconName: "check"
|
|
3763
3773
|
}
|
|
3764
3774
|
)
|
|
@@ -3786,8 +3796,8 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3786
3796
|
}
|
|
3787
3797
|
})
|
|
3788
3798
|
},
|
|
3789
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
3790
|
-
S === le && /* @__PURE__ */ e.createElement(D, { className: `${
|
|
3799
|
+
/* @__PURE__ */ e.createElement("span", { className: `${$}__option-label` }, ie.icon && $e(ie.icon, `${$}__option-icon`), ie.label),
|
|
3800
|
+
S === le && /* @__PURE__ */ e.createElement(D, { className: `${$}__checked-icon`, iconName: "check" })
|
|
3791
3801
|
);
|
|
3792
3802
|
});
|
|
3793
3803
|
};
|
|
@@ -3796,7 +3806,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3796
3806
|
{
|
|
3797
3807
|
className: H([
|
|
3798
3808
|
J.base,
|
|
3799
|
-
|
|
3809
|
+
$,
|
|
3800
3810
|
N,
|
|
3801
3811
|
w,
|
|
3802
3812
|
L,
|
|
@@ -3813,7 +3823,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3813
3823
|
id: c,
|
|
3814
3824
|
label: i,
|
|
3815
3825
|
required: v,
|
|
3816
|
-
showLabel:
|
|
3826
|
+
showLabel: C,
|
|
3817
3827
|
tooltipText: f
|
|
3818
3828
|
}
|
|
3819
3829
|
),
|
|
@@ -3823,7 +3833,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3823
3833
|
ref: re.setReference,
|
|
3824
3834
|
"aria-autocomplete": "none",
|
|
3825
3835
|
"aria-labelledby": `${c}-label`,
|
|
3826
|
-
className: `${
|
|
3836
|
+
className: `${$}__input-wrapper`,
|
|
3827
3837
|
id: c,
|
|
3828
3838
|
tabIndex: 0,
|
|
3829
3839
|
...we({
|
|
@@ -3833,29 +3843,29 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3833
3843
|
})
|
|
3834
3844
|
},
|
|
3835
3845
|
k && /* @__PURE__ */ e.createElement(ut, { variant: k }),
|
|
3836
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
3846
|
+
/* @__PURE__ */ e.createElement("span", { className: `${$}__input-inner` }, /* @__PURE__ */ e.createElement("span", { className: `${$}__option-text` }, (F || !O && a) && $e(F || a, `${$}__icon`), O ?? n.selectOptionText), /* @__PURE__ */ e.createElement(D, { className: `${$}__trigger-icon`, iconName: "angleDown" }))
|
|
3837
3847
|
),
|
|
3838
3848
|
Xe && /* @__PURE__ */ e.createElement(
|
|
3839
3849
|
"div",
|
|
3840
3850
|
{
|
|
3841
3851
|
ref: re.setFloating,
|
|
3842
|
-
className: `${
|
|
3852
|
+
className: `${$}__dropdown`,
|
|
3843
3853
|
style: {
|
|
3844
3854
|
...oe,
|
|
3845
3855
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3846
3856
|
},
|
|
3847
3857
|
...ve()
|
|
3848
3858
|
},
|
|
3849
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...Ge } }, /* @__PURE__ */ e.createElement("ul", { className: `${
|
|
3859
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...Ge } }, /* @__PURE__ */ e.createElement("ul", { className: `${$}__options`, role: "group" }, P(h)))
|
|
3850
3860
|
),
|
|
3851
3861
|
M && /* @__PURE__ */ e.createElement(
|
|
3852
3862
|
Ze,
|
|
3853
3863
|
{
|
|
3854
|
-
hasValidationMessage: !!
|
|
3864
|
+
hasValidationMessage: !!g,
|
|
3855
3865
|
id: c,
|
|
3856
3866
|
message: M,
|
|
3857
3867
|
validationMessageHasDecorators: !1,
|
|
3858
|
-
validationStatus:
|
|
3868
|
+
validationStatus: y
|
|
3859
3869
|
}
|
|
3860
3870
|
)
|
|
3861
3871
|
);
|
|
@@ -3876,13 +3886,13 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3876
3886
|
statusBadgeType: u,
|
|
3877
3887
|
..._
|
|
3878
3888
|
}) => {
|
|
3879
|
-
const h = "pds-pricing-card", v = `${h}-container`,
|
|
3880
|
-
|
|
3881
|
-
), [E,
|
|
3889
|
+
const h = "pds-pricing-card", v = `${h}-container`, C = a ? `${v}--with-list` : null, f = u ? `${h}--${u}` : null, g = (z) => z.toLowerCase().replace(/\s/g, "-"), y = n && n.length > 1, [p, d] = B(
|
|
3890
|
+
g(n[0].label)
|
|
3891
|
+
), [E, $] = B(
|
|
3882
3892
|
s.label
|
|
3883
3893
|
);
|
|
3884
3894
|
let N = null, w = null;
|
|
3885
|
-
|
|
3895
|
+
y || (N = /* @__PURE__ */ e.createElement("div", { className: `${h}__pricing-data` }, n[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${h}__price-prefix` }, n[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${h}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${h}__price` }, n[0].price), n[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${h}__details` }, n[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${h}__savings-line` }, n[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3886
3896
|
vt,
|
|
3887
3897
|
{
|
|
3888
3898
|
className: `${h}__savings-badge`,
|
|
@@ -3898,17 +3908,17 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3898
3908
|
listLabel: n[0].listLabel,
|
|
3899
3909
|
renderTypeLabels: !1
|
|
3900
3910
|
}
|
|
3901
|
-
)),
|
|
3902
|
-
const A = p ===
|
|
3911
|
+
)), y && (N = n.map((z) => {
|
|
3912
|
+
const A = p === g(z.label) ? null : `${h}__pricing-data--hide`;
|
|
3903
3913
|
return /* @__PURE__ */ e.createElement(
|
|
3904
3914
|
"div",
|
|
3905
3915
|
{
|
|
3906
|
-
key:
|
|
3916
|
+
key: g(z.label),
|
|
3907
3917
|
className: H([
|
|
3908
3918
|
`${h}__pricing-data`,
|
|
3909
3919
|
A
|
|
3910
3920
|
]),
|
|
3911
|
-
id: `data-${
|
|
3921
|
+
id: `data-${g(z.label)}`
|
|
3912
3922
|
},
|
|
3913
3923
|
z.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${h}__price-prefix` }, z.pricePrefix),
|
|
3914
3924
|
/* @__PURE__ */ e.createElement("div", { className: `${h}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${h}__price` }, z.price), z.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${h}__details` }, z.priceDetails)),
|
|
@@ -3923,11 +3933,11 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3923
3933
|
), z.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${h}__savings-details` }, z.savingsDetails))
|
|
3924
3934
|
);
|
|
3925
3935
|
}), w = n.map((z) => {
|
|
3926
|
-
const A = p ===
|
|
3936
|
+
const A = p === g(z.label) ? null : `${h}__list--hide`;
|
|
3927
3937
|
return /* @__PURE__ */ e.createElement(
|
|
3928
3938
|
_2,
|
|
3929
3939
|
{
|
|
3930
|
-
key: `${
|
|
3940
|
+
key: `${g(z.label)}-list`,
|
|
3931
3941
|
className: H([`${h}__list`, A]),
|
|
3932
3942
|
listItems: z.listItems,
|
|
3933
3943
|
listLabel: z.listLabel,
|
|
@@ -3937,23 +3947,23 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3937
3947
|
}));
|
|
3938
3948
|
const L = (z) => {
|
|
3939
3949
|
const T = n.find(
|
|
3940
|
-
(A) =>
|
|
3950
|
+
(A) => g(A.label) === z
|
|
3941
3951
|
);
|
|
3942
3952
|
return T.customActionLabel ? T.customActionLabel : s.label;
|
|
3943
3953
|
};
|
|
3944
3954
|
let b = null;
|
|
3945
|
-
|
|
3955
|
+
y && (b = /* @__PURE__ */ e.createElement(
|
|
3946
3956
|
w1,
|
|
3947
3957
|
{
|
|
3948
3958
|
className: `${h}__select`,
|
|
3949
|
-
defaultValue:
|
|
3959
|
+
defaultValue: g(n[0].label),
|
|
3950
3960
|
id: "plan-select",
|
|
3951
3961
|
label: m,
|
|
3952
3962
|
onOptionSelect: (z) => {
|
|
3953
|
-
d(z.value),
|
|
3963
|
+
d(z.value), $(L(z.value)), c && c(z.value);
|
|
3954
3964
|
},
|
|
3955
3965
|
options: n.map((z) => ({
|
|
3956
|
-
value:
|
|
3966
|
+
value: g(z.label),
|
|
3957
3967
|
label: z.label
|
|
3958
3968
|
})),
|
|
3959
3969
|
showLabel: !1
|
|
@@ -3999,7 +4009,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
3999
4009
|
))), /* @__PURE__ */ e.createElement(
|
|
4000
4010
|
"div",
|
|
4001
4011
|
{
|
|
4002
|
-
className: H([v,
|
|
4012
|
+
className: H([v, C, t]),
|
|
4003
4013
|
..._
|
|
4004
4014
|
},
|
|
4005
4015
|
/* @__PURE__ */ e.createElement("div", { className: H([h, f]) }, u && /* @__PURE__ */ e.createElement(
|
|
@@ -4034,7 +4044,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
4034
4044
|
label: _,
|
|
4035
4045
|
statusType: h
|
|
4036
4046
|
}
|
|
4037
|
-
),
|
|
4047
|
+
), C = /* @__PURE__ */ e.createElement(Vt, null, /* @__PURE__ */ e.createElement("img", { alt: "", slot: "image", src: c }), /* @__PURE__ */ e.createElement("div", { className: `${u}__main`, slot: "main" }, /* @__PURE__ */ e.createElement("div", { className: `${u}__header` }, /* @__PURE__ */ e.createElement(
|
|
4038
4048
|
r2,
|
|
4039
4049
|
{
|
|
4040
4050
|
fontSize: "L",
|
|
@@ -4046,7 +4056,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
4046
4056
|
l,
|
|
4047
4057
|
Object.assign({}, l.props, {
|
|
4048
4058
|
className: `${u}__link`,
|
|
4049
|
-
children:
|
|
4059
|
+
children: C,
|
|
4050
4060
|
"aria-label": `${r} ${i} dashboard`
|
|
4051
4061
|
})
|
|
4052
4062
|
) : null;
|
|
@@ -4058,7 +4068,7 @@ const n2 = "cubic-bezier(.2, 0, 0, 1)", rt = "cubic-bezier(.2, 0, 0, 1)", Dt = 5
|
|
|
4058
4068
|
onClick: a,
|
|
4059
4069
|
type: "button"
|
|
4060
4070
|
},
|
|
4061
|
-
|
|
4071
|
+
C
|
|
4062
4072
|
) : f);
|
|
4063
4073
|
};
|
|
4064
4074
|
var E2 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -4168,26 +4178,26 @@ function H1() {
|
|
|
4168
4178
|
*/
|
|
4169
4179
|
clone: function p(d, E) {
|
|
4170
4180
|
E = E || {};
|
|
4171
|
-
var
|
|
4181
|
+
var $, N;
|
|
4172
4182
|
switch (n.util.type(d)) {
|
|
4173
4183
|
case "Object":
|
|
4174
4184
|
if (N = n.util.objId(d), E[N])
|
|
4175
4185
|
return E[N];
|
|
4176
|
-
|
|
4177
|
-
{}, E[N] =
|
|
4186
|
+
$ = /** @type {Record<string, any>} */
|
|
4187
|
+
{}, E[N] = $;
|
|
4178
4188
|
for (var w in d)
|
|
4179
|
-
d.hasOwnProperty(w) && (
|
|
4189
|
+
d.hasOwnProperty(w) && ($[w] = p(d[w], E));
|
|
4180
4190
|
return (
|
|
4181
4191
|
/** @type {any} */
|
|
4182
|
-
|
|
4192
|
+
$
|
|
4183
4193
|
);
|
|
4184
4194
|
case "Array":
|
|
4185
|
-
return N = n.util.objId(d), E[N] ? E[N] : (
|
|
4195
|
+
return N = n.util.objId(d), E[N] ? E[N] : ($ = [], E[N] = $, /** @type {Array} */
|
|
4186
4196
|
/** @type {any} */
|
|
4187
4197
|
d.forEach(function(L, b) {
|
|
4188
|
-
|
|
4198
|
+
$[b] = p(L, E);
|
|
4189
4199
|
}), /** @type {any} */
|
|
4190
|
-
|
|
4200
|
+
$);
|
|
4191
4201
|
default:
|
|
4192
4202
|
return d;
|
|
4193
4203
|
}
|
|
@@ -4236,8 +4246,8 @@ function H1() {
|
|
|
4236
4246
|
);
|
|
4237
4247
|
try {
|
|
4238
4248
|
throw new Error();
|
|
4239
|
-
} catch (
|
|
4240
|
-
var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(
|
|
4249
|
+
} catch ($) {
|
|
4250
|
+
var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec($.stack) || [])[1];
|
|
4241
4251
|
if (p) {
|
|
4242
4252
|
var d = document.getElementsByTagName("script");
|
|
4243
4253
|
for (var E in d)
|
|
@@ -4267,11 +4277,11 @@ function H1() {
|
|
|
4267
4277
|
* @returns {boolean}
|
|
4268
4278
|
*/
|
|
4269
4279
|
isActive: function(p, d, E) {
|
|
4270
|
-
for (var
|
|
4280
|
+
for (var $ = "no-" + d; p; ) {
|
|
4271
4281
|
var N = p.classList;
|
|
4272
4282
|
if (N.contains(d))
|
|
4273
4283
|
return !0;
|
|
4274
|
-
if (N.contains(
|
|
4284
|
+
if (N.contains($))
|
|
4275
4285
|
return !1;
|
|
4276
4286
|
p = p.parentElement;
|
|
4277
4287
|
}
|
|
@@ -4323,8 +4333,8 @@ function H1() {
|
|
|
4323
4333
|
*/
|
|
4324
4334
|
extend: function(p, d) {
|
|
4325
4335
|
var E = n.util.clone(n.languages[p]);
|
|
4326
|
-
for (var
|
|
4327
|
-
E[
|
|
4336
|
+
for (var $ in d)
|
|
4337
|
+
E[$] = d[$];
|
|
4328
4338
|
return E;
|
|
4329
4339
|
},
|
|
4330
4340
|
/**
|
|
@@ -4402,10 +4412,10 @@ function H1() {
|
|
|
4402
4412
|
* @returns {Grammar} The new grammar object.
|
|
4403
4413
|
* @public
|
|
4404
4414
|
*/
|
|
4405
|
-
insertBefore: function(p, d, E,
|
|
4406
|
-
|
|
4415
|
+
insertBefore: function(p, d, E, $) {
|
|
4416
|
+
$ = $ || /** @type {any} */
|
|
4407
4417
|
n.languages;
|
|
4408
|
-
var N =
|
|
4418
|
+
var N = $[p], w = {};
|
|
4409
4419
|
for (var L in N)
|
|
4410
4420
|
if (N.hasOwnProperty(L)) {
|
|
4411
4421
|
if (L == d)
|
|
@@ -4413,18 +4423,18 @@ function H1() {
|
|
|
4413
4423
|
E.hasOwnProperty(b) && (w[b] = E[b]);
|
|
4414
4424
|
E.hasOwnProperty(L) || (w[L] = N[L]);
|
|
4415
4425
|
}
|
|
4416
|
-
var k =
|
|
4417
|
-
return
|
|
4426
|
+
var k = $[p];
|
|
4427
|
+
return $[p] = w, n.languages.DFS(n.languages, function(M, z) {
|
|
4418
4428
|
z === k && M != p && (this[M] = w);
|
|
4419
4429
|
}), w;
|
|
4420
4430
|
},
|
|
4421
4431
|
// Traverse a language definition with Depth First Search
|
|
4422
|
-
DFS: function p(d, E,
|
|
4432
|
+
DFS: function p(d, E, $, N) {
|
|
4423
4433
|
N = N || {};
|
|
4424
4434
|
var w = n.util.objId;
|
|
4425
4435
|
for (var L in d)
|
|
4426
4436
|
if (d.hasOwnProperty(L)) {
|
|
4427
|
-
E.call(d, L, d[L],
|
|
4437
|
+
E.call(d, L, d[L], $ || L);
|
|
4428
4438
|
var b = d[L], k = n.util.type(b);
|
|
4429
4439
|
k === "Object" && !N[w(b)] ? (N[w(b)] = !0, p(b, E, null, N)) : k === "Array" && !N[w(b)] && (N[w(b)] = !0, p(b, E, L, N));
|
|
4430
4440
|
}
|
|
@@ -4462,14 +4472,14 @@ function H1() {
|
|
|
4462
4472
|
* @public
|
|
4463
4473
|
*/
|
|
4464
4474
|
highlightAllUnder: function(p, d, E) {
|
|
4465
|
-
var
|
|
4475
|
+
var $ = {
|
|
4466
4476
|
callback: E,
|
|
4467
4477
|
container: p,
|
|
4468
4478
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
4469
4479
|
};
|
|
4470
|
-
n.hooks.run("before-highlightall",
|
|
4471
|
-
for (var N = 0, w; w =
|
|
4472
|
-
n.highlightElement(w, d === !0,
|
|
4480
|
+
n.hooks.run("before-highlightall", $), $.elements = Array.prototype.slice.apply($.container.querySelectorAll($.selector)), n.hooks.run("before-all-elements-highlight", $);
|
|
4481
|
+
for (var N = 0, w; w = $.elements[N++]; )
|
|
4482
|
+
n.highlightElement(w, d === !0, $.callback);
|
|
4473
4483
|
},
|
|
4474
4484
|
/**
|
|
4475
4485
|
* Highlights the code inside a single element.
|
|
@@ -4500,13 +4510,13 @@ function H1() {
|
|
|
4500
4510
|
* @public
|
|
4501
4511
|
*/
|
|
4502
4512
|
highlightElement: function(p, d, E) {
|
|
4503
|
-
var
|
|
4504
|
-
n.util.setLanguage(p,
|
|
4513
|
+
var $ = n.util.getLanguage(p), N = n.languages[$];
|
|
4514
|
+
n.util.setLanguage(p, $);
|
|
4505
4515
|
var w = p.parentElement;
|
|
4506
|
-
w && w.nodeName.toLowerCase() === "pre" && n.util.setLanguage(w,
|
|
4516
|
+
w && w.nodeName.toLowerCase() === "pre" && n.util.setLanguage(w, $);
|
|
4507
4517
|
var L = p.textContent, b = {
|
|
4508
4518
|
element: p,
|
|
4509
|
-
language:
|
|
4519
|
+
language: $,
|
|
4510
4520
|
grammar: N,
|
|
4511
4521
|
code: L
|
|
4512
4522
|
};
|
|
@@ -4554,14 +4564,14 @@ function H1() {
|
|
|
4554
4564
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
4555
4565
|
*/
|
|
4556
4566
|
highlight: function(p, d, E) {
|
|
4557
|
-
var
|
|
4567
|
+
var $ = {
|
|
4558
4568
|
code: p,
|
|
4559
4569
|
grammar: d,
|
|
4560
4570
|
language: E
|
|
4561
4571
|
};
|
|
4562
|
-
if (n.hooks.run("before-tokenize",
|
|
4563
|
-
throw new Error('The language "' +
|
|
4564
|
-
return
|
|
4572
|
+
if (n.hooks.run("before-tokenize", $), !$.grammar)
|
|
4573
|
+
throw new Error('The language "' + $.language + '" has no grammar.');
|
|
4574
|
+
return $.tokens = n.tokenize($.code, $.grammar), n.hooks.run("after-tokenize", $), m.stringify(n.util.encode($.tokens), $.language);
|
|
4565
4575
|
},
|
|
4566
4576
|
/**
|
|
4567
4577
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -4590,12 +4600,12 @@ function H1() {
|
|
|
4590
4600
|
tokenize: function(p, d) {
|
|
4591
4601
|
var E = d.rest;
|
|
4592
4602
|
if (E) {
|
|
4593
|
-
for (var
|
|
4594
|
-
d[
|
|
4603
|
+
for (var $ in E)
|
|
4604
|
+
d[$] = E[$];
|
|
4595
4605
|
delete d.rest;
|
|
4596
4606
|
}
|
|
4597
4607
|
var N = new _();
|
|
4598
|
-
return h(N, N.head, p), u(p, N, d, N.head, 0),
|
|
4608
|
+
return h(N, N.head, p), u(p, N, d, N.head, 0), C(N);
|
|
4599
4609
|
},
|
|
4600
4610
|
/**
|
|
4601
4611
|
* @namespace
|
|
@@ -4632,24 +4642,24 @@ function H1() {
|
|
|
4632
4642
|
run: function(p, d) {
|
|
4633
4643
|
var E = n.hooks.all[p];
|
|
4634
4644
|
if (!(!E || !E.length))
|
|
4635
|
-
for (var
|
|
4645
|
+
for (var $ = 0, N; N = E[$++]; )
|
|
4636
4646
|
N(d);
|
|
4637
4647
|
}
|
|
4638
4648
|
},
|
|
4639
4649
|
Token: m
|
|
4640
4650
|
};
|
|
4641
4651
|
a.Prism = n;
|
|
4642
|
-
function m(p, d, E,
|
|
4643
|
-
this.type = p, this.content = d, this.alias = E, this.length = (
|
|
4652
|
+
function m(p, d, E, $) {
|
|
4653
|
+
this.type = p, this.content = d, this.alias = E, this.length = ($ || "").length | 0;
|
|
4644
4654
|
}
|
|
4645
4655
|
m.stringify = function p(d, E) {
|
|
4646
4656
|
if (typeof d == "string")
|
|
4647
4657
|
return d;
|
|
4648
4658
|
if (Array.isArray(d)) {
|
|
4649
|
-
var
|
|
4659
|
+
var $ = "";
|
|
4650
4660
|
return d.forEach(function(k) {
|
|
4651
|
-
|
|
4652
|
-
}),
|
|
4661
|
+
$ += p(k, E);
|
|
4662
|
+
}), $;
|
|
4653
4663
|
}
|
|
4654
4664
|
var N = {
|
|
4655
4665
|
type: d.type,
|
|
@@ -4665,16 +4675,16 @@ function H1() {
|
|
|
4665
4675
|
L += " " + b + '="' + (N.attributes[b] || "").replace(/"/g, """) + '"';
|
|
4666
4676
|
return "<" + N.tag + ' class="' + N.classes.join(" ") + '"' + L + ">" + N.content + "</" + N.tag + ">";
|
|
4667
4677
|
};
|
|
4668
|
-
function o(p, d, E,
|
|
4678
|
+
function o(p, d, E, $) {
|
|
4669
4679
|
p.lastIndex = d;
|
|
4670
4680
|
var N = p.exec(E);
|
|
4671
|
-
if (N &&
|
|
4681
|
+
if (N && $ && N[1]) {
|
|
4672
4682
|
var w = N[1].length;
|
|
4673
4683
|
N.index += w, N[0] = N[0].slice(w);
|
|
4674
4684
|
}
|
|
4675
4685
|
return N;
|
|
4676
4686
|
}
|
|
4677
|
-
function u(p, d, E,
|
|
4687
|
+
function u(p, d, E, $, N, w) {
|
|
4678
4688
|
for (var L in E)
|
|
4679
4689
|
if (!(!E.hasOwnProperty(L) || !E[L])) {
|
|
4680
4690
|
var b = E[L];
|
|
@@ -4687,7 +4697,7 @@ function H1() {
|
|
|
4687
4697
|
var I = M.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4688
4698
|
M.pattern = RegExp(M.pattern.source, I + "g");
|
|
4689
4699
|
}
|
|
4690
|
-
for (var Z = M.pattern || M, W =
|
|
4700
|
+
for (var Z = M.pattern || M, W = $.next, X = N; W !== d.tail && !(w && X >= w.reach); X += W.value.length, W = W.next) {
|
|
4691
4701
|
var ce = W.value;
|
|
4692
4702
|
if (d.length > p.length)
|
|
4693
4703
|
return;
|
|
@@ -4728,32 +4738,32 @@ function H1() {
|
|
|
4728
4738
|
p.next = d, this.head = p, this.tail = d, this.length = 0;
|
|
4729
4739
|
}
|
|
4730
4740
|
function h(p, d, E) {
|
|
4731
|
-
var
|
|
4732
|
-
return d.next = N,
|
|
4741
|
+
var $ = d.next, N = { value: E, prev: d, next: $ };
|
|
4742
|
+
return d.next = N, $.prev = N, p.length++, N;
|
|
4733
4743
|
}
|
|
4734
4744
|
function v(p, d, E) {
|
|
4735
|
-
for (var
|
|
4736
|
-
|
|
4737
|
-
d.next =
|
|
4745
|
+
for (var $ = d.next, N = 0; N < E && $ !== p.tail; N++)
|
|
4746
|
+
$ = $.next;
|
|
4747
|
+
d.next = $, $.prev = d, p.length -= N;
|
|
4738
4748
|
}
|
|
4739
|
-
function
|
|
4749
|
+
function C(p) {
|
|
4740
4750
|
for (var d = [], E = p.head.next; E !== p.tail; )
|
|
4741
4751
|
d.push(E.value), E = E.next;
|
|
4742
4752
|
return d;
|
|
4743
4753
|
}
|
|
4744
4754
|
if (!a.document)
|
|
4745
4755
|
return a.addEventListener && (n.disableWorkerMessageHandler || a.addEventListener("message", function(p) {
|
|
4746
|
-
var d = JSON.parse(p.data), E = d.language,
|
|
4747
|
-
a.postMessage(n.highlight(
|
|
4756
|
+
var d = JSON.parse(p.data), E = d.language, $ = d.code, N = d.immediateClose;
|
|
4757
|
+
a.postMessage(n.highlight($, n.languages[E], E)), N && a.close();
|
|
4748
4758
|
}, !1)), n;
|
|
4749
4759
|
var f = n.util.currentScript();
|
|
4750
4760
|
f && (n.filename = f.src, f.hasAttribute("data-manual") && (n.manual = !0));
|
|
4751
|
-
function
|
|
4761
|
+
function g() {
|
|
4752
4762
|
n.manual || n.highlightAll();
|
|
4753
4763
|
}
|
|
4754
4764
|
if (!n.manual) {
|
|
4755
|
-
var
|
|
4756
|
-
|
|
4765
|
+
var y = document.readyState;
|
|
4766
|
+
y === "loading" || y === "interactive" && f && f.defer ? document.addEventListener("DOMContentLoaded", g) : window.requestAnimationFrame ? window.requestAnimationFrame(g) : window.setTimeout(g, 16);
|
|
4757
4767
|
}
|
|
4758
4768
|
return n;
|
|
4759
4769
|
})(r);
|
|
@@ -5066,16 +5076,16 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5066
5076
|
textSize: n = "m",
|
|
5067
5077
|
...m
|
|
5068
5078
|
}) => {
|
|
5069
|
-
const o = "pds-skeleton", u = `${o}--${a}`, _ = t ? `pds-pulse pds-pulse--${r}` : `${o}--${r}`, h = ["text-block", "code-block", "code-block-prefix"], v = c?.height ? $2(c.height) : "1rem",
|
|
5079
|
+
const o = "pds-skeleton", u = `${o}--${a}`, _ = t ? `pds-pulse pds-pulse--${r}` : `${o}--${r}`, h = ["text-block", "code-block", "code-block-prefix"], v = c?.height ? $2(c.height) : "1rem", C = c?.width ? $2(c.width) : "100%";
|
|
5070
5080
|
let f = {
|
|
5071
5081
|
height: v,
|
|
5072
|
-
width:
|
|
5082
|
+
width: C
|
|
5073
5083
|
};
|
|
5074
5084
|
a === "circular" && (f = {
|
|
5075
5085
|
...f,
|
|
5076
5086
|
width: f.height
|
|
5077
5087
|
});
|
|
5078
|
-
const
|
|
5088
|
+
const g = /* @__PURE__ */ e.createElement(
|
|
5079
5089
|
"div",
|
|
5080
5090
|
{
|
|
5081
5091
|
className: H([
|
|
@@ -5090,15 +5100,15 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5090
5100
|
), d = Math.max(1, Math.min(i, a === "code-block" || a === "code-block-prefix" ? 15 : 5));
|
|
5091
5101
|
let E = `${b2[`TYPE_SCALE_${n.toUpperCase()}`] * 0.75}rem`;
|
|
5092
5102
|
(a === "code-block" || a === "code-block-prefix") && (E = `${b2[`TYPE_SCALE_${n.toUpperCase()}`] * 1.25}rem`);
|
|
5093
|
-
const
|
|
5103
|
+
const $ = `calc(var(--pds-typography-size-${n}) * 0.75)`, N = (k) => {
|
|
5094
5104
|
if (a === "text-block") {
|
|
5095
5105
|
if (l || k === 0)
|
|
5096
|
-
return
|
|
5106
|
+
return C;
|
|
5097
5107
|
const M = k + 1;
|
|
5098
|
-
return M === 2 ? `calc(${
|
|
5108
|
+
return M === 2 ? `calc(${C} * 0.75)` : M % 2 === 1 ? `calc(${C} * 0.85)` : `calc(${C} * 0.75)`;
|
|
5099
5109
|
}
|
|
5100
5110
|
if (a === "code-block" || a === "code-block-prefix")
|
|
5101
|
-
return k === d - 1 ? `calc(${
|
|
5111
|
+
return k === d - 1 ? `calc(${C} * 0.80)` : C;
|
|
5102
5112
|
}, w = () => `var(--pds-typography-size-${n})`, L = (k) => {
|
|
5103
5113
|
if (!(a === "code-block" || a === "code-block-prefix") || d < 5)
|
|
5104
5114
|
return 1;
|
|
@@ -5128,7 +5138,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5128
5138
|
key: M,
|
|
5129
5139
|
className: H([`${o}-line`]),
|
|
5130
5140
|
style: a === "code-block-prefix" ? {
|
|
5131
|
-
gap:
|
|
5141
|
+
gap: $,
|
|
5132
5142
|
opacity: L(M)
|
|
5133
5143
|
} : {
|
|
5134
5144
|
opacity: L(M)
|
|
@@ -5153,14 +5163,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5153
5163
|
{
|
|
5154
5164
|
className: H([o, _, u]),
|
|
5155
5165
|
style: {
|
|
5156
|
-
width: a === "code-block-prefix" ? `calc(${N(M)} - ${w()} - ${
|
|
5166
|
+
width: a === "code-block-prefix" ? `calc(${N(M)} - ${w()} - ${$})` : N(M),
|
|
5157
5167
|
height: `var(--pds-typography-size-${n})`
|
|
5158
5168
|
}
|
|
5159
5169
|
}
|
|
5160
5170
|
)
|
|
5161
5171
|
))
|
|
5162
5172
|
);
|
|
5163
|
-
return h.includes(a) ? b :
|
|
5173
|
+
return h.includes(a) ? b : g;
|
|
5164
5174
|
}, ns = {
|
|
5165
5175
|
plain: {
|
|
5166
5176
|
color: "var(--pds-color-code-block-dark-foreground)",
|
|
@@ -5341,15 +5351,15 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5341
5351
|
maxHeight: _,
|
|
5342
5352
|
promptSymbol: h = "$",
|
|
5343
5353
|
renderAsLegacy: v = !1,
|
|
5344
|
-
shouldWrap:
|
|
5354
|
+
shouldWrap: C = !1,
|
|
5345
5355
|
...f
|
|
5346
5356
|
}) => {
|
|
5347
|
-
const
|
|
5357
|
+
const g = "pds-code-block", y = `${g}--${t}`, p = C ? `${g}__line-wrapped` : "", d = {};
|
|
5348
5358
|
n && (d.height = `${n}rem`), _ && (d.maxHeight = `${_}rem`);
|
|
5349
|
-
const E = t === "dark" ? "reverse" : "standard",
|
|
5359
|
+
const E = t === "dark" ? "reverse" : "standard", $ = t === "dark" ? ns : as, N = /* @__PURE__ */ e.createElement("div", { className: `${g}__code` }, /* @__PURE__ */ e.createElement(
|
|
5350
5360
|
ss,
|
|
5351
5361
|
{
|
|
5352
|
-
className: `${
|
|
5362
|
+
className: `${g}__skeleton`,
|
|
5353
5363
|
colorType: t === "dark" ? "bold" : "regular",
|
|
5354
5364
|
shape: l || i ? "code-block-prefix" : "code-block",
|
|
5355
5365
|
textLineCount: u
|
|
@@ -5360,16 +5370,16 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5360
5370
|
I.replaceWith(`
|
|
5361
5371
|
`);
|
|
5362
5372
|
}), A.textContent || A.innerText || "";
|
|
5363
|
-
}, L = (T) => T.split(/<br\s*\/?>/i).map((V, I) => /* @__PURE__ */ e.createElement("div", { key: I, className: `${
|
|
5373
|
+
}, L = (T) => T.split(/<br\s*\/?>/i).map((V, I) => /* @__PURE__ */ e.createElement("div", { key: I, className: `${g}__line ${p}` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__number` }, I + 1), /* @__PURE__ */ e.createElement(
|
|
5364
5374
|
"span",
|
|
5365
5375
|
{
|
|
5366
|
-
className: `${
|
|
5376
|
+
className: `${g}__line-content`,
|
|
5367
5377
|
dangerouslySetInnerHTML: { __html: V }
|
|
5368
5378
|
}
|
|
5369
|
-
))), b = (T) => T.split(/<br\s*\/?>/i).map((V, I) => /* @__PURE__ */ e.createElement("div", { key: I, className: `${
|
|
5379
|
+
))), b = (T) => T.split(/<br\s*\/?>/i).map((V, I) => /* @__PURE__ */ e.createElement("div", { key: I, className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, h), /* @__PURE__ */ e.createElement(
|
|
5370
5380
|
"span",
|
|
5371
5381
|
{
|
|
5372
|
-
className: `${
|
|
5382
|
+
className: `${g}__line-content`,
|
|
5373
5383
|
dangerouslySetInnerHTML: { __html: V }
|
|
5374
5384
|
}
|
|
5375
5385
|
)));
|
|
@@ -5378,17 +5388,17 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5378
5388
|
return /* @__PURE__ */ e.createElement(
|
|
5379
5389
|
"div",
|
|
5380
5390
|
{
|
|
5381
|
-
className: H([
|
|
5391
|
+
className: H([g, y, s ?? ""]),
|
|
5382
5392
|
style: d,
|
|
5383
5393
|
...f
|
|
5384
5394
|
},
|
|
5385
|
-
m ? N : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("pre", { className: `${
|
|
5395
|
+
m ? N : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("pre", { className: `${g}__code`, tabIndex: 0 }, l || i ? l ? /* @__PURE__ */ e.createElement(e.Fragment, null, L(r)) : /* @__PURE__ */ e.createElement(e.Fragment, null, b(r)) : /* @__PURE__ */ e.createElement(
|
|
5386
5396
|
"div",
|
|
5387
5397
|
{
|
|
5388
|
-
className: `${
|
|
5398
|
+
className: `${g}__content`,
|
|
5389
5399
|
dangerouslySetInnerHTML: { __html: r }
|
|
5390
5400
|
}
|
|
5391
|
-
)), c && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5401
|
+
)), c && /* @__PURE__ */ e.createElement("div", { className: `${g}__copy` }, /* @__PURE__ */ e.createElement(
|
|
5392
5402
|
g2,
|
|
5393
5403
|
{
|
|
5394
5404
|
ariaLabel: a,
|
|
@@ -5398,11 +5408,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5398
5408
|
)))
|
|
5399
5409
|
);
|
|
5400
5410
|
}
|
|
5401
|
-
const k = /* @__PURE__ */ e.createElement(ft.LineContent, null, /* @__PURE__ */ e.createElement(ft.Token, null)), M = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5411
|
+
const k = /* @__PURE__ */ e.createElement(ft.LineContent, null, /* @__PURE__ */ e.createElement(ft.Token, null)), M = /* @__PURE__ */ e.createElement("div", { className: `${g}__line ${p}` }, /* @__PURE__ */ e.createElement(ft.LineNumber, { className: `${g}__number` }), k), z = /* @__PURE__ */ e.createElement("div", { className: `${g}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${g}__prompt` }, h), k);
|
|
5402
5412
|
return /* @__PURE__ */ e.createElement(
|
|
5403
5413
|
"div",
|
|
5404
5414
|
{
|
|
5405
|
-
className: H([
|
|
5415
|
+
className: H([g, y, s ?? ""]),
|
|
5406
5416
|
style: d,
|
|
5407
5417
|
...f
|
|
5408
5418
|
},
|
|
@@ -5412,10 +5422,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5412
5422
|
code: r,
|
|
5413
5423
|
language: o || "",
|
|
5414
5424
|
prism: k1,
|
|
5415
|
-
theme:
|
|
5425
|
+
theme: $
|
|
5416
5426
|
},
|
|
5417
|
-
/* @__PURE__ */ e.createElement(ft.Code, { className: `${
|
|
5418
|
-
), c && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5427
|
+
/* @__PURE__ */ e.createElement(ft.Code, { className: `${g}__code`, tabIndex: 0 }, l || i ? l ? M : z : k)
|
|
5428
|
+
), c && /* @__PURE__ */ e.createElement("div", { className: `${g}__copy` }, /* @__PURE__ */ e.createElement(
|
|
5419
5429
|
g2,
|
|
5420
5430
|
{
|
|
5421
5431
|
ariaLabel: a,
|
|
@@ -5589,21 +5599,21 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5589
5599
|
...h
|
|
5590
5600
|
}) => {
|
|
5591
5601
|
let v = !1;
|
|
5592
|
-
const
|
|
5593
|
-
|
|
5594
|
-
const f = "pds-horizontal-empty-state",
|
|
5602
|
+
const C = ye(Me);
|
|
5603
|
+
C && (v = C.isMobile);
|
|
5604
|
+
const f = "pds-horizontal-empty-state", g = `${f}--${s}`, y = v ? `${f}--isMobile` : null, p = m ? `${f}--panel` : null, d = _ ? `${f}--video` : null, E = {
|
|
5595
5605
|
width: n,
|
|
5596
5606
|
marginLeft: i
|
|
5597
5607
|
};
|
|
5598
5608
|
typeof u == "string" ? u = /* @__PURE__ */ e.createElement("p", { className: `${f}__message` }, u) : u = /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, u);
|
|
5599
|
-
const
|
|
5609
|
+
const $ = _ && /* @__PURE__ */ e.createElement("div", { className: `${f}__media` }, /* @__PURE__ */ e.createElement(cs, { platform: _.platform, videoId: _.videoId }));
|
|
5600
5610
|
return /* @__PURE__ */ e.createElement(
|
|
5601
5611
|
"div",
|
|
5602
5612
|
{
|
|
5603
5613
|
className: H([
|
|
5604
5614
|
f,
|
|
5605
|
-
|
|
5606
|
-
|
|
5615
|
+
g,
|
|
5616
|
+
y,
|
|
5607
5617
|
p,
|
|
5608
5618
|
d,
|
|
5609
5619
|
r ?? ""
|
|
@@ -5611,7 +5621,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5611
5621
|
style: { maxWidth: o },
|
|
5612
5622
|
...h
|
|
5613
5623
|
},
|
|
5614
|
-
v && _ &&
|
|
5624
|
+
v && _ && $,
|
|
5615
5625
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
5616
5626
|
nt,
|
|
5617
5627
|
{
|
|
@@ -5622,7 +5632,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5622
5632
|
a
|
|
5623
5633
|
), u && u, t && /* @__PURE__ */ e.createElement("div", { className: `${f}__cta` }, t)),
|
|
5624
5634
|
!v && l && !_ && /* @__PURE__ */ e.createElement("div", { className: `${f}__media`, style: E }, typeof l == "string" ? /* @__PURE__ */ e.createElement("img", { alt: "", className: `${f}__image`, src: l }) : l),
|
|
5625
|
-
!v && _ &&
|
|
5635
|
+
!v && _ && $
|
|
5626
5636
|
);
|
|
5627
5637
|
}, dn = ({
|
|
5628
5638
|
className: s,
|
|
@@ -5723,8 +5733,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5723
5733
|
...c
|
|
5724
5734
|
}) => {
|
|
5725
5735
|
const l = "pds-flow-steps", i = `${l}--${r}`, n = t === "horizontal" ? `${l}--horizontal` : "", m = a.map(({ content: o, header: u }, _) => {
|
|
5726
|
-
const h = /* @__PURE__ */ e.createElement("div", { className: `${l}__number` }, /* @__PURE__ */ e.createElement("span", null, _ + 1)), v = /* @__PURE__ */ e.createElement("div", { className: `${l}__header` }, u),
|
|
5727
|
-
return /* @__PURE__ */ e.createElement("li", { key: _, className: f }, r === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, h, /* @__PURE__ */ e.createElement("div", { className: `${l}__content-group` }, v,
|
|
5736
|
+
const h = /* @__PURE__ */ e.createElement("div", { className: `${l}__number` }, /* @__PURE__ */ e.createElement("span", null, _ + 1)), v = /* @__PURE__ */ e.createElement("div", { className: `${l}__header` }, u), C = o ? /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, o) : null, f = `${l}__step`;
|
|
5737
|
+
return /* @__PURE__ */ e.createElement("li", { key: _, className: f }, r === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, h, /* @__PURE__ */ e.createElement("div", { className: `${l}__content-group` }, v, C)), r === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${l}__header-group` }, h, v), C));
|
|
5728
5738
|
});
|
|
5729
5739
|
return /* @__PURE__ */ e.createElement(
|
|
5730
5740
|
"ol",
|
|
@@ -5786,14 +5796,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5786
5796
|
],
|
|
5787
5797
|
...l
|
|
5788
5798
|
}) => {
|
|
5789
|
-
const i = "pds-site-footer", n = a ? `${i}--border` : null, m = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", o = (/* @__PURE__ */ new Date()).getFullYear(), u = c.includes("privacy"), _ = c.includes("dataSubjectRequest"), h = c.includes("cookiePolicy"), v = c.includes("termsOfUse"),
|
|
5799
|
+
const i = "pds-site-footer", n = a ? `${i}--border` : null, m = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", o = (/* @__PURE__ */ new Date()).getFullYear(), u = c.includes("privacy"), _ = c.includes("dataSubjectRequest"), h = c.includes("cookiePolicy"), v = c.includes("termsOfUse"), C = c.includes("acceptableUse"), f = c.includes("accessibilityStatement");
|
|
5790
5800
|
return /* @__PURE__ */ e.createElement(
|
|
5791
5801
|
"footer",
|
|
5792
5802
|
{
|
|
5793
5803
|
className: H([i, n, r ?? ""]),
|
|
5794
5804
|
...l
|
|
5795
5805
|
},
|
|
5796
|
-
/* @__PURE__ */ e.createElement("div", { className: m }, s && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", o, " Pantheon Systems, Inc."), u && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), h && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"),
|
|
5806
|
+
/* @__PURE__ */ e.createElement("div", { className: m }, s && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", o, " Pantheon Systems, Inc."), u && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), h && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), C && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
5797
5807
|
);
|
|
5798
5808
|
}, os = Ke(
|
|
5799
5809
|
({
|
|
@@ -5811,16 +5821,16 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5811
5821
|
nestingLevel: _ = 0,
|
|
5812
5822
|
onBlur: h,
|
|
5813
5823
|
onChange: v,
|
|
5814
|
-
onFocus:
|
|
5824
|
+
onFocus: C,
|
|
5815
5825
|
required: f,
|
|
5816
|
-
showLabel:
|
|
5817
|
-
size:
|
|
5826
|
+
showLabel: g = !0,
|
|
5827
|
+
size: y = "M",
|
|
5818
5828
|
validationMessage: p,
|
|
5819
5829
|
validationStatus: d,
|
|
5820
5830
|
value: E,
|
|
5821
|
-
|
|
5831
|
+
...$
|
|
5822
5832
|
}, N) => {
|
|
5823
|
-
const w = n ? { width: `${n / 16}rem` } : null, L = "pds-checkbox", b = a ? J.disabled : null, k = d === "error" ? J.error : null, M = _ > 0 ? `${L}--indent-${_}` : null, z = f && !a ? J.required : null, T =
|
|
5833
|
+
const w = n ? { width: `${n / 16}rem` } : null, L = "pds-checkbox", b = a ? J.disabled : null, k = d === "error" ? J.error : null, M = _ > 0 ? `${L}--indent-${_}` : null, z = f && !a ? J.required : null, T = y === "S" ? `${L}--sm` : null, A = d === "success" ? J.success : null, V = p || o, I = typeof s < "u", Z = typeof t < "u", [W, X] = B(
|
|
5824
5834
|
Z ? t : !1
|
|
5825
5835
|
), ce = s || W, te = (O) => {
|
|
5826
5836
|
I || X(O.target.checked), v && v(O);
|
|
@@ -5858,7 +5868,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5858
5868
|
r ?? ""
|
|
5859
5869
|
]),
|
|
5860
5870
|
style: n ? w : null,
|
|
5861
|
-
|
|
5871
|
+
...$
|
|
5862
5872
|
},
|
|
5863
5873
|
/* @__PURE__ */ e.createElement("div", { className: `${L}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
5864
5874
|
"input",
|
|
@@ -5875,7 +5885,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5875
5885
|
disabled: a,
|
|
5876
5886
|
onBlur: h,
|
|
5877
5887
|
onChange: te,
|
|
5878
|
-
onFocus:
|
|
5888
|
+
onFocus: C,
|
|
5879
5889
|
required: f,
|
|
5880
5890
|
...i
|
|
5881
5891
|
}
|
|
@@ -5894,7 +5904,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5894
5904
|
{
|
|
5895
5905
|
className: H([
|
|
5896
5906
|
`${L}__label-text`,
|
|
5897
|
-
|
|
5907
|
+
g ? "" : "visually-hidden"
|
|
5898
5908
|
])
|
|
5899
5909
|
},
|
|
5900
5910
|
m,
|
|
@@ -5929,19 +5939,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5929
5939
|
validationStatus: h,
|
|
5930
5940
|
...v
|
|
5931
5941
|
}) => {
|
|
5932
|
-
const
|
|
5942
|
+
const C = l ? { width: `${l / 16}rem` } : null, f = "pds-checkbox-group", g = t ? J.disabled : null, y = m && !t ? J.required : null, p = h === "error" ? J.error : null, d = h === "success" ? J.success : null, E = _ || n;
|
|
5933
5943
|
return /* @__PURE__ */ e.createElement(
|
|
5934
5944
|
"div",
|
|
5935
5945
|
{
|
|
5936
5946
|
className: H([
|
|
5937
5947
|
f,
|
|
5938
|
-
|
|
5939
|
-
|
|
5948
|
+
g,
|
|
5949
|
+
y,
|
|
5940
5950
|
p,
|
|
5941
5951
|
d,
|
|
5942
5952
|
r ?? ""
|
|
5943
5953
|
]),
|
|
5944
|
-
style: l ?
|
|
5954
|
+
style: l ? C : null,
|
|
5945
5955
|
...v
|
|
5946
5956
|
},
|
|
5947
5957
|
/* @__PURE__ */ e.createElement("fieldset", { className: `${f}__fieldset`, id: c, ...a }, /* @__PURE__ */ e.createElement(
|
|
@@ -5982,10 +5992,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
5982
5992
|
showLabel: _ = !0,
|
|
5983
5993
|
tooltipText: h = null,
|
|
5984
5994
|
validationMessage: v,
|
|
5985
|
-
validationStatus:
|
|
5995
|
+
validationStatus: C,
|
|
5986
5996
|
...f
|
|
5987
5997
|
}) => {
|
|
5988
|
-
const
|
|
5998
|
+
const g = c ? { width: `${c / 16}rem` } : null, y = "pds-checkbox-group", p = r ? J.disabled : null, d = u && !r ? J.required : null, E = C === "error" ? J.error : null, $ = C === "success" ? J.success : null, N = v || i;
|
|
5989
5999
|
o.map((z) => {
|
|
5990
6000
|
z.id || (z.id = z.value);
|
|
5991
6001
|
});
|
|
@@ -6009,17 +6019,17 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6009
6019
|
"div",
|
|
6010
6020
|
{
|
|
6011
6021
|
className: H([
|
|
6012
|
-
|
|
6022
|
+
y,
|
|
6013
6023
|
p,
|
|
6014
6024
|
d,
|
|
6015
6025
|
E,
|
|
6016
|
-
|
|
6026
|
+
$,
|
|
6017
6027
|
s ?? ""
|
|
6018
6028
|
]),
|
|
6019
|
-
style: c ?
|
|
6029
|
+
style: c ? g : null,
|
|
6020
6030
|
...f
|
|
6021
6031
|
},
|
|
6022
|
-
/* @__PURE__ */ e.createElement("fieldset", { className: `${
|
|
6032
|
+
/* @__PURE__ */ e.createElement("fieldset", { className: `${y}__fieldset`, id: a, ...t }, /* @__PURE__ */ e.createElement(
|
|
6023
6033
|
Be,
|
|
6024
6034
|
{
|
|
6025
6035
|
isLegend: !0,
|
|
@@ -6030,12 +6040,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6030
6040
|
showLabel: _,
|
|
6031
6041
|
tooltipText: h
|
|
6032
6042
|
}
|
|
6033
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6043
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${y}__options` }, o.map((z) => /* @__PURE__ */ e.createElement(
|
|
6034
6044
|
os,
|
|
6035
6045
|
{
|
|
6036
6046
|
key: z.id,
|
|
6037
6047
|
checked: z.checked,
|
|
6038
|
-
className: `${
|
|
6048
|
+
className: `${y}__checkbox`,
|
|
6039
6049
|
disabled: z.disabled || r,
|
|
6040
6050
|
id: z.id,
|
|
6041
6051
|
label: z.label,
|
|
@@ -6052,7 +6062,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6052
6062
|
hasValidationMessage: !!v,
|
|
6053
6063
|
id: a,
|
|
6054
6064
|
message: N,
|
|
6055
|
-
validationStatus:
|
|
6065
|
+
validationStatus: C
|
|
6056
6066
|
}
|
|
6057
6067
|
)
|
|
6058
6068
|
);
|
|
@@ -6077,14 +6087,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6077
6087
|
},
|
|
6078
6088
|
loadingText: h = "Loading results...",
|
|
6079
6089
|
message: v,
|
|
6080
|
-
noResultsText:
|
|
6090
|
+
noResultsText: C = "No results found",
|
|
6081
6091
|
onBlur: f,
|
|
6082
|
-
onChange:
|
|
6083
|
-
onClear:
|
|
6092
|
+
onChange: g,
|
|
6093
|
+
onClear: y,
|
|
6084
6094
|
onFocus: p,
|
|
6085
6095
|
onOptionSelect: d,
|
|
6086
6096
|
options: E,
|
|
6087
|
-
placeholder:
|
|
6097
|
+
placeholder: $,
|
|
6088
6098
|
required: N = !1,
|
|
6089
6099
|
showLabel: w = !0,
|
|
6090
6100
|
showUnfilteredOptions: L = !1,
|
|
@@ -6157,10 +6167,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6157
6167
|
), ee = () => {
|
|
6158
6168
|
F(!O);
|
|
6159
6169
|
}, j = () => {
|
|
6160
|
-
Y || oe(""), R(null), F(!0), ae.current?.focus(),
|
|
6170
|
+
Y || oe(""), R(null), F(!0), ae.current?.focus(), y && y();
|
|
6161
6171
|
}, ie = (fe) => {
|
|
6162
6172
|
let Ce = fe.target.value;
|
|
6163
|
-
|
|
6173
|
+
g && g(fe), Y || (Ce.length > 0 && (Ce = Ce.trimStart()), oe(Ce)), Ce ? (R(null), F(!0)) : L || F(!1);
|
|
6164
6174
|
}, le = (fe) => {
|
|
6165
6175
|
f?.(fe);
|
|
6166
6176
|
}, ge = (fe) => {
|
|
@@ -6259,7 +6269,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6259
6269
|
"aria-autocomplete": "list",
|
|
6260
6270
|
"aria-label": _.inputInstructions,
|
|
6261
6271
|
disabled: t,
|
|
6262
|
-
placeholder:
|
|
6272
|
+
placeholder: $,
|
|
6263
6273
|
value: Q,
|
|
6264
6274
|
onBlur: le,
|
|
6265
6275
|
onChange: ie,
|
|
@@ -6315,7 +6325,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6315
6325
|
},
|
|
6316
6326
|
...xe()
|
|
6317
6327
|
},
|
|
6318
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...$e } }, o ? /* @__PURE__ */ e.createElement("div", { className: `${I}__loading` }, h) : re.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${I}__options`, role: "group" }, ke) : /* @__PURE__ */ e.createElement("div", { className: `${I}__no-results` },
|
|
6328
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...$e } }, o ? /* @__PURE__ */ e.createElement("div", { className: `${I}__loading` }, h) : re.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${I}__options`, role: "group" }, ke) : /* @__PURE__ */ e.createElement("div", { className: `${I}__no-results` }, C))
|
|
6319
6329
|
),
|
|
6320
6330
|
se && /* @__PURE__ */ e.createElement(
|
|
6321
6331
|
Ze,
|
|
@@ -6361,12 +6371,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6361
6371
|
onChange: _,
|
|
6362
6372
|
options: h,
|
|
6363
6373
|
placeholder: v = "Filter",
|
|
6364
|
-
required:
|
|
6374
|
+
required: C = !1,
|
|
6365
6375
|
showAllTags: f = !1,
|
|
6366
|
-
showLabel:
|
|
6367
|
-
|
|
6376
|
+
showLabel: g = !0,
|
|
6377
|
+
...y
|
|
6368
6378
|
}) => {
|
|
6369
|
-
const p = je(l), d = "pds-combobox-multi", E = t ? J.disabled : null,
|
|
6379
|
+
const p = je(l), d = "pds-combobox-multi", E = t ? J.disabled : null, $ = C && !t ? J.required : null, N = f ? `${d}--show-all-tags` : null, [w, L] = B(""), [b, k] = B(c), [M, z] = B(
|
|
6370
6380
|
null
|
|
6371
6381
|
), [T, A] = B(!1), V = Kt(
|
|
6372
6382
|
() => ms(h, b, w),
|
|
@@ -6536,12 +6546,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6536
6546
|
J.base,
|
|
6537
6547
|
d,
|
|
6538
6548
|
E,
|
|
6539
|
-
|
|
6549
|
+
$,
|
|
6540
6550
|
N,
|
|
6541
6551
|
r ?? ""
|
|
6542
6552
|
]),
|
|
6543
6553
|
style: l ? p : null,
|
|
6544
|
-
|
|
6554
|
+
...y
|
|
6545
6555
|
},
|
|
6546
6556
|
/* @__PURE__ */ e.createElement(
|
|
6547
6557
|
Be,
|
|
@@ -6549,8 +6559,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6549
6559
|
disabled: t,
|
|
6550
6560
|
id: a,
|
|
6551
6561
|
label: n,
|
|
6552
|
-
required:
|
|
6553
|
-
showLabel:
|
|
6562
|
+
required: C,
|
|
6563
|
+
showLabel: g
|
|
6554
6564
|
}
|
|
6555
6565
|
),
|
|
6556
6566
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6560,7 +6570,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6560
6570
|
G.setReference(q), _e.setReference(q);
|
|
6561
6571
|
},
|
|
6562
6572
|
"aria-disabled": t ? !0 : null,
|
|
6563
|
-
"aria-required":
|
|
6573
|
+
"aria-required": C ? !0 : null,
|
|
6564
6574
|
className: `${d}__input-wrapper`,
|
|
6565
6575
|
onKeyDown: Ge,
|
|
6566
6576
|
onMouseDown: Xe,
|
|
@@ -6751,10 +6761,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6751
6761
|
showLabel: _,
|
|
6752
6762
|
tooltipText: h,
|
|
6753
6763
|
translationStrings: v = ds,
|
|
6754
|
-
value:
|
|
6764
|
+
value: C,
|
|
6755
6765
|
...f
|
|
6756
6766
|
}) => {
|
|
6757
|
-
const [
|
|
6767
|
+
const [g, y] = B(C), [p, d] = B(!1), [E, $] = B(null), [N, w] = B(""), L = je(c), b = "pds-datepicker", k = r ? J.disabled : null, M = u && !r ? J.required : null, z = o && o.length > 0 && t ? "bottom-end" : "bottom-start", { floatingStyles: T, refs: A } = He({
|
|
6758
6768
|
open: p,
|
|
6759
6769
|
onOpenChange: d,
|
|
6760
6770
|
placement: z,
|
|
@@ -6808,7 +6818,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6808
6818
|
return { from: G, to: G };
|
|
6809
6819
|
}
|
|
6810
6820
|
}, I = (R) => {
|
|
6811
|
-
|
|
6821
|
+
y(R), n?.(R), w(""), t || setTimeout(() => {
|
|
6812
6822
|
d(!1);
|
|
6813
6823
|
}, 300);
|
|
6814
6824
|
}, Z = (R) => {
|
|
@@ -6816,7 +6826,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6816
6826
|
}, W = (R) => {
|
|
6817
6827
|
I(R);
|
|
6818
6828
|
}, X = () => {
|
|
6819
|
-
|
|
6829
|
+
y(void 0), n?.(void 0), w("");
|
|
6820
6830
|
}, ce = () => {
|
|
6821
6831
|
d(!1);
|
|
6822
6832
|
}, te = (R) => {
|
|
@@ -6824,26 +6834,26 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6824
6834
|
if (!G) return;
|
|
6825
6835
|
w(R);
|
|
6826
6836
|
const oe = V(G);
|
|
6827
|
-
|
|
6837
|
+
y(oe), n?.(oe), t || setTimeout(() => {
|
|
6828
6838
|
d(!1);
|
|
6829
6839
|
}, 300);
|
|
6830
|
-
}, se = () => t ?
|
|
6840
|
+
}, se = () => t ? g?.from : g, Y = ({
|
|
6831
6841
|
className: R,
|
|
6832
6842
|
orientation: G
|
|
6833
6843
|
}) => G === "left" ? /* @__PURE__ */ e.createElement(D, { className: R, iconName: "angleLeft", iconSize: "md" }) : /* @__PURE__ */ e.createElement(D, { className: R, iconName: "angleRight", iconSize: "md" }), S = (R) => x2(R, "EEEEE", { locale: i }), x = () => {
|
|
6834
6844
|
if (t) {
|
|
6835
|
-
const R =
|
|
6845
|
+
const R = g;
|
|
6836
6846
|
return R?.from ? R.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, et(R.from, i), /* @__PURE__ */ e.createElement("span", { className: `${b}__separator` }, " – "), et(R.to, i)) : et(R.from, i) : m || "";
|
|
6837
6847
|
} else {
|
|
6838
|
-
const R =
|
|
6848
|
+
const R = g;
|
|
6839
6849
|
return R ? et(R, i) : m || "";
|
|
6840
6850
|
}
|
|
6841
|
-
}, O = () => t ? !
|
|
6851
|
+
}, O = () => t ? !g?.from : !g, F = () => {
|
|
6842
6852
|
if (t) {
|
|
6843
|
-
const R =
|
|
6853
|
+
const R = g;
|
|
6844
6854
|
return R?.from ? R.to ? `${v.selectedDateRange}${et(R.from, i)}${v.to}${et(R.to, i)}` : `${v.selectedStartDate}${et(R.from, i)}${v.pleaseSelectEndDate}` : v.noDateRangeSelected || "";
|
|
6845
6855
|
} else {
|
|
6846
|
-
const R =
|
|
6856
|
+
const R = g;
|
|
6847
6857
|
return R ? `${v.selectedDate}${et(R, i)}` : v.noDateSelected || "";
|
|
6848
6858
|
}
|
|
6849
6859
|
}, K = (R) => {
|
|
@@ -6894,7 +6904,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6894
6904
|
"button",
|
|
6895
6905
|
{
|
|
6896
6906
|
ref: (R) => {
|
|
6897
|
-
A.setReference(R),
|
|
6907
|
+
A.setReference(R), $(R);
|
|
6898
6908
|
},
|
|
6899
6909
|
"aria-expanded": p,
|
|
6900
6910
|
"aria-haspopup": "dialog",
|
|
@@ -6944,7 +6954,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6944
6954
|
navLayout: "around",
|
|
6945
6955
|
numberOfMonths: 2,
|
|
6946
6956
|
onSelect: Z,
|
|
6947
|
-
selected:
|
|
6957
|
+
selected: g
|
|
6948
6958
|
}
|
|
6949
6959
|
) : /* @__PURE__ */ e.createElement(
|
|
6950
6960
|
d2,
|
|
@@ -6962,7 +6972,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
6962
6972
|
navLayout: "around",
|
|
6963
6973
|
numberOfMonths: 1,
|
|
6964
6974
|
onSelect: W,
|
|
6965
|
-
selected:
|
|
6975
|
+
selected: g
|
|
6966
6976
|
}
|
|
6967
6977
|
)),
|
|
6968
6978
|
!t && /* @__PURE__ */ e.createElement("div", { className: `${b}__actions` }, /* @__PURE__ */ e.createElement(
|
|
@@ -7018,19 +7028,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7018
7028
|
onClear: _,
|
|
7019
7029
|
onFileChange: h,
|
|
7020
7030
|
required: v = !1,
|
|
7021
|
-
showFullPath:
|
|
7031
|
+
showFullPath: C,
|
|
7022
7032
|
showLabel: f = !0,
|
|
7023
|
-
tooltipText:
|
|
7024
|
-
validationMessage:
|
|
7033
|
+
tooltipText: g = null,
|
|
7034
|
+
validationMessage: y,
|
|
7025
7035
|
validationStatus: p,
|
|
7026
7036
|
...d
|
|
7027
7037
|
}, E) => {
|
|
7028
|
-
const [
|
|
7038
|
+
const [$, N] = B(!1), [w, L] = B(
|
|
7029
7039
|
!!(yt && t)
|
|
7030
7040
|
), b = je(n), k = "pds-file-upload", M = a ? J.disabled : null, z = v && !a ? J.required : null, T = p === "error" ? J.error : null, A = p === "success" ? J.success : null, V = w ? `${k}--safari-default` : null;
|
|
7031
7041
|
let I = null;
|
|
7032
7042
|
p === "error" && (I = "error"), p === "success" && (I = "success");
|
|
7033
|
-
const Z =
|
|
7043
|
+
const Z = y || o, W = t ? [t] : null, X = t ? t.split("/").pop() : null, ce = C ? t : X, te = t ? new File(W, ce) : null;
|
|
7034
7044
|
me(() => {
|
|
7035
7045
|
const x = new DataTransfer();
|
|
7036
7046
|
if (te && x.items.add(te), x.files.length > 0) {
|
|
@@ -7039,7 +7049,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7039
7049
|
);
|
|
7040
7050
|
O.files = x.files, yt && (O.dataset.file = `${ce}`), N(!0);
|
|
7041
7051
|
}
|
|
7042
|
-
}, [t,
|
|
7052
|
+
}, [t, C]);
|
|
7043
7053
|
const se = () => {
|
|
7044
7054
|
const x = document.getElementById(
|
|
7045
7055
|
`${l}--input`
|
|
@@ -7084,13 +7094,13 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7084
7094
|
label: c,
|
|
7085
7095
|
required: v,
|
|
7086
7096
|
showLabel: f,
|
|
7087
|
-
tooltipText:
|
|
7097
|
+
tooltipText: g
|
|
7088
7098
|
}
|
|
7089
7099
|
),
|
|
7090
7100
|
/* @__PURE__ */ e.createElement("span", { className: `${k}__input-wrapper`, id: l }, I && /* @__PURE__ */ e.createElement(ut, { variant: I }), /* @__PURE__ */ e.createElement(
|
|
7091
7101
|
"label",
|
|
7092
7102
|
{
|
|
7093
|
-
className:
|
|
7103
|
+
className: $ ? "visually-hidden" : `${k}__input-label`,
|
|
7094
7104
|
htmlFor: `${l}--input`
|
|
7095
7105
|
},
|
|
7096
7106
|
/* @__PURE__ */ e.createElement(D, { iconName: "paperclip", iconSize: "sm" }),
|
|
@@ -7111,7 +7121,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7111
7121
|
type: "file",
|
|
7112
7122
|
...i
|
|
7113
7123
|
}
|
|
7114
|
-
),
|
|
7124
|
+
), $ && /* @__PURE__ */ e.createElement(
|
|
7115
7125
|
c2,
|
|
7116
7126
|
{
|
|
7117
7127
|
clearLabel: m.clearButton,
|
|
@@ -7122,7 +7132,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7122
7132
|
Z && /* @__PURE__ */ e.createElement(
|
|
7123
7133
|
Ze,
|
|
7124
7134
|
{
|
|
7125
|
-
hasValidationMessage:
|
|
7135
|
+
hasValidationMessage: !!y,
|
|
7126
7136
|
id: l,
|
|
7127
7137
|
message: Z,
|
|
7128
7138
|
validationMessageHasDecorators: !1,
|
|
@@ -7171,13 +7181,13 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7171
7181
|
options: _,
|
|
7172
7182
|
required: h = !1,
|
|
7173
7183
|
showLabel: v = !0,
|
|
7174
|
-
tooltipText:
|
|
7184
|
+
tooltipText: C = null,
|
|
7175
7185
|
validationMessage: f,
|
|
7176
|
-
validationStatus:
|
|
7177
|
-
value:
|
|
7186
|
+
validationStatus: g,
|
|
7187
|
+
value: y,
|
|
7178
7188
|
...p
|
|
7179
7189
|
}) => {
|
|
7180
|
-
const d = "pds-radio-group", E = t ? J.disabled : null,
|
|
7190
|
+
const d = "pds-radio-group", E = t ? J.disabled : null, $ = h && !t ? J.required : null, N = g === "error" ? J.error : null, w = g === "success" ? J.success : null, L = typeof y < "u", b = typeof r < "u", [k, M] = B(
|
|
7181
7191
|
b ? r : ""
|
|
7182
7192
|
), z = f || n, T = (V) => {
|
|
7183
7193
|
L || M(V.target.value), o && o(V), u && u(V.target.value);
|
|
@@ -7190,7 +7200,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7190
7200
|
className: H([
|
|
7191
7201
|
d,
|
|
7192
7202
|
E,
|
|
7193
|
-
|
|
7203
|
+
$,
|
|
7194
7204
|
N,
|
|
7195
7205
|
w,
|
|
7196
7206
|
s ?? ""
|
|
@@ -7207,7 +7217,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7207
7217
|
label: i,
|
|
7208
7218
|
required: h,
|
|
7209
7219
|
showLabel: v,
|
|
7210
|
-
tooltipText:
|
|
7220
|
+
tooltipText: C
|
|
7211
7221
|
}
|
|
7212
7222
|
), /* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, _.map((V, I) => /* @__PURE__ */ e.createElement(
|
|
7213
7223
|
"div",
|
|
@@ -7218,7 +7228,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7218
7228
|
/* @__PURE__ */ e.createElement(
|
|
7219
7229
|
"input",
|
|
7220
7230
|
{
|
|
7221
|
-
checked: L ?
|
|
7231
|
+
checked: L ? y === V.value : k === V.value,
|
|
7222
7232
|
disabled: t || V.disabled,
|
|
7223
7233
|
id: V.id ? V.id : `${c}-option-${I}`,
|
|
7224
7234
|
name: c,
|
|
@@ -7238,7 +7248,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7238
7248
|
hasValidationMessage: !!f,
|
|
7239
7249
|
id: c,
|
|
7240
7250
|
message: z,
|
|
7241
|
-
validationStatus:
|
|
7251
|
+
validationStatus: g
|
|
7242
7252
|
}
|
|
7243
7253
|
)
|
|
7244
7254
|
);
|
|
@@ -7258,14 +7268,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7258
7268
|
onLabel: _ = "On",
|
|
7259
7269
|
required: h = !1,
|
|
7260
7270
|
showLabel: v = !0,
|
|
7261
|
-
showStatusLabel:
|
|
7271
|
+
showStatusLabel: C = !0,
|
|
7262
7272
|
statusLabelPlacement: f = "right",
|
|
7263
|
-
switchPlacement:
|
|
7264
|
-
|
|
7273
|
+
switchPlacement: g = "right",
|
|
7274
|
+
...y
|
|
7265
7275
|
}, p) => {
|
|
7266
|
-
const d = je(i), E = "pds-switch",
|
|
7276
|
+
const d = je(i), E = "pds-switch", $ = `${E}--${g}`, N = m ? `${E}--message` : null, w = a ? J.disabled : null, L = h && !a ? J.required : null, b = typeof s < "u", k = !b && t ? t : !1, [M, z] = B(k), T = s || M ? _ : o, A = (X) => {
|
|
7267
7277
|
b || z(X.target.checked), u && u(X);
|
|
7268
|
-
}, V =
|
|
7278
|
+
}, V = C ? /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${E}__toggle-label` }, T) : null, I = () => {
|
|
7269
7279
|
a || document.getElementById(c)?.click();
|
|
7270
7280
|
}, Z = /* @__PURE__ */ e.createElement(
|
|
7271
7281
|
"div",
|
|
@@ -7297,7 +7307,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7297
7307
|
className: `${E}__track`,
|
|
7298
7308
|
onClick: I
|
|
7299
7309
|
},
|
|
7300
|
-
!
|
|
7310
|
+
!C && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7301
7311
|
"span",
|
|
7302
7312
|
{
|
|
7303
7313
|
className: `${E}__track-icon`,
|
|
@@ -7330,14 +7340,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7330
7340
|
className: H([
|
|
7331
7341
|
J.base,
|
|
7332
7342
|
E,
|
|
7333
|
-
|
|
7343
|
+
$,
|
|
7334
7344
|
N,
|
|
7335
7345
|
w,
|
|
7336
7346
|
L,
|
|
7337
7347
|
r
|
|
7338
7348
|
]),
|
|
7339
7349
|
style: i ? d : null,
|
|
7340
|
-
|
|
7350
|
+
...y
|
|
7341
7351
|
},
|
|
7342
7352
|
/* @__PURE__ */ e.createElement(
|
|
7343
7353
|
Be,
|
|
@@ -7368,19 +7378,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7368
7378
|
setFocusedIndex: _,
|
|
7369
7379
|
tag: h,
|
|
7370
7380
|
totalTags: v,
|
|
7371
|
-
translationStrings:
|
|
7381
|
+
translationStrings: C
|
|
7372
7382
|
}) => {
|
|
7373
|
-
const f = ue(null),
|
|
7383
|
+
const f = ue(null), g = "pds-tags-input__tag";
|
|
7374
7384
|
me(() => {
|
|
7375
7385
|
t === a && f.current && f.current.focus();
|
|
7376
7386
|
}, [t, a]);
|
|
7377
|
-
const
|
|
7387
|
+
const y = (M) => {
|
|
7378
7388
|
if (!l || !f.current) return;
|
|
7379
7389
|
const z = window.getComputedStyle(
|
|
7380
7390
|
f.current.closest(".pds-tags-input") || document.documentElement
|
|
7381
7391
|
), T = z.getPropertyValue("--tag-hover-background").trim(), A = z.getPropertyValue("--tag-text-hover-color").trim(), V = z.getPropertyValue("--tag-selected-outline").trim(), I = f.current.style.backgroundColor, Z = f.current.style.color, W = f.current.style.outline, X = f.current.style.outlineOffset;
|
|
7382
7392
|
f.current.style.backgroundColor = T, f.current.style.color = A, f.current.style.outline = V, f.current.style.outlineOffset = "-1px", f.current.offsetHeight, M.dataTransfer.effectAllowed = "move", M.dataTransfer.setData("text/html", M.currentTarget.innerHTML), setTimeout(() => {
|
|
7383
|
-
f.current && (f.current.style.backgroundColor = I, f.current.style.color = Z, f.current.style.outline = W, f.current.style.outlineOffset = X, f.current.classList.add(`${
|
|
7393
|
+
f.current && (f.current.style.backgroundColor = I, f.current.style.color = Z, f.current.style.outline = W, f.current.style.outlineOffset = X, f.current.classList.add(`${g}--dragging`));
|
|
7384
7394
|
}, 0), m(h.id);
|
|
7385
7395
|
}, p = (M) => {
|
|
7386
7396
|
if (!l || !f.current) return;
|
|
@@ -7400,14 +7410,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7400
7410
|
}
|
|
7401
7411
|
M.key === "Delete" ? (M.preventDefault(), u(h.id), a > 0 && _(a - 1)) : M.key === "ArrowLeft" && !M.shiftKey && a > 0 ? (M.preventDefault(), _(a - 1)) : M.key === "ArrowRight" && !M.shiftKey && a < v - 1 && (M.preventDefault(), _(a + 1));
|
|
7402
7412
|
}
|
|
7403
|
-
}, E = String(a + 1),
|
|
7413
|
+
}, E = String(a + 1), $ = String(v), N = l ? C.tagAriaLabel : C.tagAriaLabelSimple, w = `${h.value}, ${N.replace("{index}", E).replace("{total}", $)}`, L = c ? `${g}--dragging` : null, b = s ? J.disabled : null, k = r ? `${g}--drop-target-${r}` : null;
|
|
7404
7414
|
return /* @__PURE__ */ e.createElement(
|
|
7405
7415
|
"div",
|
|
7406
7416
|
{
|
|
7407
7417
|
ref: f,
|
|
7408
7418
|
"aria-label": w,
|
|
7409
7419
|
className: H([
|
|
7410
|
-
|
|
7420
|
+
g,
|
|
7411
7421
|
L,
|
|
7412
7422
|
b,
|
|
7413
7423
|
k
|
|
@@ -7415,18 +7425,18 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7415
7425
|
draggable: l && !s,
|
|
7416
7426
|
onDragEnd: l ? i : void 0,
|
|
7417
7427
|
onDragOver: l ? p : void 0,
|
|
7418
|
-
onDragStart: l ?
|
|
7428
|
+
onDragStart: l ? y : void 0,
|
|
7419
7429
|
onKeyDown: d,
|
|
7420
7430
|
role: "button",
|
|
7421
7431
|
tabIndex: s ? -1 : 0
|
|
7422
7432
|
},
|
|
7423
|
-
l && /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${
|
|
7424
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
7433
|
+
l && /* @__PURE__ */ e.createElement("span", { "aria-hidden": "true", className: `${g}-grip` }, /* @__PURE__ */ e.createElement(D, { iconName: "gripDotsVertical", iconSize: "sm" })),
|
|
7434
|
+
/* @__PURE__ */ e.createElement("span", { className: `${g}-text` }, h.value),
|
|
7425
7435
|
/* @__PURE__ */ e.createElement(
|
|
7426
7436
|
"button",
|
|
7427
7437
|
{
|
|
7428
|
-
"aria-label":
|
|
7429
|
-
className: `${
|
|
7438
|
+
"aria-label": C.tagRemove.replace("{value}", h.value),
|
|
7439
|
+
className: `${g}-remove`,
|
|
7430
7440
|
disabled: s,
|
|
7431
7441
|
onClick: (M) => {
|
|
7432
7442
|
M.stopPropagation(), u(h.id);
|
|
@@ -7437,7 +7447,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7437
7447
|
/* @__PURE__ */ e.createElement(
|
|
7438
7448
|
D,
|
|
7439
7449
|
{
|
|
7440
|
-
className: `${
|
|
7450
|
+
className: `${g}-remove-icon`,
|
|
7441
7451
|
iconName: "xmark",
|
|
7442
7452
|
iconSize: "md"
|
|
7443
7453
|
}
|
|
@@ -7460,7 +7470,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7460
7470
|
required: _ = !1,
|
|
7461
7471
|
showLabel: h = !0,
|
|
7462
7472
|
tags: v,
|
|
7463
|
-
tooltipText:
|
|
7473
|
+
tooltipText: C = null,
|
|
7464
7474
|
translationStrings: f = {
|
|
7465
7475
|
inputInstructions: "Type a tag name and press Enter to add. Press Backspace on empty input to remove last tag. Press left arrow on empty input to navigate to tags.",
|
|
7466
7476
|
tagAriaLabel: "tag {index} of {total}. Press Shift plus arrow keys to reorder, Delete to remove.",
|
|
@@ -7468,11 +7478,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7468
7478
|
tagRemove: "Remove {value}",
|
|
7469
7479
|
tagsListLabel: "Current tags"
|
|
7470
7480
|
},
|
|
7471
|
-
validationMessage:
|
|
7472
|
-
validationStatus:
|
|
7481
|
+
validationMessage: g,
|
|
7482
|
+
validationStatus: y,
|
|
7473
7483
|
...p
|
|
7474
7484
|
}, d) => {
|
|
7475
|
-
const E = je(l),
|
|
7485
|
+
const E = je(l), $ = "pds-tags-input", N = t ? J.disabled : null, w = _ && !t ? J.required : null, L = y === "error" ? J.error : null, b = y === "success" ? J.success : null, k = g || m, [M, z] = B(""), [T, A] = B(null), [V, I] = B(null), [Z, W] = B(null), [X, ce] = B(null), [te, se] = B(""), Y = ue(null), S = v.length > 0 ? s : u, x = (Q) => {
|
|
7476
7486
|
se(Q), setTimeout(() => se(""), 1e3);
|
|
7477
7487
|
}, O = (Q) => {
|
|
7478
7488
|
o(Q);
|
|
@@ -7519,7 +7529,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7519
7529
|
{
|
|
7520
7530
|
className: H([
|
|
7521
7531
|
J.base,
|
|
7522
|
-
|
|
7532
|
+
$,
|
|
7523
7533
|
N,
|
|
7524
7534
|
w,
|
|
7525
7535
|
L,
|
|
@@ -7537,7 +7547,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7537
7547
|
label: n,
|
|
7538
7548
|
required: _,
|
|
7539
7549
|
showLabel: h,
|
|
7540
|
-
tooltipText:
|
|
7550
|
+
tooltipText: C
|
|
7541
7551
|
}
|
|
7542
7552
|
),
|
|
7543
7553
|
/* @__PURE__ */ e.createElement("div", { "aria-atomic": "true", "aria-live": "polite", className: "visually-hidden" }, te),
|
|
@@ -7545,7 +7555,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7545
7555
|
"div",
|
|
7546
7556
|
{
|
|
7547
7557
|
"aria-labelledby": `${a}-label`,
|
|
7548
|
-
className: `${
|
|
7558
|
+
className: `${$}__input-wrapper`,
|
|
7549
7559
|
role: "group",
|
|
7550
7560
|
style: { minHeight: `${c}px` }
|
|
7551
7561
|
},
|
|
@@ -7553,7 +7563,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7553
7563
|
"div",
|
|
7554
7564
|
{
|
|
7555
7565
|
"aria-label": f.tagsListLabel,
|
|
7556
|
-
className: `${
|
|
7566
|
+
className: `${$}__tags`,
|
|
7557
7567
|
onDrop: i ? G : void 0,
|
|
7558
7568
|
role: "list"
|
|
7559
7569
|
},
|
|
@@ -7588,8 +7598,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7588
7598
|
Y.current = Q, typeof d == "function" ? d(Q) : d && (d.current = Q);
|
|
7589
7599
|
},
|
|
7590
7600
|
"aria-describedby": `${a}__instructions`,
|
|
7591
|
-
"aria-invalid":
|
|
7592
|
-
className: `${
|
|
7601
|
+
"aria-invalid": y === "error" ? !0 : null,
|
|
7602
|
+
className: `${$}__input`,
|
|
7593
7603
|
disabled: t,
|
|
7594
7604
|
id: a,
|
|
7595
7605
|
name: a,
|
|
@@ -7606,11 +7616,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7606
7616
|
k && /* @__PURE__ */ e.createElement(
|
|
7607
7617
|
Ze,
|
|
7608
7618
|
{
|
|
7609
|
-
hasValidationMessage: !!
|
|
7619
|
+
hasValidationMessage: !!g,
|
|
7610
7620
|
id: a,
|
|
7611
7621
|
message: k,
|
|
7612
7622
|
validationMessageHasDecorators: !1,
|
|
7613
|
-
validationStatus:
|
|
7623
|
+
validationStatus: y
|
|
7614
7624
|
}
|
|
7615
7625
|
)
|
|
7616
7626
|
);
|
|
@@ -7631,10 +7641,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7631
7641
|
onFocus: _,
|
|
7632
7642
|
placeholder: h,
|
|
7633
7643
|
readonly: v = !1,
|
|
7634
|
-
required:
|
|
7644
|
+
required: C = !1,
|
|
7635
7645
|
rows: f = 5,
|
|
7636
|
-
showLabel:
|
|
7637
|
-
textareaProps:
|
|
7646
|
+
showLabel: g,
|
|
7647
|
+
textareaProps: y,
|
|
7638
7648
|
tooltipText: p = null,
|
|
7639
7649
|
translationStrings: d = {
|
|
7640
7650
|
clearButton: "Clear input text",
|
|
@@ -7645,11 +7655,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7645
7655
|
visibilityToggleShow: "Show input value"
|
|
7646
7656
|
},
|
|
7647
7657
|
validationMessage: E,
|
|
7648
|
-
validationStatus:
|
|
7658
|
+
validationStatus: $,
|
|
7649
7659
|
value: N,
|
|
7650
7660
|
...w
|
|
7651
7661
|
}, L) => {
|
|
7652
|
-
const b = je(l), k = "pds-textarea", M = i ? "pds-is-resizable" : null, z = a ? J.disabled : null, T =
|
|
7662
|
+
const b = je(l), k = "pds-textarea", M = i ? "pds-is-resizable" : null, z = a ? J.disabled : null, T = C && !a ? J.required : null, A = $ === "error" ? J.error : null, V = $ === "success" ? J.success : null, I = v ? J.readonly : null, Z = E || m, W = N != null && u !== void 0, X = typeof t < "u", [ce, te] = B(
|
|
7653
7663
|
X ? t : ""
|
|
7654
7664
|
), se = N || ce, Y = (x) => {
|
|
7655
7665
|
W || te(x.target.value), u && u(x);
|
|
@@ -7679,8 +7689,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7679
7689
|
disabled: a,
|
|
7680
7690
|
id: c,
|
|
7681
7691
|
label: n,
|
|
7682
|
-
required:
|
|
7683
|
-
showLabel:
|
|
7692
|
+
required: C,
|
|
7693
|
+
showLabel: g,
|
|
7684
7694
|
tooltipText: p
|
|
7685
7695
|
}
|
|
7686
7696
|
), r && /* @__PURE__ */ e.createElement(
|
|
@@ -7697,7 +7707,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7697
7707
|
{
|
|
7698
7708
|
ref: L,
|
|
7699
7709
|
"aria-describedby": Z ? `${c}__message` : null,
|
|
7700
|
-
"aria-invalid":
|
|
7710
|
+
"aria-invalid": $ === "error",
|
|
7701
7711
|
className: H([`${k}--textarea`, M]),
|
|
7702
7712
|
disabled: a,
|
|
7703
7713
|
id: c,
|
|
@@ -7707,10 +7717,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7707
7717
|
onFocus: _,
|
|
7708
7718
|
placeholder: h,
|
|
7709
7719
|
readOnly: v,
|
|
7710
|
-
required:
|
|
7720
|
+
required: C,
|
|
7711
7721
|
rows: f,
|
|
7712
7722
|
value: W ? N : ce,
|
|
7713
|
-
|
|
7723
|
+
...y
|
|
7714
7724
|
}
|
|
7715
7725
|
)),
|
|
7716
7726
|
Z && /* @__PURE__ */ e.createElement(
|
|
@@ -7720,7 +7730,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7720
7730
|
hasValidationMessage: !!E,
|
|
7721
7731
|
id: c,
|
|
7722
7732
|
message: Z,
|
|
7723
|
-
validationStatus:
|
|
7733
|
+
validationStatus: $
|
|
7724
7734
|
}
|
|
7725
7735
|
)
|
|
7726
7736
|
);
|
|
@@ -7741,14 +7751,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7741
7751
|
label: _,
|
|
7742
7752
|
message: h,
|
|
7743
7753
|
onBlur: v,
|
|
7744
|
-
onChange:
|
|
7754
|
+
onChange: C,
|
|
7745
7755
|
onClear: f,
|
|
7746
|
-
onFocus:
|
|
7747
|
-
placeholder:
|
|
7756
|
+
onFocus: g,
|
|
7757
|
+
placeholder: y,
|
|
7748
7758
|
readonly: p = !1,
|
|
7749
7759
|
required: d = !1,
|
|
7750
7760
|
searchIcon: E = "search",
|
|
7751
|
-
showLabel:
|
|
7761
|
+
showLabel: $ = !0,
|
|
7752
7762
|
showVisibilityToggle: N = !1,
|
|
7753
7763
|
tooltipText: w = null,
|
|
7754
7764
|
translationStrings: L = {
|
|
@@ -7790,9 +7800,9 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7790
7800
|
value: ve
|
|
7791
7801
|
}
|
|
7792
7802
|
};
|
|
7793
|
-
x || K(ve),
|
|
7803
|
+
x || K(ve), C && C(be);
|
|
7794
7804
|
} else
|
|
7795
|
-
x || K(ne.target.value),
|
|
7805
|
+
x || K(ne.target.value), C && C(ne);
|
|
7796
7806
|
}, re = () => {
|
|
7797
7807
|
x || K(""), f && f();
|
|
7798
7808
|
const ne = document.getElementById(m);
|
|
@@ -7827,7 +7837,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7827
7837
|
id: m,
|
|
7828
7838
|
label: _,
|
|
7829
7839
|
required: d,
|
|
7830
|
-
showLabel:
|
|
7840
|
+
showLabel: $,
|
|
7831
7841
|
tooltipText: w
|
|
7832
7842
|
}
|
|
7833
7843
|
),
|
|
@@ -7852,8 +7862,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7852
7862
|
name: m,
|
|
7853
7863
|
onBlur: G,
|
|
7854
7864
|
onChange: oe,
|
|
7855
|
-
onFocus:
|
|
7856
|
-
placeholder:
|
|
7865
|
+
onFocus: g,
|
|
7866
|
+
placeholder: y,
|
|
7857
7867
|
readOnly: p,
|
|
7858
7868
|
required: d,
|
|
7859
7869
|
type: ae,
|
|
@@ -7961,20 +7971,20 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
7961
7971
|
title: u,
|
|
7962
7972
|
..._
|
|
7963
7973
|
}) => {
|
|
7964
|
-
const h = Pe(r), v = h.__unslotted,
|
|
7974
|
+
const h = Pe(r), v = h.__unslotted, C = h.footer, f = "pds-modal", g = o !== "md" ? `${f}--${o}` : null, y = c ? {
|
|
7965
7975
|
maxHeight: c,
|
|
7966
7976
|
paddingInlineEnd: "1rem",
|
|
7967
7977
|
marginInlineEnd: "-1rem",
|
|
7968
7978
|
overflowY: "auto"
|
|
7969
|
-
} : null, [p, d] = B(n), { closeOverlay: E, openOverlay:
|
|
7979
|
+
} : null, [p, d] = B(n), { closeOverlay: E, openOverlay: $ } = l2();
|
|
7970
7980
|
me(() => {
|
|
7971
7981
|
d(n);
|
|
7972
7982
|
}, [n]), me(() => {
|
|
7973
7983
|
m(p);
|
|
7974
7984
|
}, [p]), me(() => {
|
|
7975
|
-
if (!(
|
|
7976
|
-
return
|
|
7977
|
-
}, [p,
|
|
7985
|
+
if (!(!$ || !E) && p)
|
|
7986
|
+
return $(), () => E();
|
|
7987
|
+
}, [p, $, E]);
|
|
7978
7988
|
const { context: N, floatingStyles: w, refs: L } = He({
|
|
7979
7989
|
open: p,
|
|
7980
7990
|
onOpenChange: d
|
|
@@ -8016,7 +8026,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8016
8026
|
ref: L.setFloating,
|
|
8017
8027
|
"aria-label": s || u,
|
|
8018
8028
|
...z(),
|
|
8019
|
-
className: H([f,
|
|
8029
|
+
className: H([f, g, t]),
|
|
8020
8030
|
style: {
|
|
8021
8031
|
...w,
|
|
8022
8032
|
...A,
|
|
@@ -8034,8 +8044,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8034
8044
|
}
|
|
8035
8045
|
)),
|
|
8036
8046
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, u),
|
|
8037
|
-
/* @__PURE__ */ e.createElement("div", { className: `${f}__content`, style:
|
|
8038
|
-
|
|
8047
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__content`, style: y }, v),
|
|
8048
|
+
C && /* @__PURE__ */ e.createElement("div", { className: `${f}__footer` }, C)
|
|
8039
8049
|
))
|
|
8040
8050
|
));
|
|
8041
8051
|
}, Mn = ({
|
|
@@ -8147,24 +8157,24 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8147
8157
|
i && (l = i.isMobile);
|
|
8148
8158
|
const n = ue(null), m = "pds-button-nav", o = l ? `${m}--isMobile` : null, u = a !== "md" ? `${m}--${a}` : null;
|
|
8149
8159
|
me(() => {
|
|
8150
|
-
const f = (
|
|
8160
|
+
const f = (g) => {
|
|
8151
8161
|
if (l) return;
|
|
8152
|
-
const
|
|
8153
|
-
if (
|
|
8162
|
+
const y = n.current;
|
|
8163
|
+
if (!y) return;
|
|
8154
8164
|
const p = Array.from(
|
|
8155
|
-
|
|
8165
|
+
y.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
|
|
8156
8166
|
);
|
|
8157
8167
|
if (p.length === 0) return;
|
|
8158
8168
|
const d = document.activeElement, E = p.indexOf(d);
|
|
8159
8169
|
if (E !== -1) {
|
|
8160
|
-
if (
|
|
8161
|
-
|
|
8162
|
-
const
|
|
8163
|
-
p[
|
|
8164
|
-
} else if (
|
|
8165
|
-
|
|
8166
|
-
const
|
|
8167
|
-
p[
|
|
8170
|
+
if (g.key === "ArrowRight") {
|
|
8171
|
+
g.preventDefault();
|
|
8172
|
+
const $ = (E + 1) % p.length;
|
|
8173
|
+
p[$].focus();
|
|
8174
|
+
} else if (g.key === "ArrowLeft") {
|
|
8175
|
+
g.preventDefault();
|
|
8176
|
+
const $ = (E - 1 + p.length) % p.length;
|
|
8177
|
+
p[$].focus();
|
|
8168
8178
|
}
|
|
8169
8179
|
}
|
|
8170
8180
|
};
|
|
@@ -8172,22 +8182,22 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8172
8182
|
document.removeEventListener("keydown", f);
|
|
8173
8183
|
};
|
|
8174
8184
|
}, [l]);
|
|
8175
|
-
const _ = ({ isActive: f, linkContent:
|
|
8176
|
-
const
|
|
8185
|
+
const _ = ({ isActive: f, linkContent: g }) => {
|
|
8186
|
+
const y = `${m}__item`;
|
|
8177
8187
|
return /* @__PURE__ */ e.createElement(
|
|
8178
8188
|
"li",
|
|
8179
8189
|
{
|
|
8180
8190
|
className: H([
|
|
8181
|
-
|
|
8182
|
-
f ? `${
|
|
8191
|
+
y,
|
|
8192
|
+
f ? `${y}--active` : null
|
|
8183
8193
|
])
|
|
8184
8194
|
},
|
|
8185
|
-
|
|
8195
|
+
g
|
|
8186
8196
|
);
|
|
8187
|
-
}, h = t.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu` }, t.map((f,
|
|
8197
|
+
}, h = t.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu` }, t.map((f, g) => /* @__PURE__ */ e.createElement(
|
|
8188
8198
|
_,
|
|
8189
8199
|
{
|
|
8190
|
-
key:
|
|
8200
|
+
key: g,
|
|
8191
8201
|
isActive: Le(f),
|
|
8192
8202
|
linkContent: f.linkContent
|
|
8193
8203
|
}
|
|
@@ -8201,7 +8211,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8201
8211
|
isLink: !0
|
|
8202
8212
|
}));
|
|
8203
8213
|
});
|
|
8204
|
-
const
|
|
8214
|
+
const C = v.length > 0 ? /* @__PURE__ */ e.createElement(
|
|
8205
8215
|
_1,
|
|
8206
8216
|
{
|
|
8207
8217
|
actionItems: v,
|
|
@@ -8223,7 +8233,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8223
8233
|
]),
|
|
8224
8234
|
...c
|
|
8225
8235
|
},
|
|
8226
|
-
l ?
|
|
8236
|
+
l ? C : h
|
|
8227
8237
|
);
|
|
8228
8238
|
}, hs = ({
|
|
8229
8239
|
className: s,
|
|
@@ -8253,29 +8263,29 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8253
8263
|
skiplinkText: u = "Skip to main content",
|
|
8254
8264
|
..._
|
|
8255
8265
|
}) => {
|
|
8256
|
-
const { isMobile: h, windowWidth: v } = ye(Me), [
|
|
8266
|
+
const { isMobile: h, windowWidth: v } = ye(Me), [C, f] = B(() => c !== void 0 ? c : v > 1440), g = ue(null), [y] = St(g), p = y.width;
|
|
8257
8267
|
me(() => {
|
|
8258
8268
|
c !== void 0 && f(c);
|
|
8259
8269
|
}, [c]), me(() => {
|
|
8260
|
-
i(
|
|
8261
|
-
}, [
|
|
8270
|
+
i(C);
|
|
8271
|
+
}, [C, i]);
|
|
8262
8272
|
const d = {
|
|
8263
|
-
isSidebarExpanded: h ? !0 :
|
|
8273
|
+
isSidebarExpanded: h ? !0 : C,
|
|
8264
8274
|
logoLinkContent: l,
|
|
8265
8275
|
navbarWidth: p,
|
|
8266
8276
|
isAdmin: a
|
|
8267
|
-
}, E = "pds-dashboard-global",
|
|
8277
|
+
}, E = "pds-dashboard-global", $ = a ? `${E}--isAdmin` : null, N = h ? `${E}--isMobile` : `${E}--notMobile`, w = h ? null : C ? `${E}--sidebarExpanded` : `${E}--sidebarCollapsed`, L = C ? `${m}rem` : `${n}rem`, b = {
|
|
8268
8278
|
width: L,
|
|
8269
8279
|
transition: "width 200ms ease-in-out"
|
|
8270
8280
|
}, k = h ? {} : {
|
|
8271
8281
|
width: `calc(100% - ${L})`,
|
|
8272
8282
|
transition: "width 200ms ease-in-out"
|
|
8273
8283
|
}, M = () => {
|
|
8274
|
-
f(!
|
|
8284
|
+
f(!C);
|
|
8275
8285
|
}, z = Pe(s), T = z.header, A = z.sidebar, V = z.main, I = z.footer, Z = /* @__PURE__ */ e.createElement(e.Fragment, null, T, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar` }, A), /* @__PURE__ */ e.createElement("main", { className: `${E}__main`, id: "main" }, V), I && /* @__PURE__ */ e.createElement("footer", { className: `${E}__footer` }, I)), W = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar`, style: b }, t && /* @__PURE__ */ e.createElement(
|
|
8276
8286
|
"button",
|
|
8277
8287
|
{
|
|
8278
|
-
"aria-expanded":
|
|
8288
|
+
"aria-expanded": C,
|
|
8279
8289
|
"aria-label": o,
|
|
8280
8290
|
className: `${E}__sidebar-toggle-button`,
|
|
8281
8291
|
onClick: M
|
|
@@ -8284,7 +8294,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8284
8294
|
), /* @__PURE__ */ e.createElement("div", { className: `${E}__sidebar-inner` }, A)), /* @__PURE__ */ e.createElement(
|
|
8285
8295
|
"div",
|
|
8286
8296
|
{
|
|
8287
|
-
ref:
|
|
8297
|
+
ref: g,
|
|
8288
8298
|
className: `${E}__right`,
|
|
8289
8299
|
style: k
|
|
8290
8300
|
},
|
|
@@ -8296,7 +8306,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8296
8306
|
{
|
|
8297
8307
|
className: H([
|
|
8298
8308
|
E,
|
|
8299
|
-
|
|
8309
|
+
$,
|
|
8300
8310
|
N,
|
|
8301
8311
|
w,
|
|
8302
8312
|
"pds-typography--product",
|
|
@@ -8322,14 +8332,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8322
8332
|
}
|
|
8323
8333
|
), v = (A) => {
|
|
8324
8334
|
A.key === "Enter" && d.current[m].querySelector("a")?.click();
|
|
8325
|
-
},
|
|
8335
|
+
}, C = (A) => {
|
|
8326
8336
|
A.target.nodeName === "A" && n(!1);
|
|
8327
8337
|
};
|
|
8328
8338
|
me(() => {
|
|
8329
8339
|
if (i) {
|
|
8330
8340
|
const A = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
8331
|
-
return A.addEventListener("click",
|
|
8332
|
-
A.removeEventListener("click",
|
|
8341
|
+
return A.addEventListener("click", C), () => {
|
|
8342
|
+
A.removeEventListener("click", C);
|
|
8333
8343
|
};
|
|
8334
8344
|
}
|
|
8335
8345
|
}, [i]);
|
|
@@ -8351,7 +8361,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8351
8361
|
})
|
|
8352
8362
|
)
|
|
8353
8363
|
};
|
|
8354
|
-
},
|
|
8364
|
+
}, g = (A) => {
|
|
8355
8365
|
const V = [];
|
|
8356
8366
|
return A.forEach((I) => {
|
|
8357
8367
|
I.links ? (V.push(f({ item: I, level: "top-level" })), I.links.forEach((Z) => {
|
|
@@ -8368,19 +8378,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8368
8378
|
})) : V.push(f({ item: Z, level: "second-level" }));
|
|
8369
8379
|
})) : V.push(f({ item: I, level: "top-level" }));
|
|
8370
8380
|
}), V;
|
|
8371
|
-
}, { context:
|
|
8381
|
+
}, { context: y, refs: p } = He({
|
|
8372
8382
|
placement: "bottom-start",
|
|
8373
8383
|
open: i,
|
|
8374
8384
|
onOpenChange: n,
|
|
8375
8385
|
whileElementsMounted: ze
|
|
8376
|
-
}), d = ue([]), E = dt(
|
|
8386
|
+
}), d = ue([]), E = dt(y, {
|
|
8377
8387
|
listRef: d,
|
|
8378
8388
|
activeIndex: m,
|
|
8379
8389
|
onNavigate: o,
|
|
8380
8390
|
loop: !0,
|
|
8381
8391
|
openOnArrowKeyDown: !0,
|
|
8382
8392
|
focusItemOnHover: !0
|
|
8383
|
-
}),
|
|
8393
|
+
}), $ = tt(y, { event: "mousedown" }), N = De(y), w = Fe(y, { role: "menu" }), L = e2(y, {
|
|
8384
8394
|
listRef: d,
|
|
8385
8395
|
activeIndex: m,
|
|
8386
8396
|
selectedIndex: null,
|
|
@@ -8392,8 +8402,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8392
8402
|
return A.find((Z) => (Z?.textContent?.trim().toLowerCase() ?? "").startsWith(I));
|
|
8393
8403
|
}
|
|
8394
8404
|
}), { getFloatingProps: b, getItemProps: k, getReferenceProps: M } = Te(
|
|
8395
|
-
[N, w,
|
|
8396
|
-
), { isMounted: z, styles: T } = st(
|
|
8405
|
+
[N, w, $, E, L]
|
|
8406
|
+
), { isMounted: z, styles: T } = st(y, {
|
|
8397
8407
|
duration: {
|
|
8398
8408
|
open: 300,
|
|
8399
8409
|
close: 300
|
|
@@ -8436,7 +8446,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8436
8446
|
},
|
|
8437
8447
|
...b()
|
|
8438
8448
|
},
|
|
8439
|
-
|
|
8449
|
+
g(t).map((A, V) => /* @__PURE__ */ e.createElement(
|
|
8440
8450
|
"li",
|
|
8441
8451
|
{
|
|
8442
8452
|
key: V,
|
|
@@ -8481,19 +8491,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8481
8491
|
},
|
|
8482
8492
|
M.linkContent
|
|
8483
8493
|
))
|
|
8484
|
-
), [_, h] = B(!1), { context: v, floatingStyles:
|
|
8494
|
+
), [_, h] = B(!1), { context: v, floatingStyles: C, refs: f } = He({
|
|
8485
8495
|
placement: "right-start",
|
|
8486
8496
|
open: _,
|
|
8487
8497
|
onOpenChange: h,
|
|
8488
8498
|
middleware: [Ue(12), We(), mt()],
|
|
8489
8499
|
whileElementsMounted: ze
|
|
8490
|
-
}),
|
|
8500
|
+
}), g = Et(v, {
|
|
8491
8501
|
move: !1,
|
|
8492
8502
|
delay: { open: 100, close: 0 },
|
|
8493
8503
|
handleClose: t2()
|
|
8494
|
-
}),
|
|
8495
|
-
|
|
8496
|
-
|
|
8504
|
+
}), y = Jt(v), p = De(v), d = Fe(v, { role: "menu" }), { getFloatingProps: E, getReferenceProps: $ } = Te([
|
|
8505
|
+
g,
|
|
8506
|
+
y,
|
|
8497
8507
|
p,
|
|
8498
8508
|
d
|
|
8499
8509
|
]), N = (b) => {
|
|
@@ -8560,7 +8570,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8560
8570
|
t ? null : `${n}--collapsed`,
|
|
8561
8571
|
r ? `${n}--active` : null
|
|
8562
8572
|
]),
|
|
8563
|
-
|
|
8573
|
+
...$()
|
|
8564
8574
|
},
|
|
8565
8575
|
l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${n}-wrapper` }, it(
|
|
8566
8576
|
i,
|
|
@@ -8587,7 +8597,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8587
8597
|
"aria-hidden": !_,
|
|
8588
8598
|
className: `${i}__flyout`,
|
|
8589
8599
|
style: {
|
|
8590
|
-
...
|
|
8600
|
+
...C,
|
|
8591
8601
|
opacity: _ ? 1 : 0,
|
|
8592
8602
|
pointerEvents: _ ? "auto" : "none",
|
|
8593
8603
|
transition: `opacity 200ms ${n2}`
|
|
@@ -8626,29 +8636,29 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8626
8636
|
const m = ye(i2);
|
|
8627
8637
|
let o = !0, u = null;
|
|
8628
8638
|
m && (o = m.isSidebarExpanded, u = m.logoLinkContent);
|
|
8629
|
-
const _ = "pds-dashboard-nav", h = o ? `${_}--expanded` : `${_}--collapsed`, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${_}__menu ${_}__menu--top-level` }, a.map((
|
|
8639
|
+
const _ = "pds-dashboard-nav", h = o ? `${_}--expanded` : `${_}--collapsed`, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${_}__menu ${_}__menu--top-level` }, a.map((g, y) => /* @__PURE__ */ e.createElement(
|
|
8630
8640
|
gs,
|
|
8631
8641
|
{
|
|
8632
|
-
key:
|
|
8633
|
-
icon:
|
|
8634
|
-
isActive: Le(
|
|
8642
|
+
key: y,
|
|
8643
|
+
icon: g.icon,
|
|
8644
|
+
isActive: Le(g),
|
|
8635
8645
|
isSidebarExpanded: o,
|
|
8636
8646
|
labels: t,
|
|
8637
|
-
linkContent:
|
|
8638
|
-
links:
|
|
8647
|
+
linkContent: g.linkContent,
|
|
8648
|
+
links: g.links
|
|
8639
8649
|
}
|
|
8640
|
-
)))),
|
|
8641
|
-
...
|
|
8650
|
+
)))), C = a.map((g) => ({
|
|
8651
|
+
...g,
|
|
8642
8652
|
linkContent: it(
|
|
8643
8653
|
_,
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8654
|
+
g.linkContent,
|
|
8655
|
+
g.links,
|
|
8656
|
+
g.icon
|
|
8647
8657
|
)
|
|
8648
8658
|
})), f = /* @__PURE__ */ e.createElement(
|
|
8649
8659
|
At,
|
|
8650
8660
|
{
|
|
8651
|
-
menuItems:
|
|
8661
|
+
menuItems: C,
|
|
8652
8662
|
selectTextFallback: c
|
|
8653
8663
|
}
|
|
8654
8664
|
);
|
|
@@ -8722,13 +8732,13 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8722
8732
|
siteList: h,
|
|
8723
8733
|
...v
|
|
8724
8734
|
}) => {
|
|
8725
|
-
const [
|
|
8726
|
-
let
|
|
8727
|
-
const
|
|
8728
|
-
|
|
8729
|
-
const p = "pds-dashboard-search", d =
|
|
8735
|
+
const [C, f] = B(null);
|
|
8736
|
+
let g = !1;
|
|
8737
|
+
const y = ye(Me);
|
|
8738
|
+
y && (g = y.isMobile);
|
|
8739
|
+
const p = "pds-dashboard-search", d = g ? `${p}--isMobile` : null, E = (b) => {
|
|
8730
8740
|
f(b.value), u && u(b.siteData);
|
|
8731
|
-
},
|
|
8741
|
+
}, $ = h.map((b) => {
|
|
8732
8742
|
const { id: k, machineName: M, name: z } = b;
|
|
8733
8743
|
return {
|
|
8734
8744
|
id: k,
|
|
@@ -8744,7 +8754,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8744
8754
|
hasClearButton: !0,
|
|
8745
8755
|
hasSearchShortcut: !0,
|
|
8746
8756
|
className: `${p}__combobox`,
|
|
8747
|
-
defaultValue:
|
|
8757
|
+
defaultValue: C,
|
|
8748
8758
|
disabled: r,
|
|
8749
8759
|
id: `${a}-combobox`,
|
|
8750
8760
|
isLoading: c,
|
|
@@ -8754,7 +8764,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8754
8764
|
noResultsText: m,
|
|
8755
8765
|
onFocus: o,
|
|
8756
8766
|
onOptionSelect: E,
|
|
8757
|
-
options:
|
|
8767
|
+
options: $,
|
|
8758
8768
|
placeholder: _,
|
|
8759
8769
|
showLabel: !1
|
|
8760
8770
|
}
|
|
@@ -8766,7 +8776,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8766
8776
|
id: a,
|
|
8767
8777
|
...v
|
|
8768
8778
|
},
|
|
8769
|
-
|
|
8779
|
+
g ? L : w
|
|
8770
8780
|
);
|
|
8771
8781
|
}, gt = ({
|
|
8772
8782
|
children: s,
|
|
@@ -8801,12 +8811,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8801
8811
|
..._
|
|
8802
8812
|
}) => {
|
|
8803
8813
|
const [h, v] = B(!1);
|
|
8804
|
-
let
|
|
8814
|
+
let C = !1;
|
|
8805
8815
|
const f = ye(Me);
|
|
8806
|
-
f && (
|
|
8807
|
-
const { closeOverlay:
|
|
8816
|
+
f && (C = f.isMobile);
|
|
8817
|
+
const { closeOverlay: g, openOverlay: y } = l2(), p = ye(i2);
|
|
8808
8818
|
p && (n = p.logoLinkContent);
|
|
8809
|
-
const d = "pds-navbar", E = c ? `${d}--noBorder` : "",
|
|
8819
|
+
const d = "pds-navbar", E = c ? `${d}--noBorder` : "", $ = t !== "default" ? `${d}--${t}` : "", N = C ? `${d}--isMobile` : `${d}--notMobile`, w = (Y) => {
|
|
8810
8820
|
const S = Y.key;
|
|
8811
8821
|
let x = !1;
|
|
8812
8822
|
switch (S) {
|
|
@@ -8822,7 +8832,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8822
8832
|
}), []);
|
|
8823
8833
|
const L = () => v(!h), b = X2();
|
|
8824
8834
|
me(() => {
|
|
8825
|
-
if (
|
|
8835
|
+
if (C && s) {
|
|
8826
8836
|
const Y = S2(
|
|
8827
8837
|
document.querySelector(".pds-navbar__mobile")
|
|
8828
8838
|
), S = ["a", "button", "input", "select", "textarea"];
|
|
@@ -8846,9 +8856,9 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8846
8856
|
}, [h]), me(() => {
|
|
8847
8857
|
h ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
8848
8858
|
}, [h]), me(() => {
|
|
8849
|
-
if (!(
|
|
8850
|
-
return
|
|
8851
|
-
}, [h,
|
|
8859
|
+
if (!(!y || !g) && h)
|
|
8860
|
+
return y(), () => g();
|
|
8861
|
+
}, [h, y, g]);
|
|
8852
8862
|
const M = Pe(s), z = M["items-left"], T = M["items-right"];
|
|
8853
8863
|
let A = "default";
|
|
8854
8864
|
(t === "reverse" || t === "reverse-transparent") && (A = "reverse");
|
|
@@ -8902,14 +8912,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8902
8912
|
{
|
|
8903
8913
|
className: H([
|
|
8904
8914
|
d,
|
|
8905
|
-
|
|
8915
|
+
$,
|
|
8906
8916
|
E,
|
|
8907
8917
|
N,
|
|
8908
8918
|
r ?? ""
|
|
8909
8919
|
]),
|
|
8910
8920
|
..._
|
|
8911
8921
|
},
|
|
8912
|
-
|
|
8922
|
+
C ? te : se
|
|
8913
8923
|
);
|
|
8914
8924
|
}, _s = ({
|
|
8915
8925
|
items: s,
|
|
@@ -8927,7 +8937,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8927
8937
|
open: a,
|
|
8928
8938
|
onOpenChange: c,
|
|
8929
8939
|
whileElementsMounted: ze
|
|
8930
|
-
}), h = tt(u, { event: "mousedown" }), v = De(u),
|
|
8940
|
+
}), h = tt(u, { event: "mousedown" }), v = De(u), C = Fe(u, { role: "menu" });
|
|
8931
8941
|
let f;
|
|
8932
8942
|
m ? f = Et(u, {
|
|
8933
8943
|
enabled: !1
|
|
@@ -8939,9 +8949,9 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8939
8949
|
}),
|
|
8940
8950
|
enabled: !0
|
|
8941
8951
|
});
|
|
8942
|
-
const { getFloatingProps:
|
|
8952
|
+
const { getFloatingProps: g, getReferenceProps: y } = Te([
|
|
8943
8953
|
v,
|
|
8944
|
-
|
|
8954
|
+
C,
|
|
8945
8955
|
h,
|
|
8946
8956
|
f
|
|
8947
8957
|
]), p = (d) => !!(d.isActive || d.linkContent && d.linkContent.props.className && d.linkContent.props.className.includes("pds-isActive"));
|
|
@@ -8951,7 +8961,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8951
8961
|
ref: _.setReference,
|
|
8952
8962
|
className: `${o}__trigger`,
|
|
8953
8963
|
type: "button",
|
|
8954
|
-
|
|
8964
|
+
...y()
|
|
8955
8965
|
},
|
|
8956
8966
|
r,
|
|
8957
8967
|
/* @__PURE__ */ e.createElement(D, { className: `${o}__trigger-icon`, iconName: "angleDown" })
|
|
@@ -8960,7 +8970,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8960
8970
|
{
|
|
8961
8971
|
ref: _.setFloating,
|
|
8962
8972
|
className: `${o}__dropdown`,
|
|
8963
|
-
...
|
|
8973
|
+
...g()
|
|
8964
8974
|
},
|
|
8965
8975
|
s.map((d, E) => /* @__PURE__ */ e.createElement(
|
|
8966
8976
|
"li",
|
|
@@ -8980,29 +8990,29 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
8980
8990
|
mobileMenuMaxWidth: c = 640,
|
|
8981
8991
|
...l
|
|
8982
8992
|
}) => {
|
|
8983
|
-
const [i, n] = B(1025), [m, o] = B(null), [u, _] = B(-1), [h, v] = B(null), [
|
|
8993
|
+
const [i, n] = B(1025), [m, o] = B(null), [u, _] = B(-1), [h, v] = B(null), [C, f] = B({
|
|
8984
8994
|
container: null,
|
|
8985
8995
|
containerChildren: []
|
|
8986
8996
|
});
|
|
8987
|
-
me(() => (n(window.innerWidth), window.addEventListener("resize",
|
|
8988
|
-
window.removeEventListener("resize",
|
|
8997
|
+
me(() => (n(window.innerWidth), window.addEventListener("resize", g), () => {
|
|
8998
|
+
window.removeEventListener("resize", g);
|
|
8989
8999
|
}), []);
|
|
8990
|
-
const
|
|
9000
|
+
const g = () => {
|
|
8991
9001
|
n(window.innerWidth);
|
|
8992
|
-
},
|
|
9002
|
+
}, y = i <= c;
|
|
8993
9003
|
me(() => {
|
|
8994
|
-
|
|
9004
|
+
C.containerChildren[m] && (C.containerChildren[m].classList.contains(
|
|
8995
9005
|
"pds-nav-menu__dropdown--separator"
|
|
8996
|
-
) && h == "down" ? o(m + 1) :
|
|
9006
|
+
) && h == "down" ? o(m + 1) : C.containerChildren[m].classList.contains(
|
|
8997
9007
|
"pds-nav-menu__dropdown--separator"
|
|
8998
|
-
) && h == "up" ? o(m - 1) :
|
|
9008
|
+
) && h == "up" ? o(m - 1) : C.containerChildren[m].children[0].focus());
|
|
8999
9009
|
}, [m]), me(() => {
|
|
9000
|
-
u != -1 && (
|
|
9010
|
+
u != -1 && ($.current[u].children[0].blur(), $.current[u].children[0].focus({
|
|
9001
9011
|
focusVisible: !0
|
|
9002
9012
|
}));
|
|
9003
9013
|
}, [u]);
|
|
9004
|
-
const p = "pds-nav-menu", d = t !== "default" ? `${p}--${t}` : "", E =
|
|
9005
|
-
const k =
|
|
9014
|
+
const p = "pds-nav-menu", d = t !== "default" ? `${p}--${t}` : "", E = y ? `${p}--isMobile` : `${p}--notMobile`, $ = ue([]), N = (b) => {
|
|
9015
|
+
const k = $.current.length - 1, I = {
|
|
9006
9016
|
ArrowRight: () => {
|
|
9007
9017
|
o(-1), _(u === -1 ? 1 : u === k ? 0 : u + 1);
|
|
9008
9018
|
},
|
|
@@ -9012,13 +9022,13 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9012
9022
|
ArrowDown: () => {
|
|
9013
9023
|
v("down");
|
|
9014
9024
|
const Z = b.target.parentNode.children[1], W = b.target?.parentNode.children[1]?.children || b.target?.parentNode.parentNode.children[1]?.children;
|
|
9015
|
-
|
|
9025
|
+
C.container != Z && Z != null && f({
|
|
9016
9026
|
container: Z,
|
|
9017
9027
|
containerChildren: [...W]
|
|
9018
|
-
}), m === null || m ==
|
|
9028
|
+
}), m === null || m == C.containerChildren.length - 1 ? o(0) : o(parseInt(m) + 1);
|
|
9019
9029
|
},
|
|
9020
9030
|
ArrowUp: () => {
|
|
9021
|
-
v("up"), o(m === 0 ?
|
|
9031
|
+
v("up"), o(m === 0 ? C.containerChildren.length - 1 : parseInt(m) - 1);
|
|
9022
9032
|
}
|
|
9023
9033
|
}[b.code];
|
|
9024
9034
|
I && I();
|
|
@@ -9040,7 +9050,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9040
9050
|
{
|
|
9041
9051
|
key: `${k}-dropdown`,
|
|
9042
9052
|
ref: (T) => {
|
|
9043
|
-
|
|
9053
|
+
$.current[k] = T;
|
|
9044
9054
|
},
|
|
9045
9055
|
className: `${p}__item ${p}__item--top-level ${p}__item--has-children ${w(b) === !0 ? `${p}__item--active` : ""}`,
|
|
9046
9056
|
id: z
|
|
@@ -9060,7 +9070,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9060
9070
|
{
|
|
9061
9071
|
key: k,
|
|
9062
9072
|
ref: (T) => {
|
|
9063
|
-
|
|
9073
|
+
$.current[k] = T;
|
|
9064
9074
|
},
|
|
9065
9075
|
className: `${p}__item ${p}__item--top-level ${p}__item--has-link ${w(b) === !0 ? `${p}__item--active` : ""}`,
|
|
9066
9076
|
id: z
|
|
@@ -9092,15 +9102,15 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9092
9102
|
mobileMenuSelectTextFallback: l = "Navigate to...",
|
|
9093
9103
|
...i
|
|
9094
9104
|
}) => {
|
|
9095
|
-
const n = "pds-side-nav", m = `${n}__item`, o = `${n}__menu`, u = (
|
|
9096
|
-
const f =
|
|
9097
|
-
let
|
|
9098
|
-
const
|
|
9099
|
-
if (
|
|
9105
|
+
const n = "pds-side-nav", m = `${n}__item`, o = `${n}__menu`, u = (C) => {
|
|
9106
|
+
const f = C.currentTarget;
|
|
9107
|
+
let g = null;
|
|
9108
|
+
const y = f.parentElement;
|
|
9109
|
+
if (y?.classList.contains(`${m}-wrapper`) ? g = y.nextElementSibling : g = f.nextElementSibling, !g) return;
|
|
9100
9110
|
const p = f.getAttribute("aria-expanded") === "false";
|
|
9101
|
-
f.classList.toggle(`${n}__toggle--expanded`, p), f.setAttribute("aria-expanded", p ? "true" : "false"),
|
|
9102
|
-
}, _ = (
|
|
9103
|
-
const { linkContent:
|
|
9111
|
+
f.classList.toggle(`${n}__toggle--expanded`, p), f.setAttribute("aria-expanded", p ? "true" : "false"), g.classList.toggle(`${o}--expanded`, p);
|
|
9112
|
+
}, _ = (C, f) => {
|
|
9113
|
+
const { linkContent: g, links: y } = C, p = Le(C), d = fs(g), E = p;
|
|
9104
9114
|
return /* @__PURE__ */ e.createElement(
|
|
9105
9115
|
"li",
|
|
9106
9116
|
{
|
|
@@ -9108,11 +9118,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9108
9118
|
className: H([
|
|
9109
9119
|
m,
|
|
9110
9120
|
`${m}--top-level`,
|
|
9111
|
-
|
|
9121
|
+
y ? `${m}--has-children` : null,
|
|
9112
9122
|
p ? `${m}--active` : null
|
|
9113
9123
|
])
|
|
9114
9124
|
},
|
|
9115
|
-
|
|
9125
|
+
y ? d ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${m}-wrapper` }, _t(g, y), /* @__PURE__ */ e.createElement(
|
|
9116
9126
|
"button",
|
|
9117
9127
|
{
|
|
9118
9128
|
"aria-expanded": E,
|
|
@@ -9124,7 +9134,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9124
9134
|
type: "button"
|
|
9125
9135
|
},
|
|
9126
9136
|
/* @__PURE__ */ e.createElement(D, { iconName: "angleDown", iconSize: "md" }),
|
|
9127
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ie(
|
|
9137
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ie(g)} ${a.submenu}`)
|
|
9128
9138
|
)), /* @__PURE__ */ e.createElement(
|
|
9129
9139
|
"ul",
|
|
9130
9140
|
{
|
|
@@ -9134,19 +9144,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9134
9144
|
E ? `${o}--expanded` : null
|
|
9135
9145
|
])
|
|
9136
9146
|
},
|
|
9137
|
-
|
|
9147
|
+
y.map(($, N) => /* @__PURE__ */ e.createElement(
|
|
9138
9148
|
"li",
|
|
9139
9149
|
{
|
|
9140
9150
|
key: N,
|
|
9141
9151
|
className: H([
|
|
9142
9152
|
m,
|
|
9143
9153
|
`${m}--second-level`,
|
|
9144
|
-
Le(
|
|
9154
|
+
Le($) ? `${m}--active` : null
|
|
9145
9155
|
])
|
|
9146
9156
|
},
|
|
9147
9157
|
_t(
|
|
9148
|
-
|
|
9149
|
-
|
|
9158
|
+
$.linkContent,
|
|
9159
|
+
$.links
|
|
9150
9160
|
)
|
|
9151
9161
|
))
|
|
9152
9162
|
)) : (
|
|
@@ -9163,20 +9173,20 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9163
9173
|
onClick: u,
|
|
9164
9174
|
type: "button"
|
|
9165
9175
|
},
|
|
9166
|
-
Ee(
|
|
9176
|
+
Ee(g) && g.type === "span" ? (
|
|
9167
9177
|
// If linkContent is already a span, clone it and add the toggle-content class.
|
|
9168
|
-
Re(
|
|
9178
|
+
Re(g, {
|
|
9169
9179
|
className: H([
|
|
9170
|
-
|
|
9180
|
+
g.props.className,
|
|
9171
9181
|
`${n}__toggle-content`
|
|
9172
9182
|
])
|
|
9173
9183
|
})
|
|
9174
9184
|
) : (
|
|
9175
9185
|
// For other content types, wrap in toggle-content span
|
|
9176
|
-
/* @__PURE__ */ e.createElement("span", { className: `${n}__toggle-content` },
|
|
9186
|
+
/* @__PURE__ */ e.createElement("span", { className: `${n}__toggle-content` }, g)
|
|
9177
9187
|
),
|
|
9178
9188
|
/* @__PURE__ */ e.createElement(D, { iconName: "angleDown", iconSize: "md" }),
|
|
9179
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ie(
|
|
9189
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Ie(g)} ${a.submenu}`)
|
|
9180
9190
|
), /* @__PURE__ */ e.createElement(
|
|
9181
9191
|
"ul",
|
|
9182
9192
|
{
|
|
@@ -9186,28 +9196,28 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9186
9196
|
E ? `${o}--expanded` : null
|
|
9187
9197
|
])
|
|
9188
9198
|
},
|
|
9189
|
-
|
|
9199
|
+
y.map(($, N) => /* @__PURE__ */ e.createElement(
|
|
9190
9200
|
"li",
|
|
9191
9201
|
{
|
|
9192
9202
|
key: N,
|
|
9193
9203
|
className: H([
|
|
9194
9204
|
m,
|
|
9195
9205
|
`${m}--second-level`,
|
|
9196
|
-
Le(
|
|
9206
|
+
Le($) ? `${m}--active` : null
|
|
9197
9207
|
])
|
|
9198
9208
|
},
|
|
9199
9209
|
_t(
|
|
9200
|
-
|
|
9201
|
-
|
|
9210
|
+
$.linkContent,
|
|
9211
|
+
$.links
|
|
9202
9212
|
)
|
|
9203
9213
|
))
|
|
9204
9214
|
))
|
|
9205
9215
|
) : (
|
|
9206
9216
|
// If no top-level child links are present, render the link content as is.
|
|
9207
|
-
|
|
9217
|
+
g
|
|
9208
9218
|
)
|
|
9209
9219
|
);
|
|
9210
|
-
}, h = /* @__PURE__ */ e.createElement(e.Fragment, null, t && /* @__PURE__ */ e.createElement("h2", { className: `${n}__heading pds-ts-l` }, t), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${n}__menu ${n}__menu--top-level` }, c.map((
|
|
9220
|
+
}, h = /* @__PURE__ */ e.createElement(e.Fragment, null, t && /* @__PURE__ */ e.createElement("h2", { className: `${n}__heading pds-ts-l` }, t), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${n}__menu ${n}__menu--top-level` }, c.map((C, f) => _(C, f)))), v = /* @__PURE__ */ e.createElement(
|
|
9211
9221
|
At,
|
|
9212
9222
|
{
|
|
9213
9223
|
className: `${n}__mobile`,
|
|
@@ -9240,12 +9250,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9240
9250
|
mobileMenuSelectTextFallback: n = "Navigate to...",
|
|
9241
9251
|
...m
|
|
9242
9252
|
}) => {
|
|
9243
|
-
const o = "pds-side-nav-compact", u = `${o}__item`, _ = `${o}__menu`, [h, v] = B(1025), [
|
|
9253
|
+
const o = "pds-side-nav-compact", u = `${o}__item`, _ = `${o}__menu`, [h, v] = B(1025), [C, f] = B(!1), [g, y] = B([]), p = ue(null), d = ue(null), E = ue([]), $ = ue(-1);
|
|
9244
9254
|
me(() => (v(window.innerWidth), window.addEventListener("resize", N), () => {
|
|
9245
9255
|
window.removeEventListener("resize", N);
|
|
9246
9256
|
}), []), me(() => {
|
|
9247
9257
|
(!w || !t) && L();
|
|
9248
|
-
}, [h, l,
|
|
9258
|
+
}, [h, l, g]), me(() => {
|
|
9249
9259
|
if (p.current) {
|
|
9250
9260
|
const S = p.current.querySelector(
|
|
9251
9261
|
".pds-side-nav-compact__heading a"
|
|
@@ -9262,7 +9272,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9262
9272
|
p.current?.querySelectorAll(`.${u}--top-level`) || []
|
|
9263
9273
|
).indexOf(K) : -1;
|
|
9264
9274
|
}).filter((F) => F !== -1), O = Array.from(new Set(x));
|
|
9265
|
-
|
|
9275
|
+
y(O);
|
|
9266
9276
|
}
|
|
9267
9277
|
}, [l]);
|
|
9268
9278
|
const N = () => {
|
|
@@ -9300,8 +9310,8 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9300
9310
|
const x = S.closest(`.${u}-wrapper`);
|
|
9301
9311
|
return x ? !!x.querySelector(`.${o}__toggle`) : !1;
|
|
9302
9312
|
}, z = (S) => {
|
|
9303
|
-
if (!
|
|
9304
|
-
const x = E.current[
|
|
9313
|
+
if (!C) return;
|
|
9314
|
+
const x = E.current[$.current];
|
|
9305
9315
|
if (x)
|
|
9306
9316
|
switch (S.key) {
|
|
9307
9317
|
case "ArrowDown": {
|
|
@@ -9326,7 +9336,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9326
9336
|
const K = F.querySelector(
|
|
9327
9337
|
"a"
|
|
9328
9338
|
);
|
|
9329
|
-
K && (K.focus(),
|
|
9339
|
+
K && (K.focus(), $.current = E.current.indexOf(K));
|
|
9330
9340
|
}
|
|
9331
9341
|
}, Nt + 50));
|
|
9332
9342
|
}
|
|
@@ -9346,7 +9356,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9346
9356
|
}), setTimeout(() => {
|
|
9347
9357
|
L();
|
|
9348
9358
|
const G = F.querySelector("a") || K;
|
|
9349
|
-
G && (G.focus(),
|
|
9359
|
+
G && (G.focus(), $.current = E.current.indexOf(G));
|
|
9350
9360
|
}, Nt));
|
|
9351
9361
|
}
|
|
9352
9362
|
} else if (M(x)) {
|
|
@@ -9363,11 +9373,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9363
9373
|
}, T = (S) => {
|
|
9364
9374
|
const x = E.current;
|
|
9365
9375
|
if (x.length === 0) return;
|
|
9366
|
-
let O =
|
|
9367
|
-
O < 0 && (O = x.length - 1), O >= x.length && (O = 0),
|
|
9376
|
+
let O = $.current + S;
|
|
9377
|
+
O < 0 && (O = x.length - 1), O >= x.length && (O = 0), $.current = O, x[O]?.focus();
|
|
9368
9378
|
}, A = (S) => {
|
|
9369
|
-
if (S.key === "Tab" &&
|
|
9370
|
-
S.preventDefault(), f(!1),
|
|
9379
|
+
if (S.key === "Tab" && C && !S.shiftKey) {
|
|
9380
|
+
S.preventDefault(), f(!1), $.current = -1;
|
|
9371
9381
|
const x = Array.from(
|
|
9372
9382
|
document.querySelectorAll(
|
|
9373
9383
|
'a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
@@ -9376,14 +9386,14 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9376
9386
|
O !== -1 && O < x.length - 1 && x[O + 1].focus();
|
|
9377
9387
|
}
|
|
9378
9388
|
}, V = (S) => {
|
|
9379
|
-
if (S.target === p.current && !
|
|
9380
|
-
S.preventDefault(), f(!0), L(), E.current.length > 0 && (
|
|
9381
|
-
else if (S.target !== p.current && !
|
|
9389
|
+
if (S.target === p.current && !C)
|
|
9390
|
+
S.preventDefault(), f(!0), L(), E.current.length > 0 && ($.current = 0, E.current[0]?.focus());
|
|
9391
|
+
else if (S.target !== p.current && !C) {
|
|
9382
9392
|
L();
|
|
9383
9393
|
const x = E.current.indexOf(
|
|
9384
9394
|
S.target
|
|
9385
9395
|
);
|
|
9386
|
-
x !== -1 && (f(!0),
|
|
9396
|
+
x !== -1 && (f(!0), $.current = x);
|
|
9387
9397
|
}
|
|
9388
9398
|
}, I = (S) => {
|
|
9389
9399
|
const x = S.currentTarget, O = x.parentElement?.nextElementSibling;
|
|
@@ -9395,7 +9405,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9395
9405
|
const R = Array.from(
|
|
9396
9406
|
p.current?.querySelectorAll(`.${u}--top-level`) || []
|
|
9397
9407
|
).indexOf(K);
|
|
9398
|
-
|
|
9408
|
+
y((G) => F && !G.includes(R) && R !== -1 ? [...G, R] : F ? G : G.filter((oe) => oe !== R));
|
|
9399
9409
|
}
|
|
9400
9410
|
F ? Z(O) : W(O);
|
|
9401
9411
|
}, Z = (S) => {
|
|
@@ -9457,7 +9467,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9457
9467
|
const Q = Array.from(
|
|
9458
9468
|
p.current?.querySelectorAll(`.${u}--top-level`) || []
|
|
9459
9469
|
).indexOf(_e);
|
|
9460
|
-
re =
|
|
9470
|
+
re = g.includes(Q);
|
|
9461
9471
|
} else
|
|
9462
9472
|
re = oe;
|
|
9463
9473
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${u}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9575,19 +9585,19 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9575
9585
|
},
|
|
9576
9586
|
b.linkContent
|
|
9577
9587
|
))
|
|
9578
|
-
), [_, h] = B(!1), { context: v, floatingStyles:
|
|
9588
|
+
), [_, h] = B(!1), { context: v, floatingStyles: C, refs: f } = He({
|
|
9579
9589
|
placement: "right-start",
|
|
9580
9590
|
open: _,
|
|
9581
9591
|
onOpenChange: h,
|
|
9582
9592
|
middleware: [Ue(8), We(), mt()],
|
|
9583
9593
|
whileElementsMounted: ze
|
|
9584
|
-
}),
|
|
9594
|
+
}), g = Et(v, {
|
|
9585
9595
|
move: !1,
|
|
9586
9596
|
delay: { open: 100, close: 0 },
|
|
9587
9597
|
handleClose: t2()
|
|
9588
|
-
}),
|
|
9589
|
-
|
|
9590
|
-
|
|
9598
|
+
}), y = Jt(v), p = De(v), d = Fe(v, { role: "menu" }), { getFloatingProps: E, getReferenceProps: $ } = Te([
|
|
9599
|
+
g,
|
|
9600
|
+
y,
|
|
9591
9601
|
p,
|
|
9592
9602
|
d
|
|
9593
9603
|
]), N = (w) => {
|
|
@@ -9607,7 +9617,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9607
9617
|
t ? `${n}--collapsed` : null,
|
|
9608
9618
|
r ? `${n}--active` : null
|
|
9609
9619
|
]),
|
|
9610
|
-
|
|
9620
|
+
...$()
|
|
9611
9621
|
},
|
|
9612
9622
|
l ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${n}-wrapper` }, it(
|
|
9613
9623
|
i,
|
|
@@ -9634,7 +9644,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9634
9644
|
"aria-hidden": !_,
|
|
9635
9645
|
className: `${i}__flyout`,
|
|
9636
9646
|
style: {
|
|
9637
|
-
...
|
|
9647
|
+
...C,
|
|
9638
9648
|
opacity: _ ? 1 : 0,
|
|
9639
9649
|
pointerEvents: _ ? "auto" : "none",
|
|
9640
9650
|
transition: `opacity 200ms ${n2}`
|
|
@@ -9677,24 +9687,24 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9677
9687
|
displayType: a ? "icon" : "full",
|
|
9678
9688
|
linkContent: l
|
|
9679
9689
|
}
|
|
9680
|
-
)), i.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu ${o}__menu--top-level` }, i.map((
|
|
9690
|
+
)), i.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${o}__menu ${o}__menu--top-level` }, i.map((C, f) => /* @__PURE__ */ e.createElement(
|
|
9681
9691
|
Es,
|
|
9682
9692
|
{
|
|
9683
9693
|
key: f,
|
|
9684
|
-
icon:
|
|
9685
|
-
isActive: Le(
|
|
9694
|
+
icon: C.icon,
|
|
9695
|
+
isActive: Le(C),
|
|
9686
9696
|
isSidebarCollapsed: a,
|
|
9687
9697
|
labels: c,
|
|
9688
|
-
linkContent:
|
|
9689
|
-
links:
|
|
9698
|
+
linkContent: C.linkContent,
|
|
9699
|
+
links: C.links
|
|
9690
9700
|
}
|
|
9691
|
-
)))), h = i.map((
|
|
9692
|
-
...
|
|
9701
|
+
)))), h = i.map((C) => ({
|
|
9702
|
+
...C,
|
|
9693
9703
|
linkContent: it(
|
|
9694
9704
|
o,
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9705
|
+
C.linkContent,
|
|
9706
|
+
C.links,
|
|
9707
|
+
C.icon
|
|
9698
9708
|
)
|
|
9699
9709
|
})), v = /* @__PURE__ */ e.createElement(
|
|
9700
9710
|
At,
|
|
@@ -9722,7 +9732,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9722
9732
|
minFilterItems: c = 5,
|
|
9723
9733
|
noResultsText: l = "No results found"
|
|
9724
9734
|
}) => {
|
|
9725
|
-
const [i, n] = B(!1), [m, o] = B(null), [u, _] = B(a), [h, v] = B(""),
|
|
9735
|
+
const [i, n] = B(!1), [m, o] = B(null), [u, _] = B(a), [h, v] = B(""), C = a.length >= c, f = "pds-tab-menu", g = `${f}__dropdown-menu`, y = C ? `${g}--scroll` : null, p = `${f}__dropdown-item`, d = ue([]), { context: E, refs: $ } = He({
|
|
9726
9736
|
open: i,
|
|
9727
9737
|
onOpenChange: n,
|
|
9728
9738
|
whileElementsMounted: ze
|
|
@@ -9752,7 +9762,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9752
9762
|
opacity: 0
|
|
9753
9763
|
}
|
|
9754
9764
|
}), V = (x) => {
|
|
9755
|
-
x.preventDefault(), x.key === "Enter" && d.current[m].querySelector("a")?.click(), x.key === "Tab" && x.shiftKey && (
|
|
9765
|
+
x.preventDefault(), x.key === "Enter" && d.current[m].querySelector("a")?.click(), x.key === "Tab" && x.shiftKey && (C ? document.getElementById("links-filter").focus() : n(!1));
|
|
9756
9766
|
}, I = (x, O) => Ie(x.linkContent).toLowerCase().includes(O.toLowerCase()), Z = (x) => {
|
|
9757
9767
|
const O = x.target.value;
|
|
9758
9768
|
v(O);
|
|
@@ -9772,7 +9782,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9772
9782
|
width: `${Ie(
|
|
9773
9783
|
X.linkContent
|
|
9774
9784
|
).length + 2}ch`
|
|
9775
|
-
}, se = /* @__PURE__ */ e.createElement(D, { className: `${f}__active-icon`, iconName: "check" }), Y =
|
|
9785
|
+
}, se = /* @__PURE__ */ e.createElement(D, { className: `${f}__active-icon`, iconName: "check" }), Y = C && /* @__PURE__ */ e.createElement("div", { className: `${f}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9776
9786
|
q2,
|
|
9777
9787
|
{
|
|
9778
9788
|
hasClearButton: !0,
|
|
@@ -9806,7 +9816,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9806
9816
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9807
9817
|
"button",
|
|
9808
9818
|
{
|
|
9809
|
-
ref:
|
|
9819
|
+
ref: $.setReference,
|
|
9810
9820
|
className: `${f}__dropdown-trigger`,
|
|
9811
9821
|
...z({
|
|
9812
9822
|
"aria-expanded": i,
|
|
@@ -9824,7 +9834,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9824
9834
|
), T && /* @__PURE__ */ e.createElement(
|
|
9825
9835
|
"div",
|
|
9826
9836
|
{
|
|
9827
|
-
ref:
|
|
9837
|
+
ref: $.setFloating,
|
|
9828
9838
|
className: `${f}__dropdown`,
|
|
9829
9839
|
...k({
|
|
9830
9840
|
style: {
|
|
@@ -9833,7 +9843,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9833
9843
|
}
|
|
9834
9844
|
})
|
|
9835
9845
|
},
|
|
9836
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...A } }, Y, /* @__PURE__ */ e.createElement("ul", { className: H([
|
|
9846
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...A } }, Y, /* @__PURE__ */ e.createElement("ul", { className: H([g, y]) }, S.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${f}__no-results` }, l) : S))
|
|
9837
9847
|
));
|
|
9838
9848
|
}, On = ({
|
|
9839
9849
|
ariaLabel: s,
|
|
@@ -9849,12 +9859,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9849
9859
|
icon: _,
|
|
9850
9860
|
isActive: h,
|
|
9851
9861
|
linkContent: v,
|
|
9852
|
-
links:
|
|
9862
|
+
links: C,
|
|
9853
9863
|
promoteActiveChildLink: f = !1
|
|
9854
9864
|
}) => {
|
|
9855
|
-
const
|
|
9856
|
-
let
|
|
9857
|
-
return Ee(d) && (E ?
|
|
9865
|
+
const g = `${i}__item`, y = o2(C), p = (d, E) => {
|
|
9866
|
+
let $ = null;
|
|
9867
|
+
return Ee(d) && (E ? $ = Re(
|
|
9858
9868
|
d,
|
|
9859
9869
|
Object.assign({}, d.props, {
|
|
9860
9870
|
children: [
|
|
@@ -9868,24 +9878,24 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9868
9878
|
), d.props.children)
|
|
9869
9879
|
]
|
|
9870
9880
|
})
|
|
9871
|
-
) :
|
|
9881
|
+
) : $ = d), $;
|
|
9872
9882
|
};
|
|
9873
9883
|
return /* @__PURE__ */ e.createElement(
|
|
9874
9884
|
"li",
|
|
9875
9885
|
{
|
|
9876
9886
|
className: H([
|
|
9877
|
-
|
|
9878
|
-
h ? `${
|
|
9887
|
+
g,
|
|
9888
|
+
h ? `${g}--active` : null
|
|
9879
9889
|
])
|
|
9880
9890
|
},
|
|
9881
|
-
p(f ?
|
|
9882
|
-
|
|
9891
|
+
p(f ? y : v, _),
|
|
9892
|
+
C && /* @__PURE__ */ e.createElement(
|
|
9883
9893
|
vs,
|
|
9884
9894
|
{
|
|
9885
9895
|
buttonLabel: u?.buttonLabel,
|
|
9886
9896
|
filterLabel: u?.filterLabel,
|
|
9887
9897
|
filterPlaceholder: u?.filterPlaceholder,
|
|
9888
|
-
links:
|
|
9898
|
+
links: C,
|
|
9889
9899
|
minFilterItems: u?.minFilterItems,
|
|
9890
9900
|
noResultsText: u?.noResultsText
|
|
9891
9901
|
}
|
|
@@ -9923,10 +9933,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9923
9933
|
...n
|
|
9924
9934
|
}) => {
|
|
9925
9935
|
const [m, o] = B(null), [u, _] = B(!1), h = ue([]), v = ue([]);
|
|
9926
|
-
let
|
|
9936
|
+
let C = !1;
|
|
9927
9937
|
const f = ye(Me);
|
|
9928
|
-
f && (
|
|
9929
|
-
const
|
|
9938
|
+
f && (C = f.isMobile);
|
|
9939
|
+
const g = i && C, y = "pds-user-menu", p = g ? `${y}--isMobile` : null, d = `${y}__menu`, { context: E, floatingStyles: $, refs: N } = He({
|
|
9930
9940
|
placement: "bottom-end",
|
|
9931
9941
|
open: u,
|
|
9932
9942
|
onOpenChange: _,
|
|
@@ -9960,12 +9970,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9960
9970
|
jt,
|
|
9961
9971
|
{
|
|
9962
9972
|
hasUserFallback: !0,
|
|
9963
|
-
className: `${
|
|
9973
|
+
className: `${y}__avatar`,
|
|
9964
9974
|
imageSrc: c,
|
|
9965
9975
|
size: "sm",
|
|
9966
9976
|
uniqueId: a
|
|
9967
9977
|
}
|
|
9968
|
-
), W = /* @__PURE__ */ e.createElement(D, { className: `${
|
|
9978
|
+
), W = /* @__PURE__ */ e.createElement(D, { className: `${y}__trigger-icon`, iconName: "angleDown" }), X = /* @__PURE__ */ e.createElement("li", { className: `${y}__user-details`, role: "presentation" }, g ? null : /* @__PURE__ */ e.createElement("div", { className: `${y}__user-name` }, l), /* @__PURE__ */ e.createElement("div", { className: `${y}__user-email` }, a));
|
|
9969
9979
|
t.forEach((F) => {
|
|
9970
9980
|
const K = F.id ? F.id : lt();
|
|
9971
9981
|
h.current.push(K), v.current.push(F);
|
|
@@ -9978,7 +9988,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9978
9988
|
}, se = (F) => {
|
|
9979
9989
|
ce(F.currentTarget.id);
|
|
9980
9990
|
}, Y = t.map((F, K) => {
|
|
9981
|
-
const R = h.current[K], G = `${
|
|
9991
|
+
const R = h.current[K], G = `${y}__item`, oe = F.disabled ? `${G}--disabled` : null;
|
|
9982
9992
|
return /* @__PURE__ */ e.createElement(
|
|
9983
9993
|
"li",
|
|
9984
9994
|
{
|
|
@@ -9996,7 +10006,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
9996
10006
|
F.iconName && /* @__PURE__ */ e.createElement(
|
|
9997
10007
|
D,
|
|
9998
10008
|
{
|
|
9999
|
-
className: `${
|
|
10009
|
+
className: `${y}__icon`,
|
|
10000
10010
|
iconName: F.iconName,
|
|
10001
10011
|
iconSize: "sm"
|
|
10002
10012
|
}
|
|
@@ -10008,7 +10018,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10008
10018
|
{
|
|
10009
10019
|
ref: N.setReference,
|
|
10010
10020
|
"aria-label": s,
|
|
10011
|
-
className: `${
|
|
10021
|
+
className: `${y}__trigger`,
|
|
10012
10022
|
type: "button",
|
|
10013
10023
|
...A()
|
|
10014
10024
|
},
|
|
@@ -10017,9 +10027,9 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10017
10027
|
"div",
|
|
10018
10028
|
{
|
|
10019
10029
|
ref: N.setFloating,
|
|
10020
|
-
className: `${
|
|
10030
|
+
className: `${y}__dropdown`,
|
|
10021
10031
|
style: {
|
|
10022
|
-
|
|
10032
|
+
...$,
|
|
10023
10033
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
10024
10034
|
},
|
|
10025
10035
|
...z()
|
|
@@ -10027,21 +10037,21 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10027
10037
|
/* @__PURE__ */ e.createElement("div", { style: { ...I } }, /* @__PURE__ */ e.createElement("ul", { className: d, role: "menu" }, X, /* @__PURE__ */ e.createElement("li", { role: "separator" }), Y))
|
|
10028
10038
|
)), x = (F) => {
|
|
10029
10039
|
const K = F.currentTarget;
|
|
10030
|
-
K.classList.toggle(`${
|
|
10040
|
+
K.classList.toggle(`${y}__toggle--expanded`), K.setAttribute(
|
|
10031
10041
|
"aria-expanded",
|
|
10032
10042
|
K.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
10033
|
-
), K.nextElementSibling.classList.toggle(`${
|
|
10043
|
+
), K.nextElementSibling.classList.toggle(`${y}__mobile-menu--expanded`);
|
|
10034
10044
|
}, O = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10035
10045
|
"button",
|
|
10036
10046
|
{
|
|
10037
10047
|
"aria-expanded": !1,
|
|
10038
10048
|
"aria-label": s,
|
|
10039
|
-
className: `${
|
|
10049
|
+
className: `${y}__toggle`,
|
|
10040
10050
|
onClick: x
|
|
10041
10051
|
},
|
|
10042
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
10052
|
+
/* @__PURE__ */ e.createElement("span", { className: `${y}__toggle-left` }, Z, l || a),
|
|
10043
10053
|
W
|
|
10044
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10054
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${y}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
10045
10055
|
"ul",
|
|
10046
10056
|
{
|
|
10047
10057
|
className: H([d, `${d}--isMobile`]),
|
|
@@ -10054,10 +10064,10 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10054
10064
|
return /* @__PURE__ */ e.createElement(
|
|
10055
10065
|
"span",
|
|
10056
10066
|
{
|
|
10057
|
-
className: H([
|
|
10067
|
+
className: H([y, p, r ?? ""]),
|
|
10058
10068
|
...n
|
|
10059
10069
|
},
|
|
10060
|
-
|
|
10070
|
+
g ? O : S
|
|
10061
10071
|
);
|
|
10062
10072
|
}, bs = {
|
|
10063
10073
|
silver: "Silver",
|
|
@@ -10077,27 +10087,27 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10077
10087
|
workspaceList: o,
|
|
10078
10088
|
...u
|
|
10079
10089
|
}) => {
|
|
10080
|
-
const [_, h] = B(!1), [v,
|
|
10090
|
+
const [_, h] = B(!1), [v, C] = B(null), [f, g] = B(o), y = ue([]), p = ue(null), d = o.length >= i;
|
|
10081
10091
|
let E = !1;
|
|
10082
|
-
const
|
|
10083
|
-
|
|
10092
|
+
const $ = ye(Me);
|
|
10093
|
+
$ && (E = $.isMobile);
|
|
10084
10094
|
const N = m && E, w = "pds-workspace-selector", L = N ? `${w}--isMobile` : null, b = `${w}__menu`, k = d ? `${b}--scroll` : null, { context: M, floatingStyles: z, refs: T } = He({
|
|
10085
10095
|
open: _,
|
|
10086
10096
|
onOpenChange: h,
|
|
10087
10097
|
whileElementsMounted: ze
|
|
10088
10098
|
}), A = tt(M, { event: "mousedown" }), V = De(M), I = Fe(M, { role: "menu" }), Z = dt(M, {
|
|
10089
|
-
listRef:
|
|
10099
|
+
listRef: y,
|
|
10090
10100
|
activeIndex: v,
|
|
10091
|
-
onNavigate:
|
|
10101
|
+
onNavigate: C,
|
|
10092
10102
|
loop: !0,
|
|
10093
10103
|
openOnArrowKeyDown: !0,
|
|
10094
10104
|
focusItemOnHover: !0,
|
|
10095
10105
|
focusItemOnOpen: !1
|
|
10096
10106
|
}), W = e2(M, {
|
|
10097
|
-
listRef:
|
|
10107
|
+
listRef: y,
|
|
10098
10108
|
activeIndex: v,
|
|
10099
10109
|
onMatch: (U) => {
|
|
10100
|
-
_ || h(!0),
|
|
10110
|
+
_ || h(!0), C(U);
|
|
10101
10111
|
},
|
|
10102
10112
|
findMatch: (U, ae) => {
|
|
10103
10113
|
const ne = ae.toLowerCase();
|
|
@@ -10124,17 +10134,17 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10124
10134
|
S || (S = o[0]);
|
|
10125
10135
|
const x = (U) => {
|
|
10126
10136
|
const { value: ae } = U.target, ne = o.filter((ve) => ve.displayName.toLowerCase().includes(ae.toLowerCase()));
|
|
10127
|
-
|
|
10137
|
+
g(ne);
|
|
10128
10138
|
};
|
|
10129
10139
|
me(() => {
|
|
10130
10140
|
const U = o.map((ae) => ({
|
|
10131
10141
|
...ae,
|
|
10132
10142
|
isActive: ae.isActive
|
|
10133
10143
|
}));
|
|
10134
|
-
|
|
10144
|
+
g(U);
|
|
10135
10145
|
}, [o]);
|
|
10136
10146
|
const O = (U) => {
|
|
10137
|
-
U.preventDefault(), U.key === "Enter" && (
|
|
10147
|
+
U.preventDefault(), U.key === "Enter" && (y.current[v].querySelector("a") || y.current[v].querySelector("button"))?.click(), U.key === "Tab" && (U.shiftKey ? d ? document.getElementById("workspace-filter").focus() : h(!1) : t ? p.current.querySelector("a").focus() : h(!1));
|
|
10138
10148
|
}, F = /* @__PURE__ */ e.createElement("div", { className: `${w}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
10139
10149
|
jt,
|
|
10140
10150
|
{
|
|
@@ -10164,7 +10174,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10164
10174
|
id: "workspace-filter",
|
|
10165
10175
|
label: a,
|
|
10166
10176
|
onChange: x,
|
|
10167
|
-
onClear: () =>
|
|
10177
|
+
onClear: () => g(o),
|
|
10168
10178
|
placeholder: c,
|
|
10169
10179
|
showLabel: !1,
|
|
10170
10180
|
type: "search"
|
|
@@ -10172,7 +10182,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10172
10182
|
)), G = f.map(
|
|
10173
10183
|
(U, ae) => {
|
|
10174
10184
|
const ne = `${w}__item`, ve = U.isActive ? `${ne}--active` : null, be = U.isUnprivileged ? `${ne}--unprivileged` : null, we = U.isRestricted ? `${ne}--restricted` : null, Xe = /* @__PURE__ */ e.createElement(D, { className: `${w}__active-icon`, iconName: "check" }), Ge = /* @__PURE__ */ e.createElement(D, { className: `${w}__lock-icon`, iconName: "lock" }), xe = U.workspaceId, Ye = U.isRestricted && U.onRestrictedSelection, q = U.workspaceLink?.type, he = U.isUnprivileged ? null : (P) => {
|
|
10175
|
-
|
|
10185
|
+
y.current[ae] = P;
|
|
10176
10186
|
}, $e = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${w}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
10177
10187
|
jt,
|
|
10178
10188
|
{
|
|
@@ -10309,32 +10319,32 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10309
10319
|
info: `${u}--info`,
|
|
10310
10320
|
warning: `${u}--warning`,
|
|
10311
10321
|
critical: `${u}--critical`
|
|
10312
|
-
}, v = o > 0 ? n[0].type : null,
|
|
10313
|
-
zIndex: Dt -
|
|
10314
|
-
}),
|
|
10315
|
-
const
|
|
10322
|
+
}, v = o > 0 ? n[0].type : null, C = v ? `${u}-group--${v}` : null, f = ($) => ({
|
|
10323
|
+
zIndex: Dt - $
|
|
10324
|
+
}), g = ($) => $ === 0 ? 0 : -1, y = () => {
|
|
10325
|
+
const $ = document.getElementsByClassName(
|
|
10316
10326
|
`${u}--fading`
|
|
10317
10327
|
);
|
|
10318
|
-
for (;
|
|
10319
|
-
|
|
10328
|
+
for (; $.length; )
|
|
10329
|
+
$[0].classList.remove(`${u}--fading`);
|
|
10320
10330
|
}, p = () => {
|
|
10321
|
-
|
|
10322
|
-
m((
|
|
10323
|
-
|
|
10324
|
-
|
|
10331
|
+
y(), document.getElementById(n[0].id).classList.add(`${u}--fading`), setTimeout(() => {
|
|
10332
|
+
m(($) => [
|
|
10333
|
+
...$.slice(1),
|
|
10334
|
+
$[0]
|
|
10325
10335
|
]);
|
|
10326
10336
|
}, 200);
|
|
10327
10337
|
}, d = () => {
|
|
10328
|
-
|
|
10338
|
+
y(), document.getElementById(n[0].id).style.zIndex = (Dt + 2).toString(), document.getElementById(n[o - 1].id).style.zIndex = (Dt + 1).toString(), setTimeout(() => {
|
|
10329
10339
|
document.getElementById(n[0].id).classList.add(`${u}--fading`);
|
|
10330
10340
|
}, 50), setTimeout(() => {
|
|
10331
|
-
m((
|
|
10332
|
-
|
|
10333
|
-
|
|
10341
|
+
m(($) => [
|
|
10342
|
+
$[$.length - 1],
|
|
10343
|
+
...$.slice(0, $.length - 1)
|
|
10334
10344
|
]), document.getElementById(n[0].id).classList.remove(`${u}--fading`);
|
|
10335
10345
|
}, 200);
|
|
10336
|
-
}, E = (
|
|
10337
|
-
const { id: w, isDismissible: L, message: b, onDismiss: k, type: M } =
|
|
10346
|
+
}, E = ($, N) => {
|
|
10347
|
+
const { id: w, isDismissible: L, message: b, onDismiss: k, type: M } = $, T = ["critical", "warning"].includes(M) ? "alert" : "status", A = `${l[M]}: `, V = (I) => {
|
|
10338
10348
|
I.preventDefault(), document.getElementById(w).classList.add(`${u}--dismissing`), setTimeout(() => {
|
|
10339
10349
|
if (k?.(), o === 1) {
|
|
10340
10350
|
m([]);
|
|
@@ -10359,7 +10369,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10359
10369
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, /* @__PURE__ */ e.createElement(
|
|
10360
10370
|
D,
|
|
10361
10371
|
{
|
|
10362
|
-
className: `${u}__icon ${u}__icon--${
|
|
10372
|
+
className: `${u}__icon ${u}__icon--${$.type}`,
|
|
10363
10373
|
iconName: $s[M],
|
|
10364
10374
|
iconSize: "md"
|
|
10365
10375
|
}
|
|
@@ -10369,7 +10379,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10369
10379
|
{
|
|
10370
10380
|
className: `${u}__dismiss-button`,
|
|
10371
10381
|
onClick: V,
|
|
10372
|
-
tabIndex:
|
|
10382
|
+
tabIndex: g(N),
|
|
10373
10383
|
type: "button"
|
|
10374
10384
|
},
|
|
10375
10385
|
t
|
|
@@ -10381,7 +10391,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10381
10391
|
{
|
|
10382
10392
|
className: H([
|
|
10383
10393
|
`${u}-group`,
|
|
10384
|
-
|
|
10394
|
+
C,
|
|
10385
10395
|
_,
|
|
10386
10396
|
r ?? ""
|
|
10387
10397
|
]),
|
|
@@ -10405,7 +10415,7 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10405
10415
|
onClick: p,
|
|
10406
10416
|
size: "lg"
|
|
10407
10417
|
}
|
|
10408
|
-
), n.map((
|
|
10418
|
+
), n.map(($, N) => E($, N))) : E(n[0], 0)
|
|
10409
10419
|
);
|
|
10410
10420
|
}, Wt = {
|
|
10411
10421
|
info: "circleInfo",
|
|
@@ -10475,11 +10485,11 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10475
10485
|
discovery: `${h}--discovery`,
|
|
10476
10486
|
dismissing: `${h}--dismissing`,
|
|
10477
10487
|
dismissed: `${h}--dismissed`
|
|
10478
|
-
},
|
|
10479
|
-
_.current.addEventListener("animationend",
|
|
10488
|
+
}, C = c ? `${h}--hasDismiss` : null, f = n ? `${h}--hasTitle` : null, y = ["critical", "warning"].includes(m) ? "alert" : "status", p = `${o[m]}: `, d = typeof l == "string" ? /* @__PURE__ */ e.createElement("p", null, l) : l, E = () => {
|
|
10489
|
+
_.current.addEventListener("animationend", $, {
|
|
10480
10490
|
once: !0
|
|
10481
10491
|
});
|
|
10482
|
-
},
|
|
10492
|
+
}, $ = (w) => {
|
|
10483
10493
|
i(w, a);
|
|
10484
10494
|
}, N = () => {
|
|
10485
10495
|
E(), _.current.classList.toggle(v.dismissing), setTimeout(() => {
|
|
@@ -10493,12 +10503,12 @@ const z1 = 0.125, x1 = 0.25, S1 = 0.328, V1 = 0.41, Lt = 0.512, I1 = 0.64, Ht =
|
|
|
10493
10503
|
className: H([
|
|
10494
10504
|
h,
|
|
10495
10505
|
v[m],
|
|
10496
|
-
|
|
10506
|
+
C,
|
|
10497
10507
|
f,
|
|
10498
10508
|
s ?? ""
|
|
10499
10509
|
]),
|
|
10500
10510
|
id: a,
|
|
10501
|
-
role:
|
|
10511
|
+
role: y,
|
|
10502
10512
|
...u
|
|
10503
10513
|
},
|
|
10504
10514
|
/* @__PURE__ */ e.createElement("div", { className: `${h}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${h}__icon ${h}__icon-${m}` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10637,11 +10647,11 @@ const Gn = () => {
|
|
|
10637
10647
|
return [...wt(1, v), Ct, l];
|
|
10638
10648
|
}
|
|
10639
10649
|
if (_ && !h) {
|
|
10640
|
-
const v = 3 + 2 * s,
|
|
10650
|
+
const v = 3 + 2 * s, C = wt(
|
|
10641
10651
|
l - v + 1,
|
|
10642
10652
|
l
|
|
10643
10653
|
);
|
|
10644
|
-
return [n, Ct, ...
|
|
10654
|
+
return [n, Ct, ...C];
|
|
10645
10655
|
}
|
|
10646
10656
|
if (_ && h) {
|
|
10647
10657
|
const v = wt(o, u);
|
|
@@ -10677,31 +10687,31 @@ const Gn = () => {
|
|
|
10677
10687
|
n(t + 1);
|
|
10678
10688
|
}, v = () => {
|
|
10679
10689
|
n(t - 1);
|
|
10680
|
-
},
|
|
10690
|
+
}, C = "pds-pagination", f = `${C}__item`, g = `${f}--current`, y = `${f}--disabled`;
|
|
10681
10691
|
return t === 0 || u.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
10682
10692
|
"nav",
|
|
10683
10693
|
{
|
|
10684
10694
|
"aria-labelledby": "pagination",
|
|
10685
|
-
className: H([
|
|
10695
|
+
className: H([C, r ?? ""]),
|
|
10686
10696
|
...o
|
|
10687
10697
|
},
|
|
10688
10698
|
/* @__PURE__ */ e.createElement(
|
|
10689
10699
|
nt,
|
|
10690
10700
|
{
|
|
10691
|
-
baseClass:
|
|
10701
|
+
baseClass: C,
|
|
10692
10702
|
className: "visually-hidden",
|
|
10693
10703
|
id: "pagination",
|
|
10694
10704
|
level: a
|
|
10695
10705
|
},
|
|
10696
10706
|
c
|
|
10697
10707
|
),
|
|
10698
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
10708
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${C}__list` }, /* @__PURE__ */ e.createElement(
|
|
10699
10709
|
"li",
|
|
10700
10710
|
{
|
|
10701
10711
|
className: H([
|
|
10702
10712
|
f,
|
|
10703
10713
|
`${f}--prev`,
|
|
10704
|
-
t === 1 ?
|
|
10714
|
+
t === 1 ? y : void 0
|
|
10705
10715
|
])
|
|
10706
10716
|
},
|
|
10707
10717
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10727,7 +10737,7 @@ const Gn = () => {
|
|
|
10727
10737
|
key: d,
|
|
10728
10738
|
className: H([
|
|
10729
10739
|
f,
|
|
10730
|
-
t === p ?
|
|
10740
|
+
t === p ? g : void 0
|
|
10731
10741
|
])
|
|
10732
10742
|
},
|
|
10733
10743
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10745,7 +10755,7 @@ const Gn = () => {
|
|
|
10745
10755
|
className: H([
|
|
10746
10756
|
f,
|
|
10747
10757
|
`${f}--next`,
|
|
10748
|
-
t === _ ?
|
|
10758
|
+
t === _ ? y : void 0
|
|
10749
10759
|
])
|
|
10750
10760
|
},
|
|
10751
10761
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10765,61 +10775,69 @@ const Gn = () => {
|
|
|
10765
10775
|
className: r,
|
|
10766
10776
|
id: t,
|
|
10767
10777
|
isOpen: a = !1,
|
|
10768
|
-
|
|
10769
|
-
|
|
10778
|
+
showBorder: c = !0,
|
|
10779
|
+
summary: l,
|
|
10780
|
+
...i
|
|
10770
10781
|
}) => {
|
|
10771
|
-
const [
|
|
10782
|
+
const [n, m] = B(a), u = ue(
|
|
10772
10783
|
t || `expansion-panel-${lt()}`
|
|
10773
|
-
).current,
|
|
10784
|
+
).current, _ = "pds-expansion-panel", h = c ? null : `${_}--no-border`, v = ue(null), C = ue(null), f = ue(null);
|
|
10774
10785
|
return me(() => {
|
|
10775
|
-
const g =
|
|
10776
|
-
if (!g || !
|
|
10777
|
-
let
|
|
10778
|
-
const
|
|
10779
|
-
|
|
10780
|
-
},
|
|
10781
|
-
|
|
10782
|
-
const
|
|
10783
|
-
|
|
10784
|
-
{ height: [
|
|
10786
|
+
const g = v.current, y = C.current, p = f.current;
|
|
10787
|
+
if (!g || !y || !p) return;
|
|
10788
|
+
let d = null, E = !1, $ = !1;
|
|
10789
|
+
const N = (M) => {
|
|
10790
|
+
M.preventDefault(), g.style.overflow = "hidden", E || !g.open ? L() : ($ || g.open) && w();
|
|
10791
|
+
}, w = () => {
|
|
10792
|
+
E = !0, m(!1);
|
|
10793
|
+
const M = `${g.offsetHeight}px`, z = `${y.offsetHeight}px`;
|
|
10794
|
+
d && d.cancel(), d = g.animate(
|
|
10795
|
+
{ height: [M, z] },
|
|
10785
10796
|
{
|
|
10786
10797
|
duration: y2,
|
|
10787
10798
|
easing: rt
|
|
10788
10799
|
}
|
|
10789
|
-
),
|
|
10790
|
-
},
|
|
10791
|
-
g.style.height = `${g.offsetHeight}px`, g.open = !0,
|
|
10792
|
-
},
|
|
10793
|
-
|
|
10794
|
-
const
|
|
10795
|
-
|
|
10796
|
-
{ height: [
|
|
10800
|
+
), d.onfinish = () => k(!1), d.oncancel = () => E = !1;
|
|
10801
|
+
}, L = () => {
|
|
10802
|
+
g.style.height = `${g.offsetHeight}px`, g.open = !0, m(!0), requestAnimationFrame(() => b());
|
|
10803
|
+
}, b = () => {
|
|
10804
|
+
$ = !0;
|
|
10805
|
+
const M = `${g.offsetHeight}px`, z = `${y.offsetHeight + p.offsetHeight}px`;
|
|
10806
|
+
d && d.cancel(), d = g.animate(
|
|
10807
|
+
{ height: [M, z] },
|
|
10797
10808
|
{
|
|
10798
10809
|
duration: y2,
|
|
10799
10810
|
easing: rt
|
|
10800
10811
|
}
|
|
10801
|
-
),
|
|
10802
|
-
},
|
|
10803
|
-
g.open =
|
|
10812
|
+
), d.onfinish = () => k(!0), d.oncancel = () => $ = !1;
|
|
10813
|
+
}, k = (M) => {
|
|
10814
|
+
g.open = M, d = null, E = !1, $ = !1, g.style.height = g.style.overflow = "";
|
|
10804
10815
|
};
|
|
10805
|
-
return
|
|
10806
|
-
}, []), /* @__PURE__ */ e.createElement(
|
|
10807
|
-
"
|
|
10816
|
+
return y.addEventListener("click", N), () => y.removeEventListener("click", N);
|
|
10817
|
+
}, []), /* @__PURE__ */ e.createElement(
|
|
10818
|
+
"div",
|
|
10808
10819
|
{
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
id: o,
|
|
10812
|
-
open: a
|
|
10820
|
+
className: H([_, h, r]),
|
|
10821
|
+
...i
|
|
10813
10822
|
},
|
|
10814
|
-
/* @__PURE__ */ e.createElement(
|
|
10815
|
-
|
|
10823
|
+
/* @__PURE__ */ e.createElement(
|
|
10824
|
+
"details",
|
|
10816
10825
|
{
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10826
|
+
key: u,
|
|
10827
|
+
ref: v,
|
|
10828
|
+
id: u,
|
|
10829
|
+
open: a
|
|
10830
|
+
},
|
|
10831
|
+
/* @__PURE__ */ e.createElement("summary", { ref: C }, /* @__PURE__ */ e.createElement("span", null, l), /* @__PURE__ */ e.createElement(
|
|
10832
|
+
D,
|
|
10833
|
+
{
|
|
10834
|
+
className: `${_}__icon ${n ? "rotated" : ""}`,
|
|
10835
|
+
iconName: "angleDown"
|
|
10836
|
+
}
|
|
10837
|
+
)),
|
|
10838
|
+
/* @__PURE__ */ e.createElement("div", { ref: f, className: `${_}__content` }, s)
|
|
10839
|
+
)
|
|
10840
|
+
);
|
|
10823
10841
|
}, Kn = ({
|
|
10824
10842
|
children: s,
|
|
10825
10843
|
className: r,
|
|
@@ -10885,11 +10903,11 @@ const Gn = () => {
|
|
|
10885
10903
|
isExpandable: a = !1,
|
|
10886
10904
|
...c
|
|
10887
10905
|
}) => {
|
|
10888
|
-
const l = "pds-panel-row", [i, n] = B(!1), m = ue(null), o = ue(null), u = Pe(s), _ = u["items-left"], h = u["items-right"], v = u["items-below"],
|
|
10889
|
-
const f = o.current,
|
|
10890
|
-
if (!f || !
|
|
10891
|
-
const
|
|
10892
|
-
if (n(
|
|
10906
|
+
const l = "pds-panel-row", [i, n] = B(!1), m = ue(null), o = ue(null), u = Pe(s), _ = u["items-left"], h = u["items-right"], v = u["items-below"], C = () => {
|
|
10907
|
+
const f = o.current, g = m.current;
|
|
10908
|
+
if (!f || !g) return;
|
|
10909
|
+
const y = !i;
|
|
10910
|
+
if (n(y), y) {
|
|
10893
10911
|
f.style.display = "block", f.style.height = "auto";
|
|
10894
10912
|
const p = `${f.scrollHeight}px`;
|
|
10895
10913
|
f.animate(
|
|
@@ -10905,7 +10923,7 @@ const Gn = () => {
|
|
|
10905
10923
|
Object.assign(f.style, {
|
|
10906
10924
|
height: "auto",
|
|
10907
10925
|
opacity: "1"
|
|
10908
|
-
}),
|
|
10926
|
+
}), g.classList.add("is-expanded");
|
|
10909
10927
|
};
|
|
10910
10928
|
} else {
|
|
10911
10929
|
const p = `${f.scrollHeight}px`;
|
|
@@ -10923,7 +10941,7 @@ const Gn = () => {
|
|
|
10923
10941
|
height: "0",
|
|
10924
10942
|
opacity: "0",
|
|
10925
10943
|
display: "none"
|
|
10926
|
-
}),
|
|
10944
|
+
}), g.classList.remove("is-expanded");
|
|
10927
10945
|
};
|
|
10928
10946
|
}
|
|
10929
10947
|
};
|
|
@@ -10950,7 +10968,7 @@ const Gn = () => {
|
|
|
10950
10968
|
"aria-expanded": i,
|
|
10951
10969
|
"aria-label": t,
|
|
10952
10970
|
className: `${l}__expand-button`,
|
|
10953
|
-
onClick:
|
|
10971
|
+
onClick: C
|
|
10954
10972
|
},
|
|
10955
10973
|
/* @__PURE__ */ e.createElement(
|
|
10956
10974
|
D,
|
|
@@ -11009,32 +11027,32 @@ const Gn = () => {
|
|
|
11009
11027
|
title: _,
|
|
11010
11028
|
triggerAccessibleText: h = "Show more information",
|
|
11011
11029
|
triggerIcon: v = "circleInfo",
|
|
11012
|
-
...
|
|
11030
|
+
...C
|
|
11013
11031
|
}) => {
|
|
11014
|
-
const [f,
|
|
11032
|
+
const [f, g] = B(o);
|
|
11015
11033
|
me(() => {
|
|
11016
|
-
|
|
11034
|
+
g(o);
|
|
11017
11035
|
}, [o]), me(() => {
|
|
11018
11036
|
u(f);
|
|
11019
11037
|
}, [f]);
|
|
11020
|
-
const
|
|
11038
|
+
const y = typeof c, p = "pds-popover", d = H([
|
|
11021
11039
|
`${p}__trigger-custom`,
|
|
11022
|
-
|
|
11023
|
-
]), E = c ? i : 0,
|
|
11040
|
+
y === "string" ? `${p}__trigger-text` : ""
|
|
11041
|
+
]), E = c ? i : 0, $ = ue(null), { context: N, floatingStyles: w, middlewareData: L, refs: b } = He({
|
|
11024
11042
|
placement: m,
|
|
11025
11043
|
open: f,
|
|
11026
11044
|
onOpenChange(te) {
|
|
11027
|
-
|
|
11045
|
+
g(te), te || n();
|
|
11028
11046
|
},
|
|
11029
11047
|
middleware: [
|
|
11030
11048
|
Ue(at + Hs + E),
|
|
11031
11049
|
We({ padding: 8 }),
|
|
11032
11050
|
mt({ padding: 8 }),
|
|
11033
|
-
e1({ element:
|
|
11051
|
+
e1({ element: $ })
|
|
11034
11052
|
],
|
|
11035
11053
|
whileElementsMounted: ze
|
|
11036
11054
|
}), k = () => {
|
|
11037
|
-
|
|
11055
|
+
g(!1), n && n();
|
|
11038
11056
|
}, M = tt(N), z = De(N), T = Fe(N), { getFloatingProps: A, getReferenceProps: V } = Te([
|
|
11039
11057
|
M,
|
|
11040
11058
|
z,
|
|
@@ -11052,7 +11070,7 @@ const Gn = () => {
|
|
|
11052
11070
|
}[te]
|
|
11053
11071
|
})
|
|
11054
11072
|
});
|
|
11055
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([p, s]), ...
|
|
11073
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([p, s]), ...C }, /* @__PURE__ */ e.createElement(
|
|
11056
11074
|
"span",
|
|
11057
11075
|
{
|
|
11058
11076
|
ref: b.setReference,
|
|
@@ -11060,7 +11078,7 @@ const Gn = () => {
|
|
|
11060
11078
|
role: "button",
|
|
11061
11079
|
tabIndex: 0,
|
|
11062
11080
|
...V(),
|
|
11063
|
-
...
|
|
11081
|
+
...C
|
|
11064
11082
|
},
|
|
11065
11083
|
c ? /* @__PURE__ */ e.createElement("span", { className: d }, c) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, h), /* @__PURE__ */ e.createElement(
|
|
11066
11084
|
D,
|
|
@@ -11091,7 +11109,7 @@ const Gn = () => {
|
|
|
11091
11109
|
/* @__PURE__ */ e.createElement(
|
|
11092
11110
|
t1,
|
|
11093
11111
|
{
|
|
11094
|
-
ref:
|
|
11112
|
+
ref: $,
|
|
11095
11113
|
className: `${p}__arrow`,
|
|
11096
11114
|
context: N,
|
|
11097
11115
|
fill: "var(--pds-color-bg-default)",
|
|
@@ -11134,12 +11152,12 @@ const Gn = () => {
|
|
|
11134
11152
|
size: o = "md",
|
|
11135
11153
|
...u
|
|
11136
11154
|
}) => {
|
|
11137
|
-
const _ = t || lt(), h = "pds-progress-bar", v = n ? `${h}__label` : "visually-hidden",
|
|
11138
|
-
let
|
|
11155
|
+
const _ = t || lt(), h = "pds-progress-bar", v = n ? `${h}__label` : "visually-hidden", C = `${h}__track ${h}__track--${o}`, f = i > 100 ? 100 : i;
|
|
11156
|
+
let g = "neutral";
|
|
11139
11157
|
r.forEach((E) => {
|
|
11140
|
-
i >= E.percentage && (
|
|
11158
|
+
i >= E.percentage && (g = E.colorType);
|
|
11141
11159
|
});
|
|
11142
|
-
const
|
|
11160
|
+
const y = /* @__PURE__ */ e.createElement("div", { className: `${h}__message` }, c), p = c && l === "above", d = c && l === "below";
|
|
11143
11161
|
return /* @__PURE__ */ e.createElement(
|
|
11144
11162
|
"div",
|
|
11145
11163
|
{
|
|
@@ -11148,12 +11166,12 @@ const Gn = () => {
|
|
|
11148
11166
|
...u
|
|
11149
11167
|
},
|
|
11150
11168
|
/* @__PURE__ */ e.createElement("div", { className: v, id: _ }, a),
|
|
11151
|
-
(p || m) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, p &&
|
|
11169
|
+
(p || m) && /* @__PURE__ */ e.createElement("div", { className: `${h}__details` }, p && y, m && /* @__PURE__ */ e.createElement(
|
|
11152
11170
|
"div",
|
|
11153
11171
|
{
|
|
11154
11172
|
className: `${h}__percentage`,
|
|
11155
11173
|
style: {
|
|
11156
|
-
color: `hsl(from var(${L2[
|
|
11174
|
+
color: `hsl(from var(${L2[g]}) h s calc(l - 7))`
|
|
11157
11175
|
}
|
|
11158
11176
|
},
|
|
11159
11177
|
i,
|
|
@@ -11164,7 +11182,7 @@ const Gn = () => {
|
|
|
11164
11182
|
{
|
|
11165
11183
|
"aria-labelledby": _,
|
|
11166
11184
|
"aria-valuenow": f,
|
|
11167
|
-
className:
|
|
11185
|
+
className: C,
|
|
11168
11186
|
role: "progressbar"
|
|
11169
11187
|
},
|
|
11170
11188
|
/* @__PURE__ */ e.createElement(
|
|
@@ -11173,12 +11191,12 @@ const Gn = () => {
|
|
|
11173
11191
|
className: `${h}__bar`,
|
|
11174
11192
|
style: {
|
|
11175
11193
|
width: `${f}%`,
|
|
11176
|
-
backgroundColor: `var(${L2[
|
|
11194
|
+
backgroundColor: `var(${L2[g]})`
|
|
11177
11195
|
}
|
|
11178
11196
|
}
|
|
11179
11197
|
)
|
|
11180
11198
|
)),
|
|
11181
|
-
d &&
|
|
11199
|
+
d && y
|
|
11182
11200
|
);
|
|
11183
11201
|
}, ks = ({
|
|
11184
11202
|
className: s,
|
|
@@ -11192,9 +11210,9 @@ const Gn = () => {
|
|
|
11192
11210
|
...m
|
|
11193
11211
|
}) => {
|
|
11194
11212
|
const o = r || lt(), u = "pds-progress-ring", _ = l ? `${u}__label` : "visually-hidden", h = `${u}__loading-text ${u}__loading-text--${n}`, v = (E) => E * 16;
|
|
11195
|
-
let
|
|
11196
|
-
n === "sm" && (
|
|
11197
|
-
const
|
|
11213
|
+
let C = v(W2), f = 7;
|
|
11214
|
+
n === "sm" && (C = v(Z2), f = f / 1.25), n === "lg" && (C = v(G2), f = f * 1.25);
|
|
11215
|
+
const g = C / 2 - f / 2, y = 2 * Math.PI * g, p = y - y * c / 100;
|
|
11198
11216
|
let d;
|
|
11199
11217
|
return t ? d = t : i ? d = `${c}%` : d = "", /* @__PURE__ */ e.createElement(
|
|
11200
11218
|
"div",
|
|
@@ -11202,7 +11220,7 @@ const Gn = () => {
|
|
|
11202
11220
|
className: H([u, s]),
|
|
11203
11221
|
style: {
|
|
11204
11222
|
"--ring-stroke-dashoffset": p,
|
|
11205
|
-
"--ring-stroke-dasharray":
|
|
11223
|
+
"--ring-stroke-dasharray": y
|
|
11206
11224
|
},
|
|
11207
11225
|
...m
|
|
11208
11226
|
},
|
|
@@ -11220,17 +11238,17 @@ const Gn = () => {
|
|
|
11220
11238
|
/* @__PURE__ */ e.createElement(
|
|
11221
11239
|
"svg",
|
|
11222
11240
|
{
|
|
11223
|
-
height:
|
|
11224
|
-
viewBox: `0 0 ${
|
|
11225
|
-
width:
|
|
11241
|
+
height: C,
|
|
11242
|
+
viewBox: `0 0 ${C} ${C}`,
|
|
11243
|
+
width: C
|
|
11226
11244
|
},
|
|
11227
11245
|
/* @__PURE__ */ e.createElement(
|
|
11228
11246
|
"circle",
|
|
11229
11247
|
{
|
|
11230
11248
|
className: `${u}__track`,
|
|
11231
|
-
cx:
|
|
11232
|
-
cy:
|
|
11233
|
-
r:
|
|
11249
|
+
cx: C / 2,
|
|
11250
|
+
cy: C / 2,
|
|
11251
|
+
r: g,
|
|
11234
11252
|
strokeWidth: f
|
|
11235
11253
|
}
|
|
11236
11254
|
),
|
|
@@ -11238,13 +11256,13 @@ const Gn = () => {
|
|
|
11238
11256
|
"circle",
|
|
11239
11257
|
{
|
|
11240
11258
|
className: `${u}__progress`,
|
|
11241
|
-
cx:
|
|
11242
|
-
cy:
|
|
11243
|
-
r:
|
|
11244
|
-
strokeDasharray:
|
|
11259
|
+
cx: C / 2,
|
|
11260
|
+
cy: C / 2,
|
|
11261
|
+
r: g,
|
|
11262
|
+
strokeDasharray: y,
|
|
11245
11263
|
strokeDashoffset: p,
|
|
11246
11264
|
strokeWidth: f,
|
|
11247
|
-
transform: `rotate(-90 ${
|
|
11265
|
+
transform: `rotate(-90 ${C / 2} ${C / 2})`
|
|
11248
11266
|
}
|
|
11249
11267
|
),
|
|
11250
11268
|
/* @__PURE__ */ e.createElement(
|
|
@@ -11313,7 +11331,7 @@ const ta = ({
|
|
|
11313
11331
|
return o.checking;
|
|
11314
11332
|
case "checked":
|
|
11315
11333
|
if (c) {
|
|
11316
|
-
const p = c instanceof Date ? c : new Date(c), d = Date.now() - p.getTime(), E = Math.floor(d / 1e3),
|
|
11334
|
+
const p = c instanceof Date ? c : new Date(c), d = Date.now() - p.getTime(), E = Math.floor(d / 1e3), $ = Math.floor(E / 60), N = Math.floor($ / 60), w = Math.floor(N / 24), L = {
|
|
11317
11335
|
year: "numeric",
|
|
11318
11336
|
month: "short",
|
|
11319
11337
|
day: "numeric"
|
|
@@ -11322,23 +11340,23 @@ const ta = ({
|
|
|
11322
11340
|
return w > 7 ? b = p.toLocaleDateString(
|
|
11323
11341
|
void 0,
|
|
11324
11342
|
L
|
|
11325
|
-
) : w > 0 && w <= 7 ? b = `${w} day${w !== 1 ? "s" : ""} ago` : N > 0 ? b = `${N} hour${N !== 1 ? "s" : ""} ago` :
|
|
11343
|
+
) : w > 0 && w <= 7 ? b = `${w} day${w !== 1 ? "s" : ""} ago` : N > 0 ? b = `${N} hour${N !== 1 ? "s" : ""} ago` : $ > 0 ? b = `${$} minute${$ !== 1 ? "s" : ""} ago` : b = `${E} second${E !== 1 ? "s" : ""} ago`, `${o.checked} ${b}`;
|
|
11326
11344
|
}
|
|
11327
11345
|
return o.checked;
|
|
11328
11346
|
}
|
|
11329
11347
|
}, _ = () => {
|
|
11330
11348
|
l?.();
|
|
11331
|
-
}, h = "pds-refresh-checker", v = `${h}--${s}`,
|
|
11349
|
+
}, h = "pds-refresh-checker", v = `${h}--${s}`, C = H([
|
|
11332
11350
|
`${h}__button`,
|
|
11333
11351
|
m === "working" ? `${h}__button--spinning` : ""
|
|
11334
|
-
]), f = t !== null && t > 0 ? `${t}rem` : "100%",
|
|
11352
|
+
]), f = t !== null && t > 0 ? `${t}rem` : "100%", g = /* @__PURE__ */ e.createElement("span", { className: `${h}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
11335
11353
|
D,
|
|
11336
11354
|
{
|
|
11337
11355
|
className: `${h}__icon ${m === "working" ? `${h}__icon--spinning` : ""}`,
|
|
11338
11356
|
iconName: "rotate",
|
|
11339
11357
|
iconSize: "md"
|
|
11340
11358
|
}
|
|
11341
|
-
)),
|
|
11359
|
+
)), y = /* @__PURE__ */ e.createElement("span", { className: `${h}__label` }, u());
|
|
11342
11360
|
return /* @__PURE__ */ e.createElement(
|
|
11343
11361
|
"div",
|
|
11344
11362
|
{
|
|
@@ -11351,21 +11369,21 @@ const ta = ({
|
|
|
11351
11369
|
{
|
|
11352
11370
|
"aria-label": o.ariaLabel,
|
|
11353
11371
|
"aria-live": "polite",
|
|
11354
|
-
className:
|
|
11372
|
+
className: C,
|
|
11355
11373
|
onClick: _,
|
|
11356
11374
|
type: "button"
|
|
11357
11375
|
},
|
|
11358
|
-
s === "right" &&
|
|
11376
|
+
s === "right" && y,
|
|
11359
11377
|
/* @__PURE__ */ e.createElement(
|
|
11360
11378
|
Ae,
|
|
11361
11379
|
{
|
|
11362
11380
|
content: o.tooltipContent || o.ariaLabel,
|
|
11363
|
-
customTrigger:
|
|
11381
|
+
customTrigger: g,
|
|
11364
11382
|
triggerIconColor: "default",
|
|
11365
11383
|
triggerIconSize: "sm"
|
|
11366
11384
|
}
|
|
11367
11385
|
),
|
|
11368
|
-
s === "left" &&
|
|
11386
|
+
s === "left" && y
|
|
11369
11387
|
)
|
|
11370
11388
|
);
|
|
11371
11389
|
}, sa = ({
|
|
@@ -11383,7 +11401,7 @@ const ta = ({
|
|
|
11383
11401
|
workspaceName: _,
|
|
11384
11402
|
...h
|
|
11385
11403
|
}) => {
|
|
11386
|
-
const v = "pds-site-dashboard-heading",
|
|
11404
|
+
const v = "pds-site-dashboard-heading", C = h1[n], f = m ? R2[m] : "bolt";
|
|
11387
11405
|
return /* @__PURE__ */ e.createElement("div", { className: H([v, s ?? ""]), ...h }, _ && /* @__PURE__ */ e.createElement("div", { className: `${v}__workspace-name` }, _), /* @__PURE__ */ e.createElement("div", { className: `${v}__inner` }, /* @__PURE__ */ e.createElement(D, { iconName: f, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, i), /* @__PURE__ */ e.createElement("span", { className: `${v}__plan-level-badge` }, n === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
11388
11406
|
Oe,
|
|
11389
11407
|
{
|
|
@@ -11397,7 +11415,7 @@ const ta = ({
|
|
|
11397
11415
|
vt,
|
|
11398
11416
|
{
|
|
11399
11417
|
color: "neutral",
|
|
11400
|
-
label:
|
|
11418
|
+
label: C,
|
|
11401
11419
|
size: "md"
|
|
11402
11420
|
}
|
|
11403
11421
|
), t && /* @__PURE__ */ e.createElement(
|
|
@@ -11506,26 +11524,26 @@ const ta = ({
|
|
|
11506
11524
|
}) => {
|
|
11507
11525
|
const c = "pds-stepper", l = "pds-stepper-mobile", i = ue(null), [n] = St(i), m = n.width, o = Number(
|
|
11508
11526
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
11509
|
-
) * 16, u = -40, _ = 2, h = 5, v = r.length,
|
|
11510
|
-
const d = p + 1, E = p ===
|
|
11527
|
+
) * 16, u = -40, _ = 2, h = 5, v = r.length, C = r.map((y) => y.isCurrent).lastIndexOf(!0), f = r.map((y, p) => {
|
|
11528
|
+
const d = p + 1, E = p === C, $ = y.isComplete || p < C, N = y.hasError && E, L = (m - v * o) / (v + (v - 2)), b = o + L * 2, k = o + L, M = L + u * -1, z = p === 0, T = p === v - 1;
|
|
11511
11529
|
let A = b;
|
|
11512
11530
|
(z || T) && (A = k);
|
|
11513
11531
|
const V = `${c}__step`, I = [V];
|
|
11514
|
-
E && I.push(`${V}--current`),
|
|
11532
|
+
E && I.push(`${V}--current`), $ && I.push(`${V}--complete`), N && I.push(`${V}--error`);
|
|
11515
11533
|
let Z = `${t.step} ${d}`;
|
|
11516
|
-
|
|
11517
|
-
const W =
|
|
11534
|
+
$ && (Z = `${t.step} ${d}, ${t.completed}`), N && (Z = `${t.step} ${d}, ${t.hasError}`);
|
|
11535
|
+
const W = $ ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11518
11536
|
D,
|
|
11519
11537
|
{
|
|
11520
11538
|
className: `${c}__step-complete-icon`,
|
|
11521
11539
|
iconName: "check",
|
|
11522
11540
|
iconSize: "md"
|
|
11523
11541
|
}
|
|
11524
|
-
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }), X = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` },
|
|
11542
|
+
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }), X = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` }, y.label);
|
|
11525
11543
|
let ce = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-content` }, X, W);
|
|
11526
|
-
if (
|
|
11544
|
+
if ($ && y.callback) {
|
|
11527
11545
|
const te = (se) => {
|
|
11528
|
-
|
|
11546
|
+
y.callback(y), se.preventDefault();
|
|
11529
11547
|
};
|
|
11530
11548
|
ce = /* @__PURE__ */ e.createElement(
|
|
11531
11549
|
"button",
|
|
@@ -11541,13 +11559,13 @@ const ta = ({
|
|
|
11541
11559
|
return /* @__PURE__ */ e.createElement(
|
|
11542
11560
|
"li",
|
|
11543
11561
|
{
|
|
11544
|
-
key:
|
|
11562
|
+
key: y.id,
|
|
11545
11563
|
"aria-current": E ? "step" : null,
|
|
11546
11564
|
"aria-label": Z,
|
|
11547
11565
|
"aria-posinset": d,
|
|
11548
11566
|
"aria-setsize": v,
|
|
11549
11567
|
className: H(I),
|
|
11550
|
-
id:
|
|
11568
|
+
id: y.id,
|
|
11551
11569
|
style: { width: A }
|
|
11552
11570
|
},
|
|
11553
11571
|
!z && /* @__PURE__ */ e.createElement(
|
|
@@ -11569,8 +11587,8 @@ const ta = ({
|
|
|
11569
11587
|
}
|
|
11570
11588
|
)
|
|
11571
11589
|
);
|
|
11572
|
-
}),
|
|
11573
|
-
const d = p + 1, E = p ===
|
|
11590
|
+
}), g = r.map((y, p) => {
|
|
11591
|
+
const d = p + 1, E = p === C, $ = p === v - 1, N = y.hasError && E, w = r[C + 1] ? r[C + 1].label : null;
|
|
11574
11592
|
if (E) {
|
|
11575
11593
|
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t.step, " "), d, " of ", v), b = d / v * 100, k = N ? {
|
|
11576
11594
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
@@ -11580,9 +11598,9 @@ const ta = ({
|
|
|
11580
11598
|
return /* @__PURE__ */ e.createElement(
|
|
11581
11599
|
"div",
|
|
11582
11600
|
{
|
|
11583
|
-
key:
|
|
11601
|
+
key: y.id,
|
|
11584
11602
|
className: `${l}__step`,
|
|
11585
|
-
id: `${
|
|
11603
|
+
id: `${y.id}--mobile`
|
|
11586
11604
|
},
|
|
11587
11605
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
11588
11606
|
ks,
|
|
@@ -11601,7 +11619,7 @@ const ta = ({
|
|
|
11601
11619
|
iconName: "diamondExclamation",
|
|
11602
11620
|
iconSize: "md"
|
|
11603
11621
|
}
|
|
11604
|
-
)),
|
|
11622
|
+
)), y.label), !$ && /* @__PURE__ */ e.createElement("div", { className: `${l}__next-step` }, `${t.next}: ${w}`))
|
|
11605
11623
|
);
|
|
11606
11624
|
}
|
|
11607
11625
|
});
|
|
@@ -11621,7 +11639,7 @@ const ta = ({
|
|
|
11621
11639
|
"data-steps": v,
|
|
11622
11640
|
...a
|
|
11623
11641
|
},
|
|
11624
|
-
/* @__PURE__ */ e.createElement("div", { className: `${l}__steps` },
|
|
11642
|
+
/* @__PURE__ */ e.createElement("div", { className: `${l}__steps` }, g)
|
|
11625
11643
|
));
|
|
11626
11644
|
}, xs = ({
|
|
11627
11645
|
_isFirstStep: s,
|
|
@@ -11655,20 +11673,20 @@ const ta = ({
|
|
|
11655
11673
|
...a
|
|
11656
11674
|
}) => {
|
|
11657
11675
|
const c = "pds-vert-stepper", n = t.length, m = t.findIndex((_) => _.isCurrent), o = t.map((u, _) => {
|
|
11658
|
-
const h = _ + 1, v = _ === m,
|
|
11659
|
-
let
|
|
11660
|
-
return f && (
|
|
11676
|
+
const h = _ + 1, v = _ === m, C = _ === 0, f = u.isComplete || !1, g = u.hasError && v;
|
|
11677
|
+
let y = `${r.step} ${h}`;
|
|
11678
|
+
return f && (y = `${r.step} ${h}, ${r.completed}`), g && (y = `${r.step} ${h}, ${r.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11661
11679
|
xs,
|
|
11662
11680
|
{
|
|
11663
11681
|
key: `s${h}`,
|
|
11664
|
-
_isFirstStep:
|
|
11682
|
+
_isFirstStep: C,
|
|
11665
11683
|
"aria-current": v ? "step" : null,
|
|
11666
|
-
"aria-label":
|
|
11684
|
+
"aria-label": y,
|
|
11667
11685
|
"aria-posinset": h,
|
|
11668
11686
|
"aria-setsize": n,
|
|
11669
11687
|
backButton: u.backButton,
|
|
11670
11688
|
forwardButton: u.forwardButton,
|
|
11671
|
-
hasError:
|
|
11689
|
+
hasError: g,
|
|
11672
11690
|
id: u.id,
|
|
11673
11691
|
isComplete: f,
|
|
11674
11692
|
isCurrent: v,
|
|
@@ -11688,34 +11706,34 @@ const ta = ({
|
|
|
11688
11706
|
const [c] = B(r), [l, i] = B(t), [n, m] = B({
|
|
11689
11707
|
order: "asc",
|
|
11690
11708
|
key: ""
|
|
11691
|
-
}), o = (
|
|
11709
|
+
}), o = (C) => {
|
|
11692
11710
|
i(
|
|
11693
11711
|
[...l].sort(
|
|
11694
|
-
(f,
|
|
11712
|
+
(f, g) => String(f[C]).localeCompare(String(g[C]))
|
|
11695
11713
|
)
|
|
11696
|
-
), m({ order: "desc", key:
|
|
11697
|
-
}, u = (
|
|
11714
|
+
), m({ order: "desc", key: C });
|
|
11715
|
+
}, u = (C) => {
|
|
11698
11716
|
i(
|
|
11699
11717
|
[...l].sort(
|
|
11700
|
-
(f,
|
|
11718
|
+
(f, g) => String(g[C]).localeCompare(String(f[C]))
|
|
11701
11719
|
)
|
|
11702
|
-
), m({ order: "asc", key:
|
|
11703
|
-
}, _ = (
|
|
11704
|
-
f?.target instanceof SVGElement || (m({ ...n, key:
|
|
11705
|
-
}, h = (
|
|
11706
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", { className: H([v, s]), ...a }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, c.map((
|
|
11720
|
+
), m({ order: "asc", key: C });
|
|
11721
|
+
}, _ = (C, f) => {
|
|
11722
|
+
f?.target instanceof SVGElement || (m({ ...n, key: C }), n.order === "asc" ? o(C) : u(C));
|
|
11723
|
+
}, h = (C, f) => /* @__PURE__ */ e.createElement("tr", { key: `table-row-${f}`, id: String(f) }, C.map((g, y) => /* @__PURE__ */ e.createElement("td", { key: `${f}-cell-${y}` }, /* @__PURE__ */ e.createElement("span", null, g)))), v = "pds-table";
|
|
11724
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", { className: H([v, s]), ...a }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, c.map((C, f) => /* @__PURE__ */ e.createElement("th", { key: `header-${f}` }, C.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${v}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
11707
11725
|
"span",
|
|
11708
11726
|
{
|
|
11709
11727
|
className: `${v}__sort-header`,
|
|
11710
|
-
onClick: (
|
|
11728
|
+
onClick: (g) => _(f, g)
|
|
11711
11729
|
},
|
|
11712
|
-
|
|
11730
|
+
C.title
|
|
11713
11731
|
), /* @__PURE__ */ e.createElement(
|
|
11714
11732
|
"button",
|
|
11715
11733
|
{
|
|
11716
11734
|
className: `${v}__sort-button`,
|
|
11717
11735
|
onClick: () => _(f),
|
|
11718
|
-
title: `Sort by ${
|
|
11736
|
+
title: `Sort by ${C.title}`,
|
|
11719
11737
|
type: "button"
|
|
11720
11738
|
},
|
|
11721
11739
|
/* @__PURE__ */ e.createElement(
|
|
@@ -11732,7 +11750,7 @@ const ta = ({
|
|
|
11732
11750
|
},
|
|
11733
11751
|
/* @__PURE__ */ e.createElement(D, { iconName: "caretDown", iconSize: "sm" })
|
|
11734
11752
|
)
|
|
11735
|
-
)) : /* @__PURE__ */ e.createElement("span", null,
|
|
11753
|
+
)) : /* @__PURE__ */ e.createElement("span", null, C.title))))), /* @__PURE__ */ e.createElement("tbody", null, l.map((C, f) => h(C, f)))));
|
|
11736
11754
|
}, oa = ({
|
|
11737
11755
|
appendIds: s = !1,
|
|
11738
11756
|
ariaLabel: r = "Table of contents",
|
|
@@ -11779,10 +11797,10 @@ const ta = ({
|
|
|
11779
11797
|
const z = `item-${lt()}`;
|
|
11780
11798
|
M.id || (M.id = z);
|
|
11781
11799
|
});
|
|
11782
|
-
const k =
|
|
11800
|
+
const k = C(b);
|
|
11783
11801
|
L(k);
|
|
11784
11802
|
}, []), { nestedHeadings: w };
|
|
11785
|
-
},
|
|
11803
|
+
}, C = (w) => {
|
|
11786
11804
|
const L = [];
|
|
11787
11805
|
return w.forEach((b) => {
|
|
11788
11806
|
const { id: k, innerText: M } = b;
|
|
@@ -11791,7 +11809,7 @@ const ta = ({
|
|
|
11791
11809
|
title: M
|
|
11792
11810
|
});
|
|
11793
11811
|
}), L;
|
|
11794
|
-
}, { nestedHeadings: f } = v(), [
|
|
11812
|
+
}, { nestedHeadings: f } = v(), [g, y] = B();
|
|
11795
11813
|
((w) => {
|
|
11796
11814
|
const L = ue({});
|
|
11797
11815
|
me(() => {
|
|
@@ -11818,7 +11836,7 @@ const ta = ({
|
|
|
11818
11836
|
);
|
|
11819
11837
|
return M.forEach((z) => k.observe(z)), () => k.disconnect();
|
|
11820
11838
|
}, [w]);
|
|
11821
|
-
})(
|
|
11839
|
+
})(y);
|
|
11822
11840
|
const d = (w) => {
|
|
11823
11841
|
typeof window < "u" && window.location.hash !== `#${w}` && window.history.pushState({}, "", `#${w}`);
|
|
11824
11842
|
}, E = (w) => {
|
|
@@ -11826,15 +11844,15 @@ const ta = ({
|
|
|
11826
11844
|
behavior: "smooth",
|
|
11827
11845
|
block: "start"
|
|
11828
11846
|
});
|
|
11829
|
-
},
|
|
11847
|
+
}, $ = (w, L) => {
|
|
11830
11848
|
w.preventDefault(), s && d(L), E(L);
|
|
11831
11849
|
}, N = ({ headings: w }) => /* @__PURE__ */ e.createElement("ul", { className: `${o}__list ${o}__list--top-level` }, w.map((L) => /* @__PURE__ */ e.createElement("li", { key: L.id, className: `${o}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
11832
11850
|
"a",
|
|
11833
11851
|
{
|
|
11834
|
-
className: L.id ===
|
|
11852
|
+
className: L.id === g ? `${o}__link ${o}__link--active` : `${o}__link`,
|
|
11835
11853
|
href: `#${L.id}`,
|
|
11836
11854
|
onClick: (b) => {
|
|
11837
|
-
|
|
11855
|
+
$(b, L.id);
|
|
11838
11856
|
}
|
|
11839
11857
|
},
|
|
11840
11858
|
L.title
|
|
@@ -11846,10 +11864,10 @@ const ta = ({
|
|
|
11846
11864
|
L.items.map((b) => /* @__PURE__ */ e.createElement("li", { key: b.id, className: `${o}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
11847
11865
|
"a",
|
|
11848
11866
|
{
|
|
11849
|
-
className: b.id ===
|
|
11867
|
+
className: b.id === g ? `${o}__link ${o}__link--active` : `${o}__link`,
|
|
11850
11868
|
href: `#${b.id}`,
|
|
11851
11869
|
onClick: (k) => {
|
|
11852
|
-
|
|
11870
|
+
$(k, b.id);
|
|
11853
11871
|
}
|
|
11854
11872
|
},
|
|
11855
11873
|
b.title
|
|
@@ -11871,7 +11889,7 @@ const ta = ({
|
|
|
11871
11889
|
},
|
|
11872
11890
|
c
|
|
11873
11891
|
),
|
|
11874
|
-
/* @__PURE__ */ e.createElement(N, { activeID:
|
|
11892
|
+
/* @__PURE__ */ e.createElement(N, { activeID: g, headings: f })
|
|
11875
11893
|
);
|
|
11876
11894
|
}, ia = ({
|
|
11877
11895
|
ariaLabel: s,
|
|
@@ -11887,33 +11905,33 @@ const ta = ({
|
|
|
11887
11905
|
me(() => {
|
|
11888
11906
|
c !== void 0 && o(c);
|
|
11889
11907
|
}, [c]);
|
|
11890
|
-
const u = (
|
|
11891
|
-
const f =
|
|
11908
|
+
const u = (C) => {
|
|
11909
|
+
const f = C.currentTarget.getAttribute("data-tabnumber");
|
|
11892
11910
|
if (f) {
|
|
11893
|
-
const
|
|
11894
|
-
o(
|
|
11911
|
+
const g = parseInt(f, 10);
|
|
11912
|
+
o(g);
|
|
11895
11913
|
}
|
|
11896
11914
|
}, _ = ue([]);
|
|
11897
11915
|
me(() => {
|
|
11898
11916
|
a(m);
|
|
11899
11917
|
}, [m, a]), me(() => {
|
|
11900
|
-
const
|
|
11901
|
-
if (m >
|
|
11918
|
+
const C = _.current.length - 1;
|
|
11919
|
+
if (m > C) {
|
|
11902
11920
|
o(0);
|
|
11903
11921
|
return;
|
|
11904
11922
|
} else if (m < 0) {
|
|
11905
|
-
o(
|
|
11923
|
+
o(C);
|
|
11906
11924
|
return;
|
|
11907
11925
|
}
|
|
11908
11926
|
}, [m]);
|
|
11909
|
-
const h = (
|
|
11910
|
-
const
|
|
11911
|
-
let
|
|
11912
|
-
|
|
11913
|
-
}, v = (
|
|
11914
|
-
const f = _.current.length,
|
|
11927
|
+
const h = (C, f) => {
|
|
11928
|
+
const g = m;
|
|
11929
|
+
let y = _.current[f === "next" ? g + 1 < _.current.length ? g + 1 : 0 : g - 1 >= 0 ? g - 1 : _.current.length - 1];
|
|
11930
|
+
y || (y = f == "next" ? _.current[C + 1] == null ? _.current[0] : _.current[C + 1] : _.current[C - 1]), y.focus();
|
|
11931
|
+
}, v = (C) => {
|
|
11932
|
+
const f = _.current.length, g = () => {
|
|
11915
11933
|
h((m + 1) % f, "next"), o(m + 1);
|
|
11916
|
-
},
|
|
11934
|
+
}, y = () => {
|
|
11917
11935
|
h((m - 1 + f) % f, "prev"), o(m - 1);
|
|
11918
11936
|
}, p = () => {
|
|
11919
11937
|
h(0), o(0);
|
|
@@ -11922,14 +11940,14 @@ const ta = ({
|
|
|
11922
11940
|
}, E = () => {
|
|
11923
11941
|
_.current[m].focus();
|
|
11924
11942
|
}, N = {
|
|
11925
|
-
ArrowRight:
|
|
11926
|
-
ArrowLeft:
|
|
11943
|
+
ArrowRight: g,
|
|
11944
|
+
ArrowLeft: y,
|
|
11927
11945
|
Home: p,
|
|
11928
11946
|
End: d,
|
|
11929
11947
|
Space: E,
|
|
11930
11948
|
Enter: E
|
|
11931
|
-
}[
|
|
11932
|
-
N && (
|
|
11949
|
+
}[C.code];
|
|
11950
|
+
N && (C.preventDefault(), N());
|
|
11933
11951
|
};
|
|
11934
11952
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: H([n, r]), ...i }, /* @__PURE__ */ e.createElement(
|
|
11935
11953
|
"div",
|
|
@@ -11939,20 +11957,20 @@ const ta = ({
|
|
|
11939
11957
|
className: `${n}__tablist`,
|
|
11940
11958
|
role: "tablist"
|
|
11941
11959
|
},
|
|
11942
|
-
l.map(({ disabled:
|
|
11960
|
+
l.map(({ disabled: C, icon: f, tabId: g, tabLabel: y, tally: p }, d) => /* @__PURE__ */ e.createElement(
|
|
11943
11961
|
"button",
|
|
11944
11962
|
{
|
|
11945
11963
|
key: d,
|
|
11946
11964
|
ref: (E) => {
|
|
11947
|
-
|
|
11965
|
+
C || (_.current[d] = E);
|
|
11948
11966
|
},
|
|
11949
11967
|
"aria-controls": `${n}__tab--${d}`,
|
|
11950
|
-
"aria-disabled": !!
|
|
11968
|
+
"aria-disabled": !!C,
|
|
11951
11969
|
"aria-selected": d == m,
|
|
11952
11970
|
className: `${n}__tab`,
|
|
11953
11971
|
"data-tabnumber": d,
|
|
11954
|
-
id:
|
|
11955
|
-
onClick:
|
|
11972
|
+
id: g,
|
|
11973
|
+
onClick: C ? null : u,
|
|
11956
11974
|
onKeyDown: (E) => {
|
|
11957
11975
|
E.preventDefault(), v(E);
|
|
11958
11976
|
},
|
|
@@ -11960,9 +11978,9 @@ const ta = ({
|
|
|
11960
11978
|
tabIndex: m === d ? 0 : -1,
|
|
11961
11979
|
type: "button"
|
|
11962
11980
|
},
|
|
11963
|
-
/* @__PURE__ */ e.createElement("div", { key: f, className: `${n}__tab-label` }, f ? /* @__PURE__ */ e.createElement(D, { iconName: f, iconSize: "md" }) : null, " ",
|
|
11981
|
+
/* @__PURE__ */ e.createElement("div", { key: f, className: `${n}__tab-label` }, f ? /* @__PURE__ */ e.createElement(D, { iconName: f, iconSize: "md" }) : null, " ", y, l[d].tally ? /* @__PURE__ */ e.createElement(kt, { label: p.label, type: p.type }) : null)
|
|
11964
11982
|
))
|
|
11965
|
-
), l.map(({ disabled:
|
|
11983
|
+
), l.map(({ disabled: C, icon: f, panelContent: g, tabLabel: y, tally: p }, d) => /* @__PURE__ */ e.createElement(
|
|
11966
11984
|
"div",
|
|
11967
11985
|
{
|
|
11968
11986
|
key: d,
|
|
@@ -11976,17 +11994,17 @@ const ta = ({
|
|
|
11976
11994
|
{
|
|
11977
11995
|
key: d,
|
|
11978
11996
|
"aria-controls": `tabpanel_${d}`,
|
|
11979
|
-
"aria-disabled": !!
|
|
11997
|
+
"aria-disabled": !!C,
|
|
11980
11998
|
"aria-selected": d == m,
|
|
11981
11999
|
className: `${n}__trigger`,
|
|
11982
12000
|
"data-tabnumber": d,
|
|
11983
|
-
onClick:
|
|
12001
|
+
onClick: C ? null : u,
|
|
11984
12002
|
onKeyDown: v,
|
|
11985
12003
|
role: "tab",
|
|
11986
12004
|
tabIndex: m === d ? 1 : -1,
|
|
11987
12005
|
type: "button"
|
|
11988
12006
|
},
|
|
11989
|
-
/* @__PURE__ */ e.createElement("div", { key: f, className: `${n}__tab-label` }, f ? /* @__PURE__ */ e.createElement(D, { iconName: f, iconSize: "md" }) : null, " ",
|
|
12007
|
+
/* @__PURE__ */ e.createElement("div", { key: f, className: `${n}__tab-label` }, f ? /* @__PURE__ */ e.createElement(D, { iconName: f, iconSize: "md" }) : null, " ", y, l[d].tally ? /* @__PURE__ */ e.createElement(kt, { label: p.label, type: p.type }) : null),
|
|
11990
12008
|
d == m ? /* @__PURE__ */ e.createElement(
|
|
11991
12009
|
D,
|
|
11992
12010
|
{
|
|
@@ -12009,7 +12027,7 @@ const ta = ({
|
|
|
12009
12027
|
className: `${n}__panel-content`,
|
|
12010
12028
|
hidden: d != m
|
|
12011
12029
|
},
|
|
12012
|
-
|
|
12030
|
+
g
|
|
12013
12031
|
)
|
|
12014
12032
|
))));
|
|
12015
12033
|
}, H2 = [
|
|
@@ -12047,21 +12065,21 @@ const ta = ({
|
|
|
12047
12065
|
...n
|
|
12048
12066
|
}) => {
|
|
12049
12067
|
const [m, o] = B(!0), u = "pds-tag", _ = l ? `${u}--${l}` : `${u}--${Ss(i)}`, h = m ? null : "pds-tag--hide", v = () => {
|
|
12050
|
-
o((
|
|
12068
|
+
o((y) => !y);
|
|
12051
12069
|
};
|
|
12052
|
-
let
|
|
12070
|
+
let C, f, g;
|
|
12053
12071
|
if (t && !r && Ee(t)) {
|
|
12054
|
-
|
|
12055
|
-
const
|
|
12056
|
-
f =
|
|
12072
|
+
C = t.type;
|
|
12073
|
+
const y = t.props;
|
|
12074
|
+
f = y.href ? "href" : "to", g = f === "href" ? y.href : y.to;
|
|
12057
12075
|
} else
|
|
12058
|
-
|
|
12076
|
+
C = "span", f = null, g = null;
|
|
12059
12077
|
return /* @__PURE__ */ e.createElement(
|
|
12060
|
-
|
|
12078
|
+
C,
|
|
12061
12079
|
{
|
|
12062
12080
|
className: H([u, _, h, s]),
|
|
12063
|
-
href: f === "href" ?
|
|
12064
|
-
to: f === "to" ?
|
|
12081
|
+
href: f === "href" ? g : null,
|
|
12082
|
+
to: f === "to" ? g : null,
|
|
12065
12083
|
...n
|
|
12066
12084
|
},
|
|
12067
12085
|
/* @__PURE__ */ e.createElement("span", { className: `${u}__label`, title: i }, Vs(i, 20)),
|
|
@@ -12270,25 +12288,25 @@ const ta = ({
|
|
|
12270
12288
|
sidebarProps: h,
|
|
12271
12289
|
...v
|
|
12272
12290
|
}) => {
|
|
12273
|
-
let
|
|
12291
|
+
let C = !1;
|
|
12274
12292
|
const f = ye(Me);
|
|
12275
|
-
f && (
|
|
12276
|
-
const [
|
|
12293
|
+
f && (C = f.isMobile);
|
|
12294
|
+
const [g, y] = B(
|
|
12277
12295
|
c || !1
|
|
12278
12296
|
);
|
|
12279
12297
|
me(() => {
|
|
12280
|
-
|
|
12298
|
+
y(c || !1);
|
|
12281
12299
|
}, [c]);
|
|
12282
|
-
const p = "pds-app-layout", d = `pds-container pds-container--${t}`, E =
|
|
12283
|
-
width:
|
|
12284
|
-
minWidth:
|
|
12300
|
+
const p = "pds-app-layout", d = `pds-container pds-container--${t}`, E = C ? `${p}--isMobile` : null, N = {
|
|
12301
|
+
width: g ? `${o}rem` : `${u}`,
|
|
12302
|
+
minWidth: g ? `${o}rem` : `${_}rem`,
|
|
12285
12303
|
transition: "all 200ms ease-in-out"
|
|
12286
12304
|
}, w = () => {
|
|
12287
12305
|
if (m) {
|
|
12288
12306
|
m();
|
|
12289
12307
|
return;
|
|
12290
12308
|
}
|
|
12291
|
-
|
|
12309
|
+
y(!g);
|
|
12292
12310
|
}, L = Pe(s), b = L.__unslotted, k = L.sidebar, M = Yt(
|
|
12293
12311
|
i,
|
|
12294
12312
|
{
|
|
@@ -12322,11 +12340,11 @@ const ta = ({
|
|
|
12322
12340
|
a && /* @__PURE__ */ e.createElement(
|
|
12323
12341
|
"button",
|
|
12324
12342
|
{
|
|
12325
|
-
"aria-expanded": !
|
|
12326
|
-
"aria-label":
|
|
12343
|
+
"aria-expanded": !g,
|
|
12344
|
+
"aria-label": g ? l.expandSidebar : l.collapseSidebar,
|
|
12327
12345
|
className: `${p}__sidebar-toggle-button`,
|
|
12328
12346
|
onClick: w,
|
|
12329
|
-
title:
|
|
12347
|
+
title: g ? l.expandSidebar : l.collapseSidebar,
|
|
12330
12348
|
type: "button"
|
|
12331
12349
|
},
|
|
12332
12350
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(D, { iconName: "angleLeft", iconSize: "sm", verticalAlign: "-1px" }))
|
|
@@ -12344,7 +12362,7 @@ const ta = ({
|
|
|
12344
12362
|
]),
|
|
12345
12363
|
...v
|
|
12346
12364
|
},
|
|
12347
|
-
|
|
12365
|
+
C ? z : T
|
|
12348
12366
|
);
|
|
12349
12367
|
}, ha = ({
|
|
12350
12368
|
children: s,
|
|
@@ -12381,7 +12399,7 @@ const ta = ({
|
|
|
12381
12399
|
const n = "pds-docs-layout", m = l ? `${n}--isMobile` : null, o = {
|
|
12382
12400
|
width: a,
|
|
12383
12401
|
minWidth: `${t}rem`
|
|
12384
|
-
}, u = Pe(s), _ = u.__unslotted || u.content, h = u.sidebar, v = /* @__PURE__ */ e.createElement(e.Fragment, null, h && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar` }, h), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, _)),
|
|
12402
|
+
}, u = Pe(s), _ = u.__unslotted || u.content, h = u.sidebar, v = /* @__PURE__ */ e.createElement(e.Fragment, null, h && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar` }, h), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, _)), C = /* @__PURE__ */ e.createElement(e.Fragment, null, h && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar`, style: o }, /* @__PURE__ */ e.createElement("div", { className: `${n}__sidebar-inner` }, h)), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, _));
|
|
12385
12403
|
return /* @__PURE__ */ e.createElement(
|
|
12386
12404
|
"div",
|
|
12387
12405
|
{
|
|
@@ -12393,7 +12411,7 @@ const ta = ({
|
|
|
12393
12411
|
]),
|
|
12394
12412
|
...c
|
|
12395
12413
|
},
|
|
12396
|
-
l ? v :
|
|
12414
|
+
l ? v : C
|
|
12397
12415
|
);
|
|
12398
12416
|
}, Ca = ({
|
|
12399
12417
|
alignContent: s = "flex-start",
|
|
@@ -12410,30 +12428,30 @@ const ta = ({
|
|
|
12410
12428
|
mobileFlexWrap: _,
|
|
12411
12429
|
mobileGap: h,
|
|
12412
12430
|
mobileJustifyContent: v,
|
|
12413
|
-
...
|
|
12431
|
+
...C
|
|
12414
12432
|
}) => {
|
|
12415
|
-
let
|
|
12416
|
-
const
|
|
12417
|
-
|
|
12418
|
-
const p = "pds-flex", d = `${p}-container`, E =
|
|
12419
|
-
let
|
|
12420
|
-
|
|
12433
|
+
let g = F2() <= 640;
|
|
12434
|
+
const y = ye(Me);
|
|
12435
|
+
y && (g = y.isMobile);
|
|
12436
|
+
const p = "pds-flex", d = `${p}-container`, E = g ? `${d}--mobile` : null;
|
|
12437
|
+
let $ = null;
|
|
12438
|
+
g ? $ = `${p}-direction--${u}` : c !== "row" && ($ = `${p}-direction--${c}`);
|
|
12421
12439
|
let N = null;
|
|
12422
|
-
|
|
12440
|
+
g ? _ ? _ !== "nowrap" && (N = `${p}-wrap--${_}`) : l !== "nowrap" && (N = `${p}-wrap--${l}`) : l !== "nowrap" && (N = `${p}-wrap--${l}`);
|
|
12423
12441
|
let w = null;
|
|
12424
|
-
|
|
12442
|
+
g ? v ? v !== "flex-start" && (w = `${p}-justify--${v}`) : n !== "flex-start" && (w = `${p}-justify--${n}`) : n !== "flex-start" && (w = `${p}-justify--${n}`);
|
|
12425
12443
|
let L = null;
|
|
12426
|
-
|
|
12444
|
+
g ? o ? o !== "stretch" && (L = `${p}-align-items--${o}`) : r !== "stretch" && (L = `${p}-align-items--${r}`) : r !== "stretch" && (L = `${p}-align-items--${r}`);
|
|
12427
12445
|
let b = null;
|
|
12428
|
-
|
|
12446
|
+
g ? m ? m !== "flex-start" && (b = `${p}-align-content--${m}`) : s !== "flex-start" && (b = `${p}-align-content--${s}`) : s !== "flex-start" && (b = `${p}-align-content--${s}`);
|
|
12429
12447
|
let k = null;
|
|
12430
|
-
return
|
|
12448
|
+
return g ? h ? h !== "none" && (k = `${p}-gap--${h}`) : i !== "none" && (k = `${p}-gap--${i}`) : i !== "none" && (k = `${p}-gap--${i}`), /* @__PURE__ */ e.createElement(
|
|
12431
12449
|
"div",
|
|
12432
12450
|
{
|
|
12433
12451
|
className: H([
|
|
12434
12452
|
d,
|
|
12435
12453
|
E,
|
|
12436
|
-
|
|
12454
|
+
$,
|
|
12437
12455
|
N,
|
|
12438
12456
|
w,
|
|
12439
12457
|
L,
|
|
@@ -12441,7 +12459,7 @@ const ta = ({
|
|
|
12441
12459
|
k,
|
|
12442
12460
|
a ?? ""
|
|
12443
12461
|
]),
|
|
12444
|
-
...
|
|
12462
|
+
...C
|
|
12445
12463
|
},
|
|
12446
12464
|
t
|
|
12447
12465
|
);
|
|
@@ -12462,8 +12480,8 @@ const ta = ({
|
|
|
12462
12480
|
const _ = ye(Me);
|
|
12463
12481
|
_ && (u = _.isMobile);
|
|
12464
12482
|
const h = Pe(s);
|
|
12465
|
-
let v = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10",
|
|
12466
|
-
l === "narrow" && (v = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10",
|
|
12483
|
+
let v = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", C = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
12484
|
+
l === "narrow" && (v = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", C = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), l === "wide" && (v = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", C = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
12467
12485
|
const f = /* @__PURE__ */ e.createElement(
|
|
12468
12486
|
"div",
|
|
12469
12487
|
{
|
|
@@ -12471,11 +12489,11 @@ const ta = ({
|
|
|
12471
12489
|
className: `${n}__main ${u ? "pds-grid-item" : v}`
|
|
12472
12490
|
},
|
|
12473
12491
|
h.__unslotted || h.content
|
|
12474
|
-
),
|
|
12492
|
+
), g = /* @__PURE__ */ e.createElement(
|
|
12475
12493
|
"div",
|
|
12476
12494
|
{
|
|
12477
12495
|
key: "sidebar",
|
|
12478
|
-
className: `${n}__side ${u ? "pds-grid-item" :
|
|
12496
|
+
className: `${n}__side ${u ? "pds-grid-item" : C}`
|
|
12479
12497
|
},
|
|
12480
12498
|
h.sidebar
|
|
12481
12499
|
);
|
|
@@ -12490,7 +12508,7 @@ const ta = ({
|
|
|
12490
12508
|
]),
|
|
12491
12509
|
...i
|
|
12492
12510
|
},
|
|
12493
|
-
u ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
12511
|
+
u ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, g, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, f, g) : a === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, g, f) : /* @__PURE__ */ e.createElement(e.Fragment, null, f, g)
|
|
12494
12512
|
);
|
|
12495
12513
|
}, va = ({
|
|
12496
12514
|
children: s,
|
|
@@ -12552,18 +12570,18 @@ const ta = ({
|
|
|
12552
12570
|
...l
|
|
12553
12571
|
}) => {
|
|
12554
12572
|
const i = "pds-two-item-layout", n = t === "standard" ? "pds-grid" : `pds-grid pds-grid--${t}`, m = `${i}--${c}`, o = ["pds-grid-item--md-6"], u = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], _ = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], h = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
12555
|
-
let v,
|
|
12573
|
+
let v, C;
|
|
12556
12574
|
switch (a) {
|
|
12557
12575
|
case "equal":
|
|
12558
|
-
v = h.concat(o),
|
|
12576
|
+
v = h.concat(o), C = h.concat(o);
|
|
12559
12577
|
break;
|
|
12560
12578
|
case "one-third-start":
|
|
12561
|
-
v = h.concat(u),
|
|
12579
|
+
v = h.concat(u), C = h.concat(_);
|
|
12562
12580
|
break;
|
|
12563
12581
|
case "one-third-end":
|
|
12564
|
-
v = h.concat(_),
|
|
12582
|
+
v = h.concat(_), C = h.concat(u);
|
|
12565
12583
|
}
|
|
12566
|
-
const f = Pe(s),
|
|
12584
|
+
const f = Pe(s), g = f["first-item"], y = f["second-item"];
|
|
12567
12585
|
return /* @__PURE__ */ e.createElement(
|
|
12568
12586
|
"div",
|
|
12569
12587
|
{
|
|
@@ -12575,8 +12593,8 @@ const ta = ({
|
|
|
12575
12593
|
]),
|
|
12576
12594
|
...l
|
|
12577
12595
|
},
|
|
12578
|
-
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() },
|
|
12579
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
12596
|
+
/* @__PURE__ */ e.createElement("div", { className: v.join(" ").trim() }, g),
|
|
12597
|
+
/* @__PURE__ */ e.createElement("div", { className: C.join(" ").trim() }, y)
|
|
12580
12598
|
);
|
|
12581
12599
|
}, ya = (s, r) => {
|
|
12582
12600
|
const [t, a] = B(!1), c = ct(
|