@pantheon-systems/pds-toolkit-react 1.0.0-dev.192 → 1.0.0-dev.193
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
|
@@ -790,23 +790,23 @@ const f2 = {
|
|
|
790
790
|
"zIndex",
|
|
791
791
|
"className"
|
|
792
792
|
]);
|
|
793
|
-
const [g, E] = F(!1),
|
|
793
|
+
const [g, E] = F(!1), C = typeof s, u = "pds-tooltip", $ = R([
|
|
794
794
|
`${u}__trigger-custom`,
|
|
795
|
-
|
|
795
|
+
C === "string" ? `${u}__trigger-text` : null
|
|
796
796
|
]), v = R([
|
|
797
797
|
`${u}__trigger`,
|
|
798
798
|
`${u}__trigger--${l}`
|
|
799
|
-
]), { refs: b, floatingStyles: _, context:
|
|
799
|
+
]), { refs: b, floatingStyles: _, context: w } = Se({
|
|
800
800
|
placement: a,
|
|
801
801
|
open: g,
|
|
802
802
|
onOpenChange: E,
|
|
803
803
|
middleware: [$t(n), wt(), yt()],
|
|
804
804
|
whileElementsMounted: Be
|
|
805
|
-
}), x = gt(
|
|
805
|
+
}), x = gt(w, {
|
|
806
806
|
restMs: 300,
|
|
807
807
|
delay: { open: 500, close: 0 },
|
|
808
808
|
move: !1
|
|
809
|
-
}), H = v1(
|
|
809
|
+
}), H = v1(w), k = Te(w), N = De(w, { role: "tooltip" }), { getReferenceProps: M, getFloatingProps: z } = Oe([
|
|
810
810
|
x,
|
|
811
811
|
H,
|
|
812
812
|
k,
|
|
@@ -815,9 +815,9 @@ const f2 = {
|
|
|
815
815
|
return /* @__PURE__ */ e.createElement("div", y({ className: R([u, i != null ? i : ""]) }, h), s ? /* @__PURE__ */ e.createElement(
|
|
816
816
|
"span",
|
|
817
817
|
y({
|
|
818
|
-
className:
|
|
818
|
+
className: $,
|
|
819
819
|
ref: b.setReference
|
|
820
|
-
},
|
|
820
|
+
}, M()),
|
|
821
821
|
s
|
|
822
822
|
) : /* @__PURE__ */ e.createElement(
|
|
823
823
|
"button",
|
|
@@ -825,7 +825,7 @@ const f2 = {
|
|
|
825
825
|
"aria-label": c,
|
|
826
826
|
className: v,
|
|
827
827
|
ref: b.setReference
|
|
828
|
-
},
|
|
828
|
+
}, M()),
|
|
829
829
|
/* @__PURE__ */ e.createElement(
|
|
830
830
|
P,
|
|
831
831
|
{
|
|
@@ -857,9 +857,9 @@ const E2 = (t) => /* @__PURE__ */ e.createElement(b1, { className: "pds-breadcru
|
|
|
857
857
|
const [c, o] = F(!0), { crumbs: l, deferredCrumbIds: r } = $e(k1), d = [...l].sort(_2), i = () => {
|
|
858
858
|
o(!1);
|
|
859
859
|
}, h = d.map(
|
|
860
|
-
(
|
|
860
|
+
(C, u) => u === d.length - 1 ? /* @__PURE__ */ e.createElement(Qe, { crumb: C, lastCrumb: !0, key: u }) : /* @__PURE__ */ e.createElement(Qe, { crumb: C, key: u })
|
|
861
861
|
), m = d.map(
|
|
862
|
-
(
|
|
862
|
+
(C, u) => u === d.length - 1 ? /* @__PURE__ */ e.createElement(Qe, { crumb: C, key: `breadcrumb-${u}`, lastCrumb: !0 }) : u == 2 ? /* @__PURE__ */ e.createElement(e.Fragment, null, " ", /* @__PURE__ */ e.createElement("li", { className: c ? "" : "pds-breadcrumbs__hidden" }, /* @__PURE__ */ e.createElement(
|
|
863
863
|
"button",
|
|
864
864
|
{
|
|
865
865
|
key: `breadcrumb-button-${u}`,
|
|
@@ -870,18 +870,18 @@ const E2 = (t) => /* @__PURE__ */ e.createElement(b1, { className: "pds-breadcru
|
|
|
870
870
|
)), /* @__PURE__ */ e.createElement(
|
|
871
871
|
Qe,
|
|
872
872
|
{
|
|
873
|
-
crumb:
|
|
873
|
+
crumb: C,
|
|
874
874
|
classes: c ? "pds-breadcrumbs__hidden" : null,
|
|
875
875
|
key: `breadcrumb-${u}`
|
|
876
876
|
}
|
|
877
877
|
)) : u > 2 && u < d.length - 2 ? /* @__PURE__ */ e.createElement(
|
|
878
878
|
Qe,
|
|
879
879
|
{
|
|
880
|
-
crumb:
|
|
880
|
+
crumb: C,
|
|
881
881
|
classes: c ? "pds-breadcrumbs__hidden" : null,
|
|
882
882
|
key: `breadcrumb-${u}`
|
|
883
883
|
}
|
|
884
|
-
) : /* @__PURE__ */ e.createElement(Qe, { crumb:
|
|
884
|
+
) : /* @__PURE__ */ e.createElement(Qe, { crumb: C, key: `breadcrumb-${u}` })
|
|
885
885
|
), f = d.length >= 6 ? m : h, g = d[d.length - 2], E = E2(g);
|
|
886
886
|
return /* @__PURE__ */ e.createElement("nav", { className: "pds-breadcrumbs", "aria-label": t, "aria-live": "polite" }, /* @__PURE__ */ e.createElement("ul", y({ className: "pds-breadcrumbs__item" }, s), f), E);
|
|
887
887
|
};
|
|
@@ -909,7 +909,7 @@ b2.propTypes = {
|
|
|
909
909
|
{ uri: p.string }
|
|
910
910
|
])
|
|
911
911
|
};
|
|
912
|
-
const
|
|
912
|
+
const L1 = (c) => {
|
|
913
913
|
var o = c, {
|
|
914
914
|
headingLevel: t = "h3",
|
|
915
915
|
headingText: s,
|
|
@@ -928,7 +928,7 @@ const M1 = (c) => {
|
|
|
928
928
|
s
|
|
929
929
|
);
|
|
930
930
|
};
|
|
931
|
-
|
|
931
|
+
L1.propTypes = {
|
|
932
932
|
/**
|
|
933
933
|
* Heading level
|
|
934
934
|
*/
|
|
@@ -961,7 +961,7 @@ const v2 = (o) => {
|
|
|
961
961
|
className: [r, a].join(" ").trim().replace(/\s+/g, " ")
|
|
962
962
|
}, c),
|
|
963
963
|
s && /* @__PURE__ */ e.createElement(
|
|
964
|
-
|
|
964
|
+
L1,
|
|
965
965
|
{
|
|
966
966
|
headingLevel: t,
|
|
967
967
|
className: `${r}__heading`,
|
|
@@ -1060,8 +1060,8 @@ const ct = ({ type: t }) => {
|
|
|
1060
1060
|
ct.propTypes = {
|
|
1061
1061
|
type: p.oneOf(["search", "error", "success"]).isRequired
|
|
1062
1062
|
};
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1063
|
+
const M1 = ({ label: t }) => /* @__PURE__ */ e.createElement("div", { className: "pds-input__search-shortcut" }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, t), /* @__PURE__ */ e.createElement(P, { iconName: "slashForward" }));
|
|
1064
|
+
M1.propTypes = {
|
|
1065
1065
|
label: p.string.isRequired
|
|
1066
1066
|
};
|
|
1067
1067
|
const $2 = je(
|
|
@@ -1087,7 +1087,7 @@ $2.propTypes = {
|
|
|
1087
1087
|
className: p.string
|
|
1088
1088
|
};
|
|
1089
1089
|
const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t) => t.type === "decimal").value, Ot = 16, d1 = 10, y2 = (E) => {
|
|
1090
|
-
var
|
|
1090
|
+
var C = E, {
|
|
1091
1091
|
disabled: t = !1,
|
|
1092
1092
|
formatting: s,
|
|
1093
1093
|
hasClearButton: n = !1,
|
|
@@ -1101,7 +1101,7 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1101
1101
|
showLabel: h = !0,
|
|
1102
1102
|
validationFunction: m,
|
|
1103
1103
|
className: f
|
|
1104
|
-
} =
|
|
1104
|
+
} = C, g = I(C, [
|
|
1105
1105
|
"disabled",
|
|
1106
1106
|
"formatting",
|
|
1107
1107
|
"hasClearButton",
|
|
@@ -1116,12 +1116,12 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1116
1116
|
"validationFunction",
|
|
1117
1117
|
"className"
|
|
1118
1118
|
]);
|
|
1119
|
-
const u = "pds-input-formatted",
|
|
1119
|
+
const u = "pds-input-formatted", $ = s ? `${u}--${s}` : null, v = ae([
|
|
1120
1120
|
"pds-input-field",
|
|
1121
1121
|
u,
|
|
1122
|
-
|
|
1122
|
+
$,
|
|
1123
1123
|
f
|
|
1124
|
-
]), [b, _] = F(""), [
|
|
1124
|
+
]), [b, _] = F(""), [w, x] = F(null), [H, k] = F(null), N = ae(null), M = ae(null), z = ae("");
|
|
1125
1125
|
oe(() => {
|
|
1126
1126
|
switch (c && _(G(c)), z.numExtra = "", s) {
|
|
1127
1127
|
case "credit-card":
|
|
@@ -1140,21 +1140,21 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1140
1140
|
v.current = v.current.filter(
|
|
1141
1141
|
(T) => T !== ze.error && T !== ze.success
|
|
1142
1142
|
);
|
|
1143
|
-
},
|
|
1143
|
+
}, L = () => {
|
|
1144
1144
|
S(), x(""), k(null);
|
|
1145
1145
|
}, O = (T) => {
|
|
1146
1146
|
r && r({
|
|
1147
1147
|
formattedValue: T,
|
|
1148
|
-
rawValue:
|
|
1148
|
+
rawValue: M.current
|
|
1149
1149
|
});
|
|
1150
1150
|
}, D = (T) => {
|
|
1151
|
-
_(G(T.target.value)),
|
|
1151
|
+
_(G(T.target.value)), L(), O(T.target.value);
|
|
1152
1152
|
}, W = () => {
|
|
1153
1153
|
k("error"), v.current.push(ze.error);
|
|
1154
1154
|
}, Z = (T) => {
|
|
1155
1155
|
if (m) {
|
|
1156
1156
|
const A = m(T.target.value) || {};
|
|
1157
|
-
|
|
1157
|
+
L(), A.error && W(), A.success && (k("success"), v.current.push(ze.success)), x(A.message);
|
|
1158
1158
|
} else
|
|
1159
1159
|
N.current.checkValidity() === !1 || T.target.value.length < z.current + z.numExtra ? (W(), s === "credit-card" && x(
|
|
1160
1160
|
`Credit card number must have at least ${z.current} digits.`
|
|
@@ -1163,12 +1163,12 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1163
1163
|
)) : (s === "credit-card" || s === "phone") && (k("success"), v.current.push(ze.success));
|
|
1164
1164
|
O(T.target.value);
|
|
1165
1165
|
}, U = () => {
|
|
1166
|
-
|
|
1166
|
+
L(), _(""), M.current = "", N.current.focus(), O("");
|
|
1167
1167
|
}, G = (T) => {
|
|
1168
1168
|
if (T) {
|
|
1169
1169
|
if (s === "credit-card") {
|
|
1170
1170
|
const A = ("" + T).replace(/\D/g, "");
|
|
1171
|
-
if (
|
|
1171
|
+
if (M.current = A, A) {
|
|
1172
1172
|
if (new RegExp("^34|37", "g").test(A)) {
|
|
1173
1173
|
z.numExtra = 2, z.current = Ot - 1;
|
|
1174
1174
|
const X = {};
|
|
@@ -1182,7 +1182,7 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1182
1182
|
}
|
|
1183
1183
|
if (s === "phone") {
|
|
1184
1184
|
const A = ("" + T).replace(/\D/g, "");
|
|
1185
|
-
if (
|
|
1185
|
+
if (M.current = A, A) {
|
|
1186
1186
|
z.numExtra = 4, z.current = d1;
|
|
1187
1187
|
let j = A.substring(0, 3), q = A.substring(3, 6);
|
|
1188
1188
|
q.length > 0 && (j = `(${j})`, q = ` ${q}`);
|
|
@@ -1193,7 +1193,7 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1193
1193
|
}
|
|
1194
1194
|
if (s === "number-localized") {
|
|
1195
1195
|
const A = new RegExp(`[^0-9${Dt}]`, "g"), j = ("" + T).replace(A, "");
|
|
1196
|
-
|
|
1196
|
+
M.current = j;
|
|
1197
1197
|
const q = new Intl.NumberFormat(void 0, {
|
|
1198
1198
|
maximumFractionDigits: 20
|
|
1199
1199
|
}).format(j);
|
|
@@ -1219,7 +1219,7 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1219
1219
|
onBlur: Z,
|
|
1220
1220
|
ref: N,
|
|
1221
1221
|
"aria-invalid": H === "error",
|
|
1222
|
-
"aria-describedby": l ||
|
|
1222
|
+
"aria-describedby": l || w ? `${a}__message` : null,
|
|
1223
1223
|
maxLength: z.current + z.numExtra,
|
|
1224
1224
|
minLength: z.current + z.numExtra
|
|
1225
1225
|
}
|
|
@@ -1230,14 +1230,14 @@ const w2 = new Intl.NumberFormat().formatToParts(100000089e-2), Dt = w2.find((t)
|
|
|
1230
1230
|
label: o,
|
|
1231
1231
|
handleClearInput: U
|
|
1232
1232
|
}
|
|
1233
|
-
))), (l ||
|
|
1233
|
+
))), (l || w) && /* @__PURE__ */ e.createElement(
|
|
1234
1234
|
"div",
|
|
1235
1235
|
{
|
|
1236
1236
|
className: "pds-input-field__message",
|
|
1237
1237
|
id: `${a}__message`,
|
|
1238
1238
|
role: H === "error" ? "alert" : null
|
|
1239
1239
|
},
|
|
1240
|
-
|
|
1240
|
+
w || l
|
|
1241
1241
|
));
|
|
1242
1242
|
};
|
|
1243
1243
|
y2.propTypes = {
|
|
@@ -1343,7 +1343,7 @@ const N2 = (g) => {
|
|
|
1343
1343
|
"validationFunction",
|
|
1344
1344
|
"className"
|
|
1345
1345
|
]);
|
|
1346
|
-
const
|
|
1346
|
+
const C = "pds-input-obscured", u = ae(["pds-input-field", C, m]), [$, v] = F(c), [b, _] = F(t("")), [w, x] = F(), [H, k] = F(null), [N, M] = F(!1), z = ae(null), V = ae(null);
|
|
1347
1347
|
oe(() => {
|
|
1348
1348
|
c && t && _(t(c));
|
|
1349
1349
|
}, []);
|
|
@@ -1351,27 +1351,27 @@ const N2 = (g) => {
|
|
|
1351
1351
|
u.current = u.current.filter(
|
|
1352
1352
|
(T) => T !== ze.required && T !== ze.disabled
|
|
1353
1353
|
);
|
|
1354
|
-
},
|
|
1354
|
+
}, L = () => {
|
|
1355
1355
|
u.current = u.current.filter(
|
|
1356
1356
|
(T) => T !== ze.error && T !== ze.success
|
|
1357
1357
|
);
|
|
1358
1358
|
}, O = () => {
|
|
1359
|
-
|
|
1359
|
+
L(), x(""), k(null);
|
|
1360
1360
|
}, D = (T) => {
|
|
1361
1361
|
v(T.target.value), O(), t && _(t(T.target.value)), r && r(T.target.value);
|
|
1362
1362
|
}, W = (T) => {
|
|
1363
|
-
if (
|
|
1363
|
+
if (M(!1), h) {
|
|
1364
1364
|
const A = h(T.target.value) || {};
|
|
1365
1365
|
O(), A.error && (k("error"), u.current.push(ze.error)), A.success && (k("success"), u.current.push(ze.success)), x(A.message);
|
|
1366
1366
|
}
|
|
1367
|
-
r && r(
|
|
1367
|
+
r && r($);
|
|
1368
1368
|
}, Z = () => {
|
|
1369
1369
|
O(), v(""), V.current.value = null, V.current.focus(), t && _(t("")), r && r("");
|
|
1370
1370
|
}, U = () => {
|
|
1371
|
-
|
|
1371
|
+
M((T) => !T);
|
|
1372
1372
|
}, G = (T) => {
|
|
1373
1373
|
var A;
|
|
1374
|
-
(!((A = z.current) != null && A.contains(T.relatedTarget)) || !T.relatedTarget) &&
|
|
1374
|
+
(!((A = z.current) != null && A.contains(T.relatedTarget)) || !T.relatedTarget) && M(!1);
|
|
1375
1375
|
};
|
|
1376
1376
|
S(), d && !s && u.current.push(ze.required), s && u.current.push(ze.disabled);
|
|
1377
1377
|
let K = null;
|
|
@@ -1400,15 +1400,15 @@ const N2 = (g) => {
|
|
|
1400
1400
|
name: a,
|
|
1401
1401
|
required: d,
|
|
1402
1402
|
disabled: s,
|
|
1403
|
-
value:
|
|
1403
|
+
value: $,
|
|
1404
1404
|
onChange: D,
|
|
1405
1405
|
onBlur: W,
|
|
1406
1406
|
ref: V,
|
|
1407
1407
|
"aria-invalid": H === "error",
|
|
1408
|
-
"aria-describedby": l ||
|
|
1408
|
+
"aria-describedby": l || w ? `${a}__message` : null,
|
|
1409
1409
|
autoComplete: "off"
|
|
1410
1410
|
}
|
|
1411
|
-
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b),
|
|
1411
|
+
), /* @__PURE__ */ e.createElement("div", { className: "pds-input-field__accessories" }, b && /* @__PURE__ */ e.createElement("div", { className: "pds-input-field_counter" }, b), $ && n && /* @__PURE__ */ e.createElement(
|
|
1412
1412
|
Ht,
|
|
1413
1413
|
{
|
|
1414
1414
|
id: a,
|
|
@@ -1419,7 +1419,7 @@ const N2 = (g) => {
|
|
|
1419
1419
|
"button",
|
|
1420
1420
|
{
|
|
1421
1421
|
type: "button",
|
|
1422
|
-
className: `pds-input-field__accessory ${
|
|
1422
|
+
className: `pds-input-field__accessory ${C}__toggle`,
|
|
1423
1423
|
title: `${N ? "Hide" : "Show"} content of ${o} input`,
|
|
1424
1424
|
"aria-controls": a,
|
|
1425
1425
|
onClick: U,
|
|
@@ -1427,14 +1427,14 @@ const N2 = (g) => {
|
|
|
1427
1427
|
},
|
|
1428
1428
|
N ? /* @__PURE__ */ e.createElement(P, { iconName: "eyeSlash" }) : /* @__PURE__ */ e.createElement(P, { iconName: "eye" })
|
|
1429
1429
|
))),
|
|
1430
|
-
(l ||
|
|
1430
|
+
(l || w) && /* @__PURE__ */ e.createElement(
|
|
1431
1431
|
"div",
|
|
1432
1432
|
{
|
|
1433
1433
|
className: "pds-input-field__message",
|
|
1434
1434
|
id: `${a}__message`,
|
|
1435
1435
|
role: H === "error" ? "alert" : null
|
|
1436
1436
|
},
|
|
1437
|
-
|
|
1437
|
+
w || l
|
|
1438
1438
|
)
|
|
1439
1439
|
);
|
|
1440
1440
|
};
|
|
@@ -1510,8 +1510,8 @@ N2.propTypes = {
|
|
|
1510
1510
|
className: p.string
|
|
1511
1511
|
};
|
|
1512
1512
|
const Yt = je(
|
|
1513
|
-
(
|
|
1514
|
-
var v =
|
|
1513
|
+
($, u) => {
|
|
1514
|
+
var v = $, {
|
|
1515
1515
|
children: t,
|
|
1516
1516
|
decorator: s,
|
|
1517
1517
|
disabled: n = !1,
|
|
@@ -1527,7 +1527,7 @@ const Yt = je(
|
|
|
1527
1527
|
showLabel: f = !0,
|
|
1528
1528
|
validationState: g,
|
|
1529
1529
|
className: E
|
|
1530
|
-
} = v,
|
|
1530
|
+
} = v, C = I(v, [
|
|
1531
1531
|
"children",
|
|
1532
1532
|
"decorator",
|
|
1533
1533
|
"disabled",
|
|
@@ -1544,7 +1544,7 @@ const Yt = je(
|
|
|
1544
1544
|
"validationState",
|
|
1545
1545
|
"className"
|
|
1546
1546
|
]);
|
|
1547
|
-
const b = "pds-input-wrapper", _ = `${b}--${c}`,
|
|
1547
|
+
const b = "pds-input-wrapper", _ = `${b}--${c}`, w = "pds-input-label", x = `pds-input-field__message pds-input-field__message--${i}`, H = g === "error" ? "pds-has-error" : null, k = g === "success" ? "pds-has-success" : null, N = n ? "pds-is-disabled" : null, M = h ? "pds-is-readonly" : null, z = m && !n ? "pds-is-required" : null, V = o ? `${o / 16}rem` : null, S = o ? { width: V } : null, L = l ? "fieldset" : "div", O = m && !n ? /* @__PURE__ */ e.createElement(
|
|
1548
1548
|
P,
|
|
1549
1549
|
{
|
|
1550
1550
|
iconName: "asterisk",
|
|
@@ -1568,7 +1568,7 @@ const Yt = je(
|
|
|
1568
1568
|
b,
|
|
1569
1569
|
_,
|
|
1570
1570
|
N,
|
|
1571
|
-
|
|
1571
|
+
M,
|
|
1572
1572
|
z,
|
|
1573
1573
|
H,
|
|
1574
1574
|
k,
|
|
@@ -1576,24 +1576,24 @@ const Yt = je(
|
|
|
1576
1576
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
1577
1577
|
ref: u,
|
|
1578
1578
|
style: S
|
|
1579
|
-
},
|
|
1579
|
+
}, C),
|
|
1580
1580
|
r && !l && c != "file-upload" && /* @__PURE__ */ e.createElement(
|
|
1581
1581
|
"label",
|
|
1582
1582
|
{
|
|
1583
|
-
className: [
|
|
1583
|
+
className: [w, f ? null : "visually-hidden"].join(" ").trim(),
|
|
1584
1584
|
htmlFor: a
|
|
1585
1585
|
},
|
|
1586
1586
|
r,
|
|
1587
1587
|
O
|
|
1588
1588
|
),
|
|
1589
|
-
r && c === "file-upload" && f && /* @__PURE__ */ e.createElement("span", { className:
|
|
1589
|
+
r && c === "file-upload" && f && /* @__PURE__ */ e.createElement("span", { className: w }, r, O),
|
|
1590
1590
|
i === "before" && D,
|
|
1591
1591
|
/* @__PURE__ */ e.createElement(
|
|
1592
|
-
|
|
1592
|
+
L,
|
|
1593
1593
|
{
|
|
1594
1594
|
className: `pds-input-field ${c ? `pds-input-field--${c}` : ""}`
|
|
1595
1595
|
},
|
|
1596
|
-
r && l && /* @__PURE__ */ e.createElement("legend", { className:
|
|
1596
|
+
r && l && /* @__PURE__ */ e.createElement("legend", { className: w }, r, O),
|
|
1597
1597
|
s && /* @__PURE__ */ e.createElement(ct, { type: s }),
|
|
1598
1598
|
t
|
|
1599
1599
|
),
|
|
@@ -1664,7 +1664,7 @@ Yt.propTypes = {
|
|
|
1664
1664
|
className: p.string
|
|
1665
1665
|
};
|
|
1666
1666
|
const Rt = 16, m1 = 10, k2 = (N) => {
|
|
1667
|
-
var
|
|
1667
|
+
var M = N, {
|
|
1668
1668
|
autoComplete: t = "on",
|
|
1669
1669
|
counterFunction: s = () => {
|
|
1670
1670
|
},
|
|
@@ -1687,19 +1687,19 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1687
1687
|
onFocus: f,
|
|
1688
1688
|
placeholder: g,
|
|
1689
1689
|
readonly: E = !1,
|
|
1690
|
-
required:
|
|
1690
|
+
required: C = !1,
|
|
1691
1691
|
showLabel: u = !0,
|
|
1692
|
-
specialFormatting:
|
|
1692
|
+
specialFormatting: $,
|
|
1693
1693
|
specialFormattingValidation: v = !1,
|
|
1694
1694
|
toggleVisibility: b = !1,
|
|
1695
1695
|
type: _ = "text",
|
|
1696
|
-
validationFunction:
|
|
1696
|
+
validationFunction: w,
|
|
1697
1697
|
validationMessages: x = {
|
|
1698
1698
|
creditCardError: "Please enter a valid credit card number.",
|
|
1699
1699
|
phoneError: "Please enter a valid phone number."
|
|
1700
1700
|
},
|
|
1701
1701
|
className: H
|
|
1702
|
-
} =
|
|
1702
|
+
} = M, k = I(M, [
|
|
1703
1703
|
"autoComplete",
|
|
1704
1704
|
"counterFunction",
|
|
1705
1705
|
"disabled",
|
|
@@ -1725,10 +1725,10 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1725
1725
|
"validationMessages",
|
|
1726
1726
|
"className"
|
|
1727
1727
|
]);
|
|
1728
|
-
const [z, V] = F(l), [S,
|
|
1728
|
+
const [z, V] = F(l), [S, L] = F(s("")), [O, D] = F(), [W, Z] = F(null), [U, G] = F(!1), K = ae(null), T = ae(null), A = ae(null), j = ae(null), q = "pds-input-text", Y = $ ? `${q}--${$}` : null;
|
|
1729
1729
|
let X = null;
|
|
1730
|
-
_ === "search" && (X = "search"), W === "error" && (X = "error"), W === "success" && (X = "success"),
|
|
1731
|
-
switch (l && V(ee(l)), j.numExtra = "",
|
|
1730
|
+
_ === "search" && (X = "search"), W === "error" && (X = "error"), W === "success" && (X = "success"), $ && v && oe(() => {
|
|
1731
|
+
switch (l && V(ee(l)), j.numExtra = "", $) {
|
|
1732
1732
|
case "credit-card":
|
|
1733
1733
|
j.numExtra = 3, j.current = Rt;
|
|
1734
1734
|
break;
|
|
@@ -1738,10 +1738,10 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
}, []);
|
|
1740
1740
|
let re = null;
|
|
1741
|
-
(
|
|
1741
|
+
($ === "credit-card" || $ === "phone") && j.current && (re = j.current + j.numExtra);
|
|
1742
1742
|
const ee = (se) => {
|
|
1743
1743
|
if (se) {
|
|
1744
|
-
if (
|
|
1744
|
+
if ($ === "credit-card") {
|
|
1745
1745
|
const ce = ("" + se).replace(/\D/g, "");
|
|
1746
1746
|
if (A.current = ce, ce) {
|
|
1747
1747
|
if (new RegExp("^34|37", "g").test(ce)) {
|
|
@@ -1755,14 +1755,14 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
return ce;
|
|
1757
1757
|
}
|
|
1758
|
-
if (
|
|
1758
|
+
if ($ === "phone") {
|
|
1759
1759
|
const ce = ("" + se).replace(/\D/g, "");
|
|
1760
1760
|
if (A.current = ce, ce) {
|
|
1761
1761
|
j.numExtra = 4, j.current = m1;
|
|
1762
1762
|
let xe = ce.substring(0, 3), He = ce.substring(3, 6);
|
|
1763
1763
|
He.length > 0 && (xe = `(${xe})`, He = ` ${He}`);
|
|
1764
|
-
let
|
|
1765
|
-
return
|
|
1764
|
+
let Me = ce.substring(6);
|
|
1765
|
+
return Me.length > 0 && (Me = `-${Me}`), `${xe}${He}${Me}`;
|
|
1766
1766
|
}
|
|
1767
1767
|
return ce;
|
|
1768
1768
|
}
|
|
@@ -1770,27 +1770,27 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1770
1770
|
return se;
|
|
1771
1771
|
};
|
|
1772
1772
|
oe(() => {
|
|
1773
|
-
l && s &&
|
|
1773
|
+
l && s && L(s(l));
|
|
1774
1774
|
}, []);
|
|
1775
1775
|
const pe = () => {
|
|
1776
1776
|
D(""), Z(null);
|
|
1777
1777
|
}, ie = (se) => {
|
|
1778
1778
|
f && f(se.target);
|
|
1779
1779
|
}, le = (se) => {
|
|
1780
|
-
|
|
1780
|
+
$ ? m && m({ formattedValue: se, rawValue: A.current }) : m && m(se);
|
|
1781
1781
|
}, we = (se) => {
|
|
1782
|
-
V(
|
|
1782
|
+
V($ ? ee(se.target.value) : se.target.value), pe(), s && L(s($ ? A.current : se.target.value)), le(se.target.value);
|
|
1783
1783
|
}, ue = (se) => {
|
|
1784
|
-
if (b && G(!1),
|
|
1785
|
-
const ce =
|
|
1784
|
+
if (b && G(!1), w) {
|
|
1785
|
+
const ce = w(se.target.value) || {};
|
|
1786
1786
|
pe(), ce.error && Z("error"), ce.success && Z("success"), D(ce.message);
|
|
1787
1787
|
}
|
|
1788
|
-
|
|
1788
|
+
$ && v && !w && (K.current.checkValidity() === !1 || se.target.value.length < re ? (Z("error"), $ === "credit-card" && D(x.creditCardError), $ === "phone" && D(x.phoneError)) : Z("success")), le(se.target.value);
|
|
1789
1789
|
}, he = (se) => {
|
|
1790
1790
|
var ce;
|
|
1791
1791
|
(!((ce = T.current) != null && ce.contains(se.relatedTarget)) || !se.relatedTarget) && G(!1);
|
|
1792
1792
|
}, te = () => {
|
|
1793
|
-
pe(), V(""), A.current = "", K.current.focus(), s &&
|
|
1793
|
+
pe(), V(""), A.current = "", K.current.focus(), s && L(s("")), le("");
|
|
1794
1794
|
};
|
|
1795
1795
|
oe(() => {
|
|
1796
1796
|
if (_ === "search" && c) {
|
|
@@ -1805,7 +1805,7 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1805
1805
|
const fe = () => {
|
|
1806
1806
|
G((se) => !se);
|
|
1807
1807
|
};
|
|
1808
|
-
b && _ === "password" && (U ? k.type = "text" : k.type = "password"),
|
|
1808
|
+
b && _ === "password" && (U ? k.type = "text" : k.type = "password"), $ === "phone" && (k.type = "tel");
|
|
1809
1809
|
const ke = O || h;
|
|
1810
1810
|
return /* @__PURE__ */ e.createElement(
|
|
1811
1811
|
Yt,
|
|
@@ -1821,7 +1821,7 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1821
1821
|
onBlur: he,
|
|
1822
1822
|
ref: T,
|
|
1823
1823
|
readonly: E,
|
|
1824
|
-
required:
|
|
1824
|
+
required: C,
|
|
1825
1825
|
showLabel: u,
|
|
1826
1826
|
validationState: W
|
|
1827
1827
|
}, k),
|
|
@@ -1834,7 +1834,7 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1834
1834
|
id: o,
|
|
1835
1835
|
name: o,
|
|
1836
1836
|
placeholder: g,
|
|
1837
|
-
required:
|
|
1837
|
+
required: C,
|
|
1838
1838
|
readOnly: E,
|
|
1839
1839
|
disabled: n,
|
|
1840
1840
|
value: z,
|
|
@@ -1870,7 +1870,7 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1870
1870
|
},
|
|
1871
1871
|
/* @__PURE__ */ e.createElement(P, { iconName: U ? "eyeSlash" : "eye" })
|
|
1872
1872
|
),
|
|
1873
|
-
!z && c && _ === "search" && /* @__PURE__ */ e.createElement(
|
|
1873
|
+
!z && c && _ === "search" && /* @__PURE__ */ e.createElement(M1, { label: i.searchShortcut })
|
|
1874
1874
|
);
|
|
1875
1875
|
};
|
|
1876
1876
|
k2.propTypes = {
|
|
@@ -2205,9 +2205,9 @@ const J = {
|
|
|
2205
2205
|
showLabel: f = !0,
|
|
2206
2206
|
validationMessage: g,
|
|
2207
2207
|
validationStatus: E,
|
|
2208
|
-
value:
|
|
2208
|
+
value: C,
|
|
2209
2209
|
className: u
|
|
2210
|
-
} = b,
|
|
2210
|
+
} = b, $ = I(b, [
|
|
2211
2211
|
"defaultValue",
|
|
2212
2212
|
"disabled",
|
|
2213
2213
|
"id",
|
|
@@ -2226,13 +2226,13 @@ const J = {
|
|
|
2226
2226
|
"value",
|
|
2227
2227
|
"className"
|
|
2228
2228
|
]);
|
|
2229
|
-
var
|
|
2230
|
-
const _ = et(a),
|
|
2231
|
-
let
|
|
2232
|
-
E === "error" && (
|
|
2233
|
-
const z = g || l, V = typeof
|
|
2229
|
+
var Me, Ee;
|
|
2230
|
+
const _ = et(a), w = "pds-select", x = s ? J.disabled : null, H = m && !s ? J.required : null, k = E === "error" ? J.error : null, N = E === "success" ? J.success : null;
|
|
2231
|
+
let M = null;
|
|
2232
|
+
E === "error" && (M = "error"), E === "success" && (M = "success");
|
|
2233
|
+
const z = g || l, V = typeof C != "undefined", S = typeof t != "undefined", L = (_e) => h.findIndex((Le) => Le.value === _e), O = V && L(C) >= 0 ? L(C) : null, D = S ? L(t) : null, W = O || D, [Z, U] = F(!1), [G, K] = F(null), [T, A] = F(
|
|
2234
2234
|
W != null ? W : null
|
|
2235
|
-
), j = T !== null ? (
|
|
2235
|
+
), j = T !== null ? (Me = h[T]) == null ? void 0 : Me.label : void 0, q = T !== null ? (Ee = h[T]) == null ? void 0 : Ee.value : void 0, Y = ae([]), { context: X, refs: re } = Se({
|
|
2236
2236
|
open: Z,
|
|
2237
2237
|
onOpenChange: U,
|
|
2238
2238
|
whileElementsMounted: Be
|
|
@@ -2262,48 +2262,48 @@ const J = {
|
|
|
2262
2262
|
opacity: 0
|
|
2263
2263
|
}
|
|
2264
2264
|
}), ke = (_e) => {
|
|
2265
|
-
const
|
|
2266
|
-
V || (A(_e), U(!1)), i && i(
|
|
2265
|
+
const Le = h[_e];
|
|
2266
|
+
V || (A(_e), U(!1)), i && i(Le);
|
|
2267
2267
|
};
|
|
2268
2268
|
oe(() => {
|
|
2269
2269
|
if (V) {
|
|
2270
|
-
const _e =
|
|
2270
|
+
const _e = L(C);
|
|
2271
2271
|
A(_e), U(!1);
|
|
2272
2272
|
}
|
|
2273
|
-
}, [
|
|
2273
|
+
}, [C]);
|
|
2274
2274
|
const se = () => {
|
|
2275
2275
|
r && r(q);
|
|
2276
2276
|
}, ce = () => {
|
|
2277
2277
|
d && d(q);
|
|
2278
2278
|
}, xe = () => {
|
|
2279
2279
|
re.reference.current.focus();
|
|
2280
|
-
}, He = h.map((_e,
|
|
2280
|
+
}, He = h.map((_e, Le) => /* @__PURE__ */ e.createElement(
|
|
2281
2281
|
S1,
|
|
2282
2282
|
y({
|
|
2283
|
-
key:
|
|
2283
|
+
key: Le,
|
|
2284
2284
|
ref: (Pe) => {
|
|
2285
|
-
Y.current[
|
|
2285
|
+
Y.current[Le] = Pe;
|
|
2286
2286
|
},
|
|
2287
|
-
tabIndex:
|
|
2288
|
-
"aria-selected":
|
|
2287
|
+
tabIndex: Le === G ? 0 : -1,
|
|
2288
|
+
"aria-selected": Le === T && Le === G,
|
|
2289
2289
|
"aria-disabled": _e == null ? void 0 : _e.disabled
|
|
2290
2290
|
}, !(_e != null && _e.disabled) && he({
|
|
2291
2291
|
onClick() {
|
|
2292
|
-
ke(
|
|
2292
|
+
ke(Le);
|
|
2293
2293
|
},
|
|
2294
2294
|
onKeyDown(Pe) {
|
|
2295
|
-
Pe.key === "Enter" && (Pe.preventDefault(), ke(
|
|
2295
|
+
Pe.key === "Enter" && (Pe.preventDefault(), ke(Le), re.reference.current.focus()), Pe.key === "Escape" && (Pe.preventDefault(), re.reference.current.focus());
|
|
2296
2296
|
}
|
|
2297
2297
|
})),
|
|
2298
2298
|
_e.label,
|
|
2299
|
-
T ===
|
|
2299
|
+
T === Le && /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${w}__checked-icon` })
|
|
2300
2300
|
));
|
|
2301
2301
|
return /* @__PURE__ */ e.createElement(
|
|
2302
2302
|
"div",
|
|
2303
2303
|
y({
|
|
2304
2304
|
className: R([
|
|
2305
2305
|
J.base,
|
|
2306
|
-
|
|
2306
|
+
w,
|
|
2307
2307
|
x,
|
|
2308
2308
|
H,
|
|
2309
2309
|
k,
|
|
@@ -2311,7 +2311,7 @@ const J = {
|
|
|
2311
2311
|
u != null ? u : ""
|
|
2312
2312
|
]),
|
|
2313
2313
|
style: a ? _ : null
|
|
2314
|
-
},
|
|
2314
|
+
}, $),
|
|
2315
2315
|
/* @__PURE__ */ e.createElement(
|
|
2316
2316
|
Ze,
|
|
2317
2317
|
{
|
|
@@ -2325,7 +2325,7 @@ const J = {
|
|
|
2325
2325
|
/* @__PURE__ */ e.createElement(
|
|
2326
2326
|
"span",
|
|
2327
2327
|
y({
|
|
2328
|
-
className: `${
|
|
2328
|
+
className: `${w}__input-wrapper`,
|
|
2329
2329
|
id: n,
|
|
2330
2330
|
tabIndex: 0,
|
|
2331
2331
|
ref: re.setReference,
|
|
@@ -2336,20 +2336,20 @@ const J = {
|
|
|
2336
2336
|
onBlur: se,
|
|
2337
2337
|
onFocus: ce
|
|
2338
2338
|
})),
|
|
2339
|
-
|
|
2340
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2339
|
+
M && /* @__PURE__ */ e.createElement(pt, { variant: M }),
|
|
2340
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-inner` }, j != null ? j : o.selectOptionText, /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${w}__trigger-icon` }))
|
|
2341
2341
|
),
|
|
2342
2342
|
te && /* @__PURE__ */ e.createElement(
|
|
2343
2343
|
"div",
|
|
2344
2344
|
y({
|
|
2345
2345
|
ref: re.setFloating,
|
|
2346
|
-
className: `${
|
|
2346
|
+
className: `${w}__dropdown`
|
|
2347
2347
|
}, ue({
|
|
2348
2348
|
style: {
|
|
2349
2349
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
2350
2350
|
}
|
|
2351
2351
|
})),
|
|
2352
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, fe) }, /* @__PURE__ */ e.createElement("ul", { className: `${
|
|
2352
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, fe) }, /* @__PURE__ */ e.createElement("ul", { className: `${w}__options` }, He))
|
|
2353
2353
|
),
|
|
2354
2354
|
z && /* @__PURE__ */ e.createElement(
|
|
2355
2355
|
Re,
|
|
@@ -2362,7 +2362,7 @@ const J = {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
)
|
|
2364
2364
|
);
|
|
2365
|
-
},
|
|
2365
|
+
}, L2 = {
|
|
2366
2366
|
left: {
|
|
2367
2367
|
title: "Go to previous page",
|
|
2368
2368
|
rel: "prev",
|
|
@@ -2380,11 +2380,11 @@ const J = {
|
|
|
2380
2380
|
}, Je = (a) => {
|
|
2381
2381
|
var c = a, { arrowText: t = null, direction: s } = c, n = I(c, ["arrowText", "direction"]);
|
|
2382
2382
|
const { buttonCallback: o, currentKey: l, setCurrentKey: r, setDirection: d, pages: i } = $e(it), h = Xt(
|
|
2383
|
-
(u,
|
|
2384
|
-
o && (u.preventDefault(), o(
|
|
2383
|
+
(u, $) => {
|
|
2384
|
+
o && (u.preventDefault(), o($));
|
|
2385
2385
|
},
|
|
2386
2386
|
[o, l]
|
|
2387
|
-
), { title: m, rel: f, srText: g, icon: E, keyModifier:
|
|
2387
|
+
), { title: m, rel: f, srText: g, icon: E, keyModifier: C } = L2[s];
|
|
2388
2388
|
return /* @__PURE__ */ e.createElement(
|
|
2389
2389
|
"li",
|
|
2390
2390
|
y({
|
|
@@ -2395,9 +2395,9 @@ const J = {
|
|
|
2395
2395
|
{
|
|
2396
2396
|
title: m,
|
|
2397
2397
|
rel: f,
|
|
2398
|
-
href: i[
|
|
2398
|
+
href: i[C(l)].link,
|
|
2399
2399
|
onClick: (u) => {
|
|
2400
|
-
h(u,
|
|
2400
|
+
h(u, C(l)), r(C(l)), d(s);
|
|
2401
2401
|
}
|
|
2402
2402
|
},
|
|
2403
2403
|
s === "right" && t ? /* @__PURE__ */ e.createElement("span", null, t) : null,
|
|
@@ -2411,7 +2411,7 @@ Je.propTypes = {
|
|
|
2411
2411
|
arrowText: p.string,
|
|
2412
2412
|
direction: p.oneOf(["right", "left"])
|
|
2413
2413
|
};
|
|
2414
|
-
const
|
|
2414
|
+
const M2 = (s) => {
|
|
2415
2415
|
var t = I(s, []);
|
|
2416
2416
|
const {
|
|
2417
2417
|
buttonCallback: n,
|
|
@@ -2657,7 +2657,7 @@ const V2 = (s) => {
|
|
|
2657
2657
|
case "mini":
|
|
2658
2658
|
return /* @__PURE__ */ e.createElement(I2, y({ location: s }, n));
|
|
2659
2659
|
case "advanced":
|
|
2660
|
-
return /* @__PURE__ */ e.createElement(
|
|
2660
|
+
return /* @__PURE__ */ e.createElement(M2, y({}, n));
|
|
2661
2661
|
}
|
|
2662
2662
|
}, T2 = (r) => {
|
|
2663
2663
|
var d = r, {
|
|
@@ -2759,47 +2759,47 @@ D2.propTypes = {
|
|
|
2759
2759
|
const O2 = (c) => {
|
|
2760
2760
|
var o = c, { headers: t, rowData: s, className: n } = o, a = I(o, ["headers", "rowData", "className"]);
|
|
2761
2761
|
const [l] = F(t), [r, d] = F(s), [i, h] = F({ order: "asc", key: "" }), m = (u) => {
|
|
2762
|
-
d(r.sort((
|
|
2762
|
+
d(r.sort(($, v) => $[u].localeCompare(v[u]))), h({ order: "desc", key: u });
|
|
2763
2763
|
}, f = (u) => {
|
|
2764
|
-
d(r.sort((
|
|
2765
|
-
}, g = (u,
|
|
2766
|
-
h(be(y({}, i), { key:
|
|
2767
|
-
}, E = (u,
|
|
2764
|
+
d(r.sort(($, v) => v[u].localeCompare($[u]))), h({ order: "asc", key: u });
|
|
2765
|
+
}, g = (u, $) => {
|
|
2766
|
+
h(be(y({}, i), { key: $ })), i.order === "asc" ? m($) : f($);
|
|
2767
|
+
}, E = (u, $) => /* @__PURE__ */ e.createElement("tr", { id: $, key: `table-row-${$}` }, u.map((v, b) => /* @__PURE__ */ e.createElement("td", { key: `${$}-cell-${b}` }, /* @__PURE__ */ e.createElement("span", null, v)))), C = "pds-table";
|
|
2768
2768
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2769
2769
|
"table",
|
|
2770
2770
|
y({
|
|
2771
|
-
className: [
|
|
2771
|
+
className: [C, n].join(" ").trim().replace(/\s+/g, " ")
|
|
2772
2772
|
}, a),
|
|
2773
|
-
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((u,
|
|
2773
|
+
/* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, l.map((u, $) => /* @__PURE__ */ e.createElement("th", { key: `header-${$}` }, u.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${C}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
2774
2774
|
"span",
|
|
2775
2775
|
{
|
|
2776
|
-
className: `${
|
|
2777
|
-
onClick: (v) => g(v,
|
|
2776
|
+
className: `${C}__sort-header`,
|
|
2777
|
+
onClick: (v) => g(v, $)
|
|
2778
2778
|
},
|
|
2779
2779
|
u.title
|
|
2780
2780
|
), /* @__PURE__ */ e.createElement(
|
|
2781
2781
|
"button",
|
|
2782
2782
|
{
|
|
2783
|
-
className: `${
|
|
2783
|
+
className: `${C}__sort-button`,
|
|
2784
2784
|
title: `Sort by ${u.title}`,
|
|
2785
|
-
onClick: (v) => g(v,
|
|
2785
|
+
onClick: (v) => g(v, $)
|
|
2786
2786
|
},
|
|
2787
2787
|
/* @__PURE__ */ e.createElement(
|
|
2788
2788
|
"span",
|
|
2789
2789
|
{
|
|
2790
|
-
className: `${
|
|
2790
|
+
className: `${C}__sort-button-top ${$ != i.key && i.key !== "" ? "pds-table__sort-innactive" : i.key == $ ? i.order : "asc"}`
|
|
2791
2791
|
},
|
|
2792
2792
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretUp", iconSize: "sm" })
|
|
2793
2793
|
),
|
|
2794
2794
|
/* @__PURE__ */ e.createElement(
|
|
2795
2795
|
"span",
|
|
2796
2796
|
{
|
|
2797
|
-
className: `${
|
|
2797
|
+
className: `${C}__sort-button-bottom ${i.key == $ ? i.order : "asc"}`
|
|
2798
2798
|
},
|
|
2799
2799
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "sm" })
|
|
2800
2800
|
)
|
|
2801
2801
|
)) : /* @__PURE__ */ e.createElement("span", null, u.title))))),
|
|
2802
|
-
/* @__PURE__ */ e.createElement("tbody", null, r.map((u,
|
|
2802
|
+
/* @__PURE__ */ e.createElement("tbody", null, r.map((u, $) => E(u, $)))
|
|
2803
2803
|
));
|
|
2804
2804
|
};
|
|
2805
2805
|
O2.propTypes = {
|
|
@@ -2814,14 +2814,14 @@ const R2 = (r) => {
|
|
|
2814
2814
|
var d = r, {
|
|
2815
2815
|
disabled: t = !1,
|
|
2816
2816
|
id: s,
|
|
2817
|
-
|
|
2817
|
+
defaultValue: n,
|
|
2818
2818
|
label: a,
|
|
2819
2819
|
onChange: c,
|
|
2820
2820
|
options: o
|
|
2821
2821
|
} = d, l = I(d, [
|
|
2822
2822
|
"disabled",
|
|
2823
2823
|
"id",
|
|
2824
|
-
"
|
|
2824
|
+
"defaultValue",
|
|
2825
2825
|
"label",
|
|
2826
2826
|
"onChange",
|
|
2827
2827
|
"options"
|
|
@@ -2839,18 +2839,18 @@ const R2 = (r) => {
|
|
|
2839
2839
|
id: s
|
|
2840
2840
|
}, l),
|
|
2841
2841
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, a),
|
|
2842
|
-
/* @__PURE__ */ e.createElement("div", { className: `${i}__options` }, o.map((u,
|
|
2842
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__options` }, o.map((u, $) => /* @__PURE__ */ e.createElement(
|
|
2843
2843
|
"div",
|
|
2844
2844
|
{
|
|
2845
2845
|
className: `${i}__option`,
|
|
2846
|
-
key: `${s}-option-${
|
|
2846
|
+
key: `${s}-option-${$}`
|
|
2847
2847
|
},
|
|
2848
2848
|
/* @__PURE__ */ e.createElement(
|
|
2849
2849
|
"input",
|
|
2850
2850
|
{
|
|
2851
2851
|
className: "visually-hidden",
|
|
2852
2852
|
type: "radio",
|
|
2853
|
-
id: `${s}-option-${
|
|
2853
|
+
id: u.id ? u.id : `${s}-option-${$}`,
|
|
2854
2854
|
name: s,
|
|
2855
2855
|
value: u.value,
|
|
2856
2856
|
disabled: t,
|
|
@@ -2858,7 +2858,7 @@ const R2 = (r) => {
|
|
|
2858
2858
|
defaultChecked: f === u.value
|
|
2859
2859
|
}
|
|
2860
2860
|
),
|
|
2861
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${
|
|
2861
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: u.id ? u.id : `${s}-option-${$}` }, u.iconName && /* @__PURE__ */ e.createElement(
|
|
2862
2862
|
P,
|
|
2863
2863
|
{
|
|
2864
2864
|
iconName: u.iconName,
|
|
@@ -2881,7 +2881,7 @@ R2.propTypes = {
|
|
|
2881
2881
|
/**
|
|
2882
2882
|
* Optional initial selected option value
|
|
2883
2883
|
*/
|
|
2884
|
-
|
|
2884
|
+
defaultValue: p.string,
|
|
2885
2885
|
/**
|
|
2886
2886
|
* Label for the ToggleButton — visually hidden, used for screen readers only.
|
|
2887
2887
|
*/
|
|
@@ -2907,7 +2907,11 @@ R2.propTypes = {
|
|
|
2907
2907
|
/**
|
|
2908
2908
|
* Option icon
|
|
2909
2909
|
*/
|
|
2910
|
-
iconName: p.string
|
|
2910
|
+
iconName: p.string,
|
|
2911
|
+
/**
|
|
2912
|
+
* Unique ID for the option
|
|
2913
|
+
*/
|
|
2914
|
+
id: p.string
|
|
2911
2915
|
})
|
|
2912
2916
|
),
|
|
2913
2917
|
/**
|
|
@@ -2943,8 +2947,8 @@ const A2 = (g) => {
|
|
|
2943
2947
|
"statusOffLabel",
|
|
2944
2948
|
"className"
|
|
2945
2949
|
]);
|
|
2946
|
-
const
|
|
2947
|
-
|
|
2950
|
+
const C = "pds-toggle-switch", [u, $] = F(!1), v = (w) => {
|
|
2951
|
+
$(!u), o && o(w.target);
|
|
2948
2952
|
};
|
|
2949
2953
|
let b = u === !0 ? i : h, _;
|
|
2950
2954
|
return d ? _ = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, b), /* @__PURE__ */ e.createElement(
|
|
@@ -2966,14 +2970,14 @@ const A2 = (g) => {
|
|
|
2966
2970
|
{
|
|
2967
2971
|
iconName: "check",
|
|
2968
2972
|
iconSize: "sm",
|
|
2969
|
-
className: `${
|
|
2973
|
+
className: `${C}__on-icon`
|
|
2970
2974
|
}
|
|
2971
2975
|
), /* @__PURE__ */ e.createElement(
|
|
2972
2976
|
P,
|
|
2973
2977
|
{
|
|
2974
2978
|
iconName: "xmark",
|
|
2975
2979
|
iconSize: "sm",
|
|
2976
|
-
className: `${
|
|
2980
|
+
className: `${C}__off-icon`
|
|
2977
2981
|
}
|
|
2978
2982
|
)), /* @__PURE__ */ e.createElement(
|
|
2979
2983
|
Yt,
|
|
@@ -2989,11 +2993,11 @@ const A2 = (g) => {
|
|
|
2989
2993
|
showLabel: r,
|
|
2990
2994
|
required: l
|
|
2991
2995
|
}, f),
|
|
2992
|
-
/* @__PURE__ */ e.createElement("div", { className: [
|
|
2996
|
+
/* @__PURE__ */ e.createElement("div", { className: [C].join(" ").trim().replace(/\s+/g, " ") }, /* @__PURE__ */ e.createElement(
|
|
2993
2997
|
"button",
|
|
2994
2998
|
{
|
|
2995
2999
|
id: s,
|
|
2996
|
-
className: `${
|
|
3000
|
+
className: `${C}__toggle`,
|
|
2997
3001
|
role: "switch",
|
|
2998
3002
|
disabled: t,
|
|
2999
3003
|
"aria-checked": u,
|
|
@@ -3081,7 +3085,7 @@ const zt = (r) => {
|
|
|
3081
3085
|
);
|
|
3082
3086
|
}, rt = je(
|
|
3083
3087
|
(E, g) => {
|
|
3084
|
-
var
|
|
3088
|
+
var C = E, {
|
|
3085
3089
|
ariaLabel: t,
|
|
3086
3090
|
buttonType: s = "button",
|
|
3087
3091
|
disabled: n = !1,
|
|
@@ -3094,7 +3098,7 @@ const zt = (r) => {
|
|
|
3094
3098
|
size: i = "md",
|
|
3095
3099
|
variant: h = "primary",
|
|
3096
3100
|
className: m = ""
|
|
3097
|
-
} =
|
|
3101
|
+
} = C, f = I(C, [
|
|
3098
3102
|
"ariaLabel",
|
|
3099
3103
|
"buttonType",
|
|
3100
3104
|
"disabled",
|
|
@@ -3108,7 +3112,7 @@ const zt = (r) => {
|
|
|
3108
3112
|
"variant",
|
|
3109
3113
|
"className"
|
|
3110
3114
|
]);
|
|
3111
|
-
const u = "pds-button",
|
|
3115
|
+
const u = "pds-button", $ = i !== "md" ? `${u}--${i}` : null, v = h !== "primary" ? `${u}--${h}` : null;
|
|
3112
3116
|
let b;
|
|
3113
3117
|
switch (i) {
|
|
3114
3118
|
case "sm":
|
|
@@ -3129,9 +3133,9 @@ const zt = (r) => {
|
|
|
3129
3133
|
className: `${u}__icon`
|
|
3130
3134
|
}
|
|
3131
3135
|
);
|
|
3132
|
-
let
|
|
3133
|
-
if (a == "icon-start" && c &&
|
|
3134
|
-
|
|
3136
|
+
let w = [r];
|
|
3137
|
+
if (a == "icon-start" && c && w.unshift(_), a == "icon-end" && c && w.push(_), l) {
|
|
3138
|
+
w = [_];
|
|
3135
3139
|
const x = (H) => typeof H == "string" || typeof H == "number" ? String(H) : e.isValidElement(H) ? e.Children.toArray(H.props.children).map(x).join("") : "";
|
|
3136
3140
|
t = x(r);
|
|
3137
3141
|
}
|
|
@@ -3141,7 +3145,7 @@ const zt = (r) => {
|
|
|
3141
3145
|
type: s,
|
|
3142
3146
|
className: R([
|
|
3143
3147
|
u,
|
|
3144
|
-
|
|
3148
|
+
$,
|
|
3145
3149
|
v,
|
|
3146
3150
|
m
|
|
3147
3151
|
]),
|
|
@@ -3151,7 +3155,7 @@ const zt = (r) => {
|
|
|
3151
3155
|
ref: g
|
|
3152
3156
|
}),
|
|
3153
3157
|
o && /* @__PURE__ */ e.createElement(zt, { className: `${u}__loading-indicator`, size: "md" }),
|
|
3154
|
-
|
|
3158
|
+
w
|
|
3155
3159
|
);
|
|
3156
3160
|
}
|
|
3157
3161
|
);
|
|
@@ -3467,7 +3471,7 @@ const F2 = p.exact({
|
|
|
3467
3471
|
display: "flex",
|
|
3468
3472
|
alignItems: "center",
|
|
3469
3473
|
justifyContent: "center"
|
|
3470
|
-
}, E = s ? /* @__PURE__ */ e.createElement("img", { src: `${s}`, className: `${i}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: g }, t && /* @__PURE__ */ e.createElement(P, { iconName: "user", className: `${i}__user-icon` })),
|
|
3474
|
+
}, E = s ? /* @__PURE__ */ e.createElement("img", { src: `${s}`, className: `${i}__image`, alt: "" }) : /* @__PURE__ */ e.createElement("span", { style: g }, t && /* @__PURE__ */ e.createElement(P, { iconName: "user", className: `${i}__user-icon` })), C = /* @__PURE__ */ e.createElement("span", { className: `${i}__content` }, E), u = qe(n) ? We(
|
|
3471
3475
|
n,
|
|
3472
3476
|
be(y({}, n.props), {
|
|
3473
3477
|
className: `${i}__content ${i}__content--link`
|
|
@@ -3479,7 +3483,7 @@ const F2 = p.exact({
|
|
|
3479
3483
|
y({
|
|
3480
3484
|
className: R([i, h, m, o])
|
|
3481
3485
|
}, l),
|
|
3482
|
-
n ? u :
|
|
3486
|
+
n ? u : C
|
|
3483
3487
|
);
|
|
3484
3488
|
}, _t = (m) => {
|
|
3485
3489
|
var f = m, {
|
|
@@ -3506,28 +3510,28 @@ const F2 = p.exact({
|
|
|
3506
3510
|
"variant",
|
|
3507
3511
|
"className"
|
|
3508
3512
|
]);
|
|
3509
|
-
const g = "pds-icon-button", E = r !== "md" ? `${g}--${r}` : null,
|
|
3513
|
+
const g = "pds-icon-button", E = r !== "md" ? `${g}--${r}` : null, C = d !== "standard" ? `${g}--${d}` : null, u = {
|
|
3510
3514
|
fadeOut: `${g}--fadeOut`,
|
|
3511
3515
|
hide: `${g}--hide`,
|
|
3512
3516
|
scaleIn: `${g}--scaleIn`
|
|
3513
3517
|
};
|
|
3514
|
-
let
|
|
3518
|
+
let $, v;
|
|
3515
3519
|
switch (r) {
|
|
3516
3520
|
case "sm":
|
|
3517
|
-
v = "md",
|
|
3521
|
+
v = "md", $ = 8;
|
|
3518
3522
|
break;
|
|
3519
3523
|
case "md":
|
|
3520
|
-
v = "md",
|
|
3524
|
+
v = "md", $ = 10;
|
|
3521
3525
|
break;
|
|
3522
3526
|
case "lg":
|
|
3523
|
-
v = "xl",
|
|
3527
|
+
v = "xl", $ = 12;
|
|
3524
3528
|
}
|
|
3525
|
-
const b = o !== null, _ = ae(null),
|
|
3526
|
-
_.current.classList.add(u.fadeOut), _.current.classList.add(u.hide),
|
|
3529
|
+
const b = o !== null, _ = ae(null), w = ae(null), x = () => {
|
|
3530
|
+
_.current.classList.add(u.fadeOut), _.current.classList.add(u.hide), w.current.classList.remove(u.hide), w.current.classList.add(u.scaleIn), setTimeout(() => {
|
|
3527
3531
|
_.current.classList.remove(
|
|
3528
3532
|
u.fadeOut,
|
|
3529
3533
|
u.hide
|
|
3530
|
-
), _.current.classList.add(u.scaleIn),
|
|
3534
|
+
), _.current.classList.add(u.scaleIn), w.current.classList.remove(u.scaleIn), w.current.classList.add(u.hide);
|
|
3531
3535
|
}, 2e3);
|
|
3532
3536
|
}, H = () => {
|
|
3533
3537
|
b && x(), l && l();
|
|
@@ -3541,7 +3545,7 @@ const F2 = p.exact({
|
|
|
3541
3545
|
)), /* @__PURE__ */ e.createElement(
|
|
3542
3546
|
"div",
|
|
3543
3547
|
{
|
|
3544
|
-
ref:
|
|
3548
|
+
ref: w,
|
|
3545
3549
|
className: `${g}__icon-wrapper ${u.hide}`
|
|
3546
3550
|
},
|
|
3547
3551
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3564,7 +3568,7 @@ const F2 = p.exact({
|
|
|
3564
3568
|
"button",
|
|
3565
3569
|
y({
|
|
3566
3570
|
"aria-label": t,
|
|
3567
|
-
className: [g, E,
|
|
3571
|
+
className: [g, E, C, i].join(" ").trim().replace(/\s+/g, " "),
|
|
3568
3572
|
disabled: n,
|
|
3569
3573
|
onClick: H,
|
|
3570
3574
|
type: s,
|
|
@@ -3575,7 +3579,7 @@ const F2 = p.exact({
|
|
|
3575
3579
|
{
|
|
3576
3580
|
content: t,
|
|
3577
3581
|
className: `${g}__tooltip`,
|
|
3578
|
-
offsetValue:
|
|
3582
|
+
offsetValue: $,
|
|
3579
3583
|
customTrigger: k
|
|
3580
3584
|
}
|
|
3581
3585
|
) : k
|
|
@@ -3583,7 +3587,7 @@ const F2 = p.exact({
|
|
|
3583
3587
|
};
|
|
3584
3588
|
_t.displayName = "IconButton";
|
|
3585
3589
|
const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink, Z2 = (t) => t.isNode, P1 = (u) => {
|
|
3586
|
-
var
|
|
3590
|
+
var $ = u, {
|
|
3587
3591
|
avatarImageSrc: t,
|
|
3588
3592
|
disabled: s,
|
|
3589
3593
|
displayType: n = "icon-end",
|
|
@@ -3599,7 +3603,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3599
3603
|
variant: f = "primary",
|
|
3600
3604
|
withinNavbar: g,
|
|
3601
3605
|
className: E
|
|
3602
|
-
} = C
|
|
3606
|
+
} = $, C = I($, [
|
|
3603
3607
|
"avatarImageSrc",
|
|
3604
3608
|
"disabled",
|
|
3605
3609
|
"displayType",
|
|
@@ -3620,7 +3624,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3620
3624
|
x: v,
|
|
3621
3625
|
y: b,
|
|
3622
3626
|
reference: _,
|
|
3623
|
-
floating:
|
|
3627
|
+
floating: w,
|
|
3624
3628
|
strategy: x,
|
|
3625
3629
|
update: H,
|
|
3626
3630
|
placement: k,
|
|
@@ -3629,10 +3633,10 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3629
3633
|
placement: "bottom-start",
|
|
3630
3634
|
middleware: [i2()]
|
|
3631
3635
|
});
|
|
3632
|
-
let
|
|
3636
|
+
let M = !1;
|
|
3633
3637
|
const z = $e(Ae);
|
|
3634
|
-
z && (
|
|
3635
|
-
const V = g &&
|
|
3638
|
+
z && (M = z.isMobile);
|
|
3639
|
+
const V = g && M, S = '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>', L = "pds-menu-button", O = V ? `${L}--isMobile` : null, D = g ? `${L}--navbar` : null, W = Ue(), [Z] = F(`menu-button-${W}`), [U] = F(`menu-listbox-${W}`), G = c || Z, K = N.floating, T = ae(null), [A, j] = F(!1), [q, Y] = F(!1), [X, re] = F(""), [ee, pe] = F(0), ie = ae([]), le = ae([]), we = ae([]);
|
|
3636
3640
|
e2(() => {
|
|
3637
3641
|
window.addEventListener("mousedown", Ee, !0), H();
|
|
3638
3642
|
const B = K.current;
|
|
@@ -3697,7 +3701,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3697
3701
|
}
|
|
3698
3702
|
}
|
|
3699
3703
|
Q && (B.stopPropagation(), B.preventDefault());
|
|
3700
|
-
},
|
|
3704
|
+
}, Me = (B) => {
|
|
3701
3705
|
let ne = B.key, Q = !1, de = "", me = 0;
|
|
3702
3706
|
function ye(Ce) {
|
|
3703
3707
|
return Ce.length === 1 && Ce.match(/\S/);
|
|
@@ -3755,7 +3759,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3755
3759
|
role: "presentation",
|
|
3756
3760
|
id: de || null,
|
|
3757
3761
|
key: de,
|
|
3758
|
-
className: `${
|
|
3762
|
+
className: `${L}__listbox-heading`
|
|
3759
3763
|
},
|
|
3760
3764
|
B.label
|
|
3761
3765
|
);
|
|
@@ -3771,20 +3775,20 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3771
3775
|
Ie.unshift(at);
|
|
3772
3776
|
}
|
|
3773
3777
|
let st;
|
|
3774
|
-
B.description && (st = /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3778
|
+
B.description && (st = /* @__PURE__ */ e.createElement("span", { className: `${L}__item-description` }, B.description));
|
|
3775
3779
|
let nt;
|
|
3776
3780
|
if (Ft(B)) {
|
|
3777
3781
|
const at = B.linkContent.type;
|
|
3778
|
-
nt = /* @__PURE__ */ e.createElement(at, y({ tabIndex: -1 }, B.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3782
|
+
nt = /* @__PURE__ */ e.createElement(at, y({ tabIndex: -1 }, B.linkContent.props), /* @__PURE__ */ e.createElement("span", { className: `${L}__item-label` }, Ie), st);
|
|
3779
3783
|
} else
|
|
3780
|
-
nt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3784
|
+
nt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${L}__item-label` }, Ie), st);
|
|
3781
3785
|
return /* @__PURE__ */ e.createElement(
|
|
3782
3786
|
"li",
|
|
3783
3787
|
y({
|
|
3784
3788
|
id: Ve,
|
|
3785
3789
|
key: Ve,
|
|
3786
3790
|
"data-testid": B.testId,
|
|
3787
|
-
className: Xe ? `${
|
|
3791
|
+
className: Xe ? `${L}__item-focused` : null,
|
|
3788
3792
|
role: "menuitem",
|
|
3789
3793
|
tabIndex: -1,
|
|
3790
3794
|
onClick: xe,
|
|
@@ -3793,7 +3797,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3793
3797
|
nt
|
|
3794
3798
|
);
|
|
3795
3799
|
}
|
|
3796
|
-
},
|
|
3800
|
+
}, Le = (B, ne) => {
|
|
3797
3801
|
const Q = [];
|
|
3798
3802
|
let de = ne.shift(), me = [];
|
|
3799
3803
|
return B.map((ye, Ce) => {
|
|
@@ -3804,9 +3808,9 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3804
3808
|
const ne = B, Q = B.filter(
|
|
3805
3809
|
Pt || At
|
|
3806
3810
|
), de = Q.length > 0;
|
|
3807
|
-
let me = [`${
|
|
3808
|
-
if (g && me.push(`${
|
|
3809
|
-
const ye =
|
|
3811
|
+
let me = [`${L}__listbox`];
|
|
3812
|
+
if (g && me.push(`${L}__listbox--navbar`), (n === "avatar" || n === "avatar-with-text") && me.push(`${L}__listbox--avatar`), d === "end" && me.push(`${L}__listbox--end`), n === "icon-only" && me.push(`${L}__listbox--icon-only`), me = me.join(" ").trim().replace(/\s+/g, " "), de) {
|
|
3813
|
+
const ye = Le(B, Q);
|
|
3810
3814
|
ye.forEach(() => {
|
|
3811
3815
|
ie.current.push(Ue());
|
|
3812
3816
|
});
|
|
@@ -3831,8 +3835,8 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3831
3835
|
transform: `translate(${Math.round(v)}px,${Math.round(b)}px)`,
|
|
3832
3836
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
3833
3837
|
},
|
|
3834
|
-
onKeyDown:
|
|
3835
|
-
ref:
|
|
3838
|
+
onKeyDown: Me,
|
|
3839
|
+
ref: w
|
|
3836
3840
|
},
|
|
3837
3841
|
ye.map((Ie, st) => {
|
|
3838
3842
|
Ce = ie.current[st];
|
|
@@ -3872,8 +3876,8 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3872
3876
|
position: x,
|
|
3873
3877
|
transform: `translate(${Math.round(v)}px,${Math.round(b)}px)`
|
|
3874
3878
|
},
|
|
3875
|
-
onKeyDown:
|
|
3876
|
-
ref:
|
|
3879
|
+
onKeyDown: Me,
|
|
3880
|
+
ref: w
|
|
3877
3881
|
},
|
|
3878
3882
|
ne.map((Ce, Ve) => _e(Ce, Ve))
|
|
3879
3883
|
));
|
|
@@ -3892,7 +3896,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3892
3896
|
iconName: "angleDown",
|
|
3893
3897
|
type: "button",
|
|
3894
3898
|
disabled: s,
|
|
3895
|
-
className: `${
|
|
3899
|
+
className: `${L}__trigger`,
|
|
3896
3900
|
"aria-haspopup": "true",
|
|
3897
3901
|
"aria-controls": U,
|
|
3898
3902
|
"aria-expanded": A,
|
|
@@ -3910,7 +3914,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3910
3914
|
iconName: a,
|
|
3911
3915
|
type: "button",
|
|
3912
3916
|
disabled: s,
|
|
3913
|
-
className: `${
|
|
3917
|
+
className: `${L}__trigger ${L}__trigger--icon-only`,
|
|
3914
3918
|
"aria-haspopup": "true",
|
|
3915
3919
|
"aria-controls": U,
|
|
3916
3920
|
"aria-expanded": A,
|
|
@@ -3925,7 +3929,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3925
3929
|
id: G,
|
|
3926
3930
|
type: "button",
|
|
3927
3931
|
disabled: s,
|
|
3928
|
-
className: `${
|
|
3932
|
+
className: `${L}__trigger ${L}__trigger--avatar`,
|
|
3929
3933
|
"aria-label": n === "avatar" ? l : null,
|
|
3930
3934
|
"aria-haspopup": "true",
|
|
3931
3935
|
"aria-controls": U,
|
|
@@ -3934,25 +3938,25 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3934
3938
|
onKeyDown: He,
|
|
3935
3939
|
ref: _
|
|
3936
3940
|
},
|
|
3937
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
3941
|
+
/* @__PURE__ */ e.createElement("span", { className: `${L}__avatar-label` }, /* @__PURE__ */ e.createElement(ut, { size: "sm", imageSrc: t || S }), n === "avatar-with-text" && l),
|
|
3938
3942
|
/* @__PURE__ */ e.createElement(
|
|
3939
3943
|
P,
|
|
3940
3944
|
{
|
|
3941
3945
|
iconName: "angleDown",
|
|
3942
3946
|
iconSize: "md",
|
|
3943
|
-
className: `${
|
|
3947
|
+
className: `${L}__trigger-icon ${L}__trigger-icon--${n}`
|
|
3944
3948
|
}
|
|
3945
3949
|
)
|
|
3946
3950
|
));
|
|
3947
3951
|
const xt = (B) => {
|
|
3948
3952
|
const ne = B.target;
|
|
3949
|
-
ne.classList.toggle(`${
|
|
3953
|
+
ne.classList.toggle(`${L}__toggle--expanded`), ne.setAttribute(
|
|
3950
3954
|
"aria-expanded",
|
|
3951
3955
|
ne.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
3952
|
-
), ne.nextElementSibling.classList.toggle(`${
|
|
3953
|
-
}, Vt = () => /* @__PURE__ */ e.createElement("ul", { className: `${
|
|
3956
|
+
), ne.nextElementSibling.classList.toggle(`${L}__mobile-menu--expanded`);
|
|
3957
|
+
}, Vt = () => /* @__PURE__ */ e.createElement("ul", { className: `${L}__mobile-menu`, role: "menu" }, r.map((B, ne) => _e(B, ne)));
|
|
3954
3958
|
let dt;
|
|
3955
|
-
const It = n === "icon-end" ? "pds-button pds-button--navbar" : null, St = [`${
|
|
3959
|
+
const It = n === "icon-end" ? "pds-button pds-button--navbar" : null, St = [`${L}__toggle`, It].join(" ").trim().replace(/\s+/g, " ");
|
|
3956
3960
|
V && (dt = /* @__PURE__ */ e.createElement(
|
|
3957
3961
|
"button",
|
|
3958
3962
|
{
|
|
@@ -3963,30 +3967,30 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3963
3967
|
"aria-expanded": !1,
|
|
3964
3968
|
onClick: xt
|
|
3965
3969
|
},
|
|
3966
|
-
n === "avatar" || n === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3970
|
+
n === "avatar" || n === "avatar-with-text" ? /* @__PURE__ */ e.createElement("span", { className: `${L}__avatar-label` }, /* @__PURE__ */ e.createElement(
|
|
3967
3971
|
ut,
|
|
3968
3972
|
{
|
|
3969
3973
|
size: "sm",
|
|
3970
3974
|
imageSrc: t || S
|
|
3971
3975
|
}
|
|
3972
|
-
), l) : n === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
3976
|
+
), l) : n === "icon-only" ? /* @__PURE__ */ e.createElement("span", { className: `${L}__icon-label` }, /* @__PURE__ */ e.createElement(P, { iconName: a }), " ", l) : l,
|
|
3973
3977
|
/* @__PURE__ */ e.createElement(
|
|
3974
3978
|
P,
|
|
3975
3979
|
{
|
|
3976
3980
|
iconName: "angleDown",
|
|
3977
3981
|
iconSize: "md",
|
|
3978
|
-
className: `${
|
|
3982
|
+
className: `${L}__toggle-icon ${L}__toggle-icon--${n}`
|
|
3979
3983
|
}
|
|
3980
3984
|
)
|
|
3981
3985
|
));
|
|
3982
|
-
const ge = dt, ve = A ? `${
|
|
3986
|
+
const ge = dt, ve = A ? `${L}--expanded` : null;
|
|
3983
3987
|
return /* @__PURE__ */ e.createElement(
|
|
3984
3988
|
"span",
|
|
3985
3989
|
y({
|
|
3986
|
-
className: [
|
|
3990
|
+
className: [L, D, O, ve, E].join(" ").trim().replace(/\s+/g, " "),
|
|
3987
3991
|
"data-testid": h,
|
|
3988
3992
|
ref: T
|
|
3989
|
-
},
|
|
3993
|
+
}, C),
|
|
3990
3994
|
V ? /* @__PURE__ */ e.createElement(e.Fragment, null, ge, /* @__PURE__ */ e.createElement(Vt, null)) : /* @__PURE__ */ e.createElement(e.Fragment, null, tt, Pe(r))
|
|
3991
3995
|
);
|
|
3992
3996
|
};
|
|
@@ -4078,10 +4082,10 @@ const F1 = ({ items: t, label: s, mobileMenuMaxWidth: n = 640 }) => {
|
|
|
4078
4082
|
onOpenChange: c,
|
|
4079
4083
|
whileElementsMounted: Be
|
|
4080
4084
|
}), f = Ge(m, { event: "mousedown" }), g = Te(m), E = De(m, { role: "menu" });
|
|
4081
|
-
let
|
|
4082
|
-
d ?
|
|
4085
|
+
let C;
|
|
4086
|
+
d ? C = gt(m, {
|
|
4083
4087
|
enabled: !1
|
|
4084
|
-
}) :
|
|
4088
|
+
}) : C = gt(m, {
|
|
4085
4089
|
handleClose: w1({
|
|
4086
4090
|
requireIntent: !1,
|
|
4087
4091
|
buffer: 10,
|
|
@@ -4089,11 +4093,11 @@ const F1 = ({ items: t, label: s, mobileMenuMaxWidth: n = 640 }) => {
|
|
|
4089
4093
|
enabled: !0
|
|
4090
4094
|
})
|
|
4091
4095
|
});
|
|
4092
|
-
const { getReferenceProps: u, getFloatingProps:
|
|
4096
|
+
const { getReferenceProps: u, getFloatingProps: $ } = Oe([
|
|
4093
4097
|
g,
|
|
4094
4098
|
E,
|
|
4095
4099
|
f,
|
|
4096
|
-
|
|
4100
|
+
C
|
|
4097
4101
|
]), v = (b) => !!(b.isActive || b.linkContent && b.linkContent.props.className && b.linkContent.props.className.includes("pds-isActive"));
|
|
4098
4102
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4099
4103
|
"button",
|
|
@@ -4108,7 +4112,7 @@ const F1 = ({ items: t, label: s, mobileMenuMaxWidth: n = 640 }) => {
|
|
|
4108
4112
|
y({
|
|
4109
4113
|
className: `${i}__dropdown`,
|
|
4110
4114
|
ref: h.setFloating
|
|
4111
|
-
},
|
|
4115
|
+
}, $()),
|
|
4112
4116
|
t.map((b, _) => /* @__PURE__ */ e.createElement(
|
|
4113
4117
|
"li",
|
|
4114
4118
|
{
|
|
@@ -4139,7 +4143,7 @@ const U2 = (l) => {
|
|
|
4139
4143
|
"mobileMenuMaxWidth",
|
|
4140
4144
|
"className"
|
|
4141
4145
|
]);
|
|
4142
|
-
const [d, i] = F(1025), [h, m] = F(null), [f, g] = F(-1), [E,
|
|
4146
|
+
const [d, i] = F(1025), [h, m] = F(null), [f, g] = F(-1), [E, C] = F(null), [u, $] = F({
|
|
4143
4147
|
containerChildren: []
|
|
4144
4148
|
});
|
|
4145
4149
|
oe(() => (i(window.innerWidth), window.addEventListener("resize", v), () => {
|
|
@@ -4159,7 +4163,7 @@ const U2 = (l) => {
|
|
|
4159
4163
|
focusVisible: !0
|
|
4160
4164
|
}));
|
|
4161
4165
|
}, [f]);
|
|
4162
|
-
const _ = "pds-nav-menu",
|
|
4166
|
+
const _ = "pds-nav-menu", w = s !== "default" ? `${_}--${s}` : "", x = b ? `${_}--isMobile` : `${_}--notMobile`, H = ae([]), k = (z) => {
|
|
4163
4167
|
const V = H.current.length - 1, Z = {
|
|
4164
4168
|
ArrowRight: () => {
|
|
4165
4169
|
m(-1), g(f === -1 ? 1 : f === V ? 0 : f + 1);
|
|
@@ -4169,15 +4173,15 @@ const U2 = (l) => {
|
|
|
4169
4173
|
},
|
|
4170
4174
|
ArrowDown: () => {
|
|
4171
4175
|
var K, T, A, j;
|
|
4172
|
-
|
|
4176
|
+
C("down");
|
|
4173
4177
|
let U = z.target.parentNode.children[1], G = ((T = (K = z.target) == null ? void 0 : K.parentNode.children[1]) == null ? void 0 : T.children) || ((j = (A = z.target) == null ? void 0 : A.parentNode.parentNode.children[1]) == null ? void 0 : j.children);
|
|
4174
|
-
u.container != U && U != null &&
|
|
4178
|
+
u.container != U && U != null && $({
|
|
4175
4179
|
container: U,
|
|
4176
4180
|
containerChildren: [...G]
|
|
4177
4181
|
}), h === null || h == u.containerChildren.length - 1 ? m(0) : m(parseInt(h) + 1);
|
|
4178
4182
|
},
|
|
4179
4183
|
ArrowUp: () => {
|
|
4180
|
-
|
|
4184
|
+
C("up"), m(h === 0 ? u.containerChildren.length - 1 : parseInt(h) - 1);
|
|
4181
4185
|
}
|
|
4182
4186
|
}[z.code];
|
|
4183
4187
|
Z && Z();
|
|
@@ -4191,15 +4195,15 @@ const U2 = (l) => {
|
|
|
4191
4195
|
}
|
|
4192
4196
|
return !1;
|
|
4193
4197
|
};
|
|
4194
|
-
let
|
|
4198
|
+
let M = [];
|
|
4195
4199
|
return n.map((z, V) => {
|
|
4196
|
-
const S = `item-${Ue()}`,
|
|
4197
|
-
z.links ?
|
|
4200
|
+
const S = `item-${Ue()}`, L = z.id ? z.id : S;
|
|
4201
|
+
z.links ? M.push(
|
|
4198
4202
|
/* @__PURE__ */ e.createElement(
|
|
4199
4203
|
"li",
|
|
4200
4204
|
{
|
|
4201
4205
|
key: `${V}-dropdown`,
|
|
4202
|
-
id:
|
|
4206
|
+
id: L,
|
|
4203
4207
|
ref: (O) => H.current[V] = O,
|
|
4204
4208
|
className: `${_}__item ${_}__item--top-level ${_}__item--has-children ${N(z) === !0 ? `${_}__item--active` : ""}`
|
|
4205
4209
|
},
|
|
@@ -4212,12 +4216,12 @@ const U2 = (l) => {
|
|
|
4212
4216
|
}
|
|
4213
4217
|
)
|
|
4214
4218
|
)
|
|
4215
|
-
) :
|
|
4219
|
+
) : M.push(
|
|
4216
4220
|
/* @__PURE__ */ e.createElement(
|
|
4217
4221
|
"li",
|
|
4218
4222
|
{
|
|
4219
4223
|
key: V,
|
|
4220
|
-
id:
|
|
4224
|
+
id: L,
|
|
4221
4225
|
ref: (O) => H.current[V] = O,
|
|
4222
4226
|
className: `${_}__item ${_}__item--top-level ${_}__item--has-link ${N(z) === !0 ? `${_}__item--active` : ""}`
|
|
4223
4227
|
},
|
|
@@ -4227,13 +4231,13 @@ const U2 = (l) => {
|
|
|
4227
4231
|
}), /* @__PURE__ */ e.createElement(
|
|
4228
4232
|
"nav",
|
|
4229
4233
|
y({
|
|
4230
|
-
className: [_,
|
|
4234
|
+
className: [_, w, x, c].join(" ").trim().replace(/\s+/g, " "),
|
|
4231
4235
|
"aria-label": t,
|
|
4232
4236
|
onKeyDown: (z) => {
|
|
4233
4237
|
k(z);
|
|
4234
4238
|
}
|
|
4235
4239
|
}, o),
|
|
4236
|
-
/* @__PURE__ */ e.createElement("ul", { className: `${_}__menu` },
|
|
4240
|
+
/* @__PURE__ */ e.createElement("ul", { className: `${_}__menu` }, M)
|
|
4237
4241
|
);
|
|
4238
4242
|
};
|
|
4239
4243
|
U2.propTypes = {
|
|
@@ -4280,7 +4284,7 @@ const bt = (d) => {
|
|
|
4280
4284
|
m,
|
|
4281
4285
|
f,
|
|
4282
4286
|
g
|
|
4283
|
-
]),
|
|
4287
|
+
]), C = qe(a) ? a.props.children : null, u = /* @__PURE__ */ e.createElement(
|
|
4284
4288
|
P,
|
|
4285
4289
|
{
|
|
4286
4290
|
iconName: n,
|
|
@@ -4289,18 +4293,18 @@ const bt = (d) => {
|
|
|
4289
4293
|
key: n
|
|
4290
4294
|
}
|
|
4291
4295
|
);
|
|
4292
|
-
let
|
|
4293
|
-
s === "icon-start" && n ?
|
|
4296
|
+
let $ = [C];
|
|
4297
|
+
s === "icon-start" && n ? $ = [u, C] : s === "icon-end" && n && ($ = [C, u]);
|
|
4294
4298
|
const v = qe(a) ? We(a, {
|
|
4295
4299
|
className: E,
|
|
4296
|
-
children:
|
|
4300
|
+
children: $
|
|
4297
4301
|
}) : null;
|
|
4298
4302
|
return t ? /* @__PURE__ */ e.createElement(
|
|
4299
4303
|
rt,
|
|
4300
4304
|
{
|
|
4301
4305
|
className: R([h, l != null ? l : ""]),
|
|
4302
4306
|
disabled: !0,
|
|
4303
|
-
label:
|
|
4307
|
+
label: $,
|
|
4304
4308
|
size: c,
|
|
4305
4309
|
variant: o
|
|
4306
4310
|
}
|
|
@@ -4421,7 +4425,7 @@ const bt = (d) => {
|
|
|
4421
4425
|
"statusBadgeType",
|
|
4422
4426
|
"className"
|
|
4423
4427
|
]);
|
|
4424
|
-
const E = "pds-pricing-card",
|
|
4428
|
+
const E = "pds-pricing-card", C = `${E}-container`, u = n ? `${C}--with-list` : null, $ = i ? `${E}--${i}` : null, v = (L) => L.toLowerCase().replace(/\s/g, "-"), b = l && l.length > 1, [_, w] = F(
|
|
4425
4429
|
v(l[0].label)
|
|
4426
4430
|
), [x, H] = F(
|
|
4427
4431
|
t.label
|
|
@@ -4443,43 +4447,43 @@ const bt = (d) => {
|
|
|
4443
4447
|
listItems: l[0].listItems,
|
|
4444
4448
|
renderTypeLabels: !1
|
|
4445
4449
|
}
|
|
4446
|
-
)), b && (k = l.map((
|
|
4447
|
-
const D = _ === v(
|
|
4450
|
+
)), b && (k = l.map((L) => {
|
|
4451
|
+
const D = _ === v(L.label) ? null : `${E}__pricing-data--hide`;
|
|
4448
4452
|
return /* @__PURE__ */ e.createElement(
|
|
4449
4453
|
"div",
|
|
4450
4454
|
{
|
|
4451
4455
|
className: [`${E}__pricing-data`, D].join(" ").trim().replace(/\s+/g, " "),
|
|
4452
|
-
id: `data-${v(
|
|
4453
|
-
key: v(
|
|
4456
|
+
id: `data-${v(L.label)}`,
|
|
4457
|
+
key: v(L.label)
|
|
4454
4458
|
},
|
|
4455
|
-
|
|
4456
|
-
/* @__PURE__ */ e.createElement("div", { className: `${E}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__price` },
|
|
4457
|
-
/* @__PURE__ */ e.createElement("div", { className: `${E}__savings-line` },
|
|
4459
|
+
L.pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${E}__price-prefix` }, L.pricePrefix),
|
|
4460
|
+
/* @__PURE__ */ e.createElement("div", { className: `${E}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${E}__price` }, L.price), L.priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__details` }, L.priceDetails)),
|
|
4461
|
+
/* @__PURE__ */ e.createElement("div", { className: `${E}__savings-line` }, L.savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
4458
4462
|
vt,
|
|
4459
4463
|
{
|
|
4460
4464
|
className: `${E}__savings-badge`,
|
|
4461
4465
|
color: "neutral",
|
|
4462
4466
|
size: "sm",
|
|
4463
|
-
label:
|
|
4467
|
+
label: L.savingsBadgeLabel
|
|
4464
4468
|
}
|
|
4465
|
-
),
|
|
4469
|
+
), L.savingsDetails && /* @__PURE__ */ e.createElement("span", { className: `${E}__savings-details` }, L.savingsDetails))
|
|
4466
4470
|
);
|
|
4467
|
-
}), N = l.map((
|
|
4468
|
-
const D = _ === v(
|
|
4471
|
+
}), N = l.map((L) => {
|
|
4472
|
+
const D = _ === v(L.label) ? null : `${E}__list--hide`;
|
|
4469
4473
|
return /* @__PURE__ */ e.createElement(
|
|
4470
4474
|
p1,
|
|
4471
4475
|
{
|
|
4472
4476
|
className: [`${E}__list`, D].join(" ").trim().replace(/\s+/g, " "),
|
|
4473
|
-
listLabel:
|
|
4474
|
-
listItems:
|
|
4477
|
+
listLabel: L.listLabel,
|
|
4478
|
+
listItems: L.listItems,
|
|
4475
4479
|
renderTypeLabels: !1,
|
|
4476
|
-
key: `${v(
|
|
4480
|
+
key: `${v(L.label)}-list`
|
|
4477
4481
|
}
|
|
4478
4482
|
);
|
|
4479
4483
|
}));
|
|
4480
|
-
const
|
|
4484
|
+
const M = (L) => {
|
|
4481
4485
|
const O = l.find(
|
|
4482
|
-
(D) => v(D.label) ===
|
|
4486
|
+
(D) => v(D.label) === L
|
|
4483
4487
|
);
|
|
4484
4488
|
return O.customActionLabel ? O.customActionLabel : t.label;
|
|
4485
4489
|
};
|
|
@@ -4491,13 +4495,13 @@ const bt = (d) => {
|
|
|
4491
4495
|
className: `${E}__select`,
|
|
4492
4496
|
label: d,
|
|
4493
4497
|
showLabel: !1,
|
|
4494
|
-
options: l.map((
|
|
4495
|
-
value: v(
|
|
4496
|
-
label:
|
|
4498
|
+
options: l.map((L) => ({
|
|
4499
|
+
value: v(L.label),
|
|
4500
|
+
label: L.label
|
|
4497
4501
|
})),
|
|
4498
4502
|
defaultValue: v(l[0].label),
|
|
4499
|
-
onOptionSelect: (
|
|
4500
|
-
|
|
4503
|
+
onOptionSelect: (L) => {
|
|
4504
|
+
w(L.value), H(M(L.value)), a && a(L.value);
|
|
4501
4505
|
}
|
|
4502
4506
|
}
|
|
4503
4507
|
));
|
|
@@ -4541,12 +4545,12 @@ const bt = (d) => {
|
|
|
4541
4545
|
))), /* @__PURE__ */ e.createElement(
|
|
4542
4546
|
"div",
|
|
4543
4547
|
y({
|
|
4544
|
-
className: [
|
|
4548
|
+
className: [C, u, h].join(" ").trim().replace(/\s+/g, " ")
|
|
4545
4549
|
}, m),
|
|
4546
4550
|
/* @__PURE__ */ e.createElement(
|
|
4547
4551
|
"div",
|
|
4548
4552
|
{
|
|
4549
|
-
className: [E,
|
|
4553
|
+
className: [E, $].join(" ").trim().replace(/\s+/g, " ")
|
|
4550
4554
|
},
|
|
4551
4555
|
i && /* @__PURE__ */ e.createElement(
|
|
4552
4556
|
t1,
|
|
@@ -4765,7 +4769,7 @@ const Gt = (o) => {
|
|
|
4765
4769
|
var i = d, {
|
|
4766
4770
|
disabled: t = !1,
|
|
4767
4771
|
id: s,
|
|
4768
|
-
|
|
4772
|
+
defaultValue: n,
|
|
4769
4773
|
label: a,
|
|
4770
4774
|
onChange: c,
|
|
4771
4775
|
options: o,
|
|
@@ -4773,14 +4777,14 @@ const Gt = (o) => {
|
|
|
4773
4777
|
} = i, r = I(i, [
|
|
4774
4778
|
"disabled",
|
|
4775
4779
|
"id",
|
|
4776
|
-
"
|
|
4780
|
+
"defaultValue",
|
|
4777
4781
|
"label",
|
|
4778
4782
|
"onChange",
|
|
4779
4783
|
"options",
|
|
4780
4784
|
"className"
|
|
4781
4785
|
]);
|
|
4782
|
-
const h = "pds-segmented-button", m = t ? "pds-is-disabled" : null, [f, g] = F(n), E = (
|
|
4783
|
-
g(
|
|
4786
|
+
const h = "pds-segmented-button", m = t ? "pds-is-disabled" : null, [f, g] = F(n), E = (C) => {
|
|
4787
|
+
g(C.target.value), c && c(C.target.value);
|
|
4784
4788
|
};
|
|
4785
4789
|
if (o.length >= 2 && o.length <= 6)
|
|
4786
4790
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4789,7 +4793,7 @@ const Gt = (o) => {
|
|
|
4789
4793
|
className: R([h, m, l != null ? l : ""])
|
|
4790
4794
|
}, r),
|
|
4791
4795
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, a),
|
|
4792
|
-
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((
|
|
4796
|
+
/* @__PURE__ */ e.createElement("div", { className: `${h}__options` }, o.map((C, u) => /* @__PURE__ */ e.createElement(
|
|
4793
4797
|
"div",
|
|
4794
4798
|
{
|
|
4795
4799
|
className: `${h}__option`,
|
|
@@ -4800,29 +4804,29 @@ const Gt = (o) => {
|
|
|
4800
4804
|
{
|
|
4801
4805
|
className: "visually-hidden",
|
|
4802
4806
|
type: "radio",
|
|
4803
|
-
id: `${s}-option-${u}`,
|
|
4807
|
+
id: C.id ? C.id : `${s}-option-${u}`,
|
|
4804
4808
|
name: s,
|
|
4805
|
-
value:
|
|
4809
|
+
value: C.value,
|
|
4806
4810
|
disabled: t,
|
|
4807
4811
|
onClick: E,
|
|
4808
|
-
defaultChecked: f ===
|
|
4812
|
+
defaultChecked: f === C.value
|
|
4809
4813
|
}
|
|
4810
4814
|
),
|
|
4811
|
-
/* @__PURE__ */ e.createElement("label", { htmlFor: `${s}-option-${u}` },
|
|
4815
|
+
/* @__PURE__ */ e.createElement("label", { htmlFor: C.id ? C.id : `${s}-option-${u}` }, C.tally ? /* @__PURE__ */ e.createElement(
|
|
4812
4816
|
Gt,
|
|
4813
4817
|
{
|
|
4814
|
-
label:
|
|
4815
|
-
type:
|
|
4818
|
+
label: C.tally.label,
|
|
4819
|
+
type: C.tally.type,
|
|
4816
4820
|
className: `${h}__tally`
|
|
4817
4821
|
}
|
|
4818
|
-
) :
|
|
4822
|
+
) : C.iconName && /* @__PURE__ */ e.createElement(
|
|
4819
4823
|
P,
|
|
4820
4824
|
{
|
|
4821
|
-
iconName:
|
|
4825
|
+
iconName: C.iconName,
|
|
4822
4826
|
iconSize: "md",
|
|
4823
4827
|
className: `${h}__icon`
|
|
4824
4828
|
}
|
|
4825
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` },
|
|
4829
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${h}__label-text` }, C.label))
|
|
4826
4830
|
)))
|
|
4827
4831
|
);
|
|
4828
4832
|
}, Y2 = {
|
|
@@ -4893,7 +4897,7 @@ const Gt = (o) => {
|
|
|
4893
4897
|
m && /* @__PURE__ */ e.createElement("div", { className: `${r}__image` }, m[0]),
|
|
4894
4898
|
f && /* @__PURE__ */ e.createElement("div", { className: `${r}__main` }, f)
|
|
4895
4899
|
);
|
|
4896
|
-
},
|
|
4900
|
+
}, Lt = (o) => {
|
|
4897
4901
|
var l = o, {
|
|
4898
4902
|
baseClass: t,
|
|
4899
4903
|
children: s,
|
|
@@ -4927,7 +4931,7 @@ const Gt = (o) => {
|
|
|
4927
4931
|
]);
|
|
4928
4932
|
const d = "pds-card-heading", i = t === "XL" ? "pds-ts-xl" : "pds-ts-l", h = s === "bold" ? "pds-fw-bold" : "pds-fw-semibold";
|
|
4929
4933
|
return /* @__PURE__ */ e.createElement(
|
|
4930
|
-
|
|
4934
|
+
Lt,
|
|
4931
4935
|
y({
|
|
4932
4936
|
className: R([
|
|
4933
4937
|
d,
|
|
@@ -4962,18 +4966,18 @@ const Gt = (o) => {
|
|
|
4962
4966
|
const m = "pds-card-select-group";
|
|
4963
4967
|
let f = `${m}__legend`;
|
|
4964
4968
|
a === "center" && (f = `${m}__legend ${m}__legend--center`), a === "hidden" && (f = `${m}__legend visually-hidden`);
|
|
4965
|
-
const [g, E] = F(s),
|
|
4966
|
-
E(
|
|
4967
|
-
}, u = l.length,
|
|
4969
|
+
const [g, E] = F(s), C = (w) => {
|
|
4970
|
+
E(w.currentTarget.value), o && o(w.currentTarget.value);
|
|
4971
|
+
}, u = l.length, $ = "pds-grid-item", v = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", b = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
4968
4972
|
let _ = "";
|
|
4969
|
-
return c === "twoAcross" ? _ = v : c === "threeAcross" ? _ = b : c === "auto" && (u === 1 ? _ =
|
|
4973
|
+
return c === "twoAcross" ? _ = v : c === "threeAcross" ? _ = b : c === "auto" && (u === 1 ? _ = $ : u % 3 === 0 ? _ = b : u % 2 === 0 ? _ = v : _ = b), /* @__PURE__ */ e.createElement(
|
|
4970
4974
|
"fieldset",
|
|
4971
4975
|
y({
|
|
4972
4976
|
className: [m, r].join(" ").trim().replace(/\s+/g, " "),
|
|
4973
4977
|
id: t
|
|
4974
4978
|
}, d),
|
|
4975
4979
|
/* @__PURE__ */ e.createElement("legend", { className: f }, n),
|
|
4976
|
-
/* @__PURE__ */ e.createElement("div", { className: `${m}__options pds-grid pds-grid--narrow` }, l.map((
|
|
4980
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__options pds-grid pds-grid--narrow` }, l.map((w, x) => /* @__PURE__ */ e.createElement(
|
|
4977
4981
|
"div",
|
|
4978
4982
|
{
|
|
4979
4983
|
className: [`${m}__option`, _].join(" ").trim().replace(/\s+/g, " "),
|
|
@@ -4983,28 +4987,28 @@ const Gt = (o) => {
|
|
|
4983
4987
|
"input",
|
|
4984
4988
|
{
|
|
4985
4989
|
type: "radio",
|
|
4986
|
-
id:
|
|
4990
|
+
id: w.id ? w.id : `${t}-option-${x}`,
|
|
4987
4991
|
name: t,
|
|
4988
|
-
value:
|
|
4989
|
-
onClick:
|
|
4990
|
-
defaultChecked: g ===
|
|
4992
|
+
value: w.value,
|
|
4993
|
+
onClick: C,
|
|
4994
|
+
defaultChecked: g === w.value
|
|
4991
4995
|
}
|
|
4992
4996
|
),
|
|
4993
4997
|
/* @__PURE__ */ e.createElement(
|
|
4994
4998
|
"label",
|
|
4995
4999
|
{
|
|
4996
|
-
htmlFor:
|
|
4997
|
-
className: g ===
|
|
5000
|
+
htmlFor: w.id ? w.id : `${t}-option-${x}`,
|
|
5001
|
+
className: g === w.value ? `${m}__option-label ${m}__option-label--selected` : `${m}__option-label`
|
|
4998
5002
|
},
|
|
4999
5003
|
/* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-indicator` }, /* @__PURE__ */ e.createElement(
|
|
5000
5004
|
P,
|
|
5001
5005
|
{
|
|
5002
|
-
iconName: g ===
|
|
5006
|
+
iconName: g === w.value ? "circleCheck" : "circle",
|
|
5003
5007
|
iconSize: "xl",
|
|
5004
|
-
className: g ===
|
|
5008
|
+
className: g === w.value ? `${m}__option-icon ${m}__option-icon--selected` : `${m}__option-icon`
|
|
5005
5009
|
}
|
|
5006
5010
|
)),
|
|
5007
|
-
/* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-text` },
|
|
5011
|
+
/* @__PURE__ */ e.createElement("div", { className: `${m}__option-label-text` }, w.label, w.description && /* @__PURE__ */ e.createElement("div", { className: `${m}__option-description` }, w.description))
|
|
5008
5012
|
)
|
|
5009
5013
|
)))
|
|
5010
5014
|
);
|
|
@@ -5089,8 +5093,8 @@ const Gt = (o) => {
|
|
|
5089
5093
|
/* @__PURE__ */ e.createElement(
|
|
5090
5094
|
"path",
|
|
5091
5095
|
{
|
|
5092
|
-
d: "
|
|
5093
|
-
fill: "
|
|
5096
|
+
d: "M23.027 12.9858C23.027 12.9602 23.0016 12.9474 22.9762 12.9218C21.7311 11.5139 19.9652 9.51725 18.6948 8.09655C18.301 7.67418 17.9071 7.25181 17.5387 6.81664C17.4498 6.71425 17.3736 6.61185 17.2846 6.50946C17.2084 6.43267 17.1703 6.38147 17.1703 6.38147C16.7383 5.8695 16.3953 5.29354 16.1539 4.67919L16.0904 4.5384C16.0904 4.5384 16.0904 4.5384 16.065 4.5128C16.065 4.5128 16.0269 4.5 16.0142 4.5C15.9888 4.5 15.9761 4.5128 15.9634 4.5128C15.9634 4.52133 15.9549 4.52986 15.938 4.5384L15.8745 4.67919C15.6204 5.29354 15.2773 5.8695 14.8581 6.38147C14.8581 6.38147 14.82 6.43267 14.7438 6.50946C14.6548 6.61185 14.5786 6.71425 14.4897 6.81664C14.1086 7.25181 13.7274 7.67418 13.3336 8.09655C12.0632 9.51725 10.2846 11.5139 9.03954 12.9218C9.02683 12.9474 9.01413 12.9602 8.98872 12.9858C4.28813 19.2958 9.39526 24.441 9.39526 24.441H9.38256C10.8944 26.2073 13.0414 27.2952 15.3409 27.4616C15.5441 27.4872 15.7601 27.5 15.9888 27.5C16.2048 27.5 16.4207 27.4872 16.6367 27.4616C18.9489 27.2952 21.0832 26.2073 22.595 24.441C22.595 24.441 27.7149 19.2958 23.0143 12.9858H23.027ZM12.0886 17.4271L11.9742 17.6063C11.1103 18.6686 10.6022 19.7949 10.437 20.9085C10.4116 21.0492 10.2846 21.1388 10.1575 21.1132C10.0686 21.1004 10.0051 21.0365 9.96695 20.9597C9.73828 20.4221 9.58582 19.8589 9.5096 19.283C9.2174 17.2479 9.82721 15.4688 11.123 13.9457C11.6439 13.3442 12.1648 12.7426 12.6857 12.1411C12.7746 12.0387 12.9271 12.0259 13.0287 12.1155L13.0541 12.1411C13.4733 12.6274 14.0196 13.2546 14.6294 13.9713C14.7057 14.0609 14.7057 14.2017 14.6294 14.3041C13.7909 15.3152 12.9016 16.3904 12.1013 17.4143L12.0886 17.4271ZM19.3046 22.7003C18.8218 23.9802 17.869 24.7482 16.5224 24.9658C14.604 25.2602 12.8127 23.9418 12.5205 22.0092C12.5205 21.9836 12.5205 21.9708 12.5205 21.9452C12.3681 20.8573 12.6984 19.8973 13.3971 19.0782C14.2102 18.1183 16.0015 15.8912 16.0269 15.8528C16.065 15.8912 17.9707 18.2846 18.6821 19.1294C19.5841 20.1917 19.8001 21.4076 19.3173 22.7003H19.3046ZM22.1377 20.6909C22.1377 20.7293 22.0996 20.7805 22.0869 20.8189C22.036 20.9469 21.8963 21.0109 21.7692 20.9597C21.693 20.9213 21.6295 20.8573 21.6168 20.7677C21.4389 19.6925 20.9308 18.6174 20.105 17.6063L20.0288 17.4783L19.9779 17.4143C19.3173 16.5696 15.8236 12.4482 14.2991 10.6436C14.2229 10.554 14.2229 10.4132 14.2991 10.3108C14.8073 9.74764 15.3155 9.18447 15.8109 8.60851C15.8999 8.50612 16.0523 8.50612 16.1539 8.60851C16.3826 8.8645 16.5986 9.10768 16.8146 9.36366C18.1993 10.9252 19.5968 12.461 20.9435 14.0353C22.6458 16.0192 23.0397 18.2974 22.1377 20.7037V20.6909Z",
|
|
5097
|
+
fill: "white"
|
|
5094
5098
|
}
|
|
5095
5099
|
)
|
|
5096
5100
|
),
|
|
@@ -5350,12 +5354,12 @@ const Gt = (o) => {
|
|
|
5350
5354
|
}
|
|
5351
5355
|
),
|
|
5352
5356
|
c && /* @__PURE__ */ e.createElement("div", { className: `${m}__summary` }, c)
|
|
5353
|
-
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${m}__links` }, l.map((E,
|
|
5357
|
+
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${m}__links` }, l.map((E, C) => {
|
|
5354
5358
|
const u = E.type;
|
|
5355
5359
|
return /* @__PURE__ */ e.createElement(
|
|
5356
5360
|
u,
|
|
5357
5361
|
y({
|
|
5358
|
-
key:
|
|
5362
|
+
key: C,
|
|
5359
5363
|
className: `${m}__link`
|
|
5360
5364
|
}, E.props),
|
|
5361
5365
|
E.props.children,
|
|
@@ -5400,7 +5404,7 @@ const Gt = (o) => {
|
|
|
5400
5404
|
statusType: g,
|
|
5401
5405
|
hasStatusIndicator: !0
|
|
5402
5406
|
}
|
|
5403
|
-
),
|
|
5407
|
+
), C = /* @__PURE__ */ e.createElement(s1, null, /* @__PURE__ */ e.createElement("img", { slot: "image", src: n, alt: "" }), /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${m}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${m}__header` }, /* @__PURE__ */ e.createElement(
|
|
5404
5408
|
B1,
|
|
5405
5409
|
{
|
|
5406
5410
|
fontSize: "L",
|
|
@@ -5410,7 +5414,7 @@ const Gt = (o) => {
|
|
|
5410
5414
|
}
|
|
5411
5415
|
), E), /* @__PURE__ */ e.createElement("div", { className: `${m}__plan` }, o))), u = qe(a) ? We(a, be(y({}, a.props), {
|
|
5412
5416
|
className: `${m}__link`,
|
|
5413
|
-
children:
|
|
5417
|
+
children: C,
|
|
5414
5418
|
"aria-label": `${t} ${c} dashboard`
|
|
5415
5419
|
})) : null;
|
|
5416
5420
|
return /* @__PURE__ */ e.createElement("div", y({ className: R([m, r != null ? r : ""]) }, d), u);
|
|
@@ -5466,7 +5470,7 @@ const Gt = (o) => {
|
|
|
5466
5470
|
y({
|
|
5467
5471
|
className: R([m, f, r])
|
|
5468
5472
|
}, d),
|
|
5469
|
-
/* @__PURE__ */ e.createElement("div", { className: g }, a && /* @__PURE__ */ e.createElement(
|
|
5473
|
+
/* @__PURE__ */ e.createElement("div", { className: g }, a && /* @__PURE__ */ e.createElement(Lt, { baseClass: m, className: "pds-ts-4xl", level: n }, a), c && /* @__PURE__ */ e.createElement(
|
|
5470
5474
|
"div",
|
|
5471
5475
|
{
|
|
5472
5476
|
className: `${m}__lead-text pds-lead-text pds-lead-text--sm`
|
|
@@ -5550,10 +5554,10 @@ const Gt = (o) => {
|
|
|
5550
5554
|
"legalLinks",
|
|
5551
5555
|
"className"
|
|
5552
5556
|
]);
|
|
5553
|
-
const r = "pds-site-footer", d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), h = n.includes("privacy"), m = n.includes("dataSubjectRequest"), f = n.includes("cookiePolicy"), g = n.includes("termsOfUse"), E = n.includes("acceptableUse"),
|
|
5554
|
-
return /* @__PURE__ */ e.createElement("footer", y({ className: R([r, a != null ? a : ""]) }, c), /* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${r}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${r}__copyright` }, "© ", i, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), m && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), 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"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"),
|
|
5557
|
+
const r = "pds-site-footer", d = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", i = (/* @__PURE__ */ new Date()).getFullYear(), h = n.includes("privacy"), m = n.includes("dataSubjectRequest"), f = n.includes("cookiePolicy"), g = n.includes("termsOfUse"), E = n.includes("acceptableUse"), C = n.includes("accessibilityStatement");
|
|
5558
|
+
return /* @__PURE__ */ e.createElement("footer", y({ className: R([r, a != null ? a : ""]) }, c), /* @__PURE__ */ e.createElement("div", { className: d }, s && /* @__PURE__ */ e.createElement("div", { className: `${r}__content` }, s), /* @__PURE__ */ e.createElement("div", { className: `${r}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${r}__copyright` }, "© ", i, " Pantheon Systems, Inc."), h && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), m && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), 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"), E && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), C && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
5555
5559
|
}, es = je(
|
|
5556
|
-
(x,
|
|
5560
|
+
(x, w) => {
|
|
5557
5561
|
var H = x, {
|
|
5558
5562
|
checked: t,
|
|
5559
5563
|
defaultChecked: s,
|
|
@@ -5570,9 +5574,9 @@ const Gt = (o) => {
|
|
|
5570
5574
|
onChange: f,
|
|
5571
5575
|
onFocus: g,
|
|
5572
5576
|
required: E,
|
|
5573
|
-
showLabel:
|
|
5577
|
+
showLabel: C = !0,
|
|
5574
5578
|
validationMessage: u,
|
|
5575
|
-
validationStatus:
|
|
5579
|
+
validationStatus: $,
|
|
5576
5580
|
value: v,
|
|
5577
5581
|
className: b
|
|
5578
5582
|
} = H, _ = I(H, [
|
|
@@ -5597,7 +5601,7 @@ const Gt = (o) => {
|
|
|
5597
5601
|
"value",
|
|
5598
5602
|
"className"
|
|
5599
5603
|
]);
|
|
5600
|
-
const k = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox",
|
|
5604
|
+
const k = l ? { width: `${l / 16}rem` } : null, N = "pds-checkbox", M = n ? J.disabled : null, z = E && !n ? J.required : null, V = $ === "error" ? J.error : null, S = $ === "success" ? J.success : null, L = h > 0 ? `${N}--indent-${h}` : null, O = u || d, D = typeof t != "undefined", W = typeof s != "undefined", [Z, U] = F(
|
|
5601
5605
|
W ? s : !1
|
|
5602
5606
|
), G = t || Z, K = (Y) => {
|
|
5603
5607
|
D || U(Y.target.checked), f && f(Y);
|
|
@@ -5626,11 +5630,11 @@ const Gt = (o) => {
|
|
|
5626
5630
|
y({
|
|
5627
5631
|
className: [
|
|
5628
5632
|
N,
|
|
5629
|
-
|
|
5633
|
+
M,
|
|
5630
5634
|
z,
|
|
5631
5635
|
V,
|
|
5632
5636
|
S,
|
|
5633
|
-
|
|
5637
|
+
L,
|
|
5634
5638
|
b != null ? b : ""
|
|
5635
5639
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5636
5640
|
style: l ? k : null
|
|
@@ -5638,7 +5642,7 @@ const Gt = (o) => {
|
|
|
5638
5642
|
/* @__PURE__ */ e.createElement("div", { className: `${N}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
5639
5643
|
"input",
|
|
5640
5644
|
y(be(y({
|
|
5641
|
-
ref:
|
|
5645
|
+
ref: w,
|
|
5642
5646
|
id: a,
|
|
5643
5647
|
name: i,
|
|
5644
5648
|
type: "checkbox",
|
|
@@ -5650,7 +5654,7 @@ const Gt = (o) => {
|
|
|
5650
5654
|
onBlur: m,
|
|
5651
5655
|
onChange: K,
|
|
5652
5656
|
onFocus: g,
|
|
5653
|
-
"aria-invalid":
|
|
5657
|
+
"aria-invalid": $ === "error" ? !0 : null,
|
|
5654
5658
|
"aria-describedby": O ? `${a}__message` : null
|
|
5655
5659
|
}), o)
|
|
5656
5660
|
), /* @__PURE__ */ e.createElement("label", { htmlFor: a, className: `${N}__label` }, /* @__PURE__ */ e.createElement(
|
|
@@ -5668,7 +5672,7 @@ const Gt = (o) => {
|
|
|
5668
5672
|
{
|
|
5669
5673
|
className: R([
|
|
5670
5674
|
`${N}__label-text`,
|
|
5671
|
-
|
|
5675
|
+
C ? "" : "visually-hidden"
|
|
5672
5676
|
])
|
|
5673
5677
|
},
|
|
5674
5678
|
r,
|
|
@@ -5682,7 +5686,7 @@ const Gt = (o) => {
|
|
|
5682
5686
|
message: O,
|
|
5683
5687
|
hasValidationMessage: !!u,
|
|
5684
5688
|
validationMessageHasDecorators: !0,
|
|
5685
|
-
validationStatus:
|
|
5689
|
+
validationStatus: $
|
|
5686
5690
|
}
|
|
5687
5691
|
)
|
|
5688
5692
|
);
|
|
@@ -5715,19 +5719,19 @@ const Gt = (o) => {
|
|
|
5715
5719
|
"validationStatus",
|
|
5716
5720
|
"className"
|
|
5717
5721
|
]);
|
|
5718
|
-
const
|
|
5722
|
+
const C = c ? { width: `${c / 16}rem` } : null, u = "pds-checkbox-group", $ = s ? J.disabled : null, v = r && !s ? J.required : null, b = h === "error" ? J.error : null, _ = h === "success" ? J.success : null, w = i || l;
|
|
5719
5723
|
return /* @__PURE__ */ e.createElement(
|
|
5720
5724
|
"div",
|
|
5721
5725
|
y({
|
|
5722
5726
|
className: [
|
|
5723
5727
|
u,
|
|
5724
|
-
|
|
5728
|
+
$,
|
|
5725
5729
|
v,
|
|
5726
5730
|
b,
|
|
5727
5731
|
_,
|
|
5728
5732
|
m != null ? m : ""
|
|
5729
5733
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5730
|
-
style: c ?
|
|
5734
|
+
style: c ? C : null
|
|
5731
5735
|
}, f),
|
|
5732
5736
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${u}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
5733
5737
|
Ze,
|
|
@@ -5740,19 +5744,19 @@ const Gt = (o) => {
|
|
|
5740
5744
|
showLabel: d
|
|
5741
5745
|
}
|
|
5742
5746
|
), /* @__PURE__ */ e.createElement("div", { className: `${u}__options` }, t)),
|
|
5743
|
-
|
|
5747
|
+
w && /* @__PURE__ */ e.createElement(
|
|
5744
5748
|
Re,
|
|
5745
5749
|
{
|
|
5746
5750
|
id: a,
|
|
5747
|
-
message:
|
|
5751
|
+
message: w,
|
|
5748
5752
|
hasValidationMessage: !!i,
|
|
5749
5753
|
validationMessageHasDecorators: !0,
|
|
5750
5754
|
validationStatus: h
|
|
5751
5755
|
}
|
|
5752
5756
|
)
|
|
5753
5757
|
);
|
|
5754
|
-
}, Zs = (
|
|
5755
|
-
var u =
|
|
5758
|
+
}, Zs = (C) => {
|
|
5759
|
+
var u = C, {
|
|
5756
5760
|
disabled: t = !1,
|
|
5757
5761
|
fieldsetProps: s,
|
|
5758
5762
|
id: n,
|
|
@@ -5783,7 +5787,7 @@ const Gt = (o) => {
|
|
|
5783
5787
|
"validationStatus",
|
|
5784
5788
|
"className"
|
|
5785
5789
|
]);
|
|
5786
|
-
const
|
|
5790
|
+
const $ = a ? { width: `${a / 16}rem` } : null, v = "pds-checkbox-group", b = t ? J.disabled : null, _ = i && !t ? J.required : null, w = f === "error" ? J.error : null, x = f === "success" ? J.success : null, H = m || o;
|
|
5787
5791
|
d.map((S) => {
|
|
5788
5792
|
S.id || (S.id = S.value);
|
|
5789
5793
|
});
|
|
@@ -5791,9 +5795,9 @@ const Gt = (o) => {
|
|
|
5791
5795
|
d.map((S) => {
|
|
5792
5796
|
S.checked === !0 && k.push(S.value);
|
|
5793
5797
|
});
|
|
5794
|
-
const [N,
|
|
5795
|
-
const { value:
|
|
5796
|
-
|
|
5798
|
+
const [N, M] = F(k), z = (S) => {
|
|
5799
|
+
const { value: L } = S.target, O = N.includes(L) ? N.filter((D) => D !== L) : [...N, L];
|
|
5800
|
+
M(O), r && r(O);
|
|
5797
5801
|
};
|
|
5798
5802
|
d.map((S) => {
|
|
5799
5803
|
N.includes(S.value) ? S.checked = !0 : S.checked = !1;
|
|
@@ -5810,11 +5814,11 @@ const Gt = (o) => {
|
|
|
5810
5814
|
v,
|
|
5811
5815
|
b,
|
|
5812
5816
|
_,
|
|
5813
|
-
|
|
5817
|
+
w,
|
|
5814
5818
|
x,
|
|
5815
5819
|
g != null ? g : ""
|
|
5816
5820
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5817
|
-
style: a ?
|
|
5821
|
+
style: a ? $ : null
|
|
5818
5822
|
}, E),
|
|
5819
5823
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${v}__fieldset`, id: n }, s), /* @__PURE__ */ e.createElement(
|
|
5820
5824
|
Ze,
|
|
@@ -5854,7 +5858,7 @@ const Gt = (o) => {
|
|
|
5854
5858
|
);
|
|
5855
5859
|
}, ts = je(
|
|
5856
5860
|
(S, V) => {
|
|
5857
|
-
var
|
|
5861
|
+
var L = S, {
|
|
5858
5862
|
defaultValue: t,
|
|
5859
5863
|
disabled: s = !1,
|
|
5860
5864
|
hasClearButton: n = !0,
|
|
@@ -5875,19 +5879,19 @@ const Gt = (o) => {
|
|
|
5875
5879
|
message: f,
|
|
5876
5880
|
noResultsText: g = "No results found",
|
|
5877
5881
|
onChange: E,
|
|
5878
|
-
onBlur:
|
|
5882
|
+
onBlur: C,
|
|
5879
5883
|
onClear: u,
|
|
5880
|
-
onFocus:
|
|
5884
|
+
onFocus: $,
|
|
5881
5885
|
onOptionSelect: v,
|
|
5882
5886
|
options: b,
|
|
5883
5887
|
placeholder: _,
|
|
5884
|
-
required:
|
|
5888
|
+
required: w = !1,
|
|
5885
5889
|
showLabel: x = !0,
|
|
5886
5890
|
value: H,
|
|
5887
5891
|
validationMessage: k,
|
|
5888
5892
|
validationStatus: N,
|
|
5889
|
-
className:
|
|
5890
|
-
} =
|
|
5893
|
+
className: M
|
|
5894
|
+
} = L, z = I(L, [
|
|
5891
5895
|
"defaultValue",
|
|
5892
5896
|
"disabled",
|
|
5893
5897
|
"hasClearButton",
|
|
@@ -5916,7 +5920,7 @@ const Gt = (o) => {
|
|
|
5916
5920
|
"validationStatus",
|
|
5917
5921
|
"className"
|
|
5918
5922
|
]);
|
|
5919
|
-
const O = et(r), D = "pds-combobox", W = s ? J.disabled : null, Z =
|
|
5923
|
+
const O = et(r), D = "pds-combobox", W = s ? J.disabled : null, Z = w && !s ? J.required : null, U = N === "error" ? J.error : null, G = N === "success" ? J.success : null;
|
|
5920
5924
|
let K = null;
|
|
5921
5925
|
c && (K = "search"), N === "error" && (K = "error"), N === "success" && (K = "success");
|
|
5922
5926
|
const T = k || f, A = typeof H != "undefined", j = typeof t != "undefined", q = (ge) => {
|
|
@@ -5935,7 +5939,7 @@ const Gt = (o) => {
|
|
|
5935
5939
|
virtual: !0,
|
|
5936
5940
|
loop: !0,
|
|
5937
5941
|
allowEscape: !0
|
|
5938
|
-
}), { getReferenceProps: xe, getFloatingProps: He, getItemProps:
|
|
5942
|
+
}), { getReferenceProps: xe, getFloatingProps: He, getItemProps: Me } = Oe([ke, se, ce]), { isMounted: Ee, styles: _e } = Ke(te, {
|
|
5939
5943
|
duration: {
|
|
5940
5944
|
open: 300,
|
|
5941
5945
|
close: 150
|
|
@@ -5949,7 +5953,7 @@ const Gt = (o) => {
|
|
|
5949
5953
|
close: {
|
|
5950
5954
|
opacity: 0
|
|
5951
5955
|
}
|
|
5952
|
-
}),
|
|
5956
|
+
}), Le = () => {
|
|
5953
5957
|
X(!Y);
|
|
5954
5958
|
}, Pe = () => {
|
|
5955
5959
|
var ge;
|
|
@@ -5958,9 +5962,9 @@ const Gt = (o) => {
|
|
|
5958
5962
|
let ve = ge.target.value;
|
|
5959
5963
|
E && E(ge), A || (ve.length > 0 && (ve = ve.trimStart()), ie(ve)), ve ? (ee(null), X(!0)) : X(!1);
|
|
5960
5964
|
}, xt = (ge) => {
|
|
5961
|
-
w && w(ge);
|
|
5962
|
-
}, Vt = (ge) => {
|
|
5963
5965
|
C && C(ge);
|
|
5966
|
+
}, Vt = (ge) => {
|
|
5967
|
+
$ && $(ge);
|
|
5964
5968
|
}, dt = (ge) => {
|
|
5965
5969
|
const ve = le[ge];
|
|
5966
5970
|
!A && ie(ve.label), ee(null), X(!1), v && v(ve);
|
|
@@ -5991,7 +5995,7 @@ const Gt = (o) => {
|
|
|
5991
5995
|
S1,
|
|
5992
5996
|
be(y({
|
|
5993
5997
|
key: ge
|
|
5994
|
-
},
|
|
5998
|
+
}, Me({
|
|
5995
5999
|
key: ne,
|
|
5996
6000
|
ref(de) {
|
|
5997
6001
|
he.current[ve] = de;
|
|
@@ -6017,7 +6021,7 @@ const Gt = (o) => {
|
|
|
6017
6021
|
Z,
|
|
6018
6022
|
U,
|
|
6019
6023
|
G,
|
|
6020
|
-
|
|
6024
|
+
M != null ? M : ""
|
|
6021
6025
|
]),
|
|
6022
6026
|
style: r ? O : null
|
|
6023
6027
|
}, z),
|
|
@@ -6027,7 +6031,7 @@ const Gt = (o) => {
|
|
|
6027
6031
|
id: l,
|
|
6028
6032
|
label: i,
|
|
6029
6033
|
showLabel: x,
|
|
6030
|
-
required:
|
|
6034
|
+
required: w,
|
|
6031
6035
|
disabled: s
|
|
6032
6036
|
}
|
|
6033
6037
|
),
|
|
@@ -6038,7 +6042,7 @@ const Gt = (o) => {
|
|
|
6038
6042
|
ref: V,
|
|
6039
6043
|
id: l,
|
|
6040
6044
|
"aria-disabled": s ? !0 : null,
|
|
6041
|
-
"aria-required":
|
|
6045
|
+
"aria-required": w ? !0 : null,
|
|
6042
6046
|
"aria-invalid": N === "error" ? !0 : null,
|
|
6043
6047
|
"aria-describedby": T ? `${l}__message` : null
|
|
6044
6048
|
},
|
|
@@ -6084,7 +6088,7 @@ const Gt = (o) => {
|
|
|
6084
6088
|
be(y({
|
|
6085
6089
|
ref: fe.setReference
|
|
6086
6090
|
}, xe({
|
|
6087
|
-
onClick:
|
|
6091
|
+
onClick: Le,
|
|
6088
6092
|
disabled: s,
|
|
6089
6093
|
"aria-expanded": Y,
|
|
6090
6094
|
"aria-label": h.triggerButton
|
|
@@ -6125,7 +6129,7 @@ const Gt = (o) => {
|
|
|
6125
6129
|
);
|
|
6126
6130
|
}
|
|
6127
6131
|
), Us = (u) => {
|
|
6128
|
-
var
|
|
6132
|
+
var $ = u, {
|
|
6129
6133
|
accept: t,
|
|
6130
6134
|
disabled: s = !1,
|
|
6131
6135
|
fieldLabel: n,
|
|
@@ -6144,7 +6148,7 @@ const Gt = (o) => {
|
|
|
6144
6148
|
validationMessage: f,
|
|
6145
6149
|
validationStatus: g,
|
|
6146
6150
|
className: E
|
|
6147
|
-
} = C
|
|
6151
|
+
} = $, C = I($, [
|
|
6148
6152
|
"accept",
|
|
6149
6153
|
"disabled",
|
|
6150
6154
|
"fieldLabel",
|
|
@@ -6161,23 +6165,23 @@ const Gt = (o) => {
|
|
|
6161
6165
|
"validationStatus",
|
|
6162
6166
|
"className"
|
|
6163
6167
|
]);
|
|
6164
|
-
const [v, b] = F(!1), _ = et(c),
|
|
6165
|
-
let
|
|
6166
|
-
g === "error" && (
|
|
6167
|
-
const z = f || l, V = (
|
|
6168
|
-
i && i(
|
|
6168
|
+
const [v, b] = F(!1), _ = et(c), w = "pds-file-upload", x = s ? J.disabled : null, H = h && !s ? J.required : null, k = g === "error" ? J.error : null, N = g === "success" ? J.success : null;
|
|
6169
|
+
let M = null;
|
|
6170
|
+
g === "error" && (M = "error"), g === "success" && (M = "success");
|
|
6171
|
+
const z = f || l, V = (L) => {
|
|
6172
|
+
i && i(L.target.files), L.target.files.length > 0 ? b(!0) : b(!1);
|
|
6169
6173
|
}, S = () => {
|
|
6170
|
-
const
|
|
6174
|
+
const L = document.getElementById(
|
|
6171
6175
|
`${a}--input`
|
|
6172
6176
|
);
|
|
6173
|
-
|
|
6177
|
+
L.value = "", b(!1), d && d(), L.focus();
|
|
6174
6178
|
};
|
|
6175
6179
|
return /* @__PURE__ */ e.createElement(
|
|
6176
6180
|
"div",
|
|
6177
6181
|
y({
|
|
6178
6182
|
className: R([
|
|
6179
6183
|
J.base,
|
|
6180
|
-
|
|
6184
|
+
w,
|
|
6181
6185
|
x,
|
|
6182
6186
|
H,
|
|
6183
6187
|
k,
|
|
@@ -6185,7 +6189,7 @@ const Gt = (o) => {
|
|
|
6185
6189
|
E != null ? E : ""
|
|
6186
6190
|
]),
|
|
6187
6191
|
style: c ? _ : null
|
|
6188
|
-
},
|
|
6192
|
+
}, C),
|
|
6189
6193
|
/* @__PURE__ */ e.createElement(
|
|
6190
6194
|
Ze,
|
|
6191
6195
|
{
|
|
@@ -6197,18 +6201,18 @@ const Gt = (o) => {
|
|
|
6197
6201
|
disabled: s
|
|
6198
6202
|
}
|
|
6199
6203
|
),
|
|
6200
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
6204
|
+
/* @__PURE__ */ e.createElement("span", { className: `${w}__input-wrapper`, id: a }, M && /* @__PURE__ */ e.createElement(pt, { variant: M }), /* @__PURE__ */ e.createElement(
|
|
6201
6205
|
"label",
|
|
6202
6206
|
{
|
|
6203
6207
|
htmlFor: `${a}--input`,
|
|
6204
|
-
className: v ? "visually-hidden" : `${
|
|
6208
|
+
className: v ? "visually-hidden" : `${w}__input-label`
|
|
6205
6209
|
},
|
|
6206
6210
|
/* @__PURE__ */ e.createElement(P, { iconName: "paperclip", iconSize: "sm" }),
|
|
6207
6211
|
o.chooseFile
|
|
6208
6212
|
), /* @__PURE__ */ e.createElement(
|
|
6209
6213
|
"input",
|
|
6210
6214
|
{
|
|
6211
|
-
className: R([`${
|
|
6215
|
+
className: R([`${w}__input`]),
|
|
6212
6216
|
type: "file",
|
|
6213
6217
|
id: `${a}--input`,
|
|
6214
6218
|
accept: t || null,
|
|
@@ -6246,8 +6250,8 @@ const Gt = (o) => {
|
|
|
6246
6250
|
"children",
|
|
6247
6251
|
"className"
|
|
6248
6252
|
]);
|
|
6249
|
-
var g, E,
|
|
6250
|
-
const o = "pds-input-group", l = [t[0], t[1]], r = (g = t[0].props.id) != null ? g : null, d = (E = t[0].props.message) != null ? E : null, i = (
|
|
6253
|
+
var g, E, C, u;
|
|
6254
|
+
const o = "pds-input-group", l = [t[0], t[1]], r = (g = t[0].props.id) != null ? g : null, d = (E = t[0].props.message) != null ? E : null, i = (C = t[0].props.validationMessage) != null ? C : null, h = (u = t[0].props.validationStatus) != null ? u : null, m = i || d, f = m ? `${o}--has-message` : null;
|
|
6251
6255
|
return /* @__PURE__ */ e.createElement(
|
|
6252
6256
|
"div",
|
|
6253
6257
|
y({
|
|
@@ -6266,7 +6270,7 @@ const Gt = (o) => {
|
|
|
6266
6270
|
)
|
|
6267
6271
|
);
|
|
6268
6272
|
}, Ks = (u) => {
|
|
6269
|
-
var
|
|
6273
|
+
var $ = u, {
|
|
6270
6274
|
defaultValue: t,
|
|
6271
6275
|
disabled: s = !1,
|
|
6272
6276
|
fieldsetProps: n,
|
|
@@ -6282,7 +6286,7 @@ const Gt = (o) => {
|
|
|
6282
6286
|
validationMessage: f,
|
|
6283
6287
|
validationStatus: g,
|
|
6284
6288
|
className: E
|
|
6285
|
-
} = C
|
|
6289
|
+
} = $, C = I($, [
|
|
6286
6290
|
"defaultValue",
|
|
6287
6291
|
"disabled",
|
|
6288
6292
|
"fieldsetProps",
|
|
@@ -6299,7 +6303,7 @@ const Gt = (o) => {
|
|
|
6299
6303
|
"validationStatus",
|
|
6300
6304
|
"className"
|
|
6301
6305
|
]);
|
|
6302
|
-
const v = "pds-radio-group", b = s ? J.disabled : null, _ = h && !s ? J.required : null,
|
|
6306
|
+
const v = "pds-radio-group", b = s ? J.disabled : null, _ = h && !s ? J.required : null, w = g === "error" ? J.error : null, x = g === "success" ? J.success : null, [H, k] = F(t), N = f || l, M = (V) => {
|
|
6303
6307
|
k(V.target.value), d && d(V.target.value);
|
|
6304
6308
|
}, z = (V) => {
|
|
6305
6309
|
r && r(V);
|
|
@@ -6311,12 +6315,12 @@ const Gt = (o) => {
|
|
|
6311
6315
|
v,
|
|
6312
6316
|
b,
|
|
6313
6317
|
_,
|
|
6314
|
-
|
|
6318
|
+
w,
|
|
6315
6319
|
x,
|
|
6316
6320
|
E != null ? E : ""
|
|
6317
6321
|
]),
|
|
6318
6322
|
style: et(c)
|
|
6319
|
-
},
|
|
6323
|
+
}, C),
|
|
6320
6324
|
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${v}__fieldset`, id: a }, n), /* @__PURE__ */ e.createElement(
|
|
6321
6325
|
Ze,
|
|
6322
6326
|
{
|
|
@@ -6343,7 +6347,7 @@ const Gt = (o) => {
|
|
|
6343
6347
|
required: h,
|
|
6344
6348
|
disabled: s || V.disabled,
|
|
6345
6349
|
onBlur: z,
|
|
6346
|
-
onChange:
|
|
6350
|
+
onChange: M,
|
|
6347
6351
|
defaultChecked: H === V.value
|
|
6348
6352
|
}
|
|
6349
6353
|
),
|
|
@@ -6385,7 +6389,7 @@ const Gt = (o) => {
|
|
|
6385
6389
|
},
|
|
6386
6390
|
/* @__PURE__ */ e.createElement(P, { iconName: "xmark", iconSize: "sm" })
|
|
6387
6391
|
)), Xs = je(
|
|
6388
|
-
(v,
|
|
6392
|
+
(v, $) => {
|
|
6389
6393
|
var b = v, {
|
|
6390
6394
|
checked: t,
|
|
6391
6395
|
defaultChecked: s,
|
|
@@ -6402,7 +6406,7 @@ const Gt = (o) => {
|
|
|
6402
6406
|
required: f = !1,
|
|
6403
6407
|
showLabel: g = !0,
|
|
6404
6408
|
showStatusLabel: E = !0,
|
|
6405
|
-
className:
|
|
6409
|
+
className: C
|
|
6406
6410
|
} = b, u = I(b, [
|
|
6407
6411
|
"checked",
|
|
6408
6412
|
"defaultChecked",
|
|
@@ -6421,12 +6425,12 @@ const Gt = (o) => {
|
|
|
6421
6425
|
"showStatusLabel",
|
|
6422
6426
|
"className"
|
|
6423
6427
|
]);
|
|
6424
|
-
const _ = et(o),
|
|
6428
|
+
const _ = et(o), w = "pds-switch", x = n ? J.disabled : null, H = f && !n ? J.required : null, k = typeof t != "undefined", N = r == "below", M = r == "right", z = !k && s ? s : !1, [V, S] = F(z), L = t || V ? m : i, O = (K) => {
|
|
6425
6429
|
k || S(K.target.checked), h && h(K);
|
|
6426
6430
|
}, D = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
6427
6431
|
"input",
|
|
6428
6432
|
y({
|
|
6429
|
-
ref:
|
|
6433
|
+
ref: $,
|
|
6430
6434
|
id: a,
|
|
6431
6435
|
name: a,
|
|
6432
6436
|
type: "checkbox",
|
|
@@ -6438,7 +6442,7 @@ const Gt = (o) => {
|
|
|
6438
6442
|
checked: t !== void 0 ? t : V,
|
|
6439
6443
|
"aria-describedby": d ? `${a}__message` : null
|
|
6440
6444
|
}, c)
|
|
6441
|
-
), !E && /* @__PURE__ */ e.createElement(ns, { toggleStatusLabel:
|
|
6445
|
+
), !E && /* @__PURE__ */ e.createElement(ns, { toggleStatusLabel: L }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), E && /* @__PURE__ */ e.createElement(ss, { toggleStatusLabel: L, id: a })), W = /* @__PURE__ */ e.createElement(
|
|
6442
6446
|
Ze,
|
|
6443
6447
|
{
|
|
6444
6448
|
id: a,
|
|
@@ -6462,7 +6466,7 @@ const Gt = (o) => {
|
|
|
6462
6466
|
}
|
|
6463
6467
|
);
|
|
6464
6468
|
let U, G;
|
|
6465
|
-
return N ? U = /* @__PURE__ */ e.createElement(e.Fragment, null, W, Z, D) :
|
|
6469
|
+
return N ? U = /* @__PURE__ */ e.createElement(e.Fragment, null, W, Z, D) : M && (G = "pds-switch--placement-right", U = d ? /* @__PURE__ */ e.createElement(e.Fragment, null, W, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, Z, /* @__PURE__ */ e.createElement("div", null, D))) : /* @__PURE__ */ e.createElement(
|
|
6466
6470
|
"div",
|
|
6467
6471
|
{
|
|
6468
6472
|
className: R([
|
|
@@ -6477,11 +6481,11 @@ const Gt = (o) => {
|
|
|
6477
6481
|
y({
|
|
6478
6482
|
className: R([
|
|
6479
6483
|
J.base,
|
|
6480
|
-
|
|
6484
|
+
w,
|
|
6481
6485
|
x,
|
|
6482
6486
|
H,
|
|
6483
6487
|
G,
|
|
6484
|
-
|
|
6488
|
+
C
|
|
6485
6489
|
]),
|
|
6486
6490
|
style: o ? _ : null
|
|
6487
6491
|
}, u),
|
|
@@ -6506,9 +6510,9 @@ const Gt = (o) => {
|
|
|
6506
6510
|
readonly: f = !1,
|
|
6507
6511
|
required: g = !1,
|
|
6508
6512
|
rows: E = 5,
|
|
6509
|
-
showLabel:
|
|
6513
|
+
showLabel: C,
|
|
6510
6514
|
textareaProps: u,
|
|
6511
|
-
translationStrings:
|
|
6515
|
+
translationStrings: $ = {
|
|
6512
6516
|
clearButton: "Clear input text",
|
|
6513
6517
|
counterOverLimit: "Character limit exceeded by",
|
|
6514
6518
|
searchShortcut: "Press / to focus the search field",
|
|
@@ -6519,7 +6523,7 @@ const Gt = (o) => {
|
|
|
6519
6523
|
validationMessage: v,
|
|
6520
6524
|
validationStatus: b,
|
|
6521
6525
|
value: _,
|
|
6522
|
-
className:
|
|
6526
|
+
className: w
|
|
6523
6527
|
} = N, x = I(N, [
|
|
6524
6528
|
"counterMaxLength",
|
|
6525
6529
|
"defaultValue",
|
|
@@ -6544,7 +6548,7 @@ const Gt = (o) => {
|
|
|
6544
6548
|
"value",
|
|
6545
6549
|
"className"
|
|
6546
6550
|
]);
|
|
6547
|
-
const
|
|
6551
|
+
const M = et(c), z = "pds-textarea", V = o ? "pds-is-resizable" : null, S = n ? J.disabled : null, L = g && !n ? J.required : null, O = b === "error" ? J.error : null, D = b === "success" ? J.success : null, W = f ? J.readonly : null, Z = v || r, U = _ != null && i !== void 0, G = typeof s != "undefined", [K, T] = F(
|
|
6548
6552
|
G ? s : ""
|
|
6549
6553
|
), A = _ || K, j = (Y) => {
|
|
6550
6554
|
U || T(Y.target.value), i && i(Y);
|
|
@@ -6558,20 +6562,20 @@ const Gt = (o) => {
|
|
|
6558
6562
|
J.base,
|
|
6559
6563
|
z,
|
|
6560
6564
|
S,
|
|
6561
|
-
|
|
6565
|
+
L,
|
|
6562
6566
|
O,
|
|
6563
6567
|
D,
|
|
6564
6568
|
W,
|
|
6565
|
-
|
|
6569
|
+
w != null ? w : ""
|
|
6566
6570
|
]),
|
|
6567
|
-
style: c ?
|
|
6571
|
+
style: c ? M : null
|
|
6568
6572
|
}, x),
|
|
6569
6573
|
/* @__PURE__ */ e.createElement("div", { className: `${z}__inputlabel-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6570
6574
|
Ze,
|
|
6571
6575
|
{
|
|
6572
6576
|
id: a,
|
|
6573
6577
|
label: l,
|
|
6574
|
-
showLabel:
|
|
6578
|
+
showLabel: C,
|
|
6575
6579
|
required: g,
|
|
6576
6580
|
disabled: n,
|
|
6577
6581
|
className: `${z}__inputlabel`
|
|
@@ -6582,7 +6586,7 @@ const Gt = (o) => {
|
|
|
6582
6586
|
id: a,
|
|
6583
6587
|
currentLength: A.length,
|
|
6584
6588
|
maxLength: t,
|
|
6585
|
-
overLimitMessage:
|
|
6589
|
+
overLimitMessage: $.counterOverLimit
|
|
6586
6590
|
}
|
|
6587
6591
|
)),
|
|
6588
6592
|
/* @__PURE__ */ e.createElement("div", { className: `${z}__input-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -6635,9 +6639,9 @@ const Gt = (o) => {
|
|
|
6635
6639
|
onChange: f,
|
|
6636
6640
|
onClear: g,
|
|
6637
6641
|
onFocus: E,
|
|
6638
|
-
placeholder:
|
|
6642
|
+
placeholder: C,
|
|
6639
6643
|
readonly: u = !1,
|
|
6640
|
-
required:
|
|
6644
|
+
required: $ = !1,
|
|
6641
6645
|
showLabel: v = !0,
|
|
6642
6646
|
showVisibilityToggle: b = !1,
|
|
6643
6647
|
translationStrings: _ = {
|
|
@@ -6648,12 +6652,12 @@ const Gt = (o) => {
|
|
|
6648
6652
|
visibilityToggleHide: "Hide input value",
|
|
6649
6653
|
visibilityToggleShow: "Show input value"
|
|
6650
6654
|
},
|
|
6651
|
-
type:
|
|
6655
|
+
type: w = "text",
|
|
6652
6656
|
validationMessage: x,
|
|
6653
6657
|
validationStatus: H,
|
|
6654
6658
|
value: k,
|
|
6655
6659
|
className: N
|
|
6656
|
-
} = S,
|
|
6660
|
+
} = S, M = I(S, [
|
|
6657
6661
|
"autoComplete",
|
|
6658
6662
|
"counterMaxLength",
|
|
6659
6663
|
"defaultValue",
|
|
@@ -6681,9 +6685,9 @@ const Gt = (o) => {
|
|
|
6681
6685
|
"value",
|
|
6682
6686
|
"className"
|
|
6683
6687
|
]);
|
|
6684
|
-
const
|
|
6688
|
+
const L = et(d), O = "pds-text-input", D = a ? J.disabled : null, W = $ && !a ? J.required : null, Z = H === "error" ? J.error : null, U = H === "success" ? J.success : null, G = u ? J.readonly : null;
|
|
6685
6689
|
let K = null;
|
|
6686
|
-
|
|
6690
|
+
w === "search" && (K = "search"), H === "error" && (K = "error"), H === "success" && (K = "success");
|
|
6687
6691
|
const T = x || h, A = typeof k != "undefined", j = typeof n != "undefined", [q, Y] = F(
|
|
6688
6692
|
j ? n : ""
|
|
6689
6693
|
), X = k || q, re = (he) => {
|
|
@@ -6699,8 +6703,8 @@ const Gt = (o) => {
|
|
|
6699
6703
|
const he = document.getElementById(l);
|
|
6700
6704
|
he && he.focus();
|
|
6701
6705
|
};
|
|
6702
|
-
let ue =
|
|
6703
|
-
return b &&
|
|
6706
|
+
let ue = w;
|
|
6707
|
+
return b && w === "password" && (ie ? ue = "text" : ue = "password"), /* @__PURE__ */ e.createElement(
|
|
6704
6708
|
"div",
|
|
6705
6709
|
y({
|
|
6706
6710
|
className: R([
|
|
@@ -6713,19 +6717,19 @@ const Gt = (o) => {
|
|
|
6713
6717
|
G,
|
|
6714
6718
|
N != null ? N : ""
|
|
6715
6719
|
]),
|
|
6716
|
-
style: d ?
|
|
6717
|
-
},
|
|
6720
|
+
style: d ? L : null
|
|
6721
|
+
}, M),
|
|
6718
6722
|
/* @__PURE__ */ e.createElement(
|
|
6719
6723
|
Ze,
|
|
6720
6724
|
{
|
|
6721
6725
|
id: l,
|
|
6722
6726
|
label: i,
|
|
6723
6727
|
showLabel: v,
|
|
6724
|
-
required:
|
|
6728
|
+
required: $,
|
|
6725
6729
|
disabled: a
|
|
6726
6730
|
}
|
|
6727
6731
|
),
|
|
6728
|
-
b &&
|
|
6732
|
+
b && w === "password" && /* @__PURE__ */ e.createElement("div", { className: "visually-hidden", "aria-live": "polite" }, `${_.visibilityStatus} ${ie ? "visible" : "hidden"}.`),
|
|
6729
6733
|
/* @__PURE__ */ e.createElement("div", { className: `${O}__input-wrapper` }, K && /* @__PURE__ */ e.createElement(pt, { variant: K }), /* @__PURE__ */ e.createElement(
|
|
6730
6734
|
"input",
|
|
6731
6735
|
y({
|
|
@@ -6735,11 +6739,11 @@ const Gt = (o) => {
|
|
|
6735
6739
|
name: l,
|
|
6736
6740
|
type: ue,
|
|
6737
6741
|
value: A ? k : q,
|
|
6738
|
-
placeholder:
|
|
6742
|
+
placeholder: C,
|
|
6739
6743
|
readOnly: u,
|
|
6740
6744
|
disabled: a,
|
|
6741
|
-
required:
|
|
6742
|
-
autoComplete:
|
|
6745
|
+
required: $,
|
|
6746
|
+
autoComplete: w === "password" ? "off" : t,
|
|
6743
6747
|
onBlur: re,
|
|
6744
6748
|
onChange: ee,
|
|
6745
6749
|
onFocus: E,
|
|
@@ -6753,7 +6757,7 @@ const Gt = (o) => {
|
|
|
6753
6757
|
clearLabel: _.clearButton,
|
|
6754
6758
|
handleClearInput: pe
|
|
6755
6759
|
}
|
|
6756
|
-
), b &&
|
|
6760
|
+
), b && w === "password" && /* @__PURE__ */ e.createElement(
|
|
6757
6761
|
"button",
|
|
6758
6762
|
{
|
|
6759
6763
|
type: "button",
|
|
@@ -6764,13 +6768,13 @@ const Gt = (o) => {
|
|
|
6764
6768
|
onMouseDown: (he) => he.preventDefault()
|
|
6765
6769
|
},
|
|
6766
6770
|
/* @__PURE__ */ e.createElement(P, { iconName: ie ? "eyeSlash" : "eye", iconSize: "md" })
|
|
6767
|
-
), o &&
|
|
6771
|
+
), o && w === "search" && !X && /* @__PURE__ */ e.createElement(
|
|
6768
6772
|
V1,
|
|
6769
6773
|
{
|
|
6770
6774
|
inputId: l,
|
|
6771
6775
|
shortcutLabel: _.searchShortcut
|
|
6772
6776
|
}
|
|
6773
|
-
), s &&
|
|
6777
|
+
), s && w !== "password" && /* @__PURE__ */ e.createElement(
|
|
6774
6778
|
I1,
|
|
6775
6779
|
{
|
|
6776
6780
|
id: l,
|
|
@@ -6850,12 +6854,12 @@ const Gt = (o) => {
|
|
|
6850
6854
|
}, [a]), oe(() => {
|
|
6851
6855
|
c(g);
|
|
6852
6856
|
}, [g]);
|
|
6853
|
-
const { refs:
|
|
6857
|
+
const { refs: C, context: u, floatingStyles: $ } = Se({
|
|
6854
6858
|
open: g,
|
|
6855
6859
|
onOpenChange: E
|
|
6856
6860
|
}), v = Ge(u), b = Te(u, {
|
|
6857
6861
|
outsidePressEvent: "mousedown"
|
|
6858
|
-
}), _ = De(u), { getFloatingProps:
|
|
6862
|
+
}), _ = De(u), { getFloatingProps: w } = Oe([v, b, _]), { isMounted: x, styles: H } = Ke(u, {
|
|
6859
6863
|
duration: {
|
|
6860
6864
|
open: 300,
|
|
6861
6865
|
close: 300
|
|
@@ -6877,7 +6881,7 @@ const Gt = (o) => {
|
|
|
6877
6881
|
a2,
|
|
6878
6882
|
{
|
|
6879
6883
|
lockScroll: !0,
|
|
6880
|
-
style: be(y({},
|
|
6884
|
+
style: be(y({}, $), {
|
|
6881
6885
|
background: "var(--pds-color-overlay)",
|
|
6882
6886
|
transition: "var(--pds-animation-reveal-transition)",
|
|
6883
6887
|
zIndex: "var(--pds-z-index-modal)",
|
|
@@ -6887,11 +6891,11 @@ const Gt = (o) => {
|
|
|
6887
6891
|
/* @__PURE__ */ e.createElement(y1, { context: u }, /* @__PURE__ */ e.createElement(
|
|
6888
6892
|
"div",
|
|
6889
6893
|
y(be(y({
|
|
6890
|
-
ref:
|
|
6894
|
+
ref: C.setFloating,
|
|
6891
6895
|
"aria-label": t || l
|
|
6892
|
-
},
|
|
6896
|
+
}, w()), {
|
|
6893
6897
|
className: [m, f, r].join(" ").trim().replace(/\s+/g, " "),
|
|
6894
|
-
style: be(y(y({},
|
|
6898
|
+
style: be(y(y({}, $), H), {
|
|
6895
6899
|
position: "relative",
|
|
6896
6900
|
top: "5%"
|
|
6897
6901
|
})
|
|
@@ -6980,7 +6984,7 @@ const Gt = (o) => {
|
|
|
6980
6984
|
}, a),
|
|
6981
6985
|
s
|
|
6982
6986
|
);
|
|
6983
|
-
},
|
|
6987
|
+
}, Mt = Ct(null), en = (h) => {
|
|
6984
6988
|
var m = h, {
|
|
6985
6989
|
children: t,
|
|
6986
6990
|
hasSidebarToggle: s = !0,
|
|
@@ -7002,37 +7006,37 @@ const Gt = (o) => {
|
|
|
7002
7006
|
"skiplinkText",
|
|
7003
7007
|
"className"
|
|
7004
7008
|
]);
|
|
7005
|
-
const { breakpoint: f, isMobile: g } = $e(Ae), [E,
|
|
7009
|
+
const { breakpoint: f, isMobile: g } = $e(Ae), [E, C] = F(
|
|
7006
7010
|
f === "xl"
|
|
7007
|
-
), u = ae(), [
|
|
7011
|
+
), u = ae(), [$] = Nt(u), v = $.width, b = {
|
|
7008
7012
|
isSidebarExpanded: g ? !0 : E,
|
|
7009
7013
|
logoLinkContent: a,
|
|
7010
7014
|
navbarWidth: v,
|
|
7011
7015
|
isAdmin: n
|
|
7012
|
-
}, _ = "pds-dashboard",
|
|
7016
|
+
}, _ = "pds-dashboard", w = g ? `${_}--isMobile` : `${_}--notMobile`, x = g ? null : E ? `${_}--sidebarExpanded` : `${_}--sidebarCollapsed`, H = E ? `${o}rem` : `${c}rem`, k = {
|
|
7013
7017
|
width: H,
|
|
7014
7018
|
transition: "width 200ms ease-in-out"
|
|
7015
7019
|
}, N = g ? {} : {
|
|
7016
7020
|
width: `calc(100% - ${H})`,
|
|
7017
7021
|
transition: "width 200ms ease-in-out"
|
|
7018
|
-
},
|
|
7019
|
-
|
|
7020
|
-
}, z = kt(t), V = z.header, S = z.sidebar,
|
|
7022
|
+
}, M = () => {
|
|
7023
|
+
C(!E);
|
|
7024
|
+
}, z = kt(t), V = z.header, S = z.sidebar, L = z.main, O = z.footer, D = /* @__PURE__ */ e.createElement("aside", { className: `${_}__sidebar` }, S), W = /* @__PURE__ */ e.createElement("aside", { className: `${_}__sidebar`, style: k }, s && /* @__PURE__ */ e.createElement(
|
|
7021
7025
|
"button",
|
|
7022
7026
|
{
|
|
7023
7027
|
className: `${_}__sidebar-toggle-button`,
|
|
7024
|
-
onClick:
|
|
7028
|
+
onClick: M,
|
|
7025
7029
|
"aria-expanded": E,
|
|
7026
7030
|
"aria-label": l
|
|
7027
7031
|
},
|
|
7028
7032
|
/* @__PURE__ */ e.createElement("span", { className: `${_}__sidebar-toggle-icon` }, /* @__PURE__ */ e.createElement(P, { iconName: "angleLeft", iconSize: "sm" }))
|
|
7029
7033
|
), /* @__PURE__ */ e.createElement("div", { className: `${_}__sidebar-inner` }, S));
|
|
7030
|
-
return /* @__PURE__ */ e.createElement(
|
|
7034
|
+
return /* @__PURE__ */ e.createElement(Mt.Provider, { value: b }, /* @__PURE__ */ e.createElement(as, { text: r, destination: "main" }), /* @__PURE__ */ e.createElement(
|
|
7031
7035
|
"div",
|
|
7032
7036
|
y({
|
|
7033
7037
|
className: R([
|
|
7034
7038
|
_,
|
|
7035
|
-
|
|
7039
|
+
w,
|
|
7036
7040
|
x,
|
|
7037
7041
|
"pds-typography--product",
|
|
7038
7042
|
d != null ? d : ""
|
|
@@ -7048,7 +7052,7 @@ const Gt = (o) => {
|
|
|
7048
7052
|
style: N
|
|
7049
7053
|
},
|
|
7050
7054
|
!g && /* @__PURE__ */ e.createElement("div", { className: `${_}__header` }, V),
|
|
7051
|
-
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${_}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__main-inner` },
|
|
7055
|
+
/* @__PURE__ */ e.createElement("main", { id: "main", className: `${_}__main` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__main-inner` }, L), O && /* @__PURE__ */ e.createElement("footer", { className: `${_}__footer` }, O))
|
|
7052
7056
|
)
|
|
7053
7057
|
));
|
|
7054
7058
|
}, ls = ({
|
|
@@ -7068,10 +7072,10 @@ const Gt = (o) => {
|
|
|
7068
7072
|
s ? `${d}--expanded` : null
|
|
7069
7073
|
])
|
|
7070
7074
|
},
|
|
7071
|
-
H.map((N,
|
|
7075
|
+
H.map((N, M) => /* @__PURE__ */ e.createElement(
|
|
7072
7076
|
"li",
|
|
7073
7077
|
{
|
|
7074
|
-
key:
|
|
7078
|
+
key: M,
|
|
7075
7079
|
className: R([
|
|
7076
7080
|
r,
|
|
7077
7081
|
`${r}--${k}`,
|
|
@@ -7080,18 +7084,18 @@ const Gt = (o) => {
|
|
|
7080
7084
|
},
|
|
7081
7085
|
N.linkContent
|
|
7082
7086
|
))
|
|
7083
|
-
), [m, f] = F(!1), { refs: g, floatingStyles: E, context:
|
|
7087
|
+
), [m, f] = F(!1), { refs: g, floatingStyles: E, context: C } = Se({
|
|
7084
7088
|
placement: "right-start",
|
|
7085
7089
|
open: m,
|
|
7086
7090
|
onOpenChange: f,
|
|
7087
7091
|
middleware: [$t(12), wt(), yt()],
|
|
7088
7092
|
whileElementsMounted: Be
|
|
7089
|
-
}), u = gt(
|
|
7093
|
+
}), u = gt(C, {
|
|
7090
7094
|
move: !1,
|
|
7091
7095
|
handleClose: w1()
|
|
7092
|
-
}),
|
|
7096
|
+
}), $ = v1(C), v = Te(C), b = De(C, { role: "menu" }), { getReferenceProps: _, getFloatingProps: w } = Oe([
|
|
7093
7097
|
u,
|
|
7094
|
-
|
|
7098
|
+
$,
|
|
7095
7099
|
v,
|
|
7096
7100
|
b
|
|
7097
7101
|
]), x = (H) => {
|
|
@@ -7136,7 +7140,7 @@ const Gt = (o) => {
|
|
|
7136
7140
|
className: `${l}__flyout`,
|
|
7137
7141
|
ref: g.setFloating,
|
|
7138
7142
|
style: E
|
|
7139
|
-
},
|
|
7143
|
+
}, w()),
|
|
7140
7144
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__flyout-heading` }, Fe(c)),
|
|
7141
7145
|
h(o, "second-level-flyout")
|
|
7142
7146
|
)) : /* @__PURE__ */ e.createElement(e.Fragment, null, n ? i : /* @__PURE__ */ e.createElement(
|
|
@@ -7171,9 +7175,9 @@ const Gt = (o) => {
|
|
|
7171
7175
|
iconSize: "md",
|
|
7172
7176
|
className: `${r}__active-icon`
|
|
7173
7177
|
}
|
|
7174
|
-
),
|
|
7178
|
+
), C = (O) => {
|
|
7175
7179
|
var D;
|
|
7176
|
-
O.key === "Enter" && ((D =
|
|
7180
|
+
O.key === "Enter" && ((D = w.current[h].querySelector("a")) == null || D.click());
|
|
7177
7181
|
}, u = (O) => {
|
|
7178
7182
|
O.target.nodeName === "A" && i(!1);
|
|
7179
7183
|
};
|
|
@@ -7185,7 +7189,7 @@ const Gt = (o) => {
|
|
|
7185
7189
|
};
|
|
7186
7190
|
}
|
|
7187
7191
|
}, [d]);
|
|
7188
|
-
const
|
|
7192
|
+
const $ = ({
|
|
7189
7193
|
item: O,
|
|
7190
7194
|
level: D
|
|
7191
7195
|
}) => be(y({}, O), {
|
|
@@ -7199,29 +7203,29 @@ const Gt = (o) => {
|
|
|
7199
7203
|
}), v = (O) => {
|
|
7200
7204
|
const D = [];
|
|
7201
7205
|
return O.forEach((W) => {
|
|
7202
|
-
W.links ? (D.push(
|
|
7203
|
-
Z.links ? (D.push(
|
|
7206
|
+
W.links ? (D.push($({ item: W, level: "top-level" })), W.links.forEach((Z) => {
|
|
7207
|
+
Z.links ? (D.push($({ item: Z, level: "second-level" })), Z.links.forEach((U) => {
|
|
7204
7208
|
D.push(
|
|
7205
|
-
|
|
7209
|
+
$({ item: U, level: "third-level" })
|
|
7206
7210
|
);
|
|
7207
|
-
})) : D.push(
|
|
7208
|
-
})) : D.push(
|
|
7211
|
+
})) : D.push($({ item: Z, level: "second-level" }));
|
|
7212
|
+
})) : D.push($({ item: W, level: "top-level" }));
|
|
7209
7213
|
}), D;
|
|
7210
7214
|
}, { refs: b, context: _ } = Se({
|
|
7211
7215
|
placement: "bottom-start",
|
|
7212
7216
|
open: d,
|
|
7213
7217
|
onOpenChange: i,
|
|
7214
7218
|
whileElementsMounted: Be
|
|
7215
|
-
}),
|
|
7216
|
-
listRef:
|
|
7219
|
+
}), w = ae([]), x = ot(_, {
|
|
7220
|
+
listRef: w,
|
|
7217
7221
|
activeIndex: h,
|
|
7218
7222
|
onNavigate: m,
|
|
7219
7223
|
loop: !0,
|
|
7220
7224
|
openOnArrowKeyDown: !0,
|
|
7221
7225
|
focusItemOnHover: !0
|
|
7222
|
-
}), H = Ge(_, { event: "mousedown" }), k = Te(_), N = De(_, { role: "menu" }), { getReferenceProps:
|
|
7226
|
+
}), H = Ge(_, { event: "mousedown" }), k = Te(_), N = De(_, { role: "menu" }), { getReferenceProps: M, getFloatingProps: z, getItemProps: V } = Oe(
|
|
7223
7227
|
[k, N, H, x]
|
|
7224
|
-
), { isMounted: S, styles:
|
|
7228
|
+
), { isMounted: S, styles: L } = Ke(_, {
|
|
7225
7229
|
duration: {
|
|
7226
7230
|
open: 300,
|
|
7227
7231
|
close: 300
|
|
@@ -7241,7 +7245,7 @@ const Gt = (o) => {
|
|
|
7241
7245
|
y({
|
|
7242
7246
|
className: `${r}__trigger`,
|
|
7243
7247
|
ref: b.setReference
|
|
7244
|
-
},
|
|
7248
|
+
}, M()),
|
|
7245
7249
|
/* @__PURE__ */ e.createElement("span", { className: `${r}__active-label` }, g),
|
|
7246
7250
|
/* @__PURE__ */ e.createElement(
|
|
7247
7251
|
P,
|
|
@@ -7256,7 +7260,7 @@ const Gt = (o) => {
|
|
|
7256
7260
|
y({
|
|
7257
7261
|
className: `${r}__dropdown ${r}__menu ${r}__menu--top-level`,
|
|
7258
7262
|
ref: b.setFloating,
|
|
7259
|
-
style: be(y({},
|
|
7263
|
+
style: be(y({}, L), {
|
|
7260
7264
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7261
7265
|
})
|
|
7262
7266
|
}, z()),
|
|
@@ -7264,11 +7268,11 @@ const Gt = (o) => {
|
|
|
7264
7268
|
"li",
|
|
7265
7269
|
y({
|
|
7266
7270
|
key: D,
|
|
7267
|
-
onKeyDown:
|
|
7271
|
+
onKeyDown: C,
|
|
7268
7272
|
className: `${r}__item ${r}__item--${O.level} ${O.isActive === !0 ? `${r}__item--active` : ""}`,
|
|
7269
7273
|
tabIndex: h === D ? 0 : -1,
|
|
7270
7274
|
ref: (W) => {
|
|
7271
|
-
|
|
7275
|
+
w.current[D] = W;
|
|
7272
7276
|
}
|
|
7273
7277
|
}, V()),
|
|
7274
7278
|
O.linkContent,
|
|
@@ -7629,10 +7633,10 @@ const Gt = (o) => {
|
|
|
7629
7633
|
let d = !1;
|
|
7630
7634
|
const i = $e(Ae);
|
|
7631
7635
|
i && (d = i.isMobile);
|
|
7632
|
-
const h = $e(
|
|
7636
|
+
const h = $e(Mt);
|
|
7633
7637
|
let m = !0, f = null;
|
|
7634
7638
|
h && (m = h.isSidebarExpanded, f = h.logoLinkContent);
|
|
7635
|
-
const g = "pds-dashboard-nav", E = m ? `${g}--expanded` : `${g}--collapsed`,
|
|
7639
|
+
const g = "pds-dashboard-nav", E = m ? `${g}--expanded` : `${g}--collapsed`, C = /* @__PURE__ */ e.createElement(e.Fragment, null, n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${g}__menu ${g}__menu--top-level` }, n.map((v, b) => /* @__PURE__ */ e.createElement(
|
|
7636
7640
|
ls,
|
|
7637
7641
|
{
|
|
7638
7642
|
key: b,
|
|
@@ -7650,7 +7654,7 @@ const Gt = (o) => {
|
|
|
7650
7654
|
v.links,
|
|
7651
7655
|
v.icon
|
|
7652
7656
|
)
|
|
7653
|
-
})),
|
|
7657
|
+
})), $ = /* @__PURE__ */ e.createElement(
|
|
7654
7658
|
a1,
|
|
7655
7659
|
{
|
|
7656
7660
|
menuItems: u,
|
|
@@ -7671,7 +7675,7 @@ const Gt = (o) => {
|
|
|
7671
7675
|
linkContent: f
|
|
7672
7676
|
}
|
|
7673
7677
|
),
|
|
7674
|
-
d ?
|
|
7678
|
+
d ? $ : C
|
|
7675
7679
|
);
|
|
7676
7680
|
}, os = {
|
|
7677
7681
|
drupal: "drupal",
|
|
@@ -7731,7 +7735,7 @@ const Gt = (o) => {
|
|
|
7731
7735
|
)
|
|
7732
7736
|
);
|
|
7733
7737
|
}, sn = (E) => {
|
|
7734
|
-
var
|
|
7738
|
+
var C = E, {
|
|
7735
7739
|
disabled: t = !1,
|
|
7736
7740
|
id: s,
|
|
7737
7741
|
isLoading: n = !1,
|
|
@@ -7749,7 +7753,7 @@ const Gt = (o) => {
|
|
|
7749
7753
|
siteList: h,
|
|
7750
7754
|
horizontalOffset: m = 0,
|
|
7751
7755
|
className: f
|
|
7752
|
-
} =
|
|
7756
|
+
} = C, g = I(C, [
|
|
7753
7757
|
"disabled",
|
|
7754
7758
|
"id",
|
|
7755
7759
|
"isLoading",
|
|
@@ -7764,37 +7768,37 @@ const Gt = (o) => {
|
|
|
7764
7768
|
"horizontalOffset",
|
|
7765
7769
|
"className"
|
|
7766
7770
|
]);
|
|
7767
|
-
const [u,
|
|
7768
|
-
let
|
|
7771
|
+
const [u, $] = F(!1), [v, b] = F(null), _ = ae(null);
|
|
7772
|
+
let w = !1;
|
|
7769
7773
|
const x = $e(Ae);
|
|
7770
|
-
x && (
|
|
7774
|
+
x && (w = x.isMobile);
|
|
7771
7775
|
let H = null, k = !1;
|
|
7772
|
-
const N = $e(
|
|
7776
|
+
const N = $e(Mt);
|
|
7773
7777
|
N && (H = N.navbarWidth, k = N.isAdmin);
|
|
7774
|
-
const
|
|
7775
|
-
let
|
|
7776
|
-
u && !H && (
|
|
7778
|
+
const M = 2.25, z = 22, V = k ? 14.25 : 9.25, S = H > 900 ? z : H / 16 - (V + m) - M * 0.675;
|
|
7779
|
+
let L = M;
|
|
7780
|
+
u && !H && (L = z), u && H && (L = S);
|
|
7777
7781
|
const O = {
|
|
7778
7782
|
right: `${V + m}rem`,
|
|
7779
|
-
width: `${
|
|
7780
|
-
}, D = "pds-dashboard-search", W =
|
|
7781
|
-
|
|
7783
|
+
width: `${L}rem`
|
|
7784
|
+
}, D = "pds-dashboard-search", W = w ? `${D}--isMobile` : null, Z = () => {
|
|
7785
|
+
$(!0), setTimeout(() => {
|
|
7782
7786
|
_.current.querySelector("input").focus();
|
|
7783
7787
|
}, 500);
|
|
7784
7788
|
}, U = () => {
|
|
7785
7789
|
setTimeout(() => {
|
|
7786
|
-
|
|
7790
|
+
$(!1);
|
|
7787
7791
|
}, 150);
|
|
7788
7792
|
}, G = (q) => {
|
|
7789
7793
|
b(q.value), d && d(q);
|
|
7790
7794
|
};
|
|
7791
7795
|
oe(() => {
|
|
7792
7796
|
const q = (X) => {
|
|
7793
|
-
_.current && !_.current.contains(X.target) &&
|
|
7797
|
+
_.current && !_.current.contains(X.target) && $(!1);
|
|
7794
7798
|
}, Y = (X) => {
|
|
7795
7799
|
var ee;
|
|
7796
7800
|
const re = (ee = _.current) == null ? void 0 : ee.querySelector("input");
|
|
7797
|
-
X.key === "Tab" && u && re === document.activeElement &&
|
|
7801
|
+
X.key === "Tab" && u && re === document.activeElement && $(!1);
|
|
7798
7802
|
};
|
|
7799
7803
|
if (u)
|
|
7800
7804
|
return document.addEventListener("mousedown", q), document.addEventListener("keydown", Y), () => {
|
|
@@ -7855,12 +7859,12 @@ const Gt = (o) => {
|
|
|
7855
7859
|
y({
|
|
7856
7860
|
className: R([D, W, f != null ? f : ""]),
|
|
7857
7861
|
id: s,
|
|
7858
|
-
style:
|
|
7859
|
-
onKeyDown:
|
|
7862
|
+
style: w ? null : O,
|
|
7863
|
+
onKeyDown: w ? null : (q) => {
|
|
7860
7864
|
q.key === "Escape" && U();
|
|
7861
7865
|
}
|
|
7862
7866
|
}, g),
|
|
7863
|
-
|
|
7867
|
+
w ? j : A
|
|
7864
7868
|
);
|
|
7865
7869
|
}, mt = (c) => {
|
|
7866
7870
|
var o = c, {
|
|
@@ -7909,19 +7913,19 @@ const Gt = (o) => {
|
|
|
7909
7913
|
"translationStrings",
|
|
7910
7914
|
"className"
|
|
7911
7915
|
]);
|
|
7912
|
-
const [E,
|
|
7916
|
+
const [E, C] = F(!1);
|
|
7913
7917
|
let u = !1;
|
|
7914
|
-
const
|
|
7915
|
-
|
|
7916
|
-
const v = $e(
|
|
7918
|
+
const $ = $e(Ae);
|
|
7919
|
+
$ && (u = $.isMobile);
|
|
7920
|
+
const v = $e(Mt);
|
|
7917
7921
|
v && (l = v.logoLinkContent);
|
|
7918
|
-
const b = "pds-navbar", _ = a ? `${b}--noBorder` : "",
|
|
7922
|
+
const b = "pds-navbar", _ = a ? `${b}--noBorder` : "", w = s !== "default" ? `${b}--${s}` : "", x = u ? `${b}--isMobile` : `${b}--notMobile`, H = (T) => {
|
|
7919
7923
|
const A = T.key;
|
|
7920
7924
|
let j = !1;
|
|
7921
7925
|
switch (A) {
|
|
7922
7926
|
case "Esc":
|
|
7923
7927
|
case "Escape":
|
|
7924
|
-
|
|
7928
|
+
C(!1), j = !0;
|
|
7925
7929
|
break;
|
|
7926
7930
|
}
|
|
7927
7931
|
j && (T.stopPropagation(), T.preventDefault());
|
|
@@ -7929,7 +7933,7 @@ const Gt = (o) => {
|
|
|
7929
7933
|
oe(() => (window.addEventListener("keyup", H), () => {
|
|
7930
7934
|
window.removeEventListener("keyup", H);
|
|
7931
7935
|
}), []);
|
|
7932
|
-
const k = () =>
|
|
7936
|
+
const k = () => C(!E), N = s2();
|
|
7933
7937
|
oe(() => {
|
|
7934
7938
|
if (u && t) {
|
|
7935
7939
|
const T = H1(
|
|
@@ -7942,29 +7946,29 @@ const Gt = (o) => {
|
|
|
7942
7946
|
});
|
|
7943
7947
|
}
|
|
7944
7948
|
}, [E]);
|
|
7945
|
-
const
|
|
7946
|
-
T.target.nodeName === "A" &&
|
|
7949
|
+
const M = (T) => {
|
|
7950
|
+
T.target.nodeName === "A" && C(!1);
|
|
7947
7951
|
};
|
|
7948
7952
|
oe(() => {
|
|
7949
7953
|
if (E) {
|
|
7950
7954
|
const T = document.querySelector(".pds-navbar__bar-mobile"), A = document.querySelector(".pds-navbar__mobile");
|
|
7951
|
-
return T.addEventListener("click",
|
|
7952
|
-
T.removeEventListener("click",
|
|
7955
|
+
return T.addEventListener("click", M), A.addEventListener("click", M), () => {
|
|
7956
|
+
T.removeEventListener("click", M), A.removeEventListener("click", M);
|
|
7953
7957
|
};
|
|
7954
7958
|
}
|
|
7955
7959
|
}, [E]), oe(() => {
|
|
7956
7960
|
E ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
7957
7961
|
}, [E]);
|
|
7958
7962
|
const z = kt(t), V = z["items-left"], S = z["items-right"];
|
|
7959
|
-
let
|
|
7960
|
-
(s === "reverse" || s === "reverse-transparent") && (
|
|
7963
|
+
let L = "default";
|
|
7964
|
+
(s === "reverse" || s === "reverse-transparent") && (L = "reverse");
|
|
7961
7965
|
const O = qe(l) ? l.props.children : null, D = qe(l) && O ? We(l, {
|
|
7962
7966
|
children: /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: r }),
|
|
7963
7967
|
"aria-label": O || null
|
|
7964
7968
|
}) : /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: r, alt: "" }), W = () => r ? D : /* @__PURE__ */ e.createElement(
|
|
7965
7969
|
j1,
|
|
7966
7970
|
{
|
|
7967
|
-
colorType:
|
|
7971
|
+
colorType: L,
|
|
7968
7972
|
displayType: o,
|
|
7969
7973
|
linkContent: l,
|
|
7970
7974
|
subBrand: d
|
|
@@ -7999,7 +8003,7 @@ const Gt = (o) => {
|
|
|
7999
8003
|
y({
|
|
8000
8004
|
className: R([
|
|
8001
8005
|
b,
|
|
8002
|
-
|
|
8006
|
+
w,
|
|
8003
8007
|
_,
|
|
8004
8008
|
x,
|
|
8005
8009
|
h != null ? h : ""
|
|
@@ -8036,18 +8040,18 @@ const Gt = (o) => {
|
|
|
8036
8040
|
}), []);
|
|
8037
8041
|
const E = () => {
|
|
8038
8042
|
g(window.innerWidth);
|
|
8039
|
-
},
|
|
8040
|
-
const
|
|
8041
|
-
|
|
8043
|
+
}, C = f <= o, u = (_) => {
|
|
8044
|
+
const w = _.target;
|
|
8045
|
+
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
8042
8046
|
"aria-expanded",
|
|
8043
|
-
|
|
8044
|
-
),
|
|
8045
|
-
},
|
|
8047
|
+
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8048
|
+
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
8049
|
+
}, $ = (_, w) => {
|
|
8046
8050
|
const { linkContent: x, links: H } = _, k = `${m}__item`, N = `${m}__menu`;
|
|
8047
8051
|
return /* @__PURE__ */ e.createElement(
|
|
8048
8052
|
"li",
|
|
8049
8053
|
{
|
|
8050
|
-
key:
|
|
8054
|
+
key: w,
|
|
8051
8055
|
className: R([
|
|
8052
8056
|
k,
|
|
8053
8057
|
`${k}--top-level`,
|
|
@@ -8076,19 +8080,19 @@ const Gt = (o) => {
|
|
|
8076
8080
|
Ne(_) ? `${N}--expanded` : null
|
|
8077
8081
|
])
|
|
8078
8082
|
},
|
|
8079
|
-
H.map((
|
|
8083
|
+
H.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
8080
8084
|
"li",
|
|
8081
8085
|
{
|
|
8082
8086
|
key: z,
|
|
8083
8087
|
className: R([
|
|
8084
8088
|
k,
|
|
8085
8089
|
`${k}--second-level`,
|
|
8086
|
-
Ne(
|
|
8090
|
+
Ne(M) ? `${k}--active` : null
|
|
8087
8091
|
])
|
|
8088
8092
|
},
|
|
8089
8093
|
lt(
|
|
8090
|
-
|
|
8091
|
-
|
|
8094
|
+
M.linkContent,
|
|
8095
|
+
M.links
|
|
8092
8096
|
)
|
|
8093
8097
|
))
|
|
8094
8098
|
)) : (
|
|
@@ -8096,7 +8100,7 @@ const Gt = (o) => {
|
|
|
8096
8100
|
x
|
|
8097
8101
|
)
|
|
8098
8102
|
);
|
|
8099
|
-
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, n), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, c.map((_,
|
|
8103
|
+
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, n), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, c.map((_, w) => $(_, w)))), b = /* @__PURE__ */ e.createElement(
|
|
8100
8104
|
a1,
|
|
8101
8105
|
{
|
|
8102
8106
|
headingText: n,
|
|
@@ -8110,7 +8114,7 @@ const Gt = (o) => {
|
|
|
8110
8114
|
"aria-label": t,
|
|
8111
8115
|
className: R([m, r != null ? r : ""])
|
|
8112
8116
|
}, d),
|
|
8113
|
-
|
|
8117
|
+
C && s ? b : v
|
|
8114
8118
|
);
|
|
8115
8119
|
}, ln = (i) => {
|
|
8116
8120
|
var h = i, {
|
|
@@ -8141,18 +8145,18 @@ const Gt = (o) => {
|
|
|
8141
8145
|
}), []);
|
|
8142
8146
|
const E = () => {
|
|
8143
8147
|
g(window.innerWidth);
|
|
8144
|
-
},
|
|
8145
|
-
const
|
|
8146
|
-
|
|
8148
|
+
}, C = f <= o, u = (_) => {
|
|
8149
|
+
const w = _.target;
|
|
8150
|
+
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
8147
8151
|
"aria-expanded",
|
|
8148
|
-
|
|
8149
|
-
),
|
|
8150
|
-
},
|
|
8152
|
+
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8153
|
+
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
8154
|
+
}, $ = (_, w) => {
|
|
8151
8155
|
const { linkContent: x, links: H } = _, k = `${m}__item`, N = `${m}__menu`;
|
|
8152
8156
|
return /* @__PURE__ */ e.createElement(
|
|
8153
8157
|
"li",
|
|
8154
8158
|
{
|
|
8155
|
-
key:
|
|
8159
|
+
key: w,
|
|
8156
8160
|
className: R([
|
|
8157
8161
|
k,
|
|
8158
8162
|
`${k}--top-level`,
|
|
@@ -8181,41 +8185,41 @@ const Gt = (o) => {
|
|
|
8181
8185
|
Ne(_) ? `${N}--expanded` : null
|
|
8182
8186
|
])
|
|
8183
8187
|
},
|
|
8184
|
-
H.map((
|
|
8188
|
+
H.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
8185
8189
|
"li",
|
|
8186
8190
|
{
|
|
8187
8191
|
key: z,
|
|
8188
8192
|
className: R([
|
|
8189
8193
|
k,
|
|
8190
8194
|
`${k}--second-level`,
|
|
8191
|
-
Ne(
|
|
8195
|
+
Ne(M) ? `${k}--active` : null
|
|
8192
8196
|
])
|
|
8193
8197
|
},
|
|
8194
|
-
|
|
8198
|
+
M.links ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${k}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8195
8199
|
"button",
|
|
8196
8200
|
{
|
|
8197
|
-
"aria-expanded": Ne(
|
|
8201
|
+
"aria-expanded": Ne(M),
|
|
8198
8202
|
className: R([
|
|
8199
8203
|
`${m}__toggle`,
|
|
8200
|
-
Ne(
|
|
8204
|
+
Ne(M) ? `${m}__toggle--expanded` : null
|
|
8201
8205
|
]),
|
|
8202
8206
|
onClick: u
|
|
8203
8207
|
},
|
|
8204
8208
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "md" }),
|
|
8205
|
-
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Fe(
|
|
8209
|
+
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `${a.toggle} ${Fe(M.linkContent)} ${a.submenu}`)
|
|
8206
8210
|
), lt(
|
|
8207
|
-
|
|
8208
|
-
|
|
8211
|
+
M.linkContent,
|
|
8212
|
+
M.links
|
|
8209
8213
|
)), /* @__PURE__ */ e.createElement(
|
|
8210
8214
|
"ul",
|
|
8211
8215
|
{
|
|
8212
8216
|
className: R([
|
|
8213
8217
|
N,
|
|
8214
8218
|
`${N}--third-level`,
|
|
8215
|
-
Ne(
|
|
8219
|
+
Ne(M) ? `${N}--expanded` : null
|
|
8216
8220
|
])
|
|
8217
8221
|
},
|
|
8218
|
-
|
|
8222
|
+
M.links.map((V, S) => /* @__PURE__ */ e.createElement(
|
|
8219
8223
|
"li",
|
|
8220
8224
|
{
|
|
8221
8225
|
key: S,
|
|
@@ -8232,7 +8236,7 @@ const Gt = (o) => {
|
|
|
8232
8236
|
))
|
|
8233
8237
|
)) : (
|
|
8234
8238
|
// If no second-level child links are present, render the link content as is.
|
|
8235
|
-
|
|
8239
|
+
M.linkContent
|
|
8236
8240
|
)
|
|
8237
8241
|
))
|
|
8238
8242
|
)) : (
|
|
@@ -8240,7 +8244,7 @@ const Gt = (o) => {
|
|
|
8240
8244
|
x
|
|
8241
8245
|
)
|
|
8242
8246
|
);
|
|
8243
|
-
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, n), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, c.map((_,
|
|
8247
|
+
}, v = /* @__PURE__ */ e.createElement(e.Fragment, null, n && /* @__PURE__ */ e.createElement("h2", { className: `${m}__heading` }, n), c.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${m}__menu ${m}__menu--top-level` }, c.map((_, w) => $(_, w)))), b = /* @__PURE__ */ e.createElement(
|
|
8244
8248
|
a1,
|
|
8245
8249
|
{
|
|
8246
8250
|
headingText: n,
|
|
@@ -8254,7 +8258,7 @@ const Gt = (o) => {
|
|
|
8254
8258
|
"aria-label": t,
|
|
8255
8259
|
className: R([m, r != null ? r : ""])
|
|
8256
8260
|
}, d),
|
|
8257
|
-
|
|
8261
|
+
C && s ? b : v
|
|
8258
8262
|
);
|
|
8259
8263
|
}, ds = ({
|
|
8260
8264
|
buttonLabel: t = "Toggle dropdown",
|
|
@@ -8264,7 +8268,7 @@ const Gt = (o) => {
|
|
|
8264
8268
|
minFilterItems: c = 5,
|
|
8265
8269
|
noResultsText: o = "No results found"
|
|
8266
8270
|
}) => {
|
|
8267
|
-
const [l, r] = F(!1), [d, i] = F(null), [h, m] = F(a), [f, g] = F(""), E = a.length >= c,
|
|
8271
|
+
const [l, r] = F(!1), [d, i] = F(null), [h, m] = F(a), [f, g] = F(""), E = a.length >= c, C = "pds-tab-menu", u = `${C}__dropdown-menu`, $ = E ? `${u}--scroll` : null, v = `${C}__dropdown-item`, b = ae([]), { context: _, refs: w } = Se({
|
|
8268
8272
|
open: l,
|
|
8269
8273
|
onOpenChange: r,
|
|
8270
8274
|
whileElementsMounted: Be
|
|
@@ -8277,9 +8281,9 @@ const Gt = (o) => {
|
|
|
8277
8281
|
loop: !0,
|
|
8278
8282
|
focusItemOnHover: !0,
|
|
8279
8283
|
focusItemOnOpen: !1
|
|
8280
|
-
}), { getReferenceProps:
|
|
8284
|
+
}), { getReferenceProps: M, getFloatingProps: z, getItemProps: V } = Oe(
|
|
8281
8285
|
[k, H, N, x]
|
|
8282
|
-
), { isMounted: S, styles:
|
|
8286
|
+
), { isMounted: S, styles: L } = Ke(_, {
|
|
8283
8287
|
duration: {
|
|
8284
8288
|
open: 300,
|
|
8285
8289
|
close: 150
|
|
@@ -8315,7 +8319,7 @@ const Gt = (o) => {
|
|
|
8315
8319
|
width: `${Fe(
|
|
8316
8320
|
U.linkContent
|
|
8317
8321
|
).length + 2}ch`
|
|
8318
|
-
}, T = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${
|
|
8322
|
+
}, T = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${C}__active-icon` }), A = E && /* @__PURE__ */ e.createElement("div", { className: `${C}__filter` }, /* @__PURE__ */ e.createElement(
|
|
8319
8323
|
q1,
|
|
8320
8324
|
{
|
|
8321
8325
|
hasClearButton: !0,
|
|
@@ -8348,9 +8352,9 @@ const Gt = (o) => {
|
|
|
8348
8352
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8349
8353
|
"button",
|
|
8350
8354
|
y({
|
|
8351
|
-
className: `${
|
|
8352
|
-
ref:
|
|
8353
|
-
},
|
|
8355
|
+
className: `${C}__dropdown-trigger`,
|
|
8356
|
+
ref: w.setReference
|
|
8357
|
+
}, M({
|
|
8354
8358
|
"aria-expanded": l,
|
|
8355
8359
|
"aria-label": t
|
|
8356
8360
|
})),
|
|
@@ -8358,20 +8362,20 @@ const Gt = (o) => {
|
|
|
8358
8362
|
P,
|
|
8359
8363
|
{
|
|
8360
8364
|
iconName: "angleDown",
|
|
8361
|
-
className: `${
|
|
8365
|
+
className: `${C}__dropdown-trigger-icon`
|
|
8362
8366
|
}
|
|
8363
8367
|
)
|
|
8364
8368
|
), S && /* @__PURE__ */ e.createElement(
|
|
8365
8369
|
"div",
|
|
8366
8370
|
y({
|
|
8367
|
-
ref:
|
|
8368
|
-
className: `${
|
|
8371
|
+
ref: w.setFloating,
|
|
8372
|
+
className: `${C}__dropdown`
|
|
8369
8373
|
}, z({
|
|
8370
8374
|
style: y({
|
|
8371
8375
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8372
8376
|
}, K)
|
|
8373
8377
|
})),
|
|
8374
|
-
/* @__PURE__ */ e.createElement("div", { style: y({},
|
|
8378
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, L) }, A, /* @__PURE__ */ e.createElement("ul", { className: R([u, $]) }, j.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${C}__no-results` }, o) : j))
|
|
8375
8379
|
));
|
|
8376
8380
|
}, cn = (c) => {
|
|
8377
8381
|
var o = c, {
|
|
@@ -8390,13 +8394,13 @@ const Gt = (o) => {
|
|
|
8390
8394
|
dropdownSettings: f,
|
|
8391
8395
|
icon: g,
|
|
8392
8396
|
isActive: E,
|
|
8393
|
-
linkContent:
|
|
8397
|
+
linkContent: C,
|
|
8394
8398
|
links: u,
|
|
8395
|
-
promoteActiveChildLink:
|
|
8399
|
+
promoteActiveChildLink: $ = !1
|
|
8396
8400
|
}) => {
|
|
8397
|
-
const v = `${d}__item`, b = n1(u), _ = (
|
|
8401
|
+
const v = `${d}__item`, b = n1(u), _ = (w, x) => {
|
|
8398
8402
|
let H = null;
|
|
8399
|
-
return typeof
|
|
8403
|
+
return typeof w == "object" && (x ? H = We(w, be(y({}, w.props), {
|
|
8400
8404
|
children: [
|
|
8401
8405
|
/* @__PURE__ */ e.createElement("span", { key: x, className: `${d}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
8402
8406
|
P,
|
|
@@ -8405,9 +8409,9 @@ const Gt = (o) => {
|
|
|
8405
8409
|
iconSize: "md",
|
|
8406
8410
|
className: `${d}__item-icon`
|
|
8407
8411
|
}
|
|
8408
|
-
),
|
|
8412
|
+
), w.props.children)
|
|
8409
8413
|
]
|
|
8410
|
-
})) : H =
|
|
8414
|
+
})) : H = w), H;
|
|
8411
8415
|
};
|
|
8412
8416
|
return /* @__PURE__ */ e.createElement(
|
|
8413
8417
|
"li",
|
|
@@ -8417,7 +8421,7 @@ const Gt = (o) => {
|
|
|
8417
8421
|
E ? `${v}--active` : null
|
|
8418
8422
|
])
|
|
8419
8423
|
},
|
|
8420
|
-
_(
|
|
8424
|
+
_($ ? b : C, g),
|
|
8421
8425
|
u && /* @__PURE__ */ e.createElement(
|
|
8422
8426
|
ds,
|
|
8423
8427
|
{
|
|
@@ -8468,17 +8472,17 @@ const Gt = (o) => {
|
|
|
8468
8472
|
"withinNavbar",
|
|
8469
8473
|
"className"
|
|
8470
8474
|
]);
|
|
8471
|
-
const [h, m] = F(null), [f, g] = F(!1), E = ae([]),
|
|
8475
|
+
const [h, m] = F(null), [f, g] = F(!1), E = ae([]), C = ae([]);
|
|
8472
8476
|
let u = !1;
|
|
8473
|
-
const
|
|
8474
|
-
|
|
8475
|
-
const v = o && u, b = "pds-user-menu", _ = v ? `${b}--isMobile` : null,
|
|
8477
|
+
const $ = $e(Ae);
|
|
8478
|
+
$ && (u = $.isMobile);
|
|
8479
|
+
const v = o && u, b = "pds-user-menu", _ = v ? `${b}--isMobile` : null, w = `${b}__menu`, { refs: x, floatingStyles: H, context: k } = Se({
|
|
8476
8480
|
placement: "bottom-end",
|
|
8477
8481
|
open: f,
|
|
8478
8482
|
onOpenChange: g,
|
|
8479
8483
|
middleware: [$t(12), wt(), yt()],
|
|
8480
8484
|
whileElementsMounted: Be
|
|
8481
|
-
}), N = Ge(k, { event: "mousedown" }),
|
|
8485
|
+
}), N = Ge(k, { event: "mousedown" }), M = Te(k), z = De(k, { role: "menu" }), V = ae([]), S = ot(k, {
|
|
8482
8486
|
listRef: V,
|
|
8483
8487
|
activeIndex: h,
|
|
8484
8488
|
onNavigate: m,
|
|
@@ -8486,8 +8490,8 @@ const Gt = (o) => {
|
|
|
8486
8490
|
openOnArrowKeyDown: !0,
|
|
8487
8491
|
focusItemOnOpen: !1,
|
|
8488
8492
|
focusItemOnHover: !0
|
|
8489
|
-
}), { getReferenceProps:
|
|
8490
|
-
[
|
|
8493
|
+
}), { getReferenceProps: L, getFloatingProps: O, getItemProps: D } = Oe(
|
|
8494
|
+
[M, z, N, S]
|
|
8491
8495
|
), { isMounted: W, styles: Z } = Ke(k, {
|
|
8492
8496
|
duration: {
|
|
8493
8497
|
open: 300,
|
|
@@ -8514,10 +8518,10 @@ const Gt = (o) => {
|
|
|
8514
8518
|
), G = /* @__PURE__ */ e.createElement(P, { iconName: "angleDown", className: `${b}__trigger-icon` }), K = /* @__PURE__ */ e.createElement("li", { className: `${b}__user-details`, role: "presentation" }, v ? null : /* @__PURE__ */ e.createElement("div", { className: `${b}__user-name` }, c), /* @__PURE__ */ e.createElement("div", { className: `${b}__user-email` }, n));
|
|
8515
8519
|
s.forEach((ee) => {
|
|
8516
8520
|
const pe = ee.id ? ee.id : Ue();
|
|
8517
|
-
E.current.push(pe),
|
|
8521
|
+
E.current.push(pe), C.current.push(ee);
|
|
8518
8522
|
});
|
|
8519
8523
|
const T = (ee) => {
|
|
8520
|
-
const pe = E.current.indexOf(ee), ie =
|
|
8524
|
+
const pe = E.current.indexOf(ee), ie = C.current[pe];
|
|
8521
8525
|
ie.linkContent && !ie.disabled && (V.current[pe].querySelector("a").click(), g(!1)), ie.callback && !ie.disabled && (ie.callback(ie), g(!1));
|
|
8522
8526
|
}, A = (ee) => {
|
|
8523
8527
|
ee.preventDefault(), ee.key === "Enter" && T(ee.currentTarget.id);
|
|
@@ -8554,7 +8558,7 @@ const Gt = (o) => {
|
|
|
8554
8558
|
className: `${b}__trigger`,
|
|
8555
8559
|
"aria-label": t,
|
|
8556
8560
|
ref: x.setReference
|
|
8557
|
-
},
|
|
8561
|
+
}, L()),
|
|
8558
8562
|
U
|
|
8559
8563
|
), W && /* @__PURE__ */ e.createElement(
|
|
8560
8564
|
"div",
|
|
@@ -8565,7 +8569,7 @@ const Gt = (o) => {
|
|
|
8565
8569
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8566
8570
|
})
|
|
8567
8571
|
}, O()),
|
|
8568
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, Z) }, /* @__PURE__ */ e.createElement("ul", { className:
|
|
8572
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, Z) }, /* @__PURE__ */ e.createElement("ul", { className: w, role: "menu" }, K, /* @__PURE__ */ e.createElement("li", { role: "separator" }), q))
|
|
8569
8573
|
)), X = (ee) => {
|
|
8570
8574
|
const pe = ee.currentTarget;
|
|
8571
8575
|
pe.classList.toggle(`${b}__toggle--expanded`), pe.setAttribute(
|
|
@@ -8585,7 +8589,7 @@ const Gt = (o) => {
|
|
|
8585
8589
|
), /* @__PURE__ */ e.createElement("div", { className: `${b}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
8586
8590
|
"ul",
|
|
8587
8591
|
{
|
|
8588
|
-
className: [
|
|
8592
|
+
className: [w, `${w}--isMobile`].join(" ").trim(),
|
|
8589
8593
|
role: "menu"
|
|
8590
8594
|
},
|
|
8591
8595
|
K,
|
|
@@ -8628,17 +8632,17 @@ const Gt = (o) => {
|
|
|
8628
8632
|
"workspaceList",
|
|
8629
8633
|
"className"
|
|
8630
8634
|
]);
|
|
8631
|
-
const [g, E] = F(!1), [
|
|
8635
|
+
const [g, E] = F(!1), [C, u] = F(null), [$, v] = F(d), b = ae([]), _ = ae(null), w = d.length >= o;
|
|
8632
8636
|
let x = !1;
|
|
8633
8637
|
const H = $e(Ae);
|
|
8634
8638
|
H && (x = H.isMobile);
|
|
8635
|
-
const k = r && x, N = "pds-workspace-selector",
|
|
8639
|
+
const k = r && x, N = "pds-workspace-selector", M = k ? `${N}--isMobile` : null, z = `${N}__menu`, V = w ? `${z}--scroll` : null, { refs: S, floatingStyles: L, context: O } = Se({
|
|
8636
8640
|
open: g,
|
|
8637
8641
|
onOpenChange: E,
|
|
8638
8642
|
whileElementsMounted: Be
|
|
8639
8643
|
}), D = Ge(O, { event: "mousedown" }), W = Te(O), Z = De(O, { role: "menu" }), U = ot(O, {
|
|
8640
8644
|
listRef: b,
|
|
8641
|
-
activeIndex:
|
|
8645
|
+
activeIndex: C,
|
|
8642
8646
|
onNavigate: u,
|
|
8643
8647
|
loop: !0,
|
|
8644
8648
|
openOnArrowKeyDown: !0,
|
|
@@ -8674,7 +8678,7 @@ const Gt = (o) => {
|
|
|
8674
8678
|
v(te);
|
|
8675
8679
|
}, [d]);
|
|
8676
8680
|
const X = (te) => {
|
|
8677
|
-
te.preventDefault(), te.key === "Enter" && b.current[
|
|
8681
|
+
te.preventDefault(), te.key === "Enter" && b.current[C].querySelector("a").click(), te.key === "Tab" && (te.shiftKey ? w ? document.getElementById("workspace-filter").focus() : E(!1) : s ? _.current.querySelector("a").focus() : E(!1));
|
|
8678
8682
|
}, re = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8679
8683
|
ut,
|
|
8680
8684
|
{
|
|
@@ -8697,7 +8701,7 @@ const Gt = (o) => {
|
|
|
8697
8701
|
iconSize: "md",
|
|
8698
8702
|
className: `${N}__trigger-icon`
|
|
8699
8703
|
}
|
|
8700
|
-
), pe =
|
|
8704
|
+
), pe = w && /* @__PURE__ */ e.createElement("div", { className: `${N}__filter` }, /* @__PURE__ */ e.createElement(
|
|
8701
8705
|
q1,
|
|
8702
8706
|
{
|
|
8703
8707
|
hasClearButton: !0,
|
|
@@ -8709,9 +8713,9 @@ const Gt = (o) => {
|
|
|
8709
8713
|
showLabel: !1,
|
|
8710
8714
|
type: "search"
|
|
8711
8715
|
}
|
|
8712
|
-
)), ie =
|
|
8716
|
+
)), ie = $.map(
|
|
8713
8717
|
(te, fe) => {
|
|
8714
|
-
const ke = `${N}__item`, se = te.isActive ? `${ke}--active` : null, ce = te.isUnprivileged ? `${ke}--unprivileged` : null, xe = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${N}__active-icon` }), He = te.workspaceId,
|
|
8718
|
+
const ke = `${N}__item`, se = te.isActive ? `${ke}--active` : null, ce = te.isUnprivileged ? `${ke}--unprivileged` : null, xe = /* @__PURE__ */ e.createElement(P, { iconName: "check", className: `${N}__active-icon` }), He = te.workspaceId, Me = te.workspaceLink.type, Ee = te.isUnprivileged ? null : (_e) => {
|
|
8715
8719
|
b.current[fe] = _e;
|
|
8716
8720
|
};
|
|
8717
8721
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8725,12 +8729,12 @@ const Gt = (o) => {
|
|
|
8725
8729
|
ce
|
|
8726
8730
|
]),
|
|
8727
8731
|
role: "menuitem",
|
|
8728
|
-
tabIndex:
|
|
8732
|
+
tabIndex: C === fe ? 0 : -1,
|
|
8729
8733
|
ref: Ee,
|
|
8730
8734
|
onKeyDown: X
|
|
8731
8735
|
}, T()),
|
|
8732
8736
|
/* @__PURE__ */ e.createElement(
|
|
8733
|
-
|
|
8737
|
+
Me,
|
|
8734
8738
|
be(y({}, te.workspaceLink.props), {
|
|
8735
8739
|
onClick: () => E(!1)
|
|
8736
8740
|
}),
|
|
@@ -8804,7 +8808,7 @@ const Gt = (o) => {
|
|
|
8804
8808
|
return /* @__PURE__ */ e.createElement(
|
|
8805
8809
|
"span",
|
|
8806
8810
|
y({
|
|
8807
|
-
className: R([N,
|
|
8811
|
+
className: R([N, M, i])
|
|
8808
8812
|
}, h),
|
|
8809
8813
|
k ? he : we
|
|
8810
8814
|
);
|
|
@@ -8843,7 +8847,7 @@ const Gt = (o) => {
|
|
|
8843
8847
|
info: `${f}--info`,
|
|
8844
8848
|
warning: `${f}--warning`,
|
|
8845
8849
|
critical: `${f}--critical`
|
|
8846
|
-
},
|
|
8850
|
+
}, C = m > 0 ? i[0].type : null, u = C ? `${f}-group--${C}` : null, $ = (H) => ({
|
|
8847
8851
|
zIndex: Tt - H
|
|
8848
8852
|
}), v = (H) => H === 0 ? 0 : -1, b = () => {
|
|
8849
8853
|
const H = document.getElementsByClassName(
|
|
@@ -8858,7 +8862,7 @@ const Gt = (o) => {
|
|
|
8858
8862
|
H[0]
|
|
8859
8863
|
]);
|
|
8860
8864
|
}, 200);
|
|
8861
|
-
},
|
|
8865
|
+
}, w = () => {
|
|
8862
8866
|
b(), document.getElementById(i[0].id).style.zIndex = (Tt + 2).toString(), document.getElementById(i[m - 1].id).style.zIndex = (Tt + 1).toString(), setTimeout(() => {
|
|
8863
8867
|
document.getElementById(i[0].id).classList.add(`${f}--fading`);
|
|
8864
8868
|
}, 50), setTimeout(() => {
|
|
@@ -8868,7 +8872,7 @@ const Gt = (o) => {
|
|
|
8868
8872
|
]), document.getElementById(i[0].id).classList.remove(`${f}--fading`);
|
|
8869
8873
|
}, 200);
|
|
8870
8874
|
}, x = (H, k) => {
|
|
8871
|
-
const { id: N, isDismissible:
|
|
8875
|
+
const { id: N, isDismissible: M, message: z, onDismiss: V, type: S } = H, O = ["critical", "warning"].includes(S) ? "alert" : "status", D = `${c[S]}: `, W = (Z) => {
|
|
8872
8876
|
Z.preventDefault(), document.getElementById(N).classList.add(`${f}--dismissing`), setTimeout(() => {
|
|
8873
8877
|
if (m === 1) {
|
|
8874
8878
|
h([]);
|
|
@@ -8887,7 +8891,7 @@ const Gt = (o) => {
|
|
|
8887
8891
|
className: R([f, E[S]]),
|
|
8888
8892
|
role: O,
|
|
8889
8893
|
style: {
|
|
8890
|
-
zIndex:
|
|
8894
|
+
zIndex: $(k).zIndex
|
|
8891
8895
|
}
|
|
8892
8896
|
},
|
|
8893
8897
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8898,7 +8902,7 @@ const Gt = (o) => {
|
|
|
8898
8902
|
className: `${f}__icon ${f}__icon--${H.type}`
|
|
8899
8903
|
}
|
|
8900
8904
|
), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, D, " "), z)),
|
|
8901
|
-
|
|
8905
|
+
M && /* @__PURE__ */ e.createElement(
|
|
8902
8906
|
"button",
|
|
8903
8907
|
{
|
|
8904
8908
|
className: `${f}__dismiss-button`,
|
|
@@ -8926,7 +8930,7 @@ const Gt = (o) => {
|
|
|
8926
8930
|
size: "lg",
|
|
8927
8931
|
className: `${f}__nav-button ${f}__nav-button--prev`,
|
|
8928
8932
|
ariaLabel: a,
|
|
8929
|
-
onClick:
|
|
8933
|
+
onClick: w
|
|
8930
8934
|
}
|
|
8931
8935
|
), /* @__PURE__ */ e.createElement(
|
|
8932
8936
|
_t,
|
|
@@ -9029,13 +9033,13 @@ const Gt = (o) => {
|
|
|
9029
9033
|
discovery: `${g}--discovery`,
|
|
9030
9034
|
dismissing: `${g}--dismissing`,
|
|
9031
9035
|
dismissed: `${g}--dismissed`
|
|
9032
|
-
},
|
|
9036
|
+
}, C = o ? `${g}--hasTitle` : null, $ = ["critical", "warning"].includes(l) ? "alert" : "status", v = `${r[l]}: `, b = () => {
|
|
9033
9037
|
f.current.addEventListener("animationend", _, {
|
|
9034
9038
|
once: !0
|
|
9035
9039
|
});
|
|
9036
9040
|
}, _ = (x) => {
|
|
9037
9041
|
a(x, s);
|
|
9038
|
-
},
|
|
9042
|
+
}, w = () => {
|
|
9039
9043
|
b(), f.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
9040
9044
|
f.current.classList.toggle(E.dismissing), f.current.classList.toggle(E.dismissed);
|
|
9041
9045
|
}, 400);
|
|
@@ -9043,10 +9047,10 @@ const Gt = (o) => {
|
|
|
9043
9047
|
return /* @__PURE__ */ e.createElement(
|
|
9044
9048
|
"div",
|
|
9045
9049
|
y({
|
|
9046
|
-
className: [g, E[l],
|
|
9050
|
+
className: [g, E[l], C, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
9047
9051
|
id: s,
|
|
9048
9052
|
ref: f,
|
|
9049
|
-
role:
|
|
9053
|
+
role: $
|
|
9050
9054
|
}, i),
|
|
9051
9055
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
9052
9056
|
P,
|
|
@@ -9059,7 +9063,7 @@ const Gt = (o) => {
|
|
|
9059
9063
|
"button",
|
|
9060
9064
|
{
|
|
9061
9065
|
className: `${g}__dismiss`,
|
|
9062
|
-
onClick:
|
|
9066
|
+
onClick: w,
|
|
9063
9067
|
"aria-label": t,
|
|
9064
9068
|
role: "button"
|
|
9065
9069
|
},
|
|
@@ -9204,18 +9208,18 @@ const hn = () => {
|
|
|
9204
9208
|
"className"
|
|
9205
9209
|
]);
|
|
9206
9210
|
var K, T, A, j;
|
|
9207
|
-
const [
|
|
9211
|
+
const [C, u] = F(i);
|
|
9208
9212
|
oe(() => {
|
|
9209
9213
|
u(i);
|
|
9210
9214
|
}, [i]), oe(() => {
|
|
9211
|
-
h(
|
|
9212
|
-
}, [
|
|
9213
|
-
const
|
|
9215
|
+
h(C);
|
|
9216
|
+
}, [C]);
|
|
9217
|
+
const $ = typeof s, v = "pds-popover", b = [
|
|
9214
9218
|
`${v}__trigger-custom`,
|
|
9215
|
-
|
|
9216
|
-
].join(" ").trim().replace(/\s+/g, " "), _ = s ? a : 0,
|
|
9219
|
+
$ === "string" ? `${v}__trigger-text` : ""
|
|
9220
|
+
].join(" ").trim().replace(/\s+/g, " "), _ = s ? a : 0, w = ae(null), { refs: x, floatingStyles: H, context: k, middlewareData: N } = Se({
|
|
9217
9221
|
placement: o,
|
|
9218
|
-
open:
|
|
9222
|
+
open: C,
|
|
9219
9223
|
onOpenChange(q) {
|
|
9220
9224
|
u(q), q || c();
|
|
9221
9225
|
},
|
|
@@ -9223,12 +9227,12 @@ const hn = () => {
|
|
|
9223
9227
|
$t(Ye + gs + _),
|
|
9224
9228
|
wt({ padding: 8 }),
|
|
9225
9229
|
yt({ padding: 8 }),
|
|
9226
|
-
l2({ element:
|
|
9230
|
+
l2({ element: w })
|
|
9227
9231
|
],
|
|
9228
9232
|
whileElementsMounted: Be
|
|
9229
|
-
}),
|
|
9233
|
+
}), M = () => {
|
|
9230
9234
|
u(!1), c && c();
|
|
9231
|
-
}, z = Ge(k), V = Te(k), S = De(k), { getReferenceProps:
|
|
9235
|
+
}, z = Ge(k), V = Te(k), S = De(k), { getReferenceProps: L, getFloatingProps: O } = Oe([
|
|
9232
9236
|
z,
|
|
9233
9237
|
V,
|
|
9234
9238
|
S
|
|
@@ -9255,7 +9259,7 @@ const hn = () => {
|
|
|
9255
9259
|
y({
|
|
9256
9260
|
className: `${v}__trigger`,
|
|
9257
9261
|
ref: x.setReference
|
|
9258
|
-
},
|
|
9262
|
+
}, L()),
|
|
9259
9263
|
s ? /* @__PURE__ */ e.createElement("span", { className: b }, s) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, d), /* @__PURE__ */ e.createElement(
|
|
9260
9264
|
P,
|
|
9261
9265
|
{
|
|
@@ -9275,7 +9279,7 @@ const hn = () => {
|
|
|
9275
9279
|
/* @__PURE__ */ e.createElement(
|
|
9276
9280
|
c2,
|
|
9277
9281
|
{
|
|
9278
|
-
ref:
|
|
9282
|
+
ref: w,
|
|
9279
9283
|
context: k,
|
|
9280
9284
|
height: Ye,
|
|
9281
9285
|
width: g1,
|
|
@@ -9289,7 +9293,7 @@ const hn = () => {
|
|
|
9289
9293
|
/* @__PURE__ */ e.createElement("div", { className: `${v}__container-inner` }, l && /* @__PURE__ */ e.createElement("div", { className: `${v}__title` }, l), t && /* @__PURE__ */ e.createElement("div", { className: `${v}__content` }, t), n && /* @__PURE__ */ e.createElement(
|
|
9290
9294
|
"button",
|
|
9291
9295
|
{
|
|
9292
|
-
onClick:
|
|
9296
|
+
onClick: M,
|
|
9293
9297
|
className: `${v}__close`
|
|
9294
9298
|
},
|
|
9295
9299
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
@@ -9330,19 +9334,19 @@ const hn = () => {
|
|
|
9330
9334
|
"size",
|
|
9331
9335
|
"className"
|
|
9332
9336
|
]);
|
|
9333
|
-
const g = s || Ue(), E = "pds-progress-bar",
|
|
9337
|
+
const g = s || Ue(), E = "pds-progress-bar", C = l ? `${E}__label` : "visually-hidden", u = `${E}__track ${E}__track--${d}`, $ = o > 100 ? 100 : o;
|
|
9334
9338
|
let v = "neutral";
|
|
9335
9339
|
t.forEach((x) => {
|
|
9336
9340
|
o >= x.percentage && (v = x.colorType);
|
|
9337
9341
|
});
|
|
9338
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, a), _ = a && c === "above",
|
|
9342
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: `${E}__message` }, a), _ = a && c === "above", w = a && c === "below";
|
|
9339
9343
|
return /* @__PURE__ */ e.createElement(
|
|
9340
9344
|
"div",
|
|
9341
9345
|
y({
|
|
9342
9346
|
className: [E, i].join(" ").trim().replace(/\s+/g, " "),
|
|
9343
|
-
style: { "--bar-percentage": `${
|
|
9347
|
+
style: { "--bar-percentage": `${$}%` }
|
|
9344
9348
|
}, h),
|
|
9345
|
-
/* @__PURE__ */ e.createElement("div", { id: g, className:
|
|
9349
|
+
/* @__PURE__ */ e.createElement("div", { id: g, className: C }, n),
|
|
9346
9350
|
(_ || r) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, _ && b, r && /* @__PURE__ */ e.createElement(
|
|
9347
9351
|
"div",
|
|
9348
9352
|
{
|
|
@@ -9359,7 +9363,7 @@ const hn = () => {
|
|
|
9359
9363
|
{
|
|
9360
9364
|
role: "progressbar",
|
|
9361
9365
|
"aria-labelledby": g,
|
|
9362
|
-
"aria-valuenow":
|
|
9366
|
+
"aria-valuenow": $,
|
|
9363
9367
|
className: u
|
|
9364
9368
|
},
|
|
9365
9369
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9367,13 +9371,13 @@ const hn = () => {
|
|
|
9367
9371
|
{
|
|
9368
9372
|
className: `${E}__bar`,
|
|
9369
9373
|
style: {
|
|
9370
|
-
width: `${
|
|
9374
|
+
width: `${$}%`,
|
|
9371
9375
|
backgroundColor: `var(${E1[v]})`
|
|
9372
9376
|
}
|
|
9373
9377
|
}
|
|
9374
9378
|
)
|
|
9375
9379
|
)),
|
|
9376
|
-
|
|
9380
|
+
w && b
|
|
9377
9381
|
);
|
|
9378
9382
|
}, Es = 3.815, _s = 4.678, bs = 5.96, vs = (i) => {
|
|
9379
9383
|
var h = i, {
|
|
@@ -9395,17 +9399,17 @@ const hn = () => {
|
|
|
9395
9399
|
"size",
|
|
9396
9400
|
"className"
|
|
9397
9401
|
]);
|
|
9398
|
-
const m = t || Ue(), f = "pds-progress-ring", g = c ? `${f}__label` : "visually-hidden", E = `${f}__loading-text ${f}__loading-text--${l}`,
|
|
9399
|
-
let u =
|
|
9400
|
-
l === "sm" && (u =
|
|
9401
|
-
const v = u / 2 -
|
|
9402
|
+
const m = t || Ue(), f = "pds-progress-ring", g = c ? `${f}__label` : "visually-hidden", E = `${f}__loading-text ${f}__loading-text--${l}`, C = (H) => H * 16;
|
|
9403
|
+
let u = C(_s), $ = 7;
|
|
9404
|
+
l === "sm" && (u = C(Es), $ = $ / 1.25), l === "lg" && (u = C(bs), $ = $ * 1.25);
|
|
9405
|
+
const v = u / 2 - $ / 2, b = `${v / 100}rem`, _ = 2 * Math.PI * v, w = _ - _ * a / 100;
|
|
9402
9406
|
let x;
|
|
9403
9407
|
return s ? x = s : o ? x = `${a}%` : x = "", /* @__PURE__ */ e.createElement(
|
|
9404
9408
|
"div",
|
|
9405
9409
|
y({
|
|
9406
9410
|
className: [f, r].join(" ").trim().replace(/\s+/g, " "),
|
|
9407
9411
|
style: {
|
|
9408
|
-
"--ring-stroke-dashoffset":
|
|
9412
|
+
"--ring-stroke-dashoffset": w,
|
|
9409
9413
|
"--ring-stroke-dasharray": _
|
|
9410
9414
|
}
|
|
9411
9415
|
}, d),
|
|
@@ -9432,7 +9436,7 @@ const hn = () => {
|
|
|
9432
9436
|
cx: u / 2,
|
|
9433
9437
|
cy: u / 2,
|
|
9434
9438
|
r: v,
|
|
9435
|
-
strokeWidth:
|
|
9439
|
+
strokeWidth: $
|
|
9436
9440
|
}
|
|
9437
9441
|
),
|
|
9438
9442
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9442,9 +9446,9 @@ const hn = () => {
|
|
|
9442
9446
|
cx: u / 2,
|
|
9443
9447
|
cy: u / 2,
|
|
9444
9448
|
r: v,
|
|
9445
|
-
strokeWidth:
|
|
9449
|
+
strokeWidth: $,
|
|
9446
9450
|
strokeDasharray: _,
|
|
9447
|
-
strokeDashoffset:
|
|
9451
|
+
strokeDashoffset: w,
|
|
9448
9452
|
transform: `rotate(-90 ${u / 2} ${u / 2})`
|
|
9449
9453
|
}
|
|
9450
9454
|
),
|
|
@@ -9591,14 +9595,14 @@ const hn = () => {
|
|
|
9591
9595
|
]);
|
|
9592
9596
|
const l = "pds-stepper", r = "pds-stepper-mobile", d = ae(), [i] = Nt(d), h = i.width, m = Number(
|
|
9593
9597
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9594
|
-
) * 16, f = -40, g = 2, E = 5,
|
|
9595
|
-
const
|
|
9598
|
+
) * 16, f = -40, g = 2, E = 5, C = t.length, u = t.map((b) => b.isCurrent).lastIndexOf(!0), $ = t.map((b, _) => {
|
|
9599
|
+
const w = _ + 1, x = _ === u, H = _ < u, k = b.hasError && x, M = (h - C * m) / (C + (C - 2)), z = m + M * 2, V = m + M, S = M + f * -1, L = _ === 0, O = _ === C - 1;
|
|
9596
9600
|
let D = z;
|
|
9597
|
-
(
|
|
9601
|
+
(L || O) && (D = V);
|
|
9598
9602
|
const W = `${l}__step`, Z = [W];
|
|
9599
9603
|
x && Z.push(`${W}--current`), H && Z.push(`${W}--complete`), k && Z.push(`${W}--error`);
|
|
9600
|
-
let U = `${s.step} ${
|
|
9601
|
-
H && (U = `${s.step} ${
|
|
9604
|
+
let U = `${s.step} ${w}`;
|
|
9605
|
+
H && (U = `${s.step} ${w}, ${s.completed}`), k && (U = `${s.step} ${w}, ${s.hasError}`);
|
|
9602
9606
|
const G = H ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9603
9607
|
P,
|
|
9604
9608
|
{
|
|
@@ -9628,13 +9632,13 @@ const hn = () => {
|
|
|
9628
9632
|
key: b.id,
|
|
9629
9633
|
id: b.id,
|
|
9630
9634
|
"aria-label": U,
|
|
9631
|
-
"aria-posinset":
|
|
9632
|
-
"aria-setsize":
|
|
9635
|
+
"aria-posinset": w,
|
|
9636
|
+
"aria-setsize": C,
|
|
9633
9637
|
"aria-current": x ? "step" : null,
|
|
9634
9638
|
className: Z.join(" ").trim().replace(/\s+/g, " "),
|
|
9635
9639
|
style: { width: D }
|
|
9636
9640
|
},
|
|
9637
|
-
!
|
|
9641
|
+
!L && /* @__PURE__ */ e.createElement(
|
|
9638
9642
|
"span",
|
|
9639
9643
|
{
|
|
9640
9644
|
className: `${l}__connector ${l}__connector--before`,
|
|
@@ -9654,13 +9658,13 @@ const hn = () => {
|
|
|
9654
9658
|
)
|
|
9655
9659
|
);
|
|
9656
9660
|
}), v = t.map((b, _) => {
|
|
9657
|
-
const
|
|
9661
|
+
const w = _ + 1, x = _ === u, H = _ === C - 1, k = b.hasError && x, N = t[u + 1] ? t[u + 1].label : null;
|
|
9658
9662
|
if (x) {
|
|
9659
|
-
const
|
|
9663
|
+
const M = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s.step, " "), w, " of ", C), z = w / C * 100, V = k ? {
|
|
9660
9664
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
9661
9665
|
} : {
|
|
9662
9666
|
"--pds-color-progress-partial": "var(--pds-color-stepper-completed)"
|
|
9663
|
-
}, S = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ",
|
|
9667
|
+
}, S = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", w, ", ", s.hasError);
|
|
9664
9668
|
return /* @__PURE__ */ e.createElement(
|
|
9665
9669
|
"div",
|
|
9666
9670
|
{
|
|
@@ -9674,7 +9678,7 @@ const hn = () => {
|
|
|
9674
9678
|
label: "Step progress",
|
|
9675
9679
|
size: "sm",
|
|
9676
9680
|
percentage: z,
|
|
9677
|
-
innerLabel:
|
|
9681
|
+
innerLabel: M,
|
|
9678
9682
|
style: V
|
|
9679
9683
|
}
|
|
9680
9684
|
)),
|
|
@@ -9689,19 +9693,19 @@ const hn = () => {
|
|
|
9689
9693
|
);
|
|
9690
9694
|
}
|
|
9691
9695
|
});
|
|
9692
|
-
if (
|
|
9696
|
+
if (C >= g && C <= E)
|
|
9693
9697
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9694
9698
|
"div",
|
|
9695
9699
|
y({
|
|
9696
9700
|
className: [l, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9697
|
-
"data-steps":
|
|
9701
|
+
"data-steps": C
|
|
9698
9702
|
}, a),
|
|
9699
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d },
|
|
9703
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d }, $)
|
|
9700
9704
|
), /* @__PURE__ */ e.createElement(
|
|
9701
9705
|
"div",
|
|
9702
9706
|
y({
|
|
9703
9707
|
className: [r, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9704
|
-
"data-steps":
|
|
9708
|
+
"data-steps": C
|
|
9705
9709
|
}, a),
|
|
9706
9710
|
/* @__PURE__ */ e.createElement("div", { className: `${r}__steps` }, v)
|
|
9707
9711
|
));
|
|
@@ -9746,50 +9750,50 @@ const hn = () => {
|
|
|
9746
9750
|
], g = `#${l} h2:not(.${c}), h3:not(.${c})`, E = () => {
|
|
9747
9751
|
const [k, N] = F([]);
|
|
9748
9752
|
return oe(() => {
|
|
9749
|
-
const
|
|
9753
|
+
const M = Array.from(
|
|
9750
9754
|
document.querySelectorAll(g)
|
|
9751
9755
|
);
|
|
9752
|
-
|
|
9756
|
+
M.map((V) => {
|
|
9753
9757
|
f.forEach((S) => {
|
|
9754
9758
|
V.id.includes(S) && (V.id = V.id.replaceAll(S, "-"));
|
|
9755
9759
|
});
|
|
9756
|
-
}),
|
|
9760
|
+
}), M.map((V) => {
|
|
9757
9761
|
const S = `item-${Ue()}`;
|
|
9758
9762
|
V.id || (V.id = S);
|
|
9759
9763
|
});
|
|
9760
|
-
const z =
|
|
9764
|
+
const z = C(M);
|
|
9761
9765
|
N(z);
|
|
9762
9766
|
}, []), { nestedHeadings: k };
|
|
9763
|
-
},
|
|
9767
|
+
}, C = (k) => {
|
|
9764
9768
|
const N = [];
|
|
9765
|
-
return k.forEach((
|
|
9766
|
-
const { innerText: z, id: V } =
|
|
9767
|
-
|
|
9769
|
+
return k.forEach((M) => {
|
|
9770
|
+
const { innerText: z, id: V } = M;
|
|
9771
|
+
M.nodeName === "H2" ? N.push({ id: V, title: z, items: [] }) : M.nodeName === "H3" && N.length > 0 && N[N.length - 1].items.push({
|
|
9768
9772
|
id: V,
|
|
9769
9773
|
title: z
|
|
9770
9774
|
});
|
|
9771
9775
|
}), N;
|
|
9772
|
-
}, { nestedHeadings: u } = E(), [
|
|
9776
|
+
}, { nestedHeadings: u } = E(), [$, v] = F();
|
|
9773
9777
|
((k) => {
|
|
9774
9778
|
const N = ae({});
|
|
9775
9779
|
oe(() => {
|
|
9776
|
-
const
|
|
9780
|
+
const M = (S) => {
|
|
9777
9781
|
N.current = S.reduce((D, W) => (D[W.target.id] = W, D), N.current);
|
|
9778
|
-
const
|
|
9782
|
+
const L = [];
|
|
9779
9783
|
Object.keys(N.current).forEach((D) => {
|
|
9780
9784
|
const W = N.current[D];
|
|
9781
|
-
W.isIntersecting &&
|
|
9785
|
+
W.isIntersecting && L.push(W);
|
|
9782
9786
|
});
|
|
9783
9787
|
const O = (D) => V.findIndex((W) => W.id === D);
|
|
9784
|
-
if (
|
|
9785
|
-
k(
|
|
9786
|
-
else if (
|
|
9787
|
-
const D =
|
|
9788
|
+
if (L.length === 1)
|
|
9789
|
+
k(L[0].target.id);
|
|
9790
|
+
else if (L.length > 1) {
|
|
9791
|
+
const D = L.sort(
|
|
9788
9792
|
(W, Z) => O(W.target.id) - O(Z.target.id)
|
|
9789
9793
|
);
|
|
9790
9794
|
k(D[0].target.id);
|
|
9791
9795
|
}
|
|
9792
|
-
}, z = new IntersectionObserver(
|
|
9796
|
+
}, z = new IntersectionObserver(M, {
|
|
9793
9797
|
rootMargin: "0px 0px -20% 0px"
|
|
9794
9798
|
}), V = Array.from(
|
|
9795
9799
|
document.querySelectorAll(g)
|
|
@@ -9799,20 +9803,20 @@ const hn = () => {
|
|
|
9799
9803
|
})(v);
|
|
9800
9804
|
const _ = (k) => {
|
|
9801
9805
|
typeof window != "undefined" && window.location.hash !== `#${k}` && window.history.pushState({}, "", `#${k}`);
|
|
9802
|
-
},
|
|
9806
|
+
}, w = (k) => {
|
|
9803
9807
|
document.querySelector(`#${k}`).scrollIntoView({
|
|
9804
9808
|
behavior: "smooth",
|
|
9805
9809
|
block: "start"
|
|
9806
9810
|
});
|
|
9807
9811
|
}, x = (k, N) => {
|
|
9808
|
-
k.preventDefault(), t && _(N),
|
|
9812
|
+
k.preventDefault(), t && _(N), w(N);
|
|
9809
9813
|
}, H = ({ headings: k }) => /* @__PURE__ */ e.createElement("ul", { className: `${m}__list ${m}__list--top-level` }, k.map((N) => /* @__PURE__ */ e.createElement("li", { key: N.id, className: `${m}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9810
9814
|
"a",
|
|
9811
9815
|
{
|
|
9812
|
-
className: N.id ===
|
|
9816
|
+
className: N.id === $ ? `${m}__link ${m}__link--active` : `${m}__link`,
|
|
9813
9817
|
href: `#${N.id}`,
|
|
9814
|
-
onClick: (
|
|
9815
|
-
x(
|
|
9818
|
+
onClick: (M) => {
|
|
9819
|
+
x(M, N.id);
|
|
9816
9820
|
}
|
|
9817
9821
|
},
|
|
9818
9822
|
N.title
|
|
@@ -9821,16 +9825,16 @@ const hn = () => {
|
|
|
9821
9825
|
{
|
|
9822
9826
|
className: `${m}__list ${m}__list--second-level`
|
|
9823
9827
|
},
|
|
9824
|
-
N.items.map((
|
|
9828
|
+
N.items.map((M) => /* @__PURE__ */ e.createElement("li", { key: M.id, className: `${m}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9825
9829
|
"a",
|
|
9826
9830
|
{
|
|
9827
|
-
className:
|
|
9828
|
-
href: `#${
|
|
9831
|
+
className: M.id === $ ? `${m}__link ${m}__link--active` : `${m}__link`,
|
|
9832
|
+
href: `#${M.id}`,
|
|
9829
9833
|
onClick: (z) => {
|
|
9830
|
-
x(z,
|
|
9834
|
+
x(z, M.id);
|
|
9831
9835
|
}
|
|
9832
9836
|
},
|
|
9833
|
-
|
|
9837
|
+
M.title
|
|
9834
9838
|
)))
|
|
9835
9839
|
))));
|
|
9836
9840
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9840,7 +9844,7 @@ const hn = () => {
|
|
|
9840
9844
|
className: R([m, r])
|
|
9841
9845
|
}, d),
|
|
9842
9846
|
a && /* @__PURE__ */ e.createElement(
|
|
9843
|
-
|
|
9847
|
+
Lt,
|
|
9844
9848
|
{
|
|
9845
9849
|
baseClass: m,
|
|
9846
9850
|
className: `${o ? null : "visually-hidden"}`,
|
|
@@ -9848,7 +9852,7 @@ const hn = () => {
|
|
|
9848
9852
|
},
|
|
9849
9853
|
a
|
|
9850
9854
|
),
|
|
9851
|
-
/* @__PURE__ */ e.createElement(H, { headings: u, activeID:
|
|
9855
|
+
/* @__PURE__ */ e.createElement(H, { headings: u, activeID: $ })
|
|
9852
9856
|
);
|
|
9853
9857
|
}, wn = (r) => {
|
|
9854
9858
|
var d = r, {
|
|
@@ -9872,9 +9876,9 @@ const hn = () => {
|
|
|
9872
9876
|
a !== void 0 && m(a);
|
|
9873
9877
|
}, [a]);
|
|
9874
9878
|
const f = (u) => {
|
|
9875
|
-
const
|
|
9876
|
-
if (
|
|
9877
|
-
const v = parseInt(
|
|
9879
|
+
const $ = u.currentTarget.getAttribute("data-tabnumber");
|
|
9880
|
+
if ($) {
|
|
9881
|
+
const v = parseInt($, 10);
|
|
9878
9882
|
m(v);
|
|
9879
9883
|
}
|
|
9880
9884
|
}, g = ae([]);
|
|
@@ -9890,26 +9894,26 @@ const hn = () => {
|
|
|
9890
9894
|
return;
|
|
9891
9895
|
}
|
|
9892
9896
|
}, [h]);
|
|
9893
|
-
const E = (u,
|
|
9897
|
+
const E = (u, $) => {
|
|
9894
9898
|
const v = h;
|
|
9895
|
-
let b = g.current[
|
|
9896
|
-
b || (b =
|
|
9897
|
-
},
|
|
9898
|
-
const
|
|
9899
|
-
E((h + 1) %
|
|
9899
|
+
let b = g.current[$ === "next" ? v + 1 < g.current.length ? v + 1 : 0 : v - 1 >= 0 ? v - 1 : g.current.length - 1];
|
|
9900
|
+
b || (b = $ == "next" ? g.current[u + 1] == null ? g.current[0] : g.current[u + 1] : g.current[u - 1]), b.focus();
|
|
9901
|
+
}, C = (u) => {
|
|
9902
|
+
const $ = g.current.length, v = () => {
|
|
9903
|
+
E((h + 1) % $, "next"), m(h + 1);
|
|
9900
9904
|
}, b = () => {
|
|
9901
|
-
E((h - 1 +
|
|
9905
|
+
E((h - 1 + $) % $, "prev"), m(h - 1);
|
|
9902
9906
|
}, _ = () => {
|
|
9903
9907
|
E(0), m(0);
|
|
9904
|
-
},
|
|
9905
|
-
E(
|
|
9908
|
+
}, w = () => {
|
|
9909
|
+
E($ - 1), m($ - 1);
|
|
9906
9910
|
}, x = () => {
|
|
9907
9911
|
g.current[h].focus();
|
|
9908
9912
|
}, k = {
|
|
9909
9913
|
ArrowRight: v,
|
|
9910
9914
|
ArrowLeft: b,
|
|
9911
9915
|
Home: _,
|
|
9912
|
-
End:
|
|
9916
|
+
End: w,
|
|
9913
9917
|
Space: x,
|
|
9914
9918
|
Enter: x
|
|
9915
9919
|
}[u.code];
|
|
@@ -9923,53 +9927,53 @@ const hn = () => {
|
|
|
9923
9927
|
"aria-label": t,
|
|
9924
9928
|
"aria-orientation": "horizontal"
|
|
9925
9929
|
},
|
|
9926
|
-
c.map(({ disabled: u, icon:
|
|
9930
|
+
c.map(({ disabled: u, icon: $, tabId: v, tabLabel: b, tally: _ }, w) => /* @__PURE__ */ e.createElement(
|
|
9927
9931
|
"button",
|
|
9928
9932
|
{
|
|
9929
9933
|
className: `${i}__tab`,
|
|
9930
|
-
"aria-selected":
|
|
9931
|
-
"data-tabnumber":
|
|
9934
|
+
"aria-selected": w == h,
|
|
9935
|
+
"data-tabnumber": w,
|
|
9932
9936
|
role: "tab",
|
|
9933
9937
|
id: v,
|
|
9934
9938
|
onKeyDown: (x) => {
|
|
9935
|
-
x.preventDefault(),
|
|
9939
|
+
x.preventDefault(), C(x);
|
|
9936
9940
|
},
|
|
9937
9941
|
key: b,
|
|
9938
|
-
ref: (x) => u ? null : g.current[
|
|
9939
|
-
"aria-controls": `tabpanel_${
|
|
9940
|
-
tabIndex: h ===
|
|
9942
|
+
ref: (x) => u ? null : g.current[w] = x,
|
|
9943
|
+
"aria-controls": `tabpanel_${w}`,
|
|
9944
|
+
tabIndex: h === w ? 1 : -1,
|
|
9941
9945
|
"aria-disabled": !!u,
|
|
9942
9946
|
onClick: u ? null : f,
|
|
9943
9947
|
type: "button"
|
|
9944
9948
|
},
|
|
9945
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
9949
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(P, { iconName: $, iconSize: "md" }) : null, " ", b, c[w].tally ? /* @__PURE__ */ e.createElement(Gt, { label: _.label, type: _.type }) : null)
|
|
9946
9950
|
))
|
|
9947
|
-
), c.map(({ disabled: u, icon:
|
|
9951
|
+
), c.map(({ disabled: u, icon: $, panelContent: v, tabLabel: b, tally: _ }, w) => /* @__PURE__ */ e.createElement(
|
|
9948
9952
|
"div",
|
|
9949
9953
|
{
|
|
9950
9954
|
className: `${i}__panel`,
|
|
9951
9955
|
role: "tabpanel",
|
|
9952
|
-
key:
|
|
9953
|
-
id: `${i}__tab--${
|
|
9954
|
-
"aria-labelledby": `${i}__tab--${
|
|
9956
|
+
key: w,
|
|
9957
|
+
id: `${i}__tab--${w}`,
|
|
9958
|
+
"aria-labelledby": `${i}__tab--${w}`
|
|
9955
9959
|
},
|
|
9956
9960
|
/* @__PURE__ */ e.createElement(
|
|
9957
9961
|
"button",
|
|
9958
9962
|
{
|
|
9959
9963
|
className: `${i}__trigger`,
|
|
9960
|
-
"aria-selected":
|
|
9964
|
+
"aria-selected": w == h,
|
|
9961
9965
|
role: "tab",
|
|
9962
|
-
"data-tabnumber":
|
|
9966
|
+
"data-tabnumber": w,
|
|
9963
9967
|
key: b,
|
|
9964
|
-
onKeyDown:
|
|
9968
|
+
onKeyDown: C,
|
|
9965
9969
|
"aria-disabled": !!u,
|
|
9966
|
-
"aria-controls": `tabpanel_${
|
|
9967
|
-
tabIndex: h ===
|
|
9970
|
+
"aria-controls": `tabpanel_${w}`,
|
|
9971
|
+
tabIndex: h === w ? 1 : -1,
|
|
9968
9972
|
onClick: u ? null : f,
|
|
9969
9973
|
type: "button"
|
|
9970
9974
|
},
|
|
9971
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
9972
|
-
|
|
9975
|
+
/* @__PURE__ */ e.createElement("div", { key: $, className: `${i}__tab-label` }, $ ? /* @__PURE__ */ e.createElement(P, { iconSize: "md", iconName: $ }) : null, " ", b, c[w].tally ? /* @__PURE__ */ e.createElement(Gt, { label: _.label, type: _.type }) : null),
|
|
9976
|
+
w == h ? /* @__PURE__ */ e.createElement(
|
|
9973
9977
|
P,
|
|
9974
9978
|
{
|
|
9975
9979
|
iconName: "angleUp",
|
|
@@ -9989,7 +9993,7 @@ const hn = () => {
|
|
|
9989
9993
|
"section",
|
|
9990
9994
|
{
|
|
9991
9995
|
className: `${i}__panel-content`,
|
|
9992
|
-
hidden:
|
|
9996
|
+
hidden: w != h
|
|
9993
9997
|
},
|
|
9994
9998
|
v
|
|
9995
9999
|
)
|
|
@@ -10038,15 +10042,15 @@ const Cs = (t) => {
|
|
|
10038
10042
|
"tagLabel",
|
|
10039
10043
|
"className"
|
|
10040
10044
|
]);
|
|
10041
|
-
const [h, m] = F(!0), f = "pds-tag", g = c ? `${f}--${c}` : `${f}--${Cs(o)}`, E = h ? null : "pds-tag--hide",
|
|
10045
|
+
const [h, m] = F(!0), f = "pds-tag", g = c ? `${f}--${c}` : `${f}--${Cs(o)}`, E = h ? null : "pds-tag--hide", C = () => {
|
|
10042
10046
|
m((b) => !b);
|
|
10043
10047
|
};
|
|
10044
|
-
let u,
|
|
10045
|
-
return t && !s && qe(t) ? (u = t.type,
|
|
10048
|
+
let u, $, v;
|
|
10049
|
+
return t && !s && qe(t) ? (u = t.type, $ = t.props.href ? "href" : "to", v = $ === "href" ? t.props.href : t.props.to) : (u = "span", $ = null, v = null), /* @__PURE__ */ e.createElement(
|
|
10046
10050
|
u,
|
|
10047
10051
|
y({
|
|
10048
|
-
href:
|
|
10049
|
-
to:
|
|
10052
|
+
href: $ === "href" ? v : null,
|
|
10053
|
+
to: $ === "to" ? v : null,
|
|
10050
10054
|
className: [f, g, E, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10051
10055
|
}, r),
|
|
10052
10056
|
/* @__PURE__ */ e.createElement("span", { className: `${f}__label`, title: o }, $s(o, 20)),
|
|
@@ -10057,7 +10061,7 @@ const Cs = (t) => {
|
|
|
10057
10061
|
className: `${f}__remove`,
|
|
10058
10062
|
"aria-label": `${a}: ${o}`,
|
|
10059
10063
|
onClick: () => {
|
|
10060
|
-
|
|
10064
|
+
C(), n();
|
|
10061
10065
|
}
|
|
10062
10066
|
},
|
|
10063
10067
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10096,7 +10100,7 @@ const Cs = (t) => {
|
|
|
10096
10100
|
}, r),
|
|
10097
10101
|
a && /* @__PURE__ */ e.createElement("div", { className: `${h}__image` }, /* @__PURE__ */ e.createElement("img", { src: a, alt: "" })),
|
|
10098
10102
|
n && /* @__PURE__ */ e.createElement(
|
|
10099
|
-
|
|
10103
|
+
Lt,
|
|
10100
10104
|
{
|
|
10101
10105
|
baseClass: h,
|
|
10102
10106
|
className: "pds-ts-xl",
|
|
@@ -10146,8 +10150,8 @@ const Cs = (t) => {
|
|
|
10146
10150
|
}
|
|
10147
10151
|
))
|
|
10148
10152
|
);
|
|
10149
|
-
}, kn = (
|
|
10150
|
-
var u =
|
|
10153
|
+
}, kn = (C) => {
|
|
10154
|
+
var u = C, {
|
|
10151
10155
|
alignContent: t = "flex-start",
|
|
10152
10156
|
alignItems: s = "stretch",
|
|
10153
10157
|
flexDirection: n = "row",
|
|
@@ -10181,15 +10185,15 @@ const Cs = (t) => {
|
|
|
10181
10185
|
let v = A1() <= 640;
|
|
10182
10186
|
const b = $e(Ae);
|
|
10183
10187
|
b && (v = b.isMobile);
|
|
10184
|
-
const _ = "pds-flex",
|
|
10188
|
+
const _ = "pds-flex", w = `${_}-container`, x = v ? `${w}--mobile` : null;
|
|
10185
10189
|
let H = null;
|
|
10186
10190
|
v ? H = `${_}-direction--${d}` : n !== "row" && (H = `${_}-direction--${n}`);
|
|
10187
10191
|
let k = null;
|
|
10188
10192
|
v ? i ? i !== "nowrap" && (k = `${_}-wrap--${i}`) : a !== "nowrap" && (k = `${_}-wrap--${a}`) : a !== "nowrap" && (k = `${_}-wrap--${a}`);
|
|
10189
10193
|
let N = null;
|
|
10190
10194
|
v ? m ? m !== "flex-start" && (N = `${_}-justify--${m}`) : o !== "flex-start" && (N = `${_}-justify--${o}`) : o !== "flex-start" && (N = `${_}-justify--${o}`);
|
|
10191
|
-
let
|
|
10192
|
-
v ? l ? l !== "stretch" && (
|
|
10195
|
+
let M = null;
|
|
10196
|
+
v ? l ? l !== "stretch" && (M = `${_}-align-items--${l}`) : s !== "stretch" && (M = `${_}-align-items--${s}`) : s !== "stretch" && (M = `${_}-align-items--${s}`);
|
|
10193
10197
|
let z = null;
|
|
10194
10198
|
v ? r ? r !== "flex-start" && (z = `${_}-align-content--${r}`) : t !== "flex-start" && (z = `${_}-align-content--${t}`) : t !== "flex-start" && (z = `${_}-align-content--${t}`);
|
|
10195
10199
|
let V = null;
|
|
@@ -10197,12 +10201,12 @@ const Cs = (t) => {
|
|
|
10197
10201
|
"div",
|
|
10198
10202
|
y({
|
|
10199
10203
|
className: R([
|
|
10200
|
-
|
|
10204
|
+
w,
|
|
10201
10205
|
x,
|
|
10202
10206
|
H,
|
|
10203
10207
|
k,
|
|
10204
10208
|
N,
|
|
10205
|
-
|
|
10209
|
+
M,
|
|
10206
10210
|
z,
|
|
10207
10211
|
V,
|
|
10208
10212
|
g != null ? g : ""
|
|
@@ -10234,13 +10238,13 @@ const Cs = (t) => {
|
|
|
10234
10238
|
const g = $e(Ae);
|
|
10235
10239
|
g && (f = g.isMobile);
|
|
10236
10240
|
const E = kt(t);
|
|
10237
|
-
let
|
|
10238
|
-
c === "narrow" && (
|
|
10239
|
-
const
|
|
10241
|
+
let C = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9", u = "pds-grid-item pds-grid-item--lg-3";
|
|
10242
|
+
c === "narrow" && (C = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", u = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), c === "wide" && (C = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", u = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
10243
|
+
const $ = /* @__PURE__ */ e.createElement(
|
|
10240
10244
|
"div",
|
|
10241
10245
|
{
|
|
10242
10246
|
key: "content",
|
|
10243
|
-
className: `${i}__main ${f ? "pds-grid-item" :
|
|
10247
|
+
className: `${i}__main ${f ? "pds-grid-item" : C}`
|
|
10244
10248
|
},
|
|
10245
10249
|
E.content
|
|
10246
10250
|
), v = /* @__PURE__ */ e.createElement(
|
|
@@ -10261,9 +10265,9 @@ const Cs = (t) => {
|
|
|
10261
10265
|
o != null ? o : ""
|
|
10262
10266
|
])
|
|
10263
10267
|
}, l),
|
|
10264
|
-
f ? a === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, v,
|
|
10268
|
+
f ? a === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, v, $) : /* @__PURE__ */ e.createElement(e.Fragment, null, $, v) : n === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, v, $) : /* @__PURE__ */ e.createElement(e.Fragment, null, $, v)
|
|
10265
10269
|
);
|
|
10266
|
-
},
|
|
10270
|
+
}, Ln = (a) => {
|
|
10267
10271
|
var c = a, {
|
|
10268
10272
|
children: t,
|
|
10269
10273
|
className: s
|
|
@@ -10299,7 +10303,7 @@ const Cs = (t) => {
|
|
|
10299
10303
|
),
|
|
10300
10304
|
r && /* @__PURE__ */ e.createElement("div", { className: `${m}__form-container` }, r)
|
|
10301
10305
|
);
|
|
10302
|
-
},
|
|
10306
|
+
}, Mn = (c) => {
|
|
10303
10307
|
var o = c, {
|
|
10304
10308
|
children: t,
|
|
10305
10309
|
gridGap: s = "standard",
|
|
@@ -10359,21 +10363,21 @@ const Cs = (t) => {
|
|
|
10359
10363
|
case "one-third-end":
|
|
10360
10364
|
g = f.concat(m), E = f.concat(h);
|
|
10361
10365
|
}
|
|
10362
|
-
const
|
|
10366
|
+
const C = {};
|
|
10363
10367
|
e.Children.forEach(t, (v) => {
|
|
10364
10368
|
if (e.isValidElement(v)) {
|
|
10365
10369
|
const b = v.props.slot;
|
|
10366
|
-
b && (
|
|
10370
|
+
b && (C[b] ? C[b].push(v) : C[b] = [v]);
|
|
10367
10371
|
}
|
|
10368
10372
|
});
|
|
10369
|
-
const u =
|
|
10373
|
+
const u = C["first-item"], $ = C["second-item"];
|
|
10370
10374
|
return /* @__PURE__ */ e.createElement(
|
|
10371
10375
|
"div",
|
|
10372
10376
|
y({
|
|
10373
10377
|
className: R([r, d, a])
|
|
10374
10378
|
}, c),
|
|
10375
10379
|
/* @__PURE__ */ e.createElement("div", { className: g.join(" ").trim() }, u),
|
|
10376
|
-
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() },
|
|
10380
|
+
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() }, $)
|
|
10377
10381
|
);
|
|
10378
10382
|
};
|
|
10379
10383
|
export {
|
|
@@ -10395,7 +10399,7 @@ export {
|
|
|
10395
10399
|
ts as Combobox,
|
|
10396
10400
|
p1 as ComparisonList,
|
|
10397
10401
|
mt as Container,
|
|
10398
|
-
|
|
10402
|
+
Mt as DashboardContext,
|
|
10399
10403
|
en as DashboardLayout,
|
|
10400
10404
|
tn as DashboardNav,
|
|
10401
10405
|
sn as DashboardSearch,
|
|
@@ -10404,7 +10408,7 @@ export {
|
|
|
10404
10408
|
qs as ExpansionPanelGroup,
|
|
10405
10409
|
Us as FileUpload,
|
|
10406
10410
|
kn as FlexContainer,
|
|
10407
|
-
|
|
10411
|
+
L1 as FooterHeading,
|
|
10408
10412
|
v2 as FooterLinks,
|
|
10409
10413
|
Hn as GlobalWrapper,
|
|
10410
10414
|
C2 as Heading,
|
|
@@ -10451,7 +10455,7 @@ export {
|
|
|
10451
10455
|
t1 as StatusBadge,
|
|
10452
10456
|
vn as StatusIndicator,
|
|
10453
10457
|
Cn as Stepper,
|
|
10454
|
-
|
|
10458
|
+
Ln as StepperLayout,
|
|
10455
10459
|
Xs as Switch,
|
|
10456
10460
|
cn as TabMenu,
|
|
10457
10461
|
O2 as Table,
|
|
@@ -10461,7 +10465,7 @@ export {
|
|
|
10461
10465
|
Gt as Tally,
|
|
10462
10466
|
q1 as TextInput,
|
|
10463
10467
|
Ys as Textarea,
|
|
10464
|
-
|
|
10468
|
+
Mn as ThreeItemLayout,
|
|
10465
10469
|
ws as Tile,
|
|
10466
10470
|
Nn as TileGrid,
|
|
10467
10471
|
hs as Toast,
|