@ama-pt/agora-design-system 1.0.2 → 1.0.3
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/artifacts/dist/index.mjs
CHANGED
|
@@ -752,7 +752,7 @@ const Ue = (i, t = 10) => {
|
|
|
752
752
|
R(!0);
|
|
753
753
|
}, D = () => {
|
|
754
754
|
R(!1);
|
|
755
|
-
},
|
|
755
|
+
}, U = () => {
|
|
756
756
|
s ? D() : I();
|
|
757
757
|
}, h = C(null), Y = Je(
|
|
758
758
|
E,
|
|
@@ -761,9 +761,9 @@ const Ue = (i, t = 10) => {
|
|
|
761
761
|
isExpanded: s,
|
|
762
762
|
expand: I,
|
|
763
763
|
collapse: D,
|
|
764
|
-
toggle:
|
|
764
|
+
toggle: U
|
|
765
765
|
},
|
|
766
|
-
[m, h, s, I, D,
|
|
766
|
+
[m, h, s, I, D, U]
|
|
767
767
|
);
|
|
768
768
|
ie(() => {
|
|
769
769
|
if (s) {
|
|
@@ -774,15 +774,15 @@ const Ue = (i, t = 10) => {
|
|
|
774
774
|
r == null || r(p);
|
|
775
775
|
}
|
|
776
776
|
}, [s]);
|
|
777
|
-
const M = J("agora-accordion", A, { "accordion-open": s }),
|
|
778
|
-
|
|
777
|
+
const M = J("agora-accordion", A, { "accordion-open": s }), u = J("accordion-body", { "accordion-body-block": s }), G = J("icon icon-chevron", { "icon-chevron-flip": s }), j = () => {
|
|
778
|
+
U();
|
|
779
779
|
};
|
|
780
780
|
return /* @__PURE__ */ e.createElement("div", { className: M, ...b, ref: h }, /* @__PURE__ */ e.createElement(n, { className: "flex justify-start items-center w-full" }, /* @__PURE__ */ e.createElement(
|
|
781
781
|
"button",
|
|
782
782
|
{
|
|
783
783
|
"aria-label": g,
|
|
784
784
|
type: "button",
|
|
785
|
-
onClick:
|
|
785
|
+
onClick: j,
|
|
786
786
|
className: "accordion-header",
|
|
787
787
|
"aria-expanded": s,
|
|
788
788
|
id: `agora-accordion-${m.id}-control`,
|
|
@@ -794,7 +794,7 @@ const Ue = (i, t = 10) => {
|
|
|
794
794
|
)), /* @__PURE__ */ e.createElement(
|
|
795
795
|
"div",
|
|
796
796
|
{
|
|
797
|
-
className:
|
|
797
|
+
className: u,
|
|
798
798
|
id: `agora-accordion-${m.id}-region`,
|
|
799
799
|
role: "region",
|
|
800
800
|
"aria-labelledby": `agora-accordion-${m.id}-control`
|
|
@@ -883,18 +883,18 @@ const Ue = (i, t = 10) => {
|
|
|
883
883
|
children: o,
|
|
884
884
|
...d
|
|
885
885
|
}) => {
|
|
886
|
-
const r = se(), g = C(null), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), [I, D] = O(0),
|
|
886
|
+
const r = se(), g = C(null), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), [I, D] = O(0), U = ge(() => {
|
|
887
887
|
var W;
|
|
888
888
|
if (g.current) {
|
|
889
|
-
const
|
|
890
|
-
|
|
889
|
+
const x = (W = g.current) == null ? void 0 : W.getBoundingClientRect();
|
|
890
|
+
x && (E(x.top + window.scrollY), m(x.left + window.scrollX), R(x.width), D(x.height));
|
|
891
891
|
}
|
|
892
892
|
}, []), h = de(() => ({ ...d }), [d]);
|
|
893
893
|
h.id = h.id ?? r;
|
|
894
894
|
const Y = J("tooltip-container absolute z-tooltip", d.className), M = J("tooltip", {
|
|
895
895
|
[`tooltip--${t}`]: t,
|
|
896
896
|
[`tooltip--${a}--${l}`]: a && l
|
|
897
|
-
}), [
|
|
897
|
+
}), [u, G] = O(!1), j = () => {
|
|
898
898
|
G(!0);
|
|
899
899
|
const W = new CustomEvent(_e, { detail: h.id });
|
|
900
900
|
document.dispatchEvent(W);
|
|
@@ -905,35 +905,35 @@ const Ue = (i, t = 10) => {
|
|
|
905
905
|
};
|
|
906
906
|
ie(() => {
|
|
907
907
|
document.addEventListener("keydown", w);
|
|
908
|
-
const W = (
|
|
909
|
-
|
|
908
|
+
const W = (x) => {
|
|
909
|
+
x.detail !== h.id && G(!1);
|
|
910
910
|
};
|
|
911
911
|
return document.addEventListener(_e, W), () => {
|
|
912
912
|
document.removeEventListener("keydown", w), document.removeEventListener(_e, W);
|
|
913
913
|
};
|
|
914
914
|
}, [h.id]);
|
|
915
|
-
const v = Ge.map(o, (W) => Me(W) ? Ze(W, { ref: g, onMouseEnter: (
|
|
916
|
-
var X,
|
|
917
|
-
|
|
918
|
-
}, onMouseLeave: (
|
|
919
|
-
var X,
|
|
920
|
-
p(), (
|
|
921
|
-
}, onFocus: (
|
|
922
|
-
var X,
|
|
923
|
-
|
|
924
|
-
}, onBlur: (
|
|
925
|
-
var X,
|
|
926
|
-
p(), (
|
|
915
|
+
const v = Ge.map(o, (W) => Me(W) ? Ze(W, { ref: g, onMouseEnter: (S) => {
|
|
916
|
+
var X, L;
|
|
917
|
+
U(), j(), (L = (X = W.props).onMouseEnter) == null || L.call(X, S);
|
|
918
|
+
}, onMouseLeave: (S) => {
|
|
919
|
+
var X, L;
|
|
920
|
+
p(), (L = (X = W.props).onMouseLeave) == null || L.call(X, S);
|
|
921
|
+
}, onFocus: (S) => {
|
|
922
|
+
var X, L;
|
|
923
|
+
U(), j(), (L = (X = W.props).onFocus) == null || L.call(X, S);
|
|
924
|
+
}, onBlur: (S) => {
|
|
925
|
+
var X, L;
|
|
926
|
+
p(), (L = (X = W.props).onBlur) == null || L.call(X, S);
|
|
927
927
|
} }) : W);
|
|
928
928
|
ie(() => {
|
|
929
929
|
const W = () => {
|
|
930
|
-
|
|
930
|
+
U();
|
|
931
931
|
};
|
|
932
932
|
return document.addEventListener("scroll", W), () => {
|
|
933
933
|
document.removeEventListener("scroll", W);
|
|
934
934
|
};
|
|
935
|
-
}, [
|
|
936
|
-
const
|
|
935
|
+
}, [U]);
|
|
936
|
+
const y = de(() => {
|
|
937
937
|
if (l === "start")
|
|
938
938
|
return {
|
|
939
939
|
top: "-10px",
|
|
@@ -952,7 +952,7 @@ const Ue = (i, t = 10) => {
|
|
|
952
952
|
left: `${s}px`,
|
|
953
953
|
transform: "translateY(-100%) translateX(-100%)"
|
|
954
954
|
};
|
|
955
|
-
}, [l, s]),
|
|
955
|
+
}, [l, s]), B = de(() => {
|
|
956
956
|
if (l === "start")
|
|
957
957
|
return {
|
|
958
958
|
top: `${I + 10}px`,
|
|
@@ -971,7 +971,7 @@ const Ue = (i, t = 10) => {
|
|
|
971
971
|
left: `${s}px`,
|
|
972
972
|
transform: "translateX(-100%)"
|
|
973
973
|
};
|
|
974
|
-
}, [l, I, s]),
|
|
974
|
+
}, [l, I, s]), F = de(() => {
|
|
975
975
|
if (l === "start")
|
|
976
976
|
return {
|
|
977
977
|
top: "0px",
|
|
@@ -1012,15 +1012,15 @@ const Ue = (i, t = 10) => {
|
|
|
1012
1012
|
}, [l, I, s]), k = de(() => {
|
|
1013
1013
|
switch (a) {
|
|
1014
1014
|
case "top":
|
|
1015
|
-
return
|
|
1015
|
+
return y;
|
|
1016
1016
|
case "bottom":
|
|
1017
|
-
return
|
|
1017
|
+
return B;
|
|
1018
1018
|
case "left":
|
|
1019
|
-
return
|
|
1019
|
+
return F;
|
|
1020
1020
|
case "right":
|
|
1021
1021
|
return T;
|
|
1022
1022
|
}
|
|
1023
|
-
}, [a,
|
|
1023
|
+
}, [a, y, B, F, T]), Q = de(() => /* @__PURE__ */ e.createElement(
|
|
1024
1024
|
"div",
|
|
1025
1025
|
{
|
|
1026
1026
|
className: Y,
|
|
@@ -1042,7 +1042,7 @@ const Ue = (i, t = 10) => {
|
|
|
1042
1042
|
c(i) && /* @__PURE__ */ e.createElement("div", { className: "title" }, n),
|
|
1043
1043
|
/* @__PURE__ */ e.createElement("p", { className: "description" }, A)
|
|
1044
1044
|
))
|
|
1045
|
-
), [M, A, i, n, h, k, b, N]), K = de(() =>
|
|
1045
|
+
), [M, A, i, n, h, k, b, N]), K = de(() => u ? lt(Q, document.body) : null, [u, Q]);
|
|
1046
1046
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, v, K);
|
|
1047
1047
|
}, Mi = ({ name: i = "no-icon", iconHover: t = "no-icon", className: a, showIconHover: l }) => {
|
|
1048
1048
|
const n = J("icon-wrapper", a);
|
|
@@ -1092,36 +1092,36 @@ const Ue = (i, t = 10) => {
|
|
|
1092
1092
|
{ selected: c(N.selected) },
|
|
1093
1093
|
{ darkMode: c(i) },
|
|
1094
1094
|
E
|
|
1095
|
-
),
|
|
1095
|
+
), U = (p) => {
|
|
1096
1096
|
var w, v;
|
|
1097
1097
|
(p.code === "Enter" || p.code === "NumpadEnter" || p.code === "Space") && ((w = I.current) == null || w.classList.add("active")), (v = N.onKeyDown) == null || v.call(N, p);
|
|
1098
1098
|
}, h = (p) => {
|
|
1099
|
-
var w, v,
|
|
1100
|
-
(p.code === "Enter" || p.code === "NumpadEnter" || p.code === "Space") && ((w = I.current) == null || w.classList.remove("active"), (v = I.current) == null || v.setAttribute("data-custom-triggered-click", "true"), (
|
|
1099
|
+
var w, v, y, B;
|
|
1100
|
+
(p.code === "Enter" || p.code === "NumpadEnter" || p.code === "Space") && ((w = I.current) == null || w.classList.remove("active"), (v = I.current) == null || v.setAttribute("data-custom-triggered-click", "true"), (y = I.current) == null || y.click()), (B = N.onKeyUp) == null || B.call(N, p);
|
|
1101
1101
|
}, Y = (p) => {
|
|
1102
1102
|
var w, v;
|
|
1103
1103
|
(w = I.current) == null || w.classList.remove("active"), R(!1), (v = N.onMouseLeave) == null || v.call(N, p);
|
|
1104
1104
|
}, M = (p) => {
|
|
1105
1105
|
var w;
|
|
1106
1106
|
R(!0), (w = N.onMouseEnter) == null || w.call(N, p);
|
|
1107
|
-
},
|
|
1107
|
+
}, u = (p) => {
|
|
1108
1108
|
var w, v;
|
|
1109
1109
|
p.preventDefault(), (w = I.current) == null || w.classList.add("active"), (v = N.onMouseDown) == null || v.call(N, p);
|
|
1110
1110
|
}, G = (p) => {
|
|
1111
1111
|
var w, v;
|
|
1112
1112
|
p.preventDefault(), (w = I.current) == null || w.classList.remove("active"), (v = N.onMouseUp) == null || v.call(N, p);
|
|
1113
|
-
},
|
|
1114
|
-
var v,
|
|
1113
|
+
}, j = (p) => {
|
|
1114
|
+
var v, y, B, F;
|
|
1115
1115
|
if (p.detail > 0) {
|
|
1116
1116
|
(v = N.onClick) == null || v.call(N, p);
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
const w = ((
|
|
1120
|
-
if ((
|
|
1119
|
+
const w = ((y = I.current) == null ? void 0 : y.getAttribute("data-custom-triggered-click")) === "true";
|
|
1120
|
+
if ((B = I.current) == null || B.removeAttribute("data-custom-triggered-click"), !w) {
|
|
1121
1121
|
p.preventDefault();
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
|
-
(
|
|
1124
|
+
(F = N.onClick) == null || F.call(N, p);
|
|
1125
1125
|
};
|
|
1126
1126
|
return /* @__PURE__ */ e.createElement(
|
|
1127
1127
|
"button",
|
|
@@ -1130,10 +1130,10 @@ const Ue = (i, t = 10) => {
|
|
|
1130
1130
|
className: D,
|
|
1131
1131
|
...N,
|
|
1132
1132
|
ref: I,
|
|
1133
|
-
onClick:
|
|
1134
|
-
onKeyDown:
|
|
1133
|
+
onClick: j,
|
|
1134
|
+
onKeyDown: U,
|
|
1135
1135
|
onKeyUp: h,
|
|
1136
|
-
onMouseDown:
|
|
1136
|
+
onMouseDown: u,
|
|
1137
1137
|
onMouseUp: G,
|
|
1138
1138
|
onMouseLeave: Y,
|
|
1139
1139
|
onMouseEnter: M
|
|
@@ -1233,8 +1233,8 @@ const Ue = (i, t = 10) => {
|
|
|
1233
1233
|
/* @__PURE__ */ e.createElement(Zt, { ...N, className: m }, s)
|
|
1234
1234
|
);
|
|
1235
1235
|
}, Wi = xe({}), Oe = () => Fe(Wi), Dt = ({ debounceTimeout: i = 300, ...t }, a) => {
|
|
1236
|
-
const l = Oe(), n = l.visibility, A = l.applyFilter, o = l.hide, d = l.next, [r, g] = O(""), b = st(A, i), E = (
|
|
1237
|
-
g(
|
|
1236
|
+
const l = Oe(), n = l.visibility, A = l.applyFilter, o = l.hide, d = l.next, [r, g] = O(""), b = st(A, i), E = (U) => {
|
|
1237
|
+
g(U.target.value ?? "");
|
|
1238
1238
|
};
|
|
1239
1239
|
ie(() => {
|
|
1240
1240
|
b.setArgs(r);
|
|
@@ -1250,10 +1250,10 @@ const Ue = (i, t = 10) => {
|
|
|
1250
1250
|
}),
|
|
1251
1251
|
[s]
|
|
1252
1252
|
);
|
|
1253
|
-
const R = (
|
|
1254
|
-
|
|
1255
|
-
}, I = (
|
|
1256
|
-
switch (
|
|
1253
|
+
const R = (U) => {
|
|
1254
|
+
U.code === "Tab" && (U.preventDefault(), U.stopPropagation(), o());
|
|
1255
|
+
}, I = (U) => {
|
|
1256
|
+
switch (U.code) {
|
|
1257
1257
|
case "Escape":
|
|
1258
1258
|
o();
|
|
1259
1259
|
break;
|
|
@@ -1263,14 +1263,14 @@ const Ue = (i, t = 10) => {
|
|
|
1263
1263
|
d();
|
|
1264
1264
|
break;
|
|
1265
1265
|
}
|
|
1266
|
-
}, D = (
|
|
1266
|
+
}, D = (U) => {
|
|
1267
1267
|
var h;
|
|
1268
|
-
|
|
1268
|
+
U.preventDefault(), (h = m.current) == null || h.focus();
|
|
1269
1269
|
};
|
|
1270
1270
|
return ie(() => {
|
|
1271
1271
|
if (s.current && n) {
|
|
1272
|
-
const { height:
|
|
1273
|
-
s.current.setAttribute("data-filter-section-height", `${
|
|
1272
|
+
const { height: U } = s.current.getBoundingClientRect();
|
|
1273
|
+
s.current.setAttribute("data-filter-section-height", `${U}`);
|
|
1274
1274
|
}
|
|
1275
1275
|
}, [n]), /* @__PURE__ */ e.createElement("ul", { className: "agora-dropdown-filter-section", role: "presentation" }, /* @__PURE__ */ e.createElement("li", { className: "agora-dropdown-filter-section-item", ref: s, role: "presentation" }, /* @__PURE__ */ e.createElement(
|
|
1276
1276
|
"input",
|
|
@@ -1296,10 +1296,10 @@ const Ue = (i, t = 10) => {
|
|
|
1296
1296
|
hasIcon: a,
|
|
1297
1297
|
children: l
|
|
1298
1298
|
}) => i === "checkbox" ? /* @__PURE__ */ e.createElement("span", { className: "flex gap-8 w-full" }, /* @__PURE__ */ e.createElement(ae, { className: "checkbox-mark", name: "agora-line-check", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("span", { className: "option-content" }, l), a && /* @__PURE__ */ e.createElement(ae, { className: "option-icon", name: t, "aria-hidden": !0 })) : a ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ae, { className: "option-icon", name: t, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("span", { className: "option-content" }, l)) : /* @__PURE__ */ e.createElement("span", { className: "option-content" }, l), ut = ({ className: i, disabled: t, selected: a, filtered: l, hasIcon: n, icon: A, iconPosition: o = "leading", children: d, name: r, value: g, sectionOptionId: b }, E) => {
|
|
1299
|
-
const N = A == null ? void 0 : A.replace("solid", "line"), [m, s] = O(N ?? ""), R = Oe(), I = R.selectOption, D = R.options,
|
|
1299
|
+
const N = A == null ? void 0 : A.replace("solid", "line"), [m, s] = O(N ?? ""), R = Oe(), I = R.selectOption, D = R.options, U = R.last, h = R.first, Y = R.next, M = R.prev, u = R.type, G = R.hide, j = J(
|
|
1300
1300
|
"agora-dropdown-option",
|
|
1301
1301
|
i,
|
|
1302
|
-
{ [
|
|
1302
|
+
{ [u]: u },
|
|
1303
1303
|
{ disabled: c(t) },
|
|
1304
1304
|
{ selected: c(a) },
|
|
1305
1305
|
{ filtered: c(l) },
|
|
@@ -1308,14 +1308,14 @@ const Ue = (i, t = 10) => {
|
|
|
1308
1308
|
"trailing-icon": c(n) && o === "trailing"
|
|
1309
1309
|
}
|
|
1310
1310
|
), p = () => {
|
|
1311
|
-
const k = D.find((
|
|
1311
|
+
const k = D.find((Q) => Q.value === g && Q.name === r);
|
|
1312
1312
|
k && I(k);
|
|
1313
1313
|
}, w = (k) => {
|
|
1314
|
-
const
|
|
1315
|
-
(
|
|
1314
|
+
const Q = k.code;
|
|
1315
|
+
(Q === "Space" || Q === "Enter" || Q === "NumpadEnter") && (k.stopPropagation(), k.preventDefault(), p()), Q === "Tab" && (k.stopPropagation(), k.preventDefault(), G());
|
|
1316
1316
|
}, v = (k) => {
|
|
1317
|
-
const { code:
|
|
1318
|
-
switch (
|
|
1317
|
+
const { code: Q } = k;
|
|
1318
|
+
switch (Q) {
|
|
1319
1319
|
case "Escape":
|
|
1320
1320
|
G();
|
|
1321
1321
|
break;
|
|
@@ -1329,18 +1329,18 @@ const Ue = (i, t = 10) => {
|
|
|
1329
1329
|
h();
|
|
1330
1330
|
break;
|
|
1331
1331
|
case "End":
|
|
1332
|
-
|
|
1332
|
+
U();
|
|
1333
1333
|
break;
|
|
1334
1334
|
}
|
|
1335
|
-
},
|
|
1335
|
+
}, y = (k) => {
|
|
1336
1336
|
t && (k.preventDefault(), k.stopPropagation());
|
|
1337
|
-
},
|
|
1337
|
+
}, B = (k) => {
|
|
1338
1338
|
if (t) {
|
|
1339
1339
|
k.preventDefault(), k.stopPropagation();
|
|
1340
1340
|
return;
|
|
1341
1341
|
}
|
|
1342
1342
|
p();
|
|
1343
|
-
},
|
|
1343
|
+
}, F = () => {
|
|
1344
1344
|
t || s((k) => k.replace("line", "solid"));
|
|
1345
1345
|
}, T = () => {
|
|
1346
1346
|
t || s((k) => k.replace("solid", "line"));
|
|
@@ -1349,20 +1349,20 @@ const Ue = (i, t = 10) => {
|
|
|
1349
1349
|
"li",
|
|
1350
1350
|
{
|
|
1351
1351
|
ref: E,
|
|
1352
|
-
className:
|
|
1352
|
+
className: j,
|
|
1353
1353
|
role: "option",
|
|
1354
1354
|
tabIndex: t ? -1 : 0,
|
|
1355
1355
|
"aria-selected": c(a),
|
|
1356
1356
|
onKeyDown: v,
|
|
1357
1357
|
onKeyDownCapture: w,
|
|
1358
|
-
onMouseDownCapture:
|
|
1359
|
-
onClick:
|
|
1360
|
-
onMouseEnter:
|
|
1361
|
-
onMouseMove:
|
|
1358
|
+
onMouseDownCapture: y,
|
|
1359
|
+
onClick: B,
|
|
1360
|
+
onMouseEnter: F,
|
|
1361
|
+
onMouseMove: F,
|
|
1362
1362
|
onMouseLeave: T,
|
|
1363
1363
|
"data-section-option-id": b
|
|
1364
1364
|
},
|
|
1365
|
-
/* @__PURE__ */ e.createElement(Yt, { type:
|
|
1365
|
+
/* @__PURE__ */ e.createElement(Yt, { type: u, hasIcon: c(n), icon: m }, d)
|
|
1366
1366
|
);
|
|
1367
1367
|
}, Ut = re(ut), jt = ({ className: i, name: t, label: a = "", hideLabel: l = !0 }) => {
|
|
1368
1368
|
const n = Oe(), A = n.options, o = n.type, d = n.visibility, r = de(() => /* @__PURE__ */ new Map(), []), g = C(null), b = J("agora-dropdown-section", i), E = de(() => A.filter((m) => m.name === t).map((m) => {
|
|
@@ -1453,23 +1453,23 @@ const Ue = (i, t = 10) => {
|
|
|
1453
1453
|
l && s.current && s.current.resetFilter();
|
|
1454
1454
|
}, [l]), I = C(null);
|
|
1455
1455
|
Je(d, I, { resetFilter: R }, [R]);
|
|
1456
|
-
const [D,
|
|
1456
|
+
const [D, U] = O(""), h = se(), Y = { ...o };
|
|
1457
1457
|
Y.id = Y.id ?? h;
|
|
1458
1458
|
const M = ge(() => {
|
|
1459
1459
|
if (I.current && l) {
|
|
1460
1460
|
const k = I.current.querySelectorAll(".agora-dropdown-filter-section-item")[0] ?? null;
|
|
1461
1461
|
if (k) {
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
1462
|
+
const Q = k.getAttribute("data-filter-section-height");
|
|
1463
|
+
return Q ? Number(Q) : 0;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
1466
|
return 0;
|
|
1467
|
-
}, [l]),
|
|
1467
|
+
}, [l]), u = ge(() => {
|
|
1468
1468
|
if (I.current && m === "checkbox") {
|
|
1469
1469
|
const k = I.current.querySelectorAll(".agora-dropdown-all-option")[0] ?? null;
|
|
1470
1470
|
if (k) {
|
|
1471
|
-
const
|
|
1472
|
-
return
|
|
1471
|
+
const Q = k.getAttribute("data-select-all-section-height");
|
|
1472
|
+
return Q ? Number(Q) : 0;
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
return 0;
|
|
@@ -1478,18 +1478,18 @@ const Ue = (i, t = 10) => {
|
|
|
1478
1478
|
return I.current && I.current.querySelectorAll(".agora-dropdown-section .section-name").forEach((K) => {
|
|
1479
1479
|
const W = K.getAttribute("data-section-option-id");
|
|
1480
1480
|
if (W && T.includes(W)) {
|
|
1481
|
-
const
|
|
1482
|
-
k = k + (
|
|
1481
|
+
const x = K.getAttribute("data-section-name-height");
|
|
1482
|
+
k = k + (x ? Number(x) : 0);
|
|
1483
1483
|
}
|
|
1484
1484
|
}), k;
|
|
1485
|
-
}, []),
|
|
1485
|
+
}, []), j = ge(
|
|
1486
1486
|
(T) => {
|
|
1487
1487
|
let k = 0;
|
|
1488
1488
|
if (I.current) {
|
|
1489
|
-
const
|
|
1489
|
+
const Q = T.map((W) => `${W.name}-${m}-${W.value}`);
|
|
1490
1490
|
I.current.querySelectorAll(".agora-dropdown-section .agora-dropdown-option").forEach((W) => {
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1491
|
+
const x = W.getAttribute("data-section-option-id");
|
|
1492
|
+
if (x && Q.includes(x)) {
|
|
1493
1493
|
const z = W.getAttribute("data-section-option-height");
|
|
1494
1494
|
k = k + (z ? Number(z) : 0);
|
|
1495
1495
|
}
|
|
@@ -1503,8 +1503,8 @@ const Ue = (i, t = 10) => {
|
|
|
1503
1503
|
return 0;
|
|
1504
1504
|
const T = getComputedStyle(I.current);
|
|
1505
1505
|
if (T) {
|
|
1506
|
-
const k = parseFloat(T.borderTopWidth),
|
|
1507
|
-
return k +
|
|
1506
|
+
const k = parseFloat(T.borderTopWidth), Q = parseFloat(T.borderBottomWidth);
|
|
1507
|
+
return k + Q;
|
|
1508
1508
|
}
|
|
1509
1509
|
return 0;
|
|
1510
1510
|
}, [I]);
|
|
@@ -1512,11 +1512,11 @@ const Ue = (i, t = 10) => {
|
|
|
1512
1512
|
if (g) {
|
|
1513
1513
|
const T = N.filter((k) => !k.filtered);
|
|
1514
1514
|
if (T.length > n) {
|
|
1515
|
-
const k = T.slice(0, n),
|
|
1515
|
+
const k = T.slice(0, n), Q = [...new Set(k.map((W) => W.name ?? "").filter((W) => !!W))];
|
|
1516
1516
|
let K = 0;
|
|
1517
|
-
K = K + M(), K = K +
|
|
1517
|
+
K = K + M(), K = K + u(), K = K + G(Q), K = K + j(k), K > 0 ? (K = K + p(), U(`${K}px`)) : U("none");
|
|
1518
1518
|
} else
|
|
1519
|
-
|
|
1519
|
+
U("none");
|
|
1520
1520
|
}
|
|
1521
1521
|
}, [
|
|
1522
1522
|
g,
|
|
@@ -1525,15 +1525,15 @@ const Ue = (i, t = 10) => {
|
|
|
1525
1525
|
N,
|
|
1526
1526
|
n,
|
|
1527
1527
|
M,
|
|
1528
|
-
U,
|
|
1529
|
-
G,
|
|
1530
1528
|
u,
|
|
1529
|
+
G,
|
|
1530
|
+
j,
|
|
1531
1531
|
p
|
|
1532
1532
|
]);
|
|
1533
|
-
const w = J("agora-dropdown", Y.className, { visible: g }), v = de(() => N.length > 0, [N]),
|
|
1533
|
+
const w = J("agora-dropdown", Y.className, { visible: g }), v = de(() => N.length > 0, [N]), y = de(() => N.some((T) => !T.filtered), [N]), B = de(() => {
|
|
1534
1534
|
const T = N.filter((k) => !k.filtered);
|
|
1535
|
-
return
|
|
1536
|
-
}, [
|
|
1535
|
+
return y && T.findIndex((k) => !k.disabled) === -1;
|
|
1536
|
+
}, [y, N]), F = de(() => N.filter((T) => !T.filtered).map((T) => T.name), [N]);
|
|
1537
1537
|
return /* @__PURE__ */ e.createElement(
|
|
1538
1538
|
"div",
|
|
1539
1539
|
{
|
|
@@ -1544,15 +1544,15 @@ const Ue = (i, t = 10) => {
|
|
|
1544
1544
|
overflowY: D === "" ? "hidden" : "auto"
|
|
1545
1545
|
}
|
|
1546
1546
|
},
|
|
1547
|
-
/* @__PURE__ */ e.createElement("div", { ...Y, role: "listbox" }, l && /* @__PURE__ */ e.createElement(Mt, { ref: s, "aria-label": a, placeholder: t }), m === "checkbox" &&
|
|
1548
|
-
const
|
|
1549
|
-
return /* @__PURE__ */ e.createElement(jt, { key:
|
|
1550
|
-
}), (!v || !
|
|
1547
|
+
/* @__PURE__ */ e.createElement("div", { ...Y, role: "listbox" }, l && /* @__PURE__ */ e.createElement(Mt, { ref: s, "aria-label": a, placeholder: t }), m === "checkbox" && y && !B && i && /* @__PURE__ */ e.createElement(wt, { label: i }), y && E.filter((T) => F.indexOf(T.name) >= 0).map((T, k) => {
|
|
1548
|
+
const Q = `agora-dropdown-option-${Y.id}-${k}`;
|
|
1549
|
+
return /* @__PURE__ */ e.createElement(jt, { key: Q, ...T });
|
|
1550
|
+
}), (!v || !y) && /* @__PURE__ */ e.createElement(pt, { label: A }))
|
|
1551
1551
|
);
|
|
1552
1552
|
}, Jt = re(ht), vt = (i, t, a, l, n, A, o, d) => {
|
|
1553
1553
|
const [r, g] = O([]), [b, E] = O([]);
|
|
1554
1554
|
ie(() => {
|
|
1555
|
-
const W = [],
|
|
1555
|
+
const W = [], x = [];
|
|
1556
1556
|
d && (Array.isArray(d) ? Ge.forEach(d, (z) => {
|
|
1557
1557
|
W.push({
|
|
1558
1558
|
...z.props,
|
|
@@ -1563,23 +1563,23 @@ const Ue = (i, t = 10) => {
|
|
|
1563
1563
|
hideLabel: a
|
|
1564
1564
|
})), W.forEach((z) => {
|
|
1565
1565
|
Ge.forEach(z.children, (q) => {
|
|
1566
|
-
|
|
1566
|
+
x.push({
|
|
1567
1567
|
...q.props,
|
|
1568
1568
|
name: z.name
|
|
1569
1569
|
});
|
|
1570
1570
|
});
|
|
1571
|
-
}), g(W), E(
|
|
1571
|
+
}), g(W), E(x);
|
|
1572
1572
|
}, [d, t, l]);
|
|
1573
1573
|
const [N, m] = O(""), s = (W) => {
|
|
1574
|
-
m((
|
|
1574
|
+
m((x) => x === W ? x : (E((z) => {
|
|
1575
1575
|
const q = z.map((te) => {
|
|
1576
|
-
var
|
|
1576
|
+
var V;
|
|
1577
1577
|
if (W === "")
|
|
1578
1578
|
return { ...te, filtered: !1 };
|
|
1579
|
-
const
|
|
1579
|
+
const S = te.value.toLowerCase(), X = (V = te.children) == null ? void 0 : V.toString().toLowerCase(), L = !S.includes(W) && !(X != null && X.toString().includes(W));
|
|
1580
1580
|
return {
|
|
1581
1581
|
...te,
|
|
1582
|
-
filtered:
|
|
1582
|
+
filtered: L
|
|
1583
1583
|
};
|
|
1584
1584
|
});
|
|
1585
1585
|
return n == null || n(
|
|
@@ -1596,42 +1596,42 @@ const Ue = (i, t = 10) => {
|
|
|
1596
1596
|
const I = (W) => {
|
|
1597
1597
|
W && (W.focus(), W.scrollIntoView({ behavior: "instant", block: "center", inline: "start" }));
|
|
1598
1598
|
}, D = ge(() => {
|
|
1599
|
-
var W,
|
|
1599
|
+
var W, x, z;
|
|
1600
1600
|
if (i.current) {
|
|
1601
|
-
const q = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), te = Array.from(((
|
|
1602
|
-
|
|
1601
|
+
const q = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), te = Array.from(((x = i.current) == null ? void 0 : x.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), S = Array.from(((z = i.current) == null ? void 0 : z.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), X = [...q, ...te, ...S], L = Array.from(X).findIndex((V) => V.tabIndex === 0);
|
|
1602
|
+
L >= 0 && I(X[L]);
|
|
1603
1603
|
}
|
|
1604
|
-
}, [i]),
|
|
1605
|
-
var W,
|
|
1604
|
+
}, [i]), U = ge(() => {
|
|
1605
|
+
var W, x, z;
|
|
1606
1606
|
if (i.current) {
|
|
1607
|
-
const q = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), te = Array.from(((
|
|
1607
|
+
const q = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), te = Array.from(((x = i.current) == null ? void 0 : x.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), S = Array.from(((z = i.current) == null ? void 0 : z.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), X = [...q, ...te, ...S];
|
|
1608
1608
|
if (X.length > 0) {
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1609
|
+
const L = Array.from(X).findLastIndex((V) => V.tabIndex === 0);
|
|
1610
|
+
L >= 0 && I(X[L]);
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
}, [i]), h = ge(() => {
|
|
1614
|
-
var W,
|
|
1614
|
+
var W, x, z;
|
|
1615
1615
|
if (i.current) {
|
|
1616
|
-
const q = document.activeElement, te = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []),
|
|
1617
|
-
if (
|
|
1618
|
-
const
|
|
1619
|
-
H >= 0 && I(
|
|
1616
|
+
const q = document.activeElement, te = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), S = Array.from(((x = i.current) == null ? void 0 : x.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), X = Array.from(((z = i.current) == null ? void 0 : z.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), L = [...te, ...S, ...X];
|
|
1617
|
+
if (L.length > 0) {
|
|
1618
|
+
const V = Array.from(L).findIndex((_) => _.isEqualNode(q)), H = Array.from(L).findIndex((_, me) => me > V && _.tabIndex === 0);
|
|
1619
|
+
H >= 0 && I(L[H]);
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
}, [i, D]), Y = ge(() => {
|
|
1623
|
-
var W,
|
|
1623
|
+
var W, x, z;
|
|
1624
1624
|
if (i.current) {
|
|
1625
|
-
const q = document.activeElement, te = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []),
|
|
1626
|
-
if (
|
|
1627
|
-
const
|
|
1628
|
-
H >= 0 && I(
|
|
1625
|
+
const q = document.activeElement, te = Array.from(((W = i.current) == null ? void 0 : W.querySelectorAll(".input-filter")) ?? []), S = Array.from(((x = i.current) == null ? void 0 : x.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), X = Array.from(((z = i.current) == null ? void 0 : z.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), L = [...te, ...S, ...X];
|
|
1626
|
+
if (L.length > 0) {
|
|
1627
|
+
const V = Array.from(L).findIndex((_) => _.isEqualNode(q)), H = Array.from(L).findLastIndex((_, me) => me < V && _.tabIndex === 0);
|
|
1628
|
+
H >= 0 && I(L[H]);
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
}, [i,
|
|
1632
|
-
|
|
1633
|
-
}, []),
|
|
1634
|
-
|
|
1631
|
+
}, [i, U]), [M, u] = O(!1), G = ge(() => {
|
|
1632
|
+
u(!0);
|
|
1633
|
+
}, []), j = ge(() => {
|
|
1634
|
+
u(!1);
|
|
1635
1635
|
}, []), p = C(!0);
|
|
1636
1636
|
ie(() => {
|
|
1637
1637
|
if (p.current) {
|
|
@@ -1642,7 +1642,7 @@ const Ue = (i, t = 10) => {
|
|
|
1642
1642
|
}, [M]);
|
|
1643
1643
|
const w = ge(
|
|
1644
1644
|
(W) => {
|
|
1645
|
-
const
|
|
1645
|
+
const x = W.filter((z) => z.selected).map((z) => ({
|
|
1646
1646
|
selected: z.selected,
|
|
1647
1647
|
value: z.value,
|
|
1648
1648
|
className: z.className,
|
|
@@ -1652,13 +1652,13 @@ const Ue = (i, t = 10) => {
|
|
|
1652
1652
|
iconPosition: z.iconPosition,
|
|
1653
1653
|
children: z.children
|
|
1654
1654
|
}));
|
|
1655
|
-
t === "text" &&
|
|
1655
|
+
t === "text" && x.length > 0 && j(), Ue(() => l == null ? void 0 : l(x));
|
|
1656
1656
|
},
|
|
1657
|
-
[l,
|
|
1658
|
-
), v = de(() => t === "checkbox", [t]),
|
|
1657
|
+
[l, j, t]
|
|
1658
|
+
), v = de(() => t === "checkbox", [t]), y = ge(
|
|
1659
1659
|
(W) => {
|
|
1660
|
-
W.disabled || W.filtered || E((
|
|
1661
|
-
const z =
|
|
1660
|
+
W.disabled || W.filtered || E((x) => {
|
|
1661
|
+
const z = x.map((q) => {
|
|
1662
1662
|
const te = W.name === q.name && W.value === q.value;
|
|
1663
1663
|
return v ? {
|
|
1664
1664
|
...q,
|
|
@@ -1672,42 +1672,42 @@ const Ue = (i, t = 10) => {
|
|
|
1672
1672
|
});
|
|
1673
1673
|
},
|
|
1674
1674
|
[E, v, w]
|
|
1675
|
-
),
|
|
1675
|
+
), B = ge(
|
|
1676
1676
|
(W) => {
|
|
1677
|
-
const
|
|
1678
|
-
return
|
|
1677
|
+
const x = b.filter((q) => q.name === W && !q.filtered && !q.disabled), z = x.some((q) => !q.selected);
|
|
1678
|
+
return x.length > 0 && !z;
|
|
1679
1679
|
},
|
|
1680
1680
|
[b]
|
|
1681
|
-
),
|
|
1681
|
+
), F = ge(
|
|
1682
1682
|
(W) => {
|
|
1683
|
-
E((
|
|
1684
|
-
const z =
|
|
1685
|
-
const
|
|
1683
|
+
E((x) => {
|
|
1684
|
+
const z = B(W), q = x.map((te) => {
|
|
1685
|
+
const S = W === te.name;
|
|
1686
1686
|
return {
|
|
1687
1687
|
...te,
|
|
1688
|
-
selected: !te.filtered && !te.disabled &&
|
|
1688
|
+
selected: !te.filtered && !te.disabled && S ? !z : te.selected
|
|
1689
1689
|
};
|
|
1690
1690
|
});
|
|
1691
1691
|
return w(q), q;
|
|
1692
1692
|
});
|
|
1693
1693
|
},
|
|
1694
|
-
[E,
|
|
1694
|
+
[E, B, w]
|
|
1695
1695
|
), T = ge(
|
|
1696
1696
|
(W) => b.filter((z) => z.name === W && !z.filtered && !z.disabled).length > 0,
|
|
1697
1697
|
[b]
|
|
1698
1698
|
), k = de(() => {
|
|
1699
|
-
const W = b.filter((z) => !z.filtered && !z.disabled),
|
|
1700
|
-
return W.length > 0 && !
|
|
1701
|
-
}, [b]),
|
|
1702
|
-
const W = b.filter((z) => !z.filtered),
|
|
1703
|
-
return W.length > 0 && !
|
|
1699
|
+
const W = b.filter((z) => !z.filtered && !z.disabled), x = W.some((z) => !z.selected);
|
|
1700
|
+
return W.length > 0 && !x;
|
|
1701
|
+
}, [b]), Q = de(() => {
|
|
1702
|
+
const W = b.filter((z) => !z.filtered), x = W.some((z) => !z.disabled);
|
|
1703
|
+
return W.length > 0 && !x;
|
|
1704
1704
|
}, [b]), K = ge(() => {
|
|
1705
1705
|
E((W) => {
|
|
1706
|
-
const
|
|
1706
|
+
const x = W.map((z) => ({
|
|
1707
1707
|
...z,
|
|
1708
1708
|
selected: !z.filtered && !z.disabled ? !k : z.selected
|
|
1709
1709
|
}));
|
|
1710
|
-
return w(
|
|
1710
|
+
return w(x), x;
|
|
1711
1711
|
});
|
|
1712
1712
|
}, [E, k, w]);
|
|
1713
1713
|
return {
|
|
@@ -1716,16 +1716,16 @@ const Ue = (i, t = 10) => {
|
|
|
1716
1716
|
options: b,
|
|
1717
1717
|
visibility: M,
|
|
1718
1718
|
show: G,
|
|
1719
|
-
hide:
|
|
1719
|
+
hide: j,
|
|
1720
1720
|
first: D,
|
|
1721
1721
|
prev: Y,
|
|
1722
1722
|
next: h,
|
|
1723
|
-
last:
|
|
1724
|
-
selectOption:
|
|
1723
|
+
last: U,
|
|
1724
|
+
selectOption: y,
|
|
1725
1725
|
hasSectionOptionsToInteract: T,
|
|
1726
|
-
selectSectionOptions:
|
|
1727
|
-
isAllSectionOptionsSelected:
|
|
1728
|
-
isAllDisabled:
|
|
1726
|
+
selectSectionOptions: F,
|
|
1727
|
+
isAllSectionOptionsSelected: B,
|
|
1728
|
+
isAllDisabled: Q,
|
|
1729
1729
|
isAllSelected: k,
|
|
1730
1730
|
selectAll: K,
|
|
1731
1731
|
applyFilter: s,
|
|
@@ -1771,15 +1771,15 @@ const Ue = (i, t = 10) => {
|
|
|
1771
1771
|
visibleCountAriaLabel: a,
|
|
1772
1772
|
children: l
|
|
1773
1773
|
}) => {
|
|
1774
|
-
const n = se(), A = t >= 0 ? `+${i - t}` : `+${i}`, o = Ge.map(l, (D,
|
|
1774
|
+
const n = se(), A = t >= 0 ? `+${i - t}` : `+${i}`, o = Ge.map(l, (D, U) => U >= t && Me(D) ? Ze(D) : null), d = C(null), r = C(null), [g, b] = O(!1), E = () => {
|
|
1775
1775
|
var D;
|
|
1776
1776
|
b(!1), (D = r.current) == null || D.focus();
|
|
1777
1777
|
}, N = () => {
|
|
1778
1778
|
var D;
|
|
1779
1779
|
b(!0), (D = d.current) == null || D.first();
|
|
1780
1780
|
}, m = () => {
|
|
1781
|
-
var D,
|
|
1782
|
-
(D = d.current) != null && D.visibility ? (
|
|
1781
|
+
var D, U, h;
|
|
1782
|
+
(D = d.current) != null && D.visibility ? (U = d.current) == null || U.hide() : (h = d.current) == null || h.show();
|
|
1783
1783
|
}, s = C(null), R = () => {
|
|
1784
1784
|
var D;
|
|
1785
1785
|
(D = d.current) == null || D.show();
|
|
@@ -1811,9 +1811,9 @@ const Ue = (i, t = 10) => {
|
|
|
1811
1811
|
type: "text",
|
|
1812
1812
|
hideSectionNames: !0
|
|
1813
1813
|
},
|
|
1814
|
-
/* @__PURE__ */ e.createElement(ci, { name: `avatar-list-${n}`, "aria-label": a }, o.map((D,
|
|
1814
|
+
/* @__PURE__ */ e.createElement(ci, { name: `avatar-list-${n}`, "aria-label": a }, o.map((D, U) => {
|
|
1815
1815
|
var Y;
|
|
1816
|
-
const h = `avatar-group-${n}-option-${
|
|
1816
|
+
const h = `avatar-group-${n}-option-${U}`;
|
|
1817
1817
|
return /* @__PURE__ */ e.createElement(
|
|
1818
1818
|
oi,
|
|
1819
1819
|
{
|
|
@@ -1905,9 +1905,9 @@ const Ue = (i, t = 10) => {
|
|
|
1905
1905
|
const n = se(), [A, o] = O(!1), d = C(null), r = C(null), g = J(l.className, "agora-breadcrumb-mobile"), b = l["aria-label"] ?? "Breadcrumb", E = (I) => {
|
|
1906
1906
|
r != null && r.current && I.target && !r.current.contains(I.target) && o(!1);
|
|
1907
1907
|
}, N = (I) => {
|
|
1908
|
-
var Y, M,
|
|
1908
|
+
var Y, M, u;
|
|
1909
1909
|
const D = (Y = r.current) == null ? void 0 : Y.querySelectorAll("a"), h = I.target.parentNode;
|
|
1910
|
-
I.shiftKey ? (D == null ? void 0 : D[0].parentNode) === h && (I.preventDefault(), D && ((M = D[D.length - 1]) == null || M.focus())) : (D == null ? void 0 : D[D.length - 1].parentNode) === h && (I.preventDefault(), D && ((
|
|
1910
|
+
I.shiftKey ? (D == null ? void 0 : D[0].parentNode) === h && (I.preventDefault(), D && ((M = D[D.length - 1]) == null || M.focus())) : (D == null ? void 0 : D[D.length - 1].parentNode) === h && (I.preventDefault(), D && ((u = D[0]) == null || u.focus()));
|
|
1911
1911
|
}, m = (I) => {
|
|
1912
1912
|
var D;
|
|
1913
1913
|
(I.key === "Escape" || I.key === "Esc") && (o(!1), (D = d.current) == null || D.focus()), I.key === "Tab" && N(I), I.key === "Enter" && o(!1);
|
|
@@ -1916,8 +1916,8 @@ const Ue = (i, t = 10) => {
|
|
|
1916
1916
|
var I, D;
|
|
1917
1917
|
if (A) {
|
|
1918
1918
|
document.addEventListener("mousedown", E);
|
|
1919
|
-
const
|
|
1920
|
-
|
|
1919
|
+
const U = (I = r.current) == null ? void 0 : I.querySelectorAll("a");
|
|
1920
|
+
U && ((D = U[0]) == null || D.focus());
|
|
1921
1921
|
}
|
|
1922
1922
|
return () => {
|
|
1923
1923
|
document.removeEventListener("mousedown", E);
|
|
@@ -1943,8 +1943,8 @@ const Ue = (i, t = 10) => {
|
|
|
1943
1943
|
},
|
|
1944
1944
|
(R = t.at(-1)) == null ? void 0 : R.label
|
|
1945
1945
|
), /* @__PURE__ */ e.createElement("ol", { id: `agora-mobile-breadcrumb-menu-${n}`, className: `${A ? "flex" : "hidden"}`, ref: r }, i && /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement("p", { className: "[&>*]:text-s-semibold text-s-semibold [&>*]:text-[var(--color-neutral-500)] text-[var(--color-neutral-500)]" }, i)), t.map((I, D) => {
|
|
1946
|
-
const
|
|
1947
|
-
return D === t.length - 1 || !I.url ? /* @__PURE__ */ e.createElement("li", { id:
|
|
1946
|
+
const U = `agora-mobile-breadcrumb-link-${n}${D}`;
|
|
1947
|
+
return D === t.length - 1 || !I.url ? /* @__PURE__ */ e.createElement("li", { id: U, key: U }, /* @__PURE__ */ e.createElement("span", { "aria-current": "page", className: "inline-flex items-center min-h-[44px]" }, I.label)) : /* @__PURE__ */ e.createElement("li", { id: U, key: U }, /* @__PURE__ */ e.createElement(De, { variant: "neutral", appearance: "link", href: I.url, onKeyDown: m }, I.label));
|
|
1948
1948
|
})));
|
|
1949
1949
|
}, $l = ({ items: i = [], ...t }) => {
|
|
1950
1950
|
const a = J("agora-breadcrumb", t.className, {
|
|
@@ -1966,9 +1966,9 @@ const Ue = (i, t = 10) => {
|
|
|
1966
1966
|
const [b, E] = O([]), N = de(() => {
|
|
1967
1967
|
const R = [];
|
|
1968
1968
|
return Array.isArray(n) ? n.forEach((I, D) => {
|
|
1969
|
-
Me(I) && (I.props.selected && E((
|
|
1969
|
+
Me(I) && (I.props.selected && E((U) => {
|
|
1970
1970
|
if (t) {
|
|
1971
|
-
const h = [...
|
|
1971
|
+
const h = [...U, D];
|
|
1972
1972
|
return [...new Set(h)];
|
|
1973
1973
|
}
|
|
1974
1974
|
return [D];
|
|
@@ -1978,14 +1978,14 @@ const Ue = (i, t = 10) => {
|
|
|
1978
1978
|
const I = [...b];
|
|
1979
1979
|
if (c(t))
|
|
1980
1980
|
if (b.includes(R)) {
|
|
1981
|
-
const
|
|
1982
|
-
I.splice(
|
|
1981
|
+
const U = I.indexOf(R);
|
|
1982
|
+
I.splice(U, 1);
|
|
1983
1983
|
} else
|
|
1984
1984
|
I.push(R);
|
|
1985
1985
|
else
|
|
1986
1986
|
b.length > 0 && b[0] === R ? I.splice(0, 1) : I.splice(0, I.length, R);
|
|
1987
1987
|
if (E(I), l) {
|
|
1988
|
-
const D = N.filter((
|
|
1988
|
+
const D = N.filter((U, h) => I.includes(h));
|
|
1989
1989
|
l(D);
|
|
1990
1990
|
}
|
|
1991
1991
|
}, s = J(
|
|
@@ -2002,9 +2002,9 @@ const Ue = (i, t = 10) => {
|
|
|
2002
2002
|
id: R.props.id ?? `${g.id}-button-${I}`,
|
|
2003
2003
|
variant: i,
|
|
2004
2004
|
appearance: "outline",
|
|
2005
|
-
onClick: (
|
|
2005
|
+
onClick: (U) => {
|
|
2006
2006
|
var h, Y;
|
|
2007
|
-
m(I), (Y = (h = R.props).onClick) == null || Y.call(h,
|
|
2007
|
+
m(I), (Y = (h = R.props).onClick) == null || Y.call(h, U);
|
|
2008
2008
|
},
|
|
2009
2009
|
selected: D,
|
|
2010
2010
|
darkMode: c(A),
|
|
@@ -2092,20 +2092,20 @@ const Ue = (i, t = 10) => {
|
|
|
2092
2092
|
a && (I = {
|
|
2093
2093
|
...a
|
|
2094
2094
|
}, I.hasIcon && !I.trailingIcon && !I.leadingIcon && (I.trailingIcon = "agora-line-arrow-right-circle", I.trailingIconHover = "agora-solid-arrow-right-circle"), a.hidden ? (delete I.hidden, R.title = !!d, R.subtitle = !d && !!r, R.children = !d && !r && !!n, R.pill = !d && !r && !n && !!i) : R.anchor = !0);
|
|
2095
|
-
const D = (Y, M,
|
|
2095
|
+
const D = (Y, M, u, G) => u ? /* @__PURE__ */ e.createElement(e.Fragment, null, G && /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(De, { ...M, appearance: "link", ref: m }, Y)), !G && /* @__PURE__ */ e.createElement(De, { ...M, appearance: "link", ref: m }, Y)) : G ? /* @__PURE__ */ e.createElement(o, null, Y) : Y;
|
|
2096
2096
|
Le({
|
|
2097
2097
|
parentCardRef: N,
|
|
2098
2098
|
anchorRef: m,
|
|
2099
2099
|
blockedLink: c(l)
|
|
2100
2100
|
});
|
|
2101
|
-
const
|
|
2101
|
+
const U = J(
|
|
2102
2102
|
"agora-card-article",
|
|
2103
2103
|
{ indented: g === "indented" },
|
|
2104
2104
|
{ default: g === "default" },
|
|
2105
2105
|
b,
|
|
2106
2106
|
{ "has-image": !!A }
|
|
2107
2107
|
), h = J("anchor-container", { "icon-only": I == null ? void 0 : I.iconOnly });
|
|
2108
|
-
return /* @__PURE__ */ e.createElement("div", { ...E, role: "presentation", ref: N, className:
|
|
2108
|
+
return /* @__PURE__ */ e.createElement("div", { ...E, role: "presentation", ref: N, className: U }, A && /* @__PURE__ */ e.createElement("div", { className: "container-image w-full" }, /* @__PURE__ */ e.createElement("img", { src: A.src, className: "card-image w-full", alt: A.alt })), /* @__PURE__ */ e.createElement("div", { className: "container-body" }, i && /* @__PURE__ */ e.createElement("div", { className: "pill-container" }, /* @__PURE__ */ e.createElement(ki, { size: "default", appearance: "solid", variant: t }, D(i, I, R.pill, s.pill))), r && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, D(r, I, R.subtitle, s.subtitle)), d && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, D(d, I, R.title, s.title)), n && /* @__PURE__ */ e.createElement("div", { className: "children-container" }, D(n, I, R.children, s.children)), R.anchor && /* @__PURE__ */ e.createElement("div", { className: h }, D(I.children, I, R.anchor, s.anchor))));
|
|
2109
2109
|
}, tn = ({
|
|
2110
2110
|
headingLevel: i = "h3",
|
|
2111
2111
|
subtitle: t,
|
|
@@ -2128,7 +2128,7 @@ const Ue = (i, t = 10) => {
|
|
|
2128
2128
|
l && (N = {
|
|
2129
2129
|
...l
|
|
2130
2130
|
}, N.hasIcon && !N.trailingIcon && !N.leadingIcon && (N.trailingIcon = "agora-line-arrow-right-circle", N.trailingIconHover = "agora-solid-arrow-right-circle"), l.hidden ? (delete N.hidden, E.title = !!a, E.subtitle = !a && !!t) : E.anchor = !0);
|
|
2131
|
-
const m = (R, I, D,
|
|
2131
|
+
const m = (R, I, D, U) => D ? /* @__PURE__ */ e.createElement(e.Fragment, null, U && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(De, { ...I, variant: "neutral", darkMode: !0, appearance: "link", ref: r }, R)), !U && /* @__PURE__ */ e.createElement(De, { ...I, variant: "neutral", darkMode: !0, appearance: "link", ref: r }, R)) : U ? /* @__PURE__ */ e.createElement(i, null, R) : R;
|
|
2132
2132
|
Le({
|
|
2133
2133
|
parentCardRef: d,
|
|
2134
2134
|
anchorRef: r,
|
|
@@ -2239,12 +2239,12 @@ const Ue = (i, t = 10) => {
|
|
|
2239
2239
|
...m.props,
|
|
2240
2240
|
key: R,
|
|
2241
2241
|
onExpanded: (D) => {
|
|
2242
|
-
var
|
|
2243
|
-
(h = (
|
|
2242
|
+
var U, h;
|
|
2243
|
+
(h = (U = m.props).onExpanded) == null || h.call(U, D), b();
|
|
2244
2244
|
},
|
|
2245
2245
|
onCollapsed: (D) => {
|
|
2246
|
-
var
|
|
2247
|
-
(h = (
|
|
2246
|
+
var U, h;
|
|
2247
|
+
(h = (U = m.props).onCollapsed) == null || h.call(U, D), E();
|
|
2248
2248
|
}
|
|
2249
2249
|
});
|
|
2250
2250
|
N.push(I);
|
|
@@ -2271,7 +2271,7 @@ const Ue = (i, t = 10) => {
|
|
|
2271
2271
|
l && (N = {
|
|
2272
2272
|
...l
|
|
2273
2273
|
}, N.hasIcon && !N.trailingIcon && !N.leadingIcon && (N.leadingIcon = "agora-line-arrow-right-circle", N.leadingIconHover = "agora-solid-arrow-right-circle"), l.hidden ? (delete N.hidden, E.label = !!t, E.children = !t && !!A) : E.anchor = !0);
|
|
2274
|
-
const m = (R, I, D,
|
|
2274
|
+
const m = (R, I, D, U) => D ? /* @__PURE__ */ e.createElement(e.Fragment, null, U && /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(De, { ...I, appearance: "link", ref: r }, R)), !U && /* @__PURE__ */ e.createElement(De, { ...I, appearance: "link", ref: r }, R)) : U ? /* @__PURE__ */ e.createElement(a, null, R) : R;
|
|
2275
2275
|
Le({
|
|
2276
2276
|
parentCardRef: d,
|
|
2277
2277
|
anchorRef: r,
|
|
@@ -2388,7 +2388,7 @@ const Ue = (i, t = 10) => {
|
|
|
2388
2388
|
title: !!t,
|
|
2389
2389
|
subtitle: !t && !!a,
|
|
2390
2390
|
description: !t && !a && !!l
|
|
2391
|
-
}, I = (D,
|
|
2391
|
+
}, I = (D, U) => U ? /* @__PURE__ */ e.createElement(A, null, D) : D;
|
|
2392
2392
|
return /* @__PURE__ */ e.createElement("div", { className: E, ...b }, /* @__PURE__ */ e.createElement("div", { className: "card-image-container" }, /* @__PURE__ */ e.createElement("img", { className: "card-image", ...i, src: i.src, alt: i.alt, "aria-hidden": i["aria-hidden"] ?? !0 })), (t || a) && n === "exterior" && !s && !m && /* @__PURE__ */ e.createElement("div", { className: "card-box-exterior" }, /* @__PURE__ */ e.createElement("div", { className: "card-info" }, a && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, I(a, R.subtitle)), t && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, I(t, R.title)))), /* @__PURE__ */ e.createElement("div", { className: "card-content" }, /* @__PURE__ */ e.createElement("div", { className: "shared-card-content" }, /* @__PURE__ */ e.createElement(
|
|
2393
2393
|
Bt,
|
|
2394
2394
|
{
|
|
@@ -2524,7 +2524,7 @@ const Ue = (i, t = 10) => {
|
|
|
2524
2524
|
anchorRef: b,
|
|
2525
2525
|
blockedLink: c(o)
|
|
2526
2526
|
});
|
|
2527
|
-
const s = J("card-single", `card-${i}`, d), R = (D,
|
|
2527
|
+
const s = J("card-single", `card-${i}`, d), R = (D, U, h, Y) => h ? /* @__PURE__ */ e.createElement(e.Fragment, null, Y && /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(De, { ...U, appearance: "link", ref: b }, D)), !Y && /* @__PURE__ */ e.createElement(De, { ...U, appearance: "link", ref: b }, D)) : Y ? /* @__PURE__ */ e.createElement(a, null, D) : D, I = J("anchor-container", { "icon-only": m == null ? void 0 : m.iconOnly });
|
|
2528
2528
|
return /* @__PURE__ */ e.createElement("div", { ...r, ref: g, role: "presentation", className: s }, t && /* @__PURE__ */ e.createElement("div", { className: "icon-container" }, /* @__PURE__ */ e.createElement(ae, { ...t, className: "card-single-icon", dimensions: "m" })), /* @__PURE__ */ e.createElement("div", { className: "info-container" }, l && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, R(l, m, N.title, E.title)), n && /* @__PURE__ */ e.createElement("div", { className: "description-container" }, R(n, m, N.description, E.description))), N.anchor && /* @__PURE__ */ e.createElement("div", { className: I }, R(m.children, m, N.anchor, E.anchor)));
|
|
2529
2529
|
}, Rn = ({
|
|
2530
2530
|
headingLevel: i = "h3",
|
|
@@ -2554,16 +2554,18 @@ const Ue = (i, t = 10) => {
|
|
|
2554
2554
|
d && (I = {
|
|
2555
2555
|
...d
|
|
2556
2556
|
}, I.hasIcon && !I.trailingIcon && !I.leadingIcon && (I.trailingIcon = "agora-line-arrow-right-circle", I.trailingIconHover = "agora-solid-arrow-right-circle"), d.hidden ? (delete I.hidden, R.title = !!a, R.description = !a && !!l, R.pill = !a && !l && !!n) : R.anchor = !0);
|
|
2557
|
-
const D = (M,
|
|
2557
|
+
const D = (M, u, G, j) => G ? /* @__PURE__ */ e.createElement(e.Fragment, null, j && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(De, { ...u, appearance: "link", variant: E, ref: m }, M)), !j && /* @__PURE__ */ e.createElement(De, { ...u, appearance: "link", variant: E, ref: m }, M)) : j ? /* @__PURE__ */ e.createElement(i, null, M) : M;
|
|
2558
2558
|
Le({
|
|
2559
2559
|
parentCardRef: N,
|
|
2560
2560
|
anchorRef: m,
|
|
2561
2561
|
blockedLink: c(r)
|
|
2562
2562
|
});
|
|
2563
|
-
const
|
|
2564
|
-
return /* @__PURE__ */ e.createElement("div", { ...b, role: "presentation", className:
|
|
2563
|
+
const U = J("agora-card-topic", `card-${t}`, { "has-anchor-label": !(d != null && d.iconOnly) }, g), h = J("card-topic-status", `card-topic-status-${o}`), Y = J("card-topic-anchor", { "icon-only": I == null ? void 0 : I.iconOnly });
|
|
2564
|
+
return /* @__PURE__ */ e.createElement("div", { ...b, role: "presentation", className: U, ref: N }, /* @__PURE__ */ e.createElement("div", { className: "content-info" }, n && /* @__PURE__ */ e.createElement("div", { className: "card-topic-pill" }, /* @__PURE__ */ e.createElement(ki, { appearance: "solid", size: "default", variant: E }, D(n, I, R.pill, s.pill), " ")), a && /* @__PURE__ */ e.createElement("div", { className: "card-topic-title" }, D(a, I, R.title, s.title)), A && /* @__PURE__ */ e.createElement("div", { className: "flex items-center gap-8" }, /* @__PURE__ */ e.createElement("div", { className: h }), /* @__PURE__ */ e.createElement("div", null, A)), l && /* @__PURE__ */ e.createElement("div", { className: "card-topic-description" }, D(l, I, R.description, s.description))), R.anchor && /* @__PURE__ */ e.createElement("div", { className: Y }, D(I.children, I, R.anchor, s.anchor)));
|
|
2565
2565
|
}, Tt = ({ className: i, feedbackState: t = "info", feedbackText: a, darkMode: l, ...n }, A) => {
|
|
2566
|
-
const o = J("feedback", i), d = J("feedback-icon-wrapper", `feedback-icon-wrapper-${t}
|
|
2566
|
+
const o = J("feedback", i), d = J("feedback-icon-wrapper", `feedback-icon-wrapper-${t}`, {
|
|
2567
|
+
dark: c(l)
|
|
2568
|
+
}), r = J("feedback-text", c(l) ? "feedback-text-dark" : "feedback-text-light"), g = {
|
|
2567
2569
|
info: "agora-solid-info-mark",
|
|
2568
2570
|
danger: "agora-solid-alert-triangle",
|
|
2569
2571
|
success: "agora-solid-check-circle",
|
|
@@ -2588,11 +2590,11 @@ const Ue = (i, t = 10) => {
|
|
|
2588
2590
|
const m = se(), s = { ...b };
|
|
2589
2591
|
s.id = s.id ?? m;
|
|
2590
2592
|
const [R, I] = O(c(s.checked ?? s.defaultChecked)), D = (M) => {
|
|
2591
|
-
var
|
|
2592
|
-
s.disabled || s.readOnly || M.target === M.currentTarget && (M.code === "Space" || M.code === "Enter" || M.code === "NumpadEnter") && (M.preventDefault(), M.stopPropagation(), (
|
|
2593
|
-
},
|
|
2594
|
-
var
|
|
2595
|
-
s.disabled || s.readOnly || M.target === M.currentTarget && M.detail > 0 && (M.preventDefault(), M.stopPropagation(), (
|
|
2593
|
+
var u;
|
|
2594
|
+
s.disabled || s.readOnly || M.target === M.currentTarget && (M.code === "Space" || M.code === "Enter" || M.code === "NumpadEnter") && (M.preventDefault(), M.stopPropagation(), (u = N.current) == null || u.click());
|
|
2595
|
+
}, U = (M) => {
|
|
2596
|
+
var u;
|
|
2597
|
+
s.disabled || s.readOnly || M.target === M.currentTarget && M.detail > 0 && (M.preventDefault(), M.stopPropagation(), (u = N.current) == null || u.click());
|
|
2596
2598
|
}, h = () => {
|
|
2597
2599
|
I((M) => !M);
|
|
2598
2600
|
}, Y = J(
|
|
@@ -2625,11 +2627,10 @@ const Ue = (i, t = 10) => {
|
|
|
2625
2627
|
"aria-required": n,
|
|
2626
2628
|
"aria-invalid": c(a),
|
|
2627
2629
|
onKeyDownCapture: D,
|
|
2628
|
-
onClickCapture:
|
|
2630
|
+
onClickCapture: U
|
|
2629
2631
|
},
|
|
2630
2632
|
/* @__PURE__ */ e.createElement("input", { className: "hidden", ...s, type: "checkbox", ref: N, onChange: h }),
|
|
2631
|
-
/* @__PURE__ */ e.createElement("span", { className: "mark" }, R && /* @__PURE__ */ e.createElement(ae, { name: "agora-line-check", "aria-hidden": !0 })),
|
|
2632
|
-
!l && /* @__PURE__ */ e.createElement("label", { className: "label", htmlFor: s.id }, /* @__PURE__ */ e.createElement("span", null, g ?? t))
|
|
2633
|
+
/* @__PURE__ */ e.createElement("label", { className: "label-checkbox", htmlFor: s.id }, /* @__PURE__ */ e.createElement("span", { className: "mark" }, R && /* @__PURE__ */ e.createElement(ae, { name: "agora-line-check", "aria-hidden": !0 })), !l && /* @__PURE__ */ e.createElement("span", { className: "label" }, g ?? t))
|
|
2633
2634
|
), (c(A) || c(a)) && d && /* @__PURE__ */ e.createElement("div", { className: "agora-radio-button-feedback px-8" }, /* @__PURE__ */ e.createElement(
|
|
2634
2635
|
pe,
|
|
2635
2636
|
{
|
|
@@ -2688,9 +2689,9 @@ const Ue = (i, t = 10) => {
|
|
|
2688
2689
|
return;
|
|
2689
2690
|
}
|
|
2690
2691
|
if (m.current && D.key === "Tab") {
|
|
2691
|
-
const
|
|
2692
|
+
const U = m.current.querySelectorAll(
|
|
2692
2693
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
2693
|
-
), h =
|
|
2694
|
+
), h = U[0], Y = U[U.length - 1];
|
|
2694
2695
|
D.shiftKey && document.activeElement === h ? (D.preventDefault(), Y.focus()) : !D.shiftKey && document.activeElement === Y && (D.preventDefault(), h.focus());
|
|
2695
2696
|
}
|
|
2696
2697
|
}, R = (D) => {
|
|
@@ -2701,10 +2702,10 @@ const Ue = (i, t = 10) => {
|
|
|
2701
2702
|
}), [l, t, a, R, s]), ie(() => {
|
|
2702
2703
|
if (g) {
|
|
2703
2704
|
if (document.body.classList.add("overflow-hidden"), m.current) {
|
|
2704
|
-
const
|
|
2705
|
+
const U = m.current.querySelectorAll(
|
|
2705
2706
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
2706
2707
|
)[0];
|
|
2707
|
-
|
|
2708
|
+
U && U.focus();
|
|
2708
2709
|
}
|
|
2709
2710
|
} else
|
|
2710
2711
|
document.body.classList.remove("overflow-hidden");
|
|
@@ -2737,19 +2738,19 @@ const Ue = (i, t = 10) => {
|
|
|
2737
2738
|
{ ["agora-drawer-open-" + l]: N },
|
|
2738
2739
|
{ ["agora-drawer-close-" + l]: !N }
|
|
2739
2740
|
), I = () => {
|
|
2740
|
-
var h, Y, M,
|
|
2741
|
-
const
|
|
2742
|
-
var G,
|
|
2743
|
-
m(!1), (G = s.current) == null || G.hide(), (w = (p = (
|
|
2741
|
+
var h, Y, M, u;
|
|
2742
|
+
const U = () => {
|
|
2743
|
+
var G, j, p, w, v, y;
|
|
2744
|
+
m(!1), (G = s.current) == null || G.hide(), (w = (p = (j = s.current) == null ? void 0 : j.querySelector(".agora-drawer")) == null ? void 0 : p.classList) == null || w.remove(`agora-drawer-close-${l}`), (y = (v = s.current) == null ? void 0 : v.querySelector(".agora-drawer")) == null || y.removeEventListener("animationend", U), o == null || o();
|
|
2744
2745
|
};
|
|
2745
|
-
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend",
|
|
2746
|
+
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend", U), (u = (M = s.current) == null ? void 0 : M.querySelector(".agora-drawer")) == null || u.classList.add(`agora-drawer-close-${l}`);
|
|
2746
2747
|
}, D = () => {
|
|
2747
2748
|
var h, Y, M;
|
|
2748
|
-
const
|
|
2749
|
-
var
|
|
2750
|
-
(G = (
|
|
2749
|
+
const U = () => {
|
|
2750
|
+
var u, G;
|
|
2751
|
+
(G = (u = s.current) == null ? void 0 : u.querySelector(".agora-drawer")) == null || G.removeEventListener("animationend", U), A == null || A();
|
|
2751
2752
|
};
|
|
2752
|
-
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend",
|
|
2753
|
+
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend", U), m(!0), (M = s.current) == null || M.show();
|
|
2753
2754
|
};
|
|
2754
2755
|
return Je(
|
|
2755
2756
|
E,
|
|
@@ -2776,21 +2777,21 @@ const Ue = (i, t = 10) => {
|
|
|
2776
2777
|
var Y, M;
|
|
2777
2778
|
const g = se(), b = { ...d };
|
|
2778
2779
|
b.id = b.id ?? g;
|
|
2779
|
-
const [E, N] = O("neutral"), m = (
|
|
2780
|
-
N((G) => G ===
|
|
2780
|
+
const [E, N] = O("neutral"), m = (u) => {
|
|
2781
|
+
N((G) => G === u ? "neutral" : u);
|
|
2781
2782
|
};
|
|
2782
2783
|
ie(() => {
|
|
2783
2784
|
Ue(() => o == null ? void 0 : o(E));
|
|
2784
2785
|
}, [E]);
|
|
2785
|
-
const s = (
|
|
2786
|
-
const
|
|
2786
|
+
const s = (u, G) => {
|
|
2787
|
+
const j = E === G;
|
|
2787
2788
|
return /* @__PURE__ */ e.createElement(
|
|
2788
2789
|
Ne,
|
|
2789
2790
|
{
|
|
2790
|
-
...
|
|
2791
|
+
...u,
|
|
2791
2792
|
id: `${b.id}-${G}`,
|
|
2792
2793
|
onClick: () => m(G),
|
|
2793
|
-
appearance:
|
|
2794
|
+
appearance: j ? "solid" : "outline",
|
|
2794
2795
|
"aria-pressed": E === G ? "true" : "false"
|
|
2795
2796
|
}
|
|
2796
2797
|
);
|
|
@@ -2803,7 +2804,7 @@ const Ue = (i, t = 10) => {
|
|
|
2803
2804
|
},
|
|
2804
2805
|
[E]
|
|
2805
2806
|
);
|
|
2806
|
-
const
|
|
2807
|
+
const U = {
|
|
2807
2808
|
...i,
|
|
2808
2809
|
className: "agora-btn-like",
|
|
2809
2810
|
hasIcon: !0,
|
|
@@ -2824,7 +2825,7 @@ const Ue = (i, t = 10) => {
|
|
|
2824
2825
|
iconOnly: a,
|
|
2825
2826
|
"aria-label": a ? (M = t == null ? void 0 : t.children) == null ? void 0 : M.toString() : null
|
|
2826
2827
|
};
|
|
2827
|
-
return /* @__PURE__ */ e.createElement("div", { ...d, className: R, ref: D }, /* @__PURE__ */ e.createElement("div", { className: I }, !!i && s(
|
|
2828
|
+
return /* @__PURE__ */ e.createElement("div", { ...d, className: R, ref: D }, /* @__PURE__ */ e.createElement("div", { className: I }, !!i && s(U, "like"), !!t && s(h, "dislike")));
|
|
2828
2829
|
}, Ot = re(Vt), Xt = ({
|
|
2829
2830
|
label: i,
|
|
2830
2831
|
hideLabel: t,
|
|
@@ -2841,32 +2842,32 @@ const Ue = (i, t = 10) => {
|
|
|
2841
2842
|
feedbackText: N = "",
|
|
2842
2843
|
...m
|
|
2843
2844
|
}, s) => {
|
|
2844
|
-
const R = se(), I = Array.from({ length: Math.max(3, l) }), D = C(null), [
|
|
2845
|
-
c(A) && (
|
|
2846
|
-
}, G = (
|
|
2847
|
-
c(A) || M(
|
|
2848
|
-
},
|
|
2845
|
+
const R = se(), I = Array.from({ length: Math.max(3, l) }), D = C(null), [U, h] = O(d ? d - 1 : 0), [Y, M] = O(0), u = (F) => {
|
|
2846
|
+
c(A) && (F.preventDefault(), F.stopPropagation());
|
|
2847
|
+
}, G = (F) => () => {
|
|
2848
|
+
c(A) || M(F);
|
|
2849
|
+
}, j = () => {
|
|
2849
2850
|
c(A) || M(-1);
|
|
2850
|
-
}, p = (
|
|
2851
|
-
c(A) || h(
|
|
2852
|
-
}, w = (
|
|
2851
|
+
}, p = (F) => () => {
|
|
2852
|
+
c(A) || h(F);
|
|
2853
|
+
}, w = (F) => {
|
|
2853
2854
|
if (c(A))
|
|
2854
2855
|
return;
|
|
2855
|
-
const { code: T } =
|
|
2856
|
+
const { code: T } = F;
|
|
2856
2857
|
h((k) => T === "ArrowLeft" ? Math.max(0, k - 1) : T === "ArrowRight" ? Math.min(I.length - 1, k + 1) : k);
|
|
2857
|
-
}, v = (
|
|
2858
|
-
const T = parseInt(
|
|
2858
|
+
}, v = (F) => {
|
|
2859
|
+
const T = parseInt(F.target.getAttribute("data-star-value") ?? "0", 10);
|
|
2859
2860
|
h((k) => k < 0 ? T : k);
|
|
2860
2861
|
};
|
|
2861
2862
|
ie(() => {
|
|
2862
|
-
var
|
|
2863
|
-
if ((
|
|
2863
|
+
var F;
|
|
2864
|
+
if ((F = document.activeElement) != null && F.classList.contains("star") && D.current) {
|
|
2864
2865
|
const T = D.current.querySelector(".star[tabindex = '0']");
|
|
2865
2866
|
T && T.focus();
|
|
2866
2867
|
}
|
|
2867
|
-
Ue(() => r == null ? void 0 : r(
|
|
2868
|
-
}, [
|
|
2869
|
-
const
|
|
2868
|
+
Ue(() => r == null ? void 0 : r(U + 1));
|
|
2869
|
+
}, [U]);
|
|
2870
|
+
const y = J(
|
|
2870
2871
|
"agora-rating-stars",
|
|
2871
2872
|
{ dark: c(n) },
|
|
2872
2873
|
{ "read-only": c(A) },
|
|
@@ -2876,39 +2877,39 @@ const Ue = (i, t = 10) => {
|
|
|
2876
2877
|
["feedback-" + E]: c(b) && E
|
|
2877
2878
|
},
|
|
2878
2879
|
o
|
|
2879
|
-
),
|
|
2880
|
+
), B = C(null);
|
|
2880
2881
|
return Je(
|
|
2881
2882
|
s,
|
|
2882
|
-
|
|
2883
|
+
B,
|
|
2883
2884
|
{
|
|
2884
|
-
rating:
|
|
2885
|
+
rating: U + 1
|
|
2885
2886
|
},
|
|
2886
|
-
[
|
|
2887
|
+
[U]
|
|
2887
2888
|
), /* @__PURE__ */ e.createElement(
|
|
2888
2889
|
"div",
|
|
2889
2890
|
{
|
|
2890
|
-
ref:
|
|
2891
|
-
className:
|
|
2891
|
+
ref: B,
|
|
2892
|
+
className: y,
|
|
2892
2893
|
...m,
|
|
2893
2894
|
role: "radiogroup",
|
|
2894
2895
|
...c(t) ? { "aria-label": i == null ? void 0 : i.toString() } : { "aria-labelledby": `label-${R}` }
|
|
2895
2896
|
},
|
|
2896
|
-
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-8" }, !c(t) && /* @__PURE__ */ e.createElement("div", { id: `label-${R}`, className: "rating-label" }, i), /* @__PURE__ */ e.createElement("div", { ref: D, className: "rating-wrapper" }, I.map((
|
|
2897
|
-
const k = T + 1,
|
|
2897
|
+
/* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-8" }, !c(t) && /* @__PURE__ */ e.createElement("div", { id: `label-${R}`, className: "rating-label" }, i), /* @__PURE__ */ e.createElement("div", { ref: D, className: "rating-wrapper" }, I.map((F, T) => {
|
|
2898
|
+
const k = T + 1, Q = T <= Y, K = U !== null && T <= U, W = Q || K ? "agora-solid-star" : "agora-line-star", x = `${R}-star-${T}`;
|
|
2898
2899
|
let z = -1;
|
|
2899
|
-
return
|
|
2900
|
+
return U < 0 ? z = T === 0 ? 0 : -1 : z = U === T ? 0 : -1, /* @__PURE__ */ e.createElement(
|
|
2900
2901
|
"div",
|
|
2901
2902
|
{
|
|
2902
|
-
key:
|
|
2903
|
+
key: x,
|
|
2903
2904
|
id: `${R}-${T}`,
|
|
2904
2905
|
className: "star",
|
|
2905
2906
|
role: "radio",
|
|
2906
|
-
"aria-checked":
|
|
2907
|
+
"aria-checked": U === T,
|
|
2907
2908
|
tabIndex: z,
|
|
2908
2909
|
"aria-label": `${a} ${T + 1}`,
|
|
2909
|
-
onMouseDownCapture:
|
|
2910
|
+
onMouseDownCapture: u,
|
|
2910
2911
|
onMouseEnter: G(T),
|
|
2911
|
-
onMouseLeave:
|
|
2912
|
+
onMouseLeave: j,
|
|
2912
2913
|
onClick: p(T),
|
|
2913
2914
|
onKeyDown: w,
|
|
2914
2915
|
onFocus: v,
|
|
@@ -3271,29 +3272,29 @@ const Ue = (i, t = 10) => {
|
|
|
3271
3272
|
Y == null || Y.setAttribute("aria-expanded", M.toString()), E(M);
|
|
3272
3273
|
}
|
|
3273
3274
|
}, s = (Y) => {
|
|
3274
|
-
var M,
|
|
3275
|
-
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.add("active"), (
|
|
3275
|
+
var M, u;
|
|
3276
|
+
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.add("active"), (u = d.onMouseDown) == null || u.call(d, Y);
|
|
3276
3277
|
}, R = (Y) => {
|
|
3277
|
-
var M,
|
|
3278
|
-
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.remove("active"), (
|
|
3278
|
+
var M, u;
|
|
3279
|
+
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.remove("active"), (u = d.onMouseUp) == null || u.call(d, Y);
|
|
3279
3280
|
}, I = (Y) => {
|
|
3280
|
-
var M,
|
|
3281
|
-
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.remove("active"), (
|
|
3281
|
+
var M, u;
|
|
3282
|
+
Y.preventDefault(), (M = Y.currentTarget) == null || M.classList.remove("active"), (u = d.onMouseLeave) == null || u.call(d, Y);
|
|
3282
3283
|
}, D = (Y) => {
|
|
3283
|
-
var M,
|
|
3284
|
-
(Y.code === "Enter" || Y.code === "NumpadEnter" || Y.code === "Space") && ((M = Y.currentTarget) == null || M.classList.add("active")), (
|
|
3285
|
-
},
|
|
3286
|
-
var M,
|
|
3287
|
-
(Y.code === "Enter" || Y.code === "NumpadEnter" || Y.code === "Space") && ((M = Y.currentTarget) == null || M.classList.remove("active"), (
|
|
3284
|
+
var M, u;
|
|
3285
|
+
(Y.code === "Enter" || Y.code === "NumpadEnter" || Y.code === "Space") && ((M = Y.currentTarget) == null || M.classList.add("active")), (u = d.onKeyDown) == null || u.call(d, Y);
|
|
3286
|
+
}, U = (Y) => {
|
|
3287
|
+
var M, u, G, j;
|
|
3288
|
+
(Y.code === "Enter" || Y.code === "NumpadEnter" || Y.code === "Space") && ((M = Y.currentTarget) == null || M.classList.remove("active"), (u = Y.currentTarget) == null || u.setAttribute("data-custom-triggered-click", "true"), (G = Y.currentTarget) == null || G.click()), (j = d.onKeyUp) == null || j.call(d, Y);
|
|
3288
3289
|
}, h = (Y) => {
|
|
3289
|
-
var
|
|
3290
|
+
var u, G, j, p;
|
|
3290
3291
|
if (Y.detail > 0) {
|
|
3291
|
-
(
|
|
3292
|
+
(u = d.onClick) == null || u.call(d, Y), c(A) || Y.preventDefault(), m();
|
|
3292
3293
|
return;
|
|
3293
3294
|
}
|
|
3294
3295
|
m();
|
|
3295
3296
|
const M = ((G = N.current) == null ? void 0 : G.getAttribute("data-custom-triggered-click")) === "true";
|
|
3296
|
-
if (M && ((
|
|
3297
|
+
if (M && ((j = N.current) == null || j.removeAttribute("data-custom-triggered-click")), !M) {
|
|
3297
3298
|
Y.preventDefault();
|
|
3298
3299
|
return;
|
|
3299
3300
|
}
|
|
@@ -3322,7 +3323,7 @@ const Ue = (i, t = 10) => {
|
|
|
3322
3323
|
type: "button",
|
|
3323
3324
|
onClick: h,
|
|
3324
3325
|
onKeyDown: D,
|
|
3325
|
-
onKeyUp:
|
|
3326
|
+
onKeyUp: U,
|
|
3326
3327
|
onMouseDown: s,
|
|
3327
3328
|
onMouseUp: R,
|
|
3328
3329
|
onMouseLeave: I,
|
|
@@ -3339,7 +3340,7 @@ const Ue = (i, t = 10) => {
|
|
|
3339
3340
|
ref: N,
|
|
3340
3341
|
onClick: h,
|
|
3341
3342
|
onKeyDown: D,
|
|
3342
|
-
onKeyUp:
|
|
3343
|
+
onKeyUp: U,
|
|
3343
3344
|
onMouseDown: s,
|
|
3344
3345
|
onMouseUp: R,
|
|
3345
3346
|
onMouseLeave: I
|
|
@@ -3358,7 +3359,7 @@ const Ue = (i, t = 10) => {
|
|
|
3358
3359
|
className: g,
|
|
3359
3360
|
onClick: h,
|
|
3360
3361
|
onKeyDown: D,
|
|
3361
|
-
onKeyUp:
|
|
3362
|
+
onKeyUp: U,
|
|
3362
3363
|
onMouseDown: s,
|
|
3363
3364
|
onMouseUp: R,
|
|
3364
3365
|
onMouseLeave: I
|
|
@@ -3368,14 +3369,14 @@ const Ue = (i, t = 10) => {
|
|
|
3368
3369
|
const t = i.previousSibling;
|
|
3369
3370
|
t.ariaExpanded && c(t.ariaExpanded) && t.click();
|
|
3370
3371
|
}, ia = (i, t) => {
|
|
3371
|
-
var a, l, n, A, o, d, r, g, b, E, N, m, s, R, I, D,
|
|
3372
|
+
var a, l, n, A, o, d, r, g, b, E, N, m, s, R, I, D, U, h, Y, M, u;
|
|
3372
3373
|
if (i !== t[0] && i.classList.add("hidden"), Ce(i), (A = (n = (l = (a = i.parentElement) == null ? void 0 : a.parentElement) == null ? void 0 : l.parentElement) == null ? void 0 : n.parentElement) != null && A.classList.contains("agora-header-burger-navigation-options-menu") && !((g = (r = (d = (o = i.parentElement) == null ? void 0 : o.parentElement) == null ? void 0 : d.parentElement) == null ? void 0 : r.parentElement) != null && g.classList.contains("hidden"))) {
|
|
3373
3374
|
(m = (N = (E = (b = i.parentElement) == null ? void 0 : b.parentElement) == null ? void 0 : E.parentElement) == null ? void 0 : N.parentElement) == null || m.classList.add("hidden"), t[0].classList.remove("hidden"), (s = t[0]) == null || s.querySelectorAll(".agora-menu-item").forEach((G) => {
|
|
3374
3375
|
G.classList.remove("!hidden");
|
|
3375
3376
|
});
|
|
3376
3377
|
return;
|
|
3377
3378
|
}
|
|
3378
|
-
(
|
|
3379
|
+
(U = (D = (I = (R = i.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : I.parentElement) == null ? void 0 : D.parentElement) != null && U.classList.contains("hidden") || ((M = (Y = (h = i.parentElement) == null ? void 0 : h.parentElement) == null ? void 0 : Y.parentElement) == null || M.classList.add("hidden"), (u = t[0]) == null || u.querySelectorAll(".agora-menu-item").forEach((G) => {
|
|
3379
3380
|
G.classList.remove("!hidden");
|
|
3380
3381
|
}));
|
|
3381
3382
|
}, ta = (i) => {
|
|
@@ -3497,9 +3498,9 @@ const Ue = (i, t = 10) => {
|
|
|
3497
3498
|
}, R = () => {
|
|
3498
3499
|
if (i.submenuType === "language")
|
|
3499
3500
|
return "agora-solid-check";
|
|
3500
|
-
}, I = (
|
|
3501
|
+
}, I = (U) => {
|
|
3501
3502
|
var h;
|
|
3502
|
-
t(
|
|
3503
|
+
t(U.currentTarget), a(!1), document.body.classList.remove("overflow-hidden"), l == null || l(U), (h = b.onClick) == null || h.call(b, U);
|
|
3503
3504
|
}, D = i.submenuType === "topics" ? "primary" : "neutral";
|
|
3504
3505
|
return /* @__PURE__ */ e.createElement("li", { key: N, className: g, role: "none" }, c(i.actionItem) ? /* @__PURE__ */ e.createElement(
|
|
3505
3506
|
Ne,
|
|
@@ -3554,30 +3555,30 @@ const Ue = (i, t = 10) => {
|
|
|
3554
3555
|
},
|
|
3555
3556
|
[s, R, I]
|
|
3556
3557
|
);
|
|
3557
|
-
const D = se(),
|
|
3558
|
-
|
|
3559
|
-
const [h, Y] = O(
|
|
3560
|
-
const { value:
|
|
3561
|
-
Y(
|
|
3562
|
-
},
|
|
3558
|
+
const D = se(), U = { ...N };
|
|
3559
|
+
U.id = U.id ?? D;
|
|
3560
|
+
const [h, Y] = O(U.value), M = (v) => {
|
|
3561
|
+
const { value: y } = v.currentTarget;
|
|
3562
|
+
Y(y), E == null || E(v);
|
|
3563
|
+
}, u = () => {
|
|
3563
3564
|
g == null || g();
|
|
3564
3565
|
}, G = () => {
|
|
3565
3566
|
b == null || b((h == null ? void 0 : h.toString()) ?? "");
|
|
3566
|
-
},
|
|
3567
|
+
}, j = J("agora-input-search-bar", i), p = J("input-label-wrapper flex items-end", {
|
|
3567
3568
|
"mb-16": t && !c(a),
|
|
3568
3569
|
"justify-end": !t || c(a),
|
|
3569
3570
|
"justify-between": t && !c(a)
|
|
3570
3571
|
}), w = J("input-search-bar-label", l ? "dark-label" : "light-label");
|
|
3571
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!
|
|
3572
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!U.hidden, className: j }, /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement("label", { hidden: c(a), htmlFor: U.id, className: w }, t)), /* @__PURE__ */ e.createElement("div", { className: "input-search-bar-container" }, n && A && A.startsWith("agora-line") && /* @__PURE__ */ e.createElement(ae, { name: A, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(
|
|
3572
3573
|
"input",
|
|
3573
3574
|
{
|
|
3574
|
-
...
|
|
3575
|
+
...U,
|
|
3575
3576
|
className: "flex-grow-[1] outline-none",
|
|
3576
3577
|
ref: s,
|
|
3577
3578
|
type: "text",
|
|
3578
|
-
disabled: !!
|
|
3579
|
+
disabled: !!U.disabled,
|
|
3579
3580
|
onChange: M,
|
|
3580
|
-
"aria-label": c(a) ?
|
|
3581
|
+
"aria-label": c(a) ? U["aria-label"] ?? t : U["aria-label"]
|
|
3581
3582
|
}
|
|
3582
3583
|
), /* @__PURE__ */ e.createElement("div", { className: "actions-container flex flex-row gap-16" }, c(o) && /* @__PURE__ */ e.createElement(
|
|
3583
3584
|
Ne,
|
|
@@ -3590,7 +3591,7 @@ const Ue = (i, t = 10) => {
|
|
|
3590
3591
|
leadingIcon: "agora-line-mic-on",
|
|
3591
3592
|
leadingIconHover: "agora-solid-mic-on",
|
|
3592
3593
|
"aria-label": d,
|
|
3593
|
-
onClick:
|
|
3594
|
+
onClick: u
|
|
3594
3595
|
}
|
|
3595
3596
|
), /* @__PURE__ */ e.createElement(
|
|
3596
3597
|
Ne,
|
|
@@ -3660,15 +3661,15 @@ const Ue = (i, t = 10) => {
|
|
|
3660
3661
|
className: "xs:mx-32 md:mx-64 xl:mx-64 xs:mt-16 md:mt-32 xl:mt-32",
|
|
3661
3662
|
onClick: (N) => {
|
|
3662
3663
|
var m, s, R, I, D;
|
|
3663
|
-
n == null || n(N), (s = (m = N.currentTarget.parentElement) == null ? void 0 : m.parentElement) != null && s.parentElement && ((D = (I = (R = N.currentTarget.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : I.parentElement) == null || D.querySelectorAll(".agora-menu-item").forEach((
|
|
3664
|
-
var h, Y, M,
|
|
3665
|
-
|
|
3664
|
+
n == null || n(N), (s = (m = N.currentTarget.parentElement) == null ? void 0 : m.parentElement) != null && s.parentElement && ((D = (I = (R = N.currentTarget.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : I.parentElement) == null || D.querySelectorAll(".agora-menu-item").forEach((U) => {
|
|
3665
|
+
var h, Y, M, u, G, j, p, w, v, y, B;
|
|
3666
|
+
U.classList.remove("!hidden"), (Y = (h = N.currentTarget.parentElement) == null ? void 0 : h.parentElement) == null || Y.classList.remove("fade-right-left"), (M = N.currentTarget.parentElement) == null || M.classList.add("hidden"), (j = (G = (u = N.currentTarget.parentElement) == null ? void 0 : u.parentElement) == null ? void 0 : G.parentElement) == null || j.classList.add("fade-left-right"), (B = (y = (v = (w = (p = N.currentTarget.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : w.parentElement) == null ? void 0 : v.parentElement) == null ? void 0 : y.parentElement) == null || B.classList.add("pt-32");
|
|
3666
3667
|
}));
|
|
3667
3668
|
}
|
|
3668
3669
|
},
|
|
3669
3670
|
t
|
|
3670
3671
|
), /* @__PURE__ */ e.createElement("div", { className: "overflow-y-auto overflow-x-hidden", style: { maxHeight: `calc(100vh - ${A}px)` } }, /* @__PURE__ */ e.createElement("p", { className: "text-m-semibold text-[var(--color-neutral-500)] xs:px-32 md:px-64 xl:px-64 pt-32 pb-16" }, i.menuItem.children), /* @__PURE__ */ e.createElement("ul", { role: "menubar" }, (E = i.relatedNavMenu.menuItemsHeaderNavigation) == null ? void 0 : E.filter((N, m) => m < 5).map((N, m) => {
|
|
3671
|
-
var I, D,
|
|
3672
|
+
var I, D, U, h, Y, M;
|
|
3672
3673
|
const s = `${o}-submenu-${m}`, R = J(
|
|
3673
3674
|
"agora-header-burger-navigation-options-submenu-level-3 overflow-hidden hidden sticky w-full right-0 z-sticky shadow-bottom-high",
|
|
3674
3675
|
{
|
|
@@ -3683,19 +3684,19 @@ const Ue = (i, t = 10) => {
|
|
|
3683
3684
|
ref: d,
|
|
3684
3685
|
itemType: "secondary",
|
|
3685
3686
|
vertically: !0,
|
|
3686
|
-
onClick: (
|
|
3687
|
-
var G,
|
|
3688
|
-
(
|
|
3689
|
-
var
|
|
3690
|
-
v.classList.add("!hidden"), (
|
|
3687
|
+
onClick: (u) => {
|
|
3688
|
+
var G, j, p, w;
|
|
3689
|
+
(j = (G = N.menuItem).onClick) == null || j.call(G, u), u.currentTarget.nextElementSibling && ((w = (p = u.currentTarget.parentElement) == null ? void 0 : p.parentElement) == null || w.querySelectorAll(".agora-menu-item").forEach((v) => {
|
|
3690
|
+
var y, B, F, T, k, Q, K, W, x, z, q, te, S, X, L, V, H;
|
|
3691
|
+
v.classList.add("!hidden"), (F = (B = (y = v.parentElement) == null ? void 0 : y.parentElement) == null ? void 0 : B.previousElementSibling) == null || F.classList.add("hidden"), (K = (Q = (k = (T = v.parentElement) == null ? void 0 : T.parentElement) == null ? void 0 : k.parentElement) == null ? void 0 : Q.previousElementSibling) == null || K.classList.add("hidden"), (q = (z = (x = (W = v.parentElement) == null ? void 0 : W.parentElement) == null ? void 0 : x.previousElementSibling) == null ? void 0 : z.previousElementSibling) == null || q.classList.add(
|
|
3691
3692
|
"hidden"
|
|
3692
|
-
), (te =
|
|
3693
|
+
), (te = u.currentTarget.nextElementSibling) == null || te.classList.add("fade-right-left"), (X = (S = u.currentTarget.parentElement) == null ? void 0 : S.parentElement) == null || X.classList.remove("fade-left-right"), (H = (V = (L = u.currentTarget.parentElement) == null ? void 0 : L.parentElement) == null ? void 0 : V.parentElement) == null || H.classList.remove(
|
|
3693
3694
|
"fade-left-right"
|
|
3694
3695
|
);
|
|
3695
|
-
})), Se(
|
|
3696
|
+
})), Se(u, r);
|
|
3696
3697
|
}
|
|
3697
3698
|
}
|
|
3698
|
-
), ((
|
|
3699
|
+
), ((U = N == null ? void 0 : N.submenuItem) == null ? void 0 : U.submenuItems) && /* @__PURE__ */ e.createElement("div", { className: R }, c(a) && t && /* @__PURE__ */ e.createElement(
|
|
3699
3700
|
Ne,
|
|
3700
3701
|
{
|
|
3701
3702
|
variant: "neutral",
|
|
@@ -3704,14 +3705,14 @@ const Ue = (i, t = 10) => {
|
|
|
3704
3705
|
leadingIcon: "agora-line-arrow-left-anchor",
|
|
3705
3706
|
leadingIconHover: "agora-solid-arrow-left-anchor",
|
|
3706
3707
|
className: "xs:mx-32 md:mx-64 xl:mx-64 xs:mt-16 md:mt-32 xl:mt-32",
|
|
3707
|
-
onClick: (
|
|
3708
|
-
var G,
|
|
3709
|
-
n == null || n(
|
|
3708
|
+
onClick: (u) => {
|
|
3709
|
+
var G, j, p, w, v, y, B, F, T, k, Q, K, W, x, z, q, te, S, X, L, V, H;
|
|
3710
|
+
n == null || n(u), (j = (G = u.currentTarget.parentElement) == null ? void 0 : G.parentElement) != null && j.parentElement && (u.currentTarget.parentElement.parentElement.parentElement.querySelectorAll(".agora-menu-item").forEach((_) => {
|
|
3710
3711
|
var me, P;
|
|
3711
|
-
_.classList.remove("!hidden"), (P = (me =
|
|
3712
|
-
}), ((v = (w = (p =
|
|
3712
|
+
_.classList.remove("!hidden"), (P = (me = u.currentTarget.parentElement) == null ? void 0 : me.parentElement) == null || P.classList.remove("fade-right-left");
|
|
3713
|
+
}), ((v = (w = (p = u.currentTarget.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : w.parentElement) == null ? void 0 : v.previousSibling).classList.remove("hidden"), ((T = (F = (B = (y = u.currentTarget.parentElement) == null ? void 0 : y.parentElement) == null ? void 0 : B.parentElement) == null ? void 0 : F.parentElement) == null ? void 0 : T.previousSibling).classList.remove("hidden"), (Q = (k = u.currentTarget) == null ? void 0 : k.parentElement) == null || Q.classList.add("hidden"), ((K = u.currentTarget.parentElement) == null ? void 0 : K.previousSibling).click(), (te = (q = (z = (x = (W = u.currentTarget.parentElement) == null ? void 0 : W.parentElement) == null ? void 0 : x.parentElement) == null ? void 0 : z.parentElement) == null ? void 0 : q.parentElement) == null || te.classList.remove(
|
|
3713
3714
|
"fade-right-left"
|
|
3714
|
-
), (H = (
|
|
3715
|
+
), (H = (V = (L = (X = (S = u.currentTarget.parentElement) == null ? void 0 : S.parentElement) == null ? void 0 : X.parentElement) == null ? void 0 : L.parentElement) == null ? void 0 : V.parentElement) == null || H.classList.add(
|
|
3715
3716
|
"fade-left-right"
|
|
3716
3717
|
));
|
|
3717
3718
|
}
|
|
@@ -3766,11 +3767,11 @@ const Ue = (i, t = 10) => {
|
|
|
3766
3767
|
"agora-header-burger-navigation-options-menu overflow-y-auto overflow-x-hidden hidden absolute w-full right-0 z-sticky shadow-bottom-high pt-32"
|
|
3767
3768
|
);
|
|
3768
3769
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, i.menuItemsHeaderNavigation && /* @__PURE__ */ e.createElement("div", { style: { maxHeight: `calc(100vh - ${t}px)` }, className: E }, /* @__PURE__ */ e.createElement("nav", { "aria-label": i.ariaLabelHeaderNavigation, className: "overflow-hidden" }, /* @__PURE__ */ e.createElement("ul", { role: "menubar" }, (N = i.menuItemsHeaderNavigation) == null ? void 0 : N.filter((m, s) => s < 5).map((m, s) => {
|
|
3769
|
-
var
|
|
3770
|
+
var U, h, Y, M, u;
|
|
3770
3771
|
const R = `${g}-menu-${s}`, I = J(
|
|
3771
3772
|
"agora-header-burger-navigation-options-submenu overflow-y-auto overflow-x-hidden hidden sticky w-full right-0 z-sticky shadow-bottom-high [&>*:first-child]:px-0 xl:[&>*:first-child]:max-w-full xl:[&>*:first-child]:mx-64",
|
|
3772
3773
|
{
|
|
3773
|
-
"bg-[var(--color-neutral-50)]": (
|
|
3774
|
+
"bg-[var(--color-neutral-50)]": (U = m.submenuItem) == null ? void 0 : U.highlightItems,
|
|
3774
3775
|
"bg-[var(--color-neutral-100)]": !((h = m.submenuItem) != null && h.highlightItems)
|
|
3775
3776
|
}
|
|
3776
3777
|
), D = {
|
|
@@ -3778,10 +3779,10 @@ const Ue = (i, t = 10) => {
|
|
|
3778
3779
|
...(M = (Y = m.relatedNavMenu) == null ? void 0 : Y.menuItemsHeaderNavigation) == null ? void 0 : M.map((G) => G.menuItem)
|
|
3779
3780
|
};
|
|
3780
3781
|
return D.hasSubmenuItemsSectionTitle = !0, D.submenuItemsSectionTitle = m.menuItem.children, D.backButtonLabel = a, D.hasBackButton = l, D.handleBackButton = (G) => {
|
|
3781
|
-
var
|
|
3782
|
-
(p = (
|
|
3783
|
-
var K, W,
|
|
3784
|
-
|
|
3782
|
+
var j, p, w, v, y, B, F, T, k;
|
|
3783
|
+
(p = (j = m.submenuItem) == null ? void 0 : j.handleBackButton) == null || p.call(j, G), (w = G.currentTarget.parentElement) != null && w.parentElement && ((F = (B = (y = (v = G.currentTarget.parentElement) == null ? void 0 : v.parentElement) == null ? void 0 : y.parentElement) == null ? void 0 : B.parentElement) == null || F.querySelectorAll(".agora-menu-item").forEach((Q) => {
|
|
3784
|
+
var K, W, x, z, q, te, S, X, L, V, H, _, me, P;
|
|
3785
|
+
Q.classList.remove("!hidden"), (W = (K = G.currentTarget.parentElement) == null ? void 0 : K.parentElement) == null || W.classList.remove("fade-right-left"), (z = (x = G.currentTarget.parentElement) == null ? void 0 : x.parentElement) == null || z.classList.add("hidden"), (X = (S = (te = (q = G.currentTarget.parentElement) == null ? void 0 : q.parentElement) == null ? void 0 : te.parentElement) == null ? void 0 : S.parentElement) == null || X.classList.add("fade-left-right"), (P = (me = (_ = (H = (V = (L = G.currentTarget.parentElement) == null ? void 0 : L.parentElement) == null ? void 0 : V.parentElement) == null ? void 0 : H.parentElement) == null ? void 0 : _.parentElement) == null ? void 0 : me.parentElement) == null || P.classList.add(
|
|
3785
3786
|
"pt-32"
|
|
3786
3787
|
);
|
|
3787
3788
|
}), ((k = (T = G.currentTarget.parentElement) == null ? void 0 : T.parentElement) == null ? void 0 : k.previousSibling).click());
|
|
@@ -3790,20 +3791,20 @@ const Ue = (i, t = 10) => {
|
|
|
3790
3791
|
{
|
|
3791
3792
|
...m.menuItem,
|
|
3792
3793
|
ref: b,
|
|
3793
|
-
noIcons: (
|
|
3794
|
+
noIcons: (u = m.relatedNavMenu) != null && u.menuItemsHeaderNavigation ? !1 : m.menuItem.noIcons,
|
|
3794
3795
|
itemType: "primary",
|
|
3795
3796
|
vertically: !0,
|
|
3796
3797
|
onClick: (G) => {
|
|
3797
|
-
var
|
|
3798
|
-
if ((p = (
|
|
3798
|
+
var j, p, w, v, y, B, F, T, k;
|
|
3799
|
+
if ((p = (j = m.menuItem).onClick) == null || p.call(j, G), G.currentTarget.nextElementSibling) {
|
|
3799
3800
|
(v = (w = G.currentTarget.parentElement) == null ? void 0 : w.parentElement) == null || v.querySelectorAll(".agora-menu-item").forEach((K) => {
|
|
3800
|
-
var W,
|
|
3801
|
-
K.classList.add("!hidden"), (W = G.currentTarget.nextElementSibling) == null || W.classList.add("fade-right-left"), (z = (
|
|
3801
|
+
var W, x, z;
|
|
3802
|
+
K.classList.add("!hidden"), (W = G.currentTarget.nextElementSibling) == null || W.classList.add("fade-right-left"), (z = (x = G.currentTarget.parentElement) == null ? void 0 : x.parentElement) == null || z.classList.remove("fade-left-right");
|
|
3802
3803
|
});
|
|
3803
|
-
const
|
|
3804
|
-
Array.from(
|
|
3804
|
+
const Q = (y = G.currentTarget.nextSibling) == null ? void 0 : y.childNodes;
|
|
3805
|
+
Array.from(Q).forEach((K) => {
|
|
3805
3806
|
K.classList.remove("hidden");
|
|
3806
|
-
}), (k = (T = (
|
|
3807
|
+
}), (k = (T = (F = (B = G.currentTarget.parentElement) == null ? void 0 : B.parentElement) == null ? void 0 : F.parentElement) == null ? void 0 : T.parentElement) == null || k.classList.remove(
|
|
3807
3808
|
"pt-32"
|
|
3808
3809
|
);
|
|
3809
3810
|
}
|
|
@@ -3860,68 +3861,68 @@ const Ue = (i, t = 10) => {
|
|
|
3860
3861
|
backButtonLabelBurger: o,
|
|
3861
3862
|
handleBackButtonBurger: d
|
|
3862
3863
|
}) => {
|
|
3863
|
-
const [r, g] = O(0), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), I = (M,
|
|
3864
|
+
const [r, g] = O(0), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), I = (M, u, G, j, p, w) => {
|
|
3864
3865
|
const v = (M == null ? void 0 : M.clientHeight) ?? 0;
|
|
3865
|
-
g(
|
|
3866
|
-
const
|
|
3866
|
+
g(u + v);
|
|
3867
|
+
const y = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingTop) : 0, B = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingBottom) : 0, F = j ? parseInt(getComputedStyle(j).marginBottom) : 0, T = p ? parseInt(getComputedStyle(p).marginTop) : 0, k = w ? parseInt(getComputedStyle(w).marginTop) : 0;
|
|
3867
3868
|
E(
|
|
3868
|
-
|
|
3869
|
+
u + v + y + B + F + (j == null ? void 0 : j.getBoundingClientRect().height)
|
|
3869
3870
|
), m(
|
|
3870
|
-
|
|
3871
|
+
u + v + T + (p == null ? void 0 : p.getBoundingClientRect().height)
|
|
3871
3872
|
), R(
|
|
3872
|
-
|
|
3873
|
+
u + v + k + (w == null ? void 0 : w.getBoundingClientRect().height)
|
|
3873
3874
|
);
|
|
3874
|
-
}, D = (M,
|
|
3875
|
-
const p = (M == null ? void 0 : M.clientHeight) ?? 0, w = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingTop) : 0, v = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingBottom) : 0,
|
|
3875
|
+
}, D = (M, u, G, j) => {
|
|
3876
|
+
const p = (M == null ? void 0 : M.clientHeight) ?? 0, w = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingTop) : 0, v = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingBottom) : 0, y = j ? parseInt(getComputedStyle(j).marginBottom) : 0;
|
|
3876
3877
|
E(
|
|
3877
|
-
|
|
3878
|
+
u + p + w + v + y + (j == null ? void 0 : j.getBoundingClientRect().height)
|
|
3878
3879
|
);
|
|
3879
|
-
},
|
|
3880
|
-
const
|
|
3880
|
+
}, U = (M, u, G) => {
|
|
3881
|
+
const j = (M == null ? void 0 : M.clientHeight) ?? 0, p = G ? parseInt(getComputedStyle(G).marginTop) : 0;
|
|
3881
3882
|
m(
|
|
3882
|
-
|
|
3883
|
+
u + j + p + (G == null ? void 0 : G.getBoundingClientRect().height)
|
|
3883
3884
|
);
|
|
3884
|
-
}, h = (M,
|
|
3885
|
-
var
|
|
3886
|
-
const w = (
|
|
3887
|
-
(((
|
|
3888
|
-
G + w + v + (
|
|
3885
|
+
}, h = (M, u, G, j, p) => {
|
|
3886
|
+
var B;
|
|
3887
|
+
const w = (u == null ? void 0 : u.clientHeight) ?? 0, v = p ? parseInt(getComputedStyle(p).marginTop) : 0;
|
|
3888
|
+
(((B = M.oldValue) == null ? void 0 : B.split(" ")) ?? []).find((F) => F === "hidden") ? m(G + w + (j == null ? void 0 : j.getBoundingClientRect().height)) : m(
|
|
3889
|
+
G + w + v + (j == null ? void 0 : j.getBoundingClientRect().height)
|
|
3889
3890
|
), R(
|
|
3890
3891
|
G + w + v + (p == null ? void 0 : p.getBoundingClientRect().height)
|
|
3891
3892
|
);
|
|
3892
|
-
}, Y = (M,
|
|
3893
|
-
|
|
3893
|
+
}, Y = (M, u, G, j, p) => {
|
|
3894
|
+
u && M.observe(u, { attributes: !0 }), G && M.observe(G, { attributes: !0 }), j && M.observe(j, { attributes: !0, attributeOldValue: !0 }), p && M.observe(p, { attributes: !0, attributeOldValue: !0 });
|
|
3894
3895
|
};
|
|
3895
3896
|
return ie(() => {
|
|
3896
3897
|
var T;
|
|
3897
|
-
const M = ((T = document.querySelector(".agora-header-general")) == null ? void 0 : T.clientHeight) ?? 0,
|
|
3898
|
-
I(
|
|
3899
|
-
const
|
|
3900
|
-
for (const
|
|
3901
|
-
switch (
|
|
3898
|
+
const M = ((T = document.querySelector(".agora-header-general")) == null ? void 0 : T.clientHeight) ?? 0, u = document.querySelector(".agora-header-burger-navigation"), G = document.querySelector(".agora-header-burger-navigation-options-submenu"), j = document.querySelector(".agora-header-burger-navigation-options-submenu-level-2"), p = document.querySelector(".agora-header-burger-navigation-options-submenu-level-3"), w = Array.from((G == null ? void 0 : G.children[0].children) ?? []).find((k) => k.classList.contains("agora-btn")), v = Array.from((j == null ? void 0 : j.children) ?? []).find((k) => k.classList.contains("agora-btn")), y = Array.from((p == null ? void 0 : p.children) ?? []).find((k) => k.classList.contains("agora-btn"));
|
|
3899
|
+
I(u, M, G, w, v, y);
|
|
3900
|
+
const B = (k) => {
|
|
3901
|
+
for (const Q of k) {
|
|
3902
|
+
switch (Q.target) {
|
|
3902
3903
|
case G:
|
|
3903
|
-
D(
|
|
3904
|
+
D(u, M, G, w);
|
|
3904
3905
|
return;
|
|
3905
|
-
case
|
|
3906
|
-
|
|
3906
|
+
case j:
|
|
3907
|
+
U(u, M, v);
|
|
3907
3908
|
return;
|
|
3908
3909
|
case p:
|
|
3909
|
-
h(
|
|
3910
|
+
h(Q, u, M, v, y);
|
|
3910
3911
|
return;
|
|
3911
3912
|
}
|
|
3912
|
-
if (
|
|
3913
|
+
if (Q.type !== "attributes" || Q.attributeName !== "hidden")
|
|
3913
3914
|
return;
|
|
3914
|
-
g(M +
|
|
3915
|
+
g(M + Q.target.clientHeight);
|
|
3915
3916
|
}
|
|
3916
|
-
},
|
|
3917
|
-
return Y(
|
|
3917
|
+
}, F = new MutationObserver(B);
|
|
3918
|
+
return Y(F, u, G, j, p), window.addEventListener(
|
|
3918
3919
|
"resize",
|
|
3919
|
-
() => I(
|
|
3920
|
+
() => I(u, M, G, w, v, y)
|
|
3920
3921
|
), () => {
|
|
3921
3922
|
window.removeEventListener(
|
|
3922
3923
|
"resize",
|
|
3923
|
-
() => I(
|
|
3924
|
-
),
|
|
3924
|
+
() => I(u, M, G, w, v, y)
|
|
3925
|
+
), F.disconnect();
|
|
3925
3926
|
};
|
|
3926
3927
|
}, []), /* @__PURE__ */ e.createElement("div", { className: "container mx-auto xs:flex md:grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 xs:gap-0 md:gap-32 xs:justify-between md:justify-normal min-h-[60px]" }, /* @__PURE__ */ e.createElement("div", { className: "agora-header-burger-navigation-content xs:col-span-3 md:col-span-4 xl:col-span-5 flex items-center" }, (i == null ? void 0 : i.headerNavigationContent) ?? t.headerNavigationContent), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-1 md:col-span-4 xl:col-span-7 justify-self-end" }, (t == null ? void 0 : t.menuItemsHeaderNavigation) && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3927
3928
|
ke,
|
|
@@ -3964,63 +3965,63 @@ const Ue = (i, t = 10) => {
|
|
|
3964
3965
|
setDrawerContent: r,
|
|
3965
3966
|
className: g
|
|
3966
3967
|
}) => {
|
|
3967
|
-
var
|
|
3968
|
+
var j, p, w, v, y, B, F, T, k, Q;
|
|
3968
3969
|
const b = C(null), E = J(
|
|
3969
3970
|
"container mx-auto agora-header-general-options",
|
|
3970
3971
|
{
|
|
3971
3972
|
darkMode: c(i)
|
|
3972
3973
|
},
|
|
3973
3974
|
g
|
|
3974
|
-
), N = J({ "ml-auto": !l || !((p = (
|
|
3975
|
-
var z, q, te,
|
|
3976
|
-
((
|
|
3977
|
-
|
|
3975
|
+
), N = J({ "ml-auto": !l || !((p = (j = a == null ? void 0 : a.language) == null ? void 0 : j.submenuItem) != null && p.submenuItems) }), m = J({ "ml-auto": !n && !((v = (w = a == null ? void 0 : a.language) == null ? void 0 : w.submenuItem) != null && v.submenuItems) }), [s, R] = O(0), { width: I } = ze(), D = I < 768, [U, h] = O(null), Y = (K, W = "") => {
|
|
3976
|
+
var z, q, te, S, X, L;
|
|
3977
|
+
((L = (X = (S = (te = (q = (z = K.currentTarget.parentNode) == null ? void 0 : z.parentNode) == null ? void 0 : q.parentNode) == null ? void 0 : te.parentNode) == null ? void 0 : S.parentNode) == null ? void 0 : X.previousSibling) == null ? void 0 : L.firstChild).innerText = K.currentTarget.innerText, [...document.getElementsByClassName("language")].forEach((V) => {
|
|
3978
|
+
V.removeAttribute("data-aria-selected"), V.removeAttribute("aria-label");
|
|
3978
3979
|
});
|
|
3979
|
-
const
|
|
3980
|
-
document.querySelectorAll(".language").forEach((
|
|
3980
|
+
const x = K.currentTarget.getAttribute("data-iso");
|
|
3981
|
+
document.querySelectorAll(".language").forEach((V) => {
|
|
3981
3982
|
var H, _, me, P, ne, Ee;
|
|
3982
|
-
|
|
3983
|
+
V.getAttribute("data-iso") === x && (((Ee = (ne = (P = (me = (_ = (H = V.parentNode) == null ? void 0 : H.parentNode) == null ? void 0 : _.parentNode) == null ? void 0 : me.parentNode) == null ? void 0 : P.parentNode) == null ? void 0 : ne.previousSibling) == null ? void 0 : Ee.firstChild).innerText = K.currentTarget.innerText, V.setAttribute("data-aria-selected", "true"), V.setAttribute("aria-label", `${V.textContent} ${W}`));
|
|
3983
3984
|
});
|
|
3984
3985
|
};
|
|
3985
3986
|
ie(() => {
|
|
3986
|
-
var K, W,
|
|
3987
|
+
var K, W, x, z, q, te;
|
|
3987
3988
|
if ((W = (K = a.language) == null ? void 0 : K.submenuItem) != null && W.submenuItems) {
|
|
3988
|
-
const
|
|
3989
|
-
(
|
|
3989
|
+
const S = a.language.submenuItem.submenuItems.find(
|
|
3990
|
+
(V) => V["data-aria-selected"] === "true"
|
|
3990
3991
|
);
|
|
3991
|
-
h(((
|
|
3992
|
-
const X = Array.from(((te = (q = (z = b.current) == null ? void 0 : z.current) == null ? void 0 : q.nextElementSibling) == null ? void 0 : te.querySelectorAll(".language")) ?? []),
|
|
3993
|
-
|
|
3992
|
+
h(((x = S == null ? void 0 : S.children) == null ? void 0 : x.toString()) ?? "-");
|
|
3993
|
+
const X = Array.from(((te = (q = (z = b.current) == null ? void 0 : z.current) == null ? void 0 : q.nextElementSibling) == null ? void 0 : te.querySelectorAll(".language")) ?? []), L = X == null ? void 0 : X.find((V) => V.hasAttribute("data-aria-selected"));
|
|
3994
|
+
L == null || L.setAttribute(
|
|
3994
3995
|
"aria-label",
|
|
3995
|
-
`${
|
|
3996
|
+
`${L.textContent} ${a.language.submenuItem.selectedAriaLabel}`
|
|
3996
3997
|
);
|
|
3997
3998
|
}
|
|
3998
3999
|
}, [
|
|
3999
|
-
(
|
|
4000
|
-
(T = (
|
|
4000
|
+
(B = (y = a == null ? void 0 : a.language) == null ? void 0 : y.submenuItem) == null ? void 0 : B.selectedAriaLabel,
|
|
4001
|
+
(T = (F = a == null ? void 0 : a.language) == null ? void 0 : F.submenuItem) == null ? void 0 : T.submenuItems
|
|
4001
4002
|
]);
|
|
4002
4003
|
const M = de(() => {
|
|
4003
4004
|
var K;
|
|
4004
4005
|
return { ...(K = a.user) == null ? void 0 : K.menuItem };
|
|
4005
|
-
}, [(k = a.user) == null ? void 0 : k.menuItem]),
|
|
4006
|
+
}, [(k = a.user) == null ? void 0 : k.menuItem]), u = de(() => {
|
|
4006
4007
|
var K;
|
|
4007
4008
|
return { ...(K = a.user) == null ? void 0 : K.submenuItem };
|
|
4008
|
-
}, [(
|
|
4009
|
+
}, [(Q = a.user) == null ? void 0 : Q.submenuItem]);
|
|
4009
4010
|
ie(() => {
|
|
4010
4011
|
const K = () => {
|
|
4011
4012
|
var W;
|
|
4012
|
-
R(((W = document.querySelector(".agora-header-general")) == null ? void 0 : W.clientHeight) ?? 0), M.tooltipPosition = "bottom", M.tooltipAlignment = "end",
|
|
4013
|
+
R(((W = document.querySelector(".agora-header-general")) == null ? void 0 : W.clientHeight) ?? 0), M.tooltipPosition = "bottom", M.tooltipAlignment = "end", u.submenuAlignment = "end";
|
|
4013
4014
|
};
|
|
4014
4015
|
return K(), window.addEventListener("resize", K), () => {
|
|
4015
4016
|
window.removeEventListener("resize", K);
|
|
4016
4017
|
};
|
|
4017
|
-
}, [M,
|
|
4018
|
+
}, [M, u]);
|
|
4018
4019
|
const G = (K) => {
|
|
4019
4020
|
let W = [];
|
|
4020
|
-
return Object.keys(K).forEach((
|
|
4021
|
-
var q, te,
|
|
4022
|
-
const z = `menu-items-${
|
|
4023
|
-
switch (
|
|
4021
|
+
return Object.keys(K).forEach((x) => {
|
|
4022
|
+
var q, te, S, X, L, V, H, _, me, P, ne, Ee, oe;
|
|
4023
|
+
const z = `menu-items-${x}`;
|
|
4024
|
+
switch (x) {
|
|
4024
4025
|
case "language":
|
|
4025
4026
|
W = [
|
|
4026
4027
|
...W,
|
|
@@ -4037,7 +4038,7 @@ const Ue = (i, t = 10) => {
|
|
|
4037
4038
|
Se(be, o);
|
|
4038
4039
|
}
|
|
4039
4040
|
},
|
|
4040
|
-
|
|
4041
|
+
U
|
|
4041
4042
|
), /* @__PURE__ */ e.createElement(
|
|
4042
4043
|
"div",
|
|
4043
4044
|
{
|
|
@@ -4062,11 +4063,11 @@ const Ue = (i, t = 10) => {
|
|
|
4062
4063
|
case "search":
|
|
4063
4064
|
W = [
|
|
4064
4065
|
...W,
|
|
4065
|
-
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(n) && ((X = (
|
|
4066
|
+
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(n) && ((X = (S = a.search) == null ? void 0 : S.submenuItem) == null ? void 0 : X.submenuSearchContent) && /* @__PURE__ */ e.createElement("li", { role: "none", className: N, key: z }, /* @__PURE__ */ e.createElement(
|
|
4066
4067
|
ke,
|
|
4067
4068
|
{
|
|
4068
4069
|
...a.search.menuItem,
|
|
4069
|
-
ref: (
|
|
4070
|
+
ref: (L = a.search.menuItem) == null ? void 0 : L.ref,
|
|
4070
4071
|
itemType: "search",
|
|
4071
4072
|
"aria-haspopup": !0,
|
|
4072
4073
|
"aria-expanded": !1,
|
|
@@ -4107,7 +4108,7 @@ const Ue = (i, t = 10) => {
|
|
|
4107
4108
|
ke,
|
|
4108
4109
|
{
|
|
4109
4110
|
...a.user.menuItem,
|
|
4110
|
-
ref: (
|
|
4111
|
+
ref: (V = a.user.menuItem) == null ? void 0 : V.ref,
|
|
4111
4112
|
itemType: D ? "user" : "primary",
|
|
4112
4113
|
...(_ = (H = a.user) == null ? void 0 : H.submenuItem) != null && _.submenuItems ? { "aria-haspopup": !0 } : null,
|
|
4113
4114
|
...(P = (me = a.user) == null ? void 0 : me.submenuItem) != null && P.submenuItems ? { "aria-expanded": !1 } : null,
|
|
@@ -4127,7 +4128,7 @@ const Ue = (i, t = 10) => {
|
|
|
4127
4128
|
/* @__PURE__ */ e.createElement(
|
|
4128
4129
|
We,
|
|
4129
4130
|
{
|
|
4130
|
-
submenu:
|
|
4131
|
+
submenu: u,
|
|
4131
4132
|
closeOtherMenuItemOpened: he,
|
|
4132
4133
|
setBackdropVisible: o
|
|
4133
4134
|
}
|
|
@@ -4195,12 +4196,12 @@ const Ue = (i, t = 10) => {
|
|
|
4195
4196
|
"sr-only": a
|
|
4196
4197
|
});
|
|
4197
4198
|
return /* @__PURE__ */ e.createElement("div", { className: E }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-5 flex items-center" }, A === "primary" && /* @__PURE__ */ e.createElement("p", { className: N }, o), a), l && /* @__PURE__ */ e.createElement("nav", { "aria-label": t, className: "xs:col-span-4 md:col-span-8 xl:col-span-7" }, /* @__PURE__ */ e.createElement("ul", { role: "menubar", className: "flex justify-end gap-32" }, l == null ? void 0 : l.filter((m, s) => s < 5).map((m, s) => {
|
|
4198
|
-
var D,
|
|
4199
|
+
var D, U, h, Y, M, u;
|
|
4199
4200
|
const R = `${b}-menu-${s}`, I = J(
|
|
4200
4201
|
"agora-header-navigation-options-menu overflow-auto hidden absolute w-full right-0 z-sticky shadow-bottom-high",
|
|
4201
4202
|
{
|
|
4202
4203
|
"bg-[var(--color-neutral-50)]": (D = m.submenuItem) == null ? void 0 : D.highlightItems,
|
|
4203
|
-
"bg-[var(--color-neutral-100)]": !((
|
|
4204
|
+
"bg-[var(--color-neutral-100)]": !((U = m.submenuItem) != null && U.highlightItems)
|
|
4204
4205
|
}
|
|
4205
4206
|
);
|
|
4206
4207
|
return /* @__PURE__ */ e.createElement("li", { key: R, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
@@ -4211,8 +4212,8 @@ const Ue = (i, t = 10) => {
|
|
|
4211
4212
|
itemType: A,
|
|
4212
4213
|
darkMode: i,
|
|
4213
4214
|
onClick: (G) => {
|
|
4214
|
-
var
|
|
4215
|
-
(p = (
|
|
4215
|
+
var j, p;
|
|
4216
|
+
(p = (j = m.menuItem).onClick) == null || p.call(j, G), Se(G, r);
|
|
4216
4217
|
}
|
|
4217
4218
|
}
|
|
4218
4219
|
), m.submenuItem && /* @__PURE__ */ e.createElement("div", { style: g, className: I }, /* @__PURE__ */ e.createElement(
|
|
@@ -4225,7 +4226,7 @@ const Ue = (i, t = 10) => {
|
|
|
4225
4226
|
), ((Y = m.submenuItem) == null ? void 0 : Y.highlightItems) && /* @__PURE__ */ e.createElement("div", { "aria-label": (M = m.submenuItem) == null ? void 0 : M.highlightItems.submenuAriaLabel, className: "bg-[var(--color-neutral-100)]" }, /* @__PURE__ */ e.createElement(
|
|
4226
4227
|
We,
|
|
4227
4228
|
{
|
|
4228
|
-
submenu: (
|
|
4229
|
+
submenu: (u = m.submenuItem) == null ? void 0 : u.highlightItems,
|
|
4229
4230
|
closeOtherMenuItemOpened: he,
|
|
4230
4231
|
setBackdropVisible: r,
|
|
4231
4232
|
className: "flex flex-wrap gap-32"
|
|
@@ -4275,7 +4276,7 @@ const Ue = (i, t = 10) => {
|
|
|
4275
4276
|
const Ae = ee[0], ce = ee[ee.length - 1];
|
|
4276
4277
|
f.shiftKey && document.activeElement === Ae ? (f.preventDefault(), ce.focus()) : !f.shiftKey && document.activeElement === ce && (f.preventDefault(), Ae.focus());
|
|
4277
4278
|
}
|
|
4278
|
-
},
|
|
4279
|
+
}, U = (f, $) => {
|
|
4279
4280
|
var Ae;
|
|
4280
4281
|
const le = Array.from($).filter(
|
|
4281
4282
|
(ce) => {
|
|
@@ -4293,7 +4294,7 @@ const Ue = (i, t = 10) => {
|
|
|
4293
4294
|
);
|
|
4294
4295
|
f.shiftKey && document.activeElement === ce ? (f.preventDefault(), Ye.focus()) : (!f.shiftKey && document.activeElement === Ye || !((Ae = document.querySelector(".agora-header-burger-navigation")) != null && Ae.contains(document.activeElement))) && (f.preventDefault(), ce.focus());
|
|
4295
4296
|
}
|
|
4296
|
-
}, [h, Y] = O(!1), M = C(null),
|
|
4297
|
+
}, [h, Y] = O(!1), M = C(null), u = (f) => {
|
|
4297
4298
|
Y(f);
|
|
4298
4299
|
}, G = () => {
|
|
4299
4300
|
Y(!1), [
|
|
@@ -4313,7 +4314,7 @@ const Ue = (i, t = 10) => {
|
|
|
4313
4314
|
ee.classList.add("hidden");
|
|
4314
4315
|
}));
|
|
4315
4316
|
});
|
|
4316
|
-
},
|
|
4317
|
+
}, j = ge((f, $) => {
|
|
4317
4318
|
const le = Array.from(
|
|
4318
4319
|
$.querySelectorAll(
|
|
4319
4320
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
@@ -4322,7 +4323,7 @@ const Ue = (i, t = 10) => {
|
|
|
4322
4323
|
let Ye = [];
|
|
4323
4324
|
le.forEach((ue) => {
|
|
4324
4325
|
Ie != null && Ie.contains(ue) && (Ie != null && Ie.classList.contains("hidden")) || ce != null && ce.contains(ue) && (ce != null && ce.classList.contains("hidden")) || Ae != null && Ae.contains(ue) && (Ae != null && Ae.classList.contains("hidden")) || ee != null && ee.contains(ue) && (ee != null && ee.classList.contains("hidden")) || (Ye = [...Ye, ue]);
|
|
4325
|
-
}),
|
|
4326
|
+
}), U(f, Ye);
|
|
4326
4327
|
}, []);
|
|
4327
4328
|
ie(() => {
|
|
4328
4329
|
const { current: f } = M, $ = (le) => {
|
|
@@ -4330,7 +4331,7 @@ const Ue = (i, t = 10) => {
|
|
|
4330
4331
|
const ee = I();
|
|
4331
4332
|
if (ee)
|
|
4332
4333
|
if (ee.classList.contains("agora-header-burger-navigation"))
|
|
4333
|
-
|
|
4334
|
+
j(le, ee);
|
|
4334
4335
|
else {
|
|
4335
4336
|
const Ae = ee.querySelectorAll(
|
|
4336
4337
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
@@ -4342,10 +4343,10 @@ const Ue = (i, t = 10) => {
|
|
|
4342
4343
|
return f == null || f.addEventListener("click", G), document.addEventListener("keydown", $), () => {
|
|
4343
4344
|
f == null || f.removeEventListener("click", G), document.removeEventListener("keydown", $);
|
|
4344
4345
|
};
|
|
4345
|
-
}, [h,
|
|
4346
|
-
const p = C(null), [w, v] = O(null),
|
|
4346
|
+
}, [h, j]);
|
|
4347
|
+
const p = C(null), [w, v] = O(null), y = J("agora-drawer-authentication", {
|
|
4347
4348
|
darkMode: a
|
|
4348
|
-
}),
|
|
4349
|
+
}), B = (f) => v(f), [F, T] = O(0), [k, Q] = O(0), K = () => {
|
|
4349
4350
|
var f;
|
|
4350
4351
|
(f = p.current) == null || f.close(), document.body.classList.remove("overflow-hidden");
|
|
4351
4352
|
}, W = (f) => {
|
|
@@ -4354,7 +4355,7 @@ const Ue = (i, t = 10) => {
|
|
|
4354
4355
|
ie(() => {
|
|
4355
4356
|
const { current: f } = p, $ = () => {
|
|
4356
4357
|
var ee, Ae, ce, Ie;
|
|
4357
|
-
p.current && (T(((Ae = (ee = p.current.querySelector("nav")) == null ? void 0 : ee.previousElementSibling) == null ? void 0 : Ae.clientHeight) ?? 0),
|
|
4358
|
+
p.current && (T(((Ae = (ee = p.current.querySelector("nav")) == null ? void 0 : ee.previousElementSibling) == null ? void 0 : Ae.clientHeight) ?? 0), Q(((Ie = (ce = p.current.querySelector("nav")) == null ? void 0 : ce.nextElementSibling) == null ? void 0 : Ie.clientHeight) ?? 0));
|
|
4358
4359
|
}, le = (ee) => {
|
|
4359
4360
|
if (ee.code === "Escape" && (G(), document.body.classList.remove("overflow-hidden")), ee.key === "Tab" && f) {
|
|
4360
4361
|
const Ae = I();
|
|
@@ -4370,15 +4371,15 @@ const Ue = (i, t = 10) => {
|
|
|
4370
4371
|
window.removeEventListener("resize", $), document.removeEventListener("keydown", le);
|
|
4371
4372
|
};
|
|
4372
4373
|
}, [w]);
|
|
4373
|
-
const
|
|
4374
|
-
|
|
4374
|
+
const x = { ...o };
|
|
4375
|
+
x.darkModeHeaderGeneralOptions = a;
|
|
4375
4376
|
const z = J("agora-header-general z-sticky", {
|
|
4376
4377
|
darkMode: c(a)
|
|
4377
4378
|
}), q = { ...d };
|
|
4378
4379
|
q.darkModeHeaderNavigation = a;
|
|
4379
4380
|
const te = J("agora-header-primary z-sticky", {
|
|
4380
4381
|
darkMode: c(a)
|
|
4381
|
-
}), [
|
|
4382
|
+
}), [S, X] = O(null);
|
|
4382
4383
|
ie(() => {
|
|
4383
4384
|
var f;
|
|
4384
4385
|
if (q.menuItemsHeaderNavigation) {
|
|
@@ -4394,7 +4395,7 @@ const Ue = (i, t = 10) => {
|
|
|
4394
4395
|
);
|
|
4395
4396
|
}
|
|
4396
4397
|
}, [q.headerNavigationLegalSentence, q.menuItemsHeaderNavigation]);
|
|
4397
|
-
const
|
|
4398
|
+
const L = A, V = J("agora-header-secondary z-sticky pt-16", {
|
|
4398
4399
|
darkMode: c(a)
|
|
4399
4400
|
}), [H, _] = O(!1);
|
|
4400
4401
|
ie(() => {
|
|
@@ -4442,36 +4443,36 @@ const Ue = (i, t = 10) => {
|
|
|
4442
4443
|
}, []), ie(() => {
|
|
4443
4444
|
var f, $;
|
|
4444
4445
|
return ($ = (f = document.querySelector(".agora-header")) == null ? void 0 : f.parentElement) == null ? void 0 : $.classList.add("sticky", "top-0", "z-sticky");
|
|
4445
|
-
}, []), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "relative z-sticky agora-header" }, c(t) && /* @__PURE__ */ e.createElement("h1", { className: "sr-only" }, i), c(l) && (
|
|
4446
|
+
}, []), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "relative z-sticky agora-header" }, c(t) && /* @__PURE__ */ e.createElement("h1", { className: "sr-only" }, i), c(l) && (x == null ? void 0 : x.menuItemsHeaderGeneralOptions) && /* @__PURE__ */ e.createElement("div", { className: z }, /* @__PURE__ */ e.createElement(
|
|
4446
4447
|
Ea,
|
|
4447
4448
|
{
|
|
4448
4449
|
current: M.current,
|
|
4449
4450
|
backdropVisible: h,
|
|
4450
|
-
setBackdropVisible:
|
|
4451
|
+
setBackdropVisible: u,
|
|
4451
4452
|
refDrawer: p,
|
|
4452
|
-
setDrawerContent:
|
|
4453
|
-
...
|
|
4453
|
+
setDrawerContent: B,
|
|
4454
|
+
...x
|
|
4454
4455
|
}
|
|
4455
4456
|
)), c(n) && /* @__PURE__ */ e.createElement("div", { className: te }, /* @__PURE__ */ e.createElement(
|
|
4456
4457
|
ui,
|
|
4457
4458
|
{
|
|
4458
4459
|
current: M.current,
|
|
4459
4460
|
backdropVisible: h,
|
|
4460
|
-
setBackdropVisible:
|
|
4461
|
+
setBackdropVisible: u,
|
|
4461
4462
|
...q,
|
|
4462
4463
|
headerNavigationType: "primary",
|
|
4463
4464
|
optionsMenuOverflow: { maxHeight: `calc(100vh - ${ne + oe}px)` }
|
|
4464
4465
|
}
|
|
4465
|
-
)), c(
|
|
4466
|
+
)), c(L) && S && ((S == null ? void 0 : S.menuItemsHeaderNavigation) || (r == null ? void 0 : r.headerNavigationContent)) && /* @__PURE__ */ e.createElement("div", { className: V }, /* @__PURE__ */ e.createElement(
|
|
4466
4467
|
ui,
|
|
4467
4468
|
{
|
|
4468
|
-
...
|
|
4469
|
+
...S,
|
|
4469
4470
|
darkModeHeaderNavigation: a,
|
|
4470
4471
|
ariaLabelHeaderNavigation: r == null ? void 0 : r.ariaLabelHeaderNavigation,
|
|
4471
4472
|
headerNavigationContent: r == null ? void 0 : r.headerNavigationContent,
|
|
4472
4473
|
current: M.current,
|
|
4473
4474
|
backdropVisible: h,
|
|
4474
|
-
setBackdropVisible:
|
|
4475
|
+
setBackdropVisible: u,
|
|
4475
4476
|
headerNavigationType: "secondary",
|
|
4476
4477
|
optionsMenuOverflow: { maxHeight: `calc(100vh - ${ne + oe + Re}px)` }
|
|
4477
4478
|
}
|
|
@@ -4484,18 +4485,18 @@ const Ue = (i, t = 10) => {
|
|
|
4484
4485
|
darkModeHeader: a,
|
|
4485
4486
|
current: M.current,
|
|
4486
4487
|
backdropVisible: h,
|
|
4487
|
-
setBackdropVisible:
|
|
4488
|
+
setBackdropVisible: u,
|
|
4488
4489
|
hasHeaderGeneralOptions: l,
|
|
4489
4490
|
headerGeneralOptions: o,
|
|
4490
4491
|
hasHeaderPrimaryNavigation: n,
|
|
4491
|
-
hasHeaderSecondaryNavigation:
|
|
4492
|
+
hasHeaderSecondaryNavigation: L,
|
|
4492
4493
|
hasBackButtonBurger: b,
|
|
4493
4494
|
backButtonLabelBurger: E,
|
|
4494
4495
|
handleBackButtonBurger: N,
|
|
4495
4496
|
headerSEO: i,
|
|
4496
4497
|
isHomepage: t
|
|
4497
4498
|
}
|
|
4498
|
-
), (P == null ? void 0 : P.menuItem["aria-current"]) === "page" && /* @__PURE__ */ e.createElement("div", { className: "container mx-auto flex xs:justify-start md:justify-end py-16" }, (ye = P.relatedNavMenu) == null ? void 0 : ye.freeMenuItemsHeaderNavigation))), h && /* @__PURE__ */ e.createElement("div", { className: "z-backdrop bg-[var(--color-backdrop)] absolute w-full h-screen", ref: M }), /* @__PURE__ */ e.createElement(Qt, { className:
|
|
4499
|
+
), (P == null ? void 0 : P.menuItem["aria-current"]) === "page" && /* @__PURE__ */ e.createElement("div", { className: "container mx-auto flex xs:justify-start md:justify-end py-16" }, (ye = P.relatedNavMenu) == null ? void 0 : ye.freeMenuItemsHeaderNavigation))), h && /* @__PURE__ */ e.createElement("div", { className: "z-backdrop bg-[var(--color-backdrop)] absolute w-full h-screen", ref: M }), /* @__PURE__ */ e.createElement(Qt, { className: y, position: "right", dismissOnEscape: !0, ref: p, onClickedOutside: G }, w && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4499
4500
|
Ne,
|
|
4500
4501
|
{
|
|
4501
4502
|
className: "agora-drawer-header",
|
|
@@ -4513,7 +4514,7 @@ const Ue = (i, t = 10) => {
|
|
|
4513
4514
|
{
|
|
4514
4515
|
"aria-label": w.menuDrawer["aria-label"],
|
|
4515
4516
|
className: "overflow-auto",
|
|
4516
|
-
style: { maxHeight: `calc(100vh - ${
|
|
4517
|
+
style: { maxHeight: `calc(100vh - ${F + k}px)` }
|
|
4517
4518
|
},
|
|
4518
4519
|
/* @__PURE__ */ e.createElement("ul", { role: "menubar" }, w.menuDrawer.items.map((f, $) => {
|
|
4519
4520
|
const le = `menu-drawer-${$}`;
|
|
@@ -4686,11 +4687,11 @@ const Ue = (i, t = 10) => {
|
|
|
4686
4687
|
l(!1);
|
|
4687
4688
|
}, b = (s, R, I) => {
|
|
4688
4689
|
s.setDate(s.getDate() + 1);
|
|
4689
|
-
const D = s.getMonth() === i.focusedDate.getMonth(),
|
|
4690
|
+
const D = s.getMonth() === i.focusedDate.getMonth(), U = ei(s, i.focusedDate), h = ei(s, i.selectedDate), Y = ei(s, /* @__PURE__ */ new Date()), M = Ai(s), u = J(
|
|
4690
4691
|
"day w-[44px] h-[44px] border-2 rounded-4 outline-0 flex items-center justify-center text-s-regular text-[var(--color-neutral-900)] cursor-default",
|
|
4691
4692
|
// DEFAULT
|
|
4692
4693
|
{
|
|
4693
|
-
"border-transparent": !h && !
|
|
4694
|
+
"border-transparent": !h && !U
|
|
4694
4695
|
},
|
|
4695
4696
|
// DAY IN CURRENT MONTH
|
|
4696
4697
|
{
|
|
@@ -4706,27 +4707,27 @@ const Ue = (i, t = 10) => {
|
|
|
4706
4707
|
},
|
|
4707
4708
|
// FOCUS WITH CALENDAR GRID NOT FOCUSED
|
|
4708
4709
|
{
|
|
4709
|
-
"border-[var(--color-primary-400)]": !h &&
|
|
4710
|
+
"border-[var(--color-primary-400)]": !h && U && !a && D
|
|
4710
4711
|
},
|
|
4711
4712
|
// FOCUS
|
|
4712
4713
|
{
|
|
4713
|
-
"outline outline-2 -outline-offset-2 outline-[var(--color-focus)]": a &&
|
|
4714
|
+
"outline outline-2 -outline-offset-2 outline-[var(--color-focus)]": a && U && D
|
|
4714
4715
|
}
|
|
4715
|
-
), G = J("pointer-events-none select-none", { "opacity-20": !D }),
|
|
4716
|
+
), G = J("pointer-events-none select-none", { "opacity-20": !D }), j = `tr-td-key-${R}-${I}`, p = (() => {
|
|
4716
4717
|
const w = i.getLabels();
|
|
4717
4718
|
let v = s.toLocaleDateString(void 0, { weekday: "long", year: "numeric", month: "long", day: "numeric" });
|
|
4718
|
-
return Y && w.todayDayAriaLabel && (v = `${w.todayDayAriaLabel}, ${v}`),
|
|
4719
|
+
return Y && w.todayDayAriaLabel && (v = `${w.todayDayAriaLabel}, ${v}`), U && w.focusedDayAriaLabel && (v = `${v}, ${w.focusedDayAriaLabel}`), h && w.selectedDayAriaLabel && (v = `${v}, ${w.selectedDayAriaLabel}`), v;
|
|
4719
4720
|
})();
|
|
4720
4721
|
return /* @__PURE__ */ e.createElement(
|
|
4721
4722
|
"div",
|
|
4722
4723
|
{
|
|
4723
|
-
key:
|
|
4724
|
-
className:
|
|
4724
|
+
key: j,
|
|
4725
|
+
className: u,
|
|
4725
4726
|
role: "gridcell",
|
|
4726
4727
|
"data-date": M,
|
|
4727
4728
|
"aria-label": p,
|
|
4728
|
-
"aria-selected":
|
|
4729
|
-
tabIndex: D &&
|
|
4729
|
+
"aria-selected": U,
|
|
4730
|
+
tabIndex: D && U ? 0 : -1,
|
|
4730
4731
|
onKeyDown: d,
|
|
4731
4732
|
onClick: o,
|
|
4732
4733
|
onFocus: r,
|
|
@@ -4801,8 +4802,8 @@ const Ue = (i, t = 10) => {
|
|
|
4801
4802
|
if (I.key === "Tab" && s.current) {
|
|
4802
4803
|
const D = s.current.querySelectorAll(
|
|
4803
4804
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
4804
|
-
),
|
|
4805
|
-
I.shiftKey && document.activeElement ===
|
|
4805
|
+
), U = D[0], h = D[D.length - 1];
|
|
4806
|
+
I.shiftKey && document.activeElement === U ? (I.preventDefault(), h.focus()) : !I.shiftKey && document.activeElement === h && (I.preventDefault(), U.focus());
|
|
4806
4807
|
}
|
|
4807
4808
|
}, []);
|
|
4808
4809
|
return ie(() => (document == null || document.addEventListener("keydown", R), () => {
|
|
@@ -4856,37 +4857,37 @@ const Ue = (i, t = 10) => {
|
|
|
4856
4857
|
previousMonthAriaLabel: R,
|
|
4857
4858
|
nextMonthAriaLabel: I,
|
|
4858
4859
|
nextYearAriaLabel: D,
|
|
4859
|
-
monthsLabels:
|
|
4860
|
+
monthsLabels: U,
|
|
4860
4861
|
weekdaysLabels: h,
|
|
4861
4862
|
focusedDayAriaLabel: Y,
|
|
4862
4863
|
selectedDayAriaLabel: M,
|
|
4863
|
-
todayDayAriaLabel:
|
|
4864
|
+
todayDayAriaLabel: u,
|
|
4864
4865
|
todayLabel: G,
|
|
4865
|
-
todayAriaLabel:
|
|
4866
|
+
todayAriaLabel: j,
|
|
4866
4867
|
cancelLabel: p,
|
|
4867
4868
|
cancelAriaLabel: w,
|
|
4868
4869
|
okLabel: v,
|
|
4869
|
-
okAriaLabel:
|
|
4870
|
-
value:
|
|
4871
|
-
defaultValue:
|
|
4870
|
+
okAriaLabel: y,
|
|
4871
|
+
value: B,
|
|
4872
|
+
defaultValue: F,
|
|
4872
4873
|
onChange: T,
|
|
4873
4874
|
...k
|
|
4874
|
-
},
|
|
4875
|
+
}, Q) => {
|
|
4875
4876
|
const K = se(), W = { ...k };
|
|
4876
4877
|
W.id = W.id ?? K;
|
|
4877
|
-
const
|
|
4878
|
+
const x = C(null);
|
|
4878
4879
|
we(
|
|
4879
|
-
|
|
4880
|
-
() =>
|
|
4881
|
-
[
|
|
4880
|
+
Q,
|
|
4881
|
+
() => x.current,
|
|
4882
|
+
[x.current]
|
|
4882
4883
|
);
|
|
4883
|
-
const z = C(null), [q, te] = O((
|
|
4884
|
+
const z = C(null), [q, te] = O((B == null ? void 0 : B.toString()) ?? (F == null ? void 0 : F.toString()) ?? ""), S = C("empty"), [X, L] = O(+/* @__PURE__ */ new Date()), [V, H] = O(!1), _ = () => {
|
|
4884
4885
|
H(!0);
|
|
4885
4886
|
}, me = () => {
|
|
4886
4887
|
var f;
|
|
4887
|
-
H(!1), (f =
|
|
4888
|
+
H(!1), (f = x.current) == null || f.focus();
|
|
4888
4889
|
}, P = () => {
|
|
4889
|
-
|
|
4890
|
+
V ? me() : _();
|
|
4890
4891
|
}, ne = () => {
|
|
4891
4892
|
me();
|
|
4892
4893
|
}, Ee = (f) => {
|
|
@@ -4895,17 +4896,17 @@ const Ue = (i, t = 10) => {
|
|
|
4895
4896
|
}, oe = () => {
|
|
4896
4897
|
ne();
|
|
4897
4898
|
}, be = (f) => {
|
|
4898
|
-
f !==
|
|
4899
|
+
f !== S.current && (S.current = f, L(+/* @__PURE__ */ new Date()));
|
|
4899
4900
|
};
|
|
4900
4901
|
ie(() => {
|
|
4901
4902
|
const f = ($) => {
|
|
4902
4903
|
var le;
|
|
4903
|
-
|
|
4904
|
+
V && ((le = z.current) != null && le.contains($.target) || ne());
|
|
4904
4905
|
};
|
|
4905
4906
|
return document.addEventListener("click", f), () => {
|
|
4906
4907
|
document.removeEventListener("click", f);
|
|
4907
4908
|
};
|
|
4908
|
-
}, [
|
|
4909
|
+
}, [V]), ie(() => {
|
|
4909
4910
|
var $;
|
|
4910
4911
|
const f = (le) => {
|
|
4911
4912
|
le.key === "Escape" && (le.preventDefault(), ne());
|
|
@@ -4915,8 +4916,8 @@ const Ue = (i, t = 10) => {
|
|
|
4915
4916
|
(le = z.current) == null || le.removeEventListener("keydown", f);
|
|
4916
4917
|
};
|
|
4917
4918
|
}, []), ie(() => {
|
|
4918
|
-
|
|
4919
|
-
}, [
|
|
4919
|
+
F || (te((B == null ? void 0 : B.toString()) ?? ""), be((B == null ? void 0 : B.toString()) ?? ""));
|
|
4920
|
+
}, [B]);
|
|
4920
4921
|
const Re = (f) => {
|
|
4921
4922
|
ne();
|
|
4922
4923
|
const $ = Ai(f);
|
|
@@ -4925,8 +4926,8 @@ const Ue = (i, t = 10) => {
|
|
|
4925
4926
|
te(f.target.value), be(f.target.value);
|
|
4926
4927
|
};
|
|
4927
4928
|
ie(() => {
|
|
4928
|
-
if (
|
|
4929
|
-
const f = Te(
|
|
4929
|
+
if (x.current) {
|
|
4930
|
+
const f = Te(x.current, "change");
|
|
4930
4931
|
Ue(() => T == null ? void 0 : T(f));
|
|
4931
4932
|
}
|
|
4932
4933
|
}, [X]);
|
|
@@ -4935,17 +4936,17 @@ const Ue = (i, t = 10) => {
|
|
|
4935
4936
|
previousMonthAriaLabel: R,
|
|
4936
4937
|
nextMonthAriaLabel: I,
|
|
4937
4938
|
nextYearAriaLabel: D,
|
|
4938
|
-
monthsLabels:
|
|
4939
|
+
monthsLabels: U,
|
|
4939
4940
|
weekdaysLabels: h,
|
|
4940
4941
|
focusedDayAriaLabel: Y,
|
|
4941
4942
|
selectedDayAriaLabel: M,
|
|
4942
|
-
todayDayAriaLabel:
|
|
4943
|
+
todayDayAriaLabel: u,
|
|
4943
4944
|
todayLabel: G,
|
|
4944
|
-
todayAriaLabel:
|
|
4945
|
+
todayAriaLabel: j,
|
|
4945
4946
|
cancelLabel: p,
|
|
4946
4947
|
cancelAriaLabel: w,
|
|
4947
4948
|
okLabel: v,
|
|
4948
|
-
okAriaLabel:
|
|
4949
|
+
okAriaLabel: y
|
|
4949
4950
|
}, ye = J("agora-date-picker", i, {
|
|
4950
4951
|
"has-value": q.length > 0,
|
|
4951
4952
|
disabled: c(W.disabled),
|
|
@@ -4958,7 +4959,7 @@ const Ue = (i, t = 10) => {
|
|
|
4958
4959
|
return /* @__PURE__ */ e.createElement("div", { hidden: !!W.hidden, className: ye, ref: z }, /* @__PURE__ */ e.createElement("label", { hidden: !!c(a), htmlFor: W.id, className: "input-date-label" }, t), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper" }, r && g && g.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: "input-leading-icon" }, /* @__PURE__ */ e.createElement(ae, { name: g, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
|
|
4959
4960
|
ja,
|
|
4960
4961
|
{
|
|
4961
|
-
ref:
|
|
4962
|
+
ref: x,
|
|
4962
4963
|
id: W.id,
|
|
4963
4964
|
dayInputPlaceholder: b,
|
|
4964
4965
|
monthInputPlaceholder: E,
|
|
@@ -4980,7 +4981,7 @@ const Ue = (i, t = 10) => {
|
|
|
4980
4981
|
},
|
|
4981
4982
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-line-calendar", "aria-hidden": !0, className: "icon-calendar-default" }),
|
|
4982
4983
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-solid-calendar", "aria-hidden": !0, className: "icon-calendar-hover" })
|
|
4983
|
-
),
|
|
4984
|
+
), V && /* @__PURE__ */ e.createElement(
|
|
4984
4985
|
pa,
|
|
4985
4986
|
{
|
|
4986
4987
|
className: "date-picker-dropdown",
|
|
@@ -5013,7 +5014,7 @@ const Ue = (i, t = 10) => {
|
|
|
5013
5014
|
}, N) => {
|
|
5014
5015
|
const m = se(), s = { ...E };
|
|
5015
5016
|
s.id = s.id ?? m;
|
|
5016
|
-
const { onChange: R } = s, [I, D] = O(""), [
|
|
5017
|
+
const { onChange: R } = s, [I, D] = O(""), [U, h] = O(!1), Y = ge(
|
|
5017
5018
|
(p) => {
|
|
5018
5019
|
const { value: w } = p.currentTarget;
|
|
5019
5020
|
D(w), h(new RegExp(b).test(w)), R == null || R(p);
|
|
@@ -5021,7 +5022,7 @@ const Ue = (i, t = 10) => {
|
|
|
5021
5022
|
[R, b]
|
|
5022
5023
|
), M = ge(() => {
|
|
5023
5024
|
g && new RegExp(b).test(I) && g(I);
|
|
5024
|
-
}, [g, b, I]),
|
|
5025
|
+
}, [g, b, I]), u = J(
|
|
5025
5026
|
"agora-input-email-bar",
|
|
5026
5027
|
{ dark: c(A) },
|
|
5027
5028
|
{
|
|
@@ -5039,8 +5040,8 @@ const Ue = (i, t = 10) => {
|
|
|
5039
5040
|
"justify-end": !a || c(t),
|
|
5040
5041
|
"justify-between": a && !c(t)
|
|
5041
5042
|
}
|
|
5042
|
-
),
|
|
5043
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!s.hidden, className:
|
|
5043
|
+
), j = J("agora-input-email-bar-label", { dark: c(A) });
|
|
5044
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!s.hidden, className: u }, /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), className: j, htmlFor: s.id }, a)), /* @__PURE__ */ e.createElement("div", { className: `agora-input-email-bar-container ${s.disabled ? "disabled" : ""}` }, /* @__PURE__ */ e.createElement(
|
|
5044
5045
|
"input",
|
|
5045
5046
|
{
|
|
5046
5047
|
...s,
|
|
@@ -5062,7 +5063,7 @@ const Ue = (i, t = 10) => {
|
|
|
5062
5063
|
leadingIconHover: "agora-solid-plane",
|
|
5063
5064
|
"aria-label": c(t) ? s["aria-label"] ?? a : s["aria-label"],
|
|
5064
5065
|
onClick: M,
|
|
5065
|
-
disabled: !
|
|
5066
|
+
disabled: !U
|
|
5066
5067
|
}
|
|
5067
5068
|
))), (c(l) || c(d)) && o && /* @__PURE__ */ e.createElement(
|
|
5068
5069
|
pe,
|
|
@@ -5090,19 +5091,19 @@ const Ue = (i, t = 10) => {
|
|
|
5090
5091
|
}, s) => {
|
|
5091
5092
|
const R = se(), I = { ...m };
|
|
5092
5093
|
I.id = I.id ?? R;
|
|
5093
|
-
const { onChange: D, min:
|
|
5094
|
+
const { onChange: D, min: U, max: h } = I, Y = C(null), [M, u] = O(I.value), G = (x) => {
|
|
5094
5095
|
var q;
|
|
5095
|
-
const { value: z } =
|
|
5096
|
-
if (
|
|
5096
|
+
const { value: z } = x.currentTarget;
|
|
5097
|
+
if (u(z), D == null || D(x), h === parseFloat((z == null ? void 0 : z.toString()) ?? "0") || U === parseFloat((z == null ? void 0 : z.toString()) ?? "0")) {
|
|
5097
5098
|
const te = (q = Y.current) == null ? void 0 : q.querySelector("input");
|
|
5098
5099
|
te && te.focus();
|
|
5099
5100
|
}
|
|
5100
|
-
}, [
|
|
5101
|
+
}, [j, p] = O(!1), w = c(d) ? "dark" : "", v = () => ({
|
|
5101
5102
|
// main wrapper class
|
|
5102
5103
|
inputWrapperClasses: J("agora-input-number-wrapper", w, {
|
|
5103
5104
|
"flex flex-col": !I.hidden,
|
|
5104
5105
|
"input-disabled": !!I.disabled,
|
|
5105
|
-
"is-hovered":
|
|
5106
|
+
"is-hovered": j,
|
|
5106
5107
|
"has-error": c(a),
|
|
5107
5108
|
"has-feedback": c(A),
|
|
5108
5109
|
["feedback-" + o]: c(A) && o
|
|
@@ -5127,23 +5128,23 @@ const Ue = (i, t = 10) => {
|
|
|
5127
5128
|
E
|
|
5128
5129
|
),
|
|
5129
5130
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
5130
|
-
}), { inputWrapperClasses:
|
|
5131
|
+
}), { inputWrapperClasses: y, labelSectionClasses: B, inputClasses: F, leadingIconWrapperClasses: T } = v(), k = () => {
|
|
5131
5132
|
var z;
|
|
5132
|
-
const
|
|
5133
|
-
|
|
5134
|
-
},
|
|
5133
|
+
const x = (z = Y.current) == null ? void 0 : z.querySelector("input");
|
|
5134
|
+
x && (x.stepUp(), x.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
5135
|
+
}, Q = () => {
|
|
5135
5136
|
var z;
|
|
5136
|
-
const
|
|
5137
|
-
|
|
5138
|
-
}, K = (
|
|
5139
|
-
p(
|
|
5137
|
+
const x = (z = Y.current) == null ? void 0 : z.querySelector("input");
|
|
5138
|
+
x && (x.stepDown(), x.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
5139
|
+
}, K = (x) => {
|
|
5140
|
+
p(x);
|
|
5140
5141
|
}, W = J("input-number-label", w);
|
|
5141
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!I.hidden, className:
|
|
5142
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!I.hidden, className: y }, /* @__PURE__ */ e.createElement("div", { className: B }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: I.id, className: W }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center", ref: Y }, /* @__PURE__ */ e.createElement(
|
|
5142
5143
|
"input",
|
|
5143
5144
|
{
|
|
5144
5145
|
...I,
|
|
5145
5146
|
type: "number",
|
|
5146
|
-
className:
|
|
5147
|
+
className: F,
|
|
5147
5148
|
disabled: !!I.disabled,
|
|
5148
5149
|
"aria-invalid": c(a),
|
|
5149
5150
|
"aria-label": c(t) ? I["aria-label"] ?? i : I["aria-label"],
|
|
@@ -5162,9 +5163,9 @@ const Ue = (i, t = 10) => {
|
|
|
5162
5163
|
/* @__PURE__ */ e.createElement(
|
|
5163
5164
|
"button",
|
|
5164
5165
|
{
|
|
5165
|
-
disabled:
|
|
5166
|
+
disabled: U === parseFloat((M == null ? void 0 : M.toString()) ?? "0") || !!I.disabled || !!I.readOnly,
|
|
5166
5167
|
type: "button",
|
|
5167
|
-
onClick:
|
|
5168
|
+
onClick: Q,
|
|
5168
5169
|
"aria-label": n
|
|
5169
5170
|
},
|
|
5170
5171
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-line-minus-circle", "aria-hidden": !0, className: "icon-step icon-step-default" }),
|
|
@@ -5206,12 +5207,12 @@ const Ue = (i, t = 10) => {
|
|
|
5206
5207
|
}, m) => {
|
|
5207
5208
|
const s = se(), R = { ...N };
|
|
5208
5209
|
R.id = R.id ?? s;
|
|
5209
|
-
const { onChange: I } = R, D = C(null), [
|
|
5210
|
-
var
|
|
5211
|
-
!R.disabled && !R.readOnly && (h(!
|
|
5212
|
-
}, G = (
|
|
5213
|
-
M(
|
|
5214
|
-
},
|
|
5210
|
+
const { onChange: I } = R, D = C(null), [U, h] = O(!1), [Y, M] = O(R.value ? R.value.toString().length > 0 : !1), u = () => {
|
|
5211
|
+
var F;
|
|
5212
|
+
!R.disabled && !R.readOnly && (h(!U), D != null && D.current && ((F = D.current.querySelector("input")) == null || F.focus()));
|
|
5213
|
+
}, G = (F) => {
|
|
5214
|
+
M(F.currentTarget.value.length > 0), I == null || I(F);
|
|
5215
|
+
}, j = () => ({
|
|
5215
5216
|
// main wrapper class
|
|
5216
5217
|
inputWrapperClasses: J(
|
|
5217
5218
|
"agora-input-password-wrapper",
|
|
@@ -5244,12 +5245,12 @@ const Ue = (i, t = 10) => {
|
|
|
5244
5245
|
g
|
|
5245
5246
|
),
|
|
5246
5247
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
5247
|
-
}), { inputWrapperClasses: p, labelSectionClasses: w, inputClasses: v, leadingIconWrapperClasses:
|
|
5248
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: p }, /* @__PURE__ */ e.createElement("div", { className: w }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: R.id, className:
|
|
5248
|
+
}), { inputWrapperClasses: p, labelSectionClasses: w, inputClasses: v, leadingIconWrapperClasses: y } = j(), B = J("input-password-label", { dark: c(A) });
|
|
5249
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: p }, /* @__PURE__ */ e.createElement("div", { className: w }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: R.id, className: B }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center", ref: D }, /* @__PURE__ */ e.createElement(
|
|
5249
5250
|
"input",
|
|
5250
5251
|
{
|
|
5251
5252
|
...R,
|
|
5252
|
-
type:
|
|
5253
|
+
type: U ? "text" : "password",
|
|
5253
5254
|
className: v,
|
|
5254
5255
|
disabled: !!R.disabled,
|
|
5255
5256
|
readOnly: !!R.readOnly,
|
|
@@ -5259,16 +5260,16 @@ const Ue = (i, t = 10) => {
|
|
|
5259
5260
|
required: b,
|
|
5260
5261
|
onChange: G
|
|
5261
5262
|
}
|
|
5262
|
-
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className:
|
|
5263
|
+
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: y }, /* @__PURE__ */ e.createElement(ae, { name: r, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
|
|
5263
5264
|
"button",
|
|
5264
5265
|
{
|
|
5265
5266
|
type: "button",
|
|
5266
5267
|
className: "input-btn-toggle bg-transparent",
|
|
5267
|
-
onClick:
|
|
5268
|
+
onClick: u,
|
|
5268
5269
|
"aria-label": E,
|
|
5269
5270
|
disabled: R.disabled ?? R.readOnly
|
|
5270
5271
|
},
|
|
5271
|
-
/* @__PURE__ */ e.createElement(ae, { name: `agora-line-${
|
|
5272
|
+
/* @__PURE__ */ e.createElement(ae, { name: `agora-line-${U ? "eye-off" : "eye"}`, "aria-hidden": !0 })
|
|
5272
5273
|
)), (c(l) || c(a)) && o && /* @__PURE__ */ e.createElement(
|
|
5273
5274
|
pe,
|
|
5274
5275
|
{
|
|
@@ -6671,39 +6672,39 @@ const Ue = (i, t = 10) => {
|
|
|
6671
6672
|
searchable: R,
|
|
6672
6673
|
dropdownAriaLabel: I,
|
|
6673
6674
|
onChange: D,
|
|
6674
|
-
onCountryChange:
|
|
6675
|
+
onCountryChange: U,
|
|
6675
6676
|
...h
|
|
6676
6677
|
}, Y) => {
|
|
6677
|
-
const M = se(),
|
|
6678
|
-
|
|
6679
|
-
const G = C(null),
|
|
6678
|
+
const M = se(), u = { ...h };
|
|
6679
|
+
u.id = u.id ?? M;
|
|
6680
|
+
const G = C(null), j = C(null), p = C(null), w = C(null), [v, y] = O(!1), [B, F] = O(u.value ? u.value.toString().length > 0 : !1);
|
|
6680
6681
|
let T = Be[0];
|
|
6681
6682
|
const k = t ?? a;
|
|
6682
6683
|
k && (T = Be.find((P) => P.code === k || P.iso.toLocaleLowerCase() === k.toLocaleLowerCase()) ?? T);
|
|
6683
|
-
const [
|
|
6684
|
+
const [Q, K] = O(T);
|
|
6684
6685
|
ie(() => {
|
|
6685
6686
|
K(T);
|
|
6686
6687
|
}, [T]), Je(
|
|
6687
6688
|
Y,
|
|
6688
|
-
|
|
6689
|
+
j,
|
|
6689
6690
|
{
|
|
6690
|
-
iso:
|
|
6691
|
-
code:
|
|
6691
|
+
iso: Q.iso,
|
|
6692
|
+
code: Q.code
|
|
6692
6693
|
},
|
|
6693
|
-
[
|
|
6694
|
+
[u, j.current, Q]
|
|
6694
6695
|
);
|
|
6695
6696
|
const W = () => {
|
|
6696
6697
|
var P, ne;
|
|
6697
|
-
|
|
6698
|
-
},
|
|
6698
|
+
y(!1), (P = G.current) != null && P.contains(document.activeElement) && ((ne = j.current) == null || ne.focus());
|
|
6699
|
+
}, x = () => {
|
|
6699
6700
|
var P;
|
|
6700
|
-
|
|
6701
|
+
y(!0), (P = w.current) == null || P.first();
|
|
6701
6702
|
}, z = (P) => {
|
|
6702
6703
|
const ne = Be.find((oe) => oe.iso === P[0].value);
|
|
6703
6704
|
if (!ne)
|
|
6704
6705
|
return;
|
|
6705
6706
|
const Ee = { ...ne };
|
|
6706
|
-
K(Ee),
|
|
6707
|
+
K(Ee), U == null || U(Ee);
|
|
6707
6708
|
}, q = (P) => {
|
|
6708
6709
|
if ([
|
|
6709
6710
|
"Enter",
|
|
@@ -6722,18 +6723,18 @@ const Ue = (i, t = 10) => {
|
|
|
6722
6723
|
/\d/.test(P.key) || (P.preventDefault(), P.stopPropagation());
|
|
6723
6724
|
}, te = (P) => {
|
|
6724
6725
|
const { value: ne } = P.currentTarget;
|
|
6725
|
-
|
|
6726
|
-
},
|
|
6726
|
+
F(ne.length > 0), D == null || D(P);
|
|
6727
|
+
}, S = () => {
|
|
6727
6728
|
var P, ne, Ee;
|
|
6728
6729
|
(P = w.current) != null && P.visibility ? (ne = w.current) == null || ne.hide() : (Ee = w.current) == null || Ee.show();
|
|
6729
6730
|
}, X = (P) => {
|
|
6730
6731
|
var Ee;
|
|
6731
|
-
if (
|
|
6732
|
+
if (u.disabled || u.readOnly)
|
|
6732
6733
|
return;
|
|
6733
6734
|
const ne = P.code;
|
|
6734
|
-
ne === "Escape" && ((Ee = w.current) != null && Ee.visibility) && w.current.hide(), (ne === "Enter" || ne === "Space" || ne === "NumpadEnter") &&
|
|
6735
|
-
},
|
|
6736
|
-
|
|
6735
|
+
ne === "Escape" && ((Ee = w.current) != null && Ee.visibility) && w.current.hide(), (ne === "Enter" || ne === "Space" || ne === "NumpadEnter") && S();
|
|
6736
|
+
}, L = (P) => {
|
|
6737
|
+
u.disabled || u.readOnly || typeof P.detail == "number" && P.detail === 0 || S();
|
|
6737
6738
|
};
|
|
6738
6739
|
ie(() => {
|
|
6739
6740
|
const P = (ne) => {
|
|
@@ -6744,45 +6745,45 @@ const Ue = (i, t = 10) => {
|
|
|
6744
6745
|
document == null || document.removeEventListener("click", P);
|
|
6745
6746
|
};
|
|
6746
6747
|
}, []);
|
|
6747
|
-
const
|
|
6748
|
-
"has-value":
|
|
6749
|
-
disabled:
|
|
6750
|
-
readonly:
|
|
6748
|
+
const V = c(r) ? "dark" : "", H = J("agora-input-phone", g, V), _ = J("input-phone-wrapper", V, {
|
|
6749
|
+
"has-value": B,
|
|
6750
|
+
disabled: u.disabled,
|
|
6751
|
+
readonly: u.readOnly,
|
|
6751
6752
|
"has-error": c(n),
|
|
6752
6753
|
"has-feedback": c(A),
|
|
6753
6754
|
["feedback-" + d]: c(A) && d
|
|
6754
|
-
}), me = J("input-phone-label",
|
|
6755
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!
|
|
6755
|
+
}), me = J("input-phone-label", V);
|
|
6756
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!u.hidden, className: H, ref: G }, i && !c(l) && /* @__PURE__ */ e.createElement("label", { htmlFor: u.id, className: me }, i), /* @__PURE__ */ e.createElement("div", { className: _ }, /* @__PURE__ */ e.createElement(
|
|
6756
6757
|
"button",
|
|
6757
6758
|
{
|
|
6758
6759
|
type: "button",
|
|
6759
6760
|
className: "country-dropdown-control",
|
|
6760
6761
|
ref: p,
|
|
6761
|
-
tabIndex:
|
|
6762
|
-
onClick:
|
|
6762
|
+
tabIndex: u.disabled || u.readOnly ? -1 : 0,
|
|
6763
|
+
onClick: L,
|
|
6763
6764
|
onKeyDown: X,
|
|
6764
6765
|
role: "combobox",
|
|
6765
|
-
"aria-controls": `${
|
|
6766
|
+
"aria-controls": `${u.id}-dropdown-container`,
|
|
6766
6767
|
"aria-expanded": v,
|
|
6767
6768
|
"aria-haspopup": "listbox",
|
|
6768
6769
|
"aria-required": s,
|
|
6769
|
-
"aria-label": `${
|
|
6770
|
-
disabled:
|
|
6770
|
+
"aria-label": `${Q == null ? void 0 : Q.country} +${Q == null ? void 0 : Q.code}`,
|
|
6771
|
+
disabled: u.disabled
|
|
6771
6772
|
},
|
|
6772
|
-
/* @__PURE__ */ e.createElement("img", { className: "shadow-center-lower", src: `${
|
|
6773
|
+
/* @__PURE__ */ e.createElement("img", { className: "shadow-center-lower", src: `${Q.flag}`, alt: Q.country, width: 26, "aria-hidden": !0 }),
|
|
6773
6774
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-solid-arrow-down", "aria-hidden": !0, className: "ml-8" })
|
|
6774
|
-
), /* @__PURE__ */ e.createElement("div", { className: "input-text-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "country-code" }, /* @__PURE__ */ e.createElement("span", { "aria-hidden": !0 }, "+(",
|
|
6775
|
+
), /* @__PURE__ */ e.createElement("div", { className: "input-text-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "country-code" }, /* @__PURE__ */ e.createElement("span", { "aria-hidden": !0 }, "+(", Q == null ? void 0 : Q.code, ")"), /* @__PURE__ */ e.createElement("span", { className: "sr-only", "aria-live": "polite" }, `${Q == null ? void 0 : Q.country} +${Q == null ? void 0 : Q.code}`)), /* @__PURE__ */ e.createElement(
|
|
6775
6776
|
"input",
|
|
6776
6777
|
{
|
|
6777
|
-
...
|
|
6778
|
-
ref:
|
|
6778
|
+
...u,
|
|
6779
|
+
ref: j,
|
|
6779
6780
|
type: "tel",
|
|
6780
|
-
id:
|
|
6781
|
+
id: u.id,
|
|
6781
6782
|
className: "input-text",
|
|
6782
|
-
disabled:
|
|
6783
|
-
readOnly:
|
|
6783
|
+
disabled: u.disabled,
|
|
6784
|
+
readOnly: u.readOnly,
|
|
6784
6785
|
"aria-invalid": c(n),
|
|
6785
|
-
"aria-disabled": c(
|
|
6786
|
+
"aria-disabled": c(u.disabled),
|
|
6786
6787
|
"aria-required": s,
|
|
6787
6788
|
onChange: te,
|
|
6788
6789
|
onKeyDownCapture: q
|
|
@@ -6792,7 +6793,7 @@ const Ue = (i, t = 10) => {
|
|
|
6792
6793
|
{
|
|
6793
6794
|
ref: w,
|
|
6794
6795
|
onHide: W,
|
|
6795
|
-
onShow:
|
|
6796
|
+
onShow: x,
|
|
6796
6797
|
onChange: z,
|
|
6797
6798
|
type: "text",
|
|
6798
6799
|
searchable: R,
|
|
@@ -6803,17 +6804,17 @@ const Ue = (i, t = 10) => {
|
|
|
6803
6804
|
"aria-label": I,
|
|
6804
6805
|
hideSectionNames: !0
|
|
6805
6806
|
},
|
|
6806
|
-
/* @__PURE__ */ e.createElement(ci, { label: "phones", name: `input-phone-${
|
|
6807
|
-
const Ee = `input-phone-${
|
|
6807
|
+
/* @__PURE__ */ e.createElement(ci, { label: "phones", name: `input-phone-${u.id}-countries-dropdown-section` }, Be.map((P, ne) => {
|
|
6808
|
+
const Ee = `input-phone-${u.id}-countries-dropdown-section-${ne}`;
|
|
6808
6809
|
return /* @__PURE__ */ e.createElement(
|
|
6809
6810
|
oi,
|
|
6810
6811
|
{
|
|
6811
6812
|
key: Ee,
|
|
6812
6813
|
value: P.iso,
|
|
6813
|
-
selected: P.iso.toLocaleLowerCase() ===
|
|
6814
|
+
selected: P.iso.toLocaleLowerCase() === Q.iso.toLocaleLowerCase(),
|
|
6814
6815
|
hasIcon: !0,
|
|
6815
6816
|
icon: P.flag,
|
|
6816
|
-
disabled: P.code ===
|
|
6817
|
+
disabled: P.code === Q.code
|
|
6817
6818
|
},
|
|
6818
6819
|
`+(${P.code}) ${P.country}`
|
|
6819
6820
|
);
|
|
@@ -6840,38 +6841,57 @@ const Ue = (i, t = 10) => {
|
|
|
6840
6841
|
}, b) => {
|
|
6841
6842
|
const E = se(), N = { ...g };
|
|
6842
6843
|
N.id = N.id ?? E;
|
|
6843
|
-
const { onChange: m } = N, [s, R] = O([n[0], n[1]]), I = C(n), D = C(null),
|
|
6844
|
+
const { onChange: m } = N, [s, R] = O([n[0], n[1]]), I = C(n), D = C(null), U = C(null), h = C(null);
|
|
6844
6845
|
Je(
|
|
6845
6846
|
b,
|
|
6846
6847
|
D,
|
|
6847
6848
|
{
|
|
6848
|
-
sliders: a === "single" ? [
|
|
6849
|
+
sliders: a === "single" ? [U.current] : [U.current, h.current]
|
|
6849
6850
|
},
|
|
6850
|
-
[a, D.current,
|
|
6851
|
+
[a, D.current, U.current, h.current]
|
|
6851
6852
|
), ie(() => {
|
|
6852
6853
|
if (I.current[0] !== n[0] || I.current[1] !== n[1]) {
|
|
6853
|
-
const
|
|
6854
|
-
a === "single" && (
|
|
6854
|
+
const y = [...n];
|
|
6855
|
+
a === "single" && (y[1] = Number(N.max)), R(y), I.current = y;
|
|
6855
6856
|
}
|
|
6856
6857
|
}, [n]);
|
|
6857
|
-
const Y = (
|
|
6858
|
-
const [
|
|
6859
|
-
if (a === "single" && R(
|
|
6860
|
-
if (
|
|
6858
|
+
const Y = (y) => {
|
|
6859
|
+
const [B, F] = y;
|
|
6860
|
+
if (a === "single" && R(y), a === "double") {
|
|
6861
|
+
if (B > F || F < B || B === F)
|
|
6861
6862
|
return;
|
|
6862
|
-
R(
|
|
6863
|
+
R(y);
|
|
6863
6864
|
}
|
|
6864
|
-
m == null || m(
|
|
6865
|
+
m == null || m(y);
|
|
6865
6866
|
}, M = () => {
|
|
6866
|
-
var
|
|
6867
|
-
(
|
|
6868
|
-
},
|
|
6869
|
-
M(),
|
|
6867
|
+
var y, B;
|
|
6868
|
+
(y = U.current) == null || y.classList.remove("z-[2]"), (B = h.current) == null || B.classList.remove("z-[2]");
|
|
6869
|
+
}, u = (y) => {
|
|
6870
|
+
M(), y.target.classList.add("z-[2]");
|
|
6870
6871
|
}, G = J("agora-input-range", {
|
|
6871
6872
|
"has-label": !c(t),
|
|
6872
6873
|
"has-error": c(A)
|
|
6873
|
-
});
|
|
6874
|
-
|
|
6874
|
+
}), [j, p] = O("#FFFFFF");
|
|
6875
|
+
ie(() => {
|
|
6876
|
+
const y = getComputedStyle(document.documentElement).getPropertyValue("--color-primary-600"), B = getComputedStyle(document.documentElement).getPropertyValue("--color-neutral-200"), F = Number(N.min), T = Number(N.max);
|
|
6877
|
+
if (a === "single" && !l) {
|
|
6878
|
+
let k = (s[0] - F) / (T - F) * 100;
|
|
6879
|
+
k = Math.min(k, 100), p(`linear-gradient(to right, ${y} ${k}%, ${B} ${k}%, ${B} 100%)`);
|
|
6880
|
+
return;
|
|
6881
|
+
}
|
|
6882
|
+
if (a === "double" && !l) {
|
|
6883
|
+
let k = (s[0] - F) / (T - F) * 100, Q = (s[1] - F) / (T - F) * 100;
|
|
6884
|
+
k = Math.min(k, 100), Q = Math.min(Q, 100), p(
|
|
6885
|
+
`linear-gradient(to right, ${B} ${k}%, ${y} ${k}%, ${y} ${Q}%, ${B} ${Q}%)`
|
|
6886
|
+
);
|
|
6887
|
+
return;
|
|
6888
|
+
}
|
|
6889
|
+
p(B);
|
|
6890
|
+
}, [N]);
|
|
6891
|
+
const w = {
|
|
6892
|
+
background: j
|
|
6893
|
+
}, v = J("rail absolute w-full h-[4px] left-[0px] z-[0]");
|
|
6894
|
+
return /* @__PURE__ */ e.createElement("div", { className: G, ref: D }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: `${N.id}-0`, className: "input-range-label" }, i), /* @__PURE__ */ e.createElement("div", { className: "rail-container" }, /* @__PURE__ */ e.createElement("div", { className: v, style: w }), /* @__PURE__ */ e.createElement(
|
|
6875
6895
|
"input",
|
|
6876
6896
|
{
|
|
6877
6897
|
...g,
|
|
@@ -6879,12 +6899,12 @@ const Ue = (i, t = 10) => {
|
|
|
6879
6899
|
type: "range",
|
|
6880
6900
|
id: `${N.id}-0`,
|
|
6881
6901
|
disabled: l,
|
|
6882
|
-
onChange: (
|
|
6902
|
+
onChange: (y) => Y([Number(y.target.value), s[1]]),
|
|
6883
6903
|
value: s[0],
|
|
6884
|
-
ref:
|
|
6904
|
+
ref: U,
|
|
6885
6905
|
"aria-invalid": c(A),
|
|
6886
6906
|
"aria-label": c(t) ? N["aria-label"] ?? i : N["aria-label"],
|
|
6887
|
-
onMouseDown:
|
|
6907
|
+
onMouseDown: u,
|
|
6888
6908
|
onMouseUp: M
|
|
6889
6909
|
}
|
|
6890
6910
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -6896,12 +6916,12 @@ const Ue = (i, t = 10) => {
|
|
|
6896
6916
|
type: "range",
|
|
6897
6917
|
id: `${N.id}-1`,
|
|
6898
6918
|
disabled: l,
|
|
6899
|
-
onChange: (
|
|
6919
|
+
onChange: (y) => Y([s[0], Number(y.target.value)]),
|
|
6900
6920
|
value: s[1],
|
|
6901
6921
|
ref: h,
|
|
6902
6922
|
"aria-invalid": c(A),
|
|
6903
6923
|
"aria-label": c(t) ? N["aria-label"] ?? i : N["aria-label"],
|
|
6904
|
-
onMouseDown:
|
|
6924
|
+
onMouseDown: u,
|
|
6905
6925
|
onMouseUp: M
|
|
6906
6926
|
}
|
|
6907
6927
|
)), (c(o) || c(A)) && d && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(A) ? "danger" : r, feedbackText: d, className: "mt-0" }));
|
|
@@ -6922,7 +6942,7 @@ const Ue = (i, t = 10) => {
|
|
|
6922
6942
|
}, m) => {
|
|
6923
6943
|
const s = se(), R = { ...N };
|
|
6924
6944
|
R.id = R.id ?? s;
|
|
6925
|
-
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1),
|
|
6945
|
+
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1), U = (w) => {
|
|
6926
6946
|
D(w.currentTarget.value.length > 0), E == null || E(w);
|
|
6927
6947
|
}, h = c(A) ? "dark" : "", Y = () => ({
|
|
6928
6948
|
// main wrapper class
|
|
@@ -6954,8 +6974,8 @@ const Ue = (i, t = 10) => {
|
|
|
6954
6974
|
g
|
|
6955
6975
|
),
|
|
6956
6976
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
6957
|
-
}), { inputWrapperClasses: M, labelSectionClasses:
|
|
6958
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: M }, /* @__PURE__ */ e.createElement("div", { className:
|
|
6977
|
+
}), { inputWrapperClasses: M, labelSectionClasses: u, inputClasses: G, leadingIconWrapperClasses: j } = Y(), p = J("input-search-label", h);
|
|
6978
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: M }, /* @__PURE__ */ e.createElement("div", { className: u }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: R.id, className: p }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center rounded-4 bg-white z-[1]" }, /* @__PURE__ */ e.createElement(
|
|
6959
6979
|
"input",
|
|
6960
6980
|
{
|
|
6961
6981
|
...R,
|
|
@@ -6966,9 +6986,9 @@ const Ue = (i, t = 10) => {
|
|
|
6966
6986
|
"aria-label": c(t) ? R["aria-label"] ?? i : R["aria-label"],
|
|
6967
6987
|
ref: m,
|
|
6968
6988
|
required: b,
|
|
6969
|
-
onChange:
|
|
6989
|
+
onChange: U
|
|
6970
6990
|
}
|
|
6971
|
-
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className:
|
|
6991
|
+
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: j }, /* @__PURE__ */ e.createElement(ae, { name: r, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement("div", { className: "search-icon bg-transparent" }, /* @__PURE__ */ e.createElement(ae, { name: "agora-line-search", "aria-hidden": !0 }))), (c(l) || c(a)) && o && /* @__PURE__ */ e.createElement(
|
|
6972
6992
|
pe,
|
|
6973
6993
|
{
|
|
6974
6994
|
feedbackState: c(a) ? "danger" : n,
|
|
@@ -7006,18 +7026,18 @@ const Ue = (i, t = 10) => {
|
|
|
7006
7026
|
searchable: R,
|
|
7007
7027
|
selectAllLabel: I,
|
|
7008
7028
|
allSelectedLabel: D = "",
|
|
7009
|
-
searchInputPlaceholder:
|
|
7029
|
+
searchInputPlaceholder: U,
|
|
7010
7030
|
searchInputAriaLabel: h,
|
|
7011
7031
|
searchNoResultsText: Y,
|
|
7012
7032
|
children: M = [],
|
|
7013
|
-
onSearchInputChange:
|
|
7033
|
+
onSearchInputChange: u,
|
|
7014
7034
|
type: G = "text",
|
|
7015
|
-
dropdownAriaLabel:
|
|
7035
|
+
dropdownAriaLabel: j,
|
|
7016
7036
|
...p
|
|
7017
7037
|
}, w) => {
|
|
7018
|
-
const v = se(),
|
|
7019
|
-
|
|
7020
|
-
const [
|
|
7038
|
+
const v = se(), y = { ...p };
|
|
7039
|
+
y.id = y.id ?? v;
|
|
7040
|
+
const [B, F] = O(!1), T = C(null), k = C(null), Q = C(null), [K, W] = O([]);
|
|
7021
7041
|
we(
|
|
7022
7042
|
w,
|
|
7023
7043
|
() => ({
|
|
@@ -7025,18 +7045,18 @@ const Ue = (i, t = 10) => {
|
|
|
7025
7045
|
}),
|
|
7026
7046
|
[K]
|
|
7027
7047
|
);
|
|
7028
|
-
const
|
|
7048
|
+
const x = J(
|
|
7029
7049
|
"agora-input-select",
|
|
7030
7050
|
{ dark: c(E) },
|
|
7031
7051
|
{
|
|
7032
|
-
disabled: c(
|
|
7052
|
+
disabled: c(y.disabled),
|
|
7033
7053
|
"has-value": K.length > 0,
|
|
7034
7054
|
"has-error": c(N),
|
|
7035
7055
|
"has-feedback": c(r),
|
|
7036
7056
|
["feedback-" + b]: c(r) && b
|
|
7037
7057
|
}
|
|
7038
7058
|
), z = J("agora-input-select-control", {
|
|
7039
|
-
"is-overlay-open":
|
|
7059
|
+
"is-overlay-open": B,
|
|
7040
7060
|
"has-leading-icon": o && (d == null ? void 0 : d.indexOf("agora-line")) === 0
|
|
7041
7061
|
// allowing only line family icon
|
|
7042
7062
|
}), q = de(() => {
|
|
@@ -7045,49 +7065,49 @@ const Ue = (i, t = 10) => {
|
|
|
7045
7065
|
return ne.length === 0 ? a : ne.length === 1 ? ((Ee = ne[0].children) == null ? void 0 : Ee.toString()) ?? "" : ne.length === P ? D : `${ne.length} ${l}`;
|
|
7046
7066
|
}, [M, a, l, D]), te = () => {
|
|
7047
7067
|
var P;
|
|
7048
|
-
|
|
7049
|
-
},
|
|
7068
|
+
y.disabled || (P = k.current) == null || P.focus();
|
|
7069
|
+
}, S = () => {
|
|
7050
7070
|
var P;
|
|
7051
|
-
|
|
7071
|
+
F(!1), (P = k.current) == null || P.focus();
|
|
7052
7072
|
}, X = () => {
|
|
7053
7073
|
var P;
|
|
7054
|
-
|
|
7055
|
-
},
|
|
7074
|
+
F(!0), (P = Q.current) == null || P.first();
|
|
7075
|
+
}, L = (P) => {
|
|
7056
7076
|
W(P), Ue(() => s == null ? void 0 : s(P));
|
|
7057
|
-
},
|
|
7077
|
+
}, V = () => {
|
|
7058
7078
|
var P, ne, Ee;
|
|
7059
|
-
(P =
|
|
7079
|
+
(P = Q.current) != null && P.visibility ? (ne = Q.current) == null || ne.hide() : (Ee = Q.current) == null || Ee.show();
|
|
7060
7080
|
}, H = () => {
|
|
7061
|
-
|
|
7081
|
+
V();
|
|
7062
7082
|
}, _ = (P) => {
|
|
7063
7083
|
const ne = P.code;
|
|
7064
|
-
(ne === "Enter" || ne === "NumpadEnter" || ne === "Space") &&
|
|
7084
|
+
(ne === "Enter" || ne === "NumpadEnter" || ne === "Space") && V();
|
|
7065
7085
|
};
|
|
7066
7086
|
ie(() => {
|
|
7067
7087
|
const P = (ne) => {
|
|
7068
7088
|
var Ee, oe;
|
|
7069
|
-
(Ee =
|
|
7089
|
+
(Ee = Q.current) != null && Ee.visibility && !((oe = T.current) != null && oe.contains(ne.target)) && Q.current.hide();
|
|
7070
7090
|
};
|
|
7071
7091
|
return document == null || document.addEventListener("click", P), () => {
|
|
7072
7092
|
document == null || document.removeEventListener("click", P);
|
|
7073
7093
|
};
|
|
7074
7094
|
}, []);
|
|
7075
7095
|
const me = J("agora-input-select-label", { dark: c(E) });
|
|
7076
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
7096
|
+
return /* @__PURE__ */ e.createElement("div", { className: x, hidden: !!y.hidden }, !c(t) && /* @__PURE__ */ e.createElement("div", { id: `agora-input-select-${y.id}-control-label`, className: me, onClickCapture: te }, i), /* @__PURE__ */ e.createElement("div", { className: "agora-input-select-control-wrapper", ref: T }, /* @__PURE__ */ e.createElement(
|
|
7077
7097
|
"div",
|
|
7078
7098
|
{
|
|
7079
7099
|
ref: k,
|
|
7080
|
-
id: `agora-input-select-${
|
|
7081
|
-
"aria-labelledby": `agora-input-select-${
|
|
7100
|
+
id: `agora-input-select-${y.id}-control`,
|
|
7101
|
+
"aria-labelledby": `agora-input-select-${y.id}-control-label`,
|
|
7082
7102
|
role: "combobox",
|
|
7083
7103
|
"aria-invalid": c(N),
|
|
7084
|
-
"aria-disabled": c(
|
|
7085
|
-
"aria-expanded":
|
|
7086
|
-
"aria-controls":
|
|
7104
|
+
"aria-disabled": c(y.disabled),
|
|
7105
|
+
"aria-expanded": B,
|
|
7106
|
+
"aria-controls": y.id,
|
|
7087
7107
|
"aria-required": m,
|
|
7088
|
-
"aria-label": c(t) ?
|
|
7108
|
+
"aria-label": c(t) ? y["aria-label"] ?? i : y["aria-label"],
|
|
7089
7109
|
className: z,
|
|
7090
|
-
tabIndex:
|
|
7110
|
+
tabIndex: y.disabled ? -1 : 0,
|
|
7091
7111
|
onClick: H,
|
|
7092
7112
|
onKeyDown: _
|
|
7093
7113
|
},
|
|
@@ -7097,20 +7117,20 @@ const Ue = (i, t = 10) => {
|
|
|
7097
7117
|
), /* @__PURE__ */ e.createElement("div", { className: "absolute -bottom-8 left-0 w-full min-h-[8px]" }, /* @__PURE__ */ e.createElement(
|
|
7098
7118
|
Ke,
|
|
7099
7119
|
{
|
|
7100
|
-
ref:
|
|
7101
|
-
id:
|
|
7102
|
-
"aria-label":
|
|
7120
|
+
ref: Q,
|
|
7121
|
+
id: y.id,
|
|
7122
|
+
"aria-label": j,
|
|
7103
7123
|
type: G,
|
|
7104
7124
|
selectAllLabel: I,
|
|
7105
7125
|
optionsVisible: n,
|
|
7106
7126
|
hideSectionNames: A,
|
|
7107
7127
|
searchable: R,
|
|
7108
7128
|
searchAriaLabel: h,
|
|
7109
|
-
searchPlaceholder:
|
|
7129
|
+
searchPlaceholder: U,
|
|
7110
7130
|
noSearchResults: Y,
|
|
7111
|
-
onSearchChange:
|
|
7112
|
-
onChange:
|
|
7113
|
-
onHide:
|
|
7131
|
+
onSearchChange: u,
|
|
7132
|
+
onChange: L,
|
|
7133
|
+
onHide: S,
|
|
7114
7134
|
onShow: X
|
|
7115
7135
|
},
|
|
7116
7136
|
M
|
|
@@ -7139,7 +7159,7 @@ const Ue = (i, t = 10) => {
|
|
|
7139
7159
|
}, m) => {
|
|
7140
7160
|
const s = se(), R = { ...N };
|
|
7141
7161
|
R.id = R.id ?? s;
|
|
7142
|
-
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1),
|
|
7162
|
+
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1), U = (p) => {
|
|
7143
7163
|
D(p.currentTarget.value.length > 0), E == null || E(p);
|
|
7144
7164
|
}, h = () => ({
|
|
7145
7165
|
// main wrapper class
|
|
@@ -7174,19 +7194,19 @@ const Ue = (i, t = 10) => {
|
|
|
7174
7194
|
g
|
|
7175
7195
|
),
|
|
7176
7196
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
7177
|
-
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses:
|
|
7178
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: Y }, /* @__PURE__ */ e.createElement("div", { className: M }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: R.id, className:
|
|
7197
|
+
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses: u, leadingIconWrapperClasses: G } = h(), j = J("input-text-label", { dark: c(A) });
|
|
7198
|
+
return /* @__PURE__ */ e.createElement("div", { hidden: !!R.hidden, className: Y }, /* @__PURE__ */ e.createElement("div", { className: M }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: R.id, className: j }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center" }, /* @__PURE__ */ e.createElement(
|
|
7179
7199
|
"input",
|
|
7180
7200
|
{
|
|
7181
7201
|
...R,
|
|
7182
7202
|
type: "text",
|
|
7183
|
-
className:
|
|
7203
|
+
className: u,
|
|
7184
7204
|
disabled: !!R.disabled,
|
|
7185
7205
|
"aria-invalid": c(a),
|
|
7186
7206
|
"aria-label": c(t) ? R["aria-label"] ?? i : R["aria-label"],
|
|
7187
7207
|
ref: m,
|
|
7188
7208
|
required: b,
|
|
7189
|
-
onChange:
|
|
7209
|
+
onChange: U
|
|
7190
7210
|
}
|
|
7191
7211
|
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement(ae, { name: r, "aria-hidden": !0 }))), (c(l) || c(a)) && o && /* @__PURE__ */ e.createElement(
|
|
7192
7212
|
pe,
|
|
@@ -7215,9 +7235,9 @@ const Ue = (i, t = 10) => {
|
|
|
7215
7235
|
s.id = s.id ?? m, s.rows = Math.max(s.rows ?? 0, 3);
|
|
7216
7236
|
const [R, I] = O(s.value ? s.value.toString().length > 0 : !1), D = (v) => {
|
|
7217
7237
|
I(v.currentTarget.value.length > 0), b == null || b(v);
|
|
7218
|
-
},
|
|
7238
|
+
}, U = c(d) ? "dark" : "", h = () => ({
|
|
7219
7239
|
// main wrapper class
|
|
7220
|
-
inputWrapperClasses: J("agora-input-textarea-wrapper",
|
|
7240
|
+
inputWrapperClasses: J("agora-input-textarea-wrapper", U, {
|
|
7221
7241
|
"flex flex-col": !s.hidden,
|
|
7222
7242
|
"input-disabled": s.disabled,
|
|
7223
7243
|
"has-error": c(a),
|
|
@@ -7238,12 +7258,12 @@ const Ue = (i, t = 10) => {
|
|
|
7238
7258
|
},
|
|
7239
7259
|
r
|
|
7240
7260
|
)
|
|
7241
|
-
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses:
|
|
7261
|
+
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses: u } = h(), G = J("input-textarea-label", U), j = J("char-counter", U);
|
|
7242
7262
|
return /* @__PURE__ */ e.createElement("div", { hidden: s.hidden, className: Y }, /* @__PURE__ */ e.createElement("div", { className: M }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: s.id, className: G }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center" }, /* @__PURE__ */ e.createElement(
|
|
7243
7263
|
"textarea",
|
|
7244
7264
|
{
|
|
7245
7265
|
...s,
|
|
7246
|
-
className:
|
|
7266
|
+
className: u,
|
|
7247
7267
|
"aria-invalid": c(a),
|
|
7248
7268
|
"aria-label": c(t) ? s["aria-label"] ?? i : s["aria-label"],
|
|
7249
7269
|
required: g,
|
|
@@ -7257,7 +7277,7 @@ const Ue = (i, t = 10) => {
|
|
|
7257
7277
|
feedbackText: A,
|
|
7258
7278
|
darkMode: c(d)
|
|
7259
7279
|
}
|
|
7260
|
-
), c(n) && /* @__PURE__ */ e.createElement("div", { className:
|
|
7280
|
+
), c(n) && /* @__PURE__ */ e.createElement("div", { className: j }, /* @__PURE__ */ e.createElement("span", null, `${((w = (p = E.value) == null ? void 0 : p.toString()) == null ? void 0 : w.length) ?? 0}`), s.maxLength && /* @__PURE__ */ e.createElement("span", null, ` / ${s.maxLength}`))));
|
|
7261
7281
|
}, Tn = re(xa), Fa = ({ title: i, subtitle: t, ...a }) => {
|
|
7262
7282
|
const l = J("agora-loader-dialog");
|
|
7263
7283
|
return /* @__PURE__ */ e.createElement("div", { ...a, className: "bg-[var(--color-backdrop)] absolute z-dialog w-full h-full flex flex-col justify-center items-center" }, /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-[64px] justify-center items-center w-full" }, (i || t) && /* @__PURE__ */ e.createElement("div", { className: "flex w-full flex-col gap-8 justify-center items-center text-center" }, i && /* @__PURE__ */ e.createElement("div", { className: "xl:text-2xl-semibold md:text-2xl-semibold xs:text-l-semibold text-white xl:line-clamp-1 md:line-clamp-1 xs:line-clamp-2" }, i), t && /* @__PURE__ */ e.createElement("div", { className: "xl:text-2xl-light md:text-2xl-light xs:text-m-light text-white xl:line-clamp-1 md:line-clamp-1 xs:line-clamp-2" }, t)), /* @__PURE__ */ e.createElement("div", { className: l, role: "status" }, /* @__PURE__ */ e.createElement("span", { className: "!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]" }))));
|
|
@@ -7514,7 +7534,7 @@ const Ue = (i, t = 10) => {
|
|
|
7514
7534
|
tabIndex: N.disabled ? -1 : 0,
|
|
7515
7535
|
disabled: N.disabled
|
|
7516
7536
|
}
|
|
7517
|
-
), /* @__PURE__ */ e.createElement("div", { className: "radio-wrapper" }, /* @__PURE__ */ e.createElement("span", { className: "mark" }), !a && /* @__PURE__ */ e.createElement("label", { className: "label", htmlFor: N.id }, /* @__PURE__ */ e.createElement("span",
|
|
7537
|
+
), /* @__PURE__ */ e.createElement("div", { className: "radio-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "mark-wrapper" }, /* @__PURE__ */ e.createElement("span", { className: "mark" })), !a && /* @__PURE__ */ e.createElement("label", { className: "label-wrapper", htmlFor: N.id }, /* @__PURE__ */ e.createElement("span", { className: "label" }, r ?? i)))), (c(n) || c(t)) && o && /* @__PURE__ */ e.createElement("div", { className: "agora-radio-button-feedback px-8" }, /* @__PURE__ */ e.createElement(
|
|
7518
7538
|
pe,
|
|
7519
7539
|
{
|
|
7520
7540
|
feedbackState: c(t) ? "danger" : A,
|
|
@@ -7637,22 +7657,22 @@ const Ue = (i, t = 10) => {
|
|
|
7637
7657
|
m > 0 && s((M) => M - 1);
|
|
7638
7658
|
}, D = () => {
|
|
7639
7659
|
m < i - 1 && s((M) => M + 1);
|
|
7640
|
-
},
|
|
7660
|
+
}, U = Array.from({ length: i }, (M, u) => /* @__PURE__ */ e.createElement(Ka, { key: u, pageNumber: u + 1 })), h = de(() => U == null ? void 0 : U.map((M, u) => Ze(M, {
|
|
7641
7661
|
...M.props,
|
|
7642
|
-
onClick: () => s(
|
|
7643
|
-
current: c(m ===
|
|
7662
|
+
onClick: () => s(u),
|
|
7663
|
+
current: c(m === u)
|
|
7644
7664
|
})), [t, i, n, A, m]), Y = de(() => {
|
|
7645
|
-
const M = Math.max(m - A, 0),
|
|
7646
|
-
return
|
|
7647
|
-
if (w.some((T) =>
|
|
7648
|
-
return Ze(
|
|
7649
|
-
...
|
|
7650
|
-
onClick: () => s(
|
|
7651
|
-
current: c(m ===
|
|
7665
|
+
const M = Math.max(m - A, 0), u = Math.min(m + A, i), G = U.slice(0, n), j = U.slice(M, u + 1), p = U.slice(i - n, i), w = [.../* @__PURE__ */ new Set([...G, ...j, ...p])], v = M > n, y = u < i - (n + 1);
|
|
7666
|
+
return U == null ? void 0 : U.map((B, F) => {
|
|
7667
|
+
if (w.some((T) => B == T))
|
|
7668
|
+
return Ze(B, {
|
|
7669
|
+
...B.props,
|
|
7670
|
+
onClick: () => s(F),
|
|
7671
|
+
current: c(m === F)
|
|
7652
7672
|
});
|
|
7653
|
-
if (v &&
|
|
7673
|
+
if (v && F == n)
|
|
7654
7674
|
return /* @__PURE__ */ e.createElement(ji, { key: "left-dots", value: "..." });
|
|
7655
|
-
if (
|
|
7675
|
+
if (y && F == i - n - 1)
|
|
7656
7676
|
return /* @__PURE__ */ e.createElement(ji, { key: "right-dots", value: "..." });
|
|
7657
7677
|
});
|
|
7658
7678
|
}, [t, i, n, A, m]);
|
|
@@ -7684,7 +7704,7 @@ const Ue = (i, t = 10) => {
|
|
|
7684
7704
|
}
|
|
7685
7705
|
));
|
|
7686
7706
|
}, Pn = re($a), fe = (i, t) => {
|
|
7687
|
-
var A, o, d, r, g, b, E, N, m, s, R, I, D,
|
|
7707
|
+
var A, o, d, r, g, b, E, N, m, s, R, I, D, U;
|
|
7688
7708
|
const a = i.current, n = [...a == null ? void 0 : a.querySelectorAll('[role="treeitem"]')].find((h) => h.ariaCurrent === "page");
|
|
7689
7709
|
if (c(t))
|
|
7690
7710
|
(o = (A = n == null ? void 0 : n.parentElement) == null ? void 0 : A.classList) == null || o.add("agora-sidebar-anchor-item-current");
|
|
@@ -7693,10 +7713,10 @@ const Ue = (i, t = 10) => {
|
|
|
7693
7713
|
(r = (d = n == null ? void 0 : n.closest(".agora-sidebar-content-item")) == null ? void 0 : d.previousElementSibling) != null && r.classList.contains("agora-sidebar-button-item") ? ((g = n == null ? void 0 : n.parentElement) == null || g.classList.add("agora-sidebar-anchor-item-current"), h = (b = n == null ? void 0 : n.closest(".agora-sidebar-content-item")) == null ? void 0 : b.previousElementSibling) : ((E = n == null ? void 0 : n.closest(".agora-link-wrapper")) == null || E.classList.add("agora-sidebar-anchor-item-current"), h = (m = (N = n == null ? void 0 : n.closest(".agora-sidebar-content-item")) == null ? void 0 : N.previousElementSibling) == null ? void 0 : m.querySelector('[role="treeitem"]'));
|
|
7694
7714
|
let Y = [h];
|
|
7695
7715
|
for (; h; )
|
|
7696
|
-
(R = (s = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : s.previousElementSibling) != null && R.classList.contains("agora-sidebar-button-item") ? h = (I = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : I.previousElementSibling : h = (
|
|
7716
|
+
(R = (s = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : s.previousElementSibling) != null && R.classList.contains("agora-sidebar-button-item") ? h = (I = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : I.previousElementSibling : h = (U = (D = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : D.previousElementSibling) == null ? void 0 : U.querySelector('[role="treeitem"]'), h && (Y = [...Y, h]);
|
|
7697
7717
|
Y = Y.reverse(), Y.forEach((M) => {
|
|
7698
|
-
var
|
|
7699
|
-
M != null && M.classList.contains("agora-sidebar-button-item") && !c((M == null ? void 0 : M.ariaExpanded) ?? "") ? (M.setAttribute("data-custom-triggered-click", "true"), M.click()) : c((M == null ? void 0 : M.ariaExpanded) ?? "") || (
|
|
7718
|
+
var u;
|
|
7719
|
+
M != null && M.classList.contains("agora-sidebar-button-item") && !c((M == null ? void 0 : M.ariaExpanded) ?? "") ? (M.setAttribute("data-custom-triggered-click", "true"), M.click()) : c((M == null ? void 0 : M.ariaExpanded) ?? "") || (u = M == null ? void 0 : M.querySelector(".icon-wrapper")) == null || u.click();
|
|
7700
7720
|
});
|
|
7701
7721
|
}
|
|
7702
7722
|
}, _a = ({
|
|
@@ -7764,9 +7784,9 @@ const Ue = (i, t = 10) => {
|
|
|
7764
7784
|
...d
|
|
7765
7785
|
}) => {
|
|
7766
7786
|
let r, g = [];
|
|
7767
|
-
const b = se(), E = C(null), { width: N } = ze(), m = N < 768, [s, R] = O(!1), [I, D] = O(!1),
|
|
7768
|
-
l !== "navigation-tabs" && (t && (Array.isArray(t) ? g = t : [t].forEach((M) => g.push(M))), c(a) ? r = g == null ? void 0 : g.map((M,
|
|
7769
|
-
const G = `li-${
|
|
7787
|
+
const b = se(), E = C(null), { width: N } = ze(), m = N < 768, [s, R] = O(!1), [I, D] = O(!1), U = J("agora-sidebar", { darkMode: c(n) }, i);
|
|
7788
|
+
l !== "navigation-tabs" && (t && (Array.isArray(t) ? g = t : [t].forEach((M) => g.push(M))), c(a) ? r = g == null ? void 0 : g.map((M, u) => {
|
|
7789
|
+
const G = `li-${u}-${b}`;
|
|
7770
7790
|
return Ze(M, {
|
|
7771
7791
|
flat: c(a),
|
|
7772
7792
|
variant: l,
|
|
@@ -7774,8 +7794,8 @@ const Ue = (i, t = 10) => {
|
|
|
7774
7794
|
darkMode: c(n),
|
|
7775
7795
|
className: `${s ? "trailed" : ""} ${I ? "leaded" : ""}`
|
|
7776
7796
|
});
|
|
7777
|
-
}) : r = g == null ? void 0 : g.map((M,
|
|
7778
|
-
const G = `li-${
|
|
7797
|
+
}) : r = g == null ? void 0 : g.map((M, u) => {
|
|
7798
|
+
const G = `li-${u}-${b}`;
|
|
7779
7799
|
return Ze(M, {
|
|
7780
7800
|
variant: l,
|
|
7781
7801
|
key: G,
|
|
@@ -7784,18 +7804,18 @@ const Ue = (i, t = 10) => {
|
|
|
7784
7804
|
});
|
|
7785
7805
|
}));
|
|
7786
7806
|
const h = (M) => {
|
|
7787
|
-
var
|
|
7788
|
-
E.current && ((
|
|
7807
|
+
var u, G, j, p, w;
|
|
7808
|
+
E.current && ((u = E.current) != null && u.contains(M.target) ? (j = (G = E.current) == null ? void 0 : G.parentElement) == null || j.classList.add("focus") : ((w = (p = E.current) == null ? void 0 : p.parentElement) == null || w.classList.remove("focus"), fe(E, a)));
|
|
7789
7809
|
}, Y = (M) => {
|
|
7790
|
-
var
|
|
7791
|
-
M.target.closest(".collapsed") && ((G = (
|
|
7810
|
+
var u, G;
|
|
7811
|
+
M.target.closest(".collapsed") && ((G = (u = M.target.closest(".collapsed")) == null ? void 0 : u.previousElementSibling) == null || G.focus(), M.stopPropagation(), M.preventDefault());
|
|
7792
7812
|
};
|
|
7793
7813
|
return ie(() => {
|
|
7794
7814
|
if (l === "navigation" && !m) {
|
|
7795
7815
|
if (E.current) {
|
|
7796
|
-
const
|
|
7797
|
-
|
|
7798
|
-
|
|
7816
|
+
const u = E.current.querySelectorAll('[role="treeitem"]'), G = !!E.current.querySelectorAll('[aria-current="page"]');
|
|
7817
|
+
u == null || u.forEach((j, p) => {
|
|
7818
|
+
j.hasAttribute("aria-current") && G || !G && p === 0 ? j.setAttribute("tabIndex", "0") : j.setAttribute("tabIndex", "-1");
|
|
7799
7819
|
});
|
|
7800
7820
|
}
|
|
7801
7821
|
fe(E, a);
|
|
@@ -7807,22 +7827,22 @@ const Ue = (i, t = 10) => {
|
|
|
7807
7827
|
};
|
|
7808
7828
|
}
|
|
7809
7829
|
if (l === "filter") {
|
|
7810
|
-
const M = [],
|
|
7830
|
+
const M = [], u = [];
|
|
7811
7831
|
if (E.current) {
|
|
7812
7832
|
const G = Ge.toArray(t);
|
|
7813
|
-
return Ge.forEach(G, (
|
|
7814
|
-
if (!Me(
|
|
7833
|
+
return Ge.forEach(G, (j) => {
|
|
7834
|
+
if (!Me(j))
|
|
7815
7835
|
return;
|
|
7816
|
-
const p =
|
|
7836
|
+
const p = j.props, w = [p.item].some((y) => !!y.collapsedIconLeading);
|
|
7817
7837
|
M.push(w);
|
|
7818
|
-
const v = [p.item].some((
|
|
7819
|
-
|
|
7820
|
-
}), M.every((
|
|
7838
|
+
const v = [p.item].some((y) => !!y.collapsedIconTrailing);
|
|
7839
|
+
u.push(v);
|
|
7840
|
+
}), M.every((j) => j === !1) || M.every((j) => j === !0) ? D(!1) : M.some((j) => j) && D(!0), u.every((j) => j === !1) || u.every((j) => j === !0) ? R(!1) : u.some((j) => j) && R(!0), E.current.addEventListener("focusin", Y), () => {
|
|
7821
7841
|
E.current && E.current.removeEventListener("focusin", Y);
|
|
7822
7842
|
};
|
|
7823
7843
|
}
|
|
7824
7844
|
}
|
|
7825
|
-
}, [E.current]), /* @__PURE__ */ e.createElement(e.Fragment, null, (!m || l === "filter" || l === "navigation-tabs") && /* @__PURE__ */ e.createElement("ul", { ref: E, className:
|
|
7845
|
+
}, [E.current]), /* @__PURE__ */ e.createElement(e.Fragment, null, (!m || l === "filter" || l === "navigation-tabs") && /* @__PURE__ */ e.createElement("ul", { ref: E, className: U, ...d, ...l === "navigation" ? { role: "tree" } : void 0 }, l === "navigation-tabs" ? /* @__PURE__ */ e.createElement("li", { className: "agora-sidebar-tabs" }, t) : r), l === "navigation" && m && /* @__PURE__ */ e.createElement(
|
|
7826
7846
|
_a,
|
|
7827
7847
|
{
|
|
7828
7848
|
...d,
|
|
@@ -7832,7 +7852,7 @@ const Ue = (i, t = 10) => {
|
|
|
7832
7852
|
backButtonLabel: o,
|
|
7833
7853
|
sidebarRef: E
|
|
7834
7854
|
},
|
|
7835
|
-
/* @__PURE__ */ e.createElement("ul", { ref: E, className:
|
|
7855
|
+
/* @__PURE__ */ e.createElement("ul", { ref: E, className: U, ...d, ...l === "navigation" ? { role: "tree" } : void 0 }, r)
|
|
7836
7856
|
));
|
|
7837
7857
|
}, Ci = (i, t, a, l) => t ? c(i) ? (t.style.maxHeight = "100vh", !0) : c(a) && c(l) ? (t.style.maxHeight = "100vh", c(a)) : (c(a) || (t.style.maxHeight = ""), c(a)) : c(a), ai = (i) => {
|
|
7838
7858
|
if (!i.ariaExpanded)
|
|
@@ -7862,24 +7882,24 @@ const Ue = (i, t = 10) => {
|
|
|
7862
7882
|
}, I = (h) => {
|
|
7863
7883
|
const Y = h.code, M = h.shiftKey;
|
|
7864
7884
|
Y === "Tab" && (() => {
|
|
7865
|
-
var G,
|
|
7885
|
+
var G, j, p, w;
|
|
7866
7886
|
if (M) {
|
|
7867
|
-
const v = (
|
|
7887
|
+
const v = (j = (G = h.currentTarget.parentElement) == null ? void 0 : G.previousElementSibling) == null ? void 0 : j.querySelector(".agora-sidebar-btn-item-filter");
|
|
7868
7888
|
v != null && v.ariaExpanded && v.ariaExpanded !== "true" && v && (v.focus(), h.stopPropagation(), h.preventDefault());
|
|
7869
7889
|
} else {
|
|
7870
7890
|
const v = (w = (p = h.currentTarget.parentElement) == null ? void 0 : p.nextElementSibling) == null ? void 0 : w.querySelector(".agora-sidebar-btn-item-filter");
|
|
7871
7891
|
if (h.currentTarget.ariaExpanded !== "true" && v)
|
|
7872
7892
|
v.focus(), h.stopPropagation(), h.preventDefault();
|
|
7873
7893
|
else if (h.currentTarget.ariaExpanded !== "true") {
|
|
7874
|
-
const
|
|
7894
|
+
const y = Array.from(
|
|
7875
7895
|
document.querySelectorAll(
|
|
7876
7896
|
'a:not([tabindex="-1"]), button:not([tabindex="-1"]), input:not([tabindex="-1"]), textarea:not([tabindex="-1"]), select:not([tabindex="-1"]), details:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'
|
|
7877
7897
|
)
|
|
7878
7898
|
);
|
|
7879
|
-
let
|
|
7880
|
-
for (;
|
|
7881
|
-
|
|
7882
|
-
|
|
7899
|
+
let F = (y.findIndex((T) => T === document.activeElement) + 1) % y.length;
|
|
7900
|
+
for (; y[F].closest(".agora-sidebar"); )
|
|
7901
|
+
F += 1;
|
|
7902
|
+
y[F].focus(), h.stopPropagation(), h.preventDefault();
|
|
7883
7903
|
}
|
|
7884
7904
|
}
|
|
7885
7905
|
})();
|
|
@@ -7887,8 +7907,8 @@ const Ue = (i, t = 10) => {
|
|
|
7887
7907
|
ie(() => {
|
|
7888
7908
|
b(Ci(l, r.current, a, g));
|
|
7889
7909
|
}, []);
|
|
7890
|
-
const D = li(t, g),
|
|
7891
|
-
return delete
|
|
7910
|
+
const D = li(t, g), U = { ...t };
|
|
7911
|
+
return delete U.collapsedIconLeading, delete U.collapsedIconHoverLeading, delete U.expandedIconLeading, delete U.expandedIconHoverLeading, delete U.collapsedIconTrailing, delete U.collapsedIconHoverTrailing, delete U.expandedIconTrailing, delete U.expandedIconHoverTrailing, we(
|
|
7892
7912
|
A,
|
|
7893
7913
|
() => ({
|
|
7894
7914
|
current: d.current,
|
|
@@ -7903,7 +7923,7 @@ const Ue = (i, t = 10) => {
|
|
|
7903
7923
|
className: E,
|
|
7904
7924
|
fullWidth: !0,
|
|
7905
7925
|
...D,
|
|
7906
|
-
...
|
|
7926
|
+
...U,
|
|
7907
7927
|
darkMode: n,
|
|
7908
7928
|
"aria-expanded": g,
|
|
7909
7929
|
"aria-controls": `aria-controls-sidebar-${o}-id`,
|
|
@@ -8018,38 +8038,38 @@ const Ue = (i, t = 10) => {
|
|
|
8018
8038
|
let d, r, g = [], b = [];
|
|
8019
8039
|
const [E, N] = O(c(l)), [m, s] = O(!1), R = J("agora-sidebar-content-item", {
|
|
8020
8040
|
collapsed: !c(l) && !c(n)
|
|
8021
|
-
}), I = C(null), D = C(null),
|
|
8022
|
-
N(Hi("navigation",
|
|
8041
|
+
}), I = C(null), D = C(null), U = C(null), h = () => {
|
|
8042
|
+
N(Hi("navigation", U.current));
|
|
8023
8043
|
}, Y = () => {
|
|
8024
8044
|
I.current && (ai(I.current), h()), D.current && (ai(D.current), h());
|
|
8025
|
-
}, M = (
|
|
8026
|
-
var
|
|
8027
|
-
Pi(
|
|
8028
|
-
},
|
|
8029
|
-
if (
|
|
8045
|
+
}, M = (S, X) => {
|
|
8046
|
+
var L;
|
|
8047
|
+
Pi(S), (L = X.onClick) == null || L.call(X, S);
|
|
8048
|
+
}, u = (S) => {
|
|
8049
|
+
if (S.altKey || S.ctrlKey || S.metaKey)
|
|
8030
8050
|
return;
|
|
8031
|
-
const X =
|
|
8032
|
-
|
|
8051
|
+
const X = S.currentTarget.closest(".agora-sidebar"), L = X == null ? void 0 : X.querySelectorAll('[role="treeitem"]'), V = (me) => me.length === 1 && RegExp(/\S/).exec(me), H = () => {
|
|
8052
|
+
S.currentTarget.getAttribute("aria-expanded") === "true" && !c(n) ? cl(S, L) : c(n) || Y(), S.stopPropagation(), S.preventDefault();
|
|
8033
8053
|
}, _ = () => {
|
|
8034
|
-
|
|
8054
|
+
S.currentTarget.getAttribute("aria-expanded") === "true" && !c(n) ? Y() : c(n) || ol(S), S.stopPropagation(), S.preventDefault();
|
|
8035
8055
|
};
|
|
8036
|
-
if (
|
|
8037
|
-
|
|
8056
|
+
if (S.shiftKey)
|
|
8057
|
+
S.code == "SPACE" || S.code == "RETURN" ? S.stopPropagation() : V(S.key) && wi(S, n, L);
|
|
8038
8058
|
else
|
|
8039
|
-
switch (
|
|
8059
|
+
switch (S.code) {
|
|
8040
8060
|
case "Enter":
|
|
8041
8061
|
case "NumpadEnter":
|
|
8042
8062
|
case "Space":
|
|
8043
|
-
ll(
|
|
8063
|
+
ll(S);
|
|
8044
8064
|
break;
|
|
8045
8065
|
case "Up":
|
|
8046
8066
|
case "ArrowUp": {
|
|
8047
|
-
nl(
|
|
8067
|
+
nl(S, L);
|
|
8048
8068
|
break;
|
|
8049
8069
|
}
|
|
8050
8070
|
case "Down":
|
|
8051
8071
|
case "ArrowDown": {
|
|
8052
|
-
Al(
|
|
8072
|
+
Al(S, L);
|
|
8053
8073
|
break;
|
|
8054
8074
|
}
|
|
8055
8075
|
case "Right":
|
|
@@ -8061,22 +8081,22 @@ const Ue = (i, t = 10) => {
|
|
|
8061
8081
|
_();
|
|
8062
8082
|
break;
|
|
8063
8083
|
case "Home":
|
|
8064
|
-
sl(
|
|
8084
|
+
sl(S, L);
|
|
8065
8085
|
break;
|
|
8066
8086
|
case "End": {
|
|
8067
|
-
Nl(
|
|
8087
|
+
Nl(S, L);
|
|
8068
8088
|
break;
|
|
8069
8089
|
}
|
|
8070
8090
|
case "Tab": {
|
|
8071
|
-
rl(
|
|
8091
|
+
rl(L);
|
|
8072
8092
|
break;
|
|
8073
8093
|
}
|
|
8074
8094
|
default:
|
|
8075
|
-
|
|
8095
|
+
V(S.key) && wi(S, n, L);
|
|
8076
8096
|
break;
|
|
8077
8097
|
}
|
|
8078
|
-
}, G = (
|
|
8079
|
-
switch (
|
|
8098
|
+
}, G = (S) => {
|
|
8099
|
+
switch (S.code) {
|
|
8080
8100
|
case "Enter":
|
|
8081
8101
|
case "NumpadEnter":
|
|
8082
8102
|
case "Space":
|
|
@@ -8090,131 +8110,131 @@ const Ue = (i, t = 10) => {
|
|
|
8090
8110
|
case "ArrowLeft":
|
|
8091
8111
|
case "Home":
|
|
8092
8112
|
case "End":
|
|
8093
|
-
|
|
8113
|
+
S.stopPropagation(), S.preventDefault();
|
|
8094
8114
|
break;
|
|
8095
8115
|
}
|
|
8096
|
-
},
|
|
8097
|
-
var
|
|
8098
|
-
|
|
8099
|
-
}, p = (
|
|
8100
|
-
|
|
8101
|
-
}, w = (
|
|
8102
|
-
|
|
8103
|
-
}, v = (
|
|
8104
|
-
var
|
|
8105
|
-
|
|
8116
|
+
}, j = (S, X) => {
|
|
8117
|
+
var L;
|
|
8118
|
+
S.preventDefault(), S.stopPropagation(), Y(), (L = X == null ? void 0 : X.onClick) == null || L.call(X, S);
|
|
8119
|
+
}, p = (S) => {
|
|
8120
|
+
S.preventDefault(), S.stopPropagation(), s(!0);
|
|
8121
|
+
}, w = (S) => {
|
|
8122
|
+
S.preventDefault(), S.stopPropagation(), s(!1);
|
|
8123
|
+
}, v = (S, X) => {
|
|
8124
|
+
var L;
|
|
8125
|
+
S.preventDefault(), (L = X == null ? void 0 : X.onMouseDown) == null || L.call(X, S);
|
|
8106
8126
|
};
|
|
8107
|
-
i && (Array.isArray(i) ? b = i : [i].forEach((
|
|
8108
|
-
let
|
|
8109
|
-
const
|
|
8110
|
-
let
|
|
8111
|
-
for (let H = 0; H <
|
|
8112
|
-
H === 0 ?
|
|
8127
|
+
i && (Array.isArray(i) ? b = i : [i].forEach((S) => b.push(S))), a.children && (Array.isArray(a.children) ? g = a.children : [a.children].forEach((S) => g.push(S)));
|
|
8128
|
+
let y = !1;
|
|
8129
|
+
const B = (S, X, L) => {
|
|
8130
|
+
let V;
|
|
8131
|
+
for (let H = 0; H < S.length; H++)
|
|
8132
|
+
H === 0 ? V = Ze(S[0], {
|
|
8113
8133
|
children: X,
|
|
8114
|
-
key:
|
|
8115
|
-
}) : H > 0 &&
|
|
8116
|
-
return
|
|
8117
|
-
},
|
|
8134
|
+
key: L
|
|
8135
|
+
}) : H > 0 && V && (V = Ze(S[H], { children: V, key: L }));
|
|
8136
|
+
return V;
|
|
8137
|
+
}, F = (S, X, L) => {
|
|
8118
8138
|
var _;
|
|
8119
|
-
let
|
|
8120
|
-
for (;
|
|
8121
|
-
if ((_ =
|
|
8122
|
-
if (
|
|
8123
|
-
|
|
8139
|
+
let V = S, H = [];
|
|
8140
|
+
for (; V !== null; )
|
|
8141
|
+
if ((_ = V.props) != null && _.children)
|
|
8142
|
+
if (V.props.href) {
|
|
8143
|
+
y = !0, V = Ze(V, {
|
|
8124
8144
|
role: "treeitem",
|
|
8125
8145
|
"aria-expanded": E,
|
|
8126
8146
|
"aria-owns": X,
|
|
8127
|
-
key:
|
|
8147
|
+
key: L,
|
|
8128
8148
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full",
|
|
8129
8149
|
ref: I
|
|
8130
8150
|
}), H = H.reverse();
|
|
8131
|
-
const me =
|
|
8132
|
-
return
|
|
8151
|
+
const me = B(H, V, L);
|
|
8152
|
+
return V = null, me;
|
|
8133
8153
|
} else
|
|
8134
|
-
H = [...H,
|
|
8154
|
+
H = [...H, V], V = V.props.children;
|
|
8135
8155
|
else
|
|
8136
|
-
|
|
8137
|
-
return Ze(
|
|
8138
|
-
key:
|
|
8156
|
+
V = null;
|
|
8157
|
+
return Ze(S, {
|
|
8158
|
+
key: L,
|
|
8139
8159
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full"
|
|
8140
8160
|
});
|
|
8141
|
-
}, T = () => g == null ? void 0 : g.map((
|
|
8142
|
-
const
|
|
8143
|
-
return
|
|
8144
|
-
onClick: (H) => M(H,
|
|
8145
|
-
onKeyUp:
|
|
8161
|
+
}, T = () => g == null ? void 0 : g.map((S, X) => {
|
|
8162
|
+
const L = `item-${X}-${o}`, V = `treeitem-${o}`;
|
|
8163
|
+
return S.props.href ? (y = !0, Ze(S, {
|
|
8164
|
+
onClick: (H) => M(H, S.props),
|
|
8165
|
+
onKeyUp: u,
|
|
8146
8166
|
onKeyDown: G,
|
|
8147
|
-
onMouseDown: (H) => v(H,
|
|
8167
|
+
onMouseDown: (H) => v(H, S.props),
|
|
8148
8168
|
role: "treeitem",
|
|
8149
8169
|
"aria-expanded": E,
|
|
8150
|
-
"aria-owns":
|
|
8151
|
-
children: /* @__PURE__ */ e.createElement("span", { className: "children-wrapper" },
|
|
8152
|
-
key:
|
|
8170
|
+
"aria-owns": V,
|
|
8171
|
+
children: /* @__PURE__ */ e.createElement("span", { className: "children-wrapper" }, S.props.children),
|
|
8172
|
+
key: L,
|
|
8153
8173
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full",
|
|
8154
8174
|
ref: I
|
|
8155
|
-
})) :
|
|
8156
|
-
}), k = (
|
|
8175
|
+
})) : F(S, V, L);
|
|
8176
|
+
}), k = (S, X) => /* @__PURE__ */ e.createElement(e.Fragment, null, (S.leadingIcon || S.leadingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper mr-8 justify-start", role: "none", onClick: j }, S.leadingIcon && /* @__PURE__ */ e.createElement(ae, { name: S.leadingIcon, dimensions: "m", "aria-hidden": !0, ...m ? { style: { display: "none" } } : "" }), S.leadingIconHover && /* @__PURE__ */ e.createElement(ae, { name: S.leadingIconHover, dimensions: "m", "aria-hidden": !0, ...m ? "" : { style: { display: "none" } } })), /* @__PURE__ */ e.createElement(
|
|
8157
8177
|
"span",
|
|
8158
8178
|
{
|
|
8159
|
-
className: `data-children-wrapper ${
|
|
8179
|
+
className: `data-children-wrapper ${S.leadingIcon || S.leadingIconHover ? "" : "pl-[44px]"} ${S.trailingIcon || S.trailingIconHover ? "" : "pr-[44px]"}`
|
|
8160
8180
|
},
|
|
8161
8181
|
X.props.children
|
|
8162
|
-
), (
|
|
8163
|
-
onClick: (H) => M(H,
|
|
8164
|
-
onKeyUp:
|
|
8182
|
+
), (S.trailingIcon || S.trailingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper ml-auto justify-end", role: "none", onClick: j }, S.trailingIcon && /* @__PURE__ */ e.createElement(ae, { name: S.trailingIcon, dimensions: "m", "aria-hidden": !0, ...m ? { style: { display: "none" } } : "" }), S.trailingIconHover && /* @__PURE__ */ e.createElement(ae, { name: S.trailingIconHover, dimensions: "m", "aria-hidden": !0, ...m ? "" : { style: { display: "none" } } }))), Q = (S, X, L, V) => Ze(S, {
|
|
8183
|
+
onClick: (H) => M(H, S.props),
|
|
8184
|
+
onKeyUp: u,
|
|
8165
8185
|
onKeyDown: G,
|
|
8166
|
-
onMouseDown: (H) => v(H,
|
|
8186
|
+
onMouseDown: (H) => v(H, S.props),
|
|
8167
8187
|
onMouseEnter: p,
|
|
8168
8188
|
onMouseLeave: w,
|
|
8169
8189
|
role: "treeitem",
|
|
8170
8190
|
"aria-expanded": E,
|
|
8171
8191
|
"aria-owns": X,
|
|
8172
|
-
key:
|
|
8173
|
-
children:
|
|
8192
|
+
key: L,
|
|
8193
|
+
children: V,
|
|
8174
8194
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full",
|
|
8175
8195
|
ref: I
|
|
8176
|
-
}), K = (
|
|
8196
|
+
}), K = (S, X, L, V) => {
|
|
8177
8197
|
let H;
|
|
8178
|
-
for (let _ = 0; _ <
|
|
8179
|
-
const me =
|
|
8180
|
-
_ === 0 ? H =
|
|
8198
|
+
for (let _ = 0; _ < S.length; _++) {
|
|
8199
|
+
const me = S, P = k(L, me[0]);
|
|
8200
|
+
_ === 0 ? H = Q(me[0], V, X, P) : _ > 0 && H && (H = Ze(S[_], { children: H, key: X }));
|
|
8181
8201
|
}
|
|
8182
8202
|
return H;
|
|
8183
|
-
}, W = (
|
|
8203
|
+
}, W = (S, X, L, V) => {
|
|
8184
8204
|
var me;
|
|
8185
|
-
let H =
|
|
8205
|
+
let H = S, _ = [];
|
|
8186
8206
|
for (; H !== null; )
|
|
8187
8207
|
if ((me = H.props) != null && me.children) {
|
|
8188
8208
|
if (H.props.href)
|
|
8189
|
-
return
|
|
8209
|
+
return y = !0, _ = [..._, H], _ = _.reverse(), H = null, K(_, L, V, X);
|
|
8190
8210
|
_ = [..._, H], H === H.props.children ? H = null : H = H.props.children;
|
|
8191
8211
|
} else
|
|
8192
8212
|
H = null;
|
|
8193
|
-
if (
|
|
8194
|
-
const P = k(
|
|
8195
|
-
return
|
|
8213
|
+
if (y) {
|
|
8214
|
+
const P = k(V, S);
|
|
8215
|
+
return Q(S, X, L, P);
|
|
8196
8216
|
} else
|
|
8197
|
-
return Ze(
|
|
8198
|
-
},
|
|
8199
|
-
const
|
|
8200
|
-
if (
|
|
8201
|
-
|
|
8202
|
-
const _ = k(H,
|
|
8203
|
-
return
|
|
8217
|
+
return Ze(S, { key: L });
|
|
8218
|
+
}, x = () => g == null ? void 0 : g.map((S, X) => {
|
|
8219
|
+
const L = `item-${X}-${o}`, V = `treeitem-${o}`, H = li(a, E);
|
|
8220
|
+
if (S.props.href) {
|
|
8221
|
+
y = !0;
|
|
8222
|
+
const _ = k(H, S);
|
|
8223
|
+
return Q(S, V, L, _);
|
|
8204
8224
|
} else
|
|
8205
|
-
return W(
|
|
8206
|
-
}), z = () => b == null ? void 0 : b.map((
|
|
8207
|
-
const
|
|
8208
|
-
return
|
|
8225
|
+
return W(S, V, L, H);
|
|
8226
|
+
}), z = () => b == null ? void 0 : b.map((S, X) => {
|
|
8227
|
+
const L = `li-${X}-${o}`;
|
|
8228
|
+
return S.props.item ? Ze(S, { flat: `${n}`, variant: t, darkMode: c(A), key: L }) : /* @__PURE__ */ e.createElement("li", { key: L, role: "none", className: "agora-sidebar-item" }, Ze(S));
|
|
8209
8229
|
});
|
|
8210
|
-
c(n) ? (d = T(), r = z()) : (d =
|
|
8211
|
-
N(Ci(n,
|
|
8230
|
+
c(n) ? (d = T(), r = z()) : (d = x(), r = z()), ie(() => {
|
|
8231
|
+
N(Ci(n, U.current, l, E));
|
|
8212
8232
|
}, []);
|
|
8213
8233
|
const q = li(a, E), te = J("agora-sidebar-button-item", {
|
|
8214
8234
|
"!pl-[42px]": q.leadingIcon === void 0,
|
|
8215
8235
|
"!pr-[42px]": q.trailingIcon === void 0
|
|
8216
8236
|
});
|
|
8217
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
8237
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, y && d.length > 0 && /* @__PURE__ */ e.createElement(
|
|
8218
8238
|
Ve,
|
|
8219
8239
|
{
|
|
8220
8240
|
variant: c(A) ? "neutral" : "primary",
|
|
@@ -8224,7 +8244,7 @@ const Ue = (i, t = 10) => {
|
|
|
8224
8244
|
darkMode: c(A)
|
|
8225
8245
|
},
|
|
8226
8246
|
d
|
|
8227
|
-
), !
|
|
8247
|
+
), !y && d.length > 0 && !c(n) && /* @__PURE__ */ e.createElement(
|
|
8228
8248
|
Ne,
|
|
8229
8249
|
{
|
|
8230
8250
|
role: "treeitem",
|
|
@@ -8236,14 +8256,14 @@ const Ue = (i, t = 10) => {
|
|
|
8236
8256
|
...q,
|
|
8237
8257
|
"aria-expanded": E,
|
|
8238
8258
|
"aria-owns": `treeitem-${o}`,
|
|
8239
|
-
onClick: (
|
|
8240
|
-
onKeyUp:
|
|
8259
|
+
onClick: (S) => j(S, a),
|
|
8260
|
+
onKeyUp: u,
|
|
8241
8261
|
onKeyDown: G,
|
|
8242
8262
|
ref: D,
|
|
8243
8263
|
darkMode: c(A)
|
|
8244
8264
|
},
|
|
8245
8265
|
d
|
|
8246
|
-
), !
|
|
8266
|
+
), !y && c(n) && a.children && /* @__PURE__ */ e.createElement(
|
|
8247
8267
|
"div",
|
|
8248
8268
|
{
|
|
8249
8269
|
role: "treeitem",
|
|
@@ -8252,7 +8272,7 @@ const Ue = (i, t = 10) => {
|
|
|
8252
8272
|
className: "p-16 sidebar-item-non-interactive",
|
|
8253
8273
|
"aria-expanded": E,
|
|
8254
8274
|
"aria-owns": `treeitem-${o}`,
|
|
8255
|
-
onKeyUp:
|
|
8275
|
+
onKeyUp: u,
|
|
8256
8276
|
onKeyDown: G,
|
|
8257
8277
|
onMouseDown: v
|
|
8258
8278
|
},
|
|
@@ -8260,7 +8280,7 @@ const Ue = (i, t = 10) => {
|
|
|
8260
8280
|
), r && /* @__PURE__ */ e.createElement(
|
|
8261
8281
|
"ul",
|
|
8262
8282
|
{
|
|
8263
|
-
ref:
|
|
8283
|
+
ref: U,
|
|
8264
8284
|
className: R,
|
|
8265
8285
|
id: `treeitem-${o}`,
|
|
8266
8286
|
role: "group",
|
|
@@ -8273,21 +8293,21 @@ const Ue = (i, t = 10) => {
|
|
|
8273
8293
|
return /* @__PURE__ */ e.createElement("li", { className: o, ...t === "navigation" ? { role: "none" } : void 0 }, t === "filter" && /* @__PURE__ */ e.createElement(il, { ...n, darkMode: l, item: a, ref: A }), t === "navigation" && /* @__PURE__ */ e.createElement(ml, { ...n, darkMode: l, ...t ? { variant: t } : void 0, item: a }));
|
|
8274
8294
|
}, Kn = re(bl), El = ({ className: i, containerSkipNavRef: t, multipleLinks: a, ...l }) => {
|
|
8275
8295
|
const n = C(null), [A, o] = O(!1), d = () => {
|
|
8276
|
-
var G,
|
|
8277
|
-
(G = n.current) == null || G.classList.add("hidden"), (
|
|
8296
|
+
var G, j;
|
|
8297
|
+
(G = n.current) == null || G.classList.add("hidden"), (j = t.current) == null || j.classList.remove("show"), o(!1);
|
|
8278
8298
|
}, r = (G) => {
|
|
8279
|
-
var
|
|
8280
|
-
(
|
|
8299
|
+
var j, p;
|
|
8300
|
+
(j = t.current) == null || j.classList.add("show"), (p = l.onFocus) == null || p.call(l, G);
|
|
8281
8301
|
}, g = (G) => {
|
|
8282
|
-
var
|
|
8283
|
-
A || (G.currentTarget.focus(), (
|
|
8302
|
+
var j, p;
|
|
8303
|
+
A || (G.currentTarget.focus(), (j = t.current) == null || j.classList.remove("show")), (p = l.onBlur) == null || p.call(l, G);
|
|
8284
8304
|
}, b = (G) => {
|
|
8285
|
-
var v,
|
|
8286
|
-
const
|
|
8287
|
-
|
|
8305
|
+
var v, y;
|
|
8306
|
+
const j = G.code, p = (v = t.current) == null ? void 0 : v.querySelectorAll('[role="menuitem"]'), w = [...p].findIndex((B) => B === G.currentTarget);
|
|
8307
|
+
j === "ArrowDown" && (w + 1 !== p.length ? p[w + 1].focus() : p[0].focus()), j === "ArrowUp" && (w - 1 !== p.length && w - 1 >= 0 ? p[w - 1].focus() : p[p.length - 1].focus()), (j === "Tab" || j === "Escape") && n.current && (n.current.classList.add("hidden"), o(!1), n.current.previousSibling.focus()), (y = l.onKeyUp) == null || y.call(l, G);
|
|
8288
8308
|
}, E = (G) => {
|
|
8289
|
-
const
|
|
8290
|
-
n.current && A && (
|
|
8309
|
+
const j = G.code;
|
|
8310
|
+
n.current && A && (j === "Tab" || j === "ArrowDown" || j === "ArrowUp") && (G.preventDefault(), G.stopPropagation());
|
|
8291
8311
|
}, N = () => {
|
|
8292
8312
|
n.current && !A ? (n.current.classList.remove("hidden"), o(!0)) : n.current && A && (n.current.classList.add("hidden"), o(!1));
|
|
8293
8313
|
}, m = () => {
|
|
@@ -8297,7 +8317,7 @@ const Ue = (i, t = 10) => {
|
|
|
8297
8317
|
var G;
|
|
8298
8318
|
(G = t.current) == null || G.classList.remove("show");
|
|
8299
8319
|
}, R = (G) => {
|
|
8300
|
-
var
|
|
8320
|
+
var j, p, w, v, y, B, F, T;
|
|
8301
8321
|
if (n.current)
|
|
8302
8322
|
switch (G.code) {
|
|
8303
8323
|
case "Escape":
|
|
@@ -8305,21 +8325,21 @@ const Ue = (i, t = 10) => {
|
|
|
8305
8325
|
n.current.classList.add("hidden"), o(!1);
|
|
8306
8326
|
break;
|
|
8307
8327
|
case "ArrowDown":
|
|
8308
|
-
A && ((w = (p = (
|
|
8328
|
+
A && ((w = (p = (j = document.activeElement) == null ? void 0 : j.nextElementSibling) == null ? void 0 : p.querySelectorAll('[role="menuitem"]')[0]) == null || w.focus());
|
|
8309
8329
|
break;
|
|
8310
8330
|
case "ArrowUp":
|
|
8311
|
-
A && ((T = (
|
|
8331
|
+
A && ((T = (F = (v = document.activeElement) == null ? void 0 : v.nextElementSibling) == null ? void 0 : F.querySelectorAll('[role="menuitem"]')[((B = (y = document.activeElement) == null ? void 0 : y.nextElementSibling) == null ? void 0 : B.querySelectorAll('[role="menuitem"]').length) - 1]) == null || T.focus());
|
|
8312
8332
|
break;
|
|
8313
8333
|
}
|
|
8314
8334
|
}, I = (G) => {
|
|
8315
|
-
const
|
|
8316
|
-
n.current && (A && (
|
|
8317
|
-
}, D = (G,
|
|
8335
|
+
const j = G.code;
|
|
8336
|
+
n.current && (A && (j === "Tab" || j === "ArrowDown" || j === "ArrowUp") && (G.preventDefault(), G.stopPropagation()), (G.code === "Enter" || G.code === "NumpadEnter" || G.code === "Space") && (n.current && !A ? n.current.classList.remove("hidden") : n.current && A && n.current.classList.add("hidden")));
|
|
8337
|
+
}, D = (G, j) => {
|
|
8318
8338
|
let p;
|
|
8319
8339
|
for (let w = 0; w < G.length; w++)
|
|
8320
8340
|
w === 0 ? p = Ze(G[0], {
|
|
8321
8341
|
role: "menuitem",
|
|
8322
|
-
className: `skip-level-${
|
|
8342
|
+
className: `skip-level-${j}`,
|
|
8323
8343
|
onClick: d,
|
|
8324
8344
|
onFocus: (v) => r(v),
|
|
8325
8345
|
onBlur: (v) => g(v),
|
|
@@ -8327,48 +8347,48 @@ const Ue = (i, t = 10) => {
|
|
|
8327
8347
|
onKeyDownCapture: (v) => E(v)
|
|
8328
8348
|
}) : w > 0 && p && (p = Ze(G[w], { children: p }));
|
|
8329
8349
|
return p;
|
|
8330
|
-
},
|
|
8331
|
-
var
|
|
8332
|
-
let p = G, w = [], v = !1,
|
|
8350
|
+
}, U = (G, j) => {
|
|
8351
|
+
var B;
|
|
8352
|
+
let p = G, w = [], v = !1, y;
|
|
8333
8353
|
for (; p !== null; )
|
|
8334
|
-
(
|
|
8335
|
-
return v ?
|
|
8354
|
+
(B = p.props) != null && B.children ? p.props.href ? (v = !0, w = [...w, p], w = w.reverse(), y = D(w, j), p = null) : (w = [...w, p], p === p.props.children ? p = null : p = p.props.children) : p = null;
|
|
8355
|
+
return v ? y : G;
|
|
8336
8356
|
};
|
|
8337
8357
|
let h = [];
|
|
8338
|
-
const Y = (G,
|
|
8358
|
+
const Y = (G, j = 0) => {
|
|
8339
8359
|
G.forEach((p, w) => {
|
|
8340
8360
|
var W;
|
|
8341
|
-
const v = Object.keys(p),
|
|
8342
|
-
let
|
|
8343
|
-
const T = p[
|
|
8344
|
-
(W = k == null ? void 0 : k.props) != null && W.href ?
|
|
8361
|
+
const v = Object.keys(p), y = v.findIndex((x) => x != "link"), B = v[y];
|
|
8362
|
+
let F;
|
|
8363
|
+
const T = p[B], k = T.link, Q = Object.keys(T).length;
|
|
8364
|
+
(W = k == null ? void 0 : k.props) != null && W.href ? F = Ze(T.link, {
|
|
8345
8365
|
role: "menuitem",
|
|
8346
|
-
className: `skip-level-${
|
|
8366
|
+
className: `skip-level-${j}`,
|
|
8347
8367
|
onClick: d,
|
|
8348
|
-
onFocus: (
|
|
8349
|
-
onBlur: (
|
|
8350
|
-
onKeyUp: (
|
|
8351
|
-
onKeyDownCapture: (
|
|
8352
|
-
}) :
|
|
8353
|
-
const K = `link-lvl-${
|
|
8354
|
-
|
|
8368
|
+
onFocus: (x) => r(x),
|
|
8369
|
+
onBlur: (x) => g(x),
|
|
8370
|
+
onKeyUp: (x) => b(x),
|
|
8371
|
+
onKeyDownCapture: (x) => E(x)
|
|
8372
|
+
}) : F = U(k, j);
|
|
8373
|
+
const K = `link-lvl-${j}-${w}`;
|
|
8374
|
+
Q > 1 ? (h = [
|
|
8355
8375
|
...h,
|
|
8356
|
-
/* @__PURE__ */ e.createElement(Ve, { key: K, appearance: "link", variant: "neutral", className: "skip-option" },
|
|
8357
|
-
], Y([T],
|
|
8376
|
+
/* @__PURE__ */ e.createElement(Ve, { key: K, appearance: "link", variant: "neutral", className: "skip-option" }, F)
|
|
8377
|
+
], Y([T], j + 1)) : h = [
|
|
8358
8378
|
...h,
|
|
8359
|
-
/* @__PURE__ */ e.createElement(Ve, { key: K, appearance: "link", variant: "neutral", className: "skip-option" },
|
|
8379
|
+
/* @__PURE__ */ e.createElement(Ve, { key: K, appearance: "link", variant: "neutral", className: "skip-option" }, F)
|
|
8360
8380
|
];
|
|
8361
8381
|
});
|
|
8362
|
-
}, M = () => a == null ? void 0 : a.skipList.map((
|
|
8382
|
+
}, M = () => a == null ? void 0 : a.skipList.map((j, p) => {
|
|
8363
8383
|
h = [];
|
|
8364
8384
|
const w = p;
|
|
8365
|
-
return Y(
|
|
8366
|
-
}),
|
|
8367
|
-
var
|
|
8368
|
-
(
|
|
8385
|
+
return Y(j.links, 0), /* @__PURE__ */ e.createElement(Pe, { key: w }, /* @__PURE__ */ e.createElement("div", { role: "separator", id: `skip-separator-${w}`, className: "skip-section-separator" }, j.sectionLabel), /* @__PURE__ */ e.createElement("div", { role: "group", "aria-labelledby": `skip-separator-${w}`, className: "flex flex-col" }, h));
|
|
8386
|
+
}), u = ge((G) => {
|
|
8387
|
+
var j, p, w;
|
|
8388
|
+
(j = t.current) != null && j.contains(G.target) || ((p = n.current) == null || p.classList.add("hidden"), (w = t.current) == null || w.classList.remove("show"), o(!1));
|
|
8369
8389
|
}, []);
|
|
8370
|
-
return ie(() => (document == null || document.addEventListener("click",
|
|
8371
|
-
document == null || document.removeEventListener("click",
|
|
8390
|
+
return ie(() => (document == null || document.addEventListener("click", u), () => {
|
|
8391
|
+
document == null || document.removeEventListener("click", u);
|
|
8372
8392
|
}), []), /* @__PURE__ */ e.createElement("div", { className: i, ref: t, ...l }, /* @__PURE__ */ e.createElement(
|
|
8373
8393
|
Ne,
|
|
8374
8394
|
{
|
|
@@ -8520,7 +8540,7 @@ const Ue = (i, t = 10) => {
|
|
|
8520
8540
|
}, m) => {
|
|
8521
8541
|
const s = se(), R = { ...N };
|
|
8522
8542
|
R.id = R.id ?? s;
|
|
8523
|
-
const [I, D] = O(c(R.checked ?? R.defaultChecked)),
|
|
8543
|
+
const [I, D] = O(c(R.checked ?? R.defaultChecked)), U = C(null), h = (w) => {
|
|
8524
8544
|
D((v) => !v), Ue(() => E == null ? void 0 : E(w));
|
|
8525
8545
|
};
|
|
8526
8546
|
ie(() => {
|
|
@@ -8528,12 +8548,12 @@ const Ue = (i, t = 10) => {
|
|
|
8528
8548
|
w !== void 0 && D(w);
|
|
8529
8549
|
}, [R.checked, R.defaultChecked]);
|
|
8530
8550
|
const Y = (w) => {
|
|
8531
|
-
var v,
|
|
8532
|
-
|
|
8551
|
+
var v, y;
|
|
8552
|
+
U !== null && (w.code === "Space" || w.code === "Enter" || w.code === "NumpadEnter") && (w.preventDefault(), (y = (v = U.current) == null ? void 0 : v.querySelector("input")) == null || y.click());
|
|
8533
8553
|
}, M = (w) => {
|
|
8534
|
-
var v,
|
|
8535
|
-
|
|
8536
|
-
},
|
|
8554
|
+
var v, y;
|
|
8555
|
+
U !== null && (w.preventDefault(), (y = (v = U.current) == null ? void 0 : v.querySelector("input")) == null || y.click());
|
|
8556
|
+
}, u = J("agora-switch-wrapper", i, {
|
|
8537
8557
|
"switch-side": c(n),
|
|
8538
8558
|
[`switch-${A}`]: A,
|
|
8539
8559
|
"switch-full-width": c(o),
|
|
@@ -8546,10 +8566,10 @@ const Ue = (i, t = 10) => {
|
|
|
8546
8566
|
}), G = J("toggle-ball", {
|
|
8547
8567
|
"icon-disabled": l,
|
|
8548
8568
|
"icon-off": !I && !l
|
|
8549
|
-
}),
|
|
8569
|
+
}), j = J("switch-label", {
|
|
8550
8570
|
"label-disabled": l
|
|
8551
8571
|
}), p = N["aria-label"] ?? t;
|
|
8552
|
-
return /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { ref:
|
|
8572
|
+
return /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { ref: U, className: u }, /* @__PURE__ */ e.createElement("input", { ...R, type: "checkbox", tabIndex: -1, disabled: l, onChange: h, ref: m, id: R.id }), /* @__PURE__ */ e.createElement(
|
|
8553
8573
|
"div",
|
|
8554
8574
|
{
|
|
8555
8575
|
className: `toggle-switch ${I ? "on" : "off"}`,
|
|
@@ -8561,7 +8581,7 @@ const Ue = (i, t = 10) => {
|
|
|
8561
8581
|
onKeyDown: Y
|
|
8562
8582
|
},
|
|
8563
8583
|
/* @__PURE__ */ e.createElement("span", { className: G }, I ? /* @__PURE__ */ e.createElement(ae, { name: "agora-solid-check", "aria-hidden": !0, className: "on", dimensions: "xs" }) : /* @__PURE__ */ e.createElement(ae, { name: "agora-solid-x", "aria-hidden": !0, className: "off", dimensions: "xs" }))
|
|
8564
|
-
), !a && t && /* @__PURE__ */ e.createElement("label", { htmlFor: R.id, className:
|
|
8584
|
+
), !a && t && /* @__PURE__ */ e.createElement("label", { htmlFor: R.id, className: j }, t)), (c(d) || c(b)) && g && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(b) ? "danger" : r, feedbackText: g, className: "px-16" }));
|
|
8565
8585
|
}, eA = re(Ul), iA = ({ children: i, ...t }) => /* @__PURE__ */ e.createElement("tbody", { ...t }, i), tA = ({ children: i, ...t }) => /* @__PURE__ */ e.createElement("caption", { ...t }, i), aA = ({ children: i, headerKey: t = "", headerLabel: a, ...l }) => /* @__PURE__ */ e.createElement("td", { ...l, "data-header-key": t, "data-label": a }, i), lA = ({ children: i, ...t }) => /* @__PURE__ */ e.createElement("tfoot", { ...t }, i), nA = ({ children: i, ...t }) => /* @__PURE__ */ e.createElement("thead", { ...t }, i), jl = {
|
|
8566
8586
|
string: "agora-line-sort-alpha-up",
|
|
8567
8587
|
date: "agora-solid-sort-generic-up",
|
|
@@ -8593,37 +8613,37 @@ const Ue = (i, t = 10) => {
|
|
|
8593
8613
|
...g
|
|
8594
8614
|
}, b) => {
|
|
8595
8615
|
const E = se(), N = C(null), m = C(null), s = C(null), [R, I] = O(!1), D = () => {
|
|
8596
|
-
var v,
|
|
8597
|
-
(v = m.current) != null && v.visibility ? (
|
|
8598
|
-
},
|
|
8616
|
+
var v, y, B, F;
|
|
8617
|
+
(v = m.current) != null && v.visibility ? (y = m.current) == null || y.hide() : (B = m.current) == null || B.show(), (F = N.current) == null || F.classList.remove("active");
|
|
8618
|
+
}, U = (v) => {
|
|
8599
8619
|
typeof v.detail == "number" && v.detail === 0 || D();
|
|
8600
8620
|
}, h = (v) => {
|
|
8601
|
-
var
|
|
8602
|
-
const
|
|
8603
|
-
|
|
8621
|
+
var B;
|
|
8622
|
+
const y = v.code;
|
|
8623
|
+
y === "Escape" && ((B = m.current) != null && B.visibility) && m.current.hide(), (y === "Enter" || y === "Space" || y === "NumpadEnter") && D();
|
|
8604
8624
|
}, Y = () => {
|
|
8605
8625
|
var v;
|
|
8606
8626
|
I(!0), (v = m.current) == null || v.first();
|
|
8607
8627
|
}, M = () => {
|
|
8608
8628
|
var v;
|
|
8609
8629
|
I(!1), (v = N.current) == null || v.focus();
|
|
8610
|
-
},
|
|
8611
|
-
var
|
|
8630
|
+
}, u = (v) => {
|
|
8631
|
+
var y;
|
|
8612
8632
|
if (v.length > 0) {
|
|
8613
|
-
const
|
|
8614
|
-
(
|
|
8633
|
+
const B = v[0];
|
|
8634
|
+
(y = g.onPageSizeChange) == null || y.call(g, +B.value);
|
|
8615
8635
|
}
|
|
8616
8636
|
};
|
|
8617
8637
|
ie(() => {
|
|
8618
|
-
const v = (
|
|
8619
|
-
var
|
|
8620
|
-
(
|
|
8638
|
+
const v = (y) => {
|
|
8639
|
+
var B, F;
|
|
8640
|
+
(B = m.current) != null && B.visibility && !((F = s.current) != null && F.contains(y.target)) && m.current.hide();
|
|
8621
8641
|
};
|
|
8622
8642
|
return document == null || document.addEventListener("click", v), () => {
|
|
8623
8643
|
document == null || document.removeEventListener("click", v);
|
|
8624
8644
|
};
|
|
8625
8645
|
}, []);
|
|
8626
|
-
const G = Math.ceil(a / t),
|
|
8646
|
+
const G = Math.ceil(a / t), j = () => {
|
|
8627
8647
|
var v;
|
|
8628
8648
|
(v = g.onPageChange) == null || v.call(g, Math.max(0, n - 1));
|
|
8629
8649
|
}, p = () => {
|
|
@@ -8648,7 +8668,7 @@ const Ue = (i, t = 10) => {
|
|
|
8648
8668
|
role: "combobox",
|
|
8649
8669
|
"aria-controls": E,
|
|
8650
8670
|
"aria-expanded": R,
|
|
8651
|
-
onClick:
|
|
8671
|
+
onClick: U,
|
|
8652
8672
|
onKeyDown: h
|
|
8653
8673
|
},
|
|
8654
8674
|
i,
|
|
@@ -8662,7 +8682,7 @@ const Ue = (i, t = 10) => {
|
|
|
8662
8682
|
type: "text",
|
|
8663
8683
|
onHide: M,
|
|
8664
8684
|
onShow: Y,
|
|
8665
|
-
onChange:
|
|
8685
|
+
onChange: u,
|
|
8666
8686
|
hideSectionNames: !0,
|
|
8667
8687
|
"aria-label": o
|
|
8668
8688
|
},
|
|
@@ -8677,7 +8697,7 @@ const Ue = (i, t = 10) => {
|
|
|
8677
8697
|
iconOnly: !0,
|
|
8678
8698
|
trailingIcon: "agora-solid-chevron-left",
|
|
8679
8699
|
trailingIconHover: "agora-line-chevron-left",
|
|
8680
|
-
onClick:
|
|
8700
|
+
onClick: j,
|
|
8681
8701
|
disabled: n === 0,
|
|
8682
8702
|
"aria-label": d
|
|
8683
8703
|
}
|
|
@@ -8734,57 +8754,57 @@ const Ue = (i, t = 10) => {
|
|
|
8734
8754
|
E(G), A == null || A(G);
|
|
8735
8755
|
};
|
|
8736
8756
|
ie(() => {
|
|
8737
|
-
const G = [],
|
|
8757
|
+
const G = [], j = [], p = Ge.toArray(i);
|
|
8738
8758
|
Ge.forEach(p, (w, v) => {
|
|
8739
|
-
var
|
|
8740
|
-
Me(w) && (c(w.props.active) && D(v), G.push((
|
|
8741
|
-
}), m(G), R(
|
|
8759
|
+
var y, B, F, T;
|
|
8760
|
+
Me(w) && (c(w.props.active) && D(v), G.push((B = (y = w.props) == null ? void 0 : y.children) == null ? void 0 : B[0]), j.push((T = (F = w.props) == null ? void 0 : F.children) == null ? void 0 : T[1]));
|
|
8761
|
+
}), m(G), R(j);
|
|
8742
8762
|
}, [i]);
|
|
8743
|
-
const
|
|
8744
|
-
var T, k,
|
|
8763
|
+
const U = (G) => {
|
|
8764
|
+
var T, k, Q;
|
|
8745
8765
|
if (G.code === "Tab") {
|
|
8746
8766
|
((T = r.current) == null ? void 0 : T.tabIndex) === 0 && (G.preventDefault(), (k = r.current) == null || k.focus());
|
|
8747
8767
|
return;
|
|
8748
8768
|
}
|
|
8749
|
-
const
|
|
8750
|
-
if (
|
|
8769
|
+
const j = ((Q = g.current) == null ? void 0 : Q.querySelectorAll(".tab-list-item")) ?? [];
|
|
8770
|
+
if (j.length == 0)
|
|
8751
8771
|
return;
|
|
8752
8772
|
let p = b;
|
|
8753
|
-
const w = Array.from(
|
|
8754
|
-
c(n) || (w ===
|
|
8755
|
-
},
|
|
8756
|
-
c(n) || (w === 0 ? (
|
|
8773
|
+
const w = Array.from(j).findIndex((K) => K === document.activeElement), v = () => {
|
|
8774
|
+
c(n) || (w === j.length - 1 ? (j[0].focus(), p = 0) : (p = w + 1, j[p].focus()));
|
|
8775
|
+
}, y = () => {
|
|
8776
|
+
c(n) || (w === 0 ? (j[j.length - 1].focus(), p = j.length - 1) : (p = w - 1, j[p].focus()));
|
|
8777
|
+
}, B = () => {
|
|
8778
|
+
c(n) && (w === j.length - 1 ? (j[0].focus(), p = 0) : (p = w + 1, j[p].focus()));
|
|
8757
8779
|
}, F = () => {
|
|
8758
|
-
c(n) && (w ===
|
|
8759
|
-
}, L = () => {
|
|
8760
|
-
c(n) && (w === 0 ? (u[u.length - 1].focus(), p = u.length - 1) : (p = w - 1, u[p].focus()));
|
|
8780
|
+
c(n) && (w === 0 ? (j[j.length - 1].focus(), p = j.length - 1) : (p = w - 1, j[p].focus()));
|
|
8761
8781
|
};
|
|
8762
8782
|
switch (G.code) {
|
|
8763
8783
|
case "Home":
|
|
8764
|
-
|
|
8784
|
+
j[0].focus(), p = 0;
|
|
8765
8785
|
break;
|
|
8766
8786
|
case "End":
|
|
8767
|
-
|
|
8787
|
+
j[j.length - 1].focus(), p = j.length - 1;
|
|
8768
8788
|
break;
|
|
8769
8789
|
case "ArrowRight":
|
|
8770
8790
|
v();
|
|
8771
8791
|
break;
|
|
8772
8792
|
case "ArrowLeft":
|
|
8773
|
-
|
|
8793
|
+
y();
|
|
8774
8794
|
break;
|
|
8775
8795
|
case "ArrowDown":
|
|
8776
|
-
|
|
8796
|
+
B();
|
|
8777
8797
|
break;
|
|
8778
8798
|
case "ArrowUp":
|
|
8779
|
-
|
|
8799
|
+
F();
|
|
8780
8800
|
break;
|
|
8781
8801
|
}
|
|
8782
8802
|
c(t) && D(p);
|
|
8783
8803
|
}, h = (G) => {
|
|
8784
|
-
var
|
|
8804
|
+
var j;
|
|
8785
8805
|
if (G.currentTarget === G.target && G.code === "Tab" && G.shiftKey) {
|
|
8786
8806
|
G.preventDefault();
|
|
8787
|
-
const p = (
|
|
8807
|
+
const p = (j = g.current) == null ? void 0 : j.querySelector(".tab-list-item.active");
|
|
8788
8808
|
p == null || p.focus();
|
|
8789
8809
|
}
|
|
8790
8810
|
}, Y = de(() => {
|
|
@@ -8797,14 +8817,14 @@ const Ue = (i, t = 10) => {
|
|
|
8797
8817
|
"agora-tabs",
|
|
8798
8818
|
{ "full-width": c(a), vertically: c(n) },
|
|
8799
8819
|
l
|
|
8800
|
-
),
|
|
8820
|
+
), u = J("tab-panel", {
|
|
8801
8821
|
"current-neutral": o === "neutral",
|
|
8802
8822
|
"current-primary": o === "primary",
|
|
8803
8823
|
"current-secondary": o === "secondary"
|
|
8804
8824
|
});
|
|
8805
|
-
return /* @__PURE__ */ e.createElement("div", { className: M, ...d }, /* @__PURE__ */ e.createElement("div", { ref: g, role: "tablist", className: "tab-list" }, Ge.map(N, (G,
|
|
8806
|
-
const p = `agora-tab-${I}-${
|
|
8807
|
-
active: b ===
|
|
8825
|
+
return /* @__PURE__ */ e.createElement("div", { className: M, ...d }, /* @__PURE__ */ e.createElement("div", { ref: g, role: "tablist", className: "tab-list" }, Ge.map(N, (G, j) => {
|
|
8826
|
+
const p = `agora-tab-${I}-${j}`, w = J("tab-list-item", {
|
|
8827
|
+
active: b === j,
|
|
8808
8828
|
"current-neutral": o === "neutral",
|
|
8809
8829
|
"current-primary": o === "primary",
|
|
8810
8830
|
"current-secondary": o === "secondary"
|
|
@@ -8815,17 +8835,17 @@ const Ue = (i, t = 10) => {
|
|
|
8815
8835
|
id: p,
|
|
8816
8836
|
key: p,
|
|
8817
8837
|
role: "tab",
|
|
8818
|
-
tabIndex: b ===
|
|
8838
|
+
tabIndex: b === j ? 0 : -1,
|
|
8819
8839
|
onClick: (v) => {
|
|
8820
|
-
v.currentTarget.blur(), D(
|
|
8840
|
+
v.currentTarget.blur(), D(j);
|
|
8821
8841
|
},
|
|
8822
|
-
onKeyDown:
|
|
8823
|
-
"aria-selected": b ===
|
|
8842
|
+
onKeyDown: U,
|
|
8843
|
+
"aria-selected": b === j,
|
|
8824
8844
|
className: w
|
|
8825
8845
|
},
|
|
8826
8846
|
G.props.children
|
|
8827
8847
|
);
|
|
8828
|
-
})), s[b] && /* @__PURE__ */ e.createElement("div", { role: "tabpanel", className:
|
|
8848
|
+
})), s[b] && /* @__PURE__ */ e.createElement("div", { role: "tabpanel", className: u, "aria-labelledby": `agora-tab-${I}-${b}` }, /* @__PURE__ */ e.createElement("div", { role: "presentation", className: "tab-panel-content", ref: r, ...Y }, s[b].props.children)));
|
|
8829
8849
|
}, yl = ({ darkMode: i = !1, icon: t = "", iconHover: a = "", children: l, className: n = "", ...A }, o) => {
|
|
8830
8850
|
const d = J("agora-btn-tag", n), r = de(() => ({
|
|
8831
8851
|
appearance: "outline",
|
|
@@ -8898,13 +8918,13 @@ const Ue = (i, t = 10) => {
|
|
|
8898
8918
|
}, [i]);
|
|
8899
8919
|
const D = (p) => {
|
|
8900
8920
|
N(p);
|
|
8901
|
-
},
|
|
8921
|
+
}, U = (p, w) => p < w ? "completed" : "", h = () => {
|
|
8902
8922
|
const p = Math.min(E + 1, Ge.count(i) - 1);
|
|
8903
8923
|
N(p), p >= R && (s(m + 1), I(R + 1));
|
|
8904
8924
|
}, Y = () => {
|
|
8905
8925
|
const p = Math.max(E - 1, 0);
|
|
8906
8926
|
N(p), p < m && (s(m - 1), I(R - 1));
|
|
8907
|
-
}, M = Ge.map(i, (p, w) => w === E ? p.props.children : null),
|
|
8927
|
+
}, M = Ge.map(i, (p, w) => w === E ? p.props.children : null), u = g.slice(m, R);
|
|
8908
8928
|
ie(() => {
|
|
8909
8929
|
if (E > R - 1 || E < m) {
|
|
8910
8930
|
const p = Math.max(0, E - Math.floor(r / 2)), w = p + r;
|
|
@@ -8945,19 +8965,19 @@ const Ue = (i, t = 10) => {
|
|
|
8945
8965
|
},
|
|
8946
8966
|
t
|
|
8947
8967
|
));
|
|
8948
|
-
},
|
|
8968
|
+
}, j = J(
|
|
8949
8969
|
"agora-timeline-horizontal",
|
|
8950
8970
|
{
|
|
8951
8971
|
"event-static": !c(l)
|
|
8952
8972
|
},
|
|
8953
8973
|
n
|
|
8954
8974
|
);
|
|
8955
|
-
return /* @__PURE__ */ e.createElement("div", null, o ? /* @__PURE__ */ e.createElement(kl, { ...A, hideLabels: !1 }, i) : /* @__PURE__ */ e.createElement("div", { ...A, className:
|
|
8956
|
-
const v = w + m === 0,
|
|
8975
|
+
return /* @__PURE__ */ e.createElement("div", null, o ? /* @__PURE__ */ e.createElement(kl, { ...A, hideLabels: !1 }, i) : /* @__PURE__ */ e.createElement("div", { ...A, className: j }, /* @__PURE__ */ e.createElement("div", { className: "timeline-steps" }, u.map((p, w) => {
|
|
8976
|
+
const v = w + m === 0, y = w + m === R - 1, B = m > 0, F = R < g.length, T = J(U(w + m, E), {
|
|
8957
8977
|
"first-event": v,
|
|
8958
|
-
"last-event":
|
|
8959
|
-
"has-more-events-left":
|
|
8960
|
-
"has-more-events-right":
|
|
8978
|
+
"last-event": y && w + m === g.length - 1,
|
|
8979
|
+
"has-more-events-left": B,
|
|
8980
|
+
"has-more-events-right": F
|
|
8961
8981
|
});
|
|
8962
8982
|
return /* @__PURE__ */ e.createElement(
|
|
8963
8983
|
Sl,
|
|
@@ -9070,8 +9090,8 @@ const Ue = (i, t = 10) => {
|
|
|
9070
9090
|
return /* @__PURE__ */ e.createElement("ul", { className: E, "aria-live": "polite" }, i.map((N, m) => {
|
|
9071
9091
|
const s = `${o}-${N.name}-${m}`, R = b(N);
|
|
9072
9092
|
return /* @__PURE__ */ e.createElement("li", { className: "file", key: s }, /* @__PURE__ */ e.createElement("div", { className: "file-item" }, /* @__PURE__ */ e.createElement("div", { className: "file-info" }, /* @__PURE__ */ e.createElement("div", { className: "name" }, N.name), /* @__PURE__ */ e.createElement("div", { className: "size" }, g(N.size))), R.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "actions" }, R.map((I, D) => {
|
|
9073
|
-
const
|
|
9074
|
-
return /* @__PURE__ */ e.createElement(Ne, { key:
|
|
9093
|
+
const U = `${s}-action-${D}`;
|
|
9094
|
+
return /* @__PURE__ */ e.createElement(Ne, { key: U, ...I });
|
|
9075
9095
|
}))), /* @__PURE__ */ e.createElement("div", { className: "file-divider" }));
|
|
9076
9096
|
}));
|
|
9077
9097
|
}, xl = (i, t) => {
|
|
@@ -9098,33 +9118,33 @@ const Ue = (i, t = 10) => {
|
|
|
9098
9118
|
const o = C([]), d = C(null), r = () => l ? i : 1, g = (Y, M) => {
|
|
9099
9119
|
Ue(() => n(Y, M));
|
|
9100
9120
|
}, b = (Y) => {
|
|
9101
|
-
const M = ii([], Y, r(), t, a),
|
|
9102
|
-
M.hasErrors ? d.current = M : (d.current = null,
|
|
9121
|
+
const M = ii([], Y, r(), t, a), u = [];
|
|
9122
|
+
M.hasErrors ? d.current = M : (d.current = null, u.push(...Y)), o.current = u, g(o.current, d.current);
|
|
9103
9123
|
}, E = (Y) => {
|
|
9104
9124
|
if (Y.length == 0)
|
|
9105
9125
|
return;
|
|
9106
|
-
const M = ii(o.current, Y, r(), t, a),
|
|
9107
|
-
M.hasErrors ? d.current = M : (d.current = null,
|
|
9126
|
+
const M = ii(o.current, Y, r(), t, a), u = [...o.current];
|
|
9127
|
+
M.hasErrors ? d.current = M : (d.current = null, u.push(...Y)), o.current = u, g(o.current, d.current);
|
|
9108
9128
|
}, N = (Y) => {
|
|
9109
9129
|
d.current = null, o.current = o.current.filter((M) => M.name !== Y.name), g(o.current, d.current);
|
|
9110
9130
|
}, m = (Y, M) => {
|
|
9111
9131
|
if (!Y || M.length == 0)
|
|
9112
9132
|
return;
|
|
9113
|
-
const
|
|
9114
|
-
if (
|
|
9115
|
-
d.current =
|
|
9133
|
+
const u = ii(o.current, [M[0]], r(), t, a, !0), G = [...o.current];
|
|
9134
|
+
if (u.hasErrors)
|
|
9135
|
+
d.current = u;
|
|
9116
9136
|
else {
|
|
9117
9137
|
d.current = null;
|
|
9118
|
-
const
|
|
9119
|
-
|
|
9138
|
+
const j = G.findIndex((p) => p.name === Y);
|
|
9139
|
+
j >= 0 && G.splice(j, 1, M[0]);
|
|
9120
9140
|
}
|
|
9121
9141
|
o.current = G, g(o.current, d.current);
|
|
9122
9142
|
}, s = (Y) => {
|
|
9123
|
-
const M = Y.currentTarget,
|
|
9124
|
-
E(
|
|
9143
|
+
const M = Y.currentTarget, u = Array.from(M.files ?? []);
|
|
9144
|
+
E(u);
|
|
9125
9145
|
}, R = (Y) => {
|
|
9126
|
-
const M = Y.currentTarget,
|
|
9127
|
-
m(M.dataset.replaceFile ?? "",
|
|
9146
|
+
const M = Y.currentTarget, u = Array.from(M.files ?? []);
|
|
9147
|
+
m(M.dataset.replaceFile ?? "", u);
|
|
9128
9148
|
};
|
|
9129
9149
|
ie(() => {
|
|
9130
9150
|
A && b(A);
|
|
@@ -9133,12 +9153,12 @@ const Ue = (i, t = 10) => {
|
|
|
9133
9153
|
hi(l, a, s).click();
|
|
9134
9154
|
}, D = (Y) => {
|
|
9135
9155
|
N(Y);
|
|
9136
|
-
},
|
|
9156
|
+
}, U = (Y) => {
|
|
9137
9157
|
hi(l, a, R, Y.name).click();
|
|
9138
9158
|
}, h = (Y) => {
|
|
9139
9159
|
E(Y);
|
|
9140
9160
|
};
|
|
9141
|
-
return { files: o.current, onAddFiles: I, onRemoveFile: D, onReplaceFile:
|
|
9161
|
+
return { files: o.current, onAddFiles: I, onRemoveFile: D, onReplaceFile: U, onPasteFiles: h };
|
|
9142
9162
|
}, Ll = ({
|
|
9143
9163
|
label: i,
|
|
9144
9164
|
selectedFilesLabel: t,
|
|
@@ -9158,86 +9178,86 @@ const Ue = (i, t = 10) => {
|
|
|
9158
9178
|
onChange: R,
|
|
9159
9179
|
files: I,
|
|
9160
9180
|
hasError: D,
|
|
9161
|
-
hasFeedback:
|
|
9181
|
+
hasFeedback: U,
|
|
9162
9182
|
feedbackState: h = "info",
|
|
9163
9183
|
feedbackText: Y,
|
|
9164
9184
|
...M
|
|
9165
|
-
},
|
|
9166
|
-
const G = se(),
|
|
9167
|
-
we(
|
|
9168
|
-
const [w, v] = O(i), [
|
|
9169
|
-
if (!
|
|
9170
|
-
|
|
9185
|
+
}, u) => {
|
|
9186
|
+
const G = se(), j = C(null), p = C(null);
|
|
9187
|
+
we(u, () => p.current);
|
|
9188
|
+
const [w, v] = O(i), [y, B] = O([]), F = (V) => {
|
|
9189
|
+
if (!V) {
|
|
9190
|
+
B([]);
|
|
9171
9191
|
return;
|
|
9172
9192
|
}
|
|
9173
9193
|
const H = [];
|
|
9174
|
-
|
|
9194
|
+
V.maxCountExceeded && H.push(g), V.duplicatedFiles.forEach((_) => {
|
|
9175
9195
|
H.push(`${_} - ${N}`);
|
|
9176
|
-
}),
|
|
9196
|
+
}), V.sizeExceededFiles.forEach((_) => {
|
|
9177
9197
|
H.push(`${_} - ${b}`);
|
|
9178
|
-
}),
|
|
9198
|
+
}), V.extensionForbiddenFiles.forEach((_) => {
|
|
9179
9199
|
H.push(`${_} - ${E}`);
|
|
9180
|
-
}),
|
|
9181
|
-
}, T = (
|
|
9182
|
-
if (
|
|
9200
|
+
}), B(H);
|
|
9201
|
+
}, T = (V, H) => {
|
|
9202
|
+
if (V.length > 0 ? v(`${V.length} ${t}`) : v(i), p.current) {
|
|
9183
9203
|
const _ = new DataTransfer();
|
|
9184
|
-
|
|
9204
|
+
V.forEach((P) => {
|
|
9185
9205
|
_.items.add(P);
|
|
9186
9206
|
}), p.current.files = _.files;
|
|
9187
9207
|
const me = Te(p.current, "change");
|
|
9188
9208
|
Ue(() => R == null ? void 0 : R(me));
|
|
9189
9209
|
}
|
|
9190
|
-
|
|
9191
|
-
}, { files: k, onAddFiles:
|
|
9210
|
+
F(H);
|
|
9211
|
+
}, { files: k, onAddFiles: Q, onRemoveFile: K, onReplaceFile: W, onPasteFiles: x } = it(
|
|
9192
9212
|
r,
|
|
9193
9213
|
d,
|
|
9194
9214
|
o ? o.split(",") : [],
|
|
9195
9215
|
!!m,
|
|
9196
9216
|
T,
|
|
9197
9217
|
I
|
|
9198
|
-
), z = de(() => m ? !s && k.length < r : !s && k.length === 0, [s, m, k]), q = (
|
|
9199
|
-
W(
|
|
9200
|
-
}, te = (
|
|
9201
|
-
K(
|
|
9218
|
+
), z = de(() => m ? !s && k.length < r : !s && k.length === 0, [s, m, k]), q = (V) => {
|
|
9219
|
+
W(V);
|
|
9220
|
+
}, te = (V) => {
|
|
9221
|
+
K(V);
|
|
9202
9222
|
};
|
|
9203
9223
|
ie(() => {
|
|
9204
|
-
const
|
|
9205
|
-
if (z &&
|
|
9224
|
+
const V = (H) => {
|
|
9225
|
+
if (z && j.current && j.current === document.activeElement) {
|
|
9206
9226
|
const { clipboardData: _ } = H;
|
|
9207
9227
|
if (_ && _.files.length > 0) {
|
|
9208
9228
|
const me = Array.from(_.files) ?? [];
|
|
9209
|
-
|
|
9229
|
+
x(me);
|
|
9210
9230
|
}
|
|
9211
9231
|
}
|
|
9212
9232
|
};
|
|
9213
|
-
return window.addEventListener("paste",
|
|
9214
|
-
window.removeEventListener("paste",
|
|
9233
|
+
return window.addEventListener("paste", V), () => {
|
|
9234
|
+
window.removeEventListener("paste", V);
|
|
9215
9235
|
};
|
|
9216
9236
|
}, []);
|
|
9217
|
-
const
|
|
9237
|
+
const S = J(
|
|
9218
9238
|
"agora-button-file-uploader",
|
|
9219
9239
|
{ "cannot-upload": !z },
|
|
9220
9240
|
{ "gap-32": k.length > 0 },
|
|
9221
9241
|
M.className
|
|
9222
|
-
), X = J("button-file-uploader-container"),
|
|
9223
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
9242
|
+
), X = J("button-file-uploader-container"), L = J("file-list-container", { "p-16": k.length > 0 });
|
|
9243
|
+
return /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement("input", { ref: p, type: "file", style: { display: "none" } }), /* @__PURE__ */ e.createElement("div", { className: X }, /* @__PURE__ */ e.createElement(
|
|
9224
9244
|
Ne,
|
|
9225
9245
|
{
|
|
9226
|
-
ref:
|
|
9246
|
+
ref: j,
|
|
9227
9247
|
fullWidth: !0,
|
|
9228
9248
|
iconOnly: c(a),
|
|
9229
9249
|
hasIcon: !0,
|
|
9230
9250
|
trailingIcon: "agora-line-upload",
|
|
9231
9251
|
trailingIconHover: "agora-solid-upload",
|
|
9232
|
-
variant:
|
|
9252
|
+
variant: y.length > 0 || c(D) ? "danger" : "neutral",
|
|
9233
9253
|
disabled: !z,
|
|
9234
|
-
onClick: () =>
|
|
9254
|
+
onClick: () => Q()
|
|
9235
9255
|
},
|
|
9236
9256
|
w
|
|
9237
|
-
), /* @__PURE__ */ e.createElement("div", { className: "extension-instructions" }, A),
|
|
9257
|
+
), /* @__PURE__ */ e.createElement("div", { className: "extension-instructions" }, A), y.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "errors-container" }, y.map((V, H) => {
|
|
9238
9258
|
const _ = `error-message-${G}-${H}`;
|
|
9239
|
-
return /* @__PURE__ */ e.createElement(pe, { key: _, feedbackState: "danger", feedbackText:
|
|
9240
|
-
}))), /* @__PURE__ */ e.createElement("div", { className:
|
|
9259
|
+
return /* @__PURE__ */ e.createElement(pe, { key: _, feedbackState: "danger", feedbackText: V });
|
|
9260
|
+
}))), /* @__PURE__ */ e.createElement("div", { className: L }, /* @__PURE__ */ e.createElement(
|
|
9241
9261
|
et,
|
|
9242
9262
|
{
|
|
9243
9263
|
files: k,
|
|
@@ -9246,7 +9266,7 @@ const Ue = (i, t = 10) => {
|
|
|
9246
9266
|
removeFileButtonLabel: l,
|
|
9247
9267
|
replaceFileButtonLabel: n
|
|
9248
9268
|
}
|
|
9249
|
-
)), (c(
|
|
9269
|
+
)), (c(U) || c(D)) && Y && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(D) ? "danger" : h, feedbackText: Y }));
|
|
9250
9270
|
}, gA = re(Ll), Ql = ({
|
|
9251
9271
|
dragAndDropLabel: i,
|
|
9252
9272
|
label: t,
|
|
@@ -9266,16 +9286,16 @@ const Ue = (i, t = 10) => {
|
|
|
9266
9286
|
multiple: R,
|
|
9267
9287
|
disabled: I,
|
|
9268
9288
|
onChange: D,
|
|
9269
|
-
files:
|
|
9289
|
+
files: U,
|
|
9270
9290
|
hasError: h,
|
|
9271
9291
|
hasFeedback: Y,
|
|
9272
9292
|
feedbackState: M = "info",
|
|
9273
|
-
feedbackText:
|
|
9293
|
+
feedbackText: u,
|
|
9274
9294
|
...G
|
|
9275
|
-
},
|
|
9295
|
+
}, j) => {
|
|
9276
9296
|
const p = se(), w = C(null), v = C(null);
|
|
9277
|
-
we(
|
|
9278
|
-
const
|
|
9297
|
+
we(j, () => v.current);
|
|
9298
|
+
const y = C(null), [B, F] = O(t), [T, k] = O(!1), [Q, K] = O([]), W = (oe) => {
|
|
9279
9299
|
if (!oe) {
|
|
9280
9300
|
K([]);
|
|
9281
9301
|
return;
|
|
@@ -9288,8 +9308,8 @@ const Ue = (i, t = 10) => {
|
|
|
9288
9308
|
}), oe.extensionForbiddenFiles.forEach((Re) => {
|
|
9289
9309
|
be.push(`${Re} - ${m}`);
|
|
9290
9310
|
}), K(be);
|
|
9291
|
-
},
|
|
9292
|
-
if (oe.length > 0 ?
|
|
9311
|
+
}, x = (oe, be) => {
|
|
9312
|
+
if (oe.length > 0 ? F(`${oe.length} ${a}`) : F(t), v.current) {
|
|
9293
9313
|
const Re = new DataTransfer();
|
|
9294
9314
|
oe.forEach((ve) => {
|
|
9295
9315
|
Re.items.add(ve);
|
|
@@ -9298,21 +9318,21 @@ const Ue = (i, t = 10) => {
|
|
|
9298
9318
|
Ue(() => D == null ? void 0 : D(je));
|
|
9299
9319
|
}
|
|
9300
9320
|
W(be);
|
|
9301
|
-
}, { files: z, onAddFiles: q, onRemoveFile: te, onReplaceFile:
|
|
9321
|
+
}, { files: z, onAddFiles: q, onRemoveFile: te, onReplaceFile: S, onPasteFiles: X } = it(
|
|
9302
9322
|
b,
|
|
9303
9323
|
g,
|
|
9304
9324
|
r ? r.split(",") : [],
|
|
9305
9325
|
!!R,
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
),
|
|
9309
|
-
|
|
9326
|
+
x,
|
|
9327
|
+
U
|
|
9328
|
+
), L = de(() => R ? !I && z.length < b : !I && z.length === 0, [I, R, z]), V = (oe) => {
|
|
9329
|
+
S(oe);
|
|
9310
9330
|
}, H = (oe) => {
|
|
9311
9331
|
te(oe);
|
|
9312
9332
|
};
|
|
9313
9333
|
ie(() => {
|
|
9314
9334
|
const oe = (be) => {
|
|
9315
|
-
if (
|
|
9335
|
+
if (L && w.current && w.current === document.activeElement) {
|
|
9316
9336
|
const { clipboardData: Re } = be;
|
|
9317
9337
|
if (Re && Re.files.length > 0) {
|
|
9318
9338
|
const je = Array.from(Re.files) ?? [];
|
|
@@ -9325,11 +9345,11 @@ const Ue = (i, t = 10) => {
|
|
|
9325
9345
|
};
|
|
9326
9346
|
}, []);
|
|
9327
9347
|
const _ = (oe) => {
|
|
9328
|
-
|
|
9348
|
+
L && (oe.preventDefault(), oe.stopPropagation(), k(!0), oe.dataTransfer && (oe.dataTransfer.dropEffect = "copy"));
|
|
9329
9349
|
}, me = () => {
|
|
9330
9350
|
k(!1);
|
|
9331
9351
|
}, P = (oe) => {
|
|
9332
|
-
if (
|
|
9352
|
+
if (L && (oe.preventDefault(), oe.stopPropagation(), k(!1), oe.dataTransfer)) {
|
|
9333
9353
|
const be = Array.from(oe.dataTransfer.files ?? []);
|
|
9334
9354
|
X(be);
|
|
9335
9355
|
}
|
|
@@ -9338,17 +9358,17 @@ const Ue = (i, t = 10) => {
|
|
|
9338
9358
|
const oe = (be) => {
|
|
9339
9359
|
w.current && w.current !== be.target && !w.current.contains(be.target) && q();
|
|
9340
9360
|
};
|
|
9341
|
-
return
|
|
9342
|
-
|
|
9361
|
+
return y.current && (y.current.addEventListener("click", oe), y.current.addEventListener("dragover", _), y.current.addEventListener("dragleave", me), y.current.addEventListener("drop", P)), () => {
|
|
9362
|
+
y.current && (y.current.removeEventListener("click", oe), y.current.removeEventListener("dragover", _), y.current.removeEventListener("dragleave", me), y.current.removeEventListener("drop", P));
|
|
9343
9363
|
};
|
|
9344
9364
|
}, []);
|
|
9345
9365
|
const ne = J(
|
|
9346
9366
|
"agora-drag-and-drop-file-uploader",
|
|
9347
|
-
{ "cannot-upload": !
|
|
9348
|
-
{ hasError:
|
|
9367
|
+
{ "cannot-upload": !L },
|
|
9368
|
+
{ hasError: Q.length > 0 || c(h) },
|
|
9349
9369
|
G.className
|
|
9350
9370
|
), Ee = J("drag-and-drop-area", { "drag-over": T });
|
|
9351
|
-
return /* @__PURE__ */ e.createElement("div", { className: ne }, /* @__PURE__ */ e.createElement("input", { ref: v, type: "file", style: { display: "none" } }), /* @__PURE__ */ e.createElement("div", { ref:
|
|
9371
|
+
return /* @__PURE__ */ e.createElement("div", { className: ne }, /* @__PURE__ */ e.createElement("input", { ref: v, type: "file", style: { display: "none" } }), /* @__PURE__ */ e.createElement("div", { ref: y, className: Ee }, /* @__PURE__ */ e.createElement(ae, { className: "upload-icon", name: "agora-line-upload", "aria-hidden": !0 }), (i || n) && /* @__PURE__ */ e.createElement("div", { className: "instructions" }, i && /* @__PURE__ */ e.createElement("div", { className: "drag-and-drop-label" }, i), n && /* @__PURE__ */ e.createElement("div", { className: "extension-instructions" }, n)), A && /* @__PURE__ */ e.createElement("div", { className: "separator-label" }, A), /* @__PURE__ */ e.createElement(
|
|
9352
9372
|
Ne,
|
|
9353
9373
|
{
|
|
9354
9374
|
ref: w,
|
|
@@ -9358,23 +9378,23 @@ const Ue = (i, t = 10) => {
|
|
|
9358
9378
|
trailingIcon: "agora-line-upload",
|
|
9359
9379
|
trailingIconHover: "agora-solid-upload",
|
|
9360
9380
|
variant: "neutral",
|
|
9361
|
-
disabled: !
|
|
9381
|
+
disabled: !L,
|
|
9362
9382
|
onClick: q
|
|
9363
9383
|
},
|
|
9364
|
-
|
|
9365
|
-
),
|
|
9384
|
+
B
|
|
9385
|
+
), Q.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "errors-container" }, Q.map((oe, be) => {
|
|
9366
9386
|
const Re = `error-message-${p}-${be}`;
|
|
9367
9387
|
return /* @__PURE__ */ e.createElement(pe, { key: Re, feedbackState: "danger", feedbackText: oe });
|
|
9368
9388
|
}))), /* @__PURE__ */ e.createElement(
|
|
9369
9389
|
et,
|
|
9370
9390
|
{
|
|
9371
9391
|
files: z,
|
|
9372
|
-
onFileReplace:
|
|
9392
|
+
onFileReplace: V,
|
|
9373
9393
|
onFileRemove: H,
|
|
9374
9394
|
removeFileButtonLabel: o,
|
|
9375
9395
|
replaceFileButtonLabel: d
|
|
9376
9396
|
}
|
|
9377
|
-
), (c(Y) || c(h)) &&
|
|
9397
|
+
), (c(Y) || c(h)) && u && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(h) ? "danger" : M, feedbackText: u }));
|
|
9378
9398
|
}, IA = re(Ql);
|
|
9379
9399
|
export {
|
|
9380
9400
|
Pl as Accordion,
|