@pantheon-systems/pds-toolkit-react 1.0.0-dev.176 → 1.0.0-dev.178
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_dist/index.js +643 -644
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './index.css';var Gs = Object.defineProperty, Ks = Object.defineProperties;
|
|
2
2
|
var Ys = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var _t = Object.getOwnPropertySymbols;
|
|
4
4
|
var ts = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var es = (t, n, a) => n in t ? Gs(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a, y = (t, n) => {
|
|
6
6
|
for (var a in n || (n = {}))
|
|
7
7
|
ts.call(n, a) && es(t, a, n[a]);
|
|
8
|
-
if (
|
|
9
|
-
for (var a of
|
|
8
|
+
if (_t)
|
|
9
|
+
for (var a of _t(n))
|
|
10
10
|
ss.call(n, a) && es(t, a, n[a]);
|
|
11
11
|
return t;
|
|
12
12
|
}, fe = (t, n) => Ks(t, Ys(n));
|
|
@@ -14,19 +14,19 @@ var S = (t, n) => {
|
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var c in t)
|
|
16
16
|
ts.call(t, c) && n.indexOf(c) < 0 && (a[c] = t[c]);
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var c of
|
|
17
|
+
if (t != null && _t)
|
|
18
|
+
for (var c of _t(t))
|
|
19
19
|
n.indexOf(c) < 0 && ss.call(t, c) && (a[c] = t[c]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
22
|
import e, { createContext as yt, Children as Xs, isValidElement as Fe, useState as R, useContext as we, forwardRef as Pe, cloneElement as Ke, useEffect as ie, useRef as se, useLayoutEffect as Qs, useCallback as Kt, createRef as Js } from "react";
|
|
23
23
|
import s from "prop-types";
|
|
24
24
|
import { NavLink as hs, MemoryRouter as e1 } from "react-router-dom";
|
|
25
|
-
import { useFloating as Ie, offset as wt, flip as Nt, shift as kt, autoUpdate as qe, useHover as vt, useFocus as gs, useDismiss as Se, useRole as Te, useInteractions as Oe, useId as fs, useListNavigation as pt, useTransitionStyles as Qe, useClick as Je, safePolygon as bs, FloatingOverlay as t1, FloatingFocusManager as
|
|
25
|
+
import { useFloating as Ie, offset as wt, flip as Nt, shift as kt, autoUpdate as qe, useHover as vt, useFocus as gs, useDismiss as Se, useRole as Te, useInteractions as Oe, useId as fs, useListNavigation as pt, useTransitionStyles as Qe, useClick as Je, safePolygon as bs, FloatingOverlay as t1, FloatingFocusManager as Es, arrow as s1, FloatingArrow as n1 } from "@floating-ui/react";
|
|
26
26
|
import { useHotkeys as a1 } from "react-hotkeys-hook";
|
|
27
27
|
import { useMeasure as Ht } from "@reactuses/core";
|
|
28
28
|
import { useFloating as l1, flip as c1 } from "@floating-ui/react-dom";
|
|
29
|
-
import
|
|
29
|
+
import _s from "hash-sum";
|
|
30
30
|
import { ToastContainer as r1, Slide as o1, cssTransition as i1, toast as ns } from "react-toastify";
|
|
31
31
|
import d1 from "focus-trap-react";
|
|
32
32
|
const m1 = (r) => {
|
|
@@ -52,7 +52,7 @@ const m1 = (r) => {
|
|
|
52
52
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
53
53
|
}, c),
|
|
54
54
|
n.map((d, h) => {
|
|
55
|
-
const u = d.linkContent ? d.linkContent.type : "div", p = d.linkContent.props.href ? "href" : "to", f = p === "href" ? d.linkContent.props.href : d.linkContent.props.to,
|
|
55
|
+
const u = d.linkContent ? d.linkContent.type : "div", p = d.linkContent.props.href ? "href" : "to", f = p === "href" ? d.linkContent.props.href : d.linkContent.props.to, _ = d.linkContent.props.target ? "target" : null;
|
|
56
56
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
57
57
|
u,
|
|
58
58
|
{
|
|
@@ -60,7 +60,7 @@ const m1 = (r) => {
|
|
|
60
60
|
className: `${i}__item`,
|
|
61
61
|
href: p === "href" ? f : null,
|
|
62
62
|
to: p === "to" ? f : null,
|
|
63
|
-
target:
|
|
63
|
+
target: _
|
|
64
64
|
},
|
|
65
65
|
/* @__PURE__ */ e.createElement(
|
|
66
66
|
"div",
|
|
@@ -774,16 +774,16 @@ const u1 = {
|
|
|
774
774
|
"zIndex",
|
|
775
775
|
"className"
|
|
776
776
|
]);
|
|
777
|
-
const [f,
|
|
777
|
+
const [f, _] = R(!1), $ = typeof n, g = "pds-tooltip", v = K([
|
|
778
778
|
`${g}__trigger-custom`,
|
|
779
779
|
$ === "string" ? `${g}__trigger-text` : null
|
|
780
|
-
]),
|
|
780
|
+
]), E = K([
|
|
781
781
|
`${g}__trigger`,
|
|
782
782
|
`${g}__trigger--${l}`
|
|
783
|
-
]), { refs: b, floatingStyles:
|
|
783
|
+
]), { refs: b, floatingStyles: C, context: w } = Ie({
|
|
784
784
|
placement: c,
|
|
785
785
|
open: f,
|
|
786
|
-
onOpenChange:
|
|
786
|
+
onOpenChange: _,
|
|
787
787
|
middleware: [wt(a), Nt(), kt()],
|
|
788
788
|
whileElementsMounted: qe
|
|
789
789
|
}), x = vt(w, {
|
|
@@ -799,7 +799,7 @@ const u1 = {
|
|
|
799
799
|
return /* @__PURE__ */ e.createElement("div", y({ className: K([g, d != null ? d : ""]) }, h), n ? /* @__PURE__ */ e.createElement(
|
|
800
800
|
"span",
|
|
801
801
|
y({
|
|
802
|
-
className:
|
|
802
|
+
className: v,
|
|
803
803
|
ref: b.setReference
|
|
804
804
|
}, L()),
|
|
805
805
|
n
|
|
@@ -807,7 +807,7 @@ const u1 = {
|
|
|
807
807
|
"button",
|
|
808
808
|
y({
|
|
809
809
|
"aria-label": r,
|
|
810
|
-
className:
|
|
810
|
+
className: E,
|
|
811
811
|
ref: b.setReference
|
|
812
812
|
}, L()),
|
|
813
813
|
/* @__PURE__ */ e.createElement(
|
|
@@ -823,7 +823,7 @@ const u1 = {
|
|
|
823
823
|
y({
|
|
824
824
|
className: `${g}__container`,
|
|
825
825
|
ref: b.setFloating,
|
|
826
|
-
style: fe(y({},
|
|
826
|
+
style: fe(y({}, C), { zIndex: m })
|
|
827
827
|
}, z()),
|
|
828
828
|
t
|
|
829
829
|
));
|
|
@@ -866,8 +866,8 @@ const h1 = (t) => /* @__PURE__ */ e.createElement(hs, { className: "pds-breadcru
|
|
|
866
866
|
key: `breadcrumb-${g}`
|
|
867
867
|
}
|
|
868
868
|
) : /* @__PURE__ */ e.createElement(Ge, { crumb: $, key: `breadcrumb-${g}` })
|
|
869
|
-
), p = m.length >= 6 ? u : h, f = m[m.length - 2],
|
|
870
|
-
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": t, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, n), p),
|
|
869
|
+
), p = m.length >= 6 ? u : h, f = m[m.length - 2], _ = h1(f);
|
|
870
|
+
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": t, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, n), p), _);
|
|
871
871
|
};
|
|
872
872
|
$s.propTypes = {
|
|
873
873
|
ariaLabel: s.string.isRequired,
|
|
@@ -1048,7 +1048,7 @@ const b1 = [
|
|
|
1048
1048
|
"wide",
|
|
1049
1049
|
"x-wide",
|
|
1050
1050
|
"full"
|
|
1051
|
-
]),
|
|
1051
|
+
]), E1 = s.exact({
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Label for a menu item
|
|
1054
1054
|
*/
|
|
@@ -1111,7 +1111,7 @@ const b1 = [
|
|
|
1111
1111
|
* Optional `data-testid` value for this item.
|
|
1112
1112
|
*/
|
|
1113
1113
|
testId: s.string
|
|
1114
|
-
}),
|
|
1114
|
+
}), _1 = s.exact({
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Is the item a node?
|
|
1117
1117
|
*/
|
|
@@ -1277,8 +1277,8 @@ const b1 = [
|
|
|
1277
1277
|
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${d}__label` }, a) : /* @__PURE__ */ e.createElement(Xt, { label: a })
|
|
1278
1278
|
);
|
|
1279
1279
|
}, Ye = Pe(
|
|
1280
|
-
(
|
|
1281
|
-
var $ =
|
|
1280
|
+
(_, f) => {
|
|
1281
|
+
var $ = _, {
|
|
1282
1282
|
ariaLabel: t,
|
|
1283
1283
|
buttonType: n = "button",
|
|
1284
1284
|
disabled: a = !1,
|
|
@@ -1305,7 +1305,7 @@ const b1 = [
|
|
|
1305
1305
|
"variant",
|
|
1306
1306
|
"className"
|
|
1307
1307
|
]);
|
|
1308
|
-
const g = "pds-button",
|
|
1308
|
+
const g = "pds-button", v = d !== "md" ? `${g}--${d}` : null, E = h !== "primary" ? `${g}--${h}` : null;
|
|
1309
1309
|
let b;
|
|
1310
1310
|
switch (d) {
|
|
1311
1311
|
case "sm":
|
|
@@ -1317,7 +1317,7 @@ const b1 = [
|
|
|
1317
1317
|
case "lg":
|
|
1318
1318
|
b = "lg";
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1320
|
+
const C = /* @__PURE__ */ e.createElement(
|
|
1321
1321
|
P,
|
|
1322
1322
|
{
|
|
1323
1323
|
key: "icon",
|
|
@@ -1327,11 +1327,11 @@ const b1 = [
|
|
|
1327
1327
|
}
|
|
1328
1328
|
);
|
|
1329
1329
|
let w = [i];
|
|
1330
|
-
return c == "icon-start" && r && w.unshift(
|
|
1330
|
+
return c == "icon-start" && r && w.unshift(C), c == "icon-end" && r && w.push(C), l && (w = [C], t = i), /* @__PURE__ */ e.createElement(
|
|
1331
1331
|
"button",
|
|
1332
1332
|
fe(y({}, p), {
|
|
1333
1333
|
type: n,
|
|
1334
|
-
className: [g,
|
|
1334
|
+
className: [g, v, E, u].join(" ").trim().replace(/\s+/g, " "),
|
|
1335
1335
|
disabled: a || o,
|
|
1336
1336
|
"aria-label": t,
|
|
1337
1337
|
onClick: m,
|
|
@@ -1420,7 +1420,7 @@ const rt = (m) => {
|
|
|
1420
1420
|
"variant",
|
|
1421
1421
|
"className"
|
|
1422
1422
|
]);
|
|
1423
|
-
const h = "pds-button-link", u = "pds-button", p = r !== "md" ? `${u}--${r}` : null, f = o !== "primary" ? `${u}--${o}` : null,
|
|
1423
|
+
const h = "pds-button-link", u = "pds-button", p = r !== "md" ? `${u}--${r}` : null, f = o !== "primary" ? `${u}--${o}` : null, _ = K([
|
|
1424
1424
|
u,
|
|
1425
1425
|
p,
|
|
1426
1426
|
f
|
|
@@ -1433,22 +1433,22 @@ const rt = (m) => {
|
|
|
1433
1433
|
key: a
|
|
1434
1434
|
}
|
|
1435
1435
|
);
|
|
1436
|
-
let
|
|
1437
|
-
n === "icon-start" && a ?
|
|
1438
|
-
const
|
|
1439
|
-
className:
|
|
1440
|
-
children:
|
|
1436
|
+
let v = [$];
|
|
1437
|
+
n === "icon-start" && a ? v = [g, $] : n === "icon-end" && a && (v = [$, g]);
|
|
1438
|
+
const E = Fe(c) ? Ke(c, {
|
|
1439
|
+
className: _,
|
|
1440
|
+
children: v
|
|
1441
1441
|
}) : null;
|
|
1442
1442
|
return t ? /* @__PURE__ */ e.createElement(
|
|
1443
1443
|
Ye,
|
|
1444
1444
|
{
|
|
1445
1445
|
className: K([h, l != null ? l : ""]),
|
|
1446
1446
|
disabled: !0,
|
|
1447
|
-
label:
|
|
1447
|
+
label: v,
|
|
1448
1448
|
size: r,
|
|
1449
1449
|
variant: o
|
|
1450
1450
|
}
|
|
1451
|
-
) : /* @__PURE__ */ e.createElement("span", y({ className: K([h, l != null ? l : ""]) }, i),
|
|
1451
|
+
) : /* @__PURE__ */ e.createElement("span", y({ className: K([h, l != null ? l : ""]) }, i), E);
|
|
1452
1452
|
}, $1 = (h) => {
|
|
1453
1453
|
var u = h, {
|
|
1454
1454
|
bodyText: t,
|
|
@@ -1471,34 +1471,34 @@ const rt = (m) => {
|
|
|
1471
1471
|
"secondaryLink",
|
|
1472
1472
|
"className"
|
|
1473
1473
|
]);
|
|
1474
|
-
const p = "pds-card", f = r ? `${p}--clickable` : null,
|
|
1474
|
+
const p = "pds-card", f = r ? `${p}--clickable` : null, _ = `${n}`, $ = l.type, g = c ? /* @__PURE__ */ e.createElement("div", { className: `${p}__image` }, !r && l ? /* @__PURE__ */ e.createElement(
|
|
1475
1475
|
$,
|
|
1476
1476
|
y({
|
|
1477
1477
|
tabIndex: "-1",
|
|
1478
1478
|
"aria-hidden": "true"
|
|
1479
1479
|
}, l.props),
|
|
1480
1480
|
/* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })
|
|
1481
|
-
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null,
|
|
1481
|
+
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null, v = /* @__PURE__ */ e.createElement("div", { className: `${p}__text-elements` }, o && /* @__PURE__ */ e.createElement(
|
|
1482
1482
|
"div",
|
|
1483
1483
|
{
|
|
1484
1484
|
className: `${p}__kicker pds-overline-text pds-overline-text--sm`
|
|
1485
1485
|
},
|
|
1486
1486
|
o
|
|
1487
|
-
), a && /* @__PURE__ */ e.createElement(
|
|
1487
|
+
), a && /* @__PURE__ */ e.createElement(_, { className: `${p}__heading` }, a), t && /* @__PURE__ */ e.createElement("div", { className: `${p}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, t)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${p}__links pds-button-group` }, /* @__PURE__ */ e.createElement(rt, { linkContent: l, variant: "primary" }), i && /* @__PURE__ */ e.createElement(rt, { linkContent: i, variant: "secondary" })));
|
|
1488
1488
|
return r && l ? /* @__PURE__ */ e.createElement(
|
|
1489
1489
|
$,
|
|
1490
1490
|
y({
|
|
1491
1491
|
className: [p, f, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1492
1492
|
}, l.props),
|
|
1493
1493
|
g,
|
|
1494
|
-
|
|
1494
|
+
v
|
|
1495
1495
|
) : /* @__PURE__ */ e.createElement(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
y({
|
|
1498
1498
|
className: [p, f, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1499
1499
|
}, d),
|
|
1500
1500
|
g,
|
|
1501
|
-
|
|
1501
|
+
v
|
|
1502
1502
|
);
|
|
1503
1503
|
};
|
|
1504
1504
|
$1.propTypes = {
|
|
@@ -1562,13 +1562,13 @@ const y1 = (d) => {
|
|
|
1562
1562
|
"secondaryLink",
|
|
1563
1563
|
"className"
|
|
1564
1564
|
]);
|
|
1565
|
-
const u = "pds-cta-slice", p = t && t !== "default" ? `${u}--${t}` : null, f = n && n !== "default" ? `pds-container pds-container--${n}` : "pds-container",
|
|
1565
|
+
const u = "pds-cta-slice", p = t && t !== "default" ? `${u}--${t}` : null, f = n && n !== "default" ? `pds-container pds-container--${n}` : "pds-container", _ = `${a}`;
|
|
1566
1566
|
return /* @__PURE__ */ e.createElement(
|
|
1567
1567
|
"div",
|
|
1568
1568
|
y({
|
|
1569
1569
|
className: [u, p, i].join(" ").trim().replace(/\s+/g, " ")
|
|
1570
1570
|
}, m),
|
|
1571
|
-
/* @__PURE__ */ e.createElement("div", { className: f }, c && /* @__PURE__ */ e.createElement(
|
|
1571
|
+
/* @__PURE__ */ e.createElement("div", { className: f }, c && /* @__PURE__ */ e.createElement(_, { className: `${u}__heading pds-ts-4xl` }, c), r && /* @__PURE__ */ e.createElement(
|
|
1572
1572
|
"div",
|
|
1573
1573
|
{
|
|
1574
1574
|
className: `${u}__lead-text pds-lead-text pds-lead-text--sm`
|
|
@@ -1700,36 +1700,36 @@ const je = yt(null), w1 = ({
|
|
|
1700
1700
|
"skiplinkText",
|
|
1701
1701
|
"className"
|
|
1702
1702
|
]);
|
|
1703
|
-
const [f,
|
|
1703
|
+
const [f, _] = R(
|
|
1704
1704
|
a
|
|
1705
|
-
), { isMobile: $ } = we(je), g = se(), [
|
|
1705
|
+
), { isMobile: $ } = we(je), g = se(), [v] = Ht(g), E = v.width, b = {
|
|
1706
1706
|
isSidebarExpanded: $ ? !0 : f,
|
|
1707
1707
|
logoLinkContent: r,
|
|
1708
|
-
navbarWidth:
|
|
1708
|
+
navbarWidth: E,
|
|
1709
1709
|
isAdmin: c
|
|
1710
|
-
},
|
|
1710
|
+
}, C = "pds-dashboard", w = $ ? `${C}--isMobile` : `${C}--notMobile`, x = $ ? null : f ? `${C}--sidebarExpanded` : `${C}--sidebarCollapsed`, H = f ? `${l}rem` : `${o}rem`, M = {
|
|
1711
1711
|
width: H,
|
|
1712
1712
|
transition: "width 200ms ease-in-out"
|
|
1713
1713
|
}, N = $ ? {} : {
|
|
1714
1714
|
width: `calc(100% - ${H})`,
|
|
1715
1715
|
transition: "width 200ms ease-in-out"
|
|
1716
1716
|
}, L = () => {
|
|
1717
|
-
|
|
1718
|
-
}, z = Yt(t), O = z.header, V = z.sidebar, k = z.main, I = z.footer, A = /* @__PURE__ */ e.createElement("aside", { className: `${
|
|
1717
|
+
_(!f);
|
|
1718
|
+
}, z = Yt(t), O = z.header, V = z.sidebar, k = z.main, I = z.footer, A = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar` }, V), B = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar`, style: M }, n && /* @__PURE__ */ e.createElement(
|
|
1719
1719
|
"button",
|
|
1720
1720
|
{
|
|
1721
|
-
className: `${
|
|
1721
|
+
className: `${C}__sidebar-toggle-button`,
|
|
1722
1722
|
onClick: L,
|
|
1723
1723
|
"aria-expanded": f,
|
|
1724
1724
|
"aria-label": i
|
|
1725
1725
|
},
|
|
1726
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
1727
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1726
|
+
/* @__PURE__ */ e.createElement("span", { className: `${C}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: "angleLeft", iconSize: "sm" }))
|
|
1727
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${C}__sidebar-inner` }, V));
|
|
1728
1728
|
return /* @__PURE__ */ e.createElement(xt.Provider, { value: b }, /* @__PURE__ */ e.createElement(N1, { text: m, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
1729
1729
|
"div",
|
|
1730
1730
|
y({
|
|
1731
1731
|
className: K([
|
|
1732
|
-
|
|
1732
|
+
C,
|
|
1733
1733
|
w,
|
|
1734
1734
|
x,
|
|
1735
1735
|
"pds-typography--product",
|
|
@@ -1742,11 +1742,11 @@ const je = yt(null), w1 = ({
|
|
|
1742
1742
|
"div",
|
|
1743
1743
|
{
|
|
1744
1744
|
ref: g,
|
|
1745
|
-
className: `${
|
|
1745
|
+
className: `${C}__container`,
|
|
1746
1746
|
style: N
|
|
1747
1747
|
},
|
|
1748
|
-
!$ && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1749
|
-
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${
|
|
1748
|
+
!$ && /* @__PURE__ */ e.createElement("div", { className: `${C}__header` }, O),
|
|
1749
|
+
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${C}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__main-inner` }, k), I && /* @__PURE__ */ e.createElement("footer", { className: `${C}__footer` }, I))
|
|
1750
1750
|
)
|
|
1751
1751
|
));
|
|
1752
1752
|
}, Qt = (i) => {
|
|
@@ -1845,13 +1845,13 @@ const k1 = Pe(
|
|
|
1845
1845
|
loadingText: u = "Loading results...",
|
|
1846
1846
|
message: p,
|
|
1847
1847
|
noResultsText: f = "No results found",
|
|
1848
|
-
onBlur:
|
|
1848
|
+
onBlur: _,
|
|
1849
1849
|
onClear: $,
|
|
1850
1850
|
onFocus: g,
|
|
1851
|
-
onOptionSelect:
|
|
1852
|
-
options:
|
|
1851
|
+
onOptionSelect: v,
|
|
1852
|
+
options: E,
|
|
1853
1853
|
placeholder: b,
|
|
1854
|
-
required:
|
|
1854
|
+
required: C = !1,
|
|
1855
1855
|
showLabel: w = !0,
|
|
1856
1856
|
validationMessage: x,
|
|
1857
1857
|
validationStatus: H,
|
|
@@ -1883,11 +1883,11 @@ const k1 = Pe(
|
|
|
1883
1883
|
"validationStatus",
|
|
1884
1884
|
"className"
|
|
1885
1885
|
]);
|
|
1886
|
-
const V = ht(i), k = "pds-combobox", I = n ? te.disabled : null, A =
|
|
1886
|
+
const V = ht(i), k = "pds-combobox", I = n ? te.disabled : null, A = C && !n ? te.required : null, B = H === "error" ? te.error : null, F = H === "success" ? te.success : null;
|
|
1887
1887
|
let j = null;
|
|
1888
1888
|
r && (j = "search"), H === "error" && (j = "error"), H === "success" && (j = "success");
|
|
1889
1889
|
const Z = x || p, G = (pe) => {
|
|
1890
|
-
const he =
|
|
1890
|
+
const he = E.find((xe) => xe.value === pe);
|
|
1891
1891
|
return he ? he.label : "";
|
|
1892
1892
|
}, [T, D] = R(!1), [W, U] = R(null), [ne, Q] = R(
|
|
1893
1893
|
t ? G(t) : ""
|
|
@@ -1895,14 +1895,14 @@ const k1 = Pe(
|
|
|
1895
1895
|
open: T,
|
|
1896
1896
|
onOpenChange: D,
|
|
1897
1897
|
whileElementsMounted: qe
|
|
1898
|
-
}),
|
|
1898
|
+
}), Ee = Te(ae, { role: "listbox" }), me = Se(ae), re = pt(ae, {
|
|
1899
1899
|
listRef: de,
|
|
1900
1900
|
activeIndex: W,
|
|
1901
1901
|
onNavigate: U,
|
|
1902
1902
|
virtual: !0,
|
|
1903
1903
|
loop: !0,
|
|
1904
1904
|
allowEscape: !0
|
|
1905
|
-
}), { getReferenceProps: Y, getFloatingProps:
|
|
1905
|
+
}), { getReferenceProps: Y, getFloatingProps: _e, getItemProps: He } = Oe([Ee, me, re]), { isMounted: le, styles: ce } = Qe(ae, {
|
|
1906
1906
|
duration: {
|
|
1907
1907
|
open: 300,
|
|
1908
1908
|
close: 150
|
|
@@ -1925,12 +1925,12 @@ const k1 = Pe(
|
|
|
1925
1925
|
let he = pe.target.value;
|
|
1926
1926
|
he.length > 0 && (he = he.trimStart()), Q(he), he ? (U(null), D(!0)) : D(!1);
|
|
1927
1927
|
}, ve = (pe) => {
|
|
1928
|
-
|
|
1928
|
+
_ && g(pe);
|
|
1929
1929
|
}, Ze = (pe) => {
|
|
1930
1930
|
g && g(pe);
|
|
1931
1931
|
}, ft = (pe) => {
|
|
1932
1932
|
const he = be[pe];
|
|
1933
|
-
Q(he.label), U(null), D(!1),
|
|
1933
|
+
Q(he.label), U(null), D(!1), v && v(he);
|
|
1934
1934
|
}, It = (pe) => pe.map((xe) => {
|
|
1935
1935
|
const { label: De, optionDisplay: Re, value: Ae, searchIndex: bt } = xe, q = Ae || De, oe = [De, Ae];
|
|
1936
1936
|
return bt && oe.push(...bt), {
|
|
@@ -1941,7 +1941,7 @@ const k1 = Pe(
|
|
|
1941
1941
|
};
|
|
1942
1942
|
});
|
|
1943
1943
|
ie(() => {
|
|
1944
|
-
const pe = It(
|
|
1944
|
+
const pe = It(E).filter(
|
|
1945
1945
|
(he) => {
|
|
1946
1946
|
const xe = he.searchIndex.map(
|
|
1947
1947
|
(Re) => Re.toLowerCase()
|
|
@@ -1950,7 +1950,7 @@ const k1 = Pe(
|
|
|
1950
1950
|
}
|
|
1951
1951
|
);
|
|
1952
1952
|
J(pe);
|
|
1953
|
-
}, [ne, m,
|
|
1953
|
+
}, [ne, m, E]);
|
|
1954
1954
|
const tt = be.map((pe, he) => {
|
|
1955
1955
|
const { label: xe, value: De, optionDisplay: Re } = pe;
|
|
1956
1956
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1993,7 +1993,7 @@ const k1 = Pe(
|
|
|
1993
1993
|
id: l,
|
|
1994
1994
|
label: d,
|
|
1995
1995
|
showLabel: w,
|
|
1996
|
-
required:
|
|
1996
|
+
required: C,
|
|
1997
1997
|
disabled: n
|
|
1998
1998
|
}
|
|
1999
1999
|
),
|
|
@@ -2004,7 +2004,7 @@ const k1 = Pe(
|
|
|
2004
2004
|
ref: L,
|
|
2005
2005
|
id: l,
|
|
2006
2006
|
"aria-disabled": n ? !0 : null,
|
|
2007
|
-
"aria-required":
|
|
2007
|
+
"aria-required": C ? !0 : null,
|
|
2008
2008
|
"aria-invalid": H === "error" ? !0 : null,
|
|
2009
2009
|
"aria-describedby": Z ? `${l}__message` : null
|
|
2010
2010
|
},
|
|
@@ -2071,7 +2071,7 @@ const k1 = Pe(
|
|
|
2071
2071
|
y({
|
|
2072
2072
|
ref: ee.setFloating,
|
|
2073
2073
|
className: `${k}__dropdown`
|
|
2074
|
-
},
|
|
2074
|
+
}, _e({
|
|
2075
2075
|
style: {
|
|
2076
2076
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2077
2077
|
}
|
|
@@ -2090,8 +2090,8 @@ const k1 = Pe(
|
|
|
2090
2090
|
)
|
|
2091
2091
|
);
|
|
2092
2092
|
}
|
|
2093
|
-
), H1 = (
|
|
2094
|
-
var $ =
|
|
2093
|
+
), H1 = (_) => {
|
|
2094
|
+
var $ = _, {
|
|
2095
2095
|
disabled: t = !1,
|
|
2096
2096
|
id: n,
|
|
2097
2097
|
isLoading: a = !1,
|
|
@@ -2124,7 +2124,7 @@ const k1 = Pe(
|
|
|
2124
2124
|
"horizontalOffset",
|
|
2125
2125
|
"className"
|
|
2126
2126
|
]);
|
|
2127
|
-
const [g,
|
|
2127
|
+
const [g, v] = R(!1), [E, b] = R(null), C = se(null);
|
|
2128
2128
|
let w = !1;
|
|
2129
2129
|
const x = we(je);
|
|
2130
2130
|
x && (w = x.isMobile);
|
|
@@ -2138,19 +2138,19 @@ const k1 = Pe(
|
|
|
2138
2138
|
right: `${O + u}rem`,
|
|
2139
2139
|
width: `${k}rem`
|
|
2140
2140
|
}, A = "pds-dashboard-search", B = w ? `${A}--isMobile` : null, F = () => {
|
|
2141
|
-
|
|
2142
|
-
|
|
2141
|
+
v(!0), setTimeout(() => {
|
|
2142
|
+
C.current.querySelector("input").focus();
|
|
2143
2143
|
}, 500);
|
|
2144
2144
|
}, j = () => {
|
|
2145
2145
|
setTimeout(() => {
|
|
2146
|
-
|
|
2146
|
+
v(!1);
|
|
2147
2147
|
}, 150);
|
|
2148
2148
|
}, Z = (U) => {
|
|
2149
2149
|
b(U.value), m && m(U);
|
|
2150
2150
|
};
|
|
2151
2151
|
ie(() => {
|
|
2152
2152
|
if (g) {
|
|
2153
|
-
const U =
|
|
2153
|
+
const U = C.current.querySelector("input");
|
|
2154
2154
|
return U.addEventListener("blur", j), () => {
|
|
2155
2155
|
U.removeEventListener("blur", j);
|
|
2156
2156
|
};
|
|
@@ -2166,11 +2166,11 @@ const k1 = Pe(
|
|
|
2166
2166
|
}), T = /* @__PURE__ */ e.createElement(
|
|
2167
2167
|
k1,
|
|
2168
2168
|
{
|
|
2169
|
-
ref:
|
|
2169
|
+
ref: C,
|
|
2170
2170
|
disabled: t,
|
|
2171
2171
|
hasClearButton: !1,
|
|
2172
2172
|
id: `${n}-combobox`,
|
|
2173
|
-
defaultValue:
|
|
2173
|
+
defaultValue: E,
|
|
2174
2174
|
isLoading: a,
|
|
2175
2175
|
label: c,
|
|
2176
2176
|
labelStrings: r,
|
|
@@ -2456,8 +2456,8 @@ L1.propTypes = {
|
|
|
2456
2456
|
className: s.string
|
|
2457
2457
|
};
|
|
2458
2458
|
const gt = Pe(
|
|
2459
|
-
(
|
|
2460
|
-
var
|
|
2459
|
+
(v, g) => {
|
|
2460
|
+
var E = v, {
|
|
2461
2461
|
children: t,
|
|
2462
2462
|
decorator: n,
|
|
2463
2463
|
disabled: a = !1,
|
|
@@ -2472,8 +2472,8 @@ const gt = Pe(
|
|
|
2472
2472
|
required: u = !1,
|
|
2473
2473
|
showLabel: p = !0,
|
|
2474
2474
|
validationState: f,
|
|
2475
|
-
className:
|
|
2476
|
-
} =
|
|
2475
|
+
className: _
|
|
2476
|
+
} = E, $ = S(E, [
|
|
2477
2477
|
"children",
|
|
2478
2478
|
"decorator",
|
|
2479
2479
|
"disabled",
|
|
@@ -2490,7 +2490,7 @@ const gt = Pe(
|
|
|
2490
2490
|
"validationState",
|
|
2491
2491
|
"className"
|
|
2492
2492
|
]);
|
|
2493
|
-
const b = "pds-input-wrapper",
|
|
2493
|
+
const b = "pds-input-wrapper", C = `${b}--${r}`, w = "pds-input-label", x = `pds-input-field__message pds-input-field__message--${d}`, H = f === "error" ? "pds-has-error" : null, M = f === "success" ? "pds-has-success" : null, N = a ? "pds-is-disabled" : null, L = h ? "pds-is-readonly" : null, z = u && !a ? "pds-is-required" : null, O = o ? `${o / 16}rem` : null, V = o ? { width: O } : null, k = l ? "fieldset" : "div", I = u && !a ? /* @__PURE__ */ e.createElement(
|
|
2494
2494
|
P,
|
|
2495
2495
|
{
|
|
2496
2496
|
iconName: "asterisk",
|
|
@@ -2512,13 +2512,13 @@ const gt = Pe(
|
|
|
2512
2512
|
y({
|
|
2513
2513
|
className: [
|
|
2514
2514
|
b,
|
|
2515
|
-
|
|
2515
|
+
C,
|
|
2516
2516
|
N,
|
|
2517
2517
|
L,
|
|
2518
2518
|
z,
|
|
2519
2519
|
H,
|
|
2520
2520
|
M,
|
|
2521
|
-
|
|
2521
|
+
_
|
|
2522
2522
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
2523
2523
|
ref: g,
|
|
2524
2524
|
style: V
|
|
@@ -2634,36 +2634,36 @@ const mt = (u) => {
|
|
|
2634
2634
|
"variant",
|
|
2635
2635
|
"className"
|
|
2636
2636
|
]);
|
|
2637
|
-
const f = "pds-icon-button",
|
|
2637
|
+
const f = "pds-icon-button", _ = i !== "md" ? `${f}--${i}` : null, $ = m !== "standard" ? `${f}--${m}` : null, g = {
|
|
2638
2638
|
fadeOut: `${f}--fadeOut`,
|
|
2639
2639
|
hide: `${f}--hide`,
|
|
2640
2640
|
scaleIn: `${f}--scaleIn`
|
|
2641
2641
|
};
|
|
2642
|
-
let
|
|
2642
|
+
let v, E;
|
|
2643
2643
|
switch (i) {
|
|
2644
2644
|
case "sm":
|
|
2645
|
-
|
|
2645
|
+
E = "md", v = 8;
|
|
2646
2646
|
break;
|
|
2647
2647
|
case "md":
|
|
2648
|
-
|
|
2648
|
+
E = "md", v = 10;
|
|
2649
2649
|
break;
|
|
2650
2650
|
case "lg":
|
|
2651
|
-
|
|
2651
|
+
E = "xl", v = 12;
|
|
2652
2652
|
}
|
|
2653
|
-
const b = o !== null,
|
|
2654
|
-
|
|
2655
|
-
|
|
2653
|
+
const b = o !== null, C = se(null), w = se(null), x = () => {
|
|
2654
|
+
C.current.classList.add(g.fadeOut), C.current.classList.add(g.hide), w.current.classList.remove(g.hide), w.current.classList.add(g.scaleIn), setTimeout(() => {
|
|
2655
|
+
C.current.classList.remove(
|
|
2656
2656
|
g.fadeOut,
|
|
2657
2657
|
g.hide
|
|
2658
|
-
),
|
|
2658
|
+
), C.current.classList.add(g.scaleIn), w.current.classList.remove(g.scaleIn), w.current.classList.add(g.hide);
|
|
2659
2659
|
}, 2e3);
|
|
2660
2660
|
}, H = () => {
|
|
2661
2661
|
b && x(), l && l();
|
|
2662
|
-
}, M = b ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref:
|
|
2662
|
+
}, M = b ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref: C, className: `${f}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2663
2663
|
P,
|
|
2664
2664
|
{
|
|
2665
2665
|
iconName: r,
|
|
2666
|
-
iconSize:
|
|
2666
|
+
iconSize: E,
|
|
2667
2667
|
className: `${f}__icon`
|
|
2668
2668
|
}
|
|
2669
2669
|
)), /* @__PURE__ */ e.createElement(
|
|
@@ -2676,7 +2676,7 @@ const mt = (u) => {
|
|
|
2676
2676
|
P,
|
|
2677
2677
|
{
|
|
2678
2678
|
iconName: o,
|
|
2679
|
-
iconSize:
|
|
2679
|
+
iconSize: E,
|
|
2680
2680
|
className: `${f}__icon`
|
|
2681
2681
|
}
|
|
2682
2682
|
)
|
|
@@ -2684,7 +2684,7 @@ const mt = (u) => {
|
|
|
2684
2684
|
P,
|
|
2685
2685
|
{
|
|
2686
2686
|
iconName: r,
|
|
2687
|
-
iconSize:
|
|
2687
|
+
iconSize: E,
|
|
2688
2688
|
className: `${f}__icon`
|
|
2689
2689
|
}
|
|
2690
2690
|
));
|
|
@@ -2692,7 +2692,7 @@ const mt = (u) => {
|
|
|
2692
2692
|
"button",
|
|
2693
2693
|
y({
|
|
2694
2694
|
"aria-label": t,
|
|
2695
|
-
className: [f,
|
|
2695
|
+
className: [f, _, $, d].join(" ").trim().replace(/\s+/g, " "),
|
|
2696
2696
|
disabled: a,
|
|
2697
2697
|
onClick: H,
|
|
2698
2698
|
type: n,
|
|
@@ -2703,7 +2703,7 @@ const mt = (u) => {
|
|
|
2703
2703
|
{
|
|
2704
2704
|
content: t,
|
|
2705
2705
|
className: `${f}__tooltip`,
|
|
2706
|
-
offsetValue:
|
|
2706
|
+
offsetValue: v,
|
|
2707
2707
|
customTrigger: M
|
|
2708
2708
|
}
|
|
2709
2709
|
) : M
|
|
@@ -2726,7 +2726,7 @@ const x1 = ($) => {
|
|
|
2726
2726
|
showLabel: u = !0,
|
|
2727
2727
|
validationFunction: p,
|
|
2728
2728
|
className: f
|
|
2729
|
-
} = g,
|
|
2729
|
+
} = g, _ = S(g, [
|
|
2730
2730
|
"accept",
|
|
2731
2731
|
"chooseFileLabel",
|
|
2732
2732
|
"clearButtonLabel",
|
|
@@ -2742,20 +2742,20 @@ const x1 = ($) => {
|
|
|
2742
2742
|
"validationFunction",
|
|
2743
2743
|
"className"
|
|
2744
2744
|
]);
|
|
2745
|
-
const [
|
|
2745
|
+
const [v, E] = R(!1), [b, C] = R(), [w, x] = R(null), H = "pds-file-upload", M = v ? `${H}--has-value` : null;
|
|
2746
2746
|
let N = null;
|
|
2747
2747
|
w === "error" && (N = "error"), w === "success" && (N = "success");
|
|
2748
2748
|
const L = () => {
|
|
2749
|
-
|
|
2749
|
+
C(""), x(null);
|
|
2750
2750
|
}, z = (k) => {
|
|
2751
2751
|
if (p) {
|
|
2752
2752
|
const I = p(k.target.files) || {};
|
|
2753
|
-
L(), I.error && x("error"), I.success && x("success"),
|
|
2753
|
+
L(), I.error && x("error"), I.success && x("success"), C(I.message);
|
|
2754
2754
|
}
|
|
2755
|
-
d && d(k.target.files), k.target.files.length > 0 ?
|
|
2755
|
+
d && d(k.target.files), k.target.files.length > 0 ? E(!0) : E(!1);
|
|
2756
2756
|
}, O = () => {
|
|
2757
2757
|
const k = document.getElementById(o);
|
|
2758
|
-
k.value = "",
|
|
2758
|
+
k.value = "", E(!1), L();
|
|
2759
2759
|
}, V = b || i;
|
|
2760
2760
|
return /* @__PURE__ */ e.createElement(
|
|
2761
2761
|
gt,
|
|
@@ -2771,12 +2771,12 @@ const x1 = ($) => {
|
|
|
2771
2771
|
required: h,
|
|
2772
2772
|
showLabel: u,
|
|
2773
2773
|
validationState: w
|
|
2774
|
-
},
|
|
2774
|
+
}, _),
|
|
2775
2775
|
/* @__PURE__ */ e.createElement(
|
|
2776
2776
|
"label",
|
|
2777
2777
|
{
|
|
2778
2778
|
htmlFor: o,
|
|
2779
|
-
className:
|
|
2779
|
+
className: v ? "visually-hidden" : `${H}__label`
|
|
2780
2780
|
},
|
|
2781
2781
|
/* @__PURE__ */ e.createElement(P, { iconName: "paperclip", iconSize: "sm" }),
|
|
2782
2782
|
n
|
|
@@ -2794,7 +2794,7 @@ const x1 = ($) => {
|
|
|
2794
2794
|
onChange: z
|
|
2795
2795
|
}
|
|
2796
2796
|
),
|
|
2797
|
-
|
|
2797
|
+
v && /* @__PURE__ */ e.createElement(
|
|
2798
2798
|
mt,
|
|
2799
2799
|
{
|
|
2800
2800
|
ariaLabel: a,
|
|
@@ -2969,8 +2969,8 @@ I1.propTypes = {
|
|
|
2969
2969
|
*/
|
|
2970
2970
|
className: s.string
|
|
2971
2971
|
};
|
|
2972
|
-
const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t) => t.type === "decimal").value, Ot = 16, ls = 10, T1 = (
|
|
2973
|
-
var $ =
|
|
2972
|
+
const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t) => t.type === "decimal").value, Ot = 16, ls = 10, T1 = (_) => {
|
|
2973
|
+
var $ = _, {
|
|
2974
2974
|
disabled: t = !1,
|
|
2975
2975
|
formatting: n,
|
|
2976
2976
|
hasClearButton: a = !1,
|
|
@@ -2999,14 +2999,14 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
2999
2999
|
"validationFunction",
|
|
3000
3000
|
"className"
|
|
3001
3001
|
]);
|
|
3002
|
-
const g = "pds-input-formatted",
|
|
3002
|
+
const g = "pds-input-formatted", v = n ? `${g}--${n}` : null, E = se([
|
|
3003
3003
|
"pds-input-field",
|
|
3004
3004
|
g,
|
|
3005
|
-
|
|
3005
|
+
v,
|
|
3006
3006
|
p
|
|
3007
|
-
]), [b,
|
|
3007
|
+
]), [b, C] = R(""), [w, x] = R(null), [H, M] = R(null), N = se(null), L = se(null), z = se("");
|
|
3008
3008
|
ie(() => {
|
|
3009
|
-
switch (r &&
|
|
3009
|
+
switch (r && C(Z(r)), z.numExtra = "", n) {
|
|
3010
3010
|
case "credit-card":
|
|
3011
3011
|
z.numExtra = 3, z.current = Ot;
|
|
3012
3012
|
break;
|
|
@@ -3016,11 +3016,11 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
3016
3016
|
}
|
|
3017
3017
|
}, []);
|
|
3018
3018
|
const O = () => {
|
|
3019
|
-
|
|
3019
|
+
E.current = E.current.filter(
|
|
3020
3020
|
(T) => T !== $e.required && T !== $e.disabled
|
|
3021
3021
|
);
|
|
3022
3022
|
}, V = () => {
|
|
3023
|
-
|
|
3023
|
+
E.current = E.current.filter(
|
|
3024
3024
|
(T) => T !== $e.error && T !== $e.success
|
|
3025
3025
|
);
|
|
3026
3026
|
}, k = () => {
|
|
@@ -3031,22 +3031,22 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
3031
3031
|
rawValue: L.current
|
|
3032
3032
|
});
|
|
3033
3033
|
}, A = (T) => {
|
|
3034
|
-
|
|
3034
|
+
C(Z(T.target.value)), k(), I(T.target.value);
|
|
3035
3035
|
}, B = () => {
|
|
3036
|
-
M("error"),
|
|
3036
|
+
M("error"), E.current.push($e.error);
|
|
3037
3037
|
}, F = (T) => {
|
|
3038
3038
|
if (u) {
|
|
3039
3039
|
const D = u(T.target.value) || {};
|
|
3040
|
-
k(), D.error && B(), D.success && (M("success"),
|
|
3040
|
+
k(), D.error && B(), D.success && (M("success"), E.current.push($e.success)), x(D.message);
|
|
3041
3041
|
} else
|
|
3042
3042
|
N.current.checkValidity() === !1 || T.target.value.length < z.current + z.numExtra ? (B(), n === "credit-card" && x(
|
|
3043
3043
|
`Credit card number must have at least ${z.current} digits.`
|
|
3044
3044
|
), n === "phone" && x(
|
|
3045
3045
|
`Phone number must have at least ${z.current} digits.`
|
|
3046
|
-
)) : (n === "credit-card" || n === "phone") && (M("success"),
|
|
3046
|
+
)) : (n === "credit-card" || n === "phone") && (M("success"), E.current.push($e.success));
|
|
3047
3047
|
I(T.target.value);
|
|
3048
3048
|
}, j = () => {
|
|
3049
|
-
k(),
|
|
3049
|
+
k(), C(""), L.current = "", N.current.focus(), I("");
|
|
3050
3050
|
}, Z = (T) => {
|
|
3051
3051
|
if (T) {
|
|
3052
3052
|
if (n === "credit-card") {
|
|
@@ -3085,9 +3085,9 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
3085
3085
|
}
|
|
3086
3086
|
return T;
|
|
3087
3087
|
};
|
|
3088
|
-
O(), d && !t &&
|
|
3088
|
+
O(), d && !t && E.current.push($e.required), t && E.current.push($e.disabled);
|
|
3089
3089
|
let G = null;
|
|
3090
|
-
return H === "error" && (G = /* @__PURE__ */ e.createElement(ot, { type: "error" })), H === "success" && (G = /* @__PURE__ */ e.createElement(ot, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className:
|
|
3090
|
+
return H === "error" && (G = /* @__PURE__ */ e.createElement(ot, { type: "error" })), H === "success" && (G = /* @__PURE__ */ e.createElement(ot, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className: E.current.join(" ").trim() }, f), /* @__PURE__ */ e.createElement("span", { className: h ? null : "visually-hidden" }, /* @__PURE__ */ e.createElement("label", { className: "pds-input-label", htmlFor: c }, o)), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__input-wrapper" }, G && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, G), /* @__PURE__ */ e.createElement(
|
|
3091
3091
|
"input",
|
|
3092
3092
|
{
|
|
3093
3093
|
className: "pds-input-field__input",
|
|
@@ -3198,7 +3198,7 @@ T1.propTypes = {
|
|
|
3198
3198
|
className: s.string
|
|
3199
3199
|
};
|
|
3200
3200
|
const O1 = (f) => {
|
|
3201
|
-
var
|
|
3201
|
+
var _ = f, {
|
|
3202
3202
|
counterFunction: t = () => {
|
|
3203
3203
|
},
|
|
3204
3204
|
disabled: n = !1,
|
|
@@ -3212,7 +3212,7 @@ const O1 = (f) => {
|
|
|
3212
3212
|
showLabel: d = !0,
|
|
3213
3213
|
validationFunction: h,
|
|
3214
3214
|
className: u
|
|
3215
|
-
} =
|
|
3215
|
+
} = _, p = S(_, [
|
|
3216
3216
|
"counterFunction",
|
|
3217
3217
|
"disabled",
|
|
3218
3218
|
"hasClearButton",
|
|
@@ -3226,9 +3226,9 @@ const O1 = (f) => {
|
|
|
3226
3226
|
"validationFunction",
|
|
3227
3227
|
"className"
|
|
3228
3228
|
]);
|
|
3229
|
-
const $ = "pds-input-obscured", g = se(["pds-input-field", $, u]), [
|
|
3229
|
+
const $ = "pds-input-obscured", g = se(["pds-input-field", $, u]), [v, E] = R(r), [b, C] = R(t("")), [w, x] = R(), [H, M] = R(null), [N, L] = R(!1), z = se(null), O = se(null);
|
|
3230
3230
|
ie(() => {
|
|
3231
|
-
r && t &&
|
|
3231
|
+
r && t && C(t(r));
|
|
3232
3232
|
}, []);
|
|
3233
3233
|
const V = () => {
|
|
3234
3234
|
g.current = g.current.filter(
|
|
@@ -3241,15 +3241,15 @@ const O1 = (f) => {
|
|
|
3241
3241
|
}, I = () => {
|
|
3242
3242
|
k(), x(""), M(null);
|
|
3243
3243
|
}, A = (T) => {
|
|
3244
|
-
|
|
3244
|
+
E(T.target.value), I(), t && C(t(T.target.value)), i && i(T.target.value);
|
|
3245
3245
|
}, B = (T) => {
|
|
3246
3246
|
if (L(!1), h) {
|
|
3247
3247
|
const D = h(T.target.value) || {};
|
|
3248
3248
|
I(), D.error && (M("error"), g.current.push($e.error)), D.success && (M("success"), g.current.push($e.success)), x(D.message);
|
|
3249
3249
|
}
|
|
3250
|
-
i && i(
|
|
3250
|
+
i && i(v);
|
|
3251
3251
|
}, F = () => {
|
|
3252
|
-
I(),
|
|
3252
|
+
I(), E(""), O.current.value = null, O.current.focus(), t && C(t("")), i && i("");
|
|
3253
3253
|
}, j = () => {
|
|
3254
3254
|
L((T) => !T);
|
|
3255
3255
|
}, Z = (T) => {
|
|
@@ -3283,7 +3283,7 @@ const O1 = (f) => {
|
|
|
3283
3283
|
name: c,
|
|
3284
3284
|
required: m,
|
|
3285
3285
|
disabled: n,
|
|
3286
|
-
value:
|
|
3286
|
+
value: v,
|
|
3287
3287
|
onChange: A,
|
|
3288
3288
|
onBlur: B,
|
|
3289
3289
|
ref: O,
|
|
@@ -3291,7 +3291,7 @@ const O1 = (f) => {
|
|
|
3291
3291
|
"aria-describedby": l || w ? `${c}__message` : null,
|
|
3292
3292
|
autoComplete: "off"
|
|
3293
3293
|
}
|
|
3294
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b),
|
|
3294
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b), v && a && /* @__PURE__ */ e.createElement(
|
|
3295
3295
|
Vt,
|
|
3296
3296
|
{
|
|
3297
3297
|
id: c,
|
|
@@ -3415,13 +3415,13 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3415
3415
|
onChange: u,
|
|
3416
3416
|
onFocus: p,
|
|
3417
3417
|
placeholder: f,
|
|
3418
|
-
readonly:
|
|
3418
|
+
readonly: _ = !1,
|
|
3419
3419
|
required: $ = !1,
|
|
3420
3420
|
showLabel: g = !0,
|
|
3421
|
-
specialFormatting:
|
|
3422
|
-
specialFormattingValidation:
|
|
3421
|
+
specialFormatting: v,
|
|
3422
|
+
specialFormattingValidation: E = !1,
|
|
3423
3423
|
toggleVisibility: b = !1,
|
|
3424
|
-
type:
|
|
3424
|
+
type: C = "text",
|
|
3425
3425
|
validationFunction: w,
|
|
3426
3426
|
validationMessages: x = {
|
|
3427
3427
|
creditCardError: "Please enter a valid credit card number.",
|
|
@@ -3454,10 +3454,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3454
3454
|
"validationMessages",
|
|
3455
3455
|
"className"
|
|
3456
3456
|
]);
|
|
3457
|
-
const [z, O] = R(l), [V, k] = R(n("")), [I, A] = R(), [B, F] = R(null), [j, Z] = R(!1), G = se(null), T = se(null), D = se(null), W = se(null), U = "pds-input-text", ne =
|
|
3457
|
+
const [z, O] = R(l), [V, k] = R(n("")), [I, A] = R(), [B, F] = R(null), [j, Z] = R(!1), G = se(null), T = se(null), D = se(null), W = se(null), U = "pds-input-text", ne = v ? `${U}--${v}` : null;
|
|
3458
3458
|
let Q = null;
|
|
3459
|
-
|
|
3460
|
-
switch (l && O(J(l)), W.numExtra = "",
|
|
3459
|
+
C === "search" && (Q = "search"), B === "error" && (Q = "error"), B === "success" && (Q = "success"), v && E && ie(() => {
|
|
3460
|
+
switch (l && O(J(l)), W.numExtra = "", v) {
|
|
3461
3461
|
case "credit-card":
|
|
3462
3462
|
W.numExtra = 3, W.current = Dt;
|
|
3463
3463
|
break;
|
|
@@ -3467,10 +3467,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3467
3467
|
}
|
|
3468
3468
|
}, []);
|
|
3469
3469
|
let be = null;
|
|
3470
|
-
(
|
|
3470
|
+
(v === "credit-card" || v === "phone") && W.current && (be = W.current + W.numExtra);
|
|
3471
3471
|
const J = (le) => {
|
|
3472
3472
|
if (le) {
|
|
3473
|
-
if (
|
|
3473
|
+
if (v === "credit-card") {
|
|
3474
3474
|
const ce = ("" + le).replace(/\D/g, "");
|
|
3475
3475
|
if (D.current = ce, ce) {
|
|
3476
3476
|
if (new RegExp("^34|37", "g").test(ce)) {
|
|
@@ -3484,7 +3484,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
return ce;
|
|
3486
3486
|
}
|
|
3487
|
-
if (
|
|
3487
|
+
if (v === "phone") {
|
|
3488
3488
|
const ce = ("" + le).replace(/\D/g, "");
|
|
3489
3489
|
if (D.current = ce, ce) {
|
|
3490
3490
|
W.numExtra = 4, W.current = cs;
|
|
@@ -3506,15 +3506,15 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3506
3506
|
}, ae = (le) => {
|
|
3507
3507
|
p && p(le.target);
|
|
3508
3508
|
}, ee = (le) => {
|
|
3509
|
-
|
|
3510
|
-
},
|
|
3511
|
-
O(
|
|
3509
|
+
v ? u && u({ formattedValue: le, rawValue: D.current }) : u && u(le);
|
|
3510
|
+
}, Ee = (le) => {
|
|
3511
|
+
O(v ? J(le.target.value) : le.target.value), de(), n && k(n(v ? D.current : le.target.value)), ee(le.target.value);
|
|
3512
3512
|
}, me = (le) => {
|
|
3513
3513
|
if (b && Z(!1), w) {
|
|
3514
3514
|
const ce = w(le.target.value) || {};
|
|
3515
3515
|
de(), ce.error && F("error"), ce.success && F("success"), A(ce.message);
|
|
3516
3516
|
}
|
|
3517
|
-
|
|
3517
|
+
v && E && !w && (G.current.checkValidity() === !1 || le.target.value.length < be ? (F("error"), v === "credit-card" && A(x.creditCardError), v === "phone" && A(x.phoneError)) : F("success")), ee(le.target.value);
|
|
3518
3518
|
}, re = (le) => {
|
|
3519
3519
|
var ce;
|
|
3520
3520
|
(!((ce = T.current) != null && ce.contains(le.relatedTarget)) || !le.relatedTarget) && Z(!1);
|
|
@@ -3522,7 +3522,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3522
3522
|
de(), O(""), D.current = "", G.current.focus(), n && k(n("")), ee("");
|
|
3523
3523
|
};
|
|
3524
3524
|
ie(() => {
|
|
3525
|
-
if (
|
|
3525
|
+
if (C === "search" && r) {
|
|
3526
3526
|
const le = (ce) => {
|
|
3527
3527
|
ce.key === "/" && (/^(?:input|textarea|select|button)$/i.test(ce.target.tagName) || (ce.preventDefault(), document.getElementById(o).focus()));
|
|
3528
3528
|
};
|
|
@@ -3531,10 +3531,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3531
3531
|
};
|
|
3532
3532
|
}
|
|
3533
3533
|
}, []);
|
|
3534
|
-
const
|
|
3534
|
+
const _e = () => {
|
|
3535
3535
|
Z((le) => !le);
|
|
3536
3536
|
};
|
|
3537
|
-
b &&
|
|
3537
|
+
b && C === "password" && (j ? M.type = "text" : M.type = "password"), v === "phone" && (M.type = "tel");
|
|
3538
3538
|
const He = I || h;
|
|
3539
3539
|
return /* @__PURE__ */ e.createElement(
|
|
3540
3540
|
gt,
|
|
@@ -3549,31 +3549,31 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3549
3549
|
message: He,
|
|
3550
3550
|
onBlur: re,
|
|
3551
3551
|
ref: T,
|
|
3552
|
-
readonly:
|
|
3552
|
+
readonly: _,
|
|
3553
3553
|
required: $,
|
|
3554
3554
|
showLabel: g,
|
|
3555
3555
|
validationState: B
|
|
3556
3556
|
}, M),
|
|
3557
|
-
b &&
|
|
3557
|
+
b && C === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${d.visibilityStatus} ${j ? "visible" : "hidden"}.`),
|
|
3558
3558
|
/* @__PURE__ */ e.createElement(
|
|
3559
3559
|
"input",
|
|
3560
3560
|
{
|
|
3561
3561
|
className: [U, ne].join(" ").trim().replace(/\s+/g, " "),
|
|
3562
|
-
type:
|
|
3562
|
+
type: C,
|
|
3563
3563
|
id: o,
|
|
3564
3564
|
name: o,
|
|
3565
3565
|
placeholder: f,
|
|
3566
3566
|
required: $,
|
|
3567
|
-
readOnly:
|
|
3567
|
+
readOnly: _,
|
|
3568
3568
|
disabled: a,
|
|
3569
3569
|
value: z,
|
|
3570
3570
|
onBlur: me,
|
|
3571
|
-
onChange:
|
|
3571
|
+
onChange: Ee,
|
|
3572
3572
|
onFocus: ae,
|
|
3573
3573
|
ref: G,
|
|
3574
3574
|
"aria-invalid": B === "error",
|
|
3575
3575
|
"aria-describedby": He ? `${o}__message` : null,
|
|
3576
|
-
autoComplete:
|
|
3576
|
+
autoComplete: C === "password" ? "off" : t,
|
|
3577
3577
|
maxLength: be,
|
|
3578
3578
|
minLength: be
|
|
3579
3579
|
}
|
|
@@ -3587,19 +3587,19 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3587
3587
|
handleClearInput: Y
|
|
3588
3588
|
}
|
|
3589
3589
|
),
|
|
3590
|
-
b &&
|
|
3590
|
+
b && C === "password" && /* @__PURE__ */ e.createElement(
|
|
3591
3591
|
"button",
|
|
3592
3592
|
{
|
|
3593
3593
|
type: "button",
|
|
3594
3594
|
className: "pds-input__visibility-toggle",
|
|
3595
3595
|
title: j ? d.visibilityToggleHide : d.visibilityToggleShow,
|
|
3596
3596
|
"aria-controls": o,
|
|
3597
|
-
onClick:
|
|
3597
|
+
onClick: _e,
|
|
3598
3598
|
onMouseDown: (le) => le.preventDefault()
|
|
3599
3599
|
},
|
|
3600
3600
|
/* @__PURE__ */ e.createElement(P, { iconName: j ? "eyeSlash" : "eye" })
|
|
3601
3601
|
),
|
|
3602
|
-
!z && r &&
|
|
3602
|
+
!z && r && C === "search" && /* @__PURE__ */ e.createElement(xs, { label: d.searchShortcut })
|
|
3603
3603
|
);
|
|
3604
3604
|
};
|
|
3605
3605
|
D1.propTypes = {
|
|
@@ -3792,7 +3792,7 @@ const rs = [
|
|
|
3792
3792
|
"g11",
|
|
3793
3793
|
"g12"
|
|
3794
3794
|
], A1 = (t) => {
|
|
3795
|
-
const n = parseInt(
|
|
3795
|
+
const n = parseInt(_s(t), 16);
|
|
3796
3796
|
return rs[n % rs.length];
|
|
3797
3797
|
}, ut = (l) => {
|
|
3798
3798
|
var i = l, {
|
|
@@ -3821,7 +3821,7 @@ const rs = [
|
|
|
3821
3821
|
className: `${m}__image`,
|
|
3822
3822
|
alt: ""
|
|
3823
3823
|
}
|
|
3824
|
-
) : /* @__PURE__ */ e.createElement("span", { style: p }),
|
|
3824
|
+
) : /* @__PURE__ */ e.createElement("span", { style: p }), _ = /* @__PURE__ */ e.createElement("span", { className: `${m}__content` }, f), $ = Fe(a) ? Ke(
|
|
3825
3825
|
a,
|
|
3826
3826
|
fe(y({}, a.props), {
|
|
3827
3827
|
className: `${m}__content ${m}__content--link`
|
|
@@ -3833,10 +3833,10 @@ const rs = [
|
|
|
3833
3833
|
y({
|
|
3834
3834
|
className: K([m, d, h, r])
|
|
3835
3835
|
}, o),
|
|
3836
|
-
a ? $ :
|
|
3836
|
+
a ? $ : _
|
|
3837
3837
|
);
|
|
3838
3838
|
}, Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink, P1 = (t) => t.isNode, Is = (g) => {
|
|
3839
|
-
var
|
|
3839
|
+
var v = g, {
|
|
3840
3840
|
avatarImageSrc: t,
|
|
3841
3841
|
disabled: n,
|
|
3842
3842
|
displayType: a = "icon-end",
|
|
@@ -3851,8 +3851,8 @@ const rs = [
|
|
|
3851
3851
|
undefinedLabel: u = "Unlabeled group",
|
|
3852
3852
|
variant: p = "primary",
|
|
3853
3853
|
withinNavbar: f,
|
|
3854
|
-
className:
|
|
3855
|
-
} =
|
|
3854
|
+
className: _
|
|
3855
|
+
} = v, $ = S(v, [
|
|
3856
3856
|
"avatarImageSrc",
|
|
3857
3857
|
"disabled",
|
|
3858
3858
|
"displayType",
|
|
@@ -3870,9 +3870,9 @@ const rs = [
|
|
|
3870
3870
|
"className"
|
|
3871
3871
|
]);
|
|
3872
3872
|
const {
|
|
3873
|
-
x:
|
|
3873
|
+
x: E,
|
|
3874
3874
|
y: b,
|
|
3875
|
-
reference:
|
|
3875
|
+
reference: C,
|
|
3876
3876
|
floating: w,
|
|
3877
3877
|
strategy: x,
|
|
3878
3878
|
update: H,
|
|
@@ -3885,7 +3885,7 @@ const rs = [
|
|
|
3885
3885
|
let L = !1;
|
|
3886
3886
|
const z = we(je);
|
|
3887
3887
|
z && (L = z.isMobile);
|
|
3888
|
-
const O = f && L, V = 'data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="12.5" fill="%23CFCFD3"/><path d="M12.5 11.75C11.2422 11.75 10.0938 11.0938 9.46484 10C8.83594 8.93359 8.83594 7.59375 9.46484 6.5C10.0938 5.43359 11.2422 4.75 12.5 4.75C13.7305 4.75 14.8789 5.43359 15.5078 6.5C16.1367 7.59375 16.1367 8.93359 15.5078 10C14.8789 11.0938 13.7305 11.75 12.5 11.75ZM11.2422 13.0625H13.7305C16.4375 13.0625 18.625 15.25 18.625 17.957C18.625 18.3945 18.2422 18.75 17.8047 18.75H7.16797C6.73047 18.75 6.375 18.3945 6.375 17.957C6.375 15.25 8.53516 13.0625 11.2422 13.0625Z" fill="%2323232D"/></svg>', k = "pds-menu-button", I = O ? `${k}--isMobile` : null, A = f ? `${k}--navbar` : null, B = We(), [F] = R(`menu-button-${B}`), [j] = R(`menu-listbox-${B}`), Z = r || F, G = N.floating, T = se(null), [D, W] = R(!1), [U, ne] = R(!1), [Q, be] = R(""), [J, de] = R(0), ae = se([]), ee = se([]),
|
|
3888
|
+
const O = f && L, V = 'data:image/svg+xml,<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="12.5" fill="%23CFCFD3"/><path d="M12.5 11.75C11.2422 11.75 10.0938 11.0938 9.46484 10C8.83594 8.93359 8.83594 7.59375 9.46484 6.5C10.0938 5.43359 11.2422 4.75 12.5 4.75C13.7305 4.75 14.8789 5.43359 15.5078 6.5C16.1367 7.59375 16.1367 8.93359 15.5078 10C14.8789 11.0938 13.7305 11.75 12.5 11.75ZM11.2422 13.0625H13.7305C16.4375 13.0625 18.625 15.25 18.625 17.957C18.625 18.3945 18.2422 18.75 17.8047 18.75H7.16797C6.73047 18.75 6.375 18.3945 6.375 17.957C6.375 15.25 8.53516 13.0625 11.2422 13.0625Z" fill="%2323232D"/></svg>', k = "pds-menu-button", I = O ? `${k}--isMobile` : null, A = f ? `${k}--navbar` : null, B = We(), [F] = R(`menu-button-${B}`), [j] = R(`menu-listbox-${B}`), Z = r || F, G = N.floating, T = se(null), [D, W] = R(!1), [U, ne] = R(!1), [Q, be] = R(""), [J, de] = R(0), ae = se([]), ee = se([]), Ee = se([]);
|
|
3889
3889
|
Qs(() => {
|
|
3890
3890
|
window.addEventListener("mousedown", ve, !0), H();
|
|
3891
3891
|
const q = G.current;
|
|
@@ -3901,23 +3901,23 @@ const rs = [
|
|
|
3901
3901
|
W(!0), ne(!0);
|
|
3902
3902
|
}, Y = () => {
|
|
3903
3903
|
W(!1), me(void 0, -1), T.current.querySelector(`#${Z}`).focus();
|
|
3904
|
-
},
|
|
3904
|
+
}, _e = (q) => {
|
|
3905
3905
|
q = q.toLowerCase();
|
|
3906
3906
|
let oe = !1;
|
|
3907
|
-
for (let X = J + 1; X <
|
|
3908
|
-
if (
|
|
3907
|
+
for (let X = J + 1; X < Ee.current.length; X++)
|
|
3908
|
+
if (Ee.current[X].label.toLowerCase().startsWith(q)) {
|
|
3909
3909
|
me(ee.current[X], X), oe = !0;
|
|
3910
3910
|
break;
|
|
3911
3911
|
}
|
|
3912
3912
|
if (oe === !1) {
|
|
3913
3913
|
for (let X = 0; X < J; X++)
|
|
3914
|
-
if (
|
|
3914
|
+
if (Ee.current[X].label.toLowerCase().startsWith(q)) {
|
|
3915
3915
|
me(ee.current[X], X);
|
|
3916
3916
|
break;
|
|
3917
3917
|
}
|
|
3918
3918
|
}
|
|
3919
3919
|
}, He = (q) => {
|
|
3920
|
-
const oe = ee.current.indexOf(q), X =
|
|
3920
|
+
const oe = ee.current.indexOf(q), X = Ee.current[oe];
|
|
3921
3921
|
if (X.callback && !X.disabled && X.callback(X), X.linkContent && !X.disabled) {
|
|
3922
3922
|
const ge = T.current.querySelector(`#${q} a`);
|
|
3923
3923
|
ge && ge.click();
|
|
@@ -3957,7 +3957,7 @@ const rs = [
|
|
|
3957
3957
|
}
|
|
3958
3958
|
if (!(q.ctrlKey || q.altKey || q.metaKey)) {
|
|
3959
3959
|
if (q.shiftKey)
|
|
3960
|
-
Ne(oe) && (
|
|
3960
|
+
Ne(oe) && (_e(oe), X = !0), q.key === "Tab" && (Y(), X = !0);
|
|
3961
3961
|
else
|
|
3962
3962
|
switch (oe) {
|
|
3963
3963
|
case " ":
|
|
@@ -3990,7 +3990,7 @@ const rs = [
|
|
|
3990
3990
|
Y();
|
|
3991
3991
|
break;
|
|
3992
3992
|
default:
|
|
3993
|
-
Ne(oe) && (
|
|
3993
|
+
Ne(oe) && (_e(oe), X = !0);
|
|
3994
3994
|
break;
|
|
3995
3995
|
}
|
|
3996
3996
|
X && (q.stopPropagation(), q.preventDefault());
|
|
@@ -4015,9 +4015,9 @@ const rs = [
|
|
|
4015
4015
|
if (P1(q))
|
|
4016
4016
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Ve }, q.nodeContent);
|
|
4017
4017
|
if (Pt(q) || q.label) {
|
|
4018
|
-
ee.current.push(Ve),
|
|
4019
|
-
let
|
|
4020
|
-
Q !== "" && !q.disabled && (
|
|
4018
|
+
ee.current.push(Ve), Ee.current.push(q);
|
|
4019
|
+
let Et = !1;
|
|
4020
|
+
Q !== "" && !q.disabled && (Et = Q === Ve);
|
|
4021
4021
|
let Me;
|
|
4022
4022
|
if (q.label && (Me = [q.label]), Pt(q) && (Me = [q.linkContent.props.children]), q.iconName) {
|
|
4023
4023
|
const at = /* @__PURE__ */ e.createElement(P, { key: `icon-${B}`, iconName: q.iconName, iconSize: "md" });
|
|
@@ -4037,7 +4037,7 @@ const rs = [
|
|
|
4037
4037
|
id: Ve,
|
|
4038
4038
|
key: Ve,
|
|
4039
4039
|
"data-testid": q.testId,
|
|
4040
|
-
className:
|
|
4040
|
+
className: Et ? `${k}__item-focused` : null,
|
|
4041
4041
|
role: "menuitem",
|
|
4042
4042
|
tabIndex: -1,
|
|
4043
4043
|
onClick: Le,
|
|
@@ -4053,7 +4053,7 @@ const rs = [
|
|
|
4053
4053
|
Ne !== ge ? (ue.push(Ne), Ce + 1 === q.length && X.push(ue)) : (X.push(ue), ue = [], ue.push(Ne), ge = oe.shift());
|
|
4054
4054
|
}), X.filter((Ne) => Ne.length > 0);
|
|
4055
4055
|
}, It = (q) => {
|
|
4056
|
-
ee.current = [],
|
|
4056
|
+
ee.current = [], Ee.current = [];
|
|
4057
4057
|
const oe = q, X = q.filter(
|
|
4058
4058
|
At || Rt
|
|
4059
4059
|
), ge = X.length > 0;
|
|
@@ -4066,7 +4066,7 @@ const rs = [
|
|
|
4066
4066
|
let Ce = ae.current[0];
|
|
4067
4067
|
const Ve = Ne[0].findIndex(
|
|
4068
4068
|
(Me) => !Rt(Me) && !At(Me)
|
|
4069
|
-
),
|
|
4069
|
+
), Et = `${Z}-group-${Ce}-item-${Ve + 1}`;
|
|
4070
4070
|
return /* @__PURE__ */ e.createElement(
|
|
4071
4071
|
"div",
|
|
4072
4072
|
{
|
|
@@ -4075,13 +4075,13 @@ const rs = [
|
|
|
4075
4075
|
role: "menu",
|
|
4076
4076
|
tabIndex: -1,
|
|
4077
4077
|
"aria-labelledby": Z,
|
|
4078
|
-
"aria-activedescendant": Q !== "" ? Q :
|
|
4078
|
+
"aria-activedescendant": Q !== "" ? Q : Et,
|
|
4079
4079
|
style: {
|
|
4080
4080
|
visibility: D ? "visible" : "hidden",
|
|
4081
4081
|
opacity: D ? "1" : "0",
|
|
4082
4082
|
transition: "opacity 300ms ease-in-out 0s",
|
|
4083
4083
|
position: x,
|
|
4084
|
-
transform: `translate(${Math.round(
|
|
4084
|
+
transform: `translate(${Math.round(E)}px,${Math.round(b)}px)`,
|
|
4085
4085
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
4086
4086
|
},
|
|
4087
4087
|
onKeyDown: ze,
|
|
@@ -4123,7 +4123,7 @@ const rs = [
|
|
|
4123
4123
|
opacity: D ? "1" : "0",
|
|
4124
4124
|
transition: "opacity 300ms ease-in-out 0s",
|
|
4125
4125
|
position: x,
|
|
4126
|
-
transform: `translate(${Math.round(
|
|
4126
|
+
transform: `translate(${Math.round(E)}px,${Math.round(b)}px)`
|
|
4127
4127
|
},
|
|
4128
4128
|
onKeyDown: ze,
|
|
4129
4129
|
ref: w
|
|
@@ -4151,7 +4151,7 @@ const rs = [
|
|
|
4151
4151
|
"aria-expanded": D,
|
|
4152
4152
|
onClick: ce,
|
|
4153
4153
|
onKeyDown: ke,
|
|
4154
|
-
ref:
|
|
4154
|
+
ref: C
|
|
4155
4155
|
}
|
|
4156
4156
|
)), a === "icon-only" && (tt = /* @__PURE__ */ e.createElement(
|
|
4157
4157
|
mt,
|
|
@@ -4169,7 +4169,7 @@ const rs = [
|
|
|
4169
4169
|
"aria-expanded": D,
|
|
4170
4170
|
onClick: ce,
|
|
4171
4171
|
onKeyDown: ke,
|
|
4172
|
-
ref:
|
|
4172
|
+
ref: C,
|
|
4173
4173
|
hasTooltip: !1
|
|
4174
4174
|
}
|
|
4175
4175
|
)), (a === "avatar" || a === "avatar-with-text") && (tt = /* @__PURE__ */ e.createElement(
|
|
@@ -4185,7 +4185,7 @@ const rs = [
|
|
|
4185
4185
|
"aria-expanded": D,
|
|
4186
4186
|
onClick: ce,
|
|
4187
4187
|
onKeyDown: ke,
|
|
4188
|
-
ref:
|
|
4188
|
+
ref: C
|
|
4189
4189
|
},
|
|
4190
4190
|
/* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(ut, { size: "sm", imageSrc: t || V }), a === "avatar-with-text" && l),
|
|
4191
4191
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4236,7 +4236,7 @@ const rs = [
|
|
|
4236
4236
|
return /* @__PURE__ */ e.createElement(
|
|
4237
4237
|
"span",
|
|
4238
4238
|
y({
|
|
4239
|
-
className: [k, A, I, bt,
|
|
4239
|
+
className: [k, A, I, bt, _].join(" ").trim().replace(/\s+/g, " "),
|
|
4240
4240
|
"data-testid": h,
|
|
4241
4241
|
ref: T
|
|
4242
4242
|
}, $),
|
|
@@ -4282,10 +4282,10 @@ Is.propTypes = {
|
|
|
4282
4282
|
*/
|
|
4283
4283
|
menuItems: s.arrayOf(
|
|
4284
4284
|
s.oneOfType([
|
|
4285
|
-
|
|
4285
|
+
E1,
|
|
4286
4286
|
ws,
|
|
4287
4287
|
Ns,
|
|
4288
|
-
|
|
4288
|
+
_1,
|
|
4289
4289
|
v1
|
|
4290
4290
|
])
|
|
4291
4291
|
),
|
|
@@ -4330,7 +4330,7 @@ const Ss = ({ items: t, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
4330
4330
|
open: c,
|
|
4331
4331
|
onOpenChange: r,
|
|
4332
4332
|
whileElementsMounted: qe
|
|
4333
|
-
}), p = Je(u, { event: "mousedown" }), f = Se(u),
|
|
4333
|
+
}), p = Je(u, { event: "mousedown" }), f = Se(u), _ = Te(u, { role: "menu" });
|
|
4334
4334
|
let $;
|
|
4335
4335
|
m ? $ = vt(u, {
|
|
4336
4336
|
enabled: !1
|
|
@@ -4342,12 +4342,12 @@ const Ss = ({ items: t, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
4342
4342
|
enabled: !0
|
|
4343
4343
|
})
|
|
4344
4344
|
});
|
|
4345
|
-
const { getReferenceProps: g, getFloatingProps:
|
|
4345
|
+
const { getReferenceProps: g, getFloatingProps: v } = Oe([
|
|
4346
4346
|
f,
|
|
4347
|
-
|
|
4347
|
+
_,
|
|
4348
4348
|
p,
|
|
4349
4349
|
$
|
|
4350
|
-
]),
|
|
4350
|
+
]), E = (b) => !!(b.isActive || b.linkContent && b.linkContent.props.className && b.linkContent.props.className.includes("pds-isActive"));
|
|
4351
4351
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4352
4352
|
"button",
|
|
4353
4353
|
y({
|
|
@@ -4361,13 +4361,13 @@ const Ss = ({ items: t, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
4361
4361
|
y({
|
|
4362
4362
|
className: `${d}__dropdown`,
|
|
4363
4363
|
ref: h.setFloating
|
|
4364
|
-
},
|
|
4365
|
-
t.map((b,
|
|
4364
|
+
}, v()),
|
|
4365
|
+
t.map((b, C) => /* @__PURE__ */ e.createElement(
|
|
4366
4366
|
"li",
|
|
4367
4367
|
{
|
|
4368
|
-
key:
|
|
4368
|
+
key: C,
|
|
4369
4369
|
role: b.isSeparator ? "separator" : "menuitem",
|
|
4370
|
-
className: `${d}__item ${b.isSeparator ? `${d}__dropdown--separator` : `${d}__item--second-level`} ${
|
|
4370
|
+
className: `${d}__item ${b.isSeparator ? `${d}__dropdown--separator` : `${d}__item--second-level`} ${E(b) ? `${d}__item--active` : null}`
|
|
4371
4371
|
},
|
|
4372
4372
|
!b.isSeparator && b.linkContent
|
|
4373
4373
|
))
|
|
@@ -4392,27 +4392,27 @@ const q1 = (l) => {
|
|
|
4392
4392
|
"mobileMenuMaxWidth",
|
|
4393
4393
|
"className"
|
|
4394
4394
|
]);
|
|
4395
|
-
const [m, d] = R(1025), [h, u] = R(null), [p, f] = R(-1), [
|
|
4395
|
+
const [m, d] = R(1025), [h, u] = R(null), [p, f] = R(-1), [_, $] = R(null), [g, v] = R({
|
|
4396
4396
|
containerChildren: []
|
|
4397
4397
|
});
|
|
4398
|
-
ie(() => (d(window.innerWidth), window.addEventListener("resize",
|
|
4399
|
-
window.removeEventListener("resize",
|
|
4398
|
+
ie(() => (d(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
4399
|
+
window.removeEventListener("resize", E);
|
|
4400
4400
|
}), []);
|
|
4401
|
-
const
|
|
4401
|
+
const E = () => {
|
|
4402
4402
|
d(window.innerWidth);
|
|
4403
4403
|
}, b = m <= c;
|
|
4404
4404
|
ie(() => {
|
|
4405
4405
|
g.containerChildren[h] && (g.containerChildren[h].classList.contains(
|
|
4406
4406
|
"pds-nav-menu__dropdown--separator"
|
|
4407
|
-
) &&
|
|
4407
|
+
) && _ == "down" ? u(h + 1) : g.containerChildren[h].classList.contains(
|
|
4408
4408
|
"pds-nav-menu__dropdown--separator"
|
|
4409
|
-
) &&
|
|
4409
|
+
) && _ == "up" ? u(h - 1) : g.containerChildren[h].children[0].focus());
|
|
4410
4410
|
}, [h]), ie(() => {
|
|
4411
4411
|
p != -1 && (H.current[p].children[0].blur(), H.current[p].children[0].focus({
|
|
4412
4412
|
focusVisible: !0
|
|
4413
4413
|
}));
|
|
4414
4414
|
}, [p]);
|
|
4415
|
-
const
|
|
4415
|
+
const C = "pds-nav-menu", w = n !== "default" ? `${C}--${n}` : "", x = b ? `${C}--isMobile` : `${C}--notMobile`, H = se([]), M = (z) => {
|
|
4416
4416
|
const O = H.current.length - 1, F = {
|
|
4417
4417
|
ArrowRight: () => {
|
|
4418
4418
|
u(-1), f(p === -1 ? 1 : p === O ? 0 : p + 1);
|
|
@@ -4424,7 +4424,7 @@ const q1 = (l) => {
|
|
|
4424
4424
|
var G, T, D, W;
|
|
4425
4425
|
$("down");
|
|
4426
4426
|
let j = z.target.parentNode.children[1], Z = ((T = (G = z.target) == null ? void 0 : G.parentNode.children[1]) == null ? void 0 : T.children) || ((W = (D = z.target) == null ? void 0 : D.parentNode.parentNode.children[1]) == null ? void 0 : W.children);
|
|
4427
|
-
g.container != j && j != null &&
|
|
4427
|
+
g.container != j && j != null && v({
|
|
4428
4428
|
container: j,
|
|
4429
4429
|
containerChildren: [...Z]
|
|
4430
4430
|
}), h === null || h == g.containerChildren.length - 1 ? u(0) : u(parseInt(h) + 1);
|
|
@@ -4454,7 +4454,7 @@ const q1 = (l) => {
|
|
|
4454
4454
|
key: `${O}-dropdown`,
|
|
4455
4455
|
id: k,
|
|
4456
4456
|
ref: (I) => H.current[O] = I,
|
|
4457
|
-
className: `${
|
|
4457
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-children ${N(z) === !0 ? `${C}__item--active` : ""}`
|
|
4458
4458
|
},
|
|
4459
4459
|
/* @__PURE__ */ e.createElement(
|
|
4460
4460
|
Ss,
|
|
@@ -4472,7 +4472,7 @@ const q1 = (l) => {
|
|
|
4472
4472
|
key: O,
|
|
4473
4473
|
id: k,
|
|
4474
4474
|
ref: (I) => H.current[O] = I,
|
|
4475
|
-
className: `${
|
|
4475
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-link ${N(z) === !0 ? `${C}__item--active` : ""}`
|
|
4476
4476
|
},
|
|
4477
4477
|
z.linkContent
|
|
4478
4478
|
)
|
|
@@ -4480,13 +4480,13 @@ const q1 = (l) => {
|
|
|
4480
4480
|
}), /* @__PURE__ */ e.createElement(
|
|
4481
4481
|
"nav",
|
|
4482
4482
|
y({
|
|
4483
|
-
className: [
|
|
4483
|
+
className: [C, w, x, r].join(" ").trim().replace(/\s+/g, " "),
|
|
4484
4484
|
"aria-label": t,
|
|
4485
4485
|
onKeyDown: (z) => {
|
|
4486
4486
|
M(z);
|
|
4487
4487
|
}
|
|
4488
4488
|
}, o),
|
|
4489
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
4489
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${C}__menu` }, L)
|
|
4490
4490
|
);
|
|
4491
4491
|
};
|
|
4492
4492
|
q1.propTypes = {
|
|
@@ -4876,12 +4876,12 @@ const qt = {
|
|
|
4876
4876
|
),
|
|
4877
4877
|
o && /* @__PURE__ */ e.createElement("div", { className: `${u}__summary` }, o)
|
|
4878
4878
|
),
|
|
4879
|
-
r && r.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, r.map((f,
|
|
4879
|
+
r && r.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, r.map((f, _) => {
|
|
4880
4880
|
const $ = f.type;
|
|
4881
4881
|
return /* @__PURE__ */ e.createElement(
|
|
4882
4882
|
$,
|
|
4883
4883
|
y({
|
|
4884
|
-
key:
|
|
4884
|
+
key: _,
|
|
4885
4885
|
className: `${u}__link`
|
|
4886
4886
|
}, f.props),
|
|
4887
4887
|
f.props.children,
|
|
@@ -4990,8 +4990,8 @@ Os.propTypes = {
|
|
|
4990
4990
|
pages: s.arrayOf(s.shape({ link: s.string })).isRequired,
|
|
4991
4991
|
headingId: s.string
|
|
4992
4992
|
};
|
|
4993
|
-
const Ds = (
|
|
4994
|
-
var
|
|
4993
|
+
const Ds = (v) => {
|
|
4994
|
+
var E = v, {
|
|
4995
4995
|
defaultValue: t,
|
|
4996
4996
|
disabled: n,
|
|
4997
4997
|
id: a,
|
|
@@ -5009,9 +5009,9 @@ const Ds = (C) => {
|
|
|
5009
5009
|
required: u = !1,
|
|
5010
5010
|
showLabel: p = !0,
|
|
5011
5011
|
validationMessage: f,
|
|
5012
|
-
validationStatus:
|
|
5012
|
+
validationStatus: _,
|
|
5013
5013
|
className: $
|
|
5014
|
-
} =
|
|
5014
|
+
} = E, g = S(E, [
|
|
5015
5015
|
"defaultValue",
|
|
5016
5016
|
"disabled",
|
|
5017
5017
|
"id",
|
|
@@ -5029,14 +5029,14 @@ const Ds = (C) => {
|
|
|
5029
5029
|
"validationStatus",
|
|
5030
5030
|
"className"
|
|
5031
5031
|
]);
|
|
5032
|
-
var
|
|
5032
|
+
var Ee;
|
|
5033
5033
|
const b = h.findIndex(
|
|
5034
5034
|
(me) => me.value === t
|
|
5035
|
-
), [
|
|
5035
|
+
), [C, w] = R(!1), [x, H] = R(null), [M, N] = R(b != null ? b : null), L = "pds-select", z = n ? te.disabled : null, O = u && !n ? te.required : null, V = _ === "error" ? te.error : null, k = _ === "success" ? te.success : null;
|
|
5036
5036
|
let I = null;
|
|
5037
|
-
|
|
5037
|
+
_ === "error" && (I = "error"), _ === "success" && (I = "success");
|
|
5038
5038
|
const A = ht(c), B = f || l, F = se([]), { context: j, refs: Z } = Ie({
|
|
5039
|
-
open:
|
|
5039
|
+
open: C,
|
|
5040
5040
|
onOpenChange: w,
|
|
5041
5041
|
whileElementsMounted: qe
|
|
5042
5042
|
}), G = Je(j, {
|
|
@@ -5067,7 +5067,7 @@ const Ds = (C) => {
|
|
|
5067
5067
|
}), de = (me) => {
|
|
5068
5068
|
const re = h[me];
|
|
5069
5069
|
N(me), w(!1), d && d(re);
|
|
5070
|
-
}, ae = M !== null ? (
|
|
5070
|
+
}, ae = M !== null ? (Ee = h[M]) == null ? void 0 : Ee.label : void 0, ee = h.map((me, re) => /* @__PURE__ */ e.createElement(
|
|
5071
5071
|
Ms,
|
|
5072
5072
|
y({
|
|
5073
5073
|
key: re,
|
|
@@ -5145,7 +5145,7 @@ const Ds = (C) => {
|
|
|
5145
5145
|
message: B,
|
|
5146
5146
|
hasValidationMessage: !!f,
|
|
5147
5147
|
validationMessageHasDecorators: !1,
|
|
5148
|
-
validationStatus:
|
|
5148
|
+
validationStatus: _
|
|
5149
5149
|
}
|
|
5150
5150
|
)
|
|
5151
5151
|
);
|
|
@@ -5167,11 +5167,11 @@ const Ds = (C) => {
|
|
|
5167
5167
|
}, Xe = (c) => {
|
|
5168
5168
|
var r = c, { arrowText: t = null, direction: n } = r, a = S(r, ["arrowText", "direction"]);
|
|
5169
5169
|
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: m, pages: d } = we(it), h = Kt(
|
|
5170
|
-
(g,
|
|
5171
|
-
o && (g.preventDefault(), o(
|
|
5170
|
+
(g, v) => {
|
|
5171
|
+
o && (g.preventDefault(), o(v));
|
|
5172
5172
|
},
|
|
5173
5173
|
[o, l]
|
|
5174
|
-
), { title: u, rel: p, srText: f, icon:
|
|
5174
|
+
), { title: u, rel: p, srText: f, icon: _, keyModifier: $ } = F1[n];
|
|
5175
5175
|
return /* @__PURE__ */ e.createElement(
|
|
5176
5176
|
"li",
|
|
5177
5177
|
y({
|
|
@@ -5188,7 +5188,7 @@ const Ds = (C) => {
|
|
|
5188
5188
|
}
|
|
5189
5189
|
},
|
|
5190
5190
|
n === "right" && t ? /* @__PURE__ */ e.createElement("span", null, t) : null,
|
|
5191
|
-
/* @__PURE__ */ e.createElement(P, { iconName:
|
|
5191
|
+
/* @__PURE__ */ e.createElement(P, { iconName: _, classes: "pds-page__icon" }),
|
|
5192
5192
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f),
|
|
5193
5193
|
n === "left" && t ? /* @__PURE__ */ e.createElement("span", null, t) : null
|
|
5194
5194
|
)
|
|
@@ -5382,8 +5382,8 @@ const U1 = (n) => {
|
|
|
5382
5382
|
pageDirection: d,
|
|
5383
5383
|
pages: h
|
|
5384
5384
|
} = we(it), u = Kt(
|
|
5385
|
-
(f,
|
|
5386
|
-
a && (f.preventDefault(), a(
|
|
5385
|
+
(f, _) => {
|
|
5386
|
+
a && (f.preventDefault(), a(_));
|
|
5387
5387
|
},
|
|
5388
5388
|
[a, c]
|
|
5389
5389
|
), [p] = R(h);
|
|
@@ -5413,7 +5413,7 @@ const U1 = (n) => {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
},
|
|
5415
5415
|
"First"
|
|
5416
|
-
)), /* @__PURE__ */ e.createElement(Xe, { direction: "left" })) : null, o.map((f,
|
|
5416
|
+
)), /* @__PURE__ */ e.createElement(Xe, { direction: "left" })) : null, o.map((f, _) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${_}` }, /* @__PURE__ */ e.createElement(Rs, y({ index: _, page: f }, t)))), c < m - 1 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Xe, { 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(
|
|
5417
5417
|
"a",
|
|
5418
5418
|
{
|
|
5419
5419
|
href: p[p.length - 1].link,
|
|
@@ -5576,64 +5576,64 @@ const X1 = {
|
|
|
5576
5576
|
"statusBadgeType",
|
|
5577
5577
|
"className"
|
|
5578
5578
|
]);
|
|
5579
|
-
const
|
|
5580
|
-
|
|
5579
|
+
const _ = "pds-pricing-card", $ = `${_}-container`, g = a ? `${$}--with-list` : null, v = d ? `${_}--${d}` : null, E = (k) => k.toLowerCase().replace(/\s/g, "-"), b = l && l.length > 1, [C, w] = R(
|
|
5580
|
+
E(l[0].label)
|
|
5581
5581
|
), [x, H] = R(
|
|
5582
5582
|
t.label
|
|
5583
5583
|
);
|
|
5584
5584
|
let M = null, N = null;
|
|
5585
|
-
b || (M = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5585
|
+
b || (M = /* @__PURE__ */ e.createElement("div", { className: `${_}__pricing-data` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, l[0].price), l[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, l[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, l[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
5586
5586
|
$t,
|
|
5587
5587
|
{
|
|
5588
|
-
className: `${
|
|
5588
|
+
className: `${_}__savings-badge`,
|
|
5589
5589
|
color: "neutral",
|
|
5590
5590
|
size: "sm",
|
|
5591
5591
|
label: l[0].savingsBadgeLabel
|
|
5592
5592
|
}
|
|
5593
|
-
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
5593
|
+
), l[0].savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__savings-details` }, l[0].savingsDetails))), N = /* @__PURE__ */ e.createElement(
|
|
5594
5594
|
is,
|
|
5595
5595
|
{
|
|
5596
|
-
className: `${
|
|
5596
|
+
className: `${_}__list`,
|
|
5597
5597
|
listLabel: l[0].listLabel,
|
|
5598
5598
|
listItems: l[0].listItems,
|
|
5599
5599
|
renderTypeLabels: !1
|
|
5600
5600
|
}
|
|
5601
5601
|
)), b && (M = l.map((k) => {
|
|
5602
|
-
const A =
|
|
5602
|
+
const A = C === E(k.label) ? null : `${_}__pricing-data--hide`;
|
|
5603
5603
|
return /* @__PURE__ */ e.createElement(
|
|
5604
5604
|
"div",
|
|
5605
5605
|
{
|
|
5606
|
-
className: [`${
|
|
5607
|
-
id: `data-${
|
|
5608
|
-
key:
|
|
5606
|
+
className: [`${_}__pricing-data`, A].join(" ").trim().replace(/\s+/g, " "),
|
|
5607
|
+
id: `data-${E(k.label)}`,
|
|
5608
|
+
key: E(k.label)
|
|
5609
5609
|
},
|
|
5610
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5611
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5610
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${_}__price` }, k.price), k.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__details` }, k.priceDetails)),
|
|
5611
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__savings-line` }, k.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
5612
5612
|
$t,
|
|
5613
5613
|
{
|
|
5614
|
-
className: `${
|
|
5614
|
+
className: `${_}__savings-badge`,
|
|
5615
5615
|
color: "neutral",
|
|
5616
5616
|
size: "sm",
|
|
5617
5617
|
label: k.savingsBadgeLabel
|
|
5618
5618
|
}
|
|
5619
|
-
), k.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${
|
|
5619
|
+
), k.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${_}__savings-details` }, k.savingsDetails))
|
|
5620
5620
|
);
|
|
5621
5621
|
}), N = l.map((k) => {
|
|
5622
|
-
const A =
|
|
5622
|
+
const A = C === E(k.label) ? null : `${_}__list--hide`;
|
|
5623
5623
|
return /* @__PURE__ */ e.createElement(
|
|
5624
5624
|
is,
|
|
5625
5625
|
{
|
|
5626
|
-
className: [`${
|
|
5626
|
+
className: [`${_}__list`, A].join(" ").trim().replace(/\s+/g, " "),
|
|
5627
5627
|
listLabel: k.listLabel,
|
|
5628
5628
|
listItems: k.listItems,
|
|
5629
5629
|
renderTypeLabels: !1,
|
|
5630
|
-
key: `${
|
|
5630
|
+
key: `${E(k.label)}-list`
|
|
5631
5631
|
}
|
|
5632
5632
|
);
|
|
5633
5633
|
}));
|
|
5634
5634
|
const L = (k) => {
|
|
5635
5635
|
const I = l.find(
|
|
5636
|
-
(A) =>
|
|
5636
|
+
(A) => E(A.label) === k
|
|
5637
5637
|
);
|
|
5638
5638
|
return I.customActionLabel ? I.customActionLabel : t.label;
|
|
5639
5639
|
};
|
|
@@ -5642,14 +5642,14 @@ const X1 = {
|
|
|
5642
5642
|
Ds,
|
|
5643
5643
|
{
|
|
5644
5644
|
id: "plan-select",
|
|
5645
|
-
className: `${
|
|
5645
|
+
className: `${_}__select`,
|
|
5646
5646
|
label: m,
|
|
5647
5647
|
showLabel: !1,
|
|
5648
5648
|
options: l.map((k) => ({
|
|
5649
|
-
value:
|
|
5649
|
+
value: E(k.label),
|
|
5650
5650
|
label: k.label
|
|
5651
5651
|
})),
|
|
5652
|
-
defaultValue:
|
|
5652
|
+
defaultValue: E(l[0].label),
|
|
5653
5653
|
onOptionSelect: (k) => {
|
|
5654
5654
|
w(k.value), H(L(k.value)), c && c(k.value);
|
|
5655
5655
|
}
|
|
@@ -5700,19 +5700,19 @@ const X1 = {
|
|
|
5700
5700
|
/* @__PURE__ */ e.createElement(
|
|
5701
5701
|
"div",
|
|
5702
5702
|
{
|
|
5703
|
-
className: [
|
|
5703
|
+
className: [_, v].join(" ").trim().replace(/\s+/g, " ")
|
|
5704
5704
|
},
|
|
5705
5705
|
d && /* @__PURE__ */ e.createElement(
|
|
5706
5706
|
Qt,
|
|
5707
5707
|
{
|
|
5708
|
-
className: `${
|
|
5708
|
+
className: `${_}__status-badge`,
|
|
5709
5709
|
type: d,
|
|
5710
5710
|
label: i[d],
|
|
5711
5711
|
color: d === "mostPopular" ? "reverse" : "neutral"
|
|
5712
5712
|
}
|
|
5713
5713
|
),
|
|
5714
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5715
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5714
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__main-content` }, o && /* @__PURE__ */ e.createElement("div", { className: `${_}__plan pds-overline-text` }, o), M, r && /* @__PURE__ */ e.createElement("div", { className: `${_}__description` }, r), z),
|
|
5715
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__actions` }, t && O, t && n && V)
|
|
5716
5716
|
),
|
|
5717
5717
|
a && N
|
|
5718
5718
|
);
|
|
@@ -5825,8 +5825,8 @@ const J1 = (u) => {
|
|
|
5825
5825
|
"required",
|
|
5826
5826
|
"className"
|
|
5827
5827
|
]);
|
|
5828
|
-
const f = "pds-radio-group", [
|
|
5829
|
-
$(
|
|
5828
|
+
const f = "pds-radio-group", [_, $] = R(a), g = (v) => {
|
|
5829
|
+
$(v.target.value), l && l(v.target.value);
|
|
5830
5830
|
};
|
|
5831
5831
|
return /* @__PURE__ */ e.createElement(
|
|
5832
5832
|
gt,
|
|
@@ -5841,26 +5841,26 @@ const J1 = (u) => {
|
|
|
5841
5841
|
message: o,
|
|
5842
5842
|
required: m
|
|
5843
5843
|
}, h),
|
|
5844
|
-
/* @__PURE__ */ e.createElement("div", { className: [f].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, i.map((
|
|
5844
|
+
/* @__PURE__ */ e.createElement("div", { className: [f].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, i.map((v, E) => /* @__PURE__ */ e.createElement(
|
|
5845
5845
|
"div",
|
|
5846
5846
|
{
|
|
5847
5847
|
className: `${f}__option`,
|
|
5848
|
-
key: `${n}-option-${
|
|
5848
|
+
key: `${n}-option-${E}`
|
|
5849
5849
|
},
|
|
5850
5850
|
/* @__PURE__ */ e.createElement(
|
|
5851
5851
|
"input",
|
|
5852
5852
|
{
|
|
5853
5853
|
type: "radio",
|
|
5854
|
-
id: `${n}-option-${
|
|
5854
|
+
id: `${n}-option-${E}`,
|
|
5855
5855
|
name: n,
|
|
5856
|
-
value:
|
|
5856
|
+
value: v.value,
|
|
5857
5857
|
required: m,
|
|
5858
|
-
disabled: t ||
|
|
5858
|
+
disabled: t || v.disabled,
|
|
5859
5859
|
onClick: g,
|
|
5860
|
-
defaultChecked:
|
|
5860
|
+
defaultChecked: _ === v.value
|
|
5861
5861
|
}
|
|
5862
5862
|
),
|
|
5863
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
5863
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${E}` }, v.label)
|
|
5864
5864
|
))))
|
|
5865
5865
|
);
|
|
5866
5866
|
};
|
|
@@ -5949,7 +5949,7 @@ const e2 = (d) => {
|
|
|
5949
5949
|
const u = "pds-site-card", p = `${t}`;
|
|
5950
5950
|
let f = "";
|
|
5951
5951
|
l === "Active" && (f = "success"), l === "Frozen" && (f = "frozen");
|
|
5952
|
-
const
|
|
5952
|
+
const _ = /* @__PURE__ */ e.createElement(
|
|
5953
5953
|
Qt,
|
|
5954
5954
|
{
|
|
5955
5955
|
label: l,
|
|
@@ -5964,7 +5964,7 @@ const e2 = (d) => {
|
|
|
5964
5964
|
className: [u, i].join(" ").trim().replace(/\s+/g, " ")
|
|
5965
5965
|
}, c.props), m),
|
|
5966
5966
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__image` }, /* @__PURE__ */ e.createElement("img", { src: a, alt: "" })),
|
|
5967
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${u}__heading` }, /* @__PURE__ */ e.createElement(p, { className: `${u}__site-name pds-ts-l`, title: r }, r),
|
|
5967
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${u}__heading` }, /* @__PURE__ */ e.createElement(p, { className: `${u}__site-name pds-ts-l`, title: r }, r), _), /* @__PURE__ */ e.createElement("div", { className: `${u}__plan` }, o))
|
|
5968
5968
|
);
|
|
5969
5969
|
};
|
|
5970
5970
|
e2.propTypes = {
|
|
@@ -6020,13 +6020,13 @@ const t2 = (o) => {
|
|
|
6020
6020
|
"legalLinks",
|
|
6021
6021
|
"className"
|
|
6022
6022
|
]);
|
|
6023
|
-
const i = "pds-site-footer", m = t && t !== "default" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), u = a.includes("dataSubjectRequest"), p = a.includes("cookiePolicy"), f = a.includes("termsOfUse"),
|
|
6023
|
+
const i = "pds-site-footer", m = t && t !== "default" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), u = a.includes("dataSubjectRequest"), p = a.includes("cookiePolicy"), f = a.includes("termsOfUse"), _ = a.includes("acceptableUse"), $ = a.includes("accessibilityStatement");
|
|
6024
6024
|
return /* @__PURE__ */ e.createElement(
|
|
6025
6025
|
"footer",
|
|
6026
6026
|
y({
|
|
6027
6027
|
className: [i, c].join(" ").trim().replace(/\s+/g, " ")
|
|
6028
6028
|
}, r),
|
|
6029
|
-
/* @__PURE__ */ e.createElement("div", { className: m }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", d, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), p && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"),
|
|
6029
|
+
/* @__PURE__ */ e.createElement("div", { className: m }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", d, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), p && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), _ && /* @__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")))
|
|
6030
6030
|
);
|
|
6031
6031
|
};
|
|
6032
6032
|
t2.propTypes = {
|
|
@@ -6202,10 +6202,10 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6202
6202
|
"size",
|
|
6203
6203
|
"className"
|
|
6204
6204
|
]);
|
|
6205
|
-
const u = t || We(), p = "pds-progress-ring", f = r ? `${p}__label` : "visually-hidden",
|
|
6206
|
-
let g = $(l2),
|
|
6207
|
-
l === "sm" && (g = $(a2),
|
|
6208
|
-
const
|
|
6205
|
+
const u = t || We(), p = "pds-progress-ring", f = r ? `${p}__label` : "visually-hidden", _ = `${p}__loading-text ${p}__loading-text--${l}`, $ = (H) => H * 16;
|
|
6206
|
+
let g = $(l2), v = 7;
|
|
6207
|
+
l === "sm" && (g = $(a2), v = v / 1.25), l === "lg" && (g = $(c2), v = v * 1.25);
|
|
6208
|
+
const E = g / 2 - v / 2, b = `${E / 100}rem`, C = 2 * Math.PI * E, w = C - C * c / 100;
|
|
6209
6209
|
let x;
|
|
6210
6210
|
return n ? x = n : o ? x = `${c}%` : x = "", /* @__PURE__ */ e.createElement(
|
|
6211
6211
|
"div",
|
|
@@ -6213,7 +6213,7 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6213
6213
|
className: [p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
6214
6214
|
style: {
|
|
6215
6215
|
"--ring-stroke-dashoffset": w,
|
|
6216
|
-
"--ring-stroke-dasharray":
|
|
6216
|
+
"--ring-stroke-dasharray": C
|
|
6217
6217
|
}
|
|
6218
6218
|
}, m),
|
|
6219
6219
|
/* @__PURE__ */ e.createElement("div", { id: u, className: f }, a),
|
|
@@ -6238,8 +6238,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6238
6238
|
className: `${p}__track`,
|
|
6239
6239
|
cx: g / 2,
|
|
6240
6240
|
cy: g / 2,
|
|
6241
|
-
r:
|
|
6242
|
-
strokeWidth:
|
|
6241
|
+
r: E,
|
|
6242
|
+
strokeWidth: v
|
|
6243
6243
|
}
|
|
6244
6244
|
),
|
|
6245
6245
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6248,9 +6248,9 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6248
6248
|
className: `${p}__progress`,
|
|
6249
6249
|
cx: g / 2,
|
|
6250
6250
|
cy: g / 2,
|
|
6251
|
-
r:
|
|
6252
|
-
strokeWidth:
|
|
6253
|
-
strokeDasharray:
|
|
6251
|
+
r: E,
|
|
6252
|
+
strokeWidth: v,
|
|
6253
|
+
strokeDasharray: C,
|
|
6254
6254
|
strokeDashoffset: w,
|
|
6255
6255
|
transform: `rotate(-90 ${g / 2} ${g / 2})`
|
|
6256
6256
|
}
|
|
@@ -6258,7 +6258,7 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6258
6258
|
/* @__PURE__ */ e.createElement(
|
|
6259
6259
|
"text",
|
|
6260
6260
|
{
|
|
6261
|
-
className:
|
|
6261
|
+
className: _,
|
|
6262
6262
|
fill: "var(--pds-color-text-default)",
|
|
6263
6263
|
x: "50%",
|
|
6264
6264
|
y: "50%",
|
|
@@ -6285,8 +6285,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6285
6285
|
"translatableLabels",
|
|
6286
6286
|
"className"
|
|
6287
6287
|
]);
|
|
6288
|
-
const l = "pds-stepper", i = "pds-stepper-mobile", m = se(), [d] = Ht(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40, f = 2,
|
|
6289
|
-
const w =
|
|
6288
|
+
const l = "pds-stepper", i = "pds-stepper-mobile", m = se(), [d] = Ht(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40, f = 2, _ = 5, $ = t.length, g = t.findLastIndex((b) => b.isCurrent), v = t.map((b, C) => {
|
|
6289
|
+
const w = C + 1, x = C === g, H = C < g, M = b.hasError && x, L = (h - $ * u) / ($ + ($ - 2)), z = u + L * 2, O = u + L, V = L + p * -1, k = C === 0, I = C === $ - 1;
|
|
6290
6290
|
let A = z;
|
|
6291
6291
|
(k || I) && (A = O);
|
|
6292
6292
|
const B = `${l}__step`, F = [B];
|
|
@@ -6347,8 +6347,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6347
6347
|
}
|
|
6348
6348
|
)
|
|
6349
6349
|
);
|
|
6350
|
-
}),
|
|
6351
|
-
const w =
|
|
6350
|
+
}), E = t.map((b, C) => {
|
|
6351
|
+
const w = C + 1, x = C === g, H = C === $ - 1, M = b.hasError && x, N = t[g + 1] ? t[g + 1].label : null;
|
|
6352
6352
|
if (x) {
|
|
6353
6353
|
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), w, " of ", $), z = w / $ * 100, O = M ? {
|
|
6354
6354
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
@@ -6383,21 +6383,21 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6383
6383
|
);
|
|
6384
6384
|
}
|
|
6385
6385
|
});
|
|
6386
|
-
if ($ >= f && $ <=
|
|
6386
|
+
if ($ >= f && $ <= _)
|
|
6387
6387
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6388
6388
|
"div",
|
|
6389
6389
|
y({
|
|
6390
6390
|
className: [l, a].join(" ").trim().replace(/\s+/g, " "),
|
|
6391
6391
|
"data-steps": $
|
|
6392
6392
|
}, c),
|
|
6393
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m },
|
|
6393
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m }, v)
|
|
6394
6394
|
), /* @__PURE__ */ e.createElement(
|
|
6395
6395
|
"div",
|
|
6396
6396
|
y({
|
|
6397
6397
|
className: [i, a].join(" ").trim().replace(/\s+/g, " "),
|
|
6398
6398
|
"data-steps": $
|
|
6399
6399
|
}, c),
|
|
6400
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__steps` },
|
|
6400
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__steps` }, E)
|
|
6401
6401
|
));
|
|
6402
6402
|
};
|
|
6403
6403
|
o2.propTypes = {
|
|
@@ -6445,22 +6445,22 @@ o2.propTypes = {
|
|
|
6445
6445
|
const i2 = (r) => {
|
|
6446
6446
|
var o = r, { headers: t, rowData: n, className: a } = o, c = S(o, ["headers", "rowData", "className"]);
|
|
6447
6447
|
const [l] = R(t), [i, m] = R(n), [d, h] = R({ order: "asc", key: "" }), u = (g) => {
|
|
6448
|
-
m(i.sort((
|
|
6448
|
+
m(i.sort((v, E) => v[g].localeCompare(E[g]))), h({ order: "desc", key: g });
|
|
6449
6449
|
}, p = (g) => {
|
|
6450
|
-
m(i.sort((
|
|
6451
|
-
}, f = (g,
|
|
6452
|
-
h(fe(y({}, d), { key:
|
|
6453
|
-
},
|
|
6450
|
+
m(i.sort((v, E) => E[g].localeCompare(v[g]))), h({ order: "asc", key: g });
|
|
6451
|
+
}, f = (g, v) => {
|
|
6452
|
+
h(fe(y({}, d), { key: v })), d.order === "asc" ? u(v) : p(v);
|
|
6453
|
+
}, _ = (g, v) => /* @__PURE__ */ e.createElement("tr", { id: v, key: `table-row-${v}` }, g.map((E, b) => /* @__PURE__ */ e.createElement("td", { key: `${v}-cell-${b}` }, /* @__PURE__ */ e.createElement("span", null, E)))), $ = "pds-table";
|
|
6454
6454
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6455
6455
|
"table",
|
|
6456
6456
|
y({
|
|
6457
6457
|
className: [$, a].join(" ").trim().replace(/\s+/g, " ")
|
|
6458
6458
|
}, c),
|
|
6459
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g,
|
|
6459
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g, v) => /* @__PURE__ */ e.createElement("th", { key: `header-${v}` }, g.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${$}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6460
6460
|
"span",
|
|
6461
6461
|
{
|
|
6462
6462
|
className: `${$}__sort-header`,
|
|
6463
|
-
onClick: (
|
|
6463
|
+
onClick: (E) => f(E, v)
|
|
6464
6464
|
},
|
|
6465
6465
|
g.title
|
|
6466
6466
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -6468,24 +6468,24 @@ const i2 = (r) => {
|
|
|
6468
6468
|
{
|
|
6469
6469
|
className: `${$}__sort-button`,
|
|
6470
6470
|
title: `Sort by ${g.title}`,
|
|
6471
|
-
onClick: (
|
|
6471
|
+
onClick: (E) => f(E, v)
|
|
6472
6472
|
},
|
|
6473
6473
|
/* @__PURE__ */ e.createElement(
|
|
6474
6474
|
"span",
|
|
6475
6475
|
{
|
|
6476
|
-
className: `${$}__sort-button-top ${
|
|
6476
|
+
className: `${$}__sort-button-top ${v != d.key && d.key !== "" ? "pds-table__sort-innactive" : d.key == v ? d.order : "asc"}`
|
|
6477
6477
|
},
|
|
6478
6478
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretUp", iconSize: "sm" })
|
|
6479
6479
|
),
|
|
6480
6480
|
/* @__PURE__ */ e.createElement(
|
|
6481
6481
|
"span",
|
|
6482
6482
|
{
|
|
6483
|
-
className: `${$}__sort-button-bottom ${d.key ==
|
|
6483
|
+
className: `${$}__sort-button-bottom ${d.key == v ? d.order : "asc"}`
|
|
6484
6484
|
},
|
|
6485
6485
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "sm" })
|
|
6486
6486
|
)
|
|
6487
6487
|
)) : /* @__PURE__ */ e.createElement("span", null, g.title))))),
|
|
6488
|
-
/* @__PURE__ */ e.createElement("tbody", null, i.map((g,
|
|
6488
|
+
/* @__PURE__ */ e.createElement("tbody", null, i.map((g, v) => _(g, v)))
|
|
6489
6489
|
));
|
|
6490
6490
|
};
|
|
6491
6491
|
i2.propTypes = {
|
|
@@ -6534,11 +6534,11 @@ const d2 = (d) => {
|
|
|
6534
6534
|
"=",
|
|
6535
6535
|
"|",
|
|
6536
6536
|
"~"
|
|
6537
|
-
],
|
|
6537
|
+
], _ = `#${l} h2:not(.${r}), h3:not(.${r})`, $ = () => {
|
|
6538
6538
|
const [N, L] = R([]);
|
|
6539
6539
|
return ie(() => {
|
|
6540
6540
|
const z = Array.from(
|
|
6541
|
-
document.querySelectorAll(
|
|
6541
|
+
document.querySelectorAll(_)
|
|
6542
6542
|
);
|
|
6543
6543
|
z.map((V) => {
|
|
6544
6544
|
f.forEach((k) => {
|
|
@@ -6560,7 +6560,7 @@ const d2 = (d) => {
|
|
|
6560
6560
|
title: O
|
|
6561
6561
|
});
|
|
6562
6562
|
}), L;
|
|
6563
|
-
}, { nestedHeadings:
|
|
6563
|
+
}, { nestedHeadings: v } = $(), [E, b] = R();
|
|
6564
6564
|
((N) => {
|
|
6565
6565
|
const L = se({});
|
|
6566
6566
|
ie(() => {
|
|
@@ -6583,7 +6583,7 @@ const d2 = (d) => {
|
|
|
6583
6583
|
}, O = new IntersectionObserver(z, {
|
|
6584
6584
|
rootMargin: "0px 0px -20% 0px"
|
|
6585
6585
|
}), V = Array.from(
|
|
6586
|
-
document.querySelectorAll(
|
|
6586
|
+
document.querySelectorAll(_)
|
|
6587
6587
|
);
|
|
6588
6588
|
return V.forEach((k) => O.observe(k)), () => O.disconnect();
|
|
6589
6589
|
}, [N]);
|
|
@@ -6600,7 +6600,7 @@ const d2 = (d) => {
|
|
|
6600
6600
|
}, M = ({ headings: N }) => /* @__PURE__ */ e.createElement("ul", { className: `${u}__list ${u}__list--top-level` }, N.map((L) => /* @__PURE__ */ e.createElement("li", { key: L.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
6601
6601
|
"a",
|
|
6602
6602
|
{
|
|
6603
|
-
className: L.id ===
|
|
6603
|
+
className: L.id === E ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
6604
6604
|
href: `#${L.id}`,
|
|
6605
6605
|
onClick: (z) => {
|
|
6606
6606
|
H(z, L.id);
|
|
@@ -6615,7 +6615,7 @@ const d2 = (d) => {
|
|
|
6615
6615
|
L.items.map((z) => /* @__PURE__ */ e.createElement("li", { key: z.id, className: `${u}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
6616
6616
|
"a",
|
|
6617
6617
|
{
|
|
6618
|
-
className: z.id ===
|
|
6618
|
+
className: z.id === E ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
6619
6619
|
href: `#${z.id}`,
|
|
6620
6620
|
onClick: (O) => {
|
|
6621
6621
|
H(O, z.id);
|
|
@@ -6639,7 +6639,7 @@ const d2 = (d) => {
|
|
|
6639
6639
|
},
|
|
6640
6640
|
c
|
|
6641
6641
|
),
|
|
6642
|
-
/* @__PURE__ */ e.createElement(M, { headings:
|
|
6642
|
+
/* @__PURE__ */ e.createElement(M, { headings: v, activeID: E })
|
|
6643
6643
|
);
|
|
6644
6644
|
};
|
|
6645
6645
|
d2.propTypes = {
|
|
@@ -6699,31 +6699,31 @@ const U2 = (m) => {
|
|
|
6699
6699
|
ie(() => {
|
|
6700
6700
|
c !== void 0 && f(c);
|
|
6701
6701
|
}, [c]);
|
|
6702
|
-
const
|
|
6703
|
-
const b =
|
|
6702
|
+
const _ = (E) => {
|
|
6703
|
+
const b = E.currentTarget.getAttribute("data-tabnumber");
|
|
6704
6704
|
if (b) {
|
|
6705
|
-
const
|
|
6706
|
-
f(
|
|
6705
|
+
const C = parseInt(b, 10);
|
|
6706
|
+
f(C);
|
|
6707
6707
|
}
|
|
6708
6708
|
}, $ = se([]);
|
|
6709
6709
|
ie(() => {
|
|
6710
6710
|
t(p);
|
|
6711
6711
|
}, [p, t]), ie(() => {
|
|
6712
|
-
const
|
|
6713
|
-
if (p >
|
|
6712
|
+
const E = $.current.length - 1;
|
|
6713
|
+
if (p > E) {
|
|
6714
6714
|
f(0);
|
|
6715
6715
|
return;
|
|
6716
6716
|
} else if (p < 0) {
|
|
6717
|
-
f(
|
|
6717
|
+
f(E);
|
|
6718
6718
|
return;
|
|
6719
6719
|
}
|
|
6720
6720
|
}, [p]);
|
|
6721
|
-
const g = (
|
|
6722
|
-
const
|
|
6723
|
-
let w = $.current[b === "next" ?
|
|
6724
|
-
w || (w = b == "next" ? $.current[
|
|
6725
|
-
},
|
|
6726
|
-
const b = $.current.length,
|
|
6721
|
+
const g = (E, b) => {
|
|
6722
|
+
const C = p;
|
|
6723
|
+
let w = $.current[b === "next" ? C + 1 < $.current.length ? C + 1 : 0 : C - 1 >= 0 ? C - 1 : $.current.length - 1];
|
|
6724
|
+
w || (w = b == "next" ? $.current[E + 1] == null ? $.current[0] : $.current[E + 1] : $.current[E - 1]), w.focus();
|
|
6725
|
+
}, v = (E) => {
|
|
6726
|
+
const b = $.current.length, C = () => {
|
|
6727
6727
|
g((p + 1) % b, "next"), f(p + 1);
|
|
6728
6728
|
}, w = () => {
|
|
6729
6729
|
g((p - 1 + b) % b, "prev"), f(p - 1);
|
|
@@ -6734,14 +6734,14 @@ const U2 = (m) => {
|
|
|
6734
6734
|
}, M = () => {
|
|
6735
6735
|
$.current[p].focus();
|
|
6736
6736
|
}, L = {
|
|
6737
|
-
ArrowRight:
|
|
6737
|
+
ArrowRight: C,
|
|
6738
6738
|
ArrowLeft: w,
|
|
6739
6739
|
Home: x,
|
|
6740
6740
|
End: H,
|
|
6741
6741
|
Space: M,
|
|
6742
6742
|
Enter: M
|
|
6743
|
-
}[
|
|
6744
|
-
L && (
|
|
6743
|
+
}[E.code];
|
|
6744
|
+
L && (E.preventDefault(), L());
|
|
6745
6745
|
};
|
|
6746
6746
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6747
6747
|
"div",
|
|
@@ -6756,28 +6756,28 @@ const U2 = (m) => {
|
|
|
6756
6756
|
"aria-label": n,
|
|
6757
6757
|
"aria-orientation": "horizontal"
|
|
6758
6758
|
},
|
|
6759
|
-
o.map(({ disabled:
|
|
6759
|
+
o.map(({ disabled: E, icon: b, tabId: C, tabLabel: w }, x) => /* @__PURE__ */ e.createElement(
|
|
6760
6760
|
"button",
|
|
6761
6761
|
{
|
|
6762
6762
|
className: `${h}__tab`,
|
|
6763
6763
|
"aria-selected": x == p,
|
|
6764
6764
|
"data-tabnumber": x,
|
|
6765
6765
|
role: "tab",
|
|
6766
|
-
id:
|
|
6766
|
+
id: C,
|
|
6767
6767
|
onKeyDown: (H) => {
|
|
6768
|
-
H.preventDefault(),
|
|
6768
|
+
H.preventDefault(), v(H);
|
|
6769
6769
|
},
|
|
6770
6770
|
key: w,
|
|
6771
|
-
ref: (H) =>
|
|
6771
|
+
ref: (H) => E ? null : $.current[x] = H,
|
|
6772
6772
|
"aria-controls": `tabpanel_${x}`,
|
|
6773
6773
|
tabIndex: p === x ? 1 : -1,
|
|
6774
|
-
"aria-disabled": !!
|
|
6775
|
-
onClick:
|
|
6774
|
+
"aria-disabled": !!E,
|
|
6775
|
+
onClick: E ? null : _
|
|
6776
6776
|
},
|
|
6777
6777
|
/* @__PURE__ */ e.createElement("div", { key: b, className: `${h}__tab-text` }, b ? /* @__PURE__ */ e.createElement(P, { iconName: b, iconSize: r }) : null, " ", w)
|
|
6778
6778
|
))
|
|
6779
6779
|
),
|
|
6780
|
-
o.map(({ tabLabel:
|
|
6780
|
+
o.map(({ tabLabel: E, icon: b, disabled: C, panelContent: w }, x) => /* @__PURE__ */ e.createElement(
|
|
6781
6781
|
"div",
|
|
6782
6782
|
y({
|
|
6783
6783
|
className: `${h}__panel`,
|
|
@@ -6793,14 +6793,14 @@ const U2 = (m) => {
|
|
|
6793
6793
|
"aria-selected": x == p,
|
|
6794
6794
|
role: "tab",
|
|
6795
6795
|
"data-tabnumber": x,
|
|
6796
|
-
key:
|
|
6797
|
-
onKeyDown:
|
|
6798
|
-
"aria-disabled": !!
|
|
6796
|
+
key: E,
|
|
6797
|
+
onKeyDown: v,
|
|
6798
|
+
"aria-disabled": !!C,
|
|
6799
6799
|
"aria-controls": `tabpanel_${x}`,
|
|
6800
6800
|
tabIndex: p === x ? 1 : -1,
|
|
6801
|
-
onClick:
|
|
6801
|
+
onClick: C ? null : _
|
|
6802
6802
|
},
|
|
6803
|
-
/* @__PURE__ */ e.createElement("div", { key: b, className: `${h}__tab-text` }, b ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: b }) : null, " ",
|
|
6803
|
+
/* @__PURE__ */ e.createElement("div", { key: b, className: `${h}__tab-text` }, b ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: b }) : null, " ", E),
|
|
6804
6804
|
x == p ? /* @__PURE__ */ e.createElement(
|
|
6805
6805
|
P,
|
|
6806
6806
|
{
|
|
@@ -7122,7 +7122,7 @@ const h2 = (i) => {
|
|
|
7122
7122
|
"onChange",
|
|
7123
7123
|
"options"
|
|
7124
7124
|
]);
|
|
7125
|
-
const d = "pds-toggle-button", h = "pds-is-disabled", u = se([d]), [p, f] = R(a),
|
|
7125
|
+
const d = "pds-toggle-button", h = "pds-is-disabled", u = se([d]), [p, f] = R(a), _ = (g) => {
|
|
7126
7126
|
f(g.target.value), r && r(g.target.value);
|
|
7127
7127
|
};
|
|
7128
7128
|
if ((() => {
|
|
@@ -7135,26 +7135,26 @@ const h2 = (i) => {
|
|
|
7135
7135
|
id: n
|
|
7136
7136
|
}, l),
|
|
7137
7137
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
7138
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((g,
|
|
7138
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((g, v) => /* @__PURE__ */ e.createElement(
|
|
7139
7139
|
"div",
|
|
7140
7140
|
{
|
|
7141
7141
|
className: `${d}__option`,
|
|
7142
|
-
key: `${n}-option-${
|
|
7142
|
+
key: `${n}-option-${v}`
|
|
7143
7143
|
},
|
|
7144
7144
|
/* @__PURE__ */ e.createElement(
|
|
7145
7145
|
"input",
|
|
7146
7146
|
{
|
|
7147
7147
|
className: "visually-hidden",
|
|
7148
7148
|
type: "radio",
|
|
7149
|
-
id: `${n}-option-${
|
|
7149
|
+
id: `${n}-option-${v}`,
|
|
7150
7150
|
name: n,
|
|
7151
7151
|
value: g.value,
|
|
7152
7152
|
disabled: t,
|
|
7153
|
-
onClick:
|
|
7153
|
+
onClick: _,
|
|
7154
7154
|
defaultChecked: p === g.value
|
|
7155
7155
|
}
|
|
7156
7156
|
),
|
|
7157
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
7157
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` }, g.iconName && /* @__PURE__ */ e.createElement(
|
|
7158
7158
|
P,
|
|
7159
7159
|
{
|
|
7160
7160
|
iconName: g.iconName,
|
|
@@ -7212,7 +7212,7 @@ h2.propTypes = {
|
|
|
7212
7212
|
className: s.string
|
|
7213
7213
|
};
|
|
7214
7214
|
const g2 = (f) => {
|
|
7215
|
-
var
|
|
7215
|
+
var _ = f, {
|
|
7216
7216
|
disabled: t = !1,
|
|
7217
7217
|
id: n,
|
|
7218
7218
|
inputWidth: a,
|
|
@@ -7225,7 +7225,7 @@ const g2 = (f) => {
|
|
|
7225
7225
|
statusOnLabel: d = "On",
|
|
7226
7226
|
statusOffLabel: h = "Off",
|
|
7227
7227
|
className: u
|
|
7228
|
-
} =
|
|
7228
|
+
} = _, p = S(_, [
|
|
7229
7229
|
"disabled",
|
|
7230
7230
|
"id",
|
|
7231
7231
|
"inputWidth",
|
|
@@ -7239,11 +7239,11 @@ const g2 = (f) => {
|
|
|
7239
7239
|
"statusOffLabel",
|
|
7240
7240
|
"className"
|
|
7241
7241
|
]);
|
|
7242
|
-
const $ = "pds-toggle-switch", [g,
|
|
7243
|
-
|
|
7242
|
+
const $ = "pds-toggle-switch", [g, v] = R(!1), E = (w) => {
|
|
7243
|
+
v(!g), o && o(w.target);
|
|
7244
7244
|
};
|
|
7245
|
-
let b = g === !0 ? d : h,
|
|
7246
|
-
return m ?
|
|
7245
|
+
let b = g === !0 ? d : h, C;
|
|
7246
|
+
return m ? C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
7247
7247
|
"span",
|
|
7248
7248
|
{
|
|
7249
7249
|
className: "pds-toggle__label pds-toggle__label--on",
|
|
@@ -7257,7 +7257,7 @@ const g2 = (f) => {
|
|
|
7257
7257
|
"aria-hidden": "true"
|
|
7258
7258
|
},
|
|
7259
7259
|
h
|
|
7260
|
-
)) :
|
|
7260
|
+
)) : C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
7261
7261
|
P,
|
|
7262
7262
|
{
|
|
7263
7263
|
iconName: "check",
|
|
@@ -7293,9 +7293,9 @@ const g2 = (f) => {
|
|
|
7293
7293
|
role: "switch",
|
|
7294
7294
|
disabled: t,
|
|
7295
7295
|
"aria-checked": g,
|
|
7296
|
-
onClick:
|
|
7296
|
+
onClick: E
|
|
7297
7297
|
},
|
|
7298
|
-
|
|
7298
|
+
C
|
|
7299
7299
|
))
|
|
7300
7300
|
);
|
|
7301
7301
|
};
|
|
@@ -7384,13 +7384,13 @@ const G2 = () => {
|
|
|
7384
7384
|
onBlur: u,
|
|
7385
7385
|
onChange: p,
|
|
7386
7386
|
onClear: f,
|
|
7387
|
-
onFocus:
|
|
7387
|
+
onFocus: _,
|
|
7388
7388
|
placeholder: $,
|
|
7389
7389
|
readonly: g = !1,
|
|
7390
|
-
required:
|
|
7391
|
-
showLabel:
|
|
7390
|
+
required: v = !1,
|
|
7391
|
+
showLabel: E = !0,
|
|
7392
7392
|
showVisibilityToggle: b = !1,
|
|
7393
|
-
translationStrings:
|
|
7393
|
+
translationStrings: C = {
|
|
7394
7394
|
clearButton: "Clear input text",
|
|
7395
7395
|
counterOverLimit: "Character limit exceeded by",
|
|
7396
7396
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7431,7 +7431,7 @@ const G2 = () => {
|
|
|
7431
7431
|
"value",
|
|
7432
7432
|
"className"
|
|
7433
7433
|
]);
|
|
7434
|
-
const k = ht(m), I = "pds-text-input", A = c ? te.disabled : null, B =
|
|
7434
|
+
const k = ht(m), I = "pds-text-input", A = c ? te.disabled : null, B = v && !c ? te.required : null, F = H === "error" ? te.error : null, j = H === "success" ? te.success : null, Z = g ? te.readonly : null;
|
|
7435
7435
|
let G = null;
|
|
7436
7436
|
w === "search" && (G = "search"), H === "error" && (G = "error"), H === "success" && (G = "success");
|
|
7437
7437
|
const T = x || h, D = typeof M != "undefined", W = typeof a != "undefined", [U, ne] = R(
|
|
@@ -7444,7 +7444,7 @@ const G2 = () => {
|
|
|
7444
7444
|
D || ne(""), f && f();
|
|
7445
7445
|
const re = document.getElementById(l);
|
|
7446
7446
|
re && re.focus();
|
|
7447
|
-
}, [ae, ee] = R(!1),
|
|
7447
|
+
}, [ae, ee] = R(!1), Ee = () => {
|
|
7448
7448
|
ee((Y) => !Y);
|
|
7449
7449
|
const re = document.getElementById(l);
|
|
7450
7450
|
re && re.focus();
|
|
@@ -7470,12 +7470,12 @@ const G2 = () => {
|
|
|
7470
7470
|
{
|
|
7471
7471
|
id: l,
|
|
7472
7472
|
label: d,
|
|
7473
|
-
showLabel:
|
|
7474
|
-
required:
|
|
7473
|
+
showLabel: E,
|
|
7474
|
+
required: v,
|
|
7475
7475
|
disabled: c
|
|
7476
7476
|
}
|
|
7477
7477
|
),
|
|
7478
|
-
b && w === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${
|
|
7478
|
+
b && w === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${C.visibilityStatus} ${ae ? "visible" : "hidden"}.`),
|
|
7479
7479
|
/* @__PURE__ */ e.createElement("div", { className: `${I}__input-wrapper` }, G && /* @__PURE__ */ e.createElement(Mt, { variant: G }), /* @__PURE__ */ e.createElement(
|
|
7480
7480
|
"input",
|
|
7481
7481
|
y({
|
|
@@ -7488,11 +7488,11 @@ const G2 = () => {
|
|
|
7488
7488
|
placeholder: $,
|
|
7489
7489
|
readOnly: g,
|
|
7490
7490
|
disabled: c,
|
|
7491
|
-
required:
|
|
7491
|
+
required: v,
|
|
7492
7492
|
autoComplete: w === "password" ? "off" : t,
|
|
7493
7493
|
onBlur: be,
|
|
7494
7494
|
onChange: J,
|
|
7495
|
-
onFocus:
|
|
7495
|
+
onFocus: _,
|
|
7496
7496
|
"aria-invalid": H === "error" ? !0 : null,
|
|
7497
7497
|
"aria-describedby": T ? `${l}__message` : null
|
|
7498
7498
|
}, i)
|
|
@@ -7500,7 +7500,7 @@ const G2 = () => {
|
|
|
7500
7500
|
Hs,
|
|
7501
7501
|
{
|
|
7502
7502
|
id: l,
|
|
7503
|
-
clearLabel:
|
|
7503
|
+
clearLabel: C.clearButton,
|
|
7504
7504
|
handleClearInput: de
|
|
7505
7505
|
}
|
|
7506
7506
|
), b && w === "password" && /* @__PURE__ */ e.createElement(
|
|
@@ -7508,9 +7508,9 @@ const G2 = () => {
|
|
|
7508
7508
|
{
|
|
7509
7509
|
type: "button",
|
|
7510
7510
|
className: `${I}__visibility-toggle`,
|
|
7511
|
-
title: ae ?
|
|
7511
|
+
title: ae ? C.visibilityToggleHide : C.visibilityToggleShow,
|
|
7512
7512
|
"aria-controls": l,
|
|
7513
|
-
onClick:
|
|
7513
|
+
onClick: Ee,
|
|
7514
7514
|
onMouseDown: (re) => re.preventDefault()
|
|
7515
7515
|
},
|
|
7516
7516
|
/* @__PURE__ */ e.createElement(P, { iconName: ae ? "eyeSlash" : "eye", iconSize: "md" })
|
|
@@ -7518,7 +7518,7 @@ const G2 = () => {
|
|
|
7518
7518
|
ks,
|
|
7519
7519
|
{
|
|
7520
7520
|
inputId: l,
|
|
7521
|
-
shortcutLabel:
|
|
7521
|
+
shortcutLabel: C.searchShortcut
|
|
7522
7522
|
}
|
|
7523
7523
|
), n && w !== "password" && /* @__PURE__ */ e.createElement(
|
|
7524
7524
|
zs,
|
|
@@ -7526,7 +7526,7 @@ const G2 = () => {
|
|
|
7526
7526
|
id: l,
|
|
7527
7527
|
currentLength: Q.length,
|
|
7528
7528
|
maxLength: n,
|
|
7529
|
-
overLimitMessage:
|
|
7529
|
+
overLimitMessage: C.counterOverLimit
|
|
7530
7530
|
}
|
|
7531
7531
|
)),
|
|
7532
7532
|
T && /* @__PURE__ */ e.createElement(
|
|
@@ -7546,7 +7546,7 @@ const G2 = () => {
|
|
|
7546
7546
|
gold: "Gold",
|
|
7547
7547
|
platinum: "Platinum",
|
|
7548
7548
|
diamond: "Diamond"
|
|
7549
|
-
},
|
|
7549
|
+
}, E2 = (u) => {
|
|
7550
7550
|
var p = u, {
|
|
7551
7551
|
ariaLabel: t = "Workspace selector menu",
|
|
7552
7552
|
createWorkspaceLink: n,
|
|
@@ -7570,13 +7570,13 @@ const G2 = () => {
|
|
|
7570
7570
|
"workspaceList",
|
|
7571
7571
|
"className"
|
|
7572
7572
|
]);
|
|
7573
|
-
const [f,
|
|
7573
|
+
const [f, _] = R(!1), [$, g] = R(null), [v, E] = R(m), b = se([]), C = se(null), w = m.length >= o;
|
|
7574
7574
|
let x = !1;
|
|
7575
7575
|
const H = we(je);
|
|
7576
7576
|
H && (x = H.isMobile);
|
|
7577
7577
|
const M = i && x, N = "pds-workspace-selector", L = M ? `${N}--isMobile` : null, z = `${N}__menu`, O = w ? `${z}--scroll` : null, { refs: V, floatingStyles: k, context: I } = Ie({
|
|
7578
7578
|
open: f,
|
|
7579
|
-
onOpenChange:
|
|
7579
|
+
onOpenChange: _,
|
|
7580
7580
|
whileElementsMounted: qe
|
|
7581
7581
|
}), A = Je(I, { event: "mousedown" }), B = Se(I), F = Te(I, { role: "menu" }), j = pt(I, {
|
|
7582
7582
|
listRef: b,
|
|
@@ -7606,17 +7606,17 @@ const G2 = () => {
|
|
|
7606
7606
|
let U = m.find((Y) => Y.isActive);
|
|
7607
7607
|
U || (U = m[0]);
|
|
7608
7608
|
const ne = (Y) => {
|
|
7609
|
-
const { value:
|
|
7610
|
-
|
|
7609
|
+
const { value: _e } = Y.target, He = m.filter((le) => le.displayName.toLowerCase().includes(_e.toLowerCase()));
|
|
7610
|
+
E(He);
|
|
7611
7611
|
};
|
|
7612
7612
|
ie(() => {
|
|
7613
|
-
const Y = m.map((
|
|
7614
|
-
isActive:
|
|
7613
|
+
const Y = m.map((_e) => fe(y({}, _e), {
|
|
7614
|
+
isActive: _e.isActive
|
|
7615
7615
|
}));
|
|
7616
|
-
|
|
7616
|
+
E(Y);
|
|
7617
7617
|
}, [m]);
|
|
7618
7618
|
const Q = (Y) => {
|
|
7619
|
-
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? w ? document.getElementById("workspace-filter").focus() :
|
|
7619
|
+
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? w ? document.getElementById("workspace-filter").focus() : _(!1) : n ? C.current.querySelector("a").focus() : _(!1));
|
|
7620
7620
|
}, be = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
7621
7621
|
ut,
|
|
7622
7622
|
{
|
|
@@ -7643,7 +7643,7 @@ const G2 = () => {
|
|
|
7643
7643
|
f2,
|
|
7644
7644
|
{
|
|
7645
7645
|
hasClearButton: !0,
|
|
7646
|
-
onClear: () =>
|
|
7646
|
+
onClear: () => E(m),
|
|
7647
7647
|
id: "workspace-filter",
|
|
7648
7648
|
label: c,
|
|
7649
7649
|
onChange: ne,
|
|
@@ -7651,10 +7651,10 @@ const G2 = () => {
|
|
|
7651
7651
|
showLabel: !1,
|
|
7652
7652
|
type: "search"
|
|
7653
7653
|
}
|
|
7654
|
-
)), ae =
|
|
7655
|
-
(Y,
|
|
7654
|
+
)), ae = v.map(
|
|
7655
|
+
(Y, _e) => {
|
|
7656
7656
|
const He = `${N}__item`, le = Y.isActive ? `${He}--active` : null, ce = Y.isUnprivileged ? `${He}--unprivileged` : null, Le = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${N}__active-icon` }), ke = Y.workspaceId, ze = Y.workspaceLink.type, ve = Y.isUnprivileged ? null : (Ze) => {
|
|
7657
|
-
b.current[
|
|
7657
|
+
b.current[_e] = Ze;
|
|
7658
7658
|
};
|
|
7659
7659
|
return /* @__PURE__ */ e.createElement(
|
|
7660
7660
|
"li",
|
|
@@ -7667,14 +7667,14 @@ const G2 = () => {
|
|
|
7667
7667
|
ce
|
|
7668
7668
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
7669
7669
|
role: "menuitem",
|
|
7670
|
-
tabIndex: $ ===
|
|
7670
|
+
tabIndex: $ === _e ? 0 : -1,
|
|
7671
7671
|
ref: ve,
|
|
7672
7672
|
onKeyDown: Q
|
|
7673
7673
|
}, T()),
|
|
7674
7674
|
/* @__PURE__ */ e.createElement(
|
|
7675
7675
|
ze,
|
|
7676
7676
|
fe(y({}, Y.workspaceLink.props), {
|
|
7677
|
-
onClick: () =>
|
|
7677
|
+
onClick: () => _(!1)
|
|
7678
7678
|
}),
|
|
7679
7679
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
7680
7680
|
ut,
|
|
@@ -7689,17 +7689,17 @@ const G2 = () => {
|
|
|
7689
7689
|
)
|
|
7690
7690
|
);
|
|
7691
7691
|
}
|
|
7692
|
-
), ee = n && /* @__PURE__ */ e.createElement("div", { className: `${N}__create-link`, ref:
|
|
7692
|
+
), ee = n && /* @__PURE__ */ e.createElement("div", { className: `${N}__create-link`, ref: C }, /* @__PURE__ */ e.createElement(
|
|
7693
7693
|
rt,
|
|
7694
7694
|
{
|
|
7695
7695
|
displayType: "icon-end",
|
|
7696
7696
|
iconName: "plus",
|
|
7697
7697
|
linkContent: n,
|
|
7698
7698
|
variant: "subtle",
|
|
7699
|
-
onBlur:
|
|
7700
|
-
onClick:
|
|
7699
|
+
onBlur: _.bind(null, !1),
|
|
7700
|
+
onClick: _.bind(null, !1)
|
|
7701
7701
|
}
|
|
7702
|
-
)),
|
|
7702
|
+
)), Ee = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7703
7703
|
"button",
|
|
7704
7704
|
y({
|
|
7705
7705
|
className: `${N}__trigger`,
|
|
@@ -7728,11 +7728,11 @@ const G2 = () => {
|
|
|
7728
7728
|
ae.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${N}__no-results` }, l) : ae
|
|
7729
7729
|
), ee)
|
|
7730
7730
|
)), me = (Y) => {
|
|
7731
|
-
const
|
|
7732
|
-
|
|
7731
|
+
const _e = Y.target;
|
|
7732
|
+
_e.classList.toggle(`${N}__toggle--expanded`), _e.setAttribute(
|
|
7733
7733
|
"aria-expanded",
|
|
7734
|
-
|
|
7735
|
-
),
|
|
7734
|
+
_e.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
7735
|
+
), _e.nextElementSibling.classList.toggle(`${N}__mobile-menu--expanded`);
|
|
7736
7736
|
}, re = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7737
7737
|
"button",
|
|
7738
7738
|
{
|
|
@@ -7757,10 +7757,10 @@ const G2 = () => {
|
|
|
7757
7757
|
y({
|
|
7758
7758
|
className: [N, L, d].join(" ").trim().replace(/\s+/g, " ")
|
|
7759
7759
|
}, h),
|
|
7760
|
-
M ? re :
|
|
7760
|
+
M ? re : Ee
|
|
7761
7761
|
);
|
|
7762
7762
|
};
|
|
7763
|
-
|
|
7763
|
+
E2.propTypes = {
|
|
7764
7764
|
/**
|
|
7765
7765
|
* Aria label for the workspace selector menu.
|
|
7766
7766
|
*/
|
|
@@ -7833,7 +7833,7 @@ _2.propTypes = {
|
|
|
7833
7833
|
*/
|
|
7834
7834
|
className: s.string
|
|
7835
7835
|
};
|
|
7836
|
-
const
|
|
7836
|
+
const _2 = (o) => {
|
|
7837
7837
|
var l = o, {
|
|
7838
7838
|
label: t,
|
|
7839
7839
|
type: n = "neutral",
|
|
@@ -7879,11 +7879,11 @@ const E2 = (o) => {
|
|
|
7879
7879
|
"options",
|
|
7880
7880
|
"className"
|
|
7881
7881
|
]);
|
|
7882
|
-
const h = "pds-segmented-button", u = "pds-is-disabled", p = se([h]), [f,
|
|
7883
|
-
|
|
7882
|
+
const h = "pds-segmented-button", u = "pds-is-disabled", p = se([h]), [f, _] = R(a), $ = (v) => {
|
|
7883
|
+
_(v.target.value), r && r(v.target.value);
|
|
7884
7884
|
};
|
|
7885
7885
|
if ((() => {
|
|
7886
|
-
p.current = p.current.filter((
|
|
7886
|
+
p.current = p.current.filter((v) => v !== u);
|
|
7887
7887
|
})(), t && p.current.push(u), o.length >= 2 && o.length <= 6)
|
|
7888
7888
|
return /* @__PURE__ */ e.createElement(
|
|
7889
7889
|
"fieldset",
|
|
@@ -7891,40 +7891,40 @@ const E2 = (o) => {
|
|
|
7891
7891
|
className: [h, l != null ? l : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
7892
7892
|
}, i),
|
|
7893
7893
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
7894
|
-
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((
|
|
7894
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((v, E) => /* @__PURE__ */ e.createElement(
|
|
7895
7895
|
"div",
|
|
7896
7896
|
{
|
|
7897
7897
|
className: `${h}__option`,
|
|
7898
|
-
key: `${n}-option-${
|
|
7898
|
+
key: `${n}-option-${E}`
|
|
7899
7899
|
},
|
|
7900
7900
|
/* @__PURE__ */ e.createElement(
|
|
7901
7901
|
"input",
|
|
7902
7902
|
{
|
|
7903
7903
|
className: "visually-hidden",
|
|
7904
7904
|
type: "radio",
|
|
7905
|
-
id: `${n}-option-${
|
|
7905
|
+
id: `${n}-option-${E}`,
|
|
7906
7906
|
name: n,
|
|
7907
|
-
value:
|
|
7907
|
+
value: v.value,
|
|
7908
7908
|
disabled: t,
|
|
7909
7909
|
onClick: $,
|
|
7910
|
-
defaultChecked: f ===
|
|
7910
|
+
defaultChecked: f === v.value
|
|
7911
7911
|
}
|
|
7912
7912
|
),
|
|
7913
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
7914
|
-
|
|
7913
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${E}` }, v.tally ? /* @__PURE__ */ e.createElement(
|
|
7914
|
+
_2,
|
|
7915
7915
|
{
|
|
7916
|
-
label:
|
|
7917
|
-
type:
|
|
7916
|
+
label: v.tally.label,
|
|
7917
|
+
type: v.tally.type,
|
|
7918
7918
|
className: `${h}__tally`
|
|
7919
7919
|
}
|
|
7920
|
-
) :
|
|
7920
|
+
) : v.iconName && /* @__PURE__ */ e.createElement(
|
|
7921
7921
|
P,
|
|
7922
7922
|
{
|
|
7923
|
-
iconName:
|
|
7923
|
+
iconName: v.iconName,
|
|
7924
7924
|
iconSize: "sm",
|
|
7925
7925
|
className: `${h}__icon`
|
|
7926
7926
|
}
|
|
7927
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` },
|
|
7927
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, v.label))
|
|
7928
7928
|
)))
|
|
7929
7929
|
);
|
|
7930
7930
|
}, v2 = {
|
|
@@ -7992,18 +7992,18 @@ const E2 = (o) => {
|
|
|
7992
7992
|
const u = "pds-card-select-group";
|
|
7993
7993
|
let p = `${u}__legend`;
|
|
7994
7994
|
c === "center" && (p = `${u}__legend ${u}__legend--center`), c === "hidden" && (p = `${u}__legend visually-hidden`);
|
|
7995
|
-
const [f,
|
|
7996
|
-
|
|
7997
|
-
}, g = l.length,
|
|
7995
|
+
const [f, _] = R(n), $ = (C) => {
|
|
7996
|
+
_(C.currentTarget.value), o && o(C.currentTarget.value);
|
|
7997
|
+
}, g = l.length, v = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", E = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
7998
7998
|
let b = "";
|
|
7999
|
-
return r === "twoAcross" ? b =
|
|
7999
|
+
return r === "twoAcross" ? b = v : r === "threeAcross" ? b = E : r === "auto" && (g % 3 === 0 ? b = E : g % 2 === 0 ? b = v : b = E), /* @__PURE__ */ e.createElement(
|
|
8000
8000
|
"fieldset",
|
|
8001
8001
|
y({
|
|
8002
8002
|
className: [u, i].join(" ").trim().replace(/\s+/g, " "),
|
|
8003
8003
|
id: t
|
|
8004
8004
|
}, m),
|
|
8005
8005
|
/* @__PURE__ */ e.createElement("legend", { className: p }, a),
|
|
8006
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((
|
|
8006
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((C, w) => /* @__PURE__ */ e.createElement(
|
|
8007
8007
|
"div",
|
|
8008
8008
|
{
|
|
8009
8009
|
className: [`${u}__option`, b].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -8015,26 +8015,26 @@ const E2 = (o) => {
|
|
|
8015
8015
|
type: "radio",
|
|
8016
8016
|
id: `${t}-option-${w}`,
|
|
8017
8017
|
name: t,
|
|
8018
|
-
value:
|
|
8018
|
+
value: C.value,
|
|
8019
8019
|
onClick: $,
|
|
8020
|
-
defaultChecked: f ===
|
|
8020
|
+
defaultChecked: f === C.value
|
|
8021
8021
|
}
|
|
8022
8022
|
),
|
|
8023
8023
|
/* @__PURE__ */ e.createElement(
|
|
8024
8024
|
"label",
|
|
8025
8025
|
{
|
|
8026
8026
|
htmlFor: `${t}-option-${w}`,
|
|
8027
|
-
className: f ===
|
|
8027
|
+
className: f === C.value ? `${u}__option-label ${u}__option-label--selected` : `${u}__option-label`
|
|
8028
8028
|
},
|
|
8029
8029
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
8030
8030
|
P,
|
|
8031
8031
|
{
|
|
8032
|
-
iconName: f ===
|
|
8032
|
+
iconName: f === C.value ? "circleCheck" : "circle",
|
|
8033
8033
|
iconSize: "xl",
|
|
8034
|
-
className: f ===
|
|
8034
|
+
className: f === C.value ? `${u}__option-icon ${u}__option-icon--selected` : `${u}__option-icon`
|
|
8035
8035
|
}
|
|
8036
8036
|
)),
|
|
8037
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` },
|
|
8037
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` }, C.label, C.description && /* @__PURE__ */ e.createElement("div", { className: `${u}__option-description` }, C.description))
|
|
8038
8038
|
)
|
|
8039
8039
|
)))
|
|
8040
8040
|
);
|
|
@@ -8055,13 +8055,13 @@ const E2 = (o) => {
|
|
|
8055
8055
|
onBlur: u,
|
|
8056
8056
|
onChange: p,
|
|
8057
8057
|
onFocus: f,
|
|
8058
|
-
required:
|
|
8058
|
+
required: _,
|
|
8059
8059
|
showLabel: $ = !0,
|
|
8060
8060
|
validationMessage: g,
|
|
8061
|
-
validationStatus:
|
|
8062
|
-
value:
|
|
8061
|
+
validationStatus: v,
|
|
8062
|
+
value: E,
|
|
8063
8063
|
className: b
|
|
8064
|
-
} = H,
|
|
8064
|
+
} = H, C = S(H, [
|
|
8065
8065
|
"checked",
|
|
8066
8066
|
"defaultChecked",
|
|
8067
8067
|
"disabled",
|
|
@@ -8083,7 +8083,7 @@ const E2 = (o) => {
|
|
|
8083
8083
|
"value",
|
|
8084
8084
|
"className"
|
|
8085
8085
|
]);
|
|
8086
|
-
const M = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", L = a ? te.disabled : null, z =
|
|
8086
|
+
const M = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", L = a ? te.disabled : null, z = _ && !a ? te.required : null, O = v === "error" ? te.error : null, V = v === "success" ? te.success : null, k = h > 0 ? `${N}--indent-${h}` : null, I = g || m, A = typeof t != "undefined", B = typeof n != "undefined", [F, j] = R(
|
|
8087
8087
|
B ? n : !1
|
|
8088
8088
|
), Z = t || F, G = (ne) => {
|
|
8089
8089
|
A || j(ne.target.checked), p && p(ne);
|
|
@@ -8120,7 +8120,7 @@ const E2 = (o) => {
|
|
|
8120
8120
|
b != null ? b : ""
|
|
8121
8121
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8122
8122
|
style: l ? M : null
|
|
8123
|
-
},
|
|
8123
|
+
}, C),
|
|
8124
8124
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8125
8125
|
"input",
|
|
8126
8126
|
y(fe(y({
|
|
@@ -8130,13 +8130,13 @@ const E2 = (o) => {
|
|
|
8130
8130
|
type: "checkbox",
|
|
8131
8131
|
checked: A ? t : F,
|
|
8132
8132
|
"aria-checked": r ? "mixed" : Z ? "true" : "false"
|
|
8133
|
-
},
|
|
8133
|
+
}, E ? { value: E } : {}), {
|
|
8134
8134
|
disabled: a,
|
|
8135
|
-
required:
|
|
8135
|
+
required: _,
|
|
8136
8136
|
onBlur: u,
|
|
8137
8137
|
onChange: G,
|
|
8138
8138
|
onFocus: f,
|
|
8139
|
-
"aria-invalid":
|
|
8139
|
+
"aria-invalid": v === "error" ? !0 : null,
|
|
8140
8140
|
"aria-describedby": I ? `${c}__message` : null
|
|
8141
8141
|
}), o)
|
|
8142
8142
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: c, className: `${N}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8159,7 +8159,7 @@ const E2 = (o) => {
|
|
|
8159
8159
|
},
|
|
8160
8160
|
i,
|
|
8161
8161
|
" ",
|
|
8162
|
-
|
|
8162
|
+
_ && !a && /* @__PURE__ */ e.createElement(Ut, null)
|
|
8163
8163
|
))),
|
|
8164
8164
|
I && /* @__PURE__ */ e.createElement(
|
|
8165
8165
|
Be,
|
|
@@ -8168,13 +8168,13 @@ const E2 = (o) => {
|
|
|
8168
8168
|
message: I,
|
|
8169
8169
|
hasValidationMessage: !!g,
|
|
8170
8170
|
validationMessageHasDecorators: !0,
|
|
8171
|
-
validationStatus:
|
|
8171
|
+
validationStatus: v
|
|
8172
8172
|
}
|
|
8173
8173
|
)
|
|
8174
8174
|
);
|
|
8175
8175
|
}
|
|
8176
8176
|
), Q2 = (f) => {
|
|
8177
|
-
var
|
|
8177
|
+
var _ = f, {
|
|
8178
8178
|
children: t,
|
|
8179
8179
|
disabled: n = !1,
|
|
8180
8180
|
fieldsetProps: a,
|
|
@@ -8187,7 +8187,7 @@ const E2 = (o) => {
|
|
|
8187
8187
|
validationMessage: d,
|
|
8188
8188
|
validationStatus: h,
|
|
8189
8189
|
className: u
|
|
8190
|
-
} =
|
|
8190
|
+
} = _, p = S(_, [
|
|
8191
8191
|
"children",
|
|
8192
8192
|
"disabled",
|
|
8193
8193
|
"fieldsetProps",
|
|
@@ -8201,16 +8201,16 @@ const E2 = (o) => {
|
|
|
8201
8201
|
"validationStatus",
|
|
8202
8202
|
"className"
|
|
8203
8203
|
]);
|
|
8204
|
-
const $ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group",
|
|
8204
|
+
const $ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group", v = n ? te.disabled : null, E = i && !n ? te.required : null, b = h === "error" ? te.error : null, C = h === "success" ? te.success : null, w = d || l;
|
|
8205
8205
|
return /* @__PURE__ */ e.createElement(
|
|
8206
8206
|
"div",
|
|
8207
8207
|
y({
|
|
8208
8208
|
className: [
|
|
8209
8209
|
g,
|
|
8210
|
-
C,
|
|
8211
|
-
_,
|
|
8212
|
-
b,
|
|
8213
8210
|
v,
|
|
8211
|
+
E,
|
|
8212
|
+
b,
|
|
8213
|
+
C,
|
|
8214
8214
|
u != null ? u : ""
|
|
8215
8215
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8216
8216
|
style: r ? $ : null
|
|
@@ -8253,7 +8253,7 @@ const E2 = (o) => {
|
|
|
8253
8253
|
validationMessage: u,
|
|
8254
8254
|
validationStatus: p,
|
|
8255
8255
|
className: f
|
|
8256
|
-
} = g,
|
|
8256
|
+
} = g, _ = S(g, [
|
|
8257
8257
|
"disabled",
|
|
8258
8258
|
"fieldsetProps",
|
|
8259
8259
|
"id",
|
|
@@ -8269,7 +8269,7 @@ const E2 = (o) => {
|
|
|
8269
8269
|
"validationStatus",
|
|
8270
8270
|
"className"
|
|
8271
8271
|
]);
|
|
8272
|
-
const
|
|
8272
|
+
const v = c ? { width: `${c / 16}rem` } : null, E = "pds-checkbox-group", b = t ? te.disabled : null, C = d && !t ? te.required : null, w = p === "error" ? te.error : null, x = p === "success" ? te.success : null, H = u || o;
|
|
8273
8273
|
m.map((V) => {
|
|
8274
8274
|
V.id || (V.id = V.value);
|
|
8275
8275
|
});
|
|
@@ -8293,16 +8293,16 @@ const E2 = (o) => {
|
|
|
8293
8293
|
"div",
|
|
8294
8294
|
y({
|
|
8295
8295
|
className: [
|
|
8296
|
-
|
|
8296
|
+
E,
|
|
8297
8297
|
b,
|
|
8298
|
-
|
|
8298
|
+
C,
|
|
8299
8299
|
w,
|
|
8300
8300
|
x,
|
|
8301
8301
|
f != null ? f : ""
|
|
8302
8302
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8303
|
-
style: c ?
|
|
8304
|
-
},
|
|
8305
|
-
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${
|
|
8303
|
+
style: c ? v : null
|
|
8304
|
+
}, _),
|
|
8305
|
+
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${E}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
8306
8306
|
et,
|
|
8307
8307
|
{
|
|
8308
8308
|
disabled: t,
|
|
@@ -8312,7 +8312,7 @@ const E2 = (o) => {
|
|
|
8312
8312
|
required: d,
|
|
8313
8313
|
showLabel: h
|
|
8314
8314
|
}
|
|
8315
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8315
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${E}__options` }, m.map((V) => /* @__PURE__ */ e.createElement(
|
|
8316
8316
|
C2,
|
|
8317
8317
|
{
|
|
8318
8318
|
key: V.id,
|
|
@@ -8322,7 +8322,7 @@ const E2 = (o) => {
|
|
|
8322
8322
|
name: V.name,
|
|
8323
8323
|
value: V.value,
|
|
8324
8324
|
disabled: V.disabled || t,
|
|
8325
|
-
className: `${
|
|
8325
|
+
className: `${E}__checkbox`,
|
|
8326
8326
|
onChange: z,
|
|
8327
8327
|
onBlur: O
|
|
8328
8328
|
}
|
|
@@ -8346,8 +8346,8 @@ const E2 = (o) => {
|
|
|
8346
8346
|
"children",
|
|
8347
8347
|
"className"
|
|
8348
8348
|
]);
|
|
8349
|
-
var f,
|
|
8350
|
-
const o = "pds-input-group", l = [t[0], t[1]], i = (f = t[0].props.id) != null ? f : null, m = (
|
|
8349
|
+
var f, _, $, g;
|
|
8350
|
+
const o = "pds-input-group", l = [t[0], t[1]], i = (f = t[0].props.id) != null ? f : null, m = (_ = t[0].props.message) != null ? _ : null, d = ($ = t[0].props.validationMessage) != null ? $ : null, h = (g = t[0].props.validationStatus) != null ? g : null, u = d || m, p = u ? `${o}--has-message` : null;
|
|
8351
8351
|
return /* @__PURE__ */ e.createElement(
|
|
8352
8352
|
"div",
|
|
8353
8353
|
y({
|
|
@@ -8390,8 +8390,8 @@ const E2 = (o) => {
|
|
|
8390
8390
|
},
|
|
8391
8391
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "sm" })
|
|
8392
8392
|
)), tn = Pe(
|
|
8393
|
-
(
|
|
8394
|
-
var b =
|
|
8393
|
+
(E, v) => {
|
|
8394
|
+
var b = E, {
|
|
8395
8395
|
checked: t,
|
|
8396
8396
|
defaultChecked: n,
|
|
8397
8397
|
disabled: a = !1,
|
|
@@ -8406,7 +8406,7 @@ const E2 = (o) => {
|
|
|
8406
8406
|
onLabel: u = "On",
|
|
8407
8407
|
required: p = !1,
|
|
8408
8408
|
showLabel: f = !0,
|
|
8409
|
-
showStatusLabel:
|
|
8409
|
+
showStatusLabel: _ = !0,
|
|
8410
8410
|
className: $
|
|
8411
8411
|
} = b, g = S(b, [
|
|
8412
8412
|
"checked",
|
|
@@ -8426,12 +8426,12 @@ const E2 = (o) => {
|
|
|
8426
8426
|
"showStatusLabel",
|
|
8427
8427
|
"className"
|
|
8428
8428
|
]);
|
|
8429
|
-
const
|
|
8429
|
+
const C = ht(o), w = "pds-switch", x = a ? te.disabled : null, H = p && !a ? te.required : null, M = typeof t != "undefined", N = i == "below", L = i == "right", z = !M && n ? n : !1, [O, V] = R(z), k = t || O ? u : d, I = (G) => {
|
|
8430
8430
|
M || V(G.target.checked), h && h(G);
|
|
8431
8431
|
}, A = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
8432
8432
|
"input",
|
|
8433
8433
|
y({
|
|
8434
|
-
ref:
|
|
8434
|
+
ref: v,
|
|
8435
8435
|
id: c,
|
|
8436
8436
|
name: c,
|
|
8437
8437
|
type: "checkbox",
|
|
@@ -8443,7 +8443,7 @@ const E2 = (o) => {
|
|
|
8443
8443
|
checked: t !== void 0 ? t : O,
|
|
8444
8444
|
"aria-describedby": m ? `${c}__message` : null
|
|
8445
8445
|
}, r)
|
|
8446
|
-
), !
|
|
8446
|
+
), !_ && /* @__PURE__ */ e.createElement(y2, { toggleStatusLabel: k }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), _ && /* @__PURE__ */ e.createElement($2, { toggleStatusLabel: k, id: c })), B = /* @__PURE__ */ e.createElement(
|
|
8447
8447
|
et,
|
|
8448
8448
|
{
|
|
8449
8449
|
id: c,
|
|
@@ -8488,7 +8488,7 @@ const E2 = (o) => {
|
|
|
8488
8488
|
Z,
|
|
8489
8489
|
$
|
|
8490
8490
|
]),
|
|
8491
|
-
style: o ?
|
|
8491
|
+
style: o ? C : null
|
|
8492
8492
|
}, g),
|
|
8493
8493
|
j
|
|
8494
8494
|
);
|
|
@@ -8510,10 +8510,10 @@ const E2 = (o) => {
|
|
|
8510
8510
|
placeholder: u,
|
|
8511
8511
|
readonly: p = !1,
|
|
8512
8512
|
required: f = !1,
|
|
8513
|
-
rows:
|
|
8513
|
+
rows: _ = 5,
|
|
8514
8514
|
showLabel: $,
|
|
8515
8515
|
textareaProps: g,
|
|
8516
|
-
translationStrings:
|
|
8516
|
+
translationStrings: v = {
|
|
8517
8517
|
clearButton: "Clear input text",
|
|
8518
8518
|
counterOverLimit: "Character limit exceeded by",
|
|
8519
8519
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8521,9 +8521,9 @@ const E2 = (o) => {
|
|
|
8521
8521
|
visibilityToggleHide: "Hide input value",
|
|
8522
8522
|
visibilityToggleShow: "Show input value"
|
|
8523
8523
|
},
|
|
8524
|
-
validationMessage:
|
|
8524
|
+
validationMessage: E,
|
|
8525
8525
|
validationStatus: b,
|
|
8526
|
-
value:
|
|
8526
|
+
value: C,
|
|
8527
8527
|
className: w
|
|
8528
8528
|
} = N, x = S(N, [
|
|
8529
8529
|
"counterMaxLength",
|
|
@@ -8549,9 +8549,9 @@ const E2 = (o) => {
|
|
|
8549
8549
|
"value",
|
|
8550
8550
|
"className"
|
|
8551
8551
|
]);
|
|
8552
|
-
const L = ht(r), z = "pds-textarea", O = o ? "pds-is-resizable" : null, V = a ? te.disabled : null, k = f && !a ? te.required : null, I = b === "error" ? te.error : null, A = b === "success" ? te.success : null, B = p ? te.readonly : null, F =
|
|
8552
|
+
const L = ht(r), z = "pds-textarea", O = o ? "pds-is-resizable" : null, V = a ? te.disabled : null, k = f && !a ? te.required : null, I = b === "error" ? te.error : null, A = b === "success" ? te.success : null, B = p ? te.readonly : null, F = E || i, j = C != null && d !== void 0, Z = typeof n != "undefined", [G, T] = R(
|
|
8553
8553
|
Z ? n : ""
|
|
8554
|
-
), D =
|
|
8554
|
+
), D = C || G, W = (ne) => {
|
|
8555
8555
|
j || T(ne.target.value), d && d(ne);
|
|
8556
8556
|
}, U = (ne) => {
|
|
8557
8557
|
m && m(ne);
|
|
@@ -8587,7 +8587,7 @@ const E2 = (o) => {
|
|
|
8587
8587
|
id: c,
|
|
8588
8588
|
currentLength: D.length,
|
|
8589
8589
|
maxLength: t,
|
|
8590
|
-
overLimitMessage:
|
|
8590
|
+
overLimitMessage: v.counterOverLimit
|
|
8591
8591
|
}
|
|
8592
8592
|
)),
|
|
8593
8593
|
/* @__PURE__ */ e.createElement("div", { className: `${z}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8601,8 +8601,8 @@ const E2 = (o) => {
|
|
|
8601
8601
|
required: f,
|
|
8602
8602
|
readOnly: p,
|
|
8603
8603
|
disabled: a,
|
|
8604
|
-
value: j ?
|
|
8605
|
-
rows:
|
|
8604
|
+
value: j ? C : G,
|
|
8605
|
+
rows: _,
|
|
8606
8606
|
onChange: W,
|
|
8607
8607
|
onBlur: U,
|
|
8608
8608
|
onFocus: h,
|
|
@@ -8615,7 +8615,7 @@ const E2 = (o) => {
|
|
|
8615
8615
|
{
|
|
8616
8616
|
id: c,
|
|
8617
8617
|
message: F,
|
|
8618
|
-
hasValidationMessage: !!
|
|
8618
|
+
hasValidationMessage: !!E,
|
|
8619
8619
|
validationMessageHasDecorators: !0,
|
|
8620
8620
|
validationStatus: b
|
|
8621
8621
|
}
|
|
@@ -8643,18 +8643,18 @@ const E2 = (o) => {
|
|
|
8643
8643
|
"title",
|
|
8644
8644
|
"className"
|
|
8645
8645
|
]);
|
|
8646
|
-
const u = "pds-modal", p = o !== "md" ? `${u}--${o}` : null, [f,
|
|
8646
|
+
const u = "pds-modal", p = o !== "md" ? `${u}--${o}` : null, [f, _] = R(c);
|
|
8647
8647
|
ie(() => {
|
|
8648
|
-
|
|
8648
|
+
_(c);
|
|
8649
8649
|
}, [c]), ie(() => {
|
|
8650
8650
|
r(f);
|
|
8651
8651
|
}, [f]);
|
|
8652
|
-
const { refs: $, context: g, floatingStyles:
|
|
8652
|
+
const { refs: $, context: g, floatingStyles: v } = Ie({
|
|
8653
8653
|
open: f,
|
|
8654
|
-
onOpenChange:
|
|
8655
|
-
}),
|
|
8654
|
+
onOpenChange: _
|
|
8655
|
+
}), E = Je(g), b = Se(g, {
|
|
8656
8656
|
outsidePressEvent: "mousedown"
|
|
8657
|
-
}),
|
|
8657
|
+
}), C = Te(g), { getFloatingProps: w } = Oe([E, b, C]), { isMounted: x, styles: H } = Qe(g, {
|
|
8658
8658
|
duration: {
|
|
8659
8659
|
open: 300,
|
|
8660
8660
|
close: 300
|
|
@@ -8676,21 +8676,21 @@ const E2 = (o) => {
|
|
|
8676
8676
|
t1,
|
|
8677
8677
|
{
|
|
8678
8678
|
lockScroll: !0,
|
|
8679
|
-
style: fe(y({},
|
|
8679
|
+
style: fe(y({}, v), {
|
|
8680
8680
|
background: "var(--pds-color-overlay)",
|
|
8681
8681
|
transition: "var(--pds-animation-reveal-transition)",
|
|
8682
8682
|
zIndex: "var(--pds-z-index-modal)",
|
|
8683
8683
|
position: "fixed"
|
|
8684
8684
|
})
|
|
8685
8685
|
},
|
|
8686
|
-
/* @__PURE__ */ e.createElement(
|
|
8686
|
+
/* @__PURE__ */ e.createElement(Es, { context: g }, /* @__PURE__ */ e.createElement(
|
|
8687
8687
|
"div",
|
|
8688
8688
|
y(fe(y({
|
|
8689
8689
|
ref: $.setFloating,
|
|
8690
8690
|
"aria-label": t || l
|
|
8691
8691
|
}, w()), {
|
|
8692
8692
|
className: [u, p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
8693
|
-
style: fe(y(y({},
|
|
8693
|
+
style: fe(y(y({}, v), H), {
|
|
8694
8694
|
position: "relative",
|
|
8695
8695
|
top: "5%"
|
|
8696
8696
|
})
|
|
@@ -8698,7 +8698,7 @@ const E2 = (o) => {
|
|
|
8698
8698
|
a && /* @__PURE__ */ e.createElement(
|
|
8699
8699
|
"button",
|
|
8700
8700
|
{
|
|
8701
|
-
onClick: () =>
|
|
8701
|
+
onClick: () => _(!1),
|
|
8702
8702
|
className: `${u}__close`,
|
|
8703
8703
|
type: "button"
|
|
8704
8704
|
},
|
|
@@ -8788,7 +8788,7 @@ const E2 = (o) => {
|
|
|
8788
8788
|
},
|
|
8789
8789
|
N.linkContent
|
|
8790
8790
|
))
|
|
8791
|
-
), [u, p] = R(!1), { refs: f, floatingStyles:
|
|
8791
|
+
), [u, p] = R(!1), { refs: f, floatingStyles: _, context: $ } = Ie({
|
|
8792
8792
|
placement: "right-start",
|
|
8793
8793
|
open: u,
|
|
8794
8794
|
onOpenChange: p,
|
|
@@ -8797,10 +8797,10 @@ const E2 = (o) => {
|
|
|
8797
8797
|
}), g = vt($, {
|
|
8798
8798
|
move: !1,
|
|
8799
8799
|
handleClose: bs()
|
|
8800
|
-
}),
|
|
8800
|
+
}), v = gs($), E = Se($), b = Te($, { role: "menu" }), { getReferenceProps: C, getFloatingProps: w } = Oe([
|
|
8801
8801
|
g,
|
|
8802
|
-
|
|
8803
|
-
|
|
8802
|
+
v,
|
|
8803
|
+
E,
|
|
8804
8804
|
b
|
|
8805
8805
|
]), x = (H) => {
|
|
8806
8806
|
const M = H.target;
|
|
@@ -8820,7 +8820,7 @@ const E2 = (o) => {
|
|
|
8820
8820
|
n ? `${i}--active` : null
|
|
8821
8821
|
]),
|
|
8822
8822
|
ref: a ? null : f.setReference
|
|
8823
|
-
},
|
|
8823
|
+
}, C()),
|
|
8824
8824
|
o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${i}-wrapper` }, Gt(
|
|
8825
8825
|
l,
|
|
8826
8826
|
r,
|
|
@@ -8843,7 +8843,7 @@ const E2 = (o) => {
|
|
|
8843
8843
|
y({
|
|
8844
8844
|
className: `${l}__flyout`,
|
|
8845
8845
|
ref: f.setFloating,
|
|
8846
|
-
style:
|
|
8846
|
+
style: _
|
|
8847
8847
|
}, w()),
|
|
8848
8848
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__flyout-heading` }, lt(r)),
|
|
8849
8849
|
h(o, "second-level-flyout")
|
|
@@ -8872,7 +8872,7 @@ const E2 = (o) => {
|
|
|
8872
8872
|
"selectTextFallback",
|
|
8873
8873
|
"className"
|
|
8874
8874
|
]);
|
|
8875
|
-
const i = "pds-dropdown-menu", [m, d] = R(!1), [h, u] = R(null), p = Bs(n), f = p ? p.props.children : a,
|
|
8875
|
+
const i = "pds-dropdown-menu", [m, d] = R(!1), [h, u] = R(null), p = Bs(n), f = p ? p.props.children : a, _ = /* @__PURE__ */ e.createElement(
|
|
8876
8876
|
P,
|
|
8877
8877
|
{
|
|
8878
8878
|
iconName: "check",
|
|
@@ -8893,7 +8893,7 @@ const E2 = (o) => {
|
|
|
8893
8893
|
};
|
|
8894
8894
|
}
|
|
8895
8895
|
}, [m]);
|
|
8896
|
-
const
|
|
8896
|
+
const v = ({
|
|
8897
8897
|
item: I,
|
|
8898
8898
|
level: A
|
|
8899
8899
|
}) => fe(y({}, I), {
|
|
@@ -8904,32 +8904,32 @@ const E2 = (o) => {
|
|
|
8904
8904
|
tabIndex: -1
|
|
8905
8905
|
}
|
|
8906
8906
|
)
|
|
8907
|
-
}),
|
|
8907
|
+
}), E = (I) => {
|
|
8908
8908
|
const A = [];
|
|
8909
8909
|
return I.forEach((B) => {
|
|
8910
|
-
B.links ? (A.push(
|
|
8911
|
-
F.links ? (A.push(
|
|
8910
|
+
B.links ? (A.push(v({ item: B, level: "top-level" })), B.links.forEach((F) => {
|
|
8911
|
+
F.links ? (A.push(v({ item: F, level: "second-level" })), F.links.forEach((j) => {
|
|
8912
8912
|
A.push(
|
|
8913
|
-
|
|
8913
|
+
v({ item: j, level: "third-level" })
|
|
8914
8914
|
);
|
|
8915
|
-
})) : A.push(
|
|
8916
|
-
})) : A.push(
|
|
8915
|
+
})) : A.push(v({ item: F, level: "second-level" }));
|
|
8916
|
+
})) : A.push(v({ item: B, level: "top-level" }));
|
|
8917
8917
|
}), A;
|
|
8918
|
-
}, { refs: b, context:
|
|
8918
|
+
}, { refs: b, context: C } = Ie({
|
|
8919
8919
|
placement: "bottom-start",
|
|
8920
8920
|
open: m,
|
|
8921
8921
|
onOpenChange: d,
|
|
8922
8922
|
whileElementsMounted: qe
|
|
8923
|
-
}), w = se([]), x = pt(
|
|
8923
|
+
}), w = se([]), x = pt(C, {
|
|
8924
8924
|
listRef: w,
|
|
8925
8925
|
activeIndex: h,
|
|
8926
8926
|
onNavigate: u,
|
|
8927
8927
|
loop: !0,
|
|
8928
8928
|
openOnArrowKeyDown: !0,
|
|
8929
8929
|
focusItemOnHover: !0
|
|
8930
|
-
}), H = Je(
|
|
8930
|
+
}), H = Je(C, { event: "mousedown" }), M = Se(C), N = Te(C, { role: "menu" }), { getReferenceProps: L, getFloatingProps: z, getItemProps: O } = Oe(
|
|
8931
8931
|
[M, N, H, x]
|
|
8932
|
-
), { isMounted: V, styles: k } = Qe(
|
|
8932
|
+
), { isMounted: V, styles: k } = Qe(C, {
|
|
8933
8933
|
duration: {
|
|
8934
8934
|
open: 300,
|
|
8935
8935
|
close: 300
|
|
@@ -8968,7 +8968,7 @@ const E2 = (o) => {
|
|
|
8968
8968
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8969
8969
|
})
|
|
8970
8970
|
}, z()),
|
|
8971
|
-
|
|
8971
|
+
E(n).map((I, A) => /* @__PURE__ */ e.createElement(
|
|
8972
8972
|
"li",
|
|
8973
8973
|
y({
|
|
8974
8974
|
key: A,
|
|
@@ -8980,7 +8980,7 @@ const E2 = (o) => {
|
|
|
8980
8980
|
}
|
|
8981
8981
|
}, O()),
|
|
8982
8982
|
I.linkContent,
|
|
8983
|
-
I.isActive === !0 &&
|
|
8983
|
+
I.isActive === !0 && _
|
|
8984
8984
|
))
|
|
8985
8985
|
));
|
|
8986
8986
|
}, N2 = /* @__PURE__ */ e.createElement(
|
|
@@ -9340,25 +9340,25 @@ const E2 = (o) => {
|
|
|
9340
9340
|
const h = we(xt);
|
|
9341
9341
|
let u = !0, p = null;
|
|
9342
9342
|
h && (u = h.isSidebarExpanded, p = h.logoLinkContent);
|
|
9343
|
-
const f = "pds-dashboard-nav",
|
|
9343
|
+
const f = "pds-dashboard-nav", _ = u ? `${f}--expanded` : `${f}--collapsed`, $ = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${f}__menu ${f}__menu--top-level` }, a.map((E, b) => /* @__PURE__ */ e.createElement(
|
|
9344
9344
|
w2,
|
|
9345
9345
|
{
|
|
9346
9346
|
key: b,
|
|
9347
|
-
icon:
|
|
9348
|
-
isActive: ye(
|
|
9347
|
+
icon: E.icon,
|
|
9348
|
+
isActive: ye(E),
|
|
9349
9349
|
isSidebarExpanded: u,
|
|
9350
9350
|
labels: n,
|
|
9351
|
-
linkContent:
|
|
9352
|
-
links:
|
|
9351
|
+
linkContent: E.linkContent,
|
|
9352
|
+
links: E.links
|
|
9353
9353
|
}
|
|
9354
|
-
)))), g = a.map((
|
|
9354
|
+
)))), g = a.map((E) => fe(y({}, E), {
|
|
9355
9355
|
linkContent: Gt(
|
|
9356
9356
|
f,
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9357
|
+
E.linkContent,
|
|
9358
|
+
E.links,
|
|
9359
|
+
E.icon
|
|
9360
9360
|
)
|
|
9361
|
-
})),
|
|
9361
|
+
})), v = /* @__PURE__ */ e.createElement(
|
|
9362
9362
|
Jt,
|
|
9363
9363
|
{
|
|
9364
9364
|
menuItems: g,
|
|
@@ -9369,7 +9369,7 @@ const E2 = (o) => {
|
|
|
9369
9369
|
"nav",
|
|
9370
9370
|
y({
|
|
9371
9371
|
"aria-label": t,
|
|
9372
|
-
className: K([f,
|
|
9372
|
+
className: K([f, _, r])
|
|
9373
9373
|
}, o),
|
|
9374
9374
|
!m && /* @__PURE__ */ e.createElement(
|
|
9375
9375
|
js,
|
|
@@ -9379,7 +9379,7 @@ const E2 = (o) => {
|
|
|
9379
9379
|
linkContent: p
|
|
9380
9380
|
}
|
|
9381
9381
|
),
|
|
9382
|
-
m ?
|
|
9382
|
+
m ? v : $
|
|
9383
9383
|
);
|
|
9384
9384
|
}, dt = (r) => {
|
|
9385
9385
|
var o = r, {
|
|
@@ -9428,13 +9428,13 @@ const E2 = (o) => {
|
|
|
9428
9428
|
"translationStrings",
|
|
9429
9429
|
"className"
|
|
9430
9430
|
]);
|
|
9431
|
-
const [
|
|
9431
|
+
const [_, $] = R(!1);
|
|
9432
9432
|
let g = !1;
|
|
9433
|
-
const
|
|
9434
|
-
|
|
9435
|
-
const
|
|
9436
|
-
|
|
9437
|
-
const b = "pds-navbar",
|
|
9433
|
+
const v = we(je);
|
|
9434
|
+
v && (g = v.isMobile);
|
|
9435
|
+
const E = we(xt);
|
|
9436
|
+
E && (l = E.logoLinkContent);
|
|
9437
|
+
const b = "pds-navbar", C = c ? `${b}--noBorder` : "", w = n !== "default" ? `${b}--${n}` : "", x = g ? `${b}--isMobile` : `${b}--notMobile`, H = (T) => {
|
|
9438
9438
|
const D = T.key;
|
|
9439
9439
|
let W = !1;
|
|
9440
9440
|
switch (D) {
|
|
@@ -9448,34 +9448,34 @@ const E2 = (o) => {
|
|
|
9448
9448
|
ie(() => (window.addEventListener("keyup", H), () => {
|
|
9449
9449
|
window.removeEventListener("keyup", H);
|
|
9450
9450
|
}), []);
|
|
9451
|
-
const M = () => $(!
|
|
9451
|
+
const M = () => $(!_), N = Js();
|
|
9452
9452
|
ie(() => {
|
|
9453
9453
|
if (g && t) {
|
|
9454
9454
|
const T = Cs(
|
|
9455
9455
|
document.querySelector(".pds-navbar__mobile")
|
|
9456
9456
|
), D = ["a", "button", "input", "select", "textarea"];
|
|
9457
|
-
|
|
9457
|
+
_ ? T.forEach((W) => {
|
|
9458
9458
|
D.includes(W.nodeName.toLowerCase()) && (W.tabIndex = 0);
|
|
9459
9459
|
}) : T.forEach((W) => {
|
|
9460
9460
|
D.includes(W.nodeName.toLowerCase()) && (W.tabIndex = -1);
|
|
9461
9461
|
});
|
|
9462
9462
|
}
|
|
9463
|
-
}, [
|
|
9463
|
+
}, [_]);
|
|
9464
9464
|
const L = (T) => {
|
|
9465
9465
|
T.target.nodeName === "A" && $(!1);
|
|
9466
9466
|
};
|
|
9467
9467
|
ie(() => {
|
|
9468
|
-
if (
|
|
9468
|
+
if (_) {
|
|
9469
9469
|
const T = document.querySelector(".pds-navbar__bar-mobile"), D = document.querySelector(".pds-navbar__mobile");
|
|
9470
9470
|
return T.addEventListener("click", L), D.addEventListener("click", L), () => {
|
|
9471
9471
|
T.removeEventListener("click", L), D.removeEventListener("click", L);
|
|
9472
9472
|
};
|
|
9473
9473
|
}
|
|
9474
|
-
}, [
|
|
9474
|
+
}, [_]), ie(() => {
|
|
9475
9475
|
g ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
9476
9476
|
}, [g]), ie(() => {
|
|
9477
|
-
|
|
9478
|
-
}, [
|
|
9477
|
+
_ ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
9478
|
+
}, [_]);
|
|
9479
9479
|
const z = Yt(t), O = z["items-left"], V = z["items-right"];
|
|
9480
9480
|
let k = "default";
|
|
9481
9481
|
(n === "reverse" || n === "reverse-transparent") && (k = "reverse");
|
|
@@ -9494,14 +9494,14 @@ const E2 = (o) => {
|
|
|
9494
9494
|
"button",
|
|
9495
9495
|
{
|
|
9496
9496
|
className: `${b}__menu-toggle`,
|
|
9497
|
-
"aria-label":
|
|
9497
|
+
"aria-label": _ ? d.closeMobileNav : d.openMobileNav,
|
|
9498
9498
|
onClick: M
|
|
9499
9499
|
},
|
|
9500
|
-
/* @__PURE__ */ e.createElement(P, { iconName:
|
|
9500
|
+
/* @__PURE__ */ e.createElement(P, { iconName: _ ? "xmark" : "bars", iconSize: "lg" })
|
|
9501
9501
|
), j = /* @__PURE__ */ e.createElement(
|
|
9502
9502
|
"div",
|
|
9503
9503
|
{
|
|
9504
|
-
className:
|
|
9504
|
+
className: _ ? `${b}__mobile ${b}__mobile--open` : `${b}__mobile ${b}__mobile--closed`,
|
|
9505
9505
|
ref: N
|
|
9506
9506
|
},
|
|
9507
9507
|
/* @__PURE__ */ e.createElement(dt, null, O, V)
|
|
@@ -9521,7 +9521,7 @@ const E2 = (o) => {
|
|
|
9521
9521
|
className: K([
|
|
9522
9522
|
b,
|
|
9523
9523
|
w,
|
|
9524
|
-
|
|
9524
|
+
C,
|
|
9525
9525
|
x,
|
|
9526
9526
|
h != null ? h : ""
|
|
9527
9527
|
])
|
|
@@ -9552,19 +9552,19 @@ const E2 = (o) => {
|
|
|
9552
9552
|
"className"
|
|
9553
9553
|
]);
|
|
9554
9554
|
const u = "pds-side-nav", [p, f] = R(1025);
|
|
9555
|
-
ie(() => (f(window.innerWidth), window.addEventListener("resize",
|
|
9556
|
-
window.removeEventListener("resize",
|
|
9555
|
+
ie(() => (f(window.innerWidth), window.addEventListener("resize", _), () => {
|
|
9556
|
+
window.removeEventListener("resize", _);
|
|
9557
9557
|
}), []);
|
|
9558
|
-
const
|
|
9558
|
+
const _ = () => {
|
|
9559
9559
|
f(window.innerWidth);
|
|
9560
|
-
}, $ = p <= o, g = (
|
|
9561
|
-
const w =
|
|
9560
|
+
}, $ = p <= o, g = (C) => {
|
|
9561
|
+
const w = C.target;
|
|
9562
9562
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
9563
9563
|
"aria-expanded",
|
|
9564
9564
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9565
9565
|
), w.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9566
|
-
},
|
|
9567
|
-
const { linkContent: x, links: H } =
|
|
9566
|
+
}, v = (C, w) => {
|
|
9567
|
+
const { linkContent: x, links: H } = C, M = `${u}__item`, N = `${u}__menu`;
|
|
9568
9568
|
return /* @__PURE__ */ e.createElement(
|
|
9569
9569
|
"li",
|
|
9570
9570
|
{
|
|
@@ -9573,16 +9573,16 @@ const E2 = (o) => {
|
|
|
9573
9573
|
M,
|
|
9574
9574
|
`${M}--top-level`,
|
|
9575
9575
|
H ? `${M}--has-children` : null,
|
|
9576
|
-
ye(
|
|
9576
|
+
ye(C) ? `${M}--active` : null
|
|
9577
9577
|
])
|
|
9578
9578
|
},
|
|
9579
9579
|
H ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${M}-wrapper` }, ct(x, H), /* @__PURE__ */ e.createElement(
|
|
9580
9580
|
"button",
|
|
9581
9581
|
{
|
|
9582
|
-
"aria-expanded": ye(
|
|
9582
|
+
"aria-expanded": ye(C),
|
|
9583
9583
|
className: K([
|
|
9584
9584
|
`${u}__toggle`,
|
|
9585
|
-
ye(
|
|
9585
|
+
ye(C) ? `${u}__toggle--expanded` : null
|
|
9586
9586
|
]),
|
|
9587
9587
|
onClick: g
|
|
9588
9588
|
},
|
|
@@ -9594,7 +9594,7 @@ const E2 = (o) => {
|
|
|
9594
9594
|
className: K([
|
|
9595
9595
|
N,
|
|
9596
9596
|
`${N}--second-level`,
|
|
9597
|
-
ye(
|
|
9597
|
+
ye(C) ? `${N}--expanded` : null
|
|
9598
9598
|
])
|
|
9599
9599
|
},
|
|
9600
9600
|
H.map((L, z) => /* @__PURE__ */ e.createElement(
|
|
@@ -9617,7 +9617,7 @@ const E2 = (o) => {
|
|
|
9617
9617
|
x
|
|
9618
9618
|
)
|
|
9619
9619
|
);
|
|
9620
|
-
},
|
|
9620
|
+
}, E = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((C, w) => v(C, w)))), b = /* @__PURE__ */ e.createElement(
|
|
9621
9621
|
Jt,
|
|
9622
9622
|
{
|
|
9623
9623
|
headingText: a,
|
|
@@ -9631,7 +9631,7 @@ const E2 = (o) => {
|
|
|
9631
9631
|
"aria-label": t,
|
|
9632
9632
|
className: K([u, i != null ? i : ""])
|
|
9633
9633
|
}, m),
|
|
9634
|
-
$ && n ? b :
|
|
9634
|
+
$ && n ? b : E
|
|
9635
9635
|
);
|
|
9636
9636
|
}, rn = (d) => {
|
|
9637
9637
|
var h = d, {
|
|
@@ -9657,19 +9657,19 @@ const E2 = (o) => {
|
|
|
9657
9657
|
"className"
|
|
9658
9658
|
]);
|
|
9659
9659
|
const u = "pds-side-nav-compact", [p, f] = R(1025);
|
|
9660
|
-
ie(() => (f(window.innerWidth), window.addEventListener("resize",
|
|
9661
|
-
window.removeEventListener("resize",
|
|
9660
|
+
ie(() => (f(window.innerWidth), window.addEventListener("resize", _), () => {
|
|
9661
|
+
window.removeEventListener("resize", _);
|
|
9662
9662
|
}), []);
|
|
9663
|
-
const
|
|
9663
|
+
const _ = () => {
|
|
9664
9664
|
f(window.innerWidth);
|
|
9665
|
-
}, $ = p <= o, g = (
|
|
9666
|
-
const w =
|
|
9665
|
+
}, $ = p <= o, g = (C) => {
|
|
9666
|
+
const w = C.target;
|
|
9667
9667
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
9668
9668
|
"aria-expanded",
|
|
9669
9669
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9670
9670
|
), w.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9671
|
-
},
|
|
9672
|
-
const { linkContent: x, links: H } =
|
|
9671
|
+
}, v = (C, w) => {
|
|
9672
|
+
const { linkContent: x, links: H } = C, M = `${u}__item`, N = `${u}__menu`;
|
|
9673
9673
|
return /* @__PURE__ */ e.createElement(
|
|
9674
9674
|
"li",
|
|
9675
9675
|
{
|
|
@@ -9678,16 +9678,16 @@ const E2 = (o) => {
|
|
|
9678
9678
|
M,
|
|
9679
9679
|
`${M}--top-level`,
|
|
9680
9680
|
H ? `${M}--has-children` : null,
|
|
9681
|
-
ye(
|
|
9681
|
+
ye(C) ? `${M}--active` : null
|
|
9682
9682
|
])
|
|
9683
9683
|
},
|
|
9684
9684
|
H ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${M}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9685
9685
|
"button",
|
|
9686
9686
|
{
|
|
9687
|
-
"aria-expanded": ye(
|
|
9687
|
+
"aria-expanded": ye(C),
|
|
9688
9688
|
className: K([
|
|
9689
9689
|
`${u}__toggle`,
|
|
9690
|
-
ye(
|
|
9690
|
+
ye(C) ? `${u}__toggle--expanded` : null
|
|
9691
9691
|
]),
|
|
9692
9692
|
onClick: g
|
|
9693
9693
|
},
|
|
@@ -9699,7 +9699,7 @@ const E2 = (o) => {
|
|
|
9699
9699
|
className: K([
|
|
9700
9700
|
N,
|
|
9701
9701
|
`${N}--second-level`,
|
|
9702
|
-
ye(
|
|
9702
|
+
ye(C) ? `${N}--expanded` : null
|
|
9703
9703
|
])
|
|
9704
9704
|
},
|
|
9705
9705
|
H.map((L, z) => /* @__PURE__ */ e.createElement(
|
|
@@ -9761,7 +9761,7 @@ const E2 = (o) => {
|
|
|
9761
9761
|
x
|
|
9762
9762
|
)
|
|
9763
9763
|
);
|
|
9764
|
-
},
|
|
9764
|
+
}, E = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((C, w) => v(C, w)))), b = /* @__PURE__ */ e.createElement(
|
|
9765
9765
|
Jt,
|
|
9766
9766
|
{
|
|
9767
9767
|
headingText: a,
|
|
@@ -9775,7 +9775,7 @@ const E2 = (o) => {
|
|
|
9775
9775
|
"aria-label": t,
|
|
9776
9776
|
className: K([u, i != null ? i : ""])
|
|
9777
9777
|
}, m),
|
|
9778
|
-
$ && n ? b :
|
|
9778
|
+
$ && n ? b : E
|
|
9779
9779
|
);
|
|
9780
9780
|
}, on = (m) => {
|
|
9781
9781
|
var d = m, {
|
|
@@ -9795,11 +9795,11 @@ const E2 = (o) => {
|
|
|
9795
9795
|
"withinNavbar",
|
|
9796
9796
|
"className"
|
|
9797
9797
|
]);
|
|
9798
|
-
const [h, u] = R(null), [p, f] = R(!1),
|
|
9798
|
+
const [h, u] = R(null), [p, f] = R(!1), _ = se([]), $ = se([]);
|
|
9799
9799
|
let g = !1;
|
|
9800
|
-
const
|
|
9801
|
-
|
|
9802
|
-
const
|
|
9800
|
+
const v = we(je);
|
|
9801
|
+
v && (g = v.isMobile);
|
|
9802
|
+
const E = o && g, b = "pds-user-menu", C = E ? `${b}--isMobile` : null, w = `${b}__menu`, { refs: x, floatingStyles: H, context: M } = Ie({
|
|
9803
9803
|
placement: "bottom-end",
|
|
9804
9804
|
open: p,
|
|
9805
9805
|
onOpenChange: f,
|
|
@@ -9837,26 +9837,26 @@ const E2 = (o) => {
|
|
|
9837
9837
|
uniqueId: a,
|
|
9838
9838
|
className: `${b}__avatar`
|
|
9839
9839
|
}
|
|
9840
|
-
), Z = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${b}__trigger-icon` }), G = /* @__PURE__ */ e.createElement("li", { className: `${b}__user-details`, role: "presentation" },
|
|
9840
|
+
), Z = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${b}__trigger-icon` }), G = /* @__PURE__ */ e.createElement("li", { className: `${b}__user-details`, role: "presentation" }, E ? null : /* @__PURE__ */ e.createElement("div", { className: `${b}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${b}__user-email` }, a));
|
|
9841
9841
|
n.forEach((J) => {
|
|
9842
9842
|
const de = J.id ? J.id : We();
|
|
9843
|
-
|
|
9843
|
+
_.current.push(de), $.current.push(J);
|
|
9844
9844
|
});
|
|
9845
9845
|
const T = (J) => {
|
|
9846
|
-
const de =
|
|
9846
|
+
const de = _.current.indexOf(J), ae = $.current[de];
|
|
9847
9847
|
ae.linkContent && !ae.disabled && (O.current[de].querySelector("a").click(), f(!1)), ae.callback && !ae.disabled && (ae.callback(ae), f(!1));
|
|
9848
9848
|
}, D = (J) => {
|
|
9849
9849
|
J.preventDefault(), J.key === "Enter" && T(J.currentTarget.id);
|
|
9850
9850
|
}, W = (J) => {
|
|
9851
9851
|
T(J.currentTarget.id);
|
|
9852
9852
|
}, U = n.map((J, de) => {
|
|
9853
|
-
const ae =
|
|
9853
|
+
const ae = _.current[de], ee = `${b}__item`, Ee = J.disabled ? `${ee}--disabled` : null;
|
|
9854
9854
|
return /* @__PURE__ */ e.createElement(
|
|
9855
9855
|
"li",
|
|
9856
9856
|
y({
|
|
9857
9857
|
key: ae,
|
|
9858
9858
|
id: ae,
|
|
9859
|
-
className: K([ee,
|
|
9859
|
+
className: K([ee, Ee]),
|
|
9860
9860
|
role: "menuitem",
|
|
9861
9861
|
tabIndex: h === de ? 0 : -1,
|
|
9862
9862
|
ref: (me) => {
|
|
@@ -9921,9 +9921,9 @@ const E2 = (o) => {
|
|
|
9921
9921
|
return /* @__PURE__ */ e.createElement(
|
|
9922
9922
|
"span",
|
|
9923
9923
|
y({
|
|
9924
|
-
className: K([b,
|
|
9924
|
+
className: K([b, C, l != null ? l : ""])
|
|
9925
9925
|
}, i),
|
|
9926
|
-
|
|
9926
|
+
E ? be : ne
|
|
9927
9927
|
);
|
|
9928
9928
|
}, H2 = {
|
|
9929
9929
|
info: "circleInfo",
|
|
@@ -9952,19 +9952,19 @@ const E2 = (o) => {
|
|
|
9952
9952
|
const [d, h] = R(t), u = d.length;
|
|
9953
9953
|
if (u === 0)
|
|
9954
9954
|
return null;
|
|
9955
|
-
const p = "pds-banner", f = u > 1 ? `${p}-group--multiple` : null,
|
|
9955
|
+
const p = "pds-banner", f = u > 1 ? `${p}-group--multiple` : null, _ = {
|
|
9956
9956
|
info: `${p}--info`,
|
|
9957
9957
|
warning: `${p}--warning`,
|
|
9958
9958
|
critical: `${p}--critical`
|
|
9959
|
-
}, $ = u > 0 ? d[0].type : null, g = $ ? `${p}-group--${$}` : null,
|
|
9959
|
+
}, $ = u > 0 ? d[0].type : null, g = $ ? `${p}-group--${$}` : null, v = (H) => ({
|
|
9960
9960
|
zIndex: St - H
|
|
9961
|
-
}),
|
|
9961
|
+
}), E = (H) => H === 0 ? 0 : -1, b = () => {
|
|
9962
9962
|
const H = document.getElementsByClassName(
|
|
9963
9963
|
`${p}--fading`
|
|
9964
9964
|
);
|
|
9965
9965
|
for (; H.length; )
|
|
9966
9966
|
H[0].classList.remove(`${p}--fading`);
|
|
9967
|
-
},
|
|
9967
|
+
}, C = () => {
|
|
9968
9968
|
b(), document.getElementById(d[0].id).classList.add(`${p}--fading`), setTimeout(() => {
|
|
9969
9969
|
h((H) => [
|
|
9970
9970
|
...H.slice(1),
|
|
@@ -9997,10 +9997,10 @@ const E2 = (o) => {
|
|
|
9997
9997
|
{
|
|
9998
9998
|
key: N,
|
|
9999
9999
|
id: N,
|
|
10000
|
-
className: K([p,
|
|
10000
|
+
className: K([p, _[V]]),
|
|
10001
10001
|
role: I,
|
|
10002
10002
|
style: {
|
|
10003
|
-
zIndex:
|
|
10003
|
+
zIndex: v(M).zIndex
|
|
10004
10004
|
}
|
|
10005
10005
|
},
|
|
10006
10006
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10016,7 +10016,7 @@ const E2 = (o) => {
|
|
|
10016
10016
|
{
|
|
10017
10017
|
className: `${p}__dismiss-button`,
|
|
10018
10018
|
onClick: B,
|
|
10019
|
-
tabIndex:
|
|
10019
|
+
tabIndex: E(M)
|
|
10020
10020
|
},
|
|
10021
10021
|
n
|
|
10022
10022
|
)
|
|
@@ -10048,7 +10048,7 @@ const E2 = (o) => {
|
|
|
10048
10048
|
size: "lg",
|
|
10049
10049
|
className: `${p}__nav-button ${p}__nav-button--next`,
|
|
10050
10050
|
ariaLabel: a,
|
|
10051
|
-
onClick:
|
|
10051
|
+
onClick: C
|
|
10052
10052
|
}
|
|
10053
10053
|
), d.map((H, M) => x(H, M))) : x(d[0], 0)
|
|
10054
10054
|
);
|
|
@@ -10133,7 +10133,7 @@ const E2 = (o) => {
|
|
|
10133
10133
|
"typeLabels",
|
|
10134
10134
|
"className"
|
|
10135
10135
|
]);
|
|
10136
|
-
const p = se(null), f = "pds-section-message",
|
|
10136
|
+
const p = se(null), f = "pds-section-message", _ = {
|
|
10137
10137
|
error: `${f}--error`,
|
|
10138
10138
|
success: `${f}--success`,
|
|
10139
10139
|
warning: `${f}--warning`,
|
|
@@ -10142,24 +10142,24 @@ const E2 = (o) => {
|
|
|
10142
10142
|
discovery: `${f}--discovery`,
|
|
10143
10143
|
dismissing: `${f}--dismissing`,
|
|
10144
10144
|
dismissed: `${f}--dismissed`
|
|
10145
|
-
}, $ = o ? `${f}--hasTitle` : null,
|
|
10146
|
-
p.current.addEventListener("animationend",
|
|
10145
|
+
}, $ = o ? `${f}--hasTitle` : null, v = ["critical", "warning"].includes(l) ? "alert" : "status", E = `${i[l]}: `, b = () => {
|
|
10146
|
+
p.current.addEventListener("animationend", C, {
|
|
10147
10147
|
once: !0
|
|
10148
10148
|
});
|
|
10149
|
-
},
|
|
10149
|
+
}, C = (x) => {
|
|
10150
10150
|
c(x, n);
|
|
10151
10151
|
}, w = () => {
|
|
10152
|
-
b(), p.current.classList.toggle(
|
|
10153
|
-
p.current.classList.toggle(
|
|
10152
|
+
b(), p.current.classList.toggle(_.dismissing), setTimeout(() => {
|
|
10153
|
+
p.current.classList.toggle(_.dismissing), p.current.classList.toggle(_.dismissed);
|
|
10154
10154
|
}, 400);
|
|
10155
10155
|
};
|
|
10156
10156
|
return /* @__PURE__ */ e.createElement(
|
|
10157
10157
|
"div",
|
|
10158
10158
|
y({
|
|
10159
|
-
className: [f,
|
|
10159
|
+
className: [f, _[l], $, m != null ? m : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
10160
10160
|
id: n,
|
|
10161
10161
|
ref: p,
|
|
10162
|
-
role:
|
|
10162
|
+
role: v
|
|
10163
10163
|
}, d),
|
|
10164
10164
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__icon ${f}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
10165
10165
|
P,
|
|
@@ -10167,7 +10167,7 @@ const E2 = (o) => {
|
|
|
10167
10167
|
iconName: `${l}` in Ft ? Ft[l] : Ft.info,
|
|
10168
10168
|
iconSize: "md"
|
|
10169
10169
|
}
|
|
10170
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${f}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
10170
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${f}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, E), o && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, o), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, r))),
|
|
10171
10171
|
a && /* @__PURE__ */ e.createElement(
|
|
10172
10172
|
"button",
|
|
10173
10173
|
{
|
|
@@ -10203,7 +10203,7 @@ const E2 = (o) => {
|
|
|
10203
10203
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__content` }, t)
|
|
10204
10204
|
);
|
|
10205
10205
|
}, Ue = 8, ms = 14, z2 = 6, hn = (f) => {
|
|
10206
|
-
var
|
|
10206
|
+
var _ = f, {
|
|
10207
10207
|
content: t,
|
|
10208
10208
|
customTrigger: n = !1,
|
|
10209
10209
|
hasCloseButton: a = !1,
|
|
@@ -10218,7 +10218,7 @@ const E2 = (o) => {
|
|
|
10218
10218
|
setPopoverIsOpen: h = () => {
|
|
10219
10219
|
},
|
|
10220
10220
|
className: u
|
|
10221
|
-
} =
|
|
10221
|
+
} = _, p = S(_, [
|
|
10222
10222
|
"content",
|
|
10223
10223
|
"customTrigger",
|
|
10224
10224
|
"hasCloseButton",
|
|
@@ -10239,17 +10239,17 @@ const E2 = (o) => {
|
|
|
10239
10239
|
}, [d]), ie(() => {
|
|
10240
10240
|
h($);
|
|
10241
10241
|
}, [$]);
|
|
10242
|
-
const
|
|
10243
|
-
`${
|
|
10244
|
-
|
|
10245
|
-
].join(" ").trim().replace(/\s+/g, " "),
|
|
10242
|
+
const v = typeof n, E = "pds-popover", b = [
|
|
10243
|
+
`${E}__trigger-custom`,
|
|
10244
|
+
v === "string" ? `${E}__trigger-text` : ""
|
|
10245
|
+
].join(" ").trim().replace(/\s+/g, " "), C = n ? c : 0, w = se(null), { refs: x, floatingStyles: H, context: M, middlewareData: N } = Ie({
|
|
10246
10246
|
placement: o,
|
|
10247
10247
|
open: $,
|
|
10248
10248
|
onOpenChange(U) {
|
|
10249
10249
|
g(U), U || r();
|
|
10250
10250
|
},
|
|
10251
10251
|
middleware: [
|
|
10252
|
-
wt(Ue + z2 +
|
|
10252
|
+
wt(Ue + z2 + C),
|
|
10253
10253
|
Nt({ padding: 8 }),
|
|
10254
10254
|
kt({ padding: 8 }),
|
|
10255
10255
|
s1({ element: w })
|
|
@@ -10277,27 +10277,27 @@ const E2 = (o) => {
|
|
|
10277
10277
|
return /* @__PURE__ */ e.createElement(
|
|
10278
10278
|
"div",
|
|
10279
10279
|
y({
|
|
10280
|
-
className: [
|
|
10280
|
+
className: [E, u].join(" ").trim().replace(/\s+/g, " ")
|
|
10281
10281
|
}, p),
|
|
10282
10282
|
/* @__PURE__ */ e.createElement(
|
|
10283
10283
|
"span",
|
|
10284
10284
|
y({
|
|
10285
|
-
className: `${
|
|
10285
|
+
className: `${E}__trigger`,
|
|
10286
10286
|
ref: x.setReference
|
|
10287
10287
|
}, k()),
|
|
10288
10288
|
n ? /* @__PURE__ */ e.createElement("span", { className: b }, n) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement(
|
|
10289
10289
|
P,
|
|
10290
10290
|
{
|
|
10291
10291
|
iconName: i,
|
|
10292
|
-
className: `${
|
|
10292
|
+
className: `${E}__icon`,
|
|
10293
10293
|
iconSize: "md"
|
|
10294
10294
|
}
|
|
10295
10295
|
))
|
|
10296
10296
|
),
|
|
10297
|
-
Z && /* @__PURE__ */ e.createElement(
|
|
10297
|
+
Z && /* @__PURE__ */ e.createElement(Es, { context: M, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
10298
10298
|
"div",
|
|
10299
10299
|
y({
|
|
10300
|
-
className: `${
|
|
10300
|
+
className: `${E}__container`,
|
|
10301
10301
|
ref: x.setFloating,
|
|
10302
10302
|
style: H
|
|
10303
10303
|
}, I()),
|
|
@@ -10312,10 +10312,10 @@ const E2 = (o) => {
|
|
|
10312
10312
|
fill: "var(--pds-color-background-default)",
|
|
10313
10313
|
stroke: "var(--pds-color-border-default)",
|
|
10314
10314
|
strokeWidth: 1,
|
|
10315
|
-
className: `${
|
|
10315
|
+
className: `${E}__arrow`
|
|
10316
10316
|
}
|
|
10317
10317
|
),
|
|
10318
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10318
|
+
/* @__PURE__ */ e.createElement("div", { className: `${E}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${E}__title` }, l), t && /* @__PURE__ */ e.createElement("div", { className: `${E}__content` }, t), a && /* @__PURE__ */ e.createElement("button", { onClick: L, className: `${E}__close` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"), /* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "lg" })))
|
|
10319
10319
|
))
|
|
10320
10320
|
);
|
|
10321
10321
|
}, us = {
|
|
@@ -10351,45 +10351,45 @@ const E2 = (o) => {
|
|
|
10351
10351
|
"size",
|
|
10352
10352
|
"className"
|
|
10353
10353
|
]);
|
|
10354
|
-
const f = n || We(),
|
|
10355
|
-
let
|
|
10354
|
+
const f = n || We(), _ = "pds-progress-bar", $ = l ? `${_}__label` : "visually-hidden", g = `${_}__track ${_}__track--${m}`, v = o > 100 ? 100 : o;
|
|
10355
|
+
let E = "neutral";
|
|
10356
10356
|
t.forEach((x) => {
|
|
10357
|
-
o >= x.percentage && (
|
|
10357
|
+
o >= x.percentage && (E = x.colorType);
|
|
10358
10358
|
});
|
|
10359
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10359
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: `${_}__message` }, c), C = c && r === "above", w = c && r === "below";
|
|
10360
10360
|
return /* @__PURE__ */ e.createElement(
|
|
10361
10361
|
"div",
|
|
10362
10362
|
y({
|
|
10363
|
-
className: [
|
|
10364
|
-
style: { "--bar-percentage": `${
|
|
10363
|
+
className: [_, d].join(" ").trim().replace(/\s+/g, " "),
|
|
10364
|
+
style: { "--bar-percentage": `${v}%` }
|
|
10365
10365
|
}, h),
|
|
10366
10366
|
/* @__PURE__ */ e.createElement("div", { id: f, className: $ }, a),
|
|
10367
|
-
(
|
|
10367
|
+
(C || i) && /* @__PURE__ */ e.createElement("div", { className: `${_}__details` }, C && b, i && /* @__PURE__ */ e.createElement(
|
|
10368
10368
|
"div",
|
|
10369
10369
|
{
|
|
10370
|
-
className: `${
|
|
10370
|
+
className: `${_}__percentage`,
|
|
10371
10371
|
style: {
|
|
10372
|
-
color: `hsl(from var(${us[
|
|
10372
|
+
color: `hsl(from var(${us[E]}) h s calc(l - 7))`
|
|
10373
10373
|
}
|
|
10374
10374
|
},
|
|
10375
10375
|
o,
|
|
10376
10376
|
"%"
|
|
10377
10377
|
)),
|
|
10378
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10378
|
+
/* @__PURE__ */ e.createElement("div", { className: `${_}__wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10379
10379
|
"div",
|
|
10380
10380
|
{
|
|
10381
10381
|
role: "progressbar",
|
|
10382
10382
|
"aria-labelledby": f,
|
|
10383
|
-
"aria-valuenow":
|
|
10383
|
+
"aria-valuenow": v,
|
|
10384
10384
|
className: g
|
|
10385
10385
|
},
|
|
10386
10386
|
/* @__PURE__ */ e.createElement(
|
|
10387
10387
|
"div",
|
|
10388
10388
|
{
|
|
10389
|
-
className: `${
|
|
10389
|
+
className: `${_}__bar`,
|
|
10390
10390
|
style: {
|
|
10391
|
-
width: `${
|
|
10392
|
-
backgroundColor: `var(${us[
|
|
10391
|
+
width: `${v}%`,
|
|
10392
|
+
backgroundColor: `var(${us[E]})`
|
|
10393
10393
|
}
|
|
10394
10394
|
}
|
|
10395
10395
|
)
|
|
@@ -10481,7 +10481,7 @@ const E2 = (o) => {
|
|
|
10481
10481
|
/* @__PURE__ */ e.createElement(P, { iconName: Wt[l].icon, iconSize: "xl" })
|
|
10482
10482
|
)))
|
|
10483
10483
|
);
|
|
10484
|
-
},
|
|
10484
|
+
}, En = (r) => {
|
|
10485
10485
|
var o = r, {
|
|
10486
10486
|
label: t = null,
|
|
10487
10487
|
type: n = "neutral",
|
|
@@ -10531,9 +10531,9 @@ let ps = [
|
|
|
10531
10531
|
"color-20"
|
|
10532
10532
|
];
|
|
10533
10533
|
const M2 = (t) => {
|
|
10534
|
-
const n = parseInt(
|
|
10534
|
+
const n = parseInt(_s(t), 16);
|
|
10535
10535
|
return ps[n % ps.length];
|
|
10536
|
-
}, L2 = (t, n) => t.length > n ? t.slice(0, n) + " ..." : t,
|
|
10536
|
+
}, L2 = (t, n) => t.length > n ? t.slice(0, n) + " ..." : t, _n = (m) => {
|
|
10537
10537
|
var d = m, {
|
|
10538
10538
|
linkContent: t,
|
|
10539
10539
|
isRemovable: n,
|
|
@@ -10551,16 +10551,16 @@ const M2 = (t) => {
|
|
|
10551
10551
|
"tagLabel",
|
|
10552
10552
|
"className"
|
|
10553
10553
|
]);
|
|
10554
|
-
const [h, u] = R(!0), p = "pds-tag", f = r ? `${p}--${r}` : `${p}--${M2(o)}`,
|
|
10554
|
+
const [h, u] = R(!0), p = "pds-tag", f = r ? `${p}--${r}` : `${p}--${M2(o)}`, _ = h ? null : "pds-tag--hide", $ = () => {
|
|
10555
10555
|
u((b) => !b);
|
|
10556
10556
|
};
|
|
10557
|
-
let g,
|
|
10558
|
-
return t && !n && Fe(t) ? (g = t.type,
|
|
10557
|
+
let g, v, E;
|
|
10558
|
+
return t && !n && Fe(t) ? (g = t.type, v = t.props.href ? "href" : "to", E = v === "href" ? t.props.href : t.props.to) : (g = "span", v = null, E = null), /* @__PURE__ */ e.createElement(
|
|
10559
10559
|
g,
|
|
10560
10560
|
y({
|
|
10561
|
-
href:
|
|
10562
|
-
to:
|
|
10563
|
-
className: [p, f,
|
|
10561
|
+
href: v === "href" ? E : null,
|
|
10562
|
+
to: v === "to" ? E : null,
|
|
10563
|
+
className: [p, f, _, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10564
10564
|
}, i),
|
|
10565
10565
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label`, title: o }, L2(o, 20)),
|
|
10566
10566
|
n ? /* @__PURE__ */ e.createElement(
|
|
@@ -10605,18 +10605,18 @@ const M2 = (t) => {
|
|
|
10605
10605
|
"children",
|
|
10606
10606
|
"className"
|
|
10607
10607
|
]);
|
|
10608
|
-
const p = "pds-flex", f = l ? `${p}-gap--${l}` : null,
|
|
10608
|
+
const p = "pds-flex", f = l ? `${p}-gap--${l}` : null, _ = a ? `${p}-direction--${a}` : null, $ = c ? `${p}--${c}` : null, g = r ? `${p}-justify--${r}` : null, v = n ? `${p}-align-items--${n}` : null, E = t ? `${p}-align-content--${t}` : null, b = o && o !== "same" ? `${p}-mobile--${o}` : null;
|
|
10609
10609
|
return /* @__PURE__ */ e.createElement(
|
|
10610
10610
|
"div",
|
|
10611
10611
|
y({
|
|
10612
10612
|
className: [
|
|
10613
10613
|
"pds-flex-container",
|
|
10614
10614
|
f,
|
|
10615
|
-
|
|
10615
|
+
_,
|
|
10616
10616
|
$,
|
|
10617
10617
|
g,
|
|
10618
|
-
|
|
10619
|
-
|
|
10618
|
+
v,
|
|
10619
|
+
E,
|
|
10620
10620
|
b,
|
|
10621
10621
|
m
|
|
10622
10622
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
@@ -10774,30 +10774,30 @@ const S2 = (o) => {
|
|
|
10774
10774
|
"className"
|
|
10775
10775
|
]);
|
|
10776
10776
|
const i = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, d = ["pds-grid-item--md-6"], h = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], u = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
10777
|
-
let f,
|
|
10777
|
+
let f, _;
|
|
10778
10778
|
switch (a) {
|
|
10779
10779
|
case "equal":
|
|
10780
|
-
f = p.concat(d),
|
|
10780
|
+
f = p.concat(d), _ = p.concat(d);
|
|
10781
10781
|
break;
|
|
10782
10782
|
case "one-third-start":
|
|
10783
|
-
f = p.concat(h),
|
|
10783
|
+
f = p.concat(h), _ = p.concat(u);
|
|
10784
10784
|
break;
|
|
10785
10785
|
case "one-third-end":
|
|
10786
|
-
f = p.concat(u),
|
|
10786
|
+
f = p.concat(u), _ = p.concat(h);
|
|
10787
10787
|
}
|
|
10788
10788
|
const $ = {};
|
|
10789
|
-
e.Children.forEach(t, (
|
|
10790
|
-
const b =
|
|
10791
|
-
b && ($[b] ? $[b].push(
|
|
10789
|
+
e.Children.forEach(t, (E) => {
|
|
10790
|
+
const b = E.props.slot;
|
|
10791
|
+
b && ($[b] ? $[b].push(E) : $[b] = [E]);
|
|
10792
10792
|
});
|
|
10793
|
-
const g = $["first-item"],
|
|
10793
|
+
const g = $["first-item"], v = $["second-item"];
|
|
10794
10794
|
return /* @__PURE__ */ e.createElement(
|
|
10795
10795
|
"div",
|
|
10796
10796
|
y({
|
|
10797
10797
|
className: [i, m, c].join(" ").trim().replace(/\s+/g, " ")
|
|
10798
10798
|
}, r),
|
|
10799
10799
|
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, g),
|
|
10800
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
10800
|
+
/* @__PURE__ */ e.createElement("div", { className: _.join(" ").trim() }, v)
|
|
10801
10801
|
);
|
|
10802
10802
|
};
|
|
10803
10803
|
S2.propTypes = {
|
|
@@ -10837,40 +10837,39 @@ const vn = ({
|
|
|
10837
10837
|
"sidebarWidth",
|
|
10838
10838
|
"className"
|
|
10839
10839
|
]);
|
|
10840
|
-
const d = "pds-sidebar-layout", h = `pds-grid pds-grid--${n}`, u = `${d}--${
|
|
10841
|
-
let
|
|
10842
|
-
const
|
|
10843
|
-
|
|
10844
|
-
const
|
|
10845
|
-
let
|
|
10846
|
-
r === "narrow" && (
|
|
10847
|
-
const
|
|
10840
|
+
const d = "pds-sidebar-layout", h = `pds-grid pds-grid--${n}`, u = `${d}--${r}`;
|
|
10841
|
+
let p = !1;
|
|
10842
|
+
const f = we(je);
|
|
10843
|
+
f && (p = f.isMobile);
|
|
10844
|
+
const _ = Yt(t);
|
|
10845
|
+
let $ = "pds-grid-item pds-grid-item--md-8", g = "pds-grid-item pds-grid-item--md-4";
|
|
10846
|
+
r === "narrow" && ($ = "pds-grid-item pds-grid-item--md-9", g = "pds-grid-item pds-grid-item--md-3"), r === "wide" && ($ = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", g = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10847
|
+
const v = /* @__PURE__ */ e.createElement(
|
|
10848
10848
|
"div",
|
|
10849
10849
|
{
|
|
10850
|
-
|
|
10850
|
+
key: "content",
|
|
10851
|
+
className: `${d}__main ${p ? "pds-grid-item" : $}`
|
|
10851
10852
|
},
|
|
10852
|
-
|
|
10853
|
-
),
|
|
10853
|
+
_.content
|
|
10854
|
+
), E = /* @__PURE__ */ e.createElement(
|
|
10854
10855
|
"div",
|
|
10855
10856
|
{
|
|
10856
|
-
|
|
10857
|
+
key: "sidebar",
|
|
10858
|
+
className: `${d}__side ${p ? "pds-grid-item" : g}`
|
|
10857
10859
|
},
|
|
10858
|
-
|
|
10860
|
+
_.sidebar
|
|
10859
10861
|
);
|
|
10860
|
-
|
|
10861
|
-
return a === "left" ? w = [v, b] : w = [b, v], E && (c === "before" ? w = [v, b] : w = [b, v]), /* @__PURE__ */ e.createElement(
|
|
10862
|
+
return /* @__PURE__ */ e.createElement(
|
|
10862
10863
|
"div",
|
|
10863
10864
|
y({
|
|
10864
10865
|
className: K([
|
|
10865
10866
|
d,
|
|
10866
10867
|
h,
|
|
10867
10868
|
u,
|
|
10868
|
-
p,
|
|
10869
|
-
f,
|
|
10870
10869
|
o != null ? o : ""
|
|
10871
10870
|
])
|
|
10872
10871
|
}, l),
|
|
10873
|
-
|
|
10872
|
+
p ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, E, v) : /* @__PURE__ */ e.createElement(e.Fragment, null, v, E) : a === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, E, v) : /* @__PURE__ */ e.createElement(e.Fragment, null, v, E)
|
|
10874
10873
|
);
|
|
10875
10874
|
};
|
|
10876
10875
|
export {
|
|
@@ -10944,15 +10943,15 @@ export {
|
|
|
10944
10943
|
s2 as SplitButton,
|
|
10945
10944
|
n2 as StatsTileList,
|
|
10946
10945
|
Qt as StatusBadge,
|
|
10947
|
-
|
|
10946
|
+
En as StatusIndicator,
|
|
10948
10947
|
o2 as Stepper,
|
|
10949
10948
|
V2 as StepperLayout,
|
|
10950
10949
|
tn as Switch,
|
|
10951
10950
|
i2 as Table,
|
|
10952
10951
|
d2 as TableOfContents,
|
|
10953
10952
|
U2 as Tabs,
|
|
10954
|
-
|
|
10955
|
-
|
|
10953
|
+
_n as Tag,
|
|
10954
|
+
_2 as Tally,
|
|
10956
10955
|
f2 as TextInput,
|
|
10957
10956
|
sn as Textarea,
|
|
10958
10957
|
I2 as ThreeItemLayout,
|
|
@@ -10965,7 +10964,7 @@ export {
|
|
|
10965
10964
|
Ct as Tooltip,
|
|
10966
10965
|
S2 as TwoItemLayout,
|
|
10967
10966
|
on as UserMenu,
|
|
10968
|
-
|
|
10967
|
+
E2 as WorkspaceSelector,
|
|
10969
10968
|
as as iconList,
|
|
10970
10969
|
ps as tagColors,
|
|
10971
10970
|
G2 as useToast
|