@pantheon-systems/pds-toolkit-react 1.0.0-dev.247 → 1.0.0-dev.248
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/css/component-css/pds-checkbox.css +1 -1
- package/_dist/css/component-css/pds-index.css +1 -1
- package/_dist/css/pds-components.css +1 -1
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.js +791 -783
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +10 -1
- package/package.json +1 -1
package/_dist/index.js
CHANGED
|
@@ -20,19 +20,19 @@ var R = (t, n) => {
|
|
|
20
20
|
return s;
|
|
21
21
|
};
|
|
22
22
|
var A2 = (t, n, s) => new Promise((a, r) => {
|
|
23
|
-
var u = (
|
|
23
|
+
var u = (i) => {
|
|
24
24
|
try {
|
|
25
|
-
l(s.next(
|
|
25
|
+
l(s.next(i));
|
|
26
26
|
} catch (m) {
|
|
27
27
|
r(m);
|
|
28
28
|
}
|
|
29
|
-
}, c = (
|
|
29
|
+
}, c = (i) => {
|
|
30
30
|
try {
|
|
31
|
-
l(s.throw(
|
|
31
|
+
l(s.throw(i));
|
|
32
32
|
} catch (m) {
|
|
33
33
|
r(m);
|
|
34
34
|
}
|
|
35
|
-
}, l = (
|
|
35
|
+
}, l = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(u, c);
|
|
36
36
|
l((s = s.apply(t, n)).next());
|
|
37
37
|
});
|
|
38
38
|
import e, { Children as v1, isValidElement as Le, useState as X, cloneElement as Se, createElement as j1, forwardRef as je, useEffect as ae, useRef as ce, createContext as b1, useContext as be, useLayoutEffect as K1, useCallback as j2, useMemo as $1, createRef as X1, Fragment as Y1 } from "react";
|
|
@@ -71,7 +71,7 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
71
71
|
"iconSize",
|
|
72
72
|
"className"
|
|
73
73
|
]);
|
|
74
|
-
const c = `pds-icon pds-icon--${n} pds-icon--${t}`, l = `0 0 ${K2[t].width} 512`,
|
|
74
|
+
const c = `pds-icon pds-icon--${n} pds-icon--${t}`, l = `0 0 ${K2[t].width} 512`, i = {
|
|
75
75
|
sm: "0.8rem",
|
|
76
76
|
md: "1rem",
|
|
77
77
|
lg: "1.2rem",
|
|
@@ -86,7 +86,7 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
86
86
|
xmlns: "http://www.w3.org/2000/svg",
|
|
87
87
|
role: "img",
|
|
88
88
|
viewBox: l,
|
|
89
|
-
height:
|
|
89
|
+
height: i[n],
|
|
90
90
|
fill: "none",
|
|
91
91
|
"aria-hidden": "true",
|
|
92
92
|
preserveAspectRatio: "xMidYMid meet",
|
|
@@ -805,8 +805,8 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
805
805
|
], dt = (t) => {
|
|
806
806
|
const n = parseInt(w1(t), 16);
|
|
807
807
|
return o1[n % o1.length];
|
|
808
|
-
}, X2 = (
|
|
809
|
-
var m =
|
|
808
|
+
}, X2 = (i) => {
|
|
809
|
+
var m = i, {
|
|
810
810
|
ariaLabel: t,
|
|
811
811
|
hasUserFallback: n = !1,
|
|
812
812
|
imageSrc: s,
|
|
@@ -823,7 +823,7 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
823
823
|
"uniqueId",
|
|
824
824
|
"className"
|
|
825
825
|
]);
|
|
826
|
-
const g = "pds-avatar", p = `${g}--${r}`,
|
|
826
|
+
const g = "pds-avatar", p = `${g}--${r}`, o = s ? `${g}--image` : null, [_, v] = X(void 0), b = {
|
|
827
827
|
backgroundImage: u ? `var(--pds-color-gradient-avatar-${dt(u)})` : null,
|
|
828
828
|
borderRadius: "100%",
|
|
829
829
|
height: "100%",
|
|
@@ -840,7 +840,7 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
840
840
|
onLoad: () => v(!1),
|
|
841
841
|
onError: () => v(!0)
|
|
842
842
|
}
|
|
843
|
-
) : /* @__PURE__ */ e.createElement("span", { style: b }, n && /* @__PURE__ */ e.createElement(j, { iconName: "user", className: `${g}__user-icon` })), f = /* @__PURE__ */ e.createElement("span", { className: `${g}__content` }, E),
|
|
843
|
+
) : /* @__PURE__ */ e.createElement("span", { style: b }, n && /* @__PURE__ */ e.createElement(j, { iconName: "user", className: `${g}__user-icon` })), f = /* @__PURE__ */ e.createElement("span", { className: `${g}__content` }, E), d = Le(a) ? Se(
|
|
844
844
|
a,
|
|
845
845
|
me(y({}, a.props), {
|
|
846
846
|
className: `${g}__content ${g}__content--link`,
|
|
@@ -851,9 +851,9 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
851
851
|
return /* @__PURE__ */ e.createElement(
|
|
852
852
|
"div",
|
|
853
853
|
y({
|
|
854
|
-
className: N([g, p,
|
|
854
|
+
className: N([g, p, o, c])
|
|
855
855
|
}, l),
|
|
856
|
-
a ?
|
|
856
|
+
a ? d : f
|
|
857
857
|
);
|
|
858
858
|
}, g2 = (u) => {
|
|
859
859
|
var c = u, {
|
|
@@ -867,23 +867,23 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
867
867
|
"color",
|
|
868
868
|
"className"
|
|
869
869
|
]);
|
|
870
|
-
const l = "pds-indicator-badge",
|
|
870
|
+
const l = "pds-indicator-badge", i = `${l}--${s}`, m = `${l}--${n}`;
|
|
871
871
|
return /* @__PURE__ */ e.createElement(
|
|
872
872
|
"span",
|
|
873
873
|
y({
|
|
874
|
-
className: [l,
|
|
874
|
+
className: [l, i, m, a != null ? a : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
875
875
|
}, r),
|
|
876
876
|
/* @__PURE__ */ e.createElement("span", { className: `${l}__label` }, t)
|
|
877
877
|
);
|
|
878
878
|
}, Q2 = (l) => {
|
|
879
|
-
var
|
|
879
|
+
var i = l, {
|
|
880
880
|
color: t = "transparent",
|
|
881
881
|
hasStatusIndicator: n = !1,
|
|
882
882
|
label: s,
|
|
883
883
|
statusIndicatorText: a = "Status indicator: ",
|
|
884
884
|
statusType: r,
|
|
885
885
|
className: u
|
|
886
|
-
} =
|
|
886
|
+
} = i, c = R(i, [
|
|
887
887
|
"color",
|
|
888
888
|
"hasStatusIndicator",
|
|
889
889
|
"label",
|
|
@@ -891,13 +891,13 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
891
891
|
"statusType",
|
|
892
892
|
"className"
|
|
893
893
|
]);
|
|
894
|
-
const m = "pds-status-badge", g = `${m}--${t}`, p = `${m}__status`,
|
|
894
|
+
const m = "pds-status-badge", g = `${m}--${t}`, p = `${m}__status`, o = r ? `${p}--${r}` : null;
|
|
895
895
|
return /* @__PURE__ */ e.createElement(
|
|
896
896
|
"div",
|
|
897
897
|
y({
|
|
898
898
|
className: [m, g, u != null ? u : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
899
899
|
}, c),
|
|
900
|
-
n === !0 && /* @__PURE__ */ e.createElement("span", { className: [p,
|
|
900
|
+
n === !0 && /* @__PURE__ */ e.createElement("span", { className: [p, o].join(" ").trim() }, r && /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, a, " ", r)),
|
|
901
901
|
/* @__PURE__ */ e.createElement("span", { className: `${m}__label` }, s)
|
|
902
902
|
);
|
|
903
903
|
}, w2 = (u) => {
|
|
@@ -918,18 +918,18 @@ const l2 = () => Math.random().toString(32).substring(2, 13), k1 = (t, n) => {
|
|
|
918
918
|
"typeLabels",
|
|
919
919
|
"className"
|
|
920
920
|
]);
|
|
921
|
-
const l = "pds-tally",
|
|
921
|
+
const l = "pds-tally", i = `${l}--${n}`, m = `${s[n]}: `;
|
|
922
922
|
return /* @__PURE__ */ e.createElement(
|
|
923
923
|
"div",
|
|
924
924
|
y({
|
|
925
|
-
className: N([l,
|
|
925
|
+
className: N([l, i, a != null ? a : ""])
|
|
926
926
|
}, r),
|
|
927
927
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__label` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), t)
|
|
928
928
|
);
|
|
929
929
|
};
|
|
930
930
|
w2.displayName = "Tally";
|
|
931
931
|
const T2 = 300, mt = 400, xe = (p) => {
|
|
932
|
-
var
|
|
932
|
+
var o = p, {
|
|
933
933
|
content: t,
|
|
934
934
|
customTrigger: n = null,
|
|
935
935
|
offsetValue: s = 8,
|
|
@@ -938,9 +938,9 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
938
938
|
triggerIcon: u = "circleInfo",
|
|
939
939
|
triggerIconColor: c = "default",
|
|
940
940
|
triggerIconSize: l = "sm",
|
|
941
|
-
zIndex:
|
|
941
|
+
zIndex: i = mt,
|
|
942
942
|
className: m
|
|
943
|
-
} =
|
|
943
|
+
} = o, g = R(o, [
|
|
944
944
|
"content",
|
|
945
945
|
"customTrigger",
|
|
946
946
|
"offsetValue",
|
|
@@ -958,7 +958,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
958
958
|
]), f = N([
|
|
959
959
|
`${b}__trigger`,
|
|
960
960
|
`${b}__trigger--${c}`
|
|
961
|
-
]), { refs:
|
|
961
|
+
]), { refs: d, floatingStyles: h, context: C } = Ae({
|
|
962
962
|
placement: a,
|
|
963
963
|
open: _,
|
|
964
964
|
onOpenChange: v,
|
|
@@ -978,7 +978,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
978
978
|
"span",
|
|
979
979
|
y({
|
|
980
980
|
className: E,
|
|
981
|
-
ref:
|
|
981
|
+
ref: d.setReference
|
|
982
982
|
}, k()),
|
|
983
983
|
n
|
|
984
984
|
) : /* @__PURE__ */ e.createElement(
|
|
@@ -987,7 +987,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
987
987
|
type: "button",
|
|
988
988
|
"aria-label": r,
|
|
989
989
|
className: f,
|
|
990
|
-
ref:
|
|
990
|
+
ref: d.setReference
|
|
991
991
|
}, k()),
|
|
992
992
|
/* @__PURE__ */ e.createElement(
|
|
993
993
|
j,
|
|
@@ -1001,20 +1001,20 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1001
1001
|
"div",
|
|
1002
1002
|
y({
|
|
1003
1003
|
className: `${b}__container`,
|
|
1004
|
-
ref:
|
|
1005
|
-
style: me(y({}, h), { zIndex:
|
|
1004
|
+
ref: d.setFloating,
|
|
1005
|
+
style: me(y({}, h), { zIndex: i })
|
|
1006
1006
|
}, z()),
|
|
1007
1007
|
t
|
|
1008
1008
|
)));
|
|
1009
1009
|
}, vn = (l) => {
|
|
1010
|
-
var
|
|
1010
|
+
var i = l, {
|
|
1011
1011
|
numberAhead: t,
|
|
1012
1012
|
numberAheadDescription: n = "commits ahead of main",
|
|
1013
1013
|
numberBehind: s,
|
|
1014
1014
|
numberBehindDescription: a = "commits behind main",
|
|
1015
1015
|
componentWidth: r,
|
|
1016
1016
|
className: u
|
|
1017
|
-
} =
|
|
1017
|
+
} = i, c = R(i, [
|
|
1018
1018
|
"numberAhead",
|
|
1019
1019
|
"numberAheadDescription",
|
|
1020
1020
|
"numberBehind",
|
|
@@ -1022,8 +1022,8 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1022
1022
|
"componentWidth",
|
|
1023
1023
|
"className"
|
|
1024
1024
|
]);
|
|
1025
|
-
const m = "pds-branch-diff", g = Math.max(0, t), p = Math.max(0, s),
|
|
1026
|
-
let _ =
|
|
1025
|
+
const m = "pds-branch-diff", g = Math.max(0, t), p = Math.max(0, s), o = Math.max(g, p);
|
|
1026
|
+
let _ = o > 0 ? p / o * 100 : 0, v = o > 0 ? g / o * 100 : 0;
|
|
1027
1027
|
const w = 10;
|
|
1028
1028
|
_ < w ? (_ = w, v = 100 - w) : v < w && (v = w, _ = 100 - w);
|
|
1029
1029
|
const b = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
@@ -1078,10 +1078,10 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1078
1078
|
"level",
|
|
1079
1079
|
"className"
|
|
1080
1080
|
]);
|
|
1081
|
-
const
|
|
1081
|
+
const i = t ? `${t}__heading` : null;
|
|
1082
1082
|
return j1(
|
|
1083
1083
|
a,
|
|
1084
|
-
y({ className: N([
|
|
1084
|
+
y({ className: N([i, r]), id: s }, u),
|
|
1085
1085
|
n
|
|
1086
1086
|
);
|
|
1087
1087
|
}, J2 = (t) => typeof t == "string" || typeof t == "number" ? String(t) : e.isValidElement(t) ? e.Children.toArray(t.props.children).map(J2).join("") : "", ne = {
|
|
@@ -1107,12 +1107,12 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1107
1107
|
isLegend: u,
|
|
1108
1108
|
isPseudoLabel: c,
|
|
1109
1109
|
tooltipText: l = null,
|
|
1110
|
-
className:
|
|
1110
|
+
className: i
|
|
1111
1111
|
}) => {
|
|
1112
1112
|
const m = N([
|
|
1113
1113
|
"pds-input-label",
|
|
1114
1114
|
s ? null : "visually-hidden",
|
|
1115
|
-
|
|
1115
|
+
i != null ? i : ""
|
|
1116
1116
|
]), g = /* @__PURE__ */ e.createElement(e.Fragment, null, n, a && !r && /* @__PURE__ */ e.createElement(z1, null), l && /* @__PURE__ */ e.createElement(xe, { content: l }, /* @__PURE__ */ e.createElement("span", null, /* @__PURE__ */ e.createElement(j, { iconName: "circleInfo", iconSize: "sm" }))));
|
|
1117
1117
|
return u ? /* @__PURE__ */ e.createElement("legend", { className: m, id: `${t}-legend` }, g) : c ? /* @__PURE__ */ e.createElement("span", { className: m, id: `${t}-field-label` }, g) : /* @__PURE__ */ e.createElement("label", { htmlFor: t, className: m, id: `${t}-label` }, g);
|
|
1118
1118
|
}, Oe = ({
|
|
@@ -1124,11 +1124,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1124
1124
|
validationStatus: u,
|
|
1125
1125
|
className: c
|
|
1126
1126
|
}) => {
|
|
1127
|
-
const l = "pds-input-message",
|
|
1127
|
+
const l = "pds-input-message", i = u && a ? `${l}--${u}` : null;
|
|
1128
1128
|
return /* @__PURE__ */ e.createElement(
|
|
1129
1129
|
"div",
|
|
1130
1130
|
{
|
|
1131
|
-
className: N([l,
|
|
1131
|
+
className: N([l, i, c != null ? c : ""]),
|
|
1132
1132
|
id: t ? `${n}__message-hidden` : `${n}__message`,
|
|
1133
1133
|
role: u === "error" ? "alert" : null
|
|
1134
1134
|
},
|
|
@@ -1194,7 +1194,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1194
1194
|
}, d1 = (t) => "options" in t, y2 = je(
|
|
1195
1195
|
(u, r) => {
|
|
1196
1196
|
var c = u, { children: t, isActive: n, className: s } = c, a = R(c, ["children", "isActive", "className"]);
|
|
1197
|
-
const l = Q1(),
|
|
1197
|
+
const l = Q1(), i = "pds-input__select-option", m = n ? `${i}--active` : null;
|
|
1198
1198
|
return /* @__PURE__ */ e.createElement(
|
|
1199
1199
|
"li",
|
|
1200
1200
|
y({
|
|
@@ -1202,20 +1202,20 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1202
1202
|
role: "option",
|
|
1203
1203
|
id: l,
|
|
1204
1204
|
"aria-selected": n,
|
|
1205
|
-
className: N([
|
|
1205
|
+
className: N([i, m, s != null ? s : ""])
|
|
1206
1206
|
}, a),
|
|
1207
1207
|
t
|
|
1208
1208
|
);
|
|
1209
1209
|
}
|
|
1210
1210
|
), V2 = (l) => {
|
|
1211
|
-
var
|
|
1211
|
+
var i = l, {
|
|
1212
1212
|
colorType: t = "full-color",
|
|
1213
1213
|
isInline: n = !1,
|
|
1214
1214
|
label: s = "Loading",
|
|
1215
1215
|
showLabel: a = !1,
|
|
1216
1216
|
size: r = "md",
|
|
1217
1217
|
className: u = ""
|
|
1218
|
-
} =
|
|
1218
|
+
} = i, c = R(i, [
|
|
1219
1219
|
"colorType",
|
|
1220
1220
|
"isInline",
|
|
1221
1221
|
"label",
|
|
@@ -1223,11 +1223,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1223
1223
|
"size",
|
|
1224
1224
|
"className"
|
|
1225
1225
|
]);
|
|
1226
|
-
const m = "pds-spinner", g = t !== "full-color" ? `${m}--${t}` : null, p = `${m}--${r}`,
|
|
1226
|
+
const m = "pds-spinner", g = t !== "full-color" ? `${m}--${t}` : null, p = `${m}--${r}`, o = n ? `${m}--inline` : null;
|
|
1227
1227
|
return /* @__PURE__ */ e.createElement(
|
|
1228
1228
|
"span",
|
|
1229
1229
|
y({
|
|
1230
|
-
className: [m, g,
|
|
1230
|
+
className: [m, g, o, p, u].join(" ").trim().replace(/\s+/g, " "),
|
|
1231
1231
|
role: "status",
|
|
1232
1232
|
"aria-hidden": "true"
|
|
1233
1233
|
}, c),
|
|
@@ -1245,11 +1245,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1245
1245
|
isFullWidth: u = !1,
|
|
1246
1246
|
isLoading: c = !1,
|
|
1247
1247
|
isSplitButton: l = !1,
|
|
1248
|
-
label:
|
|
1248
|
+
label: i,
|
|
1249
1249
|
onClick: m,
|
|
1250
1250
|
size: g = "md",
|
|
1251
1251
|
tooltipText: p,
|
|
1252
|
-
variant:
|
|
1252
|
+
variant: o = "primary",
|
|
1253
1253
|
className: _ = ""
|
|
1254
1254
|
} = E, v = R(E, [
|
|
1255
1255
|
"ariaLabel",
|
|
@@ -1267,7 +1267,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1267
1267
|
"variant",
|
|
1268
1268
|
"className"
|
|
1269
1269
|
]);
|
|
1270
|
-
const f = "pds-button",
|
|
1270
|
+
const f = "pds-button", d = g !== "md" ? `${f}--${g}` : null, h = o !== "primary" ? `${f}--${o}` : null, C = u ? `${f}--full-width` : null;
|
|
1271
1271
|
let $;
|
|
1272
1272
|
switch (g) {
|
|
1273
1273
|
case "sm":
|
|
@@ -1288,15 +1288,15 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1288
1288
|
className: `${f}__icon`
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
|
-
let M = [
|
|
1292
|
-
a == "icon-start" && r && M.unshift(H), a == "icon-end" && r && M.push(H), l && (M = [H], t = J2(
|
|
1291
|
+
let M = [i];
|
|
1292
|
+
a == "icon-start" && r && M.unshift(H), a == "icon-end" && r && M.push(H), l && (M = [H], t = J2(i));
|
|
1293
1293
|
const L = /* @__PURE__ */ e.createElement(
|
|
1294
1294
|
"button",
|
|
1295
1295
|
y({
|
|
1296
1296
|
type: n,
|
|
1297
1297
|
className: N([
|
|
1298
1298
|
f,
|
|
1299
|
-
|
|
1299
|
+
d,
|
|
1300
1300
|
h,
|
|
1301
1301
|
C,
|
|
1302
1302
|
_
|
|
@@ -1321,7 +1321,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1321
1321
|
tooltipText: u,
|
|
1322
1322
|
variant: c = "primary",
|
|
1323
1323
|
className: l
|
|
1324
|
-
} = g,
|
|
1324
|
+
} = g, i = R(g, [
|
|
1325
1325
|
"disabled",
|
|
1326
1326
|
"displayType",
|
|
1327
1327
|
"iconName",
|
|
@@ -1331,8 +1331,8 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1331
1331
|
"variant",
|
|
1332
1332
|
"className"
|
|
1333
1333
|
]);
|
|
1334
|
-
const p = "pds-button-link",
|
|
1335
|
-
|
|
1334
|
+
const p = "pds-button-link", o = "pds-button", _ = r !== "md" ? `${o}--${r}` : null, v = c !== "primary" ? `${o}--${c}` : null, w = N([
|
|
1335
|
+
o,
|
|
1336
1336
|
_,
|
|
1337
1337
|
v
|
|
1338
1338
|
]), b = Le(a) ? a.props.children : null, E = /* @__PURE__ */ e.createElement(
|
|
@@ -1346,7 +1346,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1346
1346
|
);
|
|
1347
1347
|
let f = [b];
|
|
1348
1348
|
n === "icon-start" && s ? f = [E, b] : n === "icon-end" && s && (f = [b, E]);
|
|
1349
|
-
const
|
|
1349
|
+
const d = Le(a) ? Se(a, {
|
|
1350
1350
|
className: w,
|
|
1351
1351
|
children: f
|
|
1352
1352
|
}) : null;
|
|
@@ -1360,7 +1360,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1360
1360
|
tooltipText: u != null ? u : null,
|
|
1361
1361
|
variant: c
|
|
1362
1362
|
}
|
|
1363
|
-
) : /* @__PURE__ */ e.createElement("span", y({ className: N([p, l != null ? l : ""]) },
|
|
1363
|
+
) : /* @__PURE__ */ e.createElement("span", y({ className: N([p, l != null ? l : ""]) }, i), d);
|
|
1364
1364
|
}, pt = (t, n) => {
|
|
1365
1365
|
const [s, a] = X(!1), r = n == null ? void 0 : n.duration;
|
|
1366
1366
|
return ae(() => {
|
|
@@ -1378,8 +1378,8 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
})];
|
|
1380
1380
|
}, H2 = je(
|
|
1381
|
-
(
|
|
1382
|
-
var _ =
|
|
1381
|
+
(o, p) => {
|
|
1382
|
+
var _ = o, {
|
|
1383
1383
|
ariaLabel: t,
|
|
1384
1384
|
buttonType: n = "button",
|
|
1385
1385
|
disabled: s = !1,
|
|
@@ -1388,7 +1388,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1388
1388
|
icon2Name: u = null,
|
|
1389
1389
|
onClick: c,
|
|
1390
1390
|
size: l = "md",
|
|
1391
|
-
variant:
|
|
1391
|
+
variant: i = "standard",
|
|
1392
1392
|
className: m
|
|
1393
1393
|
} = _, g = R(_, [
|
|
1394
1394
|
"ariaLabel",
|
|
@@ -1402,21 +1402,21 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1402
1402
|
"variant",
|
|
1403
1403
|
"className"
|
|
1404
1404
|
]);
|
|
1405
|
-
const v = "pds-icon-button", w = l !== "md" ? `${v}--${l}` : null, b =
|
|
1405
|
+
const v = "pds-icon-button", w = l !== "md" ? `${v}--${l}` : null, b = i !== "standard" ? `${v}--${i}` : null, E = {
|
|
1406
1406
|
fadeOut: `${v}--fadeOut`,
|
|
1407
1407
|
hide: `${v}--hide`,
|
|
1408
1408
|
scaleIn: `${v}--scaleIn`
|
|
1409
1409
|
};
|
|
1410
|
-
let f,
|
|
1410
|
+
let f, d;
|
|
1411
1411
|
switch (l) {
|
|
1412
1412
|
case "sm":
|
|
1413
|
-
|
|
1413
|
+
d = "md", f = 8;
|
|
1414
1414
|
break;
|
|
1415
1415
|
case "md":
|
|
1416
|
-
|
|
1416
|
+
d = "md", f = 11;
|
|
1417
1417
|
break;
|
|
1418
1418
|
case "lg":
|
|
1419
|
-
|
|
1419
|
+
d = "xl", f = 12;
|
|
1420
1420
|
}
|
|
1421
1421
|
const h = u !== null, C = ce(null), $ = ce(null), H = () => {
|
|
1422
1422
|
C.current.classList.add(E.fadeOut), C.current.classList.add(E.hide), $.current.classList.remove(E.hide), $.current.classList.add(E.scaleIn), setTimeout(() => {
|
|
@@ -1431,7 +1431,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1431
1431
|
j,
|
|
1432
1432
|
{
|
|
1433
1433
|
iconName: r,
|
|
1434
|
-
iconSize:
|
|
1434
|
+
iconSize: d,
|
|
1435
1435
|
className: `${v}__icon`
|
|
1436
1436
|
}
|
|
1437
1437
|
)), /* @__PURE__ */ e.createElement(
|
|
@@ -1444,7 +1444,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1444
1444
|
j,
|
|
1445
1445
|
{
|
|
1446
1446
|
iconName: u,
|
|
1447
|
-
iconSize:
|
|
1447
|
+
iconSize: d,
|
|
1448
1448
|
className: `${v}__icon`
|
|
1449
1449
|
}
|
|
1450
1450
|
)
|
|
@@ -1452,7 +1452,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1452
1452
|
j,
|
|
1453
1453
|
{
|
|
1454
1454
|
iconName: r,
|
|
1455
|
-
iconSize:
|
|
1455
|
+
iconSize: d,
|
|
1456
1456
|
className: `${v}__icon`
|
|
1457
1457
|
}
|
|
1458
1458
|
));
|
|
@@ -1497,11 +1497,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1497
1497
|
"variant",
|
|
1498
1498
|
"className"
|
|
1499
1499
|
]);
|
|
1500
|
-
const
|
|
1500
|
+
const i = "pds-clipboard-button", [m, g] = pt(n);
|
|
1501
1501
|
return /* @__PURE__ */ e.createElement(
|
|
1502
1502
|
H2,
|
|
1503
1503
|
y({
|
|
1504
|
-
className: N([
|
|
1504
|
+
className: N([i, r != null ? r : ""]),
|
|
1505
1505
|
ariaLabel: t,
|
|
1506
1506
|
buttonType: "button",
|
|
1507
1507
|
disabled: s,
|
|
@@ -1570,11 +1570,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1570
1570
|
label: u,
|
|
1571
1571
|
menuItems: c,
|
|
1572
1572
|
menuPosition: l = "start",
|
|
1573
|
-
onClick:
|
|
1573
|
+
onClick: i,
|
|
1574
1574
|
size: m = "md",
|
|
1575
1575
|
testId: g,
|
|
1576
1576
|
undefinedLabel: p = "Unlabeled group",
|
|
1577
|
-
variant:
|
|
1577
|
+
variant: o = "primary",
|
|
1578
1578
|
withinNavbar: _,
|
|
1579
1579
|
className: v
|
|
1580
1580
|
} = E, w = R(E, [
|
|
@@ -1596,7 +1596,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1596
1596
|
]);
|
|
1597
1597
|
const {
|
|
1598
1598
|
x: f,
|
|
1599
|
-
y:
|
|
1599
|
+
y: d,
|
|
1600
1600
|
reference: h,
|
|
1601
1601
|
floating: C,
|
|
1602
1602
|
strategy: $,
|
|
@@ -1610,7 +1610,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1610
1610
|
let k = !1;
|
|
1611
1611
|
const z = be(He);
|
|
1612
1612
|
z && (k = z.isMobile);
|
|
1613
|
-
const S =
|
|
1613
|
+
const S = o === "navbar" && k, B = "pds-menu-button", D = S ? `${B}--isMobile` : null, U = _ ? `${B}--navbar` : null, O = a, [Z] = X(`menu-button-${a}`), W = L.floating, Q = ce(null), [J, te] = X(!1), [P, F] = X(!1), [q, A] = X(""), [I, V] = X(0), x = ce([]), T = ce([]), K = ce([]);
|
|
1614
1614
|
K1(() => {
|
|
1615
1615
|
window.addEventListener("mousedown", we, !0), H();
|
|
1616
1616
|
const G = W.current;
|
|
@@ -1651,7 +1651,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1651
1651
|
const G = T.current[I];
|
|
1652
1652
|
_e(G);
|
|
1653
1653
|
}, he = (G) => {
|
|
1654
|
-
J ? ie() : pe(),
|
|
1654
|
+
J ? ie() : pe(), i && i(), F((se) => !se), G.stopPropagation(), G.preventDefault();
|
|
1655
1655
|
}, ue = (G) => {
|
|
1656
1656
|
_e(G.currentTarget.id), S || ie();
|
|
1657
1657
|
}, de = (G) => {
|
|
@@ -1662,7 +1662,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1662
1662
|
case "Enter":
|
|
1663
1663
|
case "ArrowDown":
|
|
1664
1664
|
case "Down":
|
|
1665
|
-
pe(), ee(T.current[0], 0), Y = !0,
|
|
1665
|
+
pe(), ee(T.current[0], 0), Y = !0, i && i();
|
|
1666
1666
|
break;
|
|
1667
1667
|
case "Esc":
|
|
1668
1668
|
case "Escape":
|
|
@@ -1815,7 +1815,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1815
1815
|
opacity: J ? "1" : "0",
|
|
1816
1816
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1817
1817
|
position: $,
|
|
1818
|
-
transform: `translate(${Math.round(f)}px,${Math.round(
|
|
1818
|
+
transform: `translate(${Math.round(f)}px,${Math.round(d)}px)`,
|
|
1819
1819
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
1820
1820
|
},
|
|
1821
1821
|
onKeyDown: $e,
|
|
@@ -1857,7 +1857,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1857
1857
|
opacity: J ? "1" : "0",
|
|
1858
1858
|
transition: "opacity 300ms ease-in-out 0s",
|
|
1859
1859
|
position: $,
|
|
1860
|
-
transform: `translate(${Math.round(f)}px,${Math.round(
|
|
1860
|
+
transform: `translate(${Math.round(f)}px,${Math.round(d)}px)`
|
|
1861
1861
|
},
|
|
1862
1862
|
onKeyDown: $e,
|
|
1863
1863
|
ref: C
|
|
@@ -1874,7 +1874,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1874
1874
|
isSplitButton: r,
|
|
1875
1875
|
label: u,
|
|
1876
1876
|
size: m,
|
|
1877
|
-
variant:
|
|
1877
|
+
variant: o,
|
|
1878
1878
|
displayType: n,
|
|
1879
1879
|
iconName: "angleDown",
|
|
1880
1880
|
type: "button",
|
|
@@ -1968,7 +1968,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1968
1968
|
options: u,
|
|
1969
1969
|
size: c = "md",
|
|
1970
1970
|
value: l,
|
|
1971
|
-
className:
|
|
1971
|
+
className: i
|
|
1972
1972
|
} = p, m = R(p, [
|
|
1973
1973
|
"disabled",
|
|
1974
1974
|
"id",
|
|
@@ -1980,9 +1980,9 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1980
1980
|
"value",
|
|
1981
1981
|
"className"
|
|
1982
1982
|
]);
|
|
1983
|
-
const
|
|
1983
|
+
const o = "pds-segmented-button", _ = t ? "pds-is-disabled" : null, v = c !== "md" ? `${o}--${c}` : null, w = typeof l != "undefined", b = typeof s != "undefined", [E, f] = X(
|
|
1984
1984
|
b ? s : ""
|
|
1985
|
-
),
|
|
1985
|
+
), d = (h) => {
|
|
1986
1986
|
f(h.target.value), r && r(h.target.value);
|
|
1987
1987
|
};
|
|
1988
1988
|
if (u.length >= 2 && u.length <= 6)
|
|
@@ -1990,15 +1990,15 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
1990
1990
|
"fieldset",
|
|
1991
1991
|
y({
|
|
1992
1992
|
className: N([
|
|
1993
|
-
|
|
1993
|
+
o,
|
|
1994
1994
|
v,
|
|
1995
1995
|
_,
|
|
1996
|
-
|
|
1996
|
+
i != null ? i : ""
|
|
1997
1997
|
])
|
|
1998
1998
|
}, m),
|
|
1999
1999
|
/* @__PURE__ */ e.createElement("legend", { className: "visually-hidden" }, a),
|
|
2000
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2001
|
-
const $ = w ? l === h.value : E === h.value, H = `${
|
|
2000
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__options` }, u.map((h, C) => {
|
|
2001
|
+
const $ = w ? l === h.value : E === h.value, H = `${o}__option`, M = $ ? `${H}--checked` : null;
|
|
2002
2002
|
return /* @__PURE__ */ e.createElement(
|
|
2003
2003
|
"div",
|
|
2004
2004
|
{
|
|
@@ -2014,7 +2014,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2014
2014
|
name: n,
|
|
2015
2015
|
value: h.value,
|
|
2016
2016
|
disabled: t || h.disabled,
|
|
2017
|
-
onChange:
|
|
2017
|
+
onChange: d,
|
|
2018
2018
|
checked: $
|
|
2019
2019
|
}
|
|
2020
2020
|
),
|
|
@@ -2023,28 +2023,28 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2023
2023
|
{
|
|
2024
2024
|
label: h.tally.label,
|
|
2025
2025
|
type: h.tally.type,
|
|
2026
|
-
className: `${
|
|
2026
|
+
className: `${o}__tally`
|
|
2027
2027
|
}
|
|
2028
2028
|
) : h.iconName && /* @__PURE__ */ e.createElement(
|
|
2029
2029
|
j,
|
|
2030
2030
|
{
|
|
2031
2031
|
iconName: h.iconName,
|
|
2032
2032
|
iconSize: c,
|
|
2033
|
-
className: `${
|
|
2033
|
+
className: `${o}__icon`
|
|
2034
2034
|
}
|
|
2035
|
-
), /* @__PURE__ */ e.createElement("span", { className: `${
|
|
2035
|
+
), /* @__PURE__ */ e.createElement("span", { className: `${o}__label-text` }, h.label))
|
|
2036
2036
|
);
|
|
2037
2037
|
}))
|
|
2038
2038
|
);
|
|
2039
2039
|
}, Ct = (l) => {
|
|
2040
|
-
var
|
|
2040
|
+
var i = l, {
|
|
2041
2041
|
actionItems: t,
|
|
2042
2042
|
disabled: n,
|
|
2043
2043
|
moreActionsLabel: s = "More actions",
|
|
2044
2044
|
size: a = "md",
|
|
2045
2045
|
variant: r = "primary",
|
|
2046
2046
|
className: u
|
|
2047
|
-
} =
|
|
2047
|
+
} = i, c = R(i, [
|
|
2048
2048
|
"actionItems",
|
|
2049
2049
|
"disabled",
|
|
2050
2050
|
"moreActionsLabel",
|
|
@@ -2052,7 +2052,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2052
2052
|
"variant",
|
|
2053
2053
|
"className"
|
|
2054
2054
|
]);
|
|
2055
|
-
const m = "pds-split-button", g = `${m}--${r}`, p = t[0],
|
|
2055
|
+
const m = "pds-split-button", g = `${m}--${r}`, p = t[0], o = t.slice(1);
|
|
2056
2056
|
let _ = null;
|
|
2057
2057
|
return "isLink" in p && p.isLink === !0 ? _ = /* @__PURE__ */ e.createElement(
|
|
2058
2058
|
L2,
|
|
@@ -2087,7 +2087,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2087
2087
|
label: s,
|
|
2088
2088
|
size: a,
|
|
2089
2089
|
variant: r,
|
|
2090
|
-
menuItems:
|
|
2090
|
+
menuItems: o,
|
|
2091
2091
|
displayType: "icon-end",
|
|
2092
2092
|
isSplitButton: !0,
|
|
2093
2093
|
disabled: n,
|
|
@@ -2107,7 +2107,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2107
2107
|
label: u,
|
|
2108
2108
|
onClick: c,
|
|
2109
2109
|
tooltipText: l,
|
|
2110
|
-
className:
|
|
2110
|
+
className: i
|
|
2111
2111
|
} = p, m = R(p, [
|
|
2112
2112
|
"buttonProps",
|
|
2113
2113
|
"disabled",
|
|
@@ -2119,26 +2119,26 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2119
2119
|
"tooltipText",
|
|
2120
2120
|
"className"
|
|
2121
2121
|
]);
|
|
2122
|
-
const
|
|
2122
|
+
const o = "pds-utility-button", _ = a ? `${o}--critical` : null, v = n ? `${o}--disabled` : null, w = r ? `${o}--monospace` : null, b = /* @__PURE__ */ e.createElement(
|
|
2123
2123
|
"button",
|
|
2124
2124
|
y({
|
|
2125
|
-
className: `${
|
|
2125
|
+
className: `${o}__button`,
|
|
2126
2126
|
"aria-disabled": n ? "true" : void 0,
|
|
2127
2127
|
onClick: n ? void 0 : c,
|
|
2128
2128
|
type: "button"
|
|
2129
2129
|
}, t),
|
|
2130
2130
|
s && /* @__PURE__ */ e.createElement(j, { iconName: s }),
|
|
2131
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
2131
|
+
/* @__PURE__ */ e.createElement("span", { className: `${o}__label` }, u)
|
|
2132
2132
|
);
|
|
2133
2133
|
return /* @__PURE__ */ e.createElement(
|
|
2134
2134
|
"div",
|
|
2135
2135
|
y({
|
|
2136
2136
|
className: N([
|
|
2137
|
-
|
|
2137
|
+
o,
|
|
2138
2138
|
_,
|
|
2139
2139
|
v,
|
|
2140
2140
|
w,
|
|
2141
|
-
|
|
2141
|
+
i != null ? i : ""
|
|
2142
2142
|
])
|
|
2143
2143
|
}, m),
|
|
2144
2144
|
l ? /* @__PURE__ */ e.createElement(xe, { content: l, customTrigger: b }) : b
|
|
@@ -2173,19 +2173,19 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2173
2173
|
"typeLabels",
|
|
2174
2174
|
"className"
|
|
2175
2175
|
]);
|
|
2176
|
-
const
|
|
2176
|
+
const i = "pds-callout", m = `${i}--${s}`, g = `${a[s]}: `;
|
|
2177
2177
|
return /* @__PURE__ */ e.createElement(
|
|
2178
2178
|
"div",
|
|
2179
2179
|
y({
|
|
2180
|
-
className: [
|
|
2180
|
+
className: [i, m, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
2181
2181
|
}, u),
|
|
2182
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2182
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__inner` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon--${s}` }, /* @__PURE__ */ e.createElement(
|
|
2183
2183
|
j,
|
|
2184
2184
|
{
|
|
2185
2185
|
iconName: `${s}` in F2 ? F2[s] : F2.info,
|
|
2186
2186
|
iconSize: "xl"
|
|
2187
2187
|
}
|
|
2188
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2188
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, g), n && /* @__PURE__ */ e.createElement("div", { className: `${i}__title` }, n), t && /* @__PURE__ */ e.createElement("div", { className: `${i}__main-content` }, t)))
|
|
2189
2189
|
);
|
|
2190
2190
|
}, I2 = (u) => {
|
|
2191
2191
|
var c = u, {
|
|
@@ -2199,19 +2199,19 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2199
2199
|
"padding",
|
|
2200
2200
|
"className"
|
|
2201
2201
|
]);
|
|
2202
|
-
const l = "pds-card",
|
|
2202
|
+
const l = "pds-card", i = t !== "default" ? `${l}--${t}` : null, m = s !== "standard" ? `${l}--pad-${s}` : null, g = Be(n), p = g.image, o = g.main;
|
|
2203
2203
|
return /* @__PURE__ */ e.createElement(
|
|
2204
2204
|
"div",
|
|
2205
2205
|
y({
|
|
2206
2206
|
className: N([
|
|
2207
2207
|
l,
|
|
2208
|
-
|
|
2208
|
+
i,
|
|
2209
2209
|
m,
|
|
2210
2210
|
a != null ? a : ""
|
|
2211
2211
|
])
|
|
2212
2212
|
}, r),
|
|
2213
2213
|
p && /* @__PURE__ */ e.createElement("div", { className: `${l}__image` }, p[0]),
|
|
2214
|
-
|
|
2214
|
+
o && /* @__PURE__ */ e.createElement("div", { className: `${l}__main` }, o)
|
|
2215
2215
|
);
|
|
2216
2216
|
}, A1 = (c) => {
|
|
2217
2217
|
var l = c, {
|
|
@@ -2227,12 +2227,12 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2227
2227
|
"text",
|
|
2228
2228
|
"className"
|
|
2229
2229
|
]);
|
|
2230
|
-
const
|
|
2230
|
+
const i = "pds-card-heading", m = t === "XL" ? "pds-ts-xl" : "pds-ts-l", g = n === "bold" ? "pds-fw-bold" : "pds-fw-semibold";
|
|
2231
2231
|
return /* @__PURE__ */ e.createElement(
|
|
2232
2232
|
i2,
|
|
2233
2233
|
y({
|
|
2234
2234
|
className: N([
|
|
2235
|
-
|
|
2235
|
+
i,
|
|
2236
2236
|
m,
|
|
2237
2237
|
g,
|
|
2238
2238
|
r != null ? r : ""
|
|
@@ -2251,7 +2251,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2251
2251
|
onChange: u,
|
|
2252
2252
|
options: c,
|
|
2253
2253
|
className: l
|
|
2254
|
-
} = g,
|
|
2254
|
+
} = g, i = R(g, [
|
|
2255
2255
|
"id",
|
|
2256
2256
|
"defaultValue",
|
|
2257
2257
|
"label",
|
|
@@ -2262,19 +2262,19 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2262
2262
|
"className"
|
|
2263
2263
|
]);
|
|
2264
2264
|
const p = "pds-card-select-group";
|
|
2265
|
-
let
|
|
2266
|
-
a === "center" && (
|
|
2265
|
+
let o = `${p}__legend`;
|
|
2266
|
+
a === "center" && (o = `${p}__legend ${p}__legend--center`), a === "hidden" && (o = `${p}__legend visually-hidden`);
|
|
2267
2267
|
const [_, v] = X(n), w = (C) => {
|
|
2268
2268
|
v(C.currentTarget.value), u && u(C.currentTarget.value);
|
|
2269
|
-
}, b = c.length, E = "pds-grid-item", f = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6",
|
|
2269
|
+
}, b = c.length, E = "pds-grid-item", f = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-6", d = "pds-grid-item pds-grid-item--sm-4 pds-grid-item--md-4";
|
|
2270
2270
|
let h = "";
|
|
2271
|
-
return r === "twoAcross" ? h = f : r === "threeAcross" ? h =
|
|
2271
|
+
return r === "twoAcross" ? h = f : r === "threeAcross" ? h = d : r === "auto" && (b === 1 ? h = E : b % 3 === 0 ? h = d : b % 2 === 0 ? h = f : h = d), /* @__PURE__ */ e.createElement(
|
|
2272
2272
|
"fieldset",
|
|
2273
2273
|
y({
|
|
2274
2274
|
className: [p, l].join(" ").trim().replace(/\s+/g, " "),
|
|
2275
2275
|
id: t
|
|
2276
|
-
},
|
|
2277
|
-
/* @__PURE__ */ e.createElement("legend", { className:
|
|
2276
|
+
}, i),
|
|
2277
|
+
/* @__PURE__ */ e.createElement("legend", { className: o }, s),
|
|
2278
2278
|
/* @__PURE__ */ e.createElement("div", { className: `${p}__options pds-grid pds-grid--narrow` }, c.map((C, $) => /* @__PURE__ */ e.createElement(
|
|
2279
2279
|
"div",
|
|
2280
2280
|
{
|
|
@@ -2322,7 +2322,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2322
2322
|
"headingText",
|
|
2323
2323
|
"className"
|
|
2324
2324
|
]);
|
|
2325
|
-
const l = "pds-links-card",
|
|
2325
|
+
const l = "pds-links-card", i = /* @__PURE__ */ e.createElement(I2, null, /* @__PURE__ */ e.createElement("div", { slot: "main" }, s && /* @__PURE__ */ e.createElement(
|
|
2326
2326
|
A1,
|
|
2327
2327
|
{
|
|
2328
2328
|
className: `${l}__heading`,
|
|
@@ -2332,7 +2332,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2332
2332
|
text: s
|
|
2333
2333
|
}
|
|
2334
2334
|
), t && /* @__PURE__ */ e.createElement("ul", { className: `${l}__list`, role: "list" }, t.map((m, g) => /* @__PURE__ */ e.createElement("li", { key: g, className: "pds-cta-links-card__item" }, m)))));
|
|
2335
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r),
|
|
2335
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), i);
|
|
2336
2336
|
}, _t = (a) => {
|
|
2337
2337
|
var r = a, {
|
|
2338
2338
|
platformType: t,
|
|
@@ -2619,7 +2619,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2619
2619
|
summary: u,
|
|
2620
2620
|
selectionLink: c,
|
|
2621
2621
|
supplementalLinks: l,
|
|
2622
|
-
className:
|
|
2622
|
+
className: i
|
|
2623
2623
|
} = p, m = R(p, [
|
|
2624
2624
|
"badge",
|
|
2625
2625
|
"icon",
|
|
@@ -2631,30 +2631,30 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2631
2631
|
"supplementalLinks",
|
|
2632
2632
|
"className"
|
|
2633
2633
|
]);
|
|
2634
|
-
const
|
|
2634
|
+
const o = "pds-new-site-card", _ = c.type, v = /* @__PURE__ */ e.createElement(I2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main", className: `${o}__main` }, /* @__PURE__ */ e.createElement(
|
|
2635
2635
|
_,
|
|
2636
2636
|
y({
|
|
2637
2637
|
"aria-label": c.props.children,
|
|
2638
|
-
className: `${
|
|
2638
|
+
className: `${o}__selection-link`
|
|
2639
2639
|
}, c.props),
|
|
2640
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
2640
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__header` }, n && /* @__PURE__ */ e.createElement("div", { className: `${o}__icon` }, /* @__PURE__ */ e.createElement(_t, { platformType: n })), /* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, a, r && /* @__PURE__ */ e.createElement("div", { className: `${o}__subtitle` }, r))),
|
|
2641
2641
|
t && /* @__PURE__ */ e.createElement(
|
|
2642
2642
|
g2,
|
|
2643
2643
|
{
|
|
2644
2644
|
label: m1[t].label,
|
|
2645
2645
|
size: "sm",
|
|
2646
2646
|
color: m1[t].color,
|
|
2647
|
-
className: `${
|
|
2647
|
+
className: `${o}__badge`
|
|
2648
2648
|
}
|
|
2649
2649
|
),
|
|
2650
|
-
u && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2651
|
-
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
2650
|
+
u && /* @__PURE__ */ e.createElement("div", { className: `${o}__summary` }, u)
|
|
2651
|
+
), l && l.length <= 2 && /* @__PURE__ */ e.createElement("div", { className: `${o}__links` }, l.map((w, b) => {
|
|
2652
2652
|
const E = w.type;
|
|
2653
2653
|
return /* @__PURE__ */ e.createElement(
|
|
2654
2654
|
E,
|
|
2655
2655
|
y({
|
|
2656
2656
|
key: b,
|
|
2657
|
-
className: `${
|
|
2657
|
+
className: `${o}__link`
|
|
2658
2658
|
}, w.props),
|
|
2659
2659
|
w.props.children,
|
|
2660
2660
|
w.props.target === "_blank" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
@@ -2662,12 +2662,12 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
2662
2662
|
{
|
|
2663
2663
|
iconName: "externalLink",
|
|
2664
2664
|
iconSize: "sm",
|
|
2665
|
-
className: `${
|
|
2665
|
+
className: `${o}__link-icon`
|
|
2666
2666
|
}
|
|
2667
2667
|
), /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, s))
|
|
2668
2668
|
);
|
|
2669
2669
|
}))));
|
|
2670
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([
|
|
2670
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([o, i != null ? i : ""]) }, m), v);
|
|
2671
2671
|
}, Et = {
|
|
2672
2672
|
amex: /* @__PURE__ */ e.createElement(
|
|
2673
2673
|
"svg",
|
|
@@ -3014,7 +3014,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3014
3014
|
detailsLabel: u = "View Details",
|
|
3015
3015
|
detailsCallback: c,
|
|
3016
3016
|
selectionCallback: l,
|
|
3017
|
-
className:
|
|
3017
|
+
className: i
|
|
3018
3018
|
} = p, m = R(p, [
|
|
3019
3019
|
"cardType",
|
|
3020
3020
|
"cardNumber",
|
|
@@ -3026,18 +3026,18 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3026
3026
|
"selectionCallback",
|
|
3027
3027
|
"className"
|
|
3028
3028
|
]);
|
|
3029
|
-
const
|
|
3030
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([
|
|
3029
|
+
const o = "pds-payment-card";
|
|
3030
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([o, i != null ? i : ""]) }, m), /* @__PURE__ */ e.createElement(
|
|
3031
3031
|
"div",
|
|
3032
3032
|
{
|
|
3033
|
-
className: `${
|
|
3033
|
+
className: `${o}__main`,
|
|
3034
3034
|
tabIndex: 0,
|
|
3035
3035
|
onClick: l,
|
|
3036
3036
|
onKeyDown: (_) => {
|
|
3037
3037
|
_.key === "Enter" && (_.preventDefault(), l && l());
|
|
3038
3038
|
}
|
|
3039
3039
|
},
|
|
3040
|
-
/* @__PURE__ */ e.createElement(I2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main" }, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
3040
|
+
/* @__PURE__ */ e.createElement(I2, { padding: "narrow" }, /* @__PURE__ */ e.createElement("div", { slot: "main" }, /* @__PURE__ */ e.createElement("div", { className: `${o}__top` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__icon` }, /* @__PURE__ */ e.createElement(vt, { paymentType: t })), /* @__PURE__ */ e.createElement("div", { className: `${o}__details` }, /* @__PURE__ */ e.createElement("div", { className: `${o}__details-header` }, t, " — ", n), /* @__PURE__ */ e.createElement("div", { className: `${o}__details-name` }, s), /* @__PURE__ */ e.createElement("div", { className: `${o}__details-exp` }, a))), /* @__PURE__ */ e.createElement("div", { className: `${o}__bottom` }, /* @__PURE__ */ e.createElement("div", null, r), /* @__PURE__ */ e.createElement(
|
|
3041
3041
|
"button",
|
|
3042
3042
|
{
|
|
3043
3043
|
type: "button",
|
|
@@ -3055,7 +3055,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3055
3055
|
notIncluded: "xmark",
|
|
3056
3056
|
addon: "circlePlusOutline"
|
|
3057
3057
|
}, u1 = (l) => {
|
|
3058
|
-
var
|
|
3058
|
+
var i = l, {
|
|
3059
3059
|
listItems: t,
|
|
3060
3060
|
listLabel: n,
|
|
3061
3061
|
moreLink: s,
|
|
@@ -3066,7 +3066,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3066
3066
|
addon: "Add-on"
|
|
3067
3067
|
},
|
|
3068
3068
|
className: u
|
|
3069
|
-
} =
|
|
3069
|
+
} = i, c = R(i, [
|
|
3070
3070
|
"listItems",
|
|
3071
3071
|
"listLabel",
|
|
3072
3072
|
"moreLink",
|
|
@@ -3098,8 +3098,8 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3098
3098
|
}) => {
|
|
3099
3099
|
const s = "pds-select";
|
|
3100
3100
|
return /* @__PURE__ */ e.createElement("li", { role: "presentation", className: `${s}__group` }, /* @__PURE__ */ e.createElement("span", { className: `${s}__group-label` }, t), /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${s}__group-options` }, n));
|
|
3101
|
-
}, wt = (
|
|
3102
|
-
var h =
|
|
3101
|
+
}, wt = (d) => {
|
|
3102
|
+
var h = d, {
|
|
3103
3103
|
defaultValue: t,
|
|
3104
3104
|
disabled: n,
|
|
3105
3105
|
id: s,
|
|
@@ -3111,11 +3111,11 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3111
3111
|
},
|
|
3112
3112
|
message: c,
|
|
3113
3113
|
onBlur: l,
|
|
3114
|
-
onFocus:
|
|
3114
|
+
onFocus: i,
|
|
3115
3115
|
onOptionSelect: m,
|
|
3116
3116
|
options: g,
|
|
3117
3117
|
required: p = !1,
|
|
3118
|
-
showLabel:
|
|
3118
|
+
showLabel: o = !0,
|
|
3119
3119
|
tooltipText: _ = null,
|
|
3120
3120
|
validationMessage: v,
|
|
3121
3121
|
validationStatus: w,
|
|
@@ -3189,7 +3189,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3189
3189
|
const Ie = () => {
|
|
3190
3190
|
l && l(x);
|
|
3191
3191
|
}, Je = () => {
|
|
3192
|
-
|
|
3192
|
+
i && i(x);
|
|
3193
3193
|
}, e2 = () => {
|
|
3194
3194
|
ee.reference.current.focus();
|
|
3195
3195
|
}, qe = (ye) => {
|
|
@@ -3271,7 +3271,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3271
3271
|
{
|
|
3272
3272
|
id: s,
|
|
3273
3273
|
label: r,
|
|
3274
|
-
showLabel:
|
|
3274
|
+
showLabel: o,
|
|
3275
3275
|
tooltipText: _,
|
|
3276
3276
|
required: p,
|
|
3277
3277
|
disabled: n
|
|
@@ -3317,8 +3317,8 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
)
|
|
3319
3319
|
);
|
|
3320
|
-
}, kn = (
|
|
3321
|
-
var _ =
|
|
3320
|
+
}, kn = (o) => {
|
|
3321
|
+
var _ = o, {
|
|
3322
3322
|
actionPrimary: t,
|
|
3323
3323
|
actionSecondary: n,
|
|
3324
3324
|
hasComparisonList: s = !0,
|
|
@@ -3330,7 +3330,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3330
3330
|
currentPlan: "Current plan",
|
|
3331
3331
|
mostPopular: "Most popular"
|
|
3332
3332
|
},
|
|
3333
|
-
selectLabel:
|
|
3333
|
+
selectLabel: i = "Select a plan size",
|
|
3334
3334
|
statusBadgeType: m,
|
|
3335
3335
|
className: g
|
|
3336
3336
|
} = _, p = R(_, [
|
|
@@ -3346,13 +3346,13 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3346
3346
|
"statusBadgeType",
|
|
3347
3347
|
"className"
|
|
3348
3348
|
]);
|
|
3349
|
-
const v = "pds-pricing-card", w = `${v}-container`, b = s ? `${w}--with-list` : null, E = m ? `${v}--${m}` : null, f = (D) => D.toLowerCase().replace(/\s/g, "-"),
|
|
3349
|
+
const v = "pds-pricing-card", w = `${v}-container`, b = s ? `${w}--with-list` : null, E = m ? `${v}--${m}` : null, f = (D) => D.toLowerCase().replace(/\s/g, "-"), d = c && c.length > 1, [h, C] = X(
|
|
3350
3350
|
f(c[0].label)
|
|
3351
3351
|
), [$, H] = X(
|
|
3352
3352
|
t.label
|
|
3353
3353
|
);
|
|
3354
3354
|
let M = null, L = null;
|
|
3355
|
-
|
|
3355
|
+
d || (M = /* @__PURE__ */ e.createElement("div", { className: `${v}__pricing-data` }, c[0].pricePrefix && /* @__PURE__ */ e.createElement("span", { className: `${v}__price-prefix` }, c[0].pricePrefix), /* @__PURE__ */ e.createElement("div", { className: `${v}__price-line` }, /* @__PURE__ */ e.createElement("span", { className: `${v}__price` }, c[0].price), c[0].priceDetails && /* @__PURE__ */ e.createElement("span", { className: `${v}__details` }, c[0].priceDetails)), /* @__PURE__ */ e.createElement("div", { className: `${v}__savings-line` }, c[0].savingsBadgeLabel && /* @__PURE__ */ e.createElement(
|
|
3356
3356
|
g2,
|
|
3357
3357
|
{
|
|
3358
3358
|
className: `${v}__savings-badge`,
|
|
@@ -3368,7 +3368,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3368
3368
|
listItems: c[0].listItems,
|
|
3369
3369
|
renderTypeLabels: !1
|
|
3370
3370
|
}
|
|
3371
|
-
)),
|
|
3371
|
+
)), d && (M = c.map((D) => {
|
|
3372
3372
|
const O = h === f(D.label) ? null : `${v}__pricing-data--hide`;
|
|
3373
3373
|
return /* @__PURE__ */ e.createElement(
|
|
3374
3374
|
"div",
|
|
@@ -3412,12 +3412,12 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3412
3412
|
return U.customActionLabel ? U.customActionLabel : t.label;
|
|
3413
3413
|
};
|
|
3414
3414
|
let z = null;
|
|
3415
|
-
|
|
3415
|
+
d && (z = /* @__PURE__ */ e.createElement(
|
|
3416
3416
|
wt,
|
|
3417
3417
|
{
|
|
3418
3418
|
id: "plan-select",
|
|
3419
3419
|
className: `${v}__select`,
|
|
3420
|
-
label:
|
|
3420
|
+
label: i,
|
|
3421
3421
|
showLabel: !1,
|
|
3422
3422
|
options: c.map((D) => ({
|
|
3423
3423
|
value: f(D.label),
|
|
@@ -3491,7 +3491,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3491
3491
|
sitePlan: u,
|
|
3492
3492
|
siteStatus: c,
|
|
3493
3493
|
className: l
|
|
3494
|
-
} = g,
|
|
3494
|
+
} = g, i = R(g, [
|
|
3495
3495
|
"gotoText",
|
|
3496
3496
|
"headingLevel",
|
|
3497
3497
|
"siteImage",
|
|
@@ -3502,12 +3502,12 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3502
3502
|
"className"
|
|
3503
3503
|
]);
|
|
3504
3504
|
const p = "pds-site-card";
|
|
3505
|
-
let
|
|
3506
|
-
c === "active" && (
|
|
3505
|
+
let o, _;
|
|
3506
|
+
c === "active" && (o = "Active", _ = "success"), c === "frozen" && (o = "Frozen", _ = "frozen");
|
|
3507
3507
|
const v = /* @__PURE__ */ e.createElement(
|
|
3508
3508
|
Q2,
|
|
3509
3509
|
{
|
|
3510
|
-
label:
|
|
3510
|
+
label: o,
|
|
3511
3511
|
statusType: _,
|
|
3512
3512
|
hasStatusIndicator: !0
|
|
3513
3513
|
}
|
|
@@ -3524,7 +3524,7 @@ const T2 = 300, mt = 400, xe = (p) => {
|
|
|
3524
3524
|
children: w,
|
|
3525
3525
|
"aria-label": `${t} ${r} dashboard`
|
|
3526
3526
|
})) : null;
|
|
3527
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([p, l != null ? l : ""]) },
|
|
3527
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([p, l != null ? l : ""]) }, i), b);
|
|
3528
3528
|
};
|
|
3529
3529
|
var p1 = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
3530
3530
|
function yt(t) {
|
|
@@ -3597,8 +3597,8 @@ var T1 = { exports: {} };
|
|
|
3597
3597
|
* @memberof Prism
|
|
3598
3598
|
*/
|
|
3599
3599
|
util: {
|
|
3600
|
-
encode: function f(
|
|
3601
|
-
return
|
|
3600
|
+
encode: function f(d) {
|
|
3601
|
+
return d instanceof i ? new i(d.type, f(d.content), d.alias) : Array.isArray(d) ? d.map(f) : d.replace(/&/g, "&").replace(/</g, "<").replace(/\u00a0/g, " ");
|
|
3602
3602
|
},
|
|
3603
3603
|
/**
|
|
3604
3604
|
* Returns the name of the type of the given value.
|
|
@@ -3638,30 +3638,30 @@ var T1 = { exports: {} };
|
|
|
3638
3638
|
* @returns {T}
|
|
3639
3639
|
* @template T
|
|
3640
3640
|
*/
|
|
3641
|
-
clone: function f(
|
|
3641
|
+
clone: function f(d, h) {
|
|
3642
3642
|
h = h || {};
|
|
3643
3643
|
var C, $;
|
|
3644
|
-
switch (l.util.type(
|
|
3644
|
+
switch (l.util.type(d)) {
|
|
3645
3645
|
case "Object":
|
|
3646
|
-
if ($ = l.util.objId(
|
|
3646
|
+
if ($ = l.util.objId(d), h[$])
|
|
3647
3647
|
return h[$];
|
|
3648
3648
|
C = /** @type {Record<string, any>} */
|
|
3649
3649
|
{}, h[$] = C;
|
|
3650
|
-
for (var H in
|
|
3651
|
-
|
|
3650
|
+
for (var H in d)
|
|
3651
|
+
d.hasOwnProperty(H) && (C[H] = f(d[H], h));
|
|
3652
3652
|
return (
|
|
3653
3653
|
/** @type {any} */
|
|
3654
3654
|
C
|
|
3655
3655
|
);
|
|
3656
3656
|
case "Array":
|
|
3657
|
-
return $ = l.util.objId(
|
|
3657
|
+
return $ = l.util.objId(d), h[$] ? h[$] : (C = [], h[$] = C, /** @type {Array} */
|
|
3658
3658
|
/** @type {any} */
|
|
3659
|
-
|
|
3659
|
+
d.forEach(function(M, L) {
|
|
3660
3660
|
C[L] = f(M, h);
|
|
3661
3661
|
}), /** @type {any} */
|
|
3662
3662
|
C);
|
|
3663
3663
|
default:
|
|
3664
|
-
return
|
|
3664
|
+
return d;
|
|
3665
3665
|
}
|
|
3666
3666
|
},
|
|
3667
3667
|
/**
|
|
@@ -3674,9 +3674,9 @@ var T1 = { exports: {} };
|
|
|
3674
3674
|
*/
|
|
3675
3675
|
getLanguage: function(f) {
|
|
3676
3676
|
for (; f; ) {
|
|
3677
|
-
var
|
|
3678
|
-
if (
|
|
3679
|
-
return
|
|
3677
|
+
var d = r.exec(f.className);
|
|
3678
|
+
if (d)
|
|
3679
|
+
return d[1].toLowerCase();
|
|
3680
3680
|
f = f.parentElement;
|
|
3681
3681
|
}
|
|
3682
3682
|
return "none";
|
|
@@ -3688,8 +3688,8 @@ var T1 = { exports: {} };
|
|
|
3688
3688
|
* @param {string} language
|
|
3689
3689
|
* @returns {void}
|
|
3690
3690
|
*/
|
|
3691
|
-
setLanguage: function(f,
|
|
3692
|
-
f.className = f.className.replace(RegExp(r, "gi"), ""), f.classList.add("language-" +
|
|
3691
|
+
setLanguage: function(f, d) {
|
|
3692
|
+
f.className = f.className.replace(RegExp(r, "gi"), ""), f.classList.add("language-" + d);
|
|
3693
3693
|
},
|
|
3694
3694
|
/**
|
|
3695
3695
|
* Returns the script element that is currently executing.
|
|
@@ -3711,10 +3711,10 @@ var T1 = { exports: {} };
|
|
|
3711
3711
|
} catch (C) {
|
|
3712
3712
|
var f = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(C.stack) || [])[1];
|
|
3713
3713
|
if (f) {
|
|
3714
|
-
var
|
|
3715
|
-
for (var h in
|
|
3716
|
-
if (
|
|
3717
|
-
return
|
|
3714
|
+
var d = document.getElementsByTagName("script");
|
|
3715
|
+
for (var h in d)
|
|
3716
|
+
if (d[h].src == f)
|
|
3717
|
+
return d[h];
|
|
3718
3718
|
}
|
|
3719
3719
|
return null;
|
|
3720
3720
|
}
|
|
@@ -3738,10 +3738,10 @@ var T1 = { exports: {} };
|
|
|
3738
3738
|
* @param {boolean} [defaultActivation=false]
|
|
3739
3739
|
* @returns {boolean}
|
|
3740
3740
|
*/
|
|
3741
|
-
isActive: function(f,
|
|
3742
|
-
for (var C = "no-" +
|
|
3741
|
+
isActive: function(f, d, h) {
|
|
3742
|
+
for (var C = "no-" + d; f; ) {
|
|
3743
3743
|
var $ = f.classList;
|
|
3744
|
-
if ($.contains(
|
|
3744
|
+
if ($.contains(d))
|
|
3745
3745
|
return !0;
|
|
3746
3746
|
if ($.contains(C))
|
|
3747
3747
|
return !1;
|
|
@@ -3793,10 +3793,10 @@ var T1 = { exports: {} };
|
|
|
3793
3793
|
* 'color': /\b(?:red|green|blue)\b/
|
|
3794
3794
|
* });
|
|
3795
3795
|
*/
|
|
3796
|
-
extend: function(f,
|
|
3796
|
+
extend: function(f, d) {
|
|
3797
3797
|
var h = l.util.clone(l.languages[f]);
|
|
3798
|
-
for (var C in
|
|
3799
|
-
h[C] =
|
|
3798
|
+
for (var C in d)
|
|
3799
|
+
h[C] = d[C];
|
|
3800
3800
|
return h;
|
|
3801
3801
|
},
|
|
3802
3802
|
/**
|
|
@@ -3874,13 +3874,13 @@ var T1 = { exports: {} };
|
|
|
3874
3874
|
* @returns {Grammar} The new grammar object.
|
|
3875
3875
|
* @public
|
|
3876
3876
|
*/
|
|
3877
|
-
insertBefore: function(f,
|
|
3877
|
+
insertBefore: function(f, d, h, C) {
|
|
3878
3878
|
C = C || /** @type {any} */
|
|
3879
3879
|
l.languages;
|
|
3880
3880
|
var $ = C[f], H = {};
|
|
3881
3881
|
for (var M in $)
|
|
3882
3882
|
if ($.hasOwnProperty(M)) {
|
|
3883
|
-
if (M ==
|
|
3883
|
+
if (M == d)
|
|
3884
3884
|
for (var L in h)
|
|
3885
3885
|
h.hasOwnProperty(L) && (H[L] = h[L]);
|
|
3886
3886
|
h.hasOwnProperty(M) || (H[M] = $[M]);
|
|
@@ -3891,13 +3891,13 @@ var T1 = { exports: {} };
|
|
|
3891
3891
|
}), H;
|
|
3892
3892
|
},
|
|
3893
3893
|
// Traverse a language definition with Depth First Search
|
|
3894
|
-
DFS: function f(
|
|
3894
|
+
DFS: function f(d, h, C, $) {
|
|
3895
3895
|
$ = $ || {};
|
|
3896
3896
|
var H = l.util.objId;
|
|
3897
|
-
for (var M in
|
|
3898
|
-
if (
|
|
3899
|
-
h.call(
|
|
3900
|
-
var L =
|
|
3897
|
+
for (var M in d)
|
|
3898
|
+
if (d.hasOwnProperty(M)) {
|
|
3899
|
+
h.call(d, M, d[M], C || M);
|
|
3900
|
+
var L = d[M], k = l.util.type(L);
|
|
3901
3901
|
k === "Object" && !$[H(L)] ? ($[H(L)] = !0, f(L, h, null, $)) : k === "Array" && !$[H(L)] && ($[H(L)] = !0, f(L, h, M, $));
|
|
3902
3902
|
}
|
|
3903
3903
|
}
|
|
@@ -3915,8 +3915,8 @@ var T1 = { exports: {} };
|
|
|
3915
3915
|
* @memberof Prism
|
|
3916
3916
|
* @public
|
|
3917
3917
|
*/
|
|
3918
|
-
highlightAll: function(f,
|
|
3919
|
-
l.highlightAllUnder(document, f,
|
|
3918
|
+
highlightAll: function(f, d) {
|
|
3919
|
+
l.highlightAllUnder(document, f, d);
|
|
3920
3920
|
},
|
|
3921
3921
|
/**
|
|
3922
3922
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -3933,7 +3933,7 @@ var T1 = { exports: {} };
|
|
|
3933
3933
|
* @memberof Prism
|
|
3934
3934
|
* @public
|
|
3935
3935
|
*/
|
|
3936
|
-
highlightAllUnder: function(f,
|
|
3936
|
+
highlightAllUnder: function(f, d, h) {
|
|
3937
3937
|
var C = {
|
|
3938
3938
|
callback: h,
|
|
3939
3939
|
container: f,
|
|
@@ -3941,7 +3941,7 @@ var T1 = { exports: {} };
|
|
|
3941
3941
|
};
|
|
3942
3942
|
l.hooks.run("before-highlightall", C), C.elements = Array.prototype.slice.apply(C.container.querySelectorAll(C.selector)), l.hooks.run("before-all-elements-highlight", C);
|
|
3943
3943
|
for (var $ = 0, H; H = C.elements[$++]; )
|
|
3944
|
-
l.highlightElement(H,
|
|
3944
|
+
l.highlightElement(H, d === !0, C.callback);
|
|
3945
3945
|
},
|
|
3946
3946
|
/**
|
|
3947
3947
|
* Highlights the code inside a single element.
|
|
@@ -3971,7 +3971,7 @@ var T1 = { exports: {} };
|
|
|
3971
3971
|
* @memberof Prism
|
|
3972
3972
|
* @public
|
|
3973
3973
|
*/
|
|
3974
|
-
highlightElement: function(f,
|
|
3974
|
+
highlightElement: function(f, d, h) {
|
|
3975
3975
|
var C = l.util.getLanguage(f), $ = l.languages[C];
|
|
3976
3976
|
l.util.setLanguage(f, C);
|
|
3977
3977
|
var H = f.parentElement;
|
|
@@ -3993,7 +3993,7 @@ var T1 = { exports: {} };
|
|
|
3993
3993
|
k(l.util.encode(L.code));
|
|
3994
3994
|
return;
|
|
3995
3995
|
}
|
|
3996
|
-
if (
|
|
3996
|
+
if (d && a.Worker) {
|
|
3997
3997
|
var z = new Worker(l.filename);
|
|
3998
3998
|
z.onmessage = function(S) {
|
|
3999
3999
|
k(S.data);
|
|
@@ -4025,15 +4025,15 @@ var T1 = { exports: {} };
|
|
|
4025
4025
|
* @example
|
|
4026
4026
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
4027
4027
|
*/
|
|
4028
|
-
highlight: function(f,
|
|
4028
|
+
highlight: function(f, d, h) {
|
|
4029
4029
|
var C = {
|
|
4030
4030
|
code: f,
|
|
4031
|
-
grammar:
|
|
4031
|
+
grammar: d,
|
|
4032
4032
|
language: h
|
|
4033
4033
|
};
|
|
4034
4034
|
if (l.hooks.run("before-tokenize", C), !C.grammar)
|
|
4035
4035
|
throw new Error('The language "' + C.language + '" has no grammar.');
|
|
4036
|
-
return C.tokens = l.tokenize(C.code, C.grammar), l.hooks.run("after-tokenize", C),
|
|
4036
|
+
return C.tokens = l.tokenize(C.code, C.grammar), l.hooks.run("after-tokenize", C), i.stringify(l.util.encode(C.tokens), C.language);
|
|
4037
4037
|
},
|
|
4038
4038
|
/**
|
|
4039
4039
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -4059,15 +4059,15 @@ var T1 = { exports: {} };
|
|
|
4059
4059
|
* }
|
|
4060
4060
|
* });
|
|
4061
4061
|
*/
|
|
4062
|
-
tokenize: function(f,
|
|
4063
|
-
var h =
|
|
4062
|
+
tokenize: function(f, d) {
|
|
4063
|
+
var h = d.rest;
|
|
4064
4064
|
if (h) {
|
|
4065
4065
|
for (var C in h)
|
|
4066
|
-
|
|
4067
|
-
delete
|
|
4066
|
+
d[C] = h[C];
|
|
4067
|
+
delete d.rest;
|
|
4068
4068
|
}
|
|
4069
4069
|
var $ = new p();
|
|
4070
|
-
return
|
|
4070
|
+
return o($, $.head, f), g(f, $, d, $.head, 0), v($);
|
|
4071
4071
|
},
|
|
4072
4072
|
/**
|
|
4073
4073
|
* @namespace
|
|
@@ -4088,9 +4088,9 @@ var T1 = { exports: {} };
|
|
|
4088
4088
|
* @param {HookCallback} callback The callback function which is given environment variables.
|
|
4089
4089
|
* @public
|
|
4090
4090
|
*/
|
|
4091
|
-
add: function(f,
|
|
4091
|
+
add: function(f, d) {
|
|
4092
4092
|
var h = l.hooks.all;
|
|
4093
|
-
h[f] = h[f] || [], h[f].push(
|
|
4093
|
+
h[f] = h[f] || [], h[f].push(d);
|
|
4094
4094
|
},
|
|
4095
4095
|
/**
|
|
4096
4096
|
* Runs a hook invoking all registered callbacks with the given environment variables.
|
|
@@ -4101,44 +4101,44 @@ var T1 = { exports: {} };
|
|
|
4101
4101
|
* @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
|
|
4102
4102
|
* @public
|
|
4103
4103
|
*/
|
|
4104
|
-
run: function(f,
|
|
4104
|
+
run: function(f, d) {
|
|
4105
4105
|
var h = l.hooks.all[f];
|
|
4106
4106
|
if (!(!h || !h.length))
|
|
4107
4107
|
for (var C = 0, $; $ = h[C++]; )
|
|
4108
|
-
$(
|
|
4108
|
+
$(d);
|
|
4109
4109
|
}
|
|
4110
4110
|
},
|
|
4111
|
-
Token:
|
|
4111
|
+
Token: i
|
|
4112
4112
|
};
|
|
4113
4113
|
a.Prism = l;
|
|
4114
|
-
function
|
|
4115
|
-
this.type = f, this.content =
|
|
4114
|
+
function i(f, d, h, C) {
|
|
4115
|
+
this.type = f, this.content = d, this.alias = h, this.length = (C || "").length | 0;
|
|
4116
4116
|
}
|
|
4117
|
-
|
|
4118
|
-
if (typeof
|
|
4119
|
-
return
|
|
4120
|
-
if (Array.isArray(
|
|
4117
|
+
i.stringify = function f(d, h) {
|
|
4118
|
+
if (typeof d == "string")
|
|
4119
|
+
return d;
|
|
4120
|
+
if (Array.isArray(d)) {
|
|
4121
4121
|
var C = "";
|
|
4122
|
-
return
|
|
4122
|
+
return d.forEach(function(k) {
|
|
4123
4123
|
C += f(k, h);
|
|
4124
4124
|
}), C;
|
|
4125
4125
|
}
|
|
4126
4126
|
var $ = {
|
|
4127
|
-
type:
|
|
4128
|
-
content: f(
|
|
4127
|
+
type: d.type,
|
|
4128
|
+
content: f(d.content, h),
|
|
4129
4129
|
tag: "span",
|
|
4130
|
-
classes: ["token",
|
|
4130
|
+
classes: ["token", d.type],
|
|
4131
4131
|
attributes: {},
|
|
4132
4132
|
language: h
|
|
4133
|
-
}, H =
|
|
4133
|
+
}, H = d.alias;
|
|
4134
4134
|
H && (Array.isArray(H) ? Array.prototype.push.apply($.classes, H) : $.classes.push(H)), l.hooks.run("wrap", $);
|
|
4135
4135
|
var M = "";
|
|
4136
4136
|
for (var L in $.attributes)
|
|
4137
4137
|
M += " " + L + '="' + ($.attributes[L] || "").replace(/"/g, """) + '"';
|
|
4138
4138
|
return "<" + $.tag + ' class="' + $.classes.join(" ") + '"' + M + ">" + $.content + "</" + $.tag + ">";
|
|
4139
4139
|
};
|
|
4140
|
-
function m(f,
|
|
4141
|
-
f.lastIndex =
|
|
4140
|
+
function m(f, d, h, C) {
|
|
4141
|
+
f.lastIndex = d;
|
|
4142
4142
|
var $ = f.exec(h);
|
|
4143
4143
|
if ($ && C && $[1]) {
|
|
4144
4144
|
var H = $[1].length;
|
|
@@ -4146,7 +4146,7 @@ var T1 = { exports: {} };
|
|
|
4146
4146
|
}
|
|
4147
4147
|
return $;
|
|
4148
4148
|
}
|
|
4149
|
-
function g(f,
|
|
4149
|
+
function g(f, d, h, C, $, H) {
|
|
4150
4150
|
for (var M in h)
|
|
4151
4151
|
if (!(!h.hasOwnProperty(M) || !h[M])) {
|
|
4152
4152
|
var L = h[M];
|
|
@@ -4159,11 +4159,11 @@ var T1 = { exports: {} };
|
|
|
4159
4159
|
var O = z.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4160
4160
|
z.pattern = RegExp(z.pattern.source, O + "g");
|
|
4161
4161
|
}
|
|
4162
|
-
for (var Z = z.pattern || z, W = C.next, Q = $; W !==
|
|
4162
|
+
for (var Z = z.pattern || z, W = C.next, Q = $; W !== d.tail && !(H && Q >= H.reach); Q += W.value.length, W = W.next) {
|
|
4163
4163
|
var J = W.value;
|
|
4164
|
-
if (
|
|
4164
|
+
if (d.length > f.length)
|
|
4165
4165
|
return;
|
|
4166
|
-
if (!(J instanceof
|
|
4166
|
+
if (!(J instanceof i)) {
|
|
4167
4167
|
var te = 1, P;
|
|
4168
4168
|
if (D) {
|
|
4169
4169
|
if (P = m(Z, Q, f, B), !P || P.index >= f.length)
|
|
@@ -4171,9 +4171,9 @@ var T1 = { exports: {} };
|
|
|
4171
4171
|
var I = P.index, F = P.index + P[0].length, q = Q;
|
|
4172
4172
|
for (q += W.value.length; I >= q; )
|
|
4173
4173
|
W = W.next, q += W.value.length;
|
|
4174
|
-
if (q -= W.value.length, Q = q, W.value instanceof
|
|
4174
|
+
if (q -= W.value.length, Q = q, W.value instanceof i)
|
|
4175
4175
|
continue;
|
|
4176
|
-
for (var A = W; A !==
|
|
4176
|
+
for (var A = W; A !== d.tail && (q < F || typeof A.value == "string"); A = A.next)
|
|
4177
4177
|
te++, q += A.value.length;
|
|
4178
4178
|
te--, J = f.slice(Q, q), P.index -= Q;
|
|
4179
4179
|
} else if (P = m(Z, 0, J, B), !P)
|
|
@@ -4181,14 +4181,14 @@ var T1 = { exports: {} };
|
|
|
4181
4181
|
var I = P.index, V = P[0], x = J.slice(0, I), T = J.slice(I + V.length), K = Q + J.length;
|
|
4182
4182
|
H && K > H.reach && (H.reach = K);
|
|
4183
4183
|
var ee = W.prev;
|
|
4184
|
-
x && (ee = d
|
|
4185
|
-
var pe = new
|
|
4186
|
-
if (W = d
|
|
4184
|
+
x && (ee = o(d, ee, x), Q += x.length), _(d, ee, te);
|
|
4185
|
+
var pe = new i(M, S ? l.tokenize(V, S) : V, U, V);
|
|
4186
|
+
if (W = o(d, ee, pe), T && o(d, W, T), te > 1) {
|
|
4187
4187
|
var ie = {
|
|
4188
4188
|
cause: M + "," + k,
|
|
4189
4189
|
reach: K
|
|
4190
4190
|
};
|
|
4191
|
-
g(f,
|
|
4191
|
+
g(f, d, h, W.prev, Q, ie), H && ie.reach > H.reach && (H.reach = ie.reach);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
4194
|
}
|
|
@@ -4196,26 +4196,26 @@ var T1 = { exports: {} };
|
|
|
4196
4196
|
}
|
|
4197
4197
|
}
|
|
4198
4198
|
function p() {
|
|
4199
|
-
var f = { value: null, prev: null, next: null },
|
|
4200
|
-
f.next =
|
|
4199
|
+
var f = { value: null, prev: null, next: null }, d = { value: null, prev: f, next: null };
|
|
4200
|
+
f.next = d, this.head = f, this.tail = d, this.length = 0;
|
|
4201
4201
|
}
|
|
4202
|
-
function
|
|
4203
|
-
var C =
|
|
4204
|
-
return
|
|
4202
|
+
function o(f, d, h) {
|
|
4203
|
+
var C = d.next, $ = { value: h, prev: d, next: C };
|
|
4204
|
+
return d.next = $, C.prev = $, f.length++, $;
|
|
4205
4205
|
}
|
|
4206
|
-
function _(f,
|
|
4207
|
-
for (var C =
|
|
4206
|
+
function _(f, d, h) {
|
|
4207
|
+
for (var C = d.next, $ = 0; $ < h && C !== f.tail; $++)
|
|
4208
4208
|
C = C.next;
|
|
4209
|
-
|
|
4209
|
+
d.next = C, C.prev = d, f.length -= $;
|
|
4210
4210
|
}
|
|
4211
4211
|
function v(f) {
|
|
4212
|
-
for (var
|
|
4213
|
-
|
|
4214
|
-
return
|
|
4212
|
+
for (var d = [], h = f.head.next; h !== f.tail; )
|
|
4213
|
+
d.push(h.value), h = h.next;
|
|
4214
|
+
return d;
|
|
4215
4215
|
}
|
|
4216
4216
|
if (!a.document)
|
|
4217
4217
|
return a.addEventListener && (l.disableWorkerMessageHandler || a.addEventListener("message", function(f) {
|
|
4218
|
-
var
|
|
4218
|
+
var d = JSON.parse(f.data), h = d.language, C = d.code, $ = d.immediateClose;
|
|
4219
4219
|
a.postMessage(l.highlight(C, l.languages[h], h)), $ && a.close();
|
|
4220
4220
|
}, !1)), l;
|
|
4221
4221
|
var w = l.util.currentScript();
|
|
@@ -4659,8 +4659,8 @@ const Ht = /* @__PURE__ */ yt(Lt), Mt = {
|
|
|
4659
4659
|
value: n
|
|
4660
4660
|
});
|
|
4661
4661
|
})(Prism);
|
|
4662
|
-
const Nn = (
|
|
4663
|
-
var _ =
|
|
4662
|
+
const Nn = (o) => {
|
|
4663
|
+
var _ = o, {
|
|
4664
4664
|
code: t,
|
|
4665
4665
|
colorType: n = "dark",
|
|
4666
4666
|
copyButtonLabel: s = "Copy to clipboard",
|
|
@@ -4669,7 +4669,7 @@ const Nn = (d) => {
|
|
|
4669
4669
|
hasPrompt: u,
|
|
4670
4670
|
language: c,
|
|
4671
4671
|
maxHeight: l,
|
|
4672
|
-
promptSymbol:
|
|
4672
|
+
promptSymbol: i = "$",
|
|
4673
4673
|
shouldWrap: m = !1,
|
|
4674
4674
|
className: g
|
|
4675
4675
|
} = _, p = R(_, [
|
|
@@ -4685,7 +4685,7 @@ const Nn = (d) => {
|
|
|
4685
4685
|
"shouldWrap",
|
|
4686
4686
|
"className"
|
|
4687
4687
|
]);
|
|
4688
|
-
const v = "pds-code-block", w = `${v}--${n}`, b = m ? `${v}__line-wrapped` : "", E = l ? { maxHeight: `${l}rem` } : {}, f = n === "dark" ? "reverse" : "standard",
|
|
4688
|
+
const v = "pds-code-block", w = `${v}--${n}`, b = m ? `${v}__line-wrapped` : "", E = l ? { maxHeight: `${l}rem` } : {}, f = n === "dark" ? "reverse" : "standard", d = n === "dark" ? Mt : kt, h = ["bash", "diff", "twig"], C = /* @__PURE__ */ e.createElement(m2.LineContent, null, /* @__PURE__ */ e.createElement(m2.Token, null)), $ = /* @__PURE__ */ e.createElement("div", { className: `${v}__line ${b}` }, /* @__PURE__ */ e.createElement(m2.LineNumber, { className: `${v}__number` }), C), H = /* @__PURE__ */ e.createElement("div", { className: `${v}__line` }, /* @__PURE__ */ e.createElement("span", { className: `${v}__prompt` }, i), C);
|
|
4689
4689
|
return /* @__PURE__ */ e.createElement(
|
|
4690
4690
|
"div",
|
|
4691
4691
|
y({
|
|
@@ -4697,7 +4697,7 @@ const Nn = (d) => {
|
|
|
4697
4697
|
{
|
|
4698
4698
|
code: t,
|
|
4699
4699
|
language: c || "",
|
|
4700
|
-
theme:
|
|
4700
|
+
theme: d,
|
|
4701
4701
|
prism: h.includes(c) ? Ht : void 0
|
|
4702
4702
|
},
|
|
4703
4703
|
/* @__PURE__ */ e.createElement(m2.Code, { className: `${v}__code`, tabIndex: 0 }, r || u ? r ? $ : H : C)
|
|
@@ -4712,14 +4712,14 @@ const Nn = (d) => {
|
|
|
4712
4712
|
))
|
|
4713
4713
|
);
|
|
4714
4714
|
}, xn = (l) => {
|
|
4715
|
-
var
|
|
4715
|
+
var i = l, {
|
|
4716
4716
|
iconName: t,
|
|
4717
4717
|
linkContent: n,
|
|
4718
4718
|
message: s,
|
|
4719
4719
|
heading: a,
|
|
4720
4720
|
headingLevel: r = "span",
|
|
4721
4721
|
className: u
|
|
4722
|
-
} =
|
|
4722
|
+
} = i, c = R(i, [
|
|
4723
4723
|
"iconName",
|
|
4724
4724
|
"linkContent",
|
|
4725
4725
|
"message",
|
|
@@ -4780,7 +4780,7 @@ const Nn = (d) => {
|
|
|
4780
4780
|
primaryLinkContent: u,
|
|
4781
4781
|
secondaryLinkContent: c,
|
|
4782
4782
|
className: l
|
|
4783
|
-
} = g,
|
|
4783
|
+
} = g, i = R(g, [
|
|
4784
4784
|
"backgroundColor",
|
|
4785
4785
|
"containerWidth",
|
|
4786
4786
|
"headingLevel",
|
|
@@ -4790,12 +4790,12 @@ const Nn = (d) => {
|
|
|
4790
4790
|
"secondaryLinkContent",
|
|
4791
4791
|
"className"
|
|
4792
4792
|
]);
|
|
4793
|
-
const p = "pds-cta-slice",
|
|
4793
|
+
const p = "pds-cta-slice", o = t && t !== "default" ? `${p}--${t}` : null, _ = n && n !== "standard" ? `pds-container pds-container--${n}` : "pds-container";
|
|
4794
4794
|
return /* @__PURE__ */ e.createElement(
|
|
4795
4795
|
"div",
|
|
4796
4796
|
y({
|
|
4797
|
-
className: N([p,
|
|
4798
|
-
},
|
|
4797
|
+
className: N([p, o, l])
|
|
4798
|
+
}, i),
|
|
4799
4799
|
/* @__PURE__ */ e.createElement("div", { className: _ }, a && /* @__PURE__ */ e.createElement(i2, { baseClass: p, className: "pds-ts-4xl", level: s }, a), r && /* @__PURE__ */ e.createElement(
|
|
4800
4800
|
"div",
|
|
4801
4801
|
{
|
|
@@ -4823,7 +4823,7 @@ const Nn = (d) => {
|
|
|
4823
4823
|
"stat",
|
|
4824
4824
|
"className"
|
|
4825
4825
|
]);
|
|
4826
|
-
const l = "pds-dashboard-stat",
|
|
4826
|
+
const l = "pds-dashboard-stat", i = {
|
|
4827
4827
|
success: "circleCheck",
|
|
4828
4828
|
warning: "diamondExclamation",
|
|
4829
4829
|
launch: "rocketLaunch",
|
|
@@ -4834,7 +4834,7 @@ const Nn = (d) => {
|
|
|
4834
4834
|
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: `${l}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${l}__stat-wrapper` }, n && /* @__PURE__ */ e.createElement(
|
|
4835
4835
|
j,
|
|
4836
4836
|
{
|
|
4837
|
-
iconName:
|
|
4837
|
+
iconName: i[n],
|
|
4838
4838
|
className: `${l}__stat-status ${l}__stat-status--${n}`
|
|
4839
4839
|
}
|
|
4840
4840
|
), s && /* @__PURE__ */ e.createElement("div", { className: `${l}__stat-value` }, s)));
|
|
@@ -4856,26 +4856,26 @@ const Nn = (d) => {
|
|
|
4856
4856
|
"className",
|
|
4857
4857
|
"componentWidth"
|
|
4858
4858
|
]);
|
|
4859
|
-
const
|
|
4859
|
+
const i = "pds-file-diff", m = t + n, g = m > 0 ? n / m * 100 : 0, p = m > 0 ? t / m * 100 : 0, o = r !== null && r > 0 ? `${r}rem` : "100%";
|
|
4860
4860
|
return /* @__PURE__ */ e.createElement(
|
|
4861
4861
|
"div",
|
|
4862
4862
|
y({
|
|
4863
|
-
className: N([
|
|
4864
|
-
style: { width:
|
|
4863
|
+
className: N([i, a != null ? a : ""]),
|
|
4864
|
+
style: { width: o }
|
|
4865
4865
|
}, u),
|
|
4866
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4866
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__total-changes` }, /* @__PURE__ */ e.createElement(
|
|
4867
4867
|
xe,
|
|
4868
4868
|
{
|
|
4869
4869
|
content: `${m} ${s.linesChanged}`,
|
|
4870
4870
|
preferredPlacement: "top",
|
|
4871
|
-
className: `${
|
|
4872
|
-
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4871
|
+
className: `${i}__tooltip`,
|
|
4872
|
+
customTrigger: /* @__PURE__ */ e.createElement("div", { className: `${i}__total-changes-number` }, m, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, ` ${s.linesChanged}`))
|
|
4873
4873
|
}
|
|
4874
4874
|
)),
|
|
4875
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
4875
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__bars` }, /* @__PURE__ */ e.createElement(
|
|
4876
4876
|
"div",
|
|
4877
4877
|
{
|
|
4878
|
-
className: `${
|
|
4878
|
+
className: `${i}__behind`,
|
|
4879
4879
|
style: { width: `${g}%` }
|
|
4880
4880
|
},
|
|
4881
4881
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4883,14 +4883,14 @@ const Nn = (d) => {
|
|
|
4883
4883
|
{
|
|
4884
4884
|
content: `${n} ${s.deletions}`,
|
|
4885
4885
|
preferredPlacement: "top",
|
|
4886
|
-
className: `${
|
|
4887
|
-
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4886
|
+
className: `${i}__tooltip`,
|
|
4887
|
+
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${i}__behind-bar` }))
|
|
4888
4888
|
}
|
|
4889
4889
|
)
|
|
4890
4890
|
), /* @__PURE__ */ e.createElement(
|
|
4891
4891
|
"div",
|
|
4892
4892
|
{
|
|
4893
|
-
className: `${
|
|
4893
|
+
className: `${i}__ahead`,
|
|
4894
4894
|
style: { width: `${p}%` }
|
|
4895
4895
|
},
|
|
4896
4896
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4898,8 +4898,8 @@ const Nn = (d) => {
|
|
|
4898
4898
|
{
|
|
4899
4899
|
content: `${t} ${s.additions}`,
|
|
4900
4900
|
preferredPlacement: "top",
|
|
4901
|
-
className: `${
|
|
4902
|
-
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
4901
|
+
className: `${i}__tooltip`,
|
|
4902
|
+
customTrigger: /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: `${i}__ahead-bar` }))
|
|
4903
4903
|
}
|
|
4904
4904
|
)
|
|
4905
4905
|
))
|
|
@@ -4914,9 +4914,9 @@ const Nn = (d) => {
|
|
|
4914
4914
|
"steps",
|
|
4915
4915
|
"className"
|
|
4916
4916
|
]);
|
|
4917
|
-
const c = "pds-flow-steps", l = `${c}--${t}`,
|
|
4918
|
-
const
|
|
4919
|
-
return /* @__PURE__ */ e.createElement("li", { key: p, className: `${c}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
4917
|
+
const c = "pds-flow-steps", l = `${c}--${t}`, i = n.map(({ header: m, content: g }, p) => {
|
|
4918
|
+
const o = /* @__PURE__ */ e.createElement("div", { className: `${c}__number` }, /* @__PURE__ */ e.createElement("span", null, p + 1)), _ = /* @__PURE__ */ e.createElement("div", { className: `${c}__header` }, m), v = g ? /* @__PURE__ */ e.createElement("div", { className: `${c}__content` }, g) : null;
|
|
4919
|
+
return /* @__PURE__ */ e.createElement("li", { key: p, className: `${c}__step` }, t === "indented" && /* @__PURE__ */ e.createElement(e.Fragment, null, o, /* @__PURE__ */ e.createElement("div", { className: `${c}__content-group` }, _, v)), t === "left" && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${c}__header-group` }, o, _), v));
|
|
4920
4920
|
});
|
|
4921
4921
|
return /* @__PURE__ */ e.createElement(
|
|
4922
4922
|
"ol",
|
|
@@ -4927,7 +4927,7 @@ const Nn = (d) => {
|
|
|
4927
4927
|
s != null ? s : ""
|
|
4928
4928
|
])
|
|
4929
4929
|
}, a),
|
|
4930
|
-
|
|
4930
|
+
i
|
|
4931
4931
|
);
|
|
4932
4932
|
}, Nt = (r) => {
|
|
4933
4933
|
var u = r, {
|
|
@@ -4967,7 +4967,7 @@ const Nn = (d) => {
|
|
|
4967
4967
|
className: `${l}__heading`,
|
|
4968
4968
|
headingText: n
|
|
4969
4969
|
}
|
|
4970
|
-
), /* @__PURE__ */ e.createElement("ul", { className: `${l}__list`, role: "list" }, s.map((
|
|
4970
|
+
), /* @__PURE__ */ e.createElement("ul", { className: `${l}__list`, role: "list" }, s.map((i, m) => /* @__PURE__ */ e.createElement("li", { key: m, className: `${l}__item` }, i))));
|
|
4971
4971
|
}, Dn = (u) => {
|
|
4972
4972
|
var c = u, {
|
|
4973
4973
|
containerWidth: t = "standard",
|
|
@@ -4987,8 +4987,8 @@ const Nn = (d) => {
|
|
|
4987
4987
|
"legalLinks",
|
|
4988
4988
|
"className"
|
|
4989
4989
|
]);
|
|
4990
|
-
const l = "pds-site-footer",
|
|
4991
|
-
return /* @__PURE__ */ e.createElement("footer", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className:
|
|
4990
|
+
const l = "pds-site-footer", i = t && t !== "standard" ? `pds-container pds-container--${t}` : "pds-container", m = (/* @__PURE__ */ new Date()).getFullYear(), g = s.includes("privacy"), p = s.includes("dataSubjectRequest"), o = s.includes("cookiePolicy"), _ = s.includes("termsOfUse"), v = s.includes("acceptableUse"), w = s.includes("accessibilityStatement");
|
|
4991
|
+
return /* @__PURE__ */ e.createElement("footer", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement("div", { className: i }, n && /* @__PURE__ */ e.createElement("div", { className: `${l}__content` }, n), /* @__PURE__ */ e.createElement("div", { className: `${l}__legal` }, /* @__PURE__ */ e.createElement("span", { className: `${l}__copyright` }, "© ", m, " Pantheon Systems, Inc."), g && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/privacy" }, "Privacy Policy"), p && /* @__PURE__ */ e.createElement("a", { href: "http://pantheon.io/data-subject-request" }, "Data Subject Request"), o && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/pantheon-cookies?_gl=1*12uc311*_gcl_au*NjU2MzA3MDUzLjE2ODk3ODU1NTI." }, "Cookie Policy"), _ && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/terms-of-service" }, "Terms of Use"), v && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/acceptable-use-policy" }, "Acceptable Use Policy"), w && /* @__PURE__ */ e.createElement("a", { href: "https://pantheon.io/accessibility-statement" }, "Accessibility Statement"))));
|
|
4992
4992
|
}, xt = je(
|
|
4993
4993
|
(H, $) => {
|
|
4994
4994
|
var M = H, {
|
|
@@ -5000,18 +5000,18 @@ const Nn = (d) => {
|
|
|
5000
5000
|
inputProps: u,
|
|
5001
5001
|
inputWidth: c,
|
|
5002
5002
|
label: l,
|
|
5003
|
-
message:
|
|
5003
|
+
message: i,
|
|
5004
5004
|
name: m,
|
|
5005
5005
|
nestingLevel: g = 0,
|
|
5006
5006
|
onBlur: p,
|
|
5007
|
-
onChange:
|
|
5007
|
+
onChange: o,
|
|
5008
5008
|
onFocus: _,
|
|
5009
5009
|
required: v,
|
|
5010
5010
|
showLabel: w = !0,
|
|
5011
5011
|
size: b = "M",
|
|
5012
5012
|
validationMessage: E,
|
|
5013
5013
|
validationStatus: f,
|
|
5014
|
-
value:
|
|
5014
|
+
value: d,
|
|
5015
5015
|
className: h
|
|
5016
5016
|
} = M, C = R(M, [
|
|
5017
5017
|
"checked",
|
|
@@ -5036,10 +5036,10 @@ const Nn = (d) => {
|
|
|
5036
5036
|
"value",
|
|
5037
5037
|
"className"
|
|
5038
5038
|
]);
|
|
5039
|
-
const L = c ? { width: `${c / 16}rem` } : null, k = "pds-checkbox", z = s ? ne.disabled : null, S = f === "error" ? ne.error : null, B = g > 0 ? `${k}--indent-${g}` : null, D = v && !s ? ne.required : null, U = b === "S" ? `${k}--sm` : null, O = f === "success" ? ne.success : null, Z = E ||
|
|
5039
|
+
const L = c ? { width: `${c / 16}rem` } : null, k = "pds-checkbox", z = s ? ne.disabled : null, S = f === "error" ? ne.error : null, B = g > 0 ? `${k}--indent-${g}` : null, D = v && !s ? ne.required : null, U = b === "S" ? `${k}--sm` : null, O = f === "success" ? ne.success : null, Z = E || i, W = typeof t != "undefined", Q = typeof n != "undefined", [J, te] = X(
|
|
5040
5040
|
Q ? n : !1
|
|
5041
5041
|
), P = t || J, F = (x) => {
|
|
5042
|
-
W || te(x.target.checked),
|
|
5042
|
+
W || te(x.target.checked), o && o(x);
|
|
5043
5043
|
}, q = `${k}__box`, A = r ? null : P ? `${q}--checked` : null, I = r ? `${q}--indeterminate` : null, V = j2(() => {
|
|
5044
5044
|
if (r)
|
|
5045
5045
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5084,7 +5084,7 @@ const Nn = (d) => {
|
|
|
5084
5084
|
type: "checkbox",
|
|
5085
5085
|
checked: W ? t : J,
|
|
5086
5086
|
"aria-checked": r ? "mixed" : P ? "true" : "false"
|
|
5087
|
-
},
|
|
5087
|
+
}, d ? { value: d } : {}), {
|
|
5088
5088
|
disabled: s,
|
|
5089
5089
|
required: v,
|
|
5090
5090
|
onBlur: p,
|
|
@@ -5137,11 +5137,11 @@ const Nn = (d) => {
|
|
|
5137
5137
|
label: u,
|
|
5138
5138
|
message: c,
|
|
5139
5139
|
required: l = !1,
|
|
5140
|
-
showLabel:
|
|
5140
|
+
showLabel: i = !0,
|
|
5141
5141
|
tooltipText: m = null,
|
|
5142
5142
|
validationMessage: g,
|
|
5143
5143
|
validationStatus: p,
|
|
5144
|
-
className:
|
|
5144
|
+
className: o
|
|
5145
5145
|
} = w, _ = R(w, [
|
|
5146
5146
|
"children",
|
|
5147
5147
|
"disabled",
|
|
@@ -5157,17 +5157,17 @@ const Nn = (d) => {
|
|
|
5157
5157
|
"validationStatus",
|
|
5158
5158
|
"className"
|
|
5159
5159
|
]);
|
|
5160
|
-
const b = r ? { width: `${r / 16}rem` } : null, E = "pds-checkbox-group", f = n ? ne.disabled : null,
|
|
5160
|
+
const b = r ? { width: `${r / 16}rem` } : null, E = "pds-checkbox-group", f = n ? ne.disabled : null, d = l && !n ? ne.required : null, h = p === "error" ? ne.error : null, C = p === "success" ? ne.success : null, $ = g || c;
|
|
5161
5161
|
return /* @__PURE__ */ e.createElement(
|
|
5162
5162
|
"div",
|
|
5163
5163
|
y({
|
|
5164
5164
|
className: [
|
|
5165
5165
|
E,
|
|
5166
5166
|
f,
|
|
5167
|
-
|
|
5167
|
+
d,
|
|
5168
5168
|
h,
|
|
5169
5169
|
C,
|
|
5170
|
-
|
|
5170
|
+
o != null ? o : ""
|
|
5171
5171
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5172
5172
|
style: r ? b : null
|
|
5173
5173
|
}, _),
|
|
@@ -5179,7 +5179,7 @@ const Nn = (d) => {
|
|
|
5179
5179
|
id: a,
|
|
5180
5180
|
isLegend: !0,
|
|
5181
5181
|
required: l,
|
|
5182
|
-
showLabel:
|
|
5182
|
+
showLabel: i,
|
|
5183
5183
|
tooltipText: m
|
|
5184
5184
|
}
|
|
5185
5185
|
), /* @__PURE__ */ e.createElement("div", { className: `${E}__options` }, t)),
|
|
@@ -5204,11 +5204,11 @@ const Nn = (d) => {
|
|
|
5204
5204
|
message: u,
|
|
5205
5205
|
onGroupBlur: c,
|
|
5206
5206
|
onValueChange: l,
|
|
5207
|
-
options:
|
|
5207
|
+
options: i,
|
|
5208
5208
|
required: m = !1,
|
|
5209
5209
|
showLabel: g = !0,
|
|
5210
5210
|
tooltipText: p = null,
|
|
5211
|
-
validationMessage:
|
|
5211
|
+
validationMessage: o,
|
|
5212
5212
|
validationStatus: _,
|
|
5213
5213
|
className: v
|
|
5214
5214
|
} = E, w = R(E, [
|
|
@@ -5228,31 +5228,31 @@ const Nn = (d) => {
|
|
|
5228
5228
|
"validationStatus",
|
|
5229
5229
|
"className"
|
|
5230
5230
|
]);
|
|
5231
|
-
const f = a ? { width: `${a / 16}rem` } : null,
|
|
5232
|
-
|
|
5231
|
+
const f = a ? { width: `${a / 16}rem` } : null, d = "pds-checkbox-group", h = t ? ne.disabled : null, C = m && !t ? ne.required : null, $ = _ === "error" ? ne.error : null, H = _ === "success" ? ne.success : null, M = o || u;
|
|
5232
|
+
i.map((D) => {
|
|
5233
5233
|
D.id || (D.id = D.value);
|
|
5234
5234
|
});
|
|
5235
5235
|
const L = [];
|
|
5236
|
-
|
|
5236
|
+
i.map((D) => {
|
|
5237
5237
|
D.checked === !0 && L.push(D.value);
|
|
5238
5238
|
});
|
|
5239
5239
|
const [k, z] = X(L), S = (D) => {
|
|
5240
5240
|
const { value: U } = D.target, O = k.includes(U) ? k.filter((Z) => Z !== U) : [...k, U];
|
|
5241
5241
|
z(O), l && l(O);
|
|
5242
5242
|
};
|
|
5243
|
-
|
|
5243
|
+
i.map((D) => {
|
|
5244
5244
|
k.includes(D.value) ? D.checked = !0 : D.checked = !1;
|
|
5245
5245
|
});
|
|
5246
5246
|
const B = () => {
|
|
5247
5247
|
c && setTimeout(() => {
|
|
5248
|
-
|
|
5248
|
+
i.some((D) => D.id === document.activeElement.id) || c(k);
|
|
5249
5249
|
}, 1500);
|
|
5250
5250
|
};
|
|
5251
5251
|
return /* @__PURE__ */ e.createElement(
|
|
5252
5252
|
"div",
|
|
5253
5253
|
y({
|
|
5254
5254
|
className: [
|
|
5255
|
-
|
|
5255
|
+
d,
|
|
5256
5256
|
h,
|
|
5257
5257
|
C,
|
|
5258
5258
|
$,
|
|
@@ -5261,7 +5261,7 @@ const Nn = (d) => {
|
|
|
5261
5261
|
].join(" ").trim().replace(/\s+/g, " "),
|
|
5262
5262
|
style: a ? f : null
|
|
5263
5263
|
}, w),
|
|
5264
|
-
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${
|
|
5264
|
+
/* @__PURE__ */ e.createElement("fieldset", y({ className: `${d}__fieldset`, id: s }, n), /* @__PURE__ */ e.createElement(
|
|
5265
5265
|
Ze,
|
|
5266
5266
|
{
|
|
5267
5267
|
disabled: t,
|
|
@@ -5272,7 +5272,7 @@ const Nn = (d) => {
|
|
|
5272
5272
|
showLabel: g,
|
|
5273
5273
|
tooltipText: p
|
|
5274
5274
|
}
|
|
5275
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5275
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${d}__options` }, i.map((D) => /* @__PURE__ */ e.createElement(
|
|
5276
5276
|
xt,
|
|
5277
5277
|
{
|
|
5278
5278
|
key: D.id,
|
|
@@ -5282,7 +5282,7 @@ const Nn = (d) => {
|
|
|
5282
5282
|
name: D.name,
|
|
5283
5283
|
value: D.value,
|
|
5284
5284
|
disabled: D.disabled || t,
|
|
5285
|
-
className: `${
|
|
5285
|
+
className: `${d}__checkbox`,
|
|
5286
5286
|
onChange: S,
|
|
5287
5287
|
onBlur: B
|
|
5288
5288
|
}
|
|
@@ -5292,7 +5292,7 @@ const Nn = (d) => {
|
|
|
5292
5292
|
{
|
|
5293
5293
|
id: s,
|
|
5294
5294
|
message: M,
|
|
5295
|
-
hasValidationMessage: !!
|
|
5295
|
+
hasValidationMessage: !!o,
|
|
5296
5296
|
validationMessageHasDecorators: !0,
|
|
5297
5297
|
validationStatus: _
|
|
5298
5298
|
}
|
|
@@ -5309,7 +5309,7 @@ const Nn = (d) => {
|
|
|
5309
5309
|
hasSearchShortcut: u = !1,
|
|
5310
5310
|
id: c,
|
|
5311
5311
|
inputWidth: l,
|
|
5312
|
-
isLoading:
|
|
5312
|
+
isLoading: i = !1,
|
|
5313
5313
|
label: m,
|
|
5314
5314
|
labelStrings: g = {
|
|
5315
5315
|
clearButton: "Clear input text",
|
|
@@ -5318,14 +5318,14 @@ const Nn = (d) => {
|
|
|
5318
5318
|
triggerButton: "Toggle dropdown menu"
|
|
5319
5319
|
},
|
|
5320
5320
|
loadingText: p = "Loading results...",
|
|
5321
|
-
message:
|
|
5321
|
+
message: o,
|
|
5322
5322
|
noResultsText: _ = "No results found",
|
|
5323
5323
|
onChange: v,
|
|
5324
5324
|
onBlur: w,
|
|
5325
5325
|
onClear: b,
|
|
5326
5326
|
onFocus: E,
|
|
5327
5327
|
onOptionSelect: f,
|
|
5328
|
-
options:
|
|
5328
|
+
options: d,
|
|
5329
5329
|
placeholder: h,
|
|
5330
5330
|
required: C = !1,
|
|
5331
5331
|
showLabel: $ = !0,
|
|
@@ -5367,8 +5367,8 @@ const Nn = (d) => {
|
|
|
5367
5367
|
const O = Qe(l), Z = "pds-combobox", W = n ? ne.disabled : null, Q = C && !n ? ne.required : null, J = k === "error" ? ne.error : null, te = k === "success" ? ne.success : null;
|
|
5368
5368
|
let P = null;
|
|
5369
5369
|
r && (P = "search"), k === "error" && (P = "error"), k === "success" && (P = "success");
|
|
5370
|
-
const F = L ||
|
|
5371
|
-
const le =
|
|
5370
|
+
const F = L || o, q = typeof M != "undefined", A = typeof t != "undefined", I = (Y) => {
|
|
5371
|
+
const le = d.find((oe) => oe.value === Y);
|
|
5372
5372
|
return le ? le.label : "";
|
|
5373
5373
|
}, [V, x] = X(!1), [T, K] = X(null), [ee, pe] = X(
|
|
5374
5374
|
A ? I(t) : ""
|
|
@@ -5422,7 +5422,7 @@ const Nn = (d) => {
|
|
|
5422
5422
|
}, ze);
|
|
5423
5423
|
});
|
|
5424
5424
|
ae(() => {
|
|
5425
|
-
const Y = G(
|
|
5425
|
+
const Y = G(d).filter(
|
|
5426
5426
|
(le) => {
|
|
5427
5427
|
var ge;
|
|
5428
5428
|
const oe = (ge = le.searchIndex) == null ? void 0 : ge.map(
|
|
@@ -5432,7 +5432,7 @@ const Nn = (d) => {
|
|
|
5432
5432
|
}
|
|
5433
5433
|
);
|
|
5434
5434
|
Ce(Y);
|
|
5435
|
-
}, [_e,
|
|
5435
|
+
}, [_e, i, d]);
|
|
5436
5436
|
const se = ie.map((Y, le) => {
|
|
5437
5437
|
const { label: oe, value: fe, optionDisplay: ge } = Y;
|
|
5438
5438
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5560,7 +5560,7 @@ const Nn = (d) => {
|
|
|
5560
5560
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
5561
5561
|
}
|
|
5562
5562
|
})),
|
|
5563
|
-
/* @__PURE__ */ e.createElement("div", { style: y({}, a2) },
|
|
5563
|
+
/* @__PURE__ */ e.createElement("div", { style: y({}, a2) }, i ? /* @__PURE__ */ e.createElement("div", { className: `${Z}__loading` }, p) : ie.length > 0 ? /* @__PURE__ */ e.createElement("ul", { role: "group", className: `${Z}__options` }, se) : /* @__PURE__ */ e.createElement("div", { className: `${Z}__no-results` }, _))
|
|
5564
5564
|
),
|
|
5565
5565
|
F && /* @__PURE__ */ e.createElement(
|
|
5566
5566
|
Oe,
|
|
@@ -5596,11 +5596,11 @@ const Nn = (d) => {
|
|
|
5596
5596
|
triggerButton: "Toggle dropdown menu"
|
|
5597
5597
|
},
|
|
5598
5598
|
loadingText: l = "Loading results...",
|
|
5599
|
-
noResultsText:
|
|
5599
|
+
noResultsText: i = "No results found",
|
|
5600
5600
|
onChange: m,
|
|
5601
5601
|
options: g,
|
|
5602
5602
|
placeholder: p = "Filter",
|
|
5603
|
-
required:
|
|
5603
|
+
required: o = !1,
|
|
5604
5604
|
showLabel: _ = !0,
|
|
5605
5605
|
className: v
|
|
5606
5606
|
} = E, w = R(E, [
|
|
@@ -5620,7 +5620,7 @@ const Nn = (d) => {
|
|
|
5620
5620
|
"showLabel",
|
|
5621
5621
|
"className"
|
|
5622
5622
|
]);
|
|
5623
|
-
const f = Qe(a),
|
|
5623
|
+
const f = Qe(a), d = "pds-combobox-multi", h = t ? ne.disabled : null, C = o && !t ? ne.required : null, [$, H] = X(""), [M, L] = X(s), [k, z] = X(
|
|
5624
5624
|
null
|
|
5625
5625
|
), S = $1(
|
|
5626
5626
|
() => It(g, M, $),
|
|
@@ -5704,13 +5704,13 @@ const Nn = (d) => {
|
|
|
5704
5704
|
})), {
|
|
5705
5705
|
disabled: t,
|
|
5706
5706
|
onKeyDown: A
|
|
5707
|
-
})), V = M.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${
|
|
5707
|
+
})), V = M.length === 2 ? /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-item` }, M.length - 1) : M.length === 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-item` }, M.length - 1)) : M.length > 3 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-layer` }), /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-item` }, M.length - 1)) : "";
|
|
5708
5708
|
return /* @__PURE__ */ e.createElement(
|
|
5709
5709
|
"div",
|
|
5710
5710
|
y({
|
|
5711
5711
|
className: N([
|
|
5712
5712
|
ne.base,
|
|
5713
|
-
|
|
5713
|
+
d,
|
|
5714
5714
|
h,
|
|
5715
5715
|
C,
|
|
5716
5716
|
v != null ? v : ""
|
|
@@ -5723,7 +5723,7 @@ const Nn = (d) => {
|
|
|
5723
5723
|
id: n,
|
|
5724
5724
|
label: u,
|
|
5725
5725
|
showLabel: _,
|
|
5726
|
-
required:
|
|
5726
|
+
required: o,
|
|
5727
5727
|
disabled: t
|
|
5728
5728
|
}
|
|
5729
5729
|
),
|
|
@@ -5731,29 +5731,29 @@ const Nn = (d) => {
|
|
|
5731
5731
|
"div",
|
|
5732
5732
|
{
|
|
5733
5733
|
"aria-disabled": t ? !0 : null,
|
|
5734
|
-
"aria-required":
|
|
5735
|
-
className: `${
|
|
5734
|
+
"aria-required": o ? !0 : null,
|
|
5735
|
+
className: `${d}__input-wrapper`,
|
|
5736
5736
|
tabIndex: 0,
|
|
5737
5737
|
onKeyDown: A
|
|
5738
5738
|
},
|
|
5739
|
-
M.length > 1 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5740
|
-
M.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5739
|
+
M.length > 1 && /* @__PURE__ */ e.createElement("div", { className: `${d}__counter` }, /* @__PURE__ */ e.createElement("span", { className: `${d}__counter-wrapper` }, V)),
|
|
5740
|
+
M.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `${d}__items-wrapper` }, M.map((x, T) => /* @__PURE__ */ e.createElement(
|
|
5741
5741
|
"span",
|
|
5742
5742
|
y({
|
|
5743
5743
|
className: `
|
|
5744
|
-
${
|
|
5745
|
-
${T === k ? `${
|
|
5744
|
+
${d}__selected-item
|
|
5745
|
+
${T === k ? `${d}__selected-item--marked-for-deletion` : ""}
|
|
5746
5746
|
`,
|
|
5747
5747
|
key: `selected-item-${T}`
|
|
5748
5748
|
}, D({
|
|
5749
5749
|
selectedItem: x,
|
|
5750
5750
|
index: T
|
|
5751
5751
|
})),
|
|
5752
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
5752
|
+
/* @__PURE__ */ e.createElement("span", { className: `${d}__selected-item-text` }, x.label),
|
|
5753
5753
|
/* @__PURE__ */ e.createElement(
|
|
5754
5754
|
"span",
|
|
5755
5755
|
{
|
|
5756
|
-
className: `${
|
|
5756
|
+
className: `${d}__selected-item-remove`,
|
|
5757
5757
|
onClick: (K) => {
|
|
5758
5758
|
K.stopPropagation(), O(x);
|
|
5759
5759
|
}
|
|
@@ -5765,24 +5765,24 @@ const Nn = (d) => {
|
|
|
5765
5765
|
"button",
|
|
5766
5766
|
y({
|
|
5767
5767
|
"aria-label": c.triggerButton,
|
|
5768
|
-
className: `${
|
|
5768
|
+
className: `${d}__trigger ${h}`,
|
|
5769
5769
|
disabled: t,
|
|
5770
5770
|
tabIndex: -1,
|
|
5771
5771
|
type: "button"
|
|
5772
5772
|
}, J()),
|
|
5773
|
-
/* @__PURE__ */ e.createElement(j, { iconName: "angleDown", className: `${
|
|
5773
|
+
/* @__PURE__ */ e.createElement(j, { iconName: "angleDown", className: `${d}__trigger-icon` })
|
|
5774
5774
|
)
|
|
5775
5775
|
),
|
|
5776
5776
|
/* @__PURE__ */ e.createElement(
|
|
5777
5777
|
"div",
|
|
5778
5778
|
y({
|
|
5779
|
-
className: `${
|
|
5779
|
+
className: `${d}__dropdown ${Z ? "" : "visually-hidden"}`
|
|
5780
5780
|
}, U()),
|
|
5781
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
5781
|
+
/* @__PURE__ */ e.createElement("div", { className: `${d}__dropdown-input-wrapper` }, /* @__PURE__ */ e.createElement(d2, { variant: "search" }), /* @__PURE__ */ e.createElement(
|
|
5782
5782
|
"input",
|
|
5783
5783
|
me(y({
|
|
5784
5784
|
placeholder: p,
|
|
5785
|
-
className: `${
|
|
5785
|
+
className: `${d}__dropdown-input`,
|
|
5786
5786
|
"aria-label": c.inputInstructions
|
|
5787
5787
|
}, I), {
|
|
5788
5788
|
onClick: (x) => {
|
|
@@ -5790,23 +5790,23 @@ const Nn = (d) => {
|
|
|
5790
5790
|
}
|
|
5791
5791
|
})
|
|
5792
5792
|
)),
|
|
5793
|
-
r ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5793
|
+
r ? /* @__PURE__ */ e.createElement("div", { className: `${d}__loading` }, l) : S.length > 0 ? /* @__PURE__ */ e.createElement("ul", y({ className: `${d}__dropdown-list` }, te()), S.map((x, T) => /* @__PURE__ */ e.createElement(
|
|
5794
5794
|
y2,
|
|
5795
5795
|
y({
|
|
5796
|
-
className: `${
|
|
5797
|
-
${W === T ? `${
|
|
5798
|
-
${Q === x ? `${
|
|
5799
|
-
${x.isAlreadySelected ? `${
|
|
5796
|
+
className: `${d}__dropdown-item
|
|
5797
|
+
${W === T ? `${d}__dropdown-item--highlighted` : ""}
|
|
5798
|
+
${Q === x ? `${d}__dropdown-item--selected` : ""}
|
|
5799
|
+
${x.isAlreadySelected ? `${d}__dropdown-item--active` : ""}`,
|
|
5800
5800
|
key: `${x.id}-${T}`
|
|
5801
5801
|
}, F({ item: x, index: T })),
|
|
5802
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
5802
|
+
/* @__PURE__ */ e.createElement("span", { className: `${d}__dropdown-item-label` }, x.label, x.isAlreadySelected && /* @__PURE__ */ e.createElement(
|
|
5803
5803
|
j,
|
|
5804
5804
|
{
|
|
5805
5805
|
iconName: "check",
|
|
5806
|
-
className: `${
|
|
5806
|
+
className: `${d}__dropdown-item-icon`
|
|
5807
5807
|
}
|
|
5808
5808
|
))
|
|
5809
|
-
))) : /* @__PURE__ */ e.createElement("div", { className: `${
|
|
5809
|
+
))) : /* @__PURE__ */ e.createElement("div", { className: `${d}__no-results` }, i)
|
|
5810
5810
|
)
|
|
5811
5811
|
);
|
|
5812
5812
|
}, Pn = je(
|
|
@@ -5823,18 +5823,18 @@ const Nn = (d) => {
|
|
|
5823
5823
|
chooseFile: "Choose file",
|
|
5824
5824
|
clearButton: "Clear selected file"
|
|
5825
5825
|
},
|
|
5826
|
-
message:
|
|
5826
|
+
message: i,
|
|
5827
5827
|
multiple: m = !1,
|
|
5828
5828
|
onClear: g,
|
|
5829
5829
|
onFileChange: p,
|
|
5830
|
-
required:
|
|
5830
|
+
required: o = !1,
|
|
5831
5831
|
showFullPath: _,
|
|
5832
5832
|
showLabel: v = !0,
|
|
5833
5833
|
tooltipText: w = null,
|
|
5834
5834
|
validationMessage: b,
|
|
5835
5835
|
validationStatus: E,
|
|
5836
5836
|
className: f
|
|
5837
|
-
} = $,
|
|
5837
|
+
} = $, d = R($, [
|
|
5838
5838
|
"accept",
|
|
5839
5839
|
"defaultValue",
|
|
5840
5840
|
"disabled",
|
|
@@ -5857,10 +5857,10 @@ const Nn = (d) => {
|
|
|
5857
5857
|
]);
|
|
5858
5858
|
const [H, M] = X(!1), [L, k] = X(
|
|
5859
5859
|
!!(E2 && n)
|
|
5860
|
-
), z = Qe(c), S = "pds-file-upload", B = s ? ne.disabled : null, D =
|
|
5860
|
+
), z = Qe(c), S = "pds-file-upload", B = s ? ne.disabled : null, D = o && !s ? ne.required : null, U = E === "error" ? ne.error : null, O = E === "success" ? ne.success : null, Z = L ? `${S}--safari-default` : null;
|
|
5861
5861
|
let W = null;
|
|
5862
5862
|
E === "error" && (W = "error"), E === "success" && (W = "success");
|
|
5863
|
-
const Q = b ||
|
|
5863
|
+
const Q = b || i, J = n ? [n] : null, te = n ? n.split("/").pop() : null, P = _ ? n : te, F = n ? new File(J, P) : null;
|
|
5864
5864
|
ae(() => {
|
|
5865
5865
|
const V = new DataTransfer();
|
|
5866
5866
|
if (F && V.items.add(F), V.files.length > 0) {
|
|
@@ -5903,7 +5903,7 @@ const Nn = (d) => {
|
|
|
5903
5903
|
f != null ? f : ""
|
|
5904
5904
|
]),
|
|
5905
5905
|
style: c ? z : null
|
|
5906
|
-
},
|
|
5906
|
+
}, d),
|
|
5907
5907
|
/* @__PURE__ */ e.createElement(
|
|
5908
5908
|
Ze,
|
|
5909
5909
|
{
|
|
@@ -5912,7 +5912,7 @@ const Nn = (d) => {
|
|
|
5912
5912
|
label: a,
|
|
5913
5913
|
showLabel: v,
|
|
5914
5914
|
tooltipText: w,
|
|
5915
|
-
required:
|
|
5915
|
+
required: o,
|
|
5916
5916
|
disabled: s
|
|
5917
5917
|
}
|
|
5918
5918
|
),
|
|
@@ -5934,7 +5934,7 @@ const Nn = (d) => {
|
|
|
5934
5934
|
accept: t || null,
|
|
5935
5935
|
disabled: s,
|
|
5936
5936
|
multiple: m,
|
|
5937
|
-
required:
|
|
5937
|
+
required: o,
|
|
5938
5938
|
onChange: A,
|
|
5939
5939
|
"aria-invalid": E === "error" ? !0 : null,
|
|
5940
5940
|
"aria-describedby": Q ? `${r}__message` : null
|
|
@@ -5968,11 +5968,11 @@ const Nn = (d) => {
|
|
|
5968
5968
|
"className"
|
|
5969
5969
|
]);
|
|
5970
5970
|
var _, v, w, b;
|
|
5971
|
-
const u = "pds-input-group", c = [t[0], t[1]], l = (_ = t[0].props.id) != null ? _ : null,
|
|
5971
|
+
const u = "pds-input-group", c = [t[0], t[1]], l = (_ = t[0].props.id) != null ? _ : null, i = (v = t[0].props.message) != null ? v : null, m = (w = t[0].props.validationMessage) != null ? w : null, g = (b = t[0].props.validationStatus) != null ? b : null, p = m || i, o = p ? `${u}--has-message` : null;
|
|
5972
5972
|
return /* @__PURE__ */ e.createElement(
|
|
5973
5973
|
"div",
|
|
5974
5974
|
y({
|
|
5975
|
-
className: N([u,
|
|
5975
|
+
className: N([u, o, n != null ? n : ""])
|
|
5976
5976
|
}, s),
|
|
5977
5977
|
/* @__PURE__ */ e.createElement("div", { className: `${u}__inner` }, c),
|
|
5978
5978
|
p && /* @__PURE__ */ e.createElement(
|
|
@@ -5987,8 +5987,8 @@ const Nn = (d) => {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
)
|
|
5989
5989
|
);
|
|
5990
|
-
}, Zn = (
|
|
5991
|
-
var h =
|
|
5990
|
+
}, Zn = (d) => {
|
|
5991
|
+
var h = d, {
|
|
5992
5992
|
defaultValue: t,
|
|
5993
5993
|
disabled: n = !1,
|
|
5994
5994
|
fieldsetProps: s,
|
|
@@ -5997,11 +5997,11 @@ const Nn = (d) => {
|
|
|
5997
5997
|
label: u,
|
|
5998
5998
|
message: c,
|
|
5999
5999
|
onBlur: l,
|
|
6000
|
-
onChange:
|
|
6000
|
+
onChange: i,
|
|
6001
6001
|
onValueChange: m,
|
|
6002
6002
|
options: g,
|
|
6003
6003
|
required: p = !1,
|
|
6004
|
-
showLabel:
|
|
6004
|
+
showLabel: o = !0,
|
|
6005
6005
|
tooltipText: _ = null,
|
|
6006
6006
|
validationMessage: v,
|
|
6007
6007
|
validationStatus: w,
|
|
@@ -6030,7 +6030,7 @@ const Nn = (d) => {
|
|
|
6030
6030
|
const C = "pds-radio-group", $ = n ? ne.disabled : null, H = p && !n ? ne.required : null, M = w === "error" ? ne.error : null, L = w === "success" ? ne.success : null, k = typeof b != "undefined", z = typeof t != "undefined", [S, B] = X(
|
|
6031
6031
|
z ? t : ""
|
|
6032
6032
|
), D = v || c, U = (Z) => {
|
|
6033
|
-
k || B(Z.target.value),
|
|
6033
|
+
k || B(Z.target.value), i && i(Z), m && m(Z.target.value);
|
|
6034
6034
|
}, O = (Z) => {
|
|
6035
6035
|
l && l(Z);
|
|
6036
6036
|
};
|
|
@@ -6055,7 +6055,7 @@ const Nn = (d) => {
|
|
|
6055
6055
|
id: a,
|
|
6056
6056
|
isLegend: !0,
|
|
6057
6057
|
required: p,
|
|
6058
|
-
showLabel:
|
|
6058
|
+
showLabel: o,
|
|
6059
6059
|
tooltipText: _
|
|
6060
6060
|
}
|
|
6061
6061
|
), /* @__PURE__ */ e.createElement("div", { className: `${C}__options` }, g.map((Z, W) => /* @__PURE__ */ e.createElement(
|
|
@@ -6117,7 +6117,7 @@ const Nn = (d) => {
|
|
|
6117
6117
|
/* @__PURE__ */ e.createElement(j, { iconName: "xmark", iconSize: "sm" })
|
|
6118
6118
|
)), qn = je(
|
|
6119
6119
|
(f, E) => {
|
|
6120
|
-
var
|
|
6120
|
+
var d = f, {
|
|
6121
6121
|
checked: t,
|
|
6122
6122
|
defaultChecked: n,
|
|
6123
6123
|
disabled: s = !1,
|
|
@@ -6126,15 +6126,15 @@ const Nn = (d) => {
|
|
|
6126
6126
|
inputWidth: u,
|
|
6127
6127
|
label: c,
|
|
6128
6128
|
switchPlacement: l = "right",
|
|
6129
|
-
message:
|
|
6129
|
+
message: i,
|
|
6130
6130
|
offLabel: m = "Off",
|
|
6131
6131
|
onChange: g,
|
|
6132
6132
|
onLabel: p = "On",
|
|
6133
|
-
required:
|
|
6133
|
+
required: o = !1,
|
|
6134
6134
|
showLabel: _ = !0,
|
|
6135
6135
|
showStatusLabel: v = !0,
|
|
6136
6136
|
className: w
|
|
6137
|
-
} =
|
|
6137
|
+
} = d, b = R(d, [
|
|
6138
6138
|
"checked",
|
|
6139
6139
|
"defaultChecked",
|
|
6140
6140
|
"disabled",
|
|
@@ -6152,7 +6152,7 @@ const Nn = (d) => {
|
|
|
6152
6152
|
"showStatusLabel",
|
|
6153
6153
|
"className"
|
|
6154
6154
|
]);
|
|
6155
|
-
const h = Qe(u), C = "pds-switch", $ = s ? ne.disabled : null, H =
|
|
6155
|
+
const h = Qe(u), C = "pds-switch", $ = s ? ne.disabled : null, H = o && !s ? ne.required : null, M = typeof t != "undefined", L = l == "below", k = l == "right", z = !M && n ? n : !1, [S, B] = X(z), D = t || S ? p : m, U = (te) => {
|
|
6156
6156
|
M || B(te.target.checked), g && g(te);
|
|
6157
6157
|
}, O = /* @__PURE__ */ e.createElement("div", { className: "pds-switch__content" }, /* @__PURE__ */ e.createElement("label", { className: "pds-switch__input" }, /* @__PURE__ */ e.createElement(
|
|
6158
6158
|
"input",
|
|
@@ -6165,9 +6165,9 @@ const Nn = (d) => {
|
|
|
6165
6165
|
className: "visually-hidden",
|
|
6166
6166
|
onChange: U,
|
|
6167
6167
|
disabled: s,
|
|
6168
|
-
required:
|
|
6168
|
+
required: o,
|
|
6169
6169
|
checked: t !== void 0 ? t : S,
|
|
6170
|
-
"aria-describedby":
|
|
6170
|
+
"aria-describedby": i ? `${a}__message` : null
|
|
6171
6171
|
}, r)
|
|
6172
6172
|
), !v && /* @__PURE__ */ e.createElement(At, { toggleStatusLabel: D }), /* @__PURE__ */ e.createElement("span", { className: "pds-switch__thumb", "aria-hidden": "true" })), v && /* @__PURE__ */ e.createElement(St, { toggleStatusLabel: D, id: a })), Z = /* @__PURE__ */ e.createElement(
|
|
6173
6173
|
Ze,
|
|
@@ -6175,25 +6175,25 @@ const Nn = (d) => {
|
|
|
6175
6175
|
id: a,
|
|
6176
6176
|
label: c,
|
|
6177
6177
|
showLabel: _,
|
|
6178
|
-
required:
|
|
6178
|
+
required: o,
|
|
6179
6179
|
disabled: s,
|
|
6180
6180
|
className: N([
|
|
6181
6181
|
"pds-input-label--disable-click",
|
|
6182
|
-
|
|
6182
|
+
i ? "" : "pds-input-label--switch-top-message"
|
|
6183
6183
|
])
|
|
6184
6184
|
}
|
|
6185
|
-
), W =
|
|
6185
|
+
), W = i && /* @__PURE__ */ e.createElement(
|
|
6186
6186
|
Oe,
|
|
6187
6187
|
{
|
|
6188
6188
|
id: a,
|
|
6189
|
-
message:
|
|
6189
|
+
message: i,
|
|
6190
6190
|
hasValidationMessage: !1,
|
|
6191
6191
|
validationStatus: void 0,
|
|
6192
6192
|
className: "pds-input-message--switch"
|
|
6193
6193
|
}
|
|
6194
6194
|
);
|
|
6195
6195
|
let Q, J;
|
|
6196
|
-
return L ? Q = /* @__PURE__ */ e.createElement(e.Fragment, null, Z, W, O) : k && (J = "pds-switch--placement-right", Q =
|
|
6196
|
+
return L ? Q = /* @__PURE__ */ e.createElement(e.Fragment, null, Z, W, O) : k && (J = "pds-switch--placement-right", Q = i ? /* @__PURE__ */ e.createElement(e.Fragment, null, Z, /* @__PURE__ */ e.createElement("div", { className: "pds-switch__toggle-message-container" }, W, /* @__PURE__ */ e.createElement("div", null, O))) : /* @__PURE__ */ e.createElement(
|
|
6197
6197
|
"div",
|
|
6198
6198
|
{
|
|
6199
6199
|
className: N([
|
|
@@ -6230,11 +6230,11 @@ const Nn = (d) => {
|
|
|
6230
6230
|
isResizable: u = !0,
|
|
6231
6231
|
label: c,
|
|
6232
6232
|
message: l,
|
|
6233
|
-
onBlur:
|
|
6233
|
+
onBlur: i,
|
|
6234
6234
|
onChange: m,
|
|
6235
6235
|
onFocus: g,
|
|
6236
6236
|
placeholder: p,
|
|
6237
|
-
readonly:
|
|
6237
|
+
readonly: o = !1,
|
|
6238
6238
|
required: _ = !1,
|
|
6239
6239
|
rows: v = 5,
|
|
6240
6240
|
showLabel: w,
|
|
@@ -6248,7 +6248,7 @@ const Nn = (d) => {
|
|
|
6248
6248
|
visibilityToggleHide: "Hide input value",
|
|
6249
6249
|
visibilityToggleShow: "Show input value"
|
|
6250
6250
|
},
|
|
6251
|
-
validationMessage:
|
|
6251
|
+
validationMessage: d,
|
|
6252
6252
|
validationStatus: h,
|
|
6253
6253
|
value: C,
|
|
6254
6254
|
className: $
|
|
@@ -6277,12 +6277,12 @@ const Nn = (d) => {
|
|
|
6277
6277
|
"value",
|
|
6278
6278
|
"className"
|
|
6279
6279
|
]);
|
|
6280
|
-
const z = Qe(r), S = "pds-textarea", B = u ? "pds-is-resizable" : null, D = s ? ne.disabled : null, U = _ && !s ? ne.required : null, O = h === "error" ? ne.error : null, Z = h === "success" ? ne.success : null, W =
|
|
6280
|
+
const z = Qe(r), S = "pds-textarea", B = u ? "pds-is-resizable" : null, D = s ? ne.disabled : null, U = _ && !s ? ne.required : null, O = h === "error" ? ne.error : null, Z = h === "success" ? ne.success : null, W = o ? ne.readonly : null, Q = d || l, J = C != null && m !== void 0, te = typeof n != "undefined", [P, F] = X(
|
|
6281
6281
|
te ? n : ""
|
|
6282
6282
|
), q = C || P, A = (V) => {
|
|
6283
6283
|
J || F(V.target.value), m && m(V);
|
|
6284
6284
|
}, I = (V) => {
|
|
6285
|
-
|
|
6285
|
+
i && i(V);
|
|
6286
6286
|
};
|
|
6287
6287
|
return /* @__PURE__ */ e.createElement(
|
|
6288
6288
|
"div",
|
|
@@ -6328,7 +6328,7 @@ const Nn = (d) => {
|
|
|
6328
6328
|
name: a,
|
|
6329
6329
|
placeholder: p,
|
|
6330
6330
|
required: _,
|
|
6331
|
-
readOnly:
|
|
6331
|
+
readOnly: o,
|
|
6332
6332
|
disabled: s,
|
|
6333
6333
|
value: J ? C : P,
|
|
6334
6334
|
rows: v,
|
|
@@ -6344,7 +6344,7 @@ const Nn = (d) => {
|
|
|
6344
6344
|
{
|
|
6345
6345
|
id: a,
|
|
6346
6346
|
message: Q,
|
|
6347
|
-
hasValidationMessage: !!
|
|
6347
|
+
hasValidationMessage: !!d,
|
|
6348
6348
|
validationMessageHasDecorators: !0,
|
|
6349
6349
|
validationStatus: h
|
|
6350
6350
|
}
|
|
@@ -6362,18 +6362,18 @@ const Nn = (d) => {
|
|
|
6362
6362
|
hasSearchShortcut: u = !1,
|
|
6363
6363
|
hasUrlPrefix: c = !1,
|
|
6364
6364
|
id: l,
|
|
6365
|
-
inputProps:
|
|
6365
|
+
inputProps: i,
|
|
6366
6366
|
inputWidth: m,
|
|
6367
6367
|
label: g,
|
|
6368
6368
|
message: p,
|
|
6369
|
-
onBlur:
|
|
6369
|
+
onBlur: o,
|
|
6370
6370
|
onChange: _,
|
|
6371
6371
|
onClear: v,
|
|
6372
6372
|
onFocus: w,
|
|
6373
6373
|
placeholder: b,
|
|
6374
6374
|
readonly: E = !1,
|
|
6375
6375
|
required: f = !1,
|
|
6376
|
-
searchIcon:
|
|
6376
|
+
searchIcon: d = "search",
|
|
6377
6377
|
showLabel: h = !0,
|
|
6378
6378
|
showVisibilityToggle: C = !1,
|
|
6379
6379
|
tooltipText: $ = null,
|
|
@@ -6423,7 +6423,7 @@ const Nn = (d) => {
|
|
|
6423
6423
|
]);
|
|
6424
6424
|
const Z = Qe(m), W = "pds-text-input", Q = a ? ne.disabled : null, J = f && !a ? ne.required : null, te = k === "error" ? ne.error : null, P = k === "success" ? ne.success : null, F = E ? ne.readonly : null, q = c && M === "url" ? `${W}--has-url-prefix` : null;
|
|
6425
6425
|
let A = null;
|
|
6426
|
-
M === "search" && (A = "search"), M === "search" &&
|
|
6426
|
+
M === "search" && (A = "search"), M === "search" && d === "filter" && (A = "filter"), k === "error" && (A = "error"), k === "success" && (A = "success");
|
|
6427
6427
|
const I = L || p, V = typeof z != "undefined", x = typeof s != "undefined", [T, K] = X(
|
|
6428
6428
|
x ? s : ""
|
|
6429
6429
|
), ee = z || T, pe = (de) => {
|
|
@@ -6433,8 +6433,8 @@ const Nn = (d) => {
|
|
|
6433
6433
|
value: $e
|
|
6434
6434
|
})
|
|
6435
6435
|
});
|
|
6436
|
-
|
|
6437
|
-
} else
|
|
6436
|
+
o && o(we);
|
|
6437
|
+
} else o && o(de);
|
|
6438
6438
|
}, ie = (de) => {
|
|
6439
6439
|
if (c && M === "url") {
|
|
6440
6440
|
const $e = i1(de.target.value), we = me(y({}, de), {
|
|
@@ -6509,7 +6509,7 @@ const Nn = (d) => {
|
|
|
6509
6509
|
onFocus: w,
|
|
6510
6510
|
"aria-invalid": k === "error" ? !0 : null,
|
|
6511
6511
|
"aria-describedby": I ? `${l}__message` : null
|
|
6512
|
-
},
|
|
6512
|
+
}, i)
|
|
6513
6513
|
),
|
|
6514
6514
|
r && ee && /* @__PURE__ */ e.createElement(
|
|
6515
6515
|
e1,
|
|
@@ -6574,18 +6574,18 @@ const Nn = (d) => {
|
|
|
6574
6574
|
"url",
|
|
6575
6575
|
"className"
|
|
6576
6576
|
]);
|
|
6577
|
-
const
|
|
6577
|
+
const i = "pds-link-new-window", m = n ? `${i}--${n}` : null;
|
|
6578
6578
|
return /* @__PURE__ */ e.createElement(
|
|
6579
6579
|
"a",
|
|
6580
6580
|
y({
|
|
6581
6581
|
href: a,
|
|
6582
6582
|
rel: "noopener noreferrer",
|
|
6583
6583
|
target: "_blank",
|
|
6584
|
-
className: N([
|
|
6584
|
+
className: N([i, m, r != null ? r : ""])
|
|
6585
6585
|
}, u),
|
|
6586
6586
|
t,
|
|
6587
6587
|
/* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, `(${s})`),
|
|
6588
|
-
/* @__PURE__ */ e.createElement(j, { iconName: "externalLink", className: `${
|
|
6588
|
+
/* @__PURE__ */ e.createElement(j, { iconName: "externalLink", className: `${i}__icon` })
|
|
6589
6589
|
);
|
|
6590
6590
|
}, Gn = (g) => {
|
|
6591
6591
|
var p = g, {
|
|
@@ -6598,7 +6598,7 @@ const Nn = (d) => {
|
|
|
6598
6598
|
},
|
|
6599
6599
|
size: c = "md",
|
|
6600
6600
|
title: l,
|
|
6601
|
-
className:
|
|
6601
|
+
className: i
|
|
6602
6602
|
} = p, m = R(p, [
|
|
6603
6603
|
"ariaLabel",
|
|
6604
6604
|
"children",
|
|
@@ -6610,7 +6610,7 @@ const Nn = (d) => {
|
|
|
6610
6610
|
"title",
|
|
6611
6611
|
"className"
|
|
6612
6612
|
]);
|
|
6613
|
-
const
|
|
6613
|
+
const o = "pds-modal", _ = c !== "md" ? `${o}--${c}` : null, [v, w] = X(r);
|
|
6614
6614
|
ae(() => {
|
|
6615
6615
|
w(r);
|
|
6616
6616
|
}, [r]), ae(() => {
|
|
@@ -6619,9 +6619,9 @@ const Nn = (d) => {
|
|
|
6619
6619
|
const { refs: b, context: E, floatingStyles: f } = Ae({
|
|
6620
6620
|
open: v,
|
|
6621
6621
|
onOpenChange: w
|
|
6622
|
-
}),
|
|
6622
|
+
}), d = Xe(E), h = Te(E, {
|
|
6623
6623
|
outsidePressEvent: "mousedown"
|
|
6624
|
-
}), C = De(E), { getFloatingProps: $ } = Re([
|
|
6624
|
+
}), C = De(E), { getFloatingProps: $ } = Re([d, h, C]), { isMounted: H, styles: M } = Ye(E, {
|
|
6625
6625
|
duration: {
|
|
6626
6626
|
open: 300,
|
|
6627
6627
|
close: 300
|
|
@@ -6656,13 +6656,13 @@ const Nn = (d) => {
|
|
|
6656
6656
|
ref: b.setFloating,
|
|
6657
6657
|
"aria-label": t || l
|
|
6658
6658
|
}, $()), {
|
|
6659
|
-
className: [
|
|
6659
|
+
className: [o, _, i].join(" ").trim().replace(/\s+/g, " "),
|
|
6660
6660
|
style: me(y(y({}, f), M), {
|
|
6661
6661
|
position: "relative",
|
|
6662
6662
|
top: "5%"
|
|
6663
6663
|
})
|
|
6664
6664
|
}), m),
|
|
6665
|
-
a && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
6665
|
+
a && /* @__PURE__ */ e.createElement("div", { className: `${o}__close-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
6666
6666
|
V1,
|
|
6667
6667
|
{
|
|
6668
6668
|
ariaLabel: s,
|
|
@@ -6670,8 +6670,8 @@ const Nn = (d) => {
|
|
|
6670
6670
|
iconSize: "xl"
|
|
6671
6671
|
}
|
|
6672
6672
|
)),
|
|
6673
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
6674
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
6673
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__title` }, l),
|
|
6674
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, n)
|
|
6675
6675
|
))
|
|
6676
6676
|
));
|
|
6677
6677
|
}, jn = (r) => {
|
|
@@ -6684,7 +6684,7 @@ const Nn = (d) => {
|
|
|
6684
6684
|
"crumbs",
|
|
6685
6685
|
"className"
|
|
6686
6686
|
]);
|
|
6687
|
-
const c = "pds-breadcrumb", l = n.length,
|
|
6687
|
+
const c = "pds-breadcrumb", l = n.length, i = n.map((m, g) => {
|
|
6688
6688
|
if (g < l - 1)
|
|
6689
6689
|
return /* @__PURE__ */ e.createElement("li", { key: g, className: `${c}__crumb` }, m);
|
|
6690
6690
|
{
|
|
@@ -6707,7 +6707,7 @@ const Nn = (d) => {
|
|
|
6707
6707
|
"aria-label": t,
|
|
6708
6708
|
className: N([c, s != null ? s : ""])
|
|
6709
6709
|
}, a),
|
|
6710
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${c}__crumbs` },
|
|
6710
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${c}__crumbs` }, i)
|
|
6711
6711
|
);
|
|
6712
6712
|
}, R1 = (t) => typeof t.linkContent != "string" ? !!(t.isActive || t.linkContent.props.className && t.linkContent.props.className.includes("pds-isActive")) : !1, Ne = (t) => {
|
|
6713
6713
|
if (R1(t))
|
|
@@ -6755,16 +6755,16 @@ const Nn = (d) => {
|
|
|
6755
6755
|
"className"
|
|
6756
6756
|
]);
|
|
6757
6757
|
let l = !1;
|
|
6758
|
-
const
|
|
6759
|
-
|
|
6760
|
-
const m = ce(null), g = "pds-button-nav", p = l ? `${g}--isMobile` : null,
|
|
6758
|
+
const i = be(He);
|
|
6759
|
+
i && (l = i.isMobile);
|
|
6760
|
+
const m = ce(null), g = "pds-button-nav", p = l ? `${g}--isMobile` : null, o = s !== "md" ? `${g}--${s}` : null;
|
|
6761
6761
|
ae(() => {
|
|
6762
6762
|
const E = (f) => {
|
|
6763
6763
|
if (l) return;
|
|
6764
|
-
const
|
|
6765
|
-
if (!
|
|
6764
|
+
const d = m.current;
|
|
6765
|
+
if (!d) return;
|
|
6766
6766
|
const h = Array.from(
|
|
6767
|
-
|
|
6767
|
+
d.querySelectorAll('a, button, [tabindex]:not([tabindex="-1"])')
|
|
6768
6768
|
);
|
|
6769
6769
|
if (h.length === 0) return;
|
|
6770
6770
|
const C = document.activeElement, $ = h.indexOf(C);
|
|
@@ -6785,13 +6785,13 @@ const Nn = (d) => {
|
|
|
6785
6785
|
};
|
|
6786
6786
|
}, [l]);
|
|
6787
6787
|
const _ = ({ isActive: E, linkContent: f }) => {
|
|
6788
|
-
const
|
|
6788
|
+
const d = `${g}__item`;
|
|
6789
6789
|
return /* @__PURE__ */ e.createElement(
|
|
6790
6790
|
"li",
|
|
6791
6791
|
{
|
|
6792
6792
|
className: N([
|
|
6793
|
-
|
|
6794
|
-
E ? `${
|
|
6793
|
+
d,
|
|
6794
|
+
E ? `${d}--active` : null
|
|
6795
6795
|
])
|
|
6796
6796
|
},
|
|
6797
6797
|
f
|
|
@@ -6828,7 +6828,7 @@ const Nn = (d) => {
|
|
|
6828
6828
|
"aria-label": t,
|
|
6829
6829
|
className: N([
|
|
6830
6830
|
g,
|
|
6831
|
-
|
|
6831
|
+
o,
|
|
6832
6832
|
p,
|
|
6833
6833
|
a != null ? a : ""
|
|
6834
6834
|
])
|
|
@@ -6872,8 +6872,8 @@ const Nn = (d) => {
|
|
|
6872
6872
|
}, a),
|
|
6873
6873
|
n
|
|
6874
6874
|
);
|
|
6875
|
-
}, S2 = b1(null), Xn = (
|
|
6876
|
-
var _ =
|
|
6875
|
+
}, S2 = b1(null), Xn = (o) => {
|
|
6876
|
+
var _ = o, {
|
|
6877
6877
|
children: t,
|
|
6878
6878
|
hasSidebarToggle: n = !0,
|
|
6879
6879
|
isAdmin: s,
|
|
@@ -6882,7 +6882,7 @@ const Nn = (d) => {
|
|
|
6882
6882
|
sidebarExpandedWidth: u = 12,
|
|
6883
6883
|
sidebarToggleLabel: c = "Toggle sidebar",
|
|
6884
6884
|
skiplinkText: l = "Skip to main content",
|
|
6885
|
-
isSidebarExpanded:
|
|
6885
|
+
isSidebarExpanded: i,
|
|
6886
6886
|
setIsSidebarExpanded: m = () => {
|
|
6887
6887
|
},
|
|
6888
6888
|
className: g
|
|
@@ -6899,10 +6899,10 @@ const Nn = (d) => {
|
|
|
6899
6899
|
"setIsSidebarExpanded",
|
|
6900
6900
|
"className"
|
|
6901
6901
|
]);
|
|
6902
|
-
const { isMobile: v, windowWidth: w } = be(He), [b, E] = X(() =>
|
|
6902
|
+
const { isMobile: v, windowWidth: w } = be(He), [b, E] = X(() => i !== void 0 ? i : w > 1440), f = ce(), [d] = x2(f), h = d.width;
|
|
6903
6903
|
ae(() => {
|
|
6904
|
-
|
|
6905
|
-
}, [
|
|
6904
|
+
i !== void 0 && E(i);
|
|
6905
|
+
}, [i]), ae(() => {
|
|
6906
6906
|
m(b);
|
|
6907
6907
|
}, [b, m]);
|
|
6908
6908
|
const C = {
|
|
@@ -6959,13 +6959,13 @@ const Nn = (d) => {
|
|
|
6959
6959
|
linkContent: r,
|
|
6960
6960
|
links: u
|
|
6961
6961
|
}) => {
|
|
6962
|
-
const c = "pds-dashboard-nav", l = `${c}__item`,
|
|
6962
|
+
const c = "pds-dashboard-nav", l = `${c}__item`, i = `${c}__menu`, m = /* @__PURE__ */ e.createElement("div", { className: `${l}-wrapper` }, Y2(c, r, u, t)), g = (L, k) => /* @__PURE__ */ e.createElement(
|
|
6963
6963
|
"ul",
|
|
6964
6964
|
{
|
|
6965
6965
|
className: N([
|
|
6966
|
-
|
|
6967
|
-
`${
|
|
6968
|
-
n ? `${
|
|
6966
|
+
i,
|
|
6967
|
+
`${i}--${k}`,
|
|
6968
|
+
n ? `${i}--expanded` : null
|
|
6969
6969
|
])
|
|
6970
6970
|
},
|
|
6971
6971
|
L.map((z, S) => /* @__PURE__ */ e.createElement(
|
|
@@ -6980,20 +6980,20 @@ const Nn = (d) => {
|
|
|
6980
6980
|
},
|
|
6981
6981
|
z.linkContent
|
|
6982
6982
|
))
|
|
6983
|
-
), [p,
|
|
6983
|
+
), [p, o] = X(!1), { refs: _, floatingStyles: v, context: w } = Ae({
|
|
6984
6984
|
placement: "right-start",
|
|
6985
6985
|
open: p,
|
|
6986
|
-
onOpenChange:
|
|
6986
|
+
onOpenChange: o,
|
|
6987
6987
|
middleware: [k2(12), z2(), N2()],
|
|
6988
6988
|
whileElementsMounted: Pe
|
|
6989
6989
|
}), b = $2(w, {
|
|
6990
6990
|
move: !1,
|
|
6991
6991
|
handleClose: M1()
|
|
6992
|
-
}), E = y1(w), f = Te(w),
|
|
6992
|
+
}), E = y1(w), f = Te(w), d = De(w, { role: "menu" }), { getReferenceProps: h, getFloatingProps: C } = Re([
|
|
6993
6993
|
b,
|
|
6994
6994
|
E,
|
|
6995
6995
|
f,
|
|
6996
|
-
|
|
6996
|
+
d
|
|
6997
6997
|
]), $ = (L) => {
|
|
6998
6998
|
var B;
|
|
6999
6999
|
const k = L.currentTarget, z = (B = k.parentElement) == null ? void 0 : B.nextElementSibling;
|
|
@@ -7022,7 +7022,7 @@ const Nn = (d) => {
|
|
|
7022
7022
|
opacity: "1",
|
|
7023
7023
|
display: "flex",
|
|
7024
7024
|
marginBlockStart: `${r2}rem`
|
|
7025
|
-
}), L.classList.add(`${
|
|
7025
|
+
}), L.classList.add(`${i}--expanded`);
|
|
7026
7026
|
};
|
|
7027
7027
|
}, M = (L) => {
|
|
7028
7028
|
const k = `${L.scrollHeight}px`, z = L.animate(
|
|
@@ -7040,7 +7040,7 @@ const Nn = (d) => {
|
|
|
7040
7040
|
}
|
|
7041
7041
|
);
|
|
7042
7042
|
z.onfinish = () => {
|
|
7043
|
-
L.classList.remove(`${
|
|
7043
|
+
L.classList.remove(`${i}--expanded`), Object.assign(L.style, {
|
|
7044
7044
|
opacity: "0",
|
|
7045
7045
|
height: "",
|
|
7046
7046
|
// Clean height from inline style
|
|
@@ -7114,7 +7114,7 @@ const Nn = (d) => {
|
|
|
7114
7114
|
"selectTextFallback",
|
|
7115
7115
|
"className"
|
|
7116
7116
|
]);
|
|
7117
|
-
const l = "pds-dropdown-menu", [
|
|
7117
|
+
const l = "pds-dropdown-menu", [i, m] = X(!1), [g, p] = X(null), o = n1(n), _ = o ? o.props.children : s, v = /* @__PURE__ */ e.createElement(
|
|
7118
7118
|
j,
|
|
7119
7119
|
{
|
|
7120
7120
|
iconName: "check",
|
|
@@ -7128,13 +7128,13 @@ const Nn = (d) => {
|
|
|
7128
7128
|
U.target.nodeName === "A" && m(!1);
|
|
7129
7129
|
};
|
|
7130
7130
|
ae(() => {
|
|
7131
|
-
if (
|
|
7131
|
+
if (i) {
|
|
7132
7132
|
const U = document.querySelector(".pds-dropdown-menu__dropdown");
|
|
7133
7133
|
return U.addEventListener("click", b), () => {
|
|
7134
7134
|
U.removeEventListener("click", b);
|
|
7135
7135
|
};
|
|
7136
7136
|
}
|
|
7137
|
-
}, [
|
|
7137
|
+
}, [i]);
|
|
7138
7138
|
const E = ({
|
|
7139
7139
|
item: U,
|
|
7140
7140
|
level: O
|
|
@@ -7163,9 +7163,9 @@ const Nn = (d) => {
|
|
|
7163
7163
|
})) : O.push(E({ item: W, level: "second-level" }));
|
|
7164
7164
|
})) : O.push(E({ item: Z, level: "top-level" }));
|
|
7165
7165
|
}), O;
|
|
7166
|
-
}, { refs:
|
|
7166
|
+
}, { refs: d, context: h } = Ae({
|
|
7167
7167
|
placement: "bottom-start",
|
|
7168
|
-
open:
|
|
7168
|
+
open: i,
|
|
7169
7169
|
onOpenChange: m,
|
|
7170
7170
|
whileElementsMounted: Pe
|
|
7171
7171
|
}), C = ce([]), $ = o2(h, {
|
|
@@ -7196,7 +7196,7 @@ const Nn = (d) => {
|
|
|
7196
7196
|
"button",
|
|
7197
7197
|
y({
|
|
7198
7198
|
className: `${l}__trigger`,
|
|
7199
|
-
ref:
|
|
7199
|
+
ref: d.setReference,
|
|
7200
7200
|
type: "button"
|
|
7201
7201
|
}, k()),
|
|
7202
7202
|
/* @__PURE__ */ e.createElement("span", { className: `${l}__active-label` }, _),
|
|
@@ -7212,7 +7212,7 @@ const Nn = (d) => {
|
|
|
7212
7212
|
"ul",
|
|
7213
7213
|
y({
|
|
7214
7214
|
className: `${l}__dropdown ${l}__menu ${l}__menu--top-level`,
|
|
7215
|
-
ref:
|
|
7215
|
+
ref: d.setFloating,
|
|
7216
7216
|
style: me(y({}, D), {
|
|
7217
7217
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
7218
7218
|
})
|
|
@@ -7534,7 +7534,7 @@ const Nn = (d) => {
|
|
|
7534
7534
|
"subBrand",
|
|
7535
7535
|
"className"
|
|
7536
7536
|
]);
|
|
7537
|
-
const
|
|
7537
|
+
const i = "pds-pantheon-logo", m = n && n !== "full" ? `${i}--${n}` : null, g = t && t !== "default" ? `${i}--${t}` : null;
|
|
7538
7538
|
let p;
|
|
7539
7539
|
switch (n) {
|
|
7540
7540
|
case "full":
|
|
@@ -7552,15 +7552,15 @@ const Nn = (d) => {
|
|
|
7552
7552
|
case "sub-brand-small":
|
|
7553
7553
|
p = Z2;
|
|
7554
7554
|
}
|
|
7555
|
-
const
|
|
7555
|
+
const o = e.isValidElement(s) && typeof s.props.children == "string" ? s.props.children : "", _ = e.isValidElement(s) ? Se(s, {
|
|
7556
7556
|
children: p,
|
|
7557
|
-
"aria-label":
|
|
7557
|
+
"aria-label": o || null
|
|
7558
7558
|
}) : s;
|
|
7559
7559
|
return /* @__PURE__ */ e.createElement(
|
|
7560
7560
|
"div",
|
|
7561
7561
|
y({
|
|
7562
7562
|
className: N([
|
|
7563
|
-
|
|
7563
|
+
i,
|
|
7564
7564
|
m,
|
|
7565
7565
|
g,
|
|
7566
7566
|
r != null ? r : ""
|
|
@@ -7586,16 +7586,16 @@ const Nn = (d) => {
|
|
|
7586
7586
|
"mobileMenuSelectTextFallback",
|
|
7587
7587
|
"className"
|
|
7588
7588
|
]);
|
|
7589
|
-
let
|
|
7589
|
+
let i = !1;
|
|
7590
7590
|
const m = be(He);
|
|
7591
|
-
m && (
|
|
7591
|
+
m && (i = m.isMobile);
|
|
7592
7592
|
const g = be(S2);
|
|
7593
|
-
let p = !0,
|
|
7594
|
-
g && (p = g.isSidebarExpanded,
|
|
7595
|
-
const _ = "pds-dashboard-nav", v = p ? `${_}--expanded` : `${_}--collapsed`, w = /* @__PURE__ */ e.createElement(e.Fragment, null, s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${_}__menu ${_}__menu--top-level` }, s.map((f,
|
|
7593
|
+
let p = !0, o = null;
|
|
7594
|
+
g && (p = g.isSidebarExpanded, o = g.logoLinkContent);
|
|
7595
|
+
const _ = "pds-dashboard-nav", v = p ? `${_}--expanded` : `${_}--collapsed`, w = /* @__PURE__ */ e.createElement(e.Fragment, null, s.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: `${_}__menu ${_}__menu--top-level` }, s.map((f, d) => /* @__PURE__ */ e.createElement(
|
|
7596
7596
|
Pt,
|
|
7597
7597
|
{
|
|
7598
|
-
key:
|
|
7598
|
+
key: d,
|
|
7599
7599
|
icon: f.icon,
|
|
7600
7600
|
isActive: Ne(f),
|
|
7601
7601
|
isSidebarExpanded: p,
|
|
@@ -7623,15 +7623,15 @@ const Nn = (d) => {
|
|
|
7623
7623
|
"aria-label": t,
|
|
7624
7624
|
className: N([_, v, r])
|
|
7625
7625
|
}, u),
|
|
7626
|
-
!
|
|
7626
|
+
!i && /* @__PURE__ */ e.createElement(
|
|
7627
7627
|
O1,
|
|
7628
7628
|
{
|
|
7629
7629
|
className: `${_}__logo`,
|
|
7630
7630
|
displayType: p ? "full" : "icon",
|
|
7631
|
-
linkContent:
|
|
7631
|
+
linkContent: o
|
|
7632
7632
|
}
|
|
7633
7633
|
),
|
|
7634
|
-
|
|
7634
|
+
i ? E : w
|
|
7635
7635
|
);
|
|
7636
7636
|
}, qt = {
|
|
7637
7637
|
basic: "Basic",
|
|
@@ -7658,7 +7658,7 @@ const Nn = (d) => {
|
|
|
7658
7658
|
"option",
|
|
7659
7659
|
"className"
|
|
7660
7660
|
]);
|
|
7661
|
-
const u = "pds-dashboard-search", c = t.type ? F1[t.type] : "bolt", l = ce(), [
|
|
7661
|
+
const u = "pds-dashboard-search", c = t.type ? F1[t.type] : "bolt", l = ce(), [i] = x2(l), m = i.width / 16 - 7.5;
|
|
7662
7662
|
return /* @__PURE__ */ e.createElement(
|
|
7663
7663
|
"div",
|
|
7664
7664
|
y({
|
|
@@ -7716,11 +7716,11 @@ const Nn = (d) => {
|
|
|
7716
7716
|
loadingText: u = "Loading results...",
|
|
7717
7717
|
noResultsText: c = "No results found",
|
|
7718
7718
|
onFocus: l,
|
|
7719
|
-
onOptionSelect:
|
|
7719
|
+
onOptionSelect: i,
|
|
7720
7720
|
placeholder: m = "Search sites",
|
|
7721
7721
|
siteList: g,
|
|
7722
7722
|
horizontalOffset: p = 0,
|
|
7723
|
-
className:
|
|
7723
|
+
className: o
|
|
7724
7724
|
} = w, _ = R(w, [
|
|
7725
7725
|
"disabled",
|
|
7726
7726
|
"id",
|
|
@@ -7736,7 +7736,7 @@ const Nn = (d) => {
|
|
|
7736
7736
|
"horizontalOffset",
|
|
7737
7737
|
"className"
|
|
7738
7738
|
]);
|
|
7739
|
-
const [b, E] = X(!1), [f,
|
|
7739
|
+
const [b, E] = X(!1), [f, d] = X(null), h = ce(null);
|
|
7740
7740
|
let C = !1;
|
|
7741
7741
|
const $ = be(He);
|
|
7742
7742
|
$ && (C = $.isMobile);
|
|
@@ -7758,7 +7758,7 @@ const Nn = (d) => {
|
|
|
7758
7758
|
E(!1);
|
|
7759
7759
|
}, 150);
|
|
7760
7760
|
}, J = (A) => {
|
|
7761
|
-
|
|
7761
|
+
d(A.value), i && i(A);
|
|
7762
7762
|
};
|
|
7763
7763
|
ae(() => {
|
|
7764
7764
|
const A = (V) => {
|
|
@@ -7832,7 +7832,7 @@ const Nn = (d) => {
|
|
|
7832
7832
|
return /* @__PURE__ */ e.createElement(
|
|
7833
7833
|
"div",
|
|
7834
7834
|
y({
|
|
7835
|
-
className: N([O, Z,
|
|
7835
|
+
className: N([O, Z, o != null ? o : ""]),
|
|
7836
7836
|
id: n,
|
|
7837
7837
|
style: C ? null : U,
|
|
7838
7838
|
onKeyDown: C ? null : (A) => {
|
|
@@ -7859,8 +7859,8 @@ const Nn = (d) => {
|
|
|
7859
7859
|
}, a),
|
|
7860
7860
|
t
|
|
7861
7861
|
);
|
|
7862
|
-
}, e4 = (
|
|
7863
|
-
var _ =
|
|
7862
|
+
}, e4 = (o) => {
|
|
7863
|
+
var _ = o, {
|
|
7864
7864
|
children: t,
|
|
7865
7865
|
colorType: n = "default",
|
|
7866
7866
|
containerWidth: s = "x-wide",
|
|
@@ -7869,7 +7869,7 @@ const Nn = (d) => {
|
|
|
7869
7869
|
logoDisplayType: u = "full",
|
|
7870
7870
|
logoLinkContent: c,
|
|
7871
7871
|
logoSrc: l,
|
|
7872
|
-
logoSubBrand:
|
|
7872
|
+
logoSubBrand: i,
|
|
7873
7873
|
translationStrings: m = {
|
|
7874
7874
|
closeMobileNav: "Close navigation area",
|
|
7875
7875
|
openMobileNav: "Open navigation area"
|
|
@@ -7894,7 +7894,7 @@ const Nn = (d) => {
|
|
|
7894
7894
|
E && (b = E.isMobile);
|
|
7895
7895
|
const f = be(S2);
|
|
7896
7896
|
f && (c = f.logoLinkContent);
|
|
7897
|
-
const
|
|
7897
|
+
const d = "pds-navbar", h = a ? `${d}--noBorder` : "", C = n !== "default" ? `${d}--${n}` : "", $ = b ? `${d}--isMobile` : `${d}--notMobile`, H = (F) => {
|
|
7898
7898
|
const q = F.key;
|
|
7899
7899
|
let A = !1;
|
|
7900
7900
|
switch (q) {
|
|
@@ -7938,20 +7938,20 @@ const Nn = (d) => {
|
|
|
7938
7938
|
let D = "default";
|
|
7939
7939
|
(n === "reverse" || n === "reverse-transparent") && (D = "reverse");
|
|
7940
7940
|
const U = Le(c) ? c.props.children : null, O = Le(c) && U ? Se(c, {
|
|
7941
|
-
children: /* @__PURE__ */ e.createElement("img", { className: `${
|
|
7941
|
+
children: /* @__PURE__ */ e.createElement("img", { className: `${d}__custom-logo`, src: l }),
|
|
7942
7942
|
"aria-label": U || null
|
|
7943
|
-
}) : /* @__PURE__ */ e.createElement("img", { className: `${
|
|
7943
|
+
}) : /* @__PURE__ */ e.createElement("img", { className: `${d}__custom-logo`, src: l, alt: "" }), Z = () => l ? O : /* @__PURE__ */ e.createElement(
|
|
7944
7944
|
O1,
|
|
7945
7945
|
{
|
|
7946
7946
|
colorType: D,
|
|
7947
7947
|
displayType: u,
|
|
7948
7948
|
linkContent: c,
|
|
7949
|
-
subBrand:
|
|
7949
|
+
subBrand: i
|
|
7950
7950
|
}
|
|
7951
7951
|
), W = /* @__PURE__ */ e.createElement(
|
|
7952
7952
|
"button",
|
|
7953
7953
|
{
|
|
7954
|
-
className: `${
|
|
7954
|
+
className: `${d}__menu-toggle`,
|
|
7955
7955
|
"aria-label": v ? m.closeMobileNav : m.openMobileNav,
|
|
7956
7956
|
onClick: M,
|
|
7957
7957
|
type: "button"
|
|
@@ -7963,7 +7963,7 @@ const Nn = (d) => {
|
|
|
7963
7963
|
}), J = /* @__PURE__ */ e.createElement(
|
|
7964
7964
|
"div",
|
|
7965
7965
|
{
|
|
7966
|
-
className: v ? `${
|
|
7966
|
+
className: v ? `${d}__mobile ${d}__mobile--open` : `${d}__mobile ${d}__mobile--closed`,
|
|
7967
7967
|
ref: L
|
|
7968
7968
|
},
|
|
7969
7969
|
/* @__PURE__ */ e.createElement(h2, null, Q)
|
|
@@ -7975,13 +7975,13 @@ const Nn = (d) => {
|
|
|
7975
7975
|
initialFocus: !1
|
|
7976
7976
|
}
|
|
7977
7977
|
},
|
|
7978
|
-
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(h2, { className: `${
|
|
7979
|
-
), P = /* @__PURE__ */ e.createElement(h2, { width: s, className: `${
|
|
7978
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(h2, { className: `${d}__bar-mobile` }, /* @__PURE__ */ e.createElement("div", { className: `${d}__inner-mobile` }, Z(), t && W)), /* @__PURE__ */ e.createElement(h2, null, t && J))
|
|
7979
|
+
), P = /* @__PURE__ */ e.createElement(h2, { width: s, className: `${d}__inner` }, !r && /* @__PURE__ */ e.createElement("div", { className: `${d}__logo` }, Z()), /* @__PURE__ */ e.createElement("div", { className: `${d}__content` }, S ? /* @__PURE__ */ e.createElement("div", { className: `${d}__items-left` }, S) : /* @__PURE__ */ e.createElement("span", null), B && /* @__PURE__ */ e.createElement("div", { className: `${d}__items-right` }, B)));
|
|
7980
7980
|
return /* @__PURE__ */ e.createElement(
|
|
7981
7981
|
"header",
|
|
7982
7982
|
y({
|
|
7983
7983
|
className: N([
|
|
7984
|
-
|
|
7984
|
+
d,
|
|
7985
7985
|
C,
|
|
7986
7986
|
h,
|
|
7987
7987
|
$,
|
|
@@ -8001,14 +8001,14 @@ const Nn = (d) => {
|
|
|
8001
8001
|
}), []);
|
|
8002
8002
|
const l = () => {
|
|
8003
8003
|
c(window.innerWidth);
|
|
8004
|
-
},
|
|
8004
|
+
}, i = u <= s, m = "pds-nav-menu", { refs: g, context: p } = Ae({
|
|
8005
8005
|
placement: "bottom-start",
|
|
8006
8006
|
open: a,
|
|
8007
8007
|
onOpenChange: r,
|
|
8008
8008
|
whileElementsMounted: Pe
|
|
8009
|
-
}),
|
|
8009
|
+
}), o = Xe(p, { event: "mousedown" }), _ = Te(p), v = De(p, { role: "menu" });
|
|
8010
8010
|
let w;
|
|
8011
|
-
|
|
8011
|
+
i ? w = $2(p, {
|
|
8012
8012
|
enabled: !1
|
|
8013
8013
|
}) : w = $2(p, {
|
|
8014
8014
|
handleClose: M1({
|
|
@@ -8021,9 +8021,9 @@ const Nn = (d) => {
|
|
|
8021
8021
|
const { getReferenceProps: b, getFloatingProps: E } = Re([
|
|
8022
8022
|
_,
|
|
8023
8023
|
v,
|
|
8024
|
-
|
|
8024
|
+
o,
|
|
8025
8025
|
w
|
|
8026
|
-
]), f = (
|
|
8026
|
+
]), f = (d) => !!(d.isActive || d.linkContent && d.linkContent.props.className && d.linkContent.props.className.includes("pds-isActive"));
|
|
8027
8027
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
8028
8028
|
"button",
|
|
8029
8029
|
y({
|
|
@@ -8039,14 +8039,14 @@ const Nn = (d) => {
|
|
|
8039
8039
|
className: `${m}__dropdown`,
|
|
8040
8040
|
ref: g.setFloating
|
|
8041
8041
|
}, E()),
|
|
8042
|
-
t.map((
|
|
8042
|
+
t.map((d, h) => /* @__PURE__ */ e.createElement(
|
|
8043
8043
|
"li",
|
|
8044
8044
|
{
|
|
8045
8045
|
key: h,
|
|
8046
|
-
role:
|
|
8047
|
-
className: `${m}__item ${
|
|
8046
|
+
role: d.isSeparator ? "separator" : "menuitem",
|
|
8047
|
+
className: `${m}__item ${d.isSeparator ? `${m}__dropdown--separator` : `${m}__item--second-level`} ${f(d) ? `${m}__item--active` : null}`
|
|
8048
8048
|
},
|
|
8049
|
-
!
|
|
8049
|
+
!d.isSeparator && d.linkContent
|
|
8050
8050
|
))
|
|
8051
8051
|
));
|
|
8052
8052
|
}, t4 = (c) => {
|
|
@@ -8063,7 +8063,7 @@ const Nn = (d) => {
|
|
|
8063
8063
|
"mobileMenuMaxWidth",
|
|
8064
8064
|
"className"
|
|
8065
8065
|
]);
|
|
8066
|
-
const [
|
|
8066
|
+
const [i, m] = X(1025), [g, p] = X(null), [o, _] = X(-1), [v, w] = X(null), [b, E] = X({
|
|
8067
8067
|
container: null,
|
|
8068
8068
|
containerChildren: []
|
|
8069
8069
|
});
|
|
@@ -8072,7 +8072,7 @@ const Nn = (d) => {
|
|
|
8072
8072
|
}), []);
|
|
8073
8073
|
const f = () => {
|
|
8074
8074
|
m(window.innerWidth);
|
|
8075
|
-
},
|
|
8075
|
+
}, d = i <= a;
|
|
8076
8076
|
ae(() => {
|
|
8077
8077
|
b.containerChildren[g] && (b.containerChildren[g].classList.contains(
|
|
8078
8078
|
"pds-nav-menu__dropdown--separator"
|
|
@@ -8080,17 +8080,17 @@ const Nn = (d) => {
|
|
|
8080
8080
|
"pds-nav-menu__dropdown--separator"
|
|
8081
8081
|
) && v == "up" ? p(g - 1) : b.containerChildren[g].children[0].focus());
|
|
8082
8082
|
}, [g]), ae(() => {
|
|
8083
|
-
|
|
8083
|
+
o != -1 && (H.current[o].children[0].blur(), H.current[o].children[0].focus({
|
|
8084
8084
|
focusVisible: !0
|
|
8085
8085
|
}));
|
|
8086
|
-
}, [
|
|
8087
|
-
const h = "pds-nav-menu", C = n !== "default" ? `${h}--${n}` : "", $ =
|
|
8086
|
+
}, [o]);
|
|
8087
|
+
const h = "pds-nav-menu", C = n !== "default" ? `${h}--${n}` : "", $ = d ? `${h}--isMobile` : `${h}--notMobile`, H = ce([]), M = (z) => {
|
|
8088
8088
|
const S = H.current.length - 1, W = {
|
|
8089
8089
|
ArrowRight: () => {
|
|
8090
|
-
p(-1), _(
|
|
8090
|
+
p(-1), _(o === -1 ? 1 : o === S ? 0 : o + 1);
|
|
8091
8091
|
},
|
|
8092
8092
|
ArrowLeft: () => {
|
|
8093
|
-
p(-1), _(
|
|
8093
|
+
p(-1), _(o === 0 ? S : o - 1);
|
|
8094
8094
|
},
|
|
8095
8095
|
ArrowDown: () => {
|
|
8096
8096
|
var te, P, F, q;
|
|
@@ -8172,7 +8172,7 @@ const Nn = (d) => {
|
|
|
8172
8172
|
mobileMenuMaxWidth: u = 640,
|
|
8173
8173
|
mobileMenuSelectTextFallback: c = "Navigate to...",
|
|
8174
8174
|
className: l
|
|
8175
|
-
} = g,
|
|
8175
|
+
} = g, i = R(g, [
|
|
8176
8176
|
"ariaLabel",
|
|
8177
8177
|
"hasMobileMenu",
|
|
8178
8178
|
"headingText",
|
|
@@ -8182,7 +8182,7 @@ const Nn = (d) => {
|
|
|
8182
8182
|
"mobileMenuSelectTextFallback",
|
|
8183
8183
|
"className"
|
|
8184
8184
|
]);
|
|
8185
|
-
const p = "pds-side-nav",
|
|
8185
|
+
const p = "pds-side-nav", o = `${p}__item`, _ = `${p}__menu`, [v, w] = X(1025), [b, E] = X(!1), [f, d] = X([]), h = ce(null), C = ce(null), $ = ce([]), H = ce(-1);
|
|
8186
8186
|
ae(() => (w(window.innerWidth), window.addEventListener("resize", M), () => {
|
|
8187
8187
|
window.removeEventListener("resize", M);
|
|
8188
8188
|
}), []), ae(() => {
|
|
@@ -8240,7 +8240,7 @@ const Nn = (d) => {
|
|
|
8240
8240
|
}, p2 + 50));
|
|
8241
8241
|
else if (F.tagName.toLowerCase() === "a") {
|
|
8242
8242
|
const q = F.closest(
|
|
8243
|
-
`.${
|
|
8243
|
+
`.${o}--has-children`
|
|
8244
8244
|
);
|
|
8245
8245
|
if (q) {
|
|
8246
8246
|
const A = q.querySelector(
|
|
@@ -8269,7 +8269,7 @@ const Nn = (d) => {
|
|
|
8269
8269
|
const F = $.current[H.current];
|
|
8270
8270
|
if (F) {
|
|
8271
8271
|
const q = F.closest(
|
|
8272
|
-
`.${
|
|
8272
|
+
`.${o}--has-children`
|
|
8273
8273
|
);
|
|
8274
8274
|
if (q) {
|
|
8275
8275
|
const A = q.querySelector(
|
|
@@ -8309,12 +8309,12 @@ const Nn = (d) => {
|
|
|
8309
8309
|
if (!q) return;
|
|
8310
8310
|
const A = F.getAttribute("aria-expanded") === "false";
|
|
8311
8311
|
F.classList.toggle(`${p}__toggle--expanded`, A), F.setAttribute("aria-expanded", A ? "true" : "false");
|
|
8312
|
-
const I = F.closest(`.${
|
|
8312
|
+
const I = F.closest(`.${o}--has-children`);
|
|
8313
8313
|
if (I) {
|
|
8314
8314
|
const T = Array.from(
|
|
8315
|
-
((x = h.current) == null ? void 0 : x.querySelectorAll(`.${
|
|
8315
|
+
((x = h.current) == null ? void 0 : x.querySelectorAll(`.${o}--top-level`)) || []
|
|
8316
8316
|
).indexOf(I);
|
|
8317
|
-
|
|
8317
|
+
d((K) => A && !K.includes(T) && T !== -1 ? [...K, T] : A ? K : K.filter((ee) => ee !== T));
|
|
8318
8318
|
}
|
|
8319
8319
|
A ? O(q) : Z(q);
|
|
8320
8320
|
}, O = (P) => {
|
|
@@ -8374,15 +8374,15 @@ const Nn = (d) => {
|
|
|
8374
8374
|
key: F,
|
|
8375
8375
|
"data-item-index": F,
|
|
8376
8376
|
className: N([
|
|
8377
|
-
|
|
8378
|
-
`${
|
|
8379
|
-
A ? `${
|
|
8380
|
-
V ? `${
|
|
8377
|
+
o,
|
|
8378
|
+
`${o}--top-level`,
|
|
8379
|
+
A ? `${o}--has-children` : null,
|
|
8380
|
+
V ? `${o}--active` : null,
|
|
8381
8381
|
I ? "with-tally" : null
|
|
8382
8382
|
// Add class if item contains a Tally component
|
|
8383
8383
|
])
|
|
8384
8384
|
},
|
|
8385
|
-
A ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8385
|
+
A ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${o}-wrapper` }, M2(q, A), /* @__PURE__ */ e.createElement(
|
|
8386
8386
|
"button",
|
|
8387
8387
|
{
|
|
8388
8388
|
"aria-expanded": x,
|
|
@@ -8413,9 +8413,9 @@ const Nn = (d) => {
|
|
|
8413
8413
|
{
|
|
8414
8414
|
key: K,
|
|
8415
8415
|
className: N([
|
|
8416
|
-
|
|
8417
|
-
`${
|
|
8418
|
-
Ne(T) ? `${
|
|
8416
|
+
o,
|
|
8417
|
+
`${o}--second-level`,
|
|
8418
|
+
Ne(T) ? `${o}--active` : null,
|
|
8419
8419
|
ee ? "with-tally" : null
|
|
8420
8420
|
// Add class for second-level items
|
|
8421
8421
|
])
|
|
@@ -8451,7 +8451,7 @@ const Nn = (d) => {
|
|
|
8451
8451
|
},
|
|
8452
8452
|
tabIndex: 0,
|
|
8453
8453
|
role: "navigation"
|
|
8454
|
-
},
|
|
8454
|
+
}, i),
|
|
8455
8455
|
L && n ? te : J
|
|
8456
8456
|
);
|
|
8457
8457
|
}, v2 = 0, s4 = (m) => {
|
|
@@ -8467,7 +8467,7 @@ const Nn = (d) => {
|
|
|
8467
8467
|
mobileMenuMaxWidth: u = 640,
|
|
8468
8468
|
mobileMenuSelectTextFallback: c = "Navigate to...",
|
|
8469
8469
|
className: l
|
|
8470
|
-
} = g,
|
|
8470
|
+
} = g, i = R(g, [
|
|
8471
8471
|
"ariaLabel",
|
|
8472
8472
|
"hasMobileMenu",
|
|
8473
8473
|
"headingText",
|
|
@@ -8477,7 +8477,7 @@ const Nn = (d) => {
|
|
|
8477
8477
|
"mobileMenuSelectTextFallback",
|
|
8478
8478
|
"className"
|
|
8479
8479
|
]);
|
|
8480
|
-
const p = "pds-side-nav-compact",
|
|
8480
|
+
const p = "pds-side-nav-compact", o = `${p}__item`, _ = `${p}__menu`, [v, w] = X(1025), [b, E] = X(!1), [f, d] = X([]), h = ce(null), C = ce(null), $ = ce([]), H = ce(-1);
|
|
8481
8481
|
ae(() => (w(window.innerWidth), window.addEventListener("resize", M), () => {
|
|
8482
8482
|
window.removeEventListener("resize", M);
|
|
8483
8483
|
}), []), ae(() => {
|
|
@@ -8492,15 +8492,15 @@ const Nn = (d) => {
|
|
|
8492
8492
|
}, [s]), ae(() => {
|
|
8493
8493
|
if (h.current && r.length > 0) {
|
|
8494
8494
|
const V = Array.from(
|
|
8495
|
-
h.current.querySelectorAll(`.${
|
|
8495
|
+
h.current.querySelectorAll(`.${o}--active`)
|
|
8496
8496
|
).map((T) => {
|
|
8497
8497
|
var ee;
|
|
8498
|
-
const K = T.closest(`.${
|
|
8498
|
+
const K = T.closest(`.${o}--top-level`);
|
|
8499
8499
|
return K ? Array.from(
|
|
8500
|
-
((ee = h.current) == null ? void 0 : ee.querySelectorAll(`.${
|
|
8500
|
+
((ee = h.current) == null ? void 0 : ee.querySelectorAll(`.${o}--top-level`)) || []
|
|
8501
8501
|
).indexOf(K) : -1;
|
|
8502
8502
|
}).filter((T) => T !== -1), x = Array.from(new Set(V));
|
|
8503
|
-
|
|
8503
|
+
d(x);
|
|
8504
8504
|
}
|
|
8505
8505
|
}, [r]);
|
|
8506
8506
|
const M = () => {
|
|
@@ -8518,26 +8518,26 @@ const Nn = (d) => {
|
|
|
8518
8518
|
return !(T && !T.classList.contains(`${_}--expanded`) && !T.classList.contains(`${_}--top-level`));
|
|
8519
8519
|
});
|
|
8520
8520
|
}, z = (I) => {
|
|
8521
|
-
const V = I.closest(`.${
|
|
8521
|
+
const V = I.closest(`.${o}-wrapper`);
|
|
8522
8522
|
if (V)
|
|
8523
8523
|
return V.querySelector(
|
|
8524
8524
|
`.${p}__toggle`
|
|
8525
8525
|
);
|
|
8526
|
-
const x = I.closest(`.${
|
|
8526
|
+
const x = I.closest(`.${o}`);
|
|
8527
8527
|
return x ? x.querySelector(
|
|
8528
8528
|
`.${p}__toggle`
|
|
8529
8529
|
) : null;
|
|
8530
8530
|
}, S = (I) => {
|
|
8531
8531
|
if (I.classList.contains(`${p}__toggle`)) {
|
|
8532
|
-
const x = I.closest(`.${
|
|
8532
|
+
const x = I.closest(`.${o}-wrapper`);
|
|
8533
8533
|
return (x == null ? void 0 : x.nextElementSibling) || null;
|
|
8534
8534
|
}
|
|
8535
|
-
const V = I.closest(`.${
|
|
8535
|
+
const V = I.closest(`.${o}`);
|
|
8536
8536
|
return V ? V.querySelector(`.${_}`) : null;
|
|
8537
8537
|
}, B = (I) => {
|
|
8538
8538
|
if (I.classList.contains(`${p}__toggle`))
|
|
8539
8539
|
return !0;
|
|
8540
|
-
const V = I.closest(`.${
|
|
8540
|
+
const V = I.closest(`.${o}-wrapper`);
|
|
8541
8541
|
return V ? !!V.querySelector(`.${p}__toggle`) : !1;
|
|
8542
8542
|
}, D = (I) => {
|
|
8543
8543
|
if (!b) return;
|
|
@@ -8577,7 +8577,7 @@ const Nn = (d) => {
|
|
|
8577
8577
|
const x = V.closest(`.${_}`);
|
|
8578
8578
|
if (x && !x.classList.contains(`${_}--top-level`)) {
|
|
8579
8579
|
const T = x.parentElement;
|
|
8580
|
-
if (T && T.classList.contains(
|
|
8580
|
+
if (T && T.classList.contains(o)) {
|
|
8581
8581
|
const K = T.querySelector(
|
|
8582
8582
|
`.${p}__toggle`
|
|
8583
8583
|
);
|
|
@@ -8633,12 +8633,12 @@ const Nn = (d) => {
|
|
|
8633
8633
|
if (!x) return;
|
|
8634
8634
|
const T = V.getAttribute("aria-expanded") === "false";
|
|
8635
8635
|
V.classList.toggle(`${p}__toggle--expanded`, T), V.setAttribute("aria-expanded", T ? "true" : "false");
|
|
8636
|
-
const K = V.closest(`.${
|
|
8636
|
+
const K = V.closest(`.${o}`);
|
|
8637
8637
|
if (K) {
|
|
8638
8638
|
const ie = Array.from(
|
|
8639
|
-
((pe = h.current) == null ? void 0 : pe.querySelectorAll(`.${
|
|
8639
|
+
((pe = h.current) == null ? void 0 : pe.querySelectorAll(`.${o}--top-level`)) || []
|
|
8640
8640
|
).indexOf(K);
|
|
8641
|
-
|
|
8641
|
+
d((Ce) => T && !Ce.includes(ie) && ie !== -1 ? [...Ce, ie] : T ? Ce : Ce.filter((_e) => _e !== ie));
|
|
8642
8642
|
}
|
|
8643
8643
|
T ? Q(x) : J(x);
|
|
8644
8644
|
}, Q = (I) => {
|
|
@@ -8692,19 +8692,19 @@ const Nn = (d) => {
|
|
|
8692
8692
|
};
|
|
8693
8693
|
}, te = { 2: "second", 3: "third", 4: "fourth" }, P = (I, V, x) => {
|
|
8694
8694
|
var re, he;
|
|
8695
|
-
const T = te[I], K = `${_}--${T}-level`, ee = `${
|
|
8695
|
+
const T = te[I], K = `${_}--${T}-level`, ee = `${o}--${T}-level`, pe = I + 1, ie = Ne(V);
|
|
8696
8696
|
let Ce = !1;
|
|
8697
8697
|
const _e = (re = h.current) == null ? void 0 : re.querySelector(
|
|
8698
|
-
`.${
|
|
8698
|
+
`.${o}--top-level[data-item-path="${V.path}"]`
|
|
8699
8699
|
);
|
|
8700
8700
|
if (_e) {
|
|
8701
8701
|
const ue = Array.from(
|
|
8702
|
-
((he = h.current) == null ? void 0 : he.querySelectorAll(`.${
|
|
8702
|
+
((he = h.current) == null ? void 0 : he.querySelectorAll(`.${o}--top-level`)) || []
|
|
8703
8703
|
).indexOf(_e);
|
|
8704
8704
|
Ce = f.includes(ue);
|
|
8705
8705
|
} else
|
|
8706
8706
|
Ce = ie;
|
|
8707
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8707
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: `${o}-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
8708
8708
|
"button",
|
|
8709
8709
|
{
|
|
8710
8710
|
"aria-expanded": Ne(V),
|
|
@@ -8731,9 +8731,9 @@ const Nn = (d) => {
|
|
|
8731
8731
|
{
|
|
8732
8732
|
key: `${de}-${T}`,
|
|
8733
8733
|
className: N([
|
|
8734
|
-
|
|
8734
|
+
o,
|
|
8735
8735
|
ee,
|
|
8736
|
-
Ne(ue) ? `${
|
|
8736
|
+
Ne(ue) ? `${o}--active` : null
|
|
8737
8737
|
]),
|
|
8738
8738
|
"data-item-path": ue.path || ""
|
|
8739
8739
|
},
|
|
@@ -8751,9 +8751,9 @@ const Nn = (d) => {
|
|
|
8751
8751
|
{
|
|
8752
8752
|
key: V,
|
|
8753
8753
|
className: N([
|
|
8754
|
-
|
|
8755
|
-
`${
|
|
8756
|
-
Ne(I) ? `${
|
|
8754
|
+
o,
|
|
8755
|
+
`${o}--top-level`,
|
|
8756
|
+
Ne(I) ? `${o}--active` : null
|
|
8757
8757
|
]),
|
|
8758
8758
|
"data-item-path": I.path || ""
|
|
8759
8759
|
},
|
|
@@ -8779,7 +8779,7 @@ const Nn = (d) => {
|
|
|
8779
8779
|
},
|
|
8780
8780
|
tabIndex: 0,
|
|
8781
8781
|
role: "navigation"
|
|
8782
|
-
},
|
|
8782
|
+
}, i),
|
|
8783
8783
|
L && n ? A : q
|
|
8784
8784
|
);
|
|
8785
8785
|
}, Gt = ({
|
|
@@ -8790,15 +8790,15 @@ const Nn = (d) => {
|
|
|
8790
8790
|
minFilterItems: r = 5,
|
|
8791
8791
|
noResultsText: u = "No results found"
|
|
8792
8792
|
}) => {
|
|
8793
|
-
const [c, l] = X(!1), [
|
|
8793
|
+
const [c, l] = X(!1), [i, m] = X(null), [g, p] = X(a), [o, _] = X(""), v = a.length >= r, w = "pds-tab-menu", b = `${w}__dropdown-menu`, E = v ? `${b}--scroll` : null, f = `${w}__dropdown-item`, d = ce([]), { context: h, refs: C } = Ae({
|
|
8794
8794
|
open: c,
|
|
8795
8795
|
onOpenChange: l,
|
|
8796
8796
|
whileElementsMounted: Pe
|
|
8797
8797
|
}), $ = Xe(h, {
|
|
8798
8798
|
event: "mousedown"
|
|
8799
8799
|
}), H = Te(h), M = De(h, { role: "listbox" }), L = o2(h, {
|
|
8800
|
-
listRef:
|
|
8801
|
-
activeIndex:
|
|
8800
|
+
listRef: d,
|
|
8801
|
+
activeIndex: i,
|
|
8802
8802
|
onNavigate: m,
|
|
8803
8803
|
loop: !0,
|
|
8804
8804
|
focusItemOnHover: !0,
|
|
@@ -8821,7 +8821,7 @@ const Nn = (d) => {
|
|
|
8821
8821
|
}
|
|
8822
8822
|
}), U = (A) => {
|
|
8823
8823
|
var I;
|
|
8824
|
-
A.preventDefault(), A.key === "Enter" && ((I =
|
|
8824
|
+
A.preventDefault(), A.key === "Enter" && ((I = d.current[i].querySelector("a")) == null || I.click()), A.key === "Tab" && A.shiftKey && (v ? document.getElementById("links-filter").focus() : l(!1));
|
|
8825
8825
|
}, O = (A, I) => Ge(A.linkContent).toLowerCase().includes(I.toLowerCase()), Z = (A) => {
|
|
8826
8826
|
const I = A.target.value;
|
|
8827
8827
|
_(I);
|
|
@@ -8829,7 +8829,7 @@ const Nn = (d) => {
|
|
|
8829
8829
|
p(V);
|
|
8830
8830
|
};
|
|
8831
8831
|
ae(() => {
|
|
8832
|
-
const A = a.filter((I) => O(I,
|
|
8832
|
+
const A = a.filter((I) => O(I, o));
|
|
8833
8833
|
p(A);
|
|
8834
8834
|
}, [a]);
|
|
8835
8835
|
const W = () => {
|
|
@@ -8862,9 +8862,9 @@ const Nn = (d) => {
|
|
|
8862
8862
|
key: I,
|
|
8863
8863
|
className: N([f, V]),
|
|
8864
8864
|
ref: (x) => {
|
|
8865
|
-
|
|
8865
|
+
d.current[I] = x;
|
|
8866
8866
|
},
|
|
8867
|
-
tabIndex: I ===
|
|
8867
|
+
tabIndex: I === i ? 0 : -1,
|
|
8868
8868
|
onKeyDown: U
|
|
8869
8869
|
}, S()),
|
|
8870
8870
|
A.linkContent,
|
|
@@ -8914,24 +8914,24 @@ const Nn = (d) => {
|
|
|
8914
8914
|
let c = !1;
|
|
8915
8915
|
const l = be(He);
|
|
8916
8916
|
l && (c = l.isMobile);
|
|
8917
|
-
const
|
|
8918
|
-
dropdownSettings:
|
|
8917
|
+
const i = "pds-tab-menu", m = c ? `${i}--isMobile` : null, g = ({
|
|
8918
|
+
dropdownSettings: o,
|
|
8919
8919
|
icon: _,
|
|
8920
8920
|
isActive: v,
|
|
8921
8921
|
linkContent: w,
|
|
8922
8922
|
links: b,
|
|
8923
8923
|
promoteActiveChildLink: E = !1
|
|
8924
8924
|
}) => {
|
|
8925
|
-
const f = `${
|
|
8925
|
+
const f = `${i}__item`, d = n1(b), h = (C, $) => {
|
|
8926
8926
|
let H = null;
|
|
8927
8927
|
return typeof C == "object" && ($ ? H = Se(C, me(y({}, C.props), {
|
|
8928
8928
|
children: [
|
|
8929
|
-
/* @__PURE__ */ e.createElement("span", { key: $, className: `${
|
|
8929
|
+
/* @__PURE__ */ e.createElement("span", { key: $, className: `${i}__item-inner` }, /* @__PURE__ */ e.createElement(
|
|
8930
8930
|
j,
|
|
8931
8931
|
{
|
|
8932
8932
|
iconName: $,
|
|
8933
8933
|
iconSize: c ? "sm" : "md",
|
|
8934
|
-
className: `${
|
|
8934
|
+
className: `${i}__item-icon`
|
|
8935
8935
|
}
|
|
8936
8936
|
), C.props.children)
|
|
8937
8937
|
]
|
|
@@ -8945,41 +8945,41 @@ const Nn = (d) => {
|
|
|
8945
8945
|
v ? `${f}--active` : null
|
|
8946
8946
|
])
|
|
8947
8947
|
},
|
|
8948
|
-
h(E ?
|
|
8948
|
+
h(E ? d : w, _),
|
|
8949
8949
|
b && /* @__PURE__ */ e.createElement(
|
|
8950
8950
|
Gt,
|
|
8951
8951
|
{
|
|
8952
8952
|
links: b,
|
|
8953
|
-
buttonLabel:
|
|
8954
|
-
filterLabel:
|
|
8955
|
-
filterPlaceholder:
|
|
8956
|
-
minFilterItems:
|
|
8957
|
-
noResultsText:
|
|
8953
|
+
buttonLabel: o == null ? void 0 : o.buttonLabel,
|
|
8954
|
+
filterLabel: o == null ? void 0 : o.filterLabel,
|
|
8955
|
+
filterPlaceholder: o == null ? void 0 : o.filterPlaceholder,
|
|
8956
|
+
minFilterItems: o == null ? void 0 : o.minFilterItems,
|
|
8957
|
+
noResultsText: o == null ? void 0 : o.noResultsText
|
|
8958
8958
|
}
|
|
8959
8959
|
)
|
|
8960
8960
|
);
|
|
8961
|
-
}, p = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${
|
|
8961
|
+
}, p = n.length > 0 ? /* @__PURE__ */ e.createElement("ul", { className: `${i}__menu` }, n.map((o, _) => /* @__PURE__ */ e.createElement(
|
|
8962
8962
|
g,
|
|
8963
8963
|
{
|
|
8964
8964
|
key: _,
|
|
8965
|
-
dropdownSettings:
|
|
8966
|
-
icon:
|
|
8967
|
-
isActive: Ne(
|
|
8968
|
-
linkContent:
|
|
8969
|
-
links:
|
|
8970
|
-
promoteActiveChildLink:
|
|
8965
|
+
dropdownSettings: o.dropdownSettings,
|
|
8966
|
+
icon: o.icon,
|
|
8967
|
+
isActive: Ne(o),
|
|
8968
|
+
linkContent: o.linkContent,
|
|
8969
|
+
links: o.links,
|
|
8970
|
+
promoteActiveChildLink: o.promoteActiveChildLink
|
|
8971
8971
|
}
|
|
8972
8972
|
))) : null;
|
|
8973
8973
|
return /* @__PURE__ */ e.createElement(
|
|
8974
8974
|
"nav",
|
|
8975
8975
|
y({
|
|
8976
8976
|
"aria-label": t,
|
|
8977
|
-
className: N([
|
|
8977
|
+
className: N([i, m, s != null ? s : ""])
|
|
8978
8978
|
}, a),
|
|
8979
|
-
c ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
8979
|
+
c ? /* @__PURE__ */ e.createElement("div", { className: `${i}__mobile-menu-wrapper` }, p) : p
|
|
8980
8980
|
);
|
|
8981
|
-
}, a4 = (
|
|
8982
|
-
var m =
|
|
8981
|
+
}, a4 = (i) => {
|
|
8982
|
+
var m = i, {
|
|
8983
8983
|
ariaLabel: t = "User menu",
|
|
8984
8984
|
menuItems: n,
|
|
8985
8985
|
userEmail: s,
|
|
@@ -8996,13 +8996,13 @@ const Nn = (d) => {
|
|
|
8996
8996
|
"withinNavbar",
|
|
8997
8997
|
"className"
|
|
8998
8998
|
]);
|
|
8999
|
-
const [g, p] = X(null), [
|
|
8999
|
+
const [g, p] = X(null), [o, _] = X(!1), v = ce([]), w = ce([]);
|
|
9000
9000
|
let b = !1;
|
|
9001
9001
|
const E = be(He);
|
|
9002
9002
|
E && (b = E.isMobile);
|
|
9003
|
-
const f = u && b,
|
|
9003
|
+
const f = u && b, d = "pds-user-menu", h = f ? `${d}--isMobile` : null, C = `${d}__menu`, { refs: $, floatingStyles: H, context: M } = Ae({
|
|
9004
9004
|
placement: "bottom-end",
|
|
9005
|
-
open:
|
|
9005
|
+
open: o,
|
|
9006
9006
|
onOpenChange: _,
|
|
9007
9007
|
middleware: [k2(12), z2(), N2()],
|
|
9008
9008
|
whileElementsMounted: Pe
|
|
@@ -9037,9 +9037,9 @@ const Nn = (d) => {
|
|
|
9037
9037
|
imageSrc: a,
|
|
9038
9038
|
size: "sm",
|
|
9039
9039
|
uniqueId: s,
|
|
9040
|
-
className: `${
|
|
9040
|
+
className: `${d}__avatar`
|
|
9041
9041
|
}
|
|
9042
|
-
), J = /* @__PURE__ */ e.createElement(j, { iconName: "angleDown", className: `${
|
|
9042
|
+
), J = /* @__PURE__ */ e.createElement(j, { iconName: "angleDown", className: `${d}__trigger-icon` }), te = /* @__PURE__ */ e.createElement("li", { className: `${d}__user-details`, role: "presentation" }, f ? null : /* @__PURE__ */ e.createElement("div", { className: `${d}__user-name` }, r), /* @__PURE__ */ e.createElement("div", { className: `${d}__user-email` }, s));
|
|
9043
9043
|
n.forEach((T) => {
|
|
9044
9044
|
const K = T.id ? T.id : l2();
|
|
9045
9045
|
v.current.push(K), w.current.push(T);
|
|
@@ -9052,7 +9052,7 @@ const Nn = (d) => {
|
|
|
9052
9052
|
}, q = (T) => {
|
|
9053
9053
|
P(T.currentTarget.id);
|
|
9054
9054
|
}, A = n.map((T, K) => {
|
|
9055
|
-
const ee = v.current[K], pe = `${
|
|
9055
|
+
const ee = v.current[K], pe = `${d}__item`, ie = T.disabled ? `${pe}--disabled` : null;
|
|
9056
9056
|
return /* @__PURE__ */ e.createElement(
|
|
9057
9057
|
"li",
|
|
9058
9058
|
y({
|
|
@@ -9070,7 +9070,7 @@ const Nn = (d) => {
|
|
|
9070
9070
|
j,
|
|
9071
9071
|
{
|
|
9072
9072
|
iconName: T.iconName,
|
|
9073
|
-
className: `${
|
|
9073
|
+
className: `${d}__icon`,
|
|
9074
9074
|
iconSize: "sm"
|
|
9075
9075
|
}
|
|
9076
9076
|
),
|
|
@@ -9079,7 +9079,7 @@ const Nn = (d) => {
|
|
|
9079
9079
|
}), I = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9080
9080
|
"button",
|
|
9081
9081
|
y({
|
|
9082
|
-
className: `${
|
|
9082
|
+
className: `${d}__trigger`,
|
|
9083
9083
|
"aria-label": t,
|
|
9084
9084
|
ref: $.setReference,
|
|
9085
9085
|
type: "button"
|
|
@@ -9088,7 +9088,7 @@ const Nn = (d) => {
|
|
|
9088
9088
|
), Z && /* @__PURE__ */ e.createElement(
|
|
9089
9089
|
"div",
|
|
9090
9090
|
y({
|
|
9091
|
-
className: `${
|
|
9091
|
+
className: `${d}__dropdown`,
|
|
9092
9092
|
ref: $.setFloating,
|
|
9093
9093
|
style: me(y({}, H), {
|
|
9094
9094
|
zIndex: "var(--pds-z-index-dropdown)"
|
|
@@ -9097,21 +9097,21 @@ const Nn = (d) => {
|
|
|
9097
9097
|
/* @__PURE__ */ e.createElement("div", { style: y({}, W) }, /* @__PURE__ */ e.createElement("ul", { className: C, role: "menu" }, te, /* @__PURE__ */ e.createElement("li", { role: "separator" }), A))
|
|
9098
9098
|
)), V = (T) => {
|
|
9099
9099
|
const K = T.currentTarget;
|
|
9100
|
-
K.classList.toggle(`${
|
|
9100
|
+
K.classList.toggle(`${d}__toggle--expanded`), K.setAttribute(
|
|
9101
9101
|
"aria-expanded",
|
|
9102
9102
|
K.getAttribute("aria-expanded") === "true" ? "false" : "true"
|
|
9103
|
-
), K.nextElementSibling.classList.toggle(`${
|
|
9103
|
+
), K.nextElementSibling.classList.toggle(`${d}__mobile-menu--expanded`);
|
|
9104
9104
|
}, x = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
9105
9105
|
"button",
|
|
9106
9106
|
{
|
|
9107
|
-
className: `${
|
|
9107
|
+
className: `${d}__toggle`,
|
|
9108
9108
|
"aria-expanded": !1,
|
|
9109
9109
|
"aria-label": t,
|
|
9110
9110
|
onClick: V
|
|
9111
9111
|
},
|
|
9112
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
9112
|
+
/* @__PURE__ */ e.createElement("span", { className: `${d}__toggle-left` }, Q, r || s),
|
|
9113
9113
|
J
|
|
9114
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9114
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${d}__mobile-menu` }, /* @__PURE__ */ e.createElement(
|
|
9115
9115
|
"ul",
|
|
9116
9116
|
{
|
|
9117
9117
|
className: [C, `${C}--isMobile`].join(" ").trim(),
|
|
@@ -9124,7 +9124,7 @@ const Nn = (d) => {
|
|
|
9124
9124
|
return /* @__PURE__ */ e.createElement(
|
|
9125
9125
|
"span",
|
|
9126
9126
|
y({
|
|
9127
|
-
className: N([
|
|
9127
|
+
className: N([d, h, c != null ? c : ""])
|
|
9128
9128
|
}, l),
|
|
9129
9129
|
f ? x : I
|
|
9130
9130
|
);
|
|
@@ -9134,7 +9134,7 @@ const Nn = (d) => {
|
|
|
9134
9134
|
platinum: "Platinum",
|
|
9135
9135
|
diamond: "Diamond"
|
|
9136
9136
|
}, c4 = (p) => {
|
|
9137
|
-
var
|
|
9137
|
+
var o = p, {
|
|
9138
9138
|
ariaLabel: t = "Workspace selector menu",
|
|
9139
9139
|
createWorkspaceLink: n,
|
|
9140
9140
|
filterPlaceholder: s = "Find workspace...",
|
|
@@ -9143,9 +9143,9 @@ const Nn = (d) => {
|
|
|
9143
9143
|
minFilterItems: u = 8,
|
|
9144
9144
|
noResultsText: c = "No results found",
|
|
9145
9145
|
withinNavbar: l = !0,
|
|
9146
|
-
workspaceList:
|
|
9146
|
+
workspaceList: i,
|
|
9147
9147
|
className: m
|
|
9148
|
-
} =
|
|
9148
|
+
} = o, g = R(o, [
|
|
9149
9149
|
"ariaLabel",
|
|
9150
9150
|
"createWorkspaceLink",
|
|
9151
9151
|
"filterPlaceholder",
|
|
@@ -9157,7 +9157,7 @@ const Nn = (d) => {
|
|
|
9157
9157
|
"workspaceList",
|
|
9158
9158
|
"className"
|
|
9159
9159
|
]);
|
|
9160
|
-
const [_, v] = X(!1), [w, b] = X(null), [E, f] = X(
|
|
9160
|
+
const [_, v] = X(!1), [w, b] = X(null), [E, f] = X(i), d = ce([]), h = ce(null), C = i.length >= u;
|
|
9161
9161
|
let $ = !1;
|
|
9162
9162
|
const H = be(He);
|
|
9163
9163
|
H && ($ = H.isMobile);
|
|
@@ -9166,7 +9166,7 @@ const Nn = (d) => {
|
|
|
9166
9166
|
onOpenChange: v,
|
|
9167
9167
|
whileElementsMounted: Pe
|
|
9168
9168
|
}), O = Xe(U, { event: "mousedown" }), Z = Te(U), W = De(U, { role: "menu" }), Q = o2(U, {
|
|
9169
|
-
listRef:
|
|
9169
|
+
listRef: d,
|
|
9170
9170
|
activeIndex: w,
|
|
9171
9171
|
onNavigate: b,
|
|
9172
9172
|
loop: !0,
|
|
@@ -9190,20 +9190,20 @@ const Nn = (d) => {
|
|
|
9190
9190
|
opacity: 0
|
|
9191
9191
|
}
|
|
9192
9192
|
});
|
|
9193
|
-
let A =
|
|
9194
|
-
A || (A =
|
|
9193
|
+
let A = i.find((re) => re.isActive);
|
|
9194
|
+
A || (A = i[0]);
|
|
9195
9195
|
const I = (re) => {
|
|
9196
|
-
const { value: he } = re.target, ue =
|
|
9196
|
+
const { value: he } = re.target, ue = i.filter((de) => de.displayName.toLowerCase().includes(he.toLowerCase()));
|
|
9197
9197
|
f(ue);
|
|
9198
9198
|
};
|
|
9199
9199
|
ae(() => {
|
|
9200
|
-
const re =
|
|
9200
|
+
const re = i.map((he) => me(y({}, he), {
|
|
9201
9201
|
isActive: he.isActive
|
|
9202
9202
|
}));
|
|
9203
9203
|
f(re);
|
|
9204
|
-
}, [
|
|
9204
|
+
}, [i]);
|
|
9205
9205
|
const V = (re) => {
|
|
9206
|
-
re.preventDefault(), re.key === "Enter" &&
|
|
9206
|
+
re.preventDefault(), re.key === "Enter" && d.current[w].querySelector("a").click(), re.key === "Tab" && (re.shiftKey ? C ? document.getElementById("workspace-filter").focus() : v(!1) : n ? h.current.querySelector("a").focus() : v(!1));
|
|
9207
9207
|
}, x = /* @__PURE__ */ e.createElement("div", { className: `${L}__button-content` }, /* @__PURE__ */ e.createElement(
|
|
9208
9208
|
X2,
|
|
9209
9209
|
{
|
|
@@ -9230,7 +9230,7 @@ const Nn = (d) => {
|
|
|
9230
9230
|
D1,
|
|
9231
9231
|
{
|
|
9232
9232
|
hasClearButton: !0,
|
|
9233
|
-
onClear: () => f(
|
|
9233
|
+
onClear: () => f(i),
|
|
9234
9234
|
id: "workspace-filter",
|
|
9235
9235
|
label: a,
|
|
9236
9236
|
onChange: I,
|
|
@@ -9241,7 +9241,7 @@ const Nn = (d) => {
|
|
|
9241
9241
|
)), ee = E.map(
|
|
9242
9242
|
(re, he) => {
|
|
9243
9243
|
const ue = `${L}__item`, de = re.isActive ? `${ue}--active` : null, $e = re.isUnprivileged ? `${ue}--unprivileged` : null, we = /* @__PURE__ */ e.createElement(j, { iconName: "check", className: `${L}__active-icon` }), Ie = re.workspaceId, Je = re.workspaceLink.type, e2 = re.isUnprivileged ? null : (qe) => {
|
|
9244
|
-
|
|
9244
|
+
d.current[he] = qe;
|
|
9245
9245
|
};
|
|
9246
9246
|
return /* @__PURE__ */ e.createElement(
|
|
9247
9247
|
"li",
|
|
@@ -9344,7 +9344,7 @@ const Nn = (d) => {
|
|
|
9344
9344
|
warning: "triangleExclamation",
|
|
9345
9345
|
critical: "diamondExclamation"
|
|
9346
9346
|
}, r4 = (l) => {
|
|
9347
|
-
var
|
|
9347
|
+
var i = l, {
|
|
9348
9348
|
banners: t,
|
|
9349
9349
|
dismissLabel: n = "Dismiss",
|
|
9350
9350
|
labelNext: s = "Go to next message",
|
|
@@ -9355,7 +9355,7 @@ const Nn = (d) => {
|
|
|
9355
9355
|
critical: "Critical"
|
|
9356
9356
|
},
|
|
9357
9357
|
className: u
|
|
9358
|
-
} =
|
|
9358
|
+
} = i, c = R(i, [
|
|
9359
9359
|
"banners",
|
|
9360
9360
|
"dismissLabel",
|
|
9361
9361
|
"labelNext",
|
|
@@ -9370,37 +9370,37 @@ const Nn = (d) => {
|
|
|
9370
9370
|
const p = m.length;
|
|
9371
9371
|
if (p === 0)
|
|
9372
9372
|
return null;
|
|
9373
|
-
const
|
|
9374
|
-
info: `${
|
|
9375
|
-
warning: `${
|
|
9376
|
-
critical: `${
|
|
9377
|
-
}, w = p > 0 ? m[0].type : null, b = w ? `${
|
|
9373
|
+
const o = "pds-banner", _ = p > 1 ? `${o}-group--multiple` : null, v = {
|
|
9374
|
+
info: `${o}--info`,
|
|
9375
|
+
warning: `${o}--warning`,
|
|
9376
|
+
critical: `${o}--critical`
|
|
9377
|
+
}, w = p > 0 ? m[0].type : null, b = w ? `${o}-group--${w}` : null, E = (H) => ({
|
|
9378
9378
|
zIndex: T2 - H
|
|
9379
|
-
}), f = (H) => H === 0 ? 0 : -1,
|
|
9379
|
+
}), f = (H) => H === 0 ? 0 : -1, d = () => {
|
|
9380
9380
|
const H = document.getElementsByClassName(
|
|
9381
|
-
`${
|
|
9381
|
+
`${o}--fading`
|
|
9382
9382
|
);
|
|
9383
9383
|
for (; H.length; )
|
|
9384
|
-
H[0].classList.remove(`${
|
|
9384
|
+
H[0].classList.remove(`${o}--fading`);
|
|
9385
9385
|
}, h = () => {
|
|
9386
|
-
|
|
9386
|
+
d(), document.getElementById(m[0].id).classList.add(`${o}--fading`), setTimeout(() => {
|
|
9387
9387
|
g((H) => [
|
|
9388
9388
|
...H.slice(1),
|
|
9389
9389
|
H[0]
|
|
9390
9390
|
]);
|
|
9391
9391
|
}, 200);
|
|
9392
9392
|
}, C = () => {
|
|
9393
|
-
|
|
9394
|
-
document.getElementById(m[0].id).classList.add(`${
|
|
9393
|
+
d(), document.getElementById(m[0].id).style.zIndex = (T2 + 2).toString(), document.getElementById(m[p - 1].id).style.zIndex = (T2 + 1).toString(), setTimeout(() => {
|
|
9394
|
+
document.getElementById(m[0].id).classList.add(`${o}--fading`);
|
|
9395
9395
|
}, 50), setTimeout(() => {
|
|
9396
9396
|
g((H) => [
|
|
9397
9397
|
H[H.length - 1],
|
|
9398
9398
|
...H.slice(0, H.length - 1)
|
|
9399
|
-
]), document.getElementById(m[0].id).classList.remove(`${
|
|
9399
|
+
]), document.getElementById(m[0].id).classList.remove(`${o}--fading`);
|
|
9400
9400
|
}, 200);
|
|
9401
9401
|
}, $ = (H, M) => {
|
|
9402
9402
|
const { id: L, isDismissible: k, message: z, onDismiss: S, type: B } = H, U = ["critical", "warning"].includes(B) ? "alert" : "status", O = `${r[B]}: `, Z = (W) => {
|
|
9403
|
-
W.preventDefault(), document.getElementById(L).classList.add(`${
|
|
9403
|
+
W.preventDefault(), document.getElementById(L).classList.add(`${o}--dismissing`), setTimeout(() => {
|
|
9404
9404
|
if (S && H.onDismiss(), p === 1) {
|
|
9405
9405
|
g([]);
|
|
9406
9406
|
return;
|
|
@@ -9415,24 +9415,24 @@ const Nn = (d) => {
|
|
|
9415
9415
|
{
|
|
9416
9416
|
key: L,
|
|
9417
9417
|
id: L,
|
|
9418
|
-
className: N([
|
|
9418
|
+
className: N([o, v[B]]),
|
|
9419
9419
|
role: U,
|
|
9420
9420
|
style: {
|
|
9421
9421
|
zIndex: E(M).zIndex
|
|
9422
9422
|
}
|
|
9423
9423
|
},
|
|
9424
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9424
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content` }, /* @__PURE__ */ e.createElement(
|
|
9425
9425
|
j,
|
|
9426
9426
|
{
|
|
9427
9427
|
iconName: Kt[B],
|
|
9428
9428
|
iconSize: "md",
|
|
9429
|
-
className: `${
|
|
9429
|
+
className: `${o}__icon ${o}__icon--${H.type}`
|
|
9430
9430
|
}
|
|
9431
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9431
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${o}__message` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, O, " "), z)),
|
|
9432
9432
|
k && /* @__PURE__ */ e.createElement(
|
|
9433
9433
|
"button",
|
|
9434
9434
|
{
|
|
9435
|
-
className: `${
|
|
9435
|
+
className: `${o}__dismiss-button`,
|
|
9436
9436
|
onClick: Z,
|
|
9437
9437
|
tabIndex: f(M),
|
|
9438
9438
|
type: "button"
|
|
@@ -9445,18 +9445,18 @@ const Nn = (d) => {
|
|
|
9445
9445
|
"div",
|
|
9446
9446
|
y({
|
|
9447
9447
|
className: N([
|
|
9448
|
-
`${
|
|
9448
|
+
`${o}-group`,
|
|
9449
9449
|
b,
|
|
9450
9450
|
_,
|
|
9451
9451
|
u != null ? u : ""
|
|
9452
9452
|
])
|
|
9453
9453
|
}, c),
|
|
9454
|
-
p > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9454
|
+
p > 1 ? /* @__PURE__ */ e.createElement("div", { className: `${o}__navigation` }, /* @__PURE__ */ e.createElement(
|
|
9455
9455
|
H2,
|
|
9456
9456
|
{
|
|
9457
9457
|
iconName: "angleLeft",
|
|
9458
9458
|
size: "lg",
|
|
9459
|
-
className: `${
|
|
9459
|
+
className: `${o}__nav-button ${o}__nav-button--prev`,
|
|
9460
9460
|
ariaLabel: a,
|
|
9461
9461
|
onClick: C
|
|
9462
9462
|
}
|
|
@@ -9465,7 +9465,7 @@ const Nn = (d) => {
|
|
|
9465
9465
|
{
|
|
9466
9466
|
iconName: "angleRight",
|
|
9467
9467
|
size: "lg",
|
|
9468
|
-
className: `${
|
|
9468
|
+
className: `${o}__nav-button ${o}__nav-button--next`,
|
|
9469
9469
|
ariaLabel: s,
|
|
9470
9470
|
onClick: h
|
|
9471
9471
|
}
|
|
@@ -9496,27 +9496,27 @@ const Nn = (d) => {
|
|
|
9496
9496
|
"typeLabels",
|
|
9497
9497
|
"className"
|
|
9498
9498
|
]);
|
|
9499
|
-
const
|
|
9500
|
-
error: `${
|
|
9501
|
-
success: `${
|
|
9502
|
-
warning: `${
|
|
9503
|
-
info: `${
|
|
9504
|
-
critical: `${
|
|
9505
|
-
working: `${
|
|
9506
|
-
}, g = t ? `${
|
|
9499
|
+
const i = "pds-inline-message", m = {
|
|
9500
|
+
error: `${i}--error`,
|
|
9501
|
+
success: `${i}--success`,
|
|
9502
|
+
warning: `${i}--warning`,
|
|
9503
|
+
info: `${i}--info`,
|
|
9504
|
+
critical: `${i}--critical`,
|
|
9505
|
+
working: `${i}--working`
|
|
9506
|
+
}, g = t ? `${i}--hasTitle` : null, o = ["critical", "warning"].includes(s) ? "alert" : "status", _ = `${a[s]}: `;
|
|
9507
9507
|
return /* @__PURE__ */ e.createElement(
|
|
9508
9508
|
"div",
|
|
9509
9509
|
y({
|
|
9510
|
-
className: [
|
|
9511
|
-
role:
|
|
9510
|
+
className: [i, m[s], g, r != null ? r : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
9511
|
+
role: o
|
|
9512
9512
|
}, u),
|
|
9513
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9513
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon-${s}` }, s === "working" ? /* @__PURE__ */ e.createElement(V2, { colorType: "monochromatic" }) : /* @__PURE__ */ e.createElement(
|
|
9514
9514
|
j,
|
|
9515
9515
|
{
|
|
9516
9516
|
iconName: `${s}` in q2 ? q2[s] : q2.info,
|
|
9517
9517
|
iconSize: "md"
|
|
9518
9518
|
}
|
|
9519
|
-
)), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
9519
|
+
)), /* @__PURE__ */ e.createElement("div", { className: `${i}__text` }, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, _), t && /* @__PURE__ */ e.createElement("div", { className: `${i}__title` }, t), /* @__PURE__ */ e.createElement("div", { className: `${i}__secondaryText` }, n)))
|
|
9520
9520
|
);
|
|
9521
9521
|
}, W2 = {
|
|
9522
9522
|
info: "circleInfo",
|
|
@@ -9540,7 +9540,7 @@ const Nn = (d) => {
|
|
|
9540
9540
|
critical: "Critical",
|
|
9541
9541
|
discovery: "Discovery"
|
|
9542
9542
|
},
|
|
9543
|
-
className:
|
|
9543
|
+
className: i
|
|
9544
9544
|
} = p, m = R(p, [
|
|
9545
9545
|
"dismissLabel",
|
|
9546
9546
|
"id",
|
|
@@ -9552,7 +9552,7 @@ const Nn = (d) => {
|
|
|
9552
9552
|
"typeLabels",
|
|
9553
9553
|
"className"
|
|
9554
9554
|
]);
|
|
9555
|
-
const
|
|
9555
|
+
const o = ce(null), _ = "pds-section-message", v = {
|
|
9556
9556
|
error: `${_}--error`,
|
|
9557
9557
|
success: `${_}--success`,
|
|
9558
9558
|
warning: `${_}--warning`,
|
|
@@ -9561,23 +9561,23 @@ const Nn = (d) => {
|
|
|
9561
9561
|
discovery: `${_}--discovery`,
|
|
9562
9562
|
dismissing: `${_}--dismissing`,
|
|
9563
9563
|
dismissed: `${_}--dismissed`
|
|
9564
|
-
}, w = u ? `${_}--hasTitle` : null, E = ["critical", "warning"].includes(c) ? "alert" : "status", f = `${l[c]}: `,
|
|
9565
|
-
|
|
9564
|
+
}, w = u ? `${_}--hasTitle` : null, E = ["critical", "warning"].includes(c) ? "alert" : "status", f = `${l[c]}: `, d = () => {
|
|
9565
|
+
o.current.addEventListener("animationend", h, {
|
|
9566
9566
|
once: !0
|
|
9567
9567
|
});
|
|
9568
9568
|
}, h = ($) => {
|
|
9569
9569
|
a($, n);
|
|
9570
9570
|
}, C = () => {
|
|
9571
|
-
|
|
9572
|
-
|
|
9571
|
+
d(), o.current.classList.toggle(v.dismissing), setTimeout(() => {
|
|
9572
|
+
o.current.classList.toggle(v.dismissing), o.current.classList.toggle(v.dismissed);
|
|
9573
9573
|
}, 400);
|
|
9574
9574
|
};
|
|
9575
9575
|
return /* @__PURE__ */ e.createElement(
|
|
9576
9576
|
"div",
|
|
9577
9577
|
y({
|
|
9578
|
-
className: [_, v[c], w,
|
|
9578
|
+
className: [_, v[c], w, i != null ? i : ""].join(" ").trim().replace(/\s+/g, " "),
|
|
9579
9579
|
id: n,
|
|
9580
|
-
ref:
|
|
9580
|
+
ref: o,
|
|
9581
9581
|
role: E
|
|
9582
9582
|
}, m),
|
|
9583
9583
|
/* @__PURE__ */ e.createElement("div", { className: `${_}__content` }, /* @__PURE__ */ e.createElement("div", { className: `${_}__icon ${_}__icon-${c}` }, /* @__PURE__ */ e.createElement(
|
|
@@ -9692,32 +9692,32 @@ const m4 = () => {
|
|
|
9692
9692
|
itemsPerPage: s,
|
|
9693
9693
|
totalItemCount: a
|
|
9694
9694
|
}) => $1(() => {
|
|
9695
|
-
const u = Math.ceil(a / s), c = t + 5, l = 1,
|
|
9695
|
+
const u = Math.ceil(a / s), c = t + 5, l = 1, i = u;
|
|
9696
9696
|
if (c >= u)
|
|
9697
9697
|
return b2(1, u);
|
|
9698
9698
|
const m = Math.max(n - t, 1), g = Math.min(
|
|
9699
9699
|
n + t,
|
|
9700
9700
|
u
|
|
9701
|
-
), p = m > 2,
|
|
9702
|
-
if (!p &&
|
|
9701
|
+
), p = m > 2, o = g < u - 2;
|
|
9702
|
+
if (!p && o) {
|
|
9703
9703
|
const _ = 3 + 2 * t;
|
|
9704
9704
|
return [...b2(1, _), f2, u];
|
|
9705
9705
|
}
|
|
9706
|
-
if (p && !
|
|
9706
|
+
if (p && !o) {
|
|
9707
9707
|
const _ = 3 + 2 * t, v = b2(
|
|
9708
9708
|
u - _ + 1,
|
|
9709
9709
|
u
|
|
9710
9710
|
);
|
|
9711
9711
|
return [l, f2, ...v];
|
|
9712
9712
|
}
|
|
9713
|
-
if (p &&
|
|
9713
|
+
if (p && o) {
|
|
9714
9714
|
const _ = b2(m, g);
|
|
9715
9715
|
return [
|
|
9716
9716
|
l,
|
|
9717
9717
|
f2,
|
|
9718
9718
|
..._,
|
|
9719
9719
|
f2,
|
|
9720
|
-
|
|
9720
|
+
i
|
|
9721
9721
|
];
|
|
9722
9722
|
}
|
|
9723
9723
|
}, [a, s, t, n]), u4 = (g) => {
|
|
@@ -9733,7 +9733,7 @@ const m4 = () => {
|
|
|
9733
9733
|
},
|
|
9734
9734
|
onPageChange: c,
|
|
9735
9735
|
totalItemCount: l,
|
|
9736
|
-
className:
|
|
9736
|
+
className: i
|
|
9737
9737
|
} = p, m = R(p, [
|
|
9738
9738
|
"bufferCount",
|
|
9739
9739
|
"currentPage",
|
|
@@ -9745,21 +9745,21 @@ const m4 = () => {
|
|
|
9745
9745
|
"totalItemCount",
|
|
9746
9746
|
"className"
|
|
9747
9747
|
]);
|
|
9748
|
-
const
|
|
9748
|
+
const o = Jt({
|
|
9749
9749
|
currentPage: n,
|
|
9750
9750
|
totalItemCount: l,
|
|
9751
9751
|
bufferCount: t,
|
|
9752
9752
|
itemsPerPage: r
|
|
9753
|
-
}), _ =
|
|
9753
|
+
}), _ = o[o.length - 1], v = () => {
|
|
9754
9754
|
c(n + 1);
|
|
9755
9755
|
}, w = () => {
|
|
9756
9756
|
c(n - 1);
|
|
9757
|
-
}, b = "pds-pagination", E = `${b}__item`, f = `${E}--current`,
|
|
9758
|
-
return n === 0 ||
|
|
9757
|
+
}, b = "pds-pagination", E = `${b}__item`, f = `${E}--current`, d = `${E}--disabled`;
|
|
9758
|
+
return n === 0 || o.length < 2 ? null : /* @__PURE__ */ e.createElement(
|
|
9759
9759
|
"nav",
|
|
9760
9760
|
y({
|
|
9761
9761
|
"aria-labelledby": "pagination",
|
|
9762
|
-
className: N([b,
|
|
9762
|
+
className: N([b, i != null ? i : ""])
|
|
9763
9763
|
}, m),
|
|
9764
9764
|
/* @__PURE__ */ e.createElement(
|
|
9765
9765
|
i2,
|
|
@@ -9777,7 +9777,7 @@ const m4 = () => {
|
|
|
9777
9777
|
className: N([
|
|
9778
9778
|
E,
|
|
9779
9779
|
`${E}--prev`,
|
|
9780
|
-
n === 1 ?
|
|
9780
|
+
n === 1 ? d : void 0
|
|
9781
9781
|
])
|
|
9782
9782
|
},
|
|
9783
9783
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9790,7 +9790,7 @@ const m4 = () => {
|
|
|
9790
9790
|
},
|
|
9791
9791
|
/* @__PURE__ */ e.createElement(j, { iconName: "arrowLeft" })
|
|
9792
9792
|
)
|
|
9793
|
-
),
|
|
9793
|
+
), o.map((h, C) => h === f2 ? /* @__PURE__ */ e.createElement(
|
|
9794
9794
|
"li",
|
|
9795
9795
|
{
|
|
9796
9796
|
key: C,
|
|
@@ -9821,7 +9821,7 @@ const m4 = () => {
|
|
|
9821
9821
|
className: N([
|
|
9822
9822
|
E,
|
|
9823
9823
|
`${E}--next`,
|
|
9824
|
-
n === _ ?
|
|
9824
|
+
n === _ ? d : void 0
|
|
9825
9825
|
])
|
|
9826
9826
|
},
|
|
9827
9827
|
/* @__PURE__ */ e.createElement(
|
|
@@ -9850,42 +9850,42 @@ const m4 = () => {
|
|
|
9850
9850
|
"summary",
|
|
9851
9851
|
"className"
|
|
9852
9852
|
]);
|
|
9853
|
-
const [
|
|
9853
|
+
const [i, m] = X(s), p = ce(
|
|
9854
9854
|
n || `expansion-panel-${l2()}`
|
|
9855
|
-
).current,
|
|
9855
|
+
).current, o = "pds-expansion-panel", _ = ce(null), v = ce(null), w = ce(null);
|
|
9856
9856
|
return ae(() => {
|
|
9857
9857
|
const b = _.current, E = v.current, f = w.current;
|
|
9858
9858
|
if (!b || !E || !f) return;
|
|
9859
|
-
let
|
|
9859
|
+
let d = null, h = !1, C = !1;
|
|
9860
9860
|
const $ = (z) => {
|
|
9861
9861
|
z.preventDefault(), b.style.overflow = "hidden", h || !b.open ? M() : (C || b.open) && H();
|
|
9862
9862
|
}, H = () => {
|
|
9863
9863
|
h = !0, m(!1);
|
|
9864
9864
|
const z = `${b.offsetHeight}px`, S = `${E.offsetHeight}px`;
|
|
9865
|
-
|
|
9865
|
+
d && d.cancel(), d = b.animate(
|
|
9866
9866
|
{ height: [z, S] },
|
|
9867
9867
|
{
|
|
9868
9868
|
duration: f1,
|
|
9869
9869
|
easing: Fe
|
|
9870
9870
|
}
|
|
9871
|
-
),
|
|
9871
|
+
), d.onfinish = () => k(!1), d.oncancel = () => h = !1;
|
|
9872
9872
|
}, M = () => {
|
|
9873
9873
|
b.style.height = `${b.offsetHeight}px`, b.open = !0, m(!0), requestAnimationFrame(() => L());
|
|
9874
9874
|
}, L = () => {
|
|
9875
9875
|
C = !0;
|
|
9876
9876
|
const z = `${b.offsetHeight}px`, S = `${E.offsetHeight + f.offsetHeight}px`;
|
|
9877
|
-
|
|
9877
|
+
d && d.cancel(), d = b.animate(
|
|
9878
9878
|
{ height: [z, S] },
|
|
9879
9879
|
{
|
|
9880
9880
|
duration: f1,
|
|
9881
9881
|
easing: Fe
|
|
9882
9882
|
}
|
|
9883
|
-
),
|
|
9883
|
+
), d.onfinish = () => k(!0), d.oncancel = () => C = !1;
|
|
9884
9884
|
}, k = (z) => {
|
|
9885
|
-
b.open = z,
|
|
9885
|
+
b.open = z, d = null, h = !1, C = !1, b.style.height = b.style.overflow = "";
|
|
9886
9886
|
};
|
|
9887
9887
|
return E.addEventListener("click", $), () => E.removeEventListener("click", $);
|
|
9888
|
-
}, []), /* @__PURE__ */ e.createElement("div", y({ className: N([
|
|
9888
|
+
}, []), /* @__PURE__ */ e.createElement("div", y({ className: N([o, r]) }, u), /* @__PURE__ */ e.createElement(
|
|
9889
9889
|
"details",
|
|
9890
9890
|
{
|
|
9891
9891
|
key: p,
|
|
@@ -9897,10 +9897,10 @@ const m4 = () => {
|
|
|
9897
9897
|
j,
|
|
9898
9898
|
{
|
|
9899
9899
|
iconName: "angleDown",
|
|
9900
|
-
className: `${
|
|
9900
|
+
className: `${o}__icon ${i ? "rotated" : ""}`
|
|
9901
9901
|
}
|
|
9902
9902
|
)),
|
|
9903
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
9903
|
+
/* @__PURE__ */ e.createElement("div", { className: `${o}__content`, ref: w }, t)
|
|
9904
9904
|
));
|
|
9905
9905
|
}, h4 = (r) => {
|
|
9906
9906
|
var u = r, {
|
|
@@ -9921,14 +9921,14 @@ const m4 = () => {
|
|
|
9921
9921
|
t
|
|
9922
9922
|
);
|
|
9923
9923
|
}, f4 = (l) => {
|
|
9924
|
-
var
|
|
9924
|
+
var i = l, {
|
|
9925
9925
|
children: t,
|
|
9926
9926
|
hasStatusIndicator: n = !1,
|
|
9927
9927
|
padding: s = "standard",
|
|
9928
9928
|
statusType: a,
|
|
9929
9929
|
variant: r = "default",
|
|
9930
9930
|
className: u
|
|
9931
|
-
} =
|
|
9931
|
+
} = i, c = R(i, [
|
|
9932
9932
|
"children",
|
|
9933
9933
|
"hasStatusIndicator",
|
|
9934
9934
|
"padding",
|
|
@@ -9936,14 +9936,14 @@ const m4 = () => {
|
|
|
9936
9936
|
"variant",
|
|
9937
9937
|
"className"
|
|
9938
9938
|
]);
|
|
9939
|
-
const m = "pds-panel", g = n ? `${m}__status ${m}__status-${a}` : null, p = `${m}--${r}`,
|
|
9939
|
+
const m = "pds-panel", g = n ? `${m}__status ${m}__status-${a}` : null, p = `${m}--${r}`, o = `${m}__content`, _ = s !== "standard" ? `${o}--pad-${s}` : null;
|
|
9940
9940
|
return /* @__PURE__ */ e.createElement(
|
|
9941
9941
|
"div",
|
|
9942
9942
|
y({
|
|
9943
9943
|
className: [m, p, u != null ? u : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
9944
9944
|
}, c),
|
|
9945
9945
|
n && a && /* @__PURE__ */ e.createElement("span", { className: g }),
|
|
9946
|
-
/* @__PURE__ */ e.createElement("div", { className: N([
|
|
9946
|
+
/* @__PURE__ */ e.createElement("div", { className: N([o, _]) }, t)
|
|
9947
9947
|
);
|
|
9948
9948
|
}, g4 = (u) => {
|
|
9949
9949
|
var c = u, {
|
|
@@ -9957,13 +9957,13 @@ const m4 = () => {
|
|
|
9957
9957
|
"hasBorder",
|
|
9958
9958
|
"className"
|
|
9959
9959
|
]);
|
|
9960
|
-
const l = "pds-panel-list",
|
|
9960
|
+
const l = "pds-panel-list", i = t !== "default" ? `${l}--${t}` : null, m = s ? null : `${l}--borderless`;
|
|
9961
9961
|
return /* @__PURE__ */ e.createElement(
|
|
9962
9962
|
"ul",
|
|
9963
9963
|
y({
|
|
9964
9964
|
className: N([
|
|
9965
9965
|
l,
|
|
9966
|
-
|
|
9966
|
+
i,
|
|
9967
9967
|
m,
|
|
9968
9968
|
a != null ? a : ""
|
|
9969
9969
|
])
|
|
@@ -9982,11 +9982,11 @@ const m4 = () => {
|
|
|
9982
9982
|
"isExpandable",
|
|
9983
9983
|
"expandButtonAriaLabel"
|
|
9984
9984
|
]);
|
|
9985
|
-
const l = "pds-panel-row", [
|
|
9985
|
+
const l = "pds-panel-row", [i, m] = X(!1), g = ce(null), p = ce(null), o = Be(t), _ = o["items-left"], v = o["items-right"], w = o["items-below"], b = () => {
|
|
9986
9986
|
const E = p.current, f = g.current;
|
|
9987
9987
|
if (!E || !f) return;
|
|
9988
|
-
const
|
|
9989
|
-
if (m(
|
|
9988
|
+
const d = !i;
|
|
9989
|
+
if (m(d), d) {
|
|
9990
9990
|
E.style.display = "block", E.style.height = "auto";
|
|
9991
9991
|
const h = `${E.scrollHeight}px`;
|
|
9992
9992
|
E.animate(
|
|
@@ -10046,14 +10046,14 @@ const m4 = () => {
|
|
|
10046
10046
|
{
|
|
10047
10047
|
className: `${l}__expand-button`,
|
|
10048
10048
|
onClick: b,
|
|
10049
|
-
"aria-expanded":
|
|
10049
|
+
"aria-expanded": i,
|
|
10050
10050
|
"aria-label": a
|
|
10051
10051
|
},
|
|
10052
10052
|
/* @__PURE__ */ e.createElement(
|
|
10053
10053
|
j,
|
|
10054
10054
|
{
|
|
10055
10055
|
iconName: "angleDown",
|
|
10056
|
-
className: `${l}__expand-icon ${
|
|
10056
|
+
className: `${l}__expand-icon ${i ? "rotated" : ""}`
|
|
10057
10057
|
}
|
|
10058
10058
|
)
|
|
10059
10059
|
)
|
|
@@ -10079,12 +10079,12 @@ const m4 = () => {
|
|
|
10079
10079
|
},
|
|
10080
10080
|
placement: c = "top",
|
|
10081
10081
|
title: l,
|
|
10082
|
-
triggerIcon:
|
|
10082
|
+
triggerIcon: i = "circleInfo",
|
|
10083
10083
|
triggerAccessibleText: m = "Show more information",
|
|
10084
10084
|
popoverIsOpen: g = !1,
|
|
10085
10085
|
setPopoverIsOpen: p = () => {
|
|
10086
10086
|
},
|
|
10087
|
-
className:
|
|
10087
|
+
className: o,
|
|
10088
10088
|
classNameContainer: _
|
|
10089
10089
|
} = b, v = R(b, [
|
|
10090
10090
|
"content",
|
|
@@ -10109,9 +10109,9 @@ const m4 = () => {
|
|
|
10109
10109
|
}, [g]), ae(() => {
|
|
10110
10110
|
p(E);
|
|
10111
10111
|
}, [E]);
|
|
10112
|
-
const
|
|
10112
|
+
const d = typeof s, h = "pds-popover", C = N([
|
|
10113
10113
|
`${h}__trigger-custom`,
|
|
10114
|
-
|
|
10114
|
+
d === "string" ? `${h}__trigger-text` : ""
|
|
10115
10115
|
]), $ = s ? r : 0, H = ce(null), { refs: M, floatingStyles: L, context: k, middlewareData: z } = Ae({
|
|
10116
10116
|
placement: c,
|
|
10117
10117
|
open: E,
|
|
@@ -10144,7 +10144,7 @@ const m4 = () => {
|
|
|
10144
10144
|
}[V]
|
|
10145
10145
|
})
|
|
10146
10146
|
});
|
|
10147
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([h,
|
|
10147
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([h, o]) }, v), /* @__PURE__ */ e.createElement(
|
|
10148
10148
|
"span",
|
|
10149
10149
|
y({
|
|
10150
10150
|
className: `${h}__trigger`,
|
|
@@ -10155,7 +10155,7 @@ const m4 = () => {
|
|
|
10155
10155
|
s ? /* @__PURE__ */ e.createElement("span", { className: C }, s) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, m), /* @__PURE__ */ e.createElement(
|
|
10156
10156
|
j,
|
|
10157
10157
|
{
|
|
10158
|
-
iconName:
|
|
10158
|
+
iconName: i,
|
|
10159
10159
|
className: `${h}__icon`,
|
|
10160
10160
|
iconSize: "md"
|
|
10161
10161
|
}
|
|
@@ -10205,7 +10205,7 @@ const m4 = () => {
|
|
|
10205
10205
|
warning: "--pds-color-status-warning-foreground",
|
|
10206
10206
|
critical: "--pds-color-status-critical-foreground"
|
|
10207
10207
|
}, E4 = (p) => {
|
|
10208
|
-
var
|
|
10208
|
+
var o = p, {
|
|
10209
10209
|
colorBreakpoints: t = [
|
|
10210
10210
|
{ colorType: "info", percentage: 0 },
|
|
10211
10211
|
{ colorType: "success", percentage: 100 }
|
|
@@ -10217,9 +10217,9 @@ const m4 = () => {
|
|
|
10217
10217
|
percentage: u,
|
|
10218
10218
|
showLabel: c = !1,
|
|
10219
10219
|
showPercentage: l = !1,
|
|
10220
|
-
size:
|
|
10220
|
+
size: i = "md",
|
|
10221
10221
|
className: m
|
|
10222
|
-
} =
|
|
10222
|
+
} = o, g = R(o, [
|
|
10223
10223
|
"colorBreakpoints",
|
|
10224
10224
|
"id",
|
|
10225
10225
|
"label",
|
|
@@ -10231,12 +10231,12 @@ const m4 = () => {
|
|
|
10231
10231
|
"size",
|
|
10232
10232
|
"className"
|
|
10233
10233
|
]);
|
|
10234
|
-
const _ = n || l2(), v = "pds-progress-bar", w = c ? `${v}__label` : "visually-hidden", b = `${v}__track ${v}__track--${
|
|
10234
|
+
const _ = n || l2(), v = "pds-progress-bar", w = c ? `${v}__label` : "visually-hidden", b = `${v}__track ${v}__track--${i}`, E = u > 100 ? 100 : u;
|
|
10235
10235
|
let f = "neutral";
|
|
10236
10236
|
t.forEach(($) => {
|
|
10237
10237
|
u >= $.percentage && (f = $.colorType);
|
|
10238
10238
|
});
|
|
10239
|
-
const
|
|
10239
|
+
const d = /* @__PURE__ */ e.createElement("div", { className: `${v}__message` }, a), h = a && r === "above", C = a && r === "below";
|
|
10240
10240
|
return /* @__PURE__ */ e.createElement(
|
|
10241
10241
|
"div",
|
|
10242
10242
|
y({
|
|
@@ -10244,7 +10244,7 @@ const m4 = () => {
|
|
|
10244
10244
|
style: { "--bar-percentage": `${E}%` }
|
|
10245
10245
|
}, g),
|
|
10246
10246
|
/* @__PURE__ */ e.createElement("div", { id: _, className: w }, s),
|
|
10247
|
-
(h || l) && /* @__PURE__ */ e.createElement("div", { className: `${v}__details` }, h &&
|
|
10247
|
+
(h || l) && /* @__PURE__ */ e.createElement("div", { className: `${v}__details` }, h && d, l && /* @__PURE__ */ e.createElement(
|
|
10248
10248
|
"div",
|
|
10249
10249
|
{
|
|
10250
10250
|
className: `${v}__percentage`,
|
|
@@ -10274,7 +10274,7 @@ const m4 = () => {
|
|
|
10274
10274
|
}
|
|
10275
10275
|
)
|
|
10276
10276
|
)),
|
|
10277
|
-
C &&
|
|
10277
|
+
C && d
|
|
10278
10278
|
);
|
|
10279
10279
|
}, tn = (m) => {
|
|
10280
10280
|
var g = m, {
|
|
@@ -10286,7 +10286,7 @@ const m4 = () => {
|
|
|
10286
10286
|
showPercentage: u = !1,
|
|
10287
10287
|
size: c = "md",
|
|
10288
10288
|
className: l
|
|
10289
|
-
} = g,
|
|
10289
|
+
} = g, i = R(g, [
|
|
10290
10290
|
"id",
|
|
10291
10291
|
"innerLabel",
|
|
10292
10292
|
"label",
|
|
@@ -10296,25 +10296,25 @@ const m4 = () => {
|
|
|
10296
10296
|
"size",
|
|
10297
10297
|
"className"
|
|
10298
10298
|
]);
|
|
10299
|
-
const p = t || l2(),
|
|
10299
|
+
const p = t || l2(), o = "pds-progress-ring", _ = r ? `${o}__label` : "visually-hidden", v = `${o}__loading-text ${o}__loading-text--${c}`, w = ($) => $ * 16;
|
|
10300
10300
|
let b = w(Ot), E = 7;
|
|
10301
10301
|
c === "sm" && (b = w(Rt), E = E / 1.25), c === "lg" && (b = w(Ft), E = E * 1.25);
|
|
10302
|
-
const f = b / 2 - E / 2,
|
|
10302
|
+
const f = b / 2 - E / 2, d = 2 * Math.PI * f, h = d - d * a / 100;
|
|
10303
10303
|
let C;
|
|
10304
10304
|
return n ? C = n : u ? C = `${a}%` : C = "", /* @__PURE__ */ e.createElement(
|
|
10305
10305
|
"div",
|
|
10306
10306
|
y({
|
|
10307
|
-
className: [
|
|
10307
|
+
className: [o, l].join(" ").trim().replace(/\s+/g, " "),
|
|
10308
10308
|
style: {
|
|
10309
10309
|
"--ring-stroke-dashoffset": h,
|
|
10310
|
-
"--ring-stroke-dasharray":
|
|
10310
|
+
"--ring-stroke-dasharray": d
|
|
10311
10311
|
}
|
|
10312
|
-
},
|
|
10312
|
+
}, i),
|
|
10313
10313
|
/* @__PURE__ */ e.createElement("div", { id: p, className: _ }, s),
|
|
10314
10314
|
/* @__PURE__ */ e.createElement(
|
|
10315
10315
|
"div",
|
|
10316
10316
|
{
|
|
10317
|
-
className: `${
|
|
10317
|
+
className: `${o}__ring`,
|
|
10318
10318
|
role: "progressbar",
|
|
10319
10319
|
"aria-labelledby": p,
|
|
10320
10320
|
"aria-valuemin": 0,
|
|
@@ -10331,7 +10331,7 @@ const m4 = () => {
|
|
|
10331
10331
|
/* @__PURE__ */ e.createElement(
|
|
10332
10332
|
"circle",
|
|
10333
10333
|
{
|
|
10334
|
-
className: `${
|
|
10334
|
+
className: `${o}__track`,
|
|
10335
10335
|
cx: b / 2,
|
|
10336
10336
|
cy: b / 2,
|
|
10337
10337
|
r: f,
|
|
@@ -10341,12 +10341,12 @@ const m4 = () => {
|
|
|
10341
10341
|
/* @__PURE__ */ e.createElement(
|
|
10342
10342
|
"circle",
|
|
10343
10343
|
{
|
|
10344
|
-
className: `${
|
|
10344
|
+
className: `${o}__progress`,
|
|
10345
10345
|
cx: b / 2,
|
|
10346
10346
|
cy: b / 2,
|
|
10347
10347
|
r: f,
|
|
10348
10348
|
strokeWidth: E,
|
|
10349
|
-
strokeDasharray:
|
|
10349
|
+
strokeDasharray: d,
|
|
10350
10350
|
strokeDashoffset: h,
|
|
10351
10351
|
transform: `rotate(-90 ${b / 2} ${b / 2})`
|
|
10352
10352
|
}
|
|
@@ -10381,25 +10381,25 @@ const m4 = () => {
|
|
|
10381
10381
|
"quote",
|
|
10382
10382
|
"className"
|
|
10383
10383
|
]);
|
|
10384
|
-
const
|
|
10384
|
+
const i = "pds-pull-quote", m = `${i}--${s}`;
|
|
10385
10385
|
return /* @__PURE__ */ e.createElement(
|
|
10386
10386
|
"div",
|
|
10387
10387
|
y({
|
|
10388
|
-
className: [
|
|
10388
|
+
className: [i, m, r].join(" ").trim().replace(/\s+/g, " ")
|
|
10389
10389
|
}, u),
|
|
10390
|
-
n && s === "stand-alone" && /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10391
|
-
/* @__PURE__ */ e.createElement("div", { className: `${
|
|
10390
|
+
n && s === "stand-alone" && /* @__PURE__ */ e.createElement("div", { className: `${i}__image` }, /* @__PURE__ */ e.createElement("img", { src: n, alt: "" })),
|
|
10391
|
+
/* @__PURE__ */ e.createElement("div", { className: `${i}__quote-wrapper` }, /* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon--before` }, /* @__PURE__ */ e.createElement(j, { iconName: "quotesLeft", iconSize: "4xl" })), /* @__PURE__ */ e.createElement("div", { className: `${i}__text-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10392
10392
|
"div",
|
|
10393
10393
|
{
|
|
10394
|
-
className: `${
|
|
10394
|
+
className: `${i}__quote pds-quote-text pds-quote-text--lg`
|
|
10395
10395
|
},
|
|
10396
10396
|
a
|
|
10397
|
-
), /* @__PURE__ */ e.createElement("div", { className: `${
|
|
10397
|
+
), /* @__PURE__ */ e.createElement("div", { className: `${i}__attribution` }, /* @__PURE__ */ e.createElement("span", { className: `${i}__name` }, t.name), t.title && /* @__PURE__ */ e.createElement("span", { className: `${i}__title` }, ", ", t.title), t.org && /* @__PURE__ */ e.createElement("span", { className: `${i}__org` }, ", ", t.org))), /* @__PURE__ */ e.createElement("div", { className: `${i}__icon ${i}__icon--after` }, /* @__PURE__ */ e.createElement(j, { iconName: "quotesRight", iconSize: "4xl" })))
|
|
10398
10398
|
);
|
|
10399
10399
|
};
|
|
10400
10400
|
var nn = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.WORKING = "working", t.CHECKED = "checked", t))(nn || {});
|
|
10401
|
-
const b4 = (
|
|
10402
|
-
var m =
|
|
10401
|
+
const b4 = (i) => {
|
|
10402
|
+
var m = i, {
|
|
10403
10403
|
alignment: t = "left",
|
|
10404
10404
|
componentWidth: n,
|
|
10405
10405
|
initialState: s,
|
|
@@ -10419,7 +10419,7 @@ const b4 = (o) => {
|
|
|
10419
10419
|
const [g, p] = X(
|
|
10420
10420
|
s != null ? s : "default"
|
|
10421
10421
|
/* DEFAULT */
|
|
10422
|
-
),
|
|
10422
|
+
), o = y({
|
|
10423
10423
|
checkForUpdates: "Check for updates",
|
|
10424
10424
|
checking: "Checking...",
|
|
10425
10425
|
checked: "Last checked",
|
|
@@ -10427,9 +10427,9 @@ const b4 = (o) => {
|
|
|
10427
10427
|
}, a), _ = () => {
|
|
10428
10428
|
switch (g) {
|
|
10429
10429
|
case "default":
|
|
10430
|
-
return
|
|
10430
|
+
return o.checkForUpdates;
|
|
10431
10431
|
case "working":
|
|
10432
|
-
return
|
|
10432
|
+
return o.checking;
|
|
10433
10433
|
case "checked":
|
|
10434
10434
|
if (r) {
|
|
10435
10435
|
const C = r instanceof Date ? r : new Date(r), $ = Date.now() - C.getTime(), H = Math.floor($ / 1e3), M = Math.floor(H / 60), L = Math.floor(M / 60), k = Math.floor(L / 24), z = {
|
|
@@ -10441,9 +10441,9 @@ const b4 = (o) => {
|
|
|
10441
10441
|
return k > 7 ? S = C.toLocaleDateString(
|
|
10442
10442
|
void 0,
|
|
10443
10443
|
z
|
|
10444
|
-
) : k > 0 && k <= 7 ? S = `${k} day${k !== 1 ? "s" : ""} ago` : L > 0 ? S = `${L} hour${L !== 1 ? "s" : ""} ago` : M > 0 ? S = `${M} minute${M !== 1 ? "s" : ""} ago` : S = `${H} second${H !== 1 ? "s" : ""} ago`, `${
|
|
10444
|
+
) : k > 0 && k <= 7 ? S = `${k} day${k !== 1 ? "s" : ""} ago` : L > 0 ? S = `${L} hour${L !== 1 ? "s" : ""} ago` : M > 0 ? S = `${M} minute${M !== 1 ? "s" : ""} ago` : S = `${H} second${H !== 1 ? "s" : ""} ago`, `${o.checked} ${S}`;
|
|
10445
10445
|
}
|
|
10446
|
-
return
|
|
10446
|
+
return o.checked;
|
|
10447
10447
|
}
|
|
10448
10448
|
}, v = () => A2(void 0, null, function* () {
|
|
10449
10449
|
if (g !== "working") {
|
|
@@ -10466,7 +10466,7 @@ const b4 = (o) => {
|
|
|
10466
10466
|
}), w = "pds-refresh-checker", b = `${w}--${t}`, E = N([
|
|
10467
10467
|
`${w}__button`,
|
|
10468
10468
|
g === "working" ? `${w}__button--spinning` : ""
|
|
10469
|
-
]), f = n !== null && n > 0 ? `${n}rem` : "100%",
|
|
10469
|
+
]), f = n !== null && n > 0 ? `${n}rem` : "100%", d = /* @__PURE__ */ e.createElement("span", { className: `${w}__tooltip-icon` }, /* @__PURE__ */ e.createElement(
|
|
10470
10470
|
j,
|
|
10471
10471
|
{
|
|
10472
10472
|
iconName: "rotate",
|
|
@@ -10487,14 +10487,14 @@ const b4 = (o) => {
|
|
|
10487
10487
|
className: E,
|
|
10488
10488
|
onClick: v,
|
|
10489
10489
|
"aria-live": "polite",
|
|
10490
|
-
"aria-label":
|
|
10490
|
+
"aria-label": o.ariaLabel
|
|
10491
10491
|
},
|
|
10492
10492
|
t === "right" && h,
|
|
10493
10493
|
/* @__PURE__ */ e.createElement(
|
|
10494
10494
|
xe,
|
|
10495
10495
|
{
|
|
10496
|
-
content:
|
|
10497
|
-
customTrigger:
|
|
10496
|
+
content: o.tooltipContent || o.ariaLabel,
|
|
10497
|
+
customTrigger: d,
|
|
10498
10498
|
triggerIconColor: "default",
|
|
10499
10499
|
triggerIconSize: "sm"
|
|
10500
10500
|
}
|
|
@@ -10514,8 +10514,8 @@ const b4 = (o) => {
|
|
|
10514
10514
|
"siteType",
|
|
10515
10515
|
"className"
|
|
10516
10516
|
]);
|
|
10517
|
-
const l = "pds-site-dashboard-heading",
|
|
10518
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement(j, { iconName: m, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, t), n && /* @__PURE__ */ e.createElement(g2, { label:
|
|
10517
|
+
const l = "pds-site-dashboard-heading", i = qt[n], m = s ? F1[s] : "bolt";
|
|
10518
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement(j, { iconName: m, iconSize: "2xl" }), /* @__PURE__ */ e.createElement("h1", { className: "pds-ts-2xl" }, t), n && /* @__PURE__ */ e.createElement(g2, { label: i, color: "neutral", size: "md" }));
|
|
10519
10519
|
}, G2 = {
|
|
10520
10520
|
bluesky: {
|
|
10521
10521
|
icon: "bluesky",
|
|
@@ -10589,11 +10589,11 @@ const b4 = (o) => {
|
|
|
10589
10589
|
"type",
|
|
10590
10590
|
"className"
|
|
10591
10591
|
]);
|
|
10592
|
-
const l = "pds-status-indicator",
|
|
10592
|
+
const l = "pds-status-indicator", i = `${l}--${s}`, m = `${l}--${n}`;
|
|
10593
10593
|
return /* @__PURE__ */ e.createElement(
|
|
10594
10594
|
"div",
|
|
10595
10595
|
y({
|
|
10596
|
-
className: [l,
|
|
10596
|
+
className: [l, i, m, a != null ? a : ""].join(" ").trim().replace(/\s+/g, " ")
|
|
10597
10597
|
}, r),
|
|
10598
10598
|
s === "working" ? /* @__PURE__ */ e.createElement(
|
|
10599
10599
|
V2,
|
|
@@ -10620,10 +10620,10 @@ const b4 = (o) => {
|
|
|
10620
10620
|
"translatableLabels",
|
|
10621
10621
|
"className"
|
|
10622
10622
|
]);
|
|
10623
|
-
const c = "pds-stepper", l = "pds-stepper-mobile",
|
|
10623
|
+
const c = "pds-stepper", l = "pds-stepper-mobile", i = ce(), [m] = x2(i), g = m.width, p = Number(
|
|
10624
10624
|
getComputedStyle(document.body).getPropertyValue("--pds-stepper-step-content-width").replace("rem", "")
|
|
10625
|
-
) * 16,
|
|
10626
|
-
const C = h + 1, $ = h === b, H = h < b, M =
|
|
10625
|
+
) * 16, o = -40, _ = 2, v = 5, w = t.length, b = t.map((d) => d.isCurrent).lastIndexOf(!0), E = t.map((d, h) => {
|
|
10626
|
+
const C = h + 1, $ = h === b, H = h < b, M = d.hasError && $, k = (g - w * p) / (w + (w - 2)), z = p + k * 2, S = p + k, B = k + o * -1, D = h === 0, U = h === w - 1;
|
|
10627
10627
|
let O = z;
|
|
10628
10628
|
(D || U) && (O = S);
|
|
10629
10629
|
const Z = `${c}__step`, W = [Z];
|
|
@@ -10637,11 +10637,11 @@ const b4 = (o) => {
|
|
|
10637
10637
|
iconSize: "md",
|
|
10638
10638
|
className: `${c}__step-complete-icon`
|
|
10639
10639
|
}
|
|
10640
|
-
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }), te = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` },
|
|
10640
|
+
)) : /* @__PURE__ */ e.createElement("div", { "aria-hidden": "true", className: `${c}__step-indicator` }), te = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-label` }, d.label);
|
|
10641
10641
|
let P = /* @__PURE__ */ e.createElement("div", { className: `${c}__step-content` }, te, J);
|
|
10642
|
-
if (H &&
|
|
10642
|
+
if (H && d.callback) {
|
|
10643
10643
|
const F = (q) => {
|
|
10644
|
-
|
|
10644
|
+
d.callback(d), q.preventDefault();
|
|
10645
10645
|
};
|
|
10646
10646
|
P = /* @__PURE__ */ e.createElement(
|
|
10647
10647
|
"button",
|
|
@@ -10657,8 +10657,8 @@ const b4 = (o) => {
|
|
|
10657
10657
|
return /* @__PURE__ */ e.createElement(
|
|
10658
10658
|
"li",
|
|
10659
10659
|
{
|
|
10660
|
-
key:
|
|
10661
|
-
id:
|
|
10660
|
+
key: d.id,
|
|
10661
|
+
id: d.id,
|
|
10662
10662
|
"aria-label": Q,
|
|
10663
10663
|
"aria-posinset": C,
|
|
10664
10664
|
"aria-setsize": w,
|
|
@@ -10672,7 +10672,7 @@ const b4 = (o) => {
|
|
|
10672
10672
|
className: `${c}__connector ${c}__connector--before`,
|
|
10673
10673
|
style: {
|
|
10674
10674
|
width: B,
|
|
10675
|
-
marginRight:
|
|
10675
|
+
marginRight: o
|
|
10676
10676
|
}
|
|
10677
10677
|
}
|
|
10678
10678
|
),
|
|
@@ -10681,12 +10681,12 @@ const b4 = (o) => {
|
|
|
10681
10681
|
"span",
|
|
10682
10682
|
{
|
|
10683
10683
|
className: `${c}__connector ${c}__connector--after`,
|
|
10684
|
-
style: { width: B, marginLeft:
|
|
10684
|
+
style: { width: B, marginLeft: o }
|
|
10685
10685
|
}
|
|
10686
10686
|
)
|
|
10687
10687
|
);
|
|
10688
|
-
}), f = t.map((
|
|
10689
|
-
const C = h + 1, $ = h === b, H = h === w - 1, M =
|
|
10688
|
+
}), f = t.map((d, h) => {
|
|
10689
|
+
const C = h + 1, $ = h === b, H = h === w - 1, M = d.hasError && $, L = t[b + 1] ? t[b + 1].label : null;
|
|
10690
10690
|
if ($) {
|
|
10691
10691
|
const k = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "visually-hidden" }, n.step, " "), C, " of ", w), z = C / w * 100, S = M ? {
|
|
10692
10692
|
"--pds-color-status-info-foreground": "var(--pds-color-status-critical-foreground)"
|
|
@@ -10696,8 +10696,8 @@ const b4 = (o) => {
|
|
|
10696
10696
|
return /* @__PURE__ */ e.createElement(
|
|
10697
10697
|
"div",
|
|
10698
10698
|
{
|
|
10699
|
-
key:
|
|
10700
|
-
id: `${
|
|
10699
|
+
key: d.id,
|
|
10700
|
+
id: `${d.id}--mobile`,
|
|
10701
10701
|
className: `${l}__step`
|
|
10702
10702
|
},
|
|
10703
10703
|
/* @__PURE__ */ e.createElement("div", { className: `${l}__progress-indicator` }, /* @__PURE__ */ e.createElement(
|
|
@@ -10717,7 +10717,7 @@ const b4 = (o) => {
|
|
|
10717
10717
|
iconSize: "md",
|
|
10718
10718
|
className: `${l}__error-icon`
|
|
10719
10719
|
}
|
|
10720
|
-
)),
|
|
10720
|
+
)), d.label), !H && /* @__PURE__ */ e.createElement("div", { className: `${l}__next-step` }, `${n.next}: ${L}`))
|
|
10721
10721
|
);
|
|
10722
10722
|
}
|
|
10723
10723
|
});
|
|
@@ -10728,7 +10728,7 @@ const b4 = (o) => {
|
|
|
10728
10728
|
className: [c, s].join(" ").trim().replace(/\s+/g, " "),
|
|
10729
10729
|
"data-steps": w
|
|
10730
10730
|
}, a),
|
|
10731
|
-
/* @__PURE__ */ e.createElement("ol", { className: `${c}__steps`, ref:
|
|
10731
|
+
/* @__PURE__ */ e.createElement("ol", { className: `${c}__steps`, ref: i }, E)
|
|
10732
10732
|
), /* @__PURE__ */ e.createElement(
|
|
10733
10733
|
"div",
|
|
10734
10734
|
y({
|
|
@@ -10747,13 +10747,13 @@ const b4 = (o) => {
|
|
|
10747
10747
|
"rowData",
|
|
10748
10748
|
"className"
|
|
10749
10749
|
]);
|
|
10750
|
-
const [c] = X(t), [l,
|
|
10751
|
-
|
|
10752
|
-
},
|
|
10753
|
-
|
|
10750
|
+
const [c] = X(t), [l, i] = X(n), [m, g] = X({ order: "asc", key: "" }), p = (b) => {
|
|
10751
|
+
i(l.sort((E, f) => E[b].localeCompare(f[b]))), g({ order: "desc", key: b });
|
|
10752
|
+
}, o = (b) => {
|
|
10753
|
+
i(l.sort((E, f) => f[b].localeCompare(E[b]))), g({ order: "asc", key: b });
|
|
10754
10754
|
}, _ = (b, E) => {
|
|
10755
|
-
g(me(y({}, m), { key: E })), m.order === "asc" ? p(E) :
|
|
10756
|
-
}, v = (b, E) => /* @__PURE__ */ e.createElement("tr", { id: E, key: `table-row-${E}` }, b.map((f,
|
|
10755
|
+
g(me(y({}, m), { key: E })), m.order === "asc" ? p(E) : o(E);
|
|
10756
|
+
}, v = (b, E) => /* @__PURE__ */ e.createElement("tr", { id: E, key: `table-row-${E}` }, b.map((f, d) => /* @__PURE__ */ e.createElement("td", { key: `${E}-cell-${d}` }, /* @__PURE__ */ e.createElement("span", null, f)))), w = "pds-table";
|
|
10757
10757
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("table", y({ className: N([w, s]) }, a), /* @__PURE__ */ e.createElement("thead", null, /* @__PURE__ */ e.createElement("tr", null, c.map((b, E) => /* @__PURE__ */ e.createElement("th", { key: `header-${E}` }, b.sortable ? /* @__PURE__ */ e.createElement("div", { className: `${w}__sort-wrapper` }, /* @__PURE__ */ e.createElement(
|
|
10758
10758
|
"span",
|
|
10759
10759
|
{
|
|
@@ -10794,7 +10794,7 @@ const b4 = (o) => {
|
|
|
10794
10794
|
showHeading: u = !1,
|
|
10795
10795
|
sourceID: c = "pds-toc-source",
|
|
10796
10796
|
className: l
|
|
10797
|
-
} = g,
|
|
10797
|
+
} = g, i = R(g, [
|
|
10798
10798
|
"appendIds",
|
|
10799
10799
|
"ariaLabel",
|
|
10800
10800
|
"headingLevel",
|
|
@@ -10804,7 +10804,7 @@ const b4 = (o) => {
|
|
|
10804
10804
|
"sourceID",
|
|
10805
10805
|
"className"
|
|
10806
10806
|
]);
|
|
10807
|
-
const p = "pds-toc",
|
|
10807
|
+
const p = "pds-toc", o = [
|
|
10808
10808
|
" ",
|
|
10809
10809
|
"/",
|
|
10810
10810
|
".",
|
|
@@ -10829,7 +10829,7 @@ const b4 = (o) => {
|
|
|
10829
10829
|
document.querySelectorAll(_)
|
|
10830
10830
|
);
|
|
10831
10831
|
k.map((S) => {
|
|
10832
|
-
|
|
10832
|
+
o.forEach((B) => {
|
|
10833
10833
|
S.id.includes(B) && (S.id = S.id.replaceAll(B, "-"));
|
|
10834
10834
|
});
|
|
10835
10835
|
}), k.map((S) => {
|
|
@@ -10917,7 +10917,7 @@ const b4 = (o) => {
|
|
|
10917
10917
|
y({
|
|
10918
10918
|
"aria-label": n,
|
|
10919
10919
|
className: N([p, l])
|
|
10920
|
-
},
|
|
10920
|
+
}, i),
|
|
10921
10921
|
a && /* @__PURE__ */ e.createElement(
|
|
10922
10922
|
i2,
|
|
10923
10923
|
{
|
|
@@ -10930,7 +10930,7 @@ const b4 = (o) => {
|
|
|
10930
10930
|
/* @__PURE__ */ e.createElement(H, { headings: b, activeID: E })
|
|
10931
10931
|
);
|
|
10932
10932
|
}, k4 = (l) => {
|
|
10933
|
-
var
|
|
10933
|
+
var i = l, {
|
|
10934
10934
|
ariaLabel: t,
|
|
10935
10935
|
defaultSelected: n = 0,
|
|
10936
10936
|
onActiveTabChange: s = () => {
|
|
@@ -10938,7 +10938,7 @@ const b4 = (o) => {
|
|
|
10938
10938
|
selectedTab: a,
|
|
10939
10939
|
tabs: r,
|
|
10940
10940
|
className: u
|
|
10941
|
-
} =
|
|
10941
|
+
} = i, c = R(i, [
|
|
10942
10942
|
"ariaLabel",
|
|
10943
10943
|
"defaultSelected",
|
|
10944
10944
|
"onActiveTabChange",
|
|
@@ -10950,7 +10950,7 @@ const b4 = (o) => {
|
|
|
10950
10950
|
ae(() => {
|
|
10951
10951
|
a !== void 0 && p(a);
|
|
10952
10952
|
}, [a]);
|
|
10953
|
-
const
|
|
10953
|
+
const o = (b) => {
|
|
10954
10954
|
const E = b.currentTarget.getAttribute("data-tabnumber");
|
|
10955
10955
|
if (E) {
|
|
10956
10956
|
const f = parseInt(E, 10);
|
|
@@ -10971,12 +10971,12 @@ const b4 = (o) => {
|
|
|
10971
10971
|
}, [g]);
|
|
10972
10972
|
const v = (b, E) => {
|
|
10973
10973
|
const f = g;
|
|
10974
|
-
let
|
|
10975
|
-
|
|
10974
|
+
let d = _.current[E === "next" ? f + 1 < _.current.length ? f + 1 : 0 : f - 1 >= 0 ? f - 1 : _.current.length - 1];
|
|
10975
|
+
d || (d = E == "next" ? _.current[b + 1] == null ? _.current[0] : _.current[b + 1] : _.current[b - 1]), d.focus();
|
|
10976
10976
|
}, w = (b) => {
|
|
10977
10977
|
const E = _.current.length, f = () => {
|
|
10978
10978
|
v((g + 1) % E, "next"), p(g + 1);
|
|
10979
|
-
},
|
|
10979
|
+
}, d = () => {
|
|
10980
10980
|
v((g - 1 + E) % E, "prev"), p(g - 1);
|
|
10981
10981
|
}, h = () => {
|
|
10982
10982
|
v(0), p(0);
|
|
@@ -10986,7 +10986,7 @@ const b4 = (o) => {
|
|
|
10986
10986
|
_.current[g].focus();
|
|
10987
10987
|
}, M = {
|
|
10988
10988
|
ArrowRight: f,
|
|
10989
|
-
ArrowLeft:
|
|
10989
|
+
ArrowLeft: d,
|
|
10990
10990
|
Home: h,
|
|
10991
10991
|
End: C,
|
|
10992
10992
|
Space: $,
|
|
@@ -11002,7 +11002,7 @@ const b4 = (o) => {
|
|
|
11002
11002
|
"aria-label": t,
|
|
11003
11003
|
"aria-orientation": "horizontal"
|
|
11004
11004
|
},
|
|
11005
|
-
r.map(({ disabled: b, icon: E, tabId: f, tabLabel:
|
|
11005
|
+
r.map(({ disabled: b, icon: E, tabId: f, tabLabel: d, tally: h }, C) => /* @__PURE__ */ e.createElement(
|
|
11006
11006
|
"button",
|
|
11007
11007
|
{
|
|
11008
11008
|
className: `${m}__tab`,
|
|
@@ -11018,12 +11018,12 @@ const b4 = (o) => {
|
|
|
11018
11018
|
"aria-controls": `${m}__tab--${C}`,
|
|
11019
11019
|
tabIndex: g === C ? 0 : -1,
|
|
11020
11020
|
"aria-disabled": !!b,
|
|
11021
|
-
onClick: b ? null :
|
|
11021
|
+
onClick: b ? null : o,
|
|
11022
11022
|
type: "button"
|
|
11023
11023
|
},
|
|
11024
|
-
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(j, { iconName: E, iconSize: "md" }) : null, " ",
|
|
11024
|
+
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(j, { iconName: E, iconSize: "md" }) : null, " ", d, r[C].tally ? /* @__PURE__ */ e.createElement(w2, { label: h.label, type: h.type }) : null)
|
|
11025
11025
|
))
|
|
11026
|
-
), r.map(({ disabled: b, icon: E, panelContent: f, tabLabel:
|
|
11026
|
+
), r.map(({ disabled: b, icon: E, panelContent: f, tabLabel: d, tally: h }, C) => /* @__PURE__ */ e.createElement(
|
|
11027
11027
|
"div",
|
|
11028
11028
|
{
|
|
11029
11029
|
className: `${m}__panel`,
|
|
@@ -11044,10 +11044,10 @@ const b4 = (o) => {
|
|
|
11044
11044
|
"aria-disabled": !!b,
|
|
11045
11045
|
"aria-controls": `tabpanel_${C}`,
|
|
11046
11046
|
tabIndex: g === C ? 1 : -1,
|
|
11047
|
-
onClick: b ? null :
|
|
11047
|
+
onClick: b ? null : o,
|
|
11048
11048
|
type: "button"
|
|
11049
11049
|
},
|
|
11050
|
-
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(j, { iconSize: "md", iconName: E }) : null, " ",
|
|
11050
|
+
/* @__PURE__ */ e.createElement("div", { key: E, className: `${m}__tab-label` }, E ? /* @__PURE__ */ e.createElement(j, { iconSize: "md", iconName: E }) : null, " ", d, r[C].tally ? /* @__PURE__ */ e.createElement(w2, { label: h.label, type: h.type }) : null),
|
|
11051
11051
|
C == g ? /* @__PURE__ */ e.createElement(
|
|
11052
11052
|
j,
|
|
11053
11053
|
{
|
|
@@ -11097,8 +11097,8 @@ const b4 = (o) => {
|
|
|
11097
11097
|
], sn = (t) => {
|
|
11098
11098
|
const n = parseInt(w1(t), 16);
|
|
11099
11099
|
return E1[n % E1.length];
|
|
11100
|
-
}, ln = (t, n) => t.length > n ? t.slice(0, n) + " ..." : t, z4 = (
|
|
11101
|
-
var m =
|
|
11100
|
+
}, ln = (t, n) => t.length > n ? t.slice(0, n) + " ..." : t, z4 = (i) => {
|
|
11101
|
+
var m = i, {
|
|
11102
11102
|
linkContent: t,
|
|
11103
11103
|
isRemovable: n,
|
|
11104
11104
|
onRemove: s,
|
|
@@ -11115,8 +11115,8 @@ const b4 = (o) => {
|
|
|
11115
11115
|
"tagLabel",
|
|
11116
11116
|
"className"
|
|
11117
11117
|
]);
|
|
11118
|
-
const [g, p] = X(!0),
|
|
11119
|
-
p((
|
|
11118
|
+
const [g, p] = X(!0), o = "pds-tag", _ = r ? `${o}--${r}` : `${o}--${sn(u)}`, v = g ? null : "pds-tag--hide", w = () => {
|
|
11119
|
+
p((d) => !d);
|
|
11120
11120
|
};
|
|
11121
11121
|
let b, E, f;
|
|
11122
11122
|
return t && !n && Le(t) ? (b = t.type, E = t.props.href ? "href" : "to", f = E === "href" ? t.props.href : t.props.to) : (b = "span", E = null, f = null), /* @__PURE__ */ e.createElement(
|
|
@@ -11124,14 +11124,14 @@ const b4 = (o) => {
|
|
|
11124
11124
|
y({
|
|
11125
11125
|
href: E === "href" ? f : null,
|
|
11126
11126
|
to: E === "to" ? f : null,
|
|
11127
|
-
className: [
|
|
11127
|
+
className: [o, _, v, c].join(" ").trim().replace(/\s+/g, " ")
|
|
11128
11128
|
}, l),
|
|
11129
|
-
/* @__PURE__ */ e.createElement("span", { className: `${
|
|
11129
|
+
/* @__PURE__ */ e.createElement("span", { className: `${o}__label`, title: u }, ln(u, 20)),
|
|
11130
11130
|
n ? /* @__PURE__ */ e.createElement(
|
|
11131
11131
|
"button",
|
|
11132
11132
|
{
|
|
11133
11133
|
type: "button",
|
|
11134
|
-
className: `${
|
|
11134
|
+
className: `${o}__remove`,
|
|
11135
11135
|
"aria-label": `${a}: ${u}`,
|
|
11136
11136
|
onClick: () => {
|
|
11137
11137
|
w(), s();
|
|
@@ -11141,7 +11141,7 @@ const b4 = (o) => {
|
|
|
11141
11141
|
j,
|
|
11142
11142
|
{
|
|
11143
11143
|
iconName: "xmark",
|
|
11144
|
-
className: `${
|
|
11144
|
+
className: `${o}__remove-icon`,
|
|
11145
11145
|
iconSize: "md"
|
|
11146
11146
|
}
|
|
11147
11147
|
)
|
|
@@ -11159,8 +11159,8 @@ const b4 = (o) => {
|
|
|
11159
11159
|
"translations",
|
|
11160
11160
|
"className"
|
|
11161
11161
|
]);
|
|
11162
|
-
var
|
|
11163
|
-
const l = "pds-theme-switcher", [
|
|
11162
|
+
var o, _;
|
|
11163
|
+
const l = "pds-theme-switcher", [i, m] = X(t != null ? t : "light");
|
|
11164
11164
|
ae(() => {
|
|
11165
11165
|
m(t != null ? t : "system");
|
|
11166
11166
|
}, [t]);
|
|
@@ -11187,7 +11187,7 @@ const b4 = (o) => {
|
|
|
11187
11187
|
}
|
|
11188
11188
|
}
|
|
11189
11189
|
], p = (() => {
|
|
11190
|
-
switch (
|
|
11190
|
+
switch (i) {
|
|
11191
11191
|
case "dark":
|
|
11192
11192
|
return "moon";
|
|
11193
11193
|
case "system":
|
|
@@ -11199,7 +11199,7 @@ const b4 = (o) => {
|
|
|
11199
11199
|
return /* @__PURE__ */ e.createElement("div", y({ className: N([l, a != null ? a : ""]) }, r), /* @__PURE__ */ e.createElement(
|
|
11200
11200
|
xe,
|
|
11201
11201
|
{
|
|
11202
|
-
content: (
|
|
11202
|
+
content: (o = s.tooltip) != null ? o : "change theme",
|
|
11203
11203
|
preferredPlacement: "top",
|
|
11204
11204
|
offsetValue: 0,
|
|
11205
11205
|
customTrigger: /* @__PURE__ */ e.createElement(
|
|
@@ -11226,13 +11226,13 @@ const b4 = (o) => {
|
|
|
11226
11226
|
const u = "pds-avatar-tile-list", c = "pds-tile-list", l = ({
|
|
11227
11227
|
image: g,
|
|
11228
11228
|
alt: p,
|
|
11229
|
-
name:
|
|
11229
|
+
name: o,
|
|
11230
11230
|
title: _,
|
|
11231
11231
|
org: v
|
|
11232
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("div", { className: `${c}__image ${c}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: g, alt: p })),
|
|
11232
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, g && /* @__PURE__ */ e.createElement("div", { className: `${c}__image ${c}__image--avatar` }, /* @__PURE__ */ e.createElement("img", { src: g, alt: p })), o && /* @__PURE__ */ e.createElement("div", { className: `${c}__name` }, o), _ && /* @__PURE__ */ e.createElement("div", { className: `${c}__title` }, _), v && /* @__PURE__ */ e.createElement("div", { className: `${c}__org` }, v)), i = (g) => Le(g.linkContent) ? Se(g.linkContent, {
|
|
11233
11233
|
children: /* @__PURE__ */ e.createElement(l, y({}, g)),
|
|
11234
11234
|
className: `${c}__item`
|
|
11235
|
-
}) : /* @__PURE__ */ e.createElement("span", { className: `${c}__item` }, /* @__PURE__ */ e.createElement(l, y({}, g))), m = () => t.map((g, p) => /* @__PURE__ */ e.createElement(Y1, { key: `tile-${p}` },
|
|
11235
|
+
}) : /* @__PURE__ */ e.createElement("span", { className: `${c}__item` }, /* @__PURE__ */ e.createElement(l, y({}, g))), m = () => t.map((g, p) => /* @__PURE__ */ e.createElement(Y1, { key: `tile-${p}` }, i(g), /* @__PURE__ */ e.createElement("div", { className: "pds-tile__separator" })));
|
|
11236
11236
|
return /* @__PURE__ */ e.createElement(
|
|
11237
11237
|
"div",
|
|
11238
11238
|
y({
|
|
@@ -11245,8 +11245,8 @@ const b4 = (o) => {
|
|
|
11245
11245
|
}, s),
|
|
11246
11246
|
m()
|
|
11247
11247
|
);
|
|
11248
|
-
}, an = (
|
|
11249
|
-
var m =
|
|
11248
|
+
}, an = (i) => {
|
|
11249
|
+
var m = i, {
|
|
11250
11250
|
displayType: t = "border",
|
|
11251
11251
|
headingLevel: n = "span",
|
|
11252
11252
|
headingText: s,
|
|
@@ -11301,11 +11301,11 @@ const b4 = (o) => {
|
|
|
11301
11301
|
"tiles",
|
|
11302
11302
|
"className"
|
|
11303
11303
|
]);
|
|
11304
|
-
const l = "pds-tile-grid",
|
|
11304
|
+
const l = "pds-tile-grid", i = `${l}--${t}`;
|
|
11305
11305
|
return /* @__PURE__ */ e.createElement(
|
|
11306
11306
|
"div",
|
|
11307
11307
|
y({
|
|
11308
|
-
className: N([l,
|
|
11308
|
+
className: N([l, i, a != null ? a : ""])
|
|
11309
11309
|
}, r),
|
|
11310
11310
|
s.map((m, g) => /* @__PURE__ */ e.createElement(
|
|
11311
11311
|
an,
|
|
@@ -11321,22 +11321,30 @@ const b4 = (o) => {
|
|
|
11321
11321
|
}
|
|
11322
11322
|
))
|
|
11323
11323
|
);
|
|
11324
|
-
}, I4 = (
|
|
11325
|
-
var
|
|
11324
|
+
}, I4 = (r) => {
|
|
11325
|
+
var u = r, {
|
|
11326
11326
|
children: t,
|
|
11327
|
-
|
|
11328
|
-
|
|
11327
|
+
hasContentSpacing: n,
|
|
11328
|
+
className: s
|
|
11329
|
+
} = u, a = R(u, [
|
|
11329
11330
|
"children",
|
|
11331
|
+
"hasContentSpacing",
|
|
11330
11332
|
"className"
|
|
11331
11333
|
]);
|
|
11332
|
-
const { isMobile:
|
|
11334
|
+
const { isMobile: c } = be(He), l = "pds-dashboard-inner", i = c ? `${l}--isMobile` : `${l}--notMobile`, m = Be(t), g = m["header-left"], p = m["header-right"], o = m.content;
|
|
11333
11335
|
return /* @__PURE__ */ e.createElement(
|
|
11334
11336
|
"div",
|
|
11335
11337
|
y({
|
|
11336
|
-
className: N([
|
|
11337
|
-
},
|
|
11338
|
-
(
|
|
11339
|
-
|
|
11338
|
+
className: N([l, i, s != null ? s : ""])
|
|
11339
|
+
}, a),
|
|
11340
|
+
(g || p) && /* @__PURE__ */ e.createElement("div", { className: `${l}__header` }, g && /* @__PURE__ */ e.createElement("div", { className: `${l}__header-left` }, g), p && /* @__PURE__ */ e.createElement("div", { className: `${l}__header-right` }, p)),
|
|
11341
|
+
o && /* @__PURE__ */ e.createElement(
|
|
11342
|
+
"div",
|
|
11343
|
+
{
|
|
11344
|
+
className: n ? `${l}__content ${l}__content--with-spacing` : `${l}__content`
|
|
11345
|
+
},
|
|
11346
|
+
o
|
|
11347
|
+
)
|
|
11340
11348
|
);
|
|
11341
11349
|
}, S4 = (a) => {
|
|
11342
11350
|
var r = a, {
|
|
@@ -11349,11 +11357,11 @@ const b4 = (o) => {
|
|
|
11349
11357
|
let u = !1;
|
|
11350
11358
|
const c = be(He);
|
|
11351
11359
|
c && (u = c.isMobile);
|
|
11352
|
-
const l = "pds-docs-layout",
|
|
11360
|
+
const l = "pds-docs-layout", i = u ? `${l}--isMobile` : null, m = Be(t), g = m.navigation ? /* @__PURE__ */ e.createElement("div", { key: "navigation", className: `${l}__nav` }, m.navigation) : null, p = /* @__PURE__ */ e.createElement("div", { key: "content", className: `${l}__content` }, m.content);
|
|
11353
11361
|
return /* @__PURE__ */ e.createElement(
|
|
11354
11362
|
"div",
|
|
11355
11363
|
y({
|
|
11356
|
-
className: N([l,
|
|
11364
|
+
className: N([l, i, n != null ? n : ""])
|
|
11357
11365
|
}, s),
|
|
11358
11366
|
[g, p]
|
|
11359
11367
|
);
|
|
@@ -11367,11 +11375,11 @@ const b4 = (o) => {
|
|
|
11367
11375
|
justifyContent: u = "flex-start",
|
|
11368
11376
|
mobileAlignItems: c,
|
|
11369
11377
|
mobileAlignContent: l,
|
|
11370
|
-
mobileFlexDirection:
|
|
11378
|
+
mobileFlexDirection: i = "column",
|
|
11371
11379
|
mobileFlexWrap: m,
|
|
11372
11380
|
mobileGap: g,
|
|
11373
11381
|
mobileJustifyContent: p,
|
|
11374
|
-
children:
|
|
11382
|
+
children: o,
|
|
11375
11383
|
className: _
|
|
11376
11384
|
} = b, v = R(b, [
|
|
11377
11385
|
"alignContent",
|
|
@@ -11390,11 +11398,11 @@ const b4 = (o) => {
|
|
|
11390
11398
|
"className"
|
|
11391
11399
|
]);
|
|
11392
11400
|
let f = I1() <= 640;
|
|
11393
|
-
const
|
|
11394
|
-
|
|
11401
|
+
const d = be(He);
|
|
11402
|
+
d && (f = d.isMobile);
|
|
11395
11403
|
const h = "pds-flex", C = `${h}-container`, $ = f ? `${C}--mobile` : null;
|
|
11396
11404
|
let H = null;
|
|
11397
|
-
f ? H = `${h}-direction--${
|
|
11405
|
+
f ? H = `${h}-direction--${i}` : s !== "row" && (H = `${h}-direction--${s}`);
|
|
11398
11406
|
let M = null;
|
|
11399
11407
|
f ? m ? m !== "nowrap" && (M = `${h}-wrap--${m}`) : a !== "nowrap" && (M = `${h}-wrap--${a}`) : a !== "nowrap" && (M = `${h}-wrap--${a}`);
|
|
11400
11408
|
let L = null;
|
|
@@ -11419,20 +11427,20 @@ const b4 = (o) => {
|
|
|
11419
11427
|
_ != null ? _ : ""
|
|
11420
11428
|
])
|
|
11421
11429
|
}, v),
|
|
11422
|
-
|
|
11430
|
+
o
|
|
11423
11431
|
);
|
|
11424
11432
|
}, T4 = ({
|
|
11425
11433
|
children: t,
|
|
11426
11434
|
mobileMenuMaxWidth: n = 640
|
|
11427
11435
|
}) => /* @__PURE__ */ e.createElement(ft, { mobileMenuMaxWidth: n }, t), D4 = (l) => {
|
|
11428
|
-
var
|
|
11436
|
+
var i = l, {
|
|
11429
11437
|
children: t,
|
|
11430
11438
|
gridGap: n = "standard",
|
|
11431
11439
|
sidebarLocation: s = "right",
|
|
11432
11440
|
sidebarMobileLocation: a = "after",
|
|
11433
11441
|
sidebarWidth: r = "standard",
|
|
11434
11442
|
className: u
|
|
11435
|
-
} =
|
|
11443
|
+
} = i, c = R(i, [
|
|
11436
11444
|
"children",
|
|
11437
11445
|
"gridGap",
|
|
11438
11446
|
"sidebarLocation",
|
|
@@ -11441,9 +11449,9 @@ const b4 = (o) => {
|
|
|
11441
11449
|
"className"
|
|
11442
11450
|
]);
|
|
11443
11451
|
const m = "pds-sidebar-layout", g = `pds-grid pds-grid--${n}`, p = `${m}--${r}`;
|
|
11444
|
-
let
|
|
11452
|
+
let o = !1;
|
|
11445
11453
|
const _ = be(He);
|
|
11446
|
-
_ && (
|
|
11454
|
+
_ && (o = _.isMobile);
|
|
11447
11455
|
const v = Be(t);
|
|
11448
11456
|
let w = "pds-grid-item pds-grid-item--md-8 pds-grid-item--lg-9 pds-grid-item--xl-10", b = "pds-grid-item pds-grid-item--md-4 pds-grid-item--lg-3 pds-grid-item--xl-2";
|
|
11449
11457
|
r === "narrow" && (w = "pds-grid-item pds-grid-item--md-9 pds-grid-item--lg-10", b = "pds-grid-item pds-grid-item--md-3 pds-grid-item--lg-2"), r === "wide" && (w = "pds-grid-item pds-grid-item--md-7 pds-grid-item--lg-8", b = "pds-grid-item pds-grid-item--md-5 pds-grid-item--lg-4");
|
|
@@ -11451,14 +11459,14 @@ const b4 = (o) => {
|
|
|
11451
11459
|
"div",
|
|
11452
11460
|
{
|
|
11453
11461
|
key: "content",
|
|
11454
|
-
className: `${m}__main ${
|
|
11462
|
+
className: `${m}__main ${o ? "pds-grid-item" : w}`
|
|
11455
11463
|
},
|
|
11456
11464
|
v.content
|
|
11457
11465
|
), f = /* @__PURE__ */ e.createElement(
|
|
11458
11466
|
"div",
|
|
11459
11467
|
{
|
|
11460
11468
|
key: "sidebar",
|
|
11461
|
-
className: `${m}__side ${
|
|
11469
|
+
className: `${m}__side ${o ? "pds-grid-item" : b}`
|
|
11462
11470
|
},
|
|
11463
11471
|
v.sidebar
|
|
11464
11472
|
);
|
|
@@ -11472,7 +11480,7 @@ const b4 = (o) => {
|
|
|
11472
11480
|
u != null ? u : ""
|
|
11473
11481
|
])
|
|
11474
11482
|
}, c),
|
|
11475
|
-
|
|
11483
|
+
o ? a === "before" ? /* @__PURE__ */ e.createElement(e.Fragment, null, f, E) : /* @__PURE__ */ e.createElement(e.Fragment, null, E, f) : s === "left" ? /* @__PURE__ */ e.createElement(e.Fragment, null, f, E) : /* @__PURE__ */ e.createElement(e.Fragment, null, E, f)
|
|
11476
11484
|
);
|
|
11477
11485
|
}, R4 = (a) => {
|
|
11478
11486
|
var r = a, {
|
|
@@ -11482,7 +11490,7 @@ const b4 = (o) => {
|
|
|
11482
11490
|
"children",
|
|
11483
11491
|
"className"
|
|
11484
11492
|
]);
|
|
11485
|
-
const u = Be(t), c = u.stepper, l = u.form,
|
|
11493
|
+
const u = Be(t), c = u.stepper, l = u.form, i = ce(), [m] = x2(i), g = m.width;
|
|
11486
11494
|
document.documentElement.style.setProperty(
|
|
11487
11495
|
"--stepper-layout-max-width",
|
|
11488
11496
|
g + "px"
|
|
@@ -11492,7 +11500,7 @@ const b4 = (o) => {
|
|
|
11492
11500
|
"div",
|
|
11493
11501
|
{
|
|
11494
11502
|
className: `${p}__stepper-container`,
|
|
11495
|
-
ref:
|
|
11503
|
+
ref: i
|
|
11496
11504
|
},
|
|
11497
11505
|
c
|
|
11498
11506
|
), l && /* @__PURE__ */ e.createElement("div", { className: `${p}__form-container` }, l));
|
|
@@ -11508,7 +11516,7 @@ const b4 = (o) => {
|
|
|
11508
11516
|
"verticalAlign",
|
|
11509
11517
|
"className"
|
|
11510
11518
|
]);
|
|
11511
|
-
const l = "pds-three-item-layout",
|
|
11519
|
+
const l = "pds-three-item-layout", i = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, m = `${l}--${s}`, g = Be(t), p = [
|
|
11512
11520
|
g["first-item"],
|
|
11513
11521
|
g["second-item"],
|
|
11514
11522
|
g["third-item"]
|
|
@@ -11518,18 +11526,18 @@ const b4 = (o) => {
|
|
|
11518
11526
|
y({
|
|
11519
11527
|
className: N([
|
|
11520
11528
|
l,
|
|
11521
|
-
|
|
11529
|
+
i,
|
|
11522
11530
|
m,
|
|
11523
11531
|
a
|
|
11524
11532
|
])
|
|
11525
11533
|
}, r),
|
|
11526
|
-
p.map((
|
|
11534
|
+
p.map((o, _) => /* @__PURE__ */ e.createElement(
|
|
11527
11535
|
"div",
|
|
11528
11536
|
{
|
|
11529
11537
|
key: _,
|
|
11530
11538
|
className: "pds-grid-item pds-grid-item--sm-12 pds-grid-item--md-4 pds-grid-item--lg-4"
|
|
11531
11539
|
},
|
|
11532
|
-
|
|
11540
|
+
o
|
|
11533
11541
|
))
|
|
11534
11542
|
);
|
|
11535
11543
|
}, F4 = (c) => {
|
|
@@ -11546,31 +11554,31 @@ const b4 = (o) => {
|
|
|
11546
11554
|
"verticalAlign",
|
|
11547
11555
|
"className"
|
|
11548
11556
|
]);
|
|
11549
|
-
const
|
|
11557
|
+
const i = "pds-two-item-layout", m = n === "standard" ? "pds-grid" : `pds-grid pds-grid--${n}`, g = `${i}--${a}`, p = ["pds-grid-item--md-6"], o = ["pds-grid-item--md-4", "pds-grid-item--lg-3"], _ = ["pds-grid-item--md-8", "pds-grid-item--lg-9"], v = ["pds-grid-item", "pds-grid-item--sm-4"];
|
|
11550
11558
|
let w, b;
|
|
11551
11559
|
switch (s) {
|
|
11552
11560
|
case "equal":
|
|
11553
11561
|
w = v.concat(p), b = v.concat(p);
|
|
11554
11562
|
break;
|
|
11555
11563
|
case "one-third-start":
|
|
11556
|
-
w = v.concat(
|
|
11564
|
+
w = v.concat(o), b = v.concat(_);
|
|
11557
11565
|
break;
|
|
11558
11566
|
case "one-third-end":
|
|
11559
|
-
w = v.concat(_), b = v.concat(
|
|
11567
|
+
w = v.concat(_), b = v.concat(o);
|
|
11560
11568
|
}
|
|
11561
|
-
const E = Be(t), f = E["first-item"],
|
|
11569
|
+
const E = Be(t), f = E["first-item"], d = E["second-item"];
|
|
11562
11570
|
return /* @__PURE__ */ e.createElement(
|
|
11563
11571
|
"div",
|
|
11564
11572
|
y({
|
|
11565
11573
|
className: N([
|
|
11566
|
-
|
|
11574
|
+
i,
|
|
11567
11575
|
m,
|
|
11568
11576
|
g,
|
|
11569
11577
|
r
|
|
11570
11578
|
])
|
|
11571
11579
|
}, u),
|
|
11572
11580
|
/* @__PURE__ */ e.createElement("div", { className: w.join(" ").trim() }, f),
|
|
11573
|
-
/* @__PURE__ */ e.createElement("div", { className: b.join(" ").trim() },
|
|
11581
|
+
/* @__PURE__ */ e.createElement("div", { className: b.join(" ").trim() }, d)
|
|
11574
11582
|
);
|
|
11575
11583
|
}, P4 = (t, n) => {
|
|
11576
11584
|
const [s, a] = X(!1), r = j2(
|