@pantheon-systems/pds-toolkit-react 1.0.0-dev.182 → 1.0.0-dev.184
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
|
@@ -774,9 +774,9 @@ const p1 = {
|
|
|
774
774
|
"zIndex",
|
|
775
775
|
"className"
|
|
776
776
|
]);
|
|
777
|
-
const [g, b] = P(!1),
|
|
777
|
+
const [g, b] = P(!1), _ = typeof s, p = "pds-tooltip", v = Z([
|
|
778
778
|
`${p}__trigger-custom`,
|
|
779
|
-
|
|
779
|
+
_ === "string" ? `${p}__trigger-text` : null
|
|
780
780
|
]), C = Z([
|
|
781
781
|
`${p}__trigger`,
|
|
782
782
|
`${p}__trigger--${l}`
|
|
@@ -799,7 +799,7 @@ const p1 = {
|
|
|
799
799
|
return /* @__PURE__ */ e.createElement("div", w({ className: Z([p, d != null ? d : ""]) }, h), s ? /* @__PURE__ */ e.createElement(
|
|
800
800
|
"span",
|
|
801
801
|
w({
|
|
802
|
-
className:
|
|
802
|
+
className: v,
|
|
803
803
|
ref: E.setReference
|
|
804
804
|
}, L()),
|
|
805
805
|
s
|
|
@@ -841,9 +841,9 @@ const g1 = (t) => /* @__PURE__ */ e.createElement(fs, { className: "pds-breadcru
|
|
|
841
841
|
const [r, o] = P(!0), { crumbs: l, deferredCrumbIds: i } = ze($s), m = [...l].sort(f1), d = () => {
|
|
842
842
|
o(!1);
|
|
843
843
|
}, h = m.map(
|
|
844
|
-
(
|
|
844
|
+
(_, p) => p === m.length - 1 ? /* @__PURE__ */ e.createElement(Xe, { crumb: _, lastCrumb: !0, key: p }) : /* @__PURE__ */ e.createElement(Xe, { crumb: _, key: p })
|
|
845
845
|
), u = m.map(
|
|
846
|
-
(
|
|
846
|
+
(_, p) => p === m.length - 1 ? /* @__PURE__ */ e.createElement(Xe, { crumb: _, key: `breadcrumb-${p}`, lastCrumb: !0 }) : p == 2 ? /* @__PURE__ */ e.createElement(e.Fragment, null, " ", /* @__PURE__ */ e.createElement("li", { className: r ? "" : "pds-breadcrumbs__hidden" }, /* @__PURE__ */ e.createElement(
|
|
847
847
|
"button",
|
|
848
848
|
{
|
|
849
849
|
key: `breadcrumb-button-${p}`,
|
|
@@ -854,18 +854,18 @@ const g1 = (t) => /* @__PURE__ */ e.createElement(fs, { className: "pds-breadcru
|
|
|
854
854
|
)), /* @__PURE__ */ e.createElement(
|
|
855
855
|
Xe,
|
|
856
856
|
{
|
|
857
|
-
crumb:
|
|
857
|
+
crumb: _,
|
|
858
858
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
859
859
|
key: `breadcrumb-${p}`
|
|
860
860
|
}
|
|
861
861
|
)) : p > 2 && p < m.length - 2 ? /* @__PURE__ */ e.createElement(
|
|
862
862
|
Xe,
|
|
863
863
|
{
|
|
864
|
-
crumb:
|
|
864
|
+
crumb: _,
|
|
865
865
|
classes: r ? "pds-breadcrumbs__hidden" : null,
|
|
866
866
|
key: `breadcrumb-${p}`
|
|
867
867
|
}
|
|
868
|
-
) : /* @__PURE__ */ e.createElement(Xe, { crumb:
|
|
868
|
+
) : /* @__PURE__ */ e.createElement(Xe, { crumb: _, key: `breadcrumb-${p}` })
|
|
869
869
|
), f = m.length >= 6 ? u : h, g = m[m.length - 2], b = g1(g);
|
|
870
870
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": t, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", w({ className: "pds-breadcrumbs__item" }, s), f), b);
|
|
871
871
|
};
|
|
@@ -1279,7 +1279,7 @@ const E1 = [
|
|
|
1279
1279
|
);
|
|
1280
1280
|
}, Je = je(
|
|
1281
1281
|
(b, g) => {
|
|
1282
|
-
var
|
|
1282
|
+
var _ = b, {
|
|
1283
1283
|
ariaLabel: t,
|
|
1284
1284
|
buttonType: s = "button",
|
|
1285
1285
|
disabled: a = !1,
|
|
@@ -1292,7 +1292,7 @@ const E1 = [
|
|
|
1292
1292
|
size: d = "md",
|
|
1293
1293
|
variant: h = "primary",
|
|
1294
1294
|
className: u
|
|
1295
|
-
} =
|
|
1295
|
+
} = _, f = T(_, [
|
|
1296
1296
|
"ariaLabel",
|
|
1297
1297
|
"buttonType",
|
|
1298
1298
|
"disabled",
|
|
@@ -1306,7 +1306,7 @@ const E1 = [
|
|
|
1306
1306
|
"variant",
|
|
1307
1307
|
"className"
|
|
1308
1308
|
]);
|
|
1309
|
-
const p = "pds-button",
|
|
1309
|
+
const p = "pds-button", v = d !== "md" ? `${p}--${d}` : null, C = h !== "primary" ? `${p}--${h}` : null;
|
|
1310
1310
|
let E;
|
|
1311
1311
|
switch (d) {
|
|
1312
1312
|
case "sm":
|
|
@@ -1332,7 +1332,7 @@ const E1 = [
|
|
|
1332
1332
|
"button",
|
|
1333
1333
|
ve(w({}, f), {
|
|
1334
1334
|
type: s,
|
|
1335
|
-
className: [p,
|
|
1335
|
+
className: [p, v, C, u].join(" ").trim().replace(/\s+/g, " "),
|
|
1336
1336
|
disabled: a || o,
|
|
1337
1337
|
"aria-label": t,
|
|
1338
1338
|
onClick: m,
|
|
@@ -1425,7 +1425,7 @@ const dt = (m) => {
|
|
|
1425
1425
|
u,
|
|
1426
1426
|
f,
|
|
1427
1427
|
g
|
|
1428
|
-
]),
|
|
1428
|
+
]), _ = Ge(c) ? c.props.children : null, p = /* @__PURE__ */ e.createElement(
|
|
1429
1429
|
A,
|
|
1430
1430
|
{
|
|
1431
1431
|
iconName: a,
|
|
@@ -1434,18 +1434,18 @@ const dt = (m) => {
|
|
|
1434
1434
|
key: a
|
|
1435
1435
|
}
|
|
1436
1436
|
);
|
|
1437
|
-
let
|
|
1438
|
-
s === "icon-start" && a ?
|
|
1437
|
+
let v = [_];
|
|
1438
|
+
s === "icon-start" && a ? v = [p, _] : s === "icon-end" && a && (v = [_, p]);
|
|
1439
1439
|
const C = Ge(c) ? Qe(c, {
|
|
1440
1440
|
className: b,
|
|
1441
|
-
children:
|
|
1441
|
+
children: v
|
|
1442
1442
|
}) : null;
|
|
1443
1443
|
return t ? /* @__PURE__ */ e.createElement(
|
|
1444
1444
|
Je,
|
|
1445
1445
|
{
|
|
1446
1446
|
className: Z([h, l != null ? l : ""]),
|
|
1447
1447
|
disabled: !0,
|
|
1448
|
-
label:
|
|
1448
|
+
label: v,
|
|
1449
1449
|
size: r,
|
|
1450
1450
|
variant: o
|
|
1451
1451
|
}
|
|
@@ -1472,14 +1472,14 @@ const dt = (m) => {
|
|
|
1472
1472
|
"secondaryLink",
|
|
1473
1473
|
"className"
|
|
1474
1474
|
]);
|
|
1475
|
-
const f = "pds-card", g = r ? `${f}--clickable` : null, b = `${s}`,
|
|
1476
|
-
|
|
1475
|
+
const f = "pds-card", g = r ? `${f}--clickable` : null, b = `${s}`, _ = l.type, p = c ? /* @__PURE__ */ e.createElement("div", { className: `${f}__image` }, !r && l ? /* @__PURE__ */ e.createElement(
|
|
1476
|
+
_,
|
|
1477
1477
|
w({
|
|
1478
1478
|
tabIndex: "-1",
|
|
1479
1479
|
"aria-hidden": "true"
|
|
1480
1480
|
}, l.props),
|
|
1481
1481
|
/* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })
|
|
1482
|
-
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null,
|
|
1482
|
+
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null, v = /* @__PURE__ */ e.createElement("div", { className: `${f}__text-elements` }, o && /* @__PURE__ */ e.createElement(
|
|
1483
1483
|
"div",
|
|
1484
1484
|
{
|
|
1485
1485
|
className: `${f}__kicker pds-overline-text pds-overline-text--sm`
|
|
@@ -1487,19 +1487,19 @@ const dt = (m) => {
|
|
|
1487
1487
|
o
|
|
1488
1488
|
), a && /* @__PURE__ */ e.createElement(b, { className: `${f}__heading` }, a), t && /* @__PURE__ */ e.createElement("div", { className: `${f}__bodytext` }, /* @__PURE__ */ e.createElement("p", null, t)), !r && l && /* @__PURE__ */ e.createElement("div", { className: `${f}__links pds-button-group` }, /* @__PURE__ */ e.createElement(dt, { linkContent: l, variant: "primary" }), i && /* @__PURE__ */ e.createElement(dt, { linkContent: i, variant: "secondary" })));
|
|
1489
1489
|
return r && l ? /* @__PURE__ */ e.createElement(
|
|
1490
|
-
|
|
1490
|
+
_,
|
|
1491
1491
|
w({
|
|
1492
1492
|
className: [f, g, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1493
1493
|
}, l.props),
|
|
1494
1494
|
p,
|
|
1495
|
-
|
|
1495
|
+
v
|
|
1496
1496
|
) : /* @__PURE__ */ e.createElement(
|
|
1497
1497
|
"div",
|
|
1498
1498
|
w({
|
|
1499
1499
|
className: [f, g, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1500
1500
|
}, d),
|
|
1501
1501
|
p,
|
|
1502
|
-
|
|
1502
|
+
v
|
|
1503
1503
|
);
|
|
1504
1504
|
};
|
|
1505
1505
|
y1.propTypes = {
|
|
@@ -1721,7 +1721,7 @@ k1.propTypes = {
|
|
|
1721
1721
|
className: n.string
|
|
1722
1722
|
};
|
|
1723
1723
|
const H1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = H1.find((t) => t.type === "decimal").value, Ot = 16, rs = 10, z1 = (b) => {
|
|
1724
|
-
var
|
|
1724
|
+
var _ = b, {
|
|
1725
1725
|
disabled: t = !1,
|
|
1726
1726
|
formatting: s,
|
|
1727
1727
|
hasClearButton: a = !1,
|
|
@@ -1735,7 +1735,7 @@ const H1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = H1.find((t)
|
|
|
1735
1735
|
showLabel: h = !0,
|
|
1736
1736
|
validationFunction: u,
|
|
1737
1737
|
className: f
|
|
1738
|
-
} =
|
|
1738
|
+
} = _, g = T(_, [
|
|
1739
1739
|
"disabled",
|
|
1740
1740
|
"formatting",
|
|
1741
1741
|
"hasClearButton",
|
|
@@ -1750,10 +1750,10 @@ const H1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = H1.find((t)
|
|
|
1750
1750
|
"validationFunction",
|
|
1751
1751
|
"className"
|
|
1752
1752
|
]);
|
|
1753
|
-
const p = "pds-input-formatted",
|
|
1753
|
+
const p = "pds-input-formatted", v = s ? `${p}--${s}` : null, C = le([
|
|
1754
1754
|
"pds-input-field",
|
|
1755
1755
|
p,
|
|
1756
|
-
|
|
1756
|
+
v,
|
|
1757
1757
|
f
|
|
1758
1758
|
]), [E, $] = P(""), [y, x] = P(null), [z, M] = P(null), k = le(null), L = le(null), H = le("");
|
|
1759
1759
|
oe(() => {
|
|
@@ -1766,16 +1766,16 @@ const H1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = H1.find((t)
|
|
|
1766
1766
|
break;
|
|
1767
1767
|
}
|
|
1768
1768
|
}, []);
|
|
1769
|
-
const
|
|
1769
|
+
const V = () => {
|
|
1770
1770
|
C.current = C.current.filter(
|
|
1771
1771
|
(S) => S !== ke.required && S !== ke.disabled
|
|
1772
1772
|
);
|
|
1773
|
-
},
|
|
1773
|
+
}, I = () => {
|
|
1774
1774
|
C.current = C.current.filter(
|
|
1775
1775
|
(S) => S !== ke.error && S !== ke.success
|
|
1776
1776
|
);
|
|
1777
1777
|
}, N = () => {
|
|
1778
|
-
|
|
1778
|
+
I(), x(""), M(null);
|
|
1779
1779
|
}, O = (S) => {
|
|
1780
1780
|
i && i({
|
|
1781
1781
|
formattedValue: S,
|
|
@@ -1836,7 +1836,7 @@ const H1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = H1.find((t)
|
|
|
1836
1836
|
}
|
|
1837
1837
|
return S;
|
|
1838
1838
|
};
|
|
1839
|
-
|
|
1839
|
+
V(), d && !t && C.current.push(ke.required), t && C.current.push(ke.disabled);
|
|
1840
1840
|
let K = null;
|
|
1841
1841
|
return z === "error" && (K = /* @__PURE__ */ e.createElement(mt, { type: "error" })), z === "success" && (K = /* @__PURE__ */ e.createElement(mt, { type: "success" })), /* @__PURE__ */ e.createElement("div", w({ className: C.current.join(" ").trim() }, g), /* @__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" }, K && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__decorators" }, K), /* @__PURE__ */ e.createElement(
|
|
1842
1842
|
"input",
|
|
@@ -1977,11 +1977,11 @@ const M1 = (g) => {
|
|
|
1977
1977
|
"validationFunction",
|
|
1978
1978
|
"className"
|
|
1979
1979
|
]);
|
|
1980
|
-
const
|
|
1980
|
+
const _ = "pds-input-obscured", p = le(["pds-input-field", _, u]), [v, C] = P(r), [E, $] = P(t("")), [y, x] = P(), [z, M] = P(null), [k, L] = P(!1), H = le(null), V = le(null);
|
|
1981
1981
|
oe(() => {
|
|
1982
1982
|
r && t && $(t(r));
|
|
1983
1983
|
}, []);
|
|
1984
|
-
const
|
|
1984
|
+
const I = () => {
|
|
1985
1985
|
p.current = p.current.filter(
|
|
1986
1986
|
(S) => S !== ke.required && S !== ke.disabled
|
|
1987
1987
|
);
|
|
@@ -1998,16 +1998,16 @@ const M1 = (g) => {
|
|
|
1998
1998
|
const D = h(S.target.value) || {};
|
|
1999
1999
|
O(), D.error && (M("error"), p.current.push(ke.error)), D.success && (M("success"), p.current.push(ke.success)), x(D.message);
|
|
2000
2000
|
}
|
|
2001
|
-
i && i(
|
|
2001
|
+
i && i(v);
|
|
2002
2002
|
}, j = () => {
|
|
2003
|
-
O(), C(""),
|
|
2003
|
+
O(), C(""), V.current.value = null, V.current.focus(), t && $(t("")), i && i("");
|
|
2004
2004
|
}, W = () => {
|
|
2005
2005
|
L((S) => !S);
|
|
2006
2006
|
}, U = (S) => {
|
|
2007
2007
|
var D;
|
|
2008
2008
|
(!((D = H.current) != null && D.contains(S.relatedTarget)) || !S.relatedTarget) && L(!1);
|
|
2009
2009
|
};
|
|
2010
|
-
|
|
2010
|
+
I(), m && !s && p.current.push(ke.required), s && p.current.push(ke.disabled);
|
|
2011
2011
|
let K = null;
|
|
2012
2012
|
return z === "error" && (K = /* @__PURE__ */ e.createElement(mt, { type: "error" })), z === "success" && (K = /* @__PURE__ */ e.createElement(mt, { type: "success" })), /* @__PURE__ */ e.createElement(
|
|
2013
2013
|
"div",
|
|
@@ -2034,15 +2034,15 @@ const M1 = (g) => {
|
|
|
2034
2034
|
name: c,
|
|
2035
2035
|
required: m,
|
|
2036
2036
|
disabled: s,
|
|
2037
|
-
value:
|
|
2037
|
+
value: v,
|
|
2038
2038
|
onChange: R,
|
|
2039
2039
|
onBlur: B,
|
|
2040
|
-
ref:
|
|
2040
|
+
ref: V,
|
|
2041
2041
|
"aria-invalid": z === "error",
|
|
2042
2042
|
"aria-describedby": l || y ? `${c}__message` : null,
|
|
2043
2043
|
autoComplete: "off"
|
|
2044
2044
|
}
|
|
2045
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, E && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, E),
|
|
2045
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, E && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, E), v && a && /* @__PURE__ */ e.createElement(
|
|
2046
2046
|
Vt,
|
|
2047
2047
|
{
|
|
2048
2048
|
id: c,
|
|
@@ -2053,7 +2053,7 @@ const M1 = (g) => {
|
|
|
2053
2053
|
"button",
|
|
2054
2054
|
{
|
|
2055
2055
|
type: "button",
|
|
2056
|
-
className: `pds-input-field__accessory ${
|
|
2056
|
+
className: `pds-input-field__accessory ${_}__toggle`,
|
|
2057
2057
|
title: `${k ? "Hide" : "Show"} content of ${o} input`,
|
|
2058
2058
|
"aria-controls": c,
|
|
2059
2059
|
onClick: W,
|
|
@@ -2144,8 +2144,8 @@ M1.propTypes = {
|
|
|
2144
2144
|
className: n.string
|
|
2145
2145
|
};
|
|
2146
2146
|
const Jt = je(
|
|
2147
|
-
(
|
|
2148
|
-
var C =
|
|
2147
|
+
(v, p) => {
|
|
2148
|
+
var C = v, {
|
|
2149
2149
|
children: t,
|
|
2150
2150
|
decorator: s,
|
|
2151
2151
|
disabled: a = !1,
|
|
@@ -2161,7 +2161,7 @@ const Jt = je(
|
|
|
2161
2161
|
showLabel: f = !0,
|
|
2162
2162
|
validationState: g,
|
|
2163
2163
|
className: b
|
|
2164
|
-
} = C,
|
|
2164
|
+
} = C, _ = T(C, [
|
|
2165
2165
|
"children",
|
|
2166
2166
|
"decorator",
|
|
2167
2167
|
"disabled",
|
|
@@ -2178,7 +2178,7 @@ const Jt = je(
|
|
|
2178
2178
|
"validationState",
|
|
2179
2179
|
"className"
|
|
2180
2180
|
]);
|
|
2181
|
-
const E = "pds-input-wrapper", $ = `${E}--${r}`, y = "pds-input-label", x = `pds-input-field__message pds-input-field__message--${d}`, z = g === "error" ? "pds-has-error" : null, M = g === "success" ? "pds-has-success" : null, k = a ? "pds-is-disabled" : null, L = h ? "pds-is-readonly" : null, H = u && !a ? "pds-is-required" : null,
|
|
2181
|
+
const E = "pds-input-wrapper", $ = `${E}--${r}`, y = "pds-input-label", x = `pds-input-field__message pds-input-field__message--${d}`, z = g === "error" ? "pds-has-error" : null, M = g === "success" ? "pds-has-success" : null, k = a ? "pds-is-disabled" : null, L = h ? "pds-is-readonly" : null, H = u && !a ? "pds-is-required" : null, V = o ? `${o / 16}rem` : null, I = o ? { width: V } : null, N = l ? "fieldset" : "div", O = u && !a ? /* @__PURE__ */ e.createElement(
|
|
2182
2182
|
A,
|
|
2183
2183
|
{
|
|
2184
2184
|
iconName: "asterisk",
|
|
@@ -2191,7 +2191,7 @@ const Jt = je(
|
|
|
2191
2191
|
className: x,
|
|
2192
2192
|
id: `${c}__message`,
|
|
2193
2193
|
role: g === "error" ? "alert" : null,
|
|
2194
|
-
style:
|
|
2194
|
+
style: I
|
|
2195
2195
|
},
|
|
2196
2196
|
m
|
|
2197
2197
|
) : null;
|
|
@@ -2209,8 +2209,8 @@ const Jt = je(
|
|
|
2209
2209
|
b
|
|
2210
2210
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
2211
2211
|
ref: p,
|
|
2212
|
-
style:
|
|
2213
|
-
},
|
|
2212
|
+
style: I
|
|
2213
|
+
}, _),
|
|
2214
2214
|
i && !l && r != "file-upload" && /* @__PURE__ */ e.createElement(
|
|
2215
2215
|
"label",
|
|
2216
2216
|
{
|
|
@@ -2321,9 +2321,9 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2321
2321
|
onFocus: f,
|
|
2322
2322
|
placeholder: g,
|
|
2323
2323
|
readonly: b = !1,
|
|
2324
|
-
required:
|
|
2324
|
+
required: _ = !1,
|
|
2325
2325
|
showLabel: p = !0,
|
|
2326
|
-
specialFormatting:
|
|
2326
|
+
specialFormatting: v,
|
|
2327
2327
|
specialFormattingValidation: C = !1,
|
|
2328
2328
|
toggleVisibility: E = !1,
|
|
2329
2329
|
type: $ = "text",
|
|
@@ -2359,10 +2359,10 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2359
2359
|
"validationMessages",
|
|
2360
2360
|
"className"
|
|
2361
2361
|
]);
|
|
2362
|
-
const [H,
|
|
2362
|
+
const [H, V] = P(l), [I, N] = P(s("")), [O, R] = P(), [B, j] = P(null), [W, U] = P(!1), K = le(null), S = le(null), D = le(null), F = le(null), G = "pds-input-text", se = v ? `${G}--${v}` : null;
|
|
2363
2363
|
let Q = null;
|
|
2364
|
-
$ === "search" && (Q = "search"), B === "error" && (Q = "error"), B === "success" && (Q = "success"),
|
|
2365
|
-
switch (l &&
|
|
2364
|
+
$ === "search" && (Q = "search"), B === "error" && (Q = "error"), B === "success" && (Q = "success"), v && C && oe(() => {
|
|
2365
|
+
switch (l && V(ee(l)), F.numExtra = "", v) {
|
|
2366
2366
|
case "credit-card":
|
|
2367
2367
|
F.numExtra = 3, F.current = Dt;
|
|
2368
2368
|
break;
|
|
@@ -2372,10 +2372,10 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
}, []);
|
|
2374
2374
|
let ue = null;
|
|
2375
|
-
(
|
|
2375
|
+
(v === "credit-card" || v === "phone") && F.current && (ue = F.current + F.numExtra);
|
|
2376
2376
|
const ee = (te) => {
|
|
2377
2377
|
if (te) {
|
|
2378
|
-
if (
|
|
2378
|
+
if (v === "credit-card") {
|
|
2379
2379
|
const ae = ("" + te).replace(/\D/g, "");
|
|
2380
2380
|
if (D.current = ae, ae) {
|
|
2381
2381
|
if (new RegExp("^34|37", "g").test(ae)) {
|
|
@@ -2389,7 +2389,7 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2389
2389
|
}
|
|
2390
2390
|
return ae;
|
|
2391
2391
|
}
|
|
2392
|
-
if (
|
|
2392
|
+
if (v === "phone") {
|
|
2393
2393
|
const ae = ("" + te).replace(/\D/g, "");
|
|
2394
2394
|
if (D.current = ae, ae) {
|
|
2395
2395
|
F.numExtra = 4, F.current = os;
|
|
@@ -2411,20 +2411,20 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2411
2411
|
}, ce = (te) => {
|
|
2412
2412
|
f && f(te.target);
|
|
2413
2413
|
}, ne = (te) => {
|
|
2414
|
-
|
|
2414
|
+
v ? u && u({ formattedValue: te, rawValue: D.current }) : u && u(te);
|
|
2415
2415
|
}, Ce = (te) => {
|
|
2416
|
-
|
|
2416
|
+
V(v ? ee(te.target.value) : te.target.value), ie(), s && N(s(v ? D.current : te.target.value)), ne(te.target.value);
|
|
2417
2417
|
}, me = (te) => {
|
|
2418
2418
|
if (E && U(!1), y) {
|
|
2419
2419
|
const ae = y(te.target.value) || {};
|
|
2420
2420
|
ie(), ae.error && j("error"), ae.success && j("success"), R(ae.message);
|
|
2421
2421
|
}
|
|
2422
|
-
|
|
2422
|
+
v && C && !y && (K.current.checkValidity() === !1 || te.target.value.length < ue ? (j("error"), v === "credit-card" && R(x.creditCardError), v === "phone" && R(x.phoneError)) : j("success")), ne(te.target.value);
|
|
2423
2423
|
}, pe = (te) => {
|
|
2424
2424
|
var ae;
|
|
2425
2425
|
(!((ae = S.current) != null && ae.contains(te.relatedTarget)) || !te.relatedTarget) && U(!1);
|
|
2426
2426
|
}, J = () => {
|
|
2427
|
-
ie(),
|
|
2427
|
+
ie(), V(""), D.current = "", K.current.focus(), s && N(s("")), ne("");
|
|
2428
2428
|
};
|
|
2429
2429
|
oe(() => {
|
|
2430
2430
|
if ($ === "search" && r) {
|
|
@@ -2439,7 +2439,7 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2439
2439
|
const be = () => {
|
|
2440
2440
|
U((te) => !te);
|
|
2441
2441
|
};
|
|
2442
|
-
E && $ === "password" && (W ? M.type = "text" : M.type = "password"),
|
|
2442
|
+
E && $ === "password" && (W ? M.type = "text" : M.type = "password"), v === "phone" && (M.type = "tel");
|
|
2443
2443
|
const $e = O || h;
|
|
2444
2444
|
return /* @__PURE__ */ e.createElement(
|
|
2445
2445
|
Jt,
|
|
@@ -2455,7 +2455,7 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2455
2455
|
onBlur: pe,
|
|
2456
2456
|
ref: S,
|
|
2457
2457
|
readonly: b,
|
|
2458
|
-
required:
|
|
2458
|
+
required: _,
|
|
2459
2459
|
showLabel: p,
|
|
2460
2460
|
validationState: B
|
|
2461
2461
|
}, M),
|
|
@@ -2468,7 +2468,7 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2468
2468
|
id: o,
|
|
2469
2469
|
name: o,
|
|
2470
2470
|
placeholder: g,
|
|
2471
|
-
required:
|
|
2471
|
+
required: _,
|
|
2472
2472
|
readOnly: b,
|
|
2473
2473
|
disabled: a,
|
|
2474
2474
|
value: H,
|
|
@@ -2483,7 +2483,7 @@ const Dt = 16, os = 10, L1 = (k) => {
|
|
|
2483
2483
|
minLength: ue
|
|
2484
2484
|
}
|
|
2485
2485
|
),
|
|
2486
|
-
|
|
2486
|
+
I && /* @__PURE__ */ e.createElement("div", { className: "pds-input__counter" }, I),
|
|
2487
2487
|
H && c && /* @__PURE__ */ e.createElement(
|
|
2488
2488
|
Vt,
|
|
2489
2489
|
{
|
|
@@ -2713,9 +2713,9 @@ const Ss = (C) => {
|
|
|
2713
2713
|
showLabel: f = !0,
|
|
2714
2714
|
validationMessage: g,
|
|
2715
2715
|
validationStatus: b,
|
|
2716
|
-
value:
|
|
2716
|
+
value: _,
|
|
2717
2717
|
className: p
|
|
2718
|
-
} = E,
|
|
2718
|
+
} = E, v = T(E, [
|
|
2719
2719
|
"defaultValue",
|
|
2720
2720
|
"disabled",
|
|
2721
2721
|
"id",
|
|
@@ -2738,7 +2738,7 @@ const Ss = (C) => {
|
|
|
2738
2738
|
const $ = nt(c), y = "pds-select", x = s ? Y.disabled : null, z = u && !s ? Y.required : null, M = b === "error" ? Y.error : null, k = b === "success" ? Y.success : null;
|
|
2739
2739
|
let L = null;
|
|
2740
2740
|
b === "error" && (L = "error"), b === "success" && (L = "success");
|
|
2741
|
-
const H = g || l,
|
|
2741
|
+
const H = g || l, V = typeof _ != "undefined", I = typeof t != "undefined", N = (fe) => h.findIndex((we) => we.value === fe), O = V && N(_) >= 0 ? N(_) : null, R = I ? N(t) : null, B = O || R, [j, W] = P(!1), [U, K] = P(null), [S, D] = P(
|
|
2742
2742
|
B != null ? B : null
|
|
2743
2743
|
), F = S !== null ? (Le = h[S]) == null ? void 0 : Le.label : void 0, G = S !== null ? (ge = h[S]) == null ? void 0 : ge.value : void 0, se = le([]), { context: Q, refs: ue } = De({
|
|
2744
2744
|
open: j,
|
|
@@ -2771,14 +2771,14 @@ const Ss = (C) => {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
}), $e = (fe) => {
|
|
2773
2773
|
const we = h[fe];
|
|
2774
|
-
|
|
2774
|
+
V || (D(fe), W(!1)), d && d(we);
|
|
2775
2775
|
};
|
|
2776
2776
|
oe(() => {
|
|
2777
|
-
if (
|
|
2778
|
-
const fe = N(
|
|
2777
|
+
if (V) {
|
|
2778
|
+
const fe = N(_);
|
|
2779
2779
|
D(fe), W(!1);
|
|
2780
2780
|
}
|
|
2781
|
-
}, [
|
|
2781
|
+
}, [_]);
|
|
2782
2782
|
const te = () => {
|
|
2783
2783
|
i && i(G);
|
|
2784
2784
|
}, ae = () => {
|
|
@@ -2819,7 +2819,7 @@ const Ss = (C) => {
|
|
|
2819
2819
|
p != null ? p : ""
|
|
2820
2820
|
]),
|
|
2821
2821
|
style: c ? $ : null
|
|
2822
|
-
},
|
|
2822
|
+
}, v),
|
|
2823
2823
|
/* @__PURE__ */ e.createElement(
|
|
2824
2824
|
Ze,
|
|
2825
2825
|
{
|
|
@@ -2888,11 +2888,11 @@ const Ss = (C) => {
|
|
|
2888
2888
|
}, et = (c) => {
|
|
2889
2889
|
var r = c, { arrowText: t = null, direction: s } = r, a = T(r, ["arrowText", "direction"]);
|
|
2890
2890
|
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: m, pages: d } = ze(ut), h = Kt(
|
|
2891
|
-
(p,
|
|
2892
|
-
o && (p.preventDefault(), o(
|
|
2891
|
+
(p, v) => {
|
|
2892
|
+
o && (p.preventDefault(), o(v));
|
|
2893
2893
|
},
|
|
2894
2894
|
[o, l]
|
|
2895
|
-
), { title: u, rel: f, srText: g, icon: b, keyModifier:
|
|
2895
|
+
), { title: u, rel: f, srText: g, icon: b, keyModifier: _ } = V1[s];
|
|
2896
2896
|
return /* @__PURE__ */ e.createElement(
|
|
2897
2897
|
"li",
|
|
2898
2898
|
w({
|
|
@@ -2903,9 +2903,9 @@ const Ss = (C) => {
|
|
|
2903
2903
|
{
|
|
2904
2904
|
title: u,
|
|
2905
2905
|
rel: f,
|
|
2906
|
-
href: d[
|
|
2906
|
+
href: d[_(l)].link,
|
|
2907
2907
|
onClick: (p) => {
|
|
2908
|
-
h(p,
|
|
2908
|
+
h(p, _(l)), i(_(l)), m(s);
|
|
2909
2909
|
}
|
|
2910
2910
|
},
|
|
2911
2911
|
s === "right" && t ? /* @__PURE__ */ e.createElement("span", null, t) : null,
|
|
@@ -3267,47 +3267,47 @@ A1.propTypes = {
|
|
|
3267
3267
|
const P1 = (r) => {
|
|
3268
3268
|
var o = r, { headers: t, rowData: s, className: a } = o, c = T(o, ["headers", "rowData", "className"]);
|
|
3269
3269
|
const [l] = P(t), [i, m] = P(s), [d, h] = P({ order: "asc", key: "" }), u = (p) => {
|
|
3270
|
-
m(i.sort((
|
|
3270
|
+
m(i.sort((v, C) => v[p].localeCompare(C[p]))), h({ order: "desc", key: p });
|
|
3271
3271
|
}, f = (p) => {
|
|
3272
|
-
m(i.sort((
|
|
3273
|
-
}, g = (p,
|
|
3274
|
-
h(ve(w({}, d), { key:
|
|
3275
|
-
}, b = (p,
|
|
3272
|
+
m(i.sort((v, C) => C[p].localeCompare(v[p]))), h({ order: "asc", key: p });
|
|
3273
|
+
}, g = (p, v) => {
|
|
3274
|
+
h(ve(w({}, d), { key: v })), d.order === "asc" ? u(v) : f(v);
|
|
3275
|
+
}, b = (p, v) => /* @__PURE__ */ e.createElement("tr", { id: v, key: `table-row-${v}` }, p.map((C, E) => /* @__PURE__ */ e.createElement("td", { key: `${v}-cell-${E}` }, /* @__PURE__ */ e.createElement("span", null, C)))), _ = "pds-table";
|
|
3276
3276
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3277
3277
|
"table",
|
|
3278
3278
|
w({
|
|
3279
|
-
className: [
|
|
3279
|
+
className: [_, a].join(" ").trim().replace(/\s+/g, " ")
|
|
3280
3280
|
}, c),
|
|
3281
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((p,
|
|
3281
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((p, v) => /* @__PURE__ */ e.createElement("th", { key: `header-${v}` }, p.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${_}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
3282
3282
|
"span",
|
|
3283
3283
|
{
|
|
3284
|
-
className: `${
|
|
3285
|
-
onClick: (C) => g(C,
|
|
3284
|
+
className: `${_}__sort-header`,
|
|
3285
|
+
onClick: (C) => g(C, v)
|
|
3286
3286
|
},
|
|
3287
3287
|
p.title
|
|
3288
3288
|
), /* @__PURE__ */ e.createElement(
|
|
3289
3289
|
"button",
|
|
3290
3290
|
{
|
|
3291
|
-
className: `${
|
|
3291
|
+
className: `${_}__sort-button`,
|
|
3292
3292
|
title: `Sort by ${p.title}`,
|
|
3293
|
-
onClick: (C) => g(C,
|
|
3293
|
+
onClick: (C) => g(C, v)
|
|
3294
3294
|
},
|
|
3295
3295
|
/* @__PURE__ */ e.createElement(
|
|
3296
3296
|
"span",
|
|
3297
3297
|
{
|
|
3298
|
-
className: `${
|
|
3298
|
+
className: `${_}__sort-button-top ${v != d.key && d.key !== "" ? "pds-table__sort-innactive" : d.key == v ? d.order : "asc"}`
|
|
3299
3299
|
},
|
|
3300
3300
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretUp", iconSize: "sm" })
|
|
3301
3301
|
),
|
|
3302
3302
|
/* @__PURE__ */ e.createElement(
|
|
3303
3303
|
"span",
|
|
3304
3304
|
{
|
|
3305
|
-
className: `${
|
|
3305
|
+
className: `${_}__sort-button-bottom ${d.key == v ? d.order : "asc"}`
|
|
3306
3306
|
},
|
|
3307
3307
|
/* @__PURE__ */ e.createElement(A, { iconName: "caretDown", iconSize: "sm" })
|
|
3308
3308
|
)
|
|
3309
3309
|
)) : /* @__PURE__ */ e.createElement("span", null, p.title))))),
|
|
3310
|
-
/* @__PURE__ */ e.createElement("tbody", null, i.map((p,
|
|
3310
|
+
/* @__PURE__ */ e.createElement("tbody", null, i.map((p, v) => b(p, v)))
|
|
3311
3311
|
));
|
|
3312
3312
|
};
|
|
3313
3313
|
P1.propTypes = {
|
|
@@ -3347,18 +3347,18 @@ const q1 = (i) => {
|
|
|
3347
3347
|
id: s
|
|
3348
3348
|
}, l),
|
|
3349
3349
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
3350
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((p,
|
|
3350
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((p, v) => /* @__PURE__ */ e.createElement(
|
|
3351
3351
|
"div",
|
|
3352
3352
|
{
|
|
3353
3353
|
className: `${d}__option`,
|
|
3354
|
-
key: `${s}-option-${
|
|
3354
|
+
key: `${s}-option-${v}`
|
|
3355
3355
|
},
|
|
3356
3356
|
/* @__PURE__ */ e.createElement(
|
|
3357
3357
|
"input",
|
|
3358
3358
|
{
|
|
3359
3359
|
className: "visually-hidden",
|
|
3360
3360
|
type: "radio",
|
|
3361
|
-
id: `${s}-option-${
|
|
3361
|
+
id: `${s}-option-${v}`,
|
|
3362
3362
|
name: s,
|
|
3363
3363
|
value: p.value,
|
|
3364
3364
|
disabled: t,
|
|
@@ -3366,7 +3366,7 @@ const q1 = (i) => {
|
|
|
3366
3366
|
defaultChecked: f === p.value
|
|
3367
3367
|
}
|
|
3368
3368
|
),
|
|
3369
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${
|
|
3369
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${v}` }, p.iconName && /* @__PURE__ */ e.createElement(
|
|
3370
3370
|
A,
|
|
3371
3371
|
{
|
|
3372
3372
|
iconName: p.iconName,
|
|
@@ -3451,8 +3451,8 @@ const B1 = (g) => {
|
|
|
3451
3451
|
"statusOffLabel",
|
|
3452
3452
|
"className"
|
|
3453
3453
|
]);
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3454
|
+
const _ = "pds-toggle-switch", [p, v] = P(!1), C = (y) => {
|
|
3455
|
+
v(!p), o && o(y.target);
|
|
3456
3456
|
};
|
|
3457
3457
|
let E = p === !0 ? d : h, $;
|
|
3458
3458
|
return m ? $ = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, E), /* @__PURE__ */ e.createElement(
|
|
@@ -3474,14 +3474,14 @@ const B1 = (g) => {
|
|
|
3474
3474
|
{
|
|
3475
3475
|
iconName: "check",
|
|
3476
3476
|
iconSize: "sm",
|
|
3477
|
-
className: `${
|
|
3477
|
+
className: `${_}__on-icon`
|
|
3478
3478
|
}
|
|
3479
3479
|
), /* @__PURE__ */ e.createElement(
|
|
3480
3480
|
A,
|
|
3481
3481
|
{
|
|
3482
3482
|
iconName: "xmark",
|
|
3483
3483
|
iconSize: "sm",
|
|
3484
|
-
className: `${
|
|
3484
|
+
className: `${_}__off-icon`
|
|
3485
3485
|
}
|
|
3486
3486
|
)), /* @__PURE__ */ e.createElement(
|
|
3487
3487
|
Jt,
|
|
@@ -3497,11 +3497,11 @@ const B1 = (g) => {
|
|
|
3497
3497
|
showLabel: i,
|
|
3498
3498
|
required: l
|
|
3499
3499
|
}, f),
|
|
3500
|
-
/* @__PURE__ */ e.createElement("div", { className: [
|
|
3500
|
+
/* @__PURE__ */ e.createElement("div", { className: [_].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement(
|
|
3501
3501
|
"button",
|
|
3502
3502
|
{
|
|
3503
3503
|
id: s,
|
|
3504
|
-
className: `${
|
|
3504
|
+
className: `${_}__toggle`,
|
|
3505
3505
|
role: "switch",
|
|
3506
3506
|
disabled: t,
|
|
3507
3507
|
"aria-checked": p,
|
|
@@ -3721,20 +3721,20 @@ const Ue = Nt(null), j1 = ({
|
|
|
3721
3721
|
]);
|
|
3722
3722
|
const [g, b] = P(
|
|
3723
3723
|
a
|
|
3724
|
-
), { isMobile:
|
|
3725
|
-
isSidebarExpanded:
|
|
3724
|
+
), { isMobile: _ } = ze(Ue), p = le(), [v] = Mt(p), C = v.width, E = {
|
|
3725
|
+
isSidebarExpanded: _ ? !0 : g,
|
|
3726
3726
|
logoLinkContent: r,
|
|
3727
3727
|
navbarWidth: C,
|
|
3728
3728
|
isAdmin: c
|
|
3729
|
-
}, $ = "pds-dashboard", y =
|
|
3729
|
+
}, $ = "pds-dashboard", y = _ ? `${$}--isMobile` : `${$}--notMobile`, x = _ ? null : g ? `${$}--sidebarExpanded` : `${$}--sidebarCollapsed`, z = g ? `${l}rem` : `${o}rem`, M = {
|
|
3730
3730
|
width: z,
|
|
3731
3731
|
transition: "width 200ms ease-in-out"
|
|
3732
|
-
}, k =
|
|
3732
|
+
}, k = _ ? {} : {
|
|
3733
3733
|
width: `calc(100% - ${z})`,
|
|
3734
3734
|
transition: "width 200ms ease-in-out"
|
|
3735
3735
|
}, L = () => {
|
|
3736
3736
|
b(!g);
|
|
3737
|
-
}, H = Yt(t),
|
|
3737
|
+
}, H = Yt(t), V = H.header, I = H.sidebar, N = H.main, O = H.footer, R = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar` }, I), B = /* @__PURE__ */ e.createElement("aside", { className: `${$}__sidebar`, style: M }, s && /* @__PURE__ */ e.createElement(
|
|
3738
3738
|
"button",
|
|
3739
3739
|
{
|
|
3740
3740
|
className: `${$}__sidebar-toggle-button`,
|
|
@@ -3743,7 +3743,7 @@ const Ue = Nt(null), j1 = ({
|
|
|
3743
3743
|
"aria-label": i
|
|
3744
3744
|
},
|
|
3745
3745
|
/* @__PURE__ */ e.createElement("span", { className: `${$}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(A, { iconName: "angleLeft", iconSize: "sm" }))
|
|
3746
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${$}__sidebar-inner` },
|
|
3746
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${$}__sidebar-inner` }, I));
|
|
3747
3747
|
return /* @__PURE__ */ e.createElement(It.Provider, { value: E }, /* @__PURE__ */ e.createElement(W1, { text: m, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
3748
3748
|
"div",
|
|
3749
3749
|
w({
|
|
@@ -3755,8 +3755,8 @@ const Ue = Nt(null), j1 = ({
|
|
|
3755
3755
|
d != null ? d : ""
|
|
3756
3756
|
])
|
|
3757
3757
|
}, h),
|
|
3758
|
-
|
|
3759
|
-
|
|
3758
|
+
_ && V,
|
|
3759
|
+
_ ? R : B,
|
|
3760
3760
|
/* @__PURE__ */ e.createElement(
|
|
3761
3761
|
"div",
|
|
3762
3762
|
{
|
|
@@ -3764,7 +3764,7 @@ const Ue = Nt(null), j1 = ({
|
|
|
3764
3764
|
className: `${$}__container`,
|
|
3765
3765
|
style: k
|
|
3766
3766
|
},
|
|
3767
|
-
!
|
|
3767
|
+
!_ && /* @__PURE__ */ e.createElement("div", { className: `${$}__header` }, V),
|
|
3768
3768
|
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${$}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${$}__main-inner` }, N), O && /* @__PURE__ */ e.createElement("footer", { className: `${$}__footer` }, O))
|
|
3769
3769
|
)
|
|
3770
3770
|
));
|
|
@@ -3844,7 +3844,7 @@ const Ue = Nt(null), j1 = ({
|
|
|
3844
3844
|
Os.propTypes = { option: n.object };
|
|
3845
3845
|
const Z1 = je(
|
|
3846
3846
|
(H, L) => {
|
|
3847
|
-
var
|
|
3847
|
+
var V = H, {
|
|
3848
3848
|
defaultValue: t,
|
|
3849
3849
|
disabled: s = !1,
|
|
3850
3850
|
hasClearButton: a = !0,
|
|
@@ -3865,9 +3865,9 @@ const Z1 = je(
|
|
|
3865
3865
|
message: f,
|
|
3866
3866
|
noResultsText: g = "No results found",
|
|
3867
3867
|
onBlur: b,
|
|
3868
|
-
onClear:
|
|
3868
|
+
onClear: _,
|
|
3869
3869
|
onFocus: p,
|
|
3870
|
-
onOptionSelect:
|
|
3870
|
+
onOptionSelect: v,
|
|
3871
3871
|
options: C,
|
|
3872
3872
|
placeholder: E,
|
|
3873
3873
|
required: $ = !1,
|
|
@@ -3875,7 +3875,7 @@ const Z1 = je(
|
|
|
3875
3875
|
validationMessage: x,
|
|
3876
3876
|
validationStatus: z,
|
|
3877
3877
|
className: M
|
|
3878
|
-
} =
|
|
3878
|
+
} = V, k = T(V, [
|
|
3879
3879
|
"defaultValue",
|
|
3880
3880
|
"disabled",
|
|
3881
3881
|
"hasClearButton",
|
|
@@ -3902,7 +3902,7 @@ const Z1 = je(
|
|
|
3902
3902
|
"validationStatus",
|
|
3903
3903
|
"className"
|
|
3904
3904
|
]);
|
|
3905
|
-
const
|
|
3905
|
+
const I = nt(i), N = "pds-combobox", O = s ? Y.disabled : null, R = $ && !s ? Y.required : null, B = z === "error" ? Y.error : null, j = z === "success" ? Y.success : null;
|
|
3906
3906
|
let W = null;
|
|
3907
3907
|
r && (W = "search"), z === "error" && (W = "error"), z === "success" && (W = "success");
|
|
3908
3908
|
const U = x || f, K = (he) => {
|
|
@@ -3939,17 +3939,17 @@ const Z1 = je(
|
|
|
3939
3939
|
D(!S);
|
|
3940
3940
|
}, ye = () => {
|
|
3941
3941
|
var he;
|
|
3942
|
-
Q(""), G(null), D(!0), (he = ne.domReference.current) == null || he.focus(),
|
|
3942
|
+
Q(""), G(null), D(!0), (he = ne.domReference.current) == null || he.focus(), _ && _();
|
|
3943
3943
|
}, Le = (he) => {
|
|
3944
3944
|
let Ee = he.target.value;
|
|
3945
3945
|
Ee.length > 0 && (Ee = Ee.trimStart()), Q(Ee), Ee ? (G(null), D(!0)) : D(!1);
|
|
3946
3946
|
}, ge = (he) => {
|
|
3947
|
-
b &&
|
|
3947
|
+
b && b(he);
|
|
3948
3948
|
}, fe = (he) => {
|
|
3949
3949
|
p && p(he);
|
|
3950
3950
|
}, we = (he) => {
|
|
3951
3951
|
const Ee = ue[he];
|
|
3952
|
-
Q(Ee.label), G(null), D(!1),
|
|
3952
|
+
Q(Ee.label), G(null), D(!1), v && v(Ee);
|
|
3953
3953
|
}, Se = (he) => he.map((Te) => {
|
|
3954
3954
|
const { label: qe, optionDisplay: Be, value: Fe, searchIndex: bt } = Te, q = Fe || qe, re = [qe, Fe];
|
|
3955
3955
|
return bt && re.push(...bt), {
|
|
@@ -4004,7 +4004,7 @@ const Z1 = je(
|
|
|
4004
4004
|
j,
|
|
4005
4005
|
M != null ? M : ""
|
|
4006
4006
|
]),
|
|
4007
|
-
style: i ?
|
|
4007
|
+
style: i ? I : null
|
|
4008
4008
|
}, k),
|
|
4009
4009
|
/* @__PURE__ */ e.createElement(
|
|
4010
4010
|
Ze,
|
|
@@ -4110,7 +4110,7 @@ const Z1 = je(
|
|
|
4110
4110
|
);
|
|
4111
4111
|
}
|
|
4112
4112
|
), U1 = (b) => {
|
|
4113
|
-
var
|
|
4113
|
+
var _ = b, {
|
|
4114
4114
|
disabled: t = !1,
|
|
4115
4115
|
id: s,
|
|
4116
4116
|
isLoading: a = !1,
|
|
@@ -4128,7 +4128,7 @@ const Z1 = je(
|
|
|
4128
4128
|
siteList: h,
|
|
4129
4129
|
horizontalOffset: u = 0,
|
|
4130
4130
|
className: f
|
|
4131
|
-
} =
|
|
4131
|
+
} = _, g = T(_, [
|
|
4132
4132
|
"disabled",
|
|
4133
4133
|
"id",
|
|
4134
4134
|
"isLoading",
|
|
@@ -4143,26 +4143,26 @@ const Z1 = je(
|
|
|
4143
4143
|
"horizontalOffset",
|
|
4144
4144
|
"className"
|
|
4145
4145
|
]);
|
|
4146
|
-
const [p,
|
|
4146
|
+
const [p, v] = P(!1), [C, E] = P(null), $ = le(null);
|
|
4147
4147
|
let y = !1;
|
|
4148
4148
|
const x = ze(Ue);
|
|
4149
4149
|
x && (y = x.isMobile);
|
|
4150
4150
|
let z = null, M = !1;
|
|
4151
4151
|
const k = ze(It);
|
|
4152
4152
|
k && (z = k.navbarWidth, M = k.isAdmin);
|
|
4153
|
-
const L = 2.25, H = 22,
|
|
4153
|
+
const L = 2.25, H = 22, V = M ? 14.25 : 9.25, I = z > 900 ? H : z / 16 - (V + u) - L * 0.675;
|
|
4154
4154
|
let N = L;
|
|
4155
|
-
p && !z && (N = H), p && z && (N =
|
|
4155
|
+
p && !z && (N = H), p && z && (N = I);
|
|
4156
4156
|
const O = {
|
|
4157
|
-
right: `${
|
|
4157
|
+
right: `${V + u}rem`,
|
|
4158
4158
|
width: `${N}rem`
|
|
4159
4159
|
}, R = "pds-dashboard-search", B = y ? `${R}--isMobile` : null, j = () => {
|
|
4160
|
-
|
|
4160
|
+
v(!0), setTimeout(() => {
|
|
4161
4161
|
$.current.querySelector("input").focus();
|
|
4162
4162
|
}, 500);
|
|
4163
4163
|
}, W = () => {
|
|
4164
4164
|
setTimeout(() => {
|
|
4165
|
-
|
|
4165
|
+
v(!1);
|
|
4166
4166
|
}, 150);
|
|
4167
4167
|
}, U = (G) => {
|
|
4168
4168
|
E(G.value), m && m(G);
|
|
@@ -4485,7 +4485,7 @@ const is = [
|
|
|
4485
4485
|
className: `${m}__image`,
|
|
4486
4486
|
alt: ""
|
|
4487
4487
|
}
|
|
4488
|
-
) : /* @__PURE__ */ e.createElement("span", { style: f }), b = /* @__PURE__ */ e.createElement("span", { className: `${m}__content` }, g),
|
|
4488
|
+
) : /* @__PURE__ */ e.createElement("span", { style: f }), b = /* @__PURE__ */ e.createElement("span", { className: `${m}__content` }, g), _ = Ge(a) ? Qe(
|
|
4489
4489
|
a,
|
|
4490
4490
|
ve(w({}, a.props), {
|
|
4491
4491
|
className: `${m}__content ${m}__content--link`
|
|
@@ -4497,7 +4497,7 @@ const is = [
|
|
|
4497
4497
|
w({
|
|
4498
4498
|
className: Z([m, d, h, r])
|
|
4499
4499
|
}, o),
|
|
4500
|
-
a ?
|
|
4500
|
+
a ? _ : b
|
|
4501
4501
|
);
|
|
4502
4502
|
}, yt = (u) => {
|
|
4503
4503
|
var f = u, {
|
|
@@ -4524,21 +4524,21 @@ const is = [
|
|
|
4524
4524
|
"variant",
|
|
4525
4525
|
"className"
|
|
4526
4526
|
]);
|
|
4527
|
-
const g = "pds-icon-button", b = i !== "md" ? `${g}--${i}` : null,
|
|
4527
|
+
const g = "pds-icon-button", b = i !== "md" ? `${g}--${i}` : null, _ = m !== "standard" ? `${g}--${m}` : null, p = {
|
|
4528
4528
|
fadeOut: `${g}--fadeOut`,
|
|
4529
4529
|
hide: `${g}--hide`,
|
|
4530
4530
|
scaleIn: `${g}--scaleIn`
|
|
4531
4531
|
};
|
|
4532
|
-
let
|
|
4532
|
+
let v, C;
|
|
4533
4533
|
switch (i) {
|
|
4534
4534
|
case "sm":
|
|
4535
|
-
C = "md",
|
|
4535
|
+
C = "md", v = 8;
|
|
4536
4536
|
break;
|
|
4537
4537
|
case "md":
|
|
4538
|
-
C = "md",
|
|
4538
|
+
C = "md", v = 10;
|
|
4539
4539
|
break;
|
|
4540
4540
|
case "lg":
|
|
4541
|
-
C = "xl",
|
|
4541
|
+
C = "xl", v = 12;
|
|
4542
4542
|
}
|
|
4543
4543
|
const E = o !== null, $ = le(null), y = le(null), x = () => {
|
|
4544
4544
|
$.current.classList.add(p.fadeOut), $.current.classList.add(p.hide), y.current.classList.remove(p.hide), y.current.classList.add(p.scaleIn), setTimeout(() => {
|
|
@@ -4582,7 +4582,7 @@ const is = [
|
|
|
4582
4582
|
"button",
|
|
4583
4583
|
w({
|
|
4584
4584
|
"aria-label": t,
|
|
4585
|
-
className: [g, b,
|
|
4585
|
+
className: [g, b, _, d].join(" ").trim().replace(/\s+/g, " "),
|
|
4586
4586
|
disabled: a,
|
|
4587
4587
|
onClick: z,
|
|
4588
4588
|
type: s,
|
|
@@ -4593,7 +4593,7 @@ const is = [
|
|
|
4593
4593
|
{
|
|
4594
4594
|
content: t,
|
|
4595
4595
|
className: `${g}__tooltip`,
|
|
4596
|
-
offsetValue:
|
|
4596
|
+
offsetValue: v,
|
|
4597
4597
|
customTrigger: M
|
|
4598
4598
|
}
|
|
4599
4599
|
) : M
|
|
@@ -4601,7 +4601,7 @@ const is = [
|
|
|
4601
4601
|
};
|
|
4602
4602
|
yt.displayName = "IconButton";
|
|
4603
4603
|
const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink, Q1 = (t) => t.isNode, Ds = (p) => {
|
|
4604
|
-
var
|
|
4604
|
+
var v = p, {
|
|
4605
4605
|
avatarImageSrc: t,
|
|
4606
4606
|
disabled: s,
|
|
4607
4607
|
displayType: a = "icon-end",
|
|
@@ -4617,7 +4617,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4617
4617
|
variant: f = "primary",
|
|
4618
4618
|
withinNavbar: g,
|
|
4619
4619
|
className: b
|
|
4620
|
-
} =
|
|
4620
|
+
} = v, _ = T(v, [
|
|
4621
4621
|
"avatarImageSrc",
|
|
4622
4622
|
"disabled",
|
|
4623
4623
|
"displayType",
|
|
@@ -4650,7 +4650,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4650
4650
|
let L = !1;
|
|
4651
4651
|
const H = ze(Ue);
|
|
4652
4652
|
H && (L = H.isMobile);
|
|
4653
|
-
const
|
|
4653
|
+
const V = g && L, I = '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>', N = "pds-menu-button", O = V ? `${N}--isMobile` : null, R = g ? `${N}--navbar` : null, B = Ke(), [j] = P(`menu-button-${B}`), [W] = P(`menu-listbox-${B}`), U = r || j, K = k.floating, S = le(null), [D, F] = P(!1), [G, se] = P(!1), [Q, ue] = P(""), [ee, ie] = P(0), ce = le([]), ne = le([]), Ce = le([]);
|
|
4654
4654
|
Qs(() => {
|
|
4655
4655
|
window.addEventListener("mousedown", ge, !0), z();
|
|
4656
4656
|
const q = K.current;
|
|
@@ -4693,7 +4693,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4693
4693
|
}, ae = (q) => {
|
|
4694
4694
|
D ? J() : pe(), se((re) => !re), q.stopPropagation(), q.preventDefault();
|
|
4695
4695
|
}, xe = (q) => {
|
|
4696
|
-
$e(q.currentTarget.id),
|
|
4696
|
+
$e(q.currentTarget.id), V || J();
|
|
4697
4697
|
}, ye = (q) => {
|
|
4698
4698
|
var re = q.key, X = !1;
|
|
4699
4699
|
switch (re) {
|
|
@@ -4952,7 +4952,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4952
4952
|
onKeyDown: ye,
|
|
4953
4953
|
ref: $
|
|
4954
4954
|
},
|
|
4955
|
-
/* @__PURE__ */ e.createElement("span", { className: `${N}__avatar-label` }, /* @__PURE__ */ e.createElement(ht, { size: "sm", imageSrc: t ||
|
|
4955
|
+
/* @__PURE__ */ e.createElement("span", { className: `${N}__avatar-label` }, /* @__PURE__ */ e.createElement(ht, { size: "sm", imageSrc: t || I }), a === "avatar-with-text" && l),
|
|
4956
4956
|
/* @__PURE__ */ e.createElement(
|
|
4957
4957
|
A,
|
|
4958
4958
|
{
|
|
@@ -4971,7 +4971,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4971
4971
|
}, Ee = () => /* @__PURE__ */ e.createElement("ul", { className: `${N}__mobile-menu`, role: "menu" }, i.map((q, re) => fe(q, re)));
|
|
4972
4972
|
let Te;
|
|
4973
4973
|
const qe = a === "icon-end" ? "pds-button pds-button--navbar" : null, Be = [`${N}__toggle`, qe].join(" ").trim().replace(/\s+/g, " ");
|
|
4974
|
-
|
|
4974
|
+
V && (Te = /* @__PURE__ */ e.createElement(
|
|
4975
4975
|
"button",
|
|
4976
4976
|
{
|
|
4977
4977
|
id: U,
|
|
@@ -4985,7 +4985,7 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
4985
4985
|
ht,
|
|
4986
4986
|
{
|
|
4987
4987
|
size: "sm",
|
|
4988
|
-
imageSrc: t ||
|
|
4988
|
+
imageSrc: t || I
|
|
4989
4989
|
}
|
|
4990
4990
|
), l) : a === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${N}__icon-label` }, /* @__PURE__ */ e.createElement(A, { iconName: c }), " ", l) : l,
|
|
4991
4991
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5004,8 +5004,8 @@ const Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink,
|
|
|
5004
5004
|
className: [N, R, O, bt, b].join(" ").trim().replace(/\s+/g, " "),
|
|
5005
5005
|
"data-testid": h,
|
|
5006
5006
|
ref: S
|
|
5007
|
-
},
|
|
5008
|
-
|
|
5007
|
+
}, _),
|
|
5008
|
+
V ? /* @__PURE__ */ e.createElement(e.Fragment, null, Fe, /* @__PURE__ */ e.createElement(Ee, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, at, Se(i))
|
|
5009
5009
|
);
|
|
5010
5010
|
};
|
|
5011
5011
|
Ds.propTypes = {
|
|
@@ -5096,10 +5096,10 @@ const Rs = ({ items: t, label: s, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5096
5096
|
onOpenChange: r,
|
|
5097
5097
|
whileElementsMounted: We
|
|
5098
5098
|
}), f = tt(u, { event: "mousedown" }), g = Re(u), b = Ae(u, { role: "menu" });
|
|
5099
|
-
let
|
|
5100
|
-
m ?
|
|
5099
|
+
let _;
|
|
5100
|
+
m ? _ = Ct(u, {
|
|
5101
5101
|
enabled: !1
|
|
5102
|
-
}) :
|
|
5102
|
+
}) : _ = Ct(u, {
|
|
5103
5103
|
handleClose: _s({
|
|
5104
5104
|
requireIntent: !1,
|
|
5105
5105
|
buffer: 10,
|
|
@@ -5107,11 +5107,11 @@ const Rs = ({ items: t, label: s, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5107
5107
|
enabled: !0
|
|
5108
5108
|
})
|
|
5109
5109
|
});
|
|
5110
|
-
const { getReferenceProps: p, getFloatingProps:
|
|
5110
|
+
const { getReferenceProps: p, getFloatingProps: v } = Pe([
|
|
5111
5111
|
g,
|
|
5112
5112
|
b,
|
|
5113
5113
|
f,
|
|
5114
|
-
|
|
5114
|
+
_
|
|
5115
5115
|
]), C = (E) => !!(E.isActive || E.linkContent && E.linkContent.props.className && E.linkContent.props.className.includes("pds-isActive"));
|
|
5116
5116
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5117
5117
|
"button",
|
|
@@ -5126,7 +5126,7 @@ const Rs = ({ items: t, label: s, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
5126
5126
|
w({
|
|
5127
5127
|
className: `${d}__dropdown`,
|
|
5128
5128
|
ref: h.setFloating
|
|
5129
|
-
},
|
|
5129
|
+
}, v()),
|
|
5130
5130
|
t.map((E, $) => /* @__PURE__ */ e.createElement(
|
|
5131
5131
|
"li",
|
|
5132
5132
|
{
|
|
@@ -5157,7 +5157,7 @@ const J1 = (l) => {
|
|
|
5157
5157
|
"mobileMenuMaxWidth",
|
|
5158
5158
|
"className"
|
|
5159
5159
|
]);
|
|
5160
|
-
const [m, d] = P(1025), [h, u] = P(null), [f, g] = P(-1), [b,
|
|
5160
|
+
const [m, d] = P(1025), [h, u] = P(null), [f, g] = P(-1), [b, _] = P(null), [p, v] = P({
|
|
5161
5161
|
containerChildren: []
|
|
5162
5162
|
});
|
|
5163
5163
|
oe(() => (d(window.innerWidth), window.addEventListener("resize", C), () => {
|
|
@@ -5178,24 +5178,24 @@ const J1 = (l) => {
|
|
|
5178
5178
|
}));
|
|
5179
5179
|
}, [f]);
|
|
5180
5180
|
const $ = "pds-nav-menu", y = s !== "default" ? `${$}--${s}` : "", x = E ? `${$}--isMobile` : `${$}--notMobile`, z = le([]), M = (H) => {
|
|
5181
|
-
const
|
|
5181
|
+
const V = z.current.length - 1, j = {
|
|
5182
5182
|
ArrowRight: () => {
|
|
5183
|
-
u(-1), g(f === -1 ? 1 : f ===
|
|
5183
|
+
u(-1), g(f === -1 ? 1 : f === V ? 0 : f + 1);
|
|
5184
5184
|
},
|
|
5185
5185
|
ArrowLeft: () => {
|
|
5186
|
-
u(-1), g(f === 0 ?
|
|
5186
|
+
u(-1), g(f === 0 ? V : f - 1);
|
|
5187
5187
|
},
|
|
5188
5188
|
ArrowDown: () => {
|
|
5189
5189
|
var K, S, D, F;
|
|
5190
|
-
|
|
5190
|
+
_("down");
|
|
5191
5191
|
let W = H.target.parentNode.children[1], U = ((S = (K = H.target) == null ? void 0 : K.parentNode.children[1]) == null ? void 0 : S.children) || ((F = (D = H.target) == null ? void 0 : D.parentNode.parentNode.children[1]) == null ? void 0 : F.children);
|
|
5192
|
-
p.container != W && W != null &&
|
|
5192
|
+
p.container != W && W != null && v({
|
|
5193
5193
|
container: W,
|
|
5194
5194
|
containerChildren: [...U]
|
|
5195
5195
|
}), h === null || h == p.containerChildren.length - 1 ? u(0) : u(parseInt(h) + 1);
|
|
5196
5196
|
},
|
|
5197
5197
|
ArrowUp: () => {
|
|
5198
|
-
|
|
5198
|
+
_("up"), u(h === 0 ? p.containerChildren.length - 1 : parseInt(h) - 1);
|
|
5199
5199
|
}
|
|
5200
5200
|
}[H.code];
|
|
5201
5201
|
j && j();
|
|
@@ -5203,22 +5203,22 @@ const J1 = (l) => {
|
|
|
5203
5203
|
if (H.isActive || H.linkContent && H.linkContent.props.className && H.linkContent.props.className.includes("pds-isActive"))
|
|
5204
5204
|
return !0;
|
|
5205
5205
|
if (H.links) {
|
|
5206
|
-
for (let
|
|
5207
|
-
if (k(H.links[
|
|
5206
|
+
for (let V = 0; V < H.links.length; V++)
|
|
5207
|
+
if (k(H.links[V]))
|
|
5208
5208
|
return !0;
|
|
5209
5209
|
}
|
|
5210
5210
|
return !1;
|
|
5211
5211
|
};
|
|
5212
5212
|
let L = [];
|
|
5213
|
-
return a.map((H,
|
|
5214
|
-
const
|
|
5213
|
+
return a.map((H, V) => {
|
|
5214
|
+
const I = `item-${Ke()}`, N = H.id ? H.id : I;
|
|
5215
5215
|
H.links ? L.push(
|
|
5216
5216
|
/* @__PURE__ */ e.createElement(
|
|
5217
5217
|
"li",
|
|
5218
5218
|
{
|
|
5219
|
-
key: `${
|
|
5219
|
+
key: `${V}-dropdown`,
|
|
5220
5220
|
id: N,
|
|
5221
|
-
ref: (O) => z.current[
|
|
5221
|
+
ref: (O) => z.current[V] = O,
|
|
5222
5222
|
className: `${$}__item ${$}__item--top-level ${$}__item--has-children ${k(H) === !0 ? `${$}__item--active` : ""}`
|
|
5223
5223
|
},
|
|
5224
5224
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5234,9 +5234,9 @@ const J1 = (l) => {
|
|
|
5234
5234
|
/* @__PURE__ */ e.createElement(
|
|
5235
5235
|
"li",
|
|
5236
5236
|
{
|
|
5237
|
-
key:
|
|
5237
|
+
key: V,
|
|
5238
5238
|
id: N,
|
|
5239
|
-
ref: (O) => z.current[
|
|
5239
|
+
ref: (O) => z.current[V] = O,
|
|
5240
5240
|
className: `${$}__item ${$}__item--top-level ${$}__item--has-link ${k(H) === !0 ? `${$}__item--active` : ""}`
|
|
5241
5241
|
},
|
|
5242
5242
|
H.linkContent
|
|
@@ -5642,9 +5642,9 @@ const qt = {
|
|
|
5642
5642
|
o && /* @__PURE__ */ e.createElement("div", { className: `${u}__summary` }, o)
|
|
5643
5643
|
),
|
|
5644
5644
|
r && r.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${u}__links` }, r.map((g, b) => {
|
|
5645
|
-
const
|
|
5645
|
+
const _ = g.type;
|
|
5646
5646
|
return /* @__PURE__ */ e.createElement(
|
|
5647
|
-
|
|
5647
|
+
_,
|
|
5648
5648
|
w({
|
|
5649
5649
|
key: b,
|
|
5650
5650
|
className: `${u}__link`
|
|
@@ -5777,7 +5777,7 @@ const t2 = {
|
|
|
5777
5777
|
"statusBadgeType",
|
|
5778
5778
|
"className"
|
|
5779
5779
|
]);
|
|
5780
|
-
const b = "pds-pricing-card",
|
|
5780
|
+
const b = "pds-pricing-card", _ = `${b}-container`, p = a ? `${_}--with-list` : null, v = d ? `${b}--${d}` : null, C = (N) => N.toLowerCase().replace(/\s/g, "-"), E = l && l.length > 1, [$, y] = P(
|
|
5781
5781
|
C(l[0].label)
|
|
5782
5782
|
), [x, z] = P(
|
|
5783
5783
|
t.label
|
|
@@ -5856,8 +5856,8 @@ const t2 = {
|
|
|
5856
5856
|
}
|
|
5857
5857
|
}
|
|
5858
5858
|
));
|
|
5859
|
-
let
|
|
5860
|
-
t && (t.type === "button" && (
|
|
5859
|
+
let V = null;
|
|
5860
|
+
t && (t.type === "button" && (V = /* @__PURE__ */ e.createElement(
|
|
5861
5861
|
Je,
|
|
5862
5862
|
{
|
|
5863
5863
|
variant: t.variant,
|
|
@@ -5865,22 +5865,22 @@ const t2 = {
|
|
|
5865
5865
|
onClick: t.buttonAction,
|
|
5866
5866
|
disabled: t.disabled
|
|
5867
5867
|
}
|
|
5868
|
-
)), t.type === "link" && (
|
|
5868
|
+
)), t.type === "link" && (V = /* @__PURE__ */ e.createElement(
|
|
5869
5869
|
dt,
|
|
5870
5870
|
{
|
|
5871
5871
|
variant: t.variant,
|
|
5872
5872
|
linkContent: /* @__PURE__ */ e.createElement("a", { href: t.linkUrl, target: t.linkTarget }, t.label)
|
|
5873
5873
|
}
|
|
5874
5874
|
)));
|
|
5875
|
-
let
|
|
5876
|
-
return s && (s.type === "button" && (
|
|
5875
|
+
let I = null;
|
|
5876
|
+
return s && (s.type === "button" && (I = /* @__PURE__ */ e.createElement(
|
|
5877
5877
|
Je,
|
|
5878
5878
|
{
|
|
5879
5879
|
variant: "secondary",
|
|
5880
5880
|
label: s.label,
|
|
5881
5881
|
onClick: s.buttonAction
|
|
5882
5882
|
}
|
|
5883
|
-
)), s.type === "link" && (
|
|
5883
|
+
)), s.type === "link" && (I = /* @__PURE__ */ e.createElement(
|
|
5884
5884
|
dt,
|
|
5885
5885
|
{
|
|
5886
5886
|
variant: "secondary",
|
|
@@ -5896,12 +5896,12 @@ const t2 = {
|
|
|
5896
5896
|
))), /* @__PURE__ */ e.createElement(
|
|
5897
5897
|
"div",
|
|
5898
5898
|
w({
|
|
5899
|
-
className: [
|
|
5899
|
+
className: [_, p, h].join(" ").trim().replace(/\s+/g, " ")
|
|
5900
5900
|
}, u),
|
|
5901
5901
|
/* @__PURE__ */ e.createElement(
|
|
5902
5902
|
"div",
|
|
5903
5903
|
{
|
|
5904
|
-
className: [b,
|
|
5904
|
+
className: [b, v].join(" ").trim().replace(/\s+/g, " ")
|
|
5905
5905
|
},
|
|
5906
5906
|
d && /* @__PURE__ */ e.createElement(
|
|
5907
5907
|
es,
|
|
@@ -5913,7 +5913,7 @@ const t2 = {
|
|
|
5913
5913
|
}
|
|
5914
5914
|
),
|
|
5915
5915
|
/* @__PURE__ */ e.createElement("div", { className: `${b}__main-content` }, o && /* @__PURE__ */ e.createElement("div", { className: `${b}__plan pds-overline-text` }, o), M, r && /* @__PURE__ */ e.createElement("div", { className: `${b}__description` }, r), H),
|
|
5916
|
-
/* @__PURE__ */ e.createElement("div", { className: `${b}__actions` }, t &&
|
|
5916
|
+
/* @__PURE__ */ e.createElement("div", { className: `${b}__actions` }, t && V, t && s && I)
|
|
5917
5917
|
),
|
|
5918
5918
|
a && k
|
|
5919
5919
|
);
|
|
@@ -6032,9 +6032,9 @@ const n2 = (d) => {
|
|
|
6032
6032
|
statusType: g,
|
|
6033
6033
|
hasStatusIndicator: !0
|
|
6034
6034
|
}
|
|
6035
|
-
),
|
|
6035
|
+
), _ = c.type;
|
|
6036
6036
|
return /* @__PURE__ */ e.createElement(
|
|
6037
|
-
|
|
6037
|
+
_,
|
|
6038
6038
|
w(w({
|
|
6039
6039
|
"aria-label": `${s} ${r} dashboard`,
|
|
6040
6040
|
className: [u, i].join(" ").trim().replace(/\s+/g, " ")
|
|
@@ -6096,13 +6096,13 @@ const a2 = (o) => {
|
|
|
6096
6096
|
"legalLinks",
|
|
6097
6097
|
"className"
|
|
6098
6098
|
]);
|
|
6099
|
-
const i = "pds-site-footer", m = t && t !== "default" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), u = a.includes("dataSubjectRequest"), f = a.includes("cookiePolicy"), g = a.includes("termsOfUse"), b = a.includes("acceptableUse"),
|
|
6099
|
+
const i = "pds-site-footer", m = t && t !== "default" ? `pds-container pds-container--${t}` : "pds-container", d = (/* @__PURE__ */ new Date()).getFullYear(), h = a.includes("privacy"), u = a.includes("dataSubjectRequest"), f = a.includes("cookiePolicy"), g = a.includes("termsOfUse"), b = a.includes("acceptableUse"), _ = a.includes("accessibilityStatement");
|
|
6100
6100
|
return /* @__PURE__ */ e.createElement(
|
|
6101
6101
|
"footer",
|
|
6102
6102
|
w({
|
|
6103
6103
|
className: [i, c].join(" ").trim().replace(/\s+/g, " ")
|
|
6104
6104
|
}, r),
|
|
6105
|
-
/* @__PURE__ */ e.createElement("div", { className: m }, s && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", d, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), g && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), b && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"),
|
|
6105
|
+
/* @__PURE__ */ e.createElement("div", { className: m }, s && /* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${i}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__copyright` }, "© ", d, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), u && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), f && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), g && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), b && /* @__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")))
|
|
6106
6106
|
);
|
|
6107
6107
|
};
|
|
6108
6108
|
a2.propTypes = {
|
|
@@ -6239,10 +6239,10 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6239
6239
|
"size",
|
|
6240
6240
|
"className"
|
|
6241
6241
|
]);
|
|
6242
|
-
const u = t || Ke(), f = "pds-progress-ring", g = r ? `${f}__label` : "visually-hidden", b = `${f}__loading-text ${f}__loading-text--${l}`,
|
|
6243
|
-
let p =
|
|
6244
|
-
l === "sm" && (p =
|
|
6245
|
-
const C = p / 2 -
|
|
6242
|
+
const u = t || Ke(), f = "pds-progress-ring", g = r ? `${f}__label` : "visually-hidden", b = `${f}__loading-text ${f}__loading-text--${l}`, _ = (z) => z * 16;
|
|
6243
|
+
let p = _(r2), v = 7;
|
|
6244
|
+
l === "sm" && (p = _(c2), v = v / 1.25), l === "lg" && (p = _(o2), v = v * 1.25);
|
|
6245
|
+
const C = p / 2 - v / 2, E = `${C / 100}rem`, $ = 2 * Math.PI * C, y = $ - $ * c / 100;
|
|
6246
6246
|
let x;
|
|
6247
6247
|
return s ? x = s : o ? x = `${c}%` : x = "", /* @__PURE__ */ e.createElement(
|
|
6248
6248
|
"div",
|
|
@@ -6276,7 +6276,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6276
6276
|
cx: p / 2,
|
|
6277
6277
|
cy: p / 2,
|
|
6278
6278
|
r: C,
|
|
6279
|
-
strokeWidth:
|
|
6279
|
+
strokeWidth: v
|
|
6280
6280
|
}
|
|
6281
6281
|
),
|
|
6282
6282
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6286,7 +6286,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6286
6286
|
cx: p / 2,
|
|
6287
6287
|
cy: p / 2,
|
|
6288
6288
|
r: C,
|
|
6289
|
-
strokeWidth:
|
|
6289
|
+
strokeWidth: v,
|
|
6290
6290
|
strokeDasharray: $,
|
|
6291
6291
|
strokeDashoffset: y,
|
|
6292
6292
|
transform: `rotate(-90 ${p / 2} ${p / 2})`
|
|
@@ -6322,10 +6322,10 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6322
6322
|
"translatableLabels",
|
|
6323
6323
|
"className"
|
|
6324
6324
|
]);
|
|
6325
|
-
const l = "pds-stepper", i = "pds-stepper-mobile", m = le(), [d] = Mt(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, f = -40, g = 2, b = 5,
|
|
6326
|
-
const y = $ + 1, x = $ === p, z = $ < p, M = E.hasError && x, L = (h -
|
|
6325
|
+
const l = "pds-stepper", i = "pds-stepper-mobile", m = le(), [d] = Mt(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, f = -40, g = 2, b = 5, _ = t.length, p = t.findLastIndex((E) => E.isCurrent), v = t.map((E, $) => {
|
|
6326
|
+
const y = $ + 1, x = $ === p, z = $ < p, M = E.hasError && x, L = (h - _ * u) / (_ + (_ - 2)), H = u + L * 2, V = u + L, I = L + f * -1, N = $ === 0, O = $ === _ - 1;
|
|
6327
6327
|
let R = H;
|
|
6328
|
-
(N || O) && (R =
|
|
6328
|
+
(N || O) && (R = V);
|
|
6329
6329
|
const B = `${l}__step`, j = [B];
|
|
6330
6330
|
x && j.push(`${B}--current`), z && j.push(`${B}--complete`), M && j.push(`${B}--error`);
|
|
6331
6331
|
let W = `${s.step} ${y}`;
|
|
@@ -6360,7 +6360,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6360
6360
|
id: E.id,
|
|
6361
6361
|
"aria-label": W,
|
|
6362
6362
|
"aria-posinset": y,
|
|
6363
|
-
"aria-setsize":
|
|
6363
|
+
"aria-setsize": _,
|
|
6364
6364
|
"aria-current": x ? "step" : null,
|
|
6365
6365
|
className: j.join(" ").trim().replace(/\s+/g, " "),
|
|
6366
6366
|
style: { width: R }
|
|
@@ -6370,7 +6370,7 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6370
6370
|
{
|
|
6371
6371
|
className: `${l}__connector ${l}__connector--before`,
|
|
6372
6372
|
style: {
|
|
6373
|
-
width:
|
|
6373
|
+
width: I,
|
|
6374
6374
|
marginRight: f
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
@@ -6380,18 +6380,18 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6380
6380
|
"span",
|
|
6381
6381
|
{
|
|
6382
6382
|
className: `${l}__connector ${l}__connector--after`,
|
|
6383
|
-
style: { width:
|
|
6383
|
+
style: { width: I, marginLeft: f }
|
|
6384
6384
|
}
|
|
6385
6385
|
)
|
|
6386
6386
|
);
|
|
6387
6387
|
}), C = t.map((E, $) => {
|
|
6388
|
-
const y = $ + 1, x = $ === p, z = $ ===
|
|
6388
|
+
const y = $ + 1, x = $ === p, z = $ === _ - 1, M = E.hasError && x, k = t[p + 1] ? t[p + 1].label : null;
|
|
6389
6389
|
if (x) {
|
|
6390
|
-
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), y, " of ",
|
|
6390
|
+
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), y, " of ", _), H = y / _ * 100, V = M ? {
|
|
6391
6391
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
6392
6392
|
} : {
|
|
6393
6393
|
"--pds-color-progress-partial": "var(--pds-color-stepper-completed)"
|
|
6394
|
-
},
|
|
6394
|
+
}, I = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", y, ", ", s.hasError);
|
|
6395
6395
|
return /* @__PURE__ */ e.createElement(
|
|
6396
6396
|
"div",
|
|
6397
6397
|
{
|
|
@@ -6406,10 +6406,10 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6406
6406
|
size: "sm",
|
|
6407
6407
|
percentage: H,
|
|
6408
6408
|
innerLabel: L,
|
|
6409
|
-
style:
|
|
6409
|
+
style: V
|
|
6410
6410
|
}
|
|
6411
6411
|
)),
|
|
6412
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__step-label` }, M && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
6412
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__step-text` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__step-label` }, M && /* @__PURE__ */ e.createElement(e.Fragment, null, I, /* @__PURE__ */ e.createElement(
|
|
6413
6413
|
A,
|
|
6414
6414
|
{
|
|
6415
6415
|
iconName: "diamondExclamation",
|
|
@@ -6420,19 +6420,19 @@ const c2 = 3.815, r2 = 4.678, o2 = 5.96, i2 = (d) => {
|
|
|
6420
6420
|
);
|
|
6421
6421
|
}
|
|
6422
6422
|
});
|
|
6423
|
-
if (
|
|
6423
|
+
if (_ >= g && _ <= b)
|
|
6424
6424
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6425
6425
|
"div",
|
|
6426
6426
|
w({
|
|
6427
6427
|
className: [l, a].join(" ").trim().replace(/\s+/g, " "),
|
|
6428
|
-
"data-steps":
|
|
6428
|
+
"data-steps": _
|
|
6429
6429
|
}, c),
|
|
6430
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m },
|
|
6430
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m }, v)
|
|
6431
6431
|
), /* @__PURE__ */ e.createElement(
|
|
6432
6432
|
"div",
|
|
6433
6433
|
w({
|
|
6434
6434
|
className: [i, a].join(" ").trim().replace(/\s+/g, " "),
|
|
6435
|
-
"data-steps":
|
|
6435
|
+
"data-steps": _
|
|
6436
6436
|
}, c),
|
|
6437
6437
|
/* @__PURE__ */ e.createElement("div", { className: `${i}__steps` }, C)
|
|
6438
6438
|
));
|
|
@@ -6517,33 +6517,33 @@ const m2 = (d) => {
|
|
|
6517
6517
|
"=",
|
|
6518
6518
|
"|",
|
|
6519
6519
|
"~"
|
|
6520
|
-
], b = `#${l} h2:not(.${r}), h3:not(.${r})`,
|
|
6520
|
+
], b = `#${l} h2:not(.${r}), h3:not(.${r})`, _ = () => {
|
|
6521
6521
|
const [k, L] = P([]);
|
|
6522
6522
|
return oe(() => {
|
|
6523
6523
|
const H = Array.from(
|
|
6524
6524
|
document.querySelectorAll(b)
|
|
6525
6525
|
);
|
|
6526
|
-
H.map((
|
|
6526
|
+
H.map((I) => {
|
|
6527
6527
|
g.forEach((N) => {
|
|
6528
|
-
|
|
6528
|
+
I.id.includes(N) && (I.id = I.id.replaceAll(N, "-"));
|
|
6529
6529
|
});
|
|
6530
|
-
}), H.map((
|
|
6530
|
+
}), H.map((I) => {
|
|
6531
6531
|
const N = `item-${Ke()}`;
|
|
6532
|
-
|
|
6532
|
+
I.id || (I.id = N);
|
|
6533
6533
|
});
|
|
6534
|
-
const
|
|
6535
|
-
L(
|
|
6534
|
+
const V = p(H);
|
|
6535
|
+
L(V);
|
|
6536
6536
|
}, []), { nestedHeadings: k };
|
|
6537
6537
|
}, p = (k) => {
|
|
6538
6538
|
const L = [];
|
|
6539
6539
|
return k.forEach((H) => {
|
|
6540
|
-
const { innerText:
|
|
6541
|
-
H.nodeName === "H2" ? L.push({ id:
|
|
6542
|
-
id:
|
|
6543
|
-
title:
|
|
6540
|
+
const { innerText: V, id: I } = H;
|
|
6541
|
+
H.nodeName === "H2" ? L.push({ id: I, title: V, items: [] }) : H.nodeName === "H3" && L.length > 0 && L[L.length - 1].items.push({
|
|
6542
|
+
id: I,
|
|
6543
|
+
title: V
|
|
6544
6544
|
});
|
|
6545
6545
|
}), L;
|
|
6546
|
-
}, { nestedHeadings:
|
|
6546
|
+
}, { nestedHeadings: v } = _(), [C, E] = P();
|
|
6547
6547
|
((k) => {
|
|
6548
6548
|
const L = le({});
|
|
6549
6549
|
oe(() => {
|
|
@@ -6554,7 +6554,7 @@ const m2 = (d) => {
|
|
|
6554
6554
|
const j = L.current[B];
|
|
6555
6555
|
j.isIntersecting && O.push(j);
|
|
6556
6556
|
});
|
|
6557
|
-
const R = (B) =>
|
|
6557
|
+
const R = (B) => I.findIndex((j) => j.id === B);
|
|
6558
6558
|
if (O.length === 1)
|
|
6559
6559
|
k(O[0].target.id);
|
|
6560
6560
|
else if (O.length > 1) {
|
|
@@ -6563,12 +6563,12 @@ const m2 = (d) => {
|
|
|
6563
6563
|
);
|
|
6564
6564
|
k(B[0].target.id);
|
|
6565
6565
|
}
|
|
6566
|
-
},
|
|
6566
|
+
}, V = new IntersectionObserver(H, {
|
|
6567
6567
|
rootMargin: "0px 0px -20% 0px"
|
|
6568
|
-
}),
|
|
6568
|
+
}), I = Array.from(
|
|
6569
6569
|
document.querySelectorAll(b)
|
|
6570
6570
|
);
|
|
6571
|
-
return
|
|
6571
|
+
return I.forEach((N) => V.observe(N)), () => V.disconnect();
|
|
6572
6572
|
}, [k]);
|
|
6573
6573
|
})(E);
|
|
6574
6574
|
const y = (k) => {
|
|
@@ -6600,8 +6600,8 @@ const m2 = (d) => {
|
|
|
6600
6600
|
{
|
|
6601
6601
|
className: H.id === C ? `${u}__link ${u}__link--active` : `${u}__link`,
|
|
6602
6602
|
href: `#${H.id}`,
|
|
6603
|
-
onClick: (
|
|
6604
|
-
z(
|
|
6603
|
+
onClick: (V) => {
|
|
6604
|
+
z(V, H.id);
|
|
6605
6605
|
}
|
|
6606
6606
|
},
|
|
6607
6607
|
H.title
|
|
@@ -6622,7 +6622,7 @@ const m2 = (d) => {
|
|
|
6622
6622
|
},
|
|
6623
6623
|
c
|
|
6624
6624
|
),
|
|
6625
|
-
/* @__PURE__ */ e.createElement(M, { headings:
|
|
6625
|
+
/* @__PURE__ */ e.createElement(M, { headings: v, activeID: C })
|
|
6626
6626
|
);
|
|
6627
6627
|
};
|
|
6628
6628
|
m2.propTypes = {
|
|
@@ -6790,8 +6790,8 @@ const Z2 = () => {
|
|
|
6790
6790
|
});
|
|
6791
6791
|
return [t, ls, s];
|
|
6792
6792
|
}, p2 = je(
|
|
6793
|
-
(
|
|
6794
|
-
var
|
|
6793
|
+
(V, H) => {
|
|
6794
|
+
var I = V, {
|
|
6795
6795
|
autoComplete: t,
|
|
6796
6796
|
counterMaxLength: s,
|
|
6797
6797
|
defaultValue: a,
|
|
@@ -6807,9 +6807,9 @@ const Z2 = () => {
|
|
|
6807
6807
|
onChange: f,
|
|
6808
6808
|
onClear: g,
|
|
6809
6809
|
onFocus: b,
|
|
6810
|
-
placeholder:
|
|
6810
|
+
placeholder: _,
|
|
6811
6811
|
readonly: p = !1,
|
|
6812
|
-
required:
|
|
6812
|
+
required: v = !1,
|
|
6813
6813
|
showLabel: C = !0,
|
|
6814
6814
|
showVisibilityToggle: E = !1,
|
|
6815
6815
|
translationStrings: $ = {
|
|
@@ -6825,7 +6825,7 @@ const Z2 = () => {
|
|
|
6825
6825
|
validationStatus: z,
|
|
6826
6826
|
value: M,
|
|
6827
6827
|
className: k
|
|
6828
|
-
} =
|
|
6828
|
+
} = I, L = T(I, [
|
|
6829
6829
|
"autoComplete",
|
|
6830
6830
|
"counterMaxLength",
|
|
6831
6831
|
"defaultValue",
|
|
@@ -6853,7 +6853,7 @@ const Z2 = () => {
|
|
|
6853
6853
|
"value",
|
|
6854
6854
|
"className"
|
|
6855
6855
|
]);
|
|
6856
|
-
const N = nt(m), O = "pds-text-input", R = c ? Y.disabled : null, B =
|
|
6856
|
+
const N = nt(m), O = "pds-text-input", R = c ? Y.disabled : null, B = v && !c ? Y.required : null, j = z === "error" ? Y.error : null, W = z === "success" ? Y.success : null, U = p ? Y.readonly : null;
|
|
6857
6857
|
let K = null;
|
|
6858
6858
|
y === "search" && (K = "search"), z === "error" && (K = "error"), z === "success" && (K = "success");
|
|
6859
6859
|
const S = x || h, D = typeof M != "undefined", F = typeof a != "undefined", [G, se] = P(
|
|
@@ -6893,7 +6893,7 @@ const Z2 = () => {
|
|
|
6893
6893
|
id: l,
|
|
6894
6894
|
label: d,
|
|
6895
6895
|
showLabel: C,
|
|
6896
|
-
required:
|
|
6896
|
+
required: v,
|
|
6897
6897
|
disabled: c
|
|
6898
6898
|
}
|
|
6899
6899
|
),
|
|
@@ -6907,10 +6907,10 @@ const Z2 = () => {
|
|
|
6907
6907
|
name: l,
|
|
6908
6908
|
type: me,
|
|
6909
6909
|
value: D ? M : G,
|
|
6910
|
-
placeholder:
|
|
6910
|
+
placeholder: _,
|
|
6911
6911
|
readOnly: p,
|
|
6912
6912
|
disabled: c,
|
|
6913
|
-
required:
|
|
6913
|
+
required: v,
|
|
6914
6914
|
autoComplete: y === "password" ? "off" : t,
|
|
6915
6915
|
onBlur: ue,
|
|
6916
6916
|
onChange: ee,
|
|
@@ -6992,17 +6992,17 @@ const Z2 = () => {
|
|
|
6992
6992
|
"workspaceList",
|
|
6993
6993
|
"className"
|
|
6994
6994
|
]);
|
|
6995
|
-
const [g, b] = P(!1), [
|
|
6995
|
+
const [g, b] = P(!1), [_, p] = P(null), [v, C] = P(m), E = le([]), $ = le(null), y = m.length >= o;
|
|
6996
6996
|
let x = !1;
|
|
6997
6997
|
const z = ze(Ue);
|
|
6998
6998
|
z && (x = z.isMobile);
|
|
6999
|
-
const M = i && x, k = "pds-workspace-selector", L = M ? `${k}--isMobile` : null, H = `${k}__menu`,
|
|
6999
|
+
const M = i && x, k = "pds-workspace-selector", L = M ? `${k}--isMobile` : null, H = `${k}__menu`, V = y ? `${H}--scroll` : null, { refs: I, floatingStyles: N, context: O } = De({
|
|
7000
7000
|
open: g,
|
|
7001
7001
|
onOpenChange: b,
|
|
7002
7002
|
whileElementsMounted: We
|
|
7003
7003
|
}), R = tt(O, { event: "mousedown" }), B = Re(O), j = Ae(O, { role: "menu" }), W = gt(O, {
|
|
7004
7004
|
listRef: E,
|
|
7005
|
-
activeIndex:
|
|
7005
|
+
activeIndex: _,
|
|
7006
7006
|
onNavigate: p,
|
|
7007
7007
|
loop: !0,
|
|
7008
7008
|
openOnArrowKeyDown: !0,
|
|
@@ -7038,7 +7038,7 @@ const Z2 = () => {
|
|
|
7038
7038
|
C(J);
|
|
7039
7039
|
}, [m]);
|
|
7040
7040
|
const Q = (J) => {
|
|
7041
|
-
J.preventDefault(), J.key === "Enter" && E.current[
|
|
7041
|
+
J.preventDefault(), J.key === "Enter" && E.current[_].querySelector("a").click(), J.key === "Tab" && (J.shiftKey ? y ? document.getElementById("workspace-filter").focus() : b(!1) : s ? $.current.querySelector("a").focus() : b(!1));
|
|
7042
7042
|
}, ue = /* @__PURE__ */ e.createElement("div", { className: `${k}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
7043
7043
|
ht,
|
|
7044
7044
|
{
|
|
@@ -7073,7 +7073,7 @@ const Z2 = () => {
|
|
|
7073
7073
|
showLabel: !1,
|
|
7074
7074
|
type: "search"
|
|
7075
7075
|
}
|
|
7076
|
-
)), ce =
|
|
7076
|
+
)), ce = v.map(
|
|
7077
7077
|
(J, be) => {
|
|
7078
7078
|
const $e = `${k}__item`, te = J.isActive ? `${$e}--active` : null, ae = J.isUnprivileged ? `${$e}--unprivileged` : null, xe = /* @__PURE__ */ e.createElement(A, { iconName: "check", className: `${k}__active-icon` }), ye = J.workspaceId, Le = J.workspaceLink.type, ge = J.isUnprivileged ? null : (fe) => {
|
|
7079
7079
|
E.current[be] = fe;
|
|
@@ -7089,7 +7089,7 @@ const Z2 = () => {
|
|
|
7089
7089
|
ae
|
|
7090
7090
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
7091
7091
|
role: "menuitem",
|
|
7092
|
-
tabIndex:
|
|
7092
|
+
tabIndex: _ === be ? 0 : -1,
|
|
7093
7093
|
ref: ge,
|
|
7094
7094
|
onKeyDown: Q
|
|
7095
7095
|
}, S()),
|
|
@@ -7126,7 +7126,7 @@ const Z2 = () => {
|
|
|
7126
7126
|
w({
|
|
7127
7127
|
className: `${k}__trigger`,
|
|
7128
7128
|
"aria-label": t,
|
|
7129
|
-
ref:
|
|
7129
|
+
ref: I.setReference
|
|
7130
7130
|
}, U()),
|
|
7131
7131
|
ue,
|
|
7132
7132
|
ee
|
|
@@ -7134,7 +7134,7 @@ const Z2 = () => {
|
|
|
7134
7134
|
"div",
|
|
7135
7135
|
w({
|
|
7136
7136
|
className: `${k}__dropdown`,
|
|
7137
|
-
ref:
|
|
7137
|
+
ref: I.setFloating,
|
|
7138
7138
|
style: {
|
|
7139
7139
|
floatingStyles: N,
|
|
7140
7140
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
@@ -7143,7 +7143,7 @@ const Z2 = () => {
|
|
|
7143
7143
|
/* @__PURE__ */ e.createElement("div", { style: w({}, F) }, ie, /* @__PURE__ */ e.createElement(
|
|
7144
7144
|
"ul",
|
|
7145
7145
|
{
|
|
7146
|
-
className: [H,
|
|
7146
|
+
className: [H, V].join(" ").trim().replace(/\s+/g, " "),
|
|
7147
7147
|
role: "menu"
|
|
7148
7148
|
},
|
|
7149
7149
|
/* @__PURE__ */ e.createElement("li", { className: `${k}__item-heading`, role: "presentation" }, r),
|
|
@@ -7299,8 +7299,8 @@ const Ut = (o) => {
|
|
|
7299
7299
|
"options",
|
|
7300
7300
|
"className"
|
|
7301
7301
|
]);
|
|
7302
|
-
const h = "pds-segmented-button", u = t ? "pds-is-disabled" : null, [f, g] = P(a), b = (
|
|
7303
|
-
g(
|
|
7302
|
+
const h = "pds-segmented-button", u = t ? "pds-is-disabled" : null, [f, g] = P(a), b = (_) => {
|
|
7303
|
+
g(_.target.value), r && r(_.target.value);
|
|
7304
7304
|
};
|
|
7305
7305
|
if (o.length >= 2 && o.length <= 6)
|
|
7306
7306
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7309,7 +7309,7 @@ const Ut = (o) => {
|
|
|
7309
7309
|
className: Z([h, u, l != null ? l : ""])
|
|
7310
7310
|
}, i),
|
|
7311
7311
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
7312
|
-
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((
|
|
7312
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((_, p) => /* @__PURE__ */ e.createElement(
|
|
7313
7313
|
"div",
|
|
7314
7314
|
{
|
|
7315
7315
|
className: `${h}__option`,
|
|
@@ -7322,27 +7322,27 @@ const Ut = (o) => {
|
|
|
7322
7322
|
type: "radio",
|
|
7323
7323
|
id: `${s}-option-${p}`,
|
|
7324
7324
|
name: s,
|
|
7325
|
-
value:
|
|
7325
|
+
value: _.value,
|
|
7326
7326
|
disabled: t,
|
|
7327
7327
|
onClick: b,
|
|
7328
|
-
defaultChecked: f ===
|
|
7328
|
+
defaultChecked: f === _.value
|
|
7329
7329
|
}
|
|
7330
7330
|
),
|
|
7331
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${p}` },
|
|
7331
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${p}` }, _.tally ? /* @__PURE__ */ e.createElement(
|
|
7332
7332
|
Ut,
|
|
7333
7333
|
{
|
|
7334
|
-
label:
|
|
7335
|
-
type:
|
|
7334
|
+
label: _.tally.label,
|
|
7335
|
+
type: _.tally.type,
|
|
7336
7336
|
className: `${h}__tally`
|
|
7337
7337
|
}
|
|
7338
|
-
) :
|
|
7338
|
+
) : _.iconName && /* @__PURE__ */ e.createElement(
|
|
7339
7339
|
A,
|
|
7340
7340
|
{
|
|
7341
|
-
iconName:
|
|
7341
|
+
iconName: _.iconName,
|
|
7342
7342
|
iconSize: "md",
|
|
7343
7343
|
className: `${h}__icon`
|
|
7344
7344
|
}
|
|
7345
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` },
|
|
7345
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, _.label))
|
|
7346
7346
|
)))
|
|
7347
7347
|
);
|
|
7348
7348
|
}, f2 = {
|
|
@@ -7390,7 +7390,7 @@ const Ut = (o) => {
|
|
|
7390
7390
|
}, K2 = (d) => {
|
|
7391
7391
|
var h = d, {
|
|
7392
7392
|
id: t,
|
|
7393
|
-
|
|
7393
|
+
defaultValue: s,
|
|
7394
7394
|
label: a,
|
|
7395
7395
|
labelDisplay: c = "left",
|
|
7396
7396
|
layout: r = "auto",
|
|
@@ -7399,7 +7399,7 @@ const Ut = (o) => {
|
|
|
7399
7399
|
className: i
|
|
7400
7400
|
} = h, m = T(h, [
|
|
7401
7401
|
"id",
|
|
7402
|
-
"
|
|
7402
|
+
"defaultValue",
|
|
7403
7403
|
"label",
|
|
7404
7404
|
"labelDisplay",
|
|
7405
7405
|
"layout",
|
|
@@ -7410,49 +7410,49 @@ const Ut = (o) => {
|
|
|
7410
7410
|
const u = "pds-card-select-group";
|
|
7411
7411
|
let f = `${u}__legend`;
|
|
7412
7412
|
c === "center" && (f = `${u}__legend ${u}__legend--center`), c === "hidden" && (f = `${u}__legend visually-hidden`);
|
|
7413
|
-
const [g, b] = P(s),
|
|
7414
|
-
b(
|
|
7415
|
-
}, p = l.length,
|
|
7416
|
-
let
|
|
7417
|
-
return r === "twoAcross" ?
|
|
7413
|
+
const [g, b] = P(s), _ = (y) => {
|
|
7414
|
+
b(y.currentTarget.value), o && o(y.currentTarget.value);
|
|
7415
|
+
}, p = l.length, v = "pds-grid-item", C = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", E = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
7416
|
+
let $ = "";
|
|
7417
|
+
return r === "twoAcross" ? $ = C : r === "threeAcross" ? $ = E : r === "auto" && (p === 1 ? $ = v : p % 3 === 0 ? $ = E : p % 2 === 0 ? $ = C : $ = E), /* @__PURE__ */ e.createElement(
|
|
7418
7418
|
"fieldset",
|
|
7419
7419
|
w({
|
|
7420
7420
|
className: [u, i].join(" ").trim().replace(/\s+/g, " "),
|
|
7421
7421
|
id: t
|
|
7422
7422
|
}, m),
|
|
7423
7423
|
/* @__PURE__ */ e.createElement("legend", { className: f }, a),
|
|
7424
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((
|
|
7424
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((y, x) => /* @__PURE__ */ e.createElement(
|
|
7425
7425
|
"div",
|
|
7426
7426
|
{
|
|
7427
|
-
className: [`${u}__option`,
|
|
7428
|
-
key: `${t}-option-${
|
|
7427
|
+
className: [`${u}__option`, $].join(" ").trim().replace(/\s+/g, " "),
|
|
7428
|
+
key: `${t}-option-${x}`
|
|
7429
7429
|
},
|
|
7430
7430
|
/* @__PURE__ */ e.createElement(
|
|
7431
7431
|
"input",
|
|
7432
7432
|
{
|
|
7433
7433
|
type: "radio",
|
|
7434
|
-
id: `${t}-option-${
|
|
7434
|
+
id: y.id ? y.id : `${t}-option-${x}`,
|
|
7435
7435
|
name: t,
|
|
7436
|
-
value:
|
|
7437
|
-
onClick:
|
|
7438
|
-
defaultChecked: g ===
|
|
7436
|
+
value: y.value,
|
|
7437
|
+
onClick: _,
|
|
7438
|
+
defaultChecked: g === y.value
|
|
7439
7439
|
}
|
|
7440
7440
|
),
|
|
7441
7441
|
/* @__PURE__ */ e.createElement(
|
|
7442
7442
|
"label",
|
|
7443
7443
|
{
|
|
7444
|
-
htmlFor: `${t}-option-${
|
|
7445
|
-
className: g ===
|
|
7444
|
+
htmlFor: `${t}-option-${x}`,
|
|
7445
|
+
className: g === y.value ? `${u}__option-label ${u}__option-label--selected` : `${u}__option-label`
|
|
7446
7446
|
},
|
|
7447
7447
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
7448
7448
|
A,
|
|
7449
7449
|
{
|
|
7450
|
-
iconName: g ===
|
|
7450
|
+
iconName: g === y.value ? "circleCheck" : "circle",
|
|
7451
7451
|
iconSize: "xl",
|
|
7452
|
-
className: g ===
|
|
7452
|
+
className: g === y.value ? `${u}__option-icon ${u}__option-icon--selected` : `${u}__option-icon`
|
|
7453
7453
|
}
|
|
7454
7454
|
)),
|
|
7455
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` },
|
|
7455
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` }, y.label, y.description && /* @__PURE__ */ e.createElement("div", { className: `${u}__option-description` }, y.description))
|
|
7456
7456
|
)
|
|
7457
7457
|
)))
|
|
7458
7458
|
);
|
|
@@ -7500,9 +7500,9 @@ const Ut = (o) => {
|
|
|
7500
7500
|
onChange: f,
|
|
7501
7501
|
onFocus: g,
|
|
7502
7502
|
required: b,
|
|
7503
|
-
showLabel:
|
|
7503
|
+
showLabel: _ = !0,
|
|
7504
7504
|
validationMessage: p,
|
|
7505
|
-
validationStatus:
|
|
7505
|
+
validationStatus: v,
|
|
7506
7506
|
value: C,
|
|
7507
7507
|
className: E
|
|
7508
7508
|
} = z, $ = T(z, [
|
|
@@ -7527,7 +7527,7 @@ const Ut = (o) => {
|
|
|
7527
7527
|
"value",
|
|
7528
7528
|
"className"
|
|
7529
7529
|
]);
|
|
7530
|
-
const M = l ? { width: `${l / 16}rem` } : null, k = "pds-checkbox", L = a ? Y.disabled : null, H = b && !a ? Y.required : null,
|
|
7530
|
+
const M = l ? { width: `${l / 16}rem` } : null, k = "pds-checkbox", L = a ? Y.disabled : null, H = b && !a ? Y.required : null, V = v === "error" ? Y.error : null, I = v === "success" ? Y.success : null, N = h > 0 ? `${k}--indent-${h}` : null, O = p || m, R = typeof t != "undefined", B = typeof s != "undefined", [j, W] = P(
|
|
7531
7531
|
B ? s : !1
|
|
7532
7532
|
), U = t || j, K = (se) => {
|
|
7533
7533
|
R || W(se.target.checked), f && f(se);
|
|
@@ -7558,8 +7558,8 @@ const Ut = (o) => {
|
|
|
7558
7558
|
k,
|
|
7559
7559
|
L,
|
|
7560
7560
|
H,
|
|
7561
|
-
I,
|
|
7562
7561
|
V,
|
|
7562
|
+
I,
|
|
7563
7563
|
N,
|
|
7564
7564
|
E != null ? E : ""
|
|
7565
7565
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -7580,7 +7580,7 @@ const Ut = (o) => {
|
|
|
7580
7580
|
onBlur: u,
|
|
7581
7581
|
onChange: K,
|
|
7582
7582
|
onFocus: g,
|
|
7583
|
-
"aria-invalid":
|
|
7583
|
+
"aria-invalid": v === "error" ? !0 : null,
|
|
7584
7584
|
"aria-describedby": O ? `${c}__message` : null
|
|
7585
7585
|
}), o)
|
|
7586
7586
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: c, className: `${k}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -7598,7 +7598,7 @@ const Ut = (o) => {
|
|
|
7598
7598
|
{
|
|
7599
7599
|
className: Z([
|
|
7600
7600
|
`${k}__label-text`,
|
|
7601
|
-
|
|
7601
|
+
_ ? "" : "visually-hidden"
|
|
7602
7602
|
])
|
|
7603
7603
|
},
|
|
7604
7604
|
i,
|
|
@@ -7612,7 +7612,7 @@ const Ut = (o) => {
|
|
|
7612
7612
|
message: O,
|
|
7613
7613
|
hasValidationMessage: !!p,
|
|
7614
7614
|
validationMessageHasDecorators: !0,
|
|
7615
|
-
validationStatus:
|
|
7615
|
+
validationStatus: v
|
|
7616
7616
|
}
|
|
7617
7617
|
)
|
|
7618
7618
|
);
|
|
@@ -7645,19 +7645,19 @@ const Ut = (o) => {
|
|
|
7645
7645
|
"validationStatus",
|
|
7646
7646
|
"className"
|
|
7647
7647
|
]);
|
|
7648
|
-
const
|
|
7648
|
+
const _ = r ? { width: `${r / 16}rem` } : null, p = "pds-checkbox-group", v = s ? Y.disabled : null, C = i && !s ? Y.required : null, E = h === "error" ? Y.error : null, $ = h === "success" ? Y.success : null, y = d || l;
|
|
7649
7649
|
return /* @__PURE__ */ e.createElement(
|
|
7650
7650
|
"div",
|
|
7651
7651
|
w({
|
|
7652
7652
|
className: [
|
|
7653
7653
|
p,
|
|
7654
|
-
|
|
7654
|
+
v,
|
|
7655
7655
|
C,
|
|
7656
7656
|
E,
|
|
7657
7657
|
$,
|
|
7658
7658
|
u != null ? u : ""
|
|
7659
7659
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
7660
|
-
style: r ?
|
|
7660
|
+
style: r ? _ : null
|
|
7661
7661
|
}, f),
|
|
7662
7662
|
/* @__PURE__ */ e.createElement("fieldset", w({ className: `${p}__fieldset`, id: c }, a), /* @__PURE__ */ e.createElement(
|
|
7663
7663
|
Ze,
|
|
@@ -7681,8 +7681,8 @@ const Ut = (o) => {
|
|
|
7681
7681
|
}
|
|
7682
7682
|
)
|
|
7683
7683
|
);
|
|
7684
|
-
}, X2 = (
|
|
7685
|
-
var p =
|
|
7684
|
+
}, X2 = (_) => {
|
|
7685
|
+
var p = _, {
|
|
7686
7686
|
disabled: t = !1,
|
|
7687
7687
|
fieldsetProps: s,
|
|
7688
7688
|
id: a,
|
|
@@ -7713,24 +7713,24 @@ const Ut = (o) => {
|
|
|
7713
7713
|
"validationStatus",
|
|
7714
7714
|
"className"
|
|
7715
7715
|
]);
|
|
7716
|
-
const
|
|
7717
|
-
m.map((
|
|
7718
|
-
|
|
7716
|
+
const v = c ? { width: `${c / 16}rem` } : null, C = "pds-checkbox-group", E = t ? Y.disabled : null, $ = d && !t ? Y.required : null, y = f === "error" ? Y.error : null, x = f === "success" ? Y.success : null, z = u || o;
|
|
7717
|
+
m.map((I) => {
|
|
7718
|
+
I.id || (I.id = I.value);
|
|
7719
7719
|
});
|
|
7720
7720
|
const M = [];
|
|
7721
|
-
m.map((
|
|
7722
|
-
|
|
7721
|
+
m.map((I) => {
|
|
7722
|
+
I.checked === !0 && M.push(I.value);
|
|
7723
7723
|
});
|
|
7724
|
-
const [k, L] = P(M), H = (
|
|
7725
|
-
const { value: N } =
|
|
7724
|
+
const [k, L] = P(M), H = (I) => {
|
|
7725
|
+
const { value: N } = I.target, O = k.includes(N) ? k.filter((R) => R !== N) : [...k, N];
|
|
7726
7726
|
L(O), i && i(O);
|
|
7727
7727
|
};
|
|
7728
|
-
m.map((
|
|
7729
|
-
k.includes(
|
|
7728
|
+
m.map((I) => {
|
|
7729
|
+
k.includes(I.value) ? I.checked = !0 : I.checked = !1;
|
|
7730
7730
|
});
|
|
7731
|
-
const
|
|
7731
|
+
const V = () => {
|
|
7732
7732
|
l && setTimeout(() => {
|
|
7733
|
-
m.some((
|
|
7733
|
+
m.some((I) => I.id === document.activeElement.id) || l(k);
|
|
7734
7734
|
}, 1500);
|
|
7735
7735
|
};
|
|
7736
7736
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -7744,7 +7744,7 @@ const Ut = (o) => {
|
|
|
7744
7744
|
x,
|
|
7745
7745
|
g != null ? g : ""
|
|
7746
7746
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
7747
|
-
style: c ?
|
|
7747
|
+
style: c ? v : null
|
|
7748
7748
|
}, b),
|
|
7749
7749
|
/* @__PURE__ */ e.createElement("fieldset", w({ className: `${C}__fieldset`, id: a }, s), /* @__PURE__ */ e.createElement(
|
|
7750
7750
|
Ze,
|
|
@@ -7756,19 +7756,19 @@ const Ut = (o) => {
|
|
|
7756
7756
|
required: d,
|
|
7757
7757
|
showLabel: h
|
|
7758
7758
|
}
|
|
7759
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, m.map((
|
|
7759
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, m.map((I) => /* @__PURE__ */ e.createElement(
|
|
7760
7760
|
E2,
|
|
7761
7761
|
{
|
|
7762
|
-
key:
|
|
7763
|
-
checked:
|
|
7764
|
-
id:
|
|
7765
|
-
label:
|
|
7766
|
-
name:
|
|
7767
|
-
value:
|
|
7768
|
-
disabled:
|
|
7762
|
+
key: I.id,
|
|
7763
|
+
checked: I.checked,
|
|
7764
|
+
id: I.id,
|
|
7765
|
+
label: I.label,
|
|
7766
|
+
name: I.name,
|
|
7767
|
+
value: I.value,
|
|
7768
|
+
disabled: I.disabled || t,
|
|
7769
7769
|
className: `${C}__checkbox`,
|
|
7770
7770
|
onChange: H,
|
|
7771
|
-
onBlur:
|
|
7771
|
+
onBlur: V
|
|
7772
7772
|
}
|
|
7773
7773
|
)))),
|
|
7774
7774
|
z && /* @__PURE__ */ e.createElement(
|
|
@@ -7783,7 +7783,7 @@ const Ut = (o) => {
|
|
|
7783
7783
|
)
|
|
7784
7784
|
);
|
|
7785
7785
|
}, Q2 = (p) => {
|
|
7786
|
-
var
|
|
7786
|
+
var v = p, {
|
|
7787
7787
|
accept: t,
|
|
7788
7788
|
disabled: s = !1,
|
|
7789
7789
|
fieldLabel: a,
|
|
@@ -7802,7 +7802,7 @@ const Ut = (o) => {
|
|
|
7802
7802
|
validationMessage: f,
|
|
7803
7803
|
validationStatus: g,
|
|
7804
7804
|
className: b
|
|
7805
|
-
} =
|
|
7805
|
+
} = v, _ = T(v, [
|
|
7806
7806
|
"accept",
|
|
7807
7807
|
"disabled",
|
|
7808
7808
|
"fieldLabel",
|
|
@@ -7822,9 +7822,9 @@ const Ut = (o) => {
|
|
|
7822
7822
|
const [C, E] = P(!1), $ = nt(r), y = "pds-file-upload", x = s ? Y.disabled : null, z = h && !s ? Y.required : null, M = g === "error" ? Y.error : null, k = g === "success" ? Y.success : null;
|
|
7823
7823
|
let L = null;
|
|
7824
7824
|
g === "error" && (L = "error"), g === "success" && (L = "success");
|
|
7825
|
-
const H = f || l,
|
|
7825
|
+
const H = f || l, V = (N) => {
|
|
7826
7826
|
d && d(N.target.files), N.target.files.length > 0 ? E(!0) : E(!1);
|
|
7827
|
-
},
|
|
7827
|
+
}, I = () => {
|
|
7828
7828
|
const N = document.getElementById(
|
|
7829
7829
|
`${c}--input`
|
|
7830
7830
|
);
|
|
@@ -7843,7 +7843,7 @@ const Ut = (o) => {
|
|
|
7843
7843
|
b != null ? b : ""
|
|
7844
7844
|
]),
|
|
7845
7845
|
style: r ? $ : null
|
|
7846
|
-
},
|
|
7846
|
+
}, _),
|
|
7847
7847
|
/* @__PURE__ */ e.createElement(
|
|
7848
7848
|
Ze,
|
|
7849
7849
|
{
|
|
@@ -7873,7 +7873,7 @@ const Ut = (o) => {
|
|
|
7873
7873
|
disabled: s,
|
|
7874
7874
|
multiple: i,
|
|
7875
7875
|
required: h,
|
|
7876
|
-
onChange:
|
|
7876
|
+
onChange: V,
|
|
7877
7877
|
"aria-invalid": g === "error" ? !0 : null,
|
|
7878
7878
|
"aria-describedby": H ? `${c}__message` : null
|
|
7879
7879
|
}
|
|
@@ -7882,7 +7882,7 @@ const Ut = (o) => {
|
|
|
7882
7882
|
{
|
|
7883
7883
|
id: c,
|
|
7884
7884
|
clearLabel: o.clearButton,
|
|
7885
|
-
handleClearInput:
|
|
7885
|
+
handleClearInput: I
|
|
7886
7886
|
}
|
|
7887
7887
|
)),
|
|
7888
7888
|
H && /* @__PURE__ */ e.createElement(
|
|
@@ -7904,8 +7904,8 @@ const Ut = (o) => {
|
|
|
7904
7904
|
"children",
|
|
7905
7905
|
"className"
|
|
7906
7906
|
]);
|
|
7907
|
-
var g, b,
|
|
7908
|
-
const o = "pds-input-group", l = [t[0], t[1]], i = (g = t[0].props.id) != null ? g : null, m = (b = t[0].props.message) != null ? b : null, d = (
|
|
7907
|
+
var g, b, _, p;
|
|
7908
|
+
const o = "pds-input-group", l = [t[0], t[1]], i = (g = t[0].props.id) != null ? g : null, m = (b = t[0].props.message) != null ? b : null, d = (_ = t[0].props.validationMessage) != null ? _ : null, h = (p = t[0].props.validationStatus) != null ? p : null, u = d || m, f = u ? `${o}--has-message` : null;
|
|
7909
7909
|
return /* @__PURE__ */ e.createElement(
|
|
7910
7910
|
"div",
|
|
7911
7911
|
w({
|
|
@@ -7924,7 +7924,7 @@ const Ut = (o) => {
|
|
|
7924
7924
|
)
|
|
7925
7925
|
);
|
|
7926
7926
|
}, en = (p) => {
|
|
7927
|
-
var
|
|
7927
|
+
var v = p, {
|
|
7928
7928
|
defaultValue: t,
|
|
7929
7929
|
disabled: s = !1,
|
|
7930
7930
|
fieldsetProps: a,
|
|
@@ -7940,7 +7940,7 @@ const Ut = (o) => {
|
|
|
7940
7940
|
validationMessage: f,
|
|
7941
7941
|
validationStatus: g,
|
|
7942
7942
|
className: b
|
|
7943
|
-
} =
|
|
7943
|
+
} = v, _ = T(v, [
|
|
7944
7944
|
"defaultValue",
|
|
7945
7945
|
"disabled",
|
|
7946
7946
|
"fieldsetProps",
|
|
@@ -7957,10 +7957,10 @@ const Ut = (o) => {
|
|
|
7957
7957
|
"validationStatus",
|
|
7958
7958
|
"className"
|
|
7959
7959
|
]);
|
|
7960
|
-
const C = "pds-radio-group", E = s ? Y.disabled : null, $ = h && !s ? Y.required : null, y = g === "error" ? Y.error : null, x = g === "success" ? Y.success : null, [z, M] = P(t), k = f || l, L = (
|
|
7961
|
-
M(
|
|
7962
|
-
}, H = (
|
|
7963
|
-
i && i(
|
|
7960
|
+
const C = "pds-radio-group", E = s ? Y.disabled : null, $ = h && !s ? Y.required : null, y = g === "error" ? Y.error : null, x = g === "success" ? Y.success : null, [z, M] = P(t), k = f || l, L = (V) => {
|
|
7961
|
+
M(V.target.value), m && m(V.target.value);
|
|
7962
|
+
}, H = (V) => {
|
|
7963
|
+
i && i(V);
|
|
7964
7964
|
};
|
|
7965
7965
|
return /* @__PURE__ */ e.createElement(
|
|
7966
7966
|
"div",
|
|
@@ -7974,7 +7974,7 @@ const Ut = (o) => {
|
|
|
7974
7974
|
b != null ? b : ""
|
|
7975
7975
|
]),
|
|
7976
7976
|
style: nt(r)
|
|
7977
|
-
},
|
|
7977
|
+
}, _),
|
|
7978
7978
|
/* @__PURE__ */ e.createElement("fieldset", w({ className: `${C}__fieldset`, id: c }, a), /* @__PURE__ */ e.createElement(
|
|
7979
7979
|
Ze,
|
|
7980
7980
|
{
|
|
@@ -7985,27 +7985,27 @@ const Ut = (o) => {
|
|
|
7985
7985
|
required: h,
|
|
7986
7986
|
showLabel: u
|
|
7987
7987
|
}
|
|
7988
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, d.map((
|
|
7988
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, d.map((V, I) => /* @__PURE__ */ e.createElement(
|
|
7989
7989
|
"div",
|
|
7990
7990
|
{
|
|
7991
7991
|
className: `${C}__option`,
|
|
7992
|
-
key: `${c}-option-${
|
|
7992
|
+
key: `${c}-option-${I}`
|
|
7993
7993
|
},
|
|
7994
7994
|
/* @__PURE__ */ e.createElement(
|
|
7995
7995
|
"input",
|
|
7996
7996
|
{
|
|
7997
7997
|
type: "radio",
|
|
7998
|
-
id: `${c}-option-${
|
|
7998
|
+
id: V.id ? V.id : `${c}-option-${I}`,
|
|
7999
7999
|
name: c,
|
|
8000
|
-
value:
|
|
8000
|
+
value: V.value,
|
|
8001
8001
|
required: h,
|
|
8002
|
-
disabled: s ||
|
|
8002
|
+
disabled: s || V.disabled,
|
|
8003
8003
|
onBlur: H,
|
|
8004
8004
|
onChange: L,
|
|
8005
|
-
defaultChecked: z ===
|
|
8005
|
+
defaultChecked: z === V.value
|
|
8006
8006
|
}
|
|
8007
8007
|
),
|
|
8008
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${c}-option-${
|
|
8008
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${c}-option-${I}` }, V.label)
|
|
8009
8009
|
)))),
|
|
8010
8010
|
k && /* @__PURE__ */ e.createElement(
|
|
8011
8011
|
Ie,
|
|
@@ -8043,7 +8043,7 @@ const Ut = (o) => {
|
|
|
8043
8043
|
},
|
|
8044
8044
|
/* @__PURE__ */ e.createElement(A, { iconName: "xmark", iconSize: "sm" })
|
|
8045
8045
|
)), tn = je(
|
|
8046
|
-
(C,
|
|
8046
|
+
(C, v) => {
|
|
8047
8047
|
var E = C, {
|
|
8048
8048
|
checked: t,
|
|
8049
8049
|
defaultChecked: s,
|
|
@@ -8060,7 +8060,7 @@ const Ut = (o) => {
|
|
|
8060
8060
|
required: f = !1,
|
|
8061
8061
|
showLabel: g = !0,
|
|
8062
8062
|
showStatusLabel: b = !0,
|
|
8063
|
-
className:
|
|
8063
|
+
className: _
|
|
8064
8064
|
} = E, p = T(E, [
|
|
8065
8065
|
"checked",
|
|
8066
8066
|
"defaultChecked",
|
|
@@ -8079,12 +8079,12 @@ const Ut = (o) => {
|
|
|
8079
8079
|
"showStatusLabel",
|
|
8080
8080
|
"className"
|
|
8081
8081
|
]);
|
|
8082
|
-
const $ = nt(o), y = "pds-switch", x = a ? Y.disabled : null, z = f && !a ? Y.required : null, M = typeof t != "undefined", k = i == "below", L = i == "right", H = !M && s ? s : !1, [
|
|
8083
|
-
M ||
|
|
8082
|
+
const $ = nt(o), y = "pds-switch", x = a ? Y.disabled : null, z = f && !a ? Y.required : null, M = typeof t != "undefined", k = i == "below", L = i == "right", H = !M && s ? s : !1, [V, I] = P(H), N = t || V ? u : d, O = (K) => {
|
|
8083
|
+
M || I(K.target.checked), h && h(K);
|
|
8084
8084
|
}, R = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
8085
8085
|
"input",
|
|
8086
8086
|
w({
|
|
8087
|
-
ref:
|
|
8087
|
+
ref: v,
|
|
8088
8088
|
id: c,
|
|
8089
8089
|
name: c,
|
|
8090
8090
|
type: "checkbox",
|
|
@@ -8093,7 +8093,7 @@ const Ut = (o) => {
|
|
|
8093
8093
|
onChange: O,
|
|
8094
8094
|
disabled: a,
|
|
8095
8095
|
required: f,
|
|
8096
|
-
checked: t !== void 0 ? t :
|
|
8096
|
+
checked: t !== void 0 ? t : V,
|
|
8097
8097
|
"aria-describedby": m ? `${c}__message` : null
|
|
8098
8098
|
}, r)
|
|
8099
8099
|
), !b && /* @__PURE__ */ e.createElement(v2, { toggleStatusLabel: N }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), b && /* @__PURE__ */ e.createElement(_2, { toggleStatusLabel: N, id: c })), B = /* @__PURE__ */ e.createElement(
|
|
@@ -8139,7 +8139,7 @@ const Ut = (o) => {
|
|
|
8139
8139
|
x,
|
|
8140
8140
|
z,
|
|
8141
8141
|
U,
|
|
8142
|
-
|
|
8142
|
+
_
|
|
8143
8143
|
]),
|
|
8144
8144
|
style: o ? $ : null
|
|
8145
8145
|
}, p),
|
|
@@ -8164,9 +8164,9 @@ const Ut = (o) => {
|
|
|
8164
8164
|
readonly: f = !1,
|
|
8165
8165
|
required: g = !1,
|
|
8166
8166
|
rows: b = 5,
|
|
8167
|
-
showLabel:
|
|
8167
|
+
showLabel: _,
|
|
8168
8168
|
textareaProps: p,
|
|
8169
|
-
translationStrings:
|
|
8169
|
+
translationStrings: v = {
|
|
8170
8170
|
clearButton: "Clear input text",
|
|
8171
8171
|
counterOverLimit: "Character limit exceeded by",
|
|
8172
8172
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8202,7 +8202,7 @@ const Ut = (o) => {
|
|
|
8202
8202
|
"value",
|
|
8203
8203
|
"className"
|
|
8204
8204
|
]);
|
|
8205
|
-
const L = nt(r), H = "pds-textarea",
|
|
8205
|
+
const L = nt(r), H = "pds-textarea", V = o ? "pds-is-resizable" : null, I = a ? Y.disabled : null, N = g && !a ? Y.required : null, O = E === "error" ? Y.error : null, R = E === "success" ? Y.success : null, B = f ? Y.readonly : null, j = C || i, W = $ != null && d !== void 0, U = typeof s != "undefined", [K, S] = P(
|
|
8206
8206
|
U ? s : ""
|
|
8207
8207
|
), D = $ || K, F = (se) => {
|
|
8208
8208
|
W || S(se.target.value), d && d(se);
|
|
@@ -8215,7 +8215,7 @@ const Ut = (o) => {
|
|
|
8215
8215
|
className: Z([
|
|
8216
8216
|
Y.base,
|
|
8217
8217
|
H,
|
|
8218
|
-
|
|
8218
|
+
I,
|
|
8219
8219
|
N,
|
|
8220
8220
|
O,
|
|
8221
8221
|
R,
|
|
@@ -8229,7 +8229,7 @@ const Ut = (o) => {
|
|
|
8229
8229
|
{
|
|
8230
8230
|
id: c,
|
|
8231
8231
|
label: l,
|
|
8232
|
-
showLabel:
|
|
8232
|
+
showLabel: _,
|
|
8233
8233
|
required: g,
|
|
8234
8234
|
disabled: a,
|
|
8235
8235
|
className: `${H}__inputlabel`
|
|
@@ -8240,14 +8240,14 @@ const Ut = (o) => {
|
|
|
8240
8240
|
id: c,
|
|
8241
8241
|
currentLength: D.length,
|
|
8242
8242
|
maxLength: t,
|
|
8243
|
-
overLimitMessage:
|
|
8243
|
+
overLimitMessage: v.counterOverLimit
|
|
8244
8244
|
}
|
|
8245
8245
|
)),
|
|
8246
8246
|
/* @__PURE__ */ e.createElement("div", { className: `${H}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8247
8247
|
"textarea",
|
|
8248
8248
|
w({
|
|
8249
8249
|
ref: z,
|
|
8250
|
-
className: Z([`${H}--textarea`,
|
|
8250
|
+
className: Z([`${H}--textarea`, V]),
|
|
8251
8251
|
id: c,
|
|
8252
8252
|
name: c,
|
|
8253
8253
|
placeholder: u,
|
|
@@ -8302,7 +8302,7 @@ const Ut = (o) => {
|
|
|
8302
8302
|
}, [c]), oe(() => {
|
|
8303
8303
|
r(g);
|
|
8304
8304
|
}, [g]);
|
|
8305
|
-
const { refs:
|
|
8305
|
+
const { refs: _, context: p, floatingStyles: v } = De({
|
|
8306
8306
|
open: g,
|
|
8307
8307
|
onOpenChange: b
|
|
8308
8308
|
}), C = tt(p), E = Re(p, {
|
|
@@ -8329,7 +8329,7 @@ const Ut = (o) => {
|
|
|
8329
8329
|
s1,
|
|
8330
8330
|
{
|
|
8331
8331
|
lockScroll: !0,
|
|
8332
|
-
style: ve(w({},
|
|
8332
|
+
style: ve(w({}, v), {
|
|
8333
8333
|
background: "var(--pds-color-overlay)",
|
|
8334
8334
|
transition: "var(--pds-animation-reveal-transition)",
|
|
8335
8335
|
zIndex: "var(--pds-z-index-modal)",
|
|
@@ -8339,11 +8339,11 @@ const Ut = (o) => {
|
|
|
8339
8339
|
/* @__PURE__ */ e.createElement(vs, { context: p }, /* @__PURE__ */ e.createElement(
|
|
8340
8340
|
"div",
|
|
8341
8341
|
w(ve(w({
|
|
8342
|
-
ref:
|
|
8342
|
+
ref: _.setFloating,
|
|
8343
8343
|
"aria-label": t || l
|
|
8344
8344
|
}, y()), {
|
|
8345
8345
|
className: [u, f, i].join(" ").trim().replace(/\s+/g, " "),
|
|
8346
|
-
style: ve(w(w({},
|
|
8346
|
+
style: ve(w(w({}, v), z), {
|
|
8347
8347
|
position: "relative",
|
|
8348
8348
|
top: "5%"
|
|
8349
8349
|
})
|
|
@@ -8441,18 +8441,18 @@ const Ut = (o) => {
|
|
|
8441
8441
|
},
|
|
8442
8442
|
k.linkContent
|
|
8443
8443
|
))
|
|
8444
|
-
), [u, f] = P(!1), { refs: g, floatingStyles: b, context:
|
|
8444
|
+
), [u, f] = P(!1), { refs: g, floatingStyles: b, context: _ } = De({
|
|
8445
8445
|
placement: "right-start",
|
|
8446
8446
|
open: u,
|
|
8447
8447
|
onOpenChange: f,
|
|
8448
8448
|
middleware: [kt(12), Ht(), zt()],
|
|
8449
8449
|
whileElementsMounted: We
|
|
8450
|
-
}), p = Ct(
|
|
8450
|
+
}), p = Ct(_, {
|
|
8451
8451
|
move: !1,
|
|
8452
8452
|
handleClose: _s()
|
|
8453
|
-
}),
|
|
8453
|
+
}), v = bs(_), C = Re(_), E = Ae(_, { role: "menu" }), { getReferenceProps: $, getFloatingProps: y } = Pe([
|
|
8454
8454
|
p,
|
|
8455
|
-
|
|
8455
|
+
v,
|
|
8456
8456
|
C,
|
|
8457
8457
|
E
|
|
8458
8458
|
]), x = (z) => {
|
|
@@ -8532,7 +8532,7 @@ const Ut = (o) => {
|
|
|
8532
8532
|
iconSize: "md",
|
|
8533
8533
|
className: `${i}__active-icon`
|
|
8534
8534
|
}
|
|
8535
|
-
),
|
|
8535
|
+
), _ = (O) => {
|
|
8536
8536
|
var R;
|
|
8537
8537
|
O.key === "Enter" && ((R = y.current[h].querySelector("a")) == null || R.click());
|
|
8538
8538
|
}, p = (O) => {
|
|
@@ -8546,7 +8546,7 @@ const Ut = (o) => {
|
|
|
8546
8546
|
};
|
|
8547
8547
|
}
|
|
8548
8548
|
}, [m]);
|
|
8549
|
-
const
|
|
8549
|
+
const v = ({
|
|
8550
8550
|
item: O,
|
|
8551
8551
|
level: R
|
|
8552
8552
|
}) => ve(w({}, O), {
|
|
@@ -8560,13 +8560,13 @@ const Ut = (o) => {
|
|
|
8560
8560
|
}), C = (O) => {
|
|
8561
8561
|
const R = [];
|
|
8562
8562
|
return O.forEach((B) => {
|
|
8563
|
-
B.links ? (R.push(
|
|
8564
|
-
j.links ? (R.push(
|
|
8563
|
+
B.links ? (R.push(v({ item: B, level: "top-level" })), B.links.forEach((j) => {
|
|
8564
|
+
j.links ? (R.push(v({ item: j, level: "second-level" })), j.links.forEach((W) => {
|
|
8565
8565
|
R.push(
|
|
8566
|
-
|
|
8566
|
+
v({ item: W, level: "third-level" })
|
|
8567
8567
|
);
|
|
8568
|
-
})) : R.push(
|
|
8569
|
-
})) : R.push(
|
|
8568
|
+
})) : R.push(v({ item: j, level: "second-level" }));
|
|
8569
|
+
})) : R.push(v({ item: B, level: "top-level" }));
|
|
8570
8570
|
}), R;
|
|
8571
8571
|
}, { refs: E, context: $ } = De({
|
|
8572
8572
|
placement: "bottom-start",
|
|
@@ -8580,9 +8580,9 @@ const Ut = (o) => {
|
|
|
8580
8580
|
loop: !0,
|
|
8581
8581
|
openOnArrowKeyDown: !0,
|
|
8582
8582
|
focusItemOnHover: !0
|
|
8583
|
-
}), z = tt($, { event: "mousedown" }), M = Re($), k = Ae($, { role: "menu" }), { getReferenceProps: L, getFloatingProps: H, getItemProps:
|
|
8583
|
+
}), z = tt($, { event: "mousedown" }), M = Re($), k = Ae($, { role: "menu" }), { getReferenceProps: L, getFloatingProps: H, getItemProps: V } = Pe(
|
|
8584
8584
|
[M, k, z, x]
|
|
8585
|
-
), { isMounted:
|
|
8585
|
+
), { isMounted: I, styles: N } = st($, {
|
|
8586
8586
|
duration: {
|
|
8587
8587
|
open: 300,
|
|
8588
8588
|
close: 300
|
|
@@ -8612,7 +8612,7 @@ const Ut = (o) => {
|
|
|
8612
8612
|
className: `${i}__trigger-icon`
|
|
8613
8613
|
}
|
|
8614
8614
|
)
|
|
8615
|
-
),
|
|
8615
|
+
), I && /* @__PURE__ */ e.createElement(
|
|
8616
8616
|
"ul",
|
|
8617
8617
|
w({
|
|
8618
8618
|
className: `${i}__dropdown ${i}__menu ${i}__menu--top-level`,
|
|
@@ -8625,13 +8625,13 @@ const Ut = (o) => {
|
|
|
8625
8625
|
"li",
|
|
8626
8626
|
w({
|
|
8627
8627
|
key: R,
|
|
8628
|
-
onKeyDown:
|
|
8628
|
+
onKeyDown: _,
|
|
8629
8629
|
className: `${i}__item ${i}__item--${O.level} ${O.isActive === !0 ? `${i}__item--active` : ""}`,
|
|
8630
8630
|
tabIndex: h === R ? 0 : -1,
|
|
8631
8631
|
ref: (B) => {
|
|
8632
8632
|
y.current[R] = B;
|
|
8633
8633
|
}
|
|
8634
|
-
},
|
|
8634
|
+
}, V()),
|
|
8635
8635
|
O.linkContent,
|
|
8636
8636
|
O.isActive === !0 && b
|
|
8637
8637
|
))
|
|
@@ -8993,7 +8993,7 @@ const Ut = (o) => {
|
|
|
8993
8993
|
const h = ze(It);
|
|
8994
8994
|
let u = !0, f = null;
|
|
8995
8995
|
h && (u = h.isSidebarExpanded, f = h.logoLinkContent);
|
|
8996
|
-
const g = "pds-dashboard-nav", b = u ? `${g}--expanded` : `${g}--collapsed`,
|
|
8996
|
+
const g = "pds-dashboard-nav", b = u ? `${g}--expanded` : `${g}--collapsed`, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${g}__menu ${g}__menu--top-level` }, a.map((C, E) => /* @__PURE__ */ e.createElement(
|
|
8997
8997
|
C2,
|
|
8998
8998
|
{
|
|
8999
8999
|
key: E,
|
|
@@ -9011,7 +9011,7 @@ const Ut = (o) => {
|
|
|
9011
9011
|
C.links,
|
|
9012
9012
|
C.icon
|
|
9013
9013
|
)
|
|
9014
|
-
})),
|
|
9014
|
+
})), v = /* @__PURE__ */ e.createElement(
|
|
9015
9015
|
ts,
|
|
9016
9016
|
{
|
|
9017
9017
|
menuItems: p,
|
|
@@ -9032,7 +9032,7 @@ const Ut = (o) => {
|
|
|
9032
9032
|
linkContent: f
|
|
9033
9033
|
}
|
|
9034
9034
|
),
|
|
9035
|
-
m ?
|
|
9035
|
+
m ? v : _
|
|
9036
9036
|
);
|
|
9037
9037
|
}, pt = (r) => {
|
|
9038
9038
|
var o = r, {
|
|
@@ -9081,10 +9081,10 @@ const Ut = (o) => {
|
|
|
9081
9081
|
"translationStrings",
|
|
9082
9082
|
"className"
|
|
9083
9083
|
]);
|
|
9084
|
-
const [b,
|
|
9084
|
+
const [b, _] = P(!1);
|
|
9085
9085
|
let p = !1;
|
|
9086
|
-
const
|
|
9087
|
-
|
|
9086
|
+
const v = ze(Ue);
|
|
9087
|
+
v && (p = v.isMobile);
|
|
9088
9088
|
const C = ze(It);
|
|
9089
9089
|
C && (l = C.logoLinkContent);
|
|
9090
9090
|
const E = "pds-navbar", $ = c ? `${E}--noBorder` : "", y = s !== "default" ? `${E}--${s}` : "", x = p ? `${E}--isMobile` : `${E}--notMobile`, z = (S) => {
|
|
@@ -9093,7 +9093,7 @@ const Ut = (o) => {
|
|
|
9093
9093
|
switch (D) {
|
|
9094
9094
|
case "Esc":
|
|
9095
9095
|
case "Escape":
|
|
9096
|
-
|
|
9096
|
+
_(!1), F = !0;
|
|
9097
9097
|
break;
|
|
9098
9098
|
}
|
|
9099
9099
|
F && (S.stopPropagation(), S.preventDefault());
|
|
@@ -9101,7 +9101,7 @@ const Ut = (o) => {
|
|
|
9101
9101
|
oe(() => (window.addEventListener("keyup", z), () => {
|
|
9102
9102
|
window.removeEventListener("keyup", z);
|
|
9103
9103
|
}), []);
|
|
9104
|
-
const M = () =>
|
|
9104
|
+
const M = () => _(!b), k = Js();
|
|
9105
9105
|
oe(() => {
|
|
9106
9106
|
if (p && t) {
|
|
9107
9107
|
const S = ys(
|
|
@@ -9115,7 +9115,7 @@ const Ut = (o) => {
|
|
|
9115
9115
|
}
|
|
9116
9116
|
}, [b]);
|
|
9117
9117
|
const L = (S) => {
|
|
9118
|
-
S.target.nodeName === "A" &&
|
|
9118
|
+
S.target.nodeName === "A" && _(!1);
|
|
9119
9119
|
};
|
|
9120
9120
|
oe(() => {
|
|
9121
9121
|
if (b) {
|
|
@@ -9129,7 +9129,7 @@ const Ut = (o) => {
|
|
|
9129
9129
|
}, [p]), oe(() => {
|
|
9130
9130
|
b ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
9131
9131
|
}, [b]);
|
|
9132
|
-
const H = Yt(t),
|
|
9132
|
+
const H = Yt(t), V = H["items-left"], I = H["items-right"];
|
|
9133
9133
|
let N = "default";
|
|
9134
9134
|
(s === "reverse" || s === "reverse-transparent") && (N = "reverse");
|
|
9135
9135
|
const O = Ge(l) ? l.props.children : null, R = Ge(l) && O ? Qe(l, {
|
|
@@ -9157,7 +9157,7 @@ const Ut = (o) => {
|
|
|
9157
9157
|
className: b ? `${E}__mobile ${E}__mobile--open` : `${E}__mobile ${E}__mobile--closed`,
|
|
9158
9158
|
ref: k
|
|
9159
9159
|
},
|
|
9160
|
-
/* @__PURE__ */ e.createElement(pt, null,
|
|
9160
|
+
/* @__PURE__ */ e.createElement(pt, null, V, I)
|
|
9161
9161
|
), U = /* @__PURE__ */ e.createElement(
|
|
9162
9162
|
m1,
|
|
9163
9163
|
{
|
|
@@ -9167,7 +9167,7 @@ const Ut = (o) => {
|
|
|
9167
9167
|
}
|
|
9168
9168
|
},
|
|
9169
9169
|
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(pt, { className: `${E}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${E}__inner-mobile` }, B(), t && j)), /* @__PURE__ */ e.createElement(pt, null, t && W))
|
|
9170
|
-
), K = /* @__PURE__ */ e.createElement(pt, { width: a, className: `${E}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${E}__logo` }, B()), /* @__PURE__ */ e.createElement("div", { className: `${E}__content` },
|
|
9170
|
+
), K = /* @__PURE__ */ e.createElement(pt, { width: a, className: `${E}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${E}__logo` }, B()), /* @__PURE__ */ e.createElement("div", { className: `${E}__content` }, V ? /* @__PURE__ */ e.createElement("div", { className: `${E}__items-left` }, V) : /* @__PURE__ */ e.createElement("span", null), I && /* @__PURE__ */ e.createElement("div", { className: `${E}__items-right` }, I)));
|
|
9171
9171
|
return /* @__PURE__ */ e.createElement(
|
|
9172
9172
|
"header",
|
|
9173
9173
|
w({
|
|
@@ -9210,13 +9210,13 @@ const Ut = (o) => {
|
|
|
9210
9210
|
}), []);
|
|
9211
9211
|
const b = () => {
|
|
9212
9212
|
g(window.innerWidth);
|
|
9213
|
-
},
|
|
9213
|
+
}, _ = f <= o, p = ($) => {
|
|
9214
9214
|
const y = $.target;
|
|
9215
9215
|
y.classList.toggle(`${u}__toggle--expanded`), y.setAttribute(
|
|
9216
9216
|
"aria-expanded",
|
|
9217
9217
|
y.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9218
9218
|
), y.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9219
|
-
},
|
|
9219
|
+
}, v = ($, y) => {
|
|
9220
9220
|
const { linkContent: x, links: z } = $, M = `${u}__item`, k = `${u}__menu`;
|
|
9221
9221
|
return /* @__PURE__ */ e.createElement(
|
|
9222
9222
|
"li",
|
|
@@ -9270,7 +9270,7 @@ const Ut = (o) => {
|
|
|
9270
9270
|
x
|
|
9271
9271
|
)
|
|
9272
9272
|
);
|
|
9273
|
-
}, C = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map(($, y) =>
|
|
9273
|
+
}, C = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map(($, y) => v($, y)))), E = /* @__PURE__ */ e.createElement(
|
|
9274
9274
|
ts,
|
|
9275
9275
|
{
|
|
9276
9276
|
headingText: a,
|
|
@@ -9284,7 +9284,7 @@ const Ut = (o) => {
|
|
|
9284
9284
|
"aria-label": t,
|
|
9285
9285
|
className: Z([u, i != null ? i : ""])
|
|
9286
9286
|
}, m),
|
|
9287
|
-
|
|
9287
|
+
_ && s ? E : C
|
|
9288
9288
|
);
|
|
9289
9289
|
}, rn = (d) => {
|
|
9290
9290
|
var h = d, {
|
|
@@ -9315,13 +9315,13 @@ const Ut = (o) => {
|
|
|
9315
9315
|
}), []);
|
|
9316
9316
|
const b = () => {
|
|
9317
9317
|
g(window.innerWidth);
|
|
9318
|
-
},
|
|
9318
|
+
}, _ = f <= o, p = ($) => {
|
|
9319
9319
|
const y = $.target;
|
|
9320
9320
|
y.classList.toggle(`${u}__toggle--expanded`), y.setAttribute(
|
|
9321
9321
|
"aria-expanded",
|
|
9322
9322
|
y.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9323
9323
|
), y.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9324
|
-
},
|
|
9324
|
+
}, v = ($, y) => {
|
|
9325
9325
|
const { linkContent: x, links: z } = $, M = `${u}__item`, k = `${u}__menu`;
|
|
9326
9326
|
return /* @__PURE__ */ e.createElement(
|
|
9327
9327
|
"li",
|
|
@@ -9389,19 +9389,19 @@ const Ut = (o) => {
|
|
|
9389
9389
|
He(L) ? `${k}--expanded` : null
|
|
9390
9390
|
])
|
|
9391
9391
|
},
|
|
9392
|
-
L.links.map((
|
|
9392
|
+
L.links.map((V, I) => /* @__PURE__ */ e.createElement(
|
|
9393
9393
|
"li",
|
|
9394
9394
|
{
|
|
9395
|
-
key:
|
|
9395
|
+
key: I,
|
|
9396
9396
|
className: Z([
|
|
9397
9397
|
M,
|
|
9398
9398
|
`${M}--third-level`,
|
|
9399
|
-
He(
|
|
9399
|
+
He(V) ? `${M}--active` : null
|
|
9400
9400
|
])
|
|
9401
9401
|
},
|
|
9402
9402
|
it(
|
|
9403
|
-
|
|
9404
|
-
|
|
9403
|
+
V.linkContent,
|
|
9404
|
+
V.links
|
|
9405
9405
|
)
|
|
9406
9406
|
))
|
|
9407
9407
|
)) : (
|
|
@@ -9414,7 +9414,7 @@ const Ut = (o) => {
|
|
|
9414
9414
|
x
|
|
9415
9415
|
)
|
|
9416
9416
|
);
|
|
9417
|
-
}, C = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map(($, y) =>
|
|
9417
|
+
}, C = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map(($, y) => v($, y)))), E = /* @__PURE__ */ e.createElement(
|
|
9418
9418
|
ts,
|
|
9419
9419
|
{
|
|
9420
9420
|
headingText: a,
|
|
@@ -9428,7 +9428,7 @@ const Ut = (o) => {
|
|
|
9428
9428
|
"aria-label": t,
|
|
9429
9429
|
className: Z([u, i != null ? i : ""])
|
|
9430
9430
|
}, m),
|
|
9431
|
-
|
|
9431
|
+
_ && s ? E : C
|
|
9432
9432
|
);
|
|
9433
9433
|
}, on = (m) => {
|
|
9434
9434
|
var d = m, {
|
|
@@ -9448,18 +9448,18 @@ const Ut = (o) => {
|
|
|
9448
9448
|
"withinNavbar",
|
|
9449
9449
|
"className"
|
|
9450
9450
|
]);
|
|
9451
|
-
const [h, u] = P(null), [f, g] = P(!1), b = le([]),
|
|
9451
|
+
const [h, u] = P(null), [f, g] = P(!1), b = le([]), _ = le([]);
|
|
9452
9452
|
let p = !1;
|
|
9453
|
-
const
|
|
9454
|
-
|
|
9453
|
+
const v = ze(Ue);
|
|
9454
|
+
v && (p = v.isMobile);
|
|
9455
9455
|
const C = o && p, E = "pds-user-menu", $ = C ? `${E}--isMobile` : null, y = `${E}__menu`, { refs: x, floatingStyles: z, context: M } = De({
|
|
9456
9456
|
placement: "bottom-end",
|
|
9457
9457
|
open: f,
|
|
9458
9458
|
onOpenChange: g,
|
|
9459
9459
|
middleware: [kt(12), Ht(), zt()],
|
|
9460
9460
|
whileElementsMounted: We
|
|
9461
|
-
}), k = tt(M, { event: "mousedown" }), L = Re(M), H = Ae(M, { role: "menu" }),
|
|
9462
|
-
listRef:
|
|
9461
|
+
}), k = tt(M, { event: "mousedown" }), L = Re(M), H = Ae(M, { role: "menu" }), V = le([]), I = gt(M, {
|
|
9462
|
+
listRef: V,
|
|
9463
9463
|
activeIndex: h,
|
|
9464
9464
|
onNavigate: u,
|
|
9465
9465
|
loop: !0,
|
|
@@ -9467,7 +9467,7 @@ const Ut = (o) => {
|
|
|
9467
9467
|
focusItemOnOpen: !1,
|
|
9468
9468
|
focusItemOnHover: !0
|
|
9469
9469
|
}), { getReferenceProps: N, getFloatingProps: O, getItemProps: R } = Pe(
|
|
9470
|
-
[L, H, k,
|
|
9470
|
+
[L, H, k, I]
|
|
9471
9471
|
), { isMounted: B, styles: j } = st(M, {
|
|
9472
9472
|
duration: {
|
|
9473
9473
|
open: 300,
|
|
@@ -9493,11 +9493,11 @@ const Ut = (o) => {
|
|
|
9493
9493
|
), U = /* @__PURE__ */ e.createElement(A, { iconName: "angleDown", className: `${E}__trigger-icon` }), K = /* @__PURE__ */ e.createElement("li", { className: `${E}__user-details`, role: "presentation" }, C ? null : /* @__PURE__ */ e.createElement("div", { className: `${E}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${E}__user-email` }, a));
|
|
9494
9494
|
s.forEach((ee) => {
|
|
9495
9495
|
const ie = ee.id ? ee.id : Ke();
|
|
9496
|
-
b.current.push(ie),
|
|
9496
|
+
b.current.push(ie), _.current.push(ee);
|
|
9497
9497
|
});
|
|
9498
9498
|
const S = (ee) => {
|
|
9499
|
-
const ie = b.current.indexOf(ee), ce =
|
|
9500
|
-
ce.linkContent && !ce.disabled && (
|
|
9499
|
+
const ie = b.current.indexOf(ee), ce = _.current[ie];
|
|
9500
|
+
ce.linkContent && !ce.disabled && (V.current[ie].querySelector("a").click(), g(!1)), ce.callback && !ce.disabled && (ce.callback(ce), g(!1));
|
|
9501
9501
|
}, D = (ee) => {
|
|
9502
9502
|
ee.preventDefault(), ee.key === "Enter" && S(ee.currentTarget.id);
|
|
9503
9503
|
}, F = (ee) => {
|
|
@@ -9513,7 +9513,7 @@ const Ut = (o) => {
|
|
|
9513
9513
|
role: "menuitem",
|
|
9514
9514
|
tabIndex: h === ie ? 0 : -1,
|
|
9515
9515
|
ref: (me) => {
|
|
9516
|
-
|
|
9516
|
+
V.current[ie] = me;
|
|
9517
9517
|
},
|
|
9518
9518
|
onKeyDown: D
|
|
9519
9519
|
}, R({ onClick: (me) => F(me) })),
|
|
@@ -9613,7 +9613,7 @@ const Ut = (o) => {
|
|
|
9613
9613
|
info: `${f}--info`,
|
|
9614
9614
|
warning: `${f}--warning`,
|
|
9615
9615
|
critical: `${f}--critical`
|
|
9616
|
-
},
|
|
9616
|
+
}, _ = u > 0 ? d[0].type : null, p = _ ? `${f}-group--${_}` : null, v = (z) => ({
|
|
9617
9617
|
zIndex: St - z
|
|
9618
9618
|
}), C = (z) => z === 0 ? 0 : -1, E = () => {
|
|
9619
9619
|
const z = document.getElementsByClassName(
|
|
@@ -9638,7 +9638,7 @@ const Ut = (o) => {
|
|
|
9638
9638
|
]), document.getElementById(d[0].id).classList.remove(`${f}--fading`);
|
|
9639
9639
|
}, 200);
|
|
9640
9640
|
}, x = (z, M) => {
|
|
9641
|
-
const { id: k, isDismissible: L, message: H, onDismiss:
|
|
9641
|
+
const { id: k, isDismissible: L, message: H, onDismiss: V, type: I } = z, O = ["critical", "warning"].includes(I) ? "alert" : "status", R = `${r[I]}: `, B = (j) => {
|
|
9642
9642
|
j.preventDefault(), document.getElementById(k).classList.add(`${f}--dismissing`), setTimeout(() => {
|
|
9643
9643
|
if (u === 1) {
|
|
9644
9644
|
h([]);
|
|
@@ -9646,7 +9646,7 @@ const Ut = (o) => {
|
|
|
9646
9646
|
}
|
|
9647
9647
|
h(
|
|
9648
9648
|
(W) => W.filter((U) => U.id !== k)
|
|
9649
|
-
),
|
|
9649
|
+
), V && z.onDismiss();
|
|
9650
9650
|
}, 200);
|
|
9651
9651
|
};
|
|
9652
9652
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9654,16 +9654,16 @@ const Ut = (o) => {
|
|
|
9654
9654
|
{
|
|
9655
9655
|
key: k,
|
|
9656
9656
|
id: k,
|
|
9657
|
-
className: Z([f, b[
|
|
9657
|
+
className: Z([f, b[I]]),
|
|
9658
9658
|
role: O,
|
|
9659
9659
|
style: {
|
|
9660
|
-
zIndex:
|
|
9660
|
+
zIndex: v(M).zIndex
|
|
9661
9661
|
}
|
|
9662
9662
|
},
|
|
9663
9663
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
9664
9664
|
A,
|
|
9665
9665
|
{
|
|
9666
|
-
iconName: w2[
|
|
9666
|
+
iconName: w2[I],
|
|
9667
9667
|
iconSize: "md",
|
|
9668
9668
|
className: `${f}__icon ${f}__icon--${z.type}`
|
|
9669
9669
|
}
|
|
@@ -9799,7 +9799,7 @@ const Ut = (o) => {
|
|
|
9799
9799
|
discovery: `${g}--discovery`,
|
|
9800
9800
|
dismissing: `${g}--dismissing`,
|
|
9801
9801
|
dismissed: `${g}--dismissed`
|
|
9802
|
-
},
|
|
9802
|
+
}, _ = o ? `${g}--hasTitle` : null, v = ["critical", "warning"].includes(l) ? "alert" : "status", C = `${i[l]}: `, E = () => {
|
|
9803
9803
|
f.current.addEventListener("animationend", $, {
|
|
9804
9804
|
once: !0
|
|
9805
9805
|
});
|
|
@@ -9813,10 +9813,10 @@ const Ut = (o) => {
|
|
|
9813
9813
|
return /* @__PURE__ */ e.createElement(
|
|
9814
9814
|
"div",
|
|
9815
9815
|
w({
|
|
9816
|
-
className: [g, b[l],
|
|
9816
|
+
className: [g, b[l], _, m != null ? m : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
9817
9817
|
id: s,
|
|
9818
9818
|
ref: f,
|
|
9819
|
-
role:
|
|
9819
|
+
role: v
|
|
9820
9820
|
}, d),
|
|
9821
9821
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
9822
9822
|
A,
|
|
@@ -9890,18 +9890,18 @@ const Ut = (o) => {
|
|
|
9890
9890
|
"className"
|
|
9891
9891
|
]);
|
|
9892
9892
|
var K, S, D, F;
|
|
9893
|
-
const [
|
|
9893
|
+
const [_, p] = P(d);
|
|
9894
9894
|
oe(() => {
|
|
9895
9895
|
p(d);
|
|
9896
9896
|
}, [d]), oe(() => {
|
|
9897
|
-
h(
|
|
9898
|
-
}, [
|
|
9899
|
-
const
|
|
9897
|
+
h(_);
|
|
9898
|
+
}, [_]);
|
|
9899
|
+
const v = typeof s, C = "pds-popover", E = [
|
|
9900
9900
|
`${C}__trigger-custom`,
|
|
9901
|
-
|
|
9901
|
+
v === "string" ? `${C}__trigger-text` : ""
|
|
9902
9902
|
].join(" ").trim().replace(/\s+/g, " "), $ = s ? c : 0, y = le(null), { refs: x, floatingStyles: z, context: M, middlewareData: k } = De({
|
|
9903
9903
|
placement: o,
|
|
9904
|
-
open:
|
|
9904
|
+
open: _,
|
|
9905
9905
|
onOpenChange(G) {
|
|
9906
9906
|
p(G), G || r();
|
|
9907
9907
|
},
|
|
@@ -9914,10 +9914,10 @@ const Ut = (o) => {
|
|
|
9914
9914
|
whileElementsMounted: We
|
|
9915
9915
|
}), L = () => {
|
|
9916
9916
|
p(!1), r && r();
|
|
9917
|
-
}, H = tt(M),
|
|
9917
|
+
}, H = tt(M), V = Re(M), I = Ae(M), { getReferenceProps: N, getFloatingProps: O } = Pe([
|
|
9918
9918
|
H,
|
|
9919
|
-
|
|
9920
|
-
|
|
9919
|
+
V,
|
|
9920
|
+
I
|
|
9921
9921
|
]), R = (S = (K = k.arrow) == null ? void 0 : K.x) != null ? S : 0, B = (F = (D = k.arrow) == null ? void 0 : D.y) != null ? F : 0, j = R + ps / 2, W = B + Ye, { isMounted: U } = st(M, {
|
|
9922
9922
|
initial: {
|
|
9923
9923
|
transform: "scale(0)"
|
|
@@ -10008,7 +10008,7 @@ const Ut = (o) => {
|
|
|
10008
10008
|
"size",
|
|
10009
10009
|
"className"
|
|
10010
10010
|
]);
|
|
10011
|
-
const g = s || Ke(), b = "pds-progress-bar",
|
|
10011
|
+
const g = s || Ke(), b = "pds-progress-bar", _ = l ? `${b}__label` : "visually-hidden", p = `${b}__track ${b}__track--${m}`, v = o > 100 ? 100 : o;
|
|
10012
10012
|
let C = "neutral";
|
|
10013
10013
|
t.forEach((x) => {
|
|
10014
10014
|
o >= x.percentage && (C = x.colorType);
|
|
@@ -10018,9 +10018,9 @@ const Ut = (o) => {
|
|
|
10018
10018
|
"div",
|
|
10019
10019
|
w({
|
|
10020
10020
|
className: [b, d].join(" ").trim().replace(/\s+/g, " "),
|
|
10021
|
-
style: { "--bar-percentage": `${
|
|
10021
|
+
style: { "--bar-percentage": `${v}%` }
|
|
10022
10022
|
}, h),
|
|
10023
|
-
/* @__PURE__ */ e.createElement("div", { id: g, className:
|
|
10023
|
+
/* @__PURE__ */ e.createElement("div", { id: g, className: _ }, a),
|
|
10024
10024
|
($ || i) && /* @__PURE__ */ e.createElement("div", { className: `${b}__details` }, $ && E, i && /* @__PURE__ */ e.createElement(
|
|
10025
10025
|
"div",
|
|
10026
10026
|
{
|
|
@@ -10037,7 +10037,7 @@ const Ut = (o) => {
|
|
|
10037
10037
|
{
|
|
10038
10038
|
role: "progressbar",
|
|
10039
10039
|
"aria-labelledby": g,
|
|
10040
|
-
"aria-valuenow":
|
|
10040
|
+
"aria-valuenow": v,
|
|
10041
10041
|
className: p
|
|
10042
10042
|
},
|
|
10043
10043
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10045,7 +10045,7 @@ const Ut = (o) => {
|
|
|
10045
10045
|
{
|
|
10046
10046
|
className: `${b}__bar`,
|
|
10047
10047
|
style: {
|
|
10048
|
-
width: `${
|
|
10048
|
+
width: `${v}%`,
|
|
10049
10049
|
backgroundColor: `var(${hs[C]})`
|
|
10050
10050
|
}
|
|
10051
10051
|
}
|
|
@@ -10186,9 +10186,9 @@ const Ut = (o) => {
|
|
|
10186
10186
|
c !== void 0 && u(c);
|
|
10187
10187
|
}, [c]);
|
|
10188
10188
|
const f = (p) => {
|
|
10189
|
-
const
|
|
10190
|
-
if (
|
|
10191
|
-
const C = parseInt(
|
|
10189
|
+
const v = p.currentTarget.getAttribute("data-tabnumber");
|
|
10190
|
+
if (v) {
|
|
10191
|
+
const C = parseInt(v, 10);
|
|
10192
10192
|
u(C);
|
|
10193
10193
|
}
|
|
10194
10194
|
}, g = le([]);
|
|
@@ -10204,19 +10204,19 @@ const Ut = (o) => {
|
|
|
10204
10204
|
return;
|
|
10205
10205
|
}
|
|
10206
10206
|
}, [h]);
|
|
10207
|
-
const b = (p,
|
|
10207
|
+
const b = (p, v) => {
|
|
10208
10208
|
const C = h;
|
|
10209
|
-
let E = g.current[
|
|
10210
|
-
E || (E =
|
|
10211
|
-
},
|
|
10212
|
-
const
|
|
10213
|
-
b((h + 1) %
|
|
10209
|
+
let E = g.current[v === "next" ? C + 1 < g.current.length ? C + 1 : 0 : C - 1 >= 0 ? C - 1 : g.current.length - 1];
|
|
10210
|
+
E || (E = v == "next" ? g.current[p + 1] == null ? g.current[0] : g.current[p + 1] : g.current[p - 1]), E.focus();
|
|
10211
|
+
}, _ = (p) => {
|
|
10212
|
+
const v = g.current.length, C = () => {
|
|
10213
|
+
b((h + 1) % v, "next"), u(h + 1);
|
|
10214
10214
|
}, E = () => {
|
|
10215
|
-
b((h - 1 +
|
|
10215
|
+
b((h - 1 + v) % v, "prev"), u(h - 1);
|
|
10216
10216
|
}, $ = () => {
|
|
10217
10217
|
b(0), u(0);
|
|
10218
10218
|
}, y = () => {
|
|
10219
|
-
b(
|
|
10219
|
+
b(v - 1), u(v - 1);
|
|
10220
10220
|
}, x = () => {
|
|
10221
10221
|
g.current[h].focus();
|
|
10222
10222
|
}, M = {
|
|
@@ -10237,7 +10237,7 @@ const Ut = (o) => {
|
|
|
10237
10237
|
"aria-label": t,
|
|
10238
10238
|
"aria-orientation": "horizontal"
|
|
10239
10239
|
},
|
|
10240
|
-
r.map(({ disabled: p, icon:
|
|
10240
|
+
r.map(({ disabled: p, icon: v, tabId: C, tabLabel: E, tally: $ }, y) => /* @__PURE__ */ e.createElement(
|
|
10241
10241
|
"button",
|
|
10242
10242
|
{
|
|
10243
10243
|
className: `${d}__tab`,
|
|
@@ -10246,7 +10246,7 @@ const Ut = (o) => {
|
|
|
10246
10246
|
role: "tab",
|
|
10247
10247
|
id: C,
|
|
10248
10248
|
onKeyDown: (x) => {
|
|
10249
|
-
x.preventDefault(),
|
|
10249
|
+
x.preventDefault(), _(x);
|
|
10250
10250
|
},
|
|
10251
10251
|
key: E,
|
|
10252
10252
|
ref: (x) => p ? null : g.current[y] = x,
|
|
@@ -10255,9 +10255,9 @@ const Ut = (o) => {
|
|
|
10255
10255
|
"aria-disabled": !!p,
|
|
10256
10256
|
onClick: p ? null : f
|
|
10257
10257
|
},
|
|
10258
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
10258
|
+
/* @__PURE__ */ e.createElement("div", { key: v, className: `${d}__tab-label` }, v ? /* @__PURE__ */ e.createElement(A, { iconName: v, iconSize: "md" }) : null, " ", E, r[y].tally ? /* @__PURE__ */ e.createElement(Ut, { label: $.label, type: $.type }) : null)
|
|
10259
10259
|
))
|
|
10260
|
-
), r.map(({ disabled: p, icon:
|
|
10260
|
+
), r.map(({ disabled: p, icon: v, panelContent: C, tabLabel: E, tally: $ }, y) => /* @__PURE__ */ e.createElement(
|
|
10261
10261
|
"div",
|
|
10262
10262
|
{
|
|
10263
10263
|
className: `${d}__panel`,
|
|
@@ -10274,13 +10274,13 @@ const Ut = (o) => {
|
|
|
10274
10274
|
role: "tab",
|
|
10275
10275
|
"data-tabnumber": y,
|
|
10276
10276
|
key: E,
|
|
10277
|
-
onKeyDown:
|
|
10277
|
+
onKeyDown: _,
|
|
10278
10278
|
"aria-disabled": !!p,
|
|
10279
10279
|
"aria-controls": `tabpanel_${y}`,
|
|
10280
10280
|
tabIndex: h === y ? 1 : -1,
|
|
10281
10281
|
onClick: p ? null : f
|
|
10282
10282
|
},
|
|
10283
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
10283
|
+
/* @__PURE__ */ e.createElement("div", { key: v, className: `${d}__tab-label` }, v ? /* @__PURE__ */ e.createElement(A, { iconSize: "md", iconName: v }) : null, " ", E, r[y].tally ? /* @__PURE__ */ e.createElement(Ut, { label: $.label, type: $.type }) : null),
|
|
10284
10284
|
y == h ? /* @__PURE__ */ e.createElement(
|
|
10285
10285
|
A,
|
|
10286
10286
|
{
|
|
@@ -10350,15 +10350,15 @@ const k2 = (t) => {
|
|
|
10350
10350
|
"tagLabel",
|
|
10351
10351
|
"className"
|
|
10352
10352
|
]);
|
|
10353
|
-
const [h, u] = P(!0), f = "pds-tag", g = r ? `${f}--${r}` : `${f}--${k2(o)}`, b = h ? null : "pds-tag--hide",
|
|
10353
|
+
const [h, u] = P(!0), f = "pds-tag", g = r ? `${f}--${r}` : `${f}--${k2(o)}`, b = h ? null : "pds-tag--hide", _ = () => {
|
|
10354
10354
|
u((E) => !E);
|
|
10355
10355
|
};
|
|
10356
|
-
let p,
|
|
10357
|
-
return t && !s && Ge(t) ? (p = t.type,
|
|
10356
|
+
let p, v, C;
|
|
10357
|
+
return t && !s && Ge(t) ? (p = t.type, v = t.props.href ? "href" : "to", C = v === "href" ? t.props.href : t.props.to) : (p = "span", v = null, C = null), /* @__PURE__ */ e.createElement(
|
|
10358
10358
|
p,
|
|
10359
10359
|
w({
|
|
10360
|
-
href:
|
|
10361
|
-
to:
|
|
10360
|
+
href: v === "href" ? C : null,
|
|
10361
|
+
to: v === "to" ? C : null,
|
|
10362
10362
|
className: [f, g, b, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10363
10363
|
}, i),
|
|
10364
10364
|
/* @__PURE__ */ e.createElement("span", { className: `${f}__label`, title: o }, H2(o, 20)),
|
|
@@ -10369,7 +10369,7 @@ const k2 = (t) => {
|
|
|
10369
10369
|
className: `${f}__remove`,
|
|
10370
10370
|
"aria-label": `${c}: ${o}`,
|
|
10371
10371
|
onClick: () => {
|
|
10372
|
-
|
|
10372
|
+
_(), a();
|
|
10373
10373
|
}
|
|
10374
10374
|
},
|
|
10375
10375
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10498,7 +10498,7 @@ const k2 = (t) => {
|
|
|
10498
10498
|
"children",
|
|
10499
10499
|
"className"
|
|
10500
10500
|
]);
|
|
10501
|
-
const f = "pds-flex", g = l ? `${f}-gap--${l}` : null, b = a ? `${f}-direction--${a}` : null,
|
|
10501
|
+
const f = "pds-flex", g = l ? `${f}-gap--${l}` : null, b = a ? `${f}-direction--${a}` : null, _ = c ? `${f}--${c}` : null, p = r ? `${f}-justify--${r}` : null, v = s ? `${f}-align-items--${s}` : null, C = t ? `${f}-align-content--${t}` : null, E = o && o !== "same" ? `${f}-mobile--${o}` : null;
|
|
10502
10502
|
return /* @__PURE__ */ e.createElement(
|
|
10503
10503
|
"div",
|
|
10504
10504
|
w({
|
|
@@ -10506,9 +10506,9 @@ const k2 = (t) => {
|
|
|
10506
10506
|
"pds-flex-container",
|
|
10507
10507
|
g,
|
|
10508
10508
|
b,
|
|
10509
|
-
v,
|
|
10510
|
-
p,
|
|
10511
10509
|
_,
|
|
10510
|
+
p,
|
|
10511
|
+
v,
|
|
10512
10512
|
C,
|
|
10513
10513
|
E,
|
|
10514
10514
|
m
|
|
@@ -10678,19 +10678,19 @@ const I2 = (o) => {
|
|
|
10678
10678
|
case "one-third-end":
|
|
10679
10679
|
g = f.concat(u), b = f.concat(h);
|
|
10680
10680
|
}
|
|
10681
|
-
const
|
|
10681
|
+
const _ = {};
|
|
10682
10682
|
e.Children.forEach(t, (C) => {
|
|
10683
10683
|
const E = C.props.slot;
|
|
10684
|
-
E && (
|
|
10684
|
+
E && (_[E] ? _[E].push(C) : _[E] = [C]);
|
|
10685
10685
|
});
|
|
10686
|
-
const p =
|
|
10686
|
+
const p = _["first-item"], v = _["second-item"];
|
|
10687
10687
|
return /* @__PURE__ */ e.createElement(
|
|
10688
10688
|
"div",
|
|
10689
10689
|
w({
|
|
10690
10690
|
className: [i, m, c].join(" ").trim().replace(/\s+/g, " ")
|
|
10691
10691
|
}, r),
|
|
10692
10692
|
/* @__PURE__ */ e.createElement("div", { className: g.join(" ").trim() }, p),
|
|
10693
|
-
/* @__PURE__ */ e.createElement("div", { className: b.join(" ").trim() },
|
|
10693
|
+
/* @__PURE__ */ e.createElement("div", { className: b.join(" ").trim() }, v)
|
|
10694
10694
|
);
|
|
10695
10695
|
};
|
|
10696
10696
|
I2.propTypes = {
|
|
@@ -10735,13 +10735,13 @@ const $n = ({
|
|
|
10735
10735
|
const g = ze(Ue);
|
|
10736
10736
|
g && (f = g.isMobile);
|
|
10737
10737
|
const b = Yt(t);
|
|
10738
|
-
let
|
|
10739
|
-
r === "narrow" && (
|
|
10740
|
-
const
|
|
10738
|
+
let _ = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9", p = "pds-grid-item pds-grid-item--lg-3";
|
|
10739
|
+
r === "narrow" && (_ = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", p = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (_ = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", p = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10740
|
+
const v = /* @__PURE__ */ e.createElement(
|
|
10741
10741
|
"div",
|
|
10742
10742
|
{
|
|
10743
10743
|
key: "content",
|
|
10744
|
-
className: `${d}__main ${f ? "pds-grid-item" :
|
|
10744
|
+
className: `${d}__main ${f ? "pds-grid-item" : _}`
|
|
10745
10745
|
},
|
|
10746
10746
|
b.content
|
|
10747
10747
|
), C = /* @__PURE__ */ e.createElement(
|
|
@@ -10762,7 +10762,7 @@ const $n = ({
|
|
|
10762
10762
|
o != null ? o : ""
|
|
10763
10763
|
])
|
|
10764
10764
|
}, l),
|
|
10765
|
-
f ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, C,
|
|
10765
|
+
f ? c === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, C, v) : /* @__PURE__ */ e.createElement(e.Fragment, null, v, C) : a === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, C, v) : /* @__PURE__ */ e.createElement(e.Fragment, null, v, C)
|
|
10766
10766
|
);
|
|
10767
10767
|
};
|
|
10768
10768
|
export {
|