@pantheon-systems/pds-toolkit-react 1.0.0-dev.176 → 1.0.0-dev.177
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 +316 -318
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -774,13 +774,13 @@ const u1 = {
|
|
|
774
774
|
"zIndex",
|
|
775
775
|
"className"
|
|
776
776
|
]);
|
|
777
|
-
const [f, E] = R(!1), $ = typeof n, g = "pds-tooltip",
|
|
777
|
+
const [f, E] = R(!1), $ = typeof n, g = "pds-tooltip", v = K([
|
|
778
778
|
`${g}__trigger-custom`,
|
|
779
779
|
$ === "string" ? `${g}__trigger-text` : null
|
|
780
780
|
]), _ = K([
|
|
781
781
|
`${g}__trigger`,
|
|
782
782
|
`${g}__trigger--${l}`
|
|
783
|
-
]), { refs: b, floatingStyles:
|
|
783
|
+
]), { refs: b, floatingStyles: C, context: w } = Ie({
|
|
784
784
|
placement: c,
|
|
785
785
|
open: f,
|
|
786
786
|
onOpenChange: E,
|
|
@@ -799,7 +799,7 @@ const u1 = {
|
|
|
799
799
|
return /* @__PURE__ */ e.createElement("div", y({ className: K([g, d != null ? d : ""]) }, h), n ? /* @__PURE__ */ e.createElement(
|
|
800
800
|
"span",
|
|
801
801
|
y({
|
|
802
|
-
className:
|
|
802
|
+
className: v,
|
|
803
803
|
ref: b.setReference
|
|
804
804
|
}, L()),
|
|
805
805
|
n
|
|
@@ -823,7 +823,7 @@ const u1 = {
|
|
|
823
823
|
y({
|
|
824
824
|
className: `${g}__container`,
|
|
825
825
|
ref: b.setFloating,
|
|
826
|
-
style: fe(y({},
|
|
826
|
+
style: fe(y({}, C), { zIndex: m })
|
|
827
827
|
}, z()),
|
|
828
828
|
t
|
|
829
829
|
));
|
|
@@ -1305,7 +1305,7 @@ const b1 = [
|
|
|
1305
1305
|
"variant",
|
|
1306
1306
|
"className"
|
|
1307
1307
|
]);
|
|
1308
|
-
const g = "pds-button",
|
|
1308
|
+
const g = "pds-button", v = d !== "md" ? `${g}--${d}` : null, _ = h !== "primary" ? `${g}--${h}` : null;
|
|
1309
1309
|
let b;
|
|
1310
1310
|
switch (d) {
|
|
1311
1311
|
case "sm":
|
|
@@ -1317,7 +1317,7 @@ const b1 = [
|
|
|
1317
1317
|
case "lg":
|
|
1318
1318
|
b = "lg";
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1320
|
+
const C = /* @__PURE__ */ e.createElement(
|
|
1321
1321
|
P,
|
|
1322
1322
|
{
|
|
1323
1323
|
key: "icon",
|
|
@@ -1327,11 +1327,11 @@ const b1 = [
|
|
|
1327
1327
|
}
|
|
1328
1328
|
);
|
|
1329
1329
|
let w = [i];
|
|
1330
|
-
return c == "icon-start" && r && w.unshift(
|
|
1330
|
+
return c == "icon-start" && r && w.unshift(C), c == "icon-end" && r && w.push(C), l && (w = [C], t = i), /* @__PURE__ */ e.createElement(
|
|
1331
1331
|
"button",
|
|
1332
1332
|
fe(y({}, p), {
|
|
1333
1333
|
type: n,
|
|
1334
|
-
className: [g,
|
|
1334
|
+
className: [g, v, _, u].join(" ").trim().replace(/\s+/g, " "),
|
|
1335
1335
|
disabled: a || o,
|
|
1336
1336
|
"aria-label": t,
|
|
1337
1337
|
onClick: m,
|
|
@@ -1433,18 +1433,18 @@ const rt = (m) => {
|
|
|
1433
1433
|
key: a
|
|
1434
1434
|
}
|
|
1435
1435
|
);
|
|
1436
|
-
let
|
|
1437
|
-
n === "icon-start" && a ?
|
|
1436
|
+
let v = [$];
|
|
1437
|
+
n === "icon-start" && a ? v = [g, $] : n === "icon-end" && a && (v = [$, g]);
|
|
1438
1438
|
const _ = Fe(c) ? Ke(c, {
|
|
1439
1439
|
className: E,
|
|
1440
|
-
children:
|
|
1440
|
+
children: v
|
|
1441
1441
|
}) : null;
|
|
1442
1442
|
return t ? /* @__PURE__ */ e.createElement(
|
|
1443
1443
|
Ye,
|
|
1444
1444
|
{
|
|
1445
1445
|
className: K([h, l != null ? l : ""]),
|
|
1446
1446
|
disabled: !0,
|
|
1447
|
-
label:
|
|
1447
|
+
label: v,
|
|
1448
1448
|
size: r,
|
|
1449
1449
|
variant: o
|
|
1450
1450
|
}
|
|
@@ -1478,7 +1478,7 @@ const rt = (m) => {
|
|
|
1478
1478
|
"aria-hidden": "true"
|
|
1479
1479
|
}, l.props),
|
|
1480
1480
|
/* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })
|
|
1481
|
-
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null,
|
|
1481
|
+
) : /* @__PURE__ */ e.createElement("img", { src: c.src, alt: c.alt })) : null, v = /* @__PURE__ */ e.createElement("div", { className: `${p}__text-elements` }, o && /* @__PURE__ */ e.createElement(
|
|
1482
1482
|
"div",
|
|
1483
1483
|
{
|
|
1484
1484
|
className: `${p}__kicker pds-overline-text pds-overline-text--sm`
|
|
@@ -1491,14 +1491,14 @@ const rt = (m) => {
|
|
|
1491
1491
|
className: [p, f, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1492
1492
|
}, l.props),
|
|
1493
1493
|
g,
|
|
1494
|
-
|
|
1494
|
+
v
|
|
1495
1495
|
) : /* @__PURE__ */ e.createElement(
|
|
1496
1496
|
"div",
|
|
1497
1497
|
y({
|
|
1498
1498
|
className: [p, f, m].join(" ").trim().replace(/\s+/g, " ")
|
|
1499
1499
|
}, d),
|
|
1500
1500
|
g,
|
|
1501
|
-
|
|
1501
|
+
v
|
|
1502
1502
|
);
|
|
1503
1503
|
};
|
|
1504
1504
|
$1.propTypes = {
|
|
@@ -1702,12 +1702,12 @@ const je = yt(null), w1 = ({
|
|
|
1702
1702
|
]);
|
|
1703
1703
|
const [f, E] = R(
|
|
1704
1704
|
a
|
|
1705
|
-
), { isMobile: $ } = we(je), g = se(), [
|
|
1705
|
+
), { isMobile: $ } = we(je), g = se(), [v] = Ht(g), _ = v.width, b = {
|
|
1706
1706
|
isSidebarExpanded: $ ? !0 : f,
|
|
1707
1707
|
logoLinkContent: r,
|
|
1708
1708
|
navbarWidth: _,
|
|
1709
1709
|
isAdmin: c
|
|
1710
|
-
},
|
|
1710
|
+
}, C = "pds-dashboard", w = $ ? `${C}--isMobile` : `${C}--notMobile`, x = $ ? null : f ? `${C}--sidebarExpanded` : `${C}--sidebarCollapsed`, H = f ? `${l}rem` : `${o}rem`, M = {
|
|
1711
1711
|
width: H,
|
|
1712
1712
|
transition: "width 200ms ease-in-out"
|
|
1713
1713
|
}, N = $ ? {} : {
|
|
@@ -1715,21 +1715,21 @@ const je = yt(null), w1 = ({
|
|
|
1715
1715
|
transition: "width 200ms ease-in-out"
|
|
1716
1716
|
}, L = () => {
|
|
1717
1717
|
E(!f);
|
|
1718
|
-
}, z = Yt(t), O = z.header, V = z.sidebar, k = z.main, I = z.footer, A = /* @__PURE__ */ e.createElement("aside", { className: `${
|
|
1718
|
+
}, z = Yt(t), O = z.header, V = z.sidebar, k = z.main, I = z.footer, A = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar` }, V), B = /* @__PURE__ */ e.createElement("aside", { className: `${C}__sidebar`, style: M }, n && /* @__PURE__ */ e.createElement(
|
|
1719
1719
|
"button",
|
|
1720
1720
|
{
|
|
1721
|
-
className: `${
|
|
1721
|
+
className: `${C}__sidebar-toggle-button`,
|
|
1722
1722
|
onClick: L,
|
|
1723
1723
|
"aria-expanded": f,
|
|
1724
1724
|
"aria-label": i
|
|
1725
1725
|
},
|
|
1726
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
1727
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1726
|
+
/* @__PURE__ */ e.createElement("span", { className: `${C}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: "angleLeft", iconSize: "sm" }))
|
|
1727
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${C}__sidebar-inner` }, V));
|
|
1728
1728
|
return /* @__PURE__ */ e.createElement(xt.Provider, { value: b }, /* @__PURE__ */ e.createElement(N1, { text: m, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
1729
1729
|
"div",
|
|
1730
1730
|
y({
|
|
1731
1731
|
className: K([
|
|
1732
|
-
|
|
1732
|
+
C,
|
|
1733
1733
|
w,
|
|
1734
1734
|
x,
|
|
1735
1735
|
"pds-typography--product",
|
|
@@ -1742,11 +1742,11 @@ const je = yt(null), w1 = ({
|
|
|
1742
1742
|
"div",
|
|
1743
1743
|
{
|
|
1744
1744
|
ref: g,
|
|
1745
|
-
className: `${
|
|
1745
|
+
className: `${C}__container`,
|
|
1746
1746
|
style: N
|
|
1747
1747
|
},
|
|
1748
|
-
!$ && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
1749
|
-
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${
|
|
1748
|
+
!$ && /* @__PURE__ */ e.createElement("div", { className: `${C}__header` }, O),
|
|
1749
|
+
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${C}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${C}__main-inner` }, k), I && /* @__PURE__ */ e.createElement("footer", { className: `${C}__footer` }, I))
|
|
1750
1750
|
)
|
|
1751
1751
|
));
|
|
1752
1752
|
}, Qt = (i) => {
|
|
@@ -1848,10 +1848,10 @@ const k1 = Pe(
|
|
|
1848
1848
|
onBlur: E,
|
|
1849
1849
|
onClear: $,
|
|
1850
1850
|
onFocus: g,
|
|
1851
|
-
onOptionSelect:
|
|
1851
|
+
onOptionSelect: v,
|
|
1852
1852
|
options: _,
|
|
1853
1853
|
placeholder: b,
|
|
1854
|
-
required:
|
|
1854
|
+
required: C = !1,
|
|
1855
1855
|
showLabel: w = !0,
|
|
1856
1856
|
validationMessage: x,
|
|
1857
1857
|
validationStatus: H,
|
|
@@ -1883,7 +1883,7 @@ const k1 = Pe(
|
|
|
1883
1883
|
"validationStatus",
|
|
1884
1884
|
"className"
|
|
1885
1885
|
]);
|
|
1886
|
-
const V = ht(i), k = "pds-combobox", I = n ? te.disabled : null, A =
|
|
1886
|
+
const V = ht(i), k = "pds-combobox", I = n ? te.disabled : null, A = C && !n ? te.required : null, B = H === "error" ? te.error : null, F = H === "success" ? te.success : null;
|
|
1887
1887
|
let j = null;
|
|
1888
1888
|
r && (j = "search"), H === "error" && (j = "error"), H === "success" && (j = "success");
|
|
1889
1889
|
const Z = x || p, G = (pe) => {
|
|
@@ -1930,7 +1930,7 @@ const k1 = Pe(
|
|
|
1930
1930
|
g && g(pe);
|
|
1931
1931
|
}, ft = (pe) => {
|
|
1932
1932
|
const he = be[pe];
|
|
1933
|
-
Q(he.label), U(null), D(!1),
|
|
1933
|
+
Q(he.label), U(null), D(!1), v && v(he);
|
|
1934
1934
|
}, It = (pe) => pe.map((xe) => {
|
|
1935
1935
|
const { label: De, optionDisplay: Re, value: Ae, searchIndex: bt } = xe, q = Ae || De, oe = [De, Ae];
|
|
1936
1936
|
return bt && oe.push(...bt), {
|
|
@@ -1993,7 +1993,7 @@ const k1 = Pe(
|
|
|
1993
1993
|
id: l,
|
|
1994
1994
|
label: d,
|
|
1995
1995
|
showLabel: w,
|
|
1996
|
-
required:
|
|
1996
|
+
required: C,
|
|
1997
1997
|
disabled: n
|
|
1998
1998
|
}
|
|
1999
1999
|
),
|
|
@@ -2004,7 +2004,7 @@ const k1 = Pe(
|
|
|
2004
2004
|
ref: L,
|
|
2005
2005
|
id: l,
|
|
2006
2006
|
"aria-disabled": n ? !0 : null,
|
|
2007
|
-
"aria-required":
|
|
2007
|
+
"aria-required": C ? !0 : null,
|
|
2008
2008
|
"aria-invalid": H === "error" ? !0 : null,
|
|
2009
2009
|
"aria-describedby": Z ? `${l}__message` : null
|
|
2010
2010
|
},
|
|
@@ -2124,7 +2124,7 @@ const k1 = Pe(
|
|
|
2124
2124
|
"horizontalOffset",
|
|
2125
2125
|
"className"
|
|
2126
2126
|
]);
|
|
2127
|
-
const [g,
|
|
2127
|
+
const [g, v] = R(!1), [_, b] = R(null), C = se(null);
|
|
2128
2128
|
let w = !1;
|
|
2129
2129
|
const x = we(je);
|
|
2130
2130
|
x && (w = x.isMobile);
|
|
@@ -2138,19 +2138,19 @@ const k1 = Pe(
|
|
|
2138
2138
|
right: `${O + u}rem`,
|
|
2139
2139
|
width: `${k}rem`
|
|
2140
2140
|
}, A = "pds-dashboard-search", B = w ? `${A}--isMobile` : null, F = () => {
|
|
2141
|
-
|
|
2142
|
-
|
|
2141
|
+
v(!0), setTimeout(() => {
|
|
2142
|
+
C.current.querySelector("input").focus();
|
|
2143
2143
|
}, 500);
|
|
2144
2144
|
}, j = () => {
|
|
2145
2145
|
setTimeout(() => {
|
|
2146
|
-
|
|
2146
|
+
v(!1);
|
|
2147
2147
|
}, 150);
|
|
2148
2148
|
}, Z = (U) => {
|
|
2149
2149
|
b(U.value), m && m(U);
|
|
2150
2150
|
};
|
|
2151
2151
|
ie(() => {
|
|
2152
2152
|
if (g) {
|
|
2153
|
-
const U =
|
|
2153
|
+
const U = C.current.querySelector("input");
|
|
2154
2154
|
return U.addEventListener("blur", j), () => {
|
|
2155
2155
|
U.removeEventListener("blur", j);
|
|
2156
2156
|
};
|
|
@@ -2166,7 +2166,7 @@ const k1 = Pe(
|
|
|
2166
2166
|
}), T = /* @__PURE__ */ e.createElement(
|
|
2167
2167
|
k1,
|
|
2168
2168
|
{
|
|
2169
|
-
ref:
|
|
2169
|
+
ref: C,
|
|
2170
2170
|
disabled: t,
|
|
2171
2171
|
hasClearButton: !1,
|
|
2172
2172
|
id: `${n}-combobox`,
|
|
@@ -2456,8 +2456,8 @@ L1.propTypes = {
|
|
|
2456
2456
|
className: s.string
|
|
2457
2457
|
};
|
|
2458
2458
|
const gt = Pe(
|
|
2459
|
-
(
|
|
2460
|
-
var _ =
|
|
2459
|
+
(v, g) => {
|
|
2460
|
+
var _ = v, {
|
|
2461
2461
|
children: t,
|
|
2462
2462
|
decorator: n,
|
|
2463
2463
|
disabled: a = !1,
|
|
@@ -2490,7 +2490,7 @@ const gt = Pe(
|
|
|
2490
2490
|
"validationState",
|
|
2491
2491
|
"className"
|
|
2492
2492
|
]);
|
|
2493
|
-
const b = "pds-input-wrapper",
|
|
2493
|
+
const b = "pds-input-wrapper", C = `${b}--${r}`, w = "pds-input-label", x = `pds-input-field__message pds-input-field__message--${d}`, H = f === "error" ? "pds-has-error" : null, M = f === "success" ? "pds-has-success" : null, N = a ? "pds-is-disabled" : null, L = h ? "pds-is-readonly" : null, z = u && !a ? "pds-is-required" : null, O = o ? `${o / 16}rem` : null, V = o ? { width: O } : null, k = l ? "fieldset" : "div", I = u && !a ? /* @__PURE__ */ e.createElement(
|
|
2494
2494
|
P,
|
|
2495
2495
|
{
|
|
2496
2496
|
iconName: "asterisk",
|
|
@@ -2512,7 +2512,7 @@ const gt = Pe(
|
|
|
2512
2512
|
y({
|
|
2513
2513
|
className: [
|
|
2514
2514
|
b,
|
|
2515
|
-
|
|
2515
|
+
C,
|
|
2516
2516
|
N,
|
|
2517
2517
|
L,
|
|
2518
2518
|
z,
|
|
@@ -2639,27 +2639,27 @@ const mt = (u) => {
|
|
|
2639
2639
|
hide: `${f}--hide`,
|
|
2640
2640
|
scaleIn: `${f}--scaleIn`
|
|
2641
2641
|
};
|
|
2642
|
-
let
|
|
2642
|
+
let v, _;
|
|
2643
2643
|
switch (i) {
|
|
2644
2644
|
case "sm":
|
|
2645
|
-
_ = "md",
|
|
2645
|
+
_ = "md", v = 8;
|
|
2646
2646
|
break;
|
|
2647
2647
|
case "md":
|
|
2648
|
-
_ = "md",
|
|
2648
|
+
_ = "md", v = 10;
|
|
2649
2649
|
break;
|
|
2650
2650
|
case "lg":
|
|
2651
|
-
_ = "xl",
|
|
2651
|
+
_ = "xl", v = 12;
|
|
2652
2652
|
}
|
|
2653
|
-
const b = o !== null,
|
|
2654
|
-
|
|
2655
|
-
|
|
2653
|
+
const b = o !== null, C = se(null), w = se(null), x = () => {
|
|
2654
|
+
C.current.classList.add(g.fadeOut), C.current.classList.add(g.hide), w.current.classList.remove(g.hide), w.current.classList.add(g.scaleIn), setTimeout(() => {
|
|
2655
|
+
C.current.classList.remove(
|
|
2656
2656
|
g.fadeOut,
|
|
2657
2657
|
g.hide
|
|
2658
|
-
),
|
|
2658
|
+
), C.current.classList.add(g.scaleIn), w.current.classList.remove(g.scaleIn), w.current.classList.add(g.hide);
|
|
2659
2659
|
}, 2e3);
|
|
2660
2660
|
}, H = () => {
|
|
2661
2661
|
b && x(), l && l();
|
|
2662
|
-
}, M = b ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref:
|
|
2662
|
+
}, M = b ? /* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { ref: C, className: `${f}__icon-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2663
2663
|
P,
|
|
2664
2664
|
{
|
|
2665
2665
|
iconName: r,
|
|
@@ -2703,7 +2703,7 @@ const mt = (u) => {
|
|
|
2703
2703
|
{
|
|
2704
2704
|
content: t,
|
|
2705
2705
|
className: `${f}__tooltip`,
|
|
2706
|
-
offsetValue:
|
|
2706
|
+
offsetValue: v,
|
|
2707
2707
|
customTrigger: M
|
|
2708
2708
|
}
|
|
2709
2709
|
) : M
|
|
@@ -2742,15 +2742,15 @@ const x1 = ($) => {
|
|
|
2742
2742
|
"validationFunction",
|
|
2743
2743
|
"className"
|
|
2744
2744
|
]);
|
|
2745
|
-
const [
|
|
2745
|
+
const [v, _] = R(!1), [b, C] = R(), [w, x] = R(null), H = "pds-file-upload", M = v ? `${H}--has-value` : null;
|
|
2746
2746
|
let N = null;
|
|
2747
2747
|
w === "error" && (N = "error"), w === "success" && (N = "success");
|
|
2748
2748
|
const L = () => {
|
|
2749
|
-
|
|
2749
|
+
C(""), x(null);
|
|
2750
2750
|
}, z = (k) => {
|
|
2751
2751
|
if (p) {
|
|
2752
2752
|
const I = p(k.target.files) || {};
|
|
2753
|
-
L(), I.error && x("error"), I.success && x("success"),
|
|
2753
|
+
L(), I.error && x("error"), I.success && x("success"), C(I.message);
|
|
2754
2754
|
}
|
|
2755
2755
|
d && d(k.target.files), k.target.files.length > 0 ? _(!0) : _(!1);
|
|
2756
2756
|
}, O = () => {
|
|
@@ -2776,7 +2776,7 @@ const x1 = ($) => {
|
|
|
2776
2776
|
"label",
|
|
2777
2777
|
{
|
|
2778
2778
|
htmlFor: o,
|
|
2779
|
-
className:
|
|
2779
|
+
className: v ? "visually-hidden" : `${H}__label`
|
|
2780
2780
|
},
|
|
2781
2781
|
/* @__PURE__ */ e.createElement(P, { iconName: "paperclip", iconSize: "sm" }),
|
|
2782
2782
|
n
|
|
@@ -2794,7 +2794,7 @@ const x1 = ($) => {
|
|
|
2794
2794
|
onChange: z
|
|
2795
2795
|
}
|
|
2796
2796
|
),
|
|
2797
|
-
|
|
2797
|
+
v && /* @__PURE__ */ e.createElement(
|
|
2798
2798
|
mt,
|
|
2799
2799
|
{
|
|
2800
2800
|
ariaLabel: a,
|
|
@@ -2999,14 +2999,14 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
2999
2999
|
"validationFunction",
|
|
3000
3000
|
"className"
|
|
3001
3001
|
]);
|
|
3002
|
-
const g = "pds-input-formatted",
|
|
3002
|
+
const g = "pds-input-formatted", v = n ? `${g}--${n}` : null, _ = se([
|
|
3003
3003
|
"pds-input-field",
|
|
3004
3004
|
g,
|
|
3005
|
-
|
|
3005
|
+
v,
|
|
3006
3006
|
p
|
|
3007
|
-
]), [b,
|
|
3007
|
+
]), [b, C] = R(""), [w, x] = R(null), [H, M] = R(null), N = se(null), L = se(null), z = se("");
|
|
3008
3008
|
ie(() => {
|
|
3009
|
-
switch (r &&
|
|
3009
|
+
switch (r && C(Z(r)), z.numExtra = "", n) {
|
|
3010
3010
|
case "credit-card":
|
|
3011
3011
|
z.numExtra = 3, z.current = Ot;
|
|
3012
3012
|
break;
|
|
@@ -3031,7 +3031,7 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
3031
3031
|
rawValue: L.current
|
|
3032
3032
|
});
|
|
3033
3033
|
}, A = (T) => {
|
|
3034
|
-
|
|
3034
|
+
C(Z(T.target.value)), k(), I(T.target.value);
|
|
3035
3035
|
}, B = () => {
|
|
3036
3036
|
M("error"), _.current.push($e.error);
|
|
3037
3037
|
}, F = (T) => {
|
|
@@ -3046,7 +3046,7 @@ const S1 = new Intl.NumberFormat().formatToParts(100000089e-2), Tt = S1.find((t)
|
|
|
3046
3046
|
)) : (n === "credit-card" || n === "phone") && (M("success"), _.current.push($e.success));
|
|
3047
3047
|
I(T.target.value);
|
|
3048
3048
|
}, j = () => {
|
|
3049
|
-
k(),
|
|
3049
|
+
k(), C(""), L.current = "", N.current.focus(), I("");
|
|
3050
3050
|
}, Z = (T) => {
|
|
3051
3051
|
if (T) {
|
|
3052
3052
|
if (n === "credit-card") {
|
|
@@ -3226,9 +3226,9 @@ const O1 = (f) => {
|
|
|
3226
3226
|
"validationFunction",
|
|
3227
3227
|
"className"
|
|
3228
3228
|
]);
|
|
3229
|
-
const $ = "pds-input-obscured", g = se(["pds-input-field", $, u]), [
|
|
3229
|
+
const $ = "pds-input-obscured", g = se(["pds-input-field", $, u]), [v, _] = R(r), [b, C] = R(t("")), [w, x] = R(), [H, M] = R(null), [N, L] = R(!1), z = se(null), O = se(null);
|
|
3230
3230
|
ie(() => {
|
|
3231
|
-
r && t &&
|
|
3231
|
+
r && t && C(t(r));
|
|
3232
3232
|
}, []);
|
|
3233
3233
|
const V = () => {
|
|
3234
3234
|
g.current = g.current.filter(
|
|
@@ -3241,15 +3241,15 @@ const O1 = (f) => {
|
|
|
3241
3241
|
}, I = () => {
|
|
3242
3242
|
k(), x(""), M(null);
|
|
3243
3243
|
}, A = (T) => {
|
|
3244
|
-
_(T.target.value), I(), t &&
|
|
3244
|
+
_(T.target.value), I(), t && C(t(T.target.value)), i && i(T.target.value);
|
|
3245
3245
|
}, B = (T) => {
|
|
3246
3246
|
if (L(!1), h) {
|
|
3247
3247
|
const D = h(T.target.value) || {};
|
|
3248
3248
|
I(), D.error && (M("error"), g.current.push($e.error)), D.success && (M("success"), g.current.push($e.success)), x(D.message);
|
|
3249
3249
|
}
|
|
3250
|
-
i && i(
|
|
3250
|
+
i && i(v);
|
|
3251
3251
|
}, F = () => {
|
|
3252
|
-
I(), _(""), O.current.value = null, O.current.focus(), t &&
|
|
3252
|
+
I(), _(""), O.current.value = null, O.current.focus(), t && C(t("")), i && i("");
|
|
3253
3253
|
}, j = () => {
|
|
3254
3254
|
L((T) => !T);
|
|
3255
3255
|
}, Z = (T) => {
|
|
@@ -3283,7 +3283,7 @@ const O1 = (f) => {
|
|
|
3283
3283
|
name: c,
|
|
3284
3284
|
required: m,
|
|
3285
3285
|
disabled: n,
|
|
3286
|
-
value:
|
|
3286
|
+
value: v,
|
|
3287
3287
|
onChange: A,
|
|
3288
3288
|
onBlur: B,
|
|
3289
3289
|
ref: O,
|
|
@@ -3291,7 +3291,7 @@ const O1 = (f) => {
|
|
|
3291
3291
|
"aria-describedby": l || w ? `${c}__message` : null,
|
|
3292
3292
|
autoComplete: "off"
|
|
3293
3293
|
}
|
|
3294
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b),
|
|
3294
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b), v && a && /* @__PURE__ */ e.createElement(
|
|
3295
3295
|
Vt,
|
|
3296
3296
|
{
|
|
3297
3297
|
id: c,
|
|
@@ -3418,10 +3418,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3418
3418
|
readonly: E = !1,
|
|
3419
3419
|
required: $ = !1,
|
|
3420
3420
|
showLabel: g = !0,
|
|
3421
|
-
specialFormatting:
|
|
3421
|
+
specialFormatting: v,
|
|
3422
3422
|
specialFormattingValidation: _ = !1,
|
|
3423
3423
|
toggleVisibility: b = !1,
|
|
3424
|
-
type:
|
|
3424
|
+
type: C = "text",
|
|
3425
3425
|
validationFunction: w,
|
|
3426
3426
|
validationMessages: x = {
|
|
3427
3427
|
creditCardError: "Please enter a valid credit card number.",
|
|
@@ -3454,10 +3454,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3454
3454
|
"validationMessages",
|
|
3455
3455
|
"className"
|
|
3456
3456
|
]);
|
|
3457
|
-
const [z, O] = R(l), [V, k] = R(n("")), [I, A] = R(), [B, F] = R(null), [j, Z] = R(!1), G = se(null), T = se(null), D = se(null), W = se(null), U = "pds-input-text", ne =
|
|
3457
|
+
const [z, O] = R(l), [V, k] = R(n("")), [I, A] = R(), [B, F] = R(null), [j, Z] = R(!1), G = se(null), T = se(null), D = se(null), W = se(null), U = "pds-input-text", ne = v ? `${U}--${v}` : null;
|
|
3458
3458
|
let Q = null;
|
|
3459
|
-
|
|
3460
|
-
switch (l && O(J(l)), W.numExtra = "",
|
|
3459
|
+
C === "search" && (Q = "search"), B === "error" && (Q = "error"), B === "success" && (Q = "success"), v && _ && ie(() => {
|
|
3460
|
+
switch (l && O(J(l)), W.numExtra = "", v) {
|
|
3461
3461
|
case "credit-card":
|
|
3462
3462
|
W.numExtra = 3, W.current = Dt;
|
|
3463
3463
|
break;
|
|
@@ -3467,10 +3467,10 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3467
3467
|
}
|
|
3468
3468
|
}, []);
|
|
3469
3469
|
let be = null;
|
|
3470
|
-
(
|
|
3470
|
+
(v === "credit-card" || v === "phone") && W.current && (be = W.current + W.numExtra);
|
|
3471
3471
|
const J = (le) => {
|
|
3472
3472
|
if (le) {
|
|
3473
|
-
if (
|
|
3473
|
+
if (v === "credit-card") {
|
|
3474
3474
|
const ce = ("" + le).replace(/\D/g, "");
|
|
3475
3475
|
if (D.current = ce, ce) {
|
|
3476
3476
|
if (new RegExp("^34|37", "g").test(ce)) {
|
|
@@ -3484,7 +3484,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3484
3484
|
}
|
|
3485
3485
|
return ce;
|
|
3486
3486
|
}
|
|
3487
|
-
if (
|
|
3487
|
+
if (v === "phone") {
|
|
3488
3488
|
const ce = ("" + le).replace(/\D/g, "");
|
|
3489
3489
|
if (D.current = ce, ce) {
|
|
3490
3490
|
W.numExtra = 4, W.current = cs;
|
|
@@ -3506,15 +3506,15 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3506
3506
|
}, ae = (le) => {
|
|
3507
3507
|
p && p(le.target);
|
|
3508
3508
|
}, ee = (le) => {
|
|
3509
|
-
|
|
3509
|
+
v ? u && u({ formattedValue: le, rawValue: D.current }) : u && u(le);
|
|
3510
3510
|
}, _e = (le) => {
|
|
3511
|
-
O(
|
|
3511
|
+
O(v ? J(le.target.value) : le.target.value), de(), n && k(n(v ? D.current : le.target.value)), ee(le.target.value);
|
|
3512
3512
|
}, me = (le) => {
|
|
3513
3513
|
if (b && Z(!1), w) {
|
|
3514
3514
|
const ce = w(le.target.value) || {};
|
|
3515
3515
|
de(), ce.error && F("error"), ce.success && F("success"), A(ce.message);
|
|
3516
3516
|
}
|
|
3517
|
-
|
|
3517
|
+
v && _ && !w && (G.current.checkValidity() === !1 || le.target.value.length < be ? (F("error"), v === "credit-card" && A(x.creditCardError), v === "phone" && A(x.phoneError)) : F("success")), ee(le.target.value);
|
|
3518
3518
|
}, re = (le) => {
|
|
3519
3519
|
var ce;
|
|
3520
3520
|
(!((ce = T.current) != null && ce.contains(le.relatedTarget)) || !le.relatedTarget) && Z(!1);
|
|
@@ -3522,7 +3522,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3522
3522
|
de(), O(""), D.current = "", G.current.focus(), n && k(n("")), ee("");
|
|
3523
3523
|
};
|
|
3524
3524
|
ie(() => {
|
|
3525
|
-
if (
|
|
3525
|
+
if (C === "search" && r) {
|
|
3526
3526
|
const le = (ce) => {
|
|
3527
3527
|
ce.key === "/" && (/^(?:input|textarea|select|button)$/i.test(ce.target.tagName) || (ce.preventDefault(), document.getElementById(o).focus()));
|
|
3528
3528
|
};
|
|
@@ -3534,7 +3534,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3534
3534
|
const Ee = () => {
|
|
3535
3535
|
Z((le) => !le);
|
|
3536
3536
|
};
|
|
3537
|
-
b &&
|
|
3537
|
+
b && C === "password" && (j ? M.type = "text" : M.type = "password"), v === "phone" && (M.type = "tel");
|
|
3538
3538
|
const He = I || h;
|
|
3539
3539
|
return /* @__PURE__ */ e.createElement(
|
|
3540
3540
|
gt,
|
|
@@ -3554,12 +3554,12 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3554
3554
|
showLabel: g,
|
|
3555
3555
|
validationState: B
|
|
3556
3556
|
}, M),
|
|
3557
|
-
b &&
|
|
3557
|
+
b && C === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${d.visibilityStatus} ${j ? "visible" : "hidden"}.`),
|
|
3558
3558
|
/* @__PURE__ */ e.createElement(
|
|
3559
3559
|
"input",
|
|
3560
3560
|
{
|
|
3561
3561
|
className: [U, ne].join(" ").trim().replace(/\s+/g, " "),
|
|
3562
|
-
type:
|
|
3562
|
+
type: C,
|
|
3563
3563
|
id: o,
|
|
3564
3564
|
name: o,
|
|
3565
3565
|
placeholder: f,
|
|
@@ -3573,7 +3573,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3573
3573
|
ref: G,
|
|
3574
3574
|
"aria-invalid": B === "error",
|
|
3575
3575
|
"aria-describedby": He ? `${o}__message` : null,
|
|
3576
|
-
autoComplete:
|
|
3576
|
+
autoComplete: C === "password" ? "off" : t,
|
|
3577
3577
|
maxLength: be,
|
|
3578
3578
|
minLength: be
|
|
3579
3579
|
}
|
|
@@ -3587,7 +3587,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3587
3587
|
handleClearInput: Y
|
|
3588
3588
|
}
|
|
3589
3589
|
),
|
|
3590
|
-
b &&
|
|
3590
|
+
b && C === "password" && /* @__PURE__ */ e.createElement(
|
|
3591
3591
|
"button",
|
|
3592
3592
|
{
|
|
3593
3593
|
type: "button",
|
|
@@ -3599,7 +3599,7 @@ const Dt = 16, cs = 10, D1 = (N) => {
|
|
|
3599
3599
|
},
|
|
3600
3600
|
/* @__PURE__ */ e.createElement(P, { iconName: j ? "eyeSlash" : "eye" })
|
|
3601
3601
|
),
|
|
3602
|
-
!z && r &&
|
|
3602
|
+
!z && r && C === "search" && /* @__PURE__ */ e.createElement(xs, { label: d.searchShortcut })
|
|
3603
3603
|
);
|
|
3604
3604
|
};
|
|
3605
3605
|
D1.propTypes = {
|
|
@@ -3836,7 +3836,7 @@ const rs = [
|
|
|
3836
3836
|
a ? $ : E
|
|
3837
3837
|
);
|
|
3838
3838
|
}, Rt = (t) => t.isSeparator, At = (t) => t.isHeading, Pt = (t) => t.isLink, P1 = (t) => t.isNode, Is = (g) => {
|
|
3839
|
-
var
|
|
3839
|
+
var v = g, {
|
|
3840
3840
|
avatarImageSrc: t,
|
|
3841
3841
|
disabled: n,
|
|
3842
3842
|
displayType: a = "icon-end",
|
|
@@ -3852,7 +3852,7 @@ const rs = [
|
|
|
3852
3852
|
variant: p = "primary",
|
|
3853
3853
|
withinNavbar: f,
|
|
3854
3854
|
className: E
|
|
3855
|
-
} =
|
|
3855
|
+
} = v, $ = S(v, [
|
|
3856
3856
|
"avatarImageSrc",
|
|
3857
3857
|
"disabled",
|
|
3858
3858
|
"displayType",
|
|
@@ -3872,7 +3872,7 @@ const rs = [
|
|
|
3872
3872
|
const {
|
|
3873
3873
|
x: _,
|
|
3874
3874
|
y: b,
|
|
3875
|
-
reference:
|
|
3875
|
+
reference: C,
|
|
3876
3876
|
floating: w,
|
|
3877
3877
|
strategy: x,
|
|
3878
3878
|
update: H,
|
|
@@ -4151,7 +4151,7 @@ const rs = [
|
|
|
4151
4151
|
"aria-expanded": D,
|
|
4152
4152
|
onClick: ce,
|
|
4153
4153
|
onKeyDown: ke,
|
|
4154
|
-
ref:
|
|
4154
|
+
ref: C
|
|
4155
4155
|
}
|
|
4156
4156
|
)), a === "icon-only" && (tt = /* @__PURE__ */ e.createElement(
|
|
4157
4157
|
mt,
|
|
@@ -4169,7 +4169,7 @@ const rs = [
|
|
|
4169
4169
|
"aria-expanded": D,
|
|
4170
4170
|
onClick: ce,
|
|
4171
4171
|
onKeyDown: ke,
|
|
4172
|
-
ref:
|
|
4172
|
+
ref: C,
|
|
4173
4173
|
hasTooltip: !1
|
|
4174
4174
|
}
|
|
4175
4175
|
)), (a === "avatar" || a === "avatar-with-text") && (tt = /* @__PURE__ */ e.createElement(
|
|
@@ -4185,7 +4185,7 @@ const rs = [
|
|
|
4185
4185
|
"aria-expanded": D,
|
|
4186
4186
|
onClick: ce,
|
|
4187
4187
|
onKeyDown: ke,
|
|
4188
|
-
ref:
|
|
4188
|
+
ref: C
|
|
4189
4189
|
},
|
|
4190
4190
|
/* @__PURE__ */ e.createElement("span", { className: `${k}__avatar-label` }, /* @__PURE__ */ e.createElement(ut, { size: "sm", imageSrc: t || V }), a === "avatar-with-text" && l),
|
|
4191
4191
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4342,7 +4342,7 @@ const Ss = ({ items: t, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
4342
4342
|
enabled: !0
|
|
4343
4343
|
})
|
|
4344
4344
|
});
|
|
4345
|
-
const { getReferenceProps: g, getFloatingProps:
|
|
4345
|
+
const { getReferenceProps: g, getFloatingProps: v } = Oe([
|
|
4346
4346
|
f,
|
|
4347
4347
|
E,
|
|
4348
4348
|
p,
|
|
@@ -4361,11 +4361,11 @@ const Ss = ({ items: t, label: n, mobileMenuMaxWidth: a = 640 }) => {
|
|
|
4361
4361
|
y({
|
|
4362
4362
|
className: `${d}__dropdown`,
|
|
4363
4363
|
ref: h.setFloating
|
|
4364
|
-
},
|
|
4365
|
-
t.map((b,
|
|
4364
|
+
}, v()),
|
|
4365
|
+
t.map((b, C) => /* @__PURE__ */ e.createElement(
|
|
4366
4366
|
"li",
|
|
4367
4367
|
{
|
|
4368
|
-
key:
|
|
4368
|
+
key: C,
|
|
4369
4369
|
role: b.isSeparator ? "separator" : "menuitem",
|
|
4370
4370
|
className: `${d}__item ${b.isSeparator ? `${d}__dropdown--separator` : `${d}__item--second-level`} ${_(b) ? `${d}__item--active` : null}`
|
|
4371
4371
|
},
|
|
@@ -4392,7 +4392,7 @@ const q1 = (l) => {
|
|
|
4392
4392
|
"mobileMenuMaxWidth",
|
|
4393
4393
|
"className"
|
|
4394
4394
|
]);
|
|
4395
|
-
const [m, d] = R(1025), [h, u] = R(null), [p, f] = R(-1), [E, $] = R(null), [g,
|
|
4395
|
+
const [m, d] = R(1025), [h, u] = R(null), [p, f] = R(-1), [E, $] = R(null), [g, v] = R({
|
|
4396
4396
|
containerChildren: []
|
|
4397
4397
|
});
|
|
4398
4398
|
ie(() => (d(window.innerWidth), window.addEventListener("resize", _), () => {
|
|
@@ -4412,7 +4412,7 @@ const q1 = (l) => {
|
|
|
4412
4412
|
focusVisible: !0
|
|
4413
4413
|
}));
|
|
4414
4414
|
}, [p]);
|
|
4415
|
-
const
|
|
4415
|
+
const C = "pds-nav-menu", w = n !== "default" ? `${C}--${n}` : "", x = b ? `${C}--isMobile` : `${C}--notMobile`, H = se([]), M = (z) => {
|
|
4416
4416
|
const O = H.current.length - 1, F = {
|
|
4417
4417
|
ArrowRight: () => {
|
|
4418
4418
|
u(-1), f(p === -1 ? 1 : p === O ? 0 : p + 1);
|
|
@@ -4424,7 +4424,7 @@ const q1 = (l) => {
|
|
|
4424
4424
|
var G, T, D, W;
|
|
4425
4425
|
$("down");
|
|
4426
4426
|
let j = z.target.parentNode.children[1], Z = ((T = (G = z.target) == null ? void 0 : G.parentNode.children[1]) == null ? void 0 : T.children) || ((W = (D = z.target) == null ? void 0 : D.parentNode.parentNode.children[1]) == null ? void 0 : W.children);
|
|
4427
|
-
g.container != j && j != null &&
|
|
4427
|
+
g.container != j && j != null && v({
|
|
4428
4428
|
container: j,
|
|
4429
4429
|
containerChildren: [...Z]
|
|
4430
4430
|
}), h === null || h == g.containerChildren.length - 1 ? u(0) : u(parseInt(h) + 1);
|
|
@@ -4454,7 +4454,7 @@ const q1 = (l) => {
|
|
|
4454
4454
|
key: `${O}-dropdown`,
|
|
4455
4455
|
id: k,
|
|
4456
4456
|
ref: (I) => H.current[O] = I,
|
|
4457
|
-
className: `${
|
|
4457
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-children ${N(z) === !0 ? `${C}__item--active` : ""}`
|
|
4458
4458
|
},
|
|
4459
4459
|
/* @__PURE__ */ e.createElement(
|
|
4460
4460
|
Ss,
|
|
@@ -4472,7 +4472,7 @@ const q1 = (l) => {
|
|
|
4472
4472
|
key: O,
|
|
4473
4473
|
id: k,
|
|
4474
4474
|
ref: (I) => H.current[O] = I,
|
|
4475
|
-
className: `${
|
|
4475
|
+
className: `${C}__item ${C}__item--top-level ${C}__item--has-link ${N(z) === !0 ? `${C}__item--active` : ""}`
|
|
4476
4476
|
},
|
|
4477
4477
|
z.linkContent
|
|
4478
4478
|
)
|
|
@@ -4480,13 +4480,13 @@ const q1 = (l) => {
|
|
|
4480
4480
|
}), /* @__PURE__ */ e.createElement(
|
|
4481
4481
|
"nav",
|
|
4482
4482
|
y({
|
|
4483
|
-
className: [
|
|
4483
|
+
className: [C, w, x, r].join(" ").trim().replace(/\s+/g, " "),
|
|
4484
4484
|
"aria-label": t,
|
|
4485
4485
|
onKeyDown: (z) => {
|
|
4486
4486
|
M(z);
|
|
4487
4487
|
}
|
|
4488
4488
|
}, o),
|
|
4489
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${
|
|
4489
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${C}__menu` }, L)
|
|
4490
4490
|
);
|
|
4491
4491
|
};
|
|
4492
4492
|
q1.propTypes = {
|
|
@@ -4990,8 +4990,8 @@ Os.propTypes = {
|
|
|
4990
4990
|
pages: s.arrayOf(s.shape({ link: s.string })).isRequired,
|
|
4991
4991
|
headingId: s.string
|
|
4992
4992
|
};
|
|
4993
|
-
const Ds = (
|
|
4994
|
-
var _ =
|
|
4993
|
+
const Ds = (v) => {
|
|
4994
|
+
var _ = v, {
|
|
4995
4995
|
defaultValue: t,
|
|
4996
4996
|
disabled: n,
|
|
4997
4997
|
id: a,
|
|
@@ -5032,11 +5032,11 @@ const Ds = (C) => {
|
|
|
5032
5032
|
var _e;
|
|
5033
5033
|
const b = h.findIndex(
|
|
5034
5034
|
(me) => me.value === t
|
|
5035
|
-
), [
|
|
5035
|
+
), [C, w] = R(!1), [x, H] = R(null), [M, N] = R(b != null ? b : null), L = "pds-select", z = n ? te.disabled : null, O = u && !n ? te.required : null, V = E === "error" ? te.error : null, k = E === "success" ? te.success : null;
|
|
5036
5036
|
let I = null;
|
|
5037
5037
|
E === "error" && (I = "error"), E === "success" && (I = "success");
|
|
5038
5038
|
const A = ht(c), B = f || l, F = se([]), { context: j, refs: Z } = Ie({
|
|
5039
|
-
open:
|
|
5039
|
+
open: C,
|
|
5040
5040
|
onOpenChange: w,
|
|
5041
5041
|
whileElementsMounted: qe
|
|
5042
5042
|
}), G = Je(j, {
|
|
@@ -5167,8 +5167,8 @@ const Ds = (C) => {
|
|
|
5167
5167
|
}, Xe = (c) => {
|
|
5168
5168
|
var r = c, { arrowText: t = null, direction: n } = r, a = S(r, ["arrowText", "direction"]);
|
|
5169
5169
|
const { buttonCallback: o, currentKey: l, setCurrentKey: i, setDirection: m, pages: d } = we(it), h = Kt(
|
|
5170
|
-
(g,
|
|
5171
|
-
o && (g.preventDefault(), o(
|
|
5170
|
+
(g, v) => {
|
|
5171
|
+
o && (g.preventDefault(), o(v));
|
|
5172
5172
|
},
|
|
5173
5173
|
[o, l]
|
|
5174
5174
|
), { title: u, rel: p, srText: f, icon: E, keyModifier: $ } = F1[n];
|
|
@@ -5576,7 +5576,7 @@ const X1 = {
|
|
|
5576
5576
|
"statusBadgeType",
|
|
5577
5577
|
"className"
|
|
5578
5578
|
]);
|
|
5579
|
-
const E = "pds-pricing-card", $ = `${E}-container`, g = a ? `${$}--with-list` : null,
|
|
5579
|
+
const E = "pds-pricing-card", $ = `${E}-container`, g = a ? `${$}--with-list` : null, v = d ? `${E}--${d}` : null, _ = (k) => k.toLowerCase().replace(/\s/g, "-"), b = l && l.length > 1, [C, w] = R(
|
|
5580
5580
|
_(l[0].label)
|
|
5581
5581
|
), [x, H] = R(
|
|
5582
5582
|
t.label
|
|
@@ -5599,7 +5599,7 @@ const X1 = {
|
|
|
5599
5599
|
renderTypeLabels: !1
|
|
5600
5600
|
}
|
|
5601
5601
|
)), b && (M = l.map((k) => {
|
|
5602
|
-
const A =
|
|
5602
|
+
const A = C === _(k.label) ? null : `${E}__pricing-data--hide`;
|
|
5603
5603
|
return /* @__PURE__ */ e.createElement(
|
|
5604
5604
|
"div",
|
|
5605
5605
|
{
|
|
@@ -5619,7 +5619,7 @@ const X1 = {
|
|
|
5619
5619
|
), k.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__savings-details` }, k.savingsDetails))
|
|
5620
5620
|
);
|
|
5621
5621
|
}), N = l.map((k) => {
|
|
5622
|
-
const A =
|
|
5622
|
+
const A = C === _(k.label) ? null : `${E}__list--hide`;
|
|
5623
5623
|
return /* @__PURE__ */ e.createElement(
|
|
5624
5624
|
is,
|
|
5625
5625
|
{
|
|
@@ -5700,7 +5700,7 @@ const X1 = {
|
|
|
5700
5700
|
/* @__PURE__ */ e.createElement(
|
|
5701
5701
|
"div",
|
|
5702
5702
|
{
|
|
5703
|
-
className: [E,
|
|
5703
|
+
className: [E, v].join(" ").trim().replace(/\s+/g, " ")
|
|
5704
5704
|
},
|
|
5705
5705
|
d && /* @__PURE__ */ e.createElement(
|
|
5706
5706
|
Qt,
|
|
@@ -5825,8 +5825,8 @@ const J1 = (u) => {
|
|
|
5825
5825
|
"required",
|
|
5826
5826
|
"className"
|
|
5827
5827
|
]);
|
|
5828
|
-
const f = "pds-radio-group", [E, $] = R(a), g = (
|
|
5829
|
-
$(
|
|
5828
|
+
const f = "pds-radio-group", [E, $] = R(a), g = (v) => {
|
|
5829
|
+
$(v.target.value), l && l(v.target.value);
|
|
5830
5830
|
};
|
|
5831
5831
|
return /* @__PURE__ */ e.createElement(
|
|
5832
5832
|
gt,
|
|
@@ -5841,7 +5841,7 @@ const J1 = (u) => {
|
|
|
5841
5841
|
message: o,
|
|
5842
5842
|
required: m
|
|
5843
5843
|
}, h),
|
|
5844
|
-
/* @__PURE__ */ e.createElement("div", { className: [f].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, i.map((
|
|
5844
|
+
/* @__PURE__ */ e.createElement("div", { className: [f].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement("div", { className: `${f}__options` }, i.map((v, _) => /* @__PURE__ */ e.createElement(
|
|
5845
5845
|
"div",
|
|
5846
5846
|
{
|
|
5847
5847
|
className: `${f}__option`,
|
|
@@ -5853,14 +5853,14 @@ const J1 = (u) => {
|
|
|
5853
5853
|
type: "radio",
|
|
5854
5854
|
id: `${n}-option-${_}`,
|
|
5855
5855
|
name: n,
|
|
5856
|
-
value:
|
|
5856
|
+
value: v.value,
|
|
5857
5857
|
required: m,
|
|
5858
|
-
disabled: t ||
|
|
5858
|
+
disabled: t || v.disabled,
|
|
5859
5859
|
onClick: g,
|
|
5860
|
-
defaultChecked: E ===
|
|
5860
|
+
defaultChecked: E === v.value
|
|
5861
5861
|
}
|
|
5862
5862
|
),
|
|
5863
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${_}` },
|
|
5863
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${_}` }, v.label)
|
|
5864
5864
|
))))
|
|
5865
5865
|
);
|
|
5866
5866
|
};
|
|
@@ -6203,9 +6203,9 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6203
6203
|
"className"
|
|
6204
6204
|
]);
|
|
6205
6205
|
const u = t || We(), p = "pds-progress-ring", f = r ? `${p}__label` : "visually-hidden", E = `${p}__loading-text ${p}__loading-text--${l}`, $ = (H) => H * 16;
|
|
6206
|
-
let g = $(l2),
|
|
6207
|
-
l === "sm" && (g = $(a2),
|
|
6208
|
-
const _ = g / 2 -
|
|
6206
|
+
let g = $(l2), v = 7;
|
|
6207
|
+
l === "sm" && (g = $(a2), v = v / 1.25), l === "lg" && (g = $(c2), v = v * 1.25);
|
|
6208
|
+
const _ = g / 2 - v / 2, b = `${_ / 100}rem`, C = 2 * Math.PI * _, w = C - C * c / 100;
|
|
6209
6209
|
let x;
|
|
6210
6210
|
return n ? x = n : o ? x = `${c}%` : x = "", /* @__PURE__ */ e.createElement(
|
|
6211
6211
|
"div",
|
|
@@ -6213,7 +6213,7 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6213
6213
|
className: [p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
6214
6214
|
style: {
|
|
6215
6215
|
"--ring-stroke-dashoffset": w,
|
|
6216
|
-
"--ring-stroke-dasharray":
|
|
6216
|
+
"--ring-stroke-dasharray": C
|
|
6217
6217
|
}
|
|
6218
6218
|
}, m),
|
|
6219
6219
|
/* @__PURE__ */ e.createElement("div", { id: u, className: f }, a),
|
|
@@ -6239,7 +6239,7 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6239
6239
|
cx: g / 2,
|
|
6240
6240
|
cy: g / 2,
|
|
6241
6241
|
r: _,
|
|
6242
|
-
strokeWidth:
|
|
6242
|
+
strokeWidth: v
|
|
6243
6243
|
}
|
|
6244
6244
|
),
|
|
6245
6245
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6249,8 +6249,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6249
6249
|
cx: g / 2,
|
|
6250
6250
|
cy: g / 2,
|
|
6251
6251
|
r: _,
|
|
6252
|
-
strokeWidth:
|
|
6253
|
-
strokeDasharray:
|
|
6252
|
+
strokeWidth: v,
|
|
6253
|
+
strokeDasharray: C,
|
|
6254
6254
|
strokeDashoffset: w,
|
|
6255
6255
|
transform: `rotate(-90 ${g / 2} ${g / 2})`
|
|
6256
6256
|
}
|
|
@@ -6285,8 +6285,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6285
6285
|
"translatableLabels",
|
|
6286
6286
|
"className"
|
|
6287
6287
|
]);
|
|
6288
|
-
const l = "pds-stepper", i = "pds-stepper-mobile", m = se(), [d] = Ht(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40, f = 2, E = 5, $ = t.length, g = t.findLastIndex((b) => b.isCurrent),
|
|
6289
|
-
const w =
|
|
6288
|
+
const l = "pds-stepper", i = "pds-stepper-mobile", m = se(), [d] = Ht(m), h = d.width, u = getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "") * 16, p = -40, f = 2, E = 5, $ = t.length, g = t.findLastIndex((b) => b.isCurrent), v = t.map((b, C) => {
|
|
6289
|
+
const w = C + 1, x = C === g, H = C < g, M = b.hasError && x, L = (h - $ * u) / ($ + ($ - 2)), z = u + L * 2, O = u + L, V = L + p * -1, k = C === 0, I = C === $ - 1;
|
|
6290
6290
|
let A = z;
|
|
6291
6291
|
(k || I) && (A = O);
|
|
6292
6292
|
const B = `${l}__step`, F = [B];
|
|
@@ -6347,8 +6347,8 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6347
6347
|
}
|
|
6348
6348
|
)
|
|
6349
6349
|
);
|
|
6350
|
-
}), _ = t.map((b,
|
|
6351
|
-
const w =
|
|
6350
|
+
}), _ = t.map((b, C) => {
|
|
6351
|
+
const w = C + 1, x = C === g, H = C === $ - 1, M = b.hasError && x, N = t[g + 1] ? t[g + 1].label : null;
|
|
6352
6352
|
if (x) {
|
|
6353
6353
|
const L = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), w, " of ", $), z = w / $ * 100, O = M ? {
|
|
6354
6354
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
@@ -6390,7 +6390,7 @@ const a2 = 3.815, l2 = 4.678, c2 = 5.96, r2 = (d) => {
|
|
|
6390
6390
|
className: [l, a].join(" ").trim().replace(/\s+/g, " "),
|
|
6391
6391
|
"data-steps": $
|
|
6392
6392
|
}, c),
|
|
6393
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m },
|
|
6393
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: m }, v)
|
|
6394
6394
|
), /* @__PURE__ */ e.createElement(
|
|
6395
6395
|
"div",
|
|
6396
6396
|
y({
|
|
@@ -6445,22 +6445,22 @@ o2.propTypes = {
|
|
|
6445
6445
|
const i2 = (r) => {
|
|
6446
6446
|
var o = r, { headers: t, rowData: n, className: a } = o, c = S(o, ["headers", "rowData", "className"]);
|
|
6447
6447
|
const [l] = R(t), [i, m] = R(n), [d, h] = R({ order: "asc", key: "" }), u = (g) => {
|
|
6448
|
-
m(i.sort((
|
|
6448
|
+
m(i.sort((v, _) => v[g].localeCompare(_[g]))), h({ order: "desc", key: g });
|
|
6449
6449
|
}, p = (g) => {
|
|
6450
|
-
m(i.sort((
|
|
6451
|
-
}, f = (g,
|
|
6452
|
-
h(fe(y({}, d), { key:
|
|
6453
|
-
}, E = (g,
|
|
6450
|
+
m(i.sort((v, _) => _[g].localeCompare(v[g]))), h({ order: "asc", key: g });
|
|
6451
|
+
}, f = (g, v) => {
|
|
6452
|
+
h(fe(y({}, d), { key: v })), d.order === "asc" ? u(v) : p(v);
|
|
6453
|
+
}, E = (g, v) => /* @__PURE__ */ e.createElement("tr", { id: v, key: `table-row-${v}` }, g.map((_, b) => /* @__PURE__ */ e.createElement("td", { key: `${v}-cell-${b}` }, /* @__PURE__ */ e.createElement("span", null, _)))), $ = "pds-table";
|
|
6454
6454
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
6455
6455
|
"table",
|
|
6456
6456
|
y({
|
|
6457
6457
|
className: [$, a].join(" ").trim().replace(/\s+/g, " ")
|
|
6458
6458
|
}, c),
|
|
6459
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g,
|
|
6459
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((g, v) => /* @__PURE__ */ e.createElement("th", { key: `header-${v}` }, g.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${$}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6460
6460
|
"span",
|
|
6461
6461
|
{
|
|
6462
6462
|
className: `${$}__sort-header`,
|
|
6463
|
-
onClick: (_) => f(_,
|
|
6463
|
+
onClick: (_) => f(_, v)
|
|
6464
6464
|
},
|
|
6465
6465
|
g.title
|
|
6466
6466
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -6468,24 +6468,24 @@ const i2 = (r) => {
|
|
|
6468
6468
|
{
|
|
6469
6469
|
className: `${$}__sort-button`,
|
|
6470
6470
|
title: `Sort by ${g.title}`,
|
|
6471
|
-
onClick: (_) => f(_,
|
|
6471
|
+
onClick: (_) => f(_, v)
|
|
6472
6472
|
},
|
|
6473
6473
|
/* @__PURE__ */ e.createElement(
|
|
6474
6474
|
"span",
|
|
6475
6475
|
{
|
|
6476
|
-
className: `${$}__sort-button-top ${
|
|
6476
|
+
className: `${$}__sort-button-top ${v != d.key && d.key !== "" ? "pds-table__sort-innactive" : d.key == v ? d.order : "asc"}`
|
|
6477
6477
|
},
|
|
6478
6478
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretUp", iconSize: "sm" })
|
|
6479
6479
|
),
|
|
6480
6480
|
/* @__PURE__ */ e.createElement(
|
|
6481
6481
|
"span",
|
|
6482
6482
|
{
|
|
6483
|
-
className: `${$}__sort-button-bottom ${d.key ==
|
|
6483
|
+
className: `${$}__sort-button-bottom ${d.key == v ? d.order : "asc"}`
|
|
6484
6484
|
},
|
|
6485
6485
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "sm" })
|
|
6486
6486
|
)
|
|
6487
6487
|
)) : /* @__PURE__ */ e.createElement("span", null, g.title))))),
|
|
6488
|
-
/* @__PURE__ */ e.createElement("tbody", null, i.map((g,
|
|
6488
|
+
/* @__PURE__ */ e.createElement("tbody", null, i.map((g, v) => E(g, v)))
|
|
6489
6489
|
));
|
|
6490
6490
|
};
|
|
6491
6491
|
i2.propTypes = {
|
|
@@ -6560,7 +6560,7 @@ const d2 = (d) => {
|
|
|
6560
6560
|
title: O
|
|
6561
6561
|
});
|
|
6562
6562
|
}), L;
|
|
6563
|
-
}, { nestedHeadings:
|
|
6563
|
+
}, { nestedHeadings: v } = $(), [_, b] = R();
|
|
6564
6564
|
((N) => {
|
|
6565
6565
|
const L = se({});
|
|
6566
6566
|
ie(() => {
|
|
@@ -6639,7 +6639,7 @@ const d2 = (d) => {
|
|
|
6639
6639
|
},
|
|
6640
6640
|
c
|
|
6641
6641
|
),
|
|
6642
|
-
/* @__PURE__ */ e.createElement(M, { headings:
|
|
6642
|
+
/* @__PURE__ */ e.createElement(M, { headings: v, activeID: _ })
|
|
6643
6643
|
);
|
|
6644
6644
|
};
|
|
6645
6645
|
d2.propTypes = {
|
|
@@ -6702,8 +6702,8 @@ const U2 = (m) => {
|
|
|
6702
6702
|
const E = (_) => {
|
|
6703
6703
|
const b = _.currentTarget.getAttribute("data-tabnumber");
|
|
6704
6704
|
if (b) {
|
|
6705
|
-
const
|
|
6706
|
-
f(
|
|
6705
|
+
const C = parseInt(b, 10);
|
|
6706
|
+
f(C);
|
|
6707
6707
|
}
|
|
6708
6708
|
}, $ = se([]);
|
|
6709
6709
|
ie(() => {
|
|
@@ -6719,11 +6719,11 @@ const U2 = (m) => {
|
|
|
6719
6719
|
}
|
|
6720
6720
|
}, [p]);
|
|
6721
6721
|
const g = (_, b) => {
|
|
6722
|
-
const
|
|
6723
|
-
let w = $.current[b === "next" ?
|
|
6722
|
+
const C = p;
|
|
6723
|
+
let w = $.current[b === "next" ? C + 1 < $.current.length ? C + 1 : 0 : C - 1 >= 0 ? C - 1 : $.current.length - 1];
|
|
6724
6724
|
w || (w = b == "next" ? $.current[_ + 1] == null ? $.current[0] : $.current[_ + 1] : $.current[_ - 1]), w.focus();
|
|
6725
|
-
},
|
|
6726
|
-
const b = $.current.length,
|
|
6725
|
+
}, v = (_) => {
|
|
6726
|
+
const b = $.current.length, C = () => {
|
|
6727
6727
|
g((p + 1) % b, "next"), f(p + 1);
|
|
6728
6728
|
}, w = () => {
|
|
6729
6729
|
g((p - 1 + b) % b, "prev"), f(p - 1);
|
|
@@ -6734,7 +6734,7 @@ const U2 = (m) => {
|
|
|
6734
6734
|
}, M = () => {
|
|
6735
6735
|
$.current[p].focus();
|
|
6736
6736
|
}, L = {
|
|
6737
|
-
ArrowRight:
|
|
6737
|
+
ArrowRight: C,
|
|
6738
6738
|
ArrowLeft: w,
|
|
6739
6739
|
Home: x,
|
|
6740
6740
|
End: H,
|
|
@@ -6756,16 +6756,16 @@ const U2 = (m) => {
|
|
|
6756
6756
|
"aria-label": n,
|
|
6757
6757
|
"aria-orientation": "horizontal"
|
|
6758
6758
|
},
|
|
6759
|
-
o.map(({ disabled: _, icon: b, tabId:
|
|
6759
|
+
o.map(({ disabled: _, icon: b, tabId: C, tabLabel: w }, x) => /* @__PURE__ */ e.createElement(
|
|
6760
6760
|
"button",
|
|
6761
6761
|
{
|
|
6762
6762
|
className: `${h}__tab`,
|
|
6763
6763
|
"aria-selected": x == p,
|
|
6764
6764
|
"data-tabnumber": x,
|
|
6765
6765
|
role: "tab",
|
|
6766
|
-
id:
|
|
6766
|
+
id: C,
|
|
6767
6767
|
onKeyDown: (H) => {
|
|
6768
|
-
H.preventDefault(),
|
|
6768
|
+
H.preventDefault(), v(H);
|
|
6769
6769
|
},
|
|
6770
6770
|
key: w,
|
|
6771
6771
|
ref: (H) => _ ? null : $.current[x] = H,
|
|
@@ -6777,7 +6777,7 @@ const U2 = (m) => {
|
|
|
6777
6777
|
/* @__PURE__ */ e.createElement("div", { key: b, className: `${h}__tab-text` }, b ? /* @__PURE__ */ e.createElement(P, { iconName: b, iconSize: r }) : null, " ", w)
|
|
6778
6778
|
))
|
|
6779
6779
|
),
|
|
6780
|
-
o.map(({ tabLabel: _, icon: b, disabled:
|
|
6780
|
+
o.map(({ tabLabel: _, icon: b, disabled: C, panelContent: w }, x) => /* @__PURE__ */ e.createElement(
|
|
6781
6781
|
"div",
|
|
6782
6782
|
y({
|
|
6783
6783
|
className: `${h}__panel`,
|
|
@@ -6794,11 +6794,11 @@ const U2 = (m) => {
|
|
|
6794
6794
|
role: "tab",
|
|
6795
6795
|
"data-tabnumber": x,
|
|
6796
6796
|
key: _,
|
|
6797
|
-
onKeyDown:
|
|
6798
|
-
"aria-disabled": !!
|
|
6797
|
+
onKeyDown: v,
|
|
6798
|
+
"aria-disabled": !!C,
|
|
6799
6799
|
"aria-controls": `tabpanel_${x}`,
|
|
6800
6800
|
tabIndex: p === x ? 1 : -1,
|
|
6801
|
-
onClick:
|
|
6801
|
+
onClick: C ? null : E
|
|
6802
6802
|
},
|
|
6803
6803
|
/* @__PURE__ */ e.createElement("div", { key: b, className: `${h}__tab-text` }, b ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: b }) : null, " ", _),
|
|
6804
6804
|
x == p ? /* @__PURE__ */ e.createElement(
|
|
@@ -7135,18 +7135,18 @@ const h2 = (i) => {
|
|
|
7135
7135
|
id: n
|
|
7136
7136
|
}, l),
|
|
7137
7137
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
7138
|
-
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((g,
|
|
7138
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, o.map((g, v) => /* @__PURE__ */ e.createElement(
|
|
7139
7139
|
"div",
|
|
7140
7140
|
{
|
|
7141
7141
|
className: `${d}__option`,
|
|
7142
|
-
key: `${n}-option-${
|
|
7142
|
+
key: `${n}-option-${v}`
|
|
7143
7143
|
},
|
|
7144
7144
|
/* @__PURE__ */ e.createElement(
|
|
7145
7145
|
"input",
|
|
7146
7146
|
{
|
|
7147
7147
|
className: "visually-hidden",
|
|
7148
7148
|
type: "radio",
|
|
7149
|
-
id: `${n}-option-${
|
|
7149
|
+
id: `${n}-option-${v}`,
|
|
7150
7150
|
name: n,
|
|
7151
7151
|
value: g.value,
|
|
7152
7152
|
disabled: t,
|
|
@@ -7154,7 +7154,7 @@ const h2 = (i) => {
|
|
|
7154
7154
|
defaultChecked: p === g.value
|
|
7155
7155
|
}
|
|
7156
7156
|
),
|
|
7157
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${
|
|
7157
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${v}` }, g.iconName && /* @__PURE__ */ e.createElement(
|
|
7158
7158
|
P,
|
|
7159
7159
|
{
|
|
7160
7160
|
iconName: g.iconName,
|
|
@@ -7239,11 +7239,11 @@ const g2 = (f) => {
|
|
|
7239
7239
|
"statusOffLabel",
|
|
7240
7240
|
"className"
|
|
7241
7241
|
]);
|
|
7242
|
-
const $ = "pds-toggle-switch", [g,
|
|
7243
|
-
|
|
7242
|
+
const $ = "pds-toggle-switch", [g, v] = R(!1), _ = (w) => {
|
|
7243
|
+
v(!g), o && o(w.target);
|
|
7244
7244
|
};
|
|
7245
|
-
let b = g === !0 ? d : h,
|
|
7246
|
-
return m ?
|
|
7245
|
+
let b = g === !0 ? d : h, C;
|
|
7246
|
+
return m ? C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
7247
7247
|
"span",
|
|
7248
7248
|
{
|
|
7249
7249
|
className: "pds-toggle__label pds-toggle__label--on",
|
|
@@ -7257,7 +7257,7 @@ const g2 = (f) => {
|
|
|
7257
7257
|
"aria-hidden": "true"
|
|
7258
7258
|
},
|
|
7259
7259
|
h
|
|
7260
|
-
)) :
|
|
7260
|
+
)) : C = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
7261
7261
|
P,
|
|
7262
7262
|
{
|
|
7263
7263
|
iconName: "check",
|
|
@@ -7295,7 +7295,7 @@ const g2 = (f) => {
|
|
|
7295
7295
|
"aria-checked": g,
|
|
7296
7296
|
onClick: _
|
|
7297
7297
|
},
|
|
7298
|
-
|
|
7298
|
+
C
|
|
7299
7299
|
))
|
|
7300
7300
|
);
|
|
7301
7301
|
};
|
|
@@ -7387,10 +7387,10 @@ const G2 = () => {
|
|
|
7387
7387
|
onFocus: E,
|
|
7388
7388
|
placeholder: $,
|
|
7389
7389
|
readonly: g = !1,
|
|
7390
|
-
required:
|
|
7390
|
+
required: v = !1,
|
|
7391
7391
|
showLabel: _ = !0,
|
|
7392
7392
|
showVisibilityToggle: b = !1,
|
|
7393
|
-
translationStrings:
|
|
7393
|
+
translationStrings: C = {
|
|
7394
7394
|
clearButton: "Clear input text",
|
|
7395
7395
|
counterOverLimit: "Character limit exceeded by",
|
|
7396
7396
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -7431,7 +7431,7 @@ const G2 = () => {
|
|
|
7431
7431
|
"value",
|
|
7432
7432
|
"className"
|
|
7433
7433
|
]);
|
|
7434
|
-
const k = ht(m), I = "pds-text-input", A = c ? te.disabled : null, B =
|
|
7434
|
+
const k = ht(m), I = "pds-text-input", A = c ? te.disabled : null, B = v && !c ? te.required : null, F = H === "error" ? te.error : null, j = H === "success" ? te.success : null, Z = g ? te.readonly : null;
|
|
7435
7435
|
let G = null;
|
|
7436
7436
|
w === "search" && (G = "search"), H === "error" && (G = "error"), H === "success" && (G = "success");
|
|
7437
7437
|
const T = x || h, D = typeof M != "undefined", W = typeof a != "undefined", [U, ne] = R(
|
|
@@ -7471,11 +7471,11 @@ const G2 = () => {
|
|
|
7471
7471
|
id: l,
|
|
7472
7472
|
label: d,
|
|
7473
7473
|
showLabel: _,
|
|
7474
|
-
required:
|
|
7474
|
+
required: v,
|
|
7475
7475
|
disabled: c
|
|
7476
7476
|
}
|
|
7477
7477
|
),
|
|
7478
|
-
b && w === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${
|
|
7478
|
+
b && w === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${C.visibilityStatus} ${ae ? "visible" : "hidden"}.`),
|
|
7479
7479
|
/* @__PURE__ */ e.createElement("div", { className: `${I}__input-wrapper` }, G && /* @__PURE__ */ e.createElement(Mt, { variant: G }), /* @__PURE__ */ e.createElement(
|
|
7480
7480
|
"input",
|
|
7481
7481
|
y({
|
|
@@ -7488,7 +7488,7 @@ const G2 = () => {
|
|
|
7488
7488
|
placeholder: $,
|
|
7489
7489
|
readOnly: g,
|
|
7490
7490
|
disabled: c,
|
|
7491
|
-
required:
|
|
7491
|
+
required: v,
|
|
7492
7492
|
autoComplete: w === "password" ? "off" : t,
|
|
7493
7493
|
onBlur: be,
|
|
7494
7494
|
onChange: J,
|
|
@@ -7500,7 +7500,7 @@ const G2 = () => {
|
|
|
7500
7500
|
Hs,
|
|
7501
7501
|
{
|
|
7502
7502
|
id: l,
|
|
7503
|
-
clearLabel:
|
|
7503
|
+
clearLabel: C.clearButton,
|
|
7504
7504
|
handleClearInput: de
|
|
7505
7505
|
}
|
|
7506
7506
|
), b && w === "password" && /* @__PURE__ */ e.createElement(
|
|
@@ -7508,7 +7508,7 @@ const G2 = () => {
|
|
|
7508
7508
|
{
|
|
7509
7509
|
type: "button",
|
|
7510
7510
|
className: `${I}__visibility-toggle`,
|
|
7511
|
-
title: ae ?
|
|
7511
|
+
title: ae ? C.visibilityToggleHide : C.visibilityToggleShow,
|
|
7512
7512
|
"aria-controls": l,
|
|
7513
7513
|
onClick: _e,
|
|
7514
7514
|
onMouseDown: (re) => re.preventDefault()
|
|
@@ -7518,7 +7518,7 @@ const G2 = () => {
|
|
|
7518
7518
|
ks,
|
|
7519
7519
|
{
|
|
7520
7520
|
inputId: l,
|
|
7521
|
-
shortcutLabel:
|
|
7521
|
+
shortcutLabel: C.searchShortcut
|
|
7522
7522
|
}
|
|
7523
7523
|
), n && w !== "password" && /* @__PURE__ */ e.createElement(
|
|
7524
7524
|
zs,
|
|
@@ -7526,7 +7526,7 @@ const G2 = () => {
|
|
|
7526
7526
|
id: l,
|
|
7527
7527
|
currentLength: Q.length,
|
|
7528
7528
|
maxLength: n,
|
|
7529
|
-
overLimitMessage:
|
|
7529
|
+
overLimitMessage: C.counterOverLimit
|
|
7530
7530
|
}
|
|
7531
7531
|
)),
|
|
7532
7532
|
T && /* @__PURE__ */ e.createElement(
|
|
@@ -7570,7 +7570,7 @@ const G2 = () => {
|
|
|
7570
7570
|
"workspaceList",
|
|
7571
7571
|
"className"
|
|
7572
7572
|
]);
|
|
7573
|
-
const [f, E] = R(!1), [$, g] = R(null), [
|
|
7573
|
+
const [f, E] = R(!1), [$, g] = R(null), [v, _] = R(m), b = se([]), C = se(null), w = m.length >= o;
|
|
7574
7574
|
let x = !1;
|
|
7575
7575
|
const H = we(je);
|
|
7576
7576
|
H && (x = H.isMobile);
|
|
@@ -7616,7 +7616,7 @@ const G2 = () => {
|
|
|
7616
7616
|
_(Y);
|
|
7617
7617
|
}, [m]);
|
|
7618
7618
|
const Q = (Y) => {
|
|
7619
|
-
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? w ? document.getElementById("workspace-filter").focus() : E(!1) : n ?
|
|
7619
|
+
Y.preventDefault(), Y.key === "Enter" && b.current[$].querySelector("a").click(), Y.key === "Tab" && (Y.shiftKey ? w ? document.getElementById("workspace-filter").focus() : E(!1) : n ? C.current.querySelector("a").focus() : E(!1));
|
|
7620
7620
|
}, be = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
7621
7621
|
ut,
|
|
7622
7622
|
{
|
|
@@ -7651,7 +7651,7 @@ const G2 = () => {
|
|
|
7651
7651
|
showLabel: !1,
|
|
7652
7652
|
type: "search"
|
|
7653
7653
|
}
|
|
7654
|
-
)), ae =
|
|
7654
|
+
)), ae = v.map(
|
|
7655
7655
|
(Y, Ee) => {
|
|
7656
7656
|
const He = `${N}__item`, le = Y.isActive ? `${He}--active` : null, ce = Y.isUnprivileged ? `${He}--unprivileged` : null, Le = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${N}__active-icon` }), ke = Y.workspaceId, ze = Y.workspaceLink.type, ve = Y.isUnprivileged ? null : (Ze) => {
|
|
7657
7657
|
b.current[Ee] = Ze;
|
|
@@ -7689,7 +7689,7 @@ const G2 = () => {
|
|
|
7689
7689
|
)
|
|
7690
7690
|
);
|
|
7691
7691
|
}
|
|
7692
|
-
), ee = n && /* @__PURE__ */ e.createElement("div", { className: `${N}__create-link`, ref:
|
|
7692
|
+
), ee = n && /* @__PURE__ */ e.createElement("div", { className: `${N}__create-link`, ref: C }, /* @__PURE__ */ e.createElement(
|
|
7693
7693
|
rt,
|
|
7694
7694
|
{
|
|
7695
7695
|
displayType: "icon-end",
|
|
@@ -7879,11 +7879,11 @@ const E2 = (o) => {
|
|
|
7879
7879
|
"options",
|
|
7880
7880
|
"className"
|
|
7881
7881
|
]);
|
|
7882
|
-
const h = "pds-segmented-button", u = "pds-is-disabled", p = se([h]), [f, E] = R(a), $ = (
|
|
7883
|
-
E(
|
|
7882
|
+
const h = "pds-segmented-button", u = "pds-is-disabled", p = se([h]), [f, E] = R(a), $ = (v) => {
|
|
7883
|
+
E(v.target.value), r && r(v.target.value);
|
|
7884
7884
|
};
|
|
7885
7885
|
if ((() => {
|
|
7886
|
-
p.current = p.current.filter((
|
|
7886
|
+
p.current = p.current.filter((v) => v !== u);
|
|
7887
7887
|
})(), t && p.current.push(u), o.length >= 2 && o.length <= 6)
|
|
7888
7888
|
return /* @__PURE__ */ e.createElement(
|
|
7889
7889
|
"fieldset",
|
|
@@ -7891,7 +7891,7 @@ const E2 = (o) => {
|
|
|
7891
7891
|
className: [h, l != null ? l : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
7892
7892
|
}, i),
|
|
7893
7893
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, c),
|
|
7894
|
-
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((
|
|
7894
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((v, _) => /* @__PURE__ */ e.createElement(
|
|
7895
7895
|
"div",
|
|
7896
7896
|
{
|
|
7897
7897
|
className: `${h}__option`,
|
|
@@ -7904,27 +7904,27 @@ const E2 = (o) => {
|
|
|
7904
7904
|
type: "radio",
|
|
7905
7905
|
id: `${n}-option-${_}`,
|
|
7906
7906
|
name: n,
|
|
7907
|
-
value:
|
|
7907
|
+
value: v.value,
|
|
7908
7908
|
disabled: t,
|
|
7909
7909
|
onClick: $,
|
|
7910
|
-
defaultChecked: f ===
|
|
7910
|
+
defaultChecked: f === v.value
|
|
7911
7911
|
}
|
|
7912
7912
|
),
|
|
7913
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${_}` },
|
|
7913
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: `${n}-option-${_}` }, v.tally ? /* @__PURE__ */ e.createElement(
|
|
7914
7914
|
E2,
|
|
7915
7915
|
{
|
|
7916
|
-
label:
|
|
7917
|
-
type:
|
|
7916
|
+
label: v.tally.label,
|
|
7917
|
+
type: v.tally.type,
|
|
7918
7918
|
className: `${h}__tally`
|
|
7919
7919
|
}
|
|
7920
|
-
) :
|
|
7920
|
+
) : v.iconName && /* @__PURE__ */ e.createElement(
|
|
7921
7921
|
P,
|
|
7922
7922
|
{
|
|
7923
|
-
iconName:
|
|
7923
|
+
iconName: v.iconName,
|
|
7924
7924
|
iconSize: "sm",
|
|
7925
7925
|
className: `${h}__icon`
|
|
7926
7926
|
}
|
|
7927
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` },
|
|
7927
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, v.label))
|
|
7928
7928
|
)))
|
|
7929
7929
|
);
|
|
7930
7930
|
}, v2 = {
|
|
@@ -7992,18 +7992,18 @@ const E2 = (o) => {
|
|
|
7992
7992
|
const u = "pds-card-select-group";
|
|
7993
7993
|
let p = `${u}__legend`;
|
|
7994
7994
|
c === "center" && (p = `${u}__legend ${u}__legend--center`), c === "hidden" && (p = `${u}__legend visually-hidden`);
|
|
7995
|
-
const [f, E] = R(n), $ = (
|
|
7996
|
-
E(
|
|
7997
|
-
}, g = l.length,
|
|
7995
|
+
const [f, E] = R(n), $ = (C) => {
|
|
7996
|
+
E(C.currentTarget.value), o && o(C.currentTarget.value);
|
|
7997
|
+
}, g = l.length, v = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", _ = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
7998
7998
|
let b = "";
|
|
7999
|
-
return r === "twoAcross" ? b =
|
|
7999
|
+
return r === "twoAcross" ? b = v : r === "threeAcross" ? b = _ : r === "auto" && (g % 3 === 0 ? b = _ : g % 2 === 0 ? b = v : b = _), /* @__PURE__ */ e.createElement(
|
|
8000
8000
|
"fieldset",
|
|
8001
8001
|
y({
|
|
8002
8002
|
className: [u, i].join(" ").trim().replace(/\s+/g, " "),
|
|
8003
8003
|
id: t
|
|
8004
8004
|
}, m),
|
|
8005
8005
|
/* @__PURE__ */ e.createElement("legend", { className: p }, a),
|
|
8006
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((
|
|
8006
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__options pds-grid pds-grid--narrow` }, l.map((C, w) => /* @__PURE__ */ e.createElement(
|
|
8007
8007
|
"div",
|
|
8008
8008
|
{
|
|
8009
8009
|
className: [`${u}__option`, b].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -8015,26 +8015,26 @@ const E2 = (o) => {
|
|
|
8015
8015
|
type: "radio",
|
|
8016
8016
|
id: `${t}-option-${w}`,
|
|
8017
8017
|
name: t,
|
|
8018
|
-
value:
|
|
8018
|
+
value: C.value,
|
|
8019
8019
|
onClick: $,
|
|
8020
|
-
defaultChecked: f ===
|
|
8020
|
+
defaultChecked: f === C.value
|
|
8021
8021
|
}
|
|
8022
8022
|
),
|
|
8023
8023
|
/* @__PURE__ */ e.createElement(
|
|
8024
8024
|
"label",
|
|
8025
8025
|
{
|
|
8026
8026
|
htmlFor: `${t}-option-${w}`,
|
|
8027
|
-
className: f ===
|
|
8027
|
+
className: f === C.value ? `${u}__option-label ${u}__option-label--selected` : `${u}__option-label`
|
|
8028
8028
|
},
|
|
8029
8029
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
8030
8030
|
P,
|
|
8031
8031
|
{
|
|
8032
|
-
iconName: f ===
|
|
8032
|
+
iconName: f === C.value ? "circleCheck" : "circle",
|
|
8033
8033
|
iconSize: "xl",
|
|
8034
|
-
className: f ===
|
|
8034
|
+
className: f === C.value ? `${u}__option-icon ${u}__option-icon--selected` : `${u}__option-icon`
|
|
8035
8035
|
}
|
|
8036
8036
|
)),
|
|
8037
|
-
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` },
|
|
8037
|
+
/* @__PURE__ */ e.createElement("div", { className: `${u}__option-label-text` }, C.label, C.description && /* @__PURE__ */ e.createElement("div", { className: `${u}__option-description` }, C.description))
|
|
8038
8038
|
)
|
|
8039
8039
|
)))
|
|
8040
8040
|
);
|
|
@@ -8058,10 +8058,10 @@ const E2 = (o) => {
|
|
|
8058
8058
|
required: E,
|
|
8059
8059
|
showLabel: $ = !0,
|
|
8060
8060
|
validationMessage: g,
|
|
8061
|
-
validationStatus:
|
|
8061
|
+
validationStatus: v,
|
|
8062
8062
|
value: _,
|
|
8063
8063
|
className: b
|
|
8064
|
-
} = H,
|
|
8064
|
+
} = H, C = S(H, [
|
|
8065
8065
|
"checked",
|
|
8066
8066
|
"defaultChecked",
|
|
8067
8067
|
"disabled",
|
|
@@ -8083,7 +8083,7 @@ const E2 = (o) => {
|
|
|
8083
8083
|
"value",
|
|
8084
8084
|
"className"
|
|
8085
8085
|
]);
|
|
8086
|
-
const M = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", L = a ? te.disabled : null, z = E && !a ? te.required : null, O =
|
|
8086
|
+
const M = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", L = a ? te.disabled : null, z = E && !a ? te.required : null, O = v === "error" ? te.error : null, V = v === "success" ? te.success : null, k = h > 0 ? `${N}--indent-${h}` : null, I = g || m, A = typeof t != "undefined", B = typeof n != "undefined", [F, j] = R(
|
|
8087
8087
|
B ? n : !1
|
|
8088
8088
|
), Z = t || F, G = (ne) => {
|
|
8089
8089
|
A || j(ne.target.checked), p && p(ne);
|
|
@@ -8120,7 +8120,7 @@ const E2 = (o) => {
|
|
|
8120
8120
|
b != null ? b : ""
|
|
8121
8121
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8122
8122
|
style: l ? M : null
|
|
8123
|
-
},
|
|
8123
|
+
}, C),
|
|
8124
8124
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8125
8125
|
"input",
|
|
8126
8126
|
y(fe(y({
|
|
@@ -8136,7 +8136,7 @@ const E2 = (o) => {
|
|
|
8136
8136
|
onBlur: u,
|
|
8137
8137
|
onChange: G,
|
|
8138
8138
|
onFocus: f,
|
|
8139
|
-
"aria-invalid":
|
|
8139
|
+
"aria-invalid": v === "error" ? !0 : null,
|
|
8140
8140
|
"aria-describedby": I ? `${c}__message` : null
|
|
8141
8141
|
}), o)
|
|
8142
8142
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: c, className: `${N}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8168,7 +8168,7 @@ const E2 = (o) => {
|
|
|
8168
8168
|
message: I,
|
|
8169
8169
|
hasValidationMessage: !!g,
|
|
8170
8170
|
validationMessageHasDecorators: !0,
|
|
8171
|
-
validationStatus:
|
|
8171
|
+
validationStatus: v
|
|
8172
8172
|
}
|
|
8173
8173
|
)
|
|
8174
8174
|
);
|
|
@@ -8201,16 +8201,16 @@ const E2 = (o) => {
|
|
|
8201
8201
|
"validationStatus",
|
|
8202
8202
|
"className"
|
|
8203
8203
|
]);
|
|
8204
|
-
const $ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group",
|
|
8204
|
+
const $ = r ? { width: `${r / 16}rem` } : null, g = "pds-checkbox-group", v = n ? te.disabled : null, _ = i && !n ? te.required : null, b = h === "error" ? te.error : null, C = h === "success" ? te.success : null, w = d || l;
|
|
8205
8205
|
return /* @__PURE__ */ e.createElement(
|
|
8206
8206
|
"div",
|
|
8207
8207
|
y({
|
|
8208
8208
|
className: [
|
|
8209
8209
|
g,
|
|
8210
|
-
|
|
8210
|
+
v,
|
|
8211
8211
|
_,
|
|
8212
8212
|
b,
|
|
8213
|
-
|
|
8213
|
+
C,
|
|
8214
8214
|
u != null ? u : ""
|
|
8215
8215
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8216
8216
|
style: r ? $ : null
|
|
@@ -8269,7 +8269,7 @@ const E2 = (o) => {
|
|
|
8269
8269
|
"validationStatus",
|
|
8270
8270
|
"className"
|
|
8271
8271
|
]);
|
|
8272
|
-
const
|
|
8272
|
+
const v = c ? { width: `${c / 16}rem` } : null, _ = "pds-checkbox-group", b = t ? te.disabled : null, C = d && !t ? te.required : null, w = p === "error" ? te.error : null, x = p === "success" ? te.success : null, H = u || o;
|
|
8273
8273
|
m.map((V) => {
|
|
8274
8274
|
V.id || (V.id = V.value);
|
|
8275
8275
|
});
|
|
@@ -8295,12 +8295,12 @@ const E2 = (o) => {
|
|
|
8295
8295
|
className: [
|
|
8296
8296
|
_,
|
|
8297
8297
|
b,
|
|
8298
|
-
|
|
8298
|
+
C,
|
|
8299
8299
|
w,
|
|
8300
8300
|
x,
|
|
8301
8301
|
f != null ? f : ""
|
|
8302
8302
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
8303
|
-
style: c ?
|
|
8303
|
+
style: c ? v : null
|
|
8304
8304
|
}, E),
|
|
8305
8305
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${_}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
8306
8306
|
et,
|
|
@@ -8390,7 +8390,7 @@ const E2 = (o) => {
|
|
|
8390
8390
|
},
|
|
8391
8391
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "sm" })
|
|
8392
8392
|
)), tn = Pe(
|
|
8393
|
-
(_,
|
|
8393
|
+
(_, v) => {
|
|
8394
8394
|
var b = _, {
|
|
8395
8395
|
checked: t,
|
|
8396
8396
|
defaultChecked: n,
|
|
@@ -8426,12 +8426,12 @@ const E2 = (o) => {
|
|
|
8426
8426
|
"showStatusLabel",
|
|
8427
8427
|
"className"
|
|
8428
8428
|
]);
|
|
8429
|
-
const
|
|
8429
|
+
const C = ht(o), w = "pds-switch", x = a ? te.disabled : null, H = p && !a ? te.required : null, M = typeof t != "undefined", N = i == "below", L = i == "right", z = !M && n ? n : !1, [O, V] = R(z), k = t || O ? u : d, I = (G) => {
|
|
8430
8430
|
M || V(G.target.checked), h && h(G);
|
|
8431
8431
|
}, A = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
8432
8432
|
"input",
|
|
8433
8433
|
y({
|
|
8434
|
-
ref:
|
|
8434
|
+
ref: v,
|
|
8435
8435
|
id: c,
|
|
8436
8436
|
name: c,
|
|
8437
8437
|
type: "checkbox",
|
|
@@ -8488,7 +8488,7 @@ const E2 = (o) => {
|
|
|
8488
8488
|
Z,
|
|
8489
8489
|
$
|
|
8490
8490
|
]),
|
|
8491
|
-
style: o ?
|
|
8491
|
+
style: o ? C : null
|
|
8492
8492
|
}, g),
|
|
8493
8493
|
j
|
|
8494
8494
|
);
|
|
@@ -8513,7 +8513,7 @@ const E2 = (o) => {
|
|
|
8513
8513
|
rows: E = 5,
|
|
8514
8514
|
showLabel: $,
|
|
8515
8515
|
textareaProps: g,
|
|
8516
|
-
translationStrings:
|
|
8516
|
+
translationStrings: v = {
|
|
8517
8517
|
clearButton: "Clear input text",
|
|
8518
8518
|
counterOverLimit: "Character limit exceeded by",
|
|
8519
8519
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -8523,7 +8523,7 @@ const E2 = (o) => {
|
|
|
8523
8523
|
},
|
|
8524
8524
|
validationMessage: _,
|
|
8525
8525
|
validationStatus: b,
|
|
8526
|
-
value:
|
|
8526
|
+
value: C,
|
|
8527
8527
|
className: w
|
|
8528
8528
|
} = N, x = S(N, [
|
|
8529
8529
|
"counterMaxLength",
|
|
@@ -8549,9 +8549,9 @@ const E2 = (o) => {
|
|
|
8549
8549
|
"value",
|
|
8550
8550
|
"className"
|
|
8551
8551
|
]);
|
|
8552
|
-
const L = ht(r), z = "pds-textarea", O = o ? "pds-is-resizable" : null, V = a ? te.disabled : null, k = f && !a ? te.required : null, I = b === "error" ? te.error : null, A = b === "success" ? te.success : null, B = p ? te.readonly : null, F = _ || i, j =
|
|
8552
|
+
const L = ht(r), z = "pds-textarea", O = o ? "pds-is-resizable" : null, V = a ? te.disabled : null, k = f && !a ? te.required : null, I = b === "error" ? te.error : null, A = b === "success" ? te.success : null, B = p ? te.readonly : null, F = _ || i, j = C != null && d !== void 0, Z = typeof n != "undefined", [G, T] = R(
|
|
8553
8553
|
Z ? n : ""
|
|
8554
|
-
), D =
|
|
8554
|
+
), D = C || G, W = (ne) => {
|
|
8555
8555
|
j || T(ne.target.value), d && d(ne);
|
|
8556
8556
|
}, U = (ne) => {
|
|
8557
8557
|
m && m(ne);
|
|
@@ -8587,7 +8587,7 @@ const E2 = (o) => {
|
|
|
8587
8587
|
id: c,
|
|
8588
8588
|
currentLength: D.length,
|
|
8589
8589
|
maxLength: t,
|
|
8590
|
-
overLimitMessage:
|
|
8590
|
+
overLimitMessage: v.counterOverLimit
|
|
8591
8591
|
}
|
|
8592
8592
|
)),
|
|
8593
8593
|
/* @__PURE__ */ e.createElement("div", { className: `${z}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8601,7 +8601,7 @@ const E2 = (o) => {
|
|
|
8601
8601
|
required: f,
|
|
8602
8602
|
readOnly: p,
|
|
8603
8603
|
disabled: a,
|
|
8604
|
-
value: j ?
|
|
8604
|
+
value: j ? C : G,
|
|
8605
8605
|
rows: E,
|
|
8606
8606
|
onChange: W,
|
|
8607
8607
|
onBlur: U,
|
|
@@ -8649,12 +8649,12 @@ const E2 = (o) => {
|
|
|
8649
8649
|
}, [c]), ie(() => {
|
|
8650
8650
|
r(f);
|
|
8651
8651
|
}, [f]);
|
|
8652
|
-
const { refs: $, context: g, floatingStyles:
|
|
8652
|
+
const { refs: $, context: g, floatingStyles: v } = Ie({
|
|
8653
8653
|
open: f,
|
|
8654
8654
|
onOpenChange: E
|
|
8655
8655
|
}), _ = Je(g), b = Se(g, {
|
|
8656
8656
|
outsidePressEvent: "mousedown"
|
|
8657
|
-
}),
|
|
8657
|
+
}), C = Te(g), { getFloatingProps: w } = Oe([_, b, C]), { isMounted: x, styles: H } = Qe(g, {
|
|
8658
8658
|
duration: {
|
|
8659
8659
|
open: 300,
|
|
8660
8660
|
close: 300
|
|
@@ -8676,7 +8676,7 @@ const E2 = (o) => {
|
|
|
8676
8676
|
t1,
|
|
8677
8677
|
{
|
|
8678
8678
|
lockScroll: !0,
|
|
8679
|
-
style: fe(y({},
|
|
8679
|
+
style: fe(y({}, v), {
|
|
8680
8680
|
background: "var(--pds-color-overlay)",
|
|
8681
8681
|
transition: "var(--pds-animation-reveal-transition)",
|
|
8682
8682
|
zIndex: "var(--pds-z-index-modal)",
|
|
@@ -8690,7 +8690,7 @@ const E2 = (o) => {
|
|
|
8690
8690
|
"aria-label": t || l
|
|
8691
8691
|
}, w()), {
|
|
8692
8692
|
className: [u, p, i].join(" ").trim().replace(/\s+/g, " "),
|
|
8693
|
-
style: fe(y(y({},
|
|
8693
|
+
style: fe(y(y({}, v), H), {
|
|
8694
8694
|
position: "relative",
|
|
8695
8695
|
top: "5%"
|
|
8696
8696
|
})
|
|
@@ -8797,9 +8797,9 @@ const E2 = (o) => {
|
|
|
8797
8797
|
}), g = vt($, {
|
|
8798
8798
|
move: !1,
|
|
8799
8799
|
handleClose: bs()
|
|
8800
|
-
}),
|
|
8800
|
+
}), v = gs($), _ = Se($), b = Te($, { role: "menu" }), { getReferenceProps: C, getFloatingProps: w } = Oe([
|
|
8801
8801
|
g,
|
|
8802
|
-
|
|
8802
|
+
v,
|
|
8803
8803
|
_,
|
|
8804
8804
|
b
|
|
8805
8805
|
]), x = (H) => {
|
|
@@ -8820,7 +8820,7 @@ const E2 = (o) => {
|
|
|
8820
8820
|
n ? `${i}--active` : null
|
|
8821
8821
|
]),
|
|
8822
8822
|
ref: a ? null : f.setReference
|
|
8823
|
-
},
|
|
8823
|
+
}, C()),
|
|
8824
8824
|
o ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${i}-wrapper` }, Gt(
|
|
8825
8825
|
l,
|
|
8826
8826
|
r,
|
|
@@ -8893,7 +8893,7 @@ const E2 = (o) => {
|
|
|
8893
8893
|
};
|
|
8894
8894
|
}
|
|
8895
8895
|
}, [m]);
|
|
8896
|
-
const
|
|
8896
|
+
const v = ({
|
|
8897
8897
|
item: I,
|
|
8898
8898
|
level: A
|
|
8899
8899
|
}) => fe(y({}, I), {
|
|
@@ -8907,29 +8907,29 @@ const E2 = (o) => {
|
|
|
8907
8907
|
}), _ = (I) => {
|
|
8908
8908
|
const A = [];
|
|
8909
8909
|
return I.forEach((B) => {
|
|
8910
|
-
B.links ? (A.push(
|
|
8911
|
-
F.links ? (A.push(
|
|
8910
|
+
B.links ? (A.push(v({ item: B, level: "top-level" })), B.links.forEach((F) => {
|
|
8911
|
+
F.links ? (A.push(v({ item: F, level: "second-level" })), F.links.forEach((j) => {
|
|
8912
8912
|
A.push(
|
|
8913
|
-
|
|
8913
|
+
v({ item: j, level: "third-level" })
|
|
8914
8914
|
);
|
|
8915
|
-
})) : A.push(
|
|
8916
|
-
})) : A.push(
|
|
8915
|
+
})) : A.push(v({ item: F, level: "second-level" }));
|
|
8916
|
+
})) : A.push(v({ item: B, level: "top-level" }));
|
|
8917
8917
|
}), A;
|
|
8918
|
-
}, { refs: b, context:
|
|
8918
|
+
}, { refs: b, context: C } = Ie({
|
|
8919
8919
|
placement: "bottom-start",
|
|
8920
8920
|
open: m,
|
|
8921
8921
|
onOpenChange: d,
|
|
8922
8922
|
whileElementsMounted: qe
|
|
8923
|
-
}), w = se([]), x = pt(
|
|
8923
|
+
}), w = se([]), x = pt(C, {
|
|
8924
8924
|
listRef: w,
|
|
8925
8925
|
activeIndex: h,
|
|
8926
8926
|
onNavigate: u,
|
|
8927
8927
|
loop: !0,
|
|
8928
8928
|
openOnArrowKeyDown: !0,
|
|
8929
8929
|
focusItemOnHover: !0
|
|
8930
|
-
}), H = Je(
|
|
8930
|
+
}), H = Je(C, { event: "mousedown" }), M = Se(C), N = Te(C, { role: "menu" }), { getReferenceProps: L, getFloatingProps: z, getItemProps: O } = Oe(
|
|
8931
8931
|
[M, N, H, x]
|
|
8932
|
-
), { isMounted: V, styles: k } = Qe(
|
|
8932
|
+
), { isMounted: V, styles: k } = Qe(C, {
|
|
8933
8933
|
duration: {
|
|
8934
8934
|
open: 300,
|
|
8935
8935
|
close: 300
|
|
@@ -9358,7 +9358,7 @@ const E2 = (o) => {
|
|
|
9358
9358
|
_.links,
|
|
9359
9359
|
_.icon
|
|
9360
9360
|
)
|
|
9361
|
-
})),
|
|
9361
|
+
})), v = /* @__PURE__ */ e.createElement(
|
|
9362
9362
|
Jt,
|
|
9363
9363
|
{
|
|
9364
9364
|
menuItems: g,
|
|
@@ -9379,7 +9379,7 @@ const E2 = (o) => {
|
|
|
9379
9379
|
linkContent: p
|
|
9380
9380
|
}
|
|
9381
9381
|
),
|
|
9382
|
-
m ?
|
|
9382
|
+
m ? v : $
|
|
9383
9383
|
);
|
|
9384
9384
|
}, dt = (r) => {
|
|
9385
9385
|
var o = r, {
|
|
@@ -9430,11 +9430,11 @@ const E2 = (o) => {
|
|
|
9430
9430
|
]);
|
|
9431
9431
|
const [E, $] = R(!1);
|
|
9432
9432
|
let g = !1;
|
|
9433
|
-
const
|
|
9434
|
-
|
|
9433
|
+
const v = we(je);
|
|
9434
|
+
v && (g = v.isMobile);
|
|
9435
9435
|
const _ = we(xt);
|
|
9436
9436
|
_ && (l = _.logoLinkContent);
|
|
9437
|
-
const b = "pds-navbar",
|
|
9437
|
+
const b = "pds-navbar", C = c ? `${b}--noBorder` : "", w = n !== "default" ? `${b}--${n}` : "", x = g ? `${b}--isMobile` : `${b}--notMobile`, H = (T) => {
|
|
9438
9438
|
const D = T.key;
|
|
9439
9439
|
let W = !1;
|
|
9440
9440
|
switch (D) {
|
|
@@ -9521,7 +9521,7 @@ const E2 = (o) => {
|
|
|
9521
9521
|
className: K([
|
|
9522
9522
|
b,
|
|
9523
9523
|
w,
|
|
9524
|
-
|
|
9524
|
+
C,
|
|
9525
9525
|
x,
|
|
9526
9526
|
h != null ? h : ""
|
|
9527
9527
|
])
|
|
@@ -9557,14 +9557,14 @@ const E2 = (o) => {
|
|
|
9557
9557
|
}), []);
|
|
9558
9558
|
const E = () => {
|
|
9559
9559
|
f(window.innerWidth);
|
|
9560
|
-
}, $ = p <= o, g = (
|
|
9561
|
-
const w =
|
|
9560
|
+
}, $ = p <= o, g = (C) => {
|
|
9561
|
+
const w = C.target;
|
|
9562
9562
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
9563
9563
|
"aria-expanded",
|
|
9564
9564
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9565
9565
|
), w.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9566
|
-
},
|
|
9567
|
-
const { linkContent: x, links: H } =
|
|
9566
|
+
}, v = (C, w) => {
|
|
9567
|
+
const { linkContent: x, links: H } = C, M = `${u}__item`, N = `${u}__menu`;
|
|
9568
9568
|
return /* @__PURE__ */ e.createElement(
|
|
9569
9569
|
"li",
|
|
9570
9570
|
{
|
|
@@ -9573,16 +9573,16 @@ const E2 = (o) => {
|
|
|
9573
9573
|
M,
|
|
9574
9574
|
`${M}--top-level`,
|
|
9575
9575
|
H ? `${M}--has-children` : null,
|
|
9576
|
-
ye(
|
|
9576
|
+
ye(C) ? `${M}--active` : null
|
|
9577
9577
|
])
|
|
9578
9578
|
},
|
|
9579
9579
|
H ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${M}-wrapper` }, ct(x, H), /* @__PURE__ */ e.createElement(
|
|
9580
9580
|
"button",
|
|
9581
9581
|
{
|
|
9582
|
-
"aria-expanded": ye(
|
|
9582
|
+
"aria-expanded": ye(C),
|
|
9583
9583
|
className: K([
|
|
9584
9584
|
`${u}__toggle`,
|
|
9585
|
-
ye(
|
|
9585
|
+
ye(C) ? `${u}__toggle--expanded` : null
|
|
9586
9586
|
]),
|
|
9587
9587
|
onClick: g
|
|
9588
9588
|
},
|
|
@@ -9594,7 +9594,7 @@ const E2 = (o) => {
|
|
|
9594
9594
|
className: K([
|
|
9595
9595
|
N,
|
|
9596
9596
|
`${N}--second-level`,
|
|
9597
|
-
ye(
|
|
9597
|
+
ye(C) ? `${N}--expanded` : null
|
|
9598
9598
|
])
|
|
9599
9599
|
},
|
|
9600
9600
|
H.map((L, z) => /* @__PURE__ */ e.createElement(
|
|
@@ -9617,7 +9617,7 @@ const E2 = (o) => {
|
|
|
9617
9617
|
x
|
|
9618
9618
|
)
|
|
9619
9619
|
);
|
|
9620
|
-
}, _ = /* @__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((
|
|
9620
|
+
}, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((C, w) => v(C, w)))), b = /* @__PURE__ */ e.createElement(
|
|
9621
9621
|
Jt,
|
|
9622
9622
|
{
|
|
9623
9623
|
headingText: a,
|
|
@@ -9662,14 +9662,14 @@ const E2 = (o) => {
|
|
|
9662
9662
|
}), []);
|
|
9663
9663
|
const E = () => {
|
|
9664
9664
|
f(window.innerWidth);
|
|
9665
|
-
}, $ = p <= o, g = (
|
|
9666
|
-
const w =
|
|
9665
|
+
}, $ = p <= o, g = (C) => {
|
|
9666
|
+
const w = C.target;
|
|
9667
9667
|
w.classList.toggle(`${u}__toggle--expanded`), w.setAttribute(
|
|
9668
9668
|
"aria-expanded",
|
|
9669
9669
|
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9670
9670
|
), w.parentElement.nextElementSibling.classList.toggle(`${u}__menu--expanded`);
|
|
9671
|
-
},
|
|
9672
|
-
const { linkContent: x, links: H } =
|
|
9671
|
+
}, v = (C, w) => {
|
|
9672
|
+
const { linkContent: x, links: H } = C, M = `${u}__item`, N = `${u}__menu`;
|
|
9673
9673
|
return /* @__PURE__ */ e.createElement(
|
|
9674
9674
|
"li",
|
|
9675
9675
|
{
|
|
@@ -9678,16 +9678,16 @@ const E2 = (o) => {
|
|
|
9678
9678
|
M,
|
|
9679
9679
|
`${M}--top-level`,
|
|
9680
9680
|
H ? `${M}--has-children` : null,
|
|
9681
|
-
ye(
|
|
9681
|
+
ye(C) ? `${M}--active` : null
|
|
9682
9682
|
])
|
|
9683
9683
|
},
|
|
9684
9684
|
H ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${M}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
9685
9685
|
"button",
|
|
9686
9686
|
{
|
|
9687
|
-
"aria-expanded": ye(
|
|
9687
|
+
"aria-expanded": ye(C),
|
|
9688
9688
|
className: K([
|
|
9689
9689
|
`${u}__toggle`,
|
|
9690
|
-
ye(
|
|
9690
|
+
ye(C) ? `${u}__toggle--expanded` : null
|
|
9691
9691
|
]),
|
|
9692
9692
|
onClick: g
|
|
9693
9693
|
},
|
|
@@ -9699,7 +9699,7 @@ const E2 = (o) => {
|
|
|
9699
9699
|
className: K([
|
|
9700
9700
|
N,
|
|
9701
9701
|
`${N}--second-level`,
|
|
9702
|
-
ye(
|
|
9702
|
+
ye(C) ? `${N}--expanded` : null
|
|
9703
9703
|
])
|
|
9704
9704
|
},
|
|
9705
9705
|
H.map((L, z) => /* @__PURE__ */ e.createElement(
|
|
@@ -9761,7 +9761,7 @@ const E2 = (o) => {
|
|
|
9761
9761
|
x
|
|
9762
9762
|
)
|
|
9763
9763
|
);
|
|
9764
|
-
}, _ = /* @__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((
|
|
9764
|
+
}, _ = /* @__PURE__ */ e.createElement(e.Fragment, null, a && /* @__PURE__ */ e.createElement("h2", { className: `${u}__heading` }, a), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${u}__menu ${u}__menu--top-level` }, r.map((C, w) => v(C, w)))), b = /* @__PURE__ */ e.createElement(
|
|
9765
9765
|
Jt,
|
|
9766
9766
|
{
|
|
9767
9767
|
headingText: a,
|
|
@@ -9797,9 +9797,9 @@ const E2 = (o) => {
|
|
|
9797
9797
|
]);
|
|
9798
9798
|
const [h, u] = R(null), [p, f] = R(!1), E = se([]), $ = se([]);
|
|
9799
9799
|
let g = !1;
|
|
9800
|
-
const
|
|
9801
|
-
|
|
9802
|
-
const _ = o && g, b = "pds-user-menu",
|
|
9800
|
+
const v = we(je);
|
|
9801
|
+
v && (g = v.isMobile);
|
|
9802
|
+
const _ = o && g, b = "pds-user-menu", C = _ ? `${b}--isMobile` : null, w = `${b}__menu`, { refs: x, floatingStyles: H, context: M } = Ie({
|
|
9803
9803
|
placement: "bottom-end",
|
|
9804
9804
|
open: p,
|
|
9805
9805
|
onOpenChange: f,
|
|
@@ -9921,7 +9921,7 @@ const E2 = (o) => {
|
|
|
9921
9921
|
return /* @__PURE__ */ e.createElement(
|
|
9922
9922
|
"span",
|
|
9923
9923
|
y({
|
|
9924
|
-
className: K([b,
|
|
9924
|
+
className: K([b, C, l != null ? l : ""])
|
|
9925
9925
|
}, i),
|
|
9926
9926
|
_ ? be : ne
|
|
9927
9927
|
);
|
|
@@ -9956,7 +9956,7 @@ const E2 = (o) => {
|
|
|
9956
9956
|
info: `${p}--info`,
|
|
9957
9957
|
warning: `${p}--warning`,
|
|
9958
9958
|
critical: `${p}--critical`
|
|
9959
|
-
}, $ = u > 0 ? d[0].type : null, g = $ ? `${p}-group--${$}` : null,
|
|
9959
|
+
}, $ = u > 0 ? d[0].type : null, g = $ ? `${p}-group--${$}` : null, v = (H) => ({
|
|
9960
9960
|
zIndex: St - H
|
|
9961
9961
|
}), _ = (H) => H === 0 ? 0 : -1, b = () => {
|
|
9962
9962
|
const H = document.getElementsByClassName(
|
|
@@ -9964,7 +9964,7 @@ const E2 = (o) => {
|
|
|
9964
9964
|
);
|
|
9965
9965
|
for (; H.length; )
|
|
9966
9966
|
H[0].classList.remove(`${p}--fading`);
|
|
9967
|
-
},
|
|
9967
|
+
}, C = () => {
|
|
9968
9968
|
b(), document.getElementById(d[0].id).classList.add(`${p}--fading`), setTimeout(() => {
|
|
9969
9969
|
h((H) => [
|
|
9970
9970
|
...H.slice(1),
|
|
@@ -10000,7 +10000,7 @@ const E2 = (o) => {
|
|
|
10000
10000
|
className: K([p, E[V]]),
|
|
10001
10001
|
role: I,
|
|
10002
10002
|
style: {
|
|
10003
|
-
zIndex:
|
|
10003
|
+
zIndex: v(M).zIndex
|
|
10004
10004
|
}
|
|
10005
10005
|
},
|
|
10006
10006
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10048,7 +10048,7 @@ const E2 = (o) => {
|
|
|
10048
10048
|
size: "lg",
|
|
10049
10049
|
className: `${p}__nav-button ${p}__nav-button--next`,
|
|
10050
10050
|
ariaLabel: a,
|
|
10051
|
-
onClick:
|
|
10051
|
+
onClick: C
|
|
10052
10052
|
}
|
|
10053
10053
|
), d.map((H, M) => x(H, M))) : x(d[0], 0)
|
|
10054
10054
|
);
|
|
@@ -10142,11 +10142,11 @@ const E2 = (o) => {
|
|
|
10142
10142
|
discovery: `${f}--discovery`,
|
|
10143
10143
|
dismissing: `${f}--dismissing`,
|
|
10144
10144
|
dismissed: `${f}--dismissed`
|
|
10145
|
-
}, $ = o ? `${f}--hasTitle` : null,
|
|
10146
|
-
p.current.addEventListener("animationend",
|
|
10145
|
+
}, $ = o ? `${f}--hasTitle` : null, v = ["critical", "warning"].includes(l) ? "alert" : "status", _ = `${i[l]}: `, b = () => {
|
|
10146
|
+
p.current.addEventListener("animationend", C, {
|
|
10147
10147
|
once: !0
|
|
10148
10148
|
});
|
|
10149
|
-
},
|
|
10149
|
+
}, C = (x) => {
|
|
10150
10150
|
c(x, n);
|
|
10151
10151
|
}, w = () => {
|
|
10152
10152
|
b(), p.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
@@ -10159,7 +10159,7 @@ const E2 = (o) => {
|
|
|
10159
10159
|
className: [f, E[l], $, m != null ? m : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
10160
10160
|
id: n,
|
|
10161
10161
|
ref: p,
|
|
10162
|
-
role:
|
|
10162
|
+
role: v
|
|
10163
10163
|
}, d),
|
|
10164
10164
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${f}__icon ${f}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
10165
10165
|
P,
|
|
@@ -10239,17 +10239,17 @@ const E2 = (o) => {
|
|
|
10239
10239
|
}, [d]), ie(() => {
|
|
10240
10240
|
h($);
|
|
10241
10241
|
}, [$]);
|
|
10242
|
-
const
|
|
10242
|
+
const v = typeof n, _ = "pds-popover", b = [
|
|
10243
10243
|
`${_}__trigger-custom`,
|
|
10244
|
-
|
|
10245
|
-
].join(" ").trim().replace(/\s+/g, " "),
|
|
10244
|
+
v === "string" ? `${_}__trigger-text` : ""
|
|
10245
|
+
].join(" ").trim().replace(/\s+/g, " "), C = n ? c : 0, w = se(null), { refs: x, floatingStyles: H, context: M, middlewareData: N } = Ie({
|
|
10246
10246
|
placement: o,
|
|
10247
10247
|
open: $,
|
|
10248
10248
|
onOpenChange(U) {
|
|
10249
10249
|
g(U), U || r();
|
|
10250
10250
|
},
|
|
10251
10251
|
middleware: [
|
|
10252
|
-
wt(Ue + z2 +
|
|
10252
|
+
wt(Ue + z2 + C),
|
|
10253
10253
|
Nt({ padding: 8 }),
|
|
10254
10254
|
kt({ padding: 8 }),
|
|
10255
10255
|
s1({ element: w })
|
|
@@ -10351,20 +10351,20 @@ const E2 = (o) => {
|
|
|
10351
10351
|
"size",
|
|
10352
10352
|
"className"
|
|
10353
10353
|
]);
|
|
10354
|
-
const f = n || We(), E = "pds-progress-bar", $ = l ? `${E}__label` : "visually-hidden", g = `${E}__track ${E}__track--${m}`,
|
|
10354
|
+
const f = n || We(), E = "pds-progress-bar", $ = l ? `${E}__label` : "visually-hidden", g = `${E}__track ${E}__track--${m}`, v = o > 100 ? 100 : o;
|
|
10355
10355
|
let _ = "neutral";
|
|
10356
10356
|
t.forEach((x) => {
|
|
10357
10357
|
o >= x.percentage && (_ = x.colorType);
|
|
10358
10358
|
});
|
|
10359
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, c),
|
|
10359
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, c), C = c && r === "above", w = c && r === "below";
|
|
10360
10360
|
return /* @__PURE__ */ e.createElement(
|
|
10361
10361
|
"div",
|
|
10362
10362
|
y({
|
|
10363
10363
|
className: [E, d].join(" ").trim().replace(/\s+/g, " "),
|
|
10364
|
-
style: { "--bar-percentage": `${
|
|
10364
|
+
style: { "--bar-percentage": `${v}%` }
|
|
10365
10365
|
}, h),
|
|
10366
10366
|
/* @__PURE__ */ e.createElement("div", { id: f, className: $ }, a),
|
|
10367
|
-
(
|
|
10367
|
+
(C || i) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, C && b, i && /* @__PURE__ */ e.createElement(
|
|
10368
10368
|
"div",
|
|
10369
10369
|
{
|
|
10370
10370
|
className: `${E}__percentage`,
|
|
@@ -10380,7 +10380,7 @@ const E2 = (o) => {
|
|
|
10380
10380
|
{
|
|
10381
10381
|
role: "progressbar",
|
|
10382
10382
|
"aria-labelledby": f,
|
|
10383
|
-
"aria-valuenow":
|
|
10383
|
+
"aria-valuenow": v,
|
|
10384
10384
|
className: g
|
|
10385
10385
|
},
|
|
10386
10386
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10388,7 +10388,7 @@ const E2 = (o) => {
|
|
|
10388
10388
|
{
|
|
10389
10389
|
className: `${E}__bar`,
|
|
10390
10390
|
style: {
|
|
10391
|
-
width: `${
|
|
10391
|
+
width: `${v}%`,
|
|
10392
10392
|
backgroundColor: `var(${us[_]})`
|
|
10393
10393
|
}
|
|
10394
10394
|
}
|
|
@@ -10554,12 +10554,12 @@ const M2 = (t) => {
|
|
|
10554
10554
|
const [h, u] = R(!0), p = "pds-tag", f = r ? `${p}--${r}` : `${p}--${M2(o)}`, E = h ? null : "pds-tag--hide", $ = () => {
|
|
10555
10555
|
u((b) => !b);
|
|
10556
10556
|
};
|
|
10557
|
-
let g,
|
|
10558
|
-
return t && !n && Fe(t) ? (g = t.type,
|
|
10557
|
+
let g, v, _;
|
|
10558
|
+
return t && !n && Fe(t) ? (g = t.type, v = t.props.href ? "href" : "to", _ = v === "href" ? t.props.href : t.props.to) : (g = "span", v = null, _ = null), /* @__PURE__ */ e.createElement(
|
|
10559
10559
|
g,
|
|
10560
10560
|
y({
|
|
10561
|
-
href:
|
|
10562
|
-
to:
|
|
10561
|
+
href: v === "href" ? _ : null,
|
|
10562
|
+
to: v === "to" ? _ : null,
|
|
10563
10563
|
className: [p, f, E, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10564
10564
|
}, i),
|
|
10565
10565
|
/* @__PURE__ */ e.createElement("span", { className: `${p}__label`, title: o }, L2(o, 20)),
|
|
@@ -10605,7 +10605,7 @@ const M2 = (t) => {
|
|
|
10605
10605
|
"children",
|
|
10606
10606
|
"className"
|
|
10607
10607
|
]);
|
|
10608
|
-
const p = "pds-flex", f = l ? `${p}-gap--${l}` : null, E = a ? `${p}-direction--${a}` : null, $ = c ? `${p}--${c}` : null, g = r ? `${p}-justify--${r}` : null,
|
|
10608
|
+
const p = "pds-flex", f = l ? `${p}-gap--${l}` : null, E = a ? `${p}-direction--${a}` : null, $ = c ? `${p}--${c}` : null, g = r ? `${p}-justify--${r}` : null, v = n ? `${p}-align-items--${n}` : null, _ = t ? `${p}-align-content--${t}` : null, b = o && o !== "same" ? `${p}-mobile--${o}` : null;
|
|
10609
10609
|
return /* @__PURE__ */ e.createElement(
|
|
10610
10610
|
"div",
|
|
10611
10611
|
y({
|
|
@@ -10615,7 +10615,7 @@ const M2 = (t) => {
|
|
|
10615
10615
|
E,
|
|
10616
10616
|
$,
|
|
10617
10617
|
g,
|
|
10618
|
-
|
|
10618
|
+
v,
|
|
10619
10619
|
_,
|
|
10620
10620
|
b,
|
|
10621
10621
|
m
|
|
@@ -10790,14 +10790,14 @@ const S2 = (o) => {
|
|
|
10790
10790
|
const b = _.props.slot;
|
|
10791
10791
|
b && ($[b] ? $[b].push(_) : $[b] = [_]);
|
|
10792
10792
|
});
|
|
10793
|
-
const g = $["first-item"],
|
|
10793
|
+
const g = $["first-item"], v = $["second-item"];
|
|
10794
10794
|
return /* @__PURE__ */ e.createElement(
|
|
10795
10795
|
"div",
|
|
10796
10796
|
y({
|
|
10797
10797
|
className: [i, m, c].join(" ").trim().replace(/\s+/g, " ")
|
|
10798
10798
|
}, r),
|
|
10799
10799
|
/* @__PURE__ */ e.createElement("div", { className: f.join(" ").trim() }, g),
|
|
10800
|
-
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() },
|
|
10800
|
+
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() }, v)
|
|
10801
10801
|
);
|
|
10802
10802
|
};
|
|
10803
10803
|
S2.propTypes = {
|
|
@@ -10837,40 +10837,38 @@ const vn = ({
|
|
|
10837
10837
|
"sidebarWidth",
|
|
10838
10838
|
"className"
|
|
10839
10839
|
]);
|
|
10840
|
-
const d = "pds-sidebar-layout", h = `pds-grid pds-grid--${n}`, u = `${d}--${
|
|
10841
|
-
let
|
|
10842
|
-
const
|
|
10843
|
-
|
|
10844
|
-
const
|
|
10845
|
-
let
|
|
10846
|
-
r === "narrow" && (
|
|
10847
|
-
const
|
|
10840
|
+
const d = "pds-sidebar-layout", h = `pds-grid pds-grid--${n}`, u = `${d}--${r}`;
|
|
10841
|
+
let p = !1;
|
|
10842
|
+
const f = we(je);
|
|
10843
|
+
f && (p = f.isMobile);
|
|
10844
|
+
const E = Yt(t);
|
|
10845
|
+
let $ = "pds-grid-item pds-grid-item--md-8", g = "pds-grid-item pds-grid-item--md-4";
|
|
10846
|
+
r === "narrow" && ($ = "pds-grid-item pds-grid-item--md-9", g = "pds-grid-item pds-grid-item--md-3"), r === "wide" && ($ = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", g = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10847
|
+
const v = /* @__PURE__ */ e.createElement(
|
|
10848
10848
|
"div",
|
|
10849
10849
|
{
|
|
10850
|
-
className: `${d}__main ${
|
|
10850
|
+
className: `${d}__main ${p ? "pds-grid-item" : $}`
|
|
10851
10851
|
},
|
|
10852
|
-
|
|
10853
|
-
),
|
|
10852
|
+
E.content
|
|
10853
|
+
), _ = /* @__PURE__ */ e.createElement(
|
|
10854
10854
|
"div",
|
|
10855
10855
|
{
|
|
10856
|
-
className: `${d}__side ${
|
|
10856
|
+
className: `${d}__side ${p ? "pds-grid-item" : g}`
|
|
10857
10857
|
},
|
|
10858
|
-
|
|
10858
|
+
E.sidebar
|
|
10859
10859
|
);
|
|
10860
|
-
let
|
|
10861
|
-
return a === "left" ?
|
|
10860
|
+
let b;
|
|
10861
|
+
return a === "left" ? b = [_, v] : b = [v, _], p && (c === "before" ? b = [_, v] : b = [v, _]), /* @__PURE__ */ e.createElement(
|
|
10862
10862
|
"div",
|
|
10863
10863
|
y({
|
|
10864
10864
|
className: K([
|
|
10865
10865
|
d,
|
|
10866
10866
|
h,
|
|
10867
10867
|
u,
|
|
10868
|
-
p,
|
|
10869
|
-
f,
|
|
10870
10868
|
o != null ? o : ""
|
|
10871
10869
|
])
|
|
10872
10870
|
}, l),
|
|
10873
|
-
|
|
10871
|
+
b
|
|
10874
10872
|
);
|
|
10875
10873
|
};
|
|
10876
10874
|
export {
|