@pantheon-systems/pds-toolkit-react 1.0.0-alpha.14 → 1.0.0-alpha.15
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/panels/PanelList/PanelList.d.ts +9 -1
- package/_dist/components/panels/PanelList/PanelRow.d.ts +6 -3
- package/_dist/css/component-css/pds-index.css +2 -2
- package/_dist/css/component-css/pds-panel-list.css +1 -1
- package/_dist/css/component-css/pds-section-message.css +1 -1
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
- package/_dist/css/pds-components.css +2 -2
- package/_dist/index.css +1 -1
- package/_dist/index.js +853 -844
- package/_dist/index.js.map +1 -1
- package/package.json +4 -4
package/_dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e, { Children as G2, isValidElement as he, useState as
|
|
1
|
+
import e, { Children as G2, isValidElement as he, useState as W, cloneElement as De, createElement as b2, forwardRef as Ze, useEffect as ae, useRef as le, createContext as $2, useContext as Ce, useLayoutEffect as q2, useCallback as Wt, useMemo as N2, createRef as U2, Fragment as j2 } from "react";
|
|
2
2
|
import w2 from "hash-sum";
|
|
3
3
|
import { useFloating as ke, autoUpdate as xe, offset as st, flip as nt, shift as ot, useHover as Ct, useFocus as Ut, useDismiss as Se, useRole as Ve, useInteractions as Ie, FloatingPortal as y2, useId as K2, size as X2, useClick as je, useListNavigation as it, useTypeahead as jt, useTransitionStyles as Ke, FloatingOverlay as Y2, FloatingFocusManager as L2, safePolygon as Kt, arrow as Q2, FloatingArrow as J2 } from "@floating-ui/react";
|
|
4
4
|
import { useHotkeys as e1 } from "react-hotkeys-hook";
|
|
@@ -789,7 +789,7 @@ import './index.css';const at = () => Math.random().toString(32).substring(2, 13
|
|
|
789
789
|
className: l,
|
|
790
790
|
...n
|
|
791
791
|
}) => {
|
|
792
|
-
const d = "pds-avatar", i = `${d}--${o}`, m = a ? `${d}--image` : null, [v,
|
|
792
|
+
const d = "pds-avatar", i = `${d}--${o}`, m = a ? `${d}--image` : null, [v, f] = W(void 0), g = {
|
|
793
793
|
backgroundImage: r ? `var(--pds-color-gradient-avatar-${o1(r)})` : null,
|
|
794
794
|
borderRadius: "100%",
|
|
795
795
|
height: "100%",
|
|
@@ -803,8 +803,8 @@ import './index.css';const at = () => Math.random().toString(32).substring(2, 13
|
|
|
803
803
|
src: `${a}`,
|
|
804
804
|
className: `${d}__image`,
|
|
805
805
|
alt: "",
|
|
806
|
-
onLoad: () =>
|
|
807
|
-
onError: () =>
|
|
806
|
+
onLoad: () => f(!1),
|
|
807
|
+
onError: () => f(!0)
|
|
808
808
|
}
|
|
809
809
|
) : /* @__PURE__ */ e.createElement("span", { style: g }, s && /* @__PURE__ */ e.createElement(R, { iconName: "user", className: `${d}__user-icon` })), _ = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` }, p), C = c && he(c) ? De(
|
|
810
810
|
c,
|
|
@@ -899,23 +899,23 @@ const St = 500, i1 = 700, ye = ({
|
|
|
899
899
|
className: i,
|
|
900
900
|
...m
|
|
901
901
|
}) => {
|
|
902
|
-
const [v,
|
|
902
|
+
const [v, f] = W(!1), N = typeof s, g = "pds-tooltip", p = H([
|
|
903
903
|
`${g}__trigger-custom`,
|
|
904
904
|
N === "string" ? `${g}__trigger-text` : null
|
|
905
905
|
]), _ = H([
|
|
906
906
|
`${g}__trigger`,
|
|
907
907
|
`${g}__trigger--${l}`
|
|
908
|
-
]), { refs: C, floatingStyles: u, context:
|
|
908
|
+
]), { refs: C, floatingStyles: u, context: h } = ke({
|
|
909
909
|
placement: c,
|
|
910
910
|
open: v,
|
|
911
|
-
onOpenChange:
|
|
911
|
+
onOpenChange: f,
|
|
912
912
|
middleware: [st(a), nt(), ot()],
|
|
913
913
|
whileElementsMounted: xe
|
|
914
|
-
}), E = Ct(
|
|
914
|
+
}), E = Ct(h, {
|
|
915
915
|
restMs: 300,
|
|
916
916
|
delay: { open: 500, close: 0 },
|
|
917
917
|
move: !1
|
|
918
|
-
}), b = Ut(
|
|
918
|
+
}), b = Ut(h), w = Se(h), y = Ve(h, { role: "tooltip" }), { getReferenceProps: L, getFloatingProps: $ } = Ie([
|
|
919
919
|
E,
|
|
920
920
|
b,
|
|
921
921
|
w,
|
|
@@ -967,25 +967,25 @@ const St = 500, i1 = 700, ye = ({
|
|
|
967
967
|
className: n,
|
|
968
968
|
...d
|
|
969
969
|
}) => {
|
|
970
|
-
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, v = t ? "pds-pulse" : null,
|
|
970
|
+
const i = "pds-branch-diff", m = t ? `${i}--loading` : null, v = t ? "pds-pulse" : null, f = l !== null && l > 0 ? `${l}rem` : "100%";
|
|
971
971
|
let N = Math.max(0, a), g = Math.max(0, o);
|
|
972
972
|
t && (N = 1, g = 1);
|
|
973
973
|
const p = Math.max(N, g);
|
|
974
974
|
let _ = p > 0 ? g / p * 100 : 0, C = p > 0 ? N / p * 100 : 0;
|
|
975
975
|
const u = 10;
|
|
976
976
|
_ < u ? (_ = u, C = 100 - u) : C < u && (C = u, _ = 100 - u);
|
|
977
|
-
const
|
|
977
|
+
const h = t ? s : `${g} ${r} & ${N} ${c}`;
|
|
978
978
|
return /* @__PURE__ */ e.createElement(
|
|
979
979
|
"div",
|
|
980
980
|
{
|
|
981
981
|
className: H([i, m, n ?? ""]),
|
|
982
|
-
style: { width:
|
|
982
|
+
style: { width: f },
|
|
983
983
|
...d
|
|
984
984
|
},
|
|
985
985
|
/* @__PURE__ */ e.createElement(
|
|
986
986
|
ye,
|
|
987
987
|
{
|
|
988
|
-
content:
|
|
988
|
+
content: h,
|
|
989
989
|
preferredPlacement: "top",
|
|
990
990
|
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, /* @__PURE__ */ e.createElement(
|
|
991
991
|
"div",
|
|
@@ -1200,11 +1200,11 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1200
1200
|
onClick: i,
|
|
1201
1201
|
size: m = "md",
|
|
1202
1202
|
tooltipText: v,
|
|
1203
|
-
variant:
|
|
1203
|
+
variant: f = "primary",
|
|
1204
1204
|
className: N = "",
|
|
1205
1205
|
...g
|
|
1206
1206
|
}, p) => {
|
|
1207
|
-
const _ = "pds-button", C = m !== "md" ? `${_}--${m}` : null, u =
|
|
1207
|
+
const _ = "pds-button", C = m !== "md" ? `${_}--${m}` : null, u = f !== "primary" ? `${_}--${f}` : null, h = r ? `${_}--full-width` : null;
|
|
1208
1208
|
let E;
|
|
1209
1209
|
switch (m) {
|
|
1210
1210
|
case "sm":
|
|
@@ -1235,7 +1235,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1235
1235
|
_,
|
|
1236
1236
|
C,
|
|
1237
1237
|
u,
|
|
1238
|
-
|
|
1238
|
+
h,
|
|
1239
1239
|
N
|
|
1240
1240
|
]),
|
|
1241
1241
|
disabled: a || l,
|
|
@@ -1260,10 +1260,10 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1260
1260
|
className: n,
|
|
1261
1261
|
...d
|
|
1262
1262
|
}) => {
|
|
1263
|
-
const i = "pds-button-link", m = "pds-button", v = o !== "md" ? `${m}--${o}` : null,
|
|
1263
|
+
const i = "pds-button-link", m = "pds-button", v = o !== "md" ? `${m}--${o}` : null, f = l !== "primary" ? `${m}--${l}` : null, N = H([
|
|
1264
1264
|
m,
|
|
1265
1265
|
v,
|
|
1266
|
-
|
|
1266
|
+
f
|
|
1267
1267
|
]), g = he(c) ? c.props.children : null, p = /* @__PURE__ */ e.createElement(
|
|
1268
1268
|
R,
|
|
1269
1269
|
{
|
|
@@ -1294,7 +1294,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1294
1294
|
}
|
|
1295
1295
|
) : /* @__PURE__ */ e.createElement("span", { className: H([i, n ?? ""]), ...d }, C);
|
|
1296
1296
|
}, d1 = (t, s) => {
|
|
1297
|
-
const [a, c] =
|
|
1297
|
+
const [a, c] = W(!1), o = s?.duration;
|
|
1298
1298
|
return ae(() => {
|
|
1299
1299
|
let l;
|
|
1300
1300
|
return a && o && (l = setTimeout(() => {
|
|
@@ -1323,10 +1323,10 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1323
1323
|
className: i,
|
|
1324
1324
|
...m
|
|
1325
1325
|
}, v) => {
|
|
1326
|
-
const
|
|
1327
|
-
fadeOut: `${
|
|
1328
|
-
hide: `${
|
|
1329
|
-
scaleIn: `${
|
|
1326
|
+
const f = "pds-icon-button", N = n !== "md" ? `${f}--${n}` : null, g = d !== "standard" ? `${f}--${d}` : null, p = {
|
|
1327
|
+
fadeOut: `${f}--fadeOut`,
|
|
1328
|
+
hide: `${f}--hide`,
|
|
1329
|
+
scaleIn: `${f}--scaleIn`
|
|
1330
1330
|
};
|
|
1331
1331
|
let _, C;
|
|
1332
1332
|
switch (n) {
|
|
@@ -1339,42 +1339,42 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1339
1339
|
case "lg":
|
|
1340
1340
|
C = "xl", _ = 12;
|
|
1341
1341
|
}
|
|
1342
|
-
const u = r !== null,
|
|
1343
|
-
|
|
1344
|
-
|
|
1342
|
+
const u = r !== null, h = le(null), E = le(null), b = () => {
|
|
1343
|
+
h.current.classList.add(p.fadeOut), h.current.classList.add(p.hide), E.current.classList.remove(p.hide), E.current.classList.add(p.scaleIn), setTimeout(() => {
|
|
1344
|
+
h.current.classList.remove(
|
|
1345
1345
|
p.fadeOut,
|
|
1346
1346
|
p.hide
|
|
1347
|
-
),
|
|
1347
|
+
), h.current.classList.add(p.scaleIn), E.current.classList.remove(p.scaleIn), E.current.classList.add(p.hide);
|
|
1348
1348
|
}, 2e3);
|
|
1349
1349
|
}, w = (L) => {
|
|
1350
1350
|
u && b(), l && l(L);
|
|
1351
|
-
}, y = u ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1351
|
+
}, y = u ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref: h, className: `${f}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
1352
1352
|
R,
|
|
1353
1353
|
{
|
|
1354
1354
|
iconName: o,
|
|
1355
1355
|
iconSize: C,
|
|
1356
|
-
className: `${
|
|
1356
|
+
className: `${f}__icon`
|
|
1357
1357
|
}
|
|
1358
1358
|
)), /* @__PURE__ */ e.createElement(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
{
|
|
1361
1361
|
ref: E,
|
|
1362
|
-
className: `${
|
|
1362
|
+
className: `${f}__icon-wrapper ${p.hide}`
|
|
1363
1363
|
},
|
|
1364
1364
|
/* @__PURE__ */ e.createElement(
|
|
1365
1365
|
R,
|
|
1366
1366
|
{
|
|
1367
1367
|
iconName: r,
|
|
1368
1368
|
iconSize: C,
|
|
1369
|
-
className: `${
|
|
1369
|
+
className: `${f}__icon`
|
|
1370
1370
|
}
|
|
1371
1371
|
)
|
|
1372
|
-
)) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1372
|
+
)) : /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
1373
1373
|
R,
|
|
1374
1374
|
{
|
|
1375
1375
|
iconName: o,
|
|
1376
1376
|
iconSize: C,
|
|
1377
|
-
className: `${
|
|
1377
|
+
className: `${f}__icon`
|
|
1378
1378
|
}
|
|
1379
1379
|
));
|
|
1380
1380
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1382,7 +1382,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1382
1382
|
{
|
|
1383
1383
|
"aria-label": t,
|
|
1384
1384
|
className: H([
|
|
1385
|
-
|
|
1385
|
+
f,
|
|
1386
1386
|
N,
|
|
1387
1387
|
g,
|
|
1388
1388
|
i
|
|
@@ -1398,7 +1398,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1398
1398
|
ye,
|
|
1399
1399
|
{
|
|
1400
1400
|
content: t,
|
|
1401
|
-
className: `${
|
|
1401
|
+
className: `${f}__tooltip`,
|
|
1402
1402
|
offsetValue: _,
|
|
1403
1403
|
customTrigger: y
|
|
1404
1404
|
}
|
|
@@ -1446,7 +1446,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1446
1446
|
},
|
|
1447
1447
|
/* @__PURE__ */ e.createElement(R, { iconName: "xmark", iconSize: s })
|
|
1448
1448
|
), V2 = () => {
|
|
1449
|
-
const t = typeof window < "u", [s, a] =
|
|
1449
|
+
const t = typeof window < "u", [s, a] = W(
|
|
1450
1450
|
t && window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
1451
1451
|
);
|
|
1452
1452
|
return ae(() => {
|
|
@@ -1484,7 +1484,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1484
1484
|
size: i = "md",
|
|
1485
1485
|
testId: m,
|
|
1486
1486
|
undefinedLabel: v = "Unlabeled group",
|
|
1487
|
-
variant:
|
|
1487
|
+
variant: f = "primary",
|
|
1488
1488
|
withinNavbar: N,
|
|
1489
1489
|
className: g,
|
|
1490
1490
|
...p
|
|
@@ -1493,7 +1493,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1493
1493
|
x: _,
|
|
1494
1494
|
y: C,
|
|
1495
1495
|
reference: u,
|
|
1496
|
-
floating:
|
|
1496
|
+
floating: h,
|
|
1497
1497
|
strategy: E,
|
|
1498
1498
|
update: b,
|
|
1499
1499
|
placement: w,
|
|
@@ -1505,7 +1505,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1505
1505
|
let L = !1;
|
|
1506
1506
|
const $ = Ce(be);
|
|
1507
1507
|
$ && (L = $.isMobile);
|
|
1508
|
-
const M =
|
|
1508
|
+
const M = f === "navbar" && L, k = "pds-menu-button", z = M ? `${k}--isMobile` : null, F = N ? `${k}--navbar` : null, I = c, [V] = W(`menu-button-${c}`), O = y.floating, Z = le(null), [P, Y] = W(!1), [Q, j] = W(!1), [K, X] = W(""), [A, x] = W(0), S = le([]), T = le([]), G = le([]);
|
|
1509
1509
|
q2(() => {
|
|
1510
1510
|
window.addEventListener("mousedown", Le, !0), b();
|
|
1511
1511
|
const B = O.current;
|
|
@@ -1520,30 +1520,30 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1520
1520
|
}, U = () => {
|
|
1521
1521
|
Y(!0), j(!0);
|
|
1522
1522
|
}, ee = () => {
|
|
1523
|
-
Y(!1), D(void 0, -1),
|
|
1523
|
+
Y(!1), D(void 0, -1), Z.current.querySelector(`#${I}`).focus();
|
|
1524
1524
|
}, ce = (B) => {
|
|
1525
1525
|
B = B.toLowerCase();
|
|
1526
1526
|
let se = !1;
|
|
1527
|
-
for (let q =
|
|
1527
|
+
for (let q = A + 1; q < G.current.length; q++)
|
|
1528
1528
|
if (G.current[q].label.toLowerCase().startsWith(B)) {
|
|
1529
|
-
D(
|
|
1529
|
+
D(T.current[q], q), se = !0;
|
|
1530
1530
|
break;
|
|
1531
1531
|
}
|
|
1532
1532
|
if (se === !1) {
|
|
1533
|
-
for (let q = 0; q <
|
|
1533
|
+
for (let q = 0; q < A; q++)
|
|
1534
1534
|
if (G.current[q].label.toLowerCase().startsWith(B)) {
|
|
1535
|
-
D(
|
|
1535
|
+
D(T.current[q], q);
|
|
1536
1536
|
break;
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
1539
|
}, me = (B) => {
|
|
1540
|
-
const se =
|
|
1540
|
+
const se = T.current.indexOf(B), q = G.current[se];
|
|
1541
1541
|
if (q.callback && !q.disabled && q.callback(q), q.linkContent && !q.disabled) {
|
|
1542
|
-
const ne =
|
|
1542
|
+
const ne = Z.current.querySelector(`#${B} a`);
|
|
1543
1543
|
ne && ne.click();
|
|
1544
1544
|
}
|
|
1545
1545
|
}, fe = () => {
|
|
1546
|
-
const B =
|
|
1546
|
+
const B = T.current[A];
|
|
1547
1547
|
me(B);
|
|
1548
1548
|
}, te = (B) => {
|
|
1549
1549
|
P ? ee() : U(), d && d(), j((se) => !se), B.stopPropagation(), B.preventDefault();
|
|
@@ -1558,7 +1558,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1558
1558
|
case "Enter":
|
|
1559
1559
|
case "ArrowDown":
|
|
1560
1560
|
case "Down":
|
|
1561
|
-
U(), D(
|
|
1561
|
+
U(), D(T.current[0], 0), q = !0, d && d();
|
|
1562
1562
|
break;
|
|
1563
1563
|
// close menu
|
|
1564
1564
|
case "Esc":
|
|
@@ -1568,8 +1568,8 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1568
1568
|
// open menu and focus on last menu item
|
|
1569
1569
|
case "Up":
|
|
1570
1570
|
case "ArrowUp": {
|
|
1571
|
-
const ne =
|
|
1572
|
-
U(), D(
|
|
1571
|
+
const ne = T.current.length - 1;
|
|
1572
|
+
U(), D(T.current[ne], ne), q = !0;
|
|
1573
1573
|
break;
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
@@ -1595,20 +1595,20 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1595
1595
|
break;
|
|
1596
1596
|
case "Up":
|
|
1597
1597
|
case "ArrowUp":
|
|
1598
|
-
oe =
|
|
1598
|
+
oe = A - 1, oe < 0 && (oe = T.current.length - 1), ne = T.current[oe], D(ne, oe), q = !0;
|
|
1599
1599
|
break;
|
|
1600
1600
|
case "ArrowDown":
|
|
1601
1601
|
case "Down":
|
|
1602
|
-
oe =
|
|
1602
|
+
oe = A + 1, oe > T.current.length - 1 && (oe = 0), ne = T.current[oe], D(ne, oe), q = !0;
|
|
1603
1603
|
break;
|
|
1604
1604
|
case "Home":
|
|
1605
1605
|
case "PageUp":
|
|
1606
|
-
D(
|
|
1606
|
+
D(T.current[0], 0), q = !0;
|
|
1607
1607
|
break;
|
|
1608
1608
|
case "End":
|
|
1609
1609
|
case "PageDown": {
|
|
1610
|
-
const de =
|
|
1611
|
-
D(
|
|
1610
|
+
const de = T.current.length - 1;
|
|
1611
|
+
D(T.current[de], de), q = !0;
|
|
1612
1612
|
break;
|
|
1613
1613
|
}
|
|
1614
1614
|
case "Tab":
|
|
@@ -1621,9 +1621,9 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1621
1621
|
q && (B.stopPropagation(), B.preventDefault());
|
|
1622
1622
|
}
|
|
1623
1623
|
}, Le = (B) => {
|
|
1624
|
-
|
|
1624
|
+
Z.current && !Z.current.contains(B.target) && P && ee();
|
|
1625
1625
|
}, Fe = (B, se, q = "", ne = "", ...oe) => {
|
|
1626
|
-
const pe = q ? `-group-${q}` : "", de =
|
|
1626
|
+
const pe = q ? `-group-${q}` : "", de = I + pe + "-item-" + (se + 1), $e = B.id ? B.id : de;
|
|
1627
1627
|
if (Vt(B))
|
|
1628
1628
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: $e });
|
|
1629
1629
|
if (It(B))
|
|
@@ -1640,7 +1640,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1640
1640
|
if (p1(B))
|
|
1641
1641
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: $e }, B.nodeContent);
|
|
1642
1642
|
if (At(B) || B.label) {
|
|
1643
|
-
|
|
1643
|
+
T.current.push($e), G.current.push(B);
|
|
1644
1644
|
let Je = !1;
|
|
1645
1645
|
K !== "" && !B.disabled && (Je = K === $e);
|
|
1646
1646
|
let He;
|
|
@@ -1648,7 +1648,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1648
1648
|
const lt = /* @__PURE__ */ e.createElement(
|
|
1649
1649
|
R,
|
|
1650
1650
|
{
|
|
1651
|
-
key: `icon-${
|
|
1651
|
+
key: `icon-${I}`,
|
|
1652
1652
|
iconName: B.iconName,
|
|
1653
1653
|
iconSize: "md"
|
|
1654
1654
|
}
|
|
@@ -1686,7 +1686,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1686
1686
|
pe !== ne ? (oe.push(pe), de + 1 === B.length && q.push(oe)) : (q.push(oe), oe = [], oe.push(pe), ne = se.shift());
|
|
1687
1687
|
}), q.filter((pe) => pe.length > 0);
|
|
1688
1688
|
}, Ye = (B) => {
|
|
1689
|
-
|
|
1689
|
+
T.current = [], G.current = [];
|
|
1690
1690
|
const se = B, q = B.filter(
|
|
1691
1691
|
It || Vt
|
|
1692
1692
|
), ne = q.length > 0;
|
|
@@ -1699,7 +1699,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1699
1699
|
let de = S.current[0];
|
|
1700
1700
|
const $e = pe[0].findIndex(
|
|
1701
1701
|
(He) => !Vt(He) && !It(He)
|
|
1702
|
-
), Je = `${
|
|
1702
|
+
), Je = `${I}-group-${de}-item-${$e + 1}`;
|
|
1703
1703
|
return /* @__PURE__ */ e.createElement(
|
|
1704
1704
|
"div",
|
|
1705
1705
|
{
|
|
@@ -1707,7 +1707,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1707
1707
|
id: V,
|
|
1708
1708
|
role: "menu",
|
|
1709
1709
|
tabIndex: -1,
|
|
1710
|
-
"aria-labelledby":
|
|
1710
|
+
"aria-labelledby": I,
|
|
1711
1711
|
"aria-activedescendant": K !== "" ? K : Je,
|
|
1712
1712
|
style: {
|
|
1713
1713
|
visibility: P ? "visible" : "hidden",
|
|
@@ -1718,11 +1718,11 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1718
1718
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
1719
1719
|
},
|
|
1720
1720
|
onKeyDown: ge,
|
|
1721
|
-
ref:
|
|
1721
|
+
ref: h
|
|
1722
1722
|
},
|
|
1723
1723
|
pe.map((He, Ge) => {
|
|
1724
1724
|
de = S.current[Ge];
|
|
1725
|
-
const Be = He[0].isHeading, lt = Be ? `${
|
|
1725
|
+
const Be = He[0].isHeading, lt = Be ? `${I}-group-${de}-heading` : "", P2 = `${I}-group-${de}`, B2 = Be ? null : `${v} ${Ge + 1}`;
|
|
1726
1726
|
return /* @__PURE__ */ e.createElement(
|
|
1727
1727
|
"ul",
|
|
1728
1728
|
{
|
|
@@ -1741,7 +1741,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1741
1741
|
})
|
|
1742
1742
|
);
|
|
1743
1743
|
} else {
|
|
1744
|
-
const pe = `${
|
|
1744
|
+
const pe = `${I}-item-1`;
|
|
1745
1745
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1746
1746
|
"ul",
|
|
1747
1747
|
{
|
|
@@ -1749,7 +1749,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1749
1749
|
id: V,
|
|
1750
1750
|
role: "menu",
|
|
1751
1751
|
tabIndex: -1,
|
|
1752
|
-
"aria-labelledby":
|
|
1752
|
+
"aria-labelledby": I,
|
|
1753
1753
|
"aria-activedescendant": K !== "" ? K : pe,
|
|
1754
1754
|
style: {
|
|
1755
1755
|
visibility: P ? "visible" : "hidden",
|
|
@@ -1759,7 +1759,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1759
1759
|
transform: `translate(${Math.round(_)}px,${Math.round(C)}px)`
|
|
1760
1760
|
},
|
|
1761
1761
|
onKeyDown: ge,
|
|
1762
|
-
ref:
|
|
1762
|
+
ref: h
|
|
1763
1763
|
},
|
|
1764
1764
|
se.map((de, $e) => Fe(de, $e))
|
|
1765
1765
|
));
|
|
@@ -1769,11 +1769,11 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1769
1769
|
if (s === "icon-end" && (Pe = /* @__PURE__ */ e.createElement(
|
|
1770
1770
|
ze,
|
|
1771
1771
|
{
|
|
1772
|
-
id:
|
|
1772
|
+
id: I,
|
|
1773
1773
|
isSplitButton: o,
|
|
1774
1774
|
label: r,
|
|
1775
1775
|
size: i,
|
|
1776
|
-
variant:
|
|
1776
|
+
variant: f,
|
|
1777
1777
|
displayType: s,
|
|
1778
1778
|
iconName: "angleDown",
|
|
1779
1779
|
type: "button",
|
|
@@ -1791,7 +1791,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1791
1791
|
Pe = /* @__PURE__ */ e.createElement(
|
|
1792
1792
|
Ht,
|
|
1793
1793
|
{
|
|
1794
|
-
id:
|
|
1794
|
+
id: I,
|
|
1795
1795
|
ariaLabel: B,
|
|
1796
1796
|
size: i,
|
|
1797
1797
|
variant: "standard",
|
|
@@ -1824,7 +1824,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1824
1824
|
M && (ue = /* @__PURE__ */ e.createElement(
|
|
1825
1825
|
"button",
|
|
1826
1826
|
{
|
|
1827
|
-
id:
|
|
1827
|
+
id: I,
|
|
1828
1828
|
type: "button",
|
|
1829
1829
|
disabled: t,
|
|
1830
1830
|
className: Ee,
|
|
@@ -1853,7 +1853,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1853
1853
|
g
|
|
1854
1854
|
]),
|
|
1855
1855
|
"data-testid": m,
|
|
1856
|
-
ref:
|
|
1856
|
+
ref: Z,
|
|
1857
1857
|
...p
|
|
1858
1858
|
},
|
|
1859
1859
|
M ? /* @__PURE__ */ e.createElement(e.Fragment, null, Ne, /* @__PURE__ */ e.createElement(dt, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Pe, Ye(l))
|
|
@@ -1870,7 +1870,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1870
1870
|
className: d,
|
|
1871
1871
|
...i
|
|
1872
1872
|
}) => {
|
|
1873
|
-
const m = "pds-segmented-button", v = t ? "pds-is-disabled" : null,
|
|
1873
|
+
const m = "pds-segmented-button", v = t ? "pds-is-disabled" : null, f = l !== "md" ? `${m}--${l}` : null, N = typeof n < "u", g = typeof a < "u", [p, _] = W(
|
|
1874
1874
|
g ? a : ""
|
|
1875
1875
|
), C = (u) => {
|
|
1876
1876
|
_(u.target.value), o && o(u.target.value);
|
|
@@ -1881,27 +1881,27 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1881
1881
|
{
|
|
1882
1882
|
className: H([
|
|
1883
1883
|
m,
|
|
1884
|
-
|
|
1884
|
+
f,
|
|
1885
1885
|
v,
|
|
1886
1886
|
d ?? ""
|
|
1887
1887
|
]),
|
|
1888
1888
|
...i
|
|
1889
1889
|
},
|
|
1890
1890
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
1891
|
-
/* @__PURE__ */ e.createElement("div", { className: `${m}__options` }, r.map((u,
|
|
1891
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__options` }, r.map((u, h) => {
|
|
1892
1892
|
const E = N ? n === u.value : p === u.value, b = `${m}__option`, w = E ? `${b}--checked` : null;
|
|
1893
1893
|
return /* @__PURE__ */ e.createElement(
|
|
1894
1894
|
"div",
|
|
1895
1895
|
{
|
|
1896
1896
|
className: H([b, w]),
|
|
1897
|
-
key: `${s}-option-${
|
|
1897
|
+
key: `${s}-option-${h}`
|
|
1898
1898
|
},
|
|
1899
1899
|
/* @__PURE__ */ e.createElement(
|
|
1900
1900
|
"input",
|
|
1901
1901
|
{
|
|
1902
1902
|
className: "visually-hidden",
|
|
1903
1903
|
type: "radio",
|
|
1904
|
-
id: u.id ? u.id : `${s}-option-${
|
|
1904
|
+
id: u.id ? u.id : `${s}-option-${h}`,
|
|
1905
1905
|
name: s,
|
|
1906
1906
|
value: u.value,
|
|
1907
1907
|
disabled: t || u.disabled,
|
|
@@ -1912,7 +1912,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1912
1912
|
/* @__PURE__ */ e.createElement(
|
|
1913
1913
|
"label",
|
|
1914
1914
|
{
|
|
1915
|
-
htmlFor: u.id ? u.id : `${s}-option-${
|
|
1915
|
+
htmlFor: u.id ? u.id : `${s}-option-${h}`,
|
|
1916
1916
|
title: u.label
|
|
1917
1917
|
},
|
|
1918
1918
|
u.tally ? /* @__PURE__ */ e.createElement(
|
|
@@ -1946,8 +1946,8 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1946
1946
|
...n
|
|
1947
1947
|
}) => {
|
|
1948
1948
|
const d = "pds-split-button", i = `${d}--${r}`, m = t[0], v = t.slice(1);
|
|
1949
|
-
let
|
|
1950
|
-
return "isLink" in m && m.isLink === !0 ?
|
|
1949
|
+
let f = null;
|
|
1950
|
+
return "isLink" in m && m.isLink === !0 ? f = /* @__PURE__ */ e.createElement(
|
|
1951
1951
|
Et,
|
|
1952
1952
|
{
|
|
1953
1953
|
className: `${d}__primary-action`,
|
|
@@ -1957,7 +1957,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1957
1957
|
disabled: s,
|
|
1958
1958
|
linkContent: m.linkContent
|
|
1959
1959
|
}
|
|
1960
|
-
) : "label" in m && (
|
|
1960
|
+
) : "label" in m && (f = /* @__PURE__ */ e.createElement(
|
|
1961
1961
|
ze,
|
|
1962
1962
|
{
|
|
1963
1963
|
className: `${d}__primary-action`,
|
|
@@ -1974,7 +1974,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
1974
1974
|
id: a,
|
|
1975
1975
|
...n
|
|
1976
1976
|
},
|
|
1977
|
-
|
|
1977
|
+
f,
|
|
1978
1978
|
/* @__PURE__ */ e.createElement(
|
|
1979
1979
|
I2,
|
|
1980
1980
|
{
|
|
@@ -2005,11 +2005,11 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2005
2005
|
label: i,
|
|
2006
2006
|
linkContent: m,
|
|
2007
2007
|
onClick: v,
|
|
2008
|
-
tooltipText:
|
|
2008
|
+
tooltipText: f,
|
|
2009
2009
|
className: N,
|
|
2010
2010
|
...g
|
|
2011
2011
|
}) => {
|
|
2012
|
-
const p = "pds-utility-button", _ = a ? `${p}--border` : null, C = r ? `${p}--critical` : null, u = s ? `${p}--disabled` : null,
|
|
2012
|
+
const p = "pds-utility-button", _ = a ? `${p}--border` : null, C = r ? `${p}--critical` : null, u = s ? `${p}--disabled` : null, h = l ? `${p}--loading` : null, E = n ? `${p}--working` : null, b = d ? `${p}--monospace` : null, w = l ? "pds-pulse" : null;
|
|
2013
2013
|
if (m && !s) {
|
|
2014
2014
|
const $ = he(m) ? m.props.children : null, M = [];
|
|
2015
2015
|
o === "before" && c && !n && M.push(
|
|
@@ -2062,14 +2062,14 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2062
2062
|
_,
|
|
2063
2063
|
C,
|
|
2064
2064
|
u,
|
|
2065
|
-
|
|
2065
|
+
h,
|
|
2066
2066
|
E,
|
|
2067
2067
|
b,
|
|
2068
2068
|
N ?? ""
|
|
2069
2069
|
]),
|
|
2070
2070
|
...g
|
|
2071
2071
|
},
|
|
2072
|
-
|
|
2072
|
+
f ? /* @__PURE__ */ e.createElement(ye, { content: f, customTrigger: k }) : k
|
|
2073
2073
|
);
|
|
2074
2074
|
}
|
|
2075
2075
|
const y = m && he(m) ? m.props.children : i, L = /* @__PURE__ */ e.createElement(
|
|
@@ -2101,14 +2101,14 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2101
2101
|
_,
|
|
2102
2102
|
C,
|
|
2103
2103
|
u,
|
|
2104
|
-
|
|
2104
|
+
h,
|
|
2105
2105
|
E,
|
|
2106
2106
|
b,
|
|
2107
2107
|
N ?? ""
|
|
2108
2108
|
]),
|
|
2109
2109
|
...g
|
|
2110
2110
|
},
|
|
2111
|
-
|
|
2111
|
+
f ? /* @__PURE__ */ e.createElement(ye, { content: f, customTrigger: L }) : L
|
|
2112
2112
|
);
|
|
2113
2113
|
}, Tt = {
|
|
2114
2114
|
info: "circleInfo",
|
|
@@ -2208,8 +2208,8 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2208
2208
|
const i = "pds-card-select-group";
|
|
2209
2209
|
let m = `${i}__legend`;
|
|
2210
2210
|
c === "center" && (m = `${i}__legend ${i}__legend--center`), c === "hidden" && (m = `${i}__legend visually-hidden`);
|
|
2211
|
-
const [v,
|
|
2212
|
-
h
|
|
2211
|
+
const [v, f] = W(s), N = (h) => {
|
|
2212
|
+
f(h.currentTarget.value), r && r(h.currentTarget.value);
|
|
2213
2213
|
}, g = l.length, p = "pds-grid-item", _ = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", C = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2214
2214
|
let u = "";
|
|
2215
2215
|
return o === "twoAcross" ? u = _ : o === "threeAcross" ? u = C : o === "auto" && (g === 1 ? u = p : g % 3 === 0 ? u = C : g % 2 === 0 ? u = _ : u = C), /* @__PURE__ */ e.createElement(
|
|
@@ -2220,7 +2220,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2220
2220
|
...d
|
|
2221
2221
|
},
|
|
2222
2222
|
/* @__PURE__ */ e.createElement("legend", { className: m }, a),
|
|
2223
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__options pds-grid pds-grid--narrow` }, l.map((
|
|
2223
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__options pds-grid pds-grid--narrow` }, l.map((h, E) => /* @__PURE__ */ e.createElement(
|
|
2224
2224
|
"div",
|
|
2225
2225
|
{
|
|
2226
2226
|
className: [`${i}__option`, u].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -2230,28 +2230,28 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2230
2230
|
"input",
|
|
2231
2231
|
{
|
|
2232
2232
|
type: "radio",
|
|
2233
|
-
id:
|
|
2233
|
+
id: h.id ? h.id : `${t}-option-${E}`,
|
|
2234
2234
|
name: t,
|
|
2235
|
-
value:
|
|
2235
|
+
value: h.value,
|
|
2236
2236
|
onClick: N,
|
|
2237
|
-
defaultChecked: v ===
|
|
2237
|
+
defaultChecked: v === h.value
|
|
2238
2238
|
}
|
|
2239
2239
|
),
|
|
2240
2240
|
/* @__PURE__ */ e.createElement(
|
|
2241
2241
|
"label",
|
|
2242
2242
|
{
|
|
2243
|
-
htmlFor:
|
|
2244
|
-
className: v ===
|
|
2243
|
+
htmlFor: h.id ? h.id : `${t}-option-${E}`,
|
|
2244
|
+
className: v === h.value ? `${i}__option-label ${i}__option-label--selected` : `${i}__option-label`
|
|
2245
2245
|
},
|
|
2246
2246
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
2247
2247
|
R,
|
|
2248
2248
|
{
|
|
2249
|
-
iconName: v ===
|
|
2249
|
+
iconName: v === h.value ? "circleCheck" : "circle",
|
|
2250
2250
|
iconSize: "xl",
|
|
2251
|
-
className: v ===
|
|
2251
|
+
className: v === h.value ? `${i}__option-icon ${i}__option-icon--selected` : `${i}__option-icon`
|
|
2252
2252
|
}
|
|
2253
2253
|
)),
|
|
2254
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__option-label-text` },
|
|
2254
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__option-label-text` }, h.label, h.description && /* @__PURE__ */ e.createElement("div", { className: `${i}__option-description` }, h.description))
|
|
2255
2255
|
)
|
|
2256
2256
|
)))
|
|
2257
2257
|
);
|
|
@@ -2581,7 +2581,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2581
2581
|
className: d,
|
|
2582
2582
|
...i
|
|
2583
2583
|
}) => {
|
|
2584
|
-
const m = "pds-new-site-card", v = l.type,
|
|
2584
|
+
const m = "pds-new-site-card", v = l.type, f = /* @__PURE__ */ e.createElement(kt, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${m}__main` }, /* @__PURE__ */ e.createElement(
|
|
2585
2585
|
v,
|
|
2586
2586
|
{
|
|
2587
2587
|
"aria-label": l.props.children,
|
|
@@ -2619,7 +2619,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
2619
2619
|
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, a))
|
|
2620
2620
|
);
|
|
2621
2621
|
}))));
|
|
2622
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([m, d ?? ""]), ...i },
|
|
2622
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([m, d ?? ""]), ...i }, f);
|
|
2623
2623
|
}, C1 = {
|
|
2624
2624
|
amex: /* @__PURE__ */ e.createElement(
|
|
2625
2625
|
"svg",
|
|
@@ -3044,7 +3044,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3044
3044
|
onOptionSelect: i,
|
|
3045
3045
|
options: m,
|
|
3046
3046
|
required: v = !1,
|
|
3047
|
-
showLabel:
|
|
3047
|
+
showLabel: f = !0,
|
|
3048
3048
|
tooltipText: N = null,
|
|
3049
3049
|
validationMessage: g,
|
|
3050
3050
|
validationStatus: p,
|
|
@@ -3052,12 +3052,12 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3052
3052
|
className: C,
|
|
3053
3053
|
...u
|
|
3054
3054
|
}) => {
|
|
3055
|
-
const
|
|
3055
|
+
const h = We(c), E = "pds-select", b = s ? J.disabled : null, w = v && !s ? J.required : null, y = p === "error" ? J.error : null, L = p === "success" ? J.success : null;
|
|
3056
3056
|
let $ = null;
|
|
3057
3057
|
p === "error" && ($ = "error"), p === "success" && ($ = "success");
|
|
3058
|
-
const M = g || l, k = typeof _ < "u", z = typeof t < "u",
|
|
3058
|
+
const M = g || l, k = typeof _ < "u", z = typeof t < "u", I = ((ue) => ue.reduce((_e, Ee) => r2(Ee) ? [..._e, ...Ee.options] : [..._e, Ee], []))(m), V = (ue) => I.findIndex((_e) => _e.value === ue), O = k && V(_) >= 0 ? V(_) : null, Z = z ? V(t) : null, P = O || Z, [Y, Q] = W(!1), [j, K] = W(null), [X, A] = W(
|
|
3059
3059
|
P ?? null
|
|
3060
|
-
), x = X !== null ?
|
|
3060
|
+
), x = X !== null ? I[X]?.label : void 0, S = X !== null ? I[X]?.value : void 0, T = le([]), { context: G, refs: D, floatingStyles: U } = ke({
|
|
3061
3061
|
open: Y,
|
|
3062
3062
|
onOpenChange: Q,
|
|
3063
3063
|
whileElementsMounted: xe,
|
|
@@ -3077,13 +3077,13 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3077
3077
|
enabled: !s,
|
|
3078
3078
|
event: "mousedown"
|
|
3079
3079
|
}), ce = Se(G), me = Ve(G, { role: "listbox" }), fe = it(G, {
|
|
3080
|
-
listRef:
|
|
3080
|
+
listRef: T,
|
|
3081
3081
|
activeIndex: j,
|
|
3082
3082
|
selectedIndex: X,
|
|
3083
3083
|
onNavigate: K,
|
|
3084
3084
|
loop: !0
|
|
3085
3085
|
}), te = jt(G, {
|
|
3086
|
-
listRef:
|
|
3086
|
+
listRef: T,
|
|
3087
3087
|
activeIndex: j,
|
|
3088
3088
|
selectedIndex: X,
|
|
3089
3089
|
onMatch: (ue) => {
|
|
@@ -3110,13 +3110,13 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3110
3110
|
opacity: 0
|
|
3111
3111
|
}
|
|
3112
3112
|
}), Te = (ue) => {
|
|
3113
|
-
const _e =
|
|
3114
|
-
k || (
|
|
3113
|
+
const _e = I[ue];
|
|
3114
|
+
k || (A(ue), Q(!1)), i && i(_e);
|
|
3115
3115
|
};
|
|
3116
3116
|
ae(() => {
|
|
3117
3117
|
if (k) {
|
|
3118
3118
|
const ue = V(_);
|
|
3119
|
-
|
|
3119
|
+
A(ue), Q(!1);
|
|
3120
3120
|
}
|
|
3121
3121
|
}, [_]);
|
|
3122
3122
|
const Ye = () => {
|
|
@@ -3136,7 +3136,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3136
3136
|
{
|
|
3137
3137
|
key: se,
|
|
3138
3138
|
ref: (q) => {
|
|
3139
|
-
|
|
3139
|
+
T.current[se] = q;
|
|
3140
3140
|
},
|
|
3141
3141
|
tabIndex: se === j ? 0 : -1,
|
|
3142
3142
|
"aria-selected": se === X && se === j,
|
|
@@ -3168,7 +3168,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3168
3168
|
{
|
|
3169
3169
|
key: Ne,
|
|
3170
3170
|
ref: (we) => {
|
|
3171
|
-
|
|
3171
|
+
T.current[Ne] = we;
|
|
3172
3172
|
},
|
|
3173
3173
|
tabIndex: Ne === j ? 0 : -1,
|
|
3174
3174
|
"aria-selected": Ne === X && Ne === j,
|
|
@@ -3199,7 +3199,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3199
3199
|
L,
|
|
3200
3200
|
C ?? ""
|
|
3201
3201
|
]),
|
|
3202
|
-
style: c ?
|
|
3202
|
+
style: c ? h : null,
|
|
3203
3203
|
...u
|
|
3204
3204
|
},
|
|
3205
3205
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3207,7 +3207,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3207
3207
|
{
|
|
3208
3208
|
id: a,
|
|
3209
3209
|
label: o,
|
|
3210
|
-
showLabel:
|
|
3210
|
+
showLabel: f,
|
|
3211
3211
|
tooltipText: N,
|
|
3212
3212
|
required: v,
|
|
3213
3213
|
disabled: s
|
|
@@ -3272,58 +3272,58 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3272
3272
|
className: m,
|
|
3273
3273
|
...v
|
|
3274
3274
|
}) => {
|
|
3275
|
-
const
|
|
3275
|
+
const f = "pds-pricing-card", N = `${f}-container`, g = a ? `${N}--with-list` : null, p = i ? `${f}--${i}` : null, _ = (z) => z.toLowerCase().replace(/\s/g, "-"), C = l && l.length > 1, [u, h] = W(
|
|
3276
3276
|
_(l[0].label)
|
|
3277
|
-
), [E, b] =
|
|
3277
|
+
), [E, b] = W(
|
|
3278
3278
|
t.label
|
|
3279
3279
|
);
|
|
3280
3280
|
let w = null, y = null;
|
|
3281
|
-
C || (w = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3281
|
+
C || (w = /* @__PURE__ */ e.createElement("div", { className: `${f}__pricing-data` }, l[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${f}__price-prefix` }, l[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${f}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${f}__price` }, l[0].price), l[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__details` }, l[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${f}__savings-line` }, l[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3282
3282
|
_t,
|
|
3283
3283
|
{
|
|
3284
|
-
className: `${
|
|
3284
|
+
className: `${f}__savings-badge`,
|
|
3285
3285
|
color: "neutral",
|
|
3286
3286
|
size: "sm",
|
|
3287
3287
|
label: l[0].savingsBadgeLabel
|
|
3288
3288
|
}
|
|
3289
|
-
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3289
|
+
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__savings-details` }, l[0].savingsDetails))), y = /* @__PURE__ */ e.createElement(
|
|
3290
3290
|
m2,
|
|
3291
3291
|
{
|
|
3292
|
-
className: `${
|
|
3292
|
+
className: `${f}__list`,
|
|
3293
3293
|
listLabel: l[0].listLabel,
|
|
3294
3294
|
listItems: l[0].listItems,
|
|
3295
3295
|
renderTypeLabels: !1
|
|
3296
3296
|
}
|
|
3297
3297
|
)), C && (w = l.map((z) => {
|
|
3298
|
-
const
|
|
3298
|
+
const I = u === _(z.label) ? null : `${f}__pricing-data--hide`;
|
|
3299
3299
|
return /* @__PURE__ */ e.createElement(
|
|
3300
3300
|
"div",
|
|
3301
3301
|
{
|
|
3302
3302
|
className: H([
|
|
3303
|
-
`${
|
|
3304
|
-
|
|
3303
|
+
`${f}__pricing-data`,
|
|
3304
|
+
I
|
|
3305
3305
|
]),
|
|
3306
3306
|
id: `data-${_(z.label)}`,
|
|
3307
3307
|
key: _(z.label)
|
|
3308
3308
|
},
|
|
3309
|
-
z.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3310
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3311
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
3309
|
+
z.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${f}__price-prefix` }, z.pricePrefix),
|
|
3310
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${f}__price` }, z.price), z.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__details` }, z.priceDetails)),
|
|
3311
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__savings-line` }, z.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3312
3312
|
_t,
|
|
3313
3313
|
{
|
|
3314
|
-
className: `${
|
|
3314
|
+
className: `${f}__savings-badge`,
|
|
3315
3315
|
color: "neutral",
|
|
3316
3316
|
size: "sm",
|
|
3317
3317
|
label: z.savingsBadgeLabel
|
|
3318
3318
|
}
|
|
3319
|
-
), z.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3319
|
+
), z.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${f}__savings-details` }, z.savingsDetails))
|
|
3320
3320
|
);
|
|
3321
3321
|
}), y = l.map((z) => {
|
|
3322
|
-
const
|
|
3322
|
+
const I = u === _(z.label) ? null : `${f}__list--hide`;
|
|
3323
3323
|
return /* @__PURE__ */ e.createElement(
|
|
3324
3324
|
m2,
|
|
3325
3325
|
{
|
|
3326
|
-
className: H([`${
|
|
3326
|
+
className: H([`${f}__list`, I]),
|
|
3327
3327
|
listLabel: z.listLabel,
|
|
3328
3328
|
listItems: z.listItems,
|
|
3329
3329
|
renderTypeLabels: !1,
|
|
@@ -3333,7 +3333,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3333
3333
|
}));
|
|
3334
3334
|
const L = (z) => {
|
|
3335
3335
|
const F = l.find(
|
|
3336
|
-
(
|
|
3336
|
+
(I) => _(I.label) === z
|
|
3337
3337
|
);
|
|
3338
3338
|
return F.customActionLabel ? F.customActionLabel : t.label;
|
|
3339
3339
|
};
|
|
@@ -3342,7 +3342,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3342
3342
|
b1,
|
|
3343
3343
|
{
|
|
3344
3344
|
id: "plan-select",
|
|
3345
|
-
className: `${
|
|
3345
|
+
className: `${f}__select`,
|
|
3346
3346
|
label: d,
|
|
3347
3347
|
showLabel: !1,
|
|
3348
3348
|
options: l.map((z) => ({
|
|
@@ -3351,7 +3351,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3351
3351
|
})),
|
|
3352
3352
|
defaultValue: _(l[0].label),
|
|
3353
3353
|
onOptionSelect: (z) => {
|
|
3354
|
-
|
|
3354
|
+
h(z.value), b(L(z.value)), c && c(z.value);
|
|
3355
3355
|
}
|
|
3356
3356
|
}
|
|
3357
3357
|
));
|
|
@@ -3398,14 +3398,14 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3398
3398
|
className: H([N, g, m]),
|
|
3399
3399
|
...v
|
|
3400
3400
|
},
|
|
3401
|
-
/* @__PURE__ */ e.createElement("div", { className: H([
|
|
3401
|
+
/* @__PURE__ */ e.createElement("div", { className: H([f, p]) }, i && /* @__PURE__ */ e.createElement(
|
|
3402
3402
|
Xt,
|
|
3403
3403
|
{
|
|
3404
|
-
className: `${
|
|
3404
|
+
className: `${f}__status-badge`,
|
|
3405
3405
|
label: n[i],
|
|
3406
3406
|
color: i === "mostPopular" ? "reverse" : "neutral"
|
|
3407
3407
|
}
|
|
3408
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3408
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${f}__main-content` }, r && /* @__PURE__ */ e.createElement("div", { className: `${f}__plan pds-overline-text` }, r), w, o && /* @__PURE__ */ e.createElement("div", { className: `${f}__description` }, o), $), /* @__PURE__ */ e.createElement("div", { className: `${f}__actions` }, t && M, t && s && k)),
|
|
3409
3409
|
a && y
|
|
3410
3410
|
);
|
|
3411
3411
|
}, nn = ({
|
|
@@ -3422,7 +3422,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3422
3422
|
const i = "pds-site-card";
|
|
3423
3423
|
let m, v;
|
|
3424
3424
|
l === "active" && (m = "Active", v = "success"), l === "frozen" && (m = "Frozen", v = "frozen"), l === "restricted" && (m = "Restricted", v = "critical");
|
|
3425
|
-
const
|
|
3425
|
+
const f = /* @__PURE__ */ e.createElement(
|
|
3426
3426
|
Xt,
|
|
3427
3427
|
{
|
|
3428
3428
|
label: m,
|
|
@@ -3437,7 +3437,7 @@ const St = 500, i1 = 700, ye = ({
|
|
|
3437
3437
|
level: s,
|
|
3438
3438
|
text: o
|
|
3439
3439
|
}
|
|
3440
|
-
),
|
|
3440
|
+
), f), /* @__PURE__ */ e.createElement("div", { className: `${i}__plan` }, r))), g = he(c) ? De(
|
|
3441
3441
|
c,
|
|
3442
3442
|
Object.assign({}, c.props, {
|
|
3443
3443
|
className: `${i}__link`,
|
|
@@ -3511,8 +3511,8 @@ function N1() {
|
|
|
3511
3511
|
* @memberof Prism
|
|
3512
3512
|
*/
|
|
3513
3513
|
util: {
|
|
3514
|
-
encode: function u(
|
|
3515
|
-
return
|
|
3514
|
+
encode: function u(h) {
|
|
3515
|
+
return h instanceof d ? new d(h.type, u(h.content), h.alias) : Array.isArray(h) ? h.map(u) : h.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
3516
3516
|
},
|
|
3517
3517
|
/**
|
|
3518
3518
|
* Returns the name of the type of the given value.
|
|
@@ -3552,30 +3552,30 @@ function N1() {
|
|
|
3552
3552
|
* @returns {T}
|
|
3553
3553
|
* @template T
|
|
3554
3554
|
*/
|
|
3555
|
-
clone: function u(
|
|
3555
|
+
clone: function u(h, E) {
|
|
3556
3556
|
E = E || {};
|
|
3557
3557
|
var b, w;
|
|
3558
|
-
switch (n.util.type(
|
|
3558
|
+
switch (n.util.type(h)) {
|
|
3559
3559
|
case "Object":
|
|
3560
|
-
if (w = n.util.objId(
|
|
3560
|
+
if (w = n.util.objId(h), E[w])
|
|
3561
3561
|
return E[w];
|
|
3562
3562
|
b = /** @type {Record<string, any>} */
|
|
3563
3563
|
{}, E[w] = b;
|
|
3564
|
-
for (var y in
|
|
3565
|
-
|
|
3564
|
+
for (var y in h)
|
|
3565
|
+
h.hasOwnProperty(y) && (b[y] = u(h[y], E));
|
|
3566
3566
|
return (
|
|
3567
3567
|
/** @type {any} */
|
|
3568
3568
|
b
|
|
3569
3569
|
);
|
|
3570
3570
|
case "Array":
|
|
3571
|
-
return w = n.util.objId(
|
|
3571
|
+
return w = n.util.objId(h), E[w] ? E[w] : (b = [], E[w] = b, /** @type {Array} */
|
|
3572
3572
|
/** @type {any} */
|
|
3573
|
-
|
|
3573
|
+
h.forEach(function(L, $) {
|
|
3574
3574
|
b[$] = u(L, E);
|
|
3575
3575
|
}), /** @type {any} */
|
|
3576
3576
|
b);
|
|
3577
3577
|
default:
|
|
3578
|
-
return
|
|
3578
|
+
return h;
|
|
3579
3579
|
}
|
|
3580
3580
|
},
|
|
3581
3581
|
/**
|
|
@@ -3588,9 +3588,9 @@ function N1() {
|
|
|
3588
3588
|
*/
|
|
3589
3589
|
getLanguage: function(u) {
|
|
3590
3590
|
for (; u; ) {
|
|
3591
|
-
var
|
|
3592
|
-
if (
|
|
3593
|
-
return
|
|
3591
|
+
var h = o.exec(u.className);
|
|
3592
|
+
if (h)
|
|
3593
|
+
return h[1].toLowerCase();
|
|
3594
3594
|
u = u.parentElement;
|
|
3595
3595
|
}
|
|
3596
3596
|
return "none";
|
|
@@ -3602,8 +3602,8 @@ function N1() {
|
|
|
3602
3602
|
* @param {string} language
|
|
3603
3603
|
* @returns {void}
|
|
3604
3604
|
*/
|
|
3605
|
-
setLanguage: function(u,
|
|
3606
|
-
u.className = u.className.replace(RegExp(o, "gi"), ""), u.classList.add("language-" +
|
|
3605
|
+
setLanguage: function(u, h) {
|
|
3606
|
+
u.className = u.className.replace(RegExp(o, "gi"), ""), u.classList.add("language-" + h);
|
|
3607
3607
|
},
|
|
3608
3608
|
/**
|
|
3609
3609
|
* Returns the script element that is currently executing.
|
|
@@ -3625,10 +3625,10 @@ function N1() {
|
|
|
3625
3625
|
} catch (b) {
|
|
3626
3626
|
var u = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack) || [])[1];
|
|
3627
3627
|
if (u) {
|
|
3628
|
-
var
|
|
3629
|
-
for (var E in
|
|
3630
|
-
if (
|
|
3631
|
-
return
|
|
3628
|
+
var h = document.getElementsByTagName("script");
|
|
3629
|
+
for (var E in h)
|
|
3630
|
+
if (h[E].src == u)
|
|
3631
|
+
return h[E];
|
|
3632
3632
|
}
|
|
3633
3633
|
return null;
|
|
3634
3634
|
}
|
|
@@ -3652,10 +3652,10 @@ function N1() {
|
|
|
3652
3652
|
* @param {boolean} [defaultActivation=false]
|
|
3653
3653
|
* @returns {boolean}
|
|
3654
3654
|
*/
|
|
3655
|
-
isActive: function(u,
|
|
3656
|
-
for (var b = "no-" +
|
|
3655
|
+
isActive: function(u, h, E) {
|
|
3656
|
+
for (var b = "no-" + h; u; ) {
|
|
3657
3657
|
var w = u.classList;
|
|
3658
|
-
if (w.contains(
|
|
3658
|
+
if (w.contains(h))
|
|
3659
3659
|
return !0;
|
|
3660
3660
|
if (w.contains(b))
|
|
3661
3661
|
return !1;
|
|
@@ -3707,10 +3707,10 @@ function N1() {
|
|
|
3707
3707
|
* 'color': /\b(?:red|green|blue)\b/
|
|
3708
3708
|
* });
|
|
3709
3709
|
*/
|
|
3710
|
-
extend: function(u,
|
|
3710
|
+
extend: function(u, h) {
|
|
3711
3711
|
var E = n.util.clone(n.languages[u]);
|
|
3712
|
-
for (var b in
|
|
3713
|
-
E[b] =
|
|
3712
|
+
for (var b in h)
|
|
3713
|
+
E[b] = h[b];
|
|
3714
3714
|
return E;
|
|
3715
3715
|
},
|
|
3716
3716
|
/**
|
|
@@ -3788,13 +3788,13 @@ function N1() {
|
|
|
3788
3788
|
* @returns {Grammar} The new grammar object.
|
|
3789
3789
|
* @public
|
|
3790
3790
|
*/
|
|
3791
|
-
insertBefore: function(u,
|
|
3791
|
+
insertBefore: function(u, h, E, b) {
|
|
3792
3792
|
b = b || /** @type {any} */
|
|
3793
3793
|
n.languages;
|
|
3794
3794
|
var w = b[u], y = {};
|
|
3795
3795
|
for (var L in w)
|
|
3796
3796
|
if (w.hasOwnProperty(L)) {
|
|
3797
|
-
if (L ==
|
|
3797
|
+
if (L == h)
|
|
3798
3798
|
for (var $ in E)
|
|
3799
3799
|
E.hasOwnProperty($) && (y[$] = E[$]);
|
|
3800
3800
|
E.hasOwnProperty(L) || (y[L] = w[L]);
|
|
@@ -3805,13 +3805,13 @@ function N1() {
|
|
|
3805
3805
|
}), y;
|
|
3806
3806
|
},
|
|
3807
3807
|
// Traverse a language definition with Depth First Search
|
|
3808
|
-
DFS: function u(
|
|
3808
|
+
DFS: function u(h, E, b, w) {
|
|
3809
3809
|
w = w || {};
|
|
3810
3810
|
var y = n.util.objId;
|
|
3811
|
-
for (var L in
|
|
3812
|
-
if (
|
|
3813
|
-
E.call(
|
|
3814
|
-
var $ =
|
|
3811
|
+
for (var L in h)
|
|
3812
|
+
if (h.hasOwnProperty(L)) {
|
|
3813
|
+
E.call(h, L, h[L], b || L);
|
|
3814
|
+
var $ = h[L], M = n.util.type($);
|
|
3815
3815
|
M === "Object" && !w[y($)] ? (w[y($)] = !0, u($, E, null, w)) : M === "Array" && !w[y($)] && (w[y($)] = !0, u($, E, L, w));
|
|
3816
3816
|
}
|
|
3817
3817
|
}
|
|
@@ -3829,8 +3829,8 @@ function N1() {
|
|
|
3829
3829
|
* @memberof Prism
|
|
3830
3830
|
* @public
|
|
3831
3831
|
*/
|
|
3832
|
-
highlightAll: function(u,
|
|
3833
|
-
n.highlightAllUnder(document, u,
|
|
3832
|
+
highlightAll: function(u, h) {
|
|
3833
|
+
n.highlightAllUnder(document, u, h);
|
|
3834
3834
|
},
|
|
3835
3835
|
/**
|
|
3836
3836
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -3847,7 +3847,7 @@ function N1() {
|
|
|
3847
3847
|
* @memberof Prism
|
|
3848
3848
|
* @public
|
|
3849
3849
|
*/
|
|
3850
|
-
highlightAllUnder: function(u,
|
|
3850
|
+
highlightAllUnder: function(u, h, E) {
|
|
3851
3851
|
var b = {
|
|
3852
3852
|
callback: E,
|
|
3853
3853
|
container: u,
|
|
@@ -3855,7 +3855,7 @@ function N1() {
|
|
|
3855
3855
|
};
|
|
3856
3856
|
n.hooks.run("before-highlightall", b), b.elements = Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)), n.hooks.run("before-all-elements-highlight", b);
|
|
3857
3857
|
for (var w = 0, y; y = b.elements[w++]; )
|
|
3858
|
-
n.highlightElement(y,
|
|
3858
|
+
n.highlightElement(y, h === !0, b.callback);
|
|
3859
3859
|
},
|
|
3860
3860
|
/**
|
|
3861
3861
|
* Highlights the code inside a single element.
|
|
@@ -3885,7 +3885,7 @@ function N1() {
|
|
|
3885
3885
|
* @memberof Prism
|
|
3886
3886
|
* @public
|
|
3887
3887
|
*/
|
|
3888
|
-
highlightElement: function(u,
|
|
3888
|
+
highlightElement: function(u, h, E) {
|
|
3889
3889
|
var b = n.util.getLanguage(u), w = n.languages[b];
|
|
3890
3890
|
n.util.setLanguage(u, b);
|
|
3891
3891
|
var y = u.parentElement;
|
|
@@ -3907,7 +3907,7 @@ function N1() {
|
|
|
3907
3907
|
M(n.util.encode($.code));
|
|
3908
3908
|
return;
|
|
3909
3909
|
}
|
|
3910
|
-
if (
|
|
3910
|
+
if (h && c.Worker) {
|
|
3911
3911
|
var k = new Worker(n.filename);
|
|
3912
3912
|
k.onmessage = function(z) {
|
|
3913
3913
|
M(z.data);
|
|
@@ -3939,10 +3939,10 @@ function N1() {
|
|
|
3939
3939
|
* @example
|
|
3940
3940
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
3941
3941
|
*/
|
|
3942
|
-
highlight: function(u,
|
|
3942
|
+
highlight: function(u, h, E) {
|
|
3943
3943
|
var b = {
|
|
3944
3944
|
code: u,
|
|
3945
|
-
grammar:
|
|
3945
|
+
grammar: h,
|
|
3946
3946
|
language: E
|
|
3947
3947
|
};
|
|
3948
3948
|
if (n.hooks.run("before-tokenize", b), !b.grammar)
|
|
@@ -3973,15 +3973,15 @@ function N1() {
|
|
|
3973
3973
|
* }
|
|
3974
3974
|
* });
|
|
3975
3975
|
*/
|
|
3976
|
-
tokenize: function(u,
|
|
3977
|
-
var E =
|
|
3976
|
+
tokenize: function(u, h) {
|
|
3977
|
+
var E = h.rest;
|
|
3978
3978
|
if (E) {
|
|
3979
3979
|
for (var b in E)
|
|
3980
|
-
|
|
3981
|
-
delete
|
|
3980
|
+
h[b] = E[b];
|
|
3981
|
+
delete h.rest;
|
|
3982
3982
|
}
|
|
3983
3983
|
var w = new v();
|
|
3984
|
-
return
|
|
3984
|
+
return f(w, w.head, u), m(u, w, h, w.head, 0), g(w);
|
|
3985
3985
|
},
|
|
3986
3986
|
/**
|
|
3987
3987
|
* @namespace
|
|
@@ -4002,9 +4002,9 @@ function N1() {
|
|
|
4002
4002
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
4003
4003
|
* @public
|
|
4004
4004
|
*/
|
|
4005
|
-
add: function(u,
|
|
4005
|
+
add: function(u, h) {
|
|
4006
4006
|
var E = n.hooks.all;
|
|
4007
|
-
E[u] = E[u] || [], E[u].push(
|
|
4007
|
+
E[u] = E[u] || [], E[u].push(h);
|
|
4008
4008
|
},
|
|
4009
4009
|
/**
|
|
4010
4010
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -4015,44 +4015,44 @@ function N1() {
|
|
|
4015
4015
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
4016
4016
|
* @public
|
|
4017
4017
|
*/
|
|
4018
|
-
run: function(u,
|
|
4018
|
+
run: function(u, h) {
|
|
4019
4019
|
var E = n.hooks.all[u];
|
|
4020
4020
|
if (!(!E || !E.length))
|
|
4021
4021
|
for (var b = 0, w; w = E[b++]; )
|
|
4022
|
-
w(
|
|
4022
|
+
w(h);
|
|
4023
4023
|
}
|
|
4024
4024
|
},
|
|
4025
4025
|
Token: d
|
|
4026
4026
|
};
|
|
4027
4027
|
c.Prism = n;
|
|
4028
|
-
function d(u,
|
|
4029
|
-
this.type = u, this.content =
|
|
4028
|
+
function d(u, h, E, b) {
|
|
4029
|
+
this.type = u, this.content = h, this.alias = E, this.length = (b || "").length | 0;
|
|
4030
4030
|
}
|
|
4031
|
-
d.stringify = function u(
|
|
4032
|
-
if (typeof
|
|
4033
|
-
return
|
|
4034
|
-
if (Array.isArray(
|
|
4031
|
+
d.stringify = function u(h, E) {
|
|
4032
|
+
if (typeof h == "string")
|
|
4033
|
+
return h;
|
|
4034
|
+
if (Array.isArray(h)) {
|
|
4035
4035
|
var b = "";
|
|
4036
|
-
return
|
|
4036
|
+
return h.forEach(function(M) {
|
|
4037
4037
|
b += u(M, E);
|
|
4038
4038
|
}), b;
|
|
4039
4039
|
}
|
|
4040
4040
|
var w = {
|
|
4041
|
-
type:
|
|
4042
|
-
content: u(
|
|
4041
|
+
type: h.type,
|
|
4042
|
+
content: u(h.content, E),
|
|
4043
4043
|
tag: "span",
|
|
4044
|
-
classes: ["token",
|
|
4044
|
+
classes: ["token", h.type],
|
|
4045
4045
|
attributes: {},
|
|
4046
4046
|
language: E
|
|
4047
|
-
}, y =
|
|
4047
|
+
}, y = h.alias;
|
|
4048
4048
|
y && (Array.isArray(y) ? Array.prototype.push.apply(w.classes, y) : w.classes.push(y)), n.hooks.run("wrap", w);
|
|
4049
4049
|
var L = "";
|
|
4050
4050
|
for (var $ in w.attributes)
|
|
4051
4051
|
L += " " + $ + '="' + (w.attributes[$] || "").replace(/"/g, """) + '"';
|
|
4052
4052
|
return "<" + w.tag + ' class="' + w.classes.join(" ") + '"' + L + ">" + w.content + "</" + w.tag + ">";
|
|
4053
4053
|
};
|
|
4054
|
-
function i(u,
|
|
4055
|
-
u.lastIndex =
|
|
4054
|
+
function i(u, h, E, b) {
|
|
4055
|
+
u.lastIndex = h;
|
|
4056
4056
|
var w = u.exec(E);
|
|
4057
4057
|
if (w && b && w[1]) {
|
|
4058
4058
|
var y = w[1].length;
|
|
@@ -4060,7 +4060,7 @@ function N1() {
|
|
|
4060
4060
|
}
|
|
4061
4061
|
return w;
|
|
4062
4062
|
}
|
|
4063
|
-
function m(u,
|
|
4063
|
+
function m(u, h, E, b, w, y) {
|
|
4064
4064
|
for (var L in E)
|
|
4065
4065
|
if (!(!E.hasOwnProperty(L) || !E[L])) {
|
|
4066
4066
|
var $ = E[L];
|
|
@@ -4068,41 +4068,41 @@ function N1() {
|
|
|
4068
4068
|
for (var M = 0; M < $.length; ++M) {
|
|
4069
4069
|
if (y && y.cause == L + "," + M)
|
|
4070
4070
|
return;
|
|
4071
|
-
var k = $[M], z = k.inside, F = !!k.lookbehind,
|
|
4072
|
-
if (
|
|
4071
|
+
var k = $[M], z = k.inside, F = !!k.lookbehind, I = !!k.greedy, V = k.alias;
|
|
4072
|
+
if (I && !k.pattern.global) {
|
|
4073
4073
|
var O = k.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4074
4074
|
k.pattern = RegExp(k.pattern.source, O + "g");
|
|
4075
4075
|
}
|
|
4076
|
-
for (var
|
|
4076
|
+
for (var Z = k.pattern || k, P = b.next, Y = w; P !== h.tail && !(y && Y >= y.reach); Y += P.value.length, P = P.next) {
|
|
4077
4077
|
var Q = P.value;
|
|
4078
|
-
if (
|
|
4078
|
+
if (h.length > u.length)
|
|
4079
4079
|
return;
|
|
4080
4080
|
if (!(Q instanceof d)) {
|
|
4081
4081
|
var j = 1, K;
|
|
4082
|
-
if (
|
|
4083
|
-
if (K = i(
|
|
4082
|
+
if (I) {
|
|
4083
|
+
if (K = i(Z, Y, u, F), !K || K.index >= u.length)
|
|
4084
4084
|
break;
|
|
4085
|
-
var S = K.index, X = K.index + K[0].length,
|
|
4086
|
-
for (
|
|
4087
|
-
P = P.next,
|
|
4088
|
-
if (
|
|
4085
|
+
var S = K.index, X = K.index + K[0].length, A = Y;
|
|
4086
|
+
for (A += P.value.length; S >= A; )
|
|
4087
|
+
P = P.next, A += P.value.length;
|
|
4088
|
+
if (A -= P.value.length, Y = A, P.value instanceof d)
|
|
4089
4089
|
continue;
|
|
4090
|
-
for (var x = P; x !==
|
|
4091
|
-
j++,
|
|
4092
|
-
j--, Q = u.slice(Y,
|
|
4093
|
-
} else if (K = i(
|
|
4090
|
+
for (var x = P; x !== h.tail && (A < X || typeof x.value == "string"); x = x.next)
|
|
4091
|
+
j++, A += x.value.length;
|
|
4092
|
+
j--, Q = u.slice(Y, A), K.index -= Y;
|
|
4093
|
+
} else if (K = i(Z, 0, Q, F), !K)
|
|
4094
4094
|
continue;
|
|
4095
|
-
var S = K.index,
|
|
4095
|
+
var S = K.index, T = K[0], G = Q.slice(0, S), D = Q.slice(S + T.length), U = Y + Q.length;
|
|
4096
4096
|
y && U > y.reach && (y.reach = U);
|
|
4097
4097
|
var ee = P.prev;
|
|
4098
|
-
G && (ee = h
|
|
4099
|
-
var ce = new d(L, z ? n.tokenize(
|
|
4100
|
-
if (P = h
|
|
4098
|
+
G && (ee = f(h, ee, G), Y += G.length), N(h, ee, j);
|
|
4099
|
+
var ce = new d(L, z ? n.tokenize(T, z) : T, V, T);
|
|
4100
|
+
if (P = f(h, ee, ce), D && f(h, P, D), j > 1) {
|
|
4101
4101
|
var me = {
|
|
4102
4102
|
cause: L + "," + M,
|
|
4103
4103
|
reach: U
|
|
4104
4104
|
};
|
|
4105
|
-
m(u,
|
|
4105
|
+
m(u, h, E, P.prev, Y, me), y && me.reach > y.reach && (y.reach = me.reach);
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
@@ -4110,26 +4110,26 @@ function N1() {
|
|
|
4110
4110
|
}
|
|
4111
4111
|
}
|
|
4112
4112
|
function v() {
|
|
4113
|
-
var u = { value: null, prev: null, next: null },
|
|
4114
|
-
u.next =
|
|
4113
|
+
var u = { value: null, prev: null, next: null }, h = { value: null, prev: u, next: null };
|
|
4114
|
+
u.next = h, this.head = u, this.tail = h, this.length = 0;
|
|
4115
4115
|
}
|
|
4116
|
-
function
|
|
4117
|
-
var b =
|
|
4118
|
-
return
|
|
4116
|
+
function f(u, h, E) {
|
|
4117
|
+
var b = h.next, w = { value: E, prev: h, next: b };
|
|
4118
|
+
return h.next = w, b.prev = w, u.length++, w;
|
|
4119
4119
|
}
|
|
4120
|
-
function N(u,
|
|
4121
|
-
for (var b =
|
|
4120
|
+
function N(u, h, E) {
|
|
4121
|
+
for (var b = h.next, w = 0; w < E && b !== u.tail; w++)
|
|
4122
4122
|
b = b.next;
|
|
4123
|
-
|
|
4123
|
+
h.next = b, b.prev = h, u.length -= w;
|
|
4124
4124
|
}
|
|
4125
4125
|
function g(u) {
|
|
4126
|
-
for (var
|
|
4127
|
-
|
|
4128
|
-
return
|
|
4126
|
+
for (var h = [], E = u.head.next; E !== u.tail; )
|
|
4127
|
+
h.push(E.value), E = E.next;
|
|
4128
|
+
return h;
|
|
4129
4129
|
}
|
|
4130
4130
|
if (!c.document)
|
|
4131
4131
|
return c.addEventListener && (n.disableWorkerMessageHandler || c.addEventListener("message", function(u) {
|
|
4132
|
-
var
|
|
4132
|
+
var h = JSON.parse(u.data), E = h.language, b = h.code, w = h.immediateClose;
|
|
4133
4133
|
c.postMessage(n.highlight(b, n.languages[E], E)), w && c.close();
|
|
4134
4134
|
}, !1)), n;
|
|
4135
4135
|
var p = n.util.currentScript();
|
|
@@ -4355,7 +4355,7 @@ const y1 = /* @__PURE__ */ $1(w1), L1 = {
|
|
|
4355
4355
|
className: n,
|
|
4356
4356
|
...d
|
|
4357
4357
|
}) => {
|
|
4358
|
-
const i = "pds-skeleton", m = `${i}--${a}`, v = s ? `pds-pulse pds-pulse--${t}` : `${i}--${t}`,
|
|
4358
|
+
const i = "pds-skeleton", m = `${i}--${a}`, v = s ? `pds-pulse pds-pulse--${t}` : `${i}--${t}`, f = ["text-block", "code-block", "code-block-prefix"], N = c?.height ? typeof c.height == "number" ? `${c.height}rem` : `${p2[`SPACING_${c.height.toUpperCase()}`]}rem` : "1rem", g = c?.width ? typeof c.width == "number" ? `${c.width}rem` : `${p2[`SPACING_${c.width.toUpperCase()}`]}rem` : "100%";
|
|
4359
4359
|
let p = {
|
|
4360
4360
|
height: N,
|
|
4361
4361
|
width: g
|
|
@@ -4376,7 +4376,7 @@ const y1 = /* @__PURE__ */ $1(w1), L1 = {
|
|
|
4376
4376
|
style: p,
|
|
4377
4377
|
...d
|
|
4378
4378
|
}
|
|
4379
|
-
),
|
|
4379
|
+
), h = Math.max(1, Math.min(r, a === "code-block" || a === "code-block-prefix" ? 15 : 5));
|
|
4380
4380
|
let E = `${h2[`TYPE_SCALE_${l.toUpperCase()}`] * 0.75}rem`;
|
|
4381
4381
|
(a === "code-block" || a === "code-block-prefix") && (E = `${h2[`TYPE_SCALE_${l.toUpperCase()}`] * 1.25}rem`);
|
|
4382
4382
|
const b = `calc(var(--pds-typography-size-${l}) * 0.75)`, w = (M) => {
|
|
@@ -4387,14 +4387,14 @@ const y1 = /* @__PURE__ */ $1(w1), L1 = {
|
|
|
4387
4387
|
return k === 2 ? `calc(${g} * 0.75)` : k % 2 === 1 ? `calc(${g} * 0.85)` : `calc(${g} * 0.75)`;
|
|
4388
4388
|
}
|
|
4389
4389
|
if (a === "code-block" || a === "code-block-prefix")
|
|
4390
|
-
return M ===
|
|
4390
|
+
return M === h - 1 ? `calc(${g} * 0.80)` : g;
|
|
4391
4391
|
}, y = () => `var(--pds-typography-size-${l})`, L = (M) => {
|
|
4392
|
-
if (!(a === "code-block" || a === "code-block-prefix") ||
|
|
4392
|
+
if (!(a === "code-block" || a === "code-block-prefix") || h < 5)
|
|
4393
4393
|
return 1;
|
|
4394
|
-
const z = Math.ceil(
|
|
4394
|
+
const z = Math.ceil(h / 2), F = Math.max(0, z - 1);
|
|
4395
4395
|
if (M < F)
|
|
4396
4396
|
return 1;
|
|
4397
|
-
const
|
|
4397
|
+
const I = h - F, V = M - F, O = 1 - 0.1, Z = V / I, P = 1 - O * Z;
|
|
4398
4398
|
return Math.max(0.1, P);
|
|
4399
4399
|
}, $ = /* @__PURE__ */ e.createElement(
|
|
4400
4400
|
"div",
|
|
@@ -4411,7 +4411,7 @@ const y1 = /* @__PURE__ */ $1(w1), L1 = {
|
|
|
4411
4411
|
},
|
|
4412
4412
|
...d
|
|
4413
4413
|
},
|
|
4414
|
-
Array.from({ length:
|
|
4414
|
+
Array.from({ length: h }, (M, k) => /* @__PURE__ */ e.createElement(
|
|
4415
4415
|
"div",
|
|
4416
4416
|
{
|
|
4417
4417
|
key: k,
|
|
@@ -4449,7 +4449,7 @@ const y1 = /* @__PURE__ */ $1(w1), L1 = {
|
|
|
4449
4449
|
)
|
|
4450
4450
|
))
|
|
4451
4451
|
);
|
|
4452
|
-
return
|
|
4452
|
+
return f.includes(a) ? $ : _;
|
|
4453
4453
|
};
|
|
4454
4454
|
(function(t) {
|
|
4455
4455
|
var s = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", a = {
|
|
@@ -4725,13 +4725,13 @@ const an = ({
|
|
|
4725
4725
|
loadingLineCount: i = 1,
|
|
4726
4726
|
maxHeight: m,
|
|
4727
4727
|
promptSymbol: v = "$",
|
|
4728
|
-
renderAsLegacy:
|
|
4728
|
+
renderAsLegacy: f = !1,
|
|
4729
4729
|
shouldWrap: N = !1,
|
|
4730
4730
|
className: g,
|
|
4731
4731
|
...p
|
|
4732
4732
|
}) => {
|
|
4733
|
-
const _ = "pds-code-block", C = `${_}--${s}`, u = N ? `${_}__line-wrapped` : "",
|
|
4734
|
-
l && (
|
|
4733
|
+
const _ = "pds-code-block", C = `${_}--${s}`, u = N ? `${_}__line-wrapped` : "", h = {};
|
|
4734
|
+
l && (h.height = `${l}rem`), m && (h.maxHeight = `${m}rem`);
|
|
4735
4735
|
const E = s === "dark" ? "reverse" : "standard", b = s === "dark" ? L1 : H1, w = ["bash", "diff", "twig"], y = /* @__PURE__ */ e.createElement("div", { className: `${_}__code` }, /* @__PURE__ */ e.createElement(
|
|
4736
4736
|
J1,
|
|
4737
4737
|
{
|
|
@@ -4740,32 +4740,32 @@ const an = ({
|
|
|
4740
4740
|
shape: o || r ? "code-block-prefix" : "code-block",
|
|
4741
4741
|
colorType: s === "dark" ? "bold" : "regular"
|
|
4742
4742
|
}
|
|
4743
|
-
)), L = (
|
|
4743
|
+
)), L = (I) => {
|
|
4744
4744
|
const V = document.createElement("div");
|
|
4745
|
-
return V.innerHTML =
|
|
4746
|
-
|
|
4745
|
+
return V.innerHTML = I, V.querySelectorAll("br").forEach((Z) => {
|
|
4746
|
+
Z.replaceWith(`
|
|
4747
4747
|
`);
|
|
4748
4748
|
}), V.textContent || V.innerText || "";
|
|
4749
|
-
}, $ = (
|
|
4749
|
+
}, $ = (I) => I.split(/<br\s*\/?>/i).map((O, Z) => /* @__PURE__ */ e.createElement("div", { key: Z, className: `${_}__line ${u}` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__number` }, Z + 1), /* @__PURE__ */ e.createElement(
|
|
4750
4750
|
"span",
|
|
4751
4751
|
{
|
|
4752
4752
|
className: `${_}__line-content`,
|
|
4753
4753
|
dangerouslySetInnerHTML: { __html: O }
|
|
4754
4754
|
}
|
|
4755
|
-
))), M = (
|
|
4755
|
+
))), M = (I) => I.split(/<br\s*\/?>/i).map((O, Z) => /* @__PURE__ */ e.createElement("div", { key: Z, className: `${_}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__prompt` }, v), /* @__PURE__ */ e.createElement(
|
|
4756
4756
|
"span",
|
|
4757
4757
|
{
|
|
4758
4758
|
className: `${_}__line-content`,
|
|
4759
4759
|
dangerouslySetInnerHTML: { __html: O }
|
|
4760
4760
|
}
|
|
4761
4761
|
)));
|
|
4762
|
-
if (
|
|
4763
|
-
const
|
|
4762
|
+
if (f) {
|
|
4763
|
+
const I = L(t);
|
|
4764
4764
|
return /* @__PURE__ */ e.createElement(
|
|
4765
4765
|
"div",
|
|
4766
4766
|
{
|
|
4767
4767
|
className: H([_, C, g ?? ""]),
|
|
4768
|
-
style:
|
|
4768
|
+
style: h,
|
|
4769
4769
|
...p
|
|
4770
4770
|
},
|
|
4771
4771
|
n ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("pre", { className: `${_}__code`, tabIndex: 0 }, o || r ? o ? /* @__PURE__ */ e.createElement(e.Fragment, null, $(t)) : /* @__PURE__ */ e.createElement(e.Fragment, null, M(t)) : /* @__PURE__ */ e.createElement(
|
|
@@ -4778,7 +4778,7 @@ const an = ({
|
|
|
4778
4778
|
o2,
|
|
4779
4779
|
{
|
|
4780
4780
|
ariaLabel: a,
|
|
4781
|
-
clipboardText:
|
|
4781
|
+
clipboardText: I,
|
|
4782
4782
|
variant: E
|
|
4783
4783
|
}
|
|
4784
4784
|
)))
|
|
@@ -4789,7 +4789,7 @@ const an = ({
|
|
|
4789
4789
|
"div",
|
|
4790
4790
|
{
|
|
4791
4791
|
className: H([_, C, g ?? ""]),
|
|
4792
|
-
style:
|
|
4792
|
+
style: h,
|
|
4793
4793
|
...p
|
|
4794
4794
|
},
|
|
4795
4795
|
n ? y : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -4973,10 +4973,10 @@ const an = ({
|
|
|
4973
4973
|
className: m,
|
|
4974
4974
|
...v
|
|
4975
4975
|
}) => {
|
|
4976
|
-
let
|
|
4976
|
+
let f = !1;
|
|
4977
4977
|
const N = Ce(be);
|
|
4978
|
-
N && (
|
|
4979
|
-
const g = "pds-horizontal-empty-state", p = `${g}--${t}`, _ =
|
|
4978
|
+
N && (f = N.isMobile);
|
|
4979
|
+
const g = "pds-horizontal-empty-state", p = `${g}--${t}`, _ = f ? `${g}--isMobile` : null, C = c ? `${g}--panel` : null, u = n ? `${g}--video` : null, h = {
|
|
4980
4980
|
width: d,
|
|
4981
4981
|
marginLeft: i
|
|
4982
4982
|
};
|
|
@@ -4995,7 +4995,7 @@ const an = ({
|
|
|
4995
4995
|
]),
|
|
4996
4996
|
...v
|
|
4997
4997
|
},
|
|
4998
|
-
|
|
4998
|
+
f && n && E,
|
|
4999
4999
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement(
|
|
5000
5000
|
Xe,
|
|
5001
5001
|
{
|
|
@@ -5005,8 +5005,8 @@ const an = ({
|
|
|
5005
5005
|
},
|
|
5006
5006
|
o
|
|
5007
5007
|
), l && l, s && /* @__PURE__ */ e.createElement("div", { className: `${g}__cta` }, s)),
|
|
5008
|
-
!
|
|
5009
|
-
!
|
|
5008
|
+
!f && a && !n && /* @__PURE__ */ e.createElement("div", { className: `${g}__media`, style: h }, typeof a == "string" ? /* @__PURE__ */ e.createElement("img", { className: `${g}__image`, src: a, alt: "" }) : a),
|
|
5009
|
+
!f && n && E
|
|
5010
5010
|
);
|
|
5011
5011
|
}, mn = ({
|
|
5012
5012
|
ctaRegion: t,
|
|
@@ -5107,8 +5107,8 @@ const an = ({
|
|
|
5107
5107
|
...o
|
|
5108
5108
|
}) => {
|
|
5109
5109
|
const r = "pds-flow-steps", l = `${r}--${t}`, n = s === "horizontal" ? `${r}--horizontal` : "", d = a.map(({ header: i, content: m }, v) => {
|
|
5110
|
-
const
|
|
5111
|
-
return /* @__PURE__ */ e.createElement("li", { key: v, className: p }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
5110
|
+
const f = /* @__PURE__ */ e.createElement("div", { className: `${r}__number` }, /* @__PURE__ */ e.createElement("span", null, v + 1)), N = /* @__PURE__ */ e.createElement("div", { className: `${r}__header` }, i), g = m ? /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, m) : null, p = `${r}__step`;
|
|
5111
|
+
return /* @__PURE__ */ e.createElement("li", { key: v, className: p }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, f, /* @__PURE__ */ e.createElement("div", { className: `${r}__content-group` }, N, g)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${r}__header-group` }, f, N), g));
|
|
5112
5112
|
});
|
|
5113
5113
|
return /* @__PURE__ */ e.createElement(
|
|
5114
5114
|
"ol",
|
|
@@ -5170,14 +5170,14 @@ const an = ({
|
|
|
5170
5170
|
className: o,
|
|
5171
5171
|
...r
|
|
5172
5172
|
}) => {
|
|
5173
|
-
const l = "pds-site-footer", n = a ? `${l}--border` : null, d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), m = c.includes("privacy"), v = c.includes("dataSubjectRequest"),
|
|
5173
|
+
const l = "pds-site-footer", n = a ? `${l}--border` : null, d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), m = c.includes("privacy"), v = c.includes("dataSubjectRequest"), f = c.includes("cookiePolicy"), N = c.includes("termsOfUse"), g = c.includes("acceptableUse"), p = c.includes("accessibilityStatement");
|
|
5174
5174
|
return /* @__PURE__ */ e.createElement(
|
|
5175
5175
|
"footer",
|
|
5176
5176
|
{
|
|
5177
5177
|
className: H([l, n, o ?? ""]),
|
|
5178
5178
|
...r
|
|
5179
5179
|
},
|
|
5180
|
-
/* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", i, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"),
|
|
5180
|
+
/* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", i, " Pantheon Systems, Inc."), m && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Privacy Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), f && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Cookie Policy"), N && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Terms of Use"), g && /* @__PURE__ */ e.createElement("a", { href: "https://legal.pantheon.io" }, "Acceptable Use Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
5181
5181
|
);
|
|
5182
5182
|
}, ns = Ze(
|
|
5183
5183
|
({
|
|
@@ -5193,22 +5193,22 @@ const an = ({
|
|
|
5193
5193
|
name: i,
|
|
5194
5194
|
nestingLevel: m = 0,
|
|
5195
5195
|
onBlur: v,
|
|
5196
|
-
onChange:
|
|
5196
|
+
onChange: f,
|
|
5197
5197
|
onFocus: N,
|
|
5198
5198
|
required: g,
|
|
5199
5199
|
showLabel: p = !0,
|
|
5200
5200
|
size: _ = "M",
|
|
5201
5201
|
validationMessage: C,
|
|
5202
5202
|
validationStatus: u,
|
|
5203
|
-
value:
|
|
5203
|
+
value: h,
|
|
5204
5204
|
className: E,
|
|
5205
5205
|
...b
|
|
5206
5206
|
}, w) => {
|
|
5207
|
-
const y = l ? { width: `${l / 16}rem` } : null, L = "pds-checkbox", $ = a ? J.disabled : null, M = u === "error" ? J.error : null, k = m > 0 ? `${L}--indent-${m}` : null, z = g && !a ? J.required : null, F = _ === "S" ? `${L}--sm` : null,
|
|
5208
|
-
|
|
5207
|
+
const y = l ? { width: `${l / 16}rem` } : null, L = "pds-checkbox", $ = a ? J.disabled : null, M = u === "error" ? J.error : null, k = m > 0 ? `${L}--indent-${m}` : null, z = g && !a ? J.required : null, F = _ === "S" ? `${L}--sm` : null, I = u === "success" ? J.success : null, V = C || d, O = typeof t < "u", Z = typeof s < "u", [P, Y] = W(
|
|
5208
|
+
Z ? s : !1
|
|
5209
5209
|
), Q = t || P, j = (S) => {
|
|
5210
|
-
O || Y(S.target.checked),
|
|
5211
|
-
}, K = `${L}__box`, X = o ? null : Q ? `${K}--checked` : null,
|
|
5210
|
+
O || Y(S.target.checked), f && f(S);
|
|
5211
|
+
}, K = `${L}__box`, X = o ? null : Q ? `${K}--checked` : null, A = o ? `${K}--indeterminate` : null, x = Wt(() => {
|
|
5212
5212
|
if (o)
|
|
5213
5213
|
return /* @__PURE__ */ e.createElement(
|
|
5214
5214
|
R,
|
|
@@ -5236,7 +5236,7 @@ const an = ({
|
|
|
5236
5236
|
$,
|
|
5237
5237
|
z,
|
|
5238
5238
|
M,
|
|
5239
|
-
|
|
5239
|
+
I,
|
|
5240
5240
|
F,
|
|
5241
5241
|
k,
|
|
5242
5242
|
E ?? ""
|
|
@@ -5253,7 +5253,7 @@ const an = ({
|
|
|
5253
5253
|
type: "checkbox",
|
|
5254
5254
|
checked: O ? t : P,
|
|
5255
5255
|
"aria-checked": o ? "mixed" : Q ? "true" : "false",
|
|
5256
|
-
...
|
|
5256
|
+
...h ? { value: h } : {},
|
|
5257
5257
|
disabled: a,
|
|
5258
5258
|
required: g,
|
|
5259
5259
|
onBlur: v,
|
|
@@ -5269,7 +5269,7 @@ const an = ({
|
|
|
5269
5269
|
className: H([
|
|
5270
5270
|
K,
|
|
5271
5271
|
X,
|
|
5272
|
-
|
|
5272
|
+
A
|
|
5273
5273
|
])
|
|
5274
5274
|
},
|
|
5275
5275
|
/* @__PURE__ */ e.createElement(x, null)
|
|
@@ -5310,10 +5310,10 @@ const an = ({
|
|
|
5310
5310
|
tooltipText: i = null,
|
|
5311
5311
|
validationMessage: m,
|
|
5312
5312
|
validationStatus: v,
|
|
5313
|
-
className:
|
|
5313
|
+
className: f,
|
|
5314
5314
|
...N
|
|
5315
5315
|
}) => {
|
|
5316
|
-
const g = o ? { width: `${o / 16}rem` } : null, p = "pds-checkbox-group", _ = s ? J.disabled : null, C = n && !s ? J.required : null, u = v === "error" ? J.error : null,
|
|
5316
|
+
const g = o ? { width: `${o / 16}rem` } : null, p = "pds-checkbox-group", _ = s ? J.disabled : null, C = n && !s ? J.required : null, u = v === "error" ? J.error : null, h = v === "success" ? J.success : null, E = m || l;
|
|
5317
5317
|
return /* @__PURE__ */ e.createElement(
|
|
5318
5318
|
"div",
|
|
5319
5319
|
{
|
|
@@ -5322,8 +5322,8 @@ const an = ({
|
|
|
5322
5322
|
_,
|
|
5323
5323
|
C,
|
|
5324
5324
|
u,
|
|
5325
|
-
|
|
5326
|
-
|
|
5325
|
+
h,
|
|
5326
|
+
f ?? ""
|
|
5327
5327
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5328
5328
|
style: o ? g : null,
|
|
5329
5329
|
...N
|
|
@@ -5364,12 +5364,12 @@ const an = ({
|
|
|
5364
5364
|
required: i = !1,
|
|
5365
5365
|
showLabel: m = !0,
|
|
5366
5366
|
tooltipText: v = null,
|
|
5367
|
-
validationMessage:
|
|
5367
|
+
validationMessage: f,
|
|
5368
5368
|
validationStatus: N,
|
|
5369
5369
|
className: g,
|
|
5370
5370
|
...p
|
|
5371
5371
|
}) => {
|
|
5372
|
-
const _ = c ? { width: `${c / 16}rem` } : null, C = "pds-checkbox-group", u = t ? J.disabled : null,
|
|
5372
|
+
const _ = c ? { width: `${c / 16}rem` } : null, C = "pds-checkbox-group", u = t ? J.disabled : null, h = i && !t ? J.required : null, E = N === "error" ? J.error : null, b = N === "success" ? J.success : null, w = f || r;
|
|
5373
5373
|
d.map((z) => {
|
|
5374
5374
|
z.id || (z.id = z.value);
|
|
5375
5375
|
});
|
|
@@ -5377,9 +5377,9 @@ const an = ({
|
|
|
5377
5377
|
d.map((z) => {
|
|
5378
5378
|
z.checked === !0 && y.push(z.value);
|
|
5379
5379
|
});
|
|
5380
|
-
const [L, $] =
|
|
5381
|
-
const { value: F } = z.target,
|
|
5382
|
-
$(
|
|
5380
|
+
const [L, $] = W(y), M = (z) => {
|
|
5381
|
+
const { value: F } = z.target, I = L.includes(F) ? L.filter((V) => V !== F) : [...L, F];
|
|
5382
|
+
$(I), n && n(I);
|
|
5383
5383
|
};
|
|
5384
5384
|
d.map((z) => {
|
|
5385
5385
|
L.includes(z.value) ? z.checked = !0 : z.checked = !1;
|
|
@@ -5395,7 +5395,7 @@ const an = ({
|
|
|
5395
5395
|
className: [
|
|
5396
5396
|
C,
|
|
5397
5397
|
u,
|
|
5398
|
-
|
|
5398
|
+
h,
|
|
5399
5399
|
E,
|
|
5400
5400
|
b,
|
|
5401
5401
|
g ?? ""
|
|
@@ -5434,7 +5434,7 @@ const an = ({
|
|
|
5434
5434
|
{
|
|
5435
5435
|
id: a,
|
|
5436
5436
|
message: w,
|
|
5437
|
-
hasValidationMessage: !!
|
|
5437
|
+
hasValidationMessage: !!f,
|
|
5438
5438
|
validationMessageHasDecorators: !0,
|
|
5439
5439
|
validationStatus: N
|
|
5440
5440
|
}
|
|
@@ -5459,14 +5459,14 @@ const an = ({
|
|
|
5459
5459
|
triggerButton: "Toggle dropdown menu"
|
|
5460
5460
|
},
|
|
5461
5461
|
loadingText: v = "Loading results...",
|
|
5462
|
-
message:
|
|
5462
|
+
message: f,
|
|
5463
5463
|
noResultsText: N = "No results found",
|
|
5464
5464
|
onChange: g,
|
|
5465
5465
|
onBlur: p,
|
|
5466
5466
|
onClear: _,
|
|
5467
5467
|
onFocus: C,
|
|
5468
5468
|
onOptionSelect: u,
|
|
5469
|
-
options:
|
|
5469
|
+
options: h,
|
|
5470
5470
|
placeholder: E,
|
|
5471
5471
|
required: b = !1,
|
|
5472
5472
|
showLabel: w = !0,
|
|
@@ -5477,21 +5477,21 @@ const an = ({
|
|
|
5477
5477
|
className: k,
|
|
5478
5478
|
...z
|
|
5479
5479
|
}, F) => {
|
|
5480
|
-
const
|
|
5480
|
+
const I = We(n), V = "pds-combobox", O = s ? J.disabled : null, Z = b && !s ? J.required : null, P = M === "error" ? J.error : null, Y = M === "success" ? J.success : null;
|
|
5481
5481
|
let Q = null;
|
|
5482
5482
|
o && (Q = "search"), M === "error" && (Q = "error"), M === "success" && (Q = "success");
|
|
5483
|
-
const j = $ ||
|
|
5484
|
-
const ne =
|
|
5483
|
+
const j = $ || f, K = typeof L < "u", X = typeof t < "u", A = (q) => {
|
|
5484
|
+
const ne = h.find((oe) => oe.value === q);
|
|
5485
5485
|
return ne ? ne.label : "";
|
|
5486
|
-
}, [x, S] =
|
|
5487
|
-
X ?
|
|
5488
|
-
), [ee, ce] =
|
|
5486
|
+
}, [x, S] = W(!1), [T, G] = W(null), [D, U] = W(
|
|
5487
|
+
X ? A(t) : ""
|
|
5488
|
+
), [ee, ce] = W([]), me = K ? L : D, fe = le([]), { context: te, refs: ie } = ke({
|
|
5489
5489
|
open: x,
|
|
5490
5490
|
onOpenChange: S,
|
|
5491
5491
|
whileElementsMounted: xe
|
|
5492
5492
|
}), re = Ve(te, { role: "listbox" }), ge = Se(te), Le = it(te, {
|
|
5493
5493
|
listRef: fe,
|
|
5494
|
-
activeIndex:
|
|
5494
|
+
activeIndex: T,
|
|
5495
5495
|
onNavigate: G,
|
|
5496
5496
|
virtual: !0,
|
|
5497
5497
|
loop: !0,
|
|
@@ -5535,7 +5535,7 @@ const an = ({
|
|
|
5535
5535
|
};
|
|
5536
5536
|
});
|
|
5537
5537
|
ae(() => {
|
|
5538
|
-
const q = B(
|
|
5538
|
+
const q = B(h).filter(
|
|
5539
5539
|
(ne) => {
|
|
5540
5540
|
const oe = ne.searchIndex?.map(
|
|
5541
5541
|
(de) => de.toLowerCase()
|
|
@@ -5544,7 +5544,7 @@ const an = ({
|
|
|
5544
5544
|
}
|
|
5545
5545
|
);
|
|
5546
5546
|
ce(q);
|
|
5547
|
-
}, [me, d,
|
|
5547
|
+
}, [me, d, h]);
|
|
5548
5548
|
const se = ee.map((q, ne) => {
|
|
5549
5549
|
const { label: oe, value: pe, optionDisplay: de } = q;
|
|
5550
5550
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5560,8 +5560,8 @@ const an = ({
|
|
|
5560
5560
|
we(ne), ie.domReference.current?.focus();
|
|
5561
5561
|
}
|
|
5562
5562
|
}),
|
|
5563
|
-
tabIndex:
|
|
5564
|
-
isActive:
|
|
5563
|
+
tabIndex: T === ne ? 0 : -1,
|
|
5564
|
+
isActive: T === ne
|
|
5565
5565
|
},
|
|
5566
5566
|
de || oe
|
|
5567
5567
|
);
|
|
@@ -5573,12 +5573,12 @@ const an = ({
|
|
|
5573
5573
|
J.base,
|
|
5574
5574
|
V,
|
|
5575
5575
|
O,
|
|
5576
|
-
|
|
5576
|
+
Z,
|
|
5577
5577
|
P,
|
|
5578
5578
|
Y,
|
|
5579
5579
|
k ?? ""
|
|
5580
5580
|
]),
|
|
5581
|
-
style: n ?
|
|
5581
|
+
style: n ? I : null,
|
|
5582
5582
|
...z
|
|
5583
5583
|
},
|
|
5584
5584
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5621,7 +5621,7 @@ const an = ({
|
|
|
5621
5621
|
onChange: _e,
|
|
5622
5622
|
onFocus: Ne,
|
|
5623
5623
|
onKeyDown(q) {
|
|
5624
|
-
q.key === "Enter" &&
|
|
5624
|
+
q.key === "Enter" && T != null && ee[T] && we(T);
|
|
5625
5625
|
}
|
|
5626
5626
|
})
|
|
5627
5627
|
}
|
|
@@ -5714,23 +5714,23 @@ const an = ({
|
|
|
5714
5714
|
onChange: i,
|
|
5715
5715
|
options: m,
|
|
5716
5716
|
placeholder: v = "Filter",
|
|
5717
|
-
required:
|
|
5717
|
+
required: f = !1,
|
|
5718
5718
|
showLabel: N = !0,
|
|
5719
5719
|
className: g,
|
|
5720
5720
|
...p
|
|
5721
5721
|
}) => {
|
|
5722
|
-
const _ = We(c), C = "pds-combobox-multi", u = t ? J.disabled : null,
|
|
5722
|
+
const _ = We(c), C = "pds-combobox-multi", u = t ? J.disabled : null, h = f && !t ? J.required : null, [E, b] = W(""), [w, y] = W(a), [L, $] = W(
|
|
5723
5723
|
null
|
|
5724
5724
|
), M = N2(
|
|
5725
5725
|
() => ls(m, w, E),
|
|
5726
5726
|
[m, w, E]
|
|
5727
5727
|
), k = (S) => {
|
|
5728
5728
|
y(S), i?.(S);
|
|
5729
|
-
}, { getSelectedItemProps: z, getDropdownProps: F, removeSelectedItem:
|
|
5729
|
+
}, { getSelectedItemProps: z, getDropdownProps: F, removeSelectedItem: I } = pt({
|
|
5730
5730
|
selectedItems: w,
|
|
5731
|
-
onStateChange: ({ selectedItems: S, type:
|
|
5731
|
+
onStateChange: ({ selectedItems: S, type: T }) => {
|
|
5732
5732
|
if (!t)
|
|
5733
|
-
switch (
|
|
5733
|
+
switch (T) {
|
|
5734
5734
|
case pt.stateChangeTypes.SelectedItemKeyDownBackspace:
|
|
5735
5735
|
case pt.stateChangeTypes.SelectedItemKeyDownDelete:
|
|
5736
5736
|
case pt.stateChangeTypes.DropdownKeyDownBackspace:
|
|
@@ -5742,7 +5742,7 @@ const an = ({
|
|
|
5742
5742
|
}), {
|
|
5743
5743
|
isOpen: V,
|
|
5744
5744
|
highlightedIndex: O,
|
|
5745
|
-
selectedItem:
|
|
5745
|
+
selectedItem: Z,
|
|
5746
5746
|
getToggleButtonProps: P,
|
|
5747
5747
|
getMenuProps: Y,
|
|
5748
5748
|
getInputProps: Q,
|
|
@@ -5753,26 +5753,26 @@ const an = ({
|
|
|
5753
5753
|
selectedItem: null,
|
|
5754
5754
|
inputValue: E,
|
|
5755
5755
|
isOpen: t ? !1 : void 0,
|
|
5756
|
-
stateReducer: (S, { changes:
|
|
5756
|
+
stateReducer: (S, { changes: T, type: G }) => {
|
|
5757
5757
|
if (t) return S;
|
|
5758
5758
|
switch (G) {
|
|
5759
5759
|
case et.stateChangeTypes.InputKeyDownEnter:
|
|
5760
5760
|
case et.stateChangeTypes.ItemClick:
|
|
5761
5761
|
return {
|
|
5762
|
-
...
|
|
5762
|
+
...T,
|
|
5763
5763
|
isOpen: !0
|
|
5764
5764
|
};
|
|
5765
5765
|
default:
|
|
5766
|
-
return
|
|
5766
|
+
return T;
|
|
5767
5767
|
}
|
|
5768
5768
|
},
|
|
5769
5769
|
onStateChange: ({
|
|
5770
5770
|
inputValue: S,
|
|
5771
|
-
type:
|
|
5771
|
+
type: T,
|
|
5772
5772
|
selectedItem: G
|
|
5773
5773
|
}) => {
|
|
5774
5774
|
if (!t)
|
|
5775
|
-
switch (
|
|
5775
|
+
switch (T) {
|
|
5776
5776
|
case et.stateChangeTypes.InputKeyDownEnter:
|
|
5777
5777
|
case et.stateChangeTypes.ItemClick:
|
|
5778
5778
|
case et.stateChangeTypes.InputBlur:
|
|
@@ -5795,10 +5795,10 @@ const an = ({
|
|
|
5795
5795
|
}, X = (S) => {
|
|
5796
5796
|
if (!t && ((S.key === "Backspace" || S.key === "Delete") && !E && w.length > 0 && (S.preventDefault(), K()), S.key === "Enter" && L !== null && (S.preventDefault(), K()), S.key === "ArrowDown" && !V)) {
|
|
5797
5797
|
S.preventDefault();
|
|
5798
|
-
const
|
|
5799
|
-
P().onClick?.(
|
|
5798
|
+
const T = S.nativeEvent;
|
|
5799
|
+
P().onClick?.(T);
|
|
5800
5800
|
}
|
|
5801
|
-
},
|
|
5801
|
+
}, A = Q({
|
|
5802
5802
|
...F({
|
|
5803
5803
|
preventKeyAction: V
|
|
5804
5804
|
}),
|
|
@@ -5812,7 +5812,7 @@ const an = ({
|
|
|
5812
5812
|
J.base,
|
|
5813
5813
|
C,
|
|
5814
5814
|
u,
|
|
5815
|
-
|
|
5815
|
+
h,
|
|
5816
5816
|
g ?? ""
|
|
5817
5817
|
]),
|
|
5818
5818
|
style: c ? _ : null,
|
|
@@ -5824,7 +5824,7 @@ const an = ({
|
|
|
5824
5824
|
id: s,
|
|
5825
5825
|
label: r,
|
|
5826
5826
|
showLabel: N,
|
|
5827
|
-
required:
|
|
5827
|
+
required: f,
|
|
5828
5828
|
disabled: t
|
|
5829
5829
|
}
|
|
5830
5830
|
),
|
|
@@ -5832,23 +5832,23 @@ const an = ({
|
|
|
5832
5832
|
"div",
|
|
5833
5833
|
{
|
|
5834
5834
|
"aria-disabled": t ? !0 : null,
|
|
5835
|
-
"aria-required":
|
|
5835
|
+
"aria-required": f ? !0 : null,
|
|
5836
5836
|
className: `${C}__input-wrapper`,
|
|
5837
5837
|
tabIndex: 0,
|
|
5838
5838
|
onKeyDown: X
|
|
5839
5839
|
},
|
|
5840
5840
|
w.length > 1 && /* @__PURE__ */ e.createElement("div", { className: `${C}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${C}__counter-wrapper` }, x)),
|
|
5841
|
-
w.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${C}__items-wrapper` }, w.map((S,
|
|
5841
|
+
w.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${C}__items-wrapper` }, w.map((S, T) => /* @__PURE__ */ e.createElement(
|
|
5842
5842
|
"span",
|
|
5843
5843
|
{
|
|
5844
5844
|
className: `
|
|
5845
5845
|
${C}__selected-item
|
|
5846
|
-
${
|
|
5846
|
+
${T === L ? `${C}__selected-item--marked-for-deletion` : ""}
|
|
5847
5847
|
`,
|
|
5848
|
-
key: `selected-item-${
|
|
5848
|
+
key: `selected-item-${T}`,
|
|
5849
5849
|
...z({
|
|
5850
5850
|
selectedItem: S,
|
|
5851
|
-
index:
|
|
5851
|
+
index: T
|
|
5852
5852
|
})
|
|
5853
5853
|
},
|
|
5854
5854
|
/* @__PURE__ */ e.createElement("span", { className: `${C}__selected-item-text` }, S.label),
|
|
@@ -5857,7 +5857,7 @@ const an = ({
|
|
|
5857
5857
|
{
|
|
5858
5858
|
className: `${C}__selected-item-remove`,
|
|
5859
5859
|
onClick: (G) => {
|
|
5860
|
-
G.stopPropagation(),
|
|
5860
|
+
G.stopPropagation(), I(S);
|
|
5861
5861
|
}
|
|
5862
5862
|
},
|
|
5863
5863
|
/* @__PURE__ */ e.createElement(R, { iconName: "xmark" })
|
|
@@ -5888,21 +5888,21 @@ const an = ({
|
|
|
5888
5888
|
placeholder: v,
|
|
5889
5889
|
className: `${C}__dropdown-input`,
|
|
5890
5890
|
"aria-label": l.inputInstructions,
|
|
5891
|
-
...
|
|
5891
|
+
...A,
|
|
5892
5892
|
onClick: (S) => {
|
|
5893
5893
|
S.stopPropagation();
|
|
5894
5894
|
}
|
|
5895
5895
|
}
|
|
5896
5896
|
)),
|
|
5897
|
-
o ? /* @__PURE__ */ e.createElement("div", { className: `${C}__loading` }, n) : M.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${C}__dropdown-list`, ...Y() }, M.map((S,
|
|
5897
|
+
o ? /* @__PURE__ */ e.createElement("div", { className: `${C}__loading` }, n) : M.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${C}__dropdown-list`, ...Y() }, M.map((S, T) => /* @__PURE__ */ e.createElement(
|
|
5898
5898
|
Lt,
|
|
5899
5899
|
{
|
|
5900
5900
|
className: `${C}__dropdown-item
|
|
5901
|
-
${O ===
|
|
5902
|
-
${
|
|
5901
|
+
${O === T ? `${C}__dropdown-item--highlighted` : ""}
|
|
5902
|
+
${Z === S ? `${C}__dropdown-item--selected` : ""}
|
|
5903
5903
|
${S.isAlreadySelected ? `${C}__dropdown-item--active` : ""}`,
|
|
5904
|
-
key: `${S.id}-${
|
|
5905
|
-
...j({ item: S, index:
|
|
5904
|
+
key: `${S.id}-${T}`,
|
|
5905
|
+
...j({ item: S, index: T })
|
|
5906
5906
|
},
|
|
5907
5907
|
/* @__PURE__ */ e.createElement("span", { className: `${C}__dropdown-item-label` }, S.label, S.isAlreadySelected && /* @__PURE__ */ e.createElement(
|
|
5908
5908
|
R,
|
|
@@ -5938,14 +5938,14 @@ const an = ({
|
|
|
5938
5938
|
required: i = !1,
|
|
5939
5939
|
showLabel: m,
|
|
5940
5940
|
tooltipText: v,
|
|
5941
|
-
translationStrings:
|
|
5941
|
+
translationStrings: f = cs,
|
|
5942
5942
|
value: N,
|
|
5943
5943
|
className: g,
|
|
5944
5944
|
...p
|
|
5945
5945
|
}) => {
|
|
5946
|
-
const [_, C] =
|
|
5946
|
+
const [_, C] = W(N), [u, h] = W(!1), [E, b] = W(null), [w, y] = W(""), L = We(c), $ = "pds-datepicker", M = t ? J.disabled : null, k = i && !t ? J.required : null, z = d && d.length > 0 && s ? "bottom-end" : "bottom-start", { refs: F, floatingStyles: I } = ke({
|
|
5947
5947
|
open: u,
|
|
5948
|
-
onOpenChange:
|
|
5948
|
+
onOpenChange: h,
|
|
5949
5949
|
placement: z,
|
|
5950
5950
|
middleware: [st(8), nt(), ot({ padding: 8 })],
|
|
5951
5951
|
whileElementsMounted: xe
|
|
@@ -5998,28 +5998,28 @@ const an = ({
|
|
|
5998
5998
|
}
|
|
5999
5999
|
}, O = (D) => {
|
|
6000
6000
|
C(D), l?.(D), y(""), s || setTimeout(() => {
|
|
6001
|
-
|
|
6001
|
+
h(!1);
|
|
6002
6002
|
}, 300);
|
|
6003
|
-
},
|
|
6003
|
+
}, Z = (D) => {
|
|
6004
6004
|
O(D);
|
|
6005
6005
|
}, P = (D) => {
|
|
6006
6006
|
O(D);
|
|
6007
6007
|
}, Y = () => {
|
|
6008
6008
|
C(void 0), l?.(void 0), y("");
|
|
6009
6009
|
}, Q = () => {
|
|
6010
|
-
|
|
6010
|
+
h(!1);
|
|
6011
6011
|
}, j = (D) => {
|
|
6012
6012
|
const U = d?.find((ce) => ce.label === D);
|
|
6013
6013
|
if (!U) return;
|
|
6014
6014
|
y(D);
|
|
6015
6015
|
const ee = V(U);
|
|
6016
6016
|
C(ee), l?.(ee), s || setTimeout(() => {
|
|
6017
|
-
|
|
6017
|
+
h(!1);
|
|
6018
6018
|
}, 300);
|
|
6019
6019
|
}, K = () => s ? _?.from : _, X = ({
|
|
6020
6020
|
className: D,
|
|
6021
6021
|
orientation: U
|
|
6022
|
-
}) => U === "left" ? /* @__PURE__ */ e.createElement(R, { iconName: "angleLeft", iconSize: "md", className: D }) : /* @__PURE__ */ e.createElement(R, { iconName: "angleRight", iconSize: "md", className: D }),
|
|
6022
|
+
}) => U === "left" ? /* @__PURE__ */ e.createElement(R, { iconName: "angleLeft", iconSize: "md", className: D }) : /* @__PURE__ */ e.createElement(R, { iconName: "angleRight", iconSize: "md", className: D }), A = (D) => H2(D, "EEEEE", { locale: r }), x = () => {
|
|
6023
6023
|
if (s) {
|
|
6024
6024
|
const D = _;
|
|
6025
6025
|
return D?.from ? D.to ? /* @__PURE__ */ e.createElement(e.Fragment, null, qe(D.from, r), /* @__PURE__ */ e.createElement("span", { className: `${$}__separator` }, " – "), qe(D.to, r)) : qe(D.from, r) : n || "";
|
|
@@ -6027,16 +6027,16 @@ const an = ({
|
|
|
6027
6027
|
const D = _;
|
|
6028
6028
|
return D ? qe(D, r) : n || "";
|
|
6029
6029
|
}
|
|
6030
|
-
}, S = () => s ? !_?.from : !_,
|
|
6030
|
+
}, S = () => s ? !_?.from : !_, T = () => {
|
|
6031
6031
|
if (s) {
|
|
6032
6032
|
const D = _;
|
|
6033
|
-
return D?.from ? D.to ? `${
|
|
6033
|
+
return D?.from ? D.to ? `${f.selectedDateRange}${qe(D.from, r)}${f.to}${qe(D.to, r)}` : `${f.selectedStartDate}${qe(D.from, r)}${f.pleaseSelectEndDate}` : f.noDateRangeSelected || "";
|
|
6034
6034
|
} else {
|
|
6035
6035
|
const D = _;
|
|
6036
|
-
return D ? `${
|
|
6036
|
+
return D ? `${f.selectedDate}${qe(D, r)}` : f.noDateSelected || "";
|
|
6037
6037
|
}
|
|
6038
6038
|
}, G = (D) => {
|
|
6039
|
-
F.floating.current && !F.floating.current.contains(D.target) && E && !E.contains(D.target) &&
|
|
6039
|
+
F.floating.current && !F.floating.current.contains(D.target) && E && !E.contains(D.target) && h(!1);
|
|
6040
6040
|
};
|
|
6041
6041
|
return ae(() => {
|
|
6042
6042
|
if (u)
|
|
@@ -6087,7 +6087,7 @@ const an = ({
|
|
|
6087
6087
|
},
|
|
6088
6088
|
className: `${$}__trigger`,
|
|
6089
6089
|
disabled: t,
|
|
6090
|
-
onClick: () =>
|
|
6090
|
+
onClick: () => h(!u),
|
|
6091
6091
|
type: "button",
|
|
6092
6092
|
"aria-haspopup": "dialog",
|
|
6093
6093
|
"aria-expanded": u
|
|
@@ -6114,7 +6114,7 @@ const an = ({
|
|
|
6114
6114
|
"div",
|
|
6115
6115
|
{
|
|
6116
6116
|
ref: F.setFloating,
|
|
6117
|
-
style:
|
|
6117
|
+
style: I,
|
|
6118
6118
|
className: `${$}__popover`
|
|
6119
6119
|
},
|
|
6120
6120
|
/* @__PURE__ */ e.createElement("div", { className: `${$}__calendar` }, s ? /* @__PURE__ */ e.createElement(
|
|
@@ -6122,17 +6122,17 @@ const an = ({
|
|
|
6122
6122
|
{
|
|
6123
6123
|
mode: "range",
|
|
6124
6124
|
selected: _,
|
|
6125
|
-
onSelect:
|
|
6125
|
+
onSelect: Z,
|
|
6126
6126
|
numberOfMonths: 2,
|
|
6127
6127
|
navLayout: "around",
|
|
6128
6128
|
defaultMonth: K(),
|
|
6129
6129
|
locale: r,
|
|
6130
|
-
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" },
|
|
6130
|
+
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, T()),
|
|
6131
6131
|
components: {
|
|
6132
6132
|
Chevron: X
|
|
6133
6133
|
},
|
|
6134
6134
|
formatters: {
|
|
6135
|
-
formatWeekdayName:
|
|
6135
|
+
formatWeekdayName: A
|
|
6136
6136
|
}
|
|
6137
6137
|
}
|
|
6138
6138
|
) : /* @__PURE__ */ e.createElement(
|
|
@@ -6145,19 +6145,19 @@ const an = ({
|
|
|
6145
6145
|
navLayout: "around",
|
|
6146
6146
|
defaultMonth: K(),
|
|
6147
6147
|
locale: r,
|
|
6148
|
-
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" },
|
|
6148
|
+
footer: /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, T()),
|
|
6149
6149
|
components: {
|
|
6150
6150
|
Chevron: X
|
|
6151
6151
|
},
|
|
6152
6152
|
formatters: {
|
|
6153
|
-
formatWeekdayName:
|
|
6153
|
+
formatWeekdayName: A
|
|
6154
6154
|
}
|
|
6155
6155
|
}
|
|
6156
6156
|
)),
|
|
6157
6157
|
!s && /* @__PURE__ */ e.createElement("div", { className: `${$}__actions` }, /* @__PURE__ */ e.createElement(
|
|
6158
6158
|
ze,
|
|
6159
6159
|
{
|
|
6160
|
-
label:
|
|
6160
|
+
label: f.clearButton,
|
|
6161
6161
|
variant: "secondary",
|
|
6162
6162
|
size: "sm",
|
|
6163
6163
|
onClick: Y,
|
|
@@ -6168,7 +6168,7 @@ const an = ({
|
|
|
6168
6168
|
s && /* @__PURE__ */ e.createElement("div", { className: `${$}__actions` }, /* @__PURE__ */ e.createElement(
|
|
6169
6169
|
ze,
|
|
6170
6170
|
{
|
|
6171
|
-
label:
|
|
6171
|
+
label: f.clearButton,
|
|
6172
6172
|
variant: "secondary",
|
|
6173
6173
|
size: "sm",
|
|
6174
6174
|
onClick: Y,
|
|
@@ -6178,7 +6178,7 @@ const an = ({
|
|
|
6178
6178
|
), /* @__PURE__ */ e.createElement(
|
|
6179
6179
|
ze,
|
|
6180
6180
|
{
|
|
6181
|
-
label:
|
|
6181
|
+
label: f.doneButton,
|
|
6182
6182
|
variant: "primary",
|
|
6183
6183
|
size: "sm",
|
|
6184
6184
|
onClick: Q,
|
|
@@ -6205,21 +6205,21 @@ const an = ({
|
|
|
6205
6205
|
multiple: i = !1,
|
|
6206
6206
|
onClear: m,
|
|
6207
6207
|
onFileChange: v,
|
|
6208
|
-
required:
|
|
6208
|
+
required: f = !1,
|
|
6209
6209
|
showFullPath: N,
|
|
6210
6210
|
showLabel: g = !0,
|
|
6211
6211
|
tooltipText: p = null,
|
|
6212
6212
|
validationMessage: _,
|
|
6213
6213
|
validationStatus: C,
|
|
6214
6214
|
className: u,
|
|
6215
|
-
...
|
|
6215
|
+
...h
|
|
6216
6216
|
}, E) => {
|
|
6217
|
-
const [b, w] =
|
|
6217
|
+
const [b, w] = W(!1), [y, L] = W(
|
|
6218
6218
|
!!(vt && s)
|
|
6219
|
-
), $ = We(l), M = "pds-file-upload", k = a ? J.disabled : null, z =
|
|
6219
|
+
), $ = We(l), M = "pds-file-upload", k = a ? J.disabled : null, z = f && !a ? J.required : null, F = C === "error" ? J.error : null, I = C === "success" ? J.success : null, V = y ? `${M}--safari-default` : null;
|
|
6220
6220
|
let O = null;
|
|
6221
6221
|
C === "error" && (O = "error"), C === "success" && (O = "success");
|
|
6222
|
-
const
|
|
6222
|
+
const Z = _ || d, P = s ? [s] : null, Y = s ? s.split("/").pop() : null, Q = N ? s : Y, j = s ? new File(P, Q) : null;
|
|
6223
6223
|
ae(() => {
|
|
6224
6224
|
const x = new DataTransfer();
|
|
6225
6225
|
if (j && x.items.add(j), x.files.length > 0) {
|
|
@@ -6242,7 +6242,7 @@ const an = ({
|
|
|
6242
6242
|
return;
|
|
6243
6243
|
}
|
|
6244
6244
|
vt && s && (s === x.target.value ? L(!0) : L(!1)), v && v(x.target.files), w(!0);
|
|
6245
|
-
},
|
|
6245
|
+
}, A = () => {
|
|
6246
6246
|
const x = document.getElementById(
|
|
6247
6247
|
`${o}--input`
|
|
6248
6248
|
);
|
|
@@ -6258,11 +6258,11 @@ const an = ({
|
|
|
6258
6258
|
k,
|
|
6259
6259
|
z,
|
|
6260
6260
|
F,
|
|
6261
|
-
|
|
6261
|
+
I,
|
|
6262
6262
|
u ?? ""
|
|
6263
6263
|
]),
|
|
6264
6264
|
style: l ? $ : null,
|
|
6265
|
-
...
|
|
6265
|
+
...h
|
|
6266
6266
|
},
|
|
6267
6267
|
/* @__PURE__ */ e.createElement(
|
|
6268
6268
|
Oe,
|
|
@@ -6272,7 +6272,7 @@ const an = ({
|
|
|
6272
6272
|
label: c,
|
|
6273
6273
|
showLabel: g,
|
|
6274
6274
|
tooltipText: p,
|
|
6275
|
-
required:
|
|
6275
|
+
required: f,
|
|
6276
6276
|
disabled: a
|
|
6277
6277
|
}
|
|
6278
6278
|
),
|
|
@@ -6294,10 +6294,10 @@ const an = ({
|
|
|
6294
6294
|
accept: t || null,
|
|
6295
6295
|
disabled: a,
|
|
6296
6296
|
multiple: i,
|
|
6297
|
-
required:
|
|
6297
|
+
required: f,
|
|
6298
6298
|
onChange: X,
|
|
6299
6299
|
"aria-invalid": C === "error" ? !0 : null,
|
|
6300
|
-
"aria-describedby":
|
|
6300
|
+
"aria-describedby": Z ? `${o}__message` : null,
|
|
6301
6301
|
...r
|
|
6302
6302
|
}
|
|
6303
6303
|
), b && /* @__PURE__ */ e.createElement(
|
|
@@ -6305,14 +6305,14 @@ const an = ({
|
|
|
6305
6305
|
{
|
|
6306
6306
|
id: o,
|
|
6307
6307
|
clearLabel: n.clearButton,
|
|
6308
|
-
handleClearInput:
|
|
6308
|
+
handleClearInput: A
|
|
6309
6309
|
}
|
|
6310
6310
|
)),
|
|
6311
|
-
|
|
6311
|
+
Z && /* @__PURE__ */ e.createElement(
|
|
6312
6312
|
Re,
|
|
6313
6313
|
{
|
|
6314
6314
|
id: o,
|
|
6315
|
-
message:
|
|
6315
|
+
message: Z,
|
|
6316
6316
|
hasValidationMessage: !!_,
|
|
6317
6317
|
validationMessageHasDecorators: !1,
|
|
6318
6318
|
validationStatus: C
|
|
@@ -6358,7 +6358,7 @@ const an = ({
|
|
|
6358
6358
|
onValueChange: i,
|
|
6359
6359
|
options: m,
|
|
6360
6360
|
required: v = !1,
|
|
6361
|
-
showLabel:
|
|
6361
|
+
showLabel: f = !0,
|
|
6362
6362
|
tooltipText: N = null,
|
|
6363
6363
|
validationMessage: g,
|
|
6364
6364
|
validationStatus: p,
|
|
@@ -6366,18 +6366,18 @@ const an = ({
|
|
|
6366
6366
|
className: C,
|
|
6367
6367
|
...u
|
|
6368
6368
|
}) => {
|
|
6369
|
-
const
|
|
6369
|
+
const h = "pds-radio-group", E = s ? J.disabled : null, b = v && !s ? J.required : null, w = p === "error" ? J.error : null, y = p === "success" ? J.success : null, L = typeof _ < "u", $ = typeof t < "u", [M, k] = W(
|
|
6370
6370
|
$ ? t : ""
|
|
6371
6371
|
), z = g || l, F = (V) => {
|
|
6372
6372
|
L || k(V.target.value), d && d(V), i && i(V.target.value);
|
|
6373
|
-
},
|
|
6373
|
+
}, I = (V) => {
|
|
6374
6374
|
n && n(V);
|
|
6375
6375
|
};
|
|
6376
6376
|
return /* @__PURE__ */ e.createElement(
|
|
6377
6377
|
"div",
|
|
6378
6378
|
{
|
|
6379
6379
|
className: H([
|
|
6380
|
-
|
|
6380
|
+
h,
|
|
6381
6381
|
E,
|
|
6382
6382
|
b,
|
|
6383
6383
|
w,
|
|
@@ -6387,7 +6387,7 @@ const an = ({
|
|
|
6387
6387
|
style: We(o),
|
|
6388
6388
|
...u
|
|
6389
6389
|
},
|
|
6390
|
-
/* @__PURE__ */ e.createElement("fieldset", { className: `${
|
|
6390
|
+
/* @__PURE__ */ e.createElement("fieldset", { className: `${h}__fieldset`, id: c, ...a }, /* @__PURE__ */ e.createElement(
|
|
6391
6391
|
Oe,
|
|
6392
6392
|
{
|
|
6393
6393
|
disabled: s,
|
|
@@ -6395,13 +6395,13 @@ const an = ({
|
|
|
6395
6395
|
id: c,
|
|
6396
6396
|
isLegend: !0,
|
|
6397
6397
|
required: v,
|
|
6398
|
-
showLabel:
|
|
6398
|
+
showLabel: f,
|
|
6399
6399
|
tooltipText: N
|
|
6400
6400
|
}
|
|
6401
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6401
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, m.map((V, O) => /* @__PURE__ */ e.createElement(
|
|
6402
6402
|
"div",
|
|
6403
6403
|
{
|
|
6404
|
-
className: `${
|
|
6404
|
+
className: `${h}__option`,
|
|
6405
6405
|
key: `${c}-option-${O}`
|
|
6406
6406
|
},
|
|
6407
6407
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6413,7 +6413,7 @@ const an = ({
|
|
|
6413
6413
|
value: V.value,
|
|
6414
6414
|
required: v,
|
|
6415
6415
|
disabled: s || V.disabled,
|
|
6416
|
-
onBlur:
|
|
6416
|
+
onBlur: I,
|
|
6417
6417
|
onChange: F,
|
|
6418
6418
|
checked: L ? _ === V.value : M === V.value
|
|
6419
6419
|
}
|
|
@@ -6469,15 +6469,15 @@ const an = ({
|
|
|
6469
6469
|
offLabel: i = "Off",
|
|
6470
6470
|
onChange: m,
|
|
6471
6471
|
onLabel: v = "On",
|
|
6472
|
-
required:
|
|
6472
|
+
required: f = !1,
|
|
6473
6473
|
showLabel: N = !0,
|
|
6474
6474
|
showStatusLabel: g = !0,
|
|
6475
6475
|
className: p,
|
|
6476
6476
|
..._
|
|
6477
6477
|
}, C) => {
|
|
6478
|
-
const u = We(r),
|
|
6478
|
+
const u = We(r), h = "pds-switch", E = a ? J.disabled : null, b = f && !a ? J.required : null, w = typeof t < "u", y = n == "below", L = n == "right", $ = !w && s ? s : !1, [M, k] = W($), z = t || M ? v : i, F = (Y) => {
|
|
6479
6479
|
w || k(Y.target.checked), m && m(Y);
|
|
6480
|
-
},
|
|
6480
|
+
}, I = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
6481
6481
|
"input",
|
|
6482
6482
|
{
|
|
6483
6483
|
ref: C,
|
|
@@ -6488,7 +6488,7 @@ const an = ({
|
|
|
6488
6488
|
className: "visually-hidden",
|
|
6489
6489
|
onChange: F,
|
|
6490
6490
|
disabled: a,
|
|
6491
|
-
required:
|
|
6491
|
+
required: f,
|
|
6492
6492
|
checked: t !== void 0 ? t : M,
|
|
6493
6493
|
"aria-describedby": d ? `${c}__message` : null,
|
|
6494
6494
|
...o
|
|
@@ -6499,7 +6499,7 @@ const an = ({
|
|
|
6499
6499
|
id: c,
|
|
6500
6500
|
label: l,
|
|
6501
6501
|
showLabel: N,
|
|
6502
|
-
required:
|
|
6502
|
+
required: f,
|
|
6503
6503
|
disabled: a,
|
|
6504
6504
|
className: H([
|
|
6505
6505
|
"pds-input-label--disable-click",
|
|
@@ -6516,8 +6516,8 @@ const an = ({
|
|
|
6516
6516
|
className: "pds-input-message--switch"
|
|
6517
6517
|
}
|
|
6518
6518
|
);
|
|
6519
|
-
let
|
|
6520
|
-
return y ?
|
|
6519
|
+
let Z, P;
|
|
6520
|
+
return y ? Z = /* @__PURE__ */ e.createElement(e.Fragment, null, V, O, I) : L && (P = "pds-switch--placement-right", Z = d ? /* @__PURE__ */ e.createElement(e.Fragment, null, V, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, O, /* @__PURE__ */ e.createElement("div", null, I))) : /* @__PURE__ */ e.createElement(
|
|
6521
6521
|
"div",
|
|
6522
6522
|
{
|
|
6523
6523
|
className: H([
|
|
@@ -6526,13 +6526,13 @@ const an = ({
|
|
|
6526
6526
|
])
|
|
6527
6527
|
},
|
|
6528
6528
|
V,
|
|
6529
|
-
|
|
6529
|
+
I
|
|
6530
6530
|
)), /* @__PURE__ */ e.createElement(
|
|
6531
6531
|
"div",
|
|
6532
6532
|
{
|
|
6533
6533
|
className: H([
|
|
6534
6534
|
J.base,
|
|
6535
|
-
|
|
6535
|
+
h,
|
|
6536
6536
|
E,
|
|
6537
6537
|
b,
|
|
6538
6538
|
P,
|
|
@@ -6541,7 +6541,7 @@ const an = ({
|
|
|
6541
6541
|
style: r ? u : null,
|
|
6542
6542
|
..._
|
|
6543
6543
|
},
|
|
6544
|
-
|
|
6544
|
+
Z
|
|
6545
6545
|
);
|
|
6546
6546
|
}
|
|
6547
6547
|
), Nn = Ze(
|
|
@@ -6558,7 +6558,7 @@ const an = ({
|
|
|
6558
6558
|
onChange: i,
|
|
6559
6559
|
onFocus: m,
|
|
6560
6560
|
placeholder: v,
|
|
6561
|
-
readonly:
|
|
6561
|
+
readonly: f = !1,
|
|
6562
6562
|
required: N = !1,
|
|
6563
6563
|
rows: g = 5,
|
|
6564
6564
|
showLabel: p,
|
|
@@ -6572,17 +6572,17 @@ const an = ({
|
|
|
6572
6572
|
visibilityToggleHide: "Hide input value",
|
|
6573
6573
|
visibilityToggleShow: "Show input value"
|
|
6574
6574
|
},
|
|
6575
|
-
validationMessage:
|
|
6575
|
+
validationMessage: h,
|
|
6576
6576
|
validationStatus: E,
|
|
6577
6577
|
value: b,
|
|
6578
6578
|
className: w,
|
|
6579
6579
|
...y
|
|
6580
6580
|
}, L) => {
|
|
6581
|
-
const $ = We(o), M = "pds-textarea", k = r ? "pds-is-resizable" : null, z = a ? J.disabled : null, F = N && !a ? J.required : null,
|
|
6581
|
+
const $ = We(o), M = "pds-textarea", k = r ? "pds-is-resizable" : null, z = a ? J.disabled : null, F = N && !a ? J.required : null, I = E === "error" ? J.error : null, V = E === "success" ? J.success : null, O = f ? J.readonly : null, Z = h || n, P = b != null && i !== void 0, Y = typeof s < "u", [Q, j] = W(
|
|
6582
6582
|
Y ? s : ""
|
|
6583
6583
|
), K = b || Q, X = (x) => {
|
|
6584
6584
|
P || j(x.target.value), i && i(x);
|
|
6585
|
-
},
|
|
6585
|
+
}, A = (x) => {
|
|
6586
6586
|
d && d(x);
|
|
6587
6587
|
};
|
|
6588
6588
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -6593,7 +6593,7 @@ const an = ({
|
|
|
6593
6593
|
M,
|
|
6594
6594
|
z,
|
|
6595
6595
|
F,
|
|
6596
|
-
|
|
6596
|
+
I,
|
|
6597
6597
|
V,
|
|
6598
6598
|
O,
|
|
6599
6599
|
w ?? ""
|
|
@@ -6630,24 +6630,24 @@ const an = ({
|
|
|
6630
6630
|
name: c,
|
|
6631
6631
|
placeholder: v,
|
|
6632
6632
|
required: N,
|
|
6633
|
-
readOnly:
|
|
6633
|
+
readOnly: f,
|
|
6634
6634
|
disabled: a,
|
|
6635
6635
|
value: P ? b : Q,
|
|
6636
6636
|
rows: g,
|
|
6637
6637
|
onChange: X,
|
|
6638
|
-
onBlur:
|
|
6638
|
+
onBlur: A,
|
|
6639
6639
|
onFocus: m,
|
|
6640
6640
|
"aria-invalid": E === "error",
|
|
6641
|
-
"aria-describedby":
|
|
6641
|
+
"aria-describedby": Z ? `${c}__message` : null,
|
|
6642
6642
|
..._
|
|
6643
6643
|
}
|
|
6644
6644
|
)),
|
|
6645
|
-
|
|
6645
|
+
Z && /* @__PURE__ */ e.createElement(
|
|
6646
6646
|
Re,
|
|
6647
6647
|
{
|
|
6648
6648
|
id: c,
|
|
6649
|
-
message:
|
|
6650
|
-
hasValidationMessage: !!
|
|
6649
|
+
message: Z,
|
|
6650
|
+
hasValidationMessage: !!h,
|
|
6651
6651
|
validationMessageHasDecorators: !0,
|
|
6652
6652
|
validationStatus: E
|
|
6653
6653
|
}
|
|
@@ -6668,14 +6668,14 @@ const an = ({
|
|
|
6668
6668
|
inputWidth: i,
|
|
6669
6669
|
label: m,
|
|
6670
6670
|
message: v,
|
|
6671
|
-
onBlur:
|
|
6671
|
+
onBlur: f,
|
|
6672
6672
|
onChange: N,
|
|
6673
6673
|
onClear: g,
|
|
6674
6674
|
onFocus: p,
|
|
6675
6675
|
placeholder: _,
|
|
6676
6676
|
readonly: C = !1,
|
|
6677
6677
|
required: u = !1,
|
|
6678
|
-
searchIcon:
|
|
6678
|
+
searchIcon: h = "search",
|
|
6679
6679
|
showLabel: E = !0,
|
|
6680
6680
|
showVisibilityToggle: b = !1,
|
|
6681
6681
|
tooltipText: w = null,
|
|
@@ -6693,13 +6693,13 @@ const an = ({
|
|
|
6693
6693
|
value: k,
|
|
6694
6694
|
className: z,
|
|
6695
6695
|
...F
|
|
6696
|
-
},
|
|
6697
|
-
const V = We(i), O = "pds-text-input",
|
|
6696
|
+
}, I) => {
|
|
6697
|
+
const V = We(i), O = "pds-text-input", Z = c ? J.disabled : null, P = u && !c ? J.required : null, Y = M === "error" ? J.error : null, Q = M === "success" ? J.success : null, j = C ? J.readonly : null, K = l && L === "url" ? `${O}--has-url-prefix` : null;
|
|
6698
6698
|
let X = null;
|
|
6699
|
-
L === "search" && (X = "search"), L === "search" &&
|
|
6700
|
-
const
|
|
6699
|
+
L === "search" && (X = "search"), L === "search" && h === "filter" && (X = "filter"), M === "error" && (X = "error"), M === "success" && (X = "success");
|
|
6700
|
+
const A = $ || v, x = typeof k < "u", S = typeof a < "u", [T, G] = W(
|
|
6701
6701
|
S ? a : ""
|
|
6702
|
-
), D = k ||
|
|
6702
|
+
), D = k || T, U = (re) => {
|
|
6703
6703
|
if (b && me && fe(!1), l && L === "url") {
|
|
6704
6704
|
const ge = c2(re.target.value), Le = {
|
|
6705
6705
|
...re,
|
|
@@ -6708,8 +6708,8 @@ const an = ({
|
|
|
6708
6708
|
value: ge
|
|
6709
6709
|
}
|
|
6710
6710
|
};
|
|
6711
|
-
|
|
6712
|
-
} else
|
|
6711
|
+
f && f(Le);
|
|
6712
|
+
} else f && f(re);
|
|
6713
6713
|
}, ee = (re) => {
|
|
6714
6714
|
if (l && L === "url") {
|
|
6715
6715
|
const ge = c2(re.target.value), Le = {
|
|
@@ -6726,7 +6726,7 @@ const an = ({
|
|
|
6726
6726
|
x || G(""), g && g();
|
|
6727
6727
|
const re = document.getElementById(n);
|
|
6728
6728
|
re && re.focus();
|
|
6729
|
-
}, [me, fe] =
|
|
6729
|
+
}, [me, fe] = W(!1), te = () => {
|
|
6730
6730
|
fe((ge) => !ge);
|
|
6731
6731
|
const re = document.getElementById(n);
|
|
6732
6732
|
re && re.focus();
|
|
@@ -6738,7 +6738,7 @@ const an = ({
|
|
|
6738
6738
|
className: H([
|
|
6739
6739
|
J.base,
|
|
6740
6740
|
O,
|
|
6741
|
-
|
|
6741
|
+
Z,
|
|
6742
6742
|
P,
|
|
6743
6743
|
Y,
|
|
6744
6744
|
Q,
|
|
@@ -6771,12 +6771,12 @@ const an = ({
|
|
|
6771
6771
|
/* @__PURE__ */ e.createElement(
|
|
6772
6772
|
"input",
|
|
6773
6773
|
{
|
|
6774
|
-
ref:
|
|
6774
|
+
ref: I,
|
|
6775
6775
|
className: `${O}__input ${l && L === "url" ? `${O}__input--has-prefix` : ""}`,
|
|
6776
6776
|
id: n,
|
|
6777
6777
|
name: n,
|
|
6778
6778
|
type: ie,
|
|
6779
|
-
value: x ? k :
|
|
6779
|
+
value: x ? k : T,
|
|
6780
6780
|
placeholder: _,
|
|
6781
6781
|
readOnly: C,
|
|
6782
6782
|
disabled: c,
|
|
@@ -6786,7 +6786,7 @@ const an = ({
|
|
|
6786
6786
|
onChange: ee,
|
|
6787
6787
|
onFocus: p,
|
|
6788
6788
|
"aria-invalid": M === "error" ? !0 : null,
|
|
6789
|
-
"aria-describedby":
|
|
6789
|
+
"aria-describedby": A ? `${n}__message` : null,
|
|
6790
6790
|
...d
|
|
6791
6791
|
}
|
|
6792
6792
|
),
|
|
@@ -6827,11 +6827,11 @@ const an = ({
|
|
|
6827
6827
|
}
|
|
6828
6828
|
)
|
|
6829
6829
|
),
|
|
6830
|
-
|
|
6830
|
+
A && /* @__PURE__ */ e.createElement(
|
|
6831
6831
|
Re,
|
|
6832
6832
|
{
|
|
6833
6833
|
id: n,
|
|
6834
|
-
message:
|
|
6834
|
+
message: A,
|
|
6835
6835
|
hasValidationMessage: !!$,
|
|
6836
6836
|
validationMessageHasDecorators: !1,
|
|
6837
6837
|
validationStatus: M
|
|
@@ -6890,20 +6890,20 @@ const an = ({
|
|
|
6890
6890
|
className: m,
|
|
6891
6891
|
...v
|
|
6892
6892
|
}) => {
|
|
6893
|
-
const
|
|
6893
|
+
const f = Ae(s), N = f.__unslotted, g = f.footer, p = "pds-modal", _ = d !== "md" ? `${p}--${d}` : null, C = c ? {
|
|
6894
6894
|
maxHeight: c,
|
|
6895
6895
|
paddingInlineEnd: "1rem",
|
|
6896
6896
|
marginInlineEnd: "-1rem",
|
|
6897
6897
|
overflowY: "auto"
|
|
6898
|
-
} : null, [u,
|
|
6898
|
+
} : null, [u, h] = W(l);
|
|
6899
6899
|
ae(() => {
|
|
6900
|
-
|
|
6900
|
+
h(l);
|
|
6901
6901
|
}, [l]), ae(() => {
|
|
6902
6902
|
n(u);
|
|
6903
6903
|
}, [u]);
|
|
6904
6904
|
const { refs: E, context: b, floatingStyles: w } = ke({
|
|
6905
6905
|
open: u,
|
|
6906
|
-
onOpenChange:
|
|
6906
|
+
onOpenChange: h
|
|
6907
6907
|
}), y = je(b), L = o ? void 0 : Se(b, {
|
|
6908
6908
|
outsidePressEvent: "mousedown"
|
|
6909
6909
|
}), $ = Ve(b), { getFloatingProps: M } = Ie([y, L, $]), { isMounted: k, styles: z } = Ke(b, {
|
|
@@ -6955,7 +6955,7 @@ const an = ({
|
|
|
6955
6955
|
S2,
|
|
6956
6956
|
{
|
|
6957
6957
|
ariaLabel: a,
|
|
6958
|
-
onClick: () =>
|
|
6958
|
+
onClick: () => h(!1),
|
|
6959
6959
|
iconSize: "xl"
|
|
6960
6960
|
}
|
|
6961
6961
|
)),
|
|
@@ -7081,7 +7081,7 @@ const an = ({
|
|
|
7081
7081
|
C.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
|
|
7082
7082
|
);
|
|
7083
7083
|
if (u.length === 0) return;
|
|
7084
|
-
const
|
|
7084
|
+
const h = document.activeElement, E = u.indexOf(h);
|
|
7085
7085
|
if (E !== -1) {
|
|
7086
7086
|
if (_.key === "ArrowRight") {
|
|
7087
7087
|
_.preventDefault();
|
|
@@ -7110,7 +7110,7 @@ const an = ({
|
|
|
7110
7110
|
},
|
|
7111
7111
|
_
|
|
7112
7112
|
);
|
|
7113
|
-
},
|
|
7113
|
+
}, f = s.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${d}__menu` }, s.map((p, _) => /* @__PURE__ */ e.createElement(
|
|
7114
7114
|
v,
|
|
7115
7115
|
{
|
|
7116
7116
|
key: _,
|
|
@@ -7149,7 +7149,7 @@ const an = ({
|
|
|
7149
7149
|
]),
|
|
7150
7150
|
...o
|
|
7151
7151
|
},
|
|
7152
|
-
r ? g :
|
|
7152
|
+
r ? g : f
|
|
7153
7153
|
);
|
|
7154
7154
|
}, ds = ({
|
|
7155
7155
|
destination: t = "main",
|
|
@@ -7179,26 +7179,26 @@ const an = ({
|
|
|
7179
7179
|
className: m,
|
|
7180
7180
|
...v
|
|
7181
7181
|
}) => {
|
|
7182
|
-
const { isMobile:
|
|
7182
|
+
const { isMobile: f, windowWidth: N } = Ce(be), [g, p] = W(() => d !== void 0 ? d : N > 1440), _ = le(null), [C] = Mt(_), u = C.width;
|
|
7183
7183
|
ae(() => {
|
|
7184
7184
|
d !== void 0 && p(d);
|
|
7185
7185
|
}, [d]), ae(() => {
|
|
7186
7186
|
i(g);
|
|
7187
7187
|
}, [g, i]);
|
|
7188
|
-
const
|
|
7189
|
-
isSidebarExpanded:
|
|
7188
|
+
const h = {
|
|
7189
|
+
isSidebarExpanded: f ? !0 : g,
|
|
7190
7190
|
logoLinkContent: c,
|
|
7191
7191
|
navbarWidth: u,
|
|
7192
7192
|
isAdmin: a
|
|
7193
|
-
}, E = "pds-dashboard-global", b = a ? `${E}--isAdmin` : null, w =
|
|
7193
|
+
}, E = "pds-dashboard-global", b = a ? `${E}--isAdmin` : null, w = f ? `${E}--isMobile` : `${E}--notMobile`, y = f ? null : g ? `${E}--sidebarExpanded` : `${E}--sidebarCollapsed`, L = g ? `${r}rem` : `${o}rem`, $ = {
|
|
7194
7194
|
width: L,
|
|
7195
7195
|
transition: "width 200ms ease-in-out"
|
|
7196
|
-
}, M =
|
|
7196
|
+
}, M = f ? {} : {
|
|
7197
7197
|
width: `calc(100% - ${L})`,
|
|
7198
7198
|
transition: "width 200ms ease-in-out"
|
|
7199
7199
|
}, k = () => {
|
|
7200
7200
|
p(!g);
|
|
7201
|
-
}, z = Ae(t), F = z.header,
|
|
7201
|
+
}, z = Ae(t), F = z.header, I = z.sidebar, V = z.main, O = z.footer, Z = /* @__PURE__ */ e.createElement(e.Fragment, null, F, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar` }, I), /* @__PURE__ */ e.createElement("main", { id: "main", className: `${E}__main` }, V), O && /* @__PURE__ */ e.createElement("footer", { className: `${E}__footer` }, O)), P = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("aside", { className: `${E}__sidebar`, style: $ }, s && /* @__PURE__ */ e.createElement(
|
|
7202
7202
|
"button",
|
|
7203
7203
|
{
|
|
7204
7204
|
className: `${E}__sidebar-toggle-button`,
|
|
@@ -7207,7 +7207,7 @@ const an = ({
|
|
|
7207
7207
|
"aria-label": l
|
|
7208
7208
|
},
|
|
7209
7209
|
/* @__PURE__ */ e.createElement("span", { className: `${E}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(R, { iconName: "angleLeft", iconSize: "sm" }))
|
|
7210
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${E}__sidebar-inner` },
|
|
7210
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${E}__sidebar-inner` }, I)), /* @__PURE__ */ e.createElement(
|
|
7211
7211
|
"div",
|
|
7212
7212
|
{
|
|
7213
7213
|
ref: _,
|
|
@@ -7217,7 +7217,7 @@ const an = ({
|
|
|
7217
7217
|
/* @__PURE__ */ e.createElement("div", { className: `${E}__header` }, F),
|
|
7218
7218
|
/* @__PURE__ */ e.createElement("div", { className: `${E}__inner` }, /* @__PURE__ */ e.createElement("main", { id: "main", className: `${E}__main` }, V), O && /* @__PURE__ */ e.createElement("footer", { className: `${E}__footer` }, O))
|
|
7219
7219
|
));
|
|
7220
|
-
return /* @__PURE__ */ e.createElement(zt.Provider, { value:
|
|
7220
|
+
return /* @__PURE__ */ e.createElement(zt.Provider, { value: h }, /* @__PURE__ */ e.createElement(ds, { text: n, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
7221
7221
|
"div",
|
|
7222
7222
|
{
|
|
7223
7223
|
className: H([
|
|
@@ -7230,7 +7230,7 @@ const an = ({
|
|
|
7230
7230
|
]),
|
|
7231
7231
|
...v
|
|
7232
7232
|
},
|
|
7233
|
-
|
|
7233
|
+
f ? Z : P
|
|
7234
7234
|
));
|
|
7235
7235
|
}, Ue = "ease-out", f2 = 0, us = ({
|
|
7236
7236
|
icon: t,
|
|
@@ -7261,20 +7261,20 @@ const an = ({
|
|
|
7261
7261
|
},
|
|
7262
7262
|
k.linkContent
|
|
7263
7263
|
))
|
|
7264
|
-
), [v,
|
|
7264
|
+
), [v, f] = W(!1), { refs: N, floatingStyles: g, context: p } = ke({
|
|
7265
7265
|
placement: "right-start",
|
|
7266
7266
|
open: v,
|
|
7267
|
-
onOpenChange:
|
|
7267
|
+
onOpenChange: f,
|
|
7268
7268
|
middleware: [st(12), nt(), ot()],
|
|
7269
7269
|
whileElementsMounted: xe
|
|
7270
7270
|
}), _ = Ct(p, {
|
|
7271
7271
|
move: !1,
|
|
7272
7272
|
handleClose: Kt()
|
|
7273
|
-
}), C = Ut(p), u = Se(p),
|
|
7273
|
+
}), C = Ut(p), u = Se(p), h = Ve(p, { role: "menu" }), { getReferenceProps: E, getFloatingProps: b } = Ie([
|
|
7274
7274
|
_,
|
|
7275
7275
|
C,
|
|
7276
7276
|
u,
|
|
7277
|
-
|
|
7277
|
+
h
|
|
7278
7278
|
]), w = ($) => {
|
|
7279
7279
|
const M = $.currentTarget, k = M.parentElement?.nextElementSibling;
|
|
7280
7280
|
if (!k) return;
|
|
@@ -7391,36 +7391,36 @@ const an = ({
|
|
|
7391
7391
|
className: c,
|
|
7392
7392
|
...o
|
|
7393
7393
|
}) => {
|
|
7394
|
-
const r = "pds-dropdown-menu", [l, n] =
|
|
7394
|
+
const r = "pds-dropdown-menu", [l, n] = W(!1), [d, i] = W(null), m = t2(s), v = m ? m.props.children : a, f = /* @__PURE__ */ e.createElement(
|
|
7395
7395
|
R,
|
|
7396
7396
|
{
|
|
7397
7397
|
iconName: "check",
|
|
7398
7398
|
iconSize: "md",
|
|
7399
7399
|
className: `${r}__active-icon`
|
|
7400
7400
|
}
|
|
7401
|
-
), N = (
|
|
7402
|
-
|
|
7403
|
-
}, g = (
|
|
7404
|
-
|
|
7401
|
+
), N = (I) => {
|
|
7402
|
+
I.key === "Enter" && h.current[d].querySelector("a")?.click();
|
|
7403
|
+
}, g = (I) => {
|
|
7404
|
+
I.target.nodeName === "A" && n(!1);
|
|
7405
7405
|
};
|
|
7406
7406
|
ae(() => {
|
|
7407
7407
|
if (l) {
|
|
7408
|
-
const
|
|
7409
|
-
return
|
|
7410
|
-
|
|
7408
|
+
const I = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
7409
|
+
return I.addEventListener("click", g), () => {
|
|
7410
|
+
I.removeEventListener("click", g);
|
|
7411
7411
|
};
|
|
7412
7412
|
}
|
|
7413
7413
|
}, [l]);
|
|
7414
7414
|
const p = ({
|
|
7415
|
-
item:
|
|
7415
|
+
item: I,
|
|
7416
7416
|
level: V
|
|
7417
7417
|
}) => {
|
|
7418
7418
|
const O = gt(
|
|
7419
|
-
|
|
7420
|
-
|
|
7419
|
+
I.linkContent,
|
|
7420
|
+
I.links
|
|
7421
7421
|
);
|
|
7422
7422
|
return {
|
|
7423
|
-
...
|
|
7423
|
+
...I,
|
|
7424
7424
|
level: V,
|
|
7425
7425
|
linkContent: De(
|
|
7426
7426
|
O,
|
|
@@ -7429,11 +7429,11 @@ const an = ({
|
|
|
7429
7429
|
})
|
|
7430
7430
|
)
|
|
7431
7431
|
};
|
|
7432
|
-
}, _ = (
|
|
7432
|
+
}, _ = (I) => {
|
|
7433
7433
|
const V = [];
|
|
7434
|
-
return
|
|
7435
|
-
O.links ? (V.push(p({ item: O, level: "top-level" })), O.links.forEach((
|
|
7436
|
-
|
|
7434
|
+
return I.forEach((O) => {
|
|
7435
|
+
O.links ? (V.push(p({ item: O, level: "top-level" })), O.links.forEach((Z) => {
|
|
7436
|
+
Z.links ? (V.push(p({ item: Z, level: "second-level" })), Z.links.forEach((P) => {
|
|
7437
7437
|
P.links && (V.push(
|
|
7438
7438
|
p({ item: P, level: "third-level" })
|
|
7439
7439
|
), P.links.forEach((Y) => {
|
|
@@ -7443,7 +7443,7 @@ const an = ({
|
|
|
7443
7443
|
})), V.push(
|
|
7444
7444
|
p({ item: P, level: "third-level" })
|
|
7445
7445
|
);
|
|
7446
|
-
})) : V.push(p({ item:
|
|
7446
|
+
})) : V.push(p({ item: Z, level: "second-level" }));
|
|
7447
7447
|
})) : V.push(p({ item: O, level: "top-level" }));
|
|
7448
7448
|
}), V;
|
|
7449
7449
|
}, { refs: C, context: u } = ke({
|
|
@@ -7451,23 +7451,23 @@ const an = ({
|
|
|
7451
7451
|
open: l,
|
|
7452
7452
|
onOpenChange: n,
|
|
7453
7453
|
whileElementsMounted: xe
|
|
7454
|
-
}),
|
|
7455
|
-
listRef:
|
|
7454
|
+
}), h = le([]), E = it(u, {
|
|
7455
|
+
listRef: h,
|
|
7456
7456
|
activeIndex: d,
|
|
7457
7457
|
onNavigate: i,
|
|
7458
7458
|
loop: !0,
|
|
7459
7459
|
openOnArrowKeyDown: !0,
|
|
7460
7460
|
focusItemOnHover: !0
|
|
7461
7461
|
}), b = je(u, { event: "mousedown" }), w = Se(u), y = Ve(u, { role: "menu" }), L = jt(u, {
|
|
7462
|
-
listRef:
|
|
7462
|
+
listRef: h,
|
|
7463
7463
|
activeIndex: d,
|
|
7464
7464
|
selectedIndex: null,
|
|
7465
|
-
onMatch: (
|
|
7466
|
-
l || n(!0), i(
|
|
7465
|
+
onMatch: (I) => {
|
|
7466
|
+
l || n(!0), i(I);
|
|
7467
7467
|
},
|
|
7468
|
-
findMatch: (
|
|
7468
|
+
findMatch: (I, V) => {
|
|
7469
7469
|
const O = V.toLowerCase();
|
|
7470
|
-
return
|
|
7470
|
+
return I.find((Z) => (Z?.textContent?.trim().toLowerCase() ?? "").startsWith(O));
|
|
7471
7471
|
}
|
|
7472
7472
|
}), { getReferenceProps: $, getFloatingProps: M, getItemProps: k } = Ie(
|
|
7473
7473
|
[w, y, b, E, L]
|
|
@@ -7514,20 +7514,20 @@ const an = ({
|
|
|
7514
7514
|
},
|
|
7515
7515
|
...M()
|
|
7516
7516
|
},
|
|
7517
|
-
_(s).map((
|
|
7517
|
+
_(s).map((I, V) => /* @__PURE__ */ e.createElement(
|
|
7518
7518
|
"li",
|
|
7519
7519
|
{
|
|
7520
7520
|
key: V,
|
|
7521
7521
|
onKeyDown: N,
|
|
7522
|
-
className: `${r}__item ${r}__item--${
|
|
7522
|
+
className: `${r}__item ${r}__item--${I.level} ${I.isActive === !0 ? `${r}__item--active` : ""}`,
|
|
7523
7523
|
tabIndex: d === V ? 0 : -1,
|
|
7524
7524
|
ref: (O) => {
|
|
7525
|
-
|
|
7525
|
+
h.current[V] = O;
|
|
7526
7526
|
},
|
|
7527
7527
|
...k()
|
|
7528
7528
|
},
|
|
7529
|
-
|
|
7530
|
-
|
|
7529
|
+
I.linkContent,
|
|
7530
|
+
I.isActive === !0 && f
|
|
7531
7531
|
))
|
|
7532
7532
|
));
|
|
7533
7533
|
}, ps = /* @__PURE__ */ e.createElement(
|
|
@@ -7844,7 +7844,7 @@ const an = ({
|
|
|
7844
7844
|
case "sub-brand-small":
|
|
7845
7845
|
i = Rt;
|
|
7846
7846
|
}
|
|
7847
|
-
const m = he(a) && typeof a.props.children == "string" ? a.props.children : "", v = he(a) ? a.type : null,
|
|
7847
|
+
const m = he(a) && typeof a.props.children == "string" ? a.props.children : "", v = he(a) ? a.type : null, f = he(a) && v ? /* @__PURE__ */ e.createElement(
|
|
7848
7848
|
v,
|
|
7849
7849
|
{
|
|
7850
7850
|
...Object.assign({}, a.props, {
|
|
@@ -7864,7 +7864,7 @@ const an = ({
|
|
|
7864
7864
|
]),
|
|
7865
7865
|
...r
|
|
7866
7866
|
},
|
|
7867
|
-
a ?
|
|
7867
|
+
a ? f : i,
|
|
7868
7868
|
c && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, c))
|
|
7869
7869
|
);
|
|
7870
7870
|
}, kn = ({
|
|
@@ -7884,7 +7884,7 @@ const an = ({
|
|
|
7884
7884
|
const d = Ce(zt);
|
|
7885
7885
|
let i = !0, m = null;
|
|
7886
7886
|
d && (i = d.isSidebarExpanded, m = d.logoLinkContent);
|
|
7887
|
-
const v = "pds-dashboard-nav",
|
|
7887
|
+
const v = "pds-dashboard-nav", f = i ? `${v}--expanded` : `${v}--collapsed`, N = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${v}__menu ${v}__menu--top-level` }, a.map((_, C) => /* @__PURE__ */ e.createElement(
|
|
7888
7888
|
us,
|
|
7889
7889
|
{
|
|
7890
7890
|
key: C,
|
|
@@ -7914,7 +7914,7 @@ const an = ({
|
|
|
7914
7914
|
"nav",
|
|
7915
7915
|
{
|
|
7916
7916
|
"aria-label": t,
|
|
7917
|
-
className: H([v,
|
|
7917
|
+
className: H([v, f, o]),
|
|
7918
7918
|
...r
|
|
7919
7919
|
},
|
|
7920
7920
|
!l && /* @__PURE__ */ e.createElement(
|
|
@@ -8015,13 +8015,13 @@ const an = ({
|
|
|
8015
8015
|
placeholder: i = "Search sites",
|
|
8016
8016
|
siteList: m,
|
|
8017
8017
|
horizontalOffset: v = 0,
|
|
8018
|
-
className:
|
|
8018
|
+
className: f,
|
|
8019
8019
|
...N
|
|
8020
8020
|
}) => {
|
|
8021
|
-
const [g, p] =
|
|
8022
|
-
let
|
|
8021
|
+
const [g, p] = W(!1), [_, C] = W(null), u = le(null);
|
|
8022
|
+
let h = !1;
|
|
8023
8023
|
const E = Ce(be);
|
|
8024
|
-
E && (
|
|
8024
|
+
E && (h = E.isMobile);
|
|
8025
8025
|
let b = null, w = !1;
|
|
8026
8026
|
const y = Ce(zt);
|
|
8027
8027
|
y && (b = y.navbarWidth, w = y.isAdmin);
|
|
@@ -8031,11 +8031,11 @@ const an = ({
|
|
|
8031
8031
|
const F = {
|
|
8032
8032
|
right: `${M + v}rem`,
|
|
8033
8033
|
width: `${z}rem`
|
|
8034
|
-
},
|
|
8034
|
+
}, I = "pds-dashboard-search", V = h ? `${I}--isMobile` : null, O = () => {
|
|
8035
8035
|
p(!0), setTimeout(() => {
|
|
8036
8036
|
u.current.querySelector("input").focus();
|
|
8037
8037
|
}, 500);
|
|
8038
|
-
},
|
|
8038
|
+
}, Z = () => {
|
|
8039
8039
|
setTimeout(() => {
|
|
8040
8040
|
p(!1);
|
|
8041
8041
|
}, 150);
|
|
@@ -8045,24 +8045,24 @@ const an = ({
|
|
|
8045
8045
|
ae(() => {
|
|
8046
8046
|
const X = (x) => {
|
|
8047
8047
|
u.current && !u.current.contains(x.target) && p(!1);
|
|
8048
|
-
},
|
|
8048
|
+
}, A = (x) => {
|
|
8049
8049
|
const S = u.current?.querySelector("input");
|
|
8050
8050
|
x.key === "Tab" && g && S === document.activeElement && p(!1);
|
|
8051
8051
|
};
|
|
8052
8052
|
if (g)
|
|
8053
|
-
return document.addEventListener("mousedown", X), document.addEventListener("keydown",
|
|
8054
|
-
document.removeEventListener("mousedown", X), document.removeEventListener("keydown",
|
|
8053
|
+
return document.addEventListener("mousedown", X), document.addEventListener("keydown", A), () => {
|
|
8054
|
+
document.removeEventListener("mousedown", X), document.removeEventListener("keydown", A);
|
|
8055
8055
|
};
|
|
8056
8056
|
}, [g]);
|
|
8057
8057
|
const Y = m.map((X) => {
|
|
8058
|
-
const { id:
|
|
8058
|
+
const { id: A, machineName: x, name: S } = X;
|
|
8059
8059
|
return {
|
|
8060
|
-
id:
|
|
8060
|
+
id: A,
|
|
8061
8061
|
label: S,
|
|
8062
8062
|
value: x ?? S,
|
|
8063
8063
|
optionDisplay: /* @__PURE__ */ e.createElement(gs, { option: X })
|
|
8064
8064
|
};
|
|
8065
|
-
}), Q = /* @__PURE__ */ e.createElement("div", { ref: u, className: `${
|
|
8065
|
+
}), Q = /* @__PURE__ */ e.createElement("div", { ref: u, className: `${I}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8066
8066
|
as,
|
|
8067
8067
|
{
|
|
8068
8068
|
disabled: t,
|
|
@@ -8079,9 +8079,9 @@ const an = ({
|
|
|
8079
8079
|
placeholder: i,
|
|
8080
8080
|
options: Y,
|
|
8081
8081
|
showLabel: !1,
|
|
8082
|
-
className: `${
|
|
8082
|
+
className: `${I}__combobox`
|
|
8083
8083
|
}
|
|
8084
|
-
)), j = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8084
|
+
)), j = /* @__PURE__ */ e.createElement("div", { className: `${I}--inner` }, /* @__PURE__ */ e.createElement(
|
|
8085
8085
|
"span",
|
|
8086
8086
|
{
|
|
8087
8087
|
style: g ? { visibility: "visible" } : { visibility: "hidden" }
|
|
@@ -8090,7 +8090,7 @@ const an = ({
|
|
|
8090
8090
|
), /* @__PURE__ */ e.createElement(
|
|
8091
8091
|
"button",
|
|
8092
8092
|
{
|
|
8093
|
-
className: `${
|
|
8093
|
+
className: `${I}__search-toggle`,
|
|
8094
8094
|
"aria-label": o.openSearchButton,
|
|
8095
8095
|
onClick: O,
|
|
8096
8096
|
type: "button",
|
|
@@ -8104,24 +8104,24 @@ const an = ({
|
|
|
8104
8104
|
R,
|
|
8105
8105
|
{
|
|
8106
8106
|
iconName: "magnifyingGlass",
|
|
8107
|
-
className: `${
|
|
8107
|
+
className: `${I}__search-toggle-icon`
|
|
8108
8108
|
}
|
|
8109
8109
|
)
|
|
8110
8110
|
}
|
|
8111
8111
|
)
|
|
8112
|
-
)), K = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8112
|
+
)), K = /* @__PURE__ */ e.createElement("div", { className: `${I}--mobile-inner` }, Q);
|
|
8113
8113
|
return /* @__PURE__ */ e.createElement(
|
|
8114
8114
|
"div",
|
|
8115
8115
|
{
|
|
8116
|
-
className: H([
|
|
8116
|
+
className: H([I, V, f ?? ""]),
|
|
8117
8117
|
id: s,
|
|
8118
|
-
style:
|
|
8119
|
-
onKeyDown:
|
|
8120
|
-
X.key === "Escape" &&
|
|
8118
|
+
style: h ? null : F,
|
|
8119
|
+
onKeyDown: h ? null : (X) => {
|
|
8120
|
+
X.key === "Escape" && Z();
|
|
8121
8121
|
},
|
|
8122
8122
|
...N
|
|
8123
8123
|
},
|
|
8124
|
-
|
|
8124
|
+
h ? K : j
|
|
8125
8125
|
);
|
|
8126
8126
|
}, ht = ({
|
|
8127
8127
|
children: t,
|
|
@@ -8155,13 +8155,13 @@ const an = ({
|
|
|
8155
8155
|
className: m,
|
|
8156
8156
|
...v
|
|
8157
8157
|
}) => {
|
|
8158
|
-
const [
|
|
8158
|
+
const [f, N] = W(!1);
|
|
8159
8159
|
let g = !1;
|
|
8160
8160
|
const p = Ce(be);
|
|
8161
8161
|
p && (g = p.isMobile);
|
|
8162
8162
|
const _ = Ce(zt);
|
|
8163
8163
|
_ && (l = _.logoLinkContent);
|
|
8164
|
-
const C = "pds-navbar", u = c ? `${C}--noBorder` : "",
|
|
8164
|
+
const C = "pds-navbar", u = c ? `${C}--noBorder` : "", h = s !== "default" ? `${C}--${s}` : "", E = g ? `${C}--isMobile` : `${C}--notMobile`, b = (j) => {
|
|
8165
8165
|
const K = j.key;
|
|
8166
8166
|
let X = !1;
|
|
8167
8167
|
switch (K) {
|
|
@@ -8175,42 +8175,42 @@ const an = ({
|
|
|
8175
8175
|
ae(() => (window.addEventListener("keyup", b), () => {
|
|
8176
8176
|
window.removeEventListener("keyup", b);
|
|
8177
8177
|
}), []);
|
|
8178
|
-
const w = () => N(!
|
|
8178
|
+
const w = () => N(!f), y = U2();
|
|
8179
8179
|
ae(() => {
|
|
8180
8180
|
if (g && t) {
|
|
8181
8181
|
const j = M2(
|
|
8182
8182
|
document.querySelector(".pds-navbar__mobile")
|
|
8183
8183
|
), K = ["a", "button", "input", "select", "textarea"];
|
|
8184
|
-
j && (
|
|
8184
|
+
j && (f ? j.forEach((X) => {
|
|
8185
8185
|
K.includes(X.nodeName.toLowerCase()) && (X.tabIndex = 0);
|
|
8186
8186
|
}) : j.forEach((X) => {
|
|
8187
8187
|
K.includes(X.nodeName.toLowerCase()) && (X.tabIndex = -1);
|
|
8188
8188
|
}));
|
|
8189
8189
|
}
|
|
8190
|
-
}, [
|
|
8190
|
+
}, [f]);
|
|
8191
8191
|
const L = (j) => {
|
|
8192
8192
|
j.target.nodeName === "A" && N(!1);
|
|
8193
8193
|
};
|
|
8194
8194
|
ae(() => {
|
|
8195
|
-
if (
|
|
8195
|
+
if (f) {
|
|
8196
8196
|
const j = document.querySelector(".pds-navbar__bar-mobile"), K = document.querySelector(".pds-navbar__mobile");
|
|
8197
8197
|
return j.addEventListener("click", L), K.addEventListener("click", L), () => {
|
|
8198
8198
|
j.removeEventListener("click", L), K.removeEventListener("click", L);
|
|
8199
8199
|
};
|
|
8200
8200
|
}
|
|
8201
|
-
}, [
|
|
8202
|
-
|
|
8203
|
-
}, [
|
|
8201
|
+
}, [f]), ae(() => {
|
|
8202
|
+
f ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
8203
|
+
}, [f]);
|
|
8204
8204
|
const $ = Ae(t), M = $["items-left"], k = $["items-right"];
|
|
8205
8205
|
let z = "default";
|
|
8206
8206
|
(s === "reverse" || s === "reverse-transparent") && (z = "reverse");
|
|
8207
|
-
const F = he(l) ? l.props.children : null,
|
|
8207
|
+
const F = he(l) ? l.props.children : null, I = he(l) && F ? De(
|
|
8208
8208
|
l,
|
|
8209
8209
|
Object.assign({}, l.props, {
|
|
8210
8210
|
children: /* @__PURE__ */ e.createElement("img", { className: `${C}__custom-logo`, src: n }),
|
|
8211
8211
|
"aria-label": F || null
|
|
8212
8212
|
})
|
|
8213
|
-
) : /* @__PURE__ */ e.createElement("img", { className: `${C}__custom-logo`, src: n, alt: "" }), V = () => n ?
|
|
8213
|
+
) : /* @__PURE__ */ e.createElement("img", { className: `${C}__custom-logo`, src: n, alt: "" }), V = () => n ? I : /* @__PURE__ */ e.createElement(
|
|
8214
8214
|
s2,
|
|
8215
8215
|
{
|
|
8216
8216
|
colorType: z,
|
|
@@ -8222,21 +8222,21 @@ const an = ({
|
|
|
8222
8222
|
"button",
|
|
8223
8223
|
{
|
|
8224
8224
|
className: `${C}__menu-toggle`,
|
|
8225
|
-
"aria-label":
|
|
8225
|
+
"aria-label": f ? i.closeMobileNav : i.openMobileNav,
|
|
8226
8226
|
onClick: w,
|
|
8227
8227
|
type: "button"
|
|
8228
8228
|
},
|
|
8229
|
-
/* @__PURE__ */ e.createElement(R, { iconName:
|
|
8230
|
-
),
|
|
8231
|
-
const X = he(j) && parseInt(j.props["data-mobile-order"], 10) || 1 / 0,
|
|
8232
|
-
return X -
|
|
8229
|
+
/* @__PURE__ */ e.createElement(R, { iconName: f ? "xmark" : "bars", iconSize: "lg" })
|
|
8230
|
+
), Z = e.Children.toArray(t).sort((j, K) => {
|
|
8231
|
+
const X = he(j) && parseInt(j.props["data-mobile-order"], 10) || 1 / 0, A = he(K) && parseInt(K.props["data-mobile-order"], 10) || 1 / 0;
|
|
8232
|
+
return X - A;
|
|
8233
8233
|
}), P = /* @__PURE__ */ e.createElement(
|
|
8234
8234
|
"div",
|
|
8235
8235
|
{
|
|
8236
|
-
className:
|
|
8236
|
+
className: f ? `${C}__mobile ${C}__mobile--open` : `${C}__mobile ${C}__mobile--closed`,
|
|
8237
8237
|
ref: y
|
|
8238
8238
|
},
|
|
8239
|
-
/* @__PURE__ */ e.createElement(ht, null,
|
|
8239
|
+
/* @__PURE__ */ e.createElement(ht, null, Z)
|
|
8240
8240
|
), Y = /* @__PURE__ */ e.createElement(
|
|
8241
8241
|
n1,
|
|
8242
8242
|
{
|
|
@@ -8252,7 +8252,7 @@ const an = ({
|
|
|
8252
8252
|
{
|
|
8253
8253
|
className: H([
|
|
8254
8254
|
C,
|
|
8255
|
-
|
|
8255
|
+
h,
|
|
8256
8256
|
u,
|
|
8257
8257
|
E,
|
|
8258
8258
|
m ?? ""
|
|
@@ -8266,7 +8266,7 @@ const an = ({
|
|
|
8266
8266
|
label: s,
|
|
8267
8267
|
mobileMenuMaxWidth: a = 640
|
|
8268
8268
|
}) => {
|
|
8269
|
-
const [c, o] =
|
|
8269
|
+
const [c, o] = W(!1), [r, l] = W(0);
|
|
8270
8270
|
ae(() => (l(window.innerWidth), window.addEventListener("resize", n), () => {
|
|
8271
8271
|
window.removeEventListener("resize", n);
|
|
8272
8272
|
}), []);
|
|
@@ -8277,7 +8277,7 @@ const an = ({
|
|
|
8277
8277
|
open: c,
|
|
8278
8278
|
onOpenChange: o,
|
|
8279
8279
|
whileElementsMounted: xe
|
|
8280
|
-
}),
|
|
8280
|
+
}), f = je(v, { event: "mousedown" }), N = Se(v), g = Ve(v, { role: "menu" });
|
|
8281
8281
|
let p;
|
|
8282
8282
|
d ? p = Ct(v, {
|
|
8283
8283
|
enabled: !1
|
|
@@ -8292,9 +8292,9 @@ const an = ({
|
|
|
8292
8292
|
const { getReferenceProps: _, getFloatingProps: C } = Ie([
|
|
8293
8293
|
N,
|
|
8294
8294
|
g,
|
|
8295
|
-
|
|
8295
|
+
f,
|
|
8296
8296
|
p
|
|
8297
|
-
]), u = (
|
|
8297
|
+
]), u = (h) => !!(h.isActive || h.linkContent && h.linkContent.props.className && h.linkContent.props.className.includes("pds-isActive"));
|
|
8298
8298
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8299
8299
|
"button",
|
|
8300
8300
|
{
|
|
@@ -8312,14 +8312,14 @@ const an = ({
|
|
|
8312
8312
|
ref: m.setFloating,
|
|
8313
8313
|
...C()
|
|
8314
8314
|
},
|
|
8315
|
-
t.map((
|
|
8315
|
+
t.map((h, E) => /* @__PURE__ */ e.createElement(
|
|
8316
8316
|
"li",
|
|
8317
8317
|
{
|
|
8318
8318
|
key: E,
|
|
8319
|
-
role:
|
|
8320
|
-
className: `${i}__item ${
|
|
8319
|
+
role: h.isSeparator ? "separator" : "menuitem",
|
|
8320
|
+
className: `${i}__item ${h.isSeparator ? `${i}__dropdown--separator` : `${i}__item--second-level`} ${u(h) ? `${i}__item--active` : null}`
|
|
8321
8321
|
},
|
|
8322
|
-
!
|
|
8322
|
+
!h.isSeparator && h.linkContent
|
|
8323
8323
|
))
|
|
8324
8324
|
));
|
|
8325
8325
|
}, Vn = ({
|
|
@@ -8330,7 +8330,7 @@ const an = ({
|
|
|
8330
8330
|
className: o,
|
|
8331
8331
|
...r
|
|
8332
8332
|
}) => {
|
|
8333
|
-
const [l, n] =
|
|
8333
|
+
const [l, n] = W(1025), [d, i] = W(null), [m, v] = W(-1), [f, N] = W(null), [g, p] = W({
|
|
8334
8334
|
container: null,
|
|
8335
8335
|
containerChildren: []
|
|
8336
8336
|
});
|
|
@@ -8343,15 +8343,15 @@ const an = ({
|
|
|
8343
8343
|
ae(() => {
|
|
8344
8344
|
g.containerChildren[d] && (g.containerChildren[d].classList.contains(
|
|
8345
8345
|
"pds-nav-menu__dropdown--separator"
|
|
8346
|
-
) &&
|
|
8346
|
+
) && f == "down" ? i(d + 1) : g.containerChildren[d].classList.contains(
|
|
8347
8347
|
"pds-nav-menu__dropdown--separator"
|
|
8348
|
-
) &&
|
|
8348
|
+
) && f == "up" ? i(d - 1) : g.containerChildren[d].children[0].focus());
|
|
8349
8349
|
}, [d]), ae(() => {
|
|
8350
8350
|
m != -1 && (b.current[m].children[0].blur(), b.current[m].children[0].focus({
|
|
8351
8351
|
focusVisible: !0
|
|
8352
8352
|
}));
|
|
8353
8353
|
}, [m]);
|
|
8354
|
-
const u = "pds-nav-menu",
|
|
8354
|
+
const u = "pds-nav-menu", h = s !== "default" ? `${u}--${s}` : "", E = C ? `${u}--isMobile` : `${u}--notMobile`, b = le([]), w = ($) => {
|
|
8355
8355
|
const M = b.current.length - 1, O = {
|
|
8356
8356
|
ArrowRight: () => {
|
|
8357
8357
|
i(-1), v(m === -1 ? 1 : m === M ? 0 : m + 1);
|
|
@@ -8361,9 +8361,9 @@ const an = ({
|
|
|
8361
8361
|
},
|
|
8362
8362
|
ArrowDown: () => {
|
|
8363
8363
|
N("down");
|
|
8364
|
-
const
|
|
8365
|
-
g.container !=
|
|
8366
|
-
container:
|
|
8364
|
+
const Z = $.target.parentNode.children[1], P = $.target?.parentNode.children[1]?.children || $.target?.parentNode.parentNode.children[1]?.children;
|
|
8365
|
+
g.container != Z && Z != null && p({
|
|
8366
|
+
container: Z,
|
|
8367
8367
|
containerChildren: [...P]
|
|
8368
8368
|
}), d === null || d == g.containerChildren.length - 1 ? i(0) : i(parseInt(d) + 1);
|
|
8369
8369
|
},
|
|
@@ -8421,7 +8421,7 @@ const an = ({
|
|
|
8421
8421
|
}), /* @__PURE__ */ e.createElement(
|
|
8422
8422
|
"nav",
|
|
8423
8423
|
{
|
|
8424
|
-
className: H([u,
|
|
8424
|
+
className: H([u, h, E, o]),
|
|
8425
8425
|
"aria-label": t,
|
|
8426
8426
|
onKeyDown: ($) => {
|
|
8427
8427
|
w($);
|
|
@@ -8450,7 +8450,7 @@ const an = ({
|
|
|
8450
8450
|
const u = p.getAttribute("aria-expanded") === "false";
|
|
8451
8451
|
p.classList.toggle(`${n}__toggle--expanded`, u), p.setAttribute("aria-expanded", u ? "true" : "false"), _.classList.toggle(`${i}--expanded`, u);
|
|
8452
8452
|
}, v = (g, p) => {
|
|
8453
|
-
const { linkContent: _, links: C } = g, u = ve(g),
|
|
8453
|
+
const { linkContent: _, links: C } = g, u = ve(g), h = ms(_), E = u;
|
|
8454
8454
|
return /* @__PURE__ */ e.createElement(
|
|
8455
8455
|
"li",
|
|
8456
8456
|
{
|
|
@@ -8462,7 +8462,7 @@ const an = ({
|
|
|
8462
8462
|
u ? `${d}--active` : null
|
|
8463
8463
|
])
|
|
8464
8464
|
},
|
|
8465
|
-
C ?
|
|
8465
|
+
C ? h ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${d}-wrapper` }, gt(_, C), /* @__PURE__ */ e.createElement(
|
|
8466
8466
|
"button",
|
|
8467
8467
|
{
|
|
8468
8468
|
"aria-expanded": E,
|
|
@@ -8557,7 +8557,7 @@ const an = ({
|
|
|
8557
8557
|
_
|
|
8558
8558
|
)
|
|
8559
8559
|
);
|
|
8560
|
-
},
|
|
8560
|
+
}, f = /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement("h2", { className: `${n}__heading pds-ts-l` }, s), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${n}__menu ${n}__menu--top-level` }, c.map((g, p) => v(g, p)))), N = /* @__PURE__ */ e.createElement(
|
|
8561
8561
|
xt,
|
|
8562
8562
|
{
|
|
8563
8563
|
headingText: s,
|
|
@@ -8573,7 +8573,7 @@ const an = ({
|
|
|
8573
8573
|
className: H([n, r ?? ""]),
|
|
8574
8574
|
...l
|
|
8575
8575
|
},
|
|
8576
|
-
|
|
8576
|
+
f,
|
|
8577
8577
|
N
|
|
8578
8578
|
);
|
|
8579
8579
|
}, bt = 0, An = ({
|
|
@@ -8590,80 +8590,80 @@ const an = ({
|
|
|
8590
8590
|
className: n,
|
|
8591
8591
|
...d
|
|
8592
8592
|
}) => {
|
|
8593
|
-
const i = "pds-side-nav-compact", m = `${i}__item`, v = `${i}__menu`, [
|
|
8593
|
+
const i = "pds-side-nav-compact", m = `${i}__item`, v = `${i}__menu`, [f, N] = W(1025), [g, p] = W(!1), [_, C] = W([]), u = le(null), h = le(null), E = le([]), b = le(-1);
|
|
8594
8594
|
ae(() => (N(window.innerWidth), window.addEventListener("resize", w), () => {
|
|
8595
8595
|
window.removeEventListener("resize", w);
|
|
8596
8596
|
}), []), ae(() => {
|
|
8597
8597
|
(!y || !s) && L();
|
|
8598
|
-
}, [
|
|
8598
|
+
}, [f, o, _]), ae(() => {
|
|
8599
8599
|
if (u.current) {
|
|
8600
|
-
const
|
|
8600
|
+
const A = u.current.querySelector(
|
|
8601
8601
|
".pds-side-nav-compact__heading a"
|
|
8602
8602
|
);
|
|
8603
|
-
|
|
8603
|
+
A && (h.current = A);
|
|
8604
8604
|
}
|
|
8605
8605
|
}, [a]), ae(() => {
|
|
8606
8606
|
if (u.current && o.length > 0) {
|
|
8607
8607
|
const x = Array.from(
|
|
8608
8608
|
u.current.querySelectorAll(`.${m}--active`)
|
|
8609
|
-
).map((
|
|
8610
|
-
const G =
|
|
8609
|
+
).map((T) => {
|
|
8610
|
+
const G = T.closest(`.${m}--top-level`);
|
|
8611
8611
|
return G ? Array.from(
|
|
8612
8612
|
u.current?.querySelectorAll(`.${m}--top-level`) || []
|
|
8613
8613
|
).indexOf(G) : -1;
|
|
8614
|
-
}).filter((
|
|
8614
|
+
}).filter((T) => T !== -1), S = Array.from(new Set(x));
|
|
8615
8615
|
C(S);
|
|
8616
8616
|
}
|
|
8617
8617
|
}, [o]);
|
|
8618
8618
|
const w = () => {
|
|
8619
8619
|
N(window.innerWidth);
|
|
8620
|
-
}, y =
|
|
8620
|
+
}, y = f <= r, L = () => {
|
|
8621
8621
|
if (!u.current) return;
|
|
8622
|
-
const
|
|
8622
|
+
const A = Array.from(
|
|
8623
8623
|
u.current.querySelectorAll(
|
|
8624
8624
|
".pds-side-nav-compact__menu a, button.pds-side-nav-compact__toggle"
|
|
8625
8625
|
)
|
|
8626
8626
|
);
|
|
8627
|
-
E.current =
|
|
8627
|
+
E.current = A.filter((x) => {
|
|
8628
8628
|
if (window.getComputedStyle(x).display === "none") return !1;
|
|
8629
|
-
const
|
|
8630
|
-
return !(
|
|
8629
|
+
const T = x.closest(`.${v}`);
|
|
8630
|
+
return !(T && !T.classList.contains(`${v}--expanded`) && !T.classList.contains(`${v}--top-level`));
|
|
8631
8631
|
});
|
|
8632
|
-
}, $ = (
|
|
8633
|
-
const x =
|
|
8632
|
+
}, $ = (A) => {
|
|
8633
|
+
const x = A.closest(`.${m}-wrapper`);
|
|
8634
8634
|
if (x)
|
|
8635
8635
|
return x.querySelector(
|
|
8636
8636
|
`.${i}__toggle`
|
|
8637
8637
|
);
|
|
8638
|
-
const S =
|
|
8638
|
+
const S = A.closest(`.${m}`);
|
|
8639
8639
|
return S ? S.querySelector(
|
|
8640
8640
|
`.${i}__toggle`
|
|
8641
8641
|
) : null;
|
|
8642
|
-
}, M = (
|
|
8643
|
-
if (
|
|
8644
|
-
return
|
|
8645
|
-
const x =
|
|
8642
|
+
}, M = (A) => {
|
|
8643
|
+
if (A.classList.contains(`${i}__toggle`))
|
|
8644
|
+
return A.closest(`.${m}-wrapper`)?.nextElementSibling || null;
|
|
8645
|
+
const x = A.closest(`.${m}`);
|
|
8646
8646
|
return x ? x.querySelector(`.${v}`) : null;
|
|
8647
|
-
}, k = (
|
|
8648
|
-
if (
|
|
8647
|
+
}, k = (A) => {
|
|
8648
|
+
if (A.classList.contains(`${i}__toggle`))
|
|
8649
8649
|
return !0;
|
|
8650
|
-
const x =
|
|
8650
|
+
const x = A.closest(`.${m}-wrapper`);
|
|
8651
8651
|
return x ? !!x.querySelector(`.${i}__toggle`) : !1;
|
|
8652
|
-
}, z = (
|
|
8652
|
+
}, z = (A) => {
|
|
8653
8653
|
if (!g) return;
|
|
8654
8654
|
const x = E.current[b.current];
|
|
8655
8655
|
if (x)
|
|
8656
|
-
switch (
|
|
8656
|
+
switch (A.key) {
|
|
8657
8657
|
case "ArrowDown": {
|
|
8658
|
-
|
|
8658
|
+
A.preventDefault(), F(1);
|
|
8659
8659
|
break;
|
|
8660
8660
|
}
|
|
8661
8661
|
case "ArrowUp": {
|
|
8662
|
-
|
|
8662
|
+
A.preventDefault(), F(-1);
|
|
8663
8663
|
break;
|
|
8664
8664
|
}
|
|
8665
8665
|
case "ArrowRight": {
|
|
8666
|
-
if (
|
|
8666
|
+
if (A.preventDefault(), k(x)) {
|
|
8667
8667
|
const S = x.classList.contains(
|
|
8668
8668
|
`${i}__toggle`
|
|
8669
8669
|
) ? x : $(x);
|
|
@@ -8671,9 +8671,9 @@ const an = ({
|
|
|
8671
8671
|
currentTarget: S
|
|
8672
8672
|
}), setTimeout(() => {
|
|
8673
8673
|
L();
|
|
8674
|
-
const
|
|
8675
|
-
if (
|
|
8676
|
-
const G =
|
|
8674
|
+
const T = M(S);
|
|
8675
|
+
if (T) {
|
|
8676
|
+
const G = T.querySelector(
|
|
8677
8677
|
"a"
|
|
8678
8678
|
);
|
|
8679
8679
|
G && (G.focus(), b.current = E.current.indexOf(G));
|
|
@@ -8683,41 +8683,41 @@ const an = ({
|
|
|
8683
8683
|
break;
|
|
8684
8684
|
}
|
|
8685
8685
|
case "ArrowLeft": {
|
|
8686
|
-
|
|
8686
|
+
A.preventDefault();
|
|
8687
8687
|
const S = x.closest(`.${v}`);
|
|
8688
8688
|
if (S && !S.classList.contains(`${v}--top-level`)) {
|
|
8689
|
-
const
|
|
8690
|
-
if (
|
|
8691
|
-
const G =
|
|
8689
|
+
const T = S.parentElement;
|
|
8690
|
+
if (T && T.classList.contains(m)) {
|
|
8691
|
+
const G = T.querySelector(
|
|
8692
8692
|
`.${i}__toggle`
|
|
8693
8693
|
);
|
|
8694
8694
|
G && G.getAttribute("aria-expanded") === "true" && (O({
|
|
8695
8695
|
currentTarget: G
|
|
8696
8696
|
}), setTimeout(() => {
|
|
8697
8697
|
L();
|
|
8698
|
-
const U =
|
|
8698
|
+
const U = T.querySelector("a") || G;
|
|
8699
8699
|
U && (U.focus(), b.current = E.current.indexOf(U));
|
|
8700
8700
|
}, bt));
|
|
8701
8701
|
}
|
|
8702
8702
|
} else if (k(x)) {
|
|
8703
|
-
const
|
|
8703
|
+
const T = x.classList.contains(
|
|
8704
8704
|
`${i}__toggle`
|
|
8705
8705
|
) ? x : $(x);
|
|
8706
|
-
|
|
8707
|
-
currentTarget:
|
|
8706
|
+
T && T.getAttribute("aria-expanded") === "true" && O({
|
|
8707
|
+
currentTarget: T
|
|
8708
8708
|
});
|
|
8709
8709
|
}
|
|
8710
8710
|
break;
|
|
8711
8711
|
}
|
|
8712
8712
|
}
|
|
8713
|
-
}, F = (
|
|
8713
|
+
}, F = (A) => {
|
|
8714
8714
|
const x = E.current;
|
|
8715
8715
|
if (x.length === 0) return;
|
|
8716
|
-
let S = b.current +
|
|
8716
|
+
let S = b.current + A;
|
|
8717
8717
|
S < 0 && (S = x.length - 1), S >= x.length && (S = 0), b.current = S, x[S]?.focus();
|
|
8718
|
-
},
|
|
8719
|
-
if (
|
|
8720
|
-
|
|
8718
|
+
}, I = (A) => {
|
|
8719
|
+
if (A.key === "Tab" && g && !A.shiftKey) {
|
|
8720
|
+
A.preventDefault(), p(!1), b.current = -1;
|
|
8721
8721
|
const x = Array.from(
|
|
8722
8722
|
document.querySelectorAll(
|
|
8723
8723
|
'a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
@@ -8725,33 +8725,33 @@ const an = ({
|
|
|
8725
8725
|
), S = x.indexOf(u.current);
|
|
8726
8726
|
S !== -1 && S < x.length - 1 && x[S + 1].focus();
|
|
8727
8727
|
}
|
|
8728
|
-
}, V = (
|
|
8729
|
-
if (
|
|
8730
|
-
|
|
8731
|
-
else if (
|
|
8728
|
+
}, V = (A) => {
|
|
8729
|
+
if (A.target === u.current && !g)
|
|
8730
|
+
A.preventDefault(), p(!0), L(), E.current.length > 0 && (b.current = 0, E.current[0]?.focus());
|
|
8731
|
+
else if (A.target !== u.current && !g) {
|
|
8732
8732
|
L();
|
|
8733
8733
|
const x = E.current.indexOf(
|
|
8734
|
-
|
|
8734
|
+
A.target
|
|
8735
8735
|
);
|
|
8736
8736
|
x !== -1 && (p(!0), b.current = x);
|
|
8737
8737
|
}
|
|
8738
|
-
}, O = (
|
|
8739
|
-
const x =
|
|
8738
|
+
}, O = (A) => {
|
|
8739
|
+
const x = A.currentTarget, S = x.parentElement?.nextElementSibling;
|
|
8740
8740
|
if (!S) return;
|
|
8741
|
-
const
|
|
8742
|
-
x.classList.toggle(`${i}__toggle--expanded`,
|
|
8741
|
+
const T = x.getAttribute("aria-expanded") === "false";
|
|
8742
|
+
x.classList.toggle(`${i}__toggle--expanded`, T), x.setAttribute("aria-expanded", T ? "true" : "false");
|
|
8743
8743
|
const G = x.closest(`.${m}`);
|
|
8744
8744
|
if (G) {
|
|
8745
8745
|
const D = Array.from(
|
|
8746
8746
|
u.current?.querySelectorAll(`.${m}--top-level`) || []
|
|
8747
8747
|
).indexOf(G);
|
|
8748
|
-
C((U) =>
|
|
8748
|
+
C((U) => T && !U.includes(D) && D !== -1 ? [...U, D] : T ? U : U.filter((ee) => ee !== D));
|
|
8749
8749
|
}
|
|
8750
|
-
|
|
8751
|
-
},
|
|
8752
|
-
|
|
8753
|
-
const x = `${
|
|
8754
|
-
|
|
8750
|
+
T ? Z(S) : P(S);
|
|
8751
|
+
}, Z = (A) => {
|
|
8752
|
+
A.style.display = "flex", A.style.height = "auto";
|
|
8753
|
+
const x = `${A.scrollHeight}px`;
|
|
8754
|
+
A.style.marginBlockStart = "0", A.animate(
|
|
8755
8755
|
[
|
|
8756
8756
|
{ height: "0px", opacity: "0", marginBlockStart: "0" },
|
|
8757
8757
|
{
|
|
@@ -8765,15 +8765,15 @@ const an = ({
|
|
|
8765
8765
|
easing: Ue
|
|
8766
8766
|
}
|
|
8767
8767
|
).onfinish = () => {
|
|
8768
|
-
Object.assign(
|
|
8768
|
+
Object.assign(A.style, {
|
|
8769
8769
|
height: "auto",
|
|
8770
8770
|
opacity: "1",
|
|
8771
8771
|
display: "flex",
|
|
8772
8772
|
marginBlockStart: `${Nt}rem`
|
|
8773
|
-
}),
|
|
8773
|
+
}), A.classList.add(`${v}--expanded`), L();
|
|
8774
8774
|
};
|
|
8775
|
-
}, P = (
|
|
8776
|
-
const x = `${
|
|
8775
|
+
}, P = (A) => {
|
|
8776
|
+
const x = `${A.scrollHeight}px`, S = A.animate(
|
|
8777
8777
|
[
|
|
8778
8778
|
{
|
|
8779
8779
|
height: x,
|
|
@@ -8788,7 +8788,7 @@ const an = ({
|
|
|
8788
8788
|
}
|
|
8789
8789
|
);
|
|
8790
8790
|
S.onfinish = () => {
|
|
8791
|
-
|
|
8791
|
+
A.classList.remove(`${v}--expanded`), Object.assign(A.style, {
|
|
8792
8792
|
opacity: "0",
|
|
8793
8793
|
height: "",
|
|
8794
8794
|
// Clean height from inline style
|
|
@@ -8797,8 +8797,8 @@ const an = ({
|
|
|
8797
8797
|
marginBlockStart: "0"
|
|
8798
8798
|
}), L();
|
|
8799
8799
|
};
|
|
8800
|
-
}, Y = { 2: "second", 3: "third", 4: "fourth" }, Q = (
|
|
8801
|
-
const
|
|
8800
|
+
}, Y = { 2: "second", 3: "third", 4: "fourth" }, Q = (A, x, S) => {
|
|
8801
|
+
const T = Y[A], G = `${v}--${T}-level`, D = `${m}--${T}-level`, U = A + 1, ee = ve(x);
|
|
8802
8802
|
let ce = !1;
|
|
8803
8803
|
const me = u.current?.querySelector(
|
|
8804
8804
|
`.${m}--top-level[data-item-path="${x.path}"]`
|
|
@@ -8842,7 +8842,7 @@ const an = ({
|
|
|
8842
8842
|
x.links.map((fe, te) => /* @__PURE__ */ e.createElement(
|
|
8843
8843
|
"li",
|
|
8844
8844
|
{
|
|
8845
|
-
key: `${te}-${
|
|
8845
|
+
key: `${te}-${T}`,
|
|
8846
8846
|
className: H([
|
|
8847
8847
|
m,
|
|
8848
8848
|
D,
|
|
@@ -8857,8 +8857,8 @@ const an = ({
|
|
|
8857
8857
|
) : fe.linkContent
|
|
8858
8858
|
))
|
|
8859
8859
|
));
|
|
8860
|
-
}, j = (
|
|
8861
|
-
const { linkContent: S, links:
|
|
8860
|
+
}, j = (A, x) => {
|
|
8861
|
+
const { linkContent: S, links: T } = A;
|
|
8862
8862
|
return /* @__PURE__ */ e.createElement(
|
|
8863
8863
|
"li",
|
|
8864
8864
|
{
|
|
@@ -8866,13 +8866,13 @@ const an = ({
|
|
|
8866
8866
|
className: H([
|
|
8867
8867
|
m,
|
|
8868
8868
|
`${m}--top-level`,
|
|
8869
|
-
ve(
|
|
8869
|
+
ve(A) ? `${m}--active` : null
|
|
8870
8870
|
]),
|
|
8871
|
-
"data-item-path":
|
|
8871
|
+
"data-item-path": A.path || ""
|
|
8872
8872
|
},
|
|
8873
|
-
|
|
8873
|
+
T ? Q(2, A) : S
|
|
8874
8874
|
);
|
|
8875
|
-
}, K = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${i}__heading pds-ts-l` }, a), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${i}__menu ${i}__menu--top-level` }, o.map((
|
|
8875
|
+
}, K = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${i}__heading pds-ts-l` }, a), o.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${i}__menu ${i}__menu--top-level` }, o.map((A, x) => j(A, x)))), X = /* @__PURE__ */ e.createElement(
|
|
8876
8876
|
xt,
|
|
8877
8877
|
{
|
|
8878
8878
|
headingText: a,
|
|
@@ -8887,8 +8887,8 @@ const an = ({
|
|
|
8887
8887
|
className: H([i, n ?? ""]),
|
|
8888
8888
|
ref: u,
|
|
8889
8889
|
onFocus: V,
|
|
8890
|
-
onKeyDown: (
|
|
8891
|
-
z(
|
|
8890
|
+
onKeyDown: (A) => {
|
|
8891
|
+
z(A), I(A);
|
|
8892
8892
|
},
|
|
8893
8893
|
tabIndex: 0,
|
|
8894
8894
|
role: "navigation",
|
|
@@ -8925,20 +8925,20 @@ const an = ({
|
|
|
8925
8925
|
},
|
|
8926
8926
|
$.linkContent
|
|
8927
8927
|
))
|
|
8928
|
-
), [v,
|
|
8928
|
+
), [v, f] = W(!1), { refs: N, floatingStyles: g, context: p } = ke({
|
|
8929
8929
|
placement: "right-start",
|
|
8930
8930
|
open: v,
|
|
8931
|
-
onOpenChange:
|
|
8931
|
+
onOpenChange: f,
|
|
8932
8932
|
middleware: [st(8), nt(), ot()],
|
|
8933
8933
|
whileElementsMounted: xe
|
|
8934
8934
|
}), _ = Ct(p, {
|
|
8935
8935
|
move: !1,
|
|
8936
8936
|
handleClose: Kt()
|
|
8937
|
-
}), C = Ut(p), u = Se(p),
|
|
8937
|
+
}), C = Ut(p), u = Se(p), h = Ve(p, { role: "menu" }), { getReferenceProps: E, getFloatingProps: b } = Ie([
|
|
8938
8938
|
_,
|
|
8939
8939
|
C,
|
|
8940
8940
|
u,
|
|
8941
|
-
|
|
8941
|
+
h
|
|
8942
8942
|
]), w = (y) => {
|
|
8943
8943
|
const L = y.currentTarget, $ = L.parentElement?.nextElementSibling;
|
|
8944
8944
|
if (!$) return;
|
|
@@ -9031,7 +9031,7 @@ const an = ({
|
|
|
9031
9031
|
linkContent: g.linkContent,
|
|
9032
9032
|
links: g.links
|
|
9033
9033
|
}
|
|
9034
|
-
)))),
|
|
9034
|
+
)))), f = r.map((g) => ({
|
|
9035
9035
|
...g,
|
|
9036
9036
|
linkContent: rt(
|
|
9037
9037
|
i,
|
|
@@ -9042,7 +9042,7 @@ const an = ({
|
|
|
9042
9042
|
})), N = /* @__PURE__ */ e.createElement(
|
|
9043
9043
|
xt,
|
|
9044
9044
|
{
|
|
9045
|
-
menuItems:
|
|
9045
|
+
menuItems: f,
|
|
9046
9046
|
selectTextFallback: l,
|
|
9047
9047
|
className: `${i}__dropdown-menu`
|
|
9048
9048
|
}
|
|
@@ -9065,14 +9065,14 @@ const an = ({
|
|
|
9065
9065
|
minFilterItems: o = 5,
|
|
9066
9066
|
noResultsText: r = "No results found"
|
|
9067
9067
|
}) => {
|
|
9068
|
-
const [l, n] =
|
|
9068
|
+
const [l, n] = W(!1), [d, i] = W(null), [m, v] = W(c), [f, N] = W(""), g = c.length >= o, p = "pds-tab-menu", _ = `${p}__dropdown-menu`, C = g ? `${_}--scroll` : null, u = `${p}__dropdown-item`, h = le([]), { context: E, refs: b } = ke({
|
|
9069
9069
|
open: l,
|
|
9070
9070
|
onOpenChange: n,
|
|
9071
9071
|
whileElementsMounted: xe
|
|
9072
9072
|
}), w = je(E, {
|
|
9073
9073
|
event: "mousedown"
|
|
9074
9074
|
}), y = Se(E), L = Ve(E, { role: "listbox" }), $ = it(E, {
|
|
9075
|
-
listRef:
|
|
9075
|
+
listRef: h,
|
|
9076
9076
|
activeIndex: d,
|
|
9077
9077
|
onNavigate: i,
|
|
9078
9078
|
loop: !0,
|
|
@@ -9080,7 +9080,7 @@ const an = ({
|
|
|
9080
9080
|
focusItemOnOpen: !1
|
|
9081
9081
|
}), { getReferenceProps: M, getFloatingProps: k, getItemProps: z } = Ie(
|
|
9082
9082
|
[L, y, $, w]
|
|
9083
|
-
), { isMounted: F, styles:
|
|
9083
|
+
), { isMounted: F, styles: I } = Ke(E, {
|
|
9084
9084
|
duration: {
|
|
9085
9085
|
open: 300,
|
|
9086
9086
|
close: 150
|
|
@@ -9095,15 +9095,15 @@ const an = ({
|
|
|
9095
9095
|
opacity: 0
|
|
9096
9096
|
}
|
|
9097
9097
|
}), V = (x) => {
|
|
9098
|
-
x.preventDefault(), x.key === "Enter" &&
|
|
9099
|
-
}, O = (x, S) => Me(x.linkContent).toLowerCase().includes(S.toLowerCase()),
|
|
9098
|
+
x.preventDefault(), x.key === "Enter" && h.current[d].querySelector("a")?.click(), x.key === "Tab" && x.shiftKey && (g ? document.getElementById("links-filter").focus() : n(!1));
|
|
9099
|
+
}, O = (x, S) => Me(x.linkContent).toLowerCase().includes(S.toLowerCase()), Z = (x) => {
|
|
9100
9100
|
const S = x.target.value;
|
|
9101
9101
|
N(S);
|
|
9102
|
-
const
|
|
9103
|
-
v(
|
|
9102
|
+
const T = c.filter((G) => O(G, S));
|
|
9103
|
+
v(T);
|
|
9104
9104
|
};
|
|
9105
9105
|
ae(() => {
|
|
9106
|
-
const x = c.filter((S) => O(S,
|
|
9106
|
+
const x = c.filter((S) => O(S, f));
|
|
9107
9107
|
v(x);
|
|
9108
9108
|
}, [c]);
|
|
9109
9109
|
const P = () => {
|
|
@@ -9122,21 +9122,21 @@ const an = ({
|
|
|
9122
9122
|
onClear: P,
|
|
9123
9123
|
id: "links-filter",
|
|
9124
9124
|
label: s,
|
|
9125
|
-
onChange:
|
|
9125
|
+
onChange: Z,
|
|
9126
9126
|
placeholder: a,
|
|
9127
9127
|
showLabel: !1,
|
|
9128
9128
|
type: "search",
|
|
9129
9129
|
autoComplete: "off"
|
|
9130
9130
|
}
|
|
9131
|
-
)),
|
|
9132
|
-
const
|
|
9131
|
+
)), A = m.map((x, S) => {
|
|
9132
|
+
const T = x.isActive ? `${u}--active` : null;
|
|
9133
9133
|
return /* @__PURE__ */ e.createElement(
|
|
9134
9134
|
"li",
|
|
9135
9135
|
{
|
|
9136
9136
|
key: S,
|
|
9137
|
-
className: H([u,
|
|
9137
|
+
className: H([u, T]),
|
|
9138
9138
|
ref: (G) => {
|
|
9139
|
-
|
|
9139
|
+
h.current[S] = G;
|
|
9140
9140
|
},
|
|
9141
9141
|
tabIndex: S === d ? 0 : -1,
|
|
9142
9142
|
onKeyDown: V,
|
|
@@ -9176,7 +9176,7 @@ const an = ({
|
|
|
9176
9176
|
}
|
|
9177
9177
|
})
|
|
9178
9178
|
},
|
|
9179
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...
|
|
9179
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...I } }, X, /* @__PURE__ */ e.createElement("ul", { className: H([_, C]) }, A.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${p}__no-results` }, r) : A))
|
|
9180
9180
|
));
|
|
9181
9181
|
}, Dn = ({
|
|
9182
9182
|
ariaLabel: t,
|
|
@@ -9190,16 +9190,16 @@ const an = ({
|
|
|
9190
9190
|
const l = "pds-tab-menu", n = o ? `${l}--isMobile` : null, d = ({
|
|
9191
9191
|
dropdownSettings: m,
|
|
9192
9192
|
icon: v,
|
|
9193
|
-
isActive:
|
|
9193
|
+
isActive: f,
|
|
9194
9194
|
linkContent: N,
|
|
9195
9195
|
links: g,
|
|
9196
9196
|
promoteActiveChildLink: p = !1
|
|
9197
9197
|
}) => {
|
|
9198
|
-
const _ = `${l}__item`, C = t2(g), u = (
|
|
9198
|
+
const _ = `${l}__item`, C = t2(g), u = (h, E) => {
|
|
9199
9199
|
let b = null;
|
|
9200
|
-
return he(
|
|
9201
|
-
|
|
9202
|
-
Object.assign({},
|
|
9200
|
+
return he(h) && (E ? b = De(
|
|
9201
|
+
h,
|
|
9202
|
+
Object.assign({}, h.props, {
|
|
9203
9203
|
children: [
|
|
9204
9204
|
/* @__PURE__ */ e.createElement("span", { key: E, className: `${l}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
9205
9205
|
R,
|
|
@@ -9208,17 +9208,17 @@ const an = ({
|
|
|
9208
9208
|
iconSize: o ? "sm" : "md",
|
|
9209
9209
|
className: `${l}__item-icon`
|
|
9210
9210
|
}
|
|
9211
|
-
),
|
|
9211
|
+
), h.props.children)
|
|
9212
9212
|
]
|
|
9213
9213
|
})
|
|
9214
|
-
) : b =
|
|
9214
|
+
) : b = h), b;
|
|
9215
9215
|
};
|
|
9216
9216
|
return /* @__PURE__ */ e.createElement(
|
|
9217
9217
|
"li",
|
|
9218
9218
|
{
|
|
9219
9219
|
className: H([
|
|
9220
9220
|
_,
|
|
9221
|
-
|
|
9221
|
+
f ? `${_}--active` : null
|
|
9222
9222
|
])
|
|
9223
9223
|
},
|
|
9224
9224
|
u(p ? C : N, v),
|
|
@@ -9265,11 +9265,11 @@ const an = ({
|
|
|
9265
9265
|
className: l,
|
|
9266
9266
|
...n
|
|
9267
9267
|
}) => {
|
|
9268
|
-
const [d, i] =
|
|
9268
|
+
const [d, i] = W(null), [m, v] = W(!1), f = le([]), N = le([]);
|
|
9269
9269
|
let g = !1;
|
|
9270
9270
|
const p = Ce(be);
|
|
9271
9271
|
p && (g = p.isMobile);
|
|
9272
|
-
const _ = r && g, C = "pds-user-menu", u = _ ? `${C}--isMobile` : null,
|
|
9272
|
+
const _ = r && g, C = "pds-user-menu", u = _ ? `${C}--isMobile` : null, h = `${C}__menu`, { refs: E, floatingStyles: b, context: w } = ke({
|
|
9273
9273
|
placement: "bottom-end",
|
|
9274
9274
|
open: m,
|
|
9275
9275
|
onOpenChange: v,
|
|
@@ -9283,7 +9283,7 @@ const an = ({
|
|
|
9283
9283
|
openOnArrowKeyDown: !0,
|
|
9284
9284
|
focusItemOnOpen: !1,
|
|
9285
9285
|
focusItemOnHover: !0
|
|
9286
|
-
}), { getReferenceProps: z, getFloatingProps: F, getItemProps:
|
|
9286
|
+
}), { getReferenceProps: z, getFloatingProps: F, getItemProps: I } = Ie(
|
|
9287
9287
|
[L, $, y, k]
|
|
9288
9288
|
), { isMounted: V, styles: O } = Ke(w, {
|
|
9289
9289
|
duration: {
|
|
@@ -9299,7 +9299,7 @@ const an = ({
|
|
|
9299
9299
|
close: {
|
|
9300
9300
|
opacity: 0
|
|
9301
9301
|
}
|
|
9302
|
-
}),
|
|
9302
|
+
}), Z = /* @__PURE__ */ e.createElement(
|
|
9303
9303
|
qt,
|
|
9304
9304
|
{
|
|
9305
9305
|
hasUserFallback: !0,
|
|
@@ -9309,19 +9309,19 @@ const an = ({
|
|
|
9309
9309
|
className: `${C}__avatar`
|
|
9310
9310
|
}
|
|
9311
9311
|
), P = /* @__PURE__ */ e.createElement(R, { iconName: "angleDown", className: `${C}__trigger-icon` }), Y = /* @__PURE__ */ e.createElement("li", { className: `${C}__user-details`, role: "presentation" }, _ ? null : /* @__PURE__ */ e.createElement("div", { className: `${C}__user-name` }, o), /* @__PURE__ */ e.createElement("div", { className: `${C}__user-email` }, a));
|
|
9312
|
-
s.forEach((
|
|
9313
|
-
const G =
|
|
9314
|
-
|
|
9312
|
+
s.forEach((T) => {
|
|
9313
|
+
const G = T.id ? T.id : at();
|
|
9314
|
+
f.current.push(G), N.current.push(T);
|
|
9315
9315
|
});
|
|
9316
|
-
const Q = (
|
|
9317
|
-
const G =
|
|
9316
|
+
const Q = (T) => {
|
|
9317
|
+
const G = f.current.indexOf(T), D = N.current[G];
|
|
9318
9318
|
D.linkContent && !D.disabled && (M.current[G].querySelector("a").click(), v(!1)), D.callback && !D.disabled && (D.callback(D), v(!1));
|
|
9319
|
-
}, j = (
|
|
9320
|
-
|
|
9321
|
-
}, K = (
|
|
9322
|
-
Q(
|
|
9323
|
-
}, X = s.map((
|
|
9324
|
-
const D =
|
|
9319
|
+
}, j = (T) => {
|
|
9320
|
+
T.preventDefault(), T.key === "Enter" && Q(T.currentTarget.id);
|
|
9321
|
+
}, K = (T) => {
|
|
9322
|
+
Q(T.currentTarget.id);
|
|
9323
|
+
}, X = s.map((T, G) => {
|
|
9324
|
+
const D = f.current[G], U = `${C}__item`, ee = T.disabled ? `${U}--disabled` : null;
|
|
9325
9325
|
return /* @__PURE__ */ e.createElement(
|
|
9326
9326
|
"li",
|
|
9327
9327
|
{
|
|
@@ -9334,19 +9334,19 @@ const an = ({
|
|
|
9334
9334
|
M.current[G] = ce;
|
|
9335
9335
|
},
|
|
9336
9336
|
onKeyDown: j,
|
|
9337
|
-
...
|
|
9337
|
+
...I({ onClick: (ce) => K(ce) })
|
|
9338
9338
|
},
|
|
9339
|
-
|
|
9339
|
+
T.iconName && /* @__PURE__ */ e.createElement(
|
|
9340
9340
|
R,
|
|
9341
9341
|
{
|
|
9342
|
-
iconName:
|
|
9342
|
+
iconName: T.iconName,
|
|
9343
9343
|
className: `${C}__icon`,
|
|
9344
9344
|
iconSize: "sm"
|
|
9345
9345
|
}
|
|
9346
9346
|
),
|
|
9347
|
-
|
|
9347
|
+
T.linkContent ? T.linkContent : T.label
|
|
9348
9348
|
);
|
|
9349
|
-
}),
|
|
9349
|
+
}), A = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9350
9350
|
"button",
|
|
9351
9351
|
{
|
|
9352
9352
|
className: `${C}__trigger`,
|
|
@@ -9355,7 +9355,7 @@ const an = ({
|
|
|
9355
9355
|
type: "button",
|
|
9356
9356
|
...z()
|
|
9357
9357
|
},
|
|
9358
|
-
|
|
9358
|
+
Z
|
|
9359
9359
|
), V && /* @__PURE__ */ e.createElement(
|
|
9360
9360
|
"div",
|
|
9361
9361
|
{
|
|
@@ -9367,9 +9367,9 @@ const an = ({
|
|
|
9367
9367
|
},
|
|
9368
9368
|
...F()
|
|
9369
9369
|
},
|
|
9370
|
-
/* @__PURE__ */ e.createElement("div", { style: { ...O } }, /* @__PURE__ */ e.createElement("ul", { className:
|
|
9371
|
-
)), x = (
|
|
9372
|
-
const G =
|
|
9370
|
+
/* @__PURE__ */ e.createElement("div", { style: { ...O } }, /* @__PURE__ */ e.createElement("ul", { className: h, role: "menu" }, Y, /* @__PURE__ */ e.createElement("li", { role: "separator" }), X))
|
|
9371
|
+
)), x = (T) => {
|
|
9372
|
+
const G = T.currentTarget;
|
|
9373
9373
|
G.classList.toggle(`${C}__toggle--expanded`), G.setAttribute(
|
|
9374
9374
|
"aria-expanded",
|
|
9375
9375
|
G.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
@@ -9382,12 +9382,12 @@ const an = ({
|
|
|
9382
9382
|
"aria-label": t,
|
|
9383
9383
|
onClick: x
|
|
9384
9384
|
},
|
|
9385
|
-
/* @__PURE__ */ e.createElement("span", { className: `${C}__toggle-left` },
|
|
9385
|
+
/* @__PURE__ */ e.createElement("span", { className: `${C}__toggle-left` }, Z, o || a),
|
|
9386
9386
|
P
|
|
9387
9387
|
), /* @__PURE__ */ e.createElement("div", { className: `${C}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
9388
9388
|
"ul",
|
|
9389
9389
|
{
|
|
9390
|
-
className: [
|
|
9390
|
+
className: [h, `${h}--isMobile`].join(" ").trim(),
|
|
9391
9391
|
role: "menu"
|
|
9392
9392
|
},
|
|
9393
9393
|
Y,
|
|
@@ -9400,7 +9400,7 @@ const an = ({
|
|
|
9400
9400
|
className: H([C, u, l ?? ""]),
|
|
9401
9401
|
...n
|
|
9402
9402
|
},
|
|
9403
|
-
_ ? S :
|
|
9403
|
+
_ ? S : A
|
|
9404
9404
|
);
|
|
9405
9405
|
}, vs = {
|
|
9406
9406
|
silver: "Silver",
|
|
@@ -9420,15 +9420,15 @@ const an = ({
|
|
|
9420
9420
|
className: i,
|
|
9421
9421
|
...m
|
|
9422
9422
|
}) => {
|
|
9423
|
-
const [v,
|
|
9423
|
+
const [v, f] = W(!1), [N, g] = W(null), [p, _] = W(d), C = le([]), u = le(null), h = d.length >= r;
|
|
9424
9424
|
let E = !1;
|
|
9425
9425
|
const b = Ce(be);
|
|
9426
9426
|
b && (E = b.isMobile);
|
|
9427
|
-
const w = n && E, y = "pds-workspace-selector", L = w ? `${y}--isMobile` : null, $ = `${y}__menu`, M =
|
|
9427
|
+
const w = n && E, y = "pds-workspace-selector", L = w ? `${y}--isMobile` : null, $ = `${y}__menu`, M = h ? `${$}--scroll` : null, { refs: k, floatingStyles: z, context: F } = ke({
|
|
9428
9428
|
open: v,
|
|
9429
|
-
onOpenChange:
|
|
9429
|
+
onOpenChange: f,
|
|
9430
9430
|
whileElementsMounted: xe
|
|
9431
|
-
}),
|
|
9431
|
+
}), I = je(F, { event: "mousedown" }), V = Se(F), O = Ve(F, { role: "menu" }), Z = it(F, {
|
|
9432
9432
|
listRef: C,
|
|
9433
9433
|
activeIndex: N,
|
|
9434
9434
|
onNavigate: g,
|
|
@@ -9440,14 +9440,14 @@ const an = ({
|
|
|
9440
9440
|
listRef: C,
|
|
9441
9441
|
activeIndex: N,
|
|
9442
9442
|
onMatch: (te) => {
|
|
9443
|
-
v ||
|
|
9443
|
+
v || f(!0), g(te);
|
|
9444
9444
|
},
|
|
9445
9445
|
findMatch: (te, ie) => {
|
|
9446
9446
|
const re = ie.toLowerCase();
|
|
9447
9447
|
return te.find((ge) => (ge?.textContent?.trim().toLowerCase() ?? "").startsWith(re));
|
|
9448
9448
|
}
|
|
9449
9449
|
}), { getReferenceProps: Y, getFloatingProps: Q, getItemProps: j } = Ie(
|
|
9450
|
-
[V, O,
|
|
9450
|
+
h ? [V, O, I, Z] : [V, O, I, Z, P]
|
|
9451
9451
|
), { isMounted: K, styles: X } = Ke(F, {
|
|
9452
9452
|
duration: {
|
|
9453
9453
|
open: 300,
|
|
@@ -9463,8 +9463,8 @@ const an = ({
|
|
|
9463
9463
|
opacity: 0
|
|
9464
9464
|
}
|
|
9465
9465
|
});
|
|
9466
|
-
let
|
|
9467
|
-
|
|
9466
|
+
let A = d.find((te) => te.isActive);
|
|
9467
|
+
A || (A = d[0]);
|
|
9468
9468
|
const x = (te) => {
|
|
9469
9469
|
const { value: ie } = te.target, re = d.filter((ge) => ge.displayName.toLowerCase().includes(ie.toLowerCase()));
|
|
9470
9470
|
_(re);
|
|
@@ -9477,21 +9477,21 @@ const an = ({
|
|
|
9477
9477
|
_(te);
|
|
9478
9478
|
}, [d]);
|
|
9479
9479
|
const S = (te) => {
|
|
9480
|
-
te.preventDefault(), te.key === "Enter" && C.current[N].querySelector("a").click(), te.key === "Tab" && (te.shiftKey ?
|
|
9481
|
-
},
|
|
9480
|
+
te.preventDefault(), te.key === "Enter" && C.current[N].querySelector("a").click(), te.key === "Tab" && (te.shiftKey ? h ? document.getElementById("workspace-filter").focus() : f(!1) : s ? u.current.querySelector("a").focus() : f(!1));
|
|
9481
|
+
}, T = /* @__PURE__ */ e.createElement("div", { className: `${y}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9482
9482
|
qt,
|
|
9483
9483
|
{
|
|
9484
9484
|
size: "sm",
|
|
9485
|
-
uniqueId:
|
|
9486
|
-
imageSrc:
|
|
9485
|
+
uniqueId: A.workspaceId,
|
|
9486
|
+
imageSrc: A.imageSrc,
|
|
9487
9487
|
className: `${y}__avatar`
|
|
9488
9488
|
}
|
|
9489
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${y}__name` },
|
|
9489
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${y}__name` }, A.displayName), A.planTier && /* @__PURE__ */ e.createElement(
|
|
9490
9490
|
_t,
|
|
9491
9491
|
{
|
|
9492
9492
|
size: "sm",
|
|
9493
|
-
color:
|
|
9494
|
-
label: vs[
|
|
9493
|
+
color: A.planTier,
|
|
9494
|
+
label: vs[A.planTier]
|
|
9495
9495
|
}
|
|
9496
9496
|
)), G = /* @__PURE__ */ e.createElement(
|
|
9497
9497
|
R,
|
|
@@ -9500,7 +9500,7 @@ const an = ({
|
|
|
9500
9500
|
iconSize: "md",
|
|
9501
9501
|
className: `${y}__trigger-icon`
|
|
9502
9502
|
}
|
|
9503
|
-
), D =
|
|
9503
|
+
), D = h && /* @__PURE__ */ e.createElement("div", { className: `${y}__filter` }, /* @__PURE__ */ e.createElement(
|
|
9504
9504
|
O2,
|
|
9505
9505
|
{
|
|
9506
9506
|
hasClearButton: !0,
|
|
@@ -9537,7 +9537,7 @@ const an = ({
|
|
|
9537
9537
|
Ye,
|
|
9538
9538
|
{
|
|
9539
9539
|
...Object.assign({}, te.workspaceLink.props, {
|
|
9540
|
-
onClick: () =>
|
|
9540
|
+
onClick: () => f(!1)
|
|
9541
9541
|
})
|
|
9542
9542
|
},
|
|
9543
9543
|
/* @__PURE__ */ e.createElement("div", { className: `${y}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9560,8 +9560,8 @@ const an = ({
|
|
|
9560
9560
|
iconName: "plus",
|
|
9561
9561
|
linkContent: s,
|
|
9562
9562
|
variant: "subtle",
|
|
9563
|
-
onBlur:
|
|
9564
|
-
onClick:
|
|
9563
|
+
onBlur: f.bind(null, !1),
|
|
9564
|
+
onClick: f.bind(null, !1)
|
|
9565
9565
|
}
|
|
9566
9566
|
)), ce = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9567
9567
|
"button",
|
|
@@ -9572,7 +9572,7 @@ const an = ({
|
|
|
9572
9572
|
type: "button",
|
|
9573
9573
|
...Y()
|
|
9574
9574
|
},
|
|
9575
|
-
|
|
9575
|
+
T,
|
|
9576
9576
|
G
|
|
9577
9577
|
), K && /* @__PURE__ */ e.createElement(
|
|
9578
9578
|
"div",
|
|
@@ -9600,7 +9600,7 @@ const an = ({
|
|
|
9600
9600
|
onClick: me,
|
|
9601
9601
|
type: "button"
|
|
9602
9602
|
},
|
|
9603
|
-
|
|
9603
|
+
T,
|
|
9604
9604
|
G
|
|
9605
9605
|
), /* @__PURE__ */ e.createElement("div", { className: `${y}__mobile-menu` }, D, /* @__PURE__ */ e.createElement(
|
|
9606
9606
|
"ul",
|
|
@@ -9636,14 +9636,14 @@ const an = ({
|
|
|
9636
9636
|
className: r,
|
|
9637
9637
|
...l
|
|
9638
9638
|
}) => {
|
|
9639
|
-
const [n, d] =
|
|
9639
|
+
const [n, d] = W(t);
|
|
9640
9640
|
ae(() => {
|
|
9641
9641
|
d(t);
|
|
9642
9642
|
}, [t]);
|
|
9643
9643
|
const i = n.length;
|
|
9644
9644
|
if (i === 0)
|
|
9645
9645
|
return null;
|
|
9646
|
-
const m = "pds-banner", v = i > 1 ? `${m}-group--multiple` : null,
|
|
9646
|
+
const m = "pds-banner", v = i > 1 ? `${m}-group--multiple` : null, f = {
|
|
9647
9647
|
info: `${m}--info`,
|
|
9648
9648
|
warning: `${m}--warning`,
|
|
9649
9649
|
critical: `${m}--critical`
|
|
@@ -9662,7 +9662,7 @@ const an = ({
|
|
|
9662
9662
|
b[0]
|
|
9663
9663
|
]);
|
|
9664
9664
|
}, 200);
|
|
9665
|
-
},
|
|
9665
|
+
}, h = () => {
|
|
9666
9666
|
C(), document.getElementById(n[0].id).style.zIndex = (St + 2).toString(), document.getElementById(n[i - 1].id).style.zIndex = (St + 1).toString(), setTimeout(() => {
|
|
9667
9667
|
document.getElementById(n[0].id).classList.add(`${m}--fading`);
|
|
9668
9668
|
}, 50), setTimeout(() => {
|
|
@@ -9672,14 +9672,14 @@ const an = ({
|
|
|
9672
9672
|
]), document.getElementById(n[0].id).classList.remove(`${m}--fading`);
|
|
9673
9673
|
}, 200);
|
|
9674
9674
|
}, E = (b, w) => {
|
|
9675
|
-
const { id: y, isDismissible: L, message: $, onDismiss: M, type: k } = b, F = ["critical", "warning"].includes(k) ? "alert" : "status",
|
|
9675
|
+
const { id: y, isDismissible: L, message: $, onDismiss: M, type: k } = b, F = ["critical", "warning"].includes(k) ? "alert" : "status", I = `${o[k]}: `, V = (O) => {
|
|
9676
9676
|
O.preventDefault(), document.getElementById(y).classList.add(`${m}--dismissing`), setTimeout(() => {
|
|
9677
9677
|
if (M && b.onDismiss(), i === 1) {
|
|
9678
9678
|
d([]);
|
|
9679
9679
|
return;
|
|
9680
9680
|
}
|
|
9681
9681
|
d(
|
|
9682
|
-
(
|
|
9682
|
+
(Z) => Z.filter((P) => P.id !== y)
|
|
9683
9683
|
);
|
|
9684
9684
|
}, 200);
|
|
9685
9685
|
};
|
|
@@ -9688,7 +9688,7 @@ const an = ({
|
|
|
9688
9688
|
{
|
|
9689
9689
|
key: y,
|
|
9690
9690
|
id: y,
|
|
9691
|
-
className: H([m,
|
|
9691
|
+
className: H([m, f[k]]),
|
|
9692
9692
|
role: F,
|
|
9693
9693
|
style: {
|
|
9694
9694
|
zIndex: p(w).zIndex
|
|
@@ -9701,7 +9701,7 @@ const an = ({
|
|
|
9701
9701
|
iconSize: "md",
|
|
9702
9702
|
className: `${m}__icon ${m}__icon--${b.type}`
|
|
9703
9703
|
}
|
|
9704
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${m}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
9704
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${m}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, I, " "), $)),
|
|
9705
9705
|
L && /* @__PURE__ */ e.createElement(
|
|
9706
9706
|
"button",
|
|
9707
9707
|
{
|
|
@@ -9732,7 +9732,7 @@ const an = ({
|
|
|
9732
9732
|
size: "lg",
|
|
9733
9733
|
className: `${m}__nav-button ${m}__nav-button--prev`,
|
|
9734
9734
|
ariaLabel: c,
|
|
9735
|
-
onClick:
|
|
9735
|
+
onClick: h
|
|
9736
9736
|
}
|
|
9737
9737
|
), /* @__PURE__ */ e.createElement(
|
|
9738
9738
|
Ht,
|
|
@@ -9813,16 +9813,16 @@ const an = ({
|
|
|
9813
9813
|
className: i,
|
|
9814
9814
|
...m
|
|
9815
9815
|
}) => {
|
|
9816
|
-
const v = le(null),
|
|
9817
|
-
error: `${
|
|
9818
|
-
success: `${
|
|
9819
|
-
warning: `${
|
|
9820
|
-
info: `${
|
|
9821
|
-
critical: `${
|
|
9822
|
-
discovery: `${
|
|
9823
|
-
dismissing: `${
|
|
9824
|
-
dismissed: `${
|
|
9825
|
-
}, g = c ? `${
|
|
9816
|
+
const v = le(null), f = "pds-section-message", N = {
|
|
9817
|
+
error: `${f}--error`,
|
|
9818
|
+
success: `${f}--success`,
|
|
9819
|
+
warning: `${f}--warning`,
|
|
9820
|
+
info: `${f}--info`,
|
|
9821
|
+
critical: `${f}--critical`,
|
|
9822
|
+
discovery: `${f}--discovery`,
|
|
9823
|
+
dismissing: `${f}--dismissing`,
|
|
9824
|
+
dismissed: `${f}--dismissed`
|
|
9825
|
+
}, g = c ? `${f}--hasDismiss` : null, p = l ? `${f}--hasTitle` : null, C = ["critical", "warning"].includes(n) ? "alert" : "status", u = `${d[n]}: `, h = typeof r == "string" ? /* @__PURE__ */ e.createElement("p", null, r) : r, E = () => {
|
|
9826
9826
|
v.current.addEventListener("animationend", b, {
|
|
9827
9827
|
once: !0
|
|
9828
9828
|
});
|
|
@@ -9837,7 +9837,7 @@ const an = ({
|
|
|
9837
9837
|
"div",
|
|
9838
9838
|
{
|
|
9839
9839
|
className: H([
|
|
9840
|
-
|
|
9840
|
+
f,
|
|
9841
9841
|
N[n],
|
|
9842
9842
|
g,
|
|
9843
9843
|
p,
|
|
@@ -9848,25 +9848,25 @@ const an = ({
|
|
|
9848
9848
|
role: C,
|
|
9849
9849
|
...m
|
|
9850
9850
|
},
|
|
9851
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9851
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__icon ${f}__icon-${n}` }, /* @__PURE__ */ e.createElement(
|
|
9852
9852
|
R,
|
|
9853
9853
|
{
|
|
9854
9854
|
iconName: `${n}` in Pt ? Pt[n] : Pt.info,
|
|
9855
9855
|
iconSize: "lg"
|
|
9856
9856
|
}
|
|
9857
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9858
|
-
(t || c) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9857
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${f}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u), l && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, l), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, h))),
|
|
9858
|
+
(t || c) && /* @__PURE__ */ e.createElement("div", { className: `${f}__actions` }, t && /* @__PURE__ */ e.createElement(
|
|
9859
9859
|
ze,
|
|
9860
9860
|
{
|
|
9861
9861
|
...t,
|
|
9862
|
-
className: `${
|
|
9862
|
+
className: `${f}__cta`,
|
|
9863
9863
|
size: "sm",
|
|
9864
9864
|
variant: "secondary"
|
|
9865
9865
|
}
|
|
9866
9866
|
), c && /* @__PURE__ */ e.createElement(
|
|
9867
9867
|
"button",
|
|
9868
9868
|
{
|
|
9869
|
-
className: `${
|
|
9869
|
+
className: `${f}__dismiss`,
|
|
9870
9870
|
onClick: w,
|
|
9871
9871
|
"aria-label": s,
|
|
9872
9872
|
role: "button",
|
|
@@ -9978,19 +9978,19 @@ const Wn = () => {
|
|
|
9978
9978
|
const i = Math.max(s - t, 1), m = Math.min(
|
|
9979
9979
|
s + t,
|
|
9980
9980
|
r
|
|
9981
|
-
), v = i > 2,
|
|
9982
|
-
if (!v &&
|
|
9981
|
+
), v = i > 2, f = m < r - 2;
|
|
9982
|
+
if (!v && f) {
|
|
9983
9983
|
const N = 3 + 2 * t;
|
|
9984
9984
|
return [...$t(1, N), ft, r];
|
|
9985
9985
|
}
|
|
9986
|
-
if (v && !
|
|
9986
|
+
if (v && !f) {
|
|
9987
9987
|
const N = 3 + 2 * t, g = $t(
|
|
9988
9988
|
r - N + 1,
|
|
9989
9989
|
r
|
|
9990
9990
|
);
|
|
9991
9991
|
return [n, ft, ...g];
|
|
9992
9992
|
}
|
|
9993
|
-
if (v &&
|
|
9993
|
+
if (v && f) {
|
|
9994
9994
|
const N = $t(i, m);
|
|
9995
9995
|
return [
|
|
9996
9996
|
n,
|
|
@@ -10020,7 +10020,7 @@ const Wn = () => {
|
|
|
10020
10020
|
totalItemCount: n,
|
|
10021
10021
|
bufferCount: t,
|
|
10022
10022
|
itemsPerPage: o
|
|
10023
|
-
}), v = m[m.length - 1],
|
|
10023
|
+
}), v = m[m.length - 1], f = () => {
|
|
10024
10024
|
l(s + 1);
|
|
10025
10025
|
}, N = () => {
|
|
10026
10026
|
l(s - 1);
|
|
@@ -10061,17 +10061,17 @@ const Wn = () => {
|
|
|
10061
10061
|
},
|
|
10062
10062
|
/* @__PURE__ */ e.createElement(R, { iconName: "arrowLeft" })
|
|
10063
10063
|
)
|
|
10064
|
-
), m.map((u,
|
|
10064
|
+
), m.map((u, h) => u === ft ? /* @__PURE__ */ e.createElement(
|
|
10065
10065
|
"li",
|
|
10066
10066
|
{
|
|
10067
|
-
key:
|
|
10067
|
+
key: h,
|
|
10068
10068
|
className: H([p, `${p}--truncated`])
|
|
10069
10069
|
},
|
|
10070
10070
|
/* @__PURE__ */ e.createElement("span", null, "…")
|
|
10071
10071
|
) : /* @__PURE__ */ e.createElement(
|
|
10072
10072
|
"li",
|
|
10073
10073
|
{
|
|
10074
|
-
key:
|
|
10074
|
+
key: h,
|
|
10075
10075
|
className: H([
|
|
10076
10076
|
p,
|
|
10077
10077
|
s === u ? _ : void 0
|
|
@@ -10100,7 +10100,7 @@ const Wn = () => {
|
|
|
10100
10100
|
{
|
|
10101
10101
|
"aria-disabled": s === v ? !0 : void 0,
|
|
10102
10102
|
"aria-label": r.next,
|
|
10103
|
-
onClick: s === v ? void 0 :
|
|
10103
|
+
onClick: s === v ? void 0 : f,
|
|
10104
10104
|
type: "button"
|
|
10105
10105
|
},
|
|
10106
10106
|
/* @__PURE__ */ e.createElement(R, { iconName: "arrowRight" })
|
|
@@ -10115,15 +10115,15 @@ const Wn = () => {
|
|
|
10115
10115
|
className: o,
|
|
10116
10116
|
...r
|
|
10117
10117
|
}) => {
|
|
10118
|
-
const [l, n] =
|
|
10118
|
+
const [l, n] = W(a), i = le(
|
|
10119
10119
|
s || `expansion-panel-${at()}`
|
|
10120
|
-
).current, m = "pds-expansion-panel", v = le(null),
|
|
10120
|
+
).current, m = "pds-expansion-panel", v = le(null), f = le(null), N = le(null);
|
|
10121
10121
|
return ae(() => {
|
|
10122
|
-
const g = v.current, p =
|
|
10122
|
+
const g = v.current, p = f.current, _ = N.current;
|
|
10123
10123
|
if (!g || !p || !_) return;
|
|
10124
|
-
let C = null, u = !1,
|
|
10124
|
+
let C = null, u = !1, h = !1;
|
|
10125
10125
|
const E = ($) => {
|
|
10126
|
-
$.preventDefault(), g.style.overflow = "hidden", u || !g.open ? w() : (
|
|
10126
|
+
$.preventDefault(), g.style.overflow = "hidden", u || !g.open ? w() : (h || g.open) && b();
|
|
10127
10127
|
}, b = () => {
|
|
10128
10128
|
u = !0, n(!1);
|
|
10129
10129
|
const $ = `${g.offsetHeight}px`, M = `${p.offsetHeight}px`;
|
|
@@ -10137,7 +10137,7 @@ const Wn = () => {
|
|
|
10137
10137
|
}, w = () => {
|
|
10138
10138
|
g.style.height = `${g.offsetHeight}px`, g.open = !0, n(!0), requestAnimationFrame(() => y());
|
|
10139
10139
|
}, y = () => {
|
|
10140
|
-
|
|
10140
|
+
h = !0;
|
|
10141
10141
|
const $ = `${g.offsetHeight}px`, M = `${p.offsetHeight + _.offsetHeight}px`;
|
|
10142
10142
|
C && C.cancel(), C = g.animate(
|
|
10143
10143
|
{ height: [$, M] },
|
|
@@ -10145,9 +10145,9 @@ const Wn = () => {
|
|
|
10145
10145
|
duration: g2,
|
|
10146
10146
|
easing: Ue
|
|
10147
10147
|
}
|
|
10148
|
-
), C.onfinish = () => L(!0), C.oncancel = () =>
|
|
10148
|
+
), C.onfinish = () => L(!0), C.oncancel = () => h = !1;
|
|
10149
10149
|
}, L = ($) => {
|
|
10150
|
-
g.open = $, C = null, u = !1,
|
|
10150
|
+
g.open = $, C = null, u = !1, h = !1, g.style.height = g.style.overflow = "";
|
|
10151
10151
|
};
|
|
10152
10152
|
return p.addEventListener("click", E), () => p.removeEventListener("click", E);
|
|
10153
10153
|
}, []), /* @__PURE__ */ e.createElement("div", { className: H([m, o]), ...r }, /* @__PURE__ */ e.createElement(
|
|
@@ -10158,7 +10158,7 @@ const Wn = () => {
|
|
|
10158
10158
|
open: a,
|
|
10159
10159
|
ref: v
|
|
10160
10160
|
},
|
|
10161
|
-
/* @__PURE__ */ e.createElement("summary", { ref:
|
|
10161
|
+
/* @__PURE__ */ e.createElement("summary", { ref: f }, /* @__PURE__ */ e.createElement("span", null, c), /* @__PURE__ */ e.createElement(
|
|
10162
10162
|
R,
|
|
10163
10163
|
{
|
|
10164
10164
|
iconName: "angleDown",
|
|
@@ -10205,31 +10205,35 @@ const Wn = () => {
|
|
|
10205
10205
|
background: t = "default",
|
|
10206
10206
|
children: s,
|
|
10207
10207
|
hasBorder: a = !0,
|
|
10208
|
-
|
|
10209
|
-
|
|
10208
|
+
labelStrings: c,
|
|
10209
|
+
className: o,
|
|
10210
|
+
...r
|
|
10210
10211
|
}) => {
|
|
10211
|
-
const
|
|
10212
|
+
const l = "pds-panel-list", n = t !== "default" ? `${l}--${t}` : null, d = a ? null : `${l}--borderless`, i = c ? e.Children.map(s, (m) => e.isValidElement(m) && !m.props.labelStrings ? e.cloneElement(m, { labelStrings: c }) : m) : s;
|
|
10212
10213
|
return /* @__PURE__ */ e.createElement(
|
|
10213
10214
|
"ul",
|
|
10214
10215
|
{
|
|
10215
10216
|
className: H([
|
|
10216
|
-
r,
|
|
10217
10217
|
l,
|
|
10218
10218
|
n,
|
|
10219
|
-
|
|
10219
|
+
d,
|
|
10220
|
+
o ?? ""
|
|
10220
10221
|
]),
|
|
10221
|
-
...
|
|
10222
|
+
...r
|
|
10222
10223
|
},
|
|
10223
|
-
|
|
10224
|
+
i
|
|
10224
10225
|
);
|
|
10225
10226
|
}, C2 = 0, Xn = ({
|
|
10226
10227
|
children: t,
|
|
10227
10228
|
className: s,
|
|
10228
10229
|
isExpandable: a = !1,
|
|
10229
|
-
|
|
10230
|
+
labelStrings: c = {
|
|
10231
|
+
buttonExpand: "Expand",
|
|
10232
|
+
buttonCollapse: "Collapse"
|
|
10233
|
+
},
|
|
10230
10234
|
...o
|
|
10231
10235
|
}) => {
|
|
10232
|
-
const r = "pds-panel-row", [l, n] =
|
|
10236
|
+
const r = "pds-panel-row", [l, n] = W(!1), d = le(null), i = le(null), m = Ae(t), v = m["items-left"], f = m["items-right"], N = m["items-below"], g = () => {
|
|
10233
10237
|
const p = i.current, _ = d.current;
|
|
10234
10238
|
if (!p || !_) return;
|
|
10235
10239
|
const C = !l;
|
|
@@ -10287,14 +10291,14 @@ const Wn = () => {
|
|
|
10287
10291
|
])
|
|
10288
10292
|
},
|
|
10289
10293
|
v && /* @__PURE__ */ e.createElement("div", { className: `${r}__items ${r}__items--left` }, v),
|
|
10290
|
-
|
|
10294
|
+
f && /* @__PURE__ */ e.createElement("div", { className: `${r}__items ${r}__items--right` }, f),
|
|
10291
10295
|
a && /* @__PURE__ */ e.createElement(
|
|
10292
10296
|
"button",
|
|
10293
10297
|
{
|
|
10294
10298
|
className: `${r}__expand-button`,
|
|
10295
10299
|
onClick: g,
|
|
10296
10300
|
"aria-expanded": l,
|
|
10297
|
-
"aria-label": c
|
|
10301
|
+
"aria-label": l ? c.buttonCollapse : c.buttonExpand
|
|
10298
10302
|
},
|
|
10299
10303
|
/* @__PURE__ */ e.createElement(
|
|
10300
10304
|
R,
|
|
@@ -10351,17 +10355,17 @@ const Wn = () => {
|
|
|
10351
10355
|
popoverIsOpen: m = !1,
|
|
10352
10356
|
setPopoverIsOpen: v = () => {
|
|
10353
10357
|
},
|
|
10354
|
-
className:
|
|
10358
|
+
className: f,
|
|
10355
10359
|
classNameContainer: N,
|
|
10356
10360
|
...g
|
|
10357
10361
|
}) => {
|
|
10358
|
-
const [p, _] =
|
|
10362
|
+
const [p, _] = W(m);
|
|
10359
10363
|
ae(() => {
|
|
10360
10364
|
_(m);
|
|
10361
10365
|
}, [m]), ae(() => {
|
|
10362
10366
|
v(p);
|
|
10363
10367
|
}, [p]);
|
|
10364
|
-
const C = typeof a, u = "pds-popover",
|
|
10368
|
+
const C = typeof a, u = "pds-popover", h = H([
|
|
10365
10369
|
`${u}__trigger-custom`,
|
|
10366
10370
|
C === "string" ? `${u}__trigger-text` : ""
|
|
10367
10371
|
]), E = a ? o : 0, b = le(null), { refs: w, floatingStyles: y, context: L, middlewareData: $ } = ke({
|
|
@@ -10379,11 +10383,11 @@ const Wn = () => {
|
|
|
10379
10383
|
whileElementsMounted: xe
|
|
10380
10384
|
}), M = () => {
|
|
10381
10385
|
_(!1), r && r();
|
|
10382
|
-
}, k = je(L), z = Se(L), F = Ve(L), { getReferenceProps:
|
|
10386
|
+
}, k = je(L), z = Se(L), F = Ve(L), { getReferenceProps: I, getFloatingProps: V } = Ie([
|
|
10383
10387
|
k,
|
|
10384
10388
|
z,
|
|
10385
10389
|
F
|
|
10386
|
-
]), O = $.arrow?.x ?? 0,
|
|
10390
|
+
]), O = $.arrow?.x ?? 0, Z = $.arrow?.y ?? 0, P = O + _2 / 2, Y = Z + tt, { isMounted: Q } = Ke(L, {
|
|
10387
10391
|
initial: {
|
|
10388
10392
|
transform: "scale(0)"
|
|
10389
10393
|
},
|
|
@@ -10396,17 +10400,17 @@ const Wn = () => {
|
|
|
10396
10400
|
}[j]
|
|
10397
10401
|
})
|
|
10398
10402
|
});
|
|
10399
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([u,
|
|
10403
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([u, f]), ...g }, /* @__PURE__ */ e.createElement(
|
|
10400
10404
|
"span",
|
|
10401
10405
|
{
|
|
10402
10406
|
className: `${u}__trigger`,
|
|
10403
10407
|
ref: w.setReference,
|
|
10404
10408
|
role: "button",
|
|
10405
10409
|
tabIndex: 0,
|
|
10406
|
-
...
|
|
10410
|
+
...I(),
|
|
10407
10411
|
...g
|
|
10408
10412
|
},
|
|
10409
|
-
a ? /* @__PURE__ */ e.createElement("span", { className:
|
|
10413
|
+
a ? /* @__PURE__ */ e.createElement("span", { className: h }, a) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, i), /* @__PURE__ */ e.createElement(
|
|
10410
10414
|
R,
|
|
10411
10415
|
{
|
|
10412
10416
|
iconName: d,
|
|
@@ -10478,24 +10482,24 @@ const Wn = () => {
|
|
|
10478
10482
|
className: i,
|
|
10479
10483
|
...m
|
|
10480
10484
|
}) => {
|
|
10481
|
-
const v = s || at(),
|
|
10485
|
+
const v = s || at(), f = "pds-progress-bar", N = l ? `${f}__label` : "visually-hidden", g = `${f}__track ${f}__track--${d}`, p = r > 100 ? 100 : r;
|
|
10482
10486
|
let _ = "neutral";
|
|
10483
10487
|
t.forEach((E) => {
|
|
10484
10488
|
r >= E.percentage && (_ = E.colorType);
|
|
10485
10489
|
});
|
|
10486
|
-
const C = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10490
|
+
const C = /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, c), u = c && o === "above", h = c && o === "below";
|
|
10487
10491
|
return /* @__PURE__ */ e.createElement(
|
|
10488
10492
|
"div",
|
|
10489
10493
|
{
|
|
10490
|
-
className: [
|
|
10494
|
+
className: [f, i].join(" ").trim().replace(/\s+/g, " "),
|
|
10491
10495
|
style: { "--bar-percentage": `${p}%` },
|
|
10492
10496
|
...m
|
|
10493
10497
|
},
|
|
10494
10498
|
/* @__PURE__ */ e.createElement("div", { id: v, className: N }, a),
|
|
10495
|
-
(u || n) && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10499
|
+
(u || n) && /* @__PURE__ */ e.createElement("div", { className: `${f}__details` }, u && C, n && /* @__PURE__ */ e.createElement(
|
|
10496
10500
|
"div",
|
|
10497
10501
|
{
|
|
10498
|
-
className: `${
|
|
10502
|
+
className: `${f}__percentage`,
|
|
10499
10503
|
style: {
|
|
10500
10504
|
color: `hsl(from var(${E2[_]}) h s calc(l - 7))`
|
|
10501
10505
|
}
|
|
@@ -10503,7 +10507,7 @@ const Wn = () => {
|
|
|
10503
10507
|
r,
|
|
10504
10508
|
"%"
|
|
10505
10509
|
)),
|
|
10506
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10510
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10507
10511
|
"div",
|
|
10508
10512
|
{
|
|
10509
10513
|
role: "progressbar",
|
|
@@ -10514,7 +10518,7 @@ const Wn = () => {
|
|
|
10514
10518
|
/* @__PURE__ */ e.createElement(
|
|
10515
10519
|
"div",
|
|
10516
10520
|
{
|
|
10517
|
-
className: `${
|
|
10521
|
+
className: `${f}__bar`,
|
|
10518
10522
|
style: {
|
|
10519
10523
|
width: `${p}%`,
|
|
10520
10524
|
backgroundColor: `var(${E2[_]})`
|
|
@@ -10522,7 +10526,7 @@ const Wn = () => {
|
|
|
10522
10526
|
}
|
|
10523
10527
|
)
|
|
10524
10528
|
)),
|
|
10525
|
-
|
|
10529
|
+
h && C
|
|
10526
10530
|
);
|
|
10527
10531
|
}, Ms = ({
|
|
10528
10532
|
id: t,
|
|
@@ -10535,12 +10539,12 @@ const Wn = () => {
|
|
|
10535
10539
|
className: n,
|
|
10536
10540
|
...d
|
|
10537
10541
|
}) => {
|
|
10538
|
-
const i = t || at(), m = "pds-progress-ring", v = o ? `${m}__label` : "visually-hidden",
|
|
10542
|
+
const i = t || at(), m = "pds-progress-ring", v = o ? `${m}__label` : "visually-hidden", f = `${m}__loading-text ${m}__loading-text--${l}`, N = (E) => E * 16;
|
|
10539
10543
|
let g = N(T2), p = 7;
|
|
10540
10544
|
l === "sm" && (g = N(A2), p = p / 1.25), l === "lg" && (g = N(D2), p = p * 1.25);
|
|
10541
10545
|
const _ = g / 2 - p / 2, C = 2 * Math.PI * _, u = C - C * c / 100;
|
|
10542
|
-
let
|
|
10543
|
-
return s ?
|
|
10546
|
+
let h;
|
|
10547
|
+
return s ? h = s : r ? h = `${c}%` : h = "", /* @__PURE__ */ e.createElement(
|
|
10544
10548
|
"div",
|
|
10545
10549
|
{
|
|
10546
10550
|
className: [m, n].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -10594,7 +10598,7 @@ const Wn = () => {
|
|
|
10594
10598
|
/* @__PURE__ */ e.createElement(
|
|
10595
10599
|
"text",
|
|
10596
10600
|
{
|
|
10597
|
-
className:
|
|
10601
|
+
className: f,
|
|
10598
10602
|
fill: "var(--pds-color-fg-default)",
|
|
10599
10603
|
x: "50%",
|
|
10600
10604
|
y: "51%",
|
|
@@ -10602,7 +10606,7 @@ const Wn = () => {
|
|
|
10602
10606
|
dominantBaseline: "middle",
|
|
10603
10607
|
alignmentBaseline: "middle"
|
|
10604
10608
|
},
|
|
10605
|
-
|
|
10609
|
+
h
|
|
10606
10610
|
)
|
|
10607
10611
|
)
|
|
10608
10612
|
)
|
|
@@ -10657,7 +10661,7 @@ const ea = ({
|
|
|
10657
10661
|
return i.checking;
|
|
10658
10662
|
case "checked":
|
|
10659
10663
|
if (c) {
|
|
10660
|
-
const u = c instanceof Date ? c : new Date(c),
|
|
10664
|
+
const u = c instanceof Date ? c : new Date(c), h = Date.now() - u.getTime(), E = Math.floor(h / 1e3), b = Math.floor(E / 60), w = Math.floor(b / 60), y = Math.floor(w / 24), L = {
|
|
10661
10665
|
year: "numeric",
|
|
10662
10666
|
month: "short",
|
|
10663
10667
|
day: "numeric"
|
|
@@ -10672,21 +10676,21 @@ const ea = ({
|
|
|
10672
10676
|
}
|
|
10673
10677
|
}, v = () => {
|
|
10674
10678
|
o?.();
|
|
10675
|
-
},
|
|
10676
|
-
`${
|
|
10677
|
-
d === "working" ? `${
|
|
10678
|
-
]), p = s !== null && s > 0 ? `${s}rem` : "100%", _ = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
10679
|
+
}, f = "pds-refresh-checker", N = `${f}--${t}`, g = H([
|
|
10680
|
+
`${f}__button`,
|
|
10681
|
+
d === "working" ? `${f}__button--spinning` : ""
|
|
10682
|
+
]), p = s !== null && s > 0 ? `${s}rem` : "100%", _ = /* @__PURE__ */ e.createElement("span", { className: `${f}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
10679
10683
|
R,
|
|
10680
10684
|
{
|
|
10681
10685
|
iconName: "rotate",
|
|
10682
10686
|
iconSize: "md",
|
|
10683
|
-
className: `${
|
|
10687
|
+
className: `${f}__icon ${d === "working" ? `${f}__icon--spinning` : ""}`
|
|
10684
10688
|
}
|
|
10685
|
-
)), C = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
10689
|
+
)), C = /* @__PURE__ */ e.createElement("span", { className: `${f}__label` }, m());
|
|
10686
10690
|
return /* @__PURE__ */ e.createElement(
|
|
10687
10691
|
"div",
|
|
10688
10692
|
{
|
|
10689
|
-
className: H([
|
|
10693
|
+
className: H([f, N, l ?? ""]),
|
|
10690
10694
|
style: { width: p },
|
|
10691
10695
|
...n
|
|
10692
10696
|
},
|
|
@@ -10725,10 +10729,10 @@ const ea = ({
|
|
|
10725
10729
|
upgradeLabel: i,
|
|
10726
10730
|
workspaceName: m,
|
|
10727
10731
|
className: v,
|
|
10728
|
-
...
|
|
10732
|
+
...f
|
|
10729
10733
|
}) => {
|
|
10730
10734
|
const N = "pds-site-dashboard-heading", g = fs[l], p = n ? F2[n] : "bolt";
|
|
10731
|
-
return /* @__PURE__ */ e.createElement("div", { className: H([N, v ?? ""]), ...
|
|
10735
|
+
return /* @__PURE__ */ e.createElement("div", { className: H([N, v ?? ""]), ...f }, m && /* @__PURE__ */ e.createElement("div", { className: `${N}__workspace-name` }, m), /* @__PURE__ */ e.createElement("div", { className: `${N}__inner` }, /* @__PURE__ */ e.createElement(R, { iconName: p, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, r), /* @__PURE__ */ e.createElement("span", { className: `${N}__plan-level-badge` }, l === "sandbox" ? /* @__PURE__ */ e.createElement(
|
|
10732
10736
|
ze,
|
|
10733
10737
|
{
|
|
10734
10738
|
displayType: "icon-start",
|
|
@@ -10852,14 +10856,14 @@ const ea = ({
|
|
|
10852
10856
|
}) => {
|
|
10853
10857
|
const o = "pds-stepper", r = "pds-stepper-mobile", l = le(null), [n] = Mt(l), d = n.width, i = Number(
|
|
10854
10858
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
10855
|
-
) * 16, m = -40, v = 2,
|
|
10856
|
-
const
|
|
10857
|
-
let
|
|
10858
|
-
(z || F) && (
|
|
10859
|
+
) * 16, m = -40, v = 2, f = 5, N = t.length, g = t.map((C) => C.isCurrent).lastIndexOf(!0), p = t.map((C, u) => {
|
|
10860
|
+
const h = u + 1, E = u === g, b = C.isComplete || u < g, w = C.hasError && E, L = (d - N * i) / (N + (N - 2)), $ = i + L * 2, M = i + L, k = L + m * -1, z = u === 0, F = u === N - 1;
|
|
10861
|
+
let I = $;
|
|
10862
|
+
(z || F) && (I = M);
|
|
10859
10863
|
const V = `${o}__step`, O = [V];
|
|
10860
10864
|
E && O.push(`${V}--current`), b && O.push(`${V}--complete`), w && O.push(`${V}--error`);
|
|
10861
|
-
let
|
|
10862
|
-
b && (
|
|
10865
|
+
let Z = `${s.step} ${h}`;
|
|
10866
|
+
b && (Z = `${s.step} ${h}, ${s.completed}`), w && (Z = `${s.step} ${h}, ${s.hasError}`);
|
|
10863
10867
|
const P = b ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${o}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
10864
10868
|
R,
|
|
10865
10869
|
{
|
|
@@ -10889,12 +10893,12 @@ const ea = ({
|
|
|
10889
10893
|
{
|
|
10890
10894
|
key: C.id,
|
|
10891
10895
|
id: C.id,
|
|
10892
|
-
"aria-label":
|
|
10893
|
-
"aria-posinset":
|
|
10896
|
+
"aria-label": Z,
|
|
10897
|
+
"aria-posinset": h,
|
|
10894
10898
|
"aria-setsize": N,
|
|
10895
10899
|
"aria-current": E ? "step" : null,
|
|
10896
10900
|
className: H(O),
|
|
10897
|
-
style: { width:
|
|
10901
|
+
style: { width: I }
|
|
10898
10902
|
},
|
|
10899
10903
|
!z && /* @__PURE__ */ e.createElement(
|
|
10900
10904
|
"span",
|
|
@@ -10916,13 +10920,13 @@ const ea = ({
|
|
|
10916
10920
|
)
|
|
10917
10921
|
);
|
|
10918
10922
|
}), _ = t.map((C, u) => {
|
|
10919
|
-
const
|
|
10923
|
+
const h = u + 1, E = u === g, b = u === N - 1, w = C.hasError && E, y = t[g + 1] ? t[g + 1].label : null;
|
|
10920
10924
|
if (E) {
|
|
10921
|
-
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "),
|
|
10925
|
+
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), h, " of ", N), $ = h / N * 100, M = w ? {
|
|
10922
10926
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
10923
10927
|
} : {
|
|
10924
10928
|
"--pds-color-status-info-foreground": "var(--pds-color-brand-primary-default)"
|
|
10925
|
-
}, k = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ",
|
|
10929
|
+
}, k = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", h, ", ", s.hasError);
|
|
10926
10930
|
return /* @__PURE__ */ e.createElement(
|
|
10927
10931
|
"div",
|
|
10928
10932
|
{
|
|
@@ -10951,7 +10955,7 @@ const ea = ({
|
|
|
10951
10955
|
);
|
|
10952
10956
|
}
|
|
10953
10957
|
});
|
|
10954
|
-
if (N >= v && N <=
|
|
10958
|
+
if (N >= v && N <= f)
|
|
10955
10959
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10956
10960
|
"div",
|
|
10957
10961
|
{
|
|
@@ -10981,8 +10985,8 @@ const ea = ({
|
|
|
10981
10985
|
_isFirstStep: d,
|
|
10982
10986
|
...i
|
|
10983
10987
|
}) => {
|
|
10984
|
-
const m = "pds-vert-stepper", v = `${m}__step`,
|
|
10985
|
-
return o &&
|
|
10988
|
+
const m = "pds-vert-stepper", v = `${m}__step`, f = [v];
|
|
10989
|
+
return o && f.push(`${v}--current`), n && f.push(`${v}--complete`), a && f.push(`${v}--error`), /* @__PURE__ */ e.createElement("li", { id: c, className: H([...f]), ...i }, /* @__PURE__ */ e.createElement("div", { className: `${m}__step-header` }, /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${m}__step-indicator` }, n && /* @__PURE__ */ e.createElement(
|
|
10986
10990
|
R,
|
|
10987
10991
|
{
|
|
10988
10992
|
iconName: "check",
|
|
@@ -11001,12 +11005,12 @@ const ea = ({
|
|
|
11001
11005
|
...c
|
|
11002
11006
|
}) => {
|
|
11003
11007
|
const o = "pds-vert-stepper", n = s.length, d = s.findIndex((v) => v.isCurrent), i = s.map((m, v) => {
|
|
11004
|
-
const
|
|
11005
|
-
let C = `${t.step} ${
|
|
11006
|
-
return p && (C = `${t.step} ${
|
|
11008
|
+
const f = v + 1, N = v === d, g = v === 0, p = m.isComplete || !1, _ = m.hasError && N;
|
|
11009
|
+
let C = `${t.step} ${f}`;
|
|
11010
|
+
return p && (C = `${t.step} ${f}, ${t.completed}`), _ && (C = `${t.step} ${f}, ${t.hasError}`), /* @__PURE__ */ e.createElement(
|
|
11007
11011
|
zs,
|
|
11008
11012
|
{
|
|
11009
|
-
key: `s${
|
|
11013
|
+
key: `s${f}`,
|
|
11010
11014
|
label: m.label,
|
|
11011
11015
|
stepContent: m.stepContent,
|
|
11012
11016
|
id: m.id,
|
|
@@ -11017,7 +11021,7 @@ const ea = ({
|
|
|
11017
11021
|
isComplete: p,
|
|
11018
11022
|
_isFirstStep: g,
|
|
11019
11023
|
"aria-label": C,
|
|
11020
|
-
"aria-posinset":
|
|
11024
|
+
"aria-posinset": f,
|
|
11021
11025
|
"aria-setsize": n,
|
|
11022
11026
|
"aria-current": N ? "step" : null
|
|
11023
11027
|
}
|
|
@@ -11031,13 +11035,13 @@ const ea = ({
|
|
|
11031
11035
|
className: a,
|
|
11032
11036
|
...c
|
|
11033
11037
|
}) => {
|
|
11034
|
-
const [o] =
|
|
11038
|
+
const [o] = W(t), [r, l] = W(s), [n, d] = W({ order: "asc", key: "" }), i = (g) => {
|
|
11035
11039
|
l(r.sort((p, _) => p[g].localeCompare(_[g]))), d({ order: "desc", key: g });
|
|
11036
11040
|
}, m = (g) => {
|
|
11037
11041
|
l(r.sort((p, _) => _[g].localeCompare(p[g]))), d({ order: "asc", key: g });
|
|
11038
11042
|
}, v = (g, p) => {
|
|
11039
11043
|
d({ ...n, key: p }), n.order === "asc" ? i(p) : m(p);
|
|
11040
|
-
},
|
|
11044
|
+
}, f = (g, p) => /* @__PURE__ */ e.createElement("tr", { id: p, key: `table-row-${p}` }, g.map((_, C) => /* @__PURE__ */ e.createElement("td", { key: `${p}-cell-${C}` }, /* @__PURE__ */ e.createElement("span", null, _)))), N = "pds-table";
|
|
11041
11045
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", { className: H([N, a]), ...c }, /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, o.map((g, p) => /* @__PURE__ */ e.createElement("th", { key: `header-${p}` }, g.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${N}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
11042
11046
|
"span",
|
|
11043
11047
|
{
|
|
@@ -11067,7 +11071,7 @@ const ea = ({
|
|
|
11067
11071
|
},
|
|
11068
11072
|
/* @__PURE__ */ e.createElement(R, { iconName: "caretDown", iconSize: "sm" })
|
|
11069
11073
|
)
|
|
11070
|
-
)) : /* @__PURE__ */ e.createElement("span", null, g.title))))), /* @__PURE__ */ e.createElement("tbody", null, r.map((g, p) =>
|
|
11074
|
+
)) : /* @__PURE__ */ e.createElement("span", null, g.title))))), /* @__PURE__ */ e.createElement("tbody", null, r.map((g, p) => f(g, p)))));
|
|
11071
11075
|
}, ra = ({
|
|
11072
11076
|
appendIds: t = !1,
|
|
11073
11077
|
ariaLabel: s = "Table of contents",
|
|
@@ -11097,8 +11101,8 @@ const ea = ({
|
|
|
11097
11101
|
"=",
|
|
11098
11102
|
"|",
|
|
11099
11103
|
"~"
|
|
11100
|
-
], v = `#${l} h2:not(.${o}), h3:not(.${o})`,
|
|
11101
|
-
const [y, L] =
|
|
11104
|
+
], v = `#${l} h2:not(.${o}), h3:not(.${o})`, f = (y) => y.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), N = () => {
|
|
11105
|
+
const [y, L] = W([]);
|
|
11102
11106
|
return ae(() => {
|
|
11103
11107
|
const $ = Array.from(
|
|
11104
11108
|
document.querySelectorAll(v)
|
|
@@ -11106,7 +11110,7 @@ const ea = ({
|
|
|
11106
11110
|
$.map((k) => {
|
|
11107
11111
|
m.forEach((z) => {
|
|
11108
11112
|
k.id.includes(z) && (k.id = k.id.replace(
|
|
11109
|
-
new RegExp(
|
|
11113
|
+
new RegExp(f(z), "g"),
|
|
11110
11114
|
"-"
|
|
11111
11115
|
));
|
|
11112
11116
|
});
|
|
@@ -11126,7 +11130,7 @@ const ea = ({
|
|
|
11126
11130
|
title: M
|
|
11127
11131
|
});
|
|
11128
11132
|
}), L;
|
|
11129
|
-
}, { nestedHeadings: p } = N(), [_, C] =
|
|
11133
|
+
}, { nestedHeadings: p } = N(), [_, C] = W();
|
|
11130
11134
|
((y) => {
|
|
11131
11135
|
const L = le({});
|
|
11132
11136
|
ae(() => {
|
|
@@ -11137,12 +11141,12 @@ const ea = ({
|
|
|
11137
11141
|
const O = L.current[V];
|
|
11138
11142
|
O.isIntersecting && F.push(O);
|
|
11139
11143
|
});
|
|
11140
|
-
const
|
|
11144
|
+
const I = (V) => k.findIndex((O) => O.id === V);
|
|
11141
11145
|
if (F.length === 1)
|
|
11142
11146
|
y(F[0].target.id);
|
|
11143
11147
|
else if (F.length > 1) {
|
|
11144
11148
|
const V = F.sort(
|
|
11145
|
-
(O,
|
|
11149
|
+
(O, Z) => I(O.target.id) - I(Z.target.id)
|
|
11146
11150
|
);
|
|
11147
11151
|
y(V[0].target.id);
|
|
11148
11152
|
}
|
|
@@ -11154,7 +11158,7 @@ const ea = ({
|
|
|
11154
11158
|
return k.forEach((z) => M.observe(z)), () => M.disconnect();
|
|
11155
11159
|
}, [y]);
|
|
11156
11160
|
})(C);
|
|
11157
|
-
const
|
|
11161
|
+
const h = (y) => {
|
|
11158
11162
|
typeof window < "u" && window.location.hash !== `#${y}` && window.history.pushState({}, "", `#${y}`);
|
|
11159
11163
|
}, E = (y) => {
|
|
11160
11164
|
document.querySelector(`#${y}`).scrollIntoView({
|
|
@@ -11162,7 +11166,7 @@ const ea = ({
|
|
|
11162
11166
|
block: "start"
|
|
11163
11167
|
});
|
|
11164
11168
|
}, b = (y, L) => {
|
|
11165
|
-
y.preventDefault(), t &&
|
|
11169
|
+
y.preventDefault(), t && h(L), E(L);
|
|
11166
11170
|
}, w = ({ headings: y }) => /* @__PURE__ */ e.createElement("ul", { className: `${i}__list ${i}__list--top-level` }, y.map((L) => /* @__PURE__ */ e.createElement("li", { key: L.id, className: `${i}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
11167
11171
|
"a",
|
|
11168
11172
|
{
|
|
@@ -11218,7 +11222,7 @@ const ea = ({
|
|
|
11218
11222
|
className: r,
|
|
11219
11223
|
...l
|
|
11220
11224
|
}) => {
|
|
11221
|
-
const n = "pds-tabs", [d, i] =
|
|
11225
|
+
const n = "pds-tabs", [d, i] = W(c ?? s);
|
|
11222
11226
|
ae(() => {
|
|
11223
11227
|
c !== void 0 && i(c);
|
|
11224
11228
|
}, [c]);
|
|
@@ -11241,26 +11245,26 @@ const ea = ({
|
|
|
11241
11245
|
return;
|
|
11242
11246
|
}
|
|
11243
11247
|
}, [d]);
|
|
11244
|
-
const
|
|
11248
|
+
const f = (g, p) => {
|
|
11245
11249
|
const _ = d;
|
|
11246
11250
|
let C = v.current[p === "next" ? _ + 1 < v.current.length ? _ + 1 : 0 : _ - 1 >= 0 ? _ - 1 : v.current.length - 1];
|
|
11247
11251
|
C || (C = p == "next" ? v.current[g + 1] == null ? v.current[0] : v.current[g + 1] : v.current[g - 1]), C.focus();
|
|
11248
11252
|
}, N = (g) => {
|
|
11249
11253
|
const p = v.current.length, _ = () => {
|
|
11250
|
-
|
|
11254
|
+
f((d + 1) % p, "next"), i(d + 1);
|
|
11251
11255
|
}, C = () => {
|
|
11252
|
-
|
|
11256
|
+
f((d - 1 + p) % p, "prev"), i(d - 1);
|
|
11253
11257
|
}, u = () => {
|
|
11254
|
-
|
|
11255
|
-
},
|
|
11256
|
-
|
|
11258
|
+
f(0), i(0);
|
|
11259
|
+
}, h = () => {
|
|
11260
|
+
f(p - 1), i(p - 1);
|
|
11257
11261
|
}, E = () => {
|
|
11258
11262
|
v.current[d].focus();
|
|
11259
11263
|
}, w = {
|
|
11260
11264
|
ArrowRight: _,
|
|
11261
11265
|
ArrowLeft: C,
|
|
11262
11266
|
Home: u,
|
|
11263
|
-
End:
|
|
11267
|
+
End: h,
|
|
11264
11268
|
Space: E,
|
|
11265
11269
|
Enter: E
|
|
11266
11270
|
}[g.code];
|
|
@@ -11274,55 +11278,55 @@ const ea = ({
|
|
|
11274
11278
|
"aria-label": t,
|
|
11275
11279
|
"aria-orientation": "horizontal"
|
|
11276
11280
|
},
|
|
11277
|
-
o.map(({ disabled: g, icon: p, tabId: _, tabLabel: C, tally: u },
|
|
11281
|
+
o.map(({ disabled: g, icon: p, tabId: _, tabLabel: C, tally: u }, h) => /* @__PURE__ */ e.createElement(
|
|
11278
11282
|
"button",
|
|
11279
11283
|
{
|
|
11280
11284
|
className: `${n}__tab`,
|
|
11281
|
-
"aria-selected":
|
|
11282
|
-
"data-tabnumber":
|
|
11285
|
+
"aria-selected": h == d,
|
|
11286
|
+
"data-tabnumber": h,
|
|
11283
11287
|
role: "tab",
|
|
11284
11288
|
id: _,
|
|
11285
11289
|
onKeyDown: (E) => {
|
|
11286
11290
|
E.preventDefault(), N(E);
|
|
11287
11291
|
},
|
|
11288
|
-
key:
|
|
11292
|
+
key: h,
|
|
11289
11293
|
ref: (E) => {
|
|
11290
|
-
g || (v.current[
|
|
11294
|
+
g || (v.current[h] = E);
|
|
11291
11295
|
},
|
|
11292
|
-
"aria-controls": `${n}__tab--${
|
|
11293
|
-
tabIndex: d ===
|
|
11296
|
+
"aria-controls": `${n}__tab--${h}`,
|
|
11297
|
+
tabIndex: d === h ? 0 : -1,
|
|
11294
11298
|
"aria-disabled": !!g,
|
|
11295
11299
|
onClick: g ? null : m,
|
|
11296
11300
|
type: "button"
|
|
11297
11301
|
},
|
|
11298
|
-
/* @__PURE__ */ e.createElement("div", { key: p, className: `${n}__tab-label` }, p ? /* @__PURE__ */ e.createElement(R, { iconName: p, iconSize: "md" }) : null, " ", C, o[
|
|
11302
|
+
/* @__PURE__ */ e.createElement("div", { key: p, className: `${n}__tab-label` }, p ? /* @__PURE__ */ e.createElement(R, { iconName: p, iconSize: "md" }) : null, " ", C, o[h].tally ? /* @__PURE__ */ e.createElement(yt, { label: u.label, type: u.type }) : null)
|
|
11299
11303
|
))
|
|
11300
|
-
), o.map(({ disabled: g, icon: p, panelContent: _, tabLabel: C, tally: u },
|
|
11304
|
+
), o.map(({ disabled: g, icon: p, panelContent: _, tabLabel: C, tally: u }, h) => /* @__PURE__ */ e.createElement(
|
|
11301
11305
|
"div",
|
|
11302
11306
|
{
|
|
11303
11307
|
className: `${n}__panel`,
|
|
11304
11308
|
role: "tabpanel",
|
|
11305
|
-
key:
|
|
11306
|
-
id: `${n}__tab--${
|
|
11307
|
-
"aria-labelledby": `${n}__tab--${
|
|
11309
|
+
key: h,
|
|
11310
|
+
id: `${n}__tab--${h}`,
|
|
11311
|
+
"aria-labelledby": `${n}__tab--${h}`
|
|
11308
11312
|
},
|
|
11309
11313
|
/* @__PURE__ */ e.createElement(
|
|
11310
11314
|
"button",
|
|
11311
11315
|
{
|
|
11312
11316
|
className: `${n}__trigger`,
|
|
11313
|
-
"aria-selected":
|
|
11317
|
+
"aria-selected": h == d,
|
|
11314
11318
|
role: "tab",
|
|
11315
|
-
"data-tabnumber":
|
|
11316
|
-
key:
|
|
11319
|
+
"data-tabnumber": h,
|
|
11320
|
+
key: h,
|
|
11317
11321
|
onKeyDown: N,
|
|
11318
11322
|
"aria-disabled": !!g,
|
|
11319
|
-
"aria-controls": `tabpanel_${
|
|
11320
|
-
tabIndex: d ===
|
|
11323
|
+
"aria-controls": `tabpanel_${h}`,
|
|
11324
|
+
tabIndex: d === h ? 1 : -1,
|
|
11321
11325
|
onClick: g ? null : m,
|
|
11322
11326
|
type: "button"
|
|
11323
11327
|
},
|
|
11324
|
-
/* @__PURE__ */ e.createElement("div", { key: p, className: `${n}__tab-label` }, p ? /* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: p }) : null, " ", C, o[
|
|
11325
|
-
|
|
11328
|
+
/* @__PURE__ */ e.createElement("div", { key: p, className: `${n}__tab-label` }, p ? /* @__PURE__ */ e.createElement(R, { iconSize: "md", iconName: p }) : null, " ", C, o[h].tally ? /* @__PURE__ */ e.createElement(yt, { label: u.label, type: u.type }) : null),
|
|
11329
|
+
h == d ? /* @__PURE__ */ e.createElement(
|
|
11326
11330
|
R,
|
|
11327
11331
|
{
|
|
11328
11332
|
iconName: "angleUp",
|
|
@@ -11342,7 +11346,7 @@ const ea = ({
|
|
|
11342
11346
|
"section",
|
|
11343
11347
|
{
|
|
11344
11348
|
className: `${n}__panel-content`,
|
|
11345
|
-
hidden:
|
|
11349
|
+
hidden: h != d
|
|
11346
11350
|
},
|
|
11347
11351
|
_
|
|
11348
11352
|
)
|
|
@@ -11381,7 +11385,7 @@ const ea = ({
|
|
|
11381
11385
|
className: l,
|
|
11382
11386
|
...n
|
|
11383
11387
|
}) => {
|
|
11384
|
-
const [d, i] =
|
|
11388
|
+
const [d, i] = W(!0), m = "pds-tag", v = o ? `${m}--${o}` : `${m}--${xs(r)}`, f = d ? null : "pds-tag--hide", N = () => {
|
|
11385
11389
|
i((C) => !C);
|
|
11386
11390
|
};
|
|
11387
11391
|
let g, p, _;
|
|
@@ -11396,7 +11400,7 @@ const ea = ({
|
|
|
11396
11400
|
{
|
|
11397
11401
|
href: p === "href" ? _ : null,
|
|
11398
11402
|
to: p === "to" ? _ : null,
|
|
11399
|
-
className: [m, v,
|
|
11403
|
+
className: [m, v, f, l].join(" ").trim().replace(/\s+/g, " "),
|
|
11400
11404
|
...n
|
|
11401
11405
|
},
|
|
11402
11406
|
/* @__PURE__ */ e.createElement("span", { className: `${m}__label`, title: r }, Ss(r, 20)),
|
|
@@ -11423,11 +11427,16 @@ const ea = ({
|
|
|
11423
11427
|
}, ma = ({
|
|
11424
11428
|
theme: t = "light",
|
|
11425
11429
|
onChange: s,
|
|
11426
|
-
translations: a = {
|
|
11430
|
+
translations: a = {
|
|
11431
|
+
light: "Light",
|
|
11432
|
+
dark: "Dark",
|
|
11433
|
+
system: "System",
|
|
11434
|
+
tooltip: "Switch Theme"
|
|
11435
|
+
},
|
|
11427
11436
|
className: c,
|
|
11428
11437
|
...o
|
|
11429
11438
|
}) => {
|
|
11430
|
-
const r = "pds-theme-switcher", [l, n] =
|
|
11439
|
+
const r = "pds-theme-switcher", [l, n] = W(t ?? "light");
|
|
11431
11440
|
ae(() => {
|
|
11432
11441
|
n(t ?? "system");
|
|
11433
11442
|
}, [t]);
|
|
@@ -11466,15 +11475,15 @@ const ea = ({
|
|
|
11466
11475
|
return /* @__PURE__ */ e.createElement("div", { className: H([r, c ?? ""]), ...o }, /* @__PURE__ */ e.createElement(
|
|
11467
11476
|
ye,
|
|
11468
11477
|
{
|
|
11469
|
-
content: a.tooltip
|
|
11478
|
+
content: a.tooltip,
|
|
11470
11479
|
preferredPlacement: "top",
|
|
11471
11480
|
offsetValue: 0,
|
|
11472
11481
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
11473
11482
|
I2,
|
|
11474
11483
|
{
|
|
11475
11484
|
id: "theme-switcher-menu",
|
|
11476
|
-
"aria-label": a.tooltip
|
|
11477
|
-
label:
|
|
11485
|
+
"aria-label": a.tooltip,
|
|
11486
|
+
label: a.tooltip,
|
|
11478
11487
|
iconName: i,
|
|
11479
11488
|
menuItems: d,
|
|
11480
11489
|
displayType: "icon-only"
|
|
@@ -11492,8 +11501,8 @@ const ea = ({
|
|
|
11492
11501
|
alt: i,
|
|
11493
11502
|
name: m,
|
|
11494
11503
|
title: v,
|
|
11495
|
-
org:
|
|
11496
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("div", { className: `${o}__image ${o}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: d, alt: i })), m && /* @__PURE__ */ e.createElement("div", { className: `${o}__name` }, m), v && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, v),
|
|
11504
|
+
org: f
|
|
11505
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, d && /* @__PURE__ */ e.createElement("div", { className: `${o}__image ${o}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: d, alt: i })), m && /* @__PURE__ */ e.createElement("div", { className: `${o}__name` }, m), v && /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, v), f && /* @__PURE__ */ e.createElement("div", { className: `${o}__org` }, f)), l = (d) => {
|
|
11497
11506
|
if (he(d.linkContent)) {
|
|
11498
11507
|
const i = d.linkContent, m = Object.assign({}, i.props, {
|
|
11499
11508
|
children: /* @__PURE__ */ e.createElement(r, { ...d }),
|
|
@@ -11602,19 +11611,19 @@ const ea = ({
|
|
|
11602
11611
|
sidebarExpandedWidth: i = "15%",
|
|
11603
11612
|
sidebarExpandedWidthMin: m = 13,
|
|
11604
11613
|
sidebarProps: v,
|
|
11605
|
-
className:
|
|
11614
|
+
className: f,
|
|
11606
11615
|
...N
|
|
11607
11616
|
}) => {
|
|
11608
11617
|
let g = !1;
|
|
11609
11618
|
const p = Ce(be);
|
|
11610
11619
|
p && (g = p.isMobile);
|
|
11611
|
-
const [_, C] =
|
|
11620
|
+
const [_, C] = W(
|
|
11612
11621
|
c || !1
|
|
11613
11622
|
);
|
|
11614
11623
|
ae(() => {
|
|
11615
11624
|
C(c || !1);
|
|
11616
11625
|
}, [c]);
|
|
11617
|
-
const u = "pds-app-layout",
|
|
11626
|
+
const u = "pds-app-layout", h = `pds-container pds-container--${s}`, E = g ? `${u}--isMobile` : null, w = {
|
|
11618
11627
|
width: _ ? `${d}rem` : `${i}`,
|
|
11619
11628
|
minWidth: _ ? `${d}rem` : `${m}rem`,
|
|
11620
11629
|
transition: "all 200ms ease-in-out"
|
|
@@ -11674,8 +11683,8 @@ const ea = ({
|
|
|
11674
11683
|
className: H([
|
|
11675
11684
|
u,
|
|
11676
11685
|
E,
|
|
11677
|
-
|
|
11678
|
-
|
|
11686
|
+
h,
|
|
11687
|
+
f ?? ""
|
|
11679
11688
|
]),
|
|
11680
11689
|
...N
|
|
11681
11690
|
},
|
|
@@ -11716,7 +11725,7 @@ const ea = ({
|
|
|
11716
11725
|
const n = "pds-docs-layout", d = r ? `${n}--isMobile` : null, i = {
|
|
11717
11726
|
width: s,
|
|
11718
11727
|
minWidth: `${a}rem`
|
|
11719
|
-
}, m = Ae(t), v = m.__unslotted || m.content,
|
|
11728
|
+
}, m = Ae(t), v = m.__unslotted || m.content, f = m.sidebar, N = /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar` }, f), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, v)), g = /* @__PURE__ */ e.createElement(e.Fragment, null, f && /* @__PURE__ */ e.createElement("aside", { className: `${n}__sidebar`, style: i }, /* @__PURE__ */ e.createElement("div", { className: `${n}__sidebar-inner` }, f)), /* @__PURE__ */ e.createElement("div", { className: `${n}__content` }, v));
|
|
11720
11729
|
return /* @__PURE__ */ e.createElement(
|
|
11721
11730
|
"div",
|
|
11722
11731
|
{
|
|
@@ -11743,14 +11752,14 @@ const ea = ({
|
|
|
11743
11752
|
mobileFlexWrap: i,
|
|
11744
11753
|
mobileGap: m,
|
|
11745
11754
|
mobileJustifyContent: v,
|
|
11746
|
-
children:
|
|
11755
|
+
children: f,
|
|
11747
11756
|
className: N,
|
|
11748
11757
|
...g
|
|
11749
11758
|
}) => {
|
|
11750
11759
|
let _ = V2() <= 640;
|
|
11751
11760
|
const C = Ce(be);
|
|
11752
11761
|
C && (_ = C.isMobile);
|
|
11753
|
-
const u = "pds-flex",
|
|
11762
|
+
const u = "pds-flex", h = `${u}-container`, E = _ ? `${h}--mobile` : null;
|
|
11754
11763
|
let b = null;
|
|
11755
11764
|
_ ? b = `${u}-direction--${d}` : a !== "row" && (b = `${u}-direction--${a}`);
|
|
11756
11765
|
let w = null;
|
|
@@ -11766,7 +11775,7 @@ const ea = ({
|
|
|
11766
11775
|
"div",
|
|
11767
11776
|
{
|
|
11768
11777
|
className: H([
|
|
11769
|
-
|
|
11778
|
+
h,
|
|
11770
11779
|
E,
|
|
11771
11780
|
b,
|
|
11772
11781
|
w,
|
|
@@ -11778,7 +11787,7 @@ const ea = ({
|
|
|
11778
11787
|
]),
|
|
11779
11788
|
...g
|
|
11780
11789
|
},
|
|
11781
|
-
|
|
11790
|
+
f
|
|
11782
11791
|
);
|
|
11783
11792
|
}, Ca = ({
|
|
11784
11793
|
children: t,
|
|
@@ -11796,7 +11805,7 @@ const ea = ({
|
|
|
11796
11805
|
let m = !1;
|
|
11797
11806
|
const v = Ce(be);
|
|
11798
11807
|
v && (m = v.isMobile);
|
|
11799
|
-
const
|
|
11808
|
+
const f = Ae(t);
|
|
11800
11809
|
let N = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", g = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
11801
11810
|
o === "narrow" && (N = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", g = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), o === "wide" && (N = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", g = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
11802
11811
|
const p = /* @__PURE__ */ e.createElement(
|
|
@@ -11805,14 +11814,14 @@ const ea = ({
|
|
|
11805
11814
|
key: "content",
|
|
11806
11815
|
className: `${n}__main ${m ? "pds-grid-item" : N}`
|
|
11807
11816
|
},
|
|
11808
|
-
|
|
11817
|
+
f.content
|
|
11809
11818
|
), _ = /* @__PURE__ */ e.createElement(
|
|
11810
11819
|
"div",
|
|
11811
11820
|
{
|
|
11812
11821
|
key: "sidebar",
|
|
11813
11822
|
className: `${n}__side ${m ? "pds-grid-item" : g}`
|
|
11814
11823
|
},
|
|
11815
|
-
|
|
11824
|
+
f.sidebar
|
|
11816
11825
|
);
|
|
11817
11826
|
return /* @__PURE__ */ e.createElement(
|
|
11818
11827
|
"div",
|
|
@@ -11886,17 +11895,17 @@ const ea = ({
|
|
|
11886
11895
|
className: o,
|
|
11887
11896
|
...r
|
|
11888
11897
|
}) => {
|
|
11889
|
-
const l = "pds-two-item-layout", n = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${l}--${c}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], v = ["pds-grid-item--md-8", "pds-grid-item--lg-9"],
|
|
11898
|
+
const l = "pds-two-item-layout", n = s === "standard" ? "pds-grid" : `pds-grid pds-grid--${s}`, d = `${l}--${c}`, i = ["pds-grid-item--md-6"], m = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], v = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], f = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
11890
11899
|
let N, g;
|
|
11891
11900
|
switch (a) {
|
|
11892
11901
|
case "equal":
|
|
11893
|
-
N =
|
|
11902
|
+
N = f.concat(i), g = f.concat(i);
|
|
11894
11903
|
break;
|
|
11895
11904
|
case "one-third-start":
|
|
11896
|
-
N =
|
|
11905
|
+
N = f.concat(m), g = f.concat(v);
|
|
11897
11906
|
break;
|
|
11898
11907
|
case "one-third-end":
|
|
11899
|
-
N =
|
|
11908
|
+
N = f.concat(v), g = f.concat(m);
|
|
11900
11909
|
}
|
|
11901
11910
|
const p = Ae(t), _ = p["first-item"], C = p["second-item"];
|
|
11902
11911
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -11914,7 +11923,7 @@ const ea = ({
|
|
|
11914
11923
|
/* @__PURE__ */ e.createElement("div", { className: g.join(" ").trim() }, C)
|
|
11915
11924
|
);
|
|
11916
11925
|
}, $a = (t, s) => {
|
|
11917
|
-
const [a, c] =
|
|
11926
|
+
const [a, c] = W(!1), o = Wt(
|
|
11918
11927
|
(l) => {
|
|
11919
11928
|
l.key === t && (c(!0), s && s(l));
|
|
11920
11929
|
},
|