@pantheon-systems/pds-toolkit-react 1.0.0-dev.191 → 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/components/buttons/SegmentedButton/SegmentedButton.d.ts +3 -2
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +7 -3
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +4 -0
- package/_dist/index.js +839 -834
- package/_dist/index.js.map +1 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var I = (t, s) => {
|
|
|
19
19
|
s.indexOf(a) < 0 && r1.call(t, a) && (n[a] = t[a]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import e, { createContext as Ct, Children as J1, isValidElement as qe, useState as F, useContext as $e, forwardRef as je, useRef as ae, useEffect as
|
|
22
|
+
import e, { createContext as Ct, Children as J1, isValidElement as qe, useState as F, useContext as $e, forwardRef as je, useRef as ae, useEffect as oe, useCallback as Xt, cloneElement as We, useLayoutEffect as e2, createElement as t2, createRef as s2 } from "react";
|
|
23
23
|
import p from "prop-types";
|
|
24
24
|
import { NavLink as b1, MemoryRouter as n2 } from "react-router-dom";
|
|
25
25
|
import { useFloating as Se, offset as $t, flip as wt, shift as yt, autoUpdate as Be, useHover as gt, useFocus as v1, useDismiss as Te, useRole as De, useInteractions as Oe, FloatingPortal as C1, useId as $1, useClick as Ge, useListNavigation as ot, useTransitionStyles as Ke, safePolygon as w1, FloatingOverlay as a2, FloatingFocusManager as y1, arrow as l2, FloatingArrow as c2 } from "@floating-ui/react";
|
|
@@ -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,13 +1116,13 @@ 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(""), [
|
|
1125
|
-
|
|
1124
|
+
]), [b, _] = F(""), [w, x] = F(null), [H, k] = F(null), N = ae(null), M = ae(null), z = ae("");
|
|
1125
|
+
oe(() => {
|
|
1126
1126
|
switch (c && _(G(c)), z.numExtra = "", s) {
|
|
1127
1127
|
case "credit-card":
|
|
1128
1128
|
z.numExtra = 3, z.current = Ot;
|
|
@@ -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,16 +1163,16 @@ 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
|
-
const
|
|
1175
|
-
return
|
|
1174
|
+
const X = {};
|
|
1175
|
+
return X.first = A.substring(0, 4), X.middle = A.substring(4, 10), X.middle.length > 0 && (X.middle = ` ${X.middle}`), X.last = A.substring(10), X.last.length > 0 && (X.last = ` ${X.last}`), `${X.first}${X.middle}${X.last}`;
|
|
1176
1176
|
}
|
|
1177
1177
|
z.numExtra = 3, z.current = Ot;
|
|
1178
1178
|
const q = new RegExp(".{1,4}", "g");
|
|
@@ -1182,18 +1182,18 @@ 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}`);
|
|
1189
|
-
let
|
|
1190
|
-
return
|
|
1189
|
+
let Y = A.substring(6);
|
|
1190
|
+
return Y.length > 0 && (Y = `-${Y}`), `${j}${q}${Y}`;
|
|
1191
1191
|
}
|
|
1192
1192
|
return A;
|
|
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,35 +1343,35 @@ const N2 = (g) => {
|
|
|
1343
1343
|
"validationFunction",
|
|
1344
1344
|
"className"
|
|
1345
1345
|
]);
|
|
1346
|
-
const
|
|
1347
|
-
|
|
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
|
+
oe(() => {
|
|
1348
1348
|
c && t && _(t(c));
|
|
1349
1349
|
}, []);
|
|
1350
1350
|
const S = () => {
|
|
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,
|
|
1729
|
-
let
|
|
1730
|
-
_ === "search" && (
|
|
1731
|
-
switch (l && V(ee(l)), j.numExtra = "",
|
|
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
|
+
let X = null;
|
|
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;
|
|
@@ -1737,11 +1737,11 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1737
1737
|
break;
|
|
1738
1738
|
}
|
|
1739
1739
|
}, []);
|
|
1740
|
-
let
|
|
1741
|
-
(
|
|
1740
|
+
let re = null;
|
|
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,44 +1755,44 @@ 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
|
}
|
|
1769
1769
|
}
|
|
1770
1770
|
return se;
|
|
1771
1771
|
};
|
|
1772
|
-
|
|
1773
|
-
l && s &&
|
|
1772
|
+
oe(() => {
|
|
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) {
|
|
1797
1797
|
const se = (ce) => {
|
|
1798
1798
|
ce.key === "/" && (/^(?:input|textarea|select|button)$/i.test(ce.target.tagName) || (ce.preventDefault(), document.getElementById(o).focus()));
|
|
@@ -1805,13 +1805,13 @@ 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,
|
|
1812
1812
|
y({
|
|
1813
1813
|
className: H,
|
|
1814
|
-
decorator:
|
|
1814
|
+
decorator: X,
|
|
1815
1815
|
disabled: n,
|
|
1816
1816
|
id: o,
|
|
1817
1817
|
inputFieldType: "text",
|
|
@@ -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),
|
|
@@ -1829,24 +1829,24 @@ const Rt = 16, m1 = 10, k2 = (N) => {
|
|
|
1829
1829
|
/* @__PURE__ */ e.createElement(
|
|
1830
1830
|
"input",
|
|
1831
1831
|
{
|
|
1832
|
-
className: [q,
|
|
1832
|
+
className: [q, Y].join(" ").trim().replace(/\s+/g, " "),
|
|
1833
1833
|
type: _,
|
|
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,
|
|
1841
1841
|
onBlur: ue,
|
|
1842
1842
|
onChange: we,
|
|
1843
|
-
onFocus:
|
|
1843
|
+
onFocus: ie,
|
|
1844
1844
|
ref: K,
|
|
1845
1845
|
"aria-invalid": W === "error",
|
|
1846
1846
|
"aria-describedby": ke ? `${o}__message` : null,
|
|
1847
1847
|
autoComplete: _ === "password" ? "off" : t,
|
|
1848
|
-
maxLength:
|
|
1849
|
-
minLength:
|
|
1848
|
+
maxLength: re,
|
|
1849
|
+
minLength: re
|
|
1850
1850
|
}
|
|
1851
1851
|
),
|
|
1852
1852
|
S && /* @__PURE__ */ e.createElement("div", { className: "pds-input__counter" }, S),
|
|
@@ -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,28 +2226,28 @@ 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
|
|
2239
|
-
}), ee = Ge(
|
|
2239
|
+
}), ee = Ge(X, {
|
|
2240
2240
|
enabled: !s,
|
|
2241
2241
|
event: "mousedown"
|
|
2242
|
-
}), pe = Te(
|
|
2243
|
-
listRef:
|
|
2242
|
+
}), pe = Te(X), ie = De(X, { role: "listbox" }), le = ot(X, {
|
|
2243
|
+
listRef: Y,
|
|
2244
2244
|
activeIndex: G,
|
|
2245
2245
|
selectedIndex: T,
|
|
2246
2246
|
onNavigate: K,
|
|
2247
2247
|
loop: !0
|
|
2248
2248
|
}), { getReferenceProps: we, getFloatingProps: ue, getItemProps: he } = Oe(
|
|
2249
|
-
[
|
|
2250
|
-
), { isMounted: te, styles: fe } = Ke(
|
|
2249
|
+
[ie, pe, le, ee]
|
|
2250
|
+
), { isMounted: te, styles: fe } = Ke(X, {
|
|
2251
2251
|
duration: {
|
|
2252
2252
|
open: 300,
|
|
2253
2253
|
close: 150
|
|
@@ -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
|
-
|
|
2280
|
-
}, He = h.map((_e,
|
|
2279
|
+
re.reference.current.focus();
|
|
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
|
-
|
|
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,10 +2325,10 @@ 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
|
-
ref:
|
|
2331
|
+
ref: re.setReference,
|
|
2332
2332
|
"aria-labelledby": "select-label",
|
|
2333
2333
|
"aria-autocomplete": "none"
|
|
2334
2334
|
}, we({
|
|
@@ -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
|
-
ref:
|
|
2346
|
-
className: `${
|
|
2345
|
+
ref: re.setFloating,
|
|
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,
|
|
@@ -2600,7 +2600,7 @@ const V2 = (s) => {
|
|
|
2600
2600
|
},
|
|
2601
2601
|
[n, a]
|
|
2602
2602
|
), [f] = F(h);
|
|
2603
|
-
return
|
|
2603
|
+
return oe(() => {
|
|
2604
2604
|
x2(
|
|
2605
2605
|
h,
|
|
2606
2606
|
o,
|
|
@@ -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
|
);
|
|
@@ -3398,7 +3402,7 @@ const F2 = p.exact({
|
|
|
3398
3402
|
const [t, s] = F(
|
|
3399
3403
|
window.innerWidth !== void 0 ? window.innerWidth : 1024
|
|
3400
3404
|
);
|
|
3401
|
-
return
|
|
3405
|
+
return oe(() => {
|
|
3402
3406
|
s(window.innerWidth);
|
|
3403
3407
|
const n = () => {
|
|
3404
3408
|
s(window.innerWidth);
|
|
@@ -3420,7 +3424,7 @@ const F2 = p.exact({
|
|
|
3420
3424
|
mobileMenuMaxWidth: s,
|
|
3421
3425
|
windowWidth: n
|
|
3422
3426
|
};
|
|
3423
|
-
return
|
|
3427
|
+
return oe(() => {
|
|
3424
3428
|
a ? document.body.classList.add("pds-no-scroll-x") : document.body.classList.remove("pds-no-scroll-x");
|
|
3425
3429
|
}, [a]), /* @__PURE__ */ e.createElement(Ae.Provider, { value: o }, t);
|
|
3426
3430
|
}, u1 = [
|
|
@@ -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,23 +3633,23 @@ 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;
|
|
3639
3643
|
return B && (B.dataset.fuiPlacement = k), q && (setTimeout(() => {
|
|
3640
3644
|
B.focus();
|
|
3641
|
-
}, 0),
|
|
3645
|
+
}, 0), Y(!1)), () => {
|
|
3642
3646
|
window.removeEventListener("mousedown", Ee, !0);
|
|
3643
3647
|
};
|
|
3644
3648
|
}, [A, k]);
|
|
3645
3649
|
const ue = (B, ne) => {
|
|
3646
|
-
|
|
3650
|
+
re(B), pe(ne);
|
|
3647
3651
|
}, he = () => {
|
|
3648
|
-
j(!0),
|
|
3652
|
+
j(!0), Y(!0);
|
|
3649
3653
|
}, te = () => {
|
|
3650
3654
|
j(!1), ue(void 0, -1), T.current.querySelector(`#${G}`).focus();
|
|
3651
3655
|
}, fe = (B) => {
|
|
@@ -3666,14 +3670,14 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3666
3670
|
}, ke = (B) => {
|
|
3667
3671
|
const ne = le.current.indexOf(B), Q = we.current[ne];
|
|
3668
3672
|
if (Q.callback && !Q.disabled && Q.callback(Q), Q.linkContent && !Q.disabled) {
|
|
3669
|
-
const
|
|
3670
|
-
|
|
3673
|
+
const de = T.current.querySelector(`#${B} a`);
|
|
3674
|
+
de && de.click();
|
|
3671
3675
|
}
|
|
3672
3676
|
}, se = () => {
|
|
3673
3677
|
const B = le.current[ee];
|
|
3674
3678
|
ke(B);
|
|
3675
3679
|
}, ce = (B) => {
|
|
3676
|
-
A ? te() : he(),
|
|
3680
|
+
A ? te() : he(), Y((ne) => !ne), B.stopPropagation(), B.preventDefault();
|
|
3677
3681
|
}, xe = (B) => {
|
|
3678
3682
|
ke(B.currentTarget.id), V || te();
|
|
3679
3683
|
}, He = (B) => {
|
|
@@ -3691,14 +3695,14 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3691
3695
|
break;
|
|
3692
3696
|
case "Up":
|
|
3693
3697
|
case "ArrowUp": {
|
|
3694
|
-
const
|
|
3695
|
-
he(), ue(le.current[
|
|
3698
|
+
const de = le.current.length - 1;
|
|
3699
|
+
he(), ue(le.current[de], de), Q = !0;
|
|
3696
3700
|
break;
|
|
3697
3701
|
}
|
|
3698
3702
|
}
|
|
3699
3703
|
Q && (B.stopPropagation(), B.preventDefault());
|
|
3700
|
-
},
|
|
3701
|
-
let ne = B.key, Q = !1,
|
|
3704
|
+
}, Me = (B) => {
|
|
3705
|
+
let ne = B.key, Q = !1, de = "", me = 0;
|
|
3702
3706
|
function ye(Ce) {
|
|
3703
3707
|
return Ce.length === 1 && Ce.match(/\S/);
|
|
3704
3708
|
}
|
|
@@ -3717,11 +3721,11 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3717
3721
|
break;
|
|
3718
3722
|
case "Up":
|
|
3719
3723
|
case "ArrowUp":
|
|
3720
|
-
me = ee - 1, me < 0 && (me = le.current.length - 1),
|
|
3724
|
+
me = ee - 1, me < 0 && (me = le.current.length - 1), de = le.current[me], ue(de, me), Q = !0;
|
|
3721
3725
|
break;
|
|
3722
3726
|
case "ArrowDown":
|
|
3723
3727
|
case "Down":
|
|
3724
|
-
me = ee + 1, me > le.current.length - 1 && (me = 0),
|
|
3728
|
+
me = ee + 1, me > le.current.length - 1 && (me = 0), de = le.current[me], ue(de, me), Q = !0;
|
|
3725
3729
|
break;
|
|
3726
3730
|
case "Home":
|
|
3727
3731
|
case "PageUp":
|
|
@@ -3744,7 +3748,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3744
3748
|
}
|
|
3745
3749
|
}, Ee = (B) => {
|
|
3746
3750
|
T.current && !T.current.contains(B.target) && A && te();
|
|
3747
|
-
}, _e = (B, ne, Q = "",
|
|
3751
|
+
}, _e = (B, ne, Q = "", de = "", ...me) => {
|
|
3748
3752
|
const ye = Q ? `-group-${Q}` : "", Ce = G + ye + "-item-" + (ne + 1), Ve = B.id ? B.id : Ce;
|
|
3749
3753
|
if (At(B))
|
|
3750
3754
|
return /* @__PURE__ */ e.createElement("li", { role: "separator", key: Ve });
|
|
@@ -3753,9 +3757,9 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3753
3757
|
"li",
|
|
3754
3758
|
{
|
|
3755
3759
|
role: "presentation",
|
|
3756
|
-
id:
|
|
3757
|
-
key:
|
|
3758
|
-
className: `${
|
|
3760
|
+
id: de || null,
|
|
3761
|
+
key: de,
|
|
3762
|
+
className: `${L}__listbox-heading`
|
|
3759
3763
|
},
|
|
3760
3764
|
B.label
|
|
3761
3765
|
);
|
|
@@ -3764,27 +3768,27 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3764
3768
|
if (Ft(B) || B.label) {
|
|
3765
3769
|
le.current.push(Ve), we.current.push(B);
|
|
3766
3770
|
let Xe = !1;
|
|
3767
|
-
|
|
3771
|
+
X !== "" && !B.disabled && (Xe = X === Ve);
|
|
3768
3772
|
let Ie;
|
|
3769
3773
|
if (B.label && (Ie = [B.label]), Ft(B) && (Ie = [B.linkContent.props.children]), B.iconName) {
|
|
3770
3774
|
const at = /* @__PURE__ */ e.createElement(P, { key: `icon-${W}`, iconName: B.iconName, iconSize: "md" });
|
|
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,24 +3797,24 @@ 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
|
-
let
|
|
3802
|
+
let de = ne.shift(), me = [];
|
|
3799
3803
|
return B.map((ye, Ce) => {
|
|
3800
|
-
ye !==
|
|
3804
|
+
ye !== de ? (me.push(ye), Ce + 1 === B.length && Q.push(me)) : (Q.push(me), me = [], me.push(ye), de = ne.shift());
|
|
3801
3805
|
}), Q.filter((ye) => ye.length > 0);
|
|
3802
3806
|
}, Pe = (B) => {
|
|
3803
3807
|
le.current = [], we.current = [];
|
|
3804
3808
|
const ne = B, Q = B.filter(
|
|
3805
3809
|
Pt || At
|
|
3806
|
-
),
|
|
3807
|
-
let me = [`${
|
|
3808
|
-
if (g && me.push(`${
|
|
3809
|
-
const ye =
|
|
3810
|
+
), de = Q.length > 0;
|
|
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
|
});
|
|
3813
|
-
let Ce =
|
|
3817
|
+
let Ce = ie.current[0];
|
|
3814
3818
|
const Ve = ye[0].findIndex(
|
|
3815
3819
|
(Ie) => !At(Ie) && !Pt(Ie)
|
|
3816
3820
|
), Xe = `${G}-group-${Ce}-item-${Ve + 1}`;
|
|
@@ -3822,7 +3826,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3822
3826
|
role: "menu",
|
|
3823
3827
|
tabIndex: -1,
|
|
3824
3828
|
"aria-labelledby": G,
|
|
3825
|
-
"aria-activedescendant":
|
|
3829
|
+
"aria-activedescendant": X !== "" ? X : Xe,
|
|
3826
3830
|
style: {
|
|
3827
3831
|
visibility: A ? "visible" : "hidden",
|
|
3828
3832
|
opacity: A ? "1" : "0",
|
|
@@ -3831,11 +3835,11 @@ 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
|
-
Ce =
|
|
3842
|
+
Ce = ie.current[st];
|
|
3839
3843
|
const nt = Ie[0].isHeading, at = nt ? `${G}-group-${Ce}-heading` : "", Z1 = `${G}-group-${Ce}`, U1 = nt ? null : `${m} ${st + 1}`;
|
|
3840
3844
|
return /* @__PURE__ */ e.createElement(
|
|
3841
3845
|
"ul",
|
|
@@ -3864,7 +3868,7 @@ const At = (t) => t.isSeparator, Pt = (t) => t.isHeading, Ft = (t) => t.isLink,
|
|
|
3864
3868
|
role: "menu",
|
|
3865
3869
|
tabIndex: -1,
|
|
3866
3870
|
"aria-labelledby": G,
|
|
3867
|
-
"aria-activedescendant":
|
|
3871
|
+
"aria-activedescendant": X !== "" ? X : ye,
|
|
3868
3872
|
style: {
|
|
3869
3873
|
visibility: A ? "visible" : "hidden",
|
|
3870
3874
|
opacity: A ? "1" : "0",
|
|
@@ -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
|
};
|
|
@@ -4067,7 +4071,7 @@ P1.propTypes = {
|
|
|
4067
4071
|
};
|
|
4068
4072
|
const F1 = ({ items: t, label: s, mobileMenuMaxWidth: n = 640 }) => {
|
|
4069
4073
|
const [a, c] = F(!1), [o, l] = F(0);
|
|
4070
|
-
|
|
4074
|
+
oe(() => (l(window.innerWidth), window.addEventListener("resize", r), () => {
|
|
4071
4075
|
window.removeEventListener("resize", r);
|
|
4072
4076
|
}), []);
|
|
4073
4077
|
const r = () => {
|
|
@@ -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,27 +4143,27 @@ 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), () => {
|
|
4146
4150
|
window.removeEventListener("resize", v);
|
|
4147
4151
|
}), []);
|
|
4148
4152
|
const v = () => {
|
|
4149
4153
|
i(window.innerWidth);
|
|
4150
4154
|
}, b = d <= a;
|
|
4151
|
-
|
|
4155
|
+
oe(() => {
|
|
4152
4156
|
u.containerChildren[h] && (u.containerChildren[h].classList.contains(
|
|
4153
4157
|
"pds-nav-menu__dropdown--separator"
|
|
4154
4158
|
) && E == "down" ? m(h + 1) : u.containerChildren[h].classList.contains(
|
|
4155
4159
|
"pds-nav-menu__dropdown--separator"
|
|
4156
4160
|
) && E == "up" ? m(h - 1) : u.containerChildren[h].children[0].focus());
|
|
4157
|
-
}, [h]),
|
|
4161
|
+
}, [h]), oe(() => {
|
|
4158
4162
|
f != -1 && (H.current[f].children[0].blur(), H.current[f].children[0].focus({
|
|
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,10 +5601,10 @@ 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
|
-
), G = t || Z, K = (
|
|
5603
|
-
D || U(
|
|
5606
|
+
), G = t || Z, K = (Y) => {
|
|
5607
|
+
D || U(Y.target.checked), f && f(Y);
|
|
5604
5608
|
}, T = `${N}__box`, A = c ? null : G ? `${T}--checked` : null, j = c ? `${T}--indeterminate` : null, q = Xt(() => {
|
|
5605
5609
|
if (c)
|
|
5606
5610
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -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,26 +5920,26 @@ 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) => {
|
|
5923
5927
|
const ve = b.find((B) => B.value === ge);
|
|
5924
5928
|
return ve ? ve.label : "";
|
|
5925
|
-
}, [
|
|
5929
|
+
}, [Y, X] = F(!1), [re, ee] = F(null), [pe, ie] = F(
|
|
5926
5930
|
j ? q(t) : ""
|
|
5927
5931
|
), [le, we] = F([]), ue = A ? H : pe, he = ae([]), { context: te, refs: fe } = Se({
|
|
5928
|
-
open:
|
|
5929
|
-
onOpenChange:
|
|
5932
|
+
open: Y,
|
|
5933
|
+
onOpenChange: X,
|
|
5930
5934
|
whileElementsMounted: Be
|
|
5931
5935
|
}), ke = De(te, { role: "listbox" }), se = Te(te), ce = ot(te, {
|
|
5932
5936
|
listRef: he,
|
|
5933
|
-
activeIndex:
|
|
5937
|
+
activeIndex: re,
|
|
5934
5938
|
onNavigate: ee,
|
|
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,23 +5953,23 @@ const Gt = (o) => {
|
|
|
5949
5953
|
close: {
|
|
5950
5954
|
opacity: 0
|
|
5951
5955
|
}
|
|
5952
|
-
}),
|
|
5953
|
-
|
|
5956
|
+
}), Le = () => {
|
|
5957
|
+
X(!Y);
|
|
5954
5958
|
}, Pe = () => {
|
|
5955
5959
|
var ge;
|
|
5956
|
-
!A &&
|
|
5960
|
+
!A && ie(""), ee(null), X(!0), (ge = fe.domReference.current) == null || ge.focus(), u && u();
|
|
5957
5961
|
}, tt = (ge) => {
|
|
5958
5962
|
let ve = ge.target.value;
|
|
5959
|
-
E && E(ge), A || (ve.length > 0 && (ve = ve.trimStart()),
|
|
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
|
-
!A &&
|
|
5970
|
+
!A && ie(ve.label), ee(null), X(!1), v && v(ve);
|
|
5967
5971
|
}, It = (ge) => ge.map((B) => {
|
|
5968
|
-
const Xe = B, { label: ne, optionDisplay: Q, value:
|
|
5972
|
+
const Xe = B, { label: ne, optionDisplay: Q, value: de, searchIndex: me } = Xe, ye = I(Xe, ["label", "optionDisplay", "value", "searchIndex"]), Ce = de || ne, Ve = [ne, de];
|
|
5969
5973
|
return me && Ve.push(...me), y({
|
|
5970
5974
|
label: ne,
|
|
5971
5975
|
value: Ce,
|
|
@@ -5973,14 +5977,14 @@ const Gt = (o) => {
|
|
|
5973
5977
|
optionDisplay: Q
|
|
5974
5978
|
}, ye);
|
|
5975
5979
|
});
|
|
5976
|
-
|
|
5980
|
+
oe(() => {
|
|
5977
5981
|
const ge = It(b).filter(
|
|
5978
5982
|
(ve) => {
|
|
5979
5983
|
var Q;
|
|
5980
5984
|
const B = (Q = ve.searchIndex) == null ? void 0 : Q.map(
|
|
5981
|
-
(
|
|
5985
|
+
(de) => de.toLowerCase()
|
|
5982
5986
|
), ne = ue.toLowerCase();
|
|
5983
|
-
return B.some((
|
|
5987
|
+
return B.some((de) => de.includes(ne));
|
|
5984
5988
|
}
|
|
5985
5989
|
);
|
|
5986
5990
|
we(ge);
|
|
@@ -5991,18 +5995,18 @@ const Gt = (o) => {
|
|
|
5991
5995
|
S1,
|
|
5992
5996
|
be(y({
|
|
5993
5997
|
key: ge
|
|
5994
|
-
},
|
|
5998
|
+
}, Me({
|
|
5995
5999
|
key: ne,
|
|
5996
|
-
ref(
|
|
5997
|
-
he.current[ve] =
|
|
6000
|
+
ref(de) {
|
|
6001
|
+
he.current[ve] = de;
|
|
5998
6002
|
},
|
|
5999
6003
|
onClick() {
|
|
6000
|
-
var
|
|
6001
|
-
dt(ve), (
|
|
6004
|
+
var de;
|
|
6005
|
+
dt(ve), (de = fe.domReference.current) == null || de.focus();
|
|
6002
6006
|
}
|
|
6003
6007
|
})), {
|
|
6004
|
-
tabIndex:
|
|
6005
|
-
isActive:
|
|
6008
|
+
tabIndex: re === ve ? 0 : -1,
|
|
6009
|
+
isActive: re === ve
|
|
6006
6010
|
}),
|
|
6007
6011
|
Q || B
|
|
6008
6012
|
);
|
|
@@ -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
|
},
|
|
@@ -6060,7 +6064,7 @@ const Gt = (o) => {
|
|
|
6060
6064
|
onChange: tt,
|
|
6061
6065
|
onFocus: Vt,
|
|
6062
6066
|
onKeyDown(ge) {
|
|
6063
|
-
ge.key === "Enter" &&
|
|
6067
|
+
ge.key === "Enter" && re != null && le[re] && dt(re);
|
|
6064
6068
|
}
|
|
6065
6069
|
}))
|
|
6066
6070
|
),
|
|
@@ -6084,9 +6088,9 @@ 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
|
-
"aria-expanded":
|
|
6093
|
+
"aria-expanded": Y,
|
|
6090
6094
|
"aria-label": h.triggerButton
|
|
6091
6095
|
})), {
|
|
6092
6096
|
className: `${D}__trigger`
|
|
@@ -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,12 +6548,12 @@ 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
|
-
), A = _ || K, j = (
|
|
6550
|
-
U || T(
|
|
6551
|
-
}, q = (
|
|
6552
|
-
d && d(
|
|
6553
|
+
), A = _ || K, j = (Y) => {
|
|
6554
|
+
U || T(Y.target.value), i && i(Y);
|
|
6555
|
+
}, q = (Y) => {
|
|
6556
|
+
d && d(Y);
|
|
6553
6557
|
};
|
|
6554
6558
|
return /* @__PURE__ */ e.createElement(
|
|
6555
6559
|
"div",
|
|
@@ -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,26 +6685,26 @@ 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
|
-
|
|
6687
|
-
const T = x || h, A = typeof k != "undefined", j = typeof n != "undefined", [q,
|
|
6690
|
+
w === "search" && (K = "search"), H === "error" && (K = "error"), H === "success" && (K = "success");
|
|
6691
|
+
const T = x || h, A = typeof k != "undefined", j = typeof n != "undefined", [q, Y] = F(
|
|
6688
6692
|
j ? n : ""
|
|
6689
|
-
),
|
|
6690
|
-
b &&
|
|
6693
|
+
), X = k || q, re = (he) => {
|
|
6694
|
+
b && ie && le(!1), m && m(he);
|
|
6691
6695
|
}, ee = (he) => {
|
|
6692
|
-
A ||
|
|
6696
|
+
A || Y(he.target.value), f && f(he);
|
|
6693
6697
|
}, pe = () => {
|
|
6694
|
-
A ||
|
|
6698
|
+
A || Y(""), g && g();
|
|
6695
6699
|
const he = document.getElementById(l);
|
|
6696
6700
|
he && he.focus();
|
|
6697
|
-
}, [
|
|
6701
|
+
}, [ie, le] = F(!1), we = () => {
|
|
6698
6702
|
le((te) => !te);
|
|
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,46 +6739,46 @@ 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:
|
|
6743
|
-
onBlur:
|
|
6745
|
+
required: $,
|
|
6746
|
+
autoComplete: w === "password" ? "off" : t,
|
|
6747
|
+
onBlur: re,
|
|
6744
6748
|
onChange: ee,
|
|
6745
6749
|
onFocus: E,
|
|
6746
6750
|
"aria-invalid": H === "error" ? !0 : null,
|
|
6747
6751
|
"aria-describedby": T ? `${l}__message` : null
|
|
6748
6752
|
}, r)
|
|
6749
|
-
), c &&
|
|
6753
|
+
), c && X && /* @__PURE__ */ e.createElement(
|
|
6750
6754
|
Qt,
|
|
6751
6755
|
{
|
|
6752
6756
|
id: l,
|
|
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",
|
|
6760
6764
|
className: `${O}__visibility-toggle`,
|
|
6761
|
-
title:
|
|
6765
|
+
title: ie ? _.visibilityToggleHide : _.visibilityToggleShow,
|
|
6762
6766
|
"aria-controls": l,
|
|
6763
6767
|
onClick: we,
|
|
6764
6768
|
onMouseDown: (he) => he.preventDefault()
|
|
6765
6769
|
},
|
|
6766
|
-
/* @__PURE__ */ e.createElement(P, { iconName:
|
|
6767
|
-
), o &&
|
|
6770
|
+
/* @__PURE__ */ e.createElement(P, { iconName: ie ? "eyeSlash" : "eye", iconSize: "md" })
|
|
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,
|
|
6777
|
-
currentLength:
|
|
6781
|
+
currentLength: X.length,
|
|
6778
6782
|
maxLength: s,
|
|
6779
6783
|
overLimitMessage: _.counterOverLimit
|
|
6780
6784
|
}
|
|
@@ -6845,17 +6849,17 @@ const Gt = (o) => {
|
|
|
6845
6849
|
"className"
|
|
6846
6850
|
]);
|
|
6847
6851
|
const m = "pds-modal", f = o !== "md" ? `${m}--${o}` : null, [g, E] = F(a);
|
|
6848
|
-
|
|
6852
|
+
oe(() => {
|
|
6849
6853
|
E(a);
|
|
6850
|
-
}, [a]),
|
|
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,13 +7175,13 @@ 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
|
};
|
|
7180
|
-
|
|
7184
|
+
oe(() => {
|
|
7181
7185
|
if (d) {
|
|
7182
7186
|
const O = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
7183
7187
|
return O.addEventListener("click", u), () => {
|
|
@@ -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,48 +7768,49 @@ 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
|
-
|
|
7792
|
-
const q = (
|
|
7793
|
-
_.current && !_.current.contains(
|
|
7794
|
-
},
|
|
7795
|
+
oe(() => {
|
|
7796
|
+
const q = (X) => {
|
|
7797
|
+
_.current && !_.current.contains(X.target) && $(!1);
|
|
7798
|
+
}, Y = (X) => {
|
|
7795
7799
|
var ee;
|
|
7796
|
-
const
|
|
7797
|
-
|
|
7800
|
+
const re = (ee = _.current) == null ? void 0 : ee.querySelector("input");
|
|
7801
|
+
X.key === "Tab" && u && re === document.activeElement && $(!1);
|
|
7798
7802
|
};
|
|
7799
7803
|
if (u)
|
|
7800
|
-
return document.addEventListener("mousedown", q), document.addEventListener("keydown",
|
|
7801
|
-
document.removeEventListener("mousedown", q), document.removeEventListener("keydown",
|
|
7804
|
+
return document.addEventListener("mousedown", q), document.addEventListener("keydown", Y), () => {
|
|
7805
|
+
document.removeEventListener("mousedown", q), document.removeEventListener("keydown", Y);
|
|
7802
7806
|
};
|
|
7803
7807
|
}, [u]);
|
|
7804
7808
|
const K = h.map((q) => {
|
|
7805
|
-
const { machineName: X, name:
|
|
7809
|
+
const { id: Y, machineName: X, name: re } = q;
|
|
7806
7810
|
return {
|
|
7807
|
-
|
|
7808
|
-
|
|
7811
|
+
id: Y,
|
|
7812
|
+
label: re,
|
|
7813
|
+
value: X != null ? X : re,
|
|
7809
7814
|
optionDisplay: /* @__PURE__ */ e.createElement(is, { option: q })
|
|
7810
7815
|
};
|
|
7811
7816
|
}), T = /* @__PURE__ */ e.createElement("div", { ref: _, className: `${D}__combobox-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
@@ -7854,12 +7859,12 @@ const Gt = (o) => {
|
|
|
7854
7859
|
y({
|
|
7855
7860
|
className: R([D, W, f != null ? f : ""]),
|
|
7856
7861
|
id: s,
|
|
7857
|
-
style:
|
|
7858
|
-
onKeyDown:
|
|
7862
|
+
style: w ? null : O,
|
|
7863
|
+
onKeyDown: w ? null : (q) => {
|
|
7859
7864
|
q.key === "Escape" && U();
|
|
7860
7865
|
}
|
|
7861
7866
|
}, g),
|
|
7862
|
-
|
|
7867
|
+
w ? j : A
|
|
7863
7868
|
);
|
|
7864
7869
|
}, mt = (c) => {
|
|
7865
7870
|
var o = c, {
|
|
@@ -7908,28 +7913,28 @@ const Gt = (o) => {
|
|
|
7908
7913
|
"translationStrings",
|
|
7909
7914
|
"className"
|
|
7910
7915
|
]);
|
|
7911
|
-
const [E,
|
|
7916
|
+
const [E, C] = F(!1);
|
|
7912
7917
|
let u = !1;
|
|
7913
|
-
const
|
|
7914
|
-
|
|
7915
|
-
const v = $e(
|
|
7918
|
+
const $ = $e(Ae);
|
|
7919
|
+
$ && (u = $.isMobile);
|
|
7920
|
+
const v = $e(Mt);
|
|
7916
7921
|
v && (l = v.logoLinkContent);
|
|
7917
|
-
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) => {
|
|
7918
7923
|
const A = T.key;
|
|
7919
7924
|
let j = !1;
|
|
7920
7925
|
switch (A) {
|
|
7921
7926
|
case "Esc":
|
|
7922
7927
|
case "Escape":
|
|
7923
|
-
|
|
7928
|
+
C(!1), j = !0;
|
|
7924
7929
|
break;
|
|
7925
7930
|
}
|
|
7926
7931
|
j && (T.stopPropagation(), T.preventDefault());
|
|
7927
7932
|
};
|
|
7928
|
-
|
|
7933
|
+
oe(() => (window.addEventListener("keyup", H), () => {
|
|
7929
7934
|
window.removeEventListener("keyup", H);
|
|
7930
7935
|
}), []);
|
|
7931
|
-
const k = () =>
|
|
7932
|
-
|
|
7936
|
+
const k = () => C(!E), N = s2();
|
|
7937
|
+
oe(() => {
|
|
7933
7938
|
if (u && t) {
|
|
7934
7939
|
const T = H1(
|
|
7935
7940
|
document.querySelector(".pds-navbar__mobile")
|
|
@@ -7941,29 +7946,29 @@ const Gt = (o) => {
|
|
|
7941
7946
|
});
|
|
7942
7947
|
}
|
|
7943
7948
|
}, [E]);
|
|
7944
|
-
const
|
|
7945
|
-
T.target.nodeName === "A" &&
|
|
7949
|
+
const M = (T) => {
|
|
7950
|
+
T.target.nodeName === "A" && C(!1);
|
|
7946
7951
|
};
|
|
7947
|
-
|
|
7952
|
+
oe(() => {
|
|
7948
7953
|
if (E) {
|
|
7949
7954
|
const T = document.querySelector(".pds-navbar__bar-mobile"), A = document.querySelector(".pds-navbar__mobile");
|
|
7950
|
-
return T.addEventListener("click",
|
|
7951
|
-
T.removeEventListener("click",
|
|
7955
|
+
return T.addEventListener("click", M), A.addEventListener("click", M), () => {
|
|
7956
|
+
T.removeEventListener("click", M), A.removeEventListener("click", M);
|
|
7952
7957
|
};
|
|
7953
7958
|
}
|
|
7954
|
-
}, [E]),
|
|
7959
|
+
}, [E]), oe(() => {
|
|
7955
7960
|
E ? document.body.classList.add("pds-no-scroll") : document.body.classList.remove("pds-no-scroll");
|
|
7956
7961
|
}, [E]);
|
|
7957
7962
|
const z = kt(t), V = z["items-left"], S = z["items-right"];
|
|
7958
|
-
let
|
|
7959
|
-
(s === "reverse" || s === "reverse-transparent") && (
|
|
7963
|
+
let L = "default";
|
|
7964
|
+
(s === "reverse" || s === "reverse-transparent") && (L = "reverse");
|
|
7960
7965
|
const O = qe(l) ? l.props.children : null, D = qe(l) && O ? We(l, {
|
|
7961
7966
|
children: /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: r }),
|
|
7962
7967
|
"aria-label": O || null
|
|
7963
7968
|
}) : /* @__PURE__ */ e.createElement("img", { className: `${b}__custom-logo`, src: r, alt: "" }), W = () => r ? D : /* @__PURE__ */ e.createElement(
|
|
7964
7969
|
j1,
|
|
7965
7970
|
{
|
|
7966
|
-
colorType:
|
|
7971
|
+
colorType: L,
|
|
7967
7972
|
displayType: o,
|
|
7968
7973
|
linkContent: l,
|
|
7969
7974
|
subBrand: d
|
|
@@ -7998,7 +8003,7 @@ const Gt = (o) => {
|
|
|
7998
8003
|
y({
|
|
7999
8004
|
className: R([
|
|
8000
8005
|
b,
|
|
8001
|
-
|
|
8006
|
+
w,
|
|
8002
8007
|
_,
|
|
8003
8008
|
x,
|
|
8004
8009
|
h != null ? h : ""
|
|
@@ -8030,23 +8035,23 @@ const Gt = (o) => {
|
|
|
8030
8035
|
"className"
|
|
8031
8036
|
]);
|
|
8032
8037
|
const m = "pds-side-nav", [f, g] = F(1025);
|
|
8033
|
-
|
|
8038
|
+
oe(() => (g(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
8034
8039
|
window.removeEventListener("resize", E);
|
|
8035
8040
|
}), []);
|
|
8036
8041
|
const E = () => {
|
|
8037
8042
|
g(window.innerWidth);
|
|
8038
|
-
},
|
|
8039
|
-
const
|
|
8040
|
-
|
|
8043
|
+
}, C = f <= o, u = (_) => {
|
|
8044
|
+
const w = _.target;
|
|
8045
|
+
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
8041
8046
|
"aria-expanded",
|
|
8042
|
-
|
|
8043
|
-
),
|
|
8044
|
-
},
|
|
8047
|
+
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8048
|
+
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
8049
|
+
}, $ = (_, w) => {
|
|
8045
8050
|
const { linkContent: x, links: H } = _, k = `${m}__item`, N = `${m}__menu`;
|
|
8046
8051
|
return /* @__PURE__ */ e.createElement(
|
|
8047
8052
|
"li",
|
|
8048
8053
|
{
|
|
8049
|
-
key:
|
|
8054
|
+
key: w,
|
|
8050
8055
|
className: R([
|
|
8051
8056
|
k,
|
|
8052
8057
|
`${k}--top-level`,
|
|
@@ -8075,19 +8080,19 @@ const Gt = (o) => {
|
|
|
8075
8080
|
Ne(_) ? `${N}--expanded` : null
|
|
8076
8081
|
])
|
|
8077
8082
|
},
|
|
8078
|
-
H.map((
|
|
8083
|
+
H.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
8079
8084
|
"li",
|
|
8080
8085
|
{
|
|
8081
8086
|
key: z,
|
|
8082
8087
|
className: R([
|
|
8083
8088
|
k,
|
|
8084
8089
|
`${k}--second-level`,
|
|
8085
|
-
Ne(
|
|
8090
|
+
Ne(M) ? `${k}--active` : null
|
|
8086
8091
|
])
|
|
8087
8092
|
},
|
|
8088
8093
|
lt(
|
|
8089
|
-
|
|
8090
|
-
|
|
8094
|
+
M.linkContent,
|
|
8095
|
+
M.links
|
|
8091
8096
|
)
|
|
8092
8097
|
))
|
|
8093
8098
|
)) : (
|
|
@@ -8095,7 +8100,7 @@ const Gt = (o) => {
|
|
|
8095
8100
|
x
|
|
8096
8101
|
)
|
|
8097
8102
|
);
|
|
8098
|
-
}, 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(
|
|
8099
8104
|
a1,
|
|
8100
8105
|
{
|
|
8101
8106
|
headingText: n,
|
|
@@ -8109,7 +8114,7 @@ const Gt = (o) => {
|
|
|
8109
8114
|
"aria-label": t,
|
|
8110
8115
|
className: R([m, r != null ? r : ""])
|
|
8111
8116
|
}, d),
|
|
8112
|
-
|
|
8117
|
+
C && s ? b : v
|
|
8113
8118
|
);
|
|
8114
8119
|
}, ln = (i) => {
|
|
8115
8120
|
var h = i, {
|
|
@@ -8135,23 +8140,23 @@ const Gt = (o) => {
|
|
|
8135
8140
|
"className"
|
|
8136
8141
|
]);
|
|
8137
8142
|
const m = "pds-side-nav-compact", [f, g] = F(1025);
|
|
8138
|
-
|
|
8143
|
+
oe(() => (g(window.innerWidth), window.addEventListener("resize", E), () => {
|
|
8139
8144
|
window.removeEventListener("resize", E);
|
|
8140
8145
|
}), []);
|
|
8141
8146
|
const E = () => {
|
|
8142
8147
|
g(window.innerWidth);
|
|
8143
|
-
},
|
|
8144
|
-
const
|
|
8145
|
-
|
|
8148
|
+
}, C = f <= o, u = (_) => {
|
|
8149
|
+
const w = _.target;
|
|
8150
|
+
w.classList.toggle(`${m}__toggle--expanded`), w.setAttribute(
|
|
8146
8151
|
"aria-expanded",
|
|
8147
|
-
|
|
8148
|
-
),
|
|
8149
|
-
},
|
|
8152
|
+
w.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8153
|
+
), w.parentElement.nextElementSibling.classList.toggle(`${m}__menu--expanded`);
|
|
8154
|
+
}, $ = (_, w) => {
|
|
8150
8155
|
const { linkContent: x, links: H } = _, k = `${m}__item`, N = `${m}__menu`;
|
|
8151
8156
|
return /* @__PURE__ */ e.createElement(
|
|
8152
8157
|
"li",
|
|
8153
8158
|
{
|
|
8154
|
-
key:
|
|
8159
|
+
key: w,
|
|
8155
8160
|
className: R([
|
|
8156
8161
|
k,
|
|
8157
8162
|
`${k}--top-level`,
|
|
@@ -8180,41 +8185,41 @@ const Gt = (o) => {
|
|
|
8180
8185
|
Ne(_) ? `${N}--expanded` : null
|
|
8181
8186
|
])
|
|
8182
8187
|
},
|
|
8183
|
-
H.map((
|
|
8188
|
+
H.map((M, z) => /* @__PURE__ */ e.createElement(
|
|
8184
8189
|
"li",
|
|
8185
8190
|
{
|
|
8186
8191
|
key: z,
|
|
8187
8192
|
className: R([
|
|
8188
8193
|
k,
|
|
8189
8194
|
`${k}--second-level`,
|
|
8190
|
-
Ne(
|
|
8195
|
+
Ne(M) ? `${k}--active` : null
|
|
8191
8196
|
])
|
|
8192
8197
|
},
|
|
8193
|
-
|
|
8198
|
+
M.links ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${k}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8194
8199
|
"button",
|
|
8195
8200
|
{
|
|
8196
|
-
"aria-expanded": Ne(
|
|
8201
|
+
"aria-expanded": Ne(M),
|
|
8197
8202
|
className: R([
|
|
8198
8203
|
`${m}__toggle`,
|
|
8199
|
-
Ne(
|
|
8204
|
+
Ne(M) ? `${m}__toggle--expanded` : null
|
|
8200
8205
|
]),
|
|
8201
8206
|
onClick: u
|
|
8202
8207
|
},
|
|
8203
8208
|
/* @__PURE__ */ e.createElement(P, { iconName: "caretDown", iconSize: "md" }),
|
|
8204
|
-
/* @__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}`)
|
|
8205
8210
|
), lt(
|
|
8206
|
-
|
|
8207
|
-
|
|
8211
|
+
M.linkContent,
|
|
8212
|
+
M.links
|
|
8208
8213
|
)), /* @__PURE__ */ e.createElement(
|
|
8209
8214
|
"ul",
|
|
8210
8215
|
{
|
|
8211
8216
|
className: R([
|
|
8212
8217
|
N,
|
|
8213
8218
|
`${N}--third-level`,
|
|
8214
|
-
Ne(
|
|
8219
|
+
Ne(M) ? `${N}--expanded` : null
|
|
8215
8220
|
])
|
|
8216
8221
|
},
|
|
8217
|
-
|
|
8222
|
+
M.links.map((V, S) => /* @__PURE__ */ e.createElement(
|
|
8218
8223
|
"li",
|
|
8219
8224
|
{
|
|
8220
8225
|
key: S,
|
|
@@ -8231,7 +8236,7 @@ const Gt = (o) => {
|
|
|
8231
8236
|
))
|
|
8232
8237
|
)) : (
|
|
8233
8238
|
// If no second-level child links are present, render the link content as is.
|
|
8234
|
-
|
|
8239
|
+
M.linkContent
|
|
8235
8240
|
)
|
|
8236
8241
|
))
|
|
8237
8242
|
)) : (
|
|
@@ -8239,7 +8244,7 @@ const Gt = (o) => {
|
|
|
8239
8244
|
x
|
|
8240
8245
|
)
|
|
8241
8246
|
);
|
|
8242
|
-
}, 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(
|
|
8243
8248
|
a1,
|
|
8244
8249
|
{
|
|
8245
8250
|
headingText: n,
|
|
@@ -8253,7 +8258,7 @@ const Gt = (o) => {
|
|
|
8253
8258
|
"aria-label": t,
|
|
8254
8259
|
className: R([m, r != null ? r : ""])
|
|
8255
8260
|
}, d),
|
|
8256
|
-
|
|
8261
|
+
C && s ? b : v
|
|
8257
8262
|
);
|
|
8258
8263
|
}, ds = ({
|
|
8259
8264
|
buttonLabel: t = "Toggle dropdown",
|
|
@@ -8263,7 +8268,7 @@ const Gt = (o) => {
|
|
|
8263
8268
|
minFilterItems: c = 5,
|
|
8264
8269
|
noResultsText: o = "No results found"
|
|
8265
8270
|
}) => {
|
|
8266
|
-
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({
|
|
8267
8272
|
open: l,
|
|
8268
8273
|
onOpenChange: r,
|
|
8269
8274
|
whileElementsMounted: Be
|
|
@@ -8276,9 +8281,9 @@ const Gt = (o) => {
|
|
|
8276
8281
|
loop: !0,
|
|
8277
8282
|
focusItemOnHover: !0,
|
|
8278
8283
|
focusItemOnOpen: !1
|
|
8279
|
-
}), { getReferenceProps:
|
|
8284
|
+
}), { getReferenceProps: M, getFloatingProps: z, getItemProps: V } = Oe(
|
|
8280
8285
|
[k, H, N, x]
|
|
8281
|
-
), { isMounted: S, styles:
|
|
8286
|
+
), { isMounted: S, styles: L } = Ke(_, {
|
|
8282
8287
|
duration: {
|
|
8283
8288
|
open: 300,
|
|
8284
8289
|
close: 150
|
|
@@ -8293,28 +8298,28 @@ const Gt = (o) => {
|
|
|
8293
8298
|
opacity: 0
|
|
8294
8299
|
}
|
|
8295
8300
|
}), O = (q) => {
|
|
8296
|
-
var
|
|
8297
|
-
q.preventDefault(), q.key === "Enter" && ((
|
|
8298
|
-
}, D = (q,
|
|
8299
|
-
const
|
|
8300
|
-
g(
|
|
8301
|
-
const
|
|
8302
|
-
m(
|
|
8301
|
+
var Y;
|
|
8302
|
+
q.preventDefault(), q.key === "Enter" && ((Y = b.current[d].querySelector("a")) == null || Y.click()), q.key === "Tab" && q.shiftKey && (E ? document.getElementById("links-filter").focus() : r(!1));
|
|
8303
|
+
}, D = (q, Y) => Fe(q.linkContent).toLowerCase().includes(Y.toLowerCase()), W = (q) => {
|
|
8304
|
+
const Y = q.target.value;
|
|
8305
|
+
g(Y);
|
|
8306
|
+
const X = a.filter((re) => D(re, Y));
|
|
8307
|
+
m(X);
|
|
8303
8308
|
};
|
|
8304
|
-
|
|
8305
|
-
const q = a.filter((
|
|
8309
|
+
oe(() => {
|
|
8310
|
+
const q = a.filter((Y) => D(Y, f));
|
|
8306
8311
|
m(q);
|
|
8307
8312
|
}, [a]);
|
|
8308
8313
|
const Z = () => {
|
|
8309
8314
|
g(""), m(a);
|
|
8310
8315
|
}, U = a.reduce(
|
|
8311
|
-
(q,
|
|
8316
|
+
(q, Y) => Fe(q.linkContent).length > Fe(Y.linkContent).length ? q : Y
|
|
8312
8317
|
), K = {
|
|
8313
8318
|
minWidth: "13rem",
|
|
8314
8319
|
width: `${Fe(
|
|
8315
8320
|
U.linkContent
|
|
8316
8321
|
).length + 2}ch`
|
|
8317
|
-
}, 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(
|
|
8318
8323
|
q1,
|
|
8319
8324
|
{
|
|
8320
8325
|
hasClearButton: !0,
|
|
@@ -8327,17 +8332,17 @@ const Gt = (o) => {
|
|
|
8327
8332
|
type: "search",
|
|
8328
8333
|
autoComplete: "off"
|
|
8329
8334
|
}
|
|
8330
|
-
)), j = h.map((q,
|
|
8331
|
-
const
|
|
8335
|
+
)), j = h.map((q, Y) => {
|
|
8336
|
+
const X = q.isActive ? `${v}--active` : null;
|
|
8332
8337
|
return /* @__PURE__ */ e.createElement(
|
|
8333
8338
|
"li",
|
|
8334
8339
|
y({
|
|
8335
|
-
key:
|
|
8336
|
-
className: R([v,
|
|
8337
|
-
ref: (
|
|
8338
|
-
b.current[
|
|
8340
|
+
key: Y,
|
|
8341
|
+
className: R([v, X]),
|
|
8342
|
+
ref: (re) => {
|
|
8343
|
+
b.current[Y] = re;
|
|
8339
8344
|
},
|
|
8340
|
-
tabIndex:
|
|
8345
|
+
tabIndex: Y === d ? 0 : -1,
|
|
8341
8346
|
onKeyDown: O
|
|
8342
8347
|
}, V()),
|
|
8343
8348
|
q.linkContent,
|
|
@@ -8347,9 +8352,9 @@ const Gt = (o) => {
|
|
|
8347
8352
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8348
8353
|
"button",
|
|
8349
8354
|
y({
|
|
8350
|
-
className: `${
|
|
8351
|
-
ref:
|
|
8352
|
-
},
|
|
8355
|
+
className: `${C}__dropdown-trigger`,
|
|
8356
|
+
ref: w.setReference
|
|
8357
|
+
}, M({
|
|
8353
8358
|
"aria-expanded": l,
|
|
8354
8359
|
"aria-label": t
|
|
8355
8360
|
})),
|
|
@@ -8357,20 +8362,20 @@ const Gt = (o) => {
|
|
|
8357
8362
|
P,
|
|
8358
8363
|
{
|
|
8359
8364
|
iconName: "angleDown",
|
|
8360
|
-
className: `${
|
|
8365
|
+
className: `${C}__dropdown-trigger-icon`
|
|
8361
8366
|
}
|
|
8362
8367
|
)
|
|
8363
8368
|
), S && /* @__PURE__ */ e.createElement(
|
|
8364
8369
|
"div",
|
|
8365
8370
|
y({
|
|
8366
|
-
ref:
|
|
8367
|
-
className: `${
|
|
8371
|
+
ref: w.setFloating,
|
|
8372
|
+
className: `${C}__dropdown`
|
|
8368
8373
|
}, z({
|
|
8369
8374
|
style: y({
|
|
8370
8375
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8371
8376
|
}, K)
|
|
8372
8377
|
})),
|
|
8373
|
-
/* @__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))
|
|
8374
8379
|
));
|
|
8375
8380
|
}, cn = (c) => {
|
|
8376
8381
|
var o = c, {
|
|
@@ -8389,13 +8394,13 @@ const Gt = (o) => {
|
|
|
8389
8394
|
dropdownSettings: f,
|
|
8390
8395
|
icon: g,
|
|
8391
8396
|
isActive: E,
|
|
8392
|
-
linkContent:
|
|
8397
|
+
linkContent: C,
|
|
8393
8398
|
links: u,
|
|
8394
|
-
promoteActiveChildLink:
|
|
8399
|
+
promoteActiveChildLink: $ = !1
|
|
8395
8400
|
}) => {
|
|
8396
|
-
const v = `${d}__item`, b = n1(u), _ = (
|
|
8401
|
+
const v = `${d}__item`, b = n1(u), _ = (w, x) => {
|
|
8397
8402
|
let H = null;
|
|
8398
|
-
return typeof
|
|
8403
|
+
return typeof w == "object" && (x ? H = We(w, be(y({}, w.props), {
|
|
8399
8404
|
children: [
|
|
8400
8405
|
/* @__PURE__ */ e.createElement("span", { key: x, className: `${d}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
8401
8406
|
P,
|
|
@@ -8404,9 +8409,9 @@ const Gt = (o) => {
|
|
|
8404
8409
|
iconSize: "md",
|
|
8405
8410
|
className: `${d}__item-icon`
|
|
8406
8411
|
}
|
|
8407
|
-
),
|
|
8412
|
+
), w.props.children)
|
|
8408
8413
|
]
|
|
8409
|
-
})) : H =
|
|
8414
|
+
})) : H = w), H;
|
|
8410
8415
|
};
|
|
8411
8416
|
return /* @__PURE__ */ e.createElement(
|
|
8412
8417
|
"li",
|
|
@@ -8416,7 +8421,7 @@ const Gt = (o) => {
|
|
|
8416
8421
|
E ? `${v}--active` : null
|
|
8417
8422
|
])
|
|
8418
8423
|
},
|
|
8419
|
-
_(
|
|
8424
|
+
_($ ? b : C, g),
|
|
8420
8425
|
u && /* @__PURE__ */ e.createElement(
|
|
8421
8426
|
ds,
|
|
8422
8427
|
{
|
|
@@ -8467,17 +8472,17 @@ const Gt = (o) => {
|
|
|
8467
8472
|
"withinNavbar",
|
|
8468
8473
|
"className"
|
|
8469
8474
|
]);
|
|
8470
|
-
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([]);
|
|
8471
8476
|
let u = !1;
|
|
8472
|
-
const
|
|
8473
|
-
|
|
8474
|
-
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({
|
|
8475
8480
|
placement: "bottom-end",
|
|
8476
8481
|
open: f,
|
|
8477
8482
|
onOpenChange: g,
|
|
8478
8483
|
middleware: [$t(12), wt(), yt()],
|
|
8479
8484
|
whileElementsMounted: Be
|
|
8480
|
-
}), N = Ge(k, { event: "mousedown" }),
|
|
8485
|
+
}), N = Ge(k, { event: "mousedown" }), M = Te(k), z = De(k, { role: "menu" }), V = ae([]), S = ot(k, {
|
|
8481
8486
|
listRef: V,
|
|
8482
8487
|
activeIndex: h,
|
|
8483
8488
|
onNavigate: m,
|
|
@@ -8485,8 +8490,8 @@ const Gt = (o) => {
|
|
|
8485
8490
|
openOnArrowKeyDown: !0,
|
|
8486
8491
|
focusItemOnOpen: !1,
|
|
8487
8492
|
focusItemOnHover: !0
|
|
8488
|
-
}), { getReferenceProps:
|
|
8489
|
-
[
|
|
8493
|
+
}), { getReferenceProps: L, getFloatingProps: O, getItemProps: D } = Oe(
|
|
8494
|
+
[M, z, N, S]
|
|
8490
8495
|
), { isMounted: W, styles: Z } = Ke(k, {
|
|
8491
8496
|
duration: {
|
|
8492
8497
|
open: 300,
|
|
@@ -8513,22 +8518,22 @@ const Gt = (o) => {
|
|
|
8513
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));
|
|
8514
8519
|
s.forEach((ee) => {
|
|
8515
8520
|
const pe = ee.id ? ee.id : Ue();
|
|
8516
|
-
E.current.push(pe),
|
|
8521
|
+
E.current.push(pe), C.current.push(ee);
|
|
8517
8522
|
});
|
|
8518
8523
|
const T = (ee) => {
|
|
8519
|
-
const pe = E.current.indexOf(ee),
|
|
8520
|
-
|
|
8524
|
+
const pe = E.current.indexOf(ee), ie = C.current[pe];
|
|
8525
|
+
ie.linkContent && !ie.disabled && (V.current[pe].querySelector("a").click(), g(!1)), ie.callback && !ie.disabled && (ie.callback(ie), g(!1));
|
|
8521
8526
|
}, A = (ee) => {
|
|
8522
8527
|
ee.preventDefault(), ee.key === "Enter" && T(ee.currentTarget.id);
|
|
8523
8528
|
}, j = (ee) => {
|
|
8524
8529
|
T(ee.currentTarget.id);
|
|
8525
8530
|
}, q = s.map((ee, pe) => {
|
|
8526
|
-
const
|
|
8531
|
+
const ie = E.current[pe], le = `${b}__item`, we = ee.disabled ? `${le}--disabled` : null;
|
|
8527
8532
|
return /* @__PURE__ */ e.createElement(
|
|
8528
8533
|
"li",
|
|
8529
8534
|
y({
|
|
8530
|
-
key:
|
|
8531
|
-
id:
|
|
8535
|
+
key: ie,
|
|
8536
|
+
id: ie,
|
|
8532
8537
|
className: R([le, we]),
|
|
8533
8538
|
role: "menuitem",
|
|
8534
8539
|
tabIndex: h === pe ? 0 : -1,
|
|
@@ -8547,13 +8552,13 @@ const Gt = (o) => {
|
|
|
8547
8552
|
),
|
|
8548
8553
|
ee.linkContent ? ee.linkContent : ee.label
|
|
8549
8554
|
);
|
|
8550
|
-
}),
|
|
8555
|
+
}), Y = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8551
8556
|
"button",
|
|
8552
8557
|
y({
|
|
8553
8558
|
className: `${b}__trigger`,
|
|
8554
8559
|
"aria-label": t,
|
|
8555
8560
|
ref: x.setReference
|
|
8556
|
-
},
|
|
8561
|
+
}, L()),
|
|
8557
8562
|
U
|
|
8558
8563
|
), W && /* @__PURE__ */ e.createElement(
|
|
8559
8564
|
"div",
|
|
@@ -8564,27 +8569,27 @@ const Gt = (o) => {
|
|
|
8564
8569
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8565
8570
|
})
|
|
8566
8571
|
}, O()),
|
|
8567
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, Z) }, /* @__PURE__ */ e.createElement("ul", { className:
|
|
8568
|
-
)),
|
|
8572
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, Z) }, /* @__PURE__ */ e.createElement("ul", { className: w, role: "menu" }, K, /* @__PURE__ */ e.createElement("li", { role: "separator" }), q))
|
|
8573
|
+
)), X = (ee) => {
|
|
8569
8574
|
const pe = ee.currentTarget;
|
|
8570
8575
|
pe.classList.toggle(`${b}__toggle--expanded`), pe.setAttribute(
|
|
8571
8576
|
"aria-expanded",
|
|
8572
8577
|
pe.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
8573
8578
|
), pe.nextElementSibling.classList.toggle(`${b}__mobile-menu--expanded`);
|
|
8574
|
-
},
|
|
8579
|
+
}, re = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8575
8580
|
"button",
|
|
8576
8581
|
{
|
|
8577
8582
|
className: `${b}__toggle`,
|
|
8578
8583
|
"aria-expanded": !1,
|
|
8579
8584
|
"aria-label": t,
|
|
8580
|
-
onClick:
|
|
8585
|
+
onClick: X
|
|
8581
8586
|
},
|
|
8582
8587
|
/* @__PURE__ */ e.createElement("span", { className: `${b}__toggle-left` }, U, c || n),
|
|
8583
8588
|
G
|
|
8584
8589
|
), /* @__PURE__ */ e.createElement("div", { className: `${b}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
8585
8590
|
"ul",
|
|
8586
8591
|
{
|
|
8587
|
-
className: [
|
|
8592
|
+
className: [w, `${w}--isMobile`].join(" ").trim(),
|
|
8588
8593
|
role: "menu"
|
|
8589
8594
|
},
|
|
8590
8595
|
K,
|
|
@@ -8596,7 +8601,7 @@ const Gt = (o) => {
|
|
|
8596
8601
|
y({
|
|
8597
8602
|
className: R([b, _, l != null ? l : ""])
|
|
8598
8603
|
}, r),
|
|
8599
|
-
v ?
|
|
8604
|
+
v ? re : Y
|
|
8600
8605
|
);
|
|
8601
8606
|
}, ms = {
|
|
8602
8607
|
silver: "Silver",
|
|
@@ -8627,17 +8632,17 @@ const Gt = (o) => {
|
|
|
8627
8632
|
"workspaceList",
|
|
8628
8633
|
"className"
|
|
8629
8634
|
]);
|
|
8630
|
-
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;
|
|
8631
8636
|
let x = !1;
|
|
8632
8637
|
const H = $e(Ae);
|
|
8633
8638
|
H && (x = H.isMobile);
|
|
8634
|
-
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({
|
|
8635
8640
|
open: g,
|
|
8636
8641
|
onOpenChange: E,
|
|
8637
8642
|
whileElementsMounted: Be
|
|
8638
8643
|
}), D = Ge(O, { event: "mousedown" }), W = Te(O), Z = De(O, { role: "menu" }), U = ot(O, {
|
|
8639
8644
|
listRef: b,
|
|
8640
|
-
activeIndex:
|
|
8645
|
+
activeIndex: C,
|
|
8641
8646
|
onNavigate: u,
|
|
8642
8647
|
loop: !0,
|
|
8643
8648
|
openOnArrowKeyDown: !0,
|
|
@@ -8662,19 +8667,19 @@ const Gt = (o) => {
|
|
|
8662
8667
|
});
|
|
8663
8668
|
let q = d.find((te) => te.isActive);
|
|
8664
8669
|
q || (q = d[0]);
|
|
8665
|
-
const
|
|
8670
|
+
const Y = (te) => {
|
|
8666
8671
|
const { value: fe } = te.target, ke = d.filter((se) => se.displayName.toLowerCase().includes(fe.toLowerCase()));
|
|
8667
8672
|
v(ke);
|
|
8668
8673
|
};
|
|
8669
|
-
|
|
8674
|
+
oe(() => {
|
|
8670
8675
|
const te = d.map((fe) => be(y({}, fe), {
|
|
8671
8676
|
isActive: fe.isActive
|
|
8672
8677
|
}));
|
|
8673
8678
|
v(te);
|
|
8674
8679
|
}, [d]);
|
|
8675
|
-
const
|
|
8676
|
-
te.preventDefault(), te.key === "Enter" && b.current[
|
|
8677
|
-
},
|
|
8680
|
+
const X = (te) => {
|
|
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));
|
|
8682
|
+
}, re = /* @__PURE__ */ e.createElement("div", { className: `${N}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
8678
8683
|
ut,
|
|
8679
8684
|
{
|
|
8680
8685
|
size: "sm",
|
|
@@ -8696,21 +8701,21 @@ const Gt = (o) => {
|
|
|
8696
8701
|
iconSize: "md",
|
|
8697
8702
|
className: `${N}__trigger-icon`
|
|
8698
8703
|
}
|
|
8699
|
-
), pe =
|
|
8704
|
+
), pe = w && /* @__PURE__ */ e.createElement("div", { className: `${N}__filter` }, /* @__PURE__ */ e.createElement(
|
|
8700
8705
|
q1,
|
|
8701
8706
|
{
|
|
8702
8707
|
hasClearButton: !0,
|
|
8703
8708
|
onClear: () => v(d),
|
|
8704
8709
|
id: "workspace-filter",
|
|
8705
8710
|
label: a,
|
|
8706
|
-
onChange:
|
|
8711
|
+
onChange: Y,
|
|
8707
8712
|
placeholder: n,
|
|
8708
8713
|
showLabel: !1,
|
|
8709
8714
|
type: "search"
|
|
8710
8715
|
}
|
|
8711
|
-
)),
|
|
8716
|
+
)), ie = $.map(
|
|
8712
8717
|
(te, fe) => {
|
|
8713
|
-
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) => {
|
|
8714
8719
|
b.current[fe] = _e;
|
|
8715
8720
|
};
|
|
8716
8721
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -8724,12 +8729,12 @@ const Gt = (o) => {
|
|
|
8724
8729
|
ce
|
|
8725
8730
|
]),
|
|
8726
8731
|
role: "menuitem",
|
|
8727
|
-
tabIndex:
|
|
8732
|
+
tabIndex: C === fe ? 0 : -1,
|
|
8728
8733
|
ref: Ee,
|
|
8729
|
-
onKeyDown:
|
|
8734
|
+
onKeyDown: X
|
|
8730
8735
|
}, T()),
|
|
8731
8736
|
/* @__PURE__ */ e.createElement(
|
|
8732
|
-
|
|
8737
|
+
Me,
|
|
8733
8738
|
be(y({}, te.workspaceLink.props), {
|
|
8734
8739
|
onClick: () => E(!1)
|
|
8735
8740
|
}),
|
|
@@ -8763,7 +8768,7 @@ const Gt = (o) => {
|
|
|
8763
8768
|
"aria-label": t,
|
|
8764
8769
|
ref: S.setReference
|
|
8765
8770
|
}, G()),
|
|
8766
|
-
|
|
8771
|
+
re,
|
|
8767
8772
|
ee
|
|
8768
8773
|
), A && /* @__PURE__ */ e.createElement(
|
|
8769
8774
|
"div",
|
|
@@ -8774,7 +8779,7 @@ const Gt = (o) => {
|
|
|
8774
8779
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
8775
8780
|
}
|
|
8776
8781
|
}, K()),
|
|
8777
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, j) }, pe, /* @__PURE__ */ e.createElement("ul", { className: R([z, V]), role: "menu" }, /* @__PURE__ */ e.createElement("li", { className: `${N}__item-heading`, role: "presentation" }, c),
|
|
8782
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, j) }, pe, /* @__PURE__ */ e.createElement("ul", { className: R([z, V]), role: "menu" }, /* @__PURE__ */ e.createElement("li", { className: `${N}__item-heading`, role: "presentation" }, c), ie.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${N}__no-results` }, l) : ie), le)
|
|
8778
8783
|
)), ue = (te) => {
|
|
8779
8784
|
const fe = te.target;
|
|
8780
8785
|
fe.classList.toggle(`${N}__toggle--expanded`), fe.setAttribute(
|
|
@@ -8789,7 +8794,7 @@ const Gt = (o) => {
|
|
|
8789
8794
|
"aria-label": t,
|
|
8790
8795
|
onClick: ue
|
|
8791
8796
|
},
|
|
8792
|
-
|
|
8797
|
+
re,
|
|
8793
8798
|
ee
|
|
8794
8799
|
), /* @__PURE__ */ e.createElement("div", { className: `${N}__mobile-menu` }, pe, /* @__PURE__ */ e.createElement(
|
|
8795
8800
|
"ul",
|
|
@@ -8798,12 +8803,12 @@ const Gt = (o) => {
|
|
|
8798
8803
|
role: "menu"
|
|
8799
8804
|
},
|
|
8800
8805
|
/* @__PURE__ */ e.createElement("li", { className: `${N}__item-heading`, role: "presentation" }, c),
|
|
8801
|
-
|
|
8806
|
+
ie.length === 0 ? /* @__PURE__ */ e.createElement("p", { className: `${N}__no-results` }, l) : ie
|
|
8802
8807
|
), le));
|
|
8803
8808
|
return /* @__PURE__ */ e.createElement(
|
|
8804
8809
|
"span",
|
|
8805
8810
|
y({
|
|
8806
|
-
className: R([N,
|
|
8811
|
+
className: R([N, M, i])
|
|
8807
8812
|
}, h),
|
|
8808
8813
|
k ? he : we
|
|
8809
8814
|
);
|
|
@@ -8832,7 +8837,7 @@ const Gt = (o) => {
|
|
|
8832
8837
|
"className"
|
|
8833
8838
|
]);
|
|
8834
8839
|
const [i, h] = F(t);
|
|
8835
|
-
|
|
8840
|
+
oe(() => {
|
|
8836
8841
|
h(t);
|
|
8837
8842
|
}, [t]);
|
|
8838
8843
|
const m = i.length;
|
|
@@ -8842,7 +8847,7 @@ const Gt = (o) => {
|
|
|
8842
8847
|
info: `${f}--info`,
|
|
8843
8848
|
warning: `${f}--warning`,
|
|
8844
8849
|
critical: `${f}--critical`
|
|
8845
|
-
},
|
|
8850
|
+
}, C = m > 0 ? i[0].type : null, u = C ? `${f}-group--${C}` : null, $ = (H) => ({
|
|
8846
8851
|
zIndex: Tt - H
|
|
8847
8852
|
}), v = (H) => H === 0 ? 0 : -1, b = () => {
|
|
8848
8853
|
const H = document.getElementsByClassName(
|
|
@@ -8857,7 +8862,7 @@ const Gt = (o) => {
|
|
|
8857
8862
|
H[0]
|
|
8858
8863
|
]);
|
|
8859
8864
|
}, 200);
|
|
8860
|
-
},
|
|
8865
|
+
}, w = () => {
|
|
8861
8866
|
b(), document.getElementById(i[0].id).style.zIndex = (Tt + 2).toString(), document.getElementById(i[m - 1].id).style.zIndex = (Tt + 1).toString(), setTimeout(() => {
|
|
8862
8867
|
document.getElementById(i[0].id).classList.add(`${f}--fading`);
|
|
8863
8868
|
}, 50), setTimeout(() => {
|
|
@@ -8867,7 +8872,7 @@ const Gt = (o) => {
|
|
|
8867
8872
|
]), document.getElementById(i[0].id).classList.remove(`${f}--fading`);
|
|
8868
8873
|
}, 200);
|
|
8869
8874
|
}, x = (H, k) => {
|
|
8870
|
-
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) => {
|
|
8871
8876
|
Z.preventDefault(), document.getElementById(N).classList.add(`${f}--dismissing`), setTimeout(() => {
|
|
8872
8877
|
if (m === 1) {
|
|
8873
8878
|
h([]);
|
|
@@ -8886,7 +8891,7 @@ const Gt = (o) => {
|
|
|
8886
8891
|
className: R([f, E[S]]),
|
|
8887
8892
|
role: O,
|
|
8888
8893
|
style: {
|
|
8889
|
-
zIndex:
|
|
8894
|
+
zIndex: $(k).zIndex
|
|
8890
8895
|
}
|
|
8891
8896
|
},
|
|
8892
8897
|
/* @__PURE__ */ e.createElement("div", { className: `${f}__content` }, /* @__PURE__ */ e.createElement(
|
|
@@ -8897,7 +8902,7 @@ const Gt = (o) => {
|
|
|
8897
8902
|
className: `${f}__icon ${f}__icon--${H.type}`
|
|
8898
8903
|
}
|
|
8899
8904
|
), /* @__PURE__ */ e.createElement("div", { className: `${f}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, D, " "), z)),
|
|
8900
|
-
|
|
8905
|
+
M && /* @__PURE__ */ e.createElement(
|
|
8901
8906
|
"button",
|
|
8902
8907
|
{
|
|
8903
8908
|
className: `${f}__dismiss-button`,
|
|
@@ -8925,7 +8930,7 @@ const Gt = (o) => {
|
|
|
8925
8930
|
size: "lg",
|
|
8926
8931
|
className: `${f}__nav-button ${f}__nav-button--prev`,
|
|
8927
8932
|
ariaLabel: a,
|
|
8928
|
-
onClick:
|
|
8933
|
+
onClick: w
|
|
8929
8934
|
}
|
|
8930
8935
|
), /* @__PURE__ */ e.createElement(
|
|
8931
8936
|
_t,
|
|
@@ -9028,13 +9033,13 @@ const Gt = (o) => {
|
|
|
9028
9033
|
discovery: `${g}--discovery`,
|
|
9029
9034
|
dismissing: `${g}--dismissing`,
|
|
9030
9035
|
dismissed: `${g}--dismissed`
|
|
9031
|
-
},
|
|
9036
|
+
}, C = o ? `${g}--hasTitle` : null, $ = ["critical", "warning"].includes(l) ? "alert" : "status", v = `${r[l]}: `, b = () => {
|
|
9032
9037
|
f.current.addEventListener("animationend", _, {
|
|
9033
9038
|
once: !0
|
|
9034
9039
|
});
|
|
9035
9040
|
}, _ = (x) => {
|
|
9036
9041
|
a(x, s);
|
|
9037
|
-
},
|
|
9042
|
+
}, w = () => {
|
|
9038
9043
|
b(), f.current.classList.toggle(E.dismissing), setTimeout(() => {
|
|
9039
9044
|
f.current.classList.toggle(E.dismissing), f.current.classList.toggle(E.dismissed);
|
|
9040
9045
|
}, 400);
|
|
@@ -9042,10 +9047,10 @@ const Gt = (o) => {
|
|
|
9042
9047
|
return /* @__PURE__ */ e.createElement(
|
|
9043
9048
|
"div",
|
|
9044
9049
|
y({
|
|
9045
|
-
className: [g, E[l],
|
|
9050
|
+
className: [g, E[l], C, d != null ? d : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
9046
9051
|
id: s,
|
|
9047
9052
|
ref: f,
|
|
9048
|
-
role:
|
|
9053
|
+
role: $
|
|
9049
9054
|
}, i),
|
|
9050
9055
|
/* @__PURE__ */ e.createElement("div", { className: `${g}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${g}__icon ${g}__icon-${l}` }, /* @__PURE__ */ e.createElement(
|
|
9051
9056
|
P,
|
|
@@ -9058,7 +9063,7 @@ const Gt = (o) => {
|
|
|
9058
9063
|
"button",
|
|
9059
9064
|
{
|
|
9060
9065
|
className: `${g}__dismiss`,
|
|
9061
|
-
onClick:
|
|
9066
|
+
onClick: w,
|
|
9062
9067
|
"aria-label": t,
|
|
9063
9068
|
role: "button"
|
|
9064
9069
|
},
|
|
@@ -9203,18 +9208,18 @@ const hn = () => {
|
|
|
9203
9208
|
"className"
|
|
9204
9209
|
]);
|
|
9205
9210
|
var K, T, A, j;
|
|
9206
|
-
const [
|
|
9207
|
-
|
|
9211
|
+
const [C, u] = F(i);
|
|
9212
|
+
oe(() => {
|
|
9208
9213
|
u(i);
|
|
9209
|
-
}, [i]),
|
|
9210
|
-
h(
|
|
9211
|
-
}, [
|
|
9212
|
-
const
|
|
9214
|
+
}, [i]), oe(() => {
|
|
9215
|
+
h(C);
|
|
9216
|
+
}, [C]);
|
|
9217
|
+
const $ = typeof s, v = "pds-popover", b = [
|
|
9213
9218
|
`${v}__trigger-custom`,
|
|
9214
|
-
|
|
9215
|
-
].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({
|
|
9216
9221
|
placement: o,
|
|
9217
|
-
open:
|
|
9222
|
+
open: C,
|
|
9218
9223
|
onOpenChange(q) {
|
|
9219
9224
|
u(q), q || c();
|
|
9220
9225
|
},
|
|
@@ -9222,12 +9227,12 @@ const hn = () => {
|
|
|
9222
9227
|
$t(Ye + gs + _),
|
|
9223
9228
|
wt({ padding: 8 }),
|
|
9224
9229
|
yt({ padding: 8 }),
|
|
9225
|
-
l2({ element:
|
|
9230
|
+
l2({ element: w })
|
|
9226
9231
|
],
|
|
9227
9232
|
whileElementsMounted: Be
|
|
9228
|
-
}),
|
|
9233
|
+
}), M = () => {
|
|
9229
9234
|
u(!1), c && c();
|
|
9230
|
-
}, 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([
|
|
9231
9236
|
z,
|
|
9232
9237
|
V,
|
|
9233
9238
|
S
|
|
@@ -9254,7 +9259,7 @@ const hn = () => {
|
|
|
9254
9259
|
y({
|
|
9255
9260
|
className: `${v}__trigger`,
|
|
9256
9261
|
ref: x.setReference
|
|
9257
|
-
},
|
|
9262
|
+
}, L()),
|
|
9258
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(
|
|
9259
9264
|
P,
|
|
9260
9265
|
{
|
|
@@ -9274,7 +9279,7 @@ const hn = () => {
|
|
|
9274
9279
|
/* @__PURE__ */ e.createElement(
|
|
9275
9280
|
c2,
|
|
9276
9281
|
{
|
|
9277
|
-
ref:
|
|
9282
|
+
ref: w,
|
|
9278
9283
|
context: k,
|
|
9279
9284
|
height: Ye,
|
|
9280
9285
|
width: g1,
|
|
@@ -9288,7 +9293,7 @@ const hn = () => {
|
|
|
9288
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(
|
|
9289
9294
|
"button",
|
|
9290
9295
|
{
|
|
9291
|
-
onClick:
|
|
9296
|
+
onClick: M,
|
|
9292
9297
|
className: `${v}__close`
|
|
9293
9298
|
},
|
|
9294
9299
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, "Close"),
|
|
@@ -9329,19 +9334,19 @@ const hn = () => {
|
|
|
9329
9334
|
"size",
|
|
9330
9335
|
"className"
|
|
9331
9336
|
]);
|
|
9332
|
-
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;
|
|
9333
9338
|
let v = "neutral";
|
|
9334
9339
|
t.forEach((x) => {
|
|
9335
9340
|
o >= x.percentage && (v = x.colorType);
|
|
9336
9341
|
});
|
|
9337
|
-
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";
|
|
9338
9343
|
return /* @__PURE__ */ e.createElement(
|
|
9339
9344
|
"div",
|
|
9340
9345
|
y({
|
|
9341
9346
|
className: [E, i].join(" ").trim().replace(/\s+/g, " "),
|
|
9342
|
-
style: { "--bar-percentage": `${
|
|
9347
|
+
style: { "--bar-percentage": `${$}%` }
|
|
9343
9348
|
}, h),
|
|
9344
|
-
/* @__PURE__ */ e.createElement("div", { id: g, className:
|
|
9349
|
+
/* @__PURE__ */ e.createElement("div", { id: g, className: C }, n),
|
|
9345
9350
|
(_ || r) && /* @__PURE__ */ e.createElement("div", { className: `${E}__details` }, _ && b, r && /* @__PURE__ */ e.createElement(
|
|
9346
9351
|
"div",
|
|
9347
9352
|
{
|
|
@@ -9358,7 +9363,7 @@ const hn = () => {
|
|
|
9358
9363
|
{
|
|
9359
9364
|
role: "progressbar",
|
|
9360
9365
|
"aria-labelledby": g,
|
|
9361
|
-
"aria-valuenow":
|
|
9366
|
+
"aria-valuenow": $,
|
|
9362
9367
|
className: u
|
|
9363
9368
|
},
|
|
9364
9369
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9366,13 +9371,13 @@ const hn = () => {
|
|
|
9366
9371
|
{
|
|
9367
9372
|
className: `${E}__bar`,
|
|
9368
9373
|
style: {
|
|
9369
|
-
width: `${
|
|
9374
|
+
width: `${$}%`,
|
|
9370
9375
|
backgroundColor: `var(${E1[v]})`
|
|
9371
9376
|
}
|
|
9372
9377
|
}
|
|
9373
9378
|
)
|
|
9374
9379
|
)),
|
|
9375
|
-
|
|
9380
|
+
w && b
|
|
9376
9381
|
);
|
|
9377
9382
|
}, Es = 3.815, _s = 4.678, bs = 5.96, vs = (i) => {
|
|
9378
9383
|
var h = i, {
|
|
@@ -9394,17 +9399,17 @@ const hn = () => {
|
|
|
9394
9399
|
"size",
|
|
9395
9400
|
"className"
|
|
9396
9401
|
]);
|
|
9397
|
-
const m = t || Ue(), f = "pds-progress-ring", g = c ? `${f}__label` : "visually-hidden", E = `${f}__loading-text ${f}__loading-text--${l}`,
|
|
9398
|
-
let u =
|
|
9399
|
-
l === "sm" && (u =
|
|
9400
|
-
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;
|
|
9401
9406
|
let x;
|
|
9402
9407
|
return s ? x = s : o ? x = `${a}%` : x = "", /* @__PURE__ */ e.createElement(
|
|
9403
9408
|
"div",
|
|
9404
9409
|
y({
|
|
9405
9410
|
className: [f, r].join(" ").trim().replace(/\s+/g, " "),
|
|
9406
9411
|
style: {
|
|
9407
|
-
"--ring-stroke-dashoffset":
|
|
9412
|
+
"--ring-stroke-dashoffset": w,
|
|
9408
9413
|
"--ring-stroke-dasharray": _
|
|
9409
9414
|
}
|
|
9410
9415
|
}, d),
|
|
@@ -9431,7 +9436,7 @@ const hn = () => {
|
|
|
9431
9436
|
cx: u / 2,
|
|
9432
9437
|
cy: u / 2,
|
|
9433
9438
|
r: v,
|
|
9434
|
-
strokeWidth:
|
|
9439
|
+
strokeWidth: $
|
|
9435
9440
|
}
|
|
9436
9441
|
),
|
|
9437
9442
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9441,9 +9446,9 @@ const hn = () => {
|
|
|
9441
9446
|
cx: u / 2,
|
|
9442
9447
|
cy: u / 2,
|
|
9443
9448
|
r: v,
|
|
9444
|
-
strokeWidth:
|
|
9449
|
+
strokeWidth: $,
|
|
9445
9450
|
strokeDasharray: _,
|
|
9446
|
-
strokeDashoffset:
|
|
9451
|
+
strokeDashoffset: w,
|
|
9447
9452
|
transform: `rotate(-90 ${u / 2} ${u / 2})`
|
|
9448
9453
|
}
|
|
9449
9454
|
),
|
|
@@ -9590,14 +9595,14 @@ const hn = () => {
|
|
|
9590
9595
|
]);
|
|
9591
9596
|
const l = "pds-stepper", r = "pds-stepper-mobile", d = ae(), [i] = Nt(d), h = i.width, m = Number(
|
|
9592
9597
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
9593
|
-
) * 16, f = -40, g = 2, E = 5,
|
|
9594
|
-
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;
|
|
9595
9600
|
let D = z;
|
|
9596
|
-
(
|
|
9601
|
+
(L || O) && (D = V);
|
|
9597
9602
|
const W = `${l}__step`, Z = [W];
|
|
9598
9603
|
x && Z.push(`${W}--current`), H && Z.push(`${W}--complete`), k && Z.push(`${W}--error`);
|
|
9599
|
-
let U = `${s.step} ${
|
|
9600
|
-
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}`);
|
|
9601
9606
|
const G = H ? /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${l}__step-indicator` }, /* @__PURE__ */ e.createElement(
|
|
9602
9607
|
P,
|
|
9603
9608
|
{
|
|
@@ -9627,13 +9632,13 @@ const hn = () => {
|
|
|
9627
9632
|
key: b.id,
|
|
9628
9633
|
id: b.id,
|
|
9629
9634
|
"aria-label": U,
|
|
9630
|
-
"aria-posinset":
|
|
9631
|
-
"aria-setsize":
|
|
9635
|
+
"aria-posinset": w,
|
|
9636
|
+
"aria-setsize": C,
|
|
9632
9637
|
"aria-current": x ? "step" : null,
|
|
9633
9638
|
className: Z.join(" ").trim().replace(/\s+/g, " "),
|
|
9634
9639
|
style: { width: D }
|
|
9635
9640
|
},
|
|
9636
|
-
!
|
|
9641
|
+
!L && /* @__PURE__ */ e.createElement(
|
|
9637
9642
|
"span",
|
|
9638
9643
|
{
|
|
9639
9644
|
className: `${l}__connector ${l}__connector--before`,
|
|
@@ -9653,13 +9658,13 @@ const hn = () => {
|
|
|
9653
9658
|
)
|
|
9654
9659
|
);
|
|
9655
9660
|
}), v = t.map((b, _) => {
|
|
9656
|
-
const
|
|
9661
|
+
const w = _ + 1, x = _ === u, H = _ === C - 1, k = b.hasError && x, N = t[u + 1] ? t[u + 1].label : null;
|
|
9657
9662
|
if (x) {
|
|
9658
|
-
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 ? {
|
|
9659
9664
|
"--pds-color-progress-partial": "var(--pds-color-semantic-critical-foreground)"
|
|
9660
9665
|
} : {
|
|
9661
9666
|
"--pds-color-progress-partial": "var(--pds-color-stepper-completed)"
|
|
9662
|
-
}, S = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ",
|
|
9667
|
+
}, S = /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, s.step, " ", w, ", ", s.hasError);
|
|
9663
9668
|
return /* @__PURE__ */ e.createElement(
|
|
9664
9669
|
"div",
|
|
9665
9670
|
{
|
|
@@ -9673,7 +9678,7 @@ const hn = () => {
|
|
|
9673
9678
|
label: "Step progress",
|
|
9674
9679
|
size: "sm",
|
|
9675
9680
|
percentage: z,
|
|
9676
|
-
innerLabel:
|
|
9681
|
+
innerLabel: M,
|
|
9677
9682
|
style: V
|
|
9678
9683
|
}
|
|
9679
9684
|
)),
|
|
@@ -9688,19 +9693,19 @@ const hn = () => {
|
|
|
9688
9693
|
);
|
|
9689
9694
|
}
|
|
9690
9695
|
});
|
|
9691
|
-
if (
|
|
9696
|
+
if (C >= g && C <= E)
|
|
9692
9697
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9693
9698
|
"div",
|
|
9694
9699
|
y({
|
|
9695
9700
|
className: [l, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9696
|
-
"data-steps":
|
|
9701
|
+
"data-steps": C
|
|
9697
9702
|
}, a),
|
|
9698
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d },
|
|
9703
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${l}__steps`, ref: d }, $)
|
|
9699
9704
|
), /* @__PURE__ */ e.createElement(
|
|
9700
9705
|
"div",
|
|
9701
9706
|
y({
|
|
9702
9707
|
className: [r, n].join(" ").trim().replace(/\s+/g, " "),
|
|
9703
|
-
"data-steps":
|
|
9708
|
+
"data-steps": C
|
|
9704
9709
|
}, a),
|
|
9705
9710
|
/* @__PURE__ */ e.createElement("div", { className: `${r}__steps` }, v)
|
|
9706
9711
|
));
|
|
@@ -9744,51 +9749,51 @@ const hn = () => {
|
|
|
9744
9749
|
"~"
|
|
9745
9750
|
], g = `#${l} h2:not(.${c}), h3:not(.${c})`, E = () => {
|
|
9746
9751
|
const [k, N] = F([]);
|
|
9747
|
-
return
|
|
9748
|
-
const
|
|
9752
|
+
return oe(() => {
|
|
9753
|
+
const M = Array.from(
|
|
9749
9754
|
document.querySelectorAll(g)
|
|
9750
9755
|
);
|
|
9751
|
-
|
|
9756
|
+
M.map((V) => {
|
|
9752
9757
|
f.forEach((S) => {
|
|
9753
9758
|
V.id.includes(S) && (V.id = V.id.replaceAll(S, "-"));
|
|
9754
9759
|
});
|
|
9755
|
-
}),
|
|
9760
|
+
}), M.map((V) => {
|
|
9756
9761
|
const S = `item-${Ue()}`;
|
|
9757
9762
|
V.id || (V.id = S);
|
|
9758
9763
|
});
|
|
9759
|
-
const z =
|
|
9764
|
+
const z = C(M);
|
|
9760
9765
|
N(z);
|
|
9761
9766
|
}, []), { nestedHeadings: k };
|
|
9762
|
-
},
|
|
9767
|
+
}, C = (k) => {
|
|
9763
9768
|
const N = [];
|
|
9764
|
-
return k.forEach((
|
|
9765
|
-
const { innerText: z, id: V } =
|
|
9766
|
-
|
|
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({
|
|
9767
9772
|
id: V,
|
|
9768
9773
|
title: z
|
|
9769
9774
|
});
|
|
9770
9775
|
}), N;
|
|
9771
|
-
}, { nestedHeadings: u } = E(), [
|
|
9776
|
+
}, { nestedHeadings: u } = E(), [$, v] = F();
|
|
9772
9777
|
((k) => {
|
|
9773
9778
|
const N = ae({});
|
|
9774
|
-
|
|
9775
|
-
const
|
|
9779
|
+
oe(() => {
|
|
9780
|
+
const M = (S) => {
|
|
9776
9781
|
N.current = S.reduce((D, W) => (D[W.target.id] = W, D), N.current);
|
|
9777
|
-
const
|
|
9782
|
+
const L = [];
|
|
9778
9783
|
Object.keys(N.current).forEach((D) => {
|
|
9779
9784
|
const W = N.current[D];
|
|
9780
|
-
W.isIntersecting &&
|
|
9785
|
+
W.isIntersecting && L.push(W);
|
|
9781
9786
|
});
|
|
9782
9787
|
const O = (D) => V.findIndex((W) => W.id === D);
|
|
9783
|
-
if (
|
|
9784
|
-
k(
|
|
9785
|
-
else if (
|
|
9786
|
-
const D =
|
|
9788
|
+
if (L.length === 1)
|
|
9789
|
+
k(L[0].target.id);
|
|
9790
|
+
else if (L.length > 1) {
|
|
9791
|
+
const D = L.sort(
|
|
9787
9792
|
(W, Z) => O(W.target.id) - O(Z.target.id)
|
|
9788
9793
|
);
|
|
9789
9794
|
k(D[0].target.id);
|
|
9790
9795
|
}
|
|
9791
|
-
}, z = new IntersectionObserver(
|
|
9796
|
+
}, z = new IntersectionObserver(M, {
|
|
9792
9797
|
rootMargin: "0px 0px -20% 0px"
|
|
9793
9798
|
}), V = Array.from(
|
|
9794
9799
|
document.querySelectorAll(g)
|
|
@@ -9798,20 +9803,20 @@ const hn = () => {
|
|
|
9798
9803
|
})(v);
|
|
9799
9804
|
const _ = (k) => {
|
|
9800
9805
|
typeof window != "undefined" && window.location.hash !== `#${k}` && window.history.pushState({}, "", `#${k}`);
|
|
9801
|
-
},
|
|
9806
|
+
}, w = (k) => {
|
|
9802
9807
|
document.querySelector(`#${k}`).scrollIntoView({
|
|
9803
9808
|
behavior: "smooth",
|
|
9804
9809
|
block: "start"
|
|
9805
9810
|
});
|
|
9806
9811
|
}, x = (k, N) => {
|
|
9807
|
-
k.preventDefault(), t && _(N),
|
|
9812
|
+
k.preventDefault(), t && _(N), w(N);
|
|
9808
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(
|
|
9809
9814
|
"a",
|
|
9810
9815
|
{
|
|
9811
|
-
className: N.id ===
|
|
9816
|
+
className: N.id === $ ? `${m}__link ${m}__link--active` : `${m}__link`,
|
|
9812
9817
|
href: `#${N.id}`,
|
|
9813
|
-
onClick: (
|
|
9814
|
-
x(
|
|
9818
|
+
onClick: (M) => {
|
|
9819
|
+
x(M, N.id);
|
|
9815
9820
|
}
|
|
9816
9821
|
},
|
|
9817
9822
|
N.title
|
|
@@ -9820,16 +9825,16 @@ const hn = () => {
|
|
|
9820
9825
|
{
|
|
9821
9826
|
className: `${m}__list ${m}__list--second-level`
|
|
9822
9827
|
},
|
|
9823
|
-
N.items.map((
|
|
9828
|
+
N.items.map((M) => /* @__PURE__ */ e.createElement("li", { key: M.id, className: `${m}__list-item` }, /* @__PURE__ */ e.createElement(
|
|
9824
9829
|
"a",
|
|
9825
9830
|
{
|
|
9826
|
-
className:
|
|
9827
|
-
href: `#${
|
|
9831
|
+
className: M.id === $ ? `${m}__link ${m}__link--active` : `${m}__link`,
|
|
9832
|
+
href: `#${M.id}`,
|
|
9828
9833
|
onClick: (z) => {
|
|
9829
|
-
x(z,
|
|
9834
|
+
x(z, M.id);
|
|
9830
9835
|
}
|
|
9831
9836
|
},
|
|
9832
|
-
|
|
9837
|
+
M.title
|
|
9833
9838
|
)))
|
|
9834
9839
|
))));
|
|
9835
9840
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -9839,7 +9844,7 @@ const hn = () => {
|
|
|
9839
9844
|
className: R([m, r])
|
|
9840
9845
|
}, d),
|
|
9841
9846
|
a && /* @__PURE__ */ e.createElement(
|
|
9842
|
-
|
|
9847
|
+
Lt,
|
|
9843
9848
|
{
|
|
9844
9849
|
baseClass: m,
|
|
9845
9850
|
className: `${o ? null : "visually-hidden"}`,
|
|
@@ -9847,7 +9852,7 @@ const hn = () => {
|
|
|
9847
9852
|
},
|
|
9848
9853
|
a
|
|
9849
9854
|
),
|
|
9850
|
-
/* @__PURE__ */ e.createElement(H, { headings: u, activeID:
|
|
9855
|
+
/* @__PURE__ */ e.createElement(H, { headings: u, activeID: $ })
|
|
9851
9856
|
);
|
|
9852
9857
|
}, wn = (r) => {
|
|
9853
9858
|
var d = r, {
|
|
@@ -9867,19 +9872,19 @@ const hn = () => {
|
|
|
9867
9872
|
"className"
|
|
9868
9873
|
]);
|
|
9869
9874
|
const i = "pds-tabs", [h, m] = F(a != null ? a : s);
|
|
9870
|
-
|
|
9875
|
+
oe(() => {
|
|
9871
9876
|
a !== void 0 && m(a);
|
|
9872
9877
|
}, [a]);
|
|
9873
9878
|
const f = (u) => {
|
|
9874
|
-
const
|
|
9875
|
-
if (
|
|
9876
|
-
const v = parseInt(
|
|
9879
|
+
const $ = u.currentTarget.getAttribute("data-tabnumber");
|
|
9880
|
+
if ($) {
|
|
9881
|
+
const v = parseInt($, 10);
|
|
9877
9882
|
m(v);
|
|
9878
9883
|
}
|
|
9879
9884
|
}, g = ae([]);
|
|
9880
|
-
|
|
9885
|
+
oe(() => {
|
|
9881
9886
|
n(h);
|
|
9882
|
-
}, [h, n]),
|
|
9887
|
+
}, [h, n]), oe(() => {
|
|
9883
9888
|
const u = g.current.length - 1;
|
|
9884
9889
|
if (h > u) {
|
|
9885
9890
|
m(0);
|
|
@@ -9889,26 +9894,26 @@ const hn = () => {
|
|
|
9889
9894
|
return;
|
|
9890
9895
|
}
|
|
9891
9896
|
}, [h]);
|
|
9892
|
-
const E = (u,
|
|
9897
|
+
const E = (u, $) => {
|
|
9893
9898
|
const v = h;
|
|
9894
|
-
let b = g.current[
|
|
9895
|
-
b || (b =
|
|
9896
|
-
},
|
|
9897
|
-
const
|
|
9898
|
-
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);
|
|
9899
9904
|
}, b = () => {
|
|
9900
|
-
E((h - 1 +
|
|
9905
|
+
E((h - 1 + $) % $, "prev"), m(h - 1);
|
|
9901
9906
|
}, _ = () => {
|
|
9902
9907
|
E(0), m(0);
|
|
9903
|
-
},
|
|
9904
|
-
E(
|
|
9908
|
+
}, w = () => {
|
|
9909
|
+
E($ - 1), m($ - 1);
|
|
9905
9910
|
}, x = () => {
|
|
9906
9911
|
g.current[h].focus();
|
|
9907
9912
|
}, k = {
|
|
9908
9913
|
ArrowRight: v,
|
|
9909
9914
|
ArrowLeft: b,
|
|
9910
9915
|
Home: _,
|
|
9911
|
-
End:
|
|
9916
|
+
End: w,
|
|
9912
9917
|
Space: x,
|
|
9913
9918
|
Enter: x
|
|
9914
9919
|
}[u.code];
|
|
@@ -9922,53 +9927,53 @@ const hn = () => {
|
|
|
9922
9927
|
"aria-label": t,
|
|
9923
9928
|
"aria-orientation": "horizontal"
|
|
9924
9929
|
},
|
|
9925
|
-
c.map(({ disabled: u, icon:
|
|
9930
|
+
c.map(({ disabled: u, icon: $, tabId: v, tabLabel: b, tally: _ }, w) => /* @__PURE__ */ e.createElement(
|
|
9926
9931
|
"button",
|
|
9927
9932
|
{
|
|
9928
9933
|
className: `${i}__tab`,
|
|
9929
|
-
"aria-selected":
|
|
9930
|
-
"data-tabnumber":
|
|
9934
|
+
"aria-selected": w == h,
|
|
9935
|
+
"data-tabnumber": w,
|
|
9931
9936
|
role: "tab",
|
|
9932
9937
|
id: v,
|
|
9933
9938
|
onKeyDown: (x) => {
|
|
9934
|
-
x.preventDefault(),
|
|
9939
|
+
x.preventDefault(), C(x);
|
|
9935
9940
|
},
|
|
9936
9941
|
key: b,
|
|
9937
|
-
ref: (x) => u ? null : g.current[
|
|
9938
|
-
"aria-controls": `tabpanel_${
|
|
9939
|
-
tabIndex: h ===
|
|
9942
|
+
ref: (x) => u ? null : g.current[w] = x,
|
|
9943
|
+
"aria-controls": `tabpanel_${w}`,
|
|
9944
|
+
tabIndex: h === w ? 1 : -1,
|
|
9940
9945
|
"aria-disabled": !!u,
|
|
9941
9946
|
onClick: u ? null : f,
|
|
9942
9947
|
type: "button"
|
|
9943
9948
|
},
|
|
9944
|
-
/* @__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)
|
|
9945
9950
|
))
|
|
9946
|
-
), c.map(({ disabled: u, icon:
|
|
9951
|
+
), c.map(({ disabled: u, icon: $, panelContent: v, tabLabel: b, tally: _ }, w) => /* @__PURE__ */ e.createElement(
|
|
9947
9952
|
"div",
|
|
9948
9953
|
{
|
|
9949
9954
|
className: `${i}__panel`,
|
|
9950
9955
|
role: "tabpanel",
|
|
9951
|
-
key:
|
|
9952
|
-
id: `${i}__tab--${
|
|
9953
|
-
"aria-labelledby": `${i}__tab--${
|
|
9956
|
+
key: w,
|
|
9957
|
+
id: `${i}__tab--${w}`,
|
|
9958
|
+
"aria-labelledby": `${i}__tab--${w}`
|
|
9954
9959
|
},
|
|
9955
9960
|
/* @__PURE__ */ e.createElement(
|
|
9956
9961
|
"button",
|
|
9957
9962
|
{
|
|
9958
9963
|
className: `${i}__trigger`,
|
|
9959
|
-
"aria-selected":
|
|
9964
|
+
"aria-selected": w == h,
|
|
9960
9965
|
role: "tab",
|
|
9961
|
-
"data-tabnumber":
|
|
9966
|
+
"data-tabnumber": w,
|
|
9962
9967
|
key: b,
|
|
9963
|
-
onKeyDown:
|
|
9968
|
+
onKeyDown: C,
|
|
9964
9969
|
"aria-disabled": !!u,
|
|
9965
|
-
"aria-controls": `tabpanel_${
|
|
9966
|
-
tabIndex: h ===
|
|
9970
|
+
"aria-controls": `tabpanel_${w}`,
|
|
9971
|
+
tabIndex: h === w ? 1 : -1,
|
|
9967
9972
|
onClick: u ? null : f,
|
|
9968
9973
|
type: "button"
|
|
9969
9974
|
},
|
|
9970
|
-
/* @__PURE__ */ e.createElement("div", { key:
|
|
9971
|
-
|
|
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(
|
|
9972
9977
|
P,
|
|
9973
9978
|
{
|
|
9974
9979
|
iconName: "angleUp",
|
|
@@ -9988,7 +9993,7 @@ const hn = () => {
|
|
|
9988
9993
|
"section",
|
|
9989
9994
|
{
|
|
9990
9995
|
className: `${i}__panel-content`,
|
|
9991
|
-
hidden:
|
|
9996
|
+
hidden: w != h
|
|
9992
9997
|
},
|
|
9993
9998
|
v
|
|
9994
9999
|
)
|
|
@@ -10037,15 +10042,15 @@ const Cs = (t) => {
|
|
|
10037
10042
|
"tagLabel",
|
|
10038
10043
|
"className"
|
|
10039
10044
|
]);
|
|
10040
|
-
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 = () => {
|
|
10041
10046
|
m((b) => !b);
|
|
10042
10047
|
};
|
|
10043
|
-
let u,
|
|
10044
|
-
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(
|
|
10045
10050
|
u,
|
|
10046
10051
|
y({
|
|
10047
|
-
href:
|
|
10048
|
-
to:
|
|
10052
|
+
href: $ === "href" ? v : null,
|
|
10053
|
+
to: $ === "to" ? v : null,
|
|
10049
10054
|
className: [f, g, E, l].join(" ").trim().replace(/\s+/g, " ")
|
|
10050
10055
|
}, r),
|
|
10051
10056
|
/* @__PURE__ */ e.createElement("span", { className: `${f}__label`, title: o }, $s(o, 20)),
|
|
@@ -10056,7 +10061,7 @@ const Cs = (t) => {
|
|
|
10056
10061
|
className: `${f}__remove`,
|
|
10057
10062
|
"aria-label": `${a}: ${o}`,
|
|
10058
10063
|
onClick: () => {
|
|
10059
|
-
|
|
10064
|
+
C(), n();
|
|
10060
10065
|
}
|
|
10061
10066
|
},
|
|
10062
10067
|
/* @__PURE__ */ e.createElement(
|
|
@@ -10095,7 +10100,7 @@ const Cs = (t) => {
|
|
|
10095
10100
|
}, r),
|
|
10096
10101
|
a && /* @__PURE__ */ e.createElement("div", { className: `${h}__image` }, /* @__PURE__ */ e.createElement("img", { src: a, alt: "" })),
|
|
10097
10102
|
n && /* @__PURE__ */ e.createElement(
|
|
10098
|
-
|
|
10103
|
+
Lt,
|
|
10099
10104
|
{
|
|
10100
10105
|
baseClass: h,
|
|
10101
10106
|
className: "pds-ts-xl",
|
|
@@ -10145,8 +10150,8 @@ const Cs = (t) => {
|
|
|
10145
10150
|
}
|
|
10146
10151
|
))
|
|
10147
10152
|
);
|
|
10148
|
-
}, kn = (
|
|
10149
|
-
var u =
|
|
10153
|
+
}, kn = (C) => {
|
|
10154
|
+
var u = C, {
|
|
10150
10155
|
alignContent: t = "flex-start",
|
|
10151
10156
|
alignItems: s = "stretch",
|
|
10152
10157
|
flexDirection: n = "row",
|
|
@@ -10180,15 +10185,15 @@ const Cs = (t) => {
|
|
|
10180
10185
|
let v = A1() <= 640;
|
|
10181
10186
|
const b = $e(Ae);
|
|
10182
10187
|
b && (v = b.isMobile);
|
|
10183
|
-
const _ = "pds-flex",
|
|
10188
|
+
const _ = "pds-flex", w = `${_}-container`, x = v ? `${w}--mobile` : null;
|
|
10184
10189
|
let H = null;
|
|
10185
10190
|
v ? H = `${_}-direction--${d}` : n !== "row" && (H = `${_}-direction--${n}`);
|
|
10186
10191
|
let k = null;
|
|
10187
10192
|
v ? i ? i !== "nowrap" && (k = `${_}-wrap--${i}`) : a !== "nowrap" && (k = `${_}-wrap--${a}`) : a !== "nowrap" && (k = `${_}-wrap--${a}`);
|
|
10188
10193
|
let N = null;
|
|
10189
10194
|
v ? m ? m !== "flex-start" && (N = `${_}-justify--${m}`) : o !== "flex-start" && (N = `${_}-justify--${o}`) : o !== "flex-start" && (N = `${_}-justify--${o}`);
|
|
10190
|
-
let
|
|
10191
|
-
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}`);
|
|
10192
10197
|
let z = null;
|
|
10193
10198
|
v ? r ? r !== "flex-start" && (z = `${_}-align-content--${r}`) : t !== "flex-start" && (z = `${_}-align-content--${t}`) : t !== "flex-start" && (z = `${_}-align-content--${t}`);
|
|
10194
10199
|
let V = null;
|
|
@@ -10196,12 +10201,12 @@ const Cs = (t) => {
|
|
|
10196
10201
|
"div",
|
|
10197
10202
|
y({
|
|
10198
10203
|
className: R([
|
|
10199
|
-
|
|
10204
|
+
w,
|
|
10200
10205
|
x,
|
|
10201
10206
|
H,
|
|
10202
10207
|
k,
|
|
10203
10208
|
N,
|
|
10204
|
-
|
|
10209
|
+
M,
|
|
10205
10210
|
z,
|
|
10206
10211
|
V,
|
|
10207
10212
|
g != null ? g : ""
|
|
@@ -10233,13 +10238,13 @@ const Cs = (t) => {
|
|
|
10233
10238
|
const g = $e(Ae);
|
|
10234
10239
|
g && (f = g.isMobile);
|
|
10235
10240
|
const E = kt(t);
|
|
10236
|
-
let
|
|
10237
|
-
c === "narrow" && (
|
|
10238
|
-
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(
|
|
10239
10244
|
"div",
|
|
10240
10245
|
{
|
|
10241
10246
|
key: "content",
|
|
10242
|
-
className: `${i}__main ${f ? "pds-grid-item" :
|
|
10247
|
+
className: `${i}__main ${f ? "pds-grid-item" : C}`
|
|
10243
10248
|
},
|
|
10244
10249
|
E.content
|
|
10245
10250
|
), v = /* @__PURE__ */ e.createElement(
|
|
@@ -10260,9 +10265,9 @@ const Cs = (t) => {
|
|
|
10260
10265
|
o != null ? o : ""
|
|
10261
10266
|
])
|
|
10262
10267
|
}, l),
|
|
10263
|
-
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)
|
|
10264
10269
|
);
|
|
10265
|
-
},
|
|
10270
|
+
}, Ln = (a) => {
|
|
10266
10271
|
var c = a, {
|
|
10267
10272
|
children: t,
|
|
10268
10273
|
className: s
|
|
@@ -10298,7 +10303,7 @@ const Cs = (t) => {
|
|
|
10298
10303
|
),
|
|
10299
10304
|
r && /* @__PURE__ */ e.createElement("div", { className: `${m}__form-container` }, r)
|
|
10300
10305
|
);
|
|
10301
|
-
},
|
|
10306
|
+
}, Mn = (c) => {
|
|
10302
10307
|
var o = c, {
|
|
10303
10308
|
children: t,
|
|
10304
10309
|
gridGap: s = "standard",
|
|
@@ -10358,21 +10363,21 @@ const Cs = (t) => {
|
|
|
10358
10363
|
case "one-third-end":
|
|
10359
10364
|
g = f.concat(m), E = f.concat(h);
|
|
10360
10365
|
}
|
|
10361
|
-
const
|
|
10366
|
+
const C = {};
|
|
10362
10367
|
e.Children.forEach(t, (v) => {
|
|
10363
10368
|
if (e.isValidElement(v)) {
|
|
10364
10369
|
const b = v.props.slot;
|
|
10365
|
-
b && (
|
|
10370
|
+
b && (C[b] ? C[b].push(v) : C[b] = [v]);
|
|
10366
10371
|
}
|
|
10367
10372
|
});
|
|
10368
|
-
const u =
|
|
10373
|
+
const u = C["first-item"], $ = C["second-item"];
|
|
10369
10374
|
return /* @__PURE__ */ e.createElement(
|
|
10370
10375
|
"div",
|
|
10371
10376
|
y({
|
|
10372
10377
|
className: R([r, d, a])
|
|
10373
10378
|
}, c),
|
|
10374
10379
|
/* @__PURE__ */ e.createElement("div", { className: g.join(" ").trim() }, u),
|
|
10375
|
-
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() },
|
|
10380
|
+
/* @__PURE__ */ e.createElement("div", { className: E.join(" ").trim() }, $)
|
|
10376
10381
|
);
|
|
10377
10382
|
};
|
|
10378
10383
|
export {
|
|
@@ -10394,7 +10399,7 @@ export {
|
|
|
10394
10399
|
ts as Combobox,
|
|
10395
10400
|
p1 as ComparisonList,
|
|
10396
10401
|
mt as Container,
|
|
10397
|
-
|
|
10402
|
+
Mt as DashboardContext,
|
|
10398
10403
|
en as DashboardLayout,
|
|
10399
10404
|
tn as DashboardNav,
|
|
10400
10405
|
sn as DashboardSearch,
|
|
@@ -10403,7 +10408,7 @@ export {
|
|
|
10403
10408
|
qs as ExpansionPanelGroup,
|
|
10404
10409
|
Us as FileUpload,
|
|
10405
10410
|
kn as FlexContainer,
|
|
10406
|
-
|
|
10411
|
+
L1 as FooterHeading,
|
|
10407
10412
|
v2 as FooterLinks,
|
|
10408
10413
|
Hn as GlobalWrapper,
|
|
10409
10414
|
C2 as Heading,
|
|
@@ -10450,7 +10455,7 @@ export {
|
|
|
10450
10455
|
t1 as StatusBadge,
|
|
10451
10456
|
vn as StatusIndicator,
|
|
10452
10457
|
Cn as Stepper,
|
|
10453
|
-
|
|
10458
|
+
Ln as StepperLayout,
|
|
10454
10459
|
Xs as Switch,
|
|
10455
10460
|
cn as TabMenu,
|
|
10456
10461
|
O2 as Table,
|
|
@@ -10460,7 +10465,7 @@ export {
|
|
|
10460
10465
|
Gt as Tally,
|
|
10461
10466
|
q1 as TextInput,
|
|
10462
10467
|
Ys as Textarea,
|
|
10463
|
-
|
|
10468
|
+
Mn as ThreeItemLayout,
|
|
10464
10469
|
ws as Tile,
|
|
10465
10470
|
Nn as TileGrid,
|
|
10466
10471
|
hs as Toast,
|