@pantheon-systems/pds-toolkit-react 1.0.0-dev.138 → 1.0.0-dev.139
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/CTALink/CTALink.d.ts +19 -14
- package/_dist/components/ComparisonList/ComparisonList.d.ts +41 -31
- package/_dist/components/Icon/Icon.d.ts +1 -1
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +36 -30
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +45 -37
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +1 -1
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +688 -809
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import './index.css';var
|
|
2
|
-
var
|
|
1
|
+
import './index.css';var Ms = Object.defineProperty, xs = Object.defineProperties;
|
|
2
|
+
var Vs = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var mt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Pt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var At = (s, n, a) => n in s ? Ms(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a, y = (s, n) => {
|
|
6
6
|
for (var a in n || (n = {}))
|
|
7
|
-
|
|
7
|
+
Pt.call(n, a) && At(s, a, n[a]);
|
|
8
8
|
if (mt)
|
|
9
9
|
for (var a of mt(n))
|
|
10
|
-
|
|
10
|
+
jt.call(n, a) && At(s, a, n[a]);
|
|
11
11
|
return s;
|
|
12
|
-
}, $e = (s, n) =>
|
|
12
|
+
}, $e = (s, n) => xs(s, Vs(n));
|
|
13
13
|
var M = (s, n) => {
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var r in s)
|
|
16
|
-
|
|
16
|
+
Pt.call(s, r) && n.indexOf(r) < 0 && (a[r] = s[r]);
|
|
17
17
|
if (s != null && mt)
|
|
18
18
|
for (var r of mt(s))
|
|
19
|
-
n.indexOf(r) < 0 &&
|
|
19
|
+
n.indexOf(r) < 0 && jt.call(s, r) && (a[r] = s[r]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
import e, { useRef as X, useState as
|
|
23
|
-
import t, { arrayOf as
|
|
22
|
+
import e, { useRef as X, useState as O, createContext as gt, useContext as Ne, forwardRef as st, cloneElement as Is, useEffect as le, useLayoutEffect as Ss, useCallback as Jt } from "react";
|
|
23
|
+
import t, { arrayOf as Ts } from "prop-types";
|
|
24
24
|
import es from "hash-sum";
|
|
25
|
-
import { NavLink as ts, MemoryRouter as
|
|
26
|
-
import { useFloating as Ve, offset as ss, flip as ns, shift as as, autoUpdate as qe, useHover as xt, useFocus as
|
|
25
|
+
import { NavLink as ts, MemoryRouter as Os } from "react-router-dom";
|
|
26
|
+
import { useFloating as Ve, offset as ss, flip as ns, shift as as, autoUpdate as qe, useHover as xt, useFocus as Rs, useDismiss as Ie, useRole as Se, useInteractions as Te, useTransitionStyles as Ae, useId as Ds, useListNavigation as nt, useClick as et, FloatingOverlay as qs, FloatingFocusManager as ls, safePolygon as As, arrow as Ps, FloatingArrow as js } from "@floating-ui/react";
|
|
27
27
|
import { useMeasure as at } from "@reactuses/core";
|
|
28
|
-
import { useFloating as
|
|
29
|
-
import
|
|
30
|
-
import { ToastContainer as
|
|
31
|
-
const
|
|
28
|
+
import { useFloating as Bs, flip as Fs } from "@floating-ui/react-dom";
|
|
29
|
+
import Ws from "focus-trap-react";
|
|
30
|
+
import { ToastContainer as Zs, Slide as Us, cssTransition as Gs, toast as Bt } from "react-toastify";
|
|
31
|
+
const Ks = [
|
|
32
32
|
"angleDown",
|
|
33
33
|
"angleLeft",
|
|
34
34
|
"angleRight",
|
|
@@ -169,13 +169,13 @@ const Ys = [
|
|
|
169
169
|
"xmarkLarge",
|
|
170
170
|
"xTwitter",
|
|
171
171
|
"youtube"
|
|
172
|
-
], De = t.oneOf(
|
|
172
|
+
], De = t.oneOf(Ks), ht = t.oneOf([
|
|
173
173
|
"narrow",
|
|
174
174
|
"standard",
|
|
175
175
|
"wide",
|
|
176
176
|
"x-wide",
|
|
177
177
|
"full"
|
|
178
|
-
]),
|
|
178
|
+
]), Ys = t.exact({
|
|
179
179
|
/**
|
|
180
180
|
* Label for a menu item
|
|
181
181
|
*/
|
|
@@ -238,7 +238,7 @@ const Ys = [
|
|
|
238
238
|
* Optional `data-testid` value for this item.
|
|
239
239
|
*/
|
|
240
240
|
testId: t.string
|
|
241
|
-
}),
|
|
241
|
+
}), Xs = t.exact({
|
|
242
242
|
/**
|
|
243
243
|
* Is the item a node?
|
|
244
244
|
*/
|
|
@@ -247,7 +247,7 @@ const Ys = [
|
|
|
247
247
|
* The content of the node.
|
|
248
248
|
*/
|
|
249
249
|
nodeContent: t.node
|
|
250
|
-
}),
|
|
250
|
+
}), Qs = t.exact({
|
|
251
251
|
/**
|
|
252
252
|
* Is the item a separator?
|
|
253
253
|
*/
|
|
@@ -847,7 +847,7 @@ const Ys = [
|
|
|
847
847
|
path: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z",
|
|
848
848
|
width: "576"
|
|
849
849
|
}
|
|
850
|
-
},
|
|
850
|
+
}, Ft = Object.keys(Vt), Js = (o) => {
|
|
851
851
|
var b = o, {
|
|
852
852
|
ariaLabel: s,
|
|
853
853
|
buttonType: n = "button",
|
|
@@ -927,7 +927,7 @@ const Ys = [
|
|
|
927
927
|
)
|
|
928
928
|
);
|
|
929
929
|
};
|
|
930
|
-
|
|
930
|
+
Js.propTypes = {
|
|
931
931
|
/**
|
|
932
932
|
* Aria-label attribute.
|
|
933
933
|
*/
|
|
@@ -961,7 +961,7 @@ e1.propTypes = {
|
|
|
961
961
|
*/
|
|
962
962
|
className: t.string
|
|
963
963
|
};
|
|
964
|
-
let
|
|
964
|
+
let Wt = [
|
|
965
965
|
"g01",
|
|
966
966
|
"g02",
|
|
967
967
|
"g03",
|
|
@@ -975,9 +975,9 @@ let Zt = [
|
|
|
975
975
|
"g11",
|
|
976
976
|
"g12"
|
|
977
977
|
];
|
|
978
|
-
const
|
|
978
|
+
const e1 = (s) => {
|
|
979
979
|
const n = parseInt(es(s), 16);
|
|
980
|
-
return
|
|
980
|
+
return Wt[n % Wt.length];
|
|
981
981
|
}, Xe = (l) => {
|
|
982
982
|
var m = l, {
|
|
983
983
|
size: s = "md",
|
|
@@ -993,7 +993,7 @@ const t1 = (s) => {
|
|
|
993
993
|
"className"
|
|
994
994
|
]);
|
|
995
995
|
const d = "pds-avatar", o = `${d}--${s}`, b = n ? `${d}--image` : null, h = {
|
|
996
|
-
backgroundImage: r ? `var(--pds-color-gradient-avatar-${
|
|
996
|
+
backgroundImage: r ? `var(--pds-color-gradient-avatar-${e1(r)})` : null,
|
|
997
997
|
borderRadius: "100%",
|
|
998
998
|
height: "100%",
|
|
999
999
|
width: "100%"
|
|
@@ -1037,7 +1037,7 @@ Xe.propTypes = {
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
className: t.string
|
|
1039
1039
|
};
|
|
1040
|
-
const
|
|
1040
|
+
const t1 = (u) => {
|
|
1041
1041
|
var c = u, {
|
|
1042
1042
|
darkBackground: s,
|
|
1043
1043
|
listItems: n,
|
|
@@ -1084,7 +1084,7 @@ const s1 = (u) => {
|
|
|
1084
1084
|
})
|
|
1085
1085
|
);
|
|
1086
1086
|
};
|
|
1087
|
-
|
|
1087
|
+
t1.propTypes = {
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Boolean to set for dark background
|
|
1090
1090
|
*/
|
|
@@ -1190,7 +1190,7 @@ const _t = {
|
|
|
1190
1190
|
info: "circleInfo",
|
|
1191
1191
|
warning: "triangleExclamation",
|
|
1192
1192
|
critical: "diamondExclamation"
|
|
1193
|
-
},
|
|
1193
|
+
}, s1 = (m) => {
|
|
1194
1194
|
var d = m, {
|
|
1195
1195
|
banners: s,
|
|
1196
1196
|
dismissLabel: n = "Dismiss",
|
|
@@ -1210,7 +1210,7 @@ const _t = {
|
|
|
1210
1210
|
"typeLabels",
|
|
1211
1211
|
"className"
|
|
1212
1212
|
]);
|
|
1213
|
-
const [o, b] =
|
|
1213
|
+
const [o, b] = O(s), p = o.length;
|
|
1214
1214
|
if (p === 0)
|
|
1215
1215
|
return null;
|
|
1216
1216
|
const h = "pds-banner", v = p > 1 ? `${h}-group--multiple` : null, i = {
|
|
@@ -1218,12 +1218,12 @@ const _t = {
|
|
|
1218
1218
|
warning: `${h}--warning`,
|
|
1219
1219
|
critical: `${h}--critical`
|
|
1220
1220
|
}, $ = (k) => k === 0 ? 0 : -1, g = (k) => k === 0 ? "visible" : "hidden", _ = o.map((k, x) => {
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
const H =
|
|
1221
|
+
const z = ["critical", "warning"].includes(k.type) ? "alert" : "status", S = `${u[k.type]}: `, w = (V) => {
|
|
1222
|
+
V.preventDefault();
|
|
1223
|
+
const H = V.target.closest(`.${h}`).id, T = o.findIndex(
|
|
1224
1224
|
(R) => R.id === H
|
|
1225
1225
|
), P = [...o];
|
|
1226
|
-
P.splice(
|
|
1226
|
+
P.splice(T, 1), document.getElementById(H).classList.add(`${h}--dismissing`), setTimeout(() => {
|
|
1227
1227
|
b(P), k.onDismiss && k.onDismiss();
|
|
1228
1228
|
}, 300);
|
|
1229
1229
|
};
|
|
@@ -1233,7 +1233,7 @@ const _t = {
|
|
|
1233
1233
|
key: k.id,
|
|
1234
1234
|
id: k.id,
|
|
1235
1235
|
className: [h, i[k.type]].join(" ").trim().replace(/\s+/g, " "),
|
|
1236
|
-
role:
|
|
1236
|
+
role: z,
|
|
1237
1237
|
style: {
|
|
1238
1238
|
zIndex: vt - x
|
|
1239
1239
|
}
|
|
@@ -1252,7 +1252,7 @@ const _t = {
|
|
|
1252
1252
|
visibility: g(x)
|
|
1253
1253
|
}
|
|
1254
1254
|
},
|
|
1255
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
1255
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, S, " "),
|
|
1256
1256
|
k.message
|
|
1257
1257
|
)),
|
|
1258
1258
|
k.isDismissible && /* @__PURE__ */ e.createElement(
|
|
@@ -1316,7 +1316,7 @@ const _t = {
|
|
|
1316
1316
|
)) : _[0]
|
|
1317
1317
|
);
|
|
1318
1318
|
};
|
|
1319
|
-
|
|
1319
|
+
s1.propTypes = {
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Array of banners.
|
|
1322
1322
|
*/
|
|
@@ -1354,7 +1354,7 @@ n1.propTypes = {
|
|
|
1354
1354
|
*/
|
|
1355
1355
|
className: t.string
|
|
1356
1356
|
};
|
|
1357
|
-
const
|
|
1357
|
+
const n1 = {
|
|
1358
1358
|
crumbs: [],
|
|
1359
1359
|
deferredCrumbIds: [],
|
|
1360
1360
|
register: () => {
|
|
@@ -1365,11 +1365,11 @@ const a1 = {
|
|
|
1365
1365
|
},
|
|
1366
1366
|
resolveCrumb: () => {
|
|
1367
1367
|
}
|
|
1368
|
-
}, is = gt(
|
|
1368
|
+
}, is = gt(n1), Zt = 8, It = (m) => {
|
|
1369
1369
|
var d = m, {
|
|
1370
1370
|
content: s,
|
|
1371
1371
|
customTrigger: n = !1,
|
|
1372
|
-
offsetValue: a =
|
|
1372
|
+
offsetValue: a = Zt,
|
|
1373
1373
|
triggerAccessibleText: r = "Show more information",
|
|
1374
1374
|
triggerIcon: u = "circleInfo",
|
|
1375
1375
|
className: c
|
|
@@ -1381,7 +1381,7 @@ const a1 = {
|
|
|
1381
1381
|
"triggerIcon",
|
|
1382
1382
|
"className"
|
|
1383
1383
|
]);
|
|
1384
|
-
const [o, b] =
|
|
1384
|
+
const [o, b] = O(!1), p = typeof n, h = "pds-tooltip", v = [
|
|
1385
1385
|
`${h}__trigger-custom`,
|
|
1386
1386
|
p === "string" ? `${h}__trigger-text` : ""
|
|
1387
1387
|
].join(" ").trim().replace(/\s+/g, " "), i = n ? a : 0, { refs: $, floatingStyles: g, context: _ } = Ve({
|
|
@@ -1389,12 +1389,12 @@ const a1 = {
|
|
|
1389
1389
|
open: o,
|
|
1390
1390
|
onOpenChange: b,
|
|
1391
1391
|
middleware: [
|
|
1392
|
-
ss(
|
|
1392
|
+
ss(Zt + i),
|
|
1393
1393
|
ns({ padding: 5 }),
|
|
1394
1394
|
as({ padding: 5 })
|
|
1395
1395
|
],
|
|
1396
1396
|
whileElementsMounted: qe
|
|
1397
|
-
}), C = xt(_, { move: !1 }), E =
|
|
1397
|
+
}), C = xt(_, { move: !1 }), E = Rs(_), f = Ie(_), N = Se(_, { role: "tooltip" }), { getFloatingProps: k } = Te([C, E, f, N]), { isMounted: x } = Ae(_, {
|
|
1398
1398
|
initial: {
|
|
1399
1399
|
transform: "scale(0)"
|
|
1400
1400
|
}
|
|
@@ -1462,9 +1462,9 @@ Fe.propTypes = {
|
|
|
1462
1462
|
lastCrumb: t.bool,
|
|
1463
1463
|
classes: t.string
|
|
1464
1464
|
};
|
|
1465
|
-
const
|
|
1465
|
+
const a1 = (s) => /* @__PURE__ */ e.createElement(ts, { className: "pds-breadcrumbs__mobileCrumbs", end: !0, to: s.uri }, /* @__PURE__ */ e.createElement(q, { iconName: "angleLeft", iconSize: "sm" }), s.label), l1 = (s, n) => s.uri.split("/").length - n.uri.split("/").length, os = (a) => {
|
|
1466
1466
|
var r = a, { ariaLabel: s } = r, n = M(r, ["ariaLabel"]);
|
|
1467
|
-
const [u, c] =
|
|
1467
|
+
const [u, c] = O(!0), { crumbs: l, deferredCrumbIds: m } = Ne(is), d = [...l].sort(l1), o = () => {
|
|
1468
1468
|
c(!1);
|
|
1469
1469
|
}, b = d.map(
|
|
1470
1470
|
($, g) => g === d.length - 1 ? /* @__PURE__ */ e.createElement(Fe, { crumb: $, lastCrumb: !0, key: g }) : /* @__PURE__ */ e.createElement(Fe, { crumb: $, key: g })
|
|
@@ -1492,16 +1492,16 @@ const l1 = (s) => /* @__PURE__ */ e.createElement(ts, { className: "pds-breadcru
|
|
|
1492
1492
|
key: `breadcrumb-${g}`
|
|
1493
1493
|
}
|
|
1494
1494
|
) : /* @__PURE__ */ e.createElement(Fe, { crumb: $, key: `breadcrumb-${g}` })
|
|
1495
|
-
), h = d.length >= 6 ? p : b, v = d[d.length - 2], i =
|
|
1495
|
+
), h = d.length >= 6 ? p : b, v = d[d.length - 2], i = a1(v);
|
|
1496
1496
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": s, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, n), h), i);
|
|
1497
1497
|
};
|
|
1498
1498
|
os.propTypes = {
|
|
1499
1499
|
ariaLabel: t.string.isRequired,
|
|
1500
1500
|
crumbs: t.array
|
|
1501
1501
|
};
|
|
1502
|
-
const
|
|
1502
|
+
const r1 = (r) => {
|
|
1503
1503
|
var u = r, { ariaLabel: s, crumbs: n } = u, a = M(u, ["ariaLabel", "crumbs"]);
|
|
1504
|
-
return /* @__PURE__ */ e.createElement(
|
|
1504
|
+
return /* @__PURE__ */ e.createElement(Os, null, /* @__PURE__ */ e.createElement(
|
|
1505
1505
|
is.Provider,
|
|
1506
1506
|
{
|
|
1507
1507
|
value: {
|
|
@@ -1512,7 +1512,7 @@ const c1 = (r) => {
|
|
|
1512
1512
|
/* @__PURE__ */ e.createElement(os, y({ crumbs: n, ariaLabel: s }, a))
|
|
1513
1513
|
));
|
|
1514
1514
|
};
|
|
1515
|
-
|
|
1515
|
+
r1.propTypes = {
|
|
1516
1516
|
ariaLabel: t.string.isRequired,
|
|
1517
1517
|
crumbs: t.arrayOf([
|
|
1518
1518
|
{ label: t.string },
|
|
@@ -1526,7 +1526,7 @@ const lt = (m) => {
|
|
|
1526
1526
|
label: a = "Loading",
|
|
1527
1527
|
showLabel: r = !1,
|
|
1528
1528
|
size: u = "md",
|
|
1529
|
-
className: c
|
|
1529
|
+
className: c = ""
|
|
1530
1530
|
} = d, l = M(d, [
|
|
1531
1531
|
"colorType",
|
|
1532
1532
|
"isInline",
|
|
@@ -1757,7 +1757,7 @@ const xe = () => Math.random().toString(32).substring(2, 13), ds = (s, n) => {
|
|
|
1757
1757
|
);
|
|
1758
1758
|
let f = [r.props.children];
|
|
1759
1759
|
n == "icon-start" && a && f.unshift(C), n == "icon-end" && a && f.push(C);
|
|
1760
|
-
const N =
|
|
1760
|
+
const N = Is(r, {
|
|
1761
1761
|
className: g,
|
|
1762
1762
|
children: f
|
|
1763
1763
|
});
|
|
@@ -1817,7 +1817,7 @@ We.propTypes = {
|
|
|
1817
1817
|
*/
|
|
1818
1818
|
className: t.string
|
|
1819
1819
|
};
|
|
1820
|
-
const
|
|
1820
|
+
const c1 = {
|
|
1821
1821
|
info: "Info",
|
|
1822
1822
|
warning: "Warning",
|
|
1823
1823
|
success: "Success",
|
|
@@ -1825,7 +1825,7 @@ const i1 = {
|
|
|
1825
1825
|
discovery: "Discovery",
|
|
1826
1826
|
code: "Code",
|
|
1827
1827
|
earlyAccess: "Early access"
|
|
1828
|
-
},
|
|
1828
|
+
}, Tn = (c) => {
|
|
1829
1829
|
var l = c, {
|
|
1830
1830
|
children: s,
|
|
1831
1831
|
title: n,
|
|
@@ -1845,7 +1845,7 @@ const i1 = {
|
|
|
1845
1845
|
discovery: "squareQuestion",
|
|
1846
1846
|
code: "squareTerminal",
|
|
1847
1847
|
earlyAccess: "leaf"
|
|
1848
|
-
}, b = `${
|
|
1848
|
+
}, b = `${c1[a]}: `;
|
|
1849
1849
|
return /* @__PURE__ */ e.createElement(
|
|
1850
1850
|
"div",
|
|
1851
1851
|
y({
|
|
@@ -1854,12 +1854,12 @@ const i1 = {
|
|
|
1854
1854
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__icon ${m}__icon--${a}` }, /* @__PURE__ */ e.createElement(
|
|
1855
1855
|
q,
|
|
1856
1856
|
{
|
|
1857
|
-
iconName: `${a}` in
|
|
1857
|
+
iconName: `${a}` in Ft ? Ft[a] : o.info,
|
|
1858
1858
|
iconSize: "xl"
|
|
1859
1859
|
}
|
|
1860
1860
|
)), /* @__PURE__ */ e.createElement("div", { className: `${m}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), n && /* @__PURE__ */ e.createElement("div", { className: `${m}__title` }, n), s && /* @__PURE__ */ e.createElement("div", { className: `${m}__main-content` }, s)))
|
|
1861
1861
|
);
|
|
1862
|
-
},
|
|
1862
|
+
}, i1 = (b) => {
|
|
1863
1863
|
var p = b, {
|
|
1864
1864
|
bodyText: s,
|
|
1865
1865
|
headingLevel: n = "h2",
|
|
@@ -1911,7 +1911,7 @@ const i1 = {
|
|
|
1911
1911
|
_
|
|
1912
1912
|
);
|
|
1913
1913
|
};
|
|
1914
|
-
|
|
1914
|
+
i1.propTypes = {
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Short description or summary. Can be string or JSX.
|
|
1917
1917
|
*/
|
|
@@ -1952,7 +1952,7 @@ o1.propTypes = {
|
|
|
1952
1952
|
*/
|
|
1953
1953
|
className: t.string
|
|
1954
1954
|
};
|
|
1955
|
-
const
|
|
1955
|
+
const o1 = (o) => {
|
|
1956
1956
|
var b = o, {
|
|
1957
1957
|
id: s,
|
|
1958
1958
|
initialSelection: n,
|
|
@@ -1975,7 +1975,7 @@ const d1 = (o) => {
|
|
|
1975
1975
|
const p = "pds-card-select-group";
|
|
1976
1976
|
let h = `${p}__legend`;
|
|
1977
1977
|
r === "center" && (h = `${p}__legend ${p}__legend--center`), r === "hidden" && (h = `${p}__legend visually-hidden`);
|
|
1978
|
-
const [v, i] =
|
|
1978
|
+
const [v, i] = O(n), $ = (f) => {
|
|
1979
1979
|
i(f.target.value), c && c(f.target.value);
|
|
1980
1980
|
}, g = l.length, _ = "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";
|
|
1981
1981
|
let E = "";
|
|
@@ -2022,7 +2022,7 @@ const d1 = (o) => {
|
|
|
2022
2022
|
)))
|
|
2023
2023
|
);
|
|
2024
2024
|
};
|
|
2025
|
-
|
|
2025
|
+
o1.propTypes = {
|
|
2026
2026
|
/**
|
|
2027
2027
|
* Unique ID for the card select group
|
|
2028
2028
|
*/
|
|
@@ -2118,14 +2118,14 @@ const Je = ({ type: s }) => {
|
|
|
2118
2118
|
Je.propTypes = {
|
|
2119
2119
|
type: t.oneOf(["search", "error", "success"]).isRequired
|
|
2120
2120
|
};
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2121
|
+
const Tt = ({ label: s }) => /* @__PURE__ */ e.createElement("div", { className: "pds-input__search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s), /* @__PURE__ */ e.createElement(q, { iconName: "slashForward" }));
|
|
2122
|
+
Tt.propTypes = {
|
|
2123
2123
|
label: t.string.isRequired
|
|
2124
2124
|
};
|
|
2125
|
-
const
|
|
2125
|
+
const Ot = st(
|
|
2126
2126
|
(c, u) => {
|
|
2127
2127
|
var l = c, { children: s, active: n, className: a } = l, r = M(l, ["children", "active", "className"]);
|
|
2128
|
-
const m =
|
|
2128
|
+
const m = Ds(), d = "pds-input__option", o = n ? `${d}--active` : null;
|
|
2129
2129
|
return /* @__PURE__ */ e.createElement(
|
|
2130
2130
|
"li",
|
|
2131
2131
|
y({
|
|
@@ -2139,7 +2139,7 @@ const Rt = st(
|
|
|
2139
2139
|
);
|
|
2140
2140
|
}
|
|
2141
2141
|
);
|
|
2142
|
-
|
|
2142
|
+
Ot.propTypes = {
|
|
2143
2143
|
children: t.node.isRequired,
|
|
2144
2144
|
active: t.bool,
|
|
2145
2145
|
className: t.string
|
|
@@ -2179,7 +2179,7 @@ const Oe = st(
|
|
|
2179
2179
|
"validationState",
|
|
2180
2180
|
"className"
|
|
2181
2181
|
]);
|
|
2182
|
-
const E = "pds-input-wrapper", f = `${E}--${u}`, N = "pds-input-label", k = `pds-input-field__message pds-input-field__message--${o}`, x = v === "error" ? "pds-has-error" : null, I = v === "success" ? "pds-has-success" : null,
|
|
2182
|
+
const E = "pds-input-wrapper", f = `${E}--${u}`, N = "pds-input-label", k = `pds-input-field__message pds-input-field__message--${o}`, x = v === "error" ? "pds-has-error" : null, I = v === "success" ? "pds-has-success" : null, z = a ? "pds-is-disabled" : null, S = b ? "pds-is-readonly" : null, w = p && !a ? "pds-is-required" : null, V = c ? `${c / 16}rem` : null, H = c ? { width: V } : null, T = l ? "fieldset" : "div", P = p && !a ? /* @__PURE__ */ e.createElement(
|
|
2183
2183
|
q,
|
|
2184
2184
|
{
|
|
2185
2185
|
iconName: "asterisk",
|
|
@@ -2202,8 +2202,8 @@ const Oe = st(
|
|
|
2202
2202
|
className: [
|
|
2203
2203
|
E,
|
|
2204
2204
|
f,
|
|
2205
|
-
|
|
2206
|
-
|
|
2205
|
+
z,
|
|
2206
|
+
S,
|
|
2207
2207
|
w,
|
|
2208
2208
|
x,
|
|
2209
2209
|
I,
|
|
@@ -2215,7 +2215,7 @@ const Oe = st(
|
|
|
2215
2215
|
m && !l && /* @__PURE__ */ e.createElement("span", { className: h ? null : "visually-hidden" }, /* @__PURE__ */ e.createElement("label", { className: N, htmlFor: r }, m, P)),
|
|
2216
2216
|
o === "before" && R,
|
|
2217
2217
|
/* @__PURE__ */ e.createElement(
|
|
2218
|
-
|
|
2218
|
+
T,
|
|
2219
2219
|
{
|
|
2220
2220
|
className: `pds-input-field ${u ? `pds-input-field--${u}` : ""}`
|
|
2221
2221
|
},
|
|
@@ -2314,7 +2314,7 @@ const ms = st(
|
|
|
2314
2314
|
"value",
|
|
2315
2315
|
"className"
|
|
2316
2316
|
]);
|
|
2317
|
-
const i = "pds-checkbox", [$, g] =
|
|
2317
|
+
const i = "pds-checkbox", [$, g] = O(s), _ = (E) => {
|
|
2318
2318
|
g(!$), l && l(E.target);
|
|
2319
2319
|
}, C = m && !n ? /* @__PURE__ */ e.createElement(
|
|
2320
2320
|
q,
|
|
@@ -2400,7 +2400,7 @@ ms.propTypes = {
|
|
|
2400
2400
|
*/
|
|
2401
2401
|
className: t.string
|
|
2402
2402
|
};
|
|
2403
|
-
const
|
|
2403
|
+
const d1 = (b) => {
|
|
2404
2404
|
var p = b, {
|
|
2405
2405
|
disabled: s = !1,
|
|
2406
2406
|
id: n,
|
|
@@ -2426,7 +2426,7 @@ const m1 = (b) => {
|
|
|
2426
2426
|
l.map((f) => {
|
|
2427
2427
|
f.checked === !0 && v.push(f.value);
|
|
2428
2428
|
});
|
|
2429
|
-
const [i, $] =
|
|
2429
|
+
const [i, $] = O(v), g = (f) => {
|
|
2430
2430
|
let N = [];
|
|
2431
2431
|
f.target.checked === !0 && (N = [...i, f.target.value]), f.target.checked === !1 && (N = i.filter(
|
|
2432
2432
|
(k) => k !== f.target.value
|
|
@@ -2483,7 +2483,7 @@ const m1 = (b) => {
|
|
|
2483
2483
|
)
|
|
2484
2484
|
);
|
|
2485
2485
|
};
|
|
2486
|
-
|
|
2486
|
+
d1.propTypes = {
|
|
2487
2487
|
/**
|
|
2488
2488
|
* Is the checkbox group field disabled?
|
|
2489
2489
|
*/
|
|
@@ -2593,18 +2593,18 @@ const us = st(
|
|
|
2593
2593
|
"validationFunction",
|
|
2594
2594
|
"className"
|
|
2595
2595
|
]);
|
|
2596
|
-
const
|
|
2596
|
+
const z = (ce) => {
|
|
2597
2597
|
const ne = $.find((He) => He.value === ce);
|
|
2598
2598
|
return ne ? ne.label : "";
|
|
2599
|
-
}, [
|
|
2600
|
-
l ?
|
|
2601
|
-
), [R, j] =
|
|
2602
|
-
open:
|
|
2599
|
+
}, [S, w] = O(!1), [V, H] = O(null), [T, P] = O(
|
|
2600
|
+
l ? z(l) : ""
|
|
2601
|
+
), [R, j] = O([]), [A, F] = O(""), [Z, W] = O(null), L = X([]), B = "pds-combobox", { context: U, refs: Y } = Ve({
|
|
2602
|
+
open: S,
|
|
2603
2603
|
onOpenChange: w,
|
|
2604
2604
|
whileElementsMounted: qe
|
|
2605
2605
|
}), pe = Se(U, { role: "listbox" }), re = Ie(U), ee = nt(U, {
|
|
2606
|
-
listRef:
|
|
2607
|
-
activeIndex:
|
|
2606
|
+
listRef: L,
|
|
2607
|
+
activeIndex: V,
|
|
2608
2608
|
onNavigate: H,
|
|
2609
2609
|
virtual: !0,
|
|
2610
2610
|
loop: !0,
|
|
@@ -2645,11 +2645,11 @@ const us = st(
|
|
|
2645
2645
|
}, Ce = (ce) => {
|
|
2646
2646
|
const ne = R[ce];
|
|
2647
2647
|
P(ne.label), H(null), w(!1), i && i(ne), E && K(ne);
|
|
2648
|
-
},
|
|
2648
|
+
}, ze = () => {
|
|
2649
2649
|
var ce;
|
|
2650
2650
|
J(), P(""), w(!0), (ce = Y.domReference.current) == null || ce.focus();
|
|
2651
2651
|
}, Q = () => {
|
|
2652
|
-
w(!
|
|
2652
|
+
w(!S);
|
|
2653
2653
|
}, se = (ce) => ce.map((He) => {
|
|
2654
2654
|
const { label: je, optionDisplay: Re, value: ct, searchIndex: it } = He, bt = ct || je, ot = [je, ct];
|
|
2655
2655
|
return it && ot.push(...it), {
|
|
@@ -2663,27 +2663,27 @@ const us = st(
|
|
|
2663
2663
|
const ce = se($).filter((ne) => {
|
|
2664
2664
|
const He = ne.searchIndex.map(
|
|
2665
2665
|
(Re) => Re.toLowerCase()
|
|
2666
|
-
), je =
|
|
2666
|
+
), je = T.toLowerCase();
|
|
2667
2667
|
return He.some((Re) => Re.includes(je));
|
|
2668
2668
|
});
|
|
2669
2669
|
j(ce);
|
|
2670
|
-
}, [
|
|
2670
|
+
}, [T, d, $]);
|
|
2671
2671
|
const ke = R.map((ce, ne) => /* @__PURE__ */ e.createElement(
|
|
2672
|
-
|
|
2672
|
+
Ot,
|
|
2673
2673
|
$e(y({
|
|
2674
2674
|
key: ce
|
|
2675
2675
|
}, te({
|
|
2676
2676
|
key: ce.value,
|
|
2677
2677
|
ref(He) {
|
|
2678
|
-
|
|
2678
|
+
L.current[ne] = He;
|
|
2679
2679
|
},
|
|
2680
2680
|
onClick() {
|
|
2681
2681
|
var He;
|
|
2682
2682
|
Ce(ne), (He = Y.domReference.current) == null || He.focus();
|
|
2683
2683
|
}
|
|
2684
2684
|
})), {
|
|
2685
|
-
tabIndex:
|
|
2686
|
-
active:
|
|
2685
|
+
tabIndex: V === ne ? 0 : -1,
|
|
2686
|
+
active: V === ne
|
|
2687
2687
|
}),
|
|
2688
2688
|
ce.optionDisplay || ce.label
|
|
2689
2689
|
)), ye = A || h, we = m ? `${m / 16}rem` : null, he = m ? { width: we } : null;
|
|
@@ -2724,22 +2724,22 @@ const us = st(
|
|
|
2724
2724
|
"aria-label": b.inputInstructions,
|
|
2725
2725
|
disabled: s,
|
|
2726
2726
|
placeholder: g,
|
|
2727
|
-
value:
|
|
2727
|
+
value: T,
|
|
2728
2728
|
onChange: ue,
|
|
2729
2729
|
onKeyDown(ce) {
|
|
2730
|
-
ce.key === "Enter" &&
|
|
2730
|
+
ce.key === "Enter" && V != null && R[V] && Ce(V);
|
|
2731
2731
|
}
|
|
2732
2732
|
}))
|
|
2733
2733
|
),
|
|
2734
|
-
|
|
2734
|
+
T && n && /* @__PURE__ */ e.createElement(
|
|
2735
2735
|
rt,
|
|
2736
2736
|
{
|
|
2737
2737
|
id: c,
|
|
2738
2738
|
label: b.clearButton,
|
|
2739
|
-
handleClearInput:
|
|
2739
|
+
handleClearInput: ze
|
|
2740
2740
|
}
|
|
2741
2741
|
),
|
|
2742
|
-
!
|
|
2742
|
+
!T && u && /* @__PURE__ */ e.createElement(Tt, { label: b.searchShortcut }),
|
|
2743
2743
|
a && /* @__PURE__ */ e.createElement(
|
|
2744
2744
|
"button",
|
|
2745
2745
|
$e(y({
|
|
@@ -2747,7 +2747,7 @@ const us = st(
|
|
|
2747
2747
|
}, de({
|
|
2748
2748
|
onClick: Q,
|
|
2749
2749
|
disabled: s,
|
|
2750
|
-
"aria-expanded":
|
|
2750
|
+
"aria-expanded": S,
|
|
2751
2751
|
"aria-label": b.triggerButton
|
|
2752
2752
|
})), {
|
|
2753
2753
|
className: `${B}__trigger`
|
|
@@ -2893,11 +2893,11 @@ us.propTypes = {
|
|
|
2893
2893
|
*/
|
|
2894
2894
|
className: t.string
|
|
2895
2895
|
};
|
|
2896
|
-
const
|
|
2896
|
+
const m1 = {
|
|
2897
2897
|
included: "circleCheck",
|
|
2898
2898
|
notIncluded: "xmark",
|
|
2899
2899
|
addon: "circlePlusOutline"
|
|
2900
|
-
},
|
|
2900
|
+
}, Ut = (m) => {
|
|
2901
2901
|
var d = m, {
|
|
2902
2902
|
listItems: s,
|
|
2903
2903
|
listLabel: n,
|
|
@@ -2930,50 +2930,22 @@ const u1 = {
|
|
|
2930
2930
|
key: p,
|
|
2931
2931
|
className: `${o}__list-item ${o}__list-item--${b.type}`
|
|
2932
2932
|
},
|
|
2933
|
-
/* @__PURE__ */ e.createElement(q, { iconName:
|
|
2933
|
+
/* @__PURE__ */ e.createElement(q, { iconName: m1[b.type], iconSize: "md" }),
|
|
2934
2934
|
r && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, u[b.type], ":", " "),
|
|
2935
2935
|
b.text
|
|
2936
2936
|
))),
|
|
2937
2937
|
a && /* @__PURE__ */ e.createElement("div", { className: `${o}__more-link` }, a)
|
|
2938
2938
|
);
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
/**
|
|
2950
|
-
* List items
|
|
2951
|
-
*/
|
|
2952
|
-
listItems: t.arrayOf(
|
|
2953
|
-
t.shape({
|
|
2954
|
-
text: t.string,
|
|
2955
|
-
type: t.oneOf(["included", "notIncluded", "addon"])
|
|
2956
|
-
})
|
|
2957
|
-
),
|
|
2958
|
-
/**
|
|
2959
|
-
* Text preceding the list. Optional.
|
|
2960
|
-
*/
|
|
2961
|
-
listLabel: t.string,
|
|
2962
|
-
/**
|
|
2963
|
-
* A link element using the router of your choice. Will be displayed below the list. Optional.
|
|
2964
|
-
*/
|
|
2965
|
-
moreLink: t.node,
|
|
2966
|
-
/**
|
|
2967
|
-
* Render the icon labels for screen readers.
|
|
2968
|
-
*/
|
|
2969
|
-
renderTypeLabels: t.bool,
|
|
2970
|
-
/**
|
|
2971
|
-
* Additional class names
|
|
2972
|
-
*/
|
|
2973
|
-
className: t.string
|
|
2974
|
-
};
|
|
2975
|
-
const ps = (u) => {
|
|
2976
|
-
var c = u, { linkContent: s, size: n = "md", className: a } = c, r = M(c, ["linkContent", "size", "className"]);
|
|
2939
|
+
}, u1 = (u) => {
|
|
2940
|
+
var c = u, {
|
|
2941
|
+
linkContent: s,
|
|
2942
|
+
size: n = "md",
|
|
2943
|
+
className: a
|
|
2944
|
+
} = c, r = M(c, [
|
|
2945
|
+
"linkContent",
|
|
2946
|
+
"size",
|
|
2947
|
+
"className"
|
|
2948
|
+
]);
|
|
2977
2949
|
const l = "pds-cta-link", m = n != "md" ? `${l}--${n}` : null;
|
|
2978
2950
|
return /* @__PURE__ */ e.createElement(
|
|
2979
2951
|
"div",
|
|
@@ -2990,22 +2962,7 @@ const ps = (u) => {
|
|
|
2990
2962
|
}
|
|
2991
2963
|
)
|
|
2992
2964
|
);
|
|
2993
|
-
}
|
|
2994
|
-
ps.propTypes = {
|
|
2995
|
-
/**
|
|
2996
|
-
* A link element using the router of your choice.
|
|
2997
|
-
*/
|
|
2998
|
-
linkContent: t.node,
|
|
2999
|
-
/**
|
|
3000
|
-
* Size of link
|
|
3001
|
-
*/
|
|
3002
|
-
size: t.oneOf(["sm", "md"]),
|
|
3003
|
-
/**
|
|
3004
|
-
* Additional class names
|
|
3005
|
-
*/
|
|
3006
|
-
className: t.string
|
|
3007
|
-
};
|
|
3008
|
-
const p1 = (o) => {
|
|
2965
|
+
}, p1 = (o) => {
|
|
3009
2966
|
var b = o, {
|
|
3010
2967
|
backgroundColor: s = "default",
|
|
3011
2968
|
containerWidth: n = "standard",
|
|
@@ -3109,7 +3066,7 @@ const Pe = gt(null), g1 = ({
|
|
|
3109
3066
|
children: s,
|
|
3110
3067
|
mobileMenuMaxWidth: n = 640
|
|
3111
3068
|
}) => {
|
|
3112
|
-
const [a, r] =
|
|
3069
|
+
const [a, r] = O(1025);
|
|
3113
3070
|
le(() => (r(window.innerWidth), window.addEventListener("resize", u), () => {
|
|
3114
3071
|
window.removeEventListener("resize", u);
|
|
3115
3072
|
}), []);
|
|
@@ -3133,7 +3090,7 @@ const Pe = gt(null), g1 = ({
|
|
|
3133
3090
|
"selectTextFallback",
|
|
3134
3091
|
"className"
|
|
3135
3092
|
]);
|
|
3136
|
-
const m = "pds-dropdown-menu", [d, o] =
|
|
3093
|
+
const m = "pds-dropdown-menu", [d, o] = O(!1), [b, p] = O(null), h = (R) => {
|
|
3137
3094
|
for (let j = 0; j < R.length; j++) {
|
|
3138
3095
|
if (R[j].isActive)
|
|
3139
3096
|
return R[j].linkContent;
|
|
@@ -3209,15 +3166,15 @@ const Pe = gt(null), g1 = ({
|
|
|
3209
3166
|
close: {
|
|
3210
3167
|
opacity: 0
|
|
3211
3168
|
}
|
|
3212
|
-
}), I = X([]),
|
|
3169
|
+
}), I = X([]), z = nt(f, {
|
|
3213
3170
|
listRef: I,
|
|
3214
3171
|
activeIndex: b,
|
|
3215
3172
|
onNavigate: p,
|
|
3216
3173
|
loop: !0,
|
|
3217
3174
|
openOnArrowKeyDown: !0,
|
|
3218
3175
|
focusItemOnHover: !0
|
|
3219
|
-
}),
|
|
3220
|
-
[w,
|
|
3176
|
+
}), S = et(f, { event: "mousedown" }), w = Ie(f), V = Se(f, { role: "menu" }), { getReferenceProps: H, getFloatingProps: T, getItemProps: P } = Te(
|
|
3177
|
+
[w, V, S, z]
|
|
3221
3178
|
);
|
|
3222
3179
|
return /* @__PURE__ */ e.createElement(
|
|
3223
3180
|
"div",
|
|
@@ -3243,7 +3200,7 @@ const Pe = gt(null), g1 = ({
|
|
|
3243
3200
|
floatingStyles: N,
|
|
3244
3201
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3245
3202
|
})
|
|
3246
|
-
},
|
|
3203
|
+
}, T()),
|
|
3247
3204
|
C(n).map((R, j) => /* @__PURE__ */ e.createElement(
|
|
3248
3205
|
"li",
|
|
3249
3206
|
y({
|
|
@@ -3279,7 +3236,7 @@ ft.propTypes = {
|
|
|
3279
3236
|
*/
|
|
3280
3237
|
className: t.string
|
|
3281
3238
|
};
|
|
3282
|
-
const
|
|
3239
|
+
const Rt = (l) => {
|
|
3283
3240
|
var m = l, {
|
|
3284
3241
|
colorType: s = "default",
|
|
3285
3242
|
displayType: n = "full",
|
|
@@ -3616,7 +3573,7 @@ const Dt = (l) => {
|
|
|
3616
3573
|
n === "sub-brand" && /* @__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" }, $))
|
|
3617
3574
|
);
|
|
3618
3575
|
};
|
|
3619
|
-
|
|
3576
|
+
Rt.propTypes = {
|
|
3620
3577
|
/**
|
|
3621
3578
|
* Color Type
|
|
3622
3579
|
*/
|
|
@@ -3740,7 +3697,7 @@ const h1 = 11.75, f1 = (l) => {
|
|
|
3740
3697
|
ref: b
|
|
3741
3698
|
}, c),
|
|
3742
3699
|
!d && /* @__PURE__ */ e.createElement(
|
|
3743
|
-
|
|
3700
|
+
Rt,
|
|
3744
3701
|
{
|
|
3745
3702
|
className: `${i}__logo`,
|
|
3746
3703
|
displayType: v ? "icon" : "full"
|
|
@@ -3774,7 +3731,7 @@ f1.propTypes = {
|
|
|
3774
3731
|
*/
|
|
3775
3732
|
className: t.string
|
|
3776
3733
|
};
|
|
3777
|
-
const
|
|
3734
|
+
const ps = (u) => {
|
|
3778
3735
|
var c = u, {
|
|
3779
3736
|
destination: s = "main",
|
|
3780
3737
|
text: n = "Skip to main content",
|
|
@@ -3793,7 +3750,7 @@ const gs = (u) => {
|
|
|
3793
3750
|
n
|
|
3794
3751
|
);
|
|
3795
3752
|
};
|
|
3796
|
-
|
|
3753
|
+
ps.propTypes = {
|
|
3797
3754
|
/**
|
|
3798
3755
|
* The ID of the element to skip to.
|
|
3799
3756
|
*/
|
|
@@ -3807,7 +3764,7 @@ gs.propTypes = {
|
|
|
3807
3764
|
*/
|
|
3808
3765
|
className: t.string
|
|
3809
3766
|
};
|
|
3810
|
-
const
|
|
3767
|
+
const gs = gt(null), On = (m) => {
|
|
3811
3768
|
var d = m, {
|
|
3812
3769
|
children: s,
|
|
3813
3770
|
hasSidebarToggle: n = !0,
|
|
@@ -3823,20 +3780,20 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3823
3780
|
"skiplinkText",
|
|
3824
3781
|
"className"
|
|
3825
3782
|
]);
|
|
3826
|
-
const [o, b] =
|
|
3783
|
+
const [o, b] = O(
|
|
3827
3784
|
a
|
|
3828
3785
|
), { isMobile: p } = Ne(Pe), h = X(), [v] = at(h), $ = {
|
|
3829
3786
|
navbarWidth: v.width
|
|
3830
3787
|
}, g = "pds-dashboard", _ = p ? `${g}--isMobile` : `${g}--notMobile`, C = p ? null : o ? `${g}--sidebarExpanded` : `${g}--sidebarCollapsed`, E = () => {
|
|
3831
3788
|
b(!o);
|
|
3832
3789
|
}, f = {};
|
|
3833
|
-
e.Children.forEach(s, (
|
|
3834
|
-
if (e.isValidElement(
|
|
3835
|
-
const
|
|
3836
|
-
|
|
3790
|
+
e.Children.forEach(s, (w) => {
|
|
3791
|
+
if (e.isValidElement(w)) {
|
|
3792
|
+
const V = w.props.slot;
|
|
3793
|
+
V && (f[V] ? f[V].push(w) : f[V] = [w]);
|
|
3837
3794
|
}
|
|
3838
3795
|
});
|
|
3839
|
-
const N = f.header, k = f.sidebar, x = f.main, I = /* @__PURE__ */ e.createElement("aside", { className: `${g}__sidebar` }, k),
|
|
3796
|
+
const N = f.header, k = f.sidebar, x = f.main, I = f.footer, z = /* @__PURE__ */ e.createElement("aside", { className: `${g}__sidebar` }, k), S = /* @__PURE__ */ e.createElement("aside", { className: `${g}__sidebar` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__sidebar-divider` }), n && /* @__PURE__ */ e.createElement(
|
|
3840
3797
|
"button",
|
|
3841
3798
|
{
|
|
3842
3799
|
className: `${g}__sidebar-toggle`,
|
|
@@ -3846,7 +3803,7 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3846
3803
|
},
|
|
3847
3804
|
/* @__PURE__ */ e.createElement(q, { iconName: "angleLeft", iconSize: "sm" })
|
|
3848
3805
|
), /* @__PURE__ */ e.createElement("div", { className: `${g}__sidebar-inner` }, k));
|
|
3849
|
-
return /* @__PURE__ */ e.createElement(
|
|
3806
|
+
return /* @__PURE__ */ e.createElement(gs.Provider, { value: $ }, /* @__PURE__ */ e.createElement(ps, { text: u, className: "" }), /* @__PURE__ */ e.createElement(
|
|
3850
3807
|
"div",
|
|
3851
3808
|
y({
|
|
3852
3809
|
className: [
|
|
@@ -3858,10 +3815,10 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3858
3815
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
3859
3816
|
}, l),
|
|
3860
3817
|
p && N,
|
|
3861
|
-
p ?
|
|
3862
|
-
/* @__PURE__ */ e.createElement("div", { ref: h, className: `${g}__container` }, !p && /* @__PURE__ */ e.createElement("div", { className: `${g}__header` }, N), /* @__PURE__ */ e.createElement("main", { id: "main", className: `${g}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__main-inner` }, x)))
|
|
3818
|
+
p ? z : S,
|
|
3819
|
+
/* @__PURE__ */ e.createElement("div", { ref: h, className: `${g}__container` }, !p && /* @__PURE__ */ e.createElement("div", { className: `${g}__header` }, N), /* @__PURE__ */ e.createElement("main", { id: "main", className: `${g}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__main-inner` }, x), I && /* @__PURE__ */ e.createElement("footer", { className: `${g}__footer` }, I)))
|
|
3863
3820
|
));
|
|
3864
|
-
},
|
|
3821
|
+
}, Dt = (m) => {
|
|
3865
3822
|
var d = m, {
|
|
3866
3823
|
color: s = "transparent",
|
|
3867
3824
|
hasStatusIndicator: n = !1,
|
|
@@ -3886,7 +3843,7 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3886
3843
|
n === !0 && /* @__PURE__ */ e.createElement("span", { className: [p, h].join(" ").trim() }, u && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, r, " ", u)),
|
|
3887
3844
|
/* @__PURE__ */ e.createElement("span", { className: `${o}__label` }, a)
|
|
3888
3845
|
);
|
|
3889
|
-
},
|
|
3846
|
+
}, hs = ({ option: s }) => {
|
|
3890
3847
|
const n = "pds-dashboard-search", a = {
|
|
3891
3848
|
drupal: "drupal",
|
|
3892
3849
|
wordpress: "wordpress",
|
|
@@ -3923,7 +3880,7 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3923
3880
|
style: { pointerEvents: "none" }
|
|
3924
3881
|
},
|
|
3925
3882
|
/* @__PURE__ */ e.createElement(
|
|
3926
|
-
|
|
3883
|
+
Dt,
|
|
3927
3884
|
{
|
|
3928
3885
|
color: "neutral",
|
|
3929
3886
|
hasStatusIndicator: !0,
|
|
@@ -3934,7 +3891,7 @@ const hs = gt(null), Dn = (m) => {
|
|
|
3934
3891
|
)
|
|
3935
3892
|
);
|
|
3936
3893
|
};
|
|
3937
|
-
|
|
3894
|
+
hs.propTypes = { option: t.object };
|
|
3938
3895
|
const b1 = (v) => {
|
|
3939
3896
|
var i = v, {
|
|
3940
3897
|
disabled: s = !1,
|
|
@@ -3967,20 +3924,20 @@ const b1 = (v) => {
|
|
|
3967
3924
|
"startingRightPosition",
|
|
3968
3925
|
"className"
|
|
3969
3926
|
]);
|
|
3970
|
-
const [$, g] =
|
|
3927
|
+
const [$, g] = O(!1), [_, C] = O(null), E = X(null);
|
|
3971
3928
|
let f = !1;
|
|
3972
3929
|
const N = Ne(Pe);
|
|
3973
3930
|
N && (f = N.isMobile);
|
|
3974
3931
|
let k = null;
|
|
3975
|
-
const x = Ne(
|
|
3932
|
+
const x = Ne(gs);
|
|
3976
3933
|
x && (k = x.navbarWidth);
|
|
3977
|
-
const I = 2.25,
|
|
3934
|
+
const I = 2.25, z = 22, S = k > 900 ? z : k / 16 - b - I * 0.675;
|
|
3978
3935
|
let w = I;
|
|
3979
|
-
$ && !k && (w =
|
|
3980
|
-
const
|
|
3936
|
+
$ && !k && (w = z), $ && k && (w = S);
|
|
3937
|
+
const V = {
|
|
3981
3938
|
right: `${b}rem`,
|
|
3982
3939
|
width: `${w}rem`
|
|
3983
|
-
}, H = "pds-dashboard-search",
|
|
3940
|
+
}, H = "pds-dashboard-search", T = f ? `${H}--isMobile` : null, P = () => {
|
|
3984
3941
|
g(!0), setTimeout(() => {
|
|
3985
3942
|
E.current.querySelector("input").focus();
|
|
3986
3943
|
}, 500);
|
|
@@ -3988,23 +3945,23 @@ const b1 = (v) => {
|
|
|
3988
3945
|
setTimeout(() => {
|
|
3989
3946
|
g(!1);
|
|
3990
3947
|
}, 150);
|
|
3991
|
-
}, j = (
|
|
3992
|
-
C(
|
|
3948
|
+
}, j = (L) => {
|
|
3949
|
+
C(L.value), m && m(L);
|
|
3993
3950
|
};
|
|
3994
3951
|
le(() => {
|
|
3995
3952
|
if ($) {
|
|
3996
|
-
const
|
|
3997
|
-
return
|
|
3998
|
-
|
|
3953
|
+
const L = E.current.querySelector("input");
|
|
3954
|
+
return L.addEventListener("blur", R), () => {
|
|
3955
|
+
L.removeEventListener("blur", R);
|
|
3999
3956
|
};
|
|
4000
3957
|
}
|
|
4001
3958
|
}, [$]);
|
|
4002
|
-
const A = o.map((
|
|
4003
|
-
const { id: B, name: U } =
|
|
3959
|
+
const A = o.map((L) => {
|
|
3960
|
+
const { id: B, name: U } = L;
|
|
4004
3961
|
return {
|
|
4005
3962
|
label: U,
|
|
4006
3963
|
value: B,
|
|
4007
|
-
optionDisplay: /* @__PURE__ */ e.createElement(
|
|
3964
|
+
optionDisplay: /* @__PURE__ */ e.createElement(hs, { option: L })
|
|
4008
3965
|
};
|
|
4009
3966
|
}), F = /* @__PURE__ */ e.createElement(
|
|
4010
3967
|
us,
|
|
@@ -4050,11 +4007,11 @@ const b1 = (v) => {
|
|
|
4050
4007
|
return /* @__PURE__ */ e.createElement(
|
|
4051
4008
|
"div",
|
|
4052
4009
|
y({
|
|
4053
|
-
className: [H,
|
|
4010
|
+
className: [H, T, p].join(" ").trim().replace(/\s+/g, " "),
|
|
4054
4011
|
id: n,
|
|
4055
|
-
style: f ? null :
|
|
4056
|
-
onKeyDown: f ? null : (
|
|
4057
|
-
|
|
4012
|
+
style: f ? null : V,
|
|
4013
|
+
onKeyDown: f ? null : (L) => {
|
|
4014
|
+
L.key === "Escape" && R();
|
|
4058
4015
|
}
|
|
4059
4016
|
}, h),
|
|
4060
4017
|
f ? W : Z
|
|
@@ -4221,7 +4178,7 @@ _1.propTypes = {
|
|
|
4221
4178
|
*/
|
|
4222
4179
|
className: t.string
|
|
4223
4180
|
};
|
|
4224
|
-
const
|
|
4181
|
+
const fs = (u) => {
|
|
4225
4182
|
var c = u, {
|
|
4226
4183
|
headingLevel: s = "h3",
|
|
4227
4184
|
headingText: n,
|
|
@@ -4240,7 +4197,7 @@ const bs = (u) => {
|
|
|
4240
4197
|
n
|
|
4241
4198
|
);
|
|
4242
4199
|
};
|
|
4243
|
-
|
|
4200
|
+
fs.propTypes = {
|
|
4244
4201
|
/**
|
|
4245
4202
|
* Heading level
|
|
4246
4203
|
*/
|
|
@@ -4273,7 +4230,7 @@ const E1 = (c) => {
|
|
|
4273
4230
|
className: [m, r].join(" ").trim().replace(/\s+/g, " ")
|
|
4274
4231
|
}, u),
|
|
4275
4232
|
n && /* @__PURE__ */ e.createElement(
|
|
4276
|
-
|
|
4233
|
+
fs,
|
|
4277
4234
|
{
|
|
4278
4235
|
headingLevel: s,
|
|
4279
4236
|
className: `${m}__heading`,
|
|
@@ -4350,9 +4307,8 @@ const pt = (c) => {
|
|
|
4350
4307
|
info: "circleInfo",
|
|
4351
4308
|
warning: "triangleExclamation",
|
|
4352
4309
|
success: "circleCheck",
|
|
4353
|
-
critical: "diamondExclamation"
|
|
4354
|
-
|
|
4355
|
-
}, $1 = (l) => {
|
|
4310
|
+
critical: "diamondExclamation"
|
|
4311
|
+
}, Rn = (l) => {
|
|
4356
4312
|
var m = l, {
|
|
4357
4313
|
title: s,
|
|
4358
4314
|
secondaryText: n,
|
|
@@ -4389,40 +4345,12 @@ const pt = (c) => {
|
|
|
4389
4345
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon-${a}` }, a === "working" ? /* @__PURE__ */ e.createElement(lt, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
4390
4346
|
q,
|
|
4391
4347
|
{
|
|
4392
|
-
iconName: `${a}` in Et ? Et[a] : Et.info
|
|
4348
|
+
iconName: `${a}` in Et ? Et[a] : Et.info,
|
|
4349
|
+
iconSize: "md"
|
|
4393
4350
|
}
|
|
4394
4351
|
)), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, v), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__title` }, s), /* @__PURE__ */ e.createElement("div", { className: `${d}__secondaryText` }, n)))
|
|
4395
4352
|
);
|
|
4396
|
-
}
|
|
4397
|
-
$1.propTypes = {
|
|
4398
|
-
/**
|
|
4399
|
-
* Title text.
|
|
4400
|
-
*/
|
|
4401
|
-
title: t.string.isRequired,
|
|
4402
|
-
/**
|
|
4403
|
-
* Secondary text.
|
|
4404
|
-
*/
|
|
4405
|
-
secondaryText: t.node,
|
|
4406
|
-
/**
|
|
4407
|
-
* Message type.
|
|
4408
|
-
*/
|
|
4409
|
-
type: t.oneOf(["info", "success", "warning", "critical", "working"]),
|
|
4410
|
-
/**
|
|
4411
|
-
* Message type labels. Provide translation strings if needed.
|
|
4412
|
-
*/
|
|
4413
|
-
typeLabels: t.shape({
|
|
4414
|
-
info: t.string,
|
|
4415
|
-
success: t.string,
|
|
4416
|
-
warning: t.string,
|
|
4417
|
-
critical: t.string,
|
|
4418
|
-
working: t.string
|
|
4419
|
-
}),
|
|
4420
|
-
/**
|
|
4421
|
-
* Additional class names
|
|
4422
|
-
*/
|
|
4423
|
-
className: t.string
|
|
4424
|
-
};
|
|
4425
|
-
const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s) => s.type === "decimal").value, $t = 16, Gt = 10, N1 = (i) => {
|
|
4353
|
+
}, $1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = $1.find((s) => s.type === "decimal").value, $t = 16, Gt = 10, y1 = (i) => {
|
|
4426
4354
|
var $ = i, {
|
|
4427
4355
|
disabled: s = !1,
|
|
4428
4356
|
formatting: n,
|
|
@@ -4457,7 +4385,7 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4457
4385
|
g,
|
|
4458
4386
|
_,
|
|
4459
4387
|
h
|
|
4460
|
-
]), [E, f] =
|
|
4388
|
+
]), [E, f] = O(""), [N, k] = O(null), [x, I] = O(null), z = X(null), S = X(null), w = X("");
|
|
4461
4389
|
le(() => {
|
|
4462
4390
|
switch (u && f(Z(u)), w.numExtra = "", n) {
|
|
4463
4391
|
case "credit-card":
|
|
@@ -4468,43 +4396,43 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4468
4396
|
break;
|
|
4469
4397
|
}
|
|
4470
4398
|
}, []);
|
|
4471
|
-
const
|
|
4399
|
+
const V = () => {
|
|
4472
4400
|
C.current = C.current.filter(
|
|
4473
|
-
(
|
|
4401
|
+
(L) => L !== _e.required && L !== _e.disabled
|
|
4474
4402
|
);
|
|
4475
4403
|
}, H = () => {
|
|
4476
4404
|
C.current = C.current.filter(
|
|
4477
|
-
(
|
|
4405
|
+
(L) => L !== _e.error && L !== _e.success
|
|
4478
4406
|
);
|
|
4479
|
-
},
|
|
4407
|
+
}, T = () => {
|
|
4480
4408
|
H(), k(""), I(null);
|
|
4481
|
-
}, P = (
|
|
4409
|
+
}, P = (L) => {
|
|
4482
4410
|
m && m({
|
|
4483
|
-
formattedValue:
|
|
4484
|
-
rawValue:
|
|
4411
|
+
formattedValue: L,
|
|
4412
|
+
rawValue: S.current
|
|
4485
4413
|
});
|
|
4486
|
-
}, R = (
|
|
4487
|
-
f(Z(
|
|
4414
|
+
}, R = (L) => {
|
|
4415
|
+
f(Z(L.target.value)), T(), P(L.target.value);
|
|
4488
4416
|
}, j = () => {
|
|
4489
4417
|
I("error"), C.current.push(_e.error);
|
|
4490
|
-
}, A = (
|
|
4418
|
+
}, A = (L) => {
|
|
4491
4419
|
if (p) {
|
|
4492
|
-
const B = p(
|
|
4493
|
-
|
|
4420
|
+
const B = p(L.target.value) || {};
|
|
4421
|
+
T(), B.error && j(), B.success && (I("success"), C.current.push(_e.success)), k(B.message);
|
|
4494
4422
|
} else
|
|
4495
|
-
|
|
4423
|
+
z.current.checkValidity() === !1 || L.target.value.length < w.current + w.numExtra ? (j(), n === "credit-card" && k(
|
|
4496
4424
|
`Credit card number must have at least ${w.current} digits.`
|
|
4497
4425
|
), n === "phone" && k(
|
|
4498
4426
|
`Phone number must have at least ${w.current} digits.`
|
|
4499
4427
|
)) : (n === "credit-card" || n === "phone") && (I("success"), C.current.push(_e.success));
|
|
4500
|
-
P(
|
|
4428
|
+
P(L.target.value);
|
|
4501
4429
|
}, F = () => {
|
|
4502
|
-
|
|
4503
|
-
}, Z = (
|
|
4504
|
-
if (
|
|
4430
|
+
T(), f(""), S.current = "", z.current.focus(), P("");
|
|
4431
|
+
}, Z = (L) => {
|
|
4432
|
+
if (L) {
|
|
4505
4433
|
if (n === "credit-card") {
|
|
4506
|
-
const B = ("" +
|
|
4507
|
-
if (
|
|
4434
|
+
const B = ("" + L).replace(/\D/g, "");
|
|
4435
|
+
if (S.current = B, B) {
|
|
4508
4436
|
if (new RegExp("^34|37", "g").test(B)) {
|
|
4509
4437
|
w.numExtra = 2, w.current = $t - 1;
|
|
4510
4438
|
const re = {};
|
|
@@ -4517,8 +4445,8 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4517
4445
|
return B;
|
|
4518
4446
|
}
|
|
4519
4447
|
if (n === "phone") {
|
|
4520
|
-
const B = ("" +
|
|
4521
|
-
if (
|
|
4448
|
+
const B = ("" + L).replace(/\D/g, "");
|
|
4449
|
+
if (S.current = B, B) {
|
|
4522
4450
|
w.numExtra = 4, w.current = Gt;
|
|
4523
4451
|
let U = B.substring(0, 3), Y = B.substring(3, 6);
|
|
4524
4452
|
Y.length > 0 && (U = `(${U})`, Y = ` ${Y}`);
|
|
@@ -4528,17 +4456,17 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4528
4456
|
return B;
|
|
4529
4457
|
}
|
|
4530
4458
|
if (n === "number-localized") {
|
|
4531
|
-
const B = new RegExp(`[^0-9${Ct}]`, "g"), U = ("" +
|
|
4532
|
-
|
|
4459
|
+
const B = new RegExp(`[^0-9${Ct}]`, "g"), U = ("" + L).replace(B, "");
|
|
4460
|
+
S.current = U;
|
|
4533
4461
|
const Y = new Intl.NumberFormat(void 0, {
|
|
4534
4462
|
maximumFractionDigits: 20
|
|
4535
4463
|
}).format(U);
|
|
4536
4464
|
return U.endsWith(Ct) ? Y + Ct : Y;
|
|
4537
4465
|
}
|
|
4538
4466
|
}
|
|
4539
|
-
return
|
|
4467
|
+
return L;
|
|
4540
4468
|
};
|
|
4541
|
-
|
|
4469
|
+
V(), o && !s && C.current.push(_e.required), s && C.current.push(_e.disabled);
|
|
4542
4470
|
let W = null;
|
|
4543
4471
|
return x === "error" && (W = /* @__PURE__ */ e.createElement(Je, { type: "error" })), x === "success" && (W = /* @__PURE__ */ e.createElement(Je, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className: C.current.join(" ").trim() }, v), /* @__PURE__ */ e.createElement("span", { className: b ? null : "visually-hidden" }, /* @__PURE__ */ e.createElement("label", { className: "pds-input-label", htmlFor: r }, c)), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__input-wrapper" }, W && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, W), /* @__PURE__ */ e.createElement(
|
|
4544
4472
|
"input",
|
|
@@ -4553,7 +4481,7 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4553
4481
|
value: E,
|
|
4554
4482
|
onChange: R,
|
|
4555
4483
|
onBlur: A,
|
|
4556
|
-
ref:
|
|
4484
|
+
ref: z,
|
|
4557
4485
|
"aria-invalid": x === "error",
|
|
4558
4486
|
"aria-describedby": l || N ? `${r}__message` : null,
|
|
4559
4487
|
maxLength: w.current + w.numExtra,
|
|
@@ -4576,7 +4504,7 @@ const y1 = new Intl.NumberFormat().formatToParts(100000089e-2), Ct = y1.find((s)
|
|
|
4576
4504
|
N || l
|
|
4577
4505
|
));
|
|
4578
4506
|
};
|
|
4579
|
-
|
|
4507
|
+
y1.propTypes = {
|
|
4580
4508
|
/**
|
|
4581
4509
|
* Is the field disabled?
|
|
4582
4510
|
*/
|
|
@@ -4650,7 +4578,7 @@ N1.propTypes = {
|
|
|
4650
4578
|
*/
|
|
4651
4579
|
className: t.string
|
|
4652
4580
|
};
|
|
4653
|
-
const
|
|
4581
|
+
const N1 = (r) => {
|
|
4654
4582
|
var u = r, { children: s, className: n } = u, a = M(u, ["children", "className"]);
|
|
4655
4583
|
const c = "pds-input-group", l = [], m = ["InputText", "Select"], d = ["critical", "primary", "secondary"];
|
|
4656
4584
|
return s.length >= 2 && s.map((o) => {
|
|
@@ -4663,7 +4591,7 @@ const w1 = (r) => {
|
|
|
4663
4591
|
l.length === 2 && l
|
|
4664
4592
|
);
|
|
4665
4593
|
};
|
|
4666
|
-
|
|
4594
|
+
N1.propTypes = {
|
|
4667
4595
|
/**
|
|
4668
4596
|
* Input and button elements
|
|
4669
4597
|
*/
|
|
@@ -4673,7 +4601,7 @@ w1.propTypes = {
|
|
|
4673
4601
|
*/
|
|
4674
4602
|
className: t.string
|
|
4675
4603
|
};
|
|
4676
|
-
const
|
|
4604
|
+
const w1 = (v) => {
|
|
4677
4605
|
var i = v, {
|
|
4678
4606
|
counterFunction: s = () => {
|
|
4679
4607
|
},
|
|
@@ -4702,35 +4630,35 @@ const k1 = (v) => {
|
|
|
4702
4630
|
"validationFunction",
|
|
4703
4631
|
"className"
|
|
4704
4632
|
]);
|
|
4705
|
-
const $ = "pds-input-obscured", g = X(["pds-input-field", $, p]), [_, C] =
|
|
4633
|
+
const $ = "pds-input-obscured", g = X(["pds-input-field", $, p]), [_, C] = O(u), [E, f] = O(s("")), [N, k] = O(), [x, I] = O(null), [z, S] = O(!1), w = X(null), V = X(null);
|
|
4706
4634
|
le(() => {
|
|
4707
4635
|
u && s && f(s(u));
|
|
4708
4636
|
}, []);
|
|
4709
4637
|
const H = () => {
|
|
4710
4638
|
g.current = g.current.filter(
|
|
4711
|
-
(
|
|
4639
|
+
(L) => L !== _e.required && L !== _e.disabled
|
|
4712
4640
|
);
|
|
4713
|
-
},
|
|
4641
|
+
}, T = () => {
|
|
4714
4642
|
g.current = g.current.filter(
|
|
4715
|
-
(
|
|
4643
|
+
(L) => L !== _e.error && L !== _e.success
|
|
4716
4644
|
);
|
|
4717
4645
|
}, P = () => {
|
|
4718
|
-
|
|
4719
|
-
}, R = (
|
|
4720
|
-
C(
|
|
4721
|
-
}, j = (
|
|
4722
|
-
if (
|
|
4723
|
-
const B = b(
|
|
4646
|
+
T(), k(""), I(null);
|
|
4647
|
+
}, R = (L) => {
|
|
4648
|
+
C(L.target.value), P(), s && f(s(L.target.value)), m && m(L.target.value);
|
|
4649
|
+
}, j = (L) => {
|
|
4650
|
+
if (S(!1), b) {
|
|
4651
|
+
const B = b(L.target.value) || {};
|
|
4724
4652
|
P(), B.error && (I("error"), g.current.push(_e.error)), B.success && (I("success"), g.current.push(_e.success)), k(B.message);
|
|
4725
4653
|
}
|
|
4726
4654
|
m && m(_);
|
|
4727
4655
|
}, A = () => {
|
|
4728
|
-
P(), C(""),
|
|
4656
|
+
P(), C(""), V.current.value = null, V.current.focus(), s && f(s("")), m && m("");
|
|
4729
4657
|
}, F = () => {
|
|
4730
|
-
|
|
4731
|
-
}, Z = (
|
|
4658
|
+
S((L) => !L);
|
|
4659
|
+
}, Z = (L) => {
|
|
4732
4660
|
var B;
|
|
4733
|
-
(!((B = w.current) != null && B.contains(
|
|
4661
|
+
(!((B = w.current) != null && B.contains(L.relatedTarget)) || !L.relatedTarget) && S(!1);
|
|
4734
4662
|
};
|
|
4735
4663
|
H(), d && !n && g.current.push(_e.required), n && g.current.push(_e.disabled);
|
|
4736
4664
|
let W = null;
|
|
@@ -4748,13 +4676,13 @@ const k1 = (v) => {
|
|
|
4748
4676
|
className: "visually-hidden",
|
|
4749
4677
|
"aria-live": "polite"
|
|
4750
4678
|
},
|
|
4751
|
-
`Content of ${c} input is ${
|
|
4679
|
+
`Content of ${c} input is ${z ? "visible" : "hidden"}.`
|
|
4752
4680
|
),
|
|
4753
4681
|
/* @__PURE__ */ e.createElement("div", { className: "pds-input-field__input-wrapper" }, W && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, W), /* @__PURE__ */ e.createElement(
|
|
4754
4682
|
"input",
|
|
4755
4683
|
{
|
|
4756
4684
|
className: "pds-input-field__input",
|
|
4757
|
-
type:
|
|
4685
|
+
type: z ? "text" : "password",
|
|
4758
4686
|
id: r,
|
|
4759
4687
|
name: r,
|
|
4760
4688
|
required: d,
|
|
@@ -4762,7 +4690,7 @@ const k1 = (v) => {
|
|
|
4762
4690
|
value: _,
|
|
4763
4691
|
onChange: R,
|
|
4764
4692
|
onBlur: j,
|
|
4765
|
-
ref:
|
|
4693
|
+
ref: V,
|
|
4766
4694
|
"aria-invalid": x === "error",
|
|
4767
4695
|
"aria-describedby": l || N ? `${r}__message` : null,
|
|
4768
4696
|
autoComplete: "off"
|
|
@@ -4779,12 +4707,12 @@ const k1 = (v) => {
|
|
|
4779
4707
|
{
|
|
4780
4708
|
type: "button",
|
|
4781
4709
|
className: `pds-input-field__accessory ${$}__toggle`,
|
|
4782
|
-
title: `${
|
|
4710
|
+
title: `${z ? "Hide" : "Show"} content of ${c} input`,
|
|
4783
4711
|
"aria-controls": r,
|
|
4784
4712
|
onClick: F,
|
|
4785
|
-
onMouseDown: (
|
|
4713
|
+
onMouseDown: (L) => L.preventDefault()
|
|
4786
4714
|
},
|
|
4787
|
-
|
|
4715
|
+
z ? /* @__PURE__ */ e.createElement(q, { iconName: "eyeSlash" }) : /* @__PURE__ */ e.createElement(q, { iconName: "eye" })
|
|
4788
4716
|
))),
|
|
4789
4717
|
(l || N) && /* @__PURE__ */ e.createElement(
|
|
4790
4718
|
"div",
|
|
@@ -4797,7 +4725,7 @@ const k1 = (v) => {
|
|
|
4797
4725
|
)
|
|
4798
4726
|
);
|
|
4799
4727
|
};
|
|
4800
|
-
|
|
4728
|
+
w1.propTypes = {
|
|
4801
4729
|
/**
|
|
4802
4730
|
* If a counter is desired provide a function that accepts the input's value and will return a string to display.
|
|
4803
4731
|
* <br />
|
|
@@ -4868,8 +4796,8 @@ k1.propTypes = {
|
|
|
4868
4796
|
*/
|
|
4869
4797
|
className: t.string
|
|
4870
4798
|
};
|
|
4871
|
-
const yt = 16, Kt = 10,
|
|
4872
|
-
var
|
|
4799
|
+
const yt = 16, Kt = 10, bs = (z) => {
|
|
4800
|
+
var S = z, {
|
|
4873
4801
|
autoComplete: s = "on",
|
|
4874
4802
|
counterFunction: n = () => {
|
|
4875
4803
|
},
|
|
@@ -4904,7 +4832,7 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
4904
4832
|
phoneError: "Please enter a valid phone number."
|
|
4905
4833
|
},
|
|
4906
4834
|
className: x
|
|
4907
|
-
} =
|
|
4835
|
+
} = S, I = M(S, [
|
|
4908
4836
|
"autoComplete",
|
|
4909
4837
|
"counterFunction",
|
|
4910
4838
|
"disabled",
|
|
@@ -4930,10 +4858,10 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
4930
4858
|
"validationMessages",
|
|
4931
4859
|
"className"
|
|
4932
4860
|
]);
|
|
4933
|
-
const [w,
|
|
4861
|
+
const [w, V] = O(l), [H, T] = O(n("")), [P, R] = O(), [j, A] = O(null), [F, Z] = O(!1), W = X(null), L = X(null), B = X(null), U = X(null), Y = "pds-input-text", pe = _ ? `${Y}--${_}` : null;
|
|
4934
4862
|
let re = null;
|
|
4935
4863
|
f === "search" && (re = "search"), j === "error" && (re = "error"), j === "success" && (re = "success"), _ && C && le(() => {
|
|
4936
|
-
switch (l &&
|
|
4864
|
+
switch (l && V(de(l)), U.numExtra = "", _) {
|
|
4937
4865
|
case "credit-card":
|
|
4938
4866
|
U.numExtra = 3, U.current = yt;
|
|
4939
4867
|
break;
|
|
@@ -4975,7 +4903,7 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
4975
4903
|
return Q;
|
|
4976
4904
|
};
|
|
4977
4905
|
le(() => {
|
|
4978
|
-
l && n &&
|
|
4906
|
+
l && n && T(n(l));
|
|
4979
4907
|
}, []);
|
|
4980
4908
|
const me = () => {
|
|
4981
4909
|
R(""), A(null);
|
|
@@ -4984,7 +4912,7 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
4984
4912
|
}, fe = (Q) => {
|
|
4985
4913
|
_ ? p && p({ formattedValue: Q, rawValue: B.current }) : p && p(Q);
|
|
4986
4914
|
}, be = (Q) => {
|
|
4987
|
-
|
|
4915
|
+
V(_ ? de(Q.target.value) : Q.target.value), me(), n && T(n(_ ? B.current : Q.target.value)), fe(Q.target.value);
|
|
4988
4916
|
}, oe = (Q) => {
|
|
4989
4917
|
if (E && Z(!1), N) {
|
|
4990
4918
|
const se = N(Q.target.value) || {};
|
|
@@ -4993,9 +4921,9 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
4993
4921
|
_ && C && !N && (W.current.checkValidity() === !1 || Q.target.value.length < ee ? (A("error"), _ === "credit-card" && R(k.creditCardError), _ === "phone" && R(k.phoneError)) : A("success")), fe(Q.target.value);
|
|
4994
4922
|
}, J = (Q) => {
|
|
4995
4923
|
var se;
|
|
4996
|
-
(!((se =
|
|
4924
|
+
(!((se = L.current) != null && se.contains(Q.relatedTarget)) || !Q.relatedTarget) && Z(!1);
|
|
4997
4925
|
}, K = () => {
|
|
4998
|
-
me(),
|
|
4926
|
+
me(), V(""), B.current = "", W.current.focus(), n && T(n("")), fe("");
|
|
4999
4927
|
}, ue = (Q) => {
|
|
5000
4928
|
Q.key === "/" && (/^(?:input|textarea|select|button)$/i.test(Q.target.tagName) || (Q.preventDefault(), document.getElementById(c).focus()));
|
|
5001
4929
|
};
|
|
@@ -5009,7 +4937,7 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
5009
4937
|
Z((Q) => !Q);
|
|
5010
4938
|
};
|
|
5011
4939
|
E && f === "password" && (F ? I.type = "text" : I.type = "password"), _ === "phone" && (I.type = "tel");
|
|
5012
|
-
const
|
|
4940
|
+
const ze = P || b;
|
|
5013
4941
|
return /* @__PURE__ */ e.createElement(
|
|
5014
4942
|
Oe,
|
|
5015
4943
|
{
|
|
@@ -5020,9 +4948,9 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
5020
4948
|
inputFieldType: "text",
|
|
5021
4949
|
inputWidth: m,
|
|
5022
4950
|
label: d,
|
|
5023
|
-
message:
|
|
4951
|
+
message: ze,
|
|
5024
4952
|
onBlur: J,
|
|
5025
|
-
ref:
|
|
4953
|
+
ref: L,
|
|
5026
4954
|
readonly: i,
|
|
5027
4955
|
required: $,
|
|
5028
4956
|
showLabel: g,
|
|
@@ -5046,7 +4974,7 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
5046
4974
|
onFocus: te,
|
|
5047
4975
|
ref: W,
|
|
5048
4976
|
"aria-invalid": j === "error",
|
|
5049
|
-
"aria-describedby":
|
|
4977
|
+
"aria-describedby": ze ? `${c}__message` : null,
|
|
5050
4978
|
autoComplete: f === "password" ? "off" : s,
|
|
5051
4979
|
maxLength: ee,
|
|
5052
4980
|
minLength: ee
|
|
@@ -5073,10 +5001,10 @@ const yt = 16, Kt = 10, vs = (L) => {
|
|
|
5073
5001
|
},
|
|
5074
5002
|
/* @__PURE__ */ e.createElement(q, { iconName: F ? "eyeSlash" : "eye" })
|
|
5075
5003
|
),
|
|
5076
|
-
!w && u && f === "search" && /* @__PURE__ */ e.createElement(
|
|
5004
|
+
!w && u && f === "search" && /* @__PURE__ */ e.createElement(Tt, { label: o.searchShortcut })
|
|
5077
5005
|
);
|
|
5078
5006
|
};
|
|
5079
|
-
|
|
5007
|
+
bs.propTypes = {
|
|
5080
5008
|
/**
|
|
5081
5009
|
* Auto complete attribute for the input field. The attribute value is either the keyword `off` or `on`, or an ordered list of space-separated tokens. Password fields are automatically off.
|
|
5082
5010
|
*
|
|
@@ -5212,7 +5140,7 @@ vs.propTypes = {
|
|
|
5212
5140
|
*/
|
|
5213
5141
|
className: t.string
|
|
5214
5142
|
};
|
|
5215
|
-
const
|
|
5143
|
+
const k1 = (c) => {
|
|
5216
5144
|
var l = c, {
|
|
5217
5145
|
linkItems: s,
|
|
5218
5146
|
headingLevel: n = "h3",
|
|
@@ -5234,7 +5162,7 @@ const H1 = (c) => {
|
|
|
5234
5162
|
s && /* @__PURE__ */ e.createElement("ul", { className: `${m}__list`, role: "list" }, s.map((o, b) => /* @__PURE__ */ e.createElement("li", { key: b, className: "pds-cta-links-card__item" }, o)))
|
|
5235
5163
|
);
|
|
5236
5164
|
};
|
|
5237
|
-
|
|
5165
|
+
k1.propTypes = {
|
|
5238
5166
|
/**
|
|
5239
5167
|
* Heading level
|
|
5240
5168
|
*/
|
|
@@ -5252,7 +5180,7 @@ H1.propTypes = {
|
|
|
5252
5180
|
*/
|
|
5253
5181
|
className: t.string
|
|
5254
5182
|
};
|
|
5255
|
-
const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
5183
|
+
const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink, H1 = (s) => s.isNode, vs = (g) => {
|
|
5256
5184
|
var _ = g, {
|
|
5257
5185
|
avatarImageSrc: s,
|
|
5258
5186
|
disabled: n,
|
|
@@ -5294,16 +5222,16 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5294
5222
|
strategy: k,
|
|
5295
5223
|
update: x,
|
|
5296
5224
|
placement: I,
|
|
5297
|
-
refs:
|
|
5298
|
-
} =
|
|
5225
|
+
refs: z
|
|
5226
|
+
} = Bs({
|
|
5299
5227
|
placement: "bottom-start",
|
|
5300
|
-
middleware: [
|
|
5228
|
+
middleware: [Fs()]
|
|
5301
5229
|
});
|
|
5302
|
-
let
|
|
5230
|
+
let S = !1;
|
|
5303
5231
|
const w = Ne(Pe);
|
|
5304
|
-
w && (
|
|
5305
|
-
const
|
|
5306
|
-
|
|
5232
|
+
w && (S = w.isMobile);
|
|
5233
|
+
const V = v && S, H = "pds-menu-button", T = V ? `${H}--isMobile` : null, P = v ? `${H}--navbar` : null, R = xe(), [j] = O(`menu-button-${R}`), [A] = O(`menu-listbox-${R}`), F = u || j, Z = z.floating, W = X(null), [L, B] = O(!1), [U, Y] = O(!1), [pe, re] = O(""), [ee, de] = O(0), me = X([]), te = X([]), fe = X([]);
|
|
5234
|
+
Ss(() => {
|
|
5307
5235
|
window.addEventListener("mousedown", ye, !0), x();
|
|
5308
5236
|
const D = Z.current;
|
|
5309
5237
|
return D && (D.dataset.fuiPlacement = I), U && (setTimeout(() => {
|
|
@@ -5311,7 +5239,7 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5311
5239
|
}, 0), Y(!1)), () => {
|
|
5312
5240
|
window.removeEventListener("mousedown", ye, !0);
|
|
5313
5241
|
};
|
|
5314
|
-
}, [
|
|
5242
|
+
}, [L, I]);
|
|
5315
5243
|
const be = (D, ae) => {
|
|
5316
5244
|
re(D), de(ae);
|
|
5317
5245
|
}, oe = () => {
|
|
@@ -5342,10 +5270,10 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5342
5270
|
}, Ce = () => {
|
|
5343
5271
|
const D = te.current[ee];
|
|
5344
5272
|
ue(D);
|
|
5345
|
-
},
|
|
5346
|
-
|
|
5273
|
+
}, ze = (D) => {
|
|
5274
|
+
L ? J() : oe(), Y((ae) => !ae), D.stopPropagation(), D.preventDefault();
|
|
5347
5275
|
}, Q = (D) => {
|
|
5348
|
-
ue(D.currentTarget.id),
|
|
5276
|
+
ue(D.currentTarget.id), V || J();
|
|
5349
5277
|
}, se = (D) => {
|
|
5350
5278
|
var ae = D.key, G = !1;
|
|
5351
5279
|
switch (ae) {
|
|
@@ -5413,7 +5341,7 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5413
5341
|
G && (D.stopPropagation(), D.preventDefault());
|
|
5414
5342
|
}
|
|
5415
5343
|
}, ye = (D) => {
|
|
5416
|
-
W.current && !W.current.contains(D.target) &&
|
|
5344
|
+
W.current && !W.current.contains(D.target) && L && J();
|
|
5417
5345
|
}, we = (D, ae, G = "", ge = "", ...ie) => {
|
|
5418
5346
|
const Ee = G ? `-group-${G}` : "", ve = F + Ee + "-item-" + (ae + 1), Me = D.id ? D.id : ve;
|
|
5419
5347
|
if (Nt(D))
|
|
@@ -5429,25 +5357,25 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5429
5357
|
},
|
|
5430
5358
|
D.label
|
|
5431
5359
|
);
|
|
5432
|
-
if (
|
|
5360
|
+
if (H1(D))
|
|
5433
5361
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Me }, D.nodeContent);
|
|
5434
5362
|
if (kt(D) || D.label) {
|
|
5435
5363
|
te.current.push(Me), fe.current.push(D);
|
|
5436
5364
|
let dt = !1;
|
|
5437
5365
|
pe !== "" && !D.disabled && (dt = pe === Me);
|
|
5438
|
-
let
|
|
5439
|
-
if (D.label && (
|
|
5366
|
+
let Le;
|
|
5367
|
+
if (D.label && (Le = [D.label]), kt(D) && (Le = [D.linkContent.props.children]), D.iconName) {
|
|
5440
5368
|
const Ke = /* @__PURE__ */ e.createElement(q, { key: `icon-${R}`, iconName: D.iconName, iconSize: "md" });
|
|
5441
|
-
|
|
5369
|
+
Le.unshift(Ke);
|
|
5442
5370
|
}
|
|
5443
5371
|
let Ue;
|
|
5444
5372
|
D.description && (Ue = /* @__PURE__ */ e.createElement("span", { className: `${H}__item-description` }, D.description));
|
|
5445
5373
|
let Ge;
|
|
5446
5374
|
if (kt(D)) {
|
|
5447
5375
|
const Ke = D.linkContent.type;
|
|
5448
|
-
Ge = /* @__PURE__ */ e.createElement(Ke, y({ tabIndex: -1 }, D.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` },
|
|
5376
|
+
Ge = /* @__PURE__ */ e.createElement(Ke, y({ tabIndex: -1 }, D.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, Le), Ue);
|
|
5449
5377
|
} else
|
|
5450
|
-
Ge = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` },
|
|
5378
|
+
Ge = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${H}__item-label` }, Le), Ue);
|
|
5451
5379
|
return /* @__PURE__ */ e.createElement(
|
|
5452
5380
|
"li",
|
|
5453
5381
|
y({
|
|
@@ -5482,7 +5410,7 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5482
5410
|
});
|
|
5483
5411
|
let ve = me.current[0];
|
|
5484
5412
|
const Me = Ee[0].findIndex(
|
|
5485
|
-
(
|
|
5413
|
+
(Le) => !Nt(Le) && !wt(Le)
|
|
5486
5414
|
), dt = `${F}-group-${ve}-item-${Me + 1}`;
|
|
5487
5415
|
return /* @__PURE__ */ e.createElement(
|
|
5488
5416
|
"div",
|
|
@@ -5494,8 +5422,8 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5494
5422
|
"aria-labelledby": F,
|
|
5495
5423
|
"aria-activedescendant": pe !== "" ? pe : dt,
|
|
5496
5424
|
style: {
|
|
5497
|
-
visibility:
|
|
5498
|
-
opacity:
|
|
5425
|
+
visibility: L ? "visible" : "hidden",
|
|
5426
|
+
opacity: L ? "1" : "0",
|
|
5499
5427
|
transition: "opacity 300ms ease-in-out 0s",
|
|
5500
5428
|
position: k,
|
|
5501
5429
|
transform: `translate(${Math.round(C)}px,${Math.round(E)}px)`,
|
|
@@ -5504,20 +5432,20 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5504
5432
|
onKeyDown: ke,
|
|
5505
5433
|
ref: N
|
|
5506
5434
|
},
|
|
5507
|
-
Ee.map((
|
|
5435
|
+
Ee.map((Le, Ue) => {
|
|
5508
5436
|
ve = me.current[Ue];
|
|
5509
|
-
const Ge =
|
|
5437
|
+
const Ge = Le[0].isHeading, Ke = Ge ? `${F}-group-${ve}-heading` : "", ks = `${F}-group-${ve}`, Hs = Ge ? null : `${p} ${Ue + 1}`;
|
|
5510
5438
|
return /* @__PURE__ */ e.createElement(
|
|
5511
5439
|
"ul",
|
|
5512
5440
|
{
|
|
5513
5441
|
role: "group",
|
|
5514
5442
|
"aria-labelledby": Ke,
|
|
5515
|
-
"aria-label":
|
|
5516
|
-
key:
|
|
5443
|
+
"aria-label": Hs,
|
|
5444
|
+
key: ks
|
|
5517
5445
|
},
|
|
5518
|
-
|
|
5446
|
+
Le.map((zs, Ls) => we(
|
|
5519
5447
|
zs,
|
|
5520
|
-
|
|
5448
|
+
Ls,
|
|
5521
5449
|
ve,
|
|
5522
5450
|
Ke
|
|
5523
5451
|
))
|
|
@@ -5536,8 +5464,8 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5536
5464
|
"aria-labelledby": F,
|
|
5537
5465
|
"aria-activedescendant": pe !== "" ? pe : Ee,
|
|
5538
5466
|
style: {
|
|
5539
|
-
visibility:
|
|
5540
|
-
opacity:
|
|
5467
|
+
visibility: L ? "visible" : "hidden",
|
|
5468
|
+
opacity: L ? "1" : "0",
|
|
5541
5469
|
transition: "opacity 300ms ease-in-out 0s",
|
|
5542
5470
|
position: k,
|
|
5543
5471
|
transform: `translate(${Math.round(C)}px,${Math.round(E)}px)`
|
|
@@ -5565,8 +5493,8 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5565
5493
|
className: `${H}__trigger`,
|
|
5566
5494
|
"aria-haspopup": "true",
|
|
5567
5495
|
"aria-controls": A,
|
|
5568
|
-
"aria-expanded":
|
|
5569
|
-
onClick:
|
|
5496
|
+
"aria-expanded": L,
|
|
5497
|
+
onClick: ze,
|
|
5570
5498
|
onKeyDown: se,
|
|
5571
5499
|
ref: f
|
|
5572
5500
|
}
|
|
@@ -5583,8 +5511,8 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5583
5511
|
className: `${H}__trigger ${H}__trigger--icon-only`,
|
|
5584
5512
|
"aria-haspopup": "true",
|
|
5585
5513
|
"aria-controls": A,
|
|
5586
|
-
"aria-expanded":
|
|
5587
|
-
onClick:
|
|
5514
|
+
"aria-expanded": L,
|
|
5515
|
+
onClick: ze,
|
|
5588
5516
|
onKeyDown: se,
|
|
5589
5517
|
ref: f
|
|
5590
5518
|
}
|
|
@@ -5598,8 +5526,8 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5598
5526
|
"aria-label": a === "avatar" ? l : null,
|
|
5599
5527
|
"aria-haspopup": "true",
|
|
5600
5528
|
"aria-controls": A,
|
|
5601
|
-
"aria-expanded":
|
|
5602
|
-
onClick:
|
|
5529
|
+
"aria-expanded": L,
|
|
5530
|
+
onClick: ze,
|
|
5603
5531
|
onKeyDown: se,
|
|
5604
5532
|
ref: f
|
|
5605
5533
|
},
|
|
@@ -5622,7 +5550,7 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5622
5550
|
}, je = () => /* @__PURE__ */ e.createElement("ul", { className: `${H}__mobile-menu`, role: "menu" }, m.map((D, ae) => we(D, ae)));
|
|
5623
5551
|
let Re;
|
|
5624
5552
|
const ct = a === "icon-end" ? "pds-button pds-button--navbar" : null, it = [`${H}__toggle`, ct].join(" ").trim().replace(/\s+/g, " ");
|
|
5625
|
-
|
|
5553
|
+
V && (Re = /* @__PURE__ */ e.createElement(
|
|
5626
5554
|
"button",
|
|
5627
5555
|
{
|
|
5628
5556
|
id: F,
|
|
@@ -5642,18 +5570,18 @@ const Nt = (s) => s.isSeparator, wt = (s) => s.isHeading, kt = (s) => s.isLink,
|
|
|
5642
5570
|
}
|
|
5643
5571
|
)
|
|
5644
5572
|
));
|
|
5645
|
-
const bt = Re, ot =
|
|
5573
|
+
const bt = Re, ot = L ? `${H}--expanded` : null;
|
|
5646
5574
|
return /* @__PURE__ */ e.createElement(
|
|
5647
5575
|
"span",
|
|
5648
5576
|
y({
|
|
5649
|
-
className: [H, P,
|
|
5577
|
+
className: [H, P, T, ot, i].join(" ").trim().replace(/\s+/g, " "),
|
|
5650
5578
|
"data-testid": b,
|
|
5651
5579
|
ref: W
|
|
5652
5580
|
}, $),
|
|
5653
|
-
|
|
5581
|
+
V ? /* @__PURE__ */ e.createElement(e.Fragment, null, bt, /* @__PURE__ */ e.createElement(je, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, ne, ce(m))
|
|
5654
5582
|
);
|
|
5655
5583
|
};
|
|
5656
|
-
|
|
5584
|
+
vs.propTypes = {
|
|
5657
5585
|
/**
|
|
5658
5586
|
* Image src for avatar — only necessary for avatar-based buttons.
|
|
5659
5587
|
*/
|
|
@@ -5692,11 +5620,11 @@ _s.propTypes = {
|
|
|
5692
5620
|
*/
|
|
5693
5621
|
menuItems: t.arrayOf(
|
|
5694
5622
|
t.oneOfType([
|
|
5695
|
-
|
|
5623
|
+
Ys,
|
|
5696
5624
|
rs,
|
|
5697
5625
|
cs,
|
|
5698
|
-
|
|
5699
|
-
|
|
5626
|
+
Xs,
|
|
5627
|
+
Qs
|
|
5700
5628
|
])
|
|
5701
5629
|
),
|
|
5702
5630
|
/**
|
|
@@ -5749,7 +5677,7 @@ const z1 = (o) => {
|
|
|
5749
5677
|
"title",
|
|
5750
5678
|
"className"
|
|
5751
5679
|
]);
|
|
5752
|
-
const p = "pds-modal", h = c !== "md" ? `${p}--${c}` : null, [v, i] =
|
|
5680
|
+
const p = "pds-modal", h = c !== "md" ? `${p}--${c}` : null, [v, i] = O(r);
|
|
5753
5681
|
le(() => {
|
|
5754
5682
|
i(r);
|
|
5755
5683
|
}, [r]), le(() => {
|
|
@@ -5779,7 +5707,7 @@ const z1 = (o) => {
|
|
|
5779
5707
|
}
|
|
5780
5708
|
});
|
|
5781
5709
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, k && /* @__PURE__ */ e.createElement(
|
|
5782
|
-
|
|
5710
|
+
qs,
|
|
5783
5711
|
{
|
|
5784
5712
|
lockScroll: !0,
|
|
5785
5713
|
style: {
|
|
@@ -5882,7 +5810,7 @@ Ye.propTypes = {
|
|
|
5882
5810
|
*/
|
|
5883
5811
|
className: t.string
|
|
5884
5812
|
};
|
|
5885
|
-
const
|
|
5813
|
+
const L1 = (h) => {
|
|
5886
5814
|
var v = h, {
|
|
5887
5815
|
children: s,
|
|
5888
5816
|
colorType: n = "default",
|
|
@@ -5908,7 +5836,7 @@ const M1 = (h) => {
|
|
|
5908
5836
|
"logoSubBrand",
|
|
5909
5837
|
"className"
|
|
5910
5838
|
]);
|
|
5911
|
-
const [i, $] =
|
|
5839
|
+
const [i, $] = O(!1);
|
|
5912
5840
|
let g = !1;
|
|
5913
5841
|
const _ = Ne(Pe);
|
|
5914
5842
|
_ && (g = _.isMobile);
|
|
@@ -5917,35 +5845,35 @@ const M1 = (h) => {
|
|
|
5917
5845
|
window.removeEventListener("keyup", k);
|
|
5918
5846
|
}), []);
|
|
5919
5847
|
const k = (Z) => {
|
|
5920
|
-
var W = Z.key,
|
|
5848
|
+
var W = Z.key, L = !1;
|
|
5921
5849
|
switch (W) {
|
|
5922
5850
|
case "Esc":
|
|
5923
5851
|
case "Escape":
|
|
5924
|
-
$(!1),
|
|
5852
|
+
$(!1), L = !0;
|
|
5925
5853
|
break;
|
|
5926
5854
|
}
|
|
5927
|
-
|
|
5855
|
+
L && (Z.stopPropagation(), Z.preventDefault());
|
|
5928
5856
|
}, x = () => $(!i), I = e.createRef();
|
|
5929
5857
|
le(() => {
|
|
5930
5858
|
if (g && s) {
|
|
5931
5859
|
const Z = ds(
|
|
5932
5860
|
document.querySelector(".pds-navbar__mobile")
|
|
5933
5861
|
), W = ["a", "button", "input", "select", "textarea"];
|
|
5934
|
-
i ? Z.forEach((
|
|
5935
|
-
W.includes(
|
|
5936
|
-
}) : Z.forEach((
|
|
5937
|
-
W.includes(
|
|
5862
|
+
i ? Z.forEach((L) => {
|
|
5863
|
+
W.includes(L.nodeName.toLowerCase()) && (L.tabIndex = 0);
|
|
5864
|
+
}) : Z.forEach((L) => {
|
|
5865
|
+
W.includes(L.nodeName.toLowerCase()) && (L.tabIndex = -1);
|
|
5938
5866
|
});
|
|
5939
5867
|
}
|
|
5940
5868
|
}, [i]);
|
|
5941
|
-
const
|
|
5869
|
+
const z = (Z) => {
|
|
5942
5870
|
Z.target.nodeName === "A" && $(!1);
|
|
5943
5871
|
};
|
|
5944
5872
|
le(() => {
|
|
5945
5873
|
if (i) {
|
|
5946
5874
|
const Z = document.querySelector(".pds-navbar__bar-mobile"), W = document.querySelector(".pds-navbar__mobile");
|
|
5947
|
-
return Z.addEventListener("click",
|
|
5948
|
-
Z.removeEventListener("click",
|
|
5875
|
+
return Z.addEventListener("click", z), W.addEventListener("click", z), () => {
|
|
5876
|
+
Z.removeEventListener("click", z), W.removeEventListener("click", z);
|
|
5949
5877
|
};
|
|
5950
5878
|
}
|
|
5951
5879
|
}, [i]), le(() => {
|
|
@@ -5953,12 +5881,12 @@ const M1 = (h) => {
|
|
|
5953
5881
|
}, [g]), le(() => {
|
|
5954
5882
|
i ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
5955
5883
|
}, [i]);
|
|
5956
|
-
const
|
|
5884
|
+
const S = {};
|
|
5957
5885
|
e.Children.forEach(s, (Z) => {
|
|
5958
5886
|
const W = Z.props.slot;
|
|
5959
|
-
W && (
|
|
5887
|
+
W && (S[W] ? S[W].push(Z) : S[W] = [Z]);
|
|
5960
5888
|
});
|
|
5961
|
-
const w =
|
|
5889
|
+
const w = S["items-left"], V = S["items-right"];
|
|
5962
5890
|
let H = /* @__PURE__ */ e.createElement(
|
|
5963
5891
|
"img",
|
|
5964
5892
|
{
|
|
@@ -5971,12 +5899,12 @@ const M1 = (h) => {
|
|
|
5971
5899
|
const Z = m.type;
|
|
5972
5900
|
H = /* @__PURE__ */ e.createElement(Z, y({ "aria-label": l }, m.props), H);
|
|
5973
5901
|
}
|
|
5974
|
-
let
|
|
5975
|
-
(n === "reverse" || n === "reverse-transparent") && (
|
|
5902
|
+
let T = "default";
|
|
5903
|
+
(n === "reverse" || n === "reverse-transparent") && (T = "reverse");
|
|
5976
5904
|
const P = () => c === "custom" ? /* @__PURE__ */ e.createElement(e.Fragment, null, H) : /* @__PURE__ */ e.createElement(
|
|
5977
|
-
|
|
5905
|
+
Rt,
|
|
5978
5906
|
{
|
|
5979
|
-
colorType:
|
|
5907
|
+
colorType: T,
|
|
5980
5908
|
displayType: c,
|
|
5981
5909
|
isLink: {
|
|
5982
5910
|
link: m,
|
|
@@ -5998,9 +5926,9 @@ const M1 = (h) => {
|
|
|
5998
5926
|
className: i ? `${C}__mobile ${C}__mobile--open` : `${C}__mobile ${C}__mobile--closed`,
|
|
5999
5927
|
ref: I
|
|
6000
5928
|
},
|
|
6001
|
-
/* @__PURE__ */ e.createElement(Ye, null, w,
|
|
5929
|
+
/* @__PURE__ */ e.createElement(Ye, null, w, V)
|
|
6002
5930
|
), A = /* @__PURE__ */ e.createElement(
|
|
6003
|
-
|
|
5931
|
+
Ws,
|
|
6004
5932
|
{
|
|
6005
5933
|
focusTrapOptions: {
|
|
6006
5934
|
clickOutsideDeactivates: !0,
|
|
@@ -6008,7 +5936,7 @@ const M1 = (h) => {
|
|
|
6008
5936
|
}
|
|
6009
5937
|
},
|
|
6010
5938
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(Ye, { className: `${C}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__inner-mobile` }, /* @__PURE__ */ e.createElement(P, null), s && R)), /* @__PURE__ */ e.createElement(Ye, null, s && j))
|
|
6011
|
-
), F = /* @__PURE__ */ e.createElement(Ye, { width: a, className: `${C}__inner` }, !u && /* @__PURE__ */ e.createElement("div", { className: `${C}__logo` }, /* @__PURE__ */ e.createElement(P, null)), /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, w ? /* @__PURE__ */ e.createElement("div", { className: `${C}__items-left` }, w) : /* @__PURE__ */ e.createElement("span", null),
|
|
5939
|
+
), F = /* @__PURE__ */ e.createElement(Ye, { width: a, className: `${C}__inner` }, !u && /* @__PURE__ */ e.createElement("div", { className: `${C}__logo` }, /* @__PURE__ */ e.createElement(P, null)), /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, w ? /* @__PURE__ */ e.createElement("div", { className: `${C}__items-left` }, w) : /* @__PURE__ */ e.createElement("span", null), V && /* @__PURE__ */ e.createElement("div", { className: `${C}__items-right` }, V)));
|
|
6012
5940
|
return /* @__PURE__ */ e.createElement(
|
|
6013
5941
|
"header",
|
|
6014
5942
|
y({
|
|
@@ -6017,7 +5945,7 @@ const M1 = (h) => {
|
|
|
6017
5945
|
g ? A : F
|
|
6018
5946
|
);
|
|
6019
5947
|
};
|
|
6020
|
-
|
|
5948
|
+
L1.propTypes = {
|
|
6021
5949
|
/**
|
|
6022
5950
|
* Color scheme.
|
|
6023
5951
|
*/
|
|
@@ -6071,8 +5999,8 @@ M1.propTypes = {
|
|
|
6071
5999
|
*/
|
|
6072
6000
|
className: t.string
|
|
6073
6001
|
};
|
|
6074
|
-
const
|
|
6075
|
-
const [r, u] =
|
|
6002
|
+
const _s = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
6003
|
+
const [r, u] = O(!1), [c, l] = O(0);
|
|
6076
6004
|
le(() => (l(window.innerWidth), window.addEventListener("resize", m), () => {
|
|
6077
6005
|
window.removeEventListener("resize", m);
|
|
6078
6006
|
}), []);
|
|
@@ -6088,7 +6016,7 @@ const Es = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
6088
6016
|
d ? $ = xt(p, {
|
|
6089
6017
|
enabled: !1
|
|
6090
6018
|
}) : $ = xt(p, {
|
|
6091
|
-
handleClose:
|
|
6019
|
+
handleClose: As({
|
|
6092
6020
|
requireIntent: !1,
|
|
6093
6021
|
buffer: 10,
|
|
6094
6022
|
blockPointerEvents: !0,
|
|
@@ -6126,12 +6054,12 @@ const Es = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
6126
6054
|
))
|
|
6127
6055
|
));
|
|
6128
6056
|
};
|
|
6129
|
-
|
|
6057
|
+
_s.propTypes = {
|
|
6130
6058
|
items: t.array,
|
|
6131
6059
|
label: t.string,
|
|
6132
6060
|
mobileMenuMaxWidth: t.number
|
|
6133
6061
|
};
|
|
6134
|
-
const
|
|
6062
|
+
const M1 = (l) => {
|
|
6135
6063
|
var m = l, {
|
|
6136
6064
|
ariaLabel: s = "Main Navigation",
|
|
6137
6065
|
colorType: n = "default",
|
|
@@ -6145,7 +6073,7 @@ const x1 = (l) => {
|
|
|
6145
6073
|
"mobileMenuMaxWidth",
|
|
6146
6074
|
"className"
|
|
6147
6075
|
]);
|
|
6148
|
-
const [d, o] =
|
|
6076
|
+
const [d, o] = O(1025), [b, p] = O(null), [h, v] = O(-1), [i, $] = O(null), [g, _] = O({
|
|
6149
6077
|
containerChildren: []
|
|
6150
6078
|
});
|
|
6151
6079
|
le(() => (o(window.innerWidth), window.addEventListener("resize", C), () => {
|
|
@@ -6166,17 +6094,17 @@ const x1 = (l) => {
|
|
|
6166
6094
|
}));
|
|
6167
6095
|
}, [h]);
|
|
6168
6096
|
const f = "pds-nav-menu", N = n !== "default" ? `${f}--${n}` : "", k = E ? `${f}--isMobile` : `${f}--notMobile`, x = X([]), I = (w) => {
|
|
6169
|
-
const
|
|
6097
|
+
const V = x.current.length - 1, A = {
|
|
6170
6098
|
ArrowRight: () => {
|
|
6171
|
-
p(-1), v(h === -1 ? 1 : h ===
|
|
6099
|
+
p(-1), v(h === -1 ? 1 : h === V ? 0 : h + 1);
|
|
6172
6100
|
},
|
|
6173
6101
|
ArrowLeft: () => {
|
|
6174
|
-
p(-1), v(h === 0 ?
|
|
6102
|
+
p(-1), v(h === 0 ? V : h - 1);
|
|
6175
6103
|
},
|
|
6176
6104
|
ArrowDown: () => {
|
|
6177
|
-
var W,
|
|
6105
|
+
var W, L, B, U;
|
|
6178
6106
|
$("down");
|
|
6179
|
-
let F = w.target.parentNode.children[1], Z = ((
|
|
6107
|
+
let F = w.target.parentNode.children[1], Z = ((L = (W = w.target) == null ? void 0 : W.parentNode.children[1]) == null ? void 0 : L.children) || ((U = (B = w.target) == null ? void 0 : B.parentNode.parentNode.children[1]) == null ? void 0 : U.children);
|
|
6180
6108
|
g.container != F && F != null && _({
|
|
6181
6109
|
container: F,
|
|
6182
6110
|
containerChildren: [...Z]
|
|
@@ -6187,30 +6115,30 @@ const x1 = (l) => {
|
|
|
6187
6115
|
}
|
|
6188
6116
|
}[w.code];
|
|
6189
6117
|
A && A();
|
|
6190
|
-
},
|
|
6118
|
+
}, z = (w) => {
|
|
6191
6119
|
if (w.isActive)
|
|
6192
6120
|
return !0;
|
|
6193
6121
|
if (w.links) {
|
|
6194
|
-
for (let
|
|
6195
|
-
if (
|
|
6122
|
+
for (let V = 0; V < w.links.length; V++)
|
|
6123
|
+
if (z(w.links[V]))
|
|
6196
6124
|
return !0;
|
|
6197
6125
|
}
|
|
6198
6126
|
return !1;
|
|
6199
6127
|
};
|
|
6200
|
-
let
|
|
6201
|
-
return a.map((w,
|
|
6202
|
-
const H = `item-${xe()}`,
|
|
6203
|
-
w.links ?
|
|
6128
|
+
let S = [];
|
|
6129
|
+
return a.map((w, V) => {
|
|
6130
|
+
const H = `item-${xe()}`, T = w.id ? w.id : H;
|
|
6131
|
+
w.links ? S.push(
|
|
6204
6132
|
/* @__PURE__ */ e.createElement(
|
|
6205
6133
|
"li",
|
|
6206
6134
|
{
|
|
6207
|
-
key: `${
|
|
6208
|
-
id:
|
|
6209
|
-
ref: (P) => x.current[
|
|
6210
|
-
className: `${f}__item ${f}__item--top-level ${f}__item--has-children ${
|
|
6135
|
+
key: `${V}-dropdown`,
|
|
6136
|
+
id: T,
|
|
6137
|
+
ref: (P) => x.current[V] = P,
|
|
6138
|
+
className: `${f}__item ${f}__item--top-level ${f}__item--has-children ${z(w) === !0 ? `${f}__item--active` : ""}`
|
|
6211
6139
|
},
|
|
6212
6140
|
/* @__PURE__ */ e.createElement(
|
|
6213
|
-
|
|
6141
|
+
_s,
|
|
6214
6142
|
{
|
|
6215
6143
|
label: w.label,
|
|
6216
6144
|
items: w.links,
|
|
@@ -6218,14 +6146,14 @@ const x1 = (l) => {
|
|
|
6218
6146
|
}
|
|
6219
6147
|
)
|
|
6220
6148
|
)
|
|
6221
|
-
) :
|
|
6149
|
+
) : S.push(
|
|
6222
6150
|
/* @__PURE__ */ e.createElement(
|
|
6223
6151
|
"li",
|
|
6224
6152
|
{
|
|
6225
|
-
key:
|
|
6226
|
-
id:
|
|
6227
|
-
ref: (P) => x.current[
|
|
6228
|
-
className: `${f}__item ${f}__item--top-level ${f}__item--has-link ${
|
|
6153
|
+
key: V,
|
|
6154
|
+
id: T,
|
|
6155
|
+
ref: (P) => x.current[V] = P,
|
|
6156
|
+
className: `${f}__item ${f}__item--top-level ${f}__item--has-link ${z(w) === !0 ? `${f}__item--active` : ""}`
|
|
6229
6157
|
},
|
|
6230
6158
|
w.linkContent
|
|
6231
6159
|
)
|
|
@@ -6239,10 +6167,10 @@ const x1 = (l) => {
|
|
|
6239
6167
|
I(w);
|
|
6240
6168
|
}
|
|
6241
6169
|
}, c),
|
|
6242
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${f}__menu` },
|
|
6170
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${f}__menu` }, S)
|
|
6243
6171
|
);
|
|
6244
6172
|
};
|
|
6245
|
-
|
|
6173
|
+
M1.propTypes = {
|
|
6246
6174
|
/**
|
|
6247
6175
|
* Aria label for `nav` element.
|
|
6248
6176
|
*/
|
|
@@ -6264,7 +6192,7 @@ x1.propTypes = {
|
|
|
6264
6192
|
*/
|
|
6265
6193
|
className: t.string
|
|
6266
6194
|
};
|
|
6267
|
-
const
|
|
6195
|
+
const Es = (r) => {
|
|
6268
6196
|
var u = r, { platformType: s, className: n } = u, a = M(u, ["platformType", "className"]);
|
|
6269
6197
|
const c = "pds-platform-icon", l = `pds-platform-icon--${s}`;
|
|
6270
6198
|
let m;
|
|
@@ -6295,7 +6223,7 @@ const Cs = (r) => {
|
|
|
6295
6223
|
m
|
|
6296
6224
|
);
|
|
6297
6225
|
};
|
|
6298
|
-
|
|
6226
|
+
Es.propTypes = {
|
|
6299
6227
|
/**
|
|
6300
6228
|
* Which platform icon to display
|
|
6301
6229
|
*/
|
|
@@ -6565,7 +6493,7 @@ const Ht = {
|
|
|
6565
6493
|
label: "Early Access",
|
|
6566
6494
|
color: "success"
|
|
6567
6495
|
}
|
|
6568
|
-
},
|
|
6496
|
+
}, x1 = (o) => {
|
|
6569
6497
|
var b = o, {
|
|
6570
6498
|
badge: s,
|
|
6571
6499
|
icon: n,
|
|
@@ -6597,7 +6525,7 @@ const Ht = {
|
|
|
6597
6525
|
"aria-label": a.props.children,
|
|
6598
6526
|
className: `${p}__selection-link`
|
|
6599
6527
|
}, a.props),
|
|
6600
|
-
/* @__PURE__ */ e.createElement("div", { className: `${p}__header` }, n && /* @__PURE__ */ e.createElement("div", { className: `${p}__icon` }, /* @__PURE__ */ e.createElement(
|
|
6528
|
+
/* @__PURE__ */ e.createElement("div", { className: `${p}__header` }, n && /* @__PURE__ */ e.createElement("div", { className: `${p}__icon` }, /* @__PURE__ */ e.createElement(Es, { platformType: n })), /* @__PURE__ */ e.createElement("div", { className: `${p}__title` }, l, r && /* @__PURE__ */ e.createElement("div", { className: `${p}__subtitle` }, r))),
|
|
6601
6529
|
s && /* @__PURE__ */ e.createElement(
|
|
6602
6530
|
pt,
|
|
6603
6531
|
{
|
|
@@ -6630,7 +6558,7 @@ const Ht = {
|
|
|
6630
6558
|
}))
|
|
6631
6559
|
);
|
|
6632
6560
|
};
|
|
6633
|
-
|
|
6561
|
+
x1.propTypes = {
|
|
6634
6562
|
/**
|
|
6635
6563
|
* Optional indicator badge type. Choose from only early-access at this time.
|
|
6636
6564
|
*/
|
|
@@ -6673,7 +6601,7 @@ V1.propTypes = {
|
|
|
6673
6601
|
*/
|
|
6674
6602
|
className: t.string
|
|
6675
6603
|
};
|
|
6676
|
-
const tt = gt({}),
|
|
6604
|
+
const tt = gt({}), V1 = (s) => {
|
|
6677
6605
|
if (typeof window == "undefined")
|
|
6678
6606
|
return 0;
|
|
6679
6607
|
const n = window.location.href.split("/"), r = `/${n[n.length - 1]}`.split("");
|
|
@@ -6685,7 +6613,7 @@ const tt = gt({}), I1 = (s) => {
|
|
|
6685
6613
|
}), s.findIndex(
|
|
6686
6614
|
(c) => c.link === r.join("")
|
|
6687
6615
|
);
|
|
6688
|
-
},
|
|
6616
|
+
}, Cs = ({
|
|
6689
6617
|
pages: s,
|
|
6690
6618
|
render: n = null,
|
|
6691
6619
|
paginationItemClickHandler: a = null,
|
|
@@ -6693,7 +6621,7 @@ const tt = gt({}), I1 = (s) => {
|
|
|
6693
6621
|
buttonCallback: u = null,
|
|
6694
6622
|
children: c
|
|
6695
6623
|
}) => {
|
|
6696
|
-
const [l, m] =
|
|
6624
|
+
const [l, m] = O(() => V1(s)), [d, o] = O([]), b = s.length, [p, h] = O("");
|
|
6697
6625
|
return /* @__PURE__ */ e.createElement(
|
|
6698
6626
|
tt.Provider,
|
|
6699
6627
|
{
|
|
@@ -6715,7 +6643,7 @@ const tt = gt({}), I1 = (s) => {
|
|
|
6715
6643
|
c
|
|
6716
6644
|
);
|
|
6717
6645
|
};
|
|
6718
|
-
|
|
6646
|
+
Cs.propTypes = {
|
|
6719
6647
|
children: t.node.isRequired,
|
|
6720
6648
|
render: t.func,
|
|
6721
6649
|
paginationItemClickHandler: t.func,
|
|
@@ -6723,7 +6651,7 @@ $s.propTypes = {
|
|
|
6723
6651
|
pages: t.arrayOf(t.shape({ link: t.string })).isRequired,
|
|
6724
6652
|
headingId: t.string
|
|
6725
6653
|
};
|
|
6726
|
-
const
|
|
6654
|
+
const qt = (i) => {
|
|
6727
6655
|
var $ = i, {
|
|
6728
6656
|
disabled: s = !1,
|
|
6729
6657
|
id: n,
|
|
@@ -6753,19 +6681,19 @@ const At = (i) => {
|
|
|
6753
6681
|
"validationFunction",
|
|
6754
6682
|
"className"
|
|
6755
6683
|
]);
|
|
6756
|
-
const [g, _] =
|
|
6684
|
+
const [g, _] = O(!1), [C, E] = O(null), [f, N] = O(a), [k, x] = O(), [I, z] = O(null), S = X([]), w = "pds-select", { context: V, refs: H } = Ve({
|
|
6757
6685
|
open: g,
|
|
6758
6686
|
onOpenChange: _,
|
|
6759
6687
|
whileElementsMounted: qe
|
|
6760
|
-
}),
|
|
6761
|
-
listRef:
|
|
6688
|
+
}), T = Se(V, { role: "listbox" }), P = Ie(V), R = nt(V, {
|
|
6689
|
+
listRef: S,
|
|
6762
6690
|
activeIndex: C,
|
|
6763
6691
|
onNavigate: E,
|
|
6764
6692
|
loop: !0,
|
|
6765
6693
|
openOnArrowKeyDown: !0
|
|
6766
6694
|
}), { getReferenceProps: j, getFloatingProps: A, getItemProps: F } = Te(
|
|
6767
|
-
[P,
|
|
6768
|
-
), { isMounted: Z, styles: W } = Ae(
|
|
6695
|
+
[P, T, R]
|
|
6696
|
+
), { isMounted: Z, styles: W } = Ae(V, {
|
|
6769
6697
|
duration: {
|
|
6770
6698
|
open: 300,
|
|
6771
6699
|
close: 150
|
|
@@ -6779,7 +6707,7 @@ const At = (i) => {
|
|
|
6779
6707
|
close: {
|
|
6780
6708
|
opacity: 0
|
|
6781
6709
|
}
|
|
6782
|
-
}),
|
|
6710
|
+
}), L = (oe) => {
|
|
6783
6711
|
const J = m.find((K) => K.value === oe);
|
|
6784
6712
|
return J ? J.label : "";
|
|
6785
6713
|
}, U = ((oe) => oe.map((K) => {
|
|
@@ -6789,21 +6717,21 @@ const At = (i) => {
|
|
|
6789
6717
|
value: Ce || ue
|
|
6790
6718
|
};
|
|
6791
6719
|
}))(m), Y = () => {
|
|
6792
|
-
x(""),
|
|
6720
|
+
x(""), z(null);
|
|
6793
6721
|
}, pe = (oe) => {
|
|
6794
6722
|
const J = p(oe) || {};
|
|
6795
|
-
Y(), J.error &&
|
|
6723
|
+
Y(), J.error && z("error"), J.success && z("success"), x(J.message);
|
|
6796
6724
|
}, re = (oe) => {
|
|
6797
6725
|
const J = U[oe];
|
|
6798
6726
|
N(J.value), E(null), _(!1), l && l(J), p && pe(J);
|
|
6799
6727
|
}, ee = /* @__PURE__ */ e.createElement(q, { iconName: "angleDown", className: `${w}__trigger-icon` }), de = /* @__PURE__ */ e.createElement(q, { iconName: "check", className: `${w}__checked-icon` }), me = U.map((oe, J) => /* @__PURE__ */ e.createElement(
|
|
6800
|
-
|
|
6728
|
+
Ot,
|
|
6801
6729
|
$e(y({
|
|
6802
6730
|
key: oe
|
|
6803
6731
|
}, F({
|
|
6804
6732
|
key: oe.value,
|
|
6805
6733
|
ref(K) {
|
|
6806
|
-
|
|
6734
|
+
S.current[J] = K;
|
|
6807
6735
|
},
|
|
6808
6736
|
onClick() {
|
|
6809
6737
|
var K;
|
|
@@ -6856,7 +6784,7 @@ const At = (i) => {
|
|
|
6856
6784
|
(oe.key === "Enter" || oe.key === " ") && _(!0);
|
|
6857
6785
|
}
|
|
6858
6786
|
})), v),
|
|
6859
|
-
/* @__PURE__ */ e.createElement("span", null,
|
|
6787
|
+
/* @__PURE__ */ e.createElement("span", null, L(f) || o),
|
|
6860
6788
|
ee
|
|
6861
6789
|
),
|
|
6862
6790
|
Z && /* @__PURE__ */ e.createElement(
|
|
@@ -6873,7 +6801,7 @@ const At = (i) => {
|
|
|
6873
6801
|
)
|
|
6874
6802
|
);
|
|
6875
6803
|
};
|
|
6876
|
-
|
|
6804
|
+
qt.propTypes = {
|
|
6877
6805
|
/**
|
|
6878
6806
|
* Is the field disabled?
|
|
6879
6807
|
*/
|
|
@@ -6955,7 +6883,7 @@ At.propTypes = {
|
|
|
6955
6883
|
*/
|
|
6956
6884
|
className: t.string
|
|
6957
6885
|
};
|
|
6958
|
-
const
|
|
6886
|
+
const I1 = {
|
|
6959
6887
|
left: {
|
|
6960
6888
|
title: "Go to previous page",
|
|
6961
6889
|
rel: "prev",
|
|
@@ -6977,7 +6905,7 @@ const S1 = {
|
|
|
6977
6905
|
c && (g.preventDefault(), c(_));
|
|
6978
6906
|
},
|
|
6979
6907
|
[c, l]
|
|
6980
|
-
), { title: p, rel: h, srText: v, icon: i, keyModifier: $ } =
|
|
6908
|
+
), { title: p, rel: h, srText: v, icon: i, keyModifier: $ } = I1[n];
|
|
6981
6909
|
return /* @__PURE__ */ e.createElement(
|
|
6982
6910
|
"li",
|
|
6983
6911
|
y({
|
|
@@ -7004,7 +6932,7 @@ Ze.propTypes = {
|
|
|
7004
6932
|
arrowText: t.string,
|
|
7005
6933
|
direction: t.oneOf(["right", "left"])
|
|
7006
6934
|
};
|
|
7007
|
-
const
|
|
6935
|
+
const S1 = (n) => {
|
|
7008
6936
|
var s = M(n, []);
|
|
7009
6937
|
const {
|
|
7010
6938
|
buttonCallback: a,
|
|
@@ -7026,7 +6954,7 @@ const T1 = (n) => {
|
|
|
7026
6954
|
}, s),
|
|
7027
6955
|
/* @__PURE__ */ e.createElement("div", { id: c, className: "visually-hidden" }, "Pagination"),
|
|
7028
6956
|
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, r > 0 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
7029
|
-
|
|
6957
|
+
qt,
|
|
7030
6958
|
{
|
|
7031
6959
|
label: "Page select dropdown",
|
|
7032
6960
|
selectOptions: d,
|
|
@@ -7038,7 +6966,7 @@ const T1 = (n) => {
|
|
|
7038
6966
|
)), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `of ${l}`), r < l - 1 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Next", direction: "right" }) : null)
|
|
7039
6967
|
);
|
|
7040
6968
|
};
|
|
7041
|
-
function
|
|
6969
|
+
function T1(s, n, a, r, u, c) {
|
|
7042
6970
|
if (r > 3) {
|
|
7043
6971
|
let l = [];
|
|
7044
6972
|
const m = n.find((d) => d.key == r);
|
|
@@ -7138,7 +7066,7 @@ function O1(s, n, a, r, u, c) {
|
|
|
7138
7066
|
]), a(l);
|
|
7139
7067
|
}
|
|
7140
7068
|
}
|
|
7141
|
-
const
|
|
7069
|
+
const $s = (r) => {
|
|
7142
7070
|
var u = r, { index: s, page: n } = u, a = M(u, ["index", "page"]);
|
|
7143
7071
|
var b;
|
|
7144
7072
|
const c = function() {
|
|
@@ -7170,12 +7098,12 @@ const ys = (r) => {
|
|
|
7170
7098
|
"…"
|
|
7171
7099
|
));
|
|
7172
7100
|
};
|
|
7173
|
-
|
|
7101
|
+
$s.propTypes = {
|
|
7174
7102
|
index: t.number.isRequired,
|
|
7175
7103
|
page: t.oneOfType([t.object, t.string]).isRequired,
|
|
7176
7104
|
render: t.func
|
|
7177
7105
|
};
|
|
7178
|
-
const
|
|
7106
|
+
const O1 = (n) => {
|
|
7179
7107
|
var s = M(n, []);
|
|
7180
7108
|
const {
|
|
7181
7109
|
buttonCallback: a,
|
|
@@ -7192,9 +7120,9 @@ const R1 = (n) => {
|
|
|
7192
7120
|
a && (v.preventDefault(), a(i));
|
|
7193
7121
|
},
|
|
7194
7122
|
[a, r]
|
|
7195
|
-
), [h] =
|
|
7123
|
+
), [h] = O(b);
|
|
7196
7124
|
return le(() => {
|
|
7197
|
-
|
|
7125
|
+
T1(
|
|
7198
7126
|
b,
|
|
7199
7127
|
c,
|
|
7200
7128
|
l,
|
|
@@ -7219,7 +7147,7 @@ const R1 = (n) => {
|
|
|
7219
7147
|
}
|
|
7220
7148
|
},
|
|
7221
7149
|
"First"
|
|
7222
|
-
)), /* @__PURE__ */ e.createElement(Ze, { direction: "left" })) : null, c.map((v, i) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${i}` }, /* @__PURE__ */ e.createElement(
|
|
7150
|
+
)), /* @__PURE__ */ e.createElement(Ze, { direction: "left" })) : null, c.map((v, i) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${i}` }, /* @__PURE__ */ e.createElement($s, y({ index: i, page: v }, s)))), r < d - 1 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ze, { direction: "right" }), /* @__PURE__ */ e.createElement("li", { className: "pds-pager__item pds-pager__item--last" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Last Page"), /* @__PURE__ */ e.createElement(
|
|
7223
7151
|
"a",
|
|
7224
7152
|
{
|
|
7225
7153
|
href: h[h.length - 1].link,
|
|
@@ -7230,7 +7158,7 @@ const R1 = (n) => {
|
|
|
7230
7158
|
"Last"
|
|
7231
7159
|
))) : null)
|
|
7232
7160
|
));
|
|
7233
|
-
},
|
|
7161
|
+
}, R1 = (n) => {
|
|
7234
7162
|
var s = M(n, []);
|
|
7235
7163
|
const { currentKey: a, headingId: r, itemLength: u } = Ne(tt);
|
|
7236
7164
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7243,16 +7171,16 @@ const R1 = (n) => {
|
|
|
7243
7171
|
/* @__PURE__ */ e.createElement("div", { id: r, className: "visually-hidden" }, "Pagination"),
|
|
7244
7172
|
/* @__PURE__ */ e.createElement("ul", { className: "pds-pager__items" }, a > 0 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Previous", direction: "left" }) : null, /* @__PURE__ */ e.createElement("li", { className: "pds-pager__items-mini" }, `${a + 1} of ${u}`), a < u - 1 ? /* @__PURE__ */ e.createElement(Ze, { arrowText: "Next", direction: "right" }) : null)
|
|
7245
7173
|
);
|
|
7246
|
-
},
|
|
7174
|
+
}, D1 = (s, n, ...a) => {
|
|
7247
7175
|
switch (s) {
|
|
7248
7176
|
case "basic":
|
|
7249
|
-
return /* @__PURE__ */ e.createElement(
|
|
7177
|
+
return /* @__PURE__ */ e.createElement(O1, y({}, a));
|
|
7250
7178
|
case "mini":
|
|
7251
|
-
return /* @__PURE__ */ e.createElement(
|
|
7179
|
+
return /* @__PURE__ */ e.createElement(R1, y({ location: n }, a));
|
|
7252
7180
|
case "advanced":
|
|
7253
|
-
return /* @__PURE__ */ e.createElement(
|
|
7181
|
+
return /* @__PURE__ */ e.createElement(S1, y({}, a));
|
|
7254
7182
|
}
|
|
7255
|
-
},
|
|
7183
|
+
}, q1 = (m) => {
|
|
7256
7184
|
var d = m, {
|
|
7257
7185
|
buttonCallback: s = null,
|
|
7258
7186
|
headingId: n = "pager-heading",
|
|
@@ -7269,7 +7197,7 @@ const R1 = (n) => {
|
|
|
7269
7197
|
"type"
|
|
7270
7198
|
]);
|
|
7271
7199
|
return /* @__PURE__ */ e.createElement(
|
|
7272
|
-
|
|
7200
|
+
Cs,
|
|
7273
7201
|
y({
|
|
7274
7202
|
pages: a,
|
|
7275
7203
|
render: u,
|
|
@@ -7277,10 +7205,10 @@ const R1 = (n) => {
|
|
|
7277
7205
|
buttonCallback: s,
|
|
7278
7206
|
headingId: n
|
|
7279
7207
|
}, l),
|
|
7280
|
-
|
|
7208
|
+
D1(c)
|
|
7281
7209
|
);
|
|
7282
7210
|
};
|
|
7283
|
-
|
|
7211
|
+
q1.propTypes = {
|
|
7284
7212
|
/**
|
|
7285
7213
|
* Optional function for the navigation buttons
|
|
7286
7214
|
*/
|
|
@@ -7310,7 +7238,7 @@ A1.propTypes = {
|
|
|
7310
7238
|
*/
|
|
7311
7239
|
className: t.string
|
|
7312
7240
|
};
|
|
7313
|
-
const
|
|
7241
|
+
const A1 = (u) => {
|
|
7314
7242
|
var c = u, {
|
|
7315
7243
|
children: s,
|
|
7316
7244
|
variant: n = "default",
|
|
@@ -7329,7 +7257,7 @@ const P1 = (u) => {
|
|
|
7329
7257
|
s
|
|
7330
7258
|
);
|
|
7331
7259
|
};
|
|
7332
|
-
|
|
7260
|
+
A1.propTypes = {
|
|
7333
7261
|
/**
|
|
7334
7262
|
* Panel content.
|
|
7335
7263
|
*/
|
|
@@ -7349,7 +7277,7 @@ P1.propTypes = {
|
|
|
7349
7277
|
*/
|
|
7350
7278
|
className: t.string
|
|
7351
7279
|
};
|
|
7352
|
-
const Be = 8, Xt = 14,
|
|
7280
|
+
const Be = 8, Xt = 14, P1 = 6, j1 = (v) => {
|
|
7353
7281
|
var i = v, {
|
|
7354
7282
|
content: s,
|
|
7355
7283
|
customTrigger: n = !1,
|
|
@@ -7379,36 +7307,36 @@ const Be = 8, Xt = 14, j1 = 6, B1 = (v) => {
|
|
|
7379
7307
|
"setPopoverIsOpen",
|
|
7380
7308
|
"className"
|
|
7381
7309
|
]);
|
|
7382
|
-
var W,
|
|
7383
|
-
const [$, g] =
|
|
7384
|
-
|
|
7310
|
+
var W, L, B, U;
|
|
7311
|
+
const [$, g] = O(o);
|
|
7312
|
+
O(() => {
|
|
7385
7313
|
g(o);
|
|
7386
|
-
}, [o]),
|
|
7314
|
+
}, [o]), O(() => {
|
|
7387
7315
|
b($);
|
|
7388
7316
|
}, [$]);
|
|
7389
7317
|
const _ = typeof n, C = "pds-popover", E = [
|
|
7390
7318
|
`${C}__trigger-custom`,
|
|
7391
7319
|
_ === "string" ? `${C}__trigger-text` : ""
|
|
7392
|
-
].join(" ").trim().replace(/\s+/g, " "), f = n ? r : 0, N = X(null), { refs: k, floatingStyles: x, context: I, middlewareData:
|
|
7320
|
+
].join(" ").trim().replace(/\s+/g, " "), f = n ? r : 0, N = X(null), { refs: k, floatingStyles: x, context: I, middlewareData: z } = Ve({
|
|
7393
7321
|
placement: c,
|
|
7394
7322
|
open: $,
|
|
7395
7323
|
onOpenChange(Y) {
|
|
7396
7324
|
g(Y), Y || u();
|
|
7397
7325
|
},
|
|
7398
7326
|
middleware: [
|
|
7399
|
-
ss(Be +
|
|
7327
|
+
ss(Be + P1 + f),
|
|
7400
7328
|
ns({ padding: 8 }),
|
|
7401
7329
|
as({ padding: 8 }),
|
|
7402
|
-
|
|
7330
|
+
Ps({ element: N })
|
|
7403
7331
|
],
|
|
7404
7332
|
whileElementsMounted: qe
|
|
7405
|
-
}),
|
|
7333
|
+
}), S = () => {
|
|
7406
7334
|
g(!1), u && u();
|
|
7407
|
-
}, w = et(I),
|
|
7335
|
+
}, w = et(I), V = Ie(I), H = Se(I), { getReferenceProps: T, getFloatingProps: P } = Te([
|
|
7408
7336
|
w,
|
|
7409
|
-
|
|
7337
|
+
V,
|
|
7410
7338
|
H
|
|
7411
|
-
]), R = (
|
|
7339
|
+
]), R = (L = (W = z.arrow) == null ? void 0 : W.x) != null ? L : 0, j = (U = (B = z.arrow) == null ? void 0 : B.y) != null ? U : 0, A = R + Xt / 2, F = j + Be, { isMounted: Z } = Ae(I, {
|
|
7412
7340
|
initial: {
|
|
7413
7341
|
transform: "scale(0)"
|
|
7414
7342
|
},
|
|
@@ -7431,7 +7359,7 @@ const Be = 8, Xt = 14, j1 = 6, B1 = (v) => {
|
|
|
7431
7359
|
y({
|
|
7432
7360
|
className: `${C}__trigger`,
|
|
7433
7361
|
ref: k.setReference
|
|
7434
|
-
},
|
|
7362
|
+
}, T()),
|
|
7435
7363
|
n ? /* @__PURE__ */ e.createElement("span", { className: E }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), /* @__PURE__ */ e.createElement(
|
|
7436
7364
|
q,
|
|
7437
7365
|
{
|
|
@@ -7449,7 +7377,7 @@ const Be = 8, Xt = 14, j1 = 6, B1 = (v) => {
|
|
|
7449
7377
|
style: x
|
|
7450
7378
|
}, P()),
|
|
7451
7379
|
/* @__PURE__ */ e.createElement(
|
|
7452
|
-
|
|
7380
|
+
js,
|
|
7453
7381
|
{
|
|
7454
7382
|
ref: N,
|
|
7455
7383
|
context: I,
|
|
@@ -7462,11 +7390,11 @@ const Be = 8, Xt = 14, j1 = 6, B1 = (v) => {
|
|
|
7462
7390
|
className: `${C}__arrow`
|
|
7463
7391
|
}
|
|
7464
7392
|
),
|
|
7465
|
-
/* @__PURE__ */ e.createElement("div", { className: `${C}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${C}__title` }, l), s && /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, s), a && /* @__PURE__ */ e.createElement("button", { onClick:
|
|
7393
|
+
/* @__PURE__ */ e.createElement("div", { className: `${C}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${C}__title` }, l), s && /* @__PURE__ */ e.createElement("div", { className: `${C}__content` }, s), a && /* @__PURE__ */ e.createElement("button", { onClick: S, className: `${C}__close` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"), /* @__PURE__ */ e.createElement(q, { iconName: "xmark", iconSize: "lg" })))
|
|
7466
7394
|
))
|
|
7467
7395
|
);
|
|
7468
7396
|
};
|
|
7469
|
-
|
|
7397
|
+
j1.propTypes = {
|
|
7470
7398
|
/**
|
|
7471
7399
|
* Content to display in the popover.
|
|
7472
7400
|
*/
|
|
@@ -7529,7 +7457,7 @@ B1.propTypes = {
|
|
|
7529
7457
|
*/
|
|
7530
7458
|
className: t.string
|
|
7531
7459
|
};
|
|
7532
|
-
const
|
|
7460
|
+
const B1 = (h) => {
|
|
7533
7461
|
var v = h, {
|
|
7534
7462
|
actionPrimary: s,
|
|
7535
7463
|
actionSecondary: n,
|
|
@@ -7558,12 +7486,12 @@ const F1 = (h) => {
|
|
|
7558
7486
|
"statusBadgeType",
|
|
7559
7487
|
"className"
|
|
7560
7488
|
]);
|
|
7561
|
-
const i = "pds-pricing-card", $ = `${i}-container`, g = a ? `${$}--with-list` : null, _ = o ? `${i}--${o}` : null, C = (
|
|
7489
|
+
const i = "pds-pricing-card", $ = `${i}-container`, g = a ? `${$}--with-list` : null, _ = o ? `${i}--${o}` : null, C = (T) => T.toLowerCase().replace(/\s/g, "-"), E = l && l.length > 1, [f, N] = O(
|
|
7562
7490
|
C(l[0].label)
|
|
7563
|
-
), [k, x] =
|
|
7491
|
+
), [k, x] = O(
|
|
7564
7492
|
s.label
|
|
7565
7493
|
);
|
|
7566
|
-
let I = null,
|
|
7494
|
+
let I = null, z = null;
|
|
7567
7495
|
E || (I = /* @__PURE__ */ e.createElement("div", { className: `${i}__pricing-data` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__price` }, l[0].price), l[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${i}__details` }, l[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${i}__savings-line` }, l[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
7568
7496
|
pt,
|
|
7569
7497
|
{
|
|
@@ -7572,73 +7500,73 @@ const F1 = (h) => {
|
|
|
7572
7500
|
size: "sm",
|
|
7573
7501
|
label: l[0].savingsBadgeLabel
|
|
7574
7502
|
}
|
|
7575
|
-
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${i}__savings-details` }, l[0].savingsDetails))),
|
|
7576
|
-
|
|
7503
|
+
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${i}__savings-details` }, l[0].savingsDetails))), z = /* @__PURE__ */ e.createElement(
|
|
7504
|
+
Ut,
|
|
7577
7505
|
{
|
|
7578
7506
|
className: `${i}__list`,
|
|
7579
7507
|
listLabel: l[0].listLabel,
|
|
7580
7508
|
listItems: l[0].listItems,
|
|
7581
7509
|
renderTypeLabels: !1
|
|
7582
7510
|
}
|
|
7583
|
-
)), E && (I = l.map((
|
|
7584
|
-
const R = f === C(
|
|
7511
|
+
)), E && (I = l.map((T) => {
|
|
7512
|
+
const R = f === C(T.label) ? null : `${i}__pricing-data--hide`;
|
|
7585
7513
|
return /* @__PURE__ */ e.createElement(
|
|
7586
7514
|
"div",
|
|
7587
7515
|
{
|
|
7588
7516
|
className: [`${i}__pricing-data`, R].join(" ").trim().replace(/\s+/g, " "),
|
|
7589
|
-
id: `data-${C(
|
|
7590
|
-
key: C(
|
|
7517
|
+
id: `data-${C(T.label)}`,
|
|
7518
|
+
key: C(T.label)
|
|
7591
7519
|
},
|
|
7592
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__price` },
|
|
7593
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__savings-line` },
|
|
7520
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__price` }, T.price), T.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${i}__details` }, T.priceDetails)),
|
|
7521
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__savings-line` }, T.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
7594
7522
|
pt,
|
|
7595
7523
|
{
|
|
7596
7524
|
className: `${i}__savings-badge`,
|
|
7597
7525
|
color: "neutral",
|
|
7598
7526
|
size: "sm",
|
|
7599
|
-
label:
|
|
7527
|
+
label: T.savingsBadgeLabel
|
|
7600
7528
|
}
|
|
7601
|
-
),
|
|
7529
|
+
), T.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${i}__savings-details` }, T.savingsDetails))
|
|
7602
7530
|
);
|
|
7603
|
-
}),
|
|
7604
|
-
const R = f === C(
|
|
7531
|
+
}), z = l.map((T) => {
|
|
7532
|
+
const R = f === C(T.label) ? null : `${i}__list--hide`;
|
|
7605
7533
|
return /* @__PURE__ */ e.createElement(
|
|
7606
|
-
|
|
7534
|
+
Ut,
|
|
7607
7535
|
{
|
|
7608
7536
|
className: [`${i}__list`, R].join(" ").trim().replace(/\s+/g, " "),
|
|
7609
|
-
listLabel:
|
|
7610
|
-
listItems:
|
|
7537
|
+
listLabel: T.listLabel,
|
|
7538
|
+
listItems: T.listItems,
|
|
7611
7539
|
renderTypeLabels: !1,
|
|
7612
|
-
key: `${C(
|
|
7540
|
+
key: `${C(T.label)}-list`
|
|
7613
7541
|
}
|
|
7614
7542
|
);
|
|
7615
7543
|
}));
|
|
7616
|
-
const
|
|
7544
|
+
const S = (T) => {
|
|
7617
7545
|
const P = l.find(
|
|
7618
|
-
(R) => C(R.label) ===
|
|
7546
|
+
(R) => C(R.label) === T
|
|
7619
7547
|
);
|
|
7620
7548
|
return P.customActionLabel ? P.customActionLabel : s.label;
|
|
7621
7549
|
};
|
|
7622
7550
|
let w = null;
|
|
7623
7551
|
E && (w = /* @__PURE__ */ e.createElement(
|
|
7624
|
-
|
|
7552
|
+
qt,
|
|
7625
7553
|
{
|
|
7626
7554
|
id: "plan-select",
|
|
7627
7555
|
className: `${i}__select`,
|
|
7628
7556
|
label: d,
|
|
7629
7557
|
showLabel: !1,
|
|
7630
|
-
options: l.map((
|
|
7631
|
-
value: C(
|
|
7632
|
-
label:
|
|
7558
|
+
options: l.map((T) => ({
|
|
7559
|
+
value: C(T.label),
|
|
7560
|
+
label: T.label
|
|
7633
7561
|
})),
|
|
7634
7562
|
initialValue: C(l[0].label),
|
|
7635
|
-
onOptionSelect: (
|
|
7636
|
-
N(
|
|
7563
|
+
onOptionSelect: (T) => {
|
|
7564
|
+
N(T.value), x(S(T.value)), r && r(T.value);
|
|
7637
7565
|
}
|
|
7638
7566
|
}
|
|
7639
7567
|
));
|
|
7640
|
-
let
|
|
7641
|
-
s && (s.type === "button" && (
|
|
7568
|
+
let V = null;
|
|
7569
|
+
s && (s.type === "button" && (V = /* @__PURE__ */ e.createElement(
|
|
7642
7570
|
Qe,
|
|
7643
7571
|
{
|
|
7644
7572
|
variant: s.variant,
|
|
@@ -7646,7 +7574,7 @@ const F1 = (h) => {
|
|
|
7646
7574
|
onClick: s.buttonAction,
|
|
7647
7575
|
disabled: s.disabled
|
|
7648
7576
|
}
|
|
7649
|
-
)), s.type === "link" && (
|
|
7577
|
+
)), s.type === "link" && (V = /* @__PURE__ */ e.createElement(
|
|
7650
7578
|
We,
|
|
7651
7579
|
{
|
|
7652
7580
|
variant: s.variant,
|
|
@@ -7685,7 +7613,7 @@ const F1 = (h) => {
|
|
|
7685
7613
|
className: [i, _].join(" ").trim().replace(/\s+/g, " ")
|
|
7686
7614
|
},
|
|
7687
7615
|
o && /* @__PURE__ */ e.createElement(
|
|
7688
|
-
|
|
7616
|
+
Dt,
|
|
7689
7617
|
{
|
|
7690
7618
|
className: `${i}__status-badge`,
|
|
7691
7619
|
type: o,
|
|
@@ -7694,12 +7622,12 @@ const F1 = (h) => {
|
|
|
7694
7622
|
}
|
|
7695
7623
|
),
|
|
7696
7624
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__main-content` }, c && /* @__PURE__ */ e.createElement("div", { className: `${i}__plan pds-overline-text` }, c), I, u && /* @__PURE__ */ e.createElement("div", { className: `${i}__description` }, u), w),
|
|
7697
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__actions` }, s &&
|
|
7625
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__actions` }, s && V, s && n && H)
|
|
7698
7626
|
),
|
|
7699
|
-
a &&
|
|
7627
|
+
a && z
|
|
7700
7628
|
);
|
|
7701
7629
|
};
|
|
7702
|
-
|
|
7630
|
+
B1.propTypes = {
|
|
7703
7631
|
/**
|
|
7704
7632
|
* Primary card action
|
|
7705
7633
|
*/
|
|
@@ -7789,7 +7717,7 @@ const Qt = {
|
|
|
7789
7717
|
success: "--pds-color-semantic-success-foreground",
|
|
7790
7718
|
warning: "--pds-color-semantic-warning-foreground",
|
|
7791
7719
|
critical: "--pds-color-semantic-critical-foreground"
|
|
7792
|
-
},
|
|
7720
|
+
}, F1 = (p) => {
|
|
7793
7721
|
var h = p, {
|
|
7794
7722
|
colorBreakpoints: s = [
|
|
7795
7723
|
{ colorType: "info", percentage: 0 },
|
|
@@ -7862,7 +7790,7 @@ const Qt = {
|
|
|
7862
7790
|
N && E
|
|
7863
7791
|
);
|
|
7864
7792
|
};
|
|
7865
|
-
|
|
7793
|
+
F1.propTypes = {
|
|
7866
7794
|
/**
|
|
7867
7795
|
* Array of color breakpoints. Each breakpoint should have a `colorType` and `percentage` value.
|
|
7868
7796
|
*/
|
|
@@ -7915,7 +7843,7 @@ W1.propTypes = {
|
|
|
7915
7843
|
*/
|
|
7916
7844
|
className: t.string
|
|
7917
7845
|
};
|
|
7918
|
-
const
|
|
7846
|
+
const W1 = 3.815, Z1 = 4.678, U1 = 5.96, ys = (o) => {
|
|
7919
7847
|
var b = o, {
|
|
7920
7848
|
id: s,
|
|
7921
7849
|
innerLabel: n,
|
|
@@ -7936,8 +7864,8 @@ const Z1 = 3.815, U1 = 4.678, G1 = 5.96, Ns = (o) => {
|
|
|
7936
7864
|
"className"
|
|
7937
7865
|
]);
|
|
7938
7866
|
const p = s || xe(), h = "pds-progress-ring", v = u ? `${h}__label` : "visually-hidden", i = `${h}__loading-text ${h}__loading-text--${l}`, $ = (x) => x * 16;
|
|
7939
|
-
let g = $(
|
|
7940
|
-
l === "sm" && (g = $(
|
|
7867
|
+
let g = $(Z1), _ = 7;
|
|
7868
|
+
l === "sm" && (g = $(W1), _ = _ / 1.25), l === "lg" && (g = $(U1), _ = _ * 1.25);
|
|
7941
7869
|
const C = g / 2 - _ / 2, E = `${C / 100}rem`, f = 2 * Math.PI * C, N = f - f * r / 100;
|
|
7942
7870
|
let k;
|
|
7943
7871
|
return n ? k = n : c ? k = `${r}%` : k = "", /* @__PURE__ */ e.createElement(
|
|
@@ -8004,7 +7932,7 @@ const Z1 = 3.815, U1 = 4.678, G1 = 5.96, Ns = (o) => {
|
|
|
8004
7932
|
)
|
|
8005
7933
|
);
|
|
8006
7934
|
};
|
|
8007
|
-
|
|
7935
|
+
ys.propTypes = {
|
|
8008
7936
|
/**
|
|
8009
7937
|
* ID of the Progress Ring. If not provided, a unique ID will be generated.
|
|
8010
7938
|
*/
|
|
@@ -8038,7 +7966,7 @@ Ns.propTypes = {
|
|
|
8038
7966
|
*/
|
|
8039
7967
|
className: t.string
|
|
8040
7968
|
};
|
|
8041
|
-
const
|
|
7969
|
+
const G1 = (l) => {
|
|
8042
7970
|
var m = l, {
|
|
8043
7971
|
attribution: s,
|
|
8044
7972
|
image: n,
|
|
@@ -8068,7 +7996,7 @@ const K1 = (l) => {
|
|
|
8068
7996
|
), /* @__PURE__ */ e.createElement("div", { className: `${d}__attribution` }, /* @__PURE__ */ e.createElement("span", { className: `${d}__name` }, s.name), s.title && /* @__PURE__ */ e.createElement("span", { className: `${d}__title` }, ", ", s.title), s.org && /* @__PURE__ */ e.createElement("span", { className: `${d}__org` }, ", ", s.org))), /* @__PURE__ */ e.createElement("div", { className: `${d}__icon ${d}__icon--after` }, /* @__PURE__ */ e.createElement(q, { iconName: "quotesRight", iconSize: "4xl" })))
|
|
8069
7997
|
);
|
|
8070
7998
|
};
|
|
8071
|
-
|
|
7999
|
+
G1.propTypes = {
|
|
8072
8000
|
/**
|
|
8073
8001
|
* Attribution for the quote
|
|
8074
8002
|
*/
|
|
@@ -8094,7 +8022,7 @@ K1.propTypes = {
|
|
|
8094
8022
|
*/
|
|
8095
8023
|
className: t.string
|
|
8096
8024
|
};
|
|
8097
|
-
const
|
|
8025
|
+
const K1 = (p) => {
|
|
8098
8026
|
var h = p, {
|
|
8099
8027
|
disabled: s = !1,
|
|
8100
8028
|
id: n,
|
|
@@ -8118,7 +8046,7 @@ const Y1 = (p) => {
|
|
|
8118
8046
|
"required",
|
|
8119
8047
|
"className"
|
|
8120
8048
|
]);
|
|
8121
|
-
const v = "pds-radio-group", [i, $] =
|
|
8049
|
+
const v = "pds-radio-group", [i, $] = O(a), g = (_) => {
|
|
8122
8050
|
$(_.target.value), l && l(_.target.value);
|
|
8123
8051
|
};
|
|
8124
8052
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8163,7 +8091,7 @@ const Y1 = (p) => {
|
|
|
8163
8091
|
)
|
|
8164
8092
|
);
|
|
8165
8093
|
};
|
|
8166
|
-
|
|
8094
|
+
K1.propTypes = {
|
|
8167
8095
|
/**
|
|
8168
8096
|
* Is the radio group field disabled?
|
|
8169
8097
|
*/
|
|
@@ -8225,13 +8153,13 @@ Y1.propTypes = {
|
|
|
8225
8153
|
*/
|
|
8226
8154
|
className: t.string
|
|
8227
8155
|
};
|
|
8228
|
-
const
|
|
8156
|
+
const zt = {
|
|
8229
8157
|
info: "circleInfo",
|
|
8230
8158
|
warning: "triangleExclamation",
|
|
8231
8159
|
success: "circleCheck",
|
|
8232
8160
|
critical: "diamondExclamation",
|
|
8233
8161
|
discovery: "squareQuestion"
|
|
8234
|
-
},
|
|
8162
|
+
}, Dn = (b) => {
|
|
8235
8163
|
var p = b, {
|
|
8236
8164
|
dismissLabel: s = "Dismiss",
|
|
8237
8165
|
id: n,
|
|
@@ -8290,7 +8218,8 @@ const Lt = {
|
|
|
8290
8218
|
/* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__icon ${v}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
8291
8219
|
q,
|
|
8292
8220
|
{
|
|
8293
|
-
iconName: `${l}` in
|
|
8221
|
+
iconName: `${l}` in zt ? zt[l] : zt.info,
|
|
8222
|
+
iconSize: "md"
|
|
8294
8223
|
}
|
|
8295
8224
|
)), /* @__PURE__ */ e.createElement("div", { className: `${v}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), c && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, c), /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, u))),
|
|
8296
8225
|
a && /* @__PURE__ */ e.createElement(
|
|
@@ -8304,58 +8233,7 @@ const Lt = {
|
|
|
8304
8233
|
/* @__PURE__ */ e.createElement(q, { iconSize: "md", iconName: "xmark" })
|
|
8305
8234
|
)
|
|
8306
8235
|
);
|
|
8307
|
-
}
|
|
8308
|
-
X1.propTypes = {
|
|
8309
|
-
/**
|
|
8310
|
-
* Label for dismiss button. Provide a translation string if needed.
|
|
8311
|
-
*/
|
|
8312
|
-
dismissLabel: t.string,
|
|
8313
|
-
/**
|
|
8314
|
-
* Unique id of message.
|
|
8315
|
-
*/
|
|
8316
|
-
id: t.string,
|
|
8317
|
-
/**
|
|
8318
|
-
* Includes dismiss functionality.
|
|
8319
|
-
*/
|
|
8320
|
-
isDismissible: t.bool,
|
|
8321
|
-
/**
|
|
8322
|
-
* Message text.
|
|
8323
|
-
*/
|
|
8324
|
-
message: t.node.isRequired,
|
|
8325
|
-
/**
|
|
8326
|
-
* Callback function when message is dismissed.
|
|
8327
|
-
*/
|
|
8328
|
-
onDismiss: t.func,
|
|
8329
|
-
/**
|
|
8330
|
-
* Message title.
|
|
8331
|
-
*/
|
|
8332
|
-
title: t.string,
|
|
8333
|
-
/**
|
|
8334
|
-
* Message type.
|
|
8335
|
-
*/
|
|
8336
|
-
type: t.oneOf([
|
|
8337
|
-
"info",
|
|
8338
|
-
"success",
|
|
8339
|
-
"warning",
|
|
8340
|
-
"critical",
|
|
8341
|
-
"discovery"
|
|
8342
|
-
]),
|
|
8343
|
-
/**
|
|
8344
|
-
* Message type labels. Provide translation strings if needed.
|
|
8345
|
-
*/
|
|
8346
|
-
typeLabels: t.shape({
|
|
8347
|
-
info: t.string,
|
|
8348
|
-
success: t.string,
|
|
8349
|
-
warning: t.string,
|
|
8350
|
-
critical: t.string,
|
|
8351
|
-
discovery: t.string
|
|
8352
|
-
}),
|
|
8353
|
-
/**
|
|
8354
|
-
* Additional class names.
|
|
8355
|
-
*/
|
|
8356
|
-
className: t.string
|
|
8357
|
-
};
|
|
8358
|
-
const Q1 = (d) => {
|
|
8236
|
+
}, Y1 = (d) => {
|
|
8359
8237
|
var o = d, {
|
|
8360
8238
|
ariaLabel: s = "Secondary navigation",
|
|
8361
8239
|
headingText: n,
|
|
@@ -8376,7 +8254,7 @@ const Q1 = (d) => {
|
|
|
8376
8254
|
"mobileMenuSelectTextFallback",
|
|
8377
8255
|
"className"
|
|
8378
8256
|
]);
|
|
8379
|
-
const [b, p] =
|
|
8257
|
+
const [b, p] = O(1025);
|
|
8380
8258
|
le(() => (p(window.innerWidth), window.addEventListener("resize", h), () => {
|
|
8381
8259
|
window.removeEventListener("resize", h);
|
|
8382
8260
|
}), []);
|
|
@@ -8444,7 +8322,7 @@ const Q1 = (d) => {
|
|
|
8444
8322
|
v ? _ : C
|
|
8445
8323
|
);
|
|
8446
8324
|
};
|
|
8447
|
-
|
|
8325
|
+
Y1.propTypes = {
|
|
8448
8326
|
/**
|
|
8449
8327
|
* Aria label for the navigation.
|
|
8450
8328
|
*/
|
|
@@ -8477,7 +8355,7 @@ Q1.propTypes = {
|
|
|
8477
8355
|
*/
|
|
8478
8356
|
className: t.string
|
|
8479
8357
|
};
|
|
8480
|
-
const
|
|
8358
|
+
const X1 = (d) => {
|
|
8481
8359
|
var o = d, {
|
|
8482
8360
|
ariaLabel: s = "Secondary navigation",
|
|
8483
8361
|
headingText: n,
|
|
@@ -8498,7 +8376,7 @@ const J1 = (d) => {
|
|
|
8498
8376
|
"mobileMenuSelectTextFallback",
|
|
8499
8377
|
"className"
|
|
8500
8378
|
]);
|
|
8501
|
-
const [b, p] =
|
|
8379
|
+
const [b, p] = O(1025);
|
|
8502
8380
|
le(() => (p(window.innerWidth), window.addEventListener("resize", h), () => {
|
|
8503
8381
|
window.removeEventListener("resize", h);
|
|
8504
8382
|
}), []);
|
|
@@ -8589,7 +8467,7 @@ const J1 = (d) => {
|
|
|
8589
8467
|
v ? _ : C
|
|
8590
8468
|
);
|
|
8591
8469
|
};
|
|
8592
|
-
|
|
8470
|
+
X1.propTypes = {
|
|
8593
8471
|
/**
|
|
8594
8472
|
* Aria label for the navigation.
|
|
8595
8473
|
*/
|
|
@@ -8622,7 +8500,7 @@ J1.propTypes = {
|
|
|
8622
8500
|
*/
|
|
8623
8501
|
className: t.string
|
|
8624
8502
|
};
|
|
8625
|
-
const
|
|
8503
|
+
const Q1 = (o) => {
|
|
8626
8504
|
var b = o, {
|
|
8627
8505
|
headingLevel: s = "h3",
|
|
8628
8506
|
gotoText: n = "Go to",
|
|
@@ -8646,7 +8524,7 @@ const en = (o) => {
|
|
|
8646
8524
|
let v = "";
|
|
8647
8525
|
l === "Active" && (v = "success"), l === "Frozen" && (v = "frozen");
|
|
8648
8526
|
const i = /* @__PURE__ */ e.createElement(
|
|
8649
|
-
|
|
8527
|
+
Dt,
|
|
8650
8528
|
{
|
|
8651
8529
|
label: l,
|
|
8652
8530
|
statusType: v,
|
|
@@ -8663,7 +8541,7 @@ const en = (o) => {
|
|
|
8663
8541
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${p}__heading` }, /* @__PURE__ */ e.createElement(h, { className: `${p}__site-name pds-ts-l`, title: u }, u), i), /* @__PURE__ */ e.createElement("div", { className: `${p}__plan` }, c))
|
|
8664
8542
|
);
|
|
8665
8543
|
};
|
|
8666
|
-
|
|
8544
|
+
Q1.propTypes = {
|
|
8667
8545
|
/**
|
|
8668
8546
|
* Heading level or `span`.
|
|
8669
8547
|
*/
|
|
@@ -8697,7 +8575,7 @@ en.propTypes = {
|
|
|
8697
8575
|
*/
|
|
8698
8576
|
className: t.string
|
|
8699
8577
|
};
|
|
8700
|
-
const
|
|
8578
|
+
const J1 = (c) => {
|
|
8701
8579
|
var l = c, {
|
|
8702
8580
|
containerWidth: s = "standard",
|
|
8703
8581
|
children: n,
|
|
@@ -8706,6 +8584,7 @@ const tn = (c) => {
|
|
|
8706
8584
|
"dataSubjectRequest",
|
|
8707
8585
|
"cookiePolicy",
|
|
8708
8586
|
"termsOfUse",
|
|
8587
|
+
"acceptableUse",
|
|
8709
8588
|
"accessibilityStatement"
|
|
8710
8589
|
],
|
|
8711
8590
|
className: r
|
|
@@ -8715,16 +8594,16 @@ const tn = (c) => {
|
|
|
8715
8594
|
"legalLinks",
|
|
8716
8595
|
"className"
|
|
8717
8596
|
]);
|
|
8718
|
-
const m = "pds-site-footer", d = s && s !== "default" ? `pds-container pds-container--${s}` : "pds-container", o = (/* @__PURE__ */ new Date()).getFullYear(), b = a.includes("privacy"), p = a.includes("dataSubjectRequest"), h = a.includes("cookiePolicy"), v = a.includes("termsOfUse"), i = a.includes("accessibilityStatement");
|
|
8597
|
+
const m = "pds-site-footer", d = s && s !== "default" ? `pds-container pds-container--${s}` : "pds-container", o = (/* @__PURE__ */ new Date()).getFullYear(), b = a.includes("privacy"), p = a.includes("dataSubjectRequest"), h = a.includes("cookiePolicy"), v = a.includes("termsOfUse"), i = a.includes("acceptableUse"), $ = a.includes("accessibilityStatement");
|
|
8719
8598
|
return /* @__PURE__ */ e.createElement(
|
|
8720
8599
|
"footer",
|
|
8721
8600
|
y({
|
|
8722
8601
|
className: [m, r].join(" ").trim().replace(/\s+/g, " ")
|
|
8723
8602
|
}, u),
|
|
8724
|
-
/* @__PURE__ */ e.createElement("div", { className: d }, n && /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${m}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${m}__copyright` }, "© ", o, " Pantheon Systems, Inc."), b && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), i && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
8603
|
+
/* @__PURE__ */ e.createElement("div", { className: d }, n && /* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${m}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${m}__copyright` }, "© ", o, " Pantheon Systems, Inc."), b && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), v && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), i && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), $ && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement")))
|
|
8725
8604
|
);
|
|
8726
8605
|
};
|
|
8727
|
-
|
|
8606
|
+
J1.propTypes = {
|
|
8728
8607
|
/**
|
|
8729
8608
|
* PDS container width.
|
|
8730
8609
|
*/
|
|
@@ -8750,7 +8629,7 @@ tn.propTypes = {
|
|
|
8750
8629
|
*/
|
|
8751
8630
|
className: t.string
|
|
8752
8631
|
};
|
|
8753
|
-
const
|
|
8632
|
+
const en = (r) => {
|
|
8754
8633
|
var u = r, {
|
|
8755
8634
|
linkItems: s = ["facebook", "x", "linkedin", "youtube", "instagram"],
|
|
8756
8635
|
className: n
|
|
@@ -8767,16 +8646,16 @@ const sn = (r) => {
|
|
|
8767
8646
|
s.map((l, m) => /* @__PURE__ */ e.createElement("li", { key: m, className: `${c}__item` }, /* @__PURE__ */ e.createElement(
|
|
8768
8647
|
"a",
|
|
8769
8648
|
{
|
|
8770
|
-
href:
|
|
8649
|
+
href: Lt[l].url,
|
|
8771
8650
|
rel: "noreferrer",
|
|
8772
8651
|
target: "_blank",
|
|
8773
|
-
"aria-label":
|
|
8652
|
+
"aria-label": Lt[l].label
|
|
8774
8653
|
},
|
|
8775
|
-
/* @__PURE__ */ e.createElement(q, { iconName:
|
|
8654
|
+
/* @__PURE__ */ e.createElement(q, { iconName: Lt[l].icon, iconSize: "xl" })
|
|
8776
8655
|
)))
|
|
8777
8656
|
);
|
|
8778
8657
|
};
|
|
8779
|
-
|
|
8658
|
+
en.propTypes = {
|
|
8780
8659
|
/**
|
|
8781
8660
|
* Array of social media links
|
|
8782
8661
|
*/
|
|
@@ -8786,7 +8665,7 @@ sn.propTypes = {
|
|
|
8786
8665
|
*/
|
|
8787
8666
|
className: t.string
|
|
8788
8667
|
};
|
|
8789
|
-
const
|
|
8668
|
+
const Lt = {
|
|
8790
8669
|
facebook: {
|
|
8791
8670
|
icon: "facebook",
|
|
8792
8671
|
url: "https://www.facebook.com/getpantheon",
|
|
@@ -8817,7 +8696,7 @@ const zt = {
|
|
|
8817
8696
|
url: "https://www.youtube.com/user/GetPantheon",
|
|
8818
8697
|
label: "Pantheon on YouTube"
|
|
8819
8698
|
}
|
|
8820
|
-
},
|
|
8699
|
+
}, tn = (m) => {
|
|
8821
8700
|
var d = m, {
|
|
8822
8701
|
actionItems: s,
|
|
8823
8702
|
disabled: n,
|
|
@@ -8862,7 +8741,7 @@ const zt = {
|
|
|
8862
8741
|
}, l),
|
|
8863
8742
|
v,
|
|
8864
8743
|
/* @__PURE__ */ e.createElement(
|
|
8865
|
-
|
|
8744
|
+
vs,
|
|
8866
8745
|
{
|
|
8867
8746
|
className: `${o}__menu-button`,
|
|
8868
8747
|
label: a,
|
|
@@ -8876,7 +8755,7 @@ const zt = {
|
|
|
8876
8755
|
)
|
|
8877
8756
|
);
|
|
8878
8757
|
};
|
|
8879
|
-
|
|
8758
|
+
tn.propTypes = {
|
|
8880
8759
|
/**
|
|
8881
8760
|
* Array of menu items
|
|
8882
8761
|
*/
|
|
@@ -8904,7 +8783,7 @@ nn.propTypes = {
|
|
|
8904
8783
|
*/
|
|
8905
8784
|
className: t.string
|
|
8906
8785
|
};
|
|
8907
|
-
const
|
|
8786
|
+
const sn = (r) => {
|
|
8908
8787
|
var u = r, { listItems: s, className: n } = u, a = M(u, ["listItems", "className"]);
|
|
8909
8788
|
const c = "pds-tile-list", l = "pds-tile-list--stats", m = ({ item: d }) => {
|
|
8910
8789
|
const { imageSrc: o, stat: b, description: p } = d;
|
|
@@ -8918,7 +8797,7 @@ const an = (r) => {
|
|
|
8918
8797
|
s.map((d, o) => /* @__PURE__ */ e.createElement(m, { key: o, item: d }))
|
|
8919
8798
|
);
|
|
8920
8799
|
};
|
|
8921
|
-
|
|
8800
|
+
sn.propTypes = {
|
|
8922
8801
|
/**
|
|
8923
8802
|
* Array of list Items
|
|
8924
8803
|
*/
|
|
@@ -8943,7 +8822,7 @@ an.propTypes = {
|
|
|
8943
8822
|
*/
|
|
8944
8823
|
className: t.string
|
|
8945
8824
|
};
|
|
8946
|
-
const
|
|
8825
|
+
const nn = (u) => {
|
|
8947
8826
|
var c = u, {
|
|
8948
8827
|
label: s = null,
|
|
8949
8828
|
type: n = "neutral",
|
|
@@ -8970,7 +8849,7 @@ const ln = (u) => {
|
|
|
8970
8849
|
s && /* @__PURE__ */ e.createElement("span", { className: "pds-status-indicator__label" }, s)
|
|
8971
8850
|
);
|
|
8972
8851
|
};
|
|
8973
|
-
|
|
8852
|
+
nn.propTypes = {
|
|
8974
8853
|
/**
|
|
8975
8854
|
* Status label text
|
|
8976
8855
|
*/
|
|
@@ -8992,7 +8871,7 @@ ln.propTypes = {
|
|
|
8992
8871
|
*/
|
|
8993
8872
|
className: t.string
|
|
8994
8873
|
};
|
|
8995
|
-
const
|
|
8874
|
+
const an = (u) => {
|
|
8996
8875
|
var c = u, {
|
|
8997
8876
|
steps: s,
|
|
8998
8877
|
translatableLabels: n = {
|
|
@@ -9008,9 +8887,9 @@ const rn = (u) => {
|
|
|
9008
8887
|
"className"
|
|
9009
8888
|
]);
|
|
9010
8889
|
const l = "pds-stepper", m = "pds-stepper-mobile", d = X(), [o] = at(d), b = o.width, p = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, h = -40, v = 2, i = 5, $ = s.length, g = s.findLastIndex((E) => E.isCurrent), _ = s.map((E, f) => {
|
|
9011
|
-
const N = f + 1, k = f === g, x = f < g, I = E.hasError && k,
|
|
8890
|
+
const N = f + 1, k = f === g, x = f < g, I = E.hasError && k, S = (b - $ * p) / ($ + ($ - 2)), w = p + S * 2, V = p + S, H = S + h * -1, T = f === 0, P = f === $ - 1;
|
|
9012
8891
|
let R = w;
|
|
9013
|
-
(
|
|
8892
|
+
(T || P) && (R = V);
|
|
9014
8893
|
const j = `${l}__step`, A = [j];
|
|
9015
8894
|
k && A.push(`${j}--current`), x && A.push(`${j}--complete`), I && A.push(`${j}--error`);
|
|
9016
8895
|
let F = `${n.step} ${N}`;
|
|
@@ -9023,12 +8902,12 @@ const rn = (u) => {
|
|
|
9023
8902
|
className: `${l}__step-complete-icon`
|
|
9024
8903
|
}
|
|
9025
8904
|
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }), W = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-label` }, E.label);
|
|
9026
|
-
let
|
|
8905
|
+
let L = /* @__PURE__ */ e.createElement("div", { className: `${l}__step-content` }, W, Z);
|
|
9027
8906
|
if (x && E.callback) {
|
|
9028
8907
|
const B = (U) => {
|
|
9029
8908
|
E.callback(E), U.preventDefault();
|
|
9030
8909
|
};
|
|
9031
|
-
|
|
8910
|
+
L = /* @__PURE__ */ e.createElement(
|
|
9032
8911
|
"button",
|
|
9033
8912
|
{
|
|
9034
8913
|
className: `${l}__step-content`,
|
|
@@ -9050,7 +8929,7 @@ const rn = (u) => {
|
|
|
9050
8929
|
className: A.join(" ").trim().replace(/\s+/g, " "),
|
|
9051
8930
|
style: { width: R }
|
|
9052
8931
|
},
|
|
9053
|
-
!
|
|
8932
|
+
!T && /* @__PURE__ */ e.createElement(
|
|
9054
8933
|
"span",
|
|
9055
8934
|
{
|
|
9056
8935
|
className: `${l}__connector ${l}__connector--before`,
|
|
@@ -9060,7 +8939,7 @@ const rn = (u) => {
|
|
|
9060
8939
|
}
|
|
9061
8940
|
}
|
|
9062
8941
|
),
|
|
9063
|
-
|
|
8942
|
+
L,
|
|
9064
8943
|
!P && /* @__PURE__ */ e.createElement(
|
|
9065
8944
|
"span",
|
|
9066
8945
|
{
|
|
@@ -9070,9 +8949,9 @@ const rn = (u) => {
|
|
|
9070
8949
|
)
|
|
9071
8950
|
);
|
|
9072
8951
|
}), C = s.map((E, f) => {
|
|
9073
|
-
const N = f + 1, k = f === g, x = f === $ - 1, I = E.hasError && k,
|
|
8952
|
+
const N = f + 1, k = f === g, x = f === $ - 1, I = E.hasError && k, z = s[g + 1] ? s[g + 1].label : null;
|
|
9074
8953
|
if (k) {
|
|
9075
|
-
const
|
|
8954
|
+
const S = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), N, " of ", $), w = N / $ * 100, V = I ? {
|
|
9076
8955
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
9077
8956
|
} : {
|
|
9078
8957
|
"--pds-color-progress-partial": "var(--pds-color-stepper-completed)"
|
|
@@ -9085,13 +8964,13 @@ const rn = (u) => {
|
|
|
9085
8964
|
className: `${m}__step`
|
|
9086
8965
|
},
|
|
9087
8966
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9088
|
-
|
|
8967
|
+
ys,
|
|
9089
8968
|
{
|
|
9090
8969
|
label: "Step progress",
|
|
9091
8970
|
size: "sm",
|
|
9092
8971
|
percentage: w,
|
|
9093
|
-
innerLabel:
|
|
9094
|
-
style:
|
|
8972
|
+
innerLabel: S,
|
|
8973
|
+
style: V
|
|
9095
8974
|
}
|
|
9096
8975
|
)),
|
|
9097
8976
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__step-label` }, I && /* @__PURE__ */ e.createElement(e.Fragment, null, H, /* @__PURE__ */ e.createElement(
|
|
@@ -9101,7 +8980,7 @@ const rn = (u) => {
|
|
|
9101
8980
|
iconSize: "md",
|
|
9102
8981
|
className: `${m}__error-icon`
|
|
9103
8982
|
}
|
|
9104
|
-
)), E.label), !x && /* @__PURE__ */ e.createElement("div", { className: `${m}__next-step` }, `${n.next}: ${
|
|
8983
|
+
)), E.label), !x && /* @__PURE__ */ e.createElement("div", { className: `${m}__next-step` }, `${n.next}: ${z}`))
|
|
9105
8984
|
);
|
|
9106
8985
|
}
|
|
9107
8986
|
});
|
|
@@ -9122,7 +9001,7 @@ const rn = (u) => {
|
|
|
9122
9001
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__steps` }, C)
|
|
9123
9002
|
));
|
|
9124
9003
|
};
|
|
9125
|
-
|
|
9004
|
+
an.propTypes = {
|
|
9126
9005
|
/**
|
|
9127
9006
|
* An array of step objects
|
|
9128
9007
|
*/
|
|
@@ -9164,9 +9043,9 @@ rn.propTypes = {
|
|
|
9164
9043
|
*/
|
|
9165
9044
|
className: t.string
|
|
9166
9045
|
};
|
|
9167
|
-
const
|
|
9046
|
+
const ln = (u) => {
|
|
9168
9047
|
var c = u, { headers: s, rowData: n, className: a } = c, r = M(c, ["headers", "rowData", "className"]);
|
|
9169
|
-
const [l] =
|
|
9048
|
+
const [l] = O(s), [m, d] = O(n), [o, b] = O({ order: "asc", key: "" }), p = (g) => {
|
|
9170
9049
|
d(m.sort((_, C) => _[g].localeCompare(C[g]))), b({ order: "desc", key: g });
|
|
9171
9050
|
}, h = (g) => {
|
|
9172
9051
|
d(m.sort((_, C) => C[g].localeCompare(_[g]))), b({ order: "asc", key: g });
|
|
@@ -9210,7 +9089,7 @@ const cn = (u) => {
|
|
|
9210
9089
|
/* @__PURE__ */ e.createElement("tbody", null, m.map((g, _) => i(g, _)))
|
|
9211
9090
|
));
|
|
9212
9091
|
};
|
|
9213
|
-
|
|
9092
|
+
ln.propTypes = {
|
|
9214
9093
|
headers: t.arrayOf(t.object),
|
|
9215
9094
|
rowData: t.arrayOf(t.node),
|
|
9216
9095
|
/**
|
|
@@ -9218,7 +9097,7 @@ cn.propTypes = {
|
|
|
9218
9097
|
*/
|
|
9219
9098
|
className: t.string
|
|
9220
9099
|
};
|
|
9221
|
-
const
|
|
9100
|
+
const rn = (o) => {
|
|
9222
9101
|
var b = o, {
|
|
9223
9102
|
appendIds: s = !1,
|
|
9224
9103
|
ariaLabel: n = "Table of contents",
|
|
@@ -9257,90 +9136,90 @@ const on = (o) => {
|
|
|
9257
9136
|
"|",
|
|
9258
9137
|
"~"
|
|
9259
9138
|
], i = `#${l} h2:not(.${u}), h3:not(.${u})`, $ = () => {
|
|
9260
|
-
const [
|
|
9139
|
+
const [z, S] = O([]);
|
|
9261
9140
|
return le(() => {
|
|
9262
9141
|
const w = Array.from(
|
|
9263
9142
|
document.querySelectorAll(i)
|
|
9264
9143
|
);
|
|
9265
9144
|
w.map((H) => {
|
|
9266
|
-
v.forEach((
|
|
9267
|
-
H.id.includes(
|
|
9145
|
+
v.forEach((T) => {
|
|
9146
|
+
H.id.includes(T) && (H.id = H.id.replaceAll(T, "-"));
|
|
9268
9147
|
});
|
|
9269
9148
|
}), w.map((H) => {
|
|
9270
|
-
const
|
|
9271
|
-
H.id || (H.id =
|
|
9149
|
+
const T = `item-${xe()}`;
|
|
9150
|
+
H.id || (H.id = T);
|
|
9272
9151
|
});
|
|
9273
|
-
const
|
|
9274
|
-
V
|
|
9275
|
-
}, []), { nestedHeadings:
|
|
9276
|
-
}, g = (
|
|
9277
|
-
const
|
|
9278
|
-
return
|
|
9279
|
-
const { innerText:
|
|
9280
|
-
w.nodeName === "H2" ?
|
|
9152
|
+
const V = g(w);
|
|
9153
|
+
S(V);
|
|
9154
|
+
}, []), { nestedHeadings: z };
|
|
9155
|
+
}, g = (z) => {
|
|
9156
|
+
const S = [];
|
|
9157
|
+
return z.forEach((w) => {
|
|
9158
|
+
const { innerText: V, id: H } = w;
|
|
9159
|
+
w.nodeName === "H2" ? S.push({ id: H, title: V, items: [] }) : w.nodeName === "H3" && S.length > 0 && S[S.length - 1].items.push({
|
|
9281
9160
|
id: H,
|
|
9282
|
-
title:
|
|
9161
|
+
title: V
|
|
9283
9162
|
});
|
|
9284
|
-
}),
|
|
9285
|
-
}, { nestedHeadings: _ } = $(), [C, E] =
|
|
9286
|
-
((
|
|
9287
|
-
const
|
|
9163
|
+
}), S;
|
|
9164
|
+
}, { nestedHeadings: _ } = $(), [C, E] = O();
|
|
9165
|
+
((z) => {
|
|
9166
|
+
const S = X({});
|
|
9288
9167
|
le(() => {
|
|
9289
|
-
const w = (
|
|
9290
|
-
|
|
9168
|
+
const w = (T) => {
|
|
9169
|
+
S.current = T.reduce((j, A) => (j[A.target.id] = A, j), S.current);
|
|
9291
9170
|
const P = [];
|
|
9292
|
-
Object.keys(
|
|
9293
|
-
const A =
|
|
9171
|
+
Object.keys(S.current).forEach((j) => {
|
|
9172
|
+
const A = S.current[j];
|
|
9294
9173
|
A.isIntersecting && P.push(A);
|
|
9295
9174
|
});
|
|
9296
9175
|
const R = (j) => H.findIndex((A) => A.id === j);
|
|
9297
9176
|
if (P.length === 1)
|
|
9298
|
-
|
|
9177
|
+
z(P[0].target.id);
|
|
9299
9178
|
else if (P.length > 1) {
|
|
9300
9179
|
const j = P.sort(
|
|
9301
9180
|
(A, F) => R(A.target.id) > R(F.target.id)
|
|
9302
9181
|
);
|
|
9303
|
-
|
|
9182
|
+
z(j[0].target.id);
|
|
9304
9183
|
}
|
|
9305
|
-
},
|
|
9184
|
+
}, V = new IntersectionObserver(w, {
|
|
9306
9185
|
rootMargin: "0px 0px -20% 0px"
|
|
9307
9186
|
}), H = Array.from(
|
|
9308
9187
|
document.querySelectorAll(i)
|
|
9309
9188
|
);
|
|
9310
|
-
return H.forEach((
|
|
9311
|
-
}, [
|
|
9189
|
+
return H.forEach((T) => V.observe(T)), () => V.disconnect();
|
|
9190
|
+
}, [z]);
|
|
9312
9191
|
})(E);
|
|
9313
|
-
const N = (
|
|
9314
|
-
typeof window != "undefined" && window.location.hash !== `#${
|
|
9315
|
-
}, k = (
|
|
9316
|
-
document.querySelector(`#${
|
|
9192
|
+
const N = (z) => {
|
|
9193
|
+
typeof window != "undefined" && window.location.hash !== `#${z}` && window.history.pushState({}, "", `#${z}`);
|
|
9194
|
+
}, k = (z) => {
|
|
9195
|
+
document.querySelector(`#${z}`).scrollIntoView({
|
|
9317
9196
|
behavior: "smooth",
|
|
9318
9197
|
block: "start"
|
|
9319
9198
|
});
|
|
9320
|
-
}, x = (
|
|
9321
|
-
|
|
9322
|
-
}, I = ({ headings:
|
|
9199
|
+
}, x = (z, S) => {
|
|
9200
|
+
z.preventDefault(), s && N(S), k(S);
|
|
9201
|
+
}, I = ({ headings: z }) => /* @__PURE__ */ e.createElement("ul", { className: `${p}__list ${p}__list--top-level` }, z.map((S) => /* @__PURE__ */ e.createElement("li", { key: S.id, className: `${p}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9323
9202
|
"a",
|
|
9324
9203
|
{
|
|
9325
|
-
className:
|
|
9326
|
-
href: `#${
|
|
9204
|
+
className: S.id === C ? `${p}__link ${p}__link--active` : `${p}__link`,
|
|
9205
|
+
href: `#${S.id}`,
|
|
9327
9206
|
onClick: (w) => {
|
|
9328
|
-
x(w,
|
|
9207
|
+
x(w, S.id);
|
|
9329
9208
|
}
|
|
9330
9209
|
},
|
|
9331
|
-
|
|
9332
|
-
),
|
|
9210
|
+
S.title
|
|
9211
|
+
), S.items.length > 0 && /* @__PURE__ */ e.createElement(
|
|
9333
9212
|
"ul",
|
|
9334
9213
|
{
|
|
9335
9214
|
className: `${p}__list ${p}__list--second-level`
|
|
9336
9215
|
},
|
|
9337
|
-
|
|
9216
|
+
S.items.map((w) => /* @__PURE__ */ e.createElement("li", { key: w.id, className: `${p}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9338
9217
|
"a",
|
|
9339
9218
|
{
|
|
9340
9219
|
className: w.id === C ? `${p}__link ${p}__link--active` : `${p}__link`,
|
|
9341
9220
|
href: `#${w.id}`,
|
|
9342
|
-
onClick: (
|
|
9343
|
-
x(
|
|
9221
|
+
onClick: (V) => {
|
|
9222
|
+
x(V, w.id);
|
|
9344
9223
|
}
|
|
9345
9224
|
},
|
|
9346
9225
|
w.title
|
|
@@ -9364,7 +9243,7 @@ const on = (o) => {
|
|
|
9364
9243
|
/* @__PURE__ */ e.createElement(I, { headings: _, activeID: C })
|
|
9365
9244
|
);
|
|
9366
9245
|
};
|
|
9367
|
-
|
|
9246
|
+
rn.propTypes = {
|
|
9368
9247
|
/**
|
|
9369
9248
|
* Whether to append the id to the URL when a link is clicked.
|
|
9370
9249
|
*/
|
|
@@ -9398,7 +9277,7 @@ on.propTypes = {
|
|
|
9398
9277
|
*/
|
|
9399
9278
|
className: t.string
|
|
9400
9279
|
};
|
|
9401
|
-
const
|
|
9280
|
+
const cn = (l) => {
|
|
9402
9281
|
var m = l, {
|
|
9403
9282
|
ariaLabel: s,
|
|
9404
9283
|
defaultSelected: n = 0,
|
|
@@ -9412,7 +9291,7 @@ const dn = (l) => {
|
|
|
9412
9291
|
"tabs",
|
|
9413
9292
|
"className"
|
|
9414
9293
|
]);
|
|
9415
|
-
const d = "pds-tabs", o = a != "md" ? `${d}--${a}` : null, [b, p] =
|
|
9294
|
+
const d = "pds-tabs", o = a != "md" ? `${d}--${a}` : null, [b, p] = O(n), h = (g) => {
|
|
9416
9295
|
const _ = g.currentTarget.getAttribute("data-tabnumber");
|
|
9417
9296
|
p(_);
|
|
9418
9297
|
}, v = e.useRef([]);
|
|
@@ -9537,7 +9416,7 @@ const dn = (l) => {
|
|
|
9537
9416
|
))
|
|
9538
9417
|
));
|
|
9539
9418
|
};
|
|
9540
|
-
|
|
9419
|
+
cn.propTypes = {
|
|
9541
9420
|
/**
|
|
9542
9421
|
* Sets tabset aria label
|
|
9543
9422
|
*/
|
|
@@ -9553,7 +9432,7 @@ dn.propTypes = {
|
|
|
9553
9432
|
/**
|
|
9554
9433
|
* Array of objects for tab data
|
|
9555
9434
|
*/
|
|
9556
|
-
tabs:
|
|
9435
|
+
tabs: Ts(
|
|
9557
9436
|
t.shape({
|
|
9558
9437
|
/**
|
|
9559
9438
|
* Sets if tab disabled (optional)
|
|
@@ -9582,7 +9461,7 @@ dn.propTypes = {
|
|
|
9582
9461
|
*/
|
|
9583
9462
|
className: t.string
|
|
9584
9463
|
};
|
|
9585
|
-
let
|
|
9464
|
+
let St = [
|
|
9586
9465
|
"color-1",
|
|
9587
9466
|
"color-2",
|
|
9588
9467
|
"color-3",
|
|
@@ -9604,10 +9483,10 @@ let Tt = [
|
|
|
9604
9483
|
"color-19",
|
|
9605
9484
|
"color-20"
|
|
9606
9485
|
];
|
|
9607
|
-
const
|
|
9486
|
+
const on = (s) => {
|
|
9608
9487
|
const n = parseInt(es(s), 16);
|
|
9609
|
-
return
|
|
9610
|
-
},
|
|
9488
|
+
return St[n % St.length];
|
|
9489
|
+
}, dn = (s, n) => s.length > n ? s.slice(0, n) + " ..." : s, mn = (d) => {
|
|
9611
9490
|
var o = d, {
|
|
9612
9491
|
linkContent: s,
|
|
9613
9492
|
isRemovable: n,
|
|
@@ -9625,7 +9504,7 @@ const mn = (s) => {
|
|
|
9625
9504
|
"tagLabel",
|
|
9626
9505
|
"className"
|
|
9627
9506
|
]);
|
|
9628
|
-
const [b, p] =
|
|
9507
|
+
const [b, p] = O(!0), h = "pds-tag", v = u ? `${h}--${u}` : `${h}--${on(c)}`, i = b ? null : "pds-tag--hide", $ = () => {
|
|
9629
9508
|
p((E) => !E);
|
|
9630
9509
|
};
|
|
9631
9510
|
let g, _, C;
|
|
@@ -9636,7 +9515,7 @@ const mn = (s) => {
|
|
|
9636
9515
|
to: _ === "to" ? C : null,
|
|
9637
9516
|
className: [h, v, i, l].join(" ").trim().replace(/\s+/g, " ")
|
|
9638
9517
|
}, m),
|
|
9639
|
-
/* @__PURE__ */ e.createElement("span", { className: `${h}__label`, title: c },
|
|
9518
|
+
/* @__PURE__ */ e.createElement("span", { className: `${h}__label`, title: c }, dn(c, 20)),
|
|
9640
9519
|
n ? /* @__PURE__ */ e.createElement(
|
|
9641
9520
|
"button",
|
|
9642
9521
|
{
|
|
@@ -9651,7 +9530,7 @@ const mn = (s) => {
|
|
|
9651
9530
|
) : null
|
|
9652
9531
|
);
|
|
9653
9532
|
};
|
|
9654
|
-
|
|
9533
|
+
mn.propTypes = {
|
|
9655
9534
|
/**
|
|
9656
9535
|
* Should the tag be a link? If yes, provide a link element.
|
|
9657
9536
|
*/
|
|
@@ -9671,7 +9550,7 @@ pn.propTypes = {
|
|
|
9671
9550
|
/**
|
|
9672
9551
|
* Tag color. Will use random color if not selected.
|
|
9673
9552
|
*/
|
|
9674
|
-
tagColor: t.oneOf(
|
|
9553
|
+
tagColor: t.oneOf(St),
|
|
9675
9554
|
/**
|
|
9676
9555
|
* Tag text
|
|
9677
9556
|
*/
|
|
@@ -9709,7 +9588,7 @@ const qn = (c) => {
|
|
|
9709
9588
|
}),
|
|
9710
9589
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, p), s)
|
|
9711
9590
|
);
|
|
9712
|
-
},
|
|
9591
|
+
}, un = (g) => {
|
|
9713
9592
|
var _ = g, {
|
|
9714
9593
|
counterFunction: s = () => {
|
|
9715
9594
|
},
|
|
@@ -9744,18 +9623,18 @@ const qn = (c) => {
|
|
|
9744
9623
|
"validationFunction",
|
|
9745
9624
|
"className"
|
|
9746
9625
|
]);
|
|
9747
|
-
const [C, E] =
|
|
9626
|
+
const [C, E] = O(r), [f, N] = O(s("")), [k, x] = O(), [I, z] = O(null), S = X(null), w = "pds-textarea", V = c ? "pds-is-resizable" : null;
|
|
9748
9627
|
le(() => {
|
|
9749
9628
|
r && s && N(s(r));
|
|
9750
9629
|
}, []);
|
|
9751
9630
|
const H = () => {
|
|
9752
|
-
x(""),
|
|
9753
|
-
},
|
|
9631
|
+
x(""), z(null);
|
|
9632
|
+
}, T = (j) => {
|
|
9754
9633
|
E(j.target.value), H(), s && N(s(j.target.value)), d && d(C);
|
|
9755
9634
|
}, P = (j) => {
|
|
9756
9635
|
if (v) {
|
|
9757
9636
|
const A = v(j.target.value) || {};
|
|
9758
|
-
H(), A.error &&
|
|
9637
|
+
H(), A.error && z("error"), A.success && z("success"), x(A.message);
|
|
9759
9638
|
}
|
|
9760
9639
|
d && d(C);
|
|
9761
9640
|
}, R = k || m;
|
|
@@ -9777,7 +9656,7 @@ const qn = (c) => {
|
|
|
9777
9656
|
/* @__PURE__ */ e.createElement(
|
|
9778
9657
|
"textarea",
|
|
9779
9658
|
y({
|
|
9780
|
-
className: [w,
|
|
9659
|
+
className: [w, V].join(" ").trim().replace(/\s+/g, " "),
|
|
9781
9660
|
id: a,
|
|
9782
9661
|
name: a,
|
|
9783
9662
|
placeholder: o,
|
|
@@ -9786,16 +9665,16 @@ const qn = (c) => {
|
|
|
9786
9665
|
disabled: n,
|
|
9787
9666
|
value: C,
|
|
9788
9667
|
rows: h,
|
|
9789
|
-
onChange:
|
|
9668
|
+
onChange: T,
|
|
9790
9669
|
onBlur: P,
|
|
9791
|
-
ref:
|
|
9670
|
+
ref: S,
|
|
9792
9671
|
"aria-invalid": I === "error",
|
|
9793
9672
|
"aria-describedby": R ? `${a}__message` : null
|
|
9794
9673
|
}, $)
|
|
9795
9674
|
)
|
|
9796
9675
|
);
|
|
9797
9676
|
};
|
|
9798
|
-
|
|
9677
|
+
un.propTypes = {
|
|
9799
9678
|
/**
|
|
9800
9679
|
* If a counter is desired provide a function that accepts the input's value and will return a string.
|
|
9801
9680
|
*/
|
|
@@ -9874,7 +9753,7 @@ gn.propTypes = {
|
|
|
9874
9753
|
*/
|
|
9875
9754
|
className: t.string
|
|
9876
9755
|
};
|
|
9877
|
-
const
|
|
9756
|
+
const Ns = (d) => {
|
|
9878
9757
|
var o = d, {
|
|
9879
9758
|
displayType: s = "border",
|
|
9880
9759
|
headingLevel: n = "span",
|
|
@@ -9902,7 +9781,7 @@ const ws = (d) => {
|
|
|
9902
9781
|
a && /* @__PURE__ */ e.createElement(h, { className: `${b}__heading pds-ts-xl` }, a),
|
|
9903
9782
|
c && /* @__PURE__ */ e.createElement("div", { className: `${b}__summary` }, /* @__PURE__ */ e.createElement("p", null, c)),
|
|
9904
9783
|
u && (s == "border" || s == "clean") && /* @__PURE__ */ e.createElement(
|
|
9905
|
-
|
|
9784
|
+
u1,
|
|
9906
9785
|
{
|
|
9907
9786
|
linkContent: u,
|
|
9908
9787
|
size: "sm",
|
|
@@ -9911,7 +9790,7 @@ const ws = (d) => {
|
|
|
9911
9790
|
)
|
|
9912
9791
|
), /* @__PURE__ */ e.createElement("span", { className: `${b}__separator` }));
|
|
9913
9792
|
};
|
|
9914
|
-
|
|
9793
|
+
Ns.propTypes = {
|
|
9915
9794
|
/**
|
|
9916
9795
|
* Visual display type.
|
|
9917
9796
|
*/
|
|
@@ -9941,7 +9820,7 @@ ws.propTypes = {
|
|
|
9941
9820
|
*/
|
|
9942
9821
|
className: t.string
|
|
9943
9822
|
};
|
|
9944
|
-
const
|
|
9823
|
+
const pn = (c) => {
|
|
9945
9824
|
var l = c, {
|
|
9946
9825
|
displayType: s = "border",
|
|
9947
9826
|
headingLevel: n = "h2",
|
|
@@ -9960,7 +9839,7 @@ const hn = (c) => {
|
|
|
9960
9839
|
className: [m, d, r].join(" ").trim()
|
|
9961
9840
|
}, u),
|
|
9962
9841
|
a.map((o, b) => /* @__PURE__ */ e.createElement(
|
|
9963
|
-
|
|
9842
|
+
Ns,
|
|
9964
9843
|
{
|
|
9965
9844
|
key: b,
|
|
9966
9845
|
displayType: s,
|
|
@@ -9974,7 +9853,7 @@ const hn = (c) => {
|
|
|
9974
9853
|
))
|
|
9975
9854
|
);
|
|
9976
9855
|
};
|
|
9977
|
-
|
|
9856
|
+
pn.propTypes = {
|
|
9978
9857
|
/**
|
|
9979
9858
|
* Visual display type
|
|
9980
9859
|
*/
|
|
@@ -10020,7 +9899,7 @@ const Mt = {
|
|
|
10020
9899
|
success: "check",
|
|
10021
9900
|
warning: "triangleExclamation",
|
|
10022
9901
|
critical: "diamondExclamation"
|
|
10023
|
-
},
|
|
9902
|
+
}, ws = ({
|
|
10024
9903
|
children: s,
|
|
10025
9904
|
id: n,
|
|
10026
9905
|
type: a = "info",
|
|
@@ -10059,7 +9938,7 @@ const Mt = {
|
|
|
10059
9938
|
/* @__PURE__ */ e.createElement("div", { className: `${c}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), s)
|
|
10060
9939
|
);
|
|
10061
9940
|
};
|
|
10062
|
-
|
|
9941
|
+
ws.propTypes = {
|
|
10063
9942
|
/**
|
|
10064
9943
|
* Toast message content.
|
|
10065
9944
|
*/
|
|
@@ -10087,7 +9966,7 @@ ks.propTypes = {
|
|
|
10087
9966
|
*/
|
|
10088
9967
|
className: t.string
|
|
10089
9968
|
};
|
|
10090
|
-
const
|
|
9969
|
+
const gn = ({
|
|
10091
9970
|
autoCloseDuration: s = 5e3,
|
|
10092
9971
|
limit: n = 5,
|
|
10093
9972
|
position: a = "bottom-right",
|
|
@@ -10095,7 +9974,7 @@ const fn = ({
|
|
|
10095
9974
|
}) => {
|
|
10096
9975
|
const c = ["pds-toaster", r].join(" ").trim().replace(/\s+/g, " ");
|
|
10097
9976
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10098
|
-
|
|
9977
|
+
Zs,
|
|
10099
9978
|
{
|
|
10100
9979
|
className: c,
|
|
10101
9980
|
autoClose: s,
|
|
@@ -10105,11 +9984,11 @@ const fn = ({
|
|
|
10105
9984
|
newestOnTop: !0,
|
|
10106
9985
|
position: a,
|
|
10107
9986
|
role: "status",
|
|
10108
|
-
transition:
|
|
9987
|
+
transition: Us
|
|
10109
9988
|
}
|
|
10110
9989
|
));
|
|
10111
9990
|
};
|
|
10112
|
-
|
|
9991
|
+
gn.propTypes = {
|
|
10113
9992
|
/**
|
|
10114
9993
|
* Duration in milliseconds before the toast will auto-close.
|
|
10115
9994
|
*/
|
|
@@ -10127,7 +10006,7 @@ fn.propTypes = {
|
|
|
10127
10006
|
*/
|
|
10128
10007
|
className: t.string
|
|
10129
10008
|
};
|
|
10130
|
-
const
|
|
10009
|
+
const hn = (m) => {
|
|
10131
10010
|
var d = m, {
|
|
10132
10011
|
disabled: s = !1,
|
|
10133
10012
|
id: n,
|
|
@@ -10143,7 +10022,7 @@ const bn = (m) => {
|
|
|
10143
10022
|
"onChange",
|
|
10144
10023
|
"options"
|
|
10145
10024
|
]);
|
|
10146
|
-
const o = "pds-toggle-button", b = "pds-is-disabled", p = X([o]), [h, v] =
|
|
10025
|
+
const o = "pds-toggle-button", b = "pds-is-disabled", p = X([o]), [h, v] = O(a), i = (g) => {
|
|
10147
10026
|
v(g.target.value), u && u(g.target.value);
|
|
10148
10027
|
};
|
|
10149
10028
|
if ((() => {
|
|
@@ -10179,7 +10058,7 @@ const bn = (m) => {
|
|
|
10179
10058
|
)))
|
|
10180
10059
|
);
|
|
10181
10060
|
};
|
|
10182
|
-
|
|
10061
|
+
hn.propTypes = {
|
|
10183
10062
|
/**
|
|
10184
10063
|
* Is the ToggleButton disabled?
|
|
10185
10064
|
*/
|
|
@@ -10221,7 +10100,7 @@ bn.propTypes = {
|
|
|
10221
10100
|
*/
|
|
10222
10101
|
className: t.string
|
|
10223
10102
|
};
|
|
10224
|
-
const
|
|
10103
|
+
const fn = (h) => {
|
|
10225
10104
|
var v = h, {
|
|
10226
10105
|
disabled: s = !1,
|
|
10227
10106
|
id: n,
|
|
@@ -10247,7 +10126,7 @@ const vn = (h) => {
|
|
|
10247
10126
|
"statusOffLabel",
|
|
10248
10127
|
"className"
|
|
10249
10128
|
]);
|
|
10250
|
-
const i = "pds-toggle-switch", [$, g] =
|
|
10129
|
+
const i = "pds-toggle-switch", [$, g] = O(!1), _ = (f) => {
|
|
10251
10130
|
g(!$), c && c(f.target);
|
|
10252
10131
|
};
|
|
10253
10132
|
let C = $ === !0 ? d : o, E;
|
|
@@ -10312,7 +10191,7 @@ const vn = (h) => {
|
|
|
10312
10191
|
)
|
|
10313
10192
|
);
|
|
10314
10193
|
};
|
|
10315
|
-
|
|
10194
|
+
fn.propTypes = {
|
|
10316
10195
|
/**
|
|
10317
10196
|
* Is the switch disabled?
|
|
10318
10197
|
*/
|
|
@@ -10358,7 +10237,7 @@ vn.propTypes = {
|
|
|
10358
10237
|
*/
|
|
10359
10238
|
className: t.string
|
|
10360
10239
|
};
|
|
10361
|
-
const
|
|
10240
|
+
const bn = (d) => {
|
|
10362
10241
|
var o = d, {
|
|
10363
10242
|
ariaLabel: s = "User menu",
|
|
10364
10243
|
menuItems: n,
|
|
@@ -10376,7 +10255,7 @@ const _n = (d) => {
|
|
|
10376
10255
|
"withinNavbar",
|
|
10377
10256
|
"className"
|
|
10378
10257
|
]);
|
|
10379
|
-
const [b, p] =
|
|
10258
|
+
const [b, p] = O(null), [h, v] = O(!1), i = X([]), $ = X([]);
|
|
10380
10259
|
let g = !1;
|
|
10381
10260
|
const _ = Ne(Pe);
|
|
10382
10261
|
_ && (g = _.isMobile);
|
|
@@ -10384,16 +10263,16 @@ const _n = (d) => {
|
|
|
10384
10263
|
open: h,
|
|
10385
10264
|
onOpenChange: v,
|
|
10386
10265
|
whileElementsMounted: qe
|
|
10387
|
-
}),
|
|
10388
|
-
listRef:
|
|
10266
|
+
}), z = et(I, { event: "mousedown" }), S = Ie(I), w = Se(I, { role: "menu" }), V = X([]), H = nt(I, {
|
|
10267
|
+
listRef: V,
|
|
10389
10268
|
activeIndex: b,
|
|
10390
10269
|
onNavigate: p,
|
|
10391
10270
|
loop: !0,
|
|
10392
10271
|
openOnArrowKeyDown: !0,
|
|
10393
10272
|
focusItemOnOpen: !1,
|
|
10394
10273
|
focusItemOnHover: !0
|
|
10395
|
-
}), { getReferenceProps:
|
|
10396
|
-
[
|
|
10274
|
+
}), { getReferenceProps: T, getFloatingProps: P, getItemProps: R } = Te(
|
|
10275
|
+
[S, w, z, H]
|
|
10397
10276
|
), { isMounted: j, styles: A } = Ae(I, {
|
|
10398
10277
|
duration: {
|
|
10399
10278
|
open: 300,
|
|
@@ -10426,7 +10305,7 @@ const _n = (d) => {
|
|
|
10426
10305
|
uniqueId: a,
|
|
10427
10306
|
className: `${E}__avatar`
|
|
10428
10307
|
}
|
|
10429
|
-
),
|
|
10308
|
+
), L = /* @__PURE__ */ e.createElement(
|
|
10430
10309
|
q,
|
|
10431
10310
|
{
|
|
10432
10311
|
iconName: "angleDown",
|
|
@@ -10445,7 +10324,7 @@ const _n = (d) => {
|
|
|
10445
10324
|
disabled: ee.disabled,
|
|
10446
10325
|
tabIndex: b === de ? 0 : -1,
|
|
10447
10326
|
ref: (te) => {
|
|
10448
|
-
|
|
10327
|
+
V.current[de] = te;
|
|
10449
10328
|
}
|
|
10450
10329
|
}, R({ onClick: (te) => Z(te) })),
|
|
10451
10330
|
ee.iconName && /* @__PURE__ */ e.createElement(
|
|
@@ -10464,7 +10343,7 @@ const _n = (d) => {
|
|
|
10464
10343
|
className: `${E}__trigger`,
|
|
10465
10344
|
"aria-label": s,
|
|
10466
10345
|
ref: k.setReference
|
|
10467
|
-
},
|
|
10346
|
+
}, T()),
|
|
10468
10347
|
W
|
|
10469
10348
|
), j && /* @__PURE__ */ e.createElement(
|
|
10470
10349
|
"div",
|
|
@@ -10492,7 +10371,7 @@ const _n = (d) => {
|
|
|
10492
10371
|
onClick: pe
|
|
10493
10372
|
},
|
|
10494
10373
|
/* @__PURE__ */ e.createElement("span", { className: `${E}__toggle-left` }, W, u || a),
|
|
10495
|
-
|
|
10374
|
+
L
|
|
10496
10375
|
), /* @__PURE__ */ e.createElement("div", { className: `${E}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
10497
10376
|
"ul",
|
|
10498
10377
|
{
|
|
@@ -10511,7 +10390,7 @@ const _n = (d) => {
|
|
|
10511
10390
|
C ? re : Y
|
|
10512
10391
|
);
|
|
10513
10392
|
};
|
|
10514
|
-
|
|
10393
|
+
bn.propTypes = {
|
|
10515
10394
|
/**
|
|
10516
10395
|
* Aria label for the user menu.
|
|
10517
10396
|
*/
|
|
@@ -10566,7 +10445,7 @@ _n.propTypes = {
|
|
|
10566
10445
|
};
|
|
10567
10446
|
const An = () => {
|
|
10568
10447
|
const s = (a, r, u = {}) => {
|
|
10569
|
-
const c = /* @__PURE__ */ e.createElement(
|
|
10448
|
+
const c = /* @__PURE__ */ e.createElement(ws, { type: a }, r);
|
|
10570
10449
|
let l = y({}, u);
|
|
10571
10450
|
return (a === "critical" || a === "warning") && (l = $e(y({}, l), {
|
|
10572
10451
|
autoClose: !1,
|
|
@@ -10575,19 +10454,19 @@ const An = () => {
|
|
|
10575
10454
|
autoClose: !1,
|
|
10576
10455
|
closeButton: !1,
|
|
10577
10456
|
closeOnClick: !1
|
|
10578
|
-
})),
|
|
10579
|
-
}, n =
|
|
10457
|
+
})), Bt(c, l);
|
|
10458
|
+
}, n = Gs({
|
|
10580
10459
|
collapse: !1,
|
|
10581
10460
|
enter: "pds-toast--bounceInPlace",
|
|
10582
10461
|
exit: "pds-toast--slideOut"
|
|
10583
10462
|
});
|
|
10584
|
-
return [s,
|
|
10585
|
-
},
|
|
10463
|
+
return [s, Bt, n];
|
|
10464
|
+
}, vn = {
|
|
10586
10465
|
silver: "Silver",
|
|
10587
10466
|
gold: "Gold",
|
|
10588
10467
|
platinum: "Platinum",
|
|
10589
10468
|
diamond: "Diamond"
|
|
10590
|
-
},
|
|
10469
|
+
}, _n = (p) => {
|
|
10591
10470
|
var h = p, {
|
|
10592
10471
|
ariaLabel: s = "Workspace selector menu",
|
|
10593
10472
|
createWorkspaceLink: n,
|
|
@@ -10611,11 +10490,11 @@ const An = () => {
|
|
|
10611
10490
|
"workspaceList",
|
|
10612
10491
|
"className"
|
|
10613
10492
|
]);
|
|
10614
|
-
const [v, i] =
|
|
10493
|
+
const [v, i] = O(!1), [$, g] = O(null), [_, C] = O(d), E = X([]), f = X(null), N = d.length >= c;
|
|
10615
10494
|
let k = !1;
|
|
10616
10495
|
const x = Ne(Pe);
|
|
10617
10496
|
x && (k = x.isMobile);
|
|
10618
|
-
const I = m && k,
|
|
10497
|
+
const I = m && k, z = "pds-workspace-selector", S = I ? `${z}--isMobile` : null, w = `${z}__menu`, V = N ? `${w}--scroll` : null, { refs: H, floatingStyles: T, context: P } = Ve({
|
|
10619
10498
|
open: v,
|
|
10620
10499
|
onOpenChange: i,
|
|
10621
10500
|
whileElementsMounted: qe
|
|
@@ -10627,7 +10506,7 @@ const An = () => {
|
|
|
10627
10506
|
openOnArrowKeyDown: !0,
|
|
10628
10507
|
focusItemOnHover: !0,
|
|
10629
10508
|
focusItemOnOpen: !1
|
|
10630
|
-
}), { getReferenceProps: Z, getFloatingProps: W, getItemProps:
|
|
10509
|
+
}), { getReferenceProps: Z, getFloatingProps: W, getItemProps: L } = Te(
|
|
10631
10510
|
[j, A, R, F]
|
|
10632
10511
|
), { isMounted: B, styles: U } = Ae(P, {
|
|
10633
10512
|
duration: {
|
|
@@ -10658,32 +10537,32 @@ const An = () => {
|
|
|
10658
10537
|
}, [d]);
|
|
10659
10538
|
const re = (K) => {
|
|
10660
10539
|
K.preventDefault(), K.key === "Enter" && E.current[$].querySelector("a").click(), K.key === "Tab" && (K.shiftKey ? N ? document.getElementById("workspace-filter").focus() : i(!1) : n ? f.current.querySelector("a").focus() : i(!1));
|
|
10661
|
-
}, ee = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10540
|
+
}, ee = /* @__PURE__ */ e.createElement("div", { className: `${z}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
10662
10541
|
Xe,
|
|
10663
10542
|
{
|
|
10664
10543
|
size: "sm",
|
|
10665
10544
|
uniqueId: Y.workspaceId,
|
|
10666
10545
|
imageSrc: Y.imageSrc,
|
|
10667
|
-
className: `${
|
|
10546
|
+
className: `${z}__avatar`
|
|
10668
10547
|
}
|
|
10669
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
10548
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${z}__name` }, Y.displayName), Y.planTier && /* @__PURE__ */ e.createElement(
|
|
10670
10549
|
pt,
|
|
10671
10550
|
{
|
|
10672
10551
|
size: "sm",
|
|
10673
10552
|
color: Y.planTier,
|
|
10674
|
-
label:
|
|
10553
|
+
label: vn[Y.planTier]
|
|
10675
10554
|
}
|
|
10676
10555
|
)), de = /* @__PURE__ */ e.createElement(
|
|
10677
10556
|
q,
|
|
10678
10557
|
{
|
|
10679
10558
|
iconName: "angleDown",
|
|
10680
10559
|
iconSize: "md",
|
|
10681
|
-
className: `${
|
|
10560
|
+
className: `${z}__trigger-icon`
|
|
10682
10561
|
}
|
|
10683
|
-
), me = N && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10684
|
-
|
|
10562
|
+
), me = N && /* @__PURE__ */ e.createElement("div", { className: `${z}__filter` }, /* @__PURE__ */ e.createElement(
|
|
10563
|
+
bs,
|
|
10685
10564
|
{
|
|
10686
|
-
className: `${
|
|
10565
|
+
className: `${z}__filter-input`,
|
|
10687
10566
|
hasClearButton: !0,
|
|
10688
10567
|
id: "workspace-filter",
|
|
10689
10568
|
label: r,
|
|
@@ -10694,7 +10573,7 @@ const An = () => {
|
|
|
10694
10573
|
}
|
|
10695
10574
|
)), te = _.map(
|
|
10696
10575
|
(K, ue) => {
|
|
10697
|
-
const Ce = `${
|
|
10576
|
+
const Ce = `${z}__item`, ze = K.isActive ? `${Ce}--active` : null, Q = K.isUnprivileged ? `${Ce}--unprivileged` : null, se = /* @__PURE__ */ e.createElement(q, { iconName: "check", className: `${z}__active-icon` }), ke = K.workspaceId, ye = K.workspaceLink.type, we = K.isUnprivileged ? null : (he) => {
|
|
10698
10577
|
E.current[ue] = he;
|
|
10699
10578
|
};
|
|
10700
10579
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -10704,33 +10583,33 @@ const An = () => {
|
|
|
10704
10583
|
id: ke,
|
|
10705
10584
|
className: [
|
|
10706
10585
|
Ce,
|
|
10707
|
-
|
|
10586
|
+
ze,
|
|
10708
10587
|
Q
|
|
10709
10588
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
10710
10589
|
role: "menuitem",
|
|
10711
10590
|
tabIndex: $ === ue ? 0 : -1,
|
|
10712
10591
|
ref: we,
|
|
10713
10592
|
onKeyDown: re
|
|
10714
|
-
},
|
|
10593
|
+
}, L()),
|
|
10715
10594
|
/* @__PURE__ */ e.createElement(
|
|
10716
10595
|
ye,
|
|
10717
10596
|
$e(y({}, K.workspaceLink.props), {
|
|
10718
10597
|
onClick: () => i(!1)
|
|
10719
10598
|
}),
|
|
10720
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10599
|
+
/* @__PURE__ */ e.createElement("div", { className: `${z}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
10721
10600
|
Xe,
|
|
10722
10601
|
{
|
|
10723
10602
|
size: "sm",
|
|
10724
10603
|
uniqueId: K.workspaceId,
|
|
10725
10604
|
imageSrc: K.imageSrc,
|
|
10726
|
-
className: `${
|
|
10605
|
+
className: `${z}__list-avatar`
|
|
10727
10606
|
}
|
|
10728
10607
|
), K.displayName),
|
|
10729
10608
|
K.isActive && se
|
|
10730
10609
|
)
|
|
10731
10610
|
);
|
|
10732
10611
|
}
|
|
10733
|
-
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10612
|
+
), fe = n && /* @__PURE__ */ e.createElement("div", { className: `${z}__create-link`, ref: f }, /* @__PURE__ */ e.createElement(
|
|
10734
10613
|
We,
|
|
10735
10614
|
{
|
|
10736
10615
|
displayType: "icon-end",
|
|
@@ -10742,7 +10621,7 @@ const An = () => {
|
|
|
10742
10621
|
)), be = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10743
10622
|
"button",
|
|
10744
10623
|
y({
|
|
10745
|
-
className: `${
|
|
10624
|
+
className: `${z}__trigger`,
|
|
10746
10625
|
"aria-label": s,
|
|
10747
10626
|
ref: H.setReference
|
|
10748
10627
|
}, Z()),
|
|
@@ -10751,56 +10630,56 @@ const An = () => {
|
|
|
10751
10630
|
), B && /* @__PURE__ */ e.createElement(
|
|
10752
10631
|
"div",
|
|
10753
10632
|
y({
|
|
10754
|
-
className: `${
|
|
10633
|
+
className: `${z}__dropdown`,
|
|
10755
10634
|
ref: H.setFloating,
|
|
10756
10635
|
style: {
|
|
10757
|
-
floatingStyles:
|
|
10636
|
+
floatingStyles: T,
|
|
10758
10637
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
10759
10638
|
}
|
|
10760
10639
|
}, W()),
|
|
10761
10640
|
/* @__PURE__ */ e.createElement("div", { style: y({}, U) }, me, /* @__PURE__ */ e.createElement(
|
|
10762
10641
|
"ul",
|
|
10763
10642
|
{
|
|
10764
|
-
className: [w,
|
|
10643
|
+
className: [w, V].join(" ").trim().replace(/\s+/g, " "),
|
|
10765
10644
|
role: "menu"
|
|
10766
10645
|
},
|
|
10767
|
-
/* @__PURE__ */ e.createElement("li", { className: `${
|
|
10768
|
-
te.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${
|
|
10646
|
+
/* @__PURE__ */ e.createElement("li", { className: `${z}__item-heading`, role: "presentation" }, u),
|
|
10647
|
+
te.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${z}__no-results` }, l) : te
|
|
10769
10648
|
), fe)
|
|
10770
10649
|
)), oe = (K) => {
|
|
10771
10650
|
const ue = K.target;
|
|
10772
|
-
ue.classList.toggle(`${
|
|
10651
|
+
ue.classList.toggle(`${z}__toggle--expanded`), ue.setAttribute(
|
|
10773
10652
|
"aria-expanded",
|
|
10774
10653
|
ue.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
10775
|
-
), ue.nextElementSibling.classList.toggle(`${
|
|
10654
|
+
), ue.nextElementSibling.classList.toggle(`${z}__mobile-menu--expanded`);
|
|
10776
10655
|
}, J = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
10777
10656
|
"button",
|
|
10778
10657
|
{
|
|
10779
|
-
className: `${
|
|
10658
|
+
className: `${z}__toggle`,
|
|
10780
10659
|
"aria-expanded": !1,
|
|
10781
10660
|
"aria-label": s,
|
|
10782
10661
|
onClick: oe
|
|
10783
10662
|
},
|
|
10784
10663
|
ee,
|
|
10785
10664
|
de
|
|
10786
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10665
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${z}__mobile-menu` }, me, /* @__PURE__ */ e.createElement(
|
|
10787
10666
|
"ul",
|
|
10788
10667
|
{
|
|
10789
10668
|
className: [w, `${w}--isMobile`].join(" ").trim(),
|
|
10790
10669
|
role: "menu"
|
|
10791
10670
|
},
|
|
10792
|
-
/* @__PURE__ */ e.createElement("li", { className: `${
|
|
10793
|
-
te.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${
|
|
10671
|
+
/* @__PURE__ */ e.createElement("li", { className: `${z}__item-heading`, role: "presentation" }, u),
|
|
10672
|
+
te.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${z}__no-results` }, l) : te
|
|
10794
10673
|
), fe));
|
|
10795
10674
|
return /* @__PURE__ */ e.createElement(
|
|
10796
10675
|
"span",
|
|
10797
10676
|
y({
|
|
10798
|
-
className: [
|
|
10677
|
+
className: [z, S, o].join(" ").trim().replace(/\s+/g, " ")
|
|
10799
10678
|
}, b),
|
|
10800
10679
|
I ? J : be
|
|
10801
10680
|
);
|
|
10802
10681
|
};
|
|
10803
|
-
|
|
10682
|
+
_n.propTypes = {
|
|
10804
10683
|
/**
|
|
10805
10684
|
* Aria label for the workspace selector menu.
|
|
10806
10685
|
*/
|
|
@@ -10873,7 +10752,7 @@ Cn.propTypes = {
|
|
|
10873
10752
|
*/
|
|
10874
10753
|
className: t.string
|
|
10875
10754
|
};
|
|
10876
|
-
const
|
|
10755
|
+
const En = (b) => {
|
|
10877
10756
|
var p = b, {
|
|
10878
10757
|
alignContent: s,
|
|
10879
10758
|
alignItems: n,
|
|
@@ -10914,7 +10793,7 @@ const $n = (b) => {
|
|
|
10914
10793
|
m
|
|
10915
10794
|
);
|
|
10916
10795
|
};
|
|
10917
|
-
|
|
10796
|
+
En.propTypes = {
|
|
10918
10797
|
/**
|
|
10919
10798
|
* Align content
|
|
10920
10799
|
*/
|
|
@@ -10966,7 +10845,7 @@ $n.propTypes = {
|
|
|
10966
10845
|
const Pn = ({
|
|
10967
10846
|
children: s,
|
|
10968
10847
|
mobileMenuMaxWidth: n = 640
|
|
10969
|
-
}) => /* @__PURE__ */ e.createElement(g1, { mobileMenuMaxWidth: n }, s),
|
|
10848
|
+
}) => /* @__PURE__ */ e.createElement(g1, { mobileMenuMaxWidth: n }, s), Cn = (m) => {
|
|
10970
10849
|
var d = m, {
|
|
10971
10850
|
children: s,
|
|
10972
10851
|
gridGap: n = "standard",
|
|
@@ -10982,7 +10861,7 @@ const Pn = ({
|
|
|
10982
10861
|
"sidebarWidth",
|
|
10983
10862
|
"className"
|
|
10984
10863
|
]);
|
|
10985
|
-
const [o, b] =
|
|
10864
|
+
const [o, b] = O(1025);
|
|
10986
10865
|
le(() => (b(window.innerWidth), window.addEventListener("resize", i), () => {
|
|
10987
10866
|
window.removeEventListener("resize", i);
|
|
10988
10867
|
}), []);
|
|
@@ -11019,7 +10898,7 @@ const Pn = ({
|
|
|
11019
10898
|
N
|
|
11020
10899
|
);
|
|
11021
10900
|
};
|
|
11022
|
-
|
|
10901
|
+
Cn.propTypes = {
|
|
11023
10902
|
/**
|
|
11024
10903
|
* Layout content.
|
|
11025
10904
|
*/
|
|
@@ -11045,7 +10924,7 @@ yn.propTypes = {
|
|
|
11045
10924
|
*/
|
|
11046
10925
|
className: t.string
|
|
11047
10926
|
};
|
|
11048
|
-
const
|
|
10927
|
+
const $n = (r) => {
|
|
11049
10928
|
var u = r, { children: s, className: n } = u, a = M(u, ["children", "className"]);
|
|
11050
10929
|
const c = {};
|
|
11051
10930
|
e.Children.forEach(s, (h) => {
|
|
@@ -11074,7 +10953,7 @@ const Nn = (r) => {
|
|
|
11074
10953
|
m && /* @__PURE__ */ e.createElement("div", { className: `${p}__form-container` }, m)
|
|
11075
10954
|
);
|
|
11076
10955
|
};
|
|
11077
|
-
|
|
10956
|
+
$n.propTypes = {
|
|
11078
10957
|
/**
|
|
11079
10958
|
* Layout content.
|
|
11080
10959
|
*/
|
|
@@ -11084,7 +10963,7 @@ Nn.propTypes = {
|
|
|
11084
10963
|
*/
|
|
11085
10964
|
className: t.string
|
|
11086
10965
|
};
|
|
11087
|
-
const
|
|
10966
|
+
const yn = (u) => {
|
|
11088
10967
|
var c = u, {
|
|
11089
10968
|
children: s,
|
|
11090
10969
|
gridGap: n = "standard",
|
|
@@ -11119,7 +10998,7 @@ const wn = (u) => {
|
|
|
11119
10998
|
))
|
|
11120
10999
|
);
|
|
11121
11000
|
};
|
|
11122
|
-
|
|
11001
|
+
yn.propTypes = {
|
|
11123
11002
|
/**
|
|
11124
11003
|
* Item content.
|
|
11125
11004
|
*/
|
|
@@ -11133,7 +11012,7 @@ wn.propTypes = {
|
|
|
11133
11012
|
*/
|
|
11134
11013
|
className: t.string
|
|
11135
11014
|
};
|
|
11136
|
-
const
|
|
11015
|
+
const Nn = (c) => {
|
|
11137
11016
|
var l = c, {
|
|
11138
11017
|
children: s,
|
|
11139
11018
|
gridGap: n = "standard",
|
|
@@ -11172,7 +11051,7 @@ const kn = (c) => {
|
|
|
11172
11051
|
/* @__PURE__ */ e.createElement("div", { className: i.join(" ").trim() }, _)
|
|
11173
11052
|
);
|
|
11174
11053
|
};
|
|
11175
|
-
|
|
11054
|
+
Nn.propTypes = {
|
|
11176
11055
|
/**
|
|
11177
11056
|
* Item content.
|
|
11178
11057
|
*/
|
|
@@ -11191,94 +11070,94 @@ kn.propTypes = {
|
|
|
11191
11070
|
className: t.string
|
|
11192
11071
|
};
|
|
11193
11072
|
export {
|
|
11194
|
-
|
|
11073
|
+
Js as AnimatedButton,
|
|
11195
11074
|
Xe as Avatar,
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11075
|
+
t1 as AvatarTileList,
|
|
11076
|
+
s1 as Banner,
|
|
11077
|
+
r1 as Breadcrumbs,
|
|
11199
11078
|
Qe as Button,
|
|
11200
11079
|
We as ButtonLink,
|
|
11201
|
-
|
|
11080
|
+
u1 as CTALink,
|
|
11202
11081
|
p1 as CTASlice,
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11082
|
+
Tn as Callout,
|
|
11083
|
+
i1 as Card,
|
|
11084
|
+
o1 as CardSelectGroup,
|
|
11206
11085
|
ms as Checkbox,
|
|
11207
|
-
|
|
11086
|
+
d1 as CheckboxGroup,
|
|
11208
11087
|
us as Combobox,
|
|
11209
|
-
|
|
11088
|
+
Ut as ComparisonList,
|
|
11210
11089
|
Ye as Container,
|
|
11211
|
-
|
|
11090
|
+
On as DashboardLayout,
|
|
11212
11091
|
f1 as DashboardNav,
|
|
11213
11092
|
b1 as DashboardSearch,
|
|
11214
11093
|
ft as DropdownMenu,
|
|
11215
11094
|
v1 as ExpansionPanel,
|
|
11216
11095
|
_1 as ExpansionPanelGroup,
|
|
11217
|
-
|
|
11218
|
-
|
|
11096
|
+
En as FlexContainer,
|
|
11097
|
+
fs as FooterHeading,
|
|
11219
11098
|
E1 as FooterLinks,
|
|
11220
11099
|
Pn as GlobalWrapper,
|
|
11221
11100
|
C1 as Heading,
|
|
11222
11101
|
q as Icon,
|
|
11223
11102
|
ut as IconButton,
|
|
11224
11103
|
pt as IndicatorBadge,
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11104
|
+
Rn as InlineMessage,
|
|
11105
|
+
y1 as InputFormatted,
|
|
11106
|
+
N1 as InputGroup,
|
|
11107
|
+
w1 as InputObscured,
|
|
11108
|
+
bs as InputText,
|
|
11230
11109
|
Oe as InputWrapper,
|
|
11231
|
-
|
|
11232
|
-
|
|
11110
|
+
k1 as LinksCard,
|
|
11111
|
+
vs as MenuButton,
|
|
11233
11112
|
z1 as Modal,
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11246
|
-
|
|
11113
|
+
M1 as NavMenu,
|
|
11114
|
+
L1 as Navbar,
|
|
11115
|
+
x1 as NewSiteCard,
|
|
11116
|
+
q1 as Pager,
|
|
11117
|
+
A1 as Panel,
|
|
11118
|
+
Rt as PantheonLogo,
|
|
11119
|
+
Es as PlatformIcon,
|
|
11120
|
+
j1 as Popover,
|
|
11121
|
+
B1 as PricingCard,
|
|
11122
|
+
F1 as ProgressBar,
|
|
11123
|
+
ys as ProgressRing,
|
|
11124
|
+
G1 as PullQuote,
|
|
11125
|
+
K1 as RadioGroup,
|
|
11247
11126
|
Pe as ResponsiveContext,
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11127
|
+
Dn as SectionMessage,
|
|
11128
|
+
qt as Select,
|
|
11129
|
+
Y1 as SideNav,
|
|
11130
|
+
X1 as SideNavCompact,
|
|
11131
|
+
Cn as SidebarLayout,
|
|
11132
|
+
Q1 as SiteCard,
|
|
11133
|
+
J1 as SiteFooter,
|
|
11134
|
+
ps as Skiplink,
|
|
11135
|
+
en as SocialLinks,
|
|
11257
11136
|
lt as Spinner,
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11137
|
+
tn as SplitButton,
|
|
11138
|
+
sn as StatsTileList,
|
|
11139
|
+
Dt as StatusBadge,
|
|
11140
|
+
nn as StatusIndicator,
|
|
11141
|
+
an as Stepper,
|
|
11142
|
+
$n as StepperLayout,
|
|
11143
|
+
ln as Table,
|
|
11144
|
+
rn as TableOfContents,
|
|
11145
|
+
cn as Tabs,
|
|
11146
|
+
mn as Tag,
|
|
11268
11147
|
qn as Tally,
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11148
|
+
un as Textarea,
|
|
11149
|
+
yn as ThreeItemLayout,
|
|
11150
|
+
Ns as Tile,
|
|
11151
|
+
pn as TileGrid,
|
|
11152
|
+
ws as Toast,
|
|
11153
|
+
gn as Toaster,
|
|
11154
|
+
hn as ToggleButton,
|
|
11155
|
+
fn as ToggleSwitch,
|
|
11277
11156
|
It as Tooltip,
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11157
|
+
Nn as TwoItemLayout,
|
|
11158
|
+
bn as UserMenu,
|
|
11159
|
+
_n as WorkspaceSelector,
|
|
11160
|
+
Ft as iconList,
|
|
11282
11161
|
An as useToast
|
|
11283
11162
|
};
|
|
11284
11163
|
//# sourceMappingURL=index.js.map
|