@pantheon-systems/pds-toolkit-react 1.0.0-dev.168 → 1.0.0-dev.169
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
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './index.css';var Zs = Object.defineProperty, Us = Object.defineProperties;
|
|
2
2
|
var Gs = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var vt = Object.getOwnPropertySymbols;
|
|
4
4
|
var ss = Object.prototype.hasOwnProperty, ns = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var ts = (s, n, a) => n in s ? Zs(s, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : s[n] = a, y = (s, n) => {
|
|
6
6
|
for (var a in n || (n = {}))
|
|
7
7
|
ss.call(n, a) && ts(s, a, n[a]);
|
|
8
|
-
if (
|
|
9
|
-
for (var a of
|
|
8
|
+
if (vt)
|
|
9
|
+
for (var a of vt(n))
|
|
10
10
|
ns.call(n, a) && ts(s, a, n[a]);
|
|
11
11
|
return s;
|
|
12
12
|
}, fe = (s, n) => Us(s, Gs(n));
|
|
@@ -14,15 +14,15 @@ var I = (s, n) => {
|
|
|
14
14
|
var a = {};
|
|
15
15
|
for (var c in s)
|
|
16
16
|
ss.call(s, c) && n.indexOf(c) < 0 && (a[c] = s[c]);
|
|
17
|
-
if (s != null &&
|
|
18
|
-
for (var c of
|
|
17
|
+
if (s != null && vt)
|
|
18
|
+
for (var c of vt(s))
|
|
19
19
|
n.indexOf(c) < 0 && ns.call(s, c) && (a[c] = s[c]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
22
|
import e, { createContext as $t, useState as R, useContext as He, forwardRef as Be, cloneElement as qe, useEffect as oe, useRef as se, isValidElement as Ut, useLayoutEffect as Ks, useCallback as Gt } from "react";
|
|
23
23
|
import t from "prop-types";
|
|
24
24
|
import { NavLink as gs, MemoryRouter as Ys } from "react-router-dom";
|
|
25
|
-
import { useFloating as Ie, offset as yt, flip as wt, shift as Nt, autoUpdate as Pe, useHover as
|
|
25
|
+
import { useFloating as Ie, offset as yt, flip as wt, shift as Nt, autoUpdate as Pe, useHover as Et, useFocus as fs, useDismiss as Se, useRole as Te, useInteractions as Oe, useId as bs, useListNavigation as mt, useTransitionStyles as Ye, useClick as rt, safePolygon as vs, FloatingOverlay as Xs, FloatingFocusManager as Es, arrow as Qs, FloatingArrow as Js } from "@floating-ui/react";
|
|
26
26
|
import { useHotkeys as e1 } from "react-hotkeys-hook";
|
|
27
27
|
import { useMeasure as kt } from "@reactuses/core";
|
|
28
28
|
import { useFloating as t1, flip as s1 } from "@floating-ui/react-dom";
|
|
@@ -52,14 +52,14 @@ const r1 = (r) => {
|
|
|
52
52
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
53
53
|
}, c),
|
|
54
54
|
n.map((u, h) => {
|
|
55
|
-
const m = u.linkContent ? u.linkContent.type : "div", p = u.linkContent.props.href ? "href" : "to",
|
|
55
|
+
const m = u.linkContent ? u.linkContent.type : "div", p = u.linkContent.props.href ? "href" : "to", f = p === "href" ? u.linkContent.props.href : u.linkContent.props.to, E = u.linkContent.props.target ? "target" : null;
|
|
56
56
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
57
57
|
m,
|
|
58
58
|
{
|
|
59
59
|
key: `avatar-tile-item-${h}`,
|
|
60
60
|
className: `${i}__item`,
|
|
61
|
-
href: p === "href" ?
|
|
62
|
-
to: p === "to" ?
|
|
61
|
+
href: p === "href" ? f : null,
|
|
62
|
+
to: p === "to" ? f : null,
|
|
63
63
|
target: E
|
|
64
64
|
},
|
|
65
65
|
/* @__PURE__ */ e.createElement(
|
|
@@ -742,7 +742,7 @@ const o1 = {
|
|
|
742
742
|
path: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z",
|
|
743
743
|
width: "576"
|
|
744
744
|
}
|
|
745
|
-
}, ls = Object.keys(Ft), Vt = 300, i1 = 400,
|
|
745
|
+
}, ls = Object.keys(Ft), Vt = 300, i1 = 400, _t = (m) => {
|
|
746
746
|
var p = m, {
|
|
747
747
|
content: s,
|
|
748
748
|
customTrigger: n = null,
|
|
@@ -766,7 +766,7 @@ const o1 = {
|
|
|
766
766
|
"zIndex",
|
|
767
767
|
"className"
|
|
768
768
|
]);
|
|
769
|
-
const [
|
|
769
|
+
const [f, E] = R(!1), _ = typeof n, g = "pds-tooltip", b = J([
|
|
770
770
|
`${g}__trigger-custom`,
|
|
771
771
|
_ === "string" ? `${g}__trigger-text` : null
|
|
772
772
|
]), v = J([
|
|
@@ -774,11 +774,11 @@ const o1 = {
|
|
|
774
774
|
`${g}__trigger--${l}`
|
|
775
775
|
]), { refs: C, floatingStyles: $, context: w } = Ie({
|
|
776
776
|
placement: c,
|
|
777
|
-
open:
|
|
777
|
+
open: f,
|
|
778
778
|
onOpenChange: E,
|
|
779
779
|
middleware: [yt(a), wt(), Nt()],
|
|
780
780
|
whileElementsMounted: Pe
|
|
781
|
-
}), L =
|
|
781
|
+
}), L = Et(w, {
|
|
782
782
|
restMs: 300,
|
|
783
783
|
delay: { open: 500, close: 0 },
|
|
784
784
|
move: !1
|
|
@@ -791,7 +791,7 @@ const o1 = {
|
|
|
791
791
|
return /* @__PURE__ */ e.createElement("div", y({ className: J([g, u != null ? u : ""]) }, h), n ? /* @__PURE__ */ e.createElement(
|
|
792
792
|
"span",
|
|
793
793
|
y({
|
|
794
|
-
className:
|
|
794
|
+
className: b,
|
|
795
795
|
ref: C.setReference
|
|
796
796
|
}, x()),
|
|
797
797
|
n
|
|
@@ -810,7 +810,7 @@ const o1 = {
|
|
|
810
810
|
iconSize: i
|
|
811
811
|
}
|
|
812
812
|
)
|
|
813
|
-
),
|
|
813
|
+
), f && /* @__PURE__ */ e.createElement(
|
|
814
814
|
"div",
|
|
815
815
|
y({
|
|
816
816
|
className: `${g}__container`,
|
|
@@ -821,7 +821,7 @@ const o1 = {
|
|
|
821
821
|
));
|
|
822
822
|
}, Ue = ({ crumb: s, lastCrumb: n, classes: a }) => {
|
|
823
823
|
const c = s.label.length > 16 ? `${s.label.slice(0, 16)}...` : null;
|
|
824
|
-
return /* @__PURE__ */ e.createElement("li", { className: `${a || ""}`, key: `key-${s.label}` }, n ? /* @__PURE__ */ e.createElement("a", { className: "pds-breadcrumbs__disabled" }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(
|
|
824
|
+
return /* @__PURE__ */ e.createElement("li", { className: `${a || ""}`, key: `key-${s.label}` }, n ? /* @__PURE__ */ e.createElement("a", { className: "pds-breadcrumbs__disabled" }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(_t, { content: s.label, triggerText: c }) : s.label) : /* @__PURE__ */ e.createElement(gs, { end: !0, to: s.uri }, s.label.length > 15 ? /* @__PURE__ */ e.createElement(_t, { content: s.label, triggerText: c }) : s.label));
|
|
825
825
|
};
|
|
826
826
|
Ue.propTypes = {
|
|
827
827
|
crumb: t.object,
|
|
@@ -858,7 +858,7 @@ const d1 = (s) => /* @__PURE__ */ e.createElement(gs, { className: "pds-breadcru
|
|
|
858
858
|
key: `breadcrumb-${g}`
|
|
859
859
|
}
|
|
860
860
|
) : /* @__PURE__ */ e.createElement(Ue, { crumb: _, key: `breadcrumb-${g}` })
|
|
861
|
-
), p = d.length >= 6 ? m : h,
|
|
861
|
+
), p = d.length >= 6 ? m : h, f = d[d.length - 2], E = d1(f);
|
|
862
862
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": s, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, n), p), E);
|
|
863
863
|
};
|
|
864
864
|
ys.propTypes = {
|
|
@@ -1034,7 +1034,7 @@ const p1 = [
|
|
|
1034
1034
|
"xmarkLarge",
|
|
1035
1035
|
"xTwitter",
|
|
1036
1036
|
"youtube"
|
|
1037
|
-
],
|
|
1037
|
+
], ut = t.oneOf(p1), Ht = t.oneOf([
|
|
1038
1038
|
"narrow",
|
|
1039
1039
|
"standard",
|
|
1040
1040
|
"wide",
|
|
@@ -1061,7 +1061,7 @@ const p1 = [
|
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1063
1063
|
*/
|
|
1064
|
-
iconName:
|
|
1064
|
+
iconName: ut,
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Is the item a link?
|
|
1067
1067
|
*/
|
|
@@ -1090,7 +1090,7 @@ const p1 = [
|
|
|
1090
1090
|
/**
|
|
1091
1091
|
* Optional icon for this item. Choose from available icons in the Icon component.
|
|
1092
1092
|
*/
|
|
1093
|
-
iconName:
|
|
1093
|
+
iconName: ut,
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Optional ID value for this item.
|
|
1096
1096
|
*/
|
|
@@ -1131,7 +1131,7 @@ const p1 = [
|
|
|
1131
1131
|
iconSize: "sm",
|
|
1132
1132
|
className: "pds-input-label__required"
|
|
1133
1133
|
}
|
|
1134
|
-
),
|
|
1134
|
+
), pt = ({
|
|
1135
1135
|
id: s,
|
|
1136
1136
|
label: n,
|
|
1137
1137
|
showLabel: a = !0,
|
|
@@ -1269,7 +1269,7 @@ const p1 = [
|
|
|
1269
1269
|
c && !n ? /* @__PURE__ */ e.createElement("span", { className: `${u}__label` }, a) : /* @__PURE__ */ e.createElement(Xt, { label: a })
|
|
1270
1270
|
);
|
|
1271
1271
|
}, Ge = Be(
|
|
1272
|
-
(E,
|
|
1272
|
+
(E, f) => {
|
|
1273
1273
|
var _ = E, {
|
|
1274
1274
|
ariaLabel: s,
|
|
1275
1275
|
buttonType: n = "button",
|
|
@@ -1297,7 +1297,7 @@ const p1 = [
|
|
|
1297
1297
|
"variant",
|
|
1298
1298
|
"className"
|
|
1299
1299
|
]);
|
|
1300
|
-
const g = "pds-button",
|
|
1300
|
+
const g = "pds-button", b = u !== "md" ? `${g}--${u}` : null, v = h !== "primary" ? `${g}--${h}` : null;
|
|
1301
1301
|
let C;
|
|
1302
1302
|
switch (u) {
|
|
1303
1303
|
case "sm":
|
|
@@ -1323,11 +1323,11 @@ const p1 = [
|
|
|
1323
1323
|
"button",
|
|
1324
1324
|
fe(y({}, p), {
|
|
1325
1325
|
type: n,
|
|
1326
|
-
className: [g,
|
|
1326
|
+
className: [g, b, v, m].join(" ").trim().replace(/\s+/g, " "),
|
|
1327
1327
|
disabled: a || o,
|
|
1328
1328
|
"aria-label": s,
|
|
1329
1329
|
onClick: d,
|
|
1330
|
-
ref:
|
|
1330
|
+
ref: f
|
|
1331
1331
|
}),
|
|
1332
1332
|
o && /* @__PURE__ */ e.createElement(zt, { className: `${g}__loading-indicator`, size: "md" }),
|
|
1333
1333
|
w
|
|
@@ -1355,7 +1355,7 @@ Ge.propTypes = {
|
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Which icon to render
|
|
1357
1357
|
*/
|
|
1358
|
-
iconName:
|
|
1358
|
+
iconName: ut,
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Is the button in a loading state?
|
|
1361
1361
|
*/
|
|
@@ -1412,23 +1412,23 @@ const je = (d) => {
|
|
|
1412
1412
|
"variant",
|
|
1413
1413
|
"className"
|
|
1414
1414
|
]);
|
|
1415
|
-
const h = Ae(), m = "pds-button-link", p = "pds-button",
|
|
1416
|
-
let
|
|
1415
|
+
const h = Ae(), m = "pds-button-link", p = "pds-button", f = c.props.className, E = r !== "md" ? `${p}--${r}` : null, _ = o !== "primary" ? `${p}--${o}` : null, g = [p, f, _, E].join(" ").trim().replace(/\s+/g, " ");
|
|
1416
|
+
let b;
|
|
1417
1417
|
switch (r) {
|
|
1418
1418
|
case "sm":
|
|
1419
|
-
|
|
1419
|
+
b = "sm";
|
|
1420
1420
|
break;
|
|
1421
1421
|
case "md":
|
|
1422
|
-
|
|
1422
|
+
b = "md";
|
|
1423
1423
|
break;
|
|
1424
1424
|
case "lg":
|
|
1425
|
-
|
|
1425
|
+
b = "lg";
|
|
1426
1426
|
}
|
|
1427
1427
|
const v = /* @__PURE__ */ e.createElement(
|
|
1428
1428
|
A,
|
|
1429
1429
|
{
|
|
1430
1430
|
iconName: a,
|
|
1431
|
-
iconSize:
|
|
1431
|
+
iconSize: b,
|
|
1432
1432
|
className: `${p}__icon`,
|
|
1433
1433
|
key: `icon-${h}`
|
|
1434
1434
|
}
|
|
@@ -1471,7 +1471,7 @@ je.propTypes = {
|
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Which icon to render
|
|
1473
1473
|
*/
|
|
1474
|
-
iconName:
|
|
1474
|
+
iconName: ut,
|
|
1475
1475
|
/**
|
|
1476
1476
|
* A link element using the router of your choice.
|
|
1477
1477
|
*/
|
|
@@ -1518,14 +1518,14 @@ const _1 = (h) => {
|
|
|
1518
1518
|
"secondaryLink",
|
|
1519
1519
|
"className"
|
|
1520
1520
|
]);
|
|
1521
|
-
const p = "pds-card",
|
|
1521
|
+
const p = "pds-card", f = r ? `${p}--clickable` : null, E = `${n}`, _ = l.type, g = c ? /* @__PURE__ */ e.createElement("div", { className: `${p}__image` }, !r && l ? /* @__PURE__ */ e.createElement(
|
|
1522
1522
|
_,
|
|
1523
1523
|
y({
|
|
1524
1524
|
tabIndex: "-1",
|
|
1525
1525
|
"aria-hidden": "true"
|
|
1526
1526
|
}, l.props),
|
|
1527
1527
|
/* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })
|
|
1528
|
-
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null,
|
|
1528
|
+
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null, b = /* @__PURE__ */ e.createElement("div", { className: `${p}__text-elements` }, o && /* @__PURE__ */ e.createElement(
|
|
1529
1529
|
"div",
|
|
1530
1530
|
{
|
|
1531
1531
|
className: `${p}__kicker pds-overline-text pds-overline-text--sm`
|
|
@@ -1535,17 +1535,17 @@ const _1 = (h) => {
|
|
|
1535
1535
|
return r && l ? /* @__PURE__ */ e.createElement(
|
|
1536
1536
|
_,
|
|
1537
1537
|
y({
|
|
1538
|
-
className: [p,
|
|
1538
|
+
className: [p, f, d].join(" ").trim().replace(/\s+/g, " ")
|
|
1539
1539
|
}, l.props),
|
|
1540
1540
|
g,
|
|
1541
|
-
|
|
1541
|
+
b
|
|
1542
1542
|
) : /* @__PURE__ */ e.createElement(
|
|
1543
1543
|
"div",
|
|
1544
1544
|
y({
|
|
1545
|
-
className: [p,
|
|
1545
|
+
className: [p, f, d].join(" ").trim().replace(/\s+/g, " ")
|
|
1546
1546
|
}, u),
|
|
1547
1547
|
g,
|
|
1548
|
-
|
|
1548
|
+
b
|
|
1549
1549
|
);
|
|
1550
1550
|
};
|
|
1551
1551
|
_1.propTypes = {
|
|
@@ -1612,11 +1612,11 @@ const C1 = (u) => {
|
|
|
1612
1612
|
const m = "pds-card-select-group";
|
|
1613
1613
|
let p = `${m}__legend`;
|
|
1614
1614
|
c === "center" && (p = `${m}__legend ${m}__legend--center`), c === "hidden" && (p = `${m}__legend visually-hidden`);
|
|
1615
|
-
const [
|
|
1615
|
+
const [f, E] = R(n), _ = ($) => {
|
|
1616
1616
|
E($.target.value), o && o($.target.value);
|
|
1617
|
-
}, g = l.length,
|
|
1617
|
+
}, g = l.length, b = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", v = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
1618
1618
|
let C = "";
|
|
1619
|
-
return r === "twoAcross" ? C =
|
|
1619
|
+
return r === "twoAcross" ? C = b : r === "threeAcross" ? C = v : r === "auto" && (g % 3 === 0 ? C = v : g % 2 === 0 ? C = b : C = v), /* @__PURE__ */ e.createElement(
|
|
1620
1620
|
"fieldset",
|
|
1621
1621
|
y({
|
|
1622
1622
|
className: [m, i].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -1637,21 +1637,21 @@ const C1 = (u) => {
|
|
|
1637
1637
|
name: s,
|
|
1638
1638
|
value: $.value,
|
|
1639
1639
|
onClick: _,
|
|
1640
|
-
defaultChecked:
|
|
1640
|
+
defaultChecked: f === $.value
|
|
1641
1641
|
}
|
|
1642
1642
|
),
|
|
1643
1643
|
/* @__PURE__ */ e.createElement(
|
|
1644
1644
|
"label",
|
|
1645
1645
|
{
|
|
1646
1646
|
htmlFor: `${s}-option-${w}`,
|
|
1647
|
-
className:
|
|
1647
|
+
className: f === $.value ? `${m}__option-label ${m}__option-label--selected` : `${m}__option-label`
|
|
1648
1648
|
},
|
|
1649
1649
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
1650
1650
|
A,
|
|
1651
1651
|
{
|
|
1652
|
-
iconName:
|
|
1652
|
+
iconName: f === $.value ? "circleCheck" : "circle",
|
|
1653
1653
|
iconSize: "xl",
|
|
1654
|
-
className:
|
|
1654
|
+
className: f === $.value ? `${m}__option-icon ${m}__option-icon--selected` : `${m}__option-icon`
|
|
1655
1655
|
}
|
|
1656
1656
|
)),
|
|
1657
1657
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-text` }, $.label, $.description && /* @__PURE__ */ e.createElement("div", { className: `${m}__option-description` }, $.description))
|
|
@@ -1729,13 +1729,13 @@ const $1 = (u) => {
|
|
|
1729
1729
|
"secondaryLink",
|
|
1730
1730
|
"className"
|
|
1731
1731
|
]);
|
|
1732
|
-
const m = "pds-cta-slice", p = s && s !== "default" ? `${m}--${s}` : null,
|
|
1732
|
+
const m = "pds-cta-slice", p = s && s !== "default" ? `${m}--${s}` : null, f = n && n !== "default" ? `pds-container pds-container--${n}` : "pds-container", E = `${a}`;
|
|
1733
1733
|
return /* @__PURE__ */ e.createElement(
|
|
1734
1734
|
"div",
|
|
1735
1735
|
y({
|
|
1736
1736
|
className: [m, p, i].join(" ").trim().replace(/\s+/g, " ")
|
|
1737
1737
|
}, d),
|
|
1738
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
1738
|
+
/* @__PURE__ */ e.createElement("div", { className: f }, c && /* @__PURE__ */ e.createElement(E, { className: `${m}__heading pds-ts-4xl` }, c), r && /* @__PURE__ */ e.createElement(
|
|
1739
1739
|
"div",
|
|
1740
1740
|
{
|
|
1741
1741
|
className: `${m}__lead-text pds-lead-text pds-lead-text--sm`
|
|
@@ -1865,13 +1865,13 @@ const Fe = $t(null), y1 = ({
|
|
|
1865
1865
|
]);
|
|
1866
1866
|
const [m, p] = R(
|
|
1867
1867
|
a
|
|
1868
|
-
), { isMobile:
|
|
1868
|
+
), { isMobile: f } = He(Fe), E = se(), [_] = kt(E), b = {
|
|
1869
1869
|
navbarWidth: _.width,
|
|
1870
|
-
isSidebarExpanded:
|
|
1871
|
-
}, v = "pds-dashboard", C =
|
|
1870
|
+
isSidebarExpanded: f ? !0 : m
|
|
1871
|
+
}, v = "pds-dashboard", C = f ? `${v}--isMobile` : `${v}--notMobile`, $ = f ? null : m ? `${v}--sidebarExpanded` : `${v}--sidebarCollapsed`, w = m ? `${r}rem` : `${c}rem`, L = {
|
|
1872
1872
|
width: w,
|
|
1873
1873
|
transition: "width 200ms ease-in-out"
|
|
1874
|
-
}, k =
|
|
1874
|
+
}, k = f ? {} : {
|
|
1875
1875
|
width: `calc(100% - ${w})`,
|
|
1876
1876
|
transition: "width 200ms ease-in-out"
|
|
1877
1877
|
}, z = () => {
|
|
@@ -1893,7 +1893,7 @@ const Fe = $t(null), y1 = ({
|
|
|
1893
1893
|
},
|
|
1894
1894
|
/* @__PURE__ */ e.createElement("span", { className: `${v}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" }))
|
|
1895
1895
|
), /* @__PURE__ */ e.createElement("div", { className: `${v}__sidebar-inner` }, M));
|
|
1896
|
-
return /* @__PURE__ */ e.createElement(Qt.Provider, { value:
|
|
1896
|
+
return /* @__PURE__ */ e.createElement(Qt.Provider, { value: b }, /* @__PURE__ */ e.createElement(w1, { text: l, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
1897
1897
|
"div",
|
|
1898
1898
|
y({
|
|
1899
1899
|
className: [
|
|
@@ -1904,8 +1904,8 @@ const Fe = $t(null), y1 = ({
|
|
|
1904
1904
|
i != null ? i : ""
|
|
1905
1905
|
].join(" ").trim().replace(/\s+/g, " ")
|
|
1906
1906
|
}, d),
|
|
1907
|
-
|
|
1908
|
-
|
|
1907
|
+
f && x,
|
|
1908
|
+
f ? H : S,
|
|
1909
1909
|
/* @__PURE__ */ e.createElement(
|
|
1910
1910
|
"div",
|
|
1911
1911
|
{
|
|
@@ -1913,7 +1913,7 @@ const Fe = $t(null), y1 = ({
|
|
|
1913
1913
|
className: `${v}__container`,
|
|
1914
1914
|
style: k
|
|
1915
1915
|
},
|
|
1916
|
-
!
|
|
1916
|
+
!f && /* @__PURE__ */ e.createElement("div", { className: `${v}__header` }, x),
|
|
1917
1917
|
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${v}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${v}__main-inner` }, T), V && /* @__PURE__ */ e.createElement("footer", { className: `${v}__footer` }, V))
|
|
1918
1918
|
)
|
|
1919
1919
|
));
|
|
@@ -2012,11 +2012,11 @@ const N1 = Be(
|
|
|
2012
2012
|
},
|
|
2013
2013
|
loadingText: m = "Loading results...",
|
|
2014
2014
|
message: p,
|
|
2015
|
-
noResultsText:
|
|
2015
|
+
noResultsText: f = "No results found",
|
|
2016
2016
|
onBlur: E,
|
|
2017
2017
|
onClear: _,
|
|
2018
2018
|
onFocus: g,
|
|
2019
|
-
onOptionSelect:
|
|
2019
|
+
onOptionSelect: b,
|
|
2020
2020
|
options: v,
|
|
2021
2021
|
placeholder: C,
|
|
2022
2022
|
required: $ = !1,
|
|
@@ -2063,7 +2063,7 @@ const N1 = Be(
|
|
|
2063
2063
|
open: O,
|
|
2064
2064
|
onOpenChange: D,
|
|
2065
2065
|
whileElementsMounted: Pe
|
|
2066
|
-
}), _e = Te(le, { role: "listbox" }), ee = Se(le), Q =
|
|
2066
|
+
}), _e = Te(le, { role: "listbox" }), ee = Se(le), Q = mt(le, {
|
|
2067
2067
|
listRef: de,
|
|
2068
2068
|
activeIndex: U,
|
|
2069
2069
|
onNavigate: K,
|
|
@@ -2096,12 +2096,12 @@ const N1 = Be(
|
|
|
2096
2096
|
E && g(he);
|
|
2097
2097
|
}, We = (he) => {
|
|
2098
2098
|
g && g(he);
|
|
2099
|
-
},
|
|
2099
|
+
}, ht = (he) => {
|
|
2100
2100
|
const ve = be[he];
|
|
2101
|
-
X(ve.label), K(null), D(!1),
|
|
2101
|
+
X(ve.label), K(null), D(!1), b && b(ve);
|
|
2102
2102
|
}, xt = (he) => he.map((xe) => {
|
|
2103
|
-
const { label: Re, optionDisplay: De, value:
|
|
2104
|
-
return
|
|
2103
|
+
const { label: Re, optionDisplay: De, value: gt, searchIndex: ft } = xe, q = gt || Re, re = [Re, gt];
|
|
2104
|
+
return ft && re.push(...ft), {
|
|
2105
2105
|
label: Re,
|
|
2106
2106
|
value: q,
|
|
2107
2107
|
searchIndex: re,
|
|
@@ -2128,7 +2128,7 @@ const N1 = Be(
|
|
|
2128
2128
|
id: `${l}__option--${ve}`,
|
|
2129
2129
|
isActive: U === ve
|
|
2130
2130
|
}, we({
|
|
2131
|
-
onMouseDown: () =>
|
|
2131
|
+
onMouseDown: () => ht(ve)
|
|
2132
2132
|
})),
|
|
2133
2133
|
De || xe
|
|
2134
2134
|
);
|
|
@@ -2148,7 +2148,7 @@ const N1 = Be(
|
|
|
2148
2148
|
style: i ? V : null
|
|
2149
2149
|
}, N),
|
|
2150
2150
|
/* @__PURE__ */ e.createElement(
|
|
2151
|
-
|
|
2151
|
+
pt,
|
|
2152
2152
|
{
|
|
2153
2153
|
id: l,
|
|
2154
2154
|
label: u,
|
|
@@ -2185,7 +2185,7 @@ const N1 = Be(
|
|
|
2185
2185
|
onChange: ze,
|
|
2186
2186
|
onFocus: We,
|
|
2187
2187
|
onKeyDown(he) {
|
|
2188
|
-
he.key === "Enter" && U != null && be[U] &&
|
|
2188
|
+
he.key === "Enter" && U != null && be[U] && ht(U);
|
|
2189
2189
|
}
|
|
2190
2190
|
}))
|
|
2191
2191
|
),
|
|
@@ -2235,7 +2235,7 @@ const N1 = Be(
|
|
|
2235
2235
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2236
2236
|
}
|
|
2237
2237
|
})),
|
|
2238
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, ce) }, d ? /* @__PURE__ */ e.createElement("div", { className: `${H}__loading` }, m) : be.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${H}__options` }, Je) : /* @__PURE__ */ e.createElement("div", { className: `${H}__no-results` },
|
|
2238
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, ce) }, d ? /* @__PURE__ */ e.createElement("div", { className: `${H}__loading` }, m) : be.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${H}__options` }, Je) : /* @__PURE__ */ e.createElement("div", { className: `${H}__no-results` }, f))
|
|
2239
2239
|
),
|
|
2240
2240
|
B && /* @__PURE__ */ e.createElement(
|
|
2241
2241
|
Xe,
|
|
@@ -2268,7 +2268,7 @@ const N1 = Be(
|
|
|
2268
2268
|
siteList: h,
|
|
2269
2269
|
startingRightPosition: m = 9.25,
|
|
2270
2270
|
className: p
|
|
2271
|
-
} = _,
|
|
2271
|
+
} = _, f = I(_, [
|
|
2272
2272
|
"disabled",
|
|
2273
2273
|
"id",
|
|
2274
2274
|
"isLoading",
|
|
@@ -2283,7 +2283,7 @@ const N1 = Be(
|
|
|
2283
2283
|
"startingRightPosition",
|
|
2284
2284
|
"className"
|
|
2285
2285
|
]);
|
|
2286
|
-
const [g,
|
|
2286
|
+
const [g, b] = R(!1), [v, C] = R(null), $ = se(null);
|
|
2287
2287
|
let w = !1;
|
|
2288
2288
|
const L = He(Fe);
|
|
2289
2289
|
L && (w = L.isMobile);
|
|
@@ -2297,12 +2297,12 @@ const N1 = Be(
|
|
|
2297
2297
|
right: `${m}rem`,
|
|
2298
2298
|
width: `${T}rem`
|
|
2299
2299
|
}, H = "pds-dashboard-search", S = w ? `${H}--isMobile` : null, P = () => {
|
|
2300
|
-
|
|
2300
|
+
b(!0), setTimeout(() => {
|
|
2301
2301
|
$.current.querySelector("input").focus();
|
|
2302
2302
|
}, 500);
|
|
2303
2303
|
}, j = () => {
|
|
2304
2304
|
setTimeout(() => {
|
|
2305
|
-
|
|
2305
|
+
b(!1);
|
|
2306
2306
|
}, 150);
|
|
2307
2307
|
}, F = (D) => {
|
|
2308
2308
|
C(D.value), d && d(D);
|
|
@@ -2373,7 +2373,7 @@ const N1 = Be(
|
|
|
2373
2373
|
onKeyDown: w ? null : (D) => {
|
|
2374
2374
|
D.key === "Escape" && j();
|
|
2375
2375
|
}
|
|
2376
|
-
},
|
|
2376
|
+
}, f),
|
|
2377
2377
|
w ? O : W
|
|
2378
2378
|
);
|
|
2379
2379
|
};
|
|
@@ -2615,8 +2615,8 @@ Ls.propTypes = {
|
|
|
2615
2615
|
className: t.string
|
|
2616
2616
|
};
|
|
2617
2617
|
const Qe = Be(
|
|
2618
|
-
(
|
|
2619
|
-
var v =
|
|
2618
|
+
(b, g) => {
|
|
2619
|
+
var v = b, {
|
|
2620
2620
|
children: s,
|
|
2621
2621
|
decorator: n,
|
|
2622
2622
|
disabled: a = !1,
|
|
@@ -2630,7 +2630,7 @@ const Qe = Be(
|
|
|
2630
2630
|
readonly: h = !1,
|
|
2631
2631
|
required: m = !1,
|
|
2632
2632
|
showLabel: p = !0,
|
|
2633
|
-
validationState:
|
|
2633
|
+
validationState: f,
|
|
2634
2634
|
className: E
|
|
2635
2635
|
} = v, _ = I(v, [
|
|
2636
2636
|
"children",
|
|
@@ -2649,7 +2649,7 @@ const Qe = Be(
|
|
|
2649
2649
|
"validationState",
|
|
2650
2650
|
"className"
|
|
2651
2651
|
]);
|
|
2652
|
-
const C = "pds-input-wrapper", $ = `${C}--${r}`, w = "pds-input-label", L = `pds-input-field__message pds-input-field__message--${u}`, k =
|
|
2652
|
+
const C = "pds-input-wrapper", $ = `${C}--${r}`, w = "pds-input-label", L = `pds-input-field__message pds-input-field__message--${u}`, k = f === "error" ? "pds-has-error" : null, z = f === "success" ? "pds-has-success" : null, N = a ? "pds-is-disabled" : null, x = h ? "pds-is-readonly" : null, M = m && !a ? "pds-is-required" : null, T = o ? `${o / 16}rem` : null, V = o ? { width: T } : null, H = l ? "fieldset" : "div", S = m && !a ? /* @__PURE__ */ e.createElement(
|
|
2653
2653
|
A,
|
|
2654
2654
|
{
|
|
2655
2655
|
iconName: "asterisk",
|
|
@@ -2661,7 +2661,7 @@ const Qe = Be(
|
|
|
2661
2661
|
{
|
|
2662
2662
|
className: L,
|
|
2663
2663
|
id: `${c}__message`,
|
|
2664
|
-
role:
|
|
2664
|
+
role: f === "error" ? "alert" : null,
|
|
2665
2665
|
style: V
|
|
2666
2666
|
},
|
|
2667
2667
|
d
|
|
@@ -2768,7 +2768,7 @@ Qe.propTypes = {
|
|
|
2768
2768
|
*/
|
|
2769
2769
|
className: t.string
|
|
2770
2770
|
};
|
|
2771
|
-
const
|
|
2771
|
+
const it = (m) => {
|
|
2772
2772
|
var p = m, {
|
|
2773
2773
|
ariaLabel: s,
|
|
2774
2774
|
buttonType: n = "button",
|
|
@@ -2793,21 +2793,21 @@ const _t = (m) => {
|
|
|
2793
2793
|
"variant",
|
|
2794
2794
|
"className"
|
|
2795
2795
|
]);
|
|
2796
|
-
const
|
|
2797
|
-
fadeOut: `${
|
|
2798
|
-
hide: `${
|
|
2799
|
-
scaleIn: `${
|
|
2796
|
+
const f = "pds-icon-button", E = i !== "md" ? `${f}--${i}` : null, _ = d !== "standard" ? `${f}--${d}` : null, g = {
|
|
2797
|
+
fadeOut: `${f}--fadeOut`,
|
|
2798
|
+
hide: `${f}--hide`,
|
|
2799
|
+
scaleIn: `${f}--scaleIn`
|
|
2800
2800
|
};
|
|
2801
|
-
let
|
|
2801
|
+
let b, v;
|
|
2802
2802
|
switch (i) {
|
|
2803
2803
|
case "sm":
|
|
2804
|
-
v = "md",
|
|
2804
|
+
v = "md", b = 8;
|
|
2805
2805
|
break;
|
|
2806
2806
|
case "md":
|
|
2807
|
-
v = "md",
|
|
2807
|
+
v = "md", b = 10;
|
|
2808
2808
|
break;
|
|
2809
2809
|
case "lg":
|
|
2810
|
-
v = "xl",
|
|
2810
|
+
v = "xl", b = 12;
|
|
2811
2811
|
}
|
|
2812
2812
|
const C = o !== null, $ = se(null), w = se(null), L = () => {
|
|
2813
2813
|
$.current.classList.add(g.fadeOut), $.current.classList.add(g.hide), w.current.classList.remove(g.hide), w.current.classList.add(g.scaleIn), setTimeout(() => {
|
|
@@ -2818,56 +2818,58 @@ const _t = (m) => {
|
|
|
2818
2818
|
}, 2e3);
|
|
2819
2819
|
}, k = () => {
|
|
2820
2820
|
C && L(), l && l();
|
|
2821
|
-
}, z = C ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2821
|
+
}, z = C ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref: $, className: `${f}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2822
2822
|
A,
|
|
2823
2823
|
{
|
|
2824
2824
|
iconName: r,
|
|
2825
2825
|
iconSize: v,
|
|
2826
|
-
className: `${
|
|
2826
|
+
className: `${f}__icon`
|
|
2827
2827
|
}
|
|
2828
2828
|
)), /* @__PURE__ */ e.createElement(
|
|
2829
2829
|
"div",
|
|
2830
2830
|
{
|
|
2831
2831
|
ref: w,
|
|
2832
|
-
className: `${
|
|
2832
|
+
className: `${f}__icon-wrapper ${g.hide}`
|
|
2833
2833
|
},
|
|
2834
2834
|
/* @__PURE__ */ e.createElement(
|
|
2835
2835
|
A,
|
|
2836
2836
|
{
|
|
2837
2837
|
iconName: o,
|
|
2838
2838
|
iconSize: v,
|
|
2839
|
-
className: `${
|
|
2839
|
+
className: `${f}__icon`
|
|
2840
2840
|
}
|
|
2841
2841
|
)
|
|
2842
|
-
)) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2842
|
+
)) : /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
2843
2843
|
A,
|
|
2844
2844
|
{
|
|
2845
2845
|
iconName: r,
|
|
2846
2846
|
iconSize: v,
|
|
2847
|
-
className: `${
|
|
2847
|
+
className: `${f}__icon`
|
|
2848
2848
|
}
|
|
2849
2849
|
));
|
|
2850
2850
|
return /* @__PURE__ */ e.createElement(
|
|
2851
2851
|
"button",
|
|
2852
2852
|
y({
|
|
2853
2853
|
"aria-label": s,
|
|
2854
|
-
className: [
|
|
2854
|
+
className: [f, E, _, u].join(" ").trim().replace(/\s+/g, " "),
|
|
2855
2855
|
disabled: a,
|
|
2856
2856
|
onClick: k,
|
|
2857
2857
|
type: n,
|
|
2858
2858
|
title: c && !a ? null : s
|
|
2859
2859
|
}, h),
|
|
2860
2860
|
c && !a ? /* @__PURE__ */ e.createElement(
|
|
2861
|
-
|
|
2861
|
+
_t,
|
|
2862
2862
|
{
|
|
2863
2863
|
content: s,
|
|
2864
|
-
className: `${
|
|
2865
|
-
offsetValue:
|
|
2864
|
+
className: `${f}__tooltip`,
|
|
2865
|
+
offsetValue: b,
|
|
2866
2866
|
customTrigger: z
|
|
2867
2867
|
}
|
|
2868
2868
|
) : z
|
|
2869
2869
|
);
|
|
2870
|
-
}
|
|
2870
|
+
};
|
|
2871
|
+
it.displayName = "IconButton";
|
|
2872
|
+
const M1 = (_) => {
|
|
2871
2873
|
var g = _, {
|
|
2872
2874
|
accept: s,
|
|
2873
2875
|
chooseFileLabel: n = "Choose file",
|
|
@@ -2882,7 +2884,7 @@ const _t = (m) => {
|
|
|
2882
2884
|
required: h = !1,
|
|
2883
2885
|
showLabel: m = !0,
|
|
2884
2886
|
validationFunction: p,
|
|
2885
|
-
className:
|
|
2887
|
+
className: f
|
|
2886
2888
|
} = g, E = I(g, [
|
|
2887
2889
|
"accept",
|
|
2888
2890
|
"chooseFileLabel",
|
|
@@ -2899,7 +2901,7 @@ const _t = (m) => {
|
|
|
2899
2901
|
"validationFunction",
|
|
2900
2902
|
"className"
|
|
2901
2903
|
]);
|
|
2902
|
-
const [
|
|
2904
|
+
const [b, v] = R(!1), [C, $] = R(), [w, L] = R(null), k = "pds-file-upload", z = b ? `${k}--has-value` : null;
|
|
2903
2905
|
let N = null;
|
|
2904
2906
|
w === "error" && (N = "error"), w === "success" && (N = "success");
|
|
2905
2907
|
const x = () => {
|
|
@@ -2917,7 +2919,7 @@ const _t = (m) => {
|
|
|
2917
2919
|
return /* @__PURE__ */ e.createElement(
|
|
2918
2920
|
Qe,
|
|
2919
2921
|
y({
|
|
2920
|
-
className:
|
|
2922
|
+
className: f,
|
|
2921
2923
|
decorator: N,
|
|
2922
2924
|
disabled: c,
|
|
2923
2925
|
id: o,
|
|
@@ -2933,7 +2935,7 @@ const _t = (m) => {
|
|
|
2933
2935
|
"label",
|
|
2934
2936
|
{
|
|
2935
2937
|
htmlFor: o,
|
|
2936
|
-
className:
|
|
2938
|
+
className: b ? "visually-hidden" : `${k}__label`
|
|
2937
2939
|
},
|
|
2938
2940
|
/* @__PURE__ */ e.createElement(A, { iconName: "paperclip", iconSize: "sm" }),
|
|
2939
2941
|
n
|
|
@@ -2951,8 +2953,8 @@ const _t = (m) => {
|
|
|
2951
2953
|
onChange: M
|
|
2952
2954
|
}
|
|
2953
2955
|
),
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
+
b && /* @__PURE__ */ e.createElement(
|
|
2957
|
+
it,
|
|
2956
2958
|
{
|
|
2957
2959
|
ariaLabel: a,
|
|
2958
2960
|
buttonType: "button",
|
|
@@ -3141,7 +3143,7 @@ const V1 = new Intl.NumberFormat().formatToParts(100000089e-2), It = V1.find((s)
|
|
|
3141
3143
|
showLabel: h = !0,
|
|
3142
3144
|
validationFunction: m,
|
|
3143
3145
|
className: p
|
|
3144
|
-
} = _,
|
|
3146
|
+
} = _, f = I(_, [
|
|
3145
3147
|
"disabled",
|
|
3146
3148
|
"formatting",
|
|
3147
3149
|
"hasClearButton",
|
|
@@ -3156,10 +3158,10 @@ const V1 = new Intl.NumberFormat().formatToParts(100000089e-2), It = V1.find((s)
|
|
|
3156
3158
|
"validationFunction",
|
|
3157
3159
|
"className"
|
|
3158
3160
|
]);
|
|
3159
|
-
const g = "pds-input-formatted",
|
|
3161
|
+
const g = "pds-input-formatted", b = n ? `${g}--${n}` : null, v = se([
|
|
3160
3162
|
"pds-input-field",
|
|
3161
3163
|
g,
|
|
3162
|
-
|
|
3164
|
+
b,
|
|
3163
3165
|
p
|
|
3164
3166
|
]), [C, $] = R(""), [w, L] = R(null), [k, z] = R(null), N = se(null), x = se(null), M = se("");
|
|
3165
3167
|
oe(() => {
|
|
@@ -3244,7 +3246,7 @@ const V1 = new Intl.NumberFormat().formatToParts(100000089e-2), It = V1.find((s)
|
|
|
3244
3246
|
};
|
|
3245
3247
|
T(), u && !s && v.current.push($e.required), s && v.current.push($e.disabled);
|
|
3246
3248
|
let W = null;
|
|
3247
|
-
return k === "error" && (W = /* @__PURE__ */ e.createElement(ct, { type: "error" })), k === "success" && (W = /* @__PURE__ */ e.createElement(ct, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className: v.current.join(" ").trim() },
|
|
3249
|
+
return k === "error" && (W = /* @__PURE__ */ e.createElement(ct, { type: "error" })), k === "success" && (W = /* @__PURE__ */ e.createElement(ct, { type: "success" })), /* @__PURE__ */ e.createElement("div", y({ className: v.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" }, W && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, W), /* @__PURE__ */ e.createElement(
|
|
3248
3250
|
"input",
|
|
3249
3251
|
{
|
|
3250
3252
|
className: "pds-input-field__input",
|
|
@@ -3354,8 +3356,8 @@ I1.propTypes = {
|
|
|
3354
3356
|
*/
|
|
3355
3357
|
className: t.string
|
|
3356
3358
|
};
|
|
3357
|
-
const S1 = (
|
|
3358
|
-
var E =
|
|
3359
|
+
const S1 = (f) => {
|
|
3360
|
+
var E = f, {
|
|
3359
3361
|
counterFunction: s = () => {
|
|
3360
3362
|
},
|
|
3361
3363
|
disabled: n = !1,
|
|
@@ -3383,7 +3385,7 @@ const S1 = (b) => {
|
|
|
3383
3385
|
"validationFunction",
|
|
3384
3386
|
"className"
|
|
3385
3387
|
]);
|
|
3386
|
-
const _ = "pds-input-obscured", g = se(["pds-input-field", _, m]), [
|
|
3388
|
+
const _ = "pds-input-obscured", g = se(["pds-input-field", _, m]), [b, v] = R(r), [C, $] = R(s("")), [w, L] = R(), [k, z] = R(null), [N, x] = R(!1), M = se(null), T = se(null);
|
|
3387
3389
|
oe(() => {
|
|
3388
3390
|
r && s && $(s(r));
|
|
3389
3391
|
}, []);
|
|
@@ -3404,7 +3406,7 @@ const S1 = (b) => {
|
|
|
3404
3406
|
const D = h(O.target.value) || {};
|
|
3405
3407
|
S(), D.error && (z("error"), g.current.push($e.error)), D.success && (z("success"), g.current.push($e.success)), L(D.message);
|
|
3406
3408
|
}
|
|
3407
|
-
i && i(
|
|
3409
|
+
i && i(b);
|
|
3408
3410
|
}, F = () => {
|
|
3409
3411
|
S(), v(""), T.current.value = null, T.current.focus(), s && $(s("")), i && i("");
|
|
3410
3412
|
}, Z = () => {
|
|
@@ -3440,7 +3442,7 @@ const S1 = (b) => {
|
|
|
3440
3442
|
name: c,
|
|
3441
3443
|
required: d,
|
|
3442
3444
|
disabled: n,
|
|
3443
|
-
value:
|
|
3445
|
+
value: b,
|
|
3444
3446
|
onChange: P,
|
|
3445
3447
|
onBlur: j,
|
|
3446
3448
|
ref: T,
|
|
@@ -3448,7 +3450,7 @@ const S1 = (b) => {
|
|
|
3448
3450
|
"aria-describedby": l || w ? `${c}__message` : null,
|
|
3449
3451
|
autoComplete: "off"
|
|
3450
3452
|
}
|
|
3451
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, C && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, C),
|
|
3453
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, C && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, C), b && a && /* @__PURE__ */ e.createElement(
|
|
3452
3454
|
Mt,
|
|
3453
3455
|
{
|
|
3454
3456
|
id: c,
|
|
@@ -3571,11 +3573,11 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3571
3573
|
message: h,
|
|
3572
3574
|
onChange: m,
|
|
3573
3575
|
onFocus: p,
|
|
3574
|
-
placeholder:
|
|
3576
|
+
placeholder: f,
|
|
3575
3577
|
readonly: E = !1,
|
|
3576
3578
|
required: _ = !1,
|
|
3577
3579
|
showLabel: g = !0,
|
|
3578
|
-
specialFormatting:
|
|
3580
|
+
specialFormatting: b,
|
|
3579
3581
|
specialFormattingValidation: v = !1,
|
|
3580
3582
|
toggleVisibility: C = !1,
|
|
3581
3583
|
type: $ = "text",
|
|
@@ -3611,10 +3613,10 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3611
3613
|
"validationMessages",
|
|
3612
3614
|
"className"
|
|
3613
3615
|
]);
|
|
3614
|
-
const [M, T] = R(l), [V, H] = R(n("")), [S, P] = R(), [j, F] = R(null), [Z, B] = R(!1), W = se(null), O = se(null), D = se(null), U = se(null), K = "pds-input-text", ie =
|
|
3616
|
+
const [M, T] = R(l), [V, H] = R(n("")), [S, P] = R(), [j, F] = R(null), [Z, B] = R(!1), W = se(null), O = se(null), D = se(null), U = se(null), K = "pds-input-text", ie = b ? `${K}--${b}` : null;
|
|
3615
3617
|
let X = null;
|
|
3616
|
-
$ === "search" && (X = "search"), j === "error" && (X = "error"), j === "success" && (X = "success"),
|
|
3617
|
-
switch (l && T(te(l)), U.numExtra = "",
|
|
3618
|
+
$ === "search" && (X = "search"), j === "error" && (X = "error"), j === "success" && (X = "success"), b && v && oe(() => {
|
|
3619
|
+
switch (l && T(te(l)), U.numExtra = "", b) {
|
|
3618
3620
|
case "credit-card":
|
|
3619
3621
|
U.numExtra = 3, U.current = Tt;
|
|
3620
3622
|
break;
|
|
@@ -3624,10 +3626,10 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3624
3626
|
}
|
|
3625
3627
|
}, []);
|
|
3626
3628
|
let be = null;
|
|
3627
|
-
(
|
|
3629
|
+
(b === "credit-card" || b === "phone") && U.current && (be = U.current + U.numExtra);
|
|
3628
3630
|
const te = (ne) => {
|
|
3629
3631
|
if (ne) {
|
|
3630
|
-
if (
|
|
3632
|
+
if (b === "credit-card") {
|
|
3631
3633
|
const ce = ("" + ne).replace(/\D/g, "");
|
|
3632
3634
|
if (D.current = ce, ce) {
|
|
3633
3635
|
if (new RegExp("^34|37", "g").test(ce)) {
|
|
@@ -3641,7 +3643,7 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3641
3643
|
}
|
|
3642
3644
|
return ce;
|
|
3643
3645
|
}
|
|
3644
|
-
if (
|
|
3646
|
+
if (b === "phone") {
|
|
3645
3647
|
const ce = ("" + ne).replace(/\D/g, "");
|
|
3646
3648
|
if (D.current = ce, ce) {
|
|
3647
3649
|
U.numExtra = 4, U.current = rs;
|
|
@@ -3663,15 +3665,15 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3663
3665
|
}, le = (ne) => {
|
|
3664
3666
|
p && p(ne.target);
|
|
3665
3667
|
}, ae = (ne) => {
|
|
3666
|
-
|
|
3668
|
+
b ? m && m({ formattedValue: ne, rawValue: D.current }) : m && m(ne);
|
|
3667
3669
|
}, _e = (ne) => {
|
|
3668
|
-
T(
|
|
3670
|
+
T(b ? te(ne.target.value) : ne.target.value), de(), n && H(n(b ? D.current : ne.target.value)), ae(ne.target.value);
|
|
3669
3671
|
}, ee = (ne) => {
|
|
3670
3672
|
if (C && B(!1), w) {
|
|
3671
3673
|
const ce = w(ne.target.value) || {};
|
|
3672
3674
|
de(), ce.error && F("error"), ce.success && F("success"), P(ce.message);
|
|
3673
3675
|
}
|
|
3674
|
-
|
|
3676
|
+
b && v && !w && (W.current.checkValidity() === !1 || ne.target.value.length < be ? (F("error"), b === "credit-card" && P(L.creditCardError), b === "phone" && P(L.phoneError)) : F("success")), ae(ne.target.value);
|
|
3675
3677
|
}, Q = (ne) => {
|
|
3676
3678
|
var ce;
|
|
3677
3679
|
(!((ce = O.current) != null && ce.contains(ne.relatedTarget)) || !ne.relatedTarget) && B(!1);
|
|
@@ -3691,7 +3693,7 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3691
3693
|
const pe = () => {
|
|
3692
3694
|
B((ne) => !ne);
|
|
3693
3695
|
};
|
|
3694
|
-
C && $ === "password" && (Z ? z.type = "text" : z.type = "password"),
|
|
3696
|
+
C && $ === "password" && (Z ? z.type = "text" : z.type = "password"), b === "phone" && (z.type = "tel");
|
|
3695
3697
|
const we = S || h;
|
|
3696
3698
|
return /* @__PURE__ */ e.createElement(
|
|
3697
3699
|
Qe,
|
|
@@ -3719,7 +3721,7 @@ const Tt = 16, rs = 10, T1 = (N) => {
|
|
|
3719
3721
|
type: $,
|
|
3720
3722
|
id: o,
|
|
3721
3723
|
name: o,
|
|
3722
|
-
placeholder:
|
|
3724
|
+
placeholder: f,
|
|
3723
3725
|
required: _,
|
|
3724
3726
|
readOnly: E,
|
|
3725
3727
|
disabled: a,
|
|
@@ -3951,7 +3953,7 @@ const os = [
|
|
|
3951
3953
|
], R1 = (s) => {
|
|
3952
3954
|
const n = parseInt(_s(s), 16);
|
|
3953
3955
|
return os[n % os.length];
|
|
3954
|
-
},
|
|
3956
|
+
}, dt = (l) => {
|
|
3955
3957
|
var i = l, {
|
|
3956
3958
|
size: s = "md",
|
|
3957
3959
|
imageSrc: n,
|
|
@@ -3970,12 +3972,12 @@ const os = [
|
|
|
3970
3972
|
borderRadius: "100%",
|
|
3971
3973
|
height: "100%",
|
|
3972
3974
|
width: "100%"
|
|
3973
|
-
},
|
|
3975
|
+
}, f = n ? /* @__PURE__ */ e.createElement("img", { src: `${n}`, className: `${d}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: p }), E = /* @__PURE__ */ e.createElement("span", { className: `${d}__content` }, f), _ = Ut(a) ? qe(
|
|
3974
3976
|
a,
|
|
3975
3977
|
fe(y({}, a.props), {
|
|
3976
3978
|
className: `${d}__content ${d}__content--link`
|
|
3977
3979
|
}),
|
|
3978
|
-
|
|
3980
|
+
f
|
|
3979
3981
|
) : null;
|
|
3980
3982
|
return /* @__PURE__ */ e.createElement(
|
|
3981
3983
|
"div",
|
|
@@ -3985,7 +3987,7 @@ const os = [
|
|
|
3985
3987
|
a ? _ : E
|
|
3986
3988
|
);
|
|
3987
3989
|
}, Ot = (s) => s.isSeparator, Rt = (s) => s.isHeading, Dt = (s) => s.isLink, D1 = (s) => s.isNode, Vs = (g) => {
|
|
3988
|
-
var
|
|
3990
|
+
var b = g, {
|
|
3989
3991
|
avatarImageSrc: s,
|
|
3990
3992
|
disabled: n,
|
|
3991
3993
|
displayType: a = "icon-end",
|
|
@@ -3999,9 +4001,9 @@ const os = [
|
|
|
3999
4001
|
testId: h,
|
|
4000
4002
|
undefinedLabel: m = "Unlabeled group",
|
|
4001
4003
|
variant: p = "primary",
|
|
4002
|
-
withinNavbar:
|
|
4004
|
+
withinNavbar: f,
|
|
4003
4005
|
className: E
|
|
4004
|
-
} =
|
|
4006
|
+
} = b, _ = I(b, [
|
|
4005
4007
|
"avatarImageSrc",
|
|
4006
4008
|
"disabled",
|
|
4007
4009
|
"displayType",
|
|
@@ -4034,7 +4036,7 @@ const os = [
|
|
|
4034
4036
|
let x = !1;
|
|
4035
4037
|
const M = He(Fe);
|
|
4036
4038
|
M && (x = M.isMobile);
|
|
4037
|
-
const T =
|
|
4039
|
+
const T = f && x, 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>', H = "pds-menu-button", S = T ? `${H}--isMobile` : null, P = f ? `${H}--navbar` : null, j = Ae(), [F] = R(`menu-button-${j}`), [Z] = R(`menu-listbox-${j}`), B = r || F, W = N.floating, O = se(null), [D, U] = R(!1), [K, ie] = R(!1), [X, be] = R(""), [te, de] = R(0), le = se([]), ae = se([]), _e = se([]);
|
|
4038
4040
|
Ks(() => {
|
|
4039
4041
|
window.addEventListener("mousedown", Ee, !0), k();
|
|
4040
4042
|
const q = W.current;
|
|
@@ -4165,8 +4167,8 @@ const os = [
|
|
|
4165
4167
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", key: Ve }, q.nodeContent);
|
|
4166
4168
|
if (Dt(q) || q.label) {
|
|
4167
4169
|
ae.current.push(Ve), _e.current.push(q);
|
|
4168
|
-
let
|
|
4169
|
-
X !== "" && !q.disabled && (
|
|
4170
|
+
let bt = !1;
|
|
4171
|
+
X !== "" && !q.disabled && (bt = X === Ve);
|
|
4170
4172
|
let Me;
|
|
4171
4173
|
if (q.label && (Me = [q.label]), Dt(q) && (Me = [q.linkContent.props.children]), q.iconName) {
|
|
4172
4174
|
const st = /* @__PURE__ */ e.createElement(A, { key: `icon-${j}`, iconName: q.iconName, iconSize: "md" });
|
|
@@ -4186,7 +4188,7 @@ const os = [
|
|
|
4186
4188
|
id: Ve,
|
|
4187
4189
|
key: Ve,
|
|
4188
4190
|
"data-testid": q.testId,
|
|
4189
|
-
className:
|
|
4191
|
+
className: bt ? `${H}__item-focused` : null,
|
|
4190
4192
|
role: "menuitem",
|
|
4191
4193
|
tabIndex: -1,
|
|
4192
4194
|
onClick: Le,
|
|
@@ -4195,7 +4197,7 @@ const os = [
|
|
|
4195
4197
|
tt
|
|
4196
4198
|
);
|
|
4197
4199
|
}
|
|
4198
|
-
},
|
|
4200
|
+
}, ht = (q, re) => {
|
|
4199
4201
|
const Y = [];
|
|
4200
4202
|
let ge = re.shift(), me = [];
|
|
4201
4203
|
return q.map((Ne, Ce) => {
|
|
@@ -4207,15 +4209,15 @@ const os = [
|
|
|
4207
4209
|
Rt || Ot
|
|
4208
4210
|
), ge = Y.length > 0;
|
|
4209
4211
|
let me = [`${H}__listbox`];
|
|
4210
|
-
if (
|
|
4211
|
-
const Ne =
|
|
4212
|
+
if (f && me.push(`${H}__listbox--navbar`), (a === "avatar" || a === "avatar-with-text") && me.push(`${H}__listbox--avatar`), d === "end" && me.push(`${H}__listbox--end`), a === "icon-only" && me.push(`${H}__listbox--icon-only`), me = me.join(" ").trim().replace(/\s+/g, " "), ge) {
|
|
4213
|
+
const Ne = ht(q, Y);
|
|
4212
4214
|
Ne.forEach(() => {
|
|
4213
4215
|
le.current.push(Ae());
|
|
4214
4216
|
});
|
|
4215
4217
|
let Ce = le.current[0];
|
|
4216
4218
|
const Ve = Ne[0].findIndex(
|
|
4217
4219
|
(Me) => !Ot(Me) && !Rt(Me)
|
|
4218
|
-
),
|
|
4220
|
+
), bt = `${B}-group-${Ce}-item-${Ve + 1}`;
|
|
4219
4221
|
return /* @__PURE__ */ e.createElement(
|
|
4220
4222
|
"div",
|
|
4221
4223
|
{
|
|
@@ -4224,7 +4226,7 @@ const os = [
|
|
|
4224
4226
|
role: "menu",
|
|
4225
4227
|
tabIndex: -1,
|
|
4226
4228
|
"aria-labelledby": B,
|
|
4227
|
-
"aria-activedescendant": X !== "" ? X :
|
|
4229
|
+
"aria-activedescendant": X !== "" ? X : bt,
|
|
4228
4230
|
style: {
|
|
4229
4231
|
visibility: D ? "visible" : "hidden",
|
|
4230
4232
|
opacity: D ? "1" : "0",
|
|
@@ -4303,7 +4305,7 @@ const os = [
|
|
|
4303
4305
|
ref: $
|
|
4304
4306
|
}
|
|
4305
4307
|
)), a === "icon-only" && (Je = /* @__PURE__ */ e.createElement(
|
|
4306
|
-
|
|
4308
|
+
it,
|
|
4307
4309
|
{
|
|
4308
4310
|
id: B,
|
|
4309
4311
|
ariaLabel: l,
|
|
@@ -4336,7 +4338,7 @@ const os = [
|
|
|
4336
4338
|
onKeyDown: ke,
|
|
4337
4339
|
ref: $
|
|
4338
4340
|
},
|
|
4339
|
-
/* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
4341
|
+
/* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(dt, { size: "sm", imageSrc: s || V }), a === "avatar-with-text" && l),
|
|
4340
4342
|
/* @__PURE__ */ e.createElement(
|
|
4341
4343
|
A,
|
|
4342
4344
|
{
|
|
@@ -4366,7 +4368,7 @@ const os = [
|
|
|
4366
4368
|
onClick: he
|
|
4367
4369
|
},
|
|
4368
4370
|
a === "avatar" || a === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${H}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
4369
|
-
|
|
4371
|
+
dt,
|
|
4370
4372
|
{
|
|
4371
4373
|
size: "sm",
|
|
4372
4374
|
imageSrc: s || V
|
|
@@ -4381,15 +4383,15 @@ const os = [
|
|
|
4381
4383
|
}
|
|
4382
4384
|
)
|
|
4383
4385
|
));
|
|
4384
|
-
const
|
|
4386
|
+
const gt = xe, ft = D ? `${H}--expanded` : null;
|
|
4385
4387
|
return /* @__PURE__ */ e.createElement(
|
|
4386
4388
|
"span",
|
|
4387
4389
|
y({
|
|
4388
|
-
className: [H, P, S,
|
|
4390
|
+
className: [H, P, S, ft, E].join(" ").trim().replace(/\s+/g, " "),
|
|
4389
4391
|
"data-testid": h,
|
|
4390
4392
|
ref: O
|
|
4391
4393
|
}, _),
|
|
4392
|
-
T ? /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
4394
|
+
T ? /* @__PURE__ */ e.createElement(e.Fragment, null, gt, /* @__PURE__ */ e.createElement(ve, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, Je, xt(i))
|
|
4393
4395
|
);
|
|
4394
4396
|
};
|
|
4395
4397
|
Vs.propTypes = {
|
|
@@ -4413,7 +4415,7 @@ Vs.propTypes = {
|
|
|
4413
4415
|
/**
|
|
4414
4416
|
* Icon name for icon-only buttons.
|
|
4415
4417
|
*/
|
|
4416
|
-
iconName:
|
|
4418
|
+
iconName: ut,
|
|
4417
4419
|
/**
|
|
4418
4420
|
* Optional ID value for this component.
|
|
4419
4421
|
*/
|
|
@@ -4818,7 +4820,7 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4818
4820
|
case "sub-brand":
|
|
4819
4821
|
m = is;
|
|
4820
4822
|
}
|
|
4821
|
-
const p = e.isValidElement(a) && typeof a.props.children == "string" ? a.props.children : "",
|
|
4823
|
+
const p = e.isValidElement(a) && typeof a.props.children == "string" ? a.props.children : "", f = e.isValidElement(a) ? qe(a, {
|
|
4822
4824
|
children: m,
|
|
4823
4825
|
"aria-Label": p
|
|
4824
4826
|
}) : a, E = (g = c == null ? void 0 : c.text) != null ? g : "", _ = c && n === "sub-brand" ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__separator" }), /* @__PURE__ */ e.createElement("div", { className: "pds-pantheon-logo__sub-brand-wordmark" }, c.linkContent ? qe(c.linkContent, {
|
|
@@ -4835,7 +4837,7 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4835
4837
|
r != null ? r : ""
|
|
4836
4838
|
])
|
|
4837
4839
|
}, o),
|
|
4838
|
-
a ?
|
|
4840
|
+
a ? f : m,
|
|
4839
4841
|
_
|
|
4840
4842
|
);
|
|
4841
4843
|
}, q1 = (m) => {
|
|
@@ -4862,11 +4864,11 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4862
4864
|
"logoSubBrand",
|
|
4863
4865
|
"className"
|
|
4864
4866
|
]);
|
|
4865
|
-
const [
|
|
4867
|
+
const [f, E] = R(!1);
|
|
4866
4868
|
let _ = !1;
|
|
4867
4869
|
const g = He(Fe);
|
|
4868
4870
|
g && (_ = g.isMobile);
|
|
4869
|
-
const
|
|
4871
|
+
const b = "pds-navbar", v = c ? `${b}--noBorder` : "", C = n !== "default" ? `${b}--${n}` : "", $ = _ ? `${b}--isMobile` : `${b}--notMobile`;
|
|
4870
4872
|
oe(() => (window.addEventListener("keyup", w), () => {
|
|
4871
4873
|
window.removeEventListener("keyup", w);
|
|
4872
4874
|
}), []);
|
|
@@ -4879,34 +4881,34 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4879
4881
|
break;
|
|
4880
4882
|
}
|
|
4881
4883
|
O && (B.stopPropagation(), B.preventDefault());
|
|
4882
|
-
}, L = () => E(!
|
|
4884
|
+
}, L = () => E(!f), k = e.createRef();
|
|
4883
4885
|
oe(() => {
|
|
4884
4886
|
if (_ && s) {
|
|
4885
4887
|
const B = $s(
|
|
4886
4888
|
document.querySelector(".pds-navbar__mobile")
|
|
4887
4889
|
), W = ["a", "button", "input", "select", "textarea"];
|
|
4888
|
-
|
|
4890
|
+
f ? B.forEach((O) => {
|
|
4889
4891
|
W.includes(O.nodeName.toLowerCase()) && (O.tabIndex = 0);
|
|
4890
4892
|
}) : B.forEach((O) => {
|
|
4891
4893
|
W.includes(O.nodeName.toLowerCase()) && (O.tabIndex = -1);
|
|
4892
4894
|
});
|
|
4893
4895
|
}
|
|
4894
|
-
}, [
|
|
4896
|
+
}, [f]);
|
|
4895
4897
|
const z = (B) => {
|
|
4896
4898
|
B.target.nodeName === "A" && E(!1);
|
|
4897
4899
|
};
|
|
4898
4900
|
oe(() => {
|
|
4899
|
-
if (
|
|
4901
|
+
if (f) {
|
|
4900
4902
|
const B = document.querySelector(".pds-navbar__bar-mobile"), W = document.querySelector(".pds-navbar__mobile");
|
|
4901
4903
|
return B.addEventListener("click", z), W.addEventListener("click", z), () => {
|
|
4902
4904
|
B.removeEventListener("click", z), W.removeEventListener("click", z);
|
|
4903
4905
|
};
|
|
4904
4906
|
}
|
|
4905
|
-
}, [
|
|
4907
|
+
}, [f]), oe(() => {
|
|
4906
4908
|
_ ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
4907
4909
|
}, [_]), oe(() => {
|
|
4908
|
-
|
|
4909
|
-
}, [
|
|
4910
|
+
f ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
4911
|
+
}, [f]);
|
|
4910
4912
|
const N = {};
|
|
4911
4913
|
e.Children.forEach(s, (B) => {
|
|
4912
4914
|
const W = B.props.slot;
|
|
@@ -4916,9 +4918,9 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4916
4918
|
let T = "default";
|
|
4917
4919
|
(n === "reverse" || n === "reverse-transparent") && (T = "reverse");
|
|
4918
4920
|
const V = l ? l.props.children : "", H = l ? qe(l, {
|
|
4919
|
-
children: /* @__PURE__ */ e.createElement("img", { className: `${
|
|
4921
|
+
children: /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: i }),
|
|
4920
4922
|
"aria-label": V
|
|
4921
|
-
}) : /* @__PURE__ */ e.createElement("img", { className: `${
|
|
4923
|
+
}) : /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: i, alt: "" }), S = () => o === "custom" ? H : /* @__PURE__ */ e.createElement(
|
|
4922
4924
|
Is,
|
|
4923
4925
|
{
|
|
4924
4926
|
colorType: T,
|
|
@@ -4929,15 +4931,15 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4929
4931
|
), P = /* @__PURE__ */ e.createElement(
|
|
4930
4932
|
"button",
|
|
4931
4933
|
{
|
|
4932
|
-
className: `${
|
|
4933
|
-
"aria-label":
|
|
4934
|
+
className: `${b}__menu-toggle`,
|
|
4935
|
+
"aria-label": f ? "Close navigation area" : "Open navigation area",
|
|
4934
4936
|
onClick: L
|
|
4935
4937
|
},
|
|
4936
|
-
/* @__PURE__ */ e.createElement(A, { iconName:
|
|
4938
|
+
/* @__PURE__ */ e.createElement(A, { iconName: f ? "xmark" : "bars", iconSize: "lg" })
|
|
4937
4939
|
), j = /* @__PURE__ */ e.createElement(
|
|
4938
4940
|
"div",
|
|
4939
4941
|
{
|
|
4940
|
-
className:
|
|
4942
|
+
className: f ? `${b}__mobile ${b}__mobile--open` : `${b}__mobile ${b}__mobile--closed`,
|
|
4941
4943
|
ref: k
|
|
4942
4944
|
},
|
|
4943
4945
|
/* @__PURE__ */ e.createElement(nt, null, x, M)
|
|
@@ -4949,12 +4951,12 @@ const A1 = /* @__PURE__ */ e.createElement(
|
|
|
4949
4951
|
initialFocus: !1
|
|
4950
4952
|
}
|
|
4951
4953
|
},
|
|
4952
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(nt, { className: `${
|
|
4953
|
-
), Z = /* @__PURE__ */ e.createElement(nt, { width: a, className: `${
|
|
4954
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(nt, { className: `${b}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${b}__inner-mobile` }, /* @__PURE__ */ e.createElement(S, null), s && P)), /* @__PURE__ */ e.createElement(nt, null, s && j))
|
|
4955
|
+
), Z = /* @__PURE__ */ e.createElement(nt, { width: a, className: `${b}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${b}__logo` }, /* @__PURE__ */ e.createElement(S, null)), /* @__PURE__ */ e.createElement("div", { className: `${b}__content` }, x ? /* @__PURE__ */ e.createElement("div", { className: `${b}__items-left` }, x) : /* @__PURE__ */ e.createElement("span", null), M && /* @__PURE__ */ e.createElement("div", { className: `${b}__items-right` }, M)));
|
|
4954
4956
|
return /* @__PURE__ */ e.createElement(
|
|
4955
4957
|
"header",
|
|
4956
4958
|
y({
|
|
4957
|
-
className: [
|
|
4959
|
+
className: [b, C, v, $, u].join(" ").trim().replace(/\s+/g, " ")
|
|
4958
4960
|
}, h),
|
|
4959
4961
|
_ ? F : Z
|
|
4960
4962
|
);
|
|
@@ -5021,11 +5023,11 @@ const Ss = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5021
5023
|
open: c,
|
|
5022
5024
|
onOpenChange: r,
|
|
5023
5025
|
whileElementsMounted: Pe
|
|
5024
|
-
}), p = rt(m, { event: "mousedown" }),
|
|
5026
|
+
}), p = rt(m, { event: "mousedown" }), f = Se(m), E = Te(m, { role: "menu" });
|
|
5025
5027
|
let _;
|
|
5026
|
-
d ? _ =
|
|
5028
|
+
d ? _ = Et(m, {
|
|
5027
5029
|
enabled: !1
|
|
5028
|
-
}) : _ =
|
|
5030
|
+
}) : _ = Et(m, {
|
|
5029
5031
|
handleClose: vs({
|
|
5030
5032
|
requireIntent: !1,
|
|
5031
5033
|
buffer: 10,
|
|
@@ -5033,8 +5035,8 @@ const Ss = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5033
5035
|
enabled: !0
|
|
5034
5036
|
})
|
|
5035
5037
|
});
|
|
5036
|
-
const { getReferenceProps: g, getFloatingProps:
|
|
5037
|
-
|
|
5038
|
+
const { getReferenceProps: g, getFloatingProps: b } = Oe([
|
|
5039
|
+
f,
|
|
5038
5040
|
E,
|
|
5039
5041
|
p,
|
|
5040
5042
|
_
|
|
@@ -5052,7 +5054,7 @@ const Ss = ({ items: s, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5052
5054
|
y({
|
|
5053
5055
|
className: `${u}__dropdown`,
|
|
5054
5056
|
ref: h.setFloating
|
|
5055
|
-
},
|
|
5057
|
+
}, b()),
|
|
5056
5058
|
s.map((C, $) => /* @__PURE__ */ e.createElement(
|
|
5057
5059
|
"li",
|
|
5058
5060
|
{
|
|
@@ -5083,7 +5085,7 @@ const j1 = (l) => {
|
|
|
5083
5085
|
"mobileMenuMaxWidth",
|
|
5084
5086
|
"className"
|
|
5085
5087
|
]);
|
|
5086
|
-
const [d, u] = R(1025), [h, m] = R(null), [p,
|
|
5088
|
+
const [d, u] = R(1025), [h, m] = R(null), [p, f] = R(-1), [E, _] = R(null), [g, b] = R({
|
|
5087
5089
|
containerChildren: []
|
|
5088
5090
|
});
|
|
5089
5091
|
oe(() => (u(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
@@ -5106,16 +5108,16 @@ const j1 = (l) => {
|
|
|
5106
5108
|
const $ = "pds-nav-menu", w = n !== "default" ? `${$}--${n}` : "", L = C ? `${$}--isMobile` : `${$}--notMobile`, k = se([]), z = (M) => {
|
|
5107
5109
|
const T = k.current.length - 1, F = {
|
|
5108
5110
|
ArrowRight: () => {
|
|
5109
|
-
m(-1),
|
|
5111
|
+
m(-1), f(p === -1 ? 1 : p === T ? 0 : p + 1);
|
|
5110
5112
|
},
|
|
5111
5113
|
ArrowLeft: () => {
|
|
5112
|
-
m(-1),
|
|
5114
|
+
m(-1), f(p === 0 ? T : p - 1);
|
|
5113
5115
|
},
|
|
5114
5116
|
ArrowDown: () => {
|
|
5115
5117
|
var W, O, D, U;
|
|
5116
5118
|
_("down");
|
|
5117
5119
|
let Z = M.target.parentNode.children[1], B = ((O = (W = M.target) == null ? void 0 : W.parentNode.children[1]) == null ? void 0 : O.children) || ((U = (D = M.target) == null ? void 0 : D.parentNode.parentNode.children[1]) == null ? void 0 : U.children);
|
|
5118
|
-
g.container != Z && Z != null &&
|
|
5120
|
+
g.container != Z && Z != null && b({
|
|
5119
5121
|
container: Z,
|
|
5120
5122
|
containerChildren: [...B]
|
|
5121
5123
|
}), h === null || h == g.containerChildren.length - 1 ? m(0) : m(parseInt(h) + 1);
|
|
@@ -5567,16 +5569,16 @@ const At = {
|
|
|
5567
5569
|
),
|
|
5568
5570
|
o && /* @__PURE__ */ e.createElement("div", { className: `${m}__summary` }, o)
|
|
5569
5571
|
),
|
|
5570
|
-
r && r.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${m}__links` }, r.map((
|
|
5571
|
-
const _ =
|
|
5572
|
+
r && r.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${m}__links` }, r.map((f, E) => {
|
|
5573
|
+
const _ = f.type;
|
|
5572
5574
|
return /* @__PURE__ */ e.createElement(
|
|
5573
5575
|
_,
|
|
5574
5576
|
y({
|
|
5575
5577
|
key: E,
|
|
5576
5578
|
className: `${m}__link`
|
|
5577
|
-
},
|
|
5578
|
-
|
|
5579
|
-
|
|
5579
|
+
}, f.props),
|
|
5580
|
+
f.props.children,
|
|
5581
|
+
f.props.target === "_blank" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5580
5582
|
A,
|
|
5581
5583
|
{
|
|
5582
5584
|
iconName: "externalLink",
|
|
@@ -5696,7 +5698,7 @@ const Lt = (E) => {
|
|
|
5696
5698
|
showLabel: h = !0,
|
|
5697
5699
|
validationFunction: m,
|
|
5698
5700
|
className: p
|
|
5699
|
-
} = _,
|
|
5701
|
+
} = _, f = I(_, [
|
|
5700
5702
|
"disabled",
|
|
5701
5703
|
"id",
|
|
5702
5704
|
"initialValue",
|
|
@@ -5711,11 +5713,11 @@ const Lt = (E) => {
|
|
|
5711
5713
|
"validationFunction",
|
|
5712
5714
|
"className"
|
|
5713
5715
|
]);
|
|
5714
|
-
const [g,
|
|
5716
|
+
const [g, b] = R(!1), [v, C] = R(null), [$, w] = R(a), [L, k] = R(), [z, N] = R(null), x = se([]), M = "pds-select", { context: T, refs: V } = Ie({
|
|
5715
5717
|
open: g,
|
|
5716
|
-
onOpenChange:
|
|
5718
|
+
onOpenChange: b,
|
|
5717
5719
|
whileElementsMounted: Pe
|
|
5718
|
-
}), H = Te(T, { role: "listbox" }), S = Se(T), P =
|
|
5720
|
+
}), H = Te(T, { role: "listbox" }), S = Se(T), P = mt(T, {
|
|
5719
5721
|
listRef: x,
|
|
5720
5722
|
activeIndex: v,
|
|
5721
5723
|
onNavigate: C,
|
|
@@ -5753,7 +5755,7 @@ const Lt = (E) => {
|
|
|
5753
5755
|
K(), Q.error && N("error"), Q.success && N("success"), k(Q.message);
|
|
5754
5756
|
}, X = (ee) => {
|
|
5755
5757
|
const Q = U[ee];
|
|
5756
|
-
w(Q.value), C(null),
|
|
5758
|
+
w(Q.value), C(null), b(!1), l && l(Q), m && ie(Q);
|
|
5757
5759
|
}, be = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${M}__trigger-icon` }), te = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${M}__checked-icon` }), de = U.map((ee, Q) => /* @__PURE__ */ e.createElement(
|
|
5758
5760
|
Ls,
|
|
5759
5761
|
fe(y({
|
|
@@ -5790,7 +5792,7 @@ const Lt = (E) => {
|
|
|
5790
5792
|
required: d,
|
|
5791
5793
|
showLabel: h,
|
|
5792
5794
|
validationState: z
|
|
5793
|
-
},
|
|
5795
|
+
}, f),
|
|
5794
5796
|
/* @__PURE__ */ e.createElement(
|
|
5795
5797
|
"div",
|
|
5796
5798
|
y({
|
|
@@ -5808,10 +5810,10 @@ const Lt = (E) => {
|
|
|
5808
5810
|
}, j({
|
|
5809
5811
|
"aria-autocomplete": "list",
|
|
5810
5812
|
disabled: s,
|
|
5811
|
-
onClick: () => s ? null :
|
|
5813
|
+
onClick: () => s ? null : b(!g),
|
|
5812
5814
|
onChange: X,
|
|
5813
5815
|
onKeyDown: (ee) => {
|
|
5814
|
-
(ee.key === "Enter" || ee.key === " ") &&
|
|
5816
|
+
(ee.key === "Enter" || ee.key === " ") && b(!0);
|
|
5815
5817
|
}
|
|
5816
5818
|
})),
|
|
5817
5819
|
/* @__PURE__ */ e.createElement("span", null, O($) || u),
|
|
@@ -5932,11 +5934,11 @@ const W1 = {
|
|
|
5932
5934
|
}, Ke = (c) => {
|
|
5933
5935
|
var r = c, { arrowText: s = null, direction: n } = r, a = I(r, ["arrowText", "direction"]);
|
|
5934
5936
|
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: d, pages: u } = He(ot), h = Gt(
|
|
5935
|
-
(g,
|
|
5936
|
-
o && (g.preventDefault(), o(
|
|
5937
|
+
(g, b) => {
|
|
5938
|
+
o && (g.preventDefault(), o(b));
|
|
5937
5939
|
},
|
|
5938
5940
|
[o, l]
|
|
5939
|
-
), { title: m, rel: p, srText:
|
|
5941
|
+
), { title: m, rel: p, srText: f, icon: E, keyModifier: _ } = W1[n];
|
|
5940
5942
|
return /* @__PURE__ */ e.createElement(
|
|
5941
5943
|
"li",
|
|
5942
5944
|
y({
|
|
@@ -5954,7 +5956,7 @@ const W1 = {
|
|
|
5954
5956
|
},
|
|
5955
5957
|
n === "right" && s ? /* @__PURE__ */ e.createElement("span", null, s) : null,
|
|
5956
5958
|
/* @__PURE__ */ e.createElement(A, { iconName: E, classes: "pds-page__icon" }),
|
|
5957
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
5959
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f),
|
|
5958
5960
|
n === "left" && s ? /* @__PURE__ */ e.createElement("span", null, s) : null
|
|
5959
5961
|
)
|
|
5960
5962
|
);
|
|
@@ -6147,8 +6149,8 @@ const G1 = (n) => {
|
|
|
6147
6149
|
pageDirection: u,
|
|
6148
6150
|
pages: h
|
|
6149
6151
|
} = He(ot), m = Gt(
|
|
6150
|
-
(
|
|
6151
|
-
a && (
|
|
6152
|
+
(f, E) => {
|
|
6153
|
+
a && (f.preventDefault(), a(E));
|
|
6152
6154
|
},
|
|
6153
6155
|
[a, c]
|
|
6154
6156
|
), [p] = R(h);
|
|
@@ -6173,17 +6175,17 @@ const G1 = (n) => {
|
|
|
6173
6175
|
"a",
|
|
6174
6176
|
{
|
|
6175
6177
|
href: p[p.length - 1].link,
|
|
6176
|
-
onClick: (
|
|
6177
|
-
m(
|
|
6178
|
+
onClick: (f) => {
|
|
6179
|
+
m(f, 0), r(0);
|
|
6178
6180
|
}
|
|
6179
6181
|
},
|
|
6180
6182
|
"First"
|
|
6181
|
-
)), /* @__PURE__ */ e.createElement(Ke, { direction: "left" })) : null, o.map((
|
|
6183
|
+
)), /* @__PURE__ */ e.createElement(Ke, { direction: "left" })) : null, o.map((f, E) => /* @__PURE__ */ e.createElement("li", { key: `list-item-${E}` }, /* @__PURE__ */ e.createElement(Rs, y({ index: E, page: f }, s)))), c < d - 1 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(Ke, { 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(
|
|
6182
6184
|
"a",
|
|
6183
6185
|
{
|
|
6184
6186
|
href: p[p.length - 1].link,
|
|
6185
|
-
onClick: (
|
|
6186
|
-
m(
|
|
6187
|
+
onClick: (f) => {
|
|
6188
|
+
m(f, d - 1), r(d - 1);
|
|
6187
6189
|
}
|
|
6188
6190
|
},
|
|
6189
6191
|
"Last"
|
|
@@ -6313,7 +6315,7 @@ const Q1 = {
|
|
|
6313
6315
|
a && /* @__PURE__ */ e.createElement("div", { className: `${u}__more-link` }, a)
|
|
6314
6316
|
);
|
|
6315
6317
|
}, J1 = (p) => {
|
|
6316
|
-
var
|
|
6318
|
+
var f = p, {
|
|
6317
6319
|
actionPrimary: s,
|
|
6318
6320
|
actionSecondary: n,
|
|
6319
6321
|
hasComparisonList: a = !0,
|
|
@@ -6328,7 +6330,7 @@ const Q1 = {
|
|
|
6328
6330
|
selectLabel: d = "Select a plan size",
|
|
6329
6331
|
statusBadgeType: u,
|
|
6330
6332
|
className: h
|
|
6331
|
-
} =
|
|
6333
|
+
} = f, m = I(f, [
|
|
6332
6334
|
"actionPrimary",
|
|
6333
6335
|
"actionSecondary",
|
|
6334
6336
|
"hasComparisonList",
|
|
@@ -6341,7 +6343,7 @@ const Q1 = {
|
|
|
6341
6343
|
"statusBadgeType",
|
|
6342
6344
|
"className"
|
|
6343
6345
|
]);
|
|
6344
|
-
const E = "pds-pricing-card", _ = `${E}-container`, g = a ? `${_}--with-list` : null,
|
|
6346
|
+
const E = "pds-pricing-card", _ = `${E}-container`, g = a ? `${_}--with-list` : null, b = u ? `${E}--${u}` : null, v = (H) => H.toLowerCase().replace(/\s/g, "-"), C = l && l.length > 1, [$, w] = R(
|
|
6345
6347
|
v(l[0].label)
|
|
6346
6348
|
), [L, k] = R(
|
|
6347
6349
|
s.label
|
|
@@ -6465,7 +6467,7 @@ const Q1 = {
|
|
|
6465
6467
|
/* @__PURE__ */ e.createElement(
|
|
6466
6468
|
"div",
|
|
6467
6469
|
{
|
|
6468
|
-
className: [E,
|
|
6470
|
+
className: [E, b].join(" ").trim().replace(/\s+/g, " ")
|
|
6469
6471
|
},
|
|
6470
6472
|
u && /* @__PURE__ */ e.createElement(
|
|
6471
6473
|
Jt,
|
|
@@ -6590,8 +6592,8 @@ const e2 = (m) => {
|
|
|
6590
6592
|
"required",
|
|
6591
6593
|
"className"
|
|
6592
6594
|
]);
|
|
6593
|
-
const
|
|
6594
|
-
_(
|
|
6595
|
+
const f = "pds-radio-group", [E, _] = R(a), g = (b) => {
|
|
6596
|
+
_(b.target.value), l && l(b.target.value);
|
|
6595
6597
|
};
|
|
6596
6598
|
return /* @__PURE__ */ e.createElement(
|
|
6597
6599
|
Qe,
|
|
@@ -6606,10 +6608,10 @@ const e2 = (m) => {
|
|
|
6606
6608
|
message: o,
|
|
6607
6609
|
required: d
|
|
6608
6610
|
}, h),
|
|
6609
|
-
/* @__PURE__ */ e.createElement("div", { className: [
|
|
6611
|
+
/* @__PURE__ */ e.createElement("div", { className: [f].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, i.map((b, v) => /* @__PURE__ */ e.createElement(
|
|
6610
6612
|
"div",
|
|
6611
6613
|
{
|
|
6612
|
-
className: `${
|
|
6614
|
+
className: `${f}__option`,
|
|
6613
6615
|
key: `${n}-option-${v}`
|
|
6614
6616
|
},
|
|
6615
6617
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6618,14 +6620,14 @@ const e2 = (m) => {
|
|
|
6618
6620
|
type: "radio",
|
|
6619
6621
|
id: `${n}-option-${v}`,
|
|
6620
6622
|
name: n,
|
|
6621
|
-
value:
|
|
6623
|
+
value: b.value,
|
|
6622
6624
|
required: d,
|
|
6623
|
-
disabled: s ||
|
|
6625
|
+
disabled: s || b.disabled,
|
|
6624
6626
|
onClick: g,
|
|
6625
|
-
defaultChecked: E ===
|
|
6627
|
+
defaultChecked: E === b.value
|
|
6626
6628
|
}
|
|
6627
6629
|
),
|
|
6628
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` },
|
|
6630
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` }, b.label)
|
|
6629
6631
|
))))
|
|
6630
6632
|
);
|
|
6631
6633
|
};
|
|
@@ -6712,13 +6714,13 @@ const t2 = (u) => {
|
|
|
6712
6714
|
"className"
|
|
6713
6715
|
]);
|
|
6714
6716
|
const m = "pds-site-card", p = `${s}`;
|
|
6715
|
-
let
|
|
6716
|
-
l === "Active" && (
|
|
6717
|
+
let f = "";
|
|
6718
|
+
l === "Active" && (f = "success"), l === "Frozen" && (f = "frozen");
|
|
6717
6719
|
const E = /* @__PURE__ */ e.createElement(
|
|
6718
6720
|
Jt,
|
|
6719
6721
|
{
|
|
6720
6722
|
label: l,
|
|
6721
|
-
statusType:
|
|
6723
|
+
statusType: f,
|
|
6722
6724
|
hasStatusIndicator: !0
|
|
6723
6725
|
}
|
|
6724
6726
|
), _ = c.type;
|
|
@@ -6785,13 +6787,13 @@ const s2 = (o) => {
|
|
|
6785
6787
|
"legalLinks",
|
|
6786
6788
|
"className"
|
|
6787
6789
|
]);
|
|
6788
|
-
const i = "pds-site-footer", d = s && s !== "default" ? `pds-container pds-container--${s}` : "pds-container", u = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), m = a.includes("dataSubjectRequest"), p = a.includes("cookiePolicy"),
|
|
6790
|
+
const i = "pds-site-footer", d = s && s !== "default" ? `pds-container pds-container--${s}` : "pds-container", u = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), m = a.includes("dataSubjectRequest"), p = a.includes("cookiePolicy"), f = a.includes("termsOfUse"), E = a.includes("acceptableUse"), _ = a.includes("accessibilityStatement");
|
|
6789
6791
|
return /* @__PURE__ */ e.createElement(
|
|
6790
6792
|
"footer",
|
|
6791
6793
|
y({
|
|
6792
6794
|
className: [i, c].join(" ").trim().replace(/\s+/g, " ")
|
|
6793
6795
|
}, r),
|
|
6794
|
-
/* @__PURE__ */ e.createElement("div", { className: d }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", u, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), m && /* @__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"),
|
|
6796
|
+
/* @__PURE__ */ e.createElement("div", { className: d }, n && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", u, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), m && /* @__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"), E && /* @__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")))
|
|
6795
6797
|
);
|
|
6796
6798
|
};
|
|
6797
6799
|
s2.propTypes = {
|
|
@@ -6905,8 +6907,8 @@ const Pt = {
|
|
|
6905
6907
|
"className"
|
|
6906
6908
|
]);
|
|
6907
6909
|
const u = "pds-split-button", h = `${u}--${r}`, m = s[0], p = s.slice(1);
|
|
6908
|
-
let
|
|
6909
|
-
return m.isLink === !0 ?
|
|
6910
|
+
let f = null;
|
|
6911
|
+
return m.isLink === !0 ? f = /* @__PURE__ */ e.createElement(
|
|
6910
6912
|
je,
|
|
6911
6913
|
{
|
|
6912
6914
|
className: `${u}__primary-action`,
|
|
@@ -6916,7 +6918,7 @@ const Pt = {
|
|
|
6916
6918
|
disabled: n,
|
|
6917
6919
|
linkContent: m.linkContent
|
|
6918
6920
|
}
|
|
6919
|
-
) :
|
|
6921
|
+
) : f = /* @__PURE__ */ e.createElement(
|
|
6920
6922
|
Ge,
|
|
6921
6923
|
{
|
|
6922
6924
|
className: `${u}__primary-action`,
|
|
@@ -6931,7 +6933,7 @@ const Pt = {
|
|
|
6931
6933
|
y({
|
|
6932
6934
|
className: [u, h, o].join(" ").trim().replace(/\s+/g, " ")
|
|
6933
6935
|
}, l),
|
|
6934
|
-
|
|
6936
|
+
f,
|
|
6935
6937
|
/* @__PURE__ */ e.createElement(
|
|
6936
6938
|
Vs,
|
|
6937
6939
|
{
|
|
@@ -7034,10 +7036,10 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7034
7036
|
"size",
|
|
7035
7037
|
"className"
|
|
7036
7038
|
]);
|
|
7037
|
-
const m = s || Ae(), p = "pds-progress-ring",
|
|
7038
|
-
let g = _(r2),
|
|
7039
|
-
l === "sm" && (g = _(c2),
|
|
7040
|
-
const v = g / 2 -
|
|
7039
|
+
const m = s || Ae(), p = "pds-progress-ring", f = r ? `${p}__label` : "visually-hidden", E = `${p}__loading-text ${p}__loading-text--${l}`, _ = (k) => k * 16;
|
|
7040
|
+
let g = _(r2), b = 7;
|
|
7041
|
+
l === "sm" && (g = _(c2), b = b / 1.25), l === "lg" && (g = _(o2), b = b * 1.25);
|
|
7042
|
+
const v = g / 2 - b / 2, C = `${v / 100}rem`, $ = 2 * Math.PI * v, w = $ - $ * c / 100;
|
|
7041
7043
|
let L;
|
|
7042
7044
|
return n ? L = n : o ? L = `${c}%` : L = "", /* @__PURE__ */ e.createElement(
|
|
7043
7045
|
"div",
|
|
@@ -7048,7 +7050,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7048
7050
|
"--ring-stroke-dasharray": $
|
|
7049
7051
|
}
|
|
7050
7052
|
}, d),
|
|
7051
|
-
/* @__PURE__ */ e.createElement("div", { id: m, className:
|
|
7053
|
+
/* @__PURE__ */ e.createElement("div", { id: m, className: f }, a),
|
|
7052
7054
|
/* @__PURE__ */ e.createElement(
|
|
7053
7055
|
"div",
|
|
7054
7056
|
{
|
|
@@ -7071,7 +7073,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7071
7073
|
cx: g / 2,
|
|
7072
7074
|
cy: g / 2,
|
|
7073
7075
|
r: v,
|
|
7074
|
-
strokeWidth:
|
|
7076
|
+
strokeWidth: b
|
|
7075
7077
|
}
|
|
7076
7078
|
),
|
|
7077
7079
|
/* @__PURE__ */ e.createElement(
|
|
@@ -7081,7 +7083,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7081
7083
|
cx: g / 2,
|
|
7082
7084
|
cy: g / 2,
|
|
7083
7085
|
r: v,
|
|
7084
|
-
strokeWidth:
|
|
7086
|
+
strokeWidth: b,
|
|
7085
7087
|
strokeDasharray: $,
|
|
7086
7088
|
strokeDashoffset: w,
|
|
7087
7089
|
transform: `rotate(-90 ${g / 2} ${g / 2})`
|
|
@@ -7117,7 +7119,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7117
7119
|
"translatableLabels",
|
|
7118
7120
|
"className"
|
|
7119
7121
|
]);
|
|
7120
|
-
const l = "pds-stepper", i = "pds-stepper-mobile", d = se(), [u] = kt(d), h = u.width, m = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40,
|
|
7122
|
+
const l = "pds-stepper", i = "pds-stepper-mobile", d = se(), [u] = kt(d), h = u.width, m = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40, f = 2, E = 5, _ = s.length, g = s.findLastIndex((C) => C.isCurrent), b = s.map((C, $) => {
|
|
7121
7123
|
const w = $ + 1, L = $ === g, k = $ < g, z = C.hasError && L, x = (h - _ * m) / (_ + (_ - 2)), M = m + x * 2, T = m + x, V = x + p * -1, H = $ === 0, S = $ === _ - 1;
|
|
7122
7124
|
let P = M;
|
|
7123
7125
|
(H || S) && (P = T);
|
|
@@ -7215,14 +7217,14 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (u) => {
|
|
|
7215
7217
|
);
|
|
7216
7218
|
}
|
|
7217
7219
|
});
|
|
7218
|
-
if (_ >=
|
|
7220
|
+
if (_ >= f && _ <= E)
|
|
7219
7221
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7220
7222
|
"div",
|
|
7221
7223
|
y({
|
|
7222
7224
|
className: [l, a].join(" ").trim().replace(/\s+/g, " "),
|
|
7223
7225
|
"data-steps": _
|
|
7224
7226
|
}, c),
|
|
7225
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d },
|
|
7227
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d }, b)
|
|
7226
7228
|
), /* @__PURE__ */ e.createElement(
|
|
7227
7229
|
"div",
|
|
7228
7230
|
y({
|
|
@@ -7277,22 +7279,22 @@ d2.propTypes = {
|
|
|
7277
7279
|
const m2 = (r) => {
|
|
7278
7280
|
var o = r, { headers: s, rowData: n, className: a } = o, c = I(o, ["headers", "rowData", "className"]);
|
|
7279
7281
|
const [l] = R(s), [i, d] = R(n), [u, h] = R({ order: "asc", key: "" }), m = (g) => {
|
|
7280
|
-
d(i.sort((
|
|
7282
|
+
d(i.sort((b, v) => b[g].localeCompare(v[g]))), h({ order: "desc", key: g });
|
|
7281
7283
|
}, p = (g) => {
|
|
7282
|
-
d(i.sort((
|
|
7283
|
-
},
|
|
7284
|
-
h(fe(y({}, u), { key:
|
|
7285
|
-
}, E = (g,
|
|
7284
|
+
d(i.sort((b, v) => v[g].localeCompare(b[g]))), h({ order: "asc", key: g });
|
|
7285
|
+
}, f = (g, b) => {
|
|
7286
|
+
h(fe(y({}, u), { key: b })), u.order === "asc" ? m(b) : p(b);
|
|
7287
|
+
}, E = (g, b) => /* @__PURE__ */ e.createElement("tr", { id: b, key: `table-row-${b}` }, g.map((v, C) => /* @__PURE__ */ e.createElement("td", { key: `${b}-cell-${C}` }, /* @__PURE__ */ e.createElement("span", null, v)))), _ = "pds-table";
|
|
7286
7288
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
7287
7289
|
"table",
|
|
7288
7290
|
y({
|
|
7289
7291
|
className: [_, a].join(" ").trim().replace(/\s+/g, " ")
|
|
7290
7292
|
}, c),
|
|
7291
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g,
|
|
7293
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g, b) => /* @__PURE__ */ e.createElement("th", { key: `header-${b}` }, g.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${_}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
7292
7294
|
"span",
|
|
7293
7295
|
{
|
|
7294
7296
|
className: `${_}__sort-header`,
|
|
7295
|
-
onClick: (v) =>
|
|
7297
|
+
onClick: (v) => f(v, b)
|
|
7296
7298
|
},
|
|
7297
7299
|
g.title
|
|
7298
7300
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -7300,24 +7302,24 @@ const m2 = (r) => {
|
|
|
7300
7302
|
{
|
|
7301
7303
|
className: `${_}__sort-button`,
|
|
7302
7304
|
title: `Sort by ${g.title}`,
|
|
7303
|
-
onClick: (v) =>
|
|
7305
|
+
onClick: (v) => f(v, b)
|
|
7304
7306
|
},
|
|
7305
7307
|
/* @__PURE__ */ e.createElement(
|
|
7306
7308
|
"span",
|
|
7307
7309
|
{
|
|
7308
|
-
className: `${_}__sort-button-top ${
|
|
7310
|
+
className: `${_}__sort-button-top ${b != u.key && u.key !== "" ? "pds-table__sort-innactive" : u.key == b ? u.order : "asc"}`
|
|
7309
7311
|
},
|
|
7310
7312
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretUp", iconSize: "sm" })
|
|
7311
7313
|
),
|
|
7312
7314
|
/* @__PURE__ */ e.createElement(
|
|
7313
7315
|
"span",
|
|
7314
7316
|
{
|
|
7315
|
-
className: `${_}__sort-button-bottom ${u.key ==
|
|
7317
|
+
className: `${_}__sort-button-bottom ${u.key == b ? u.order : "asc"}`
|
|
7316
7318
|
},
|
|
7317
7319
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "sm" })
|
|
7318
7320
|
)
|
|
7319
7321
|
)) : /* @__PURE__ */ e.createElement("span", null, g.title))))),
|
|
7320
|
-
/* @__PURE__ */ e.createElement("tbody", null, i.map((g,
|
|
7322
|
+
/* @__PURE__ */ e.createElement("tbody", null, i.map((g, b) => E(g, b)))
|
|
7321
7323
|
));
|
|
7322
7324
|
};
|
|
7323
7325
|
m2.propTypes = {
|
|
@@ -7348,7 +7350,7 @@ const u2 = (u) => {
|
|
|
7348
7350
|
"sourceID",
|
|
7349
7351
|
"className"
|
|
7350
7352
|
]);
|
|
7351
|
-
const m = "pds-toc", p = `${a}`,
|
|
7353
|
+
const m = "pds-toc", p = `${a}`, f = [
|
|
7352
7354
|
" ",
|
|
7353
7355
|
"/",
|
|
7354
7356
|
".",
|
|
@@ -7373,7 +7375,7 @@ const u2 = (u) => {
|
|
|
7373
7375
|
document.querySelectorAll(E)
|
|
7374
7376
|
);
|
|
7375
7377
|
M.map((V) => {
|
|
7376
|
-
|
|
7378
|
+
f.forEach((H) => {
|
|
7377
7379
|
V.id.includes(H) && (V.id = V.id.replaceAll(H, "-"));
|
|
7378
7380
|
});
|
|
7379
7381
|
}), M.map((V) => {
|
|
@@ -7392,7 +7394,7 @@ const u2 = (u) => {
|
|
|
7392
7394
|
title: T
|
|
7393
7395
|
});
|
|
7394
7396
|
}), x;
|
|
7395
|
-
}, { nestedHeadings:
|
|
7397
|
+
}, { nestedHeadings: b } = _(), [v, C] = R();
|
|
7396
7398
|
((N) => {
|
|
7397
7399
|
const x = se({});
|
|
7398
7400
|
oe(() => {
|
|
@@ -7471,7 +7473,7 @@ const u2 = (u) => {
|
|
|
7471
7473
|
},
|
|
7472
7474
|
c
|
|
7473
7475
|
),
|
|
7474
|
-
/* @__PURE__ */ e.createElement(z, { headings:
|
|
7476
|
+
/* @__PURE__ */ e.createElement(z, { headings: b, activeID: v })
|
|
7475
7477
|
);
|
|
7476
7478
|
};
|
|
7477
7479
|
u2.propTypes = {
|
|
@@ -7527,15 +7529,15 @@ const K2 = (d) => {
|
|
|
7527
7529
|
"tabs",
|
|
7528
7530
|
"className"
|
|
7529
7531
|
]);
|
|
7530
|
-
const h = "pds-tabs", m = r != "md" ? `${h}--${r}` : "", [p,
|
|
7532
|
+
const h = "pds-tabs", m = r != "md" ? `${h}--${r}` : "", [p, f] = R(c != null ? c : a);
|
|
7531
7533
|
oe(() => {
|
|
7532
|
-
c !== void 0 &&
|
|
7534
|
+
c !== void 0 && f(c);
|
|
7533
7535
|
}, [c]);
|
|
7534
7536
|
const E = (v) => {
|
|
7535
7537
|
const C = v.currentTarget.getAttribute("data-tabnumber");
|
|
7536
7538
|
if (C) {
|
|
7537
7539
|
const $ = parseInt(C, 10);
|
|
7538
|
-
|
|
7540
|
+
f($);
|
|
7539
7541
|
}
|
|
7540
7542
|
}, _ = se([]);
|
|
7541
7543
|
oe(() => {
|
|
@@ -7543,10 +7545,10 @@ const K2 = (d) => {
|
|
|
7543
7545
|
}, [p, s]), oe(() => {
|
|
7544
7546
|
const v = _.current.length - 1;
|
|
7545
7547
|
if (p > v) {
|
|
7546
|
-
|
|
7548
|
+
f(0);
|
|
7547
7549
|
return;
|
|
7548
7550
|
} else if (p < 0) {
|
|
7549
|
-
|
|
7551
|
+
f(v);
|
|
7550
7552
|
return;
|
|
7551
7553
|
}
|
|
7552
7554
|
}, [p]);
|
|
@@ -7554,15 +7556,15 @@ const K2 = (d) => {
|
|
|
7554
7556
|
const $ = p;
|
|
7555
7557
|
let w = _.current[C === "next" ? $ + 1 < _.current.length ? $ + 1 : 0 : $ - 1 >= 0 ? $ - 1 : _.current.length - 1];
|
|
7556
7558
|
w || (w = C == "next" ? _.current[v + 1] == null ? _.current[0] : _.current[v + 1] : _.current[v - 1]), w.focus();
|
|
7557
|
-
},
|
|
7559
|
+
}, b = (v) => {
|
|
7558
7560
|
const C = _.current.length, $ = () => {
|
|
7559
|
-
g((p + 1) % C, "next"),
|
|
7561
|
+
g((p + 1) % C, "next"), f(p + 1);
|
|
7560
7562
|
}, w = () => {
|
|
7561
|
-
g((p - 1 + C) % C, "prev"),
|
|
7563
|
+
g((p - 1 + C) % C, "prev"), f(p - 1);
|
|
7562
7564
|
}, L = () => {
|
|
7563
|
-
g(0),
|
|
7565
|
+
g(0), f(0);
|
|
7564
7566
|
}, k = () => {
|
|
7565
|
-
g(C - 1),
|
|
7567
|
+
g(C - 1), f(C - 1);
|
|
7566
7568
|
}, z = () => {
|
|
7567
7569
|
_.current[p].focus();
|
|
7568
7570
|
}, x = {
|
|
@@ -7597,7 +7599,7 @@ const K2 = (d) => {
|
|
|
7597
7599
|
role: "tab",
|
|
7598
7600
|
id: $,
|
|
7599
7601
|
onKeyDown: (k) => {
|
|
7600
|
-
k.preventDefault(),
|
|
7602
|
+
k.preventDefault(), b(k);
|
|
7601
7603
|
},
|
|
7602
7604
|
key: w,
|
|
7603
7605
|
ref: (k) => v ? null : _.current[L] = k,
|
|
@@ -7626,7 +7628,7 @@ const K2 = (d) => {
|
|
|
7626
7628
|
role: "tab",
|
|
7627
7629
|
"data-tabnumber": L,
|
|
7628
7630
|
key: v,
|
|
7629
|
-
onKeyDown:
|
|
7631
|
+
onKeyDown: b,
|
|
7630
7632
|
"aria-disabled": !!$,
|
|
7631
7633
|
"aria-controls": `tabpanel_${L}`,
|
|
7632
7634
|
tabIndex: p === L ? 1 : -1,
|
|
@@ -7660,7 +7662,7 @@ const K2 = (d) => {
|
|
|
7660
7662
|
))
|
|
7661
7663
|
));
|
|
7662
7664
|
}, p2 = (g) => {
|
|
7663
|
-
var
|
|
7665
|
+
var b = g, {
|
|
7664
7666
|
counterFunction: s = () => {
|
|
7665
7667
|
},
|
|
7666
7668
|
disabled: n = !1,
|
|
@@ -7675,9 +7677,9 @@ const K2 = (d) => {
|
|
|
7675
7677
|
readonly: h = !1,
|
|
7676
7678
|
required: m = !1,
|
|
7677
7679
|
rows: p = 5,
|
|
7678
|
-
validationFunction:
|
|
7680
|
+
validationFunction: f,
|
|
7679
7681
|
className: E
|
|
7680
|
-
} =
|
|
7682
|
+
} = b, _ = I(b, [
|
|
7681
7683
|
"counterFunction",
|
|
7682
7684
|
"disabled",
|
|
7683
7685
|
"id",
|
|
@@ -7703,8 +7705,8 @@ const K2 = (d) => {
|
|
|
7703
7705
|
}, H = (j) => {
|
|
7704
7706
|
C(j.target.value), V(), s && w(s(j.target.value)), d && d(v);
|
|
7705
7707
|
}, S = (j) => {
|
|
7706
|
-
if (
|
|
7707
|
-
const F =
|
|
7708
|
+
if (f) {
|
|
7709
|
+
const F = f(j.target.value) || {};
|
|
7708
7710
|
V(), F.error && N("error"), F.success && N("success"), k(F.message);
|
|
7709
7711
|
}
|
|
7710
7712
|
d && d(v);
|
|
@@ -8119,8 +8121,8 @@ const b2 = (i) => {
|
|
|
8119
8121
|
"onChange",
|
|
8120
8122
|
"options"
|
|
8121
8123
|
]);
|
|
8122
|
-
const u = "pds-toggle-button", h = "pds-is-disabled", m = se([u]), [p,
|
|
8123
|
-
|
|
8124
|
+
const u = "pds-toggle-button", h = "pds-is-disabled", m = se([u]), [p, f] = R(a), E = (g) => {
|
|
8125
|
+
f(g.target.value), r && r(g.target.value);
|
|
8124
8126
|
};
|
|
8125
8127
|
if ((() => {
|
|
8126
8128
|
m.current = m.current.filter((g) => g !== h);
|
|
@@ -8132,18 +8134,18 @@ const b2 = (i) => {
|
|
|
8132
8134
|
id: n
|
|
8133
8135
|
}, l),
|
|
8134
8136
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
8135
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, o.map((g,
|
|
8137
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, o.map((g, b) => /* @__PURE__ */ e.createElement(
|
|
8136
8138
|
"div",
|
|
8137
8139
|
{
|
|
8138
8140
|
className: `${u}__option`,
|
|
8139
|
-
key: `${n}-option-${
|
|
8141
|
+
key: `${n}-option-${b}`
|
|
8140
8142
|
},
|
|
8141
8143
|
/* @__PURE__ */ e.createElement(
|
|
8142
8144
|
"input",
|
|
8143
8145
|
{
|
|
8144
8146
|
className: "visually-hidden",
|
|
8145
8147
|
type: "radio",
|
|
8146
|
-
id: `${n}-option-${
|
|
8148
|
+
id: `${n}-option-${b}`,
|
|
8147
8149
|
name: n,
|
|
8148
8150
|
value: g.value,
|
|
8149
8151
|
disabled: s,
|
|
@@ -8151,7 +8153,7 @@ const b2 = (i) => {
|
|
|
8151
8153
|
defaultChecked: p === g.value
|
|
8152
8154
|
}
|
|
8153
8155
|
),
|
|
8154
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
8156
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${b}` }, g.iconName && /* @__PURE__ */ e.createElement(
|
|
8155
8157
|
A,
|
|
8156
8158
|
{
|
|
8157
8159
|
iconName: g.iconName,
|
|
@@ -8208,8 +8210,8 @@ b2.propTypes = {
|
|
|
8208
8210
|
*/
|
|
8209
8211
|
className: t.string
|
|
8210
8212
|
};
|
|
8211
|
-
const v2 = (
|
|
8212
|
-
var E =
|
|
8213
|
+
const v2 = (f) => {
|
|
8214
|
+
var E = f, {
|
|
8213
8215
|
disabled: s = !1,
|
|
8214
8216
|
id: n,
|
|
8215
8217
|
inputWidth: a,
|
|
@@ -8236,8 +8238,8 @@ const v2 = (b) => {
|
|
|
8236
8238
|
"statusOffLabel",
|
|
8237
8239
|
"className"
|
|
8238
8240
|
]);
|
|
8239
|
-
const _ = "pds-toggle-switch", [g,
|
|
8240
|
-
|
|
8241
|
+
const _ = "pds-toggle-switch", [g, b] = R(!1), v = (w) => {
|
|
8242
|
+
b(!g), o && o(w.target);
|
|
8241
8243
|
};
|
|
8242
8244
|
let C = g === !0 ? u : h, $;
|
|
8243
8245
|
return d ? $ = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, C), /* @__PURE__ */ e.createElement(
|
|
@@ -8380,11 +8382,11 @@ const Y2 = () => {
|
|
|
8380
8382
|
message: h,
|
|
8381
8383
|
onBlur: m,
|
|
8382
8384
|
onChange: p,
|
|
8383
|
-
onClear:
|
|
8385
|
+
onClear: f,
|
|
8384
8386
|
onFocus: E,
|
|
8385
8387
|
placeholder: _,
|
|
8386
8388
|
readonly: g = !1,
|
|
8387
|
-
required:
|
|
8389
|
+
required: b = !1,
|
|
8388
8390
|
showLabel: v = !0,
|
|
8389
8391
|
showVisibilityToggle: C = !1,
|
|
8390
8392
|
translationStrings: $ = {
|
|
@@ -8428,7 +8430,7 @@ const Y2 = () => {
|
|
|
8428
8430
|
"value",
|
|
8429
8431
|
"className"
|
|
8430
8432
|
]);
|
|
8431
|
-
const H = Kt(d), S = "pds-text-input", P = c ? ue.disabled : null, j =
|
|
8433
|
+
const H = Kt(d), S = "pds-text-input", P = c ? ue.disabled : null, j = b && !c ? ue.required : null, F = k === "error" ? ue.error : null, Z = k === "success" ? ue.success : null, B = g ? ue.readonly : null;
|
|
8432
8434
|
let W = null;
|
|
8433
8435
|
w === "search" && (W = "search"), k === "error" && (W = "error"), k === "success" && (W = "success");
|
|
8434
8436
|
const O = L || h, D = typeof z != "undefined", U = typeof a != "undefined", [K, ie] = R(
|
|
@@ -8438,7 +8440,7 @@ const Y2 = () => {
|
|
|
8438
8440
|
}, te = (Q) => {
|
|
8439
8441
|
D || ie(Q.target.value), p && p(Q);
|
|
8440
8442
|
}, de = () => {
|
|
8441
|
-
D || ie(""),
|
|
8443
|
+
D || ie(""), f && f();
|
|
8442
8444
|
const Q = document.getElementById(l);
|
|
8443
8445
|
Q && Q.focus();
|
|
8444
8446
|
}, [le, ae] = R(!1), _e = () => {
|
|
@@ -8463,12 +8465,12 @@ const Y2 = () => {
|
|
|
8463
8465
|
style: d ? H : null
|
|
8464
8466
|
}, x),
|
|
8465
8467
|
/* @__PURE__ */ e.createElement(
|
|
8466
|
-
|
|
8468
|
+
pt,
|
|
8467
8469
|
{
|
|
8468
8470
|
id: l,
|
|
8469
8471
|
label: u,
|
|
8470
8472
|
showLabel: v,
|
|
8471
|
-
required:
|
|
8473
|
+
required: b,
|
|
8472
8474
|
disabled: c
|
|
8473
8475
|
}
|
|
8474
8476
|
),
|
|
@@ -8485,7 +8487,7 @@ const Y2 = () => {
|
|
|
8485
8487
|
placeholder: _,
|
|
8486
8488
|
readOnly: g,
|
|
8487
8489
|
disabled: c,
|
|
8488
|
-
required:
|
|
8490
|
+
required: b,
|
|
8489
8491
|
autoComplete: w === "password" ? "off" : s,
|
|
8490
8492
|
onBlur: be,
|
|
8491
8493
|
onChange: te,
|
|
@@ -8567,15 +8569,15 @@ const Y2 = () => {
|
|
|
8567
8569
|
"workspaceList",
|
|
8568
8570
|
"className"
|
|
8569
8571
|
]);
|
|
8570
|
-
const [
|
|
8572
|
+
const [f, E] = R(!1), [_, g] = R(null), [b, v] = R(d), C = se([]), $ = se(null), w = d.length >= o;
|
|
8571
8573
|
let L = !1;
|
|
8572
8574
|
const k = He(Fe);
|
|
8573
8575
|
k && (L = k.isMobile);
|
|
8574
8576
|
const z = i && L, N = "pds-workspace-selector", x = z ? `${N}--isMobile` : null, M = `${N}__menu`, T = w ? `${M}--scroll` : null, { refs: V, floatingStyles: H, context: S } = Ie({
|
|
8575
|
-
open:
|
|
8577
|
+
open: f,
|
|
8576
8578
|
onOpenChange: E,
|
|
8577
8579
|
whileElementsMounted: Pe
|
|
8578
|
-
}), P = rt(S, { event: "mousedown" }), j = Se(S), F = Te(S, { role: "menu" }), Z =
|
|
8580
|
+
}), P = rt(S, { event: "mousedown" }), j = Se(S), F = Te(S, { role: "menu" }), Z = mt(S, {
|
|
8579
8581
|
listRef: C,
|
|
8580
8582
|
activeIndex: _,
|
|
8581
8583
|
onNavigate: g,
|
|
@@ -8615,7 +8617,7 @@ const Y2 = () => {
|
|
|
8615
8617
|
const X = (G) => {
|
|
8616
8618
|
G.preventDefault(), G.key === "Enter" && C.current[_].querySelector("a").click(), G.key === "Tab" && (G.shiftKey ? w ? document.getElementById("workspace-filter").focus() : E(!1) : n ? $.current.querySelector("a").focus() : E(!1));
|
|
8617
8619
|
}, be = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8618
|
-
|
|
8620
|
+
dt,
|
|
8619
8621
|
{
|
|
8620
8622
|
size: "sm",
|
|
8621
8623
|
uniqueId: K.workspaceId,
|
|
@@ -8648,7 +8650,7 @@ const Y2 = () => {
|
|
|
8648
8650
|
showLabel: !1,
|
|
8649
8651
|
type: "search"
|
|
8650
8652
|
}
|
|
8651
|
-
)), le =
|
|
8653
|
+
)), le = b.map(
|
|
8652
8654
|
(G, pe) => {
|
|
8653
8655
|
const we = `${N}__item`, ne = G.isActive ? `${we}--active` : null, ce = G.isUnprivileged ? `${we}--unprivileged` : null, Le = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${N}__active-icon` }), ke = G.workspaceId, ze = G.workspaceLink.type, Ee = G.isUnprivileged ? null : (We) => {
|
|
8654
8656
|
C.current[pe] = We;
|
|
@@ -8674,7 +8676,7 @@ const Y2 = () => {
|
|
|
8674
8676
|
onClick: () => E(!1)
|
|
8675
8677
|
}),
|
|
8676
8678
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__item-content` }, /* @__PURE__ */ e.createElement(
|
|
8677
|
-
|
|
8679
|
+
dt,
|
|
8678
8680
|
{
|
|
8679
8681
|
size: "sm",
|
|
8680
8682
|
uniqueId: G.workspaceId,
|
|
@@ -8876,11 +8878,11 @@ const $2 = (o) => {
|
|
|
8876
8878
|
"options",
|
|
8877
8879
|
"className"
|
|
8878
8880
|
]);
|
|
8879
|
-
const h = "pds-segmented-button", m = "pds-is-disabled", p = se([h]), [
|
|
8880
|
-
E(
|
|
8881
|
+
const h = "pds-segmented-button", m = "pds-is-disabled", p = se([h]), [f, E] = R(a), _ = (b) => {
|
|
8882
|
+
E(b.target.value), r && r(b.target.value);
|
|
8881
8883
|
};
|
|
8882
8884
|
if ((() => {
|
|
8883
|
-
p.current = p.current.filter((
|
|
8885
|
+
p.current = p.current.filter((b) => b !== m);
|
|
8884
8886
|
})(), s && p.current.push(m), o.length >= 2 && o.length <= 6)
|
|
8885
8887
|
return /* @__PURE__ */ e.createElement(
|
|
8886
8888
|
"fieldset",
|
|
@@ -8888,7 +8890,7 @@ const $2 = (o) => {
|
|
|
8888
8890
|
className: [h, l != null ? l : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
8889
8891
|
}, i),
|
|
8890
8892
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
8891
|
-
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((
|
|
8893
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((b, v) => /* @__PURE__ */ e.createElement(
|
|
8892
8894
|
"div",
|
|
8893
8895
|
{
|
|
8894
8896
|
className: `${h}__option`,
|
|
@@ -8901,27 +8903,27 @@ const $2 = (o) => {
|
|
|
8901
8903
|
type: "radio",
|
|
8902
8904
|
id: `${n}-option-${v}`,
|
|
8903
8905
|
name: n,
|
|
8904
|
-
value:
|
|
8906
|
+
value: b.value,
|
|
8905
8907
|
disabled: s,
|
|
8906
8908
|
onClick: _,
|
|
8907
|
-
defaultChecked:
|
|
8909
|
+
defaultChecked: f === b.value
|
|
8908
8910
|
}
|
|
8909
8911
|
),
|
|
8910
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` },
|
|
8912
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` }, b.tally ? /* @__PURE__ */ e.createElement(
|
|
8911
8913
|
$2,
|
|
8912
8914
|
{
|
|
8913
|
-
label:
|
|
8914
|
-
type:
|
|
8915
|
+
label: b.tally.label,
|
|
8916
|
+
type: b.tally.type,
|
|
8915
8917
|
className: `${h}__tally`
|
|
8916
8918
|
}
|
|
8917
|
-
) :
|
|
8919
|
+
) : b.iconName && /* @__PURE__ */ e.createElement(
|
|
8918
8920
|
A,
|
|
8919
8921
|
{
|
|
8920
|
-
iconName:
|
|
8922
|
+
iconName: b.iconName,
|
|
8921
8923
|
iconSize: "sm",
|
|
8922
8924
|
className: `${h}__icon`
|
|
8923
8925
|
}
|
|
8924
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` },
|
|
8926
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, b.label))
|
|
8925
8927
|
)))
|
|
8926
8928
|
);
|
|
8927
8929
|
}, y2 = {
|
|
@@ -8982,11 +8984,11 @@ const $2 = (o) => {
|
|
|
8982
8984
|
nestingLevel: h = 0,
|
|
8983
8985
|
onBlur: m,
|
|
8984
8986
|
onChange: p,
|
|
8985
|
-
onFocus:
|
|
8987
|
+
onFocus: f,
|
|
8986
8988
|
required: E,
|
|
8987
8989
|
showLabel: _ = !0,
|
|
8988
8990
|
validationMessage: g,
|
|
8989
|
-
validationStatus:
|
|
8991
|
+
validationStatus: b,
|
|
8990
8992
|
value: v,
|
|
8991
8993
|
className: C
|
|
8992
8994
|
} = k, $ = I(k, [
|
|
@@ -9011,7 +9013,7 @@ const $2 = (o) => {
|
|
|
9011
9013
|
"value",
|
|
9012
9014
|
"className"
|
|
9013
9015
|
]);
|
|
9014
|
-
const z = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", x = a ? ue.disabled : null, M = E && !a ? ue.required : null, T =
|
|
9016
|
+
const z = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", x = a ? ue.disabled : null, M = E && !a ? ue.required : null, T = b === "error" ? ue.error : null, V = b === "success" ? ue.success : null, H = h > 0 ? `${N}--indent-${h}` : null, S = g || d, P = typeof s != "undefined", j = typeof n != "undefined", [F, Z] = R(
|
|
9015
9017
|
j ? n : !1
|
|
9016
9018
|
), B = s || F, W = (ie) => {
|
|
9017
9019
|
P || Z(ie.target.checked), p && p(ie);
|
|
@@ -9063,8 +9065,8 @@ const $2 = (o) => {
|
|
|
9063
9065
|
required: E,
|
|
9064
9066
|
onBlur: m,
|
|
9065
9067
|
onChange: W,
|
|
9066
|
-
onFocus:
|
|
9067
|
-
"aria-invalid":
|
|
9068
|
+
onFocus: f,
|
|
9069
|
+
"aria-invalid": b === "error" ? !0 : null,
|
|
9068
9070
|
"aria-describedby": S ? `${c}__message` : null
|
|
9069
9071
|
}), o)
|
|
9070
9072
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: c, className: `${N}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9096,13 +9098,13 @@ const $2 = (o) => {
|
|
|
9096
9098
|
message: S,
|
|
9097
9099
|
hasValidationMessage: !!g,
|
|
9098
9100
|
validationMessageHasDecorators: !0,
|
|
9099
|
-
validationStatus:
|
|
9101
|
+
validationStatus: b
|
|
9100
9102
|
}
|
|
9101
9103
|
)
|
|
9102
9104
|
);
|
|
9103
9105
|
}
|
|
9104
|
-
), J2 = (
|
|
9105
|
-
var E =
|
|
9106
|
+
), J2 = (f) => {
|
|
9107
|
+
var E = f, {
|
|
9106
9108
|
children: s,
|
|
9107
9109
|
disabled: n = !1,
|
|
9108
9110
|
fieldsetProps: a,
|
|
@@ -9129,13 +9131,13 @@ const $2 = (o) => {
|
|
|
9129
9131
|
"validationStatus",
|
|
9130
9132
|
"className"
|
|
9131
9133
|
]);
|
|
9132
|
-
const _ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group",
|
|
9134
|
+
const _ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group", b = n ? ue.disabled : null, v = i && !n ? ue.required : null, C = h === "error" ? ue.error : null, $ = h === "success" ? ue.success : null, w = u || l;
|
|
9133
9135
|
return /* @__PURE__ */ e.createElement(
|
|
9134
9136
|
"div",
|
|
9135
9137
|
y({
|
|
9136
9138
|
className: [
|
|
9137
9139
|
g,
|
|
9138
|
-
|
|
9140
|
+
b,
|
|
9139
9141
|
v,
|
|
9140
9142
|
C,
|
|
9141
9143
|
$,
|
|
@@ -9144,7 +9146,7 @@ const $2 = (o) => {
|
|
|
9144
9146
|
style: r ? _ : null
|
|
9145
9147
|
}, p),
|
|
9146
9148
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${g}__fieldset`, id: c }, a), /* @__PURE__ */ e.createElement(
|
|
9147
|
-
|
|
9149
|
+
pt,
|
|
9148
9150
|
{
|
|
9149
9151
|
disabled: n,
|
|
9150
9152
|
label: o,
|
|
@@ -9180,7 +9182,7 @@ const $2 = (o) => {
|
|
|
9180
9182
|
showLabel: h = !0,
|
|
9181
9183
|
validationMessage: m,
|
|
9182
9184
|
validationStatus: p,
|
|
9183
|
-
className:
|
|
9185
|
+
className: f
|
|
9184
9186
|
} = g, E = I(g, [
|
|
9185
9187
|
"disabled",
|
|
9186
9188
|
"fieldsetProps",
|
|
@@ -9197,7 +9199,7 @@ const $2 = (o) => {
|
|
|
9197
9199
|
"validationStatus",
|
|
9198
9200
|
"className"
|
|
9199
9201
|
]);
|
|
9200
|
-
const
|
|
9202
|
+
const b = c ? { width: `${c / 16}rem` } : null, v = "pds-checkbox-group", C = s ? ue.disabled : null, $ = u && !s ? ue.required : null, w = p === "error" ? ue.error : null, L = p === "success" ? ue.success : null, k = m || o;
|
|
9201
9203
|
d.map((V) => {
|
|
9202
9204
|
V.id || (V.id = V.value);
|
|
9203
9205
|
});
|
|
@@ -9226,12 +9228,12 @@ const $2 = (o) => {
|
|
|
9226
9228
|
$,
|
|
9227
9229
|
w,
|
|
9228
9230
|
L,
|
|
9229
|
-
|
|
9231
|
+
f != null ? f : ""
|
|
9230
9232
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
9231
|
-
style: c ?
|
|
9233
|
+
style: c ? b : null
|
|
9232
9234
|
}, E),
|
|
9233
9235
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${v}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
9234
|
-
|
|
9236
|
+
pt,
|
|
9235
9237
|
{
|
|
9236
9238
|
disabled: s,
|
|
9237
9239
|
label: r,
|
|
@@ -9274,24 +9276,22 @@ const $2 = (o) => {
|
|
|
9274
9276
|
"children",
|
|
9275
9277
|
"className"
|
|
9276
9278
|
]);
|
|
9277
|
-
var E, _, g
|
|
9278
|
-
const o = "pds-input-group", l = [], i = [
|
|
9279
|
-
l.push(s[0]), i.includes(s[1].type.displayName) && l.push(s[1]);
|
|
9280
|
-
const d = (E = s[0].props.id) != null ? E : null, u = (_ = s[0].props.message) != null ? _ : null, h = (g = s[0].props.validationMessage) != null ? g : null, m = (f = s[0].props.validationStatus) != null ? f : null, p = h || u, b = p ? `${o}--has-message` : null;
|
|
9279
|
+
var f, E, _, g;
|
|
9280
|
+
const o = "pds-input-group", l = [s[0], s[1]], i = (f = s[0].props.id) != null ? f : null, d = (E = s[0].props.message) != null ? E : null, u = (_ = s[0].props.validationMessage) != null ? _ : null, h = (g = s[0].props.validationStatus) != null ? g : null, m = u || d, p = m ? `${o}--has-message` : null;
|
|
9281
9281
|
return /* @__PURE__ */ e.createElement(
|
|
9282
9282
|
"div",
|
|
9283
9283
|
y({
|
|
9284
|
-
className: J([o,
|
|
9284
|
+
className: J([o, p, n != null ? n : ""])
|
|
9285
9285
|
}, a),
|
|
9286
9286
|
/* @__PURE__ */ e.createElement("div", { className: `${o}__inner` }, l),
|
|
9287
|
-
|
|
9287
|
+
m && /* @__PURE__ */ e.createElement(
|
|
9288
9288
|
Xe,
|
|
9289
9289
|
{
|
|
9290
|
-
id:
|
|
9291
|
-
message:
|
|
9292
|
-
hasValidationMessage: !!
|
|
9290
|
+
id: i,
|
|
9291
|
+
message: m,
|
|
9292
|
+
hasValidationMessage: !!u,
|
|
9293
9293
|
validationMessageHasDecorators: !1,
|
|
9294
|
-
validationStatus:
|
|
9294
|
+
validationStatus: h
|
|
9295
9295
|
}
|
|
9296
9296
|
)
|
|
9297
9297
|
);
|
|
@@ -9320,7 +9320,7 @@ const $2 = (o) => {
|
|
|
9320
9320
|
},
|
|
9321
9321
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "sm" })
|
|
9322
9322
|
)), sn = Be(
|
|
9323
|
-
(v,
|
|
9323
|
+
(v, b) => {
|
|
9324
9324
|
var C = v, {
|
|
9325
9325
|
checked: s,
|
|
9326
9326
|
defaultChecked: n,
|
|
@@ -9335,7 +9335,7 @@ const $2 = (o) => {
|
|
|
9335
9335
|
onChange: h,
|
|
9336
9336
|
onLabel: m = "On",
|
|
9337
9337
|
required: p = !1,
|
|
9338
|
-
showLabel:
|
|
9338
|
+
showLabel: f = !0,
|
|
9339
9339
|
showStatusLabel: E = !0,
|
|
9340
9340
|
className: _
|
|
9341
9341
|
} = C, g = I(C, [
|
|
@@ -9361,7 +9361,7 @@ const $2 = (o) => {
|
|
|
9361
9361
|
}, P = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
9362
9362
|
"input",
|
|
9363
9363
|
y({
|
|
9364
|
-
ref:
|
|
9364
|
+
ref: b,
|
|
9365
9365
|
id: c,
|
|
9366
9366
|
name: c,
|
|
9367
9367
|
type: "checkbox",
|
|
@@ -9374,11 +9374,11 @@ const $2 = (o) => {
|
|
|
9374
9374
|
"aria-describedby": d ? `${c}__message` : null
|
|
9375
9375
|
}, r)
|
|
9376
9376
|
), !E && /* @__PURE__ */ e.createElement(k2, { toggleStatusLabel: H }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), E && /* @__PURE__ */ e.createElement(N2, { toggleStatusLabel: H, id: c })), j = /* @__PURE__ */ e.createElement(
|
|
9377
|
-
|
|
9377
|
+
pt,
|
|
9378
9378
|
{
|
|
9379
9379
|
id: c,
|
|
9380
9380
|
label: l,
|
|
9381
|
-
showLabel:
|
|
9381
|
+
showLabel: f,
|
|
9382
9382
|
required: p,
|
|
9383
9383
|
disabled: a,
|
|
9384
9384
|
className: J([
|
|
@@ -9444,14 +9444,14 @@ const $2 = (o) => {
|
|
|
9444
9444
|
"title",
|
|
9445
9445
|
"className"
|
|
9446
9446
|
]);
|
|
9447
|
-
const m = "pds-modal", p = o !== "md" ? `${m}--${o}` : null, [
|
|
9447
|
+
const m = "pds-modal", p = o !== "md" ? `${m}--${o}` : null, [f, E] = R(c);
|
|
9448
9448
|
oe(() => {
|
|
9449
9449
|
E(c);
|
|
9450
9450
|
}, [c]), oe(() => {
|
|
9451
|
-
r(
|
|
9452
|
-
}, [
|
|
9453
|
-
const { refs: _, context: g, floatingStyles:
|
|
9454
|
-
open:
|
|
9451
|
+
r(f);
|
|
9452
|
+
}, [f]);
|
|
9453
|
+
const { refs: _, context: g, floatingStyles: b } = Ie({
|
|
9454
|
+
open: f,
|
|
9455
9455
|
onOpenChange: E
|
|
9456
9456
|
}), v = rt(g), C = Se(g, {
|
|
9457
9457
|
outsidePressEvent: "mousedown"
|
|
@@ -9477,7 +9477,7 @@ const $2 = (o) => {
|
|
|
9477
9477
|
Xs,
|
|
9478
9478
|
{
|
|
9479
9479
|
lockScroll: !0,
|
|
9480
|
-
style: fe(y({},
|
|
9480
|
+
style: fe(y({}, b), {
|
|
9481
9481
|
background: "var(--pds-color-overlay)",
|
|
9482
9482
|
transition: "var(--pds-animation-reveal-transition)",
|
|
9483
9483
|
zIndex: "var(--pds-z-index-modal)"
|
|
@@ -9490,7 +9490,7 @@ const $2 = (o) => {
|
|
|
9490
9490
|
"aria-label": s || l
|
|
9491
9491
|
}, w()), {
|
|
9492
9492
|
className: [m, p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
9493
|
-
style: fe(y(y({},
|
|
9493
|
+
style: fe(y(y({}, b), k), {
|
|
9494
9494
|
position: "relative"
|
|
9495
9495
|
})
|
|
9496
9496
|
}), d),
|
|
@@ -9587,18 +9587,18 @@ const $2 = (o) => {
|
|
|
9587
9587
|
},
|
|
9588
9588
|
N.linkContent
|
|
9589
9589
|
))
|
|
9590
|
-
), [m, p] = R(!1), { refs:
|
|
9590
|
+
), [m, p] = R(!1), { refs: f, floatingStyles: E, context: _ } = Ie({
|
|
9591
9591
|
placement: "right-start",
|
|
9592
9592
|
open: m,
|
|
9593
9593
|
onOpenChange: p,
|
|
9594
9594
|
middleware: [yt(12), wt(), Nt()],
|
|
9595
9595
|
whileElementsMounted: Pe
|
|
9596
|
-
}), g =
|
|
9596
|
+
}), g = Et(_, {
|
|
9597
9597
|
move: !1,
|
|
9598
9598
|
handleClose: vs()
|
|
9599
|
-
}),
|
|
9599
|
+
}), b = fs(_), v = Se(_), C = Te(_, { role: "menu" }), { getReferenceProps: $, getFloatingProps: w } = Oe([
|
|
9600
9600
|
g,
|
|
9601
|
-
|
|
9601
|
+
b,
|
|
9602
9602
|
v,
|
|
9603
9603
|
C
|
|
9604
9604
|
]), L = (k) => {
|
|
@@ -9618,7 +9618,7 @@ const $2 = (o) => {
|
|
|
9618
9618
|
a ? null : `${i}--collapsed`,
|
|
9619
9619
|
n ? `${i}--active` : null
|
|
9620
9620
|
]),
|
|
9621
|
-
ref: a ? null :
|
|
9621
|
+
ref: a ? null : f.setReference
|
|
9622
9622
|
}, $()),
|
|
9623
9623
|
o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${i}-wrapper` }, Zt(
|
|
9624
9624
|
l,
|
|
@@ -9641,13 +9641,13 @@ const $2 = (o) => {
|
|
|
9641
9641
|
"div",
|
|
9642
9642
|
y({
|
|
9643
9643
|
className: `${l}__flyout`,
|
|
9644
|
-
ref:
|
|
9644
|
+
ref: f.setFloating,
|
|
9645
9645
|
style: E
|
|
9646
9646
|
}, w()),
|
|
9647
9647
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__flyout-heading` }, at(r)),
|
|
9648
9648
|
h(o, "second-level-flyout")
|
|
9649
9649
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, a ? u : /* @__PURE__ */ e.createElement(
|
|
9650
|
-
|
|
9650
|
+
_t,
|
|
9651
9651
|
{
|
|
9652
9652
|
content: at(r),
|
|
9653
9653
|
customTrigger: u,
|
|
@@ -9671,7 +9671,7 @@ const $2 = (o) => {
|
|
|
9671
9671
|
"selectTextFallback",
|
|
9672
9672
|
"className"
|
|
9673
9673
|
]);
|
|
9674
|
-
const i = "pds-dropdown-menu", [d, u] = R(!1), [h, m] = R(null), p = qs(n),
|
|
9674
|
+
const i = "pds-dropdown-menu", [d, u] = R(!1), [h, m] = R(null), p = qs(n), f = p ? p.props.children : a, E = /* @__PURE__ */ e.createElement(
|
|
9675
9675
|
A,
|
|
9676
9676
|
{
|
|
9677
9677
|
iconName: "check",
|
|
@@ -9692,7 +9692,7 @@ const $2 = (o) => {
|
|
|
9692
9692
|
};
|
|
9693
9693
|
}
|
|
9694
9694
|
}, [d]);
|
|
9695
|
-
const
|
|
9695
|
+
const b = ({
|
|
9696
9696
|
item: S,
|
|
9697
9697
|
level: P
|
|
9698
9698
|
}) => fe(y({}, S), {
|
|
@@ -9706,20 +9706,20 @@ const $2 = (o) => {
|
|
|
9706
9706
|
}), v = (S) => {
|
|
9707
9707
|
const P = [];
|
|
9708
9708
|
return S.forEach((j) => {
|
|
9709
|
-
j.links ? (P.push(
|
|
9710
|
-
F.links ? (P.push(
|
|
9709
|
+
j.links ? (P.push(b({ item: j, level: "top-level" })), j.links.forEach((F) => {
|
|
9710
|
+
F.links ? (P.push(b({ item: F, level: "second-level" })), F.links.forEach((Z) => {
|
|
9711
9711
|
P.push(
|
|
9712
|
-
|
|
9712
|
+
b({ item: Z, level: "third-level" })
|
|
9713
9713
|
);
|
|
9714
|
-
})) : P.push(
|
|
9715
|
-
})) : P.push(
|
|
9714
|
+
})) : P.push(b({ item: F, level: "second-level" }));
|
|
9715
|
+
})) : P.push(b({ item: j, level: "top-level" }));
|
|
9716
9716
|
}), P;
|
|
9717
9717
|
}, { refs: C, context: $ } = Ie({
|
|
9718
9718
|
placement: "bottom-start",
|
|
9719
9719
|
open: d,
|
|
9720
9720
|
onOpenChange: u,
|
|
9721
9721
|
whileElementsMounted: Pe
|
|
9722
|
-
}), w = se([]), L =
|
|
9722
|
+
}), w = se([]), L = mt($, {
|
|
9723
9723
|
listRef: w,
|
|
9724
9724
|
activeIndex: h,
|
|
9725
9725
|
onNavigate: m,
|
|
@@ -9749,7 +9749,7 @@ const $2 = (o) => {
|
|
|
9749
9749
|
className: `${i}__trigger`,
|
|
9750
9750
|
ref: C.setReference
|
|
9751
9751
|
}, x()),
|
|
9752
|
-
/* @__PURE__ */ e.createElement("span", { className: `${i}__active-label` },
|
|
9752
|
+
/* @__PURE__ */ e.createElement("span", { className: `${i}__active-label` }, f),
|
|
9753
9753
|
/* @__PURE__ */ e.createElement(
|
|
9754
9754
|
A,
|
|
9755
9755
|
{
|
|
@@ -9805,23 +9805,23 @@ const $2 = (o) => {
|
|
|
9805
9805
|
const h = He(Qt);
|
|
9806
9806
|
let m = !0;
|
|
9807
9807
|
h && (m = h.isSidebarExpanded);
|
|
9808
|
-
const p = "pds-dashboard-nav",
|
|
9808
|
+
const p = "pds-dashboard-nav", f = m ? `${p}--expanded` : `${p}--collapsed`, E = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${p}__menu ${p}__menu--top-level` }, a.map((b, v) => /* @__PURE__ */ e.createElement(
|
|
9809
9809
|
H2,
|
|
9810
9810
|
{
|
|
9811
9811
|
key: v,
|
|
9812
|
-
icon:
|
|
9813
|
-
isActive: ye(
|
|
9812
|
+
icon: b.icon,
|
|
9813
|
+
isActive: ye(b),
|
|
9814
9814
|
isSidebarExpanded: m,
|
|
9815
9815
|
labels: n,
|
|
9816
|
-
linkContent:
|
|
9817
|
-
links:
|
|
9816
|
+
linkContent: b.linkContent,
|
|
9817
|
+
links: b.links
|
|
9818
9818
|
}
|
|
9819
|
-
)))), _ = a.map((
|
|
9819
|
+
)))), _ = a.map((b) => fe(y({}, b), {
|
|
9820
9820
|
linkContent: Zt(
|
|
9821
9821
|
p,
|
|
9822
|
-
|
|
9823
|
-
|
|
9824
|
-
|
|
9822
|
+
b.linkContent,
|
|
9823
|
+
b.links,
|
|
9824
|
+
b.icon
|
|
9825
9825
|
)
|
|
9826
9826
|
})), g = /* @__PURE__ */ e.createElement(
|
|
9827
9827
|
es,
|
|
@@ -9834,7 +9834,7 @@ const $2 = (o) => {
|
|
|
9834
9834
|
"nav",
|
|
9835
9835
|
y({
|
|
9836
9836
|
"aria-label": s,
|
|
9837
|
-
className: J([p,
|
|
9837
|
+
className: J([p, f, r])
|
|
9838
9838
|
}, o),
|
|
9839
9839
|
!d && /* @__PURE__ */ e.createElement(
|
|
9840
9840
|
Is,
|
|
@@ -9870,19 +9870,19 @@ const $2 = (o) => {
|
|
|
9870
9870
|
"mobileMenuSelectTextFallback",
|
|
9871
9871
|
"className"
|
|
9872
9872
|
]);
|
|
9873
|
-
const m = "pds-side-nav", [p,
|
|
9874
|
-
oe(() => (
|
|
9873
|
+
const m = "pds-side-nav", [p, f] = R(1025);
|
|
9874
|
+
oe(() => (f(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
9875
9875
|
window.removeEventListener("resize", E);
|
|
9876
9876
|
}), []);
|
|
9877
9877
|
const E = () => {
|
|
9878
|
-
|
|
9878
|
+
f(window.innerWidth);
|
|
9879
9879
|
}, _ = p <= o, g = ($) => {
|
|
9880
9880
|
const w = $.target;
|
|
9881
9881
|
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
9882
9882
|
"aria-expanded",
|
|
9883
9883
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9884
9884
|
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
9885
|
-
},
|
|
9885
|
+
}, b = ($, w) => {
|
|
9886
9886
|
const { linkContent: L, links: k } = $, z = `${m}__item`, N = `${m}__menu`;
|
|
9887
9887
|
return /* @__PURE__ */ e.createElement(
|
|
9888
9888
|
"li",
|
|
@@ -9936,7 +9936,7 @@ const $2 = (o) => {
|
|
|
9936
9936
|
L
|
|
9937
9937
|
)
|
|
9938
9938
|
);
|
|
9939
|
-
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, r.map(($, w) =>
|
|
9939
|
+
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, r.map(($, w) => b($, w)))), C = /* @__PURE__ */ e.createElement(
|
|
9940
9940
|
es,
|
|
9941
9941
|
{
|
|
9942
9942
|
headingText: a,
|
|
@@ -9975,19 +9975,19 @@ const $2 = (o) => {
|
|
|
9975
9975
|
"mobileMenuSelectTextFallback",
|
|
9976
9976
|
"className"
|
|
9977
9977
|
]);
|
|
9978
|
-
const m = "pds-side-nav-compact", [p,
|
|
9979
|
-
oe(() => (
|
|
9978
|
+
const m = "pds-side-nav-compact", [p, f] = R(1025);
|
|
9979
|
+
oe(() => (f(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
9980
9980
|
window.removeEventListener("resize", E);
|
|
9981
9981
|
}), []);
|
|
9982
9982
|
const E = () => {
|
|
9983
|
-
|
|
9983
|
+
f(window.innerWidth);
|
|
9984
9984
|
}, _ = p <= o, g = ($) => {
|
|
9985
9985
|
const w = $.target;
|
|
9986
9986
|
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
9987
9987
|
"aria-expanded",
|
|
9988
9988
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9989
9989
|
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
9990
|
-
},
|
|
9990
|
+
}, b = ($, w) => {
|
|
9991
9991
|
const { linkContent: L, links: k } = $, z = `${m}__item`, N = `${m}__menu`;
|
|
9992
9992
|
return /* @__PURE__ */ e.createElement(
|
|
9993
9993
|
"li",
|
|
@@ -10080,7 +10080,7 @@ const $2 = (o) => {
|
|
|
10080
10080
|
L
|
|
10081
10081
|
)
|
|
10082
10082
|
);
|
|
10083
|
-
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, r.map(($, w) =>
|
|
10083
|
+
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, r.map(($, w) => b($, w)))), C = /* @__PURE__ */ e.createElement(
|
|
10084
10084
|
es,
|
|
10085
10085
|
{
|
|
10086
10086
|
headingText: a,
|
|
@@ -10114,17 +10114,17 @@ const $2 = (o) => {
|
|
|
10114
10114
|
"withinNavbar",
|
|
10115
10115
|
"className"
|
|
10116
10116
|
]);
|
|
10117
|
-
const [h, m] = R(null), [p,
|
|
10117
|
+
const [h, m] = R(null), [p, f] = R(!1), E = se([]), _ = se([]);
|
|
10118
10118
|
let g = !1;
|
|
10119
|
-
const
|
|
10120
|
-
|
|
10119
|
+
const b = He(Fe);
|
|
10120
|
+
b && (g = b.isMobile);
|
|
10121
10121
|
const v = o && g, C = "pds-user-menu", $ = v ? `${C}--isMobile` : null, w = `${C}__menu`, { refs: L, floatingStyles: k, context: z } = Ie({
|
|
10122
10122
|
placement: "bottom-end",
|
|
10123
10123
|
open: p,
|
|
10124
|
-
onOpenChange:
|
|
10124
|
+
onOpenChange: f,
|
|
10125
10125
|
middleware: [yt(12), wt(), Nt()],
|
|
10126
10126
|
whileElementsMounted: Pe
|
|
10127
|
-
}), N = rt(z, { event: "mousedown" }), x = Se(z), M = Te(z, { role: "menu" }), T = se([]), V =
|
|
10127
|
+
}), N = rt(z, { event: "mousedown" }), x = Se(z), M = Te(z, { role: "menu" }), T = se([]), V = mt(z, {
|
|
10128
10128
|
listRef: T,
|
|
10129
10129
|
activeIndex: h,
|
|
10130
10130
|
onNavigate: m,
|
|
@@ -10149,7 +10149,7 @@ const $2 = (o) => {
|
|
|
10149
10149
|
opacity: 0
|
|
10150
10150
|
}
|
|
10151
10151
|
}), Z = /* @__PURE__ */ e.createElement(
|
|
10152
|
-
|
|
10152
|
+
dt,
|
|
10153
10153
|
{
|
|
10154
10154
|
size: "sm",
|
|
10155
10155
|
imageSrc: c,
|
|
@@ -10163,7 +10163,7 @@ const $2 = (o) => {
|
|
|
10163
10163
|
});
|
|
10164
10164
|
const O = (te) => {
|
|
10165
10165
|
const de = E.current.indexOf(te), le = _.current[de];
|
|
10166
|
-
le.linkContent && !le.disabled && (T.current[de].querySelector("a").click(),
|
|
10166
|
+
le.linkContent && !le.disabled && (T.current[de].querySelector("a").click(), f(!1)), le.callback && !le.disabled && (le.callback(le), f(!1));
|
|
10167
10167
|
}, D = (te) => {
|
|
10168
10168
|
te.preventDefault(), te.key === "Enter" && O(te.currentTarget.id);
|
|
10169
10169
|
}, U = (te) => {
|
|
@@ -10271,11 +10271,11 @@ const $2 = (o) => {
|
|
|
10271
10271
|
const [u, h] = R(s), m = u.length;
|
|
10272
10272
|
if (m === 0)
|
|
10273
10273
|
return null;
|
|
10274
|
-
const p = "pds-banner",
|
|
10274
|
+
const p = "pds-banner", f = m > 1 ? `${p}-group--multiple` : null, E = {
|
|
10275
10275
|
info: `${p}--info`,
|
|
10276
10276
|
warning: `${p}--warning`,
|
|
10277
10277
|
critical: `${p}--critical`
|
|
10278
|
-
}, _ = m > 0 ? u[0].type : null, g = _ ? `${p}-group--${_}` : null,
|
|
10278
|
+
}, _ = m > 0 ? u[0].type : null, g = _ ? `${p}-group--${_}` : null, b = (k) => ({
|
|
10279
10279
|
zIndex: Vt - k
|
|
10280
10280
|
}), v = (k) => k === 0 ? 0 : -1, C = () => {
|
|
10281
10281
|
const k = document.getElementsByClassName(
|
|
@@ -10319,7 +10319,7 @@ const $2 = (o) => {
|
|
|
10319
10319
|
className: J([p, E[V]]),
|
|
10320
10320
|
role: S,
|
|
10321
10321
|
style: {
|
|
10322
|
-
zIndex:
|
|
10322
|
+
zIndex: b(z).zIndex
|
|
10323
10323
|
}
|
|
10324
10324
|
},
|
|
10325
10325
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10347,12 +10347,12 @@ const $2 = (o) => {
|
|
|
10347
10347
|
className: J([
|
|
10348
10348
|
`${p}-group`,
|
|
10349
10349
|
g,
|
|
10350
|
-
|
|
10350
|
+
f,
|
|
10351
10351
|
o != null ? o : ""
|
|
10352
10352
|
])
|
|
10353
10353
|
}, l),
|
|
10354
10354
|
m > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${p}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
10355
|
-
|
|
10355
|
+
it,
|
|
10356
10356
|
{
|
|
10357
10357
|
iconName: "angleLeft",
|
|
10358
10358
|
size: "lg",
|
|
@@ -10361,7 +10361,7 @@ const $2 = (o) => {
|
|
|
10361
10361
|
onClick: w
|
|
10362
10362
|
}
|
|
10363
10363
|
), /* @__PURE__ */ e.createElement(
|
|
10364
|
-
|
|
10364
|
+
it,
|
|
10365
10365
|
{
|
|
10366
10366
|
iconName: "angleRight",
|
|
10367
10367
|
size: "lg",
|
|
@@ -10403,7 +10403,7 @@ const $2 = (o) => {
|
|
|
10403
10403
|
info: `${d}--info`,
|
|
10404
10404
|
critical: `${d}--critical`,
|
|
10405
10405
|
working: `${d}--working`
|
|
10406
|
-
}, h = s ? `${d}--hasTitle` : null, p = ["critical", "warning"].includes(a) ? "alert" : "status",
|
|
10406
|
+
}, h = s ? `${d}--hasTitle` : null, p = ["critical", "warning"].includes(a) ? "alert" : "status", f = `${c[a]}: `;
|
|
10407
10407
|
return /* @__PURE__ */ e.createElement(
|
|
10408
10408
|
"div",
|
|
10409
10409
|
y({
|
|
@@ -10416,7 +10416,7 @@ const $2 = (o) => {
|
|
|
10416
10416
|
iconName: `${a}` in jt ? jt[a] : jt.info,
|
|
10417
10417
|
iconSize: "md"
|
|
10418
10418
|
}
|
|
10419
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" },
|
|
10419
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${d}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, f), s && /* @__PURE__ */ e.createElement("div", { className: `${d}__title` }, s), /* @__PURE__ */ e.createElement("div", { className: `${d}__secondaryText` }, n)))
|
|
10420
10420
|
);
|
|
10421
10421
|
}, Bt = {
|
|
10422
10422
|
info: "circleInfo",
|
|
@@ -10452,16 +10452,16 @@ const $2 = (o) => {
|
|
|
10452
10452
|
"typeLabels",
|
|
10453
10453
|
"className"
|
|
10454
10454
|
]);
|
|
10455
|
-
const p = se(null),
|
|
10456
|
-
error: `${
|
|
10457
|
-
success: `${
|
|
10458
|
-
warning: `${
|
|
10459
|
-
info: `${
|
|
10460
|
-
critical: `${
|
|
10461
|
-
discovery: `${
|
|
10462
|
-
dismissing: `${
|
|
10463
|
-
dismissed: `${
|
|
10464
|
-
}, _ = o ? `${
|
|
10455
|
+
const p = se(null), f = "pds-section-message", E = {
|
|
10456
|
+
error: `${f}--error`,
|
|
10457
|
+
success: `${f}--success`,
|
|
10458
|
+
warning: `${f}--warning`,
|
|
10459
|
+
info: `${f}--info`,
|
|
10460
|
+
critical: `${f}--critical`,
|
|
10461
|
+
discovery: `${f}--discovery`,
|
|
10462
|
+
dismissing: `${f}--dismissing`,
|
|
10463
|
+
dismissed: `${f}--dismissed`
|
|
10464
|
+
}, _ = o ? `${f}--hasTitle` : null, b = ["critical", "warning"].includes(l) ? "alert" : "status", v = `${i[l]}: `, C = () => {
|
|
10465
10465
|
p.current.addEventListener("animationend", $, {
|
|
10466
10466
|
once: !0
|
|
10467
10467
|
});
|
|
@@ -10475,22 +10475,22 @@ const $2 = (o) => {
|
|
|
10475
10475
|
return /* @__PURE__ */ e.createElement(
|
|
10476
10476
|
"div",
|
|
10477
10477
|
y({
|
|
10478
|
-
className: [
|
|
10478
|
+
className: [f, E[l], _, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
10479
10479
|
id: n,
|
|
10480
10480
|
ref: p,
|
|
10481
|
-
role:
|
|
10481
|
+
role: b
|
|
10482
10482
|
}, u),
|
|
10483
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10483
|
+
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__icon ${f}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
10484
10484
|
A,
|
|
10485
10485
|
{
|
|
10486
10486
|
iconName: `${l}` in Bt ? Bt[l] : Bt.info,
|
|
10487
10487
|
iconSize: "md"
|
|
10488
10488
|
}
|
|
10489
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10489
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${f}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, v), o && /* @__PURE__ */ e.createElement("div", { className: `${f}__title` }, o), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, r))),
|
|
10490
10490
|
a && /* @__PURE__ */ e.createElement(
|
|
10491
10491
|
"button",
|
|
10492
10492
|
{
|
|
10493
|
-
className: `${
|
|
10493
|
+
className: `${f}__dismiss`,
|
|
10494
10494
|
onClick: w,
|
|
10495
10495
|
"aria-label": s,
|
|
10496
10496
|
role: "button"
|
|
@@ -10521,8 +10521,8 @@ const $2 = (o) => {
|
|
|
10521
10521
|
n && a && /* @__PURE__ */ e.createElement("span", { className: u }),
|
|
10522
10522
|
/* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, s)
|
|
10523
10523
|
);
|
|
10524
|
-
}, Ze = 8, us = 14, M2 = 6, pn = (
|
|
10525
|
-
var E =
|
|
10524
|
+
}, Ze = 8, us = 14, M2 = 6, pn = (f) => {
|
|
10525
|
+
var E = f, {
|
|
10526
10526
|
content: s,
|
|
10527
10527
|
customTrigger: n = !1,
|
|
10528
10528
|
hasCloseButton: a = !1,
|
|
@@ -10558,9 +10558,9 @@ const $2 = (o) => {
|
|
|
10558
10558
|
}, [u]), oe(() => {
|
|
10559
10559
|
h(_);
|
|
10560
10560
|
}, [_]);
|
|
10561
|
-
const
|
|
10561
|
+
const b = typeof n, v = "pds-popover", C = [
|
|
10562
10562
|
`${v}__trigger-custom`,
|
|
10563
|
-
|
|
10563
|
+
b === "string" ? `${v}__trigger-text` : ""
|
|
10564
10564
|
].join(" ").trim().replace(/\s+/g, " "), $ = n ? c : 0, w = se(null), { refs: L, floatingStyles: k, context: z, middlewareData: N } = Ie({
|
|
10565
10565
|
placement: o,
|
|
10566
10566
|
open: _,
|
|
@@ -10670,7 +10670,7 @@ const $2 = (o) => {
|
|
|
10670
10670
|
"size",
|
|
10671
10671
|
"className"
|
|
10672
10672
|
]);
|
|
10673
|
-
const
|
|
10673
|
+
const f = n || Ae(), E = "pds-progress-bar", _ = l ? `${E}__label` : "visually-hidden", g = `${E}__track ${E}__track--${d}`, b = o > 100 ? 100 : o;
|
|
10674
10674
|
let v = "neutral";
|
|
10675
10675
|
s.forEach((L) => {
|
|
10676
10676
|
o >= L.percentage && (v = L.colorType);
|
|
@@ -10680,9 +10680,9 @@ const $2 = (o) => {
|
|
|
10680
10680
|
"div",
|
|
10681
10681
|
y({
|
|
10682
10682
|
className: [E, u].join(" ").trim().replace(/\s+/g, " "),
|
|
10683
|
-
style: { "--bar-percentage": `${
|
|
10683
|
+
style: { "--bar-percentage": `${b}%` }
|
|
10684
10684
|
}, h),
|
|
10685
|
-
/* @__PURE__ */ e.createElement("div", { id:
|
|
10685
|
+
/* @__PURE__ */ e.createElement("div", { id: f, className: _ }, a),
|
|
10686
10686
|
($ || i) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, $ && C, i && /* @__PURE__ */ e.createElement(
|
|
10687
10687
|
"div",
|
|
10688
10688
|
{
|
|
@@ -10698,8 +10698,8 @@ const $2 = (o) => {
|
|
|
10698
10698
|
"div",
|
|
10699
10699
|
{
|
|
10700
10700
|
role: "progressbar",
|
|
10701
|
-
"aria-labelledby":
|
|
10702
|
-
"aria-valuenow":
|
|
10701
|
+
"aria-labelledby": f,
|
|
10702
|
+
"aria-valuenow": b,
|
|
10703
10703
|
className: g
|
|
10704
10704
|
},
|
|
10705
10705
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10707,7 +10707,7 @@ const $2 = (o) => {
|
|
|
10707
10707
|
{
|
|
10708
10708
|
className: `${E}__bar`,
|
|
10709
10709
|
style: {
|
|
10710
|
-
width: `${
|
|
10710
|
+
width: `${b}%`,
|
|
10711
10711
|
backgroundColor: `var(${ps[v]})`
|
|
10712
10712
|
}
|
|
10713
10713
|
}
|
|
@@ -10814,16 +10814,16 @@ const L2 = (s) => {
|
|
|
10814
10814
|
"tagLabel",
|
|
10815
10815
|
"className"
|
|
10816
10816
|
]);
|
|
10817
|
-
const [h, m] = R(!0), p = "pds-tag",
|
|
10817
|
+
const [h, m] = R(!0), p = "pds-tag", f = r ? `${p}--${r}` : `${p}--${L2(o)}`, E = h ? null : "pds-tag--hide", _ = () => {
|
|
10818
10818
|
m((C) => !C);
|
|
10819
10819
|
};
|
|
10820
|
-
let g,
|
|
10821
|
-
return s && !n && Ut(s) ? (g = s.type,
|
|
10820
|
+
let g, b, v;
|
|
10821
|
+
return s && !n && Ut(s) ? (g = s.type, b = s.props.href ? "href" : "to", v = b === "href" ? s.props.href : s.props.to) : (g = "span", b = null, v = null), /* @__PURE__ */ e.createElement(
|
|
10822
10822
|
g,
|
|
10823
10823
|
y({
|
|
10824
|
-
href:
|
|
10825
|
-
to:
|
|
10826
|
-
className: [p,
|
|
10824
|
+
href: b === "href" ? v : null,
|
|
10825
|
+
to: b === "to" ? v : null,
|
|
10826
|
+
className: [p, f, E, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10827
10827
|
}, i),
|
|
10828
10828
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label`, title: o }, x2(o, 20)),
|
|
10829
10829
|
n ? /* @__PURE__ */ e.createElement(
|
|
@@ -10868,17 +10868,17 @@ const L2 = (s) => {
|
|
|
10868
10868
|
"children",
|
|
10869
10869
|
"className"
|
|
10870
10870
|
]);
|
|
10871
|
-
const p = "pds-flex",
|
|
10871
|
+
const p = "pds-flex", f = l ? `${p}-gap--${l}` : null, E = a ? `${p}-direction--${a}` : null, _ = c ? `${p}--${c}` : null, g = r ? `${p}-justify--${r}` : null, b = n ? `${p}-align-items--${n}` : null, v = s ? `${p}-align-content--${s}` : null, C = o && o !== "same" ? `${p}-mobile--${o}` : null;
|
|
10872
10872
|
return /* @__PURE__ */ e.createElement(
|
|
10873
10873
|
"div",
|
|
10874
10874
|
y({
|
|
10875
10875
|
className: [
|
|
10876
10876
|
"pds-flex-container",
|
|
10877
|
-
|
|
10877
|
+
f,
|
|
10878
10878
|
E,
|
|
10879
10879
|
_,
|
|
10880
10880
|
g,
|
|
10881
|
-
|
|
10881
|
+
b,
|
|
10882
10882
|
v,
|
|
10883
10883
|
C,
|
|
10884
10884
|
d
|
|
@@ -10956,15 +10956,15 @@ const I2 = (i) => {
|
|
|
10956
10956
|
oe(() => (h(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
10957
10957
|
window.removeEventListener("resize", E);
|
|
10958
10958
|
}), []);
|
|
10959
|
-
const m = "pds-sidebar-layout", p = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`,
|
|
10959
|
+
const m = "pds-sidebar-layout", p = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, f = `${m}--${a}`, E = () => {
|
|
10960
10960
|
h(window.innerWidth);
|
|
10961
10961
|
}, _ = {};
|
|
10962
10962
|
e.Children.forEach(s, (L) => {
|
|
10963
10963
|
const k = L.props.slot;
|
|
10964
10964
|
k && (_[k] ? _[k].push(L) : _[k] = [L]);
|
|
10965
10965
|
});
|
|
10966
|
-
let g = "pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10",
|
|
10967
|
-
r === "narrow" && (g = "pds-grid-item--md-9 pds-grid-item--lg-10",
|
|
10966
|
+
let g = "pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", b = "pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
10967
|
+
r === "narrow" && (g = "pds-grid-item--md-9 pds-grid-item--lg-10", b = "pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (g = "pds-grid-item--md-7 pds-grid-item--lg-8", b = "pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10968
10968
|
const v = /* @__PURE__ */ e.createElement(
|
|
10969
10969
|
"div",
|
|
10970
10970
|
{
|
|
@@ -10976,7 +10976,7 @@ const I2 = (i) => {
|
|
|
10976
10976
|
"div",
|
|
10977
10977
|
{
|
|
10978
10978
|
key: "2",
|
|
10979
|
-
className: `${m}__side pds-grid-item pds-grid-item--sm-4 ${
|
|
10979
|
+
className: `${m}__side pds-grid-item pds-grid-item--sm-4 ${b}`
|
|
10980
10980
|
},
|
|
10981
10981
|
_.sidebar
|
|
10982
10982
|
), $ = u < 641;
|
|
@@ -10984,7 +10984,7 @@ const I2 = (i) => {
|
|
|
10984
10984
|
return a === "left" && c === "before" && (w = [C, v]), a === "left" && c === "after" && (w = $ ? [v, C] : [C, v]), a === "right" && c === "before" && (w = $ ? [C, v] : [v, C]), a === "right" && c === "after" && (w = [v, C]), /* @__PURE__ */ e.createElement(
|
|
10985
10985
|
"div",
|
|
10986
10986
|
y({
|
|
10987
|
-
className: [m, p,
|
|
10987
|
+
className: [m, p, f, o].join(" ").trim().replace(/\s+/g, " ")
|
|
10988
10988
|
}, l),
|
|
10989
10989
|
w
|
|
10990
10990
|
);
|
|
@@ -11019,8 +11019,8 @@ const S2 = (c) => {
|
|
|
11019
11019
|
var r = c, { children: s, className: n } = r, a = I(r, ["children", "className"]);
|
|
11020
11020
|
const o = {};
|
|
11021
11021
|
e.Children.forEach(s, (p) => {
|
|
11022
|
-
const
|
|
11023
|
-
|
|
11022
|
+
const f = p.props.slot;
|
|
11023
|
+
f && (o[f] ? o[f].push(p) : o[f] = [p]);
|
|
11024
11024
|
});
|
|
11025
11025
|
const l = o.stepper, i = o.form, d = se(), [u] = kt(d), h = u.width;
|
|
11026
11026
|
document.documentElement.style.setProperty(
|
|
@@ -11116,30 +11116,30 @@ const O2 = (o) => {
|
|
|
11116
11116
|
"className"
|
|
11117
11117
|
]);
|
|
11118
11118
|
const i = "pds-two-item-layout", d = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, u = ["pds-grid-item--md-6"], h = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], m = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], p = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
11119
|
-
let
|
|
11119
|
+
let f, E;
|
|
11120
11120
|
switch (a) {
|
|
11121
11121
|
case "equal":
|
|
11122
|
-
|
|
11122
|
+
f = p.concat(u), E = p.concat(u);
|
|
11123
11123
|
break;
|
|
11124
11124
|
case "one-third-start":
|
|
11125
|
-
|
|
11125
|
+
f = p.concat(h), E = p.concat(m);
|
|
11126
11126
|
break;
|
|
11127
11127
|
case "one-third-end":
|
|
11128
|
-
|
|
11128
|
+
f = p.concat(m), E = p.concat(h);
|
|
11129
11129
|
}
|
|
11130
11130
|
const _ = {};
|
|
11131
11131
|
e.Children.forEach(s, (v) => {
|
|
11132
11132
|
const C = v.props.slot;
|
|
11133
11133
|
C && (_[C] ? _[C].push(v) : _[C] = [v]);
|
|
11134
11134
|
});
|
|
11135
|
-
const g = _["first-item"],
|
|
11135
|
+
const g = _["first-item"], b = _["second-item"];
|
|
11136
11136
|
return /* @__PURE__ */ e.createElement(
|
|
11137
11137
|
"div",
|
|
11138
11138
|
y({
|
|
11139
11139
|
className: [i, d, c].join(" ").trim().replace(/\s+/g, " ")
|
|
11140
11140
|
}, r),
|
|
11141
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
11142
|
-
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() },
|
|
11141
|
+
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, g),
|
|
11142
|
+
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() }, b)
|
|
11143
11143
|
);
|
|
11144
11144
|
};
|
|
11145
11145
|
O2.propTypes = {
|
|
@@ -11165,7 +11165,7 @@ const vn = ({
|
|
|
11165
11165
|
mobileMenuMaxWidth: n = 640
|
|
11166
11166
|
}) => /* @__PURE__ */ e.createElement(y1, { mobileMenuMaxWidth: n }, s);
|
|
11167
11167
|
export {
|
|
11168
|
-
|
|
11168
|
+
dt as Avatar,
|
|
11169
11169
|
r1 as AvatarTileList,
|
|
11170
11170
|
on as Banner,
|
|
11171
11171
|
u1 as Breadcrumbs,
|
|
@@ -11196,7 +11196,7 @@ export {
|
|
|
11196
11196
|
vn as GlobalWrapper,
|
|
11197
11197
|
x1 as Heading,
|
|
11198
11198
|
A as Icon,
|
|
11199
|
-
|
|
11199
|
+
it as IconButton,
|
|
11200
11200
|
Ct as IndicatorBadge,
|
|
11201
11201
|
dn as InlineMessage,
|
|
11202
11202
|
I1 as InputFormatted,
|
|
@@ -11253,7 +11253,7 @@ export {
|
|
|
11253
11253
|
f2 as Toaster,
|
|
11254
11254
|
b2 as ToggleButton,
|
|
11255
11255
|
v2 as ToggleSwitch,
|
|
11256
|
-
|
|
11256
|
+
_t as Tooltip,
|
|
11257
11257
|
O2 as TwoItemLayout,
|
|
11258
11258
|
rn as UserMenu,
|
|
11259
11259
|
C2 as WorkspaceSelector,
|