@ama-pt/agora-design-system 1.0.1 → 1.0.2
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 +958 -960
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +1 -1
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/types/components/button-group/button-group.d.ts +2 -2
- package/artifacts/dist/types/components/input-email-bar/input-email-bar.d.ts +2 -2
- package/artifacts/dist/types/components/input-search/input-search.d.ts +1 -1
- package/artifacts/dist/types/components/input-search-bar/input-search-bar.d.ts +1 -1
- package/package.json +1 -1
package/artifacts/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e, { lazy as Z, Suspense as Ji, useRef as C, useState as O, useEffect as ie, useImperativeHandle as we, forwardRef as re, useId as se, useCallback as ge, Children as Ge, createRef as vi, cloneElement as Ze, useMemo as de, isValidElement as
|
|
1
|
+
import e, { lazy as Z, Suspense as Ji, useRef as C, useState as O, useEffect as ie, useImperativeHandle as we, forwardRef as re, useId as se, useCallback as ge, Children as Ge, createRef as vi, cloneElement as Ze, useMemo as de, isValidElement as Me, createContext as xe, useContext as Fe, Fragment as Pe, useLayoutEffect as at } from "react";
|
|
2
2
|
import { createPortal as lt } from "react-dom";
|
|
3
3
|
const Xl = {
|
|
4
4
|
content: [],
|
|
@@ -639,12 +639,12 @@ const J = /* @__PURE__ */ nt(At), ct = (i) => {
|
|
|
639
639
|
const a = Si[i];
|
|
640
640
|
return Gi[i] = a, a;
|
|
641
641
|
}, ae = ({ dimensions: i = "m", name: t = "no-icon", onIconLoad: a, onIconError: l, ...n }) => {
|
|
642
|
-
var
|
|
642
|
+
var E;
|
|
643
643
|
const A = J(
|
|
644
644
|
"icon",
|
|
645
645
|
{
|
|
646
646
|
[`icon-${i == null ? void 0 : i.toLowerCase()}`]: i,
|
|
647
|
-
"fill-[var(--color-primary-600)]": !((
|
|
647
|
+
"fill-[var(--color-primary-600)]": !((E = n.className) != null && E.match("fill-"))
|
|
648
648
|
},
|
|
649
649
|
n.className
|
|
650
650
|
), o = () => {
|
|
@@ -654,12 +654,12 @@ const J = /* @__PURE__ */ nt(At), ct = (i) => {
|
|
|
654
654
|
};
|
|
655
655
|
if (t !== "no-icon" && !rt(t))
|
|
656
656
|
return /* @__PURE__ */ e.createElement("img", { ...n, src: t, alt: n.alt, className: A, onLoad: o, onError: d });
|
|
657
|
-
const
|
|
657
|
+
const g = dt(t), b = {
|
|
658
658
|
...n,
|
|
659
659
|
className: A,
|
|
660
660
|
title: n.title ?? n.alt
|
|
661
661
|
};
|
|
662
|
-
return
|
|
662
|
+
return g ? /* @__PURE__ */ e.createElement(Ji, null, /* @__PURE__ */ e.createElement(g, { ...b })) : /* @__PURE__ */ e.createElement(ct, { ...b });
|
|
663
663
|
};
|
|
664
664
|
function Te(i, t) {
|
|
665
665
|
const a = new Event(t, { bubbles: !0 });
|
|
@@ -721,7 +721,7 @@ function Je(i, t, a, l) {
|
|
|
721
721
|
l
|
|
722
722
|
), n;
|
|
723
723
|
}
|
|
724
|
-
const
|
|
724
|
+
const Ue = (i, t = 10) => {
|
|
725
725
|
setTimeout(i, t);
|
|
726
726
|
}, Nt = ({
|
|
727
727
|
children: i,
|
|
@@ -733,12 +733,12 @@ const De = (i, t = 10) => {
|
|
|
733
733
|
expanded: o = !1,
|
|
734
734
|
onExpanded: d,
|
|
735
735
|
onCollapsed: r,
|
|
736
|
-
"aria-label":
|
|
736
|
+
"aria-label": g,
|
|
737
737
|
...b
|
|
738
|
-
},
|
|
739
|
-
const
|
|
738
|
+
}, E) => {
|
|
739
|
+
const N = se(), m = {
|
|
740
740
|
...b,
|
|
741
|
-
id: b.id ??
|
|
741
|
+
id: b.id ?? N,
|
|
742
742
|
children: i,
|
|
743
743
|
hasIcon: t,
|
|
744
744
|
icon: a,
|
|
@@ -755,7 +755,7 @@ const De = (i, t = 10) => {
|
|
|
755
755
|
}, j = () => {
|
|
756
756
|
s ? D() : I();
|
|
757
757
|
}, h = C(null), Y = Je(
|
|
758
|
-
|
|
758
|
+
E,
|
|
759
759
|
h,
|
|
760
760
|
{
|
|
761
761
|
isExpanded: s,
|
|
@@ -763,7 +763,7 @@ const De = (i, t = 10) => {
|
|
|
763
763
|
collapse: D,
|
|
764
764
|
toggle: j
|
|
765
765
|
},
|
|
766
|
-
[
|
|
766
|
+
[m, h, s, I, D, j]
|
|
767
767
|
);
|
|
768
768
|
ie(() => {
|
|
769
769
|
if (s) {
|
|
@@ -780,13 +780,13 @@ const De = (i, t = 10) => {
|
|
|
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
|
-
"aria-label":
|
|
783
|
+
"aria-label": g,
|
|
784
784
|
type: "button",
|
|
785
785
|
onClick: u,
|
|
786
786
|
className: "accordion-header",
|
|
787
787
|
"aria-expanded": s,
|
|
788
|
-
id: `agora-accordion-${
|
|
789
|
-
"aria-controls": `agora-accordion-${
|
|
788
|
+
id: `agora-accordion-${m.id}-control`,
|
|
789
|
+
"aria-controls": `agora-accordion-${m.id}-region`
|
|
790
790
|
},
|
|
791
791
|
c(t) && /* @__PURE__ */ e.createElement(ae, { "aria-hidden": !0, name: a, className: "icon", dimensions: "m" }),
|
|
792
792
|
l && /* @__PURE__ */ e.createElement("span", { className: "title" }, l),
|
|
@@ -795,9 +795,9 @@ const De = (i, t = 10) => {
|
|
|
795
795
|
"div",
|
|
796
796
|
{
|
|
797
797
|
className: U,
|
|
798
|
-
id: `agora-accordion-${
|
|
798
|
+
id: `agora-accordion-${m.id}-region`,
|
|
799
799
|
role: "region",
|
|
800
|
-
"aria-labelledby": `agora-accordion-${
|
|
800
|
+
"aria-labelledby": `agora-accordion-${m.id}-control`
|
|
801
801
|
},
|
|
802
802
|
i
|
|
803
803
|
));
|
|
@@ -805,32 +805,32 @@ const De = (i, t = 10) => {
|
|
|
805
805
|
const A = J("agora-accordion-group", "mt-0 p-0 w-full", i), o = se();
|
|
806
806
|
let d;
|
|
807
807
|
t ? Array.isArray(t) ? d = t : d = [t] : d = [];
|
|
808
|
-
const r = /* @__PURE__ */ new Map(),
|
|
809
|
-
(
|
|
810
|
-
a !== "multiple" && r.forEach((
|
|
808
|
+
const r = /* @__PURE__ */ new Map(), g = ge(
|
|
809
|
+
(E) => {
|
|
810
|
+
a !== "multiple" && r.forEach((N, m) => {
|
|
811
811
|
var s;
|
|
812
|
-
|
|
812
|
+
E.target.id !== m && ((s = N.current) == null || s.collapse());
|
|
813
813
|
});
|
|
814
814
|
},
|
|
815
815
|
[a]
|
|
816
|
-
), b = Ge.map([...d], (
|
|
817
|
-
const
|
|
818
|
-
return r.set(s,
|
|
819
|
-
...
|
|
820
|
-
ref:
|
|
816
|
+
), b = Ge.map([...d], (E, N) => {
|
|
817
|
+
const m = vi(), s = `accordion-group-${o}-accordion-${N}`;
|
|
818
|
+
return r.set(s, m), Ze(E, {
|
|
819
|
+
...E.props,
|
|
820
|
+
ref: m,
|
|
821
821
|
id: s,
|
|
822
|
-
onExpanded:
|
|
822
|
+
onExpanded: g
|
|
823
823
|
});
|
|
824
824
|
});
|
|
825
825
|
return ie(() => {
|
|
826
826
|
if (a !== "multiple") {
|
|
827
|
-
let
|
|
828
|
-
r.forEach((
|
|
827
|
+
let E = "";
|
|
828
|
+
r.forEach((N, m) => {
|
|
829
829
|
var s;
|
|
830
|
-
(s =
|
|
831
|
-
}), r.forEach((
|
|
830
|
+
(s = N.current) != null && s.isExpanded && !E && (E = m);
|
|
831
|
+
}), r.forEach((N, m) => {
|
|
832
832
|
var s;
|
|
833
|
-
|
|
833
|
+
m !== E && ((s = N.current) == null || s.collapse());
|
|
834
834
|
});
|
|
835
835
|
}
|
|
836
836
|
}, [a]), /* @__PURE__ */ e.createElement("div", { className: A, ...l, ref: n }, b);
|
|
@@ -847,33 +847,33 @@ const De = (i, t = 10) => {
|
|
|
847
847
|
leadingIcon: o,
|
|
848
848
|
leadingIconHover: d,
|
|
849
849
|
trailingIcon: r,
|
|
850
|
-
trailingIconHover:
|
|
850
|
+
trailingIconHover: g,
|
|
851
851
|
children: b,
|
|
852
|
-
className:
|
|
853
|
-
inline:
|
|
854
|
-
...
|
|
852
|
+
className: E = "",
|
|
853
|
+
inline: N = !1,
|
|
854
|
+
...m
|
|
855
855
|
}, s) => {
|
|
856
856
|
const R = J(
|
|
857
857
|
"agora-anchor",
|
|
858
858
|
`agora-anchor-${t}-${a}`,
|
|
859
859
|
{ "agora-anchor-full": l },
|
|
860
|
-
{ "inline-flex items-center": !
|
|
861
|
-
{ "justify-center min-h-[44px] min-w-[44px] py-8": !c(
|
|
862
|
-
{ "justify-start": c(
|
|
860
|
+
{ "inline-flex items-center": !m.hidden },
|
|
861
|
+
{ "justify-center min-h-[44px] min-w-[44px] py-8": !c(N) },
|
|
862
|
+
{ "justify-start": c(N) },
|
|
863
863
|
{ "agora-anchor-with-icon": c(n) || c(A) },
|
|
864
864
|
{ "is-icon-only": c(A) },
|
|
865
865
|
{ "dark-mode": c(i) },
|
|
866
|
-
|
|
866
|
+
E
|
|
867
867
|
);
|
|
868
|
-
return /* @__PURE__ */ e.createElement("a", { ...
|
|
868
|
+
return /* @__PURE__ */ e.createElement("a", { ...m, className: R, ref: s }, (n && A && r === "no-trailing" || n && A && o === void 0 && r === void 0 || n && A && o && o === "no-leading" && r === "no-trailing" || n && o && o !== "no-leading") && /* @__PURE__ */ e.createElement(
|
|
869
869
|
Di,
|
|
870
870
|
{
|
|
871
871
|
className: "leading",
|
|
872
872
|
name: o && o !== "no-leading" ? o : "no-icon",
|
|
873
873
|
iconHover: d ?? "no-icon"
|
|
874
874
|
}
|
|
875
|
-
), !A && b && /* @__PURE__ */ e.createElement("span", { className: "children-wrapper" }, b), (n && A && o === "no-leading" && r !== "no-trailing" || n && r && r !== "no-trailing") && /* @__PURE__ */ e.createElement(Di, { className: "trailing", name: r ?? "no-icon", iconHover:
|
|
876
|
-
},
|
|
875
|
+
), !A && b && /* @__PURE__ */ e.createElement("span", { className: "children-wrapper" }, b), (n && A && o === "no-leading" && r !== "no-trailing" || n && r && r !== "no-trailing") && /* @__PURE__ */ e.createElement(Di, { className: "trailing", name: r ?? "no-icon", iconHover: g ?? "no-icon" }));
|
|
876
|
+
}, De = re(bt), _e = "agora-ds-tooltip-change", ti = ({
|
|
877
877
|
hasTitle: i,
|
|
878
878
|
variant: t = "dark",
|
|
879
879
|
position: a = "top",
|
|
@@ -883,11 +883,11 @@ const De = (i, t = 10) => {
|
|
|
883
883
|
children: o,
|
|
884
884
|
...d
|
|
885
885
|
}) => {
|
|
886
|
-
const r = se(),
|
|
886
|
+
const r = se(), g = C(null), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), [I, D] = O(0), j = ge(() => {
|
|
887
887
|
var W;
|
|
888
|
-
if (
|
|
889
|
-
const B = (W =
|
|
890
|
-
B && (
|
|
888
|
+
if (g.current) {
|
|
889
|
+
const B = (W = g.current) == null ? void 0 : W.getBoundingClientRect();
|
|
890
|
+
B && (E(B.top + window.scrollY), m(B.left + window.scrollX), R(B.width), D(B.height));
|
|
891
891
|
}
|
|
892
892
|
}, []), h = de(() => ({ ...d }), [d]);
|
|
893
893
|
h.id = h.id ?? r;
|
|
@@ -912,7 +912,7 @@ const De = (i, t = 10) => {
|
|
|
912
912
|
document.removeEventListener("keydown", w), document.removeEventListener(_e, W);
|
|
913
913
|
};
|
|
914
914
|
}, [h.id]);
|
|
915
|
-
const v = Ge.map(o, (W) =>
|
|
915
|
+
const v = Ge.map(o, (W) => Me(W) ? Ze(W, { ref: g, onMouseEnter: (y) => {
|
|
916
916
|
var X, x;
|
|
917
917
|
j(), u(), (x = (X = W.props).onMouseEnter) == null || x.call(X, y);
|
|
918
918
|
}, onMouseLeave: (y) => {
|
|
@@ -1026,7 +1026,7 @@ const De = (i, t = 10) => {
|
|
|
1026
1026
|
className: Y,
|
|
1027
1027
|
style: {
|
|
1028
1028
|
top: `${b}px`,
|
|
1029
|
-
left: `${
|
|
1029
|
+
left: `${N}px`
|
|
1030
1030
|
}
|
|
1031
1031
|
},
|
|
1032
1032
|
/* @__PURE__ */ e.createElement("div", { className: "relative w-full h-full" }, /* @__PURE__ */ e.createElement(
|
|
@@ -1042,7 +1042,7 @@ const De = (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,
|
|
1045
|
+
), [M, A, i, n, h, k, b, N]), K = de(() => U ? lt(V, document.body) : null, [U, V]);
|
|
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);
|
|
@@ -1075,45 +1075,45 @@ const De = (i, t = 10) => {
|
|
|
1075
1075
|
leadingIcon: o,
|
|
1076
1076
|
leadingIconHover: d,
|
|
1077
1077
|
trailingIcon: r,
|
|
1078
|
-
trailingIconHover:
|
|
1078
|
+
trailingIconHover: g,
|
|
1079
1079
|
children: b,
|
|
1080
|
-
className:
|
|
1081
|
-
...
|
|
1082
|
-
},
|
|
1080
|
+
className: E = "",
|
|
1081
|
+
...N
|
|
1082
|
+
}, m) => {
|
|
1083
1083
|
const [s, R] = O(!1), I = C(null);
|
|
1084
|
-
we(
|
|
1084
|
+
we(m, () => I.current);
|
|
1085
1085
|
const D = J(
|
|
1086
|
-
{ "flex items-center justify-center": !
|
|
1086
|
+
{ "flex items-center justify-center": !N.hidden },
|
|
1087
1087
|
`agora-btn ${l ? "agora-btn-full" : ""} agora-btn-${t}-${a}`,
|
|
1088
1088
|
{
|
|
1089
1089
|
"agora-btn-with-icon": c(n) || c(A),
|
|
1090
1090
|
"is-icon-only": c(A)
|
|
1091
1091
|
},
|
|
1092
|
-
{ selected: c(
|
|
1092
|
+
{ selected: c(N.selected) },
|
|
1093
1093
|
{ darkMode: c(i) },
|
|
1094
|
-
|
|
1094
|
+
E
|
|
1095
1095
|
), j = (p) => {
|
|
1096
1096
|
var w, v;
|
|
1097
|
-
(p.code === "Enter" || p.code === "NumpadEnter" || p.code === "Space") && ((w = I.current) == null || w.classList.add("active")), (v =
|
|
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
1099
|
var w, v, S, F;
|
|
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"), (S = I.current) == null || S.click()), (F =
|
|
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"), (S = I.current) == null || S.click()), (F = N.onKeyUp) == null || F.call(N, p);
|
|
1101
1101
|
}, Y = (p) => {
|
|
1102
1102
|
var w, v;
|
|
1103
|
-
(w = I.current) == null || w.classList.remove("active"), R(!1), (v =
|
|
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
|
-
R(!0), (w =
|
|
1106
|
+
R(!0), (w = N.onMouseEnter) == null || w.call(N, p);
|
|
1107
1107
|
}, U = (p) => {
|
|
1108
1108
|
var w, v;
|
|
1109
|
-
p.preventDefault(), (w = I.current) == null || w.classList.add("active"), (v =
|
|
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
|
-
p.preventDefault(), (w = I.current) == null || w.classList.remove("active"), (v =
|
|
1112
|
+
p.preventDefault(), (w = I.current) == null || w.classList.remove("active"), (v = N.onMouseUp) == null || v.call(N, p);
|
|
1113
1113
|
}, u = (p) => {
|
|
1114
1114
|
var v, S, F, L;
|
|
1115
1115
|
if (p.detail > 0) {
|
|
1116
|
-
(v =
|
|
1116
|
+
(v = N.onClick) == null || v.call(N, p);
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
const w = ((S = I.current) == null ? void 0 : S.getAttribute("data-custom-triggered-click")) === "true";
|
|
@@ -1121,14 +1121,14 @@ const De = (i, t = 10) => {
|
|
|
1121
1121
|
p.preventDefault();
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
|
-
(L =
|
|
1124
|
+
(L = N.onClick) == null || L.call(N, p);
|
|
1125
1125
|
};
|
|
1126
1126
|
return /* @__PURE__ */ e.createElement(
|
|
1127
1127
|
"button",
|
|
1128
1128
|
{
|
|
1129
1129
|
type: "button",
|
|
1130
1130
|
className: D,
|
|
1131
|
-
...
|
|
1131
|
+
...N,
|
|
1132
1132
|
ref: I,
|
|
1133
1133
|
onClick: u,
|
|
1134
1134
|
onKeyDown: j,
|
|
@@ -1153,7 +1153,7 @@ const De = (i, t = 10) => {
|
|
|
1153
1153
|
{
|
|
1154
1154
|
className: "trailing",
|
|
1155
1155
|
name: r ?? "no-icon",
|
|
1156
|
-
iconHover:
|
|
1156
|
+
iconHover: g ?? "no-icon",
|
|
1157
1157
|
showIconHover: s
|
|
1158
1158
|
}
|
|
1159
1159
|
)
|
|
@@ -1168,12 +1168,12 @@ const De = (i, t = 10) => {
|
|
|
1168
1168
|
"aria-current": o,
|
|
1169
1169
|
"aria-label": d,
|
|
1170
1170
|
role: r,
|
|
1171
|
-
...
|
|
1171
|
+
...g
|
|
1172
1172
|
}, b) => {
|
|
1173
|
-
const
|
|
1173
|
+
const E = () => {
|
|
1174
1174
|
t == null || t();
|
|
1175
1175
|
};
|
|
1176
|
-
return /* @__PURE__ */ e.createElement("div", { ref: b, ...
|
|
1176
|
+
return /* @__PURE__ */ e.createElement("div", { ref: b, ...g, className: i }, /* @__PURE__ */ e.createElement(
|
|
1177
1177
|
Ne,
|
|
1178
1178
|
{
|
|
1179
1179
|
...n !== void 0 ? { "aria-haspopup": n } : {},
|
|
@@ -1183,7 +1183,7 @@ const De = (i, t = 10) => {
|
|
|
1183
1183
|
"aria-label": l ?? d,
|
|
1184
1184
|
type: "button",
|
|
1185
1185
|
className: i,
|
|
1186
|
-
onClick:
|
|
1186
|
+
onClick: E
|
|
1187
1187
|
},
|
|
1188
1188
|
a
|
|
1189
1189
|
));
|
|
@@ -1197,13 +1197,13 @@ const De = (i, t = 10) => {
|
|
|
1197
1197
|
badgeVariant: o = "primary",
|
|
1198
1198
|
tooltipPosition: d = "bottom",
|
|
1199
1199
|
tooltipAlignment: r = "center",
|
|
1200
|
-
interactive:
|
|
1200
|
+
interactive: g,
|
|
1201
1201
|
darkMode: b,
|
|
1202
|
-
onActivate:
|
|
1203
|
-
...
|
|
1202
|
+
onActivate: E,
|
|
1203
|
+
...N
|
|
1204
1204
|
}) => {
|
|
1205
|
-
const
|
|
1206
|
-
interactive:
|
|
1205
|
+
const m = J("agora-avatar", i, {
|
|
1206
|
+
interactive: g,
|
|
1207
1207
|
"dark-mode": c(b)
|
|
1208
1208
|
}), s = de(() => {
|
|
1209
1209
|
const I = J(`avatar avatar-${a ? t : "icon"}`), D = J(i, {
|
|
@@ -1211,7 +1211,7 @@ const De = (i, t = 10) => {
|
|
|
1211
1211
|
});
|
|
1212
1212
|
return t === "initials" && a && a.trim().length !== 0 ? /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: I }, a.slice(0, 2)), c(l) && /* @__PURE__ */ e.createElement("div", { className: D })) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(ae, { name: a, className: I, "aria-hidden": !0 }), c(l) && /* @__PURE__ */ e.createElement("div", { className: D }));
|
|
1213
1213
|
}, [i, t, a, l, o, A]);
|
|
1214
|
-
return c(
|
|
1214
|
+
return c(g) ? /* @__PURE__ */ e.createElement(
|
|
1215
1215
|
ti,
|
|
1216
1216
|
{
|
|
1217
1217
|
alignment: r,
|
|
@@ -1220,7 +1220,7 @@ const De = (i, t = 10) => {
|
|
|
1220
1220
|
position: d,
|
|
1221
1221
|
variant: c(b) ? "dark" : "light"
|
|
1222
1222
|
},
|
|
1223
|
-
/* @__PURE__ */ e.createElement(It, { ...
|
|
1223
|
+
/* @__PURE__ */ e.createElement(It, { ...N, className: m, onActivate: E }, s)
|
|
1224
1224
|
) : /* @__PURE__ */ e.createElement(
|
|
1225
1225
|
ti,
|
|
1226
1226
|
{
|
|
@@ -1230,23 +1230,23 @@ const De = (i, t = 10) => {
|
|
|
1230
1230
|
position: "bottom",
|
|
1231
1231
|
variant: c(b) ? "dark" : "light"
|
|
1232
1232
|
},
|
|
1233
|
-
/* @__PURE__ */ e.createElement(Zt, { ...
|
|
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,
|
|
1237
|
-
|
|
1236
|
+
const l = Oe(), n = l.visibility, A = l.applyFilter, o = l.hide, d = l.next, [r, g] = O(""), b = st(A, i), E = (j) => {
|
|
1237
|
+
g(j.target.value ?? "");
|
|
1238
1238
|
};
|
|
1239
1239
|
ie(() => {
|
|
1240
1240
|
b.setArgs(r);
|
|
1241
1241
|
}, [r, b]);
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1244
|
-
},
|
|
1242
|
+
const N = () => {
|
|
1243
|
+
g("");
|
|
1244
|
+
}, m = C(null), s = C(null);
|
|
1245
1245
|
we(
|
|
1246
1246
|
a,
|
|
1247
1247
|
() => ({
|
|
1248
1248
|
current: s.current,
|
|
1249
|
-
resetFilter:
|
|
1249
|
+
resetFilter: N
|
|
1250
1250
|
}),
|
|
1251
1251
|
[s]
|
|
1252
1252
|
);
|
|
@@ -1265,7 +1265,7 @@ const De = (i, t = 10) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
}, D = (j) => {
|
|
1267
1267
|
var h;
|
|
1268
|
-
j.preventDefault(), (h =
|
|
1268
|
+
j.preventDefault(), (h = m.current) == null || h.focus();
|
|
1269
1269
|
};
|
|
1270
1270
|
return ie(() => {
|
|
1271
1271
|
if (s.current && n) {
|
|
@@ -1275,12 +1275,12 @@ const De = (i, t = 10) => {
|
|
|
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",
|
|
1277
1277
|
{
|
|
1278
|
-
ref:
|
|
1278
|
+
ref: m,
|
|
1279
1279
|
...t,
|
|
1280
1280
|
className: "input-filter",
|
|
1281
1281
|
type: "text",
|
|
1282
1282
|
value: r,
|
|
1283
|
-
onChange:
|
|
1283
|
+
onChange: E,
|
|
1284
1284
|
onKeyDownCapture: R,
|
|
1285
1285
|
onKeyDown: I
|
|
1286
1286
|
}
|
|
@@ -1295,8 +1295,8 @@ const De = (i, t = 10) => {
|
|
|
1295
1295
|
icon: t,
|
|
1296
1296
|
hasIcon: a,
|
|
1297
1297
|
children: l
|
|
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:
|
|
1299
|
-
const
|
|
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, j = R.last, h = R.first, Y = R.next, M = R.prev, U = R.type, G = R.hide, u = J(
|
|
1300
1300
|
"agora-dropdown-option",
|
|
1301
1301
|
i,
|
|
1302
1302
|
{ [U]: U },
|
|
@@ -1308,7 +1308,7 @@ const De = (i, t = 10) => {
|
|
|
1308
1308
|
"trailing-icon": c(n) && o === "trailing"
|
|
1309
1309
|
}
|
|
1310
1310
|
), p = () => {
|
|
1311
|
-
const k = D.find((V) => V.value ===
|
|
1311
|
+
const k = D.find((V) => V.value === g && V.name === r);
|
|
1312
1312
|
k && I(k);
|
|
1313
1313
|
}, w = (k) => {
|
|
1314
1314
|
const V = k.code;
|
|
@@ -1348,7 +1348,7 @@ const De = (i, t = 10) => {
|
|
|
1348
1348
|
return /* @__PURE__ */ e.createElement(
|
|
1349
1349
|
"li",
|
|
1350
1350
|
{
|
|
1351
|
-
ref:
|
|
1351
|
+
ref: E,
|
|
1352
1352
|
className: u,
|
|
1353
1353
|
role: "option",
|
|
1354
1354
|
tabIndex: t ? -1 : 0,
|
|
@@ -1362,40 +1362,40 @@ const De = (i, t = 10) => {
|
|
|
1362
1362
|
onMouseLeave: T,
|
|
1363
1363
|
"data-section-option-id": b
|
|
1364
1364
|
},
|
|
1365
|
-
/* @__PURE__ */ e.createElement(Yt, { type: U, hasIcon: c(n), icon:
|
|
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
|
-
const n = Oe(), A = n.options, o = n.type, d = n.visibility, r = de(() => /* @__PURE__ */ new Map(), []),
|
|
1369
|
-
const s = `${t}-${o}-${
|
|
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) => {
|
|
1369
|
+
const s = `${t}-${o}-${m.value}`, R = J(m.className, {
|
|
1370
1370
|
"no-section-name": o !== "checkbox" && l
|
|
1371
1371
|
}), I = vi();
|
|
1372
|
-
return r.set(s, I), /* @__PURE__ */ e.createElement(Ut, { ...
|
|
1372
|
+
return r.set(s, I), /* @__PURE__ */ e.createElement(Ut, { ...m, key: s, sectionOptionId: s, ref: I, className: R });
|
|
1373
1373
|
}), [A, r, t, o, t]);
|
|
1374
1374
|
ie(() => {
|
|
1375
|
-
if (d && (r.forEach((
|
|
1376
|
-
if (
|
|
1377
|
-
const s =
|
|
1378
|
-
|
|
1375
|
+
if (d && (r.forEach((m) => {
|
|
1376
|
+
if (m.current) {
|
|
1377
|
+
const s = m.current.getBoundingClientRect().height;
|
|
1378
|
+
m.current.setAttribute("data-section-option-height", `${s}`);
|
|
1379
1379
|
}
|
|
1380
|
-
}),
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1380
|
+
}), g.current)) {
|
|
1381
|
+
const m = g.current.getBoundingClientRect().height;
|
|
1382
|
+
g.current.setAttribute("data-section-name-height", `${m}`);
|
|
1383
1383
|
}
|
|
1384
1384
|
}, [d, o, r]);
|
|
1385
|
-
const
|
|
1386
|
-
return /* @__PURE__ */ e.createElement("ul", { className: b, role: "group", ...
|
|
1385
|
+
const N = !c(l);
|
|
1386
|
+
return /* @__PURE__ */ e.createElement("ul", { className: b, role: "group", ...N ? { "aria-labelledby": t } : {} }, N && /* @__PURE__ */ e.createElement("li", { ref: g, className: "section-name", id: t, role: "presentation" }, a), E);
|
|
1387
1387
|
}, wt = ({ label: i }) => {
|
|
1388
|
-
const t = C(null), a = Oe(), l = a.visibility, n = a.isAllDisabled, A = a.isAllSelected, o = a.selectAll, d = a.last, r = a.first,
|
|
1388
|
+
const t = C(null), a = Oe(), l = a.visibility, n = a.isAllDisabled, A = a.isAllSelected, o = a.selectAll, d = a.last, r = a.first, g = a.next, b = a.prev, E = a.hide, N = (s) => {
|
|
1389
1389
|
const { code: R } = s;
|
|
1390
1390
|
switch (R) {
|
|
1391
1391
|
case "Escape":
|
|
1392
|
-
|
|
1392
|
+
E();
|
|
1393
1393
|
break;
|
|
1394
1394
|
case "ArrowUp":
|
|
1395
1395
|
b();
|
|
1396
1396
|
break;
|
|
1397
1397
|
case "ArrowDown":
|
|
1398
|
-
|
|
1398
|
+
g();
|
|
1399
1399
|
break;
|
|
1400
1400
|
case "Home":
|
|
1401
1401
|
r();
|
|
@@ -1411,7 +1411,7 @@ const De = (i, t = 10) => {
|
|
|
1411
1411
|
o();
|
|
1412
1412
|
break;
|
|
1413
1413
|
}
|
|
1414
|
-
},
|
|
1414
|
+
}, m = () => {
|
|
1415
1415
|
o();
|
|
1416
1416
|
};
|
|
1417
1417
|
return ie(() => {
|
|
@@ -1421,7 +1421,7 @@ const De = (i, t = 10) => {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
}, [l]), ie(() => {
|
|
1423
1423
|
const s = (R) => {
|
|
1424
|
-
R.code === "Tab" && (R.stopPropagation(), R.preventDefault(),
|
|
1424
|
+
R.code === "Tab" && (R.stopPropagation(), R.preventDefault(), E());
|
|
1425
1425
|
};
|
|
1426
1426
|
return t.current && t.current.addEventListener("keydown", s, !0), () => {
|
|
1427
1427
|
t.current && t.current.removeEventListener("keydown", s, !0);
|
|
@@ -1434,8 +1434,8 @@ const De = (i, t = 10) => {
|
|
|
1434
1434
|
role: "checkbox",
|
|
1435
1435
|
"aria-checked": A,
|
|
1436
1436
|
"aria-disabled": n,
|
|
1437
|
-
onKeyDown:
|
|
1438
|
-
onClick:
|
|
1437
|
+
onKeyDown: N,
|
|
1438
|
+
onClick: m
|
|
1439
1439
|
},
|
|
1440
1440
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-line-check", "aria-hidden": !0 }),
|
|
1441
1441
|
/* @__PURE__ */ e.createElement("span", null, i)
|
|
@@ -1449,7 +1449,7 @@ const De = (i, t = 10) => {
|
|
|
1449
1449
|
noSearchResults: A = "",
|
|
1450
1450
|
...o
|
|
1451
1451
|
}, d) => {
|
|
1452
|
-
const r = Oe(),
|
|
1452
|
+
const r = Oe(), g = r.visibility, b = r.activeFilter, E = r.sections, N = r.options, m = r.type, s = C(null), R = ge(() => {
|
|
1453
1453
|
l && s.current && s.current.resetFilter();
|
|
1454
1454
|
}, [l]), I = C(null);
|
|
1455
1455
|
Je(d, I, { resetFilter: R }, [R]);
|
|
@@ -1465,7 +1465,7 @@ const De = (i, t = 10) => {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
return 0;
|
|
1467
1467
|
}, [l]), U = ge(() => {
|
|
1468
|
-
if (I.current &&
|
|
1468
|
+
if (I.current && m === "checkbox") {
|
|
1469
1469
|
const k = I.current.querySelectorAll(".agora-dropdown-all-option")[0] ?? null;
|
|
1470
1470
|
if (k) {
|
|
1471
1471
|
const V = k.getAttribute("data-select-all-section-height");
|
|
@@ -1473,7 +1473,7 @@ const De = (i, t = 10) => {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
1475
1475
|
return 0;
|
|
1476
|
-
}, [
|
|
1476
|
+
}, [m]), G = ge((T) => {
|
|
1477
1477
|
let k = 0;
|
|
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");
|
|
@@ -1486,7 +1486,7 @@ const De = (i, t = 10) => {
|
|
|
1486
1486
|
(T) => {
|
|
1487
1487
|
let k = 0;
|
|
1488
1488
|
if (I.current) {
|
|
1489
|
-
const V = T.map((W) => `${W.name}-${
|
|
1489
|
+
const V = T.map((W) => `${W.name}-${m}-${W.value}`);
|
|
1490
1490
|
I.current.querySelectorAll(".agora-dropdown-section .agora-dropdown-option").forEach((W) => {
|
|
1491
1491
|
const B = W.getAttribute("data-section-option-id");
|
|
1492
1492
|
if (B && V.includes(B)) {
|
|
@@ -1497,7 +1497,7 @@ const De = (i, t = 10) => {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
return k;
|
|
1499
1499
|
},
|
|
1500
|
-
[
|
|
1500
|
+
[m]
|
|
1501
1501
|
), p = ge(() => {
|
|
1502
1502
|
if (!I.current)
|
|
1503
1503
|
return 0;
|
|
@@ -1509,8 +1509,8 @@ const De = (i, t = 10) => {
|
|
|
1509
1509
|
return 0;
|
|
1510
1510
|
}, [I]);
|
|
1511
1511
|
ie(() => {
|
|
1512
|
-
if (
|
|
1513
|
-
const T =
|
|
1512
|
+
if (g) {
|
|
1513
|
+
const T = N.filter((k) => !k.filtered);
|
|
1514
1514
|
if (T.length > n) {
|
|
1515
1515
|
const k = T.slice(0, n), V = [...new Set(k.map((W) => W.name ?? "").filter((W) => !!W))];
|
|
1516
1516
|
let K = 0;
|
|
@@ -1519,10 +1519,10 @@ const De = (i, t = 10) => {
|
|
|
1519
1519
|
j("none");
|
|
1520
1520
|
}
|
|
1521
1521
|
}, [
|
|
1522
|
-
|
|
1523
|
-
N,
|
|
1524
|
-
b,
|
|
1522
|
+
g,
|
|
1525
1523
|
m,
|
|
1524
|
+
b,
|
|
1525
|
+
N,
|
|
1526
1526
|
n,
|
|
1527
1527
|
M,
|
|
1528
1528
|
U,
|
|
@@ -1530,10 +1530,10 @@ const De = (i, t = 10) => {
|
|
|
1530
1530
|
u,
|
|
1531
1531
|
p
|
|
1532
1532
|
]);
|
|
1533
|
-
const w = J("agora-dropdown", Y.className, { visible:
|
|
1534
|
-
const T =
|
|
1533
|
+
const w = J("agora-dropdown", Y.className, { visible: g }), v = de(() => N.length > 0, [N]), S = de(() => N.some((T) => !T.filtered), [N]), F = de(() => {
|
|
1534
|
+
const T = N.filter((k) => !k.filtered);
|
|
1535
1535
|
return S && T.findIndex((k) => !k.disabled) === -1;
|
|
1536
|
-
}, [S,
|
|
1536
|
+
}, [S, N]), L = de(() => N.filter((T) => !T.filtered).map((T) => T.name), [N]);
|
|
1537
1537
|
return /* @__PURE__ */ e.createElement(
|
|
1538
1538
|
"div",
|
|
1539
1539
|
{
|
|
@@ -1544,13 +1544,13 @@ const De = (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 }),
|
|
1547
|
+
/* @__PURE__ */ e.createElement("div", { ...Y, role: "listbox" }, l && /* @__PURE__ */ e.createElement(Mt, { ref: s, "aria-label": a, placeholder: t }), m === "checkbox" && S && !F && i && /* @__PURE__ */ e.createElement(wt, { label: i }), S && E.filter((T) => L.indexOf(T.name) >= 0).map((T, k) => {
|
|
1548
1548
|
const V = `agora-dropdown-option-${Y.id}-${k}`;
|
|
1549
1549
|
return /* @__PURE__ */ e.createElement(jt, { key: V, ...T });
|
|
1550
1550
|
}), (!v || !S) && /* @__PURE__ */ e.createElement(pt, { label: A }))
|
|
1551
1551
|
);
|
|
1552
1552
|
}, Jt = re(ht), vt = (i, t, a, l, n, A, o, d) => {
|
|
1553
|
-
const [r,
|
|
1553
|
+
const [r, g] = O([]), [b, E] = O([]);
|
|
1554
1554
|
ie(() => {
|
|
1555
1555
|
const W = [], B = [];
|
|
1556
1556
|
d && (Array.isArray(d) ? Ge.forEach(d, (z) => {
|
|
@@ -1568,10 +1568,10 @@ const De = (i, t = 10) => {
|
|
|
1568
1568
|
name: z.name
|
|
1569
1569
|
});
|
|
1570
1570
|
});
|
|
1571
|
-
}),
|
|
1571
|
+
}), g(W), E(B);
|
|
1572
1572
|
}, [d, t, l]);
|
|
1573
|
-
const [
|
|
1574
|
-
|
|
1573
|
+
const [N, m] = O(""), s = (W) => {
|
|
1574
|
+
m((B) => B === W ? B : (E((z) => {
|
|
1575
1575
|
const q = z.map((te) => {
|
|
1576
1576
|
var Q;
|
|
1577
1577
|
if (W === "")
|
|
@@ -1652,12 +1652,12 @@ const De = (i, t = 10) => {
|
|
|
1652
1652
|
iconPosition: z.iconPosition,
|
|
1653
1653
|
children: z.children
|
|
1654
1654
|
}));
|
|
1655
|
-
t === "text" && B.length > 0 && u(),
|
|
1655
|
+
t === "text" && B.length > 0 && u(), Ue(() => l == null ? void 0 : l(B));
|
|
1656
1656
|
},
|
|
1657
1657
|
[l, u, t]
|
|
1658
1658
|
), v = de(() => t === "checkbox", [t]), S = ge(
|
|
1659
1659
|
(W) => {
|
|
1660
|
-
W.disabled || W.filtered ||
|
|
1660
|
+
W.disabled || W.filtered || E((B) => {
|
|
1661
1661
|
const z = B.map((q) => {
|
|
1662
1662
|
const te = W.name === q.name && W.value === q.value;
|
|
1663
1663
|
return v ? {
|
|
@@ -1671,7 +1671,7 @@ const De = (i, t = 10) => {
|
|
|
1671
1671
|
return w(z), z;
|
|
1672
1672
|
});
|
|
1673
1673
|
},
|
|
1674
|
-
[
|
|
1674
|
+
[E, v, w]
|
|
1675
1675
|
), F = ge(
|
|
1676
1676
|
(W) => {
|
|
1677
1677
|
const B = b.filter((q) => q.name === W && !q.filtered && !q.disabled), z = B.some((q) => !q.selected);
|
|
@@ -1680,7 +1680,7 @@ const De = (i, t = 10) => {
|
|
|
1680
1680
|
[b]
|
|
1681
1681
|
), L = ge(
|
|
1682
1682
|
(W) => {
|
|
1683
|
-
|
|
1683
|
+
E((B) => {
|
|
1684
1684
|
const z = F(W), q = B.map((te) => {
|
|
1685
1685
|
const y = W === te.name;
|
|
1686
1686
|
return {
|
|
@@ -1691,7 +1691,7 @@ const De = (i, t = 10) => {
|
|
|
1691
1691
|
return w(q), q;
|
|
1692
1692
|
});
|
|
1693
1693
|
},
|
|
1694
|
-
[
|
|
1694
|
+
[E, F, w]
|
|
1695
1695
|
), T = ge(
|
|
1696
1696
|
(W) => b.filter((z) => z.name === W && !z.filtered && !z.disabled).length > 0,
|
|
1697
1697
|
[b]
|
|
@@ -1702,14 +1702,14 @@ const De = (i, t = 10) => {
|
|
|
1702
1702
|
const W = b.filter((z) => !z.filtered), B = W.some((z) => !z.disabled);
|
|
1703
1703
|
return W.length > 0 && !B;
|
|
1704
1704
|
}, [b]), K = ge(() => {
|
|
1705
|
-
|
|
1705
|
+
E((W) => {
|
|
1706
1706
|
const B = W.map((z) => ({
|
|
1707
1707
|
...z,
|
|
1708
1708
|
selected: !z.filtered && !z.disabled ? !k : z.selected
|
|
1709
1709
|
}));
|
|
1710
1710
|
return w(B), B;
|
|
1711
1711
|
});
|
|
1712
|
-
}, [
|
|
1712
|
+
}, [E, k, w]);
|
|
1713
1713
|
return {
|
|
1714
1714
|
type: t,
|
|
1715
1715
|
sections: r,
|
|
@@ -1729,12 +1729,12 @@ const De = (i, t = 10) => {
|
|
|
1729
1729
|
isAllSelected: k,
|
|
1730
1730
|
selectAll: K,
|
|
1731
1731
|
applyFilter: s,
|
|
1732
|
-
activeFilter:
|
|
1732
|
+
activeFilter: N,
|
|
1733
1733
|
resetFilter: R
|
|
1734
1734
|
};
|
|
1735
1735
|
}, yt = ({ type: i = "text", onChange: t, onSearchChange: a, onShow: l, onHide: n, children: A, hideSectionNames: o = !1, ...d }, r) => {
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1736
|
+
const g = C(null), b = vt(
|
|
1737
|
+
g,
|
|
1738
1738
|
i,
|
|
1739
1739
|
c(o),
|
|
1740
1740
|
t,
|
|
@@ -1742,20 +1742,20 @@ const De = (i, t = 10) => {
|
|
|
1742
1742
|
l,
|
|
1743
1743
|
n,
|
|
1744
1744
|
A
|
|
1745
|
-
),
|
|
1745
|
+
), E = C(!1);
|
|
1746
1746
|
return ie(() => {
|
|
1747
|
-
if (!
|
|
1748
|
-
|
|
1749
|
-
const
|
|
1750
|
-
Ge.forEach(A, (
|
|
1751
|
-
|
|
1752
|
-
|
|
1747
|
+
if (!E.current) {
|
|
1748
|
+
E.current = !0;
|
|
1749
|
+
const N = [];
|
|
1750
|
+
Ge.forEach(A, (m) => {
|
|
1751
|
+
Me(m) && Ge.forEach(m.props.children, (s) => {
|
|
1752
|
+
Me(s) && s.props.selected && N.push(s.props);
|
|
1753
1753
|
});
|
|
1754
|
-
}),
|
|
1754
|
+
}), Ue(() => t == null ? void 0 : t(N));
|
|
1755
1755
|
}
|
|
1756
1756
|
}, []), Je(
|
|
1757
1757
|
r,
|
|
1758
|
-
|
|
1758
|
+
g,
|
|
1759
1759
|
{
|
|
1760
1760
|
visibility: b.visibility,
|
|
1761
1761
|
show: b.show,
|
|
@@ -1764,20 +1764,20 @@ const De = (i, t = 10) => {
|
|
|
1764
1764
|
last: b.last
|
|
1765
1765
|
},
|
|
1766
1766
|
[b.hide, b.show, b.first, b.last, b.visibility]
|
|
1767
|
-
), /* @__PURE__ */ e.createElement(Wi.Provider, { value: b }, /* @__PURE__ */ e.createElement(Jt, { ...d, ref:
|
|
1767
|
+
), /* @__PURE__ */ e.createElement(Wi.Provider, { value: b }, /* @__PURE__ */ e.createElement(Jt, { ...d, ref: g }, A));
|
|
1768
1768
|
}, Ke = re(yt), ci = () => /* @__PURE__ */ e.createElement(e.Fragment, null), oi = () => /* @__PURE__ */ e.createElement(e.Fragment, null), St = ({
|
|
1769
1769
|
avatarCount: i,
|
|
1770
1770
|
visibleCount: t,
|
|
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, j) => j >= t &&
|
|
1774
|
+
const n = se(), A = t >= 0 ? `+${i - t}` : `+${i}`, o = Ge.map(l, (D, j) => j >= 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
1781
|
var D, j, h;
|
|
1782
1782
|
(D = d.current) != null && D.visibility ? (j = d.current) == null || j.hide() : (h = d.current) == null || h.show();
|
|
1783
1783
|
}, s = C(null), R = () => {
|
|
@@ -1794,9 +1794,9 @@ const De = (i, t = 10) => {
|
|
|
1794
1794
|
{
|
|
1795
1795
|
ref: r,
|
|
1796
1796
|
className: "avatar-visible-count",
|
|
1797
|
-
onClick:
|
|
1797
|
+
onClick: m,
|
|
1798
1798
|
role: "combobox",
|
|
1799
|
-
"aria-expanded":
|
|
1799
|
+
"aria-expanded": g,
|
|
1800
1800
|
"aria-controls": `${n}-dropdown-avatar-group-container`,
|
|
1801
1801
|
"aria-label": A
|
|
1802
1802
|
},
|
|
@@ -1806,8 +1806,8 @@ const De = (i, t = 10) => {
|
|
|
1806
1806
|
{
|
|
1807
1807
|
id: `${n}-dropdown-avatar-group-container`,
|
|
1808
1808
|
ref: d,
|
|
1809
|
-
onHide:
|
|
1810
|
-
onShow:
|
|
1809
|
+
onHide: E,
|
|
1810
|
+
onShow: N,
|
|
1811
1811
|
type: "text",
|
|
1812
1812
|
hideSectionNames: !0
|
|
1813
1813
|
},
|
|
@@ -1837,10 +1837,10 @@ const De = (i, t = 10) => {
|
|
|
1837
1837
|
}) => {
|
|
1838
1838
|
const o = J("avatar-group", i, {
|
|
1839
1839
|
"dark-mode": c(l)
|
|
1840
|
-
}), d = Ge.toArray(t).length, r = a ?? d,
|
|
1840
|
+
}), d = Ge.toArray(t).length, r = a ?? d, g = (b) => /* @__PURE__ */ e.createElement("li", null, Ze(b, {
|
|
1841
1841
|
darkMode: l
|
|
1842
1842
|
}));
|
|
1843
|
-
return /* @__PURE__ */ e.createElement("ul", { ...A, className: o }, Ge.map(t, (b,
|
|
1843
|
+
return /* @__PURE__ */ e.createElement("ul", { ...A, className: o }, Ge.map(t, (b, E) => E < r && Me(b) ? g(b) : null), d > r && /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
|
|
1844
1844
|
St,
|
|
1845
1845
|
{
|
|
1846
1846
|
visibleCount: r,
|
|
@@ -1858,9 +1858,9 @@ const De = (i, t = 10) => {
|
|
|
1858
1858
|
tooltipDescription: A,
|
|
1859
1859
|
...o
|
|
1860
1860
|
}, d) => {
|
|
1861
|
-
const r = J("!rounded-full", o.className),
|
|
1862
|
-
b.id = b.id ??
|
|
1863
|
-
const
|
|
1861
|
+
const r = J("!rounded-full", o.className), g = se(), b = { ...o };
|
|
1862
|
+
b.id = b.id ?? g;
|
|
1863
|
+
const E = () => {
|
|
1864
1864
|
window.scrollTo({
|
|
1865
1865
|
top: 0,
|
|
1866
1866
|
behavior: "smooth"
|
|
@@ -1886,7 +1886,7 @@ const De = (i, t = 10) => {
|
|
|
1886
1886
|
leadingIcon: "agora-line-chevron-up",
|
|
1887
1887
|
leadingIconHover: "agora-line-chevron-up",
|
|
1888
1888
|
iconOnly: !0,
|
|
1889
|
-
onClick:
|
|
1889
|
+
onClick: E,
|
|
1890
1890
|
className: r
|
|
1891
1891
|
}
|
|
1892
1892
|
)
|
|
@@ -1897,36 +1897,36 @@ const De = (i, t = 10) => {
|
|
|
1897
1897
|
"fill-[var(--color-neutral-900)]": !t
|
|
1898
1898
|
});
|
|
1899
1899
|
return /* @__PURE__ */ e.createElement("nav", { className: A, "aria-label": n }, /* @__PURE__ */ e.createElement("ol", { className: "flex gap-y-8 flex-wrap items-center" }, i.map((d, r) => {
|
|
1900
|
-
const
|
|
1901
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
1900
|
+
const g = `${l}-${r}`;
|
|
1901
|
+
return /* @__PURE__ */ e.createElement("li", { key: g, className: "flex flex-row items-center" }, r !== 0 && /* @__PURE__ */ e.createElement(ae, { name: "agora-line-chevron-right", dimensions: "m", "aria-hidden": "true", className: o }), r === i.length - 1 || !d.url ? /* @__PURE__ */ e.createElement("span", { "aria-current": "page" }, d.label) : /* @__PURE__ */ e.createElement(De, { darkMode: t, variant: "neutral", appearance: "text", href: d.url, className: "text-s-regular" }, d.label));
|
|
1902
1902
|
})));
|
|
1903
1903
|
}, zt = ({ sectionTitle: i, items: t = [], darkMode: a, ...l }) => {
|
|
1904
1904
|
var R;
|
|
1905
|
-
const n = se(), [A, o] = O(!1), d = C(null), r = C(null),
|
|
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
1908
|
var Y, M, U;
|
|
1909
1909
|
const D = (Y = r.current) == null ? void 0 : Y.querySelectorAll("a"), h = I.target.parentNode;
|
|
1910
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
|
-
(I.key === "Escape" || I.key === "Esc") && (o(!1), (D = d.current) == null || D.focus()), I.key === "Tab" &&
|
|
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);
|
|
1914
1914
|
};
|
|
1915
1915
|
ie(() => {
|
|
1916
1916
|
var I, D;
|
|
1917
1917
|
if (A) {
|
|
1918
|
-
document.addEventListener("mousedown",
|
|
1918
|
+
document.addEventListener("mousedown", E);
|
|
1919
1919
|
const j = (I = r.current) == null ? void 0 : I.querySelectorAll("a");
|
|
1920
1920
|
j && ((D = j[0]) == null || D.focus());
|
|
1921
1921
|
}
|
|
1922
1922
|
return () => {
|
|
1923
|
-
document.removeEventListener("mousedown",
|
|
1923
|
+
document.removeEventListener("mousedown", E);
|
|
1924
1924
|
};
|
|
1925
1925
|
}, [A]);
|
|
1926
1926
|
const s = () => {
|
|
1927
1927
|
o((I) => !I);
|
|
1928
1928
|
};
|
|
1929
|
-
return /* @__PURE__ */ e.createElement("nav", { "aria-label": b, className:
|
|
1929
|
+
return /* @__PURE__ */ e.createElement("nav", { "aria-label": b, className: g }, /* @__PURE__ */ e.createElement(
|
|
1930
1930
|
Ne,
|
|
1931
1931
|
{
|
|
1932
1932
|
type: "button",
|
|
@@ -1944,7 +1944,7 @@ const De = (i, t = 10) => {
|
|
|
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
1946
|
const j = `agora-mobile-breadcrumb-link-${n}${D}`;
|
|
1947
|
-
return D === t.length - 1 || !I.url ? /* @__PURE__ */ e.createElement("li", { id: j, key: j }, /* @__PURE__ */ e.createElement("span", { "aria-current": "page", className: "inline-flex items-center min-h-[44px]" }, I.label)) : /* @__PURE__ */ e.createElement("li", { id: j, key: j }, /* @__PURE__ */ e.createElement(
|
|
1947
|
+
return D === t.length - 1 || !I.url ? /* @__PURE__ */ e.createElement("li", { id: j, key: j }, /* @__PURE__ */ e.createElement("span", { "aria-current": "page", className: "inline-flex items-center min-h-[44px]" }, I.label)) : /* @__PURE__ */ e.createElement("li", { id: j, key: j }, /* @__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, {
|
|
@@ -1961,20 +1961,20 @@ const De = (i, t = 10) => {
|
|
|
1961
1961
|
orientation: o = "horizontal",
|
|
1962
1962
|
...d
|
|
1963
1963
|
}) => {
|
|
1964
|
-
const r = se(),
|
|
1965
|
-
|
|
1966
|
-
const [b,
|
|
1964
|
+
const r = se(), g = { ...d };
|
|
1965
|
+
g.id = g.id ?? r;
|
|
1966
|
+
const [b, E] = O([]), N = de(() => {
|
|
1967
1967
|
const R = [];
|
|
1968
1968
|
return Array.isArray(n) ? n.forEach((I, D) => {
|
|
1969
|
-
|
|
1969
|
+
Me(I) && (I.props.selected && E((j) => {
|
|
1970
1970
|
if (t) {
|
|
1971
1971
|
const h = [...j, D];
|
|
1972
1972
|
return [...new Set(h)];
|
|
1973
1973
|
}
|
|
1974
1974
|
return [D];
|
|
1975
1975
|
}), R.push(I));
|
|
1976
|
-
}) :
|
|
1977
|
-
}, [n,
|
|
1976
|
+
}) : Me(n) && (E([0]), R.push(n)), R;
|
|
1977
|
+
}, [n, E, t]), m = (R) => {
|
|
1978
1978
|
const I = [...b];
|
|
1979
1979
|
if (c(t))
|
|
1980
1980
|
if (b.includes(R)) {
|
|
@@ -1984,27 +1984,27 @@ const De = (i, t = 10) => {
|
|
|
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
|
-
if (
|
|
1988
|
-
const D =
|
|
1989
|
-
|
|
1987
|
+
if (E(I), l) {
|
|
1988
|
+
const D = N.filter((j, h) => I.includes(h));
|
|
1989
|
+
l(D);
|
|
1990
1990
|
}
|
|
1991
1991
|
}, s = J(
|
|
1992
1992
|
"button-group",
|
|
1993
|
-
|
|
1993
|
+
g.className,
|
|
1994
1994
|
o,
|
|
1995
1995
|
{ full: c(a) },
|
|
1996
1996
|
{ darkMode: c(A) }
|
|
1997
1997
|
);
|
|
1998
|
-
return /* @__PURE__ */ e.createElement("div", { className: "agora-button-group" }, /* @__PURE__ */ e.createElement("div", { ...
|
|
1998
|
+
return /* @__PURE__ */ e.createElement("div", { className: "agora-button-group" }, /* @__PURE__ */ e.createElement("div", { ...g, className: s, role: "group", "aria-label": g.name, id: g.id }, Ge.map(N, (R, I) => {
|
|
1999
1999
|
const D = b.includes(I);
|
|
2000
2000
|
return Ze(R, {
|
|
2001
2001
|
...R.props,
|
|
2002
|
-
id: R.props.id ?? `${
|
|
2002
|
+
id: R.props.id ?? `${g.id}-button-${I}`,
|
|
2003
2003
|
variant: i,
|
|
2004
2004
|
appearance: "outline",
|
|
2005
2005
|
onClick: (j) => {
|
|
2006
2006
|
var h, Y;
|
|
2007
|
-
|
|
2007
|
+
m(I), (Y = (h = R.props).onClick) == null || Y.call(h, j);
|
|
2008
2008
|
},
|
|
2009
2009
|
selected: D,
|
|
2010
2010
|
darkMode: c(A),
|
|
@@ -2071,11 +2071,11 @@ const De = (i, t = 10) => {
|
|
|
2071
2071
|
headingLevel: o = "h3",
|
|
2072
2072
|
title: d,
|
|
2073
2073
|
subtitle: r,
|
|
2074
|
-
variant:
|
|
2074
|
+
variant: g = "default",
|
|
2075
2075
|
className: b,
|
|
2076
|
-
...
|
|
2076
|
+
...E
|
|
2077
2077
|
}) => {
|
|
2078
|
-
const
|
|
2078
|
+
const N = C(null), m = C(null), s = {
|
|
2079
2079
|
title: !!d,
|
|
2080
2080
|
subtitle: !d && !!r,
|
|
2081
2081
|
children: !d && !r && !!n,
|
|
@@ -2092,20 +2092,20 @@ const De = (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, U, G) => U ? /* @__PURE__ */ e.createElement(e.Fragment, null, G && /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(
|
|
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
|
-
parentCardRef:
|
|
2098
|
-
anchorRef:
|
|
2097
|
+
parentCardRef: N,
|
|
2098
|
+
anchorRef: m,
|
|
2099
2099
|
blockedLink: c(l)
|
|
2100
2100
|
});
|
|
2101
2101
|
const j = J(
|
|
2102
2102
|
"agora-card-article",
|
|
2103
|
-
{ indented:
|
|
2104
|
-
{ default:
|
|
2103
|
+
{ indented: g === "indented" },
|
|
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", { ...
|
|
2108
|
+
return /* @__PURE__ */ e.createElement("div", { ...E, role: "presentation", ref: N, className: j }, 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,
|
|
@@ -2115,27 +2115,27 @@ const De = (i, t = 10) => {
|
|
|
2115
2115
|
className: A,
|
|
2116
2116
|
...o
|
|
2117
2117
|
}) => {
|
|
2118
|
-
const d = C(null), r = C(null),
|
|
2118
|
+
const d = C(null), r = C(null), g = J("agora-card-collection", A), b = {
|
|
2119
2119
|
title: !!a,
|
|
2120
2120
|
subtitle: !a && !!t,
|
|
2121
2121
|
anchor: !a && !t && !!l && !l.hidden
|
|
2122
|
-
},
|
|
2122
|
+
}, E = {
|
|
2123
2123
|
anchor: !1,
|
|
2124
2124
|
title: !1,
|
|
2125
2125
|
subtitle: !1
|
|
2126
2126
|
};
|
|
2127
|
-
let
|
|
2128
|
-
l && (
|
|
2127
|
+
let N = { ...l };
|
|
2128
|
+
l && (N = {
|
|
2129
2129
|
...l
|
|
2130
|
-
},
|
|
2131
|
-
const
|
|
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, j) => D ? /* @__PURE__ */ e.createElement(e.Fragment, null, j && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(De, { ...I, variant: "neutral", darkMode: !0, appearance: "link", ref: r }, R)), !j && /* @__PURE__ */ e.createElement(De, { ...I, variant: "neutral", darkMode: !0, appearance: "link", ref: r }, R)) : j ? /* @__PURE__ */ e.createElement(i, null, R) : R;
|
|
2132
2132
|
Le({
|
|
2133
2133
|
parentCardRef: d,
|
|
2134
2134
|
anchorRef: r,
|
|
2135
2135
|
blockedLink: c(n)
|
|
2136
2136
|
});
|
|
2137
|
-
const s = J("anchor-container", { "icon-only":
|
|
2138
|
-
return /* @__PURE__ */ e.createElement("div", { ...o, role: "presentation", ref: d, className:
|
|
2137
|
+
const s = J("anchor-container", { "icon-only": N == null ? void 0 : N.iconOnly });
|
|
2138
|
+
return /* @__PURE__ */ e.createElement("div", { ...o, role: "presentation", ref: d, className: g }, /* @__PURE__ */ e.createElement("div", { className: "card-info" }, t && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, m(t, N, E.subtitle, b.subtitle)), a && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, m(a, N, E.title, b.title)), E.anchor && /* @__PURE__ */ e.createElement("div", { className: s }, m(N.children, N, E.anchor, b.anchor))), /* @__PURE__ */ e.createElement("div", { className: "custom-svg-container -z-10 absolute top-0 left-0 min-w-full min-h-full w-full h-full flex justify-center items-center bg-[var(--color-primary-900)] xs:py-0 md:py-64 xl:py-128" }, /* @__PURE__ */ e.createElement(
|
|
2139
2139
|
"svg",
|
|
2140
2140
|
{
|
|
2141
2141
|
className: "custom-svg",
|
|
@@ -2160,11 +2160,11 @@ const De = (i, t = 10) => {
|
|
|
2160
2160
|
const d = J("agora-card-emphasize", `card-${n}`, A), r = {
|
|
2161
2161
|
...i,
|
|
2162
2162
|
className: J("card-emphasize-icon", i == null ? void 0 : i.className)
|
|
2163
|
-
},
|
|
2163
|
+
}, g = {
|
|
2164
2164
|
...l,
|
|
2165
2165
|
className: J("card-emphasize-button", l == null ? void 0 : l.className)
|
|
2166
2166
|
};
|
|
2167
|
-
return /* @__PURE__ */ e.createElement("div", { ...o, role: "presentation", className: d }, i && /* @__PURE__ */ e.createElement(ae, { ...r }), t && /* @__PURE__ */ e.createElement("div", { className: "card-emphasize-title" }, t), a && /* @__PURE__ */ e.createElement("div", { className: "card-emphasize-description" }, a), l && /* @__PURE__ */ e.createElement(Ne, { ...
|
|
2167
|
+
return /* @__PURE__ */ e.createElement("div", { ...o, role: "presentation", className: d }, i && /* @__PURE__ */ e.createElement(ae, { ...r }), t && /* @__PURE__ */ e.createElement("div", { className: "card-emphasize-title" }, t), a && /* @__PURE__ */ e.createElement("div", { className: "card-emphasize-description" }, a), l && /* @__PURE__ */ e.createElement(Ne, { ...g }));
|
|
2168
2168
|
}, Ve = ({
|
|
2169
2169
|
darkMode: i = !1,
|
|
2170
2170
|
appearance: t = "text",
|
|
@@ -2197,8 +2197,8 @@ const De = (i, t = 10) => {
|
|
|
2197
2197
|
className: d = "",
|
|
2198
2198
|
...r
|
|
2199
2199
|
}) => {
|
|
2200
|
-
const
|
|
2201
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2200
|
+
const g = J("card-error", c(o) ? "dark" : "default", d);
|
|
2201
|
+
return /* @__PURE__ */ e.createElement("div", { className: g, ...r }, i && /* @__PURE__ */ e.createElement("div", { className: "icon-container" }, i), t && /* @__PURE__ */ e.createElement("div", { className: "title" }, t), a && /* @__PURE__ */ e.createElement("div", { className: "subtitle" }, a), l && /* @__PURE__ */ e.createElement("div", { className: "description" }, l), n && /* @__PURE__ */ e.createElement("div", { className: "go-back" }, /* @__PURE__ */ e.createElement(Ve, { darkMode: c(o), variant: c(o) ? "neutral" : "primary" }, n)), A && /* @__PURE__ */ e.createElement("div", { className: "status-code-message" }, A));
|
|
2202
2202
|
}, qe = (i) => {
|
|
2203
2203
|
const t = { ...i };
|
|
2204
2204
|
return delete t.alt, delete t.title, /* @__PURE__ */ e.createElement("svg", { width: "24", height: "32", viewBox: "0 0 24 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, role: "img" }, i.title && /* @__PURE__ */ e.createElement("title", null, i.title), /* @__PURE__ */ e.createElement(
|
|
@@ -2226,29 +2226,29 @@ const De = (i, t = 10) => {
|
|
|
2226
2226
|
className: n = "",
|
|
2227
2227
|
...A
|
|
2228
2228
|
}) => {
|
|
2229
|
-
const o = se(), [d, r] = O(!1),
|
|
2229
|
+
const o = se(), [d, r] = O(!1), g = J("agora-card-expandable", n, { "is-opened": d }), b = () => {
|
|
2230
2230
|
r(!0);
|
|
2231
|
-
},
|
|
2231
|
+
}, E = () => {
|
|
2232
2232
|
r(!1);
|
|
2233
|
-
},
|
|
2234
|
-
return Ge.forEach(l, (
|
|
2233
|
+
}, N = [];
|
|
2234
|
+
return Ge.forEach(l, (m, s) => {
|
|
2235
2235
|
const R = `accordion-group-${o}-accordion-${s}`;
|
|
2236
|
-
if (!
|
|
2236
|
+
if (!Me(m))
|
|
2237
2237
|
return;
|
|
2238
|
-
const I = Ze(
|
|
2239
|
-
...
|
|
2238
|
+
const I = Ze(m, {
|
|
2239
|
+
...m.props,
|
|
2240
2240
|
key: R,
|
|
2241
2241
|
onExpanded: (D) => {
|
|
2242
2242
|
var j, h;
|
|
2243
|
-
(h = (j =
|
|
2243
|
+
(h = (j = m.props).onExpanded) == null || h.call(j, D), b();
|
|
2244
2244
|
},
|
|
2245
2245
|
onCollapsed: (D) => {
|
|
2246
2246
|
var j, h;
|
|
2247
|
-
(h = (j =
|
|
2247
|
+
(h = (j = m.props).onCollapsed) == null || h.call(j, D), E();
|
|
2248
2248
|
}
|
|
2249
2249
|
});
|
|
2250
|
-
|
|
2251
|
-
}), /* @__PURE__ */ e.createElement("div", { className:
|
|
2250
|
+
N.push(I);
|
|
2251
|
+
}), /* @__PURE__ */ e.createElement("div", { className: g, ...A }, c(a) && /* @__PURE__ */ e.createElement(qe, { className: "card-expandable-icon", "aria-hidden": !0 }), t && /* @__PURE__ */ e.createElement("div", { className: "card-expandable-header" }, /* @__PURE__ */ e.createElement(i, { className: "header-title" }, t)), N);
|
|
2252
2252
|
}, An = ({
|
|
2253
2253
|
className: i,
|
|
2254
2254
|
label: t,
|
|
@@ -2258,27 +2258,27 @@ const De = (i, t = 10) => {
|
|
|
2258
2258
|
children: A,
|
|
2259
2259
|
...o
|
|
2260
2260
|
}) => {
|
|
2261
|
-
const d = C(null), r = C(null),
|
|
2261
|
+
const d = C(null), r = C(null), g = J("agora-card-frame", i), b = {
|
|
2262
2262
|
label: !!t,
|
|
2263
2263
|
children: !t && !!A,
|
|
2264
2264
|
anchor: !t && !A && !!l && !l.hidden
|
|
2265
|
-
},
|
|
2265
|
+
}, E = {
|
|
2266
2266
|
anchor: !1,
|
|
2267
2267
|
label: !1,
|
|
2268
2268
|
children: !1
|
|
2269
2269
|
};
|
|
2270
|
-
let
|
|
2271
|
-
l && (
|
|
2270
|
+
let N = { ...l };
|
|
2271
|
+
l && (N = {
|
|
2272
2272
|
...l
|
|
2273
|
-
},
|
|
2274
|
-
const
|
|
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, j) => D ? /* @__PURE__ */ e.createElement(e.Fragment, null, j && /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(De, { ...I, appearance: "link", ref: r }, R)), !j && /* @__PURE__ */ e.createElement(De, { ...I, appearance: "link", ref: r }, R)) : j ? /* @__PURE__ */ e.createElement(a, null, R) : R;
|
|
2275
2275
|
Le({
|
|
2276
2276
|
parentCardRef: d,
|
|
2277
2277
|
anchorRef: r,
|
|
2278
2278
|
blockedLink: c(n)
|
|
2279
2279
|
});
|
|
2280
2280
|
const s = J("container-body", { "anchor-icon-only": l == null ? void 0 : l.iconOnly }, i);
|
|
2281
|
-
return /* @__PURE__ */ e.createElement("div", { ...o, ref: d, role: "presentation", className:
|
|
2281
|
+
return /* @__PURE__ */ e.createElement("div", { ...o, ref: d, role: "presentation", className: g }, /* @__PURE__ */ e.createElement("div", { className: s }, t && /* @__PURE__ */ e.createElement("div", { className: "label-container" }, m(t, N, E.label, b.label)), A && /* @__PURE__ */ e.createElement("div", { className: "children-container" }, m(A, N, E.children, b.children)), E.anchor && /* @__PURE__ */ e.createElement("div", { className: "anchor-container" }, m(N.children, N, E.anchor, b.anchor))));
|
|
2282
2282
|
}, cn = ({ image: i, ...t }) => {
|
|
2283
2283
|
const a = J("agora-card-full-image", t.className);
|
|
2284
2284
|
return /* @__PURE__ */ e.createElement("div", { className: a, ...t }, /* @__PURE__ */ e.createElement("div", { className: "card-background" }, /* @__PURE__ */ e.createElement("div", { className: "card-image-container" }, /* @__PURE__ */ e.createElement("img", { className: "card-image", src: i.src, alt: i.alt, "aria-hidden": i["aria-hidden"] ?? !0 }))), /* @__PURE__ */ e.createElement("div", { className: "card-content" }, /* @__PURE__ */ e.createElement("div", { className: "grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-x-32" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-5 xl:col-start-7" }, t.children))));
|
|
@@ -2293,16 +2293,16 @@ const De = (i, t = 10) => {
|
|
|
2293
2293
|
const o = se(), d = J("agora-card-hero-helper", n), r = {
|
|
2294
2294
|
title: !!a,
|
|
2295
2295
|
subtitle: !a && !!i
|
|
2296
|
-
},
|
|
2297
|
-
return /* @__PURE__ */ e.createElement("div", { className: d, ...A }, (i || a) && /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 flex-col" }, i && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" },
|
|
2298
|
-
const
|
|
2299
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
2296
|
+
}, g = (b, E) => E ? /* @__PURE__ */ e.createElement(t, null, b) : b;
|
|
2297
|
+
return /* @__PURE__ */ e.createElement("div", { className: d, ...A }, (i || a) && /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 flex-col" }, i && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, g(i, r.subtitle)), a && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, g(a, r.title))), l.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: "flex flex-col justify-start items-start gap-32" }, l == null ? void 0 : l.map((b, E) => {
|
|
2298
|
+
const N = `card-hero-helper-${o}-description-block-${E}`;
|
|
2299
|
+
return /* @__PURE__ */ e.createElement("li", { key: N, className: "flex flex-col gap-16 justify-start items-start" }, /* @__PURE__ */ e.createElement("div", null, b.description), /* @__PURE__ */ e.createElement(De, { ...b == null ? void 0 : b.anchor }));
|
|
2300
2300
|
})));
|
|
2301
2301
|
}, rn = ({ title: i, headingLevel: t = "h3", index: a = [], className: l, ...n }) => {
|
|
2302
2302
|
const A = se(), o = J("agora-card-hero-index", l);
|
|
2303
2303
|
return /* @__PURE__ */ e.createElement("div", { className: o, ...n }, i && /* @__PURE__ */ e.createElement(t, { className: "card-hero-index-title" }, i), a.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: "index-list" }, a.map((d, r) => {
|
|
2304
|
-
const
|
|
2305
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
2304
|
+
const g = `card-index-${A}-index-item-${r}`;
|
|
2305
|
+
return /* @__PURE__ */ e.createElement("li", { key: g }, /* @__PURE__ */ e.createElement(De, { ...d, appearance: "link", variant: "neutral" }, d.children));
|
|
2306
2306
|
})));
|
|
2307
2307
|
}, dn = ({
|
|
2308
2308
|
description: i,
|
|
@@ -2313,15 +2313,15 @@ const De = (i, t = 10) => {
|
|
|
2313
2313
|
className: A,
|
|
2314
2314
|
...o
|
|
2315
2315
|
}) => {
|
|
2316
|
-
const d = se(), r = l.slice(0, 5),
|
|
2316
|
+
const d = se(), r = l.slice(0, 5), g = J("agora-card-hero-sitemap", A), b = {
|
|
2317
2317
|
title: !!a,
|
|
2318
2318
|
description: !a && !!i
|
|
2319
|
-
},
|
|
2320
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2321
|
-
const s = `card-hero-sitemap-${d}-description-block-${
|
|
2322
|
-
return /* @__PURE__ */ e.createElement("li", { key: s }, /* @__PURE__ */ e.createElement(
|
|
2319
|
+
}, E = (N, m) => m ? /* @__PURE__ */ e.createElement(t, null, N) : N;
|
|
2320
|
+
return /* @__PURE__ */ e.createElement("div", { className: g, ...o }, (a || i) && /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 flex-col text-l-semibold" }, a && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, E(a, b.title)), i && /* @__PURE__ */ e.createElement("div", { className: "description-container" }, E(i, b.description))), r.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: "flex flex-col justify-start items-start gap-8" }, r == null ? void 0 : r.map((N, m) => {
|
|
2321
|
+
const s = `card-hero-sitemap-${d}-description-block-${m}`;
|
|
2322
|
+
return /* @__PURE__ */ e.createElement("li", { key: s }, /* @__PURE__ */ e.createElement(De, { ...N }));
|
|
2323
2323
|
})), n && /* @__PURE__ */ e.createElement(
|
|
2324
|
-
|
|
2324
|
+
De,
|
|
2325
2325
|
{
|
|
2326
2326
|
appearance: "link",
|
|
2327
2327
|
...n,
|
|
@@ -2357,17 +2357,17 @@ const De = (i, t = 10) => {
|
|
|
2357
2357
|
title: !!i,
|
|
2358
2358
|
subtitle: !i && !!t,
|
|
2359
2359
|
description: !i && !t && !!a
|
|
2360
|
-
}, r = (
|
|
2361
|
-
return /* @__PURE__ */ e.createElement("div", { className: "inner-highlight-card", ...A }, (t || i || a) && /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-8" }, t && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, r(t, d.subtitle)), i && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, r(i, d.title)), a && /* @__PURE__ */ e.createElement("div", { className: "description-container" }, r(a, d.description))), (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ e.createElement("ul", { className: "links-container" }, l == null ? void 0 : l.map((
|
|
2362
|
-
const
|
|
2363
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
2364
|
-
|
|
2360
|
+
}, r = (g, b) => b ? /* @__PURE__ */ e.createElement(n, null, g) : g;
|
|
2361
|
+
return /* @__PURE__ */ e.createElement("div", { className: "inner-highlight-card", ...A }, (t || i || a) && /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-8" }, t && /* @__PURE__ */ e.createElement("div", { className: "subtitle-container" }, r(t, d.subtitle)), i && /* @__PURE__ */ e.createElement("div", { className: "title-container" }, r(i, d.title)), a && /* @__PURE__ */ e.createElement("div", { className: "description-container" }, r(a, d.description))), (l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ e.createElement("ul", { className: "links-container" }, l == null ? void 0 : l.map((g, b) => {
|
|
2362
|
+
const E = `card-highlight-links-list-${o}-${b}`;
|
|
2363
|
+
return /* @__PURE__ */ e.createElement("li", { key: E }, /* @__PURE__ */ e.createElement(
|
|
2364
|
+
De,
|
|
2365
2365
|
{
|
|
2366
2366
|
appearance: "link",
|
|
2367
2367
|
hasIcon: !0,
|
|
2368
2368
|
trailingIcon: "agora-line-arrow-right-circle",
|
|
2369
2369
|
trailingIconHover: "agora-line-arrow-right-circle",
|
|
2370
|
-
...
|
|
2370
|
+
...g
|
|
2371
2371
|
}
|
|
2372
2372
|
));
|
|
2373
2373
|
})));
|
|
@@ -2381,19 +2381,19 @@ const De = (i, t = 10) => {
|
|
|
2381
2381
|
links: o,
|
|
2382
2382
|
cardPosition: d = "bottom",
|
|
2383
2383
|
cardSize: r = "default",
|
|
2384
|
-
className:
|
|
2384
|
+
className: g,
|
|
2385
2385
|
...b
|
|
2386
2386
|
}) => {
|
|
2387
|
-
const
|
|
2387
|
+
const E = J("agora-card-highlight", d, `card-${r}`, g), { width: N } = ze(), m = N >= 768 && N < 1200, s = N < 768, R = {
|
|
2388
2388
|
title: !!t,
|
|
2389
2389
|
subtitle: !t && !!a,
|
|
2390
2390
|
description: !t && !a && !!l
|
|
2391
2391
|
}, I = (D, j) => j ? /* @__PURE__ */ e.createElement(A, null, D) : D;
|
|
2392
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
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
|
{
|
|
2395
2395
|
headingLevel: A,
|
|
2396
|
-
...n === "interior" ||
|
|
2396
|
+
...n === "interior" || m || s ? { title: t, subtitle: a } : void 0,
|
|
2397
2397
|
description: l,
|
|
2398
2398
|
links: o
|
|
2399
2399
|
}
|
|
@@ -2426,8 +2426,8 @@ const De = (i, t = 10) => {
|
|
|
2426
2426
|
}, zi = ({ type: i = "unordered", listStyle: t = "none", startNumber: a = 1, children: l, icon: n, ...A }) => {
|
|
2427
2427
|
const o = i !== "ordered" ? "ul" : "ol", d = se(), r = { ...A };
|
|
2428
2428
|
r.id = r.id ?? d;
|
|
2429
|
-
const
|
|
2430
|
-
return /* @__PURE__ */ e.createElement(o, { style: { "--startNumber": a }, start: a, className:
|
|
2429
|
+
const g = J(`agora-list agora-list-${i} list-${t}`, r.className), b = Ge.map(l, (E) => Me(E) ? /* @__PURE__ */ e.createElement("li", null, t === "icon" && i === "unordered" && /* @__PURE__ */ e.createElement(ae, { name: n, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("div", { className: "list-items" }, E.props.children)) : null);
|
|
2430
|
+
return /* @__PURE__ */ e.createElement(o, { style: { "--startNumber": a }, start: a, className: g, id: r.id }, b);
|
|
2431
2431
|
}, bn = ({
|
|
2432
2432
|
headingLevel: i = "h2",
|
|
2433
2433
|
title: t,
|
|
@@ -2439,29 +2439,29 @@ const De = (i, t = 10) => {
|
|
|
2439
2439
|
className: d = "",
|
|
2440
2440
|
...r
|
|
2441
2441
|
}) => {
|
|
2442
|
-
const
|
|
2442
|
+
const g = se(), b = J("card-links", `card-${o}`, d), E = {
|
|
2443
2443
|
title: !!t,
|
|
2444
2444
|
description: !t && !!l,
|
|
2445
2445
|
category: !t && !l && !!a
|
|
2446
|
-
},
|
|
2447
|
-
return /* @__PURE__ */ e.createElement("div", { className: b, ...r }, /* @__PURE__ */ e.createElement("div", { className: "body-container" }, a && /* @__PURE__ */ e.createElement("div", { className: "category" },
|
|
2448
|
-
const R = `card-link-${
|
|
2446
|
+
}, N = (m, s) => s ? /* @__PURE__ */ e.createElement(i, null, m) : m;
|
|
2447
|
+
return /* @__PURE__ */ e.createElement("div", { className: b, ...r }, /* @__PURE__ */ e.createElement("div", { className: "body-container" }, a && /* @__PURE__ */ e.createElement("div", { className: "category" }, N(a, E.category)), t && /* @__PURE__ */ e.createElement("div", { className: "title" }, N(t, E.title)), l && /* @__PURE__ */ e.createElement("div", { className: "description" }, N(l, E.description))), n.length > 0 && /* @__PURE__ */ e.createElement("ul", { className: "links" }, n.map((m, s) => {
|
|
2448
|
+
const R = `card-link-${g}-link-${s}`;
|
|
2449
2449
|
return /* @__PURE__ */ e.createElement("li", { key: R, className: "link-container" }, /* @__PURE__ */ e.createElement(
|
|
2450
|
-
|
|
2450
|
+
De,
|
|
2451
2451
|
{
|
|
2452
2452
|
appearance: "link",
|
|
2453
|
-
href:
|
|
2453
|
+
href: m.href,
|
|
2454
2454
|
darkMode: o === "dark",
|
|
2455
2455
|
variant: o === "default" ? "primary" : "neutral",
|
|
2456
|
-
hasIcon:
|
|
2457
|
-
trailingIcon:
|
|
2458
|
-
trailingIconHover:
|
|
2456
|
+
hasIcon: m.hasIcon ?? !0,
|
|
2457
|
+
trailingIcon: m.trailingIcon ?? "agora-line-arrow-right-circle",
|
|
2458
|
+
trailingIconHover: m.trailingIcon ?? "agora-line-arrow-right-circle"
|
|
2459
2459
|
},
|
|
2460
|
-
|
|
2460
|
+
m.children
|
|
2461
2461
|
));
|
|
2462
|
-
})), A && A.length > 0 && /* @__PURE__ */ e.createElement(zi, { className: "topics" }, A.map((
|
|
2463
|
-
const R = `card-link-${
|
|
2464
|
-
return /* @__PURE__ */ e.createElement("li", { key: R, className: "topic" },
|
|
2462
|
+
})), A && A.length > 0 && /* @__PURE__ */ e.createElement(zi, { className: "topics" }, A.map((m, s) => {
|
|
2463
|
+
const R = `card-link-${g}-topic-${s}`;
|
|
2464
|
+
return /* @__PURE__ */ e.createElement("li", { key: R, className: "topic" }, m, s !== A.length - 1 && /* @__PURE__ */ e.createElement(ae, { name: "agora-solid-bullet", alt: "bullet" }));
|
|
2465
2465
|
})), /* @__PURE__ */ e.createElement("hr", { "aria-hidden": !0 }));
|
|
2466
2466
|
}, En = ({
|
|
2467
2467
|
icon: i,
|
|
@@ -2484,18 +2484,18 @@ const De = (i, t = 10) => {
|
|
|
2484
2484
|
mainAnchor: o,
|
|
2485
2485
|
blockedLink: d = !1,
|
|
2486
2486
|
className: r,
|
|
2487
|
-
...
|
|
2487
|
+
...g
|
|
2488
2488
|
}) => {
|
|
2489
|
-
const b = C(null),
|
|
2489
|
+
const b = C(null), E = C(null), N = J("agora-card-search-result", r), m = J(
|
|
2490
2490
|
"flex flex-col gap-8",
|
|
2491
2491
|
{ "xl:col-span-3 md:col-span-2": A },
|
|
2492
2492
|
{ "xl:col-span-full md:col-span-full": !A }
|
|
2493
2493
|
);
|
|
2494
2494
|
return Le({
|
|
2495
|
-
anchorRef:
|
|
2495
|
+
anchorRef: E,
|
|
2496
2496
|
parentCardRef: b,
|
|
2497
2497
|
blockedLink: c(d)
|
|
2498
|
-
}), /* @__PURE__ */ e.createElement("div", { ref: b, role: "presentation", className:
|
|
2498
|
+
}), /* @__PURE__ */ e.createElement("div", { ref: b, role: "presentation", className: N, ...g }, i && /* @__PURE__ */ e.createElement("div", { className: "category" }, i), /* @__PURE__ */ e.createElement("div", { className: "content-body" }, /* @__PURE__ */ e.createElement("div", { className: m }, t && /* @__PURE__ */ e.createElement("div", { className: "date-container" }, t), /* @__PURE__ */ e.createElement(a, { className: "title" }, /* @__PURE__ */ e.createElement(De, { ...o, ref: E })), l && /* @__PURE__ */ e.createElement("div", { className: "description-container" }, l)), A && /* @__PURE__ */ e.createElement("div", { className: "container-image xl:col-span-1 md:col-span-2 w-full" }, /* @__PURE__ */ e.createElement("img", { src: A.src, className: "card-image w-full", alt: A.alt }))), n && n.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "topic-list" }, n.map((s, R) => /* @__PURE__ */ e.createElement("div", { key: `key-${Number(R)}`, className: "topic-item" }, R > 0 && /* @__PURE__ */ e.createElement(ae, { "aria-hidden": !0, className: "fill-neutral-500", name: "agora-solid-bullet" }), s))));
|
|
2499
2499
|
}, In = ({
|
|
2500
2500
|
variant: i = "default",
|
|
2501
2501
|
icon: t,
|
|
@@ -2507,25 +2507,25 @@ const De = (i, t = 10) => {
|
|
|
2507
2507
|
className: d,
|
|
2508
2508
|
...r
|
|
2509
2509
|
}) => {
|
|
2510
|
-
const
|
|
2510
|
+
const g = C(null), b = C(null), E = {
|
|
2511
2511
|
title: !!l,
|
|
2512
2512
|
description: !l && !!n,
|
|
2513
2513
|
anchor: !l && !n && !!A && !A.hidden
|
|
2514
|
-
},
|
|
2514
|
+
}, N = {
|
|
2515
2515
|
anchor: !1,
|
|
2516
2516
|
title: !1,
|
|
2517
2517
|
description: !1
|
|
2518
2518
|
};
|
|
2519
|
-
let
|
|
2520
|
-
A && (
|
|
2519
|
+
let m = { ...A };
|
|
2520
|
+
A && (m = {
|
|
2521
2521
|
...A
|
|
2522
|
-
},
|
|
2523
|
-
parentCardRef:
|
|
2522
|
+
}, m.hasIcon && !m.trailingIcon && !m.leadingIcon && (m.trailingIcon = "agora-line-arrow-right-circle", m.trailingIconHover = "agora-solid-arrow-right-circle"), A.hidden ? (delete m.hidden, N.title = !!l, N.description = !l && !!n) : N.anchor = !0), Le({
|
|
2523
|
+
parentCardRef: g,
|
|
2524
2524
|
anchorRef: b,
|
|
2525
2525
|
blockedLink: c(o)
|
|
2526
2526
|
});
|
|
2527
|
-
const s = J("card-single", `card-${i}`, d), R = (D, j, h, Y) => h ? /* @__PURE__ */ e.createElement(e.Fragment, null, Y && /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(
|
|
2528
|
-
return /* @__PURE__ */ e.createElement("div", { ...r, ref:
|
|
2527
|
+
const s = J("card-single", `card-${i}`, d), R = (D, j, h, Y) => h ? /* @__PURE__ */ e.createElement(e.Fragment, null, Y && /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(De, { ...j, appearance: "link", ref: b }, D)), !Y && /* @__PURE__ */ e.createElement(De, { ...j, 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
|
+
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",
|
|
2531
2531
|
variant: t = "default",
|
|
@@ -2536,10 +2536,10 @@ const De = (i, t = 10) => {
|
|
|
2536
2536
|
status: o = "success",
|
|
2537
2537
|
mainAnchor: d,
|
|
2538
2538
|
blockedLink: r = !1,
|
|
2539
|
-
className:
|
|
2539
|
+
className: g,
|
|
2540
2540
|
...b
|
|
2541
2541
|
}) => {
|
|
2542
|
-
const
|
|
2542
|
+
const E = de(() => t === "default" || t === "white" ? "primary" : t, [t]), N = C(null), m = C(null), s = {
|
|
2543
2543
|
title: !!a,
|
|
2544
2544
|
description: !a && !!l,
|
|
2545
2545
|
pill: !a && !l && !!n,
|
|
@@ -2554,23 +2554,23 @@ const De = (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, U, G, u) => G ? /* @__PURE__ */ e.createElement(e.Fragment, null, u && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(
|
|
2557
|
+
const D = (M, U, G, u) => G ? /* @__PURE__ */ e.createElement(e.Fragment, null, u && /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(De, { ...U, appearance: "link", variant: E, ref: m }, M)), !u && /* @__PURE__ */ e.createElement(De, { ...U, appearance: "link", variant: E, ref: m }, M)) : u ? /* @__PURE__ */ e.createElement(i, null, M) : M;
|
|
2558
2558
|
Le({
|
|
2559
|
-
parentCardRef:
|
|
2560
|
-
anchorRef:
|
|
2559
|
+
parentCardRef: N,
|
|
2560
|
+
anchorRef: m,
|
|
2561
2561
|
blockedLink: c(r)
|
|
2562
2562
|
});
|
|
2563
|
-
const j = J("agora-card-topic", `card-${t}`, { "has-anchor-label": !(d != null && d.iconOnly) },
|
|
2564
|
-
return /* @__PURE__ */ e.createElement("div", { ...b, role: "presentation", className: j, ref:
|
|
2563
|
+
const j = 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: j, 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}`), r = J("feedback-text", c(l) ? "feedback-text-dark" : "feedback-text-light"),
|
|
2566
|
+
const o = J("feedback", i), d = J("feedback-icon-wrapper", `feedback-icon-wrapper-${t}`), r = J("feedback-text", c(l) ? "feedback-text-dark" : "feedback-text-light"), g = {
|
|
2567
2567
|
info: "agora-solid-info-mark",
|
|
2568
2568
|
danger: "agora-solid-alert-triangle",
|
|
2569
2569
|
success: "agora-solid-check-circle",
|
|
2570
2570
|
warning: "agora-solid-alert-circle"
|
|
2571
2571
|
};
|
|
2572
|
-
return /* @__PURE__ */ e.createElement("div", { ...n, className: o, ref: A }, /* @__PURE__ */ e.createElement("span", { className: d }, /* @__PURE__ */ e.createElement(ae, { name:
|
|
2573
|
-
},
|
|
2572
|
+
return /* @__PURE__ */ e.createElement("div", { ...n, className: o, ref: A }, /* @__PURE__ */ e.createElement("span", { className: d }, /* @__PURE__ */ e.createElement(ae, { name: g[t], dimensions: "s", "aria-hidden": !0 })), /* @__PURE__ */ e.createElement("p", { className: r }, a));
|
|
2573
|
+
}, pe = re(Tt), xt = ({
|
|
2574
2574
|
className: i,
|
|
2575
2575
|
label: t,
|
|
2576
2576
|
hasError: a,
|
|
@@ -2580,19 +2580,19 @@ const De = (i, t = 10) => {
|
|
|
2580
2580
|
feedbackState: o = "info",
|
|
2581
2581
|
feedbackText: d,
|
|
2582
2582
|
darkMode: r,
|
|
2583
|
-
children:
|
|
2583
|
+
children: g,
|
|
2584
2584
|
...b
|
|
2585
|
-
},
|
|
2586
|
-
const
|
|
2587
|
-
we(
|
|
2588
|
-
const
|
|
2589
|
-
s.id = s.id ??
|
|
2585
|
+
}, E) => {
|
|
2586
|
+
const N = C(null);
|
|
2587
|
+
we(E, () => N.current);
|
|
2588
|
+
const m = se(), s = { ...b };
|
|
2589
|
+
s.id = s.id ?? m;
|
|
2590
2590
|
const [R, I] = O(c(s.checked ?? s.defaultChecked)), D = (M) => {
|
|
2591
2591
|
var U;
|
|
2592
|
-
s.disabled || s.readOnly || M.target === M.currentTarget && (M.code === "Space" || M.code === "Enter" || M.code === "NumpadEnter") && (M.preventDefault(), M.stopPropagation(), (U =
|
|
2592
|
+
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());
|
|
2593
2593
|
}, j = (M) => {
|
|
2594
2594
|
var U;
|
|
2595
|
-
s.disabled || s.readOnly || M.target === M.currentTarget && M.detail > 0 && (M.preventDefault(), M.stopPropagation(), (U =
|
|
2595
|
+
s.disabled || s.readOnly || M.target === M.currentTarget && M.detail > 0 && (M.preventDefault(), M.stopPropagation(), (U = N.current) == null || U.click());
|
|
2596
2596
|
}, h = () => {
|
|
2597
2597
|
I((M) => !M);
|
|
2598
2598
|
}, Y = J(
|
|
@@ -2627,11 +2627,11 @@ const De = (i, t = 10) => {
|
|
|
2627
2627
|
onKeyDownCapture: D,
|
|
2628
2628
|
onClickCapture: j
|
|
2629
2629
|
},
|
|
2630
|
-
/* @__PURE__ */ e.createElement("input", { className: "hidden", ...s, type: "checkbox", ref:
|
|
2630
|
+
/* @__PURE__ */ e.createElement("input", { className: "hidden", ...s, type: "checkbox", ref: N, onChange: h }),
|
|
2631
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,
|
|
2632
|
+
!l && /* @__PURE__ */ e.createElement("label", { className: "label", htmlFor: s.id }, /* @__PURE__ */ e.createElement("span", null, g ?? t))
|
|
2633
2633
|
), (c(A) || c(a)) && d && /* @__PURE__ */ e.createElement("div", { className: "agora-radio-button-feedback px-8" }, /* @__PURE__ */ e.createElement(
|
|
2634
|
-
|
|
2634
|
+
pe,
|
|
2635
2635
|
{
|
|
2636
2636
|
feedbackState: c(a) ? "danger" : o,
|
|
2637
2637
|
feedbackText: d,
|
|
@@ -2649,14 +2649,14 @@ const De = (i, t = 10) => {
|
|
|
2649
2649
|
children: d,
|
|
2650
2650
|
...r
|
|
2651
2651
|
}) => {
|
|
2652
|
-
const
|
|
2653
|
-
|
|
2654
|
-
}, b = J("agora-checkbox-group", i),
|
|
2655
|
-
onChange:
|
|
2652
|
+
const g = (N) => {
|
|
2653
|
+
o == null || o(N);
|
|
2654
|
+
}, b = J("agora-checkbox-group", i), E = Ge.map(d, (N) => Me(N) ? Ze(N, {
|
|
2655
|
+
onChange: g,
|
|
2656
2656
|
hasError: c(a),
|
|
2657
2657
|
hasFeedback: c(l)
|
|
2658
2658
|
}) : null);
|
|
2659
|
-
return /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("fieldset", { ...r }, t && /* @__PURE__ */ e.createElement("legend", { className: "text-[var(--color-primary-900)] text-m-medium mb-8" }, t),
|
|
2659
|
+
return /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("fieldset", { ...r }, t && /* @__PURE__ */ e.createElement("legend", { className: "text-[var(--color-primary-900)] text-m-medium mb-8" }, t), E), (c(l) || c(a)) && n && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(a) ? "danger" : A, feedbackText: n }));
|
|
2660
2660
|
}, Ft = ({
|
|
2661
2661
|
visible: i = !1,
|
|
2662
2662
|
fullScreen: t = !1,
|
|
@@ -2667,56 +2667,56 @@ const De = (i, t = 10) => {
|
|
|
2667
2667
|
onClickedOutside: o,
|
|
2668
2668
|
...d
|
|
2669
2669
|
}, r) => {
|
|
2670
|
-
const [
|
|
2670
|
+
const [g, b] = O(c(i)), E = ge(() => {
|
|
2671
2671
|
b(!0);
|
|
2672
|
-
}, [b]),
|
|
2672
|
+
}, [b]), N = ge(() => {
|
|
2673
2673
|
b(!1);
|
|
2674
|
-
}, []),
|
|
2674
|
+
}, []), m = C(null);
|
|
2675
2675
|
Je(
|
|
2676
2676
|
r,
|
|
2677
|
-
|
|
2677
|
+
m,
|
|
2678
2678
|
{
|
|
2679
|
-
visible:
|
|
2680
|
-
show:
|
|
2681
|
-
hide:
|
|
2679
|
+
visible: g,
|
|
2680
|
+
show: E,
|
|
2681
|
+
hide: N
|
|
2682
2682
|
},
|
|
2683
|
-
[N,
|
|
2683
|
+
[m, N, E, g]
|
|
2684
2684
|
);
|
|
2685
2685
|
const s = (D) => {
|
|
2686
2686
|
if (D.key === "Escape" && c(l)) {
|
|
2687
|
-
D.preventDefault(),
|
|
2687
|
+
D.preventDefault(), N();
|
|
2688
2688
|
return;
|
|
2689
2689
|
}
|
|
2690
|
-
if (
|
|
2691
|
-
const j =
|
|
2690
|
+
if (m.current && D.key === "Tab") {
|
|
2691
|
+
const j = m.current.querySelectorAll(
|
|
2692
2692
|
'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
2693
|
), h = j[0], Y = j[j.length - 1];
|
|
2694
2694
|
D.shiftKey && document.activeElement === h ? (D.preventDefault(), Y.focus()) : !D.shiftKey && document.activeElement === Y && (D.preventDefault(), h.focus());
|
|
2695
2695
|
}
|
|
2696
2696
|
}, R = (D) => {
|
|
2697
|
-
D.target.classList.contains("agora-dialog-backdrop") && (
|
|
2697
|
+
D.target.classList.contains("agora-dialog-backdrop") && (N(), o == null || o());
|
|
2698
2698
|
};
|
|
2699
2699
|
ie(() => (document == null || document.addEventListener("keydown", s), !c(t) && c(a) && (document == null || document.addEventListener("click", R)), () => {
|
|
2700
2700
|
document == null || document.removeEventListener("keydown", s), !c(t) && c(a) && (document == null || document.removeEventListener("click", R));
|
|
2701
2701
|
}), [l, t, a, R, s]), ie(() => {
|
|
2702
|
-
if (
|
|
2703
|
-
if (document.body.classList.add("overflow-hidden"),
|
|
2704
|
-
const j =
|
|
2702
|
+
if (g) {
|
|
2703
|
+
if (document.body.classList.add("overflow-hidden"), m.current) {
|
|
2704
|
+
const j = m.current.querySelectorAll(
|
|
2705
2705
|
'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
2706
|
)[0];
|
|
2707
2707
|
j && j.focus();
|
|
2708
2708
|
}
|
|
2709
2709
|
} else
|
|
2710
2710
|
document.body.classList.remove("overflow-hidden");
|
|
2711
|
-
}, [
|
|
2711
|
+
}, [g]);
|
|
2712
2712
|
const I = J(
|
|
2713
2713
|
"agora-dialog",
|
|
2714
2714
|
{
|
|
2715
|
-
closed: !
|
|
2715
|
+
closed: !g
|
|
2716
2716
|
},
|
|
2717
2717
|
A
|
|
2718
2718
|
);
|
|
2719
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
2719
|
+
return /* @__PURE__ */ e.createElement("div", { ref: m, className: I, "aria-modal": "true", role: "dialog", ...d }, !t && /* @__PURE__ */ e.createElement("div", { className: "agora-dialog-backdrop" }), n);
|
|
2720
2720
|
}, Xe = re(Ft), Lt = ({
|
|
2721
2721
|
children: i,
|
|
2722
2722
|
dismissOnEscape: t = !0,
|
|
@@ -2727,20 +2727,20 @@ const De = (i, t = 10) => {
|
|
|
2727
2727
|
onHide: o,
|
|
2728
2728
|
className: d,
|
|
2729
2729
|
"aria-label": r,
|
|
2730
|
-
"aria-labelledby":
|
|
2730
|
+
"aria-labelledby": g,
|
|
2731
2731
|
...b
|
|
2732
|
-
},
|
|
2733
|
-
const [
|
|
2732
|
+
}, E) => {
|
|
2733
|
+
const [N, m] = O(!1), s = C(null), R = J(
|
|
2734
2734
|
"agora-drawer",
|
|
2735
2735
|
{ "agora-drawer-horizontal": l === "left" || l === "right" },
|
|
2736
2736
|
{ "agora-drawer-vertical": l === "top" || l === "bottom" },
|
|
2737
|
-
{ ["agora-drawer-open-" + l]:
|
|
2738
|
-
{ ["agora-drawer-close-" + l]: !
|
|
2737
|
+
{ ["agora-drawer-open-" + l]: N },
|
|
2738
|
+
{ ["agora-drawer-close-" + l]: !N }
|
|
2739
2739
|
), I = () => {
|
|
2740
2740
|
var h, Y, M, U;
|
|
2741
2741
|
const j = () => {
|
|
2742
2742
|
var G, u, p, w, v, S;
|
|
2743
|
-
|
|
2743
|
+
m(!1), (G = s.current) == null || G.hide(), (w = (p = (u = s.current) == null ? void 0 : u.querySelector(".agora-drawer")) == null ? void 0 : p.classList) == null || w.remove(`agora-drawer-close-${l}`), (S = (v = s.current) == null ? void 0 : v.querySelector(".agora-drawer")) == null || S.removeEventListener("animationend", j), o == null || o();
|
|
2744
2744
|
};
|
|
2745
2745
|
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend", j), (U = (M = s.current) == null ? void 0 : M.querySelector(".agora-drawer")) == null || U.classList.add(`agora-drawer-close-${l}`);
|
|
2746
2746
|
}, D = () => {
|
|
@@ -2749,10 +2749,10 @@ const De = (i, t = 10) => {
|
|
|
2749
2749
|
var U, G;
|
|
2750
2750
|
(G = (U = s.current) == null ? void 0 : U.querySelector(".agora-drawer")) == null || G.removeEventListener("animationend", j), A == null || A();
|
|
2751
2751
|
};
|
|
2752
|
-
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend", j),
|
|
2752
|
+
(Y = (h = s.current) == null ? void 0 : h.querySelector(".agora-drawer")) == null || Y.addEventListener("animationend", j), m(!0), (M = s.current) == null || M.show();
|
|
2753
2753
|
};
|
|
2754
2754
|
return Je(
|
|
2755
|
-
|
|
2755
|
+
E,
|
|
2756
2756
|
s,
|
|
2757
2757
|
{
|
|
2758
2758
|
open: D,
|
|
@@ -2763,7 +2763,7 @@ const De = (i, t = 10) => {
|
|
|
2763
2763
|
Xe,
|
|
2764
2764
|
{
|
|
2765
2765
|
"aria-label": r,
|
|
2766
|
-
"aria-labelledby":
|
|
2766
|
+
"aria-labelledby": g,
|
|
2767
2767
|
ref: s,
|
|
2768
2768
|
className: d,
|
|
2769
2769
|
dismissOnBackdropClick: a,
|
|
@@ -2774,24 +2774,24 @@ const De = (i, t = 10) => {
|
|
|
2774
2774
|
);
|
|
2775
2775
|
}, Qt = re(Lt), Vt = ({ likeButton: i, dislikeButton: t, iconOnly: a = !1, darkMode: l = !1, variant: n, className: A = "", onChange: o, ...d }, r) => {
|
|
2776
2776
|
var Y, M;
|
|
2777
|
-
const
|
|
2778
|
-
b.id = b.id ??
|
|
2779
|
-
const [
|
|
2780
|
-
|
|
2777
|
+
const g = se(), b = { ...d };
|
|
2778
|
+
b.id = b.id ?? g;
|
|
2779
|
+
const [E, N] = O("neutral"), m = (U) => {
|
|
2780
|
+
N((G) => G === U ? "neutral" : U);
|
|
2781
2781
|
};
|
|
2782
2782
|
ie(() => {
|
|
2783
|
-
|
|
2784
|
-
}, [
|
|
2783
|
+
Ue(() => o == null ? void 0 : o(E));
|
|
2784
|
+
}, [E]);
|
|
2785
2785
|
const s = (U, G) => {
|
|
2786
|
-
const u =
|
|
2786
|
+
const u = E === G;
|
|
2787
2787
|
return /* @__PURE__ */ e.createElement(
|
|
2788
2788
|
Ne,
|
|
2789
2789
|
{
|
|
2790
2790
|
...U,
|
|
2791
2791
|
id: `${b.id}-${G}`,
|
|
2792
|
-
onClick: () =>
|
|
2792
|
+
onClick: () => m(G),
|
|
2793
2793
|
appearance: u ? "solid" : "outline",
|
|
2794
|
-
"aria-pressed":
|
|
2794
|
+
"aria-pressed": E === G ? "true" : "false"
|
|
2795
2795
|
}
|
|
2796
2796
|
);
|
|
2797
2797
|
}, R = J("rating-buttons", c(l) ? "dark" : "", A), I = J("rating-buttons-wrapper", a ? "icon-only" : "", A), D = C(null);
|
|
@@ -2799,9 +2799,9 @@ const De = (i, t = 10) => {
|
|
|
2799
2799
|
r,
|
|
2800
2800
|
D,
|
|
2801
2801
|
{
|
|
2802
|
-
status:
|
|
2802
|
+
status: E
|
|
2803
2803
|
},
|
|
2804
|
-
[
|
|
2804
|
+
[E]
|
|
2805
2805
|
);
|
|
2806
2806
|
const j = {
|
|
2807
2807
|
...i,
|
|
@@ -2835,11 +2835,11 @@ const De = (i, t = 10) => {
|
|
|
2835
2835
|
className: o = "",
|
|
2836
2836
|
value: d,
|
|
2837
2837
|
onChange: r,
|
|
2838
|
-
hasError:
|
|
2838
|
+
hasError: g = !1,
|
|
2839
2839
|
hasFeedback: b = !1,
|
|
2840
|
-
feedbackState:
|
|
2841
|
-
feedbackText:
|
|
2842
|
-
...
|
|
2840
|
+
feedbackState: E = "info",
|
|
2841
|
+
feedbackText: N = "",
|
|
2842
|
+
...m
|
|
2843
2843
|
}, s) => {
|
|
2844
2844
|
const R = se(), I = Array.from({ length: Math.max(3, l) }), D = C(null), [j, h] = O(d ? d - 1 : 0), [Y, M] = O(0), U = (L) => {
|
|
2845
2845
|
c(A) && (L.preventDefault(), L.stopPropagation());
|
|
@@ -2864,16 +2864,16 @@ const De = (i, t = 10) => {
|
|
|
2864
2864
|
const T = D.current.querySelector(".star[tabindex = '0']");
|
|
2865
2865
|
T && T.focus();
|
|
2866
2866
|
}
|
|
2867
|
-
|
|
2867
|
+
Ue(() => r == null ? void 0 : r(j + 1));
|
|
2868
2868
|
}, [j]);
|
|
2869
2869
|
const S = J(
|
|
2870
2870
|
"agora-rating-stars",
|
|
2871
2871
|
{ dark: c(n) },
|
|
2872
2872
|
{ "read-only": c(A) },
|
|
2873
2873
|
{
|
|
2874
|
-
"has-error": c(
|
|
2874
|
+
"has-error": c(g),
|
|
2875
2875
|
"has-feedback": c(b),
|
|
2876
|
-
["feedback-" +
|
|
2876
|
+
["feedback-" + E]: c(b) && E
|
|
2877
2877
|
},
|
|
2878
2878
|
o
|
|
2879
2879
|
), F = C(null);
|
|
@@ -2889,7 +2889,7 @@ const De = (i, t = 10) => {
|
|
|
2889
2889
|
{
|
|
2890
2890
|
ref: F,
|
|
2891
2891
|
className: S,
|
|
2892
|
-
...
|
|
2892
|
+
...m,
|
|
2893
2893
|
role: "radiogroup",
|
|
2894
2894
|
...c(t) ? { "aria-label": i == null ? void 0 : i.toString() } : { "aria-labelledby": `label-${R}` }
|
|
2895
2895
|
},
|
|
@@ -2917,11 +2917,11 @@ const De = (i, t = 10) => {
|
|
|
2917
2917
|
/* @__PURE__ */ e.createElement(ae, { name: W, "aria-hidden": !0 })
|
|
2918
2918
|
);
|
|
2919
2919
|
}))),
|
|
2920
|
-
(c(b) || c(
|
|
2921
|
-
|
|
2920
|
+
(c(b) || c(g)) && N && /* @__PURE__ */ e.createElement(
|
|
2921
|
+
pe,
|
|
2922
2922
|
{
|
|
2923
|
-
feedbackState: c(
|
|
2924
|
-
feedbackText:
|
|
2923
|
+
feedbackState: c(g) ? "danger" : E,
|
|
2924
|
+
feedbackText: N,
|
|
2925
2925
|
darkMode: c(n)
|
|
2926
2926
|
}
|
|
2927
2927
|
)
|
|
@@ -2936,16 +2936,14 @@ const De = (i, t = 10) => {
|
|
|
2936
2936
|
headingLevel: o = "h3",
|
|
2937
2937
|
...d
|
|
2938
2938
|
}) => {
|
|
2939
|
-
const [r,
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
});
|
|
2944
|
-
}, g = J("agora-feedback", c(n) ? "darkMode" : "", A), m = {
|
|
2939
|
+
const [r, g] = O(!1), b = (m) => {
|
|
2940
|
+
var s;
|
|
2941
|
+
g(m !== "neutral"), (s = a == null ? void 0 : a.onChange) == null || s.call(a, m);
|
|
2942
|
+
}, E = J("agora-feedback", c(n) ? "darkMode" : "", A), N = {
|
|
2945
2943
|
...a,
|
|
2946
2944
|
darkMode: c(n)
|
|
2947
2945
|
};
|
|
2948
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2946
|
+
return /* @__PURE__ */ e.createElement("div", { className: E, ...d }, (i || t) && /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-5 xl:col-span-6" }, i && /* @__PURE__ */ e.createElement(o, { className: "title" }, i), t && /* @__PURE__ */ e.createElement("p", { className: "subtitle" }, t)), a && /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-3 xl:col-span-3" }, /* @__PURE__ */ e.createElement(Ot, { ...N, onChange: b })), r && l && /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-5 xl:col-span-3" }, /* @__PURE__ */ e.createElement("p", { className: "message" }, l)));
|
|
2949
2947
|
}, Ct = ({ brandImage: i, badgeImage: t }) => /* @__PURE__ */ e.createElement("div", { className: "grid items-center xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32 xs:pt-32 md:pt-64 xs:pb-32 xl:pb-64" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-2 md:col-span-4 xl:col-span-6" }, i.link && i.image && /* @__PURE__ */ e.createElement(
|
|
2950
2948
|
"a",
|
|
2951
2949
|
{
|
|
@@ -3005,7 +3003,7 @@ const De = (i, t = 10) => {
|
|
|
3005
3003
|
}
|
|
3006
3004
|
)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7 xs:py-32 md:py-64" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7" }, t && /* @__PURE__ */ e.createElement("ul", { className: "flex flex-wrap xs:flex-col md:flex-row xl:flex-row md:justify-center xl:justify-end xs:gap-x-32 md:gap-[30px]" }, t.filter((l, n) => n < 8).map((l, n) => {
|
|
3007
3005
|
const A = `useful-${n}`;
|
|
3008
|
-
return /* @__PURE__ */ e.createElement("li", { key: A, className: "py-8" }, /* @__PURE__ */ e.createElement(
|
|
3006
|
+
return /* @__PURE__ */ e.createElement("li", { key: A, className: "py-8" }, /* @__PURE__ */ e.createElement(De, { ...l, darkMode: !0, appearance: "link", variant: "neutral" }));
|
|
3009
3007
|
}))), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7 mt-32" }, /* @__PURE__ */ e.createElement("span", { className: "text-s-regular text-[var(--color-neutral-500)] flex md:justify-center xl:justify-end" }, a)))), Ti = ({
|
|
3010
3008
|
brandImage: i,
|
|
3011
3009
|
badgeImage: t,
|
|
@@ -3017,7 +3015,7 @@ const De = (i, t = 10) => {
|
|
|
3017
3015
|
}) => /* @__PURE__ */ e.createElement("div", { className: "bg-[var(--color-primary-900)]" }, /* @__PURE__ */ e.createElement("div", { className: "container mx-auto" }, /* @__PURE__ */ e.createElement(Ct, { brandImage: i, badgeImage: t }), /* @__PURE__ */ e.createElement("hr", { "aria-hidden": !0, className: "border-1 border-white opacity-5 w-full absolute left-0" }), /* @__PURE__ */ e.createElement(Ht, { caption: a, partnersLogos: l }), /* @__PURE__ */ e.createElement("hr", { "aria-hidden": !0, className: "border-1 border-white opacity-5 w-full absolute left-0" }), /* @__PURE__ */ e.createElement(Bi, { socialsLink: n, usefulLinks: A, copyright: o }))), Pt = ({ title: i, description: t, links: a }) => /* @__PURE__ */ e.createElement("div", { className: "footer-gradient" }, /* @__PURE__ */ e.createElement("div", { className: "container mx-auto" }, /* @__PURE__ */ e.createElement("div", { className: "grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32" }, /* @__PURE__ */ e.createElement("div", { className: "col-span-5 w-[calc(100%+32px)] bg-[var(--color-primary-900)] h-128 self-end xs:hidden md:hidden xl:block" }), /* @__PURE__ */ e.createElement("div", { className: "grid gap-x-32 xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-7 xs:col-span-4 md:col-span-8 xl:col-span-7 xl:col-start-6 xs:pb-32 md:pb-64 xl:pb-64 bg-[var(--color-primary-100)]" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-6 xl:col-start-2 xl:col-span-7" }, /* @__PURE__ */ e.createElement(qe, { "aria-hidden": !0, className: "mb-32" }), i && /* @__PURE__ */ e.createElement("h2", { className: "xs:text-m-bold md:text-l-bold text-[var(--color-primary-900)]" }, i), t && /* @__PURE__ */ e.createElement("p", { className: "text-m-regular text-[var(--color-primary-900)] mt-16" }, t)), a && /* @__PURE__ */ e.createElement("ul", { className: "grid xs:grid-cols-1 md:grid-cols-3-auto xs:gap-0 md:gap-[28px] xs:col-span-4 md:col-span-8 xl:col-start-2 xl:col-span-7 mt-32" }, a.filter((l, n) => n < 3).map((l, n) => {
|
|
3018
3016
|
const A = `link-${n}`;
|
|
3019
3017
|
return /* @__PURE__ */ e.createElement("li", { key: A }, /* @__PURE__ */ e.createElement(
|
|
3020
|
-
|
|
3018
|
+
De,
|
|
3021
3019
|
{
|
|
3022
3020
|
...l,
|
|
3023
3021
|
className: "xs:flex xs:justify-between",
|
|
@@ -3090,7 +3088,7 @@ const De = (i, t = 10) => {
|
|
|
3090
3088
|
), /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(qe, { "aria-hidden": !0, className: "mb-32" }), (i == null ? void 0 : i.title) && /* @__PURE__ */ e.createElement("h2", { className: "xs:text-m-bold md:text-l-bold text-[var(--color-primary-900)]" }, i.title), (i == null ? void 0 : i.description) && /* @__PURE__ */ e.createElement("p", { className: "text-m-regular text-[var(--color-primary-900)] mt-16" }, i.description)), i.links && /* @__PURE__ */ e.createElement("ul", { className: "xs:col-span-4 md:col-span-8 xl:col-span-6 mt-32 inline-flex gap-x-32 xs:flex-col md:flex-row xl:flex-row" }, i.links.filter((o, d) => d < 3).map((o, d) => {
|
|
3091
3089
|
const r = `link-${d}`;
|
|
3092
3090
|
return /* @__PURE__ */ e.createElement("li", { key: r, className: "py-8" }, /* @__PURE__ */ e.createElement(
|
|
3093
|
-
|
|
3091
|
+
De,
|
|
3094
3092
|
{
|
|
3095
3093
|
...o,
|
|
3096
3094
|
className: "xs:flex xs:justify-between",
|
|
@@ -3104,7 +3102,7 @@ const De = (i, t = 10) => {
|
|
|
3104
3102
|
}))), t && /* @__PURE__ */ e.createElement("div", { className: A }, t && /* @__PURE__ */ e.createElement(ft, { contacts: t, contactsOnly: !i && !a, hasCardLinks: a })));
|
|
3105
3103
|
}, xi = (i) => /* @__PURE__ */ e.createElement(e.Fragment, null, (i == null ? void 0 : i.title) && /* @__PURE__ */ e.createElement("h2", { className: "xs:text-m-bold md:text-l-bold text-white" }, i.title), (i == null ? void 0 : i.links) && /* @__PURE__ */ e.createElement("ul", { className: "mt-32" }, i.links.filter((t, a) => a < 5).map((t, a) => {
|
|
3106
3104
|
const l = `link-${a}`;
|
|
3107
|
-
return /* @__PURE__ */ e.createElement("li", { key: l, className: "py-8" }, /* @__PURE__ */ e.createElement(
|
|
3105
|
+
return /* @__PURE__ */ e.createElement("li", { key: l, className: "py-8" }, /* @__PURE__ */ e.createElement(De, { ...t, darkMode: !0, appearance: "link", variant: "neutral" }));
|
|
3108
3106
|
}))), qt = ({
|
|
3109
3107
|
card: i,
|
|
3110
3108
|
cardLinks: t,
|
|
@@ -3145,8 +3143,8 @@ const De = (i, t = 10) => {
|
|
|
3145
3143
|
"aria-hidden": !0,
|
|
3146
3144
|
className: "border-1 border-white opacity-5 md:h-[calc(100%-2px)] xl:h-[calc(100%-2px)] max-md:w-full md:bottom-0 right-0 absolute"
|
|
3147
3145
|
}
|
|
3148
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-4 xl:col-span-4 xs:pt-32 md:pt-64" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-4 xl:col-span-4 xs:py-32 xs:pl-0 md:pt-0 md:pb-64 md:pl-0 xl:pl-32 xl:pb-64 xl:pt-0" }, /* @__PURE__ */ e.createElement(xi, { ...d })))), /* @__PURE__ */ e.createElement("hr", { "aria-hidden": !0, className: "border-1 border-white opacity-5 w-full absolute left-0" }), /* @__PURE__ */ e.createElement("div", { className: "grid xs:justify-items-center md:justify-items-center xl:justify-items-start xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32 py-32" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12" }, /* @__PURE__ */ e.createElement("ul", { className: "flex flex-wrap xs:gap-32 md:gap-[30px]" }, l.filter((r,
|
|
3149
|
-
const b = `logo-${
|
|
3146
|
+
)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-4 xl:col-span-4 xs:pt-32 md:pt-64" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-4 xl:col-span-4 xs:py-32 xs:pl-0 md:pt-0 md:pb-64 md:pl-0 xl:pl-32 xl:pb-64 xl:pt-0" }, /* @__PURE__ */ e.createElement(xi, { ...d })))), /* @__PURE__ */ e.createElement("hr", { "aria-hidden": !0, className: "border-1 border-white opacity-5 w-full absolute left-0" }), /* @__PURE__ */ e.createElement("div", { className: "grid xs:justify-items-center md:justify-items-center xl:justify-items-start xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32 py-32" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12" }, /* @__PURE__ */ e.createElement("ul", { className: "flex flex-wrap xs:gap-32 md:gap-[30px]" }, l.filter((r, g) => g < 10).map((r, g) => {
|
|
3147
|
+
const b = `logo-${g}`;
|
|
3150
3148
|
return /* @__PURE__ */ e.createElement("li", { key: b }, (r == null ? void 0 : r.link) && (r == null ? void 0 : r.image) && /* @__PURE__ */ e.createElement(
|
|
3151
3149
|
"a",
|
|
3152
3150
|
{
|
|
@@ -3165,7 +3163,7 @@ const De = (i, t = 10) => {
|
|
|
3165
3163
|
partnersLogos: o,
|
|
3166
3164
|
socialsLink: d,
|
|
3167
3165
|
usefulLinks: r,
|
|
3168
|
-
copyright:
|
|
3166
|
+
copyright: g
|
|
3169
3167
|
}) => /* @__PURE__ */ e.createElement("div", { className: "agora-footer" }, (i || t || !a) && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(qt, { card: i, cardLinks: a, contacts: t }), (i || a || t) && /* @__PURE__ */ e.createElement(
|
|
3170
3168
|
"hr",
|
|
3171
3169
|
{
|
|
@@ -3181,7 +3179,7 @@ const De = (i, t = 10) => {
|
|
|
3181
3179
|
partnersLogos: o,
|
|
3182
3180
|
socialsLink: d,
|
|
3183
3181
|
usefulLinks: r,
|
|
3184
|
-
copyright:
|
|
3182
|
+
copyright: g
|
|
3185
3183
|
}
|
|
3186
3184
|
)), !i && a && /* @__PURE__ */ e.createElement(
|
|
3187
3185
|
$t,
|
|
@@ -3193,13 +3191,13 @@ const De = (i, t = 10) => {
|
|
|
3193
3191
|
partnersLogos: o,
|
|
3194
3192
|
socialsLink: d,
|
|
3195
3193
|
usefulLinks: r,
|
|
3196
|
-
copyright:
|
|
3194
|
+
copyright: g
|
|
3197
3195
|
}
|
|
3198
3196
|
)), _t = ({ letters: i, ...t }, a) => {
|
|
3199
3197
|
const l = J("navElement"), n = J("glossary-container");
|
|
3200
3198
|
return /* @__PURE__ */ e.createElement("nav", { ...t, className: l, ref: a }, /* @__PURE__ */ e.createElement("div", { className: n }, i == null ? void 0 : i.map(({ letter: A, status: o, ...d }) => {
|
|
3201
|
-
const r = o === "disabled", b = J("letter", { "letter-disabled": r }, { "letter-selected": o === "selected" }),
|
|
3202
|
-
return r ? /* @__PURE__ */ e.createElement("span", { key: `${A}-${
|
|
3199
|
+
const r = o === "disabled", b = J("letter", { "letter-disabled": r }, { "letter-selected": o === "selected" }), E = `#${A}`;
|
|
3200
|
+
return r ? /* @__PURE__ */ e.createElement("span", { key: `${A}-${E}`, className: b, "aria-disabled": "true" }, A) : /* @__PURE__ */ e.createElement("a", { key: `${A}-${E}`, ...d, className: b, href: E }, A);
|
|
3203
3201
|
})));
|
|
3204
3202
|
}, un = re(_t), pi = ({ name: i = "no-icon", iconHover: t = "no-icon", iconAltText: a, className: l, hasChildren: n, darkMode: A }) => {
|
|
3205
3203
|
const o = J("icon-wrapper", l), d = J("line", {
|
|
@@ -3234,13 +3232,13 @@ const De = (i, t = 10) => {
|
|
|
3234
3232
|
"text-m-semibold": i === "secondary" || i === "menu",
|
|
3235
3233
|
"text-white": c(a),
|
|
3236
3234
|
"text-[var(--color-neutral-900)]": !c(a)
|
|
3237
|
-
}), r = () => i === "search" && !c(n["aria-expanded"]) ? "agora-line-search" : i === "menu" && !c(n["aria-expanded"]) ? "agora-line-menu" : i === "user" && !c(n["aria-expanded"]) ? "agora-line-user" : (i === "user" && c(n["aria-expanded"]), "agora-line-x"),
|
|
3235
|
+
}), r = () => i === "search" && !c(n["aria-expanded"]) ? "agora-line-search" : i === "menu" && !c(n["aria-expanded"]) ? "agora-line-menu" : i === "user" && !c(n["aria-expanded"]) ? "agora-line-user" : (i === "user" && c(n["aria-expanded"]), "agora-line-x"), g = () => i === "search" && !c(n["aria-expanded"]) ? "agora-solid-search" : i === "menu" && !c(n["aria-expanded"]) ? "agora-solid-menu" : i === "user" && !c(n["aria-expanded"]) ? "agora-solid-user" : (i === "user" && c(n["aria-expanded"]), "agora-solid-x");
|
|
3238
3236
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, !c(l) && (i === "search" || i === "menu" || i === "user" || i === "close") && /* @__PURE__ */ e.createElement(
|
|
3239
3237
|
pi,
|
|
3240
3238
|
{
|
|
3241
3239
|
className: A,
|
|
3242
3240
|
name: r(),
|
|
3243
|
-
iconHover:
|
|
3241
|
+
iconHover: g(),
|
|
3244
3242
|
hasChildren: !!t,
|
|
3245
3243
|
darkMode: a
|
|
3246
3244
|
}
|
|
@@ -3255,7 +3253,7 @@ const De = (i, t = 10) => {
|
|
|
3255
3253
|
}
|
|
3256
3254
|
));
|
|
3257
3255
|
}, ea = ({ itemType: i = "primary", darkMode: t = !1, actionItem: a = !1, children: l, className: n, noIcons: A = !1, vertically: o = !1, ...d }, r) => {
|
|
3258
|
-
const
|
|
3256
|
+
const g = J(
|
|
3259
3257
|
{
|
|
3260
3258
|
"agora-menu-item text-m-regular text-white darkMode default": c(t) && i === "primary",
|
|
3261
3259
|
"agora-menu-item text-m-regular text-white darkMode secondary ": c(t) && i !== "primary",
|
|
@@ -3266,11 +3264,11 @@ const De = (i, t = 10) => {
|
|
|
3266
3264
|
vertically: c(o) && (i === "primary" || i === "secondary")
|
|
3267
3265
|
},
|
|
3268
3266
|
n
|
|
3269
|
-
), [b,
|
|
3270
|
-
const { current: Y } =
|
|
3267
|
+
), [b, E] = O(c(d["aria-expanded"])), N = C(null), m = () => {
|
|
3268
|
+
const { current: Y } = N;
|
|
3271
3269
|
if (Y != null && Y.hasAttribute("aria-expanded")) {
|
|
3272
3270
|
const M = !c((Y == null ? void 0 : Y.getAttribute("aria-expanded")) ?? !1);
|
|
3273
|
-
Y == null || Y.setAttribute("aria-expanded", M.toString()),
|
|
3271
|
+
Y == null || Y.setAttribute("aria-expanded", M.toString()), E(M);
|
|
3274
3272
|
}
|
|
3275
3273
|
}, s = (Y) => {
|
|
3276
3274
|
var M, U;
|
|
@@ -3290,12 +3288,12 @@ const De = (i, t = 10) => {
|
|
|
3290
3288
|
}, h = (Y) => {
|
|
3291
3289
|
var U, G, u, p;
|
|
3292
3290
|
if (Y.detail > 0) {
|
|
3293
|
-
(U = d.onClick) == null || U.call(d, Y), c(A) || Y.preventDefault(),
|
|
3291
|
+
(U = d.onClick) == null || U.call(d, Y), c(A) || Y.preventDefault(), m();
|
|
3294
3292
|
return;
|
|
3295
3293
|
}
|
|
3296
|
-
|
|
3297
|
-
const M = ((G =
|
|
3298
|
-
if (M && ((u =
|
|
3294
|
+
m();
|
|
3295
|
+
const M = ((G = N.current) == null ? void 0 : G.getAttribute("data-custom-triggered-click")) === "true";
|
|
3296
|
+
if (M && ((u = N.current) == null || u.removeAttribute("data-custom-triggered-click")), !M) {
|
|
3299
3297
|
Y.preventDefault();
|
|
3300
3298
|
return;
|
|
3301
3299
|
}
|
|
@@ -3304,13 +3302,13 @@ const De = (i, t = 10) => {
|
|
|
3304
3302
|
return we(
|
|
3305
3303
|
r,
|
|
3306
3304
|
() => ({
|
|
3307
|
-
current:
|
|
3308
|
-
toggleMenuItem: () =>
|
|
3305
|
+
current: N.current,
|
|
3306
|
+
toggleMenuItem: () => m()
|
|
3309
3307
|
}),
|
|
3310
|
-
[
|
|
3308
|
+
[N]
|
|
3311
3309
|
), ie(() => {
|
|
3312
3310
|
const Y = (M) => {
|
|
3313
|
-
M.code === "Escape" &&
|
|
3311
|
+
M.code === "Escape" && E(!1);
|
|
3314
3312
|
};
|
|
3315
3313
|
return document.addEventListener("keydown", Y), () => {
|
|
3316
3314
|
document.removeEventListener("keydown", Y);
|
|
@@ -3320,7 +3318,7 @@ const De = (i, t = 10) => {
|
|
|
3320
3318
|
{
|
|
3321
3319
|
...d,
|
|
3322
3320
|
role: i === "menu" ? "button" : "menuitem",
|
|
3323
|
-
className:
|
|
3321
|
+
className: g,
|
|
3324
3322
|
type: "button",
|
|
3325
3323
|
onClick: h,
|
|
3326
3324
|
onKeyDown: D,
|
|
@@ -3328,7 +3326,7 @@ const De = (i, t = 10) => {
|
|
|
3328
3326
|
onMouseDown: s,
|
|
3329
3327
|
onMouseUp: R,
|
|
3330
3328
|
onMouseLeave: I,
|
|
3331
|
-
ref:
|
|
3329
|
+
ref: N
|
|
3332
3330
|
},
|
|
3333
3331
|
/* @__PURE__ */ e.createElement(Yi, { ...d, noIcons: A, itemType: i, darkMode: t, "aria-expanded": b }, l)
|
|
3334
3332
|
), !a && i !== "avatar" && /* @__PURE__ */ e.createElement(
|
|
@@ -3337,8 +3335,8 @@ const De = (i, t = 10) => {
|
|
|
3337
3335
|
...d,
|
|
3338
3336
|
role: i === "menu" ? "link" : "menuitem",
|
|
3339
3337
|
tabIndex: 0,
|
|
3340
|
-
className:
|
|
3341
|
-
ref:
|
|
3338
|
+
className: g,
|
|
3339
|
+
ref: N,
|
|
3342
3340
|
onClick: h,
|
|
3343
3341
|
onKeyDown: D,
|
|
3344
3342
|
onKeyUp: j,
|
|
@@ -3357,7 +3355,7 @@ const De = (i, t = 10) => {
|
|
|
3357
3355
|
"aria-current": d["aria-current"],
|
|
3358
3356
|
"aria-label": d["aria-label"],
|
|
3359
3357
|
role: "menuitem",
|
|
3360
|
-
className:
|
|
3358
|
+
className: g,
|
|
3361
3359
|
onClick: h,
|
|
3362
3360
|
onKeyDown: D,
|
|
3363
3361
|
onKeyUp: j,
|
|
@@ -3370,9 +3368,9 @@ const De = (i, t = 10) => {
|
|
|
3370
3368
|
const t = i.previousSibling;
|
|
3371
3369
|
t.ariaExpanded && c(t.ariaExpanded) && t.click();
|
|
3372
3370
|
}, ia = (i, t) => {
|
|
3373
|
-
var a, l, n, A, o, d, r,
|
|
3374
|
-
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") && !((
|
|
3375
|
-
(
|
|
3371
|
+
var a, l, n, A, o, d, r, g, b, E, N, m, s, R, I, D, j, h, Y, M, U;
|
|
3372
|
+
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
|
+
(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) => {
|
|
3376
3374
|
G.classList.remove("!hidden");
|
|
3377
3375
|
});
|
|
3378
3376
|
return;
|
|
@@ -3467,7 +3465,7 @@ const De = (i, t = 10) => {
|
|
|
3467
3465
|
"grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32": i.submenuType === "language" || i.submenuType === "platform",
|
|
3468
3466
|
"grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-x-32 gap-y-16": i.submenuType === "topics",
|
|
3469
3467
|
"xs:w-full md:w-auto xl:w-auto gap-x-32 gap-y-16 flex xs:flex-col md:flex-row xl:flex-row flex-wrap": i.submenuType === "link"
|
|
3470
|
-
}),
|
|
3468
|
+
}), g = J({
|
|
3471
3469
|
"h-full xs:col-span-4 md:col-span-4 xl:col-span-3 !mb-0": i.submenuType === "language" || i.submenuType === "platform",
|
|
3472
3470
|
"xs:col-span-4 md:col-span-4 xl:col-span-3": i.submenuType === "topics"
|
|
3473
3471
|
});
|
|
@@ -3483,8 +3481,8 @@ const De = (i, t = 10) => {
|
|
|
3483
3481
|
onClick: i.handleBackButton
|
|
3484
3482
|
},
|
|
3485
3483
|
i.backButtonLabel
|
|
3486
|
-
), /* @__PURE__ */ e.createElement("div", { className: n, style: A }, c(i.hasSubmenuItemsSectionTitle) && i.submenuItemsSectionTitle && /* @__PURE__ */ e.createElement("p", { className: "text-m-semibold text-[var(--color-neutral-500)] mb-32" }, i.submenuItemsSectionTitle), c(i.hasSubmenuItemsTitle) && i.submenuItemsTitle && /* @__PURE__ */ e.createElement("h2", { className: "text-xl-bold text-[var(--color-primary-900)] mb-32" }, i.submenuItemsTitle), /* @__PURE__ */ e.createElement("ul", { className: r, role: "menu", "aria-label": i.submenuAriaLabel }, o.map((b,
|
|
3487
|
-
const
|
|
3484
|
+
), /* @__PURE__ */ e.createElement("div", { className: n, style: A }, c(i.hasSubmenuItemsSectionTitle) && i.submenuItemsSectionTitle && /* @__PURE__ */ e.createElement("p", { className: "text-m-semibold text-[var(--color-neutral-500)] mb-32" }, i.submenuItemsSectionTitle), c(i.hasSubmenuItemsTitle) && i.submenuItemsTitle && /* @__PURE__ */ e.createElement("h2", { className: "text-xl-bold text-[var(--color-primary-900)] mb-32" }, i.submenuItemsTitle), /* @__PURE__ */ e.createElement("ul", { className: r, role: "menu", "aria-label": i.submenuAriaLabel }, o.map((b, E) => {
|
|
3485
|
+
const N = `menu-options-nav-${E}`, m = J(
|
|
3488
3486
|
"min-h-[60px]",
|
|
3489
3487
|
{
|
|
3490
3488
|
"agora-rounded-leading-icon full-image !py-[6px] !min-h-[44px] language": i.submenuType === "language",
|
|
@@ -3503,7 +3501,7 @@ const De = (i, t = 10) => {
|
|
|
3503
3501
|
var h;
|
|
3504
3502
|
t(j.currentTarget), a(!1), document.body.classList.remove("overflow-hidden"), l == null || l(j), (h = b.onClick) == null || h.call(b, j);
|
|
3505
3503
|
}, D = i.submenuType === "topics" ? "primary" : "neutral";
|
|
3506
|
-
return /* @__PURE__ */ e.createElement("li", { key:
|
|
3504
|
+
return /* @__PURE__ */ e.createElement("li", { key: N, className: g, role: "none" }, c(i.actionItem) ? /* @__PURE__ */ e.createElement(
|
|
3507
3505
|
Ne,
|
|
3508
3506
|
{
|
|
3509
3507
|
appearance: b.appearance ?? "link",
|
|
@@ -3513,11 +3511,11 @@ const De = (i, t = 10) => {
|
|
|
3513
3511
|
trailingIconHover: b.trailingIconHover ?? R(),
|
|
3514
3512
|
role: "menuitem",
|
|
3515
3513
|
...b,
|
|
3516
|
-
className:
|
|
3514
|
+
className: m,
|
|
3517
3515
|
onClick: I
|
|
3518
3516
|
}
|
|
3519
3517
|
) : /* @__PURE__ */ e.createElement(
|
|
3520
|
-
|
|
3518
|
+
De,
|
|
3521
3519
|
{
|
|
3522
3520
|
appearance: b.appearance ?? "link",
|
|
3523
3521
|
variant: b.variant ?? D,
|
|
@@ -3526,7 +3524,7 @@ const De = (i, t = 10) => {
|
|
|
3526
3524
|
trailingIconHover: b.trailingIconHover ?? R(),
|
|
3527
3525
|
role: "menuitem",
|
|
3528
3526
|
...b,
|
|
3529
|
-
className:
|
|
3527
|
+
className: m,
|
|
3530
3528
|
onClick: I
|
|
3531
3529
|
}
|
|
3532
3530
|
));
|
|
@@ -3541,14 +3539,14 @@ const De = (i, t = 10) => {
|
|
|
3541
3539
|
hasVoiceActionButton: o = !0,
|
|
3542
3540
|
voiceActionAltText: d = "",
|
|
3543
3541
|
searchActionAltText: r = "",
|
|
3544
|
-
onVoiceActivate:
|
|
3542
|
+
onVoiceActivate: g,
|
|
3545
3543
|
onSearchActivate: b,
|
|
3546
|
-
onChange:
|
|
3547
|
-
...
|
|
3548
|
-
},
|
|
3544
|
+
onChange: E,
|
|
3545
|
+
...N
|
|
3546
|
+
}, m) => {
|
|
3549
3547
|
const s = C(null), R = C(null), I = C(null);
|
|
3550
3548
|
Je(
|
|
3551
|
-
|
|
3549
|
+
m,
|
|
3552
3550
|
s,
|
|
3553
3551
|
{
|
|
3554
3552
|
searchActionButton: R,
|
|
@@ -3556,13 +3554,13 @@ const De = (i, t = 10) => {
|
|
|
3556
3554
|
},
|
|
3557
3555
|
[s, R, I]
|
|
3558
3556
|
);
|
|
3559
|
-
const D = se(), j = { ...
|
|
3557
|
+
const D = se(), j = { ...N };
|
|
3560
3558
|
j.id = j.id ?? D;
|
|
3561
3559
|
const [h, Y] = O(j.value), M = (v) => {
|
|
3562
3560
|
const { value: S } = v.currentTarget;
|
|
3563
|
-
Y(S),
|
|
3561
|
+
Y(S), E == null || E(v);
|
|
3564
3562
|
}, U = () => {
|
|
3565
|
-
|
|
3563
|
+
g == null || g();
|
|
3566
3564
|
}, G = () => {
|
|
3567
3565
|
b == null || b((h == null ? void 0 : h.toString()) ?? "");
|
|
3568
3566
|
}, u = J("agora-input-search-bar", i), p = J("input-label-wrapper flex items-end", {
|
|
@@ -3612,7 +3610,7 @@ const De = (i, t = 10) => {
|
|
|
3612
3610
|
var t, a, l;
|
|
3613
3611
|
return /* @__PURE__ */ e.createElement("div", { className: "grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-start-1 xl:col-end-7" }, i.hasTitle && i.title && /* @__PURE__ */ e.createElement("p", { className: "xs:text-l-bold md:text-xl-bold xl:text-xl-bold text-[var(--color-primary-900)]" }, i.title)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-start-1 xl:col-end-7" }, !i.inputSearchBarPlaceholder && i.inputSearchBar && /* @__PURE__ */ e.createElement(da, { ...i.inputSearchBar }), !i.inputSearchBar && i.inputSearchBarPlaceholder), i.hasLinkList && ((t = i.linkListContent) == null ? void 0 : t.linkList) && /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-start-8 xl:col-end-13 xs:mt-32 md:mt-32 xl:mt-0" }, /* @__PURE__ */ e.createElement("p", { className: "xs:text-m-bold md:text-l-bold xl:text-l-bold text-[var(--color-primary-900)] mb-16" }, (a = i.linkListContent) == null ? void 0 : a.linkListTitle), /* @__PURE__ */ e.createElement(zi, { className: "xs:block md:flex xl:block gap-32 flex-wrap" }, (l = i.linkListContent) == null ? void 0 : l.linkList.map((n, A) => {
|
|
3614
3612
|
const o = `search-content-${A}`;
|
|
3615
|
-
return /* @__PURE__ */ e.createElement("li", { key: o, className: "text-m-regular text-[var(--color-neutral-900)] mb-8 last:mb-0" }, /* @__PURE__ */ e.createElement(
|
|
3613
|
+
return /* @__PURE__ */ e.createElement("li", { key: o, className: "text-m-regular text-[var(--color-neutral-900)] mb-8 last:mb-0" }, /* @__PURE__ */ e.createElement(De, { ...n, appearance: "link", variant: "neutral" }));
|
|
3616
3614
|
}))));
|
|
3617
3615
|
}, We = ({
|
|
3618
3616
|
submenu: i,
|
|
@@ -3648,9 +3646,9 @@ const De = (i, t = 10) => {
|
|
|
3648
3646
|
menuItemId: o,
|
|
3649
3647
|
menuItemRef: d,
|
|
3650
3648
|
setBackdropVisible: r,
|
|
3651
|
-
submenuLevel3Height:
|
|
3649
|
+
submenuLevel3Height: g
|
|
3652
3650
|
}) => {
|
|
3653
|
-
var b,
|
|
3651
|
+
var b, E;
|
|
3654
3652
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, ((b = i.relatedNavMenu) == null ? void 0 : b.menuItemsHeaderNavigation) && Object.keys(l).length > 1 && /* @__PURE__ */ e.createElement("div", { className: "agora-header-burger-navigation-options-submenu-level-2 overflow-hidden hidden sticky w-full right-0 z-sticky shadow-bottom-high" }, c(a) && t && /* @__PURE__ */ e.createElement(
|
|
3655
3653
|
Ne,
|
|
3656
3654
|
{
|
|
@@ -3660,34 +3658,34 @@ const De = (i, t = 10) => {
|
|
|
3660
3658
|
leadingIcon: "agora-line-arrow-left-anchor",
|
|
3661
3659
|
leadingIconHover: "agora-solid-arrow-left-anchor",
|
|
3662
3660
|
className: "xs:mx-32 md:mx-64 xl:mx-64 xs:mt-16 md:mt-32 xl:mt-32",
|
|
3663
|
-
onClick: (
|
|
3664
|
-
var
|
|
3665
|
-
n == null || n(
|
|
3661
|
+
onClick: (N) => {
|
|
3662
|
+
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((j) => {
|
|
3666
3664
|
var h, Y, M, U, G, u, p, w, v, S, F;
|
|
3667
|
-
j.classList.remove("!hidden"), (Y = (h =
|
|
3665
|
+
j.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"), (u = (G = (U = N.currentTarget.parentElement) == null ? void 0 : U.parentElement) == null ? void 0 : G.parentElement) == null || u.classList.add("fade-left-right"), (F = (S = (v = (w = (p = N.currentTarget.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : w.parentElement) == null ? void 0 : v.parentElement) == null ? void 0 : S.parentElement) == null || F.classList.add("pt-32");
|
|
3668
3666
|
}));
|
|
3669
3667
|
}
|
|
3670
3668
|
},
|
|
3671
3669
|
t
|
|
3672
|
-
), /* @__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" }, (
|
|
3670
|
+
), /* @__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) => {
|
|
3673
3671
|
var I, D, j, h, Y, M;
|
|
3674
|
-
const s = `${o}-submenu-${
|
|
3672
|
+
const s = `${o}-submenu-${m}`, R = J(
|
|
3675
3673
|
"agora-header-burger-navigation-options-submenu-level-3 overflow-hidden hidden sticky w-full right-0 z-sticky shadow-bottom-high",
|
|
3676
3674
|
{
|
|
3677
|
-
"bg-[var(--color-neutral-50)]": (I =
|
|
3678
|
-
"bg-[var(--color-neutral-100)]": !((D =
|
|
3675
|
+
"bg-[var(--color-neutral-50)]": (I = N.submenuItem) == null ? void 0 : I.highlightItems,
|
|
3676
|
+
"bg-[var(--color-neutral-100)]": !((D = N.submenuItem) != null && D.highlightItems)
|
|
3679
3677
|
}
|
|
3680
3678
|
);
|
|
3681
3679
|
return /* @__PURE__ */ e.createElement("li", { key: s, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
3682
3680
|
ke,
|
|
3683
3681
|
{
|
|
3684
|
-
...
|
|
3682
|
+
...N.menuItem,
|
|
3685
3683
|
ref: d,
|
|
3686
3684
|
itemType: "secondary",
|
|
3687
3685
|
vertically: !0,
|
|
3688
3686
|
onClick: (U) => {
|
|
3689
3687
|
var G, u, p, w;
|
|
3690
|
-
(u = (G =
|
|
3688
|
+
(u = (G = N.menuItem).onClick) == null || u.call(G, U), U.currentTarget.nextElementSibling && ((w = (p = U.currentTarget.parentElement) == null ? void 0 : p.parentElement) == null || w.querySelectorAll(".agora-menu-item").forEach((v) => {
|
|
3691
3689
|
var S, F, L, T, k, V, K, W, B, z, q, te, y, X, x, Q, H;
|
|
3692
3690
|
v.classList.add("!hidden"), (L = (F = (S = v.parentElement) == null ? void 0 : S.parentElement) == null ? void 0 : F.previousElementSibling) == null || L.classList.add("hidden"), (K = (V = (k = (T = v.parentElement) == null ? void 0 : T.parentElement) == null ? void 0 : k.parentElement) == null ? void 0 : V.previousElementSibling) == null || K.classList.add("hidden"), (q = (z = (B = (W = v.parentElement) == null ? void 0 : W.parentElement) == null ? void 0 : B.previousElementSibling) == null ? void 0 : z.previousElementSibling) == null || q.classList.add(
|
|
3693
3691
|
"hidden"
|
|
@@ -3697,7 +3695,7 @@ const De = (i, t = 10) => {
|
|
|
3697
3695
|
})), Se(U, r);
|
|
3698
3696
|
}
|
|
3699
3697
|
}
|
|
3700
|
-
), ((j =
|
|
3698
|
+
), ((j = N == null ? void 0 : N.submenuItem) == null ? void 0 : j.submenuItems) && /* @__PURE__ */ e.createElement("div", { className: R }, c(a) && t && /* @__PURE__ */ e.createElement(
|
|
3701
3699
|
Ne,
|
|
3702
3700
|
{
|
|
3703
3701
|
variant: "neutral",
|
|
@@ -3723,27 +3721,27 @@ const De = (i, t = 10) => {
|
|
|
3723
3721
|
"div",
|
|
3724
3722
|
{
|
|
3725
3723
|
className: "overflow-y-auto overflow-x-hidden [&>*:nth-child(2)]:pt-16 xl:[&>*:nth-child(2)]:mx-64",
|
|
3726
|
-
style: { maxHeight: `calc(100vh - ${
|
|
3724
|
+
style: { maxHeight: `calc(100vh - ${g}px)` }
|
|
3727
3725
|
},
|
|
3728
3726
|
/* @__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),
|
|
3729
3727
|
/* @__PURE__ */ e.createElement(
|
|
3730
3728
|
We,
|
|
3731
3729
|
{
|
|
3732
|
-
submenu:
|
|
3730
|
+
submenu: N == null ? void 0 : N.submenuItem,
|
|
3733
3731
|
closeOtherMenuItemOpened: he,
|
|
3734
3732
|
setBackdropVisible: r
|
|
3735
3733
|
}
|
|
3736
3734
|
),
|
|
3737
|
-
((h =
|
|
3735
|
+
((h = N == null ? void 0 : N.submenuItem) == null ? void 0 : h.highlightItems) && /* @__PURE__ */ e.createElement(
|
|
3738
3736
|
"div",
|
|
3739
3737
|
{
|
|
3740
|
-
"aria-label": (Y =
|
|
3738
|
+
"aria-label": (Y = N == null ? void 0 : N.submenuItem) == null ? void 0 : Y.highlightItems.submenuAriaLabel,
|
|
3741
3739
|
className: "bg-[var(--color-neutral-100)] xl:[&>*:nth-child(1)]:mx-64"
|
|
3742
3740
|
},
|
|
3743
3741
|
/* @__PURE__ */ e.createElement(
|
|
3744
3742
|
We,
|
|
3745
3743
|
{
|
|
3746
|
-
submenu: (M =
|
|
3744
|
+
submenu: (M = N == null ? void 0 : N.submenuItem) == null ? void 0 : M.highlightItems,
|
|
3747
3745
|
closeOtherMenuItemOpened: he,
|
|
3748
3746
|
setBackdropVisible: r,
|
|
3749
3747
|
className: "flex flex-wrap gap-32 w-full"
|
|
@@ -3763,25 +3761,25 @@ const De = (i, t = 10) => {
|
|
|
3763
3761
|
submenuLevel2Height: d,
|
|
3764
3762
|
submenuLevel3Height: r
|
|
3765
3763
|
}) => {
|
|
3766
|
-
var
|
|
3767
|
-
const
|
|
3764
|
+
var N;
|
|
3765
|
+
const g = se(), b = C(null), E = J(
|
|
3768
3766
|
"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"
|
|
3769
3767
|
);
|
|
3770
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, i.menuItemsHeaderNavigation && /* @__PURE__ */ e.createElement("div", { style: { maxHeight: `calc(100vh - ${t}px)` }, className:
|
|
3768
|
+
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) => {
|
|
3771
3769
|
var j, h, Y, M, U;
|
|
3772
|
-
const R = `${
|
|
3770
|
+
const R = `${g}-menu-${s}`, I = J(
|
|
3773
3771
|
"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",
|
|
3774
3772
|
{
|
|
3775
|
-
"bg-[var(--color-neutral-50)]": (j =
|
|
3776
|
-
"bg-[var(--color-neutral-100)]": !((h =
|
|
3773
|
+
"bg-[var(--color-neutral-50)]": (j = m.submenuItem) == null ? void 0 : j.highlightItems,
|
|
3774
|
+
"bg-[var(--color-neutral-100)]": !((h = m.submenuItem) != null && h.highlightItems)
|
|
3777
3775
|
}
|
|
3778
3776
|
), D = {
|
|
3779
|
-
...
|
|
3780
|
-
...(M = (Y =
|
|
3777
|
+
...m.submenuItem,
|
|
3778
|
+
...(M = (Y = m.relatedNavMenu) == null ? void 0 : Y.menuItemsHeaderNavigation) == null ? void 0 : M.map((G) => G.menuItem)
|
|
3781
3779
|
};
|
|
3782
|
-
return D.hasSubmenuItemsSectionTitle = !0, D.submenuItemsSectionTitle =
|
|
3780
|
+
return D.hasSubmenuItemsSectionTitle = !0, D.submenuItemsSectionTitle = m.menuItem.children, D.backButtonLabel = a, D.hasBackButton = l, D.handleBackButton = (G) => {
|
|
3783
3781
|
var u, p, w, v, S, F, L, T, k;
|
|
3784
|
-
(p = (u =
|
|
3782
|
+
(p = (u = m.submenuItem) == null ? void 0 : u.handleBackButton) == null || p.call(u, G), (w = G.currentTarget.parentElement) != null && w.parentElement && ((L = (F = (S = (v = G.currentTarget.parentElement) == null ? void 0 : v.parentElement) == null ? void 0 : S.parentElement) == null ? void 0 : F.parentElement) == null || L.querySelectorAll(".agora-menu-item").forEach((V) => {
|
|
3785
3783
|
var K, W, B, z, q, te, y, X, x, Q, H, _, me, P;
|
|
3786
3784
|
V.classList.remove("!hidden"), (W = (K = G.currentTarget.parentElement) == null ? void 0 : K.parentElement) == null || W.classList.remove("fade-right-left"), (z = (B = G.currentTarget.parentElement) == null ? void 0 : B.parentElement) == null || z.classList.add("hidden"), (X = (y = (te = (q = G.currentTarget.parentElement) == null ? void 0 : q.parentElement) == null ? void 0 : te.parentElement) == null ? void 0 : y.parentElement) == null || X.classList.add("fade-left-right"), (P = (me = (_ = (H = (Q = (x = G.currentTarget.parentElement) == null ? void 0 : x.parentElement) == null ? void 0 : Q.parentElement) == null ? void 0 : H.parentElement) == null ? void 0 : _.parentElement) == null ? void 0 : me.parentElement) == null || P.classList.add(
|
|
3787
3785
|
"pt-32"
|
|
@@ -3790,14 +3788,14 @@ const De = (i, t = 10) => {
|
|
|
3790
3788
|
}, /* @__PURE__ */ e.createElement("li", { key: R, role: "none", className: "overflow-hidden" }, /* @__PURE__ */ e.createElement(
|
|
3791
3789
|
ke,
|
|
3792
3790
|
{
|
|
3793
|
-
...
|
|
3791
|
+
...m.menuItem,
|
|
3794
3792
|
ref: b,
|
|
3795
|
-
noIcons: (U =
|
|
3793
|
+
noIcons: (U = m.relatedNavMenu) != null && U.menuItemsHeaderNavigation ? !1 : m.menuItem.noIcons,
|
|
3796
3794
|
itemType: "primary",
|
|
3797
3795
|
vertically: !0,
|
|
3798
3796
|
onClick: (G) => {
|
|
3799
3797
|
var u, p, w, v, S, F, L, T, k;
|
|
3800
|
-
if ((p = (u =
|
|
3798
|
+
if ((p = (u = m.menuItem).onClick) == null || p.call(u, G), G.currentTarget.nextElementSibling) {
|
|
3801
3799
|
(v = (w = G.currentTarget.parentElement) == null ? void 0 : w.parentElement) == null || v.querySelectorAll(".agora-menu-item").forEach((K) => {
|
|
3802
3800
|
var W, B, z;
|
|
3803
3801
|
K.classList.add("!hidden"), (W = G.currentTarget.nextElementSibling) == null || W.classList.add("fade-right-left"), (z = (B = G.currentTarget.parentElement) == null ? void 0 : B.parentElement) == null || z.classList.remove("fade-left-right");
|
|
@@ -3839,13 +3837,13 @@ const De = (i, t = 10) => {
|
|
|
3839
3837
|
)), /* @__PURE__ */ e.createElement(
|
|
3840
3838
|
Na,
|
|
3841
3839
|
{
|
|
3842
|
-
item:
|
|
3840
|
+
item: m,
|
|
3843
3841
|
backButtonLabelBurger: a,
|
|
3844
3842
|
hasBackButtonBurger: l,
|
|
3845
3843
|
itemsSubmenuClone: D,
|
|
3846
3844
|
handleBackButtonBurger: o,
|
|
3847
3845
|
submenuLevel2Height: d,
|
|
3848
|
-
menuItemId:
|
|
3846
|
+
menuItemId: g,
|
|
3849
3847
|
menuItemRef: b,
|
|
3850
3848
|
setBackdropVisible: n,
|
|
3851
3849
|
submenuLevel3Height: r
|
|
@@ -3862,31 +3860,31 @@ const De = (i, t = 10) => {
|
|
|
3862
3860
|
backButtonLabelBurger: o,
|
|
3863
3861
|
handleBackButtonBurger: d
|
|
3864
3862
|
}) => {
|
|
3865
|
-
const [r,
|
|
3863
|
+
const [r, g] = O(0), [b, E] = O(0), [N, m] = O(0), [s, R] = O(0), I = (M, U, G, u, p, w) => {
|
|
3866
3864
|
const v = (M == null ? void 0 : M.clientHeight) ?? 0;
|
|
3867
|
-
|
|
3865
|
+
g(U + v);
|
|
3868
3866
|
const S = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingTop) : 0, F = G != null && G.children[0] ? parseInt(getComputedStyle(G == null ? void 0 : G.children[0]).paddingBottom) : 0, L = u ? parseInt(getComputedStyle(u).marginBottom) : 0, T = p ? parseInt(getComputedStyle(p).marginTop) : 0, k = w ? parseInt(getComputedStyle(w).marginTop) : 0;
|
|
3869
|
-
|
|
3867
|
+
E(
|
|
3870
3868
|
U + v + S + F + L + (u == null ? void 0 : u.getBoundingClientRect().height)
|
|
3871
|
-
),
|
|
3869
|
+
), m(
|
|
3872
3870
|
U + v + T + (p == null ? void 0 : p.getBoundingClientRect().height)
|
|
3873
3871
|
), R(
|
|
3874
3872
|
U + v + k + (w == null ? void 0 : w.getBoundingClientRect().height)
|
|
3875
3873
|
);
|
|
3876
3874
|
}, D = (M, U, G, u) => {
|
|
3877
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, S = u ? parseInt(getComputedStyle(u).marginBottom) : 0;
|
|
3878
|
-
|
|
3876
|
+
E(
|
|
3879
3877
|
U + p + w + v + S + (u == null ? void 0 : u.getBoundingClientRect().height)
|
|
3880
3878
|
);
|
|
3881
3879
|
}, j = (M, U, G) => {
|
|
3882
3880
|
const u = (M == null ? void 0 : M.clientHeight) ?? 0, p = G ? parseInt(getComputedStyle(G).marginTop) : 0;
|
|
3883
|
-
|
|
3881
|
+
m(
|
|
3884
3882
|
U + u + p + (G == null ? void 0 : G.getBoundingClientRect().height)
|
|
3885
3883
|
);
|
|
3886
3884
|
}, h = (M, U, G, u, p) => {
|
|
3887
3885
|
var F;
|
|
3888
3886
|
const w = (U == null ? void 0 : U.clientHeight) ?? 0, v = p ? parseInt(getComputedStyle(p).marginTop) : 0;
|
|
3889
|
-
(((F = M.oldValue) == null ? void 0 : F.split(" ")) ?? []).find((L) => L === "hidden") ?
|
|
3887
|
+
(((F = M.oldValue) == null ? void 0 : F.split(" ")) ?? []).find((L) => L === "hidden") ? m(G + w + (u == null ? void 0 : u.getBoundingClientRect().height)) : m(
|
|
3890
3888
|
G + w + v + (u == null ? void 0 : u.getBoundingClientRect().height)
|
|
3891
3889
|
), R(
|
|
3892
3890
|
G + w + v + (p == null ? void 0 : p.getBoundingClientRect().height)
|
|
@@ -3913,7 +3911,7 @@ const De = (i, t = 10) => {
|
|
|
3913
3911
|
}
|
|
3914
3912
|
if (V.type !== "attributes" || V.attributeName !== "hidden")
|
|
3915
3913
|
return;
|
|
3916
|
-
|
|
3914
|
+
g(M + V.target.clientHeight);
|
|
3917
3915
|
}
|
|
3918
3916
|
}, L = new MutationObserver(F);
|
|
3919
3917
|
return Y(L, U, G, u, p), window.addEventListener(
|
|
@@ -3950,7 +3948,7 @@ const De = (i, t = 10) => {
|
|
|
3950
3948
|
setBackdropVisible: l,
|
|
3951
3949
|
submenuHeight: b,
|
|
3952
3950
|
handleBackButtonBurger: () => d,
|
|
3953
|
-
submenuLevel2Height:
|
|
3951
|
+
submenuLevel2Height: N,
|
|
3954
3952
|
submenuLevel3Height: s
|
|
3955
3953
|
}
|
|
3956
3954
|
))));
|
|
@@ -3964,16 +3962,16 @@ const De = (i, t = 10) => {
|
|
|
3964
3962
|
setBackdropVisible: o,
|
|
3965
3963
|
refDrawer: d,
|
|
3966
3964
|
setDrawerContent: r,
|
|
3967
|
-
className:
|
|
3965
|
+
className: g
|
|
3968
3966
|
}) => {
|
|
3969
3967
|
var u, p, w, v, S, F, L, T, k, V;
|
|
3970
|
-
const b = C(null),
|
|
3968
|
+
const b = C(null), E = J(
|
|
3971
3969
|
"container mx-auto agora-header-general-options",
|
|
3972
3970
|
{
|
|
3973
3971
|
darkMode: c(i)
|
|
3974
3972
|
},
|
|
3975
|
-
|
|
3976
|
-
),
|
|
3973
|
+
g
|
|
3974
|
+
), N = J({ "ml-auto": !l || !((p = (u = a == null ? void 0 : a.language) == null ? void 0 : u.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, [j, h] = O(null), Y = (K, W = "") => {
|
|
3977
3975
|
var z, q, te, y, X, x;
|
|
3978
3976
|
((x = (X = (y = (te = (q = (z = K.currentTarget.parentNode) == null ? void 0 : z.parentNode) == null ? void 0 : q.parentNode) == null ? void 0 : te.parentNode) == null ? void 0 : y.parentNode) == null ? void 0 : X.previousSibling) == null ? void 0 : x.firstChild).innerText = K.currentTarget.innerText, [...document.getElementsByClassName("language")].forEach((Q) => {
|
|
3979
3977
|
Q.removeAttribute("data-aria-selected"), Q.removeAttribute("aria-label");
|
|
@@ -4064,7 +4062,7 @@ const De = (i, t = 10) => {
|
|
|
4064
4062
|
case "search":
|
|
4065
4063
|
W = [
|
|
4066
4064
|
...W,
|
|
4067
|
-
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(n) && ((X = (y = a.search) == null ? void 0 : y.submenuItem) == null ? void 0 : X.submenuSearchContent) && /* @__PURE__ */ e.createElement("li", { role: "none", className:
|
|
4065
|
+
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(n) && ((X = (y = a.search) == null ? void 0 : y.submenuItem) == null ? void 0 : X.submenuSearchContent) && /* @__PURE__ */ e.createElement("li", { role: "none", className: N, key: z }, /* @__PURE__ */ e.createElement(
|
|
4068
4066
|
ke,
|
|
4069
4067
|
{
|
|
4070
4068
|
...a.search.menuItem,
|
|
@@ -4105,7 +4103,7 @@ const De = (i, t = 10) => {
|
|
|
4105
4103
|
case "user":
|
|
4106
4104
|
W = [
|
|
4107
4105
|
...W,
|
|
4108
|
-
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(A) && a.user && /* @__PURE__ */ e.createElement("li", { role: "none", className:
|
|
4106
|
+
/* @__PURE__ */ e.createElement(Pe, { key: z }, c(A) && a.user && /* @__PURE__ */ e.createElement("li", { role: "none", className: m }, /* @__PURE__ */ e.createElement(
|
|
4109
4107
|
ke,
|
|
4110
4108
|
{
|
|
4111
4109
|
...a.user.menuItem,
|
|
@@ -4134,7 +4132,7 @@ const De = (i, t = 10) => {
|
|
|
4134
4132
|
setBackdropVisible: o
|
|
4135
4133
|
}
|
|
4136
4134
|
)
|
|
4137
|
-
)), c(A) && ((oe = a.user) == null ? void 0 : oe.drawerContent) && /* @__PURE__ */ e.createElement("li", { role: "none", className:
|
|
4135
|
+
)), c(A) && ((oe = a.user) == null ? void 0 : oe.drawerContent) && /* @__PURE__ */ e.createElement("li", { role: "none", className: m }, /* @__PURE__ */ e.createElement(
|
|
4138
4136
|
ke,
|
|
4139
4137
|
{
|
|
4140
4138
|
...M,
|
|
@@ -4172,7 +4170,7 @@ const De = (i, t = 10) => {
|
|
|
4172
4170
|
}
|
|
4173
4171
|
}), W;
|
|
4174
4172
|
};
|
|
4175
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4173
|
+
return /* @__PURE__ */ e.createElement("div", { className: E }, /* @__PURE__ */ e.createElement("nav", { "aria-label": t }, /* @__PURE__ */ e.createElement("ul", { role: "menubar", className: "flex xs:gap-16 md:gap-32 xl:gap-32" }, G(a))));
|
|
4176
4174
|
}, ui = ({
|
|
4177
4175
|
darkModeHeaderNavigation: i,
|
|
4178
4176
|
ariaLabelHeaderNavigation: t,
|
|
@@ -4183,51 +4181,51 @@ const De = (i, t = 10) => {
|
|
|
4183
4181
|
headerNavigationLegalSentence: o = "",
|
|
4184
4182
|
className: d,
|
|
4185
4183
|
setBackdropVisible: r,
|
|
4186
|
-
optionsMenuOverflow:
|
|
4184
|
+
optionsMenuOverflow: g
|
|
4187
4185
|
}) => {
|
|
4188
|
-
const b = se(),
|
|
4186
|
+
const b = se(), E = J(
|
|
4189
4187
|
"container mx-auto agora-header-navigation-options grid xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 gap-32 min-h-[60px]",
|
|
4190
4188
|
{
|
|
4191
4189
|
darkMode: c(i)
|
|
4192
4190
|
},
|
|
4193
4191
|
d
|
|
4194
|
-
),
|
|
4192
|
+
), N = J("text-m-regular", {
|
|
4195
4193
|
"text-[var(--color-neutral-700)]": !i,
|
|
4196
4194
|
"text-[var(--color-white)]": i,
|
|
4197
4195
|
"sr-only": a
|
|
4198
4196
|
});
|
|
4199
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4197
|
+
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) => {
|
|
4200
4198
|
var D, j, h, Y, M, U;
|
|
4201
4199
|
const R = `${b}-menu-${s}`, I = J(
|
|
4202
4200
|
"agora-header-navigation-options-menu overflow-auto hidden absolute w-full right-0 z-sticky shadow-bottom-high",
|
|
4203
4201
|
{
|
|
4204
|
-
"bg-[var(--color-neutral-50)]": (D =
|
|
4205
|
-
"bg-[var(--color-neutral-100)]": !((j =
|
|
4202
|
+
"bg-[var(--color-neutral-50)]": (D = m.submenuItem) == null ? void 0 : D.highlightItems,
|
|
4203
|
+
"bg-[var(--color-neutral-100)]": !((j = m.submenuItem) != null && j.highlightItems)
|
|
4206
4204
|
}
|
|
4207
4205
|
);
|
|
4208
4206
|
return /* @__PURE__ */ e.createElement("li", { key: R, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
4209
4207
|
ke,
|
|
4210
4208
|
{
|
|
4211
|
-
...
|
|
4212
|
-
ref: (h =
|
|
4209
|
+
...m.menuItem,
|
|
4210
|
+
ref: (h = m.menuItem) == null ? void 0 : h.ref,
|
|
4213
4211
|
itemType: A,
|
|
4214
4212
|
darkMode: i,
|
|
4215
4213
|
onClick: (G) => {
|
|
4216
4214
|
var u, p;
|
|
4217
|
-
(p = (u =
|
|
4215
|
+
(p = (u = m.menuItem).onClick) == null || p.call(u, G), Se(G, r);
|
|
4218
4216
|
}
|
|
4219
4217
|
}
|
|
4220
|
-
),
|
|
4218
|
+
), m.submenuItem && /* @__PURE__ */ e.createElement("div", { style: g, className: I }, /* @__PURE__ */ e.createElement(
|
|
4221
4219
|
We,
|
|
4222
4220
|
{
|
|
4223
|
-
submenu:
|
|
4221
|
+
submenu: m.submenuItem,
|
|
4224
4222
|
closeOtherMenuItemOpened: he,
|
|
4225
4223
|
setBackdropVisible: r
|
|
4226
4224
|
}
|
|
4227
|
-
), ((Y =
|
|
4225
|
+
), ((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(
|
|
4228
4226
|
We,
|
|
4229
4227
|
{
|
|
4230
|
-
submenu: (U =
|
|
4228
|
+
submenu: (U = m.submenuItem) == null ? void 0 : U.highlightItems,
|
|
4231
4229
|
closeOtherMenuItemOpened: he,
|
|
4232
4230
|
setBackdropVisible: r,
|
|
4233
4231
|
className: "flex flex-wrap gap-32"
|
|
@@ -4244,21 +4242,21 @@ const De = (i, t = 10) => {
|
|
|
4244
4242
|
headerGeneralOptions: o,
|
|
4245
4243
|
headerPrimaryNavigation: d,
|
|
4246
4244
|
headerSecondaryNavigation: r,
|
|
4247
|
-
menuBurgerItem:
|
|
4245
|
+
menuBurgerItem: g,
|
|
4248
4246
|
hasBackButtonBurger: b,
|
|
4249
|
-
backButtonLabelBurger:
|
|
4250
|
-
handleBackButtonBurger:
|
|
4247
|
+
backButtonLabelBurger: E,
|
|
4248
|
+
handleBackButtonBurger: N
|
|
4251
4249
|
}) => {
|
|
4252
4250
|
var ve, ye;
|
|
4253
|
-
const { width:
|
|
4254
|
-
var le, ee, Ae, ce, Ie,
|
|
4251
|
+
const { width: m } = ze(), s = m >= 768 && m < 1200, R = m < 768, I = () => {
|
|
4252
|
+
var le, ee, Ae, ce, Ie, Ye, ue, Qe, di, si, Ni, mi, bi, Ei, gi, Ii, Ri, Zi;
|
|
4255
4253
|
const $ = [
|
|
4256
4254
|
...document.getElementsByClassName("agora-header-general-options-menu"),
|
|
4257
4255
|
...document.getElementsByClassName("agora-header-navigation-options-menu"),
|
|
4258
4256
|
...document.getElementsByClassName("agora-header-burger-navigation-options-menu"),
|
|
4259
4257
|
...document.getElementsByClassName("agora-drawer-authentication")
|
|
4260
4258
|
].find((tt) => !tt.classList.contains("hidden"));
|
|
4261
|
-
if ((Ie = (ce = (Ae = (ee = (le = $ == null ? void 0 : $.parentElement) == null ? void 0 : le.parentElement) == null ? void 0 : ee.parentElement) == null ? void 0 : Ae.parentElement) == null ? void 0 : ce.parentElement) != null && Ie.classList.contains("agora-header-general") || (si = (di = (Qe = (
|
|
4259
|
+
if ((Ie = (ce = (Ae = (ee = (le = $ == null ? void 0 : $.parentElement) == null ? void 0 : le.parentElement) == null ? void 0 : ee.parentElement) == null ? void 0 : Ae.parentElement) == null ? void 0 : ce.parentElement) != null && Ie.classList.contains("agora-header-general") || (si = (di = (Qe = (ue = (Ye = $ == null ? void 0 : $.parentElement) == null ? void 0 : Ye.parentElement) == null ? void 0 : ue.parentElement) == null ? void 0 : Qe.parentElement) == null ? void 0 : di.parentElement) != null && si.classList.contains("agora-header-primary") || (gi = (Ei = (bi = (mi = (Ni = $ == null ? void 0 : $.parentElement) == null ? void 0 : Ni.parentElement) == null ? void 0 : mi.parentElement) == null ? void 0 : bi.parentElement) == null ? void 0 : Ei.parentElement) != null && gi.classList.contains("agora-header-secondary"))
|
|
4262
4260
|
return $.parentElement.parentElement.parentElement.parentElement.parentElement;
|
|
4263
4261
|
if ((Zi = (Ri = (Ii = $ == null ? void 0 : $.parentElement) == null ? void 0 : Ii.parentElement) == null ? void 0 : Ri.parentElement) != null && Zi.classList.contains("agora-header-burger-navigation"))
|
|
4264
4262
|
return $.parentElement.parentElement.parentElement;
|
|
@@ -4267,8 +4265,8 @@ const De = (i, t = 10) => {
|
|
|
4267
4265
|
}, D = (f, $) => {
|
|
4268
4266
|
const le = Array.from($).filter(
|
|
4269
4267
|
(Ae) => {
|
|
4270
|
-
var ce, Ie,
|
|
4271
|
-
return !((
|
|
4268
|
+
var ce, Ie, Ye;
|
|
4269
|
+
return !((Ye = (Ie = (ce = Ae == null ? void 0 : Ae.parentElement) == null ? void 0 : ce.parentElement) == null ? void 0 : Ie.parentElement) != null && Ye.classList.contains("hidden")) || !Ae.classList.contains("!hidden");
|
|
4272
4270
|
}
|
|
4273
4271
|
), ee = [];
|
|
4274
4272
|
if (le.forEach((Ae) => {
|
|
@@ -4281,19 +4279,19 @@ const De = (i, t = 10) => {
|
|
|
4281
4279
|
var Ae;
|
|
4282
4280
|
const le = Array.from($).filter(
|
|
4283
4281
|
(ce) => {
|
|
4284
|
-
var Ie,
|
|
4285
|
-
return !((Qe = (
|
|
4282
|
+
var Ie, Ye, ue, Qe;
|
|
4283
|
+
return !((Qe = (ue = (Ye = (Ie = ce == null ? void 0 : ce.parentElement) == null ? void 0 : Ie.parentElement) == null ? void 0 : Ye.parentElement) == null ? void 0 : ue.parentElement) != null && Qe.classList.contains("hidden")) && !ce.classList.contains("!hidden");
|
|
4286
4284
|
}
|
|
4287
4285
|
), ee = [];
|
|
4288
4286
|
if (le.forEach((ce) => {
|
|
4289
4287
|
!ce.closest(".agora-header-burger-navigation-options-submenu-level-2.hidden") && !ce.closest(".agora-header-burger-navigation-options-submenu-level-3.hidden") && !ce.closest(".agora-header-burger-navigation-options-submenu.hidden") && ee.push(ce);
|
|
4290
4288
|
}), ee) {
|
|
4291
4289
|
const ce = ee.find(
|
|
4292
|
-
(
|
|
4293
|
-
),
|
|
4294
|
-
(
|
|
4290
|
+
(ue) => !ue.classList.contains("hidden") && !ue.classList.contains("!hidden")
|
|
4291
|
+
), Ye = Array.from(ee).reverse().find(
|
|
4292
|
+
(ue) => !ue.classList.contains("hidden") && !ue.classList.contains("!hidden")
|
|
4295
4293
|
);
|
|
4296
|
-
f.shiftKey && document.activeElement === ce ? (f.preventDefault(),
|
|
4294
|
+
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());
|
|
4297
4295
|
}
|
|
4298
4296
|
}, [h, Y] = O(!1), M = C(null), U = (f) => {
|
|
4299
4297
|
Y(f);
|
|
@@ -4321,10 +4319,10 @@ const De = (i, t = 10) => {
|
|
|
4321
4319
|
'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
4320
|
)
|
|
4323
4321
|
), ee = document.querySelector(".agora-header-burger-navigation-options-menu"), Ae = document.querySelector(".agora-header-burger-navigation-options-submenu"), ce = document.querySelector(".agora-header-burger-navigation-options-submenu-level-2"), Ie = document.querySelector(".agora-header-burger-navigation-options-submenu-level-3");
|
|
4324
|
-
let
|
|
4325
|
-
le.forEach((
|
|
4326
|
-
Ie != null && Ie.contains(
|
|
4327
|
-
}), j(f,
|
|
4322
|
+
let Ye = [];
|
|
4323
|
+
le.forEach((ue) => {
|
|
4324
|
+
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
|
+
}), j(f, Ye);
|
|
4328
4326
|
}, []);
|
|
4329
4327
|
ie(() => {
|
|
4330
4328
|
const { current: f } = M, $ = (le) => {
|
|
@@ -4403,7 +4401,7 @@ const De = (i, t = 10) => {
|
|
|
4403
4401
|
let f = !1;
|
|
4404
4402
|
const $ = () => {
|
|
4405
4403
|
const ee = document.querySelector(".agora-header"), Ae = document.querySelector(".agora-header-primary"), ce = document.querySelector(".agora-header-secondary"), Ie = document.querySelector(".agora-header-burger-navigation");
|
|
4406
|
-
ee != null && ee.contains(document.activeElement) && window.scrollTo(0, 0), _((
|
|
4404
|
+
ee != null && ee.contains(document.activeElement) && window.scrollTo(0, 0), _((Ye) => !Ye), window.scrollY === 0 && !R && !s && (Ae == null || Ae.removeAttribute("hidden"), ce == null || ce.removeAttribute("hidden"), Ae == null || Ae.classList.add("fade-in-up"), ce == null || ce.classList.add("fade-in-up"), Ie == null || Ie.setAttribute("hidden", "true"), Ie == null || Ie.classList.remove("fade-in-up"), Ue(() => {
|
|
4407
4405
|
Ae == null || Ae.classList.remove("fade-in-up"), ce == null || ce.classList.remove("fade-in-up");
|
|
4408
4406
|
}, 550), f = !1), !H && window.scrollY > 1 && !R && !s && (f || !(ee != null && ee.contains(document.activeElement))) && (Ae == null || Ae.setAttribute("hidden", "true"), ce == null || ce.setAttribute("hidden", "true"), Ae == null || Ae.classList.remove("fade-in-up"), ce == null || ce.classList.remove("fade-in-up"), Ie == null || Ie.removeAttribute("hidden"), Ie == null || Ie.classList.add("fade-in-up"), f = !1);
|
|
4409
4407
|
}, le = () => {
|
|
@@ -4480,7 +4478,7 @@ const De = (i, t = 10) => {
|
|
|
4480
4478
|
)), q.menuItemsHeaderNavigation && /* @__PURE__ */ e.createElement("div", { className: me, hidden: !0 }, /* @__PURE__ */ e.createElement(
|
|
4481
4479
|
ba,
|
|
4482
4480
|
{
|
|
4483
|
-
menuBurgerItem:
|
|
4481
|
+
menuBurgerItem: g,
|
|
4484
4482
|
headerSecondaryNavigation: r,
|
|
4485
4483
|
headerPrimaryNavigation: q,
|
|
4486
4484
|
darkModeHeader: a,
|
|
@@ -4492,8 +4490,8 @@ const De = (i, t = 10) => {
|
|
|
4492
4490
|
hasHeaderPrimaryNavigation: n,
|
|
4493
4491
|
hasHeaderSecondaryNavigation: x,
|
|
4494
4492
|
hasBackButtonBurger: b,
|
|
4495
|
-
backButtonLabelBurger:
|
|
4496
|
-
handleBackButtonBurger:
|
|
4493
|
+
backButtonLabelBurger: E,
|
|
4494
|
+
handleBackButtonBurger: N,
|
|
4497
4495
|
headerSEO: i,
|
|
4498
4496
|
isHomepage: t
|
|
4499
4497
|
}
|
|
@@ -4520,7 +4518,7 @@ const De = (i, t = 10) => {
|
|
|
4520
4518
|
/* @__PURE__ */ e.createElement("ul", { role: "menubar" }, w.menuDrawer.items.map((f, $) => {
|
|
4521
4519
|
const le = `menu-drawer-${$}`;
|
|
4522
4520
|
return /* @__PURE__ */ e.createElement("li", { role: "none", key: le }, /* @__PURE__ */ e.createElement(
|
|
4523
|
-
|
|
4521
|
+
De,
|
|
4524
4522
|
{
|
|
4525
4523
|
className: "agora-drawer-menu-item",
|
|
4526
4524
|
appearance: "link",
|
|
@@ -4684,7 +4682,7 @@ const De = (i, t = 10) => {
|
|
|
4684
4682
|
}
|
|
4685
4683
|
}, r = () => {
|
|
4686
4684
|
l(!0);
|
|
4687
|
-
},
|
|
4685
|
+
}, g = () => {
|
|
4688
4686
|
l(!1);
|
|
4689
4687
|
}, b = (s, R, I) => {
|
|
4690
4688
|
s.setDate(s.getDate() + 1);
|
|
@@ -4732,25 +4730,25 @@ const De = (i, t = 10) => {
|
|
|
4732
4730
|
onKeyDown: d,
|
|
4733
4731
|
onClick: o,
|
|
4734
4732
|
onFocus: r,
|
|
4735
|
-
onBlur:
|
|
4733
|
+
onBlur: g
|
|
4736
4734
|
},
|
|
4737
4735
|
/* @__PURE__ */ e.createElement("div", { "aria-hidden": !0, className: G }, s.getDate())
|
|
4738
4736
|
);
|
|
4739
|
-
},
|
|
4737
|
+
}, E = (s) => {
|
|
4740
4738
|
const R = new Date(i.focusedDate.getFullYear(), i.focusedDate.getMonth(), 1), I = R.getDay() + 1;
|
|
4741
4739
|
return R.setDate(R.getDate() - I), R.setDate(R.getDate() + s * 7), Array.from(Array(7).keys()).map((D) => b(R, s, D));
|
|
4742
|
-
},
|
|
4740
|
+
}, N = de(() => Array.from(Array(6).keys()).map((s) => {
|
|
4743
4741
|
const R = `tr-key-${s}`;
|
|
4744
|
-
return /* @__PURE__ */ e.createElement("div", { role: "row", className: "grid grid-flow-col gap-[2px]", key: R },
|
|
4745
|
-
}), [i.focusedDate, i.selectedDate, a]),
|
|
4742
|
+
return /* @__PURE__ */ e.createElement("div", { role: "row", className: "grid grid-flow-col gap-[2px]", key: R }, E(s));
|
|
4743
|
+
}), [i.focusedDate, i.selectedDate, a]), m = () => {
|
|
4746
4744
|
if (t.current) {
|
|
4747
4745
|
const s = Array.from(t.current.querySelectorAll('.day[tabIndex="0"]')).shift();
|
|
4748
4746
|
s && s.focus();
|
|
4749
4747
|
}
|
|
4750
4748
|
};
|
|
4751
|
-
return ie(() =>
|
|
4752
|
-
a &&
|
|
4753
|
-
}, [a]), ie(() =>
|
|
4749
|
+
return ie(() => m(), []), ie(() => {
|
|
4750
|
+
a && m();
|
|
4751
|
+
}, [a]), ie(() => m(), [i.focusedDate]), /* @__PURE__ */ e.createElement("div", { className: "my-16" }, /* @__PURE__ */ e.createElement("div", { role: "grid", className: "w-full" }, /* @__PURE__ */ e.createElement("div", { role: "rowheader", className: "grid grid-flow-col gap-[2px]" }, i.getAbbrWeekDays().map((s) => /* @__PURE__ */ e.createElement(
|
|
4754
4752
|
"div",
|
|
4755
4753
|
{
|
|
4756
4754
|
role: "gridcell",
|
|
@@ -4759,7 +4757,7 @@ const De = (i, t = 10) => {
|
|
|
4759
4757
|
"aria-hidden": !0
|
|
4760
4758
|
},
|
|
4761
4759
|
s
|
|
4762
|
-
))), /* @__PURE__ */ e.createElement("div", { ref: t, role: "rowgroup" },
|
|
4760
|
+
))), /* @__PURE__ */ e.createElement("div", { ref: t, role: "rowgroup" }, N)));
|
|
4763
4761
|
}, Da = () => {
|
|
4764
4762
|
const i = ri(), t = () => {
|
|
4765
4763
|
i.setSelectedDate(i.focusedDate);
|
|
@@ -4779,20 +4777,20 @@ const De = (i, t = 10) => {
|
|
|
4779
4777
|
const i = ri();
|
|
4780
4778
|
return /* @__PURE__ */ e.createElement("div", { className: "header w-full" }, /* @__PURE__ */ e.createElement("h2", { className: "flex justify-center py-8 w-full text-black font-bold text-m-light normal-case", "aria-live": "polite" }, `${i.focusedMonth} ${i.focusedYear}`), /* @__PURE__ */ e.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 justify-center" }, /* @__PURE__ */ e.createElement(Ne, { appearance: "outline", onClick: i.moveToPreviousYear, "aria-label": i.getLabels().previousYearAriaLabel }, /* @__PURE__ */ e.createElement(ae, { name: "agora-line-chevrons-left", dimensions: "s", "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(Ne, { appearance: "outline", onClick: i.moveToPreviousMonth, "aria-label": i.getLabels().previousMonthAriaLabel }, /* @__PURE__ */ e.createElement(ae, { name: "agora-line-chevron-left", dimensions: "s", "aria-hidden": !0 }))), /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 justify-center" }, /* @__PURE__ */ e.createElement(Ne, { appearance: "outline", onClick: i.moveToNextMonth, "aria-label": i.getLabels().nextMonthAriaLabel }, /* @__PURE__ */ e.createElement(ae, { name: "agora-line-chevron-right", dimensions: "s", "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(Ne, { appearance: "outline", onClick: i.moveToNextYear, "aria-label": i.getLabels().nextYearAriaLabel }, /* @__PURE__ */ e.createElement(ae, { name: "agora-line-chevrons-right", dimensions: "s", "aria-hidden": !0 })))));
|
|
4781
4779
|
}, pa = ({ date: i = /* @__PURE__ */ new Date(), onChange: t, onCancel: a, labels: l, className: n }) => {
|
|
4782
|
-
const [A, o] = O(!1), [d, r] = O(i), [
|
|
4780
|
+
const [A, o] = O(!1), [d, r] = O(i), [g, b] = O(i), E = () => {
|
|
4783
4781
|
a();
|
|
4784
4782
|
};
|
|
4785
4783
|
ie(() => {
|
|
4786
|
-
A ?
|
|
4784
|
+
A ? Ue(() => t(d)) : o(!0);
|
|
4787
4785
|
}, [d]);
|
|
4788
|
-
const
|
|
4789
|
-
focusedDate:
|
|
4786
|
+
const N = de(() => ({
|
|
4787
|
+
focusedDate: g,
|
|
4790
4788
|
selectedDate: d,
|
|
4791
4789
|
setFocusedDate: b,
|
|
4792
4790
|
setSelectedDate: r,
|
|
4793
|
-
cancel:
|
|
4791
|
+
cancel: E,
|
|
4794
4792
|
labels: l
|
|
4795
|
-
}), [d,
|
|
4793
|
+
}), [d, g]), m = J(
|
|
4796
4794
|
n,
|
|
4797
4795
|
"absolute left-0 top-[68px] shadow-bottom-high bg-white p-16 border-2 border-[var(--color-neutral-200)] rounded-4 z-dropdown"
|
|
4798
4796
|
), s = C(null), R = ge((I) => {
|
|
@@ -4809,23 +4807,23 @@ const De = (i, t = 10) => {
|
|
|
4809
4807
|
}, []);
|
|
4810
4808
|
return ie(() => (document == null || document.addEventListener("keydown", R), () => {
|
|
4811
4809
|
document == null || document.removeEventListener("keydown", R);
|
|
4812
|
-
}), [R]), /* @__PURE__ */ e.createElement(ga, { value:
|
|
4810
|
+
}), [R]), /* @__PURE__ */ e.createElement(ga, { value: N }, /* @__PURE__ */ e.createElement("div", { ref: s, className: m }, /* @__PURE__ */ e.createElement(Ma, null), /* @__PURE__ */ e.createElement(Ga, null), /* @__PURE__ */ e.createElement("div", { className: "border-1 border-[var(--color-neutral-300)]" }), /* @__PURE__ */ e.createElement(Da, null)));
|
|
4813
4811
|
}, He = (i) => i === "" ? i : i.length === 1 ? `0${i}` : i, Ya = (i) => i % 4 === 0 && (i % 100 !== 0 || i % 400 === 0), ua = (i, t, a) => {
|
|
4814
4812
|
const l = Math.max(i, 1), n = He(t.toString()), A = a.toString();
|
|
4815
4813
|
return t === 2 ? Ya(a) && l >= 29 ? `29/${n}/${A}` : l > 28 ? `28/${n}/${A}` : `${He(l.toString())}/${n}/${A}` : [11, 9, 6, 4].indexOf(t) >= 0 ? `${He(Math.min(30, l).toString())}/${n}/${A}` : `${He(Math.min(31, l).toString())}/${n}/${A}`;
|
|
4816
4814
|
}, Ua = ({ className: i = "", dayInputPlaceholder: t = "", monthInputPlaceholder: a = "", yearInputPlaceholder: l = "", ...n }, A) => {
|
|
4817
4815
|
const o = J("agora-date-input", i), d = (r) => {
|
|
4818
|
-
const
|
|
4819
|
-
if (!/\d{1,2}\/\d{1,2}\/\d{4}/.test(
|
|
4816
|
+
const g = r.target.value;
|
|
4817
|
+
if (!/\d{1,2}\/\d{1,2}\/\d{4}/.test(g))
|
|
4820
4818
|
r.target.value = "";
|
|
4821
4819
|
else {
|
|
4822
|
-
const
|
|
4823
|
-
r.target.value = ua(
|
|
4820
|
+
const E = g.split("/").map((N) => parseInt(N, 10));
|
|
4821
|
+
r.target.value = ua(E[0], E[1], E[2]);
|
|
4824
4822
|
}
|
|
4825
4823
|
const b = Te(r.target, "change");
|
|
4826
|
-
|
|
4827
|
-
var
|
|
4828
|
-
return (
|
|
4824
|
+
Ue(() => {
|
|
4825
|
+
var E;
|
|
4826
|
+
return (E = n.onChange) == null ? void 0 : E.call(n, b);
|
|
4829
4827
|
});
|
|
4830
4828
|
};
|
|
4831
4829
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -4849,11 +4847,11 @@ const De = (i, t = 10) => {
|
|
|
4849
4847
|
feedbackState: o = "info",
|
|
4850
4848
|
darkMode: d,
|
|
4851
4849
|
hasIcon: r,
|
|
4852
|
-
icon:
|
|
4850
|
+
icon: g,
|
|
4853
4851
|
dayInputPlaceholder: b,
|
|
4854
|
-
monthInputPlaceholder:
|
|
4855
|
-
yearInputPlaceholder:
|
|
4856
|
-
calendarIconAriaLabel:
|
|
4852
|
+
monthInputPlaceholder: E,
|
|
4853
|
+
yearInputPlaceholder: N,
|
|
4854
|
+
calendarIconAriaLabel: m,
|
|
4857
4855
|
previousYearAriaLabel: s,
|
|
4858
4856
|
previousMonthAriaLabel: R,
|
|
4859
4857
|
nextMonthAriaLabel: I,
|
|
@@ -4929,7 +4927,7 @@ const De = (i, t = 10) => {
|
|
|
4929
4927
|
ie(() => {
|
|
4930
4928
|
if (B.current) {
|
|
4931
4929
|
const f = Te(B.current, "change");
|
|
4932
|
-
|
|
4930
|
+
Ue(() => T == null ? void 0 : T(f));
|
|
4933
4931
|
}
|
|
4934
4932
|
}, [X]);
|
|
4935
4933
|
const ve = {
|
|
@@ -4957,14 +4955,14 @@ const De = (i, t = 10) => {
|
|
|
4957
4955
|
"has-feedback": c(n),
|
|
4958
4956
|
["feedback-" + o]: c(n) && o
|
|
4959
4957
|
});
|
|
4960
|
-
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 &&
|
|
4958
|
+
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(
|
|
4961
4959
|
ja,
|
|
4962
4960
|
{
|
|
4963
4961
|
ref: B,
|
|
4964
4962
|
id: W.id,
|
|
4965
4963
|
dayInputPlaceholder: b,
|
|
4966
|
-
monthInputPlaceholder:
|
|
4967
|
-
yearInputPlaceholder:
|
|
4964
|
+
monthInputPlaceholder: E,
|
|
4965
|
+
yearInputPlaceholder: N,
|
|
4968
4966
|
onKeyDown: Ee,
|
|
4969
4967
|
value: q,
|
|
4970
4968
|
onChange: je,
|
|
@@ -4978,7 +4976,7 @@ const De = (i, t = 10) => {
|
|
|
4978
4976
|
disabled: !!W.disabled || !!W.readOnly,
|
|
4979
4977
|
onClick: P,
|
|
4980
4978
|
className: "input-trailing-icon",
|
|
4981
|
-
"aria-label":
|
|
4979
|
+
"aria-label": m
|
|
4982
4980
|
},
|
|
4983
4981
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-line-calendar", "aria-hidden": !0, className: "icon-calendar-default" }),
|
|
4984
4982
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-solid-calendar", "aria-hidden": !0, className: "icon-calendar-hover" })
|
|
@@ -4992,7 +4990,7 @@ const De = (i, t = 10) => {
|
|
|
4992
4990
|
onCancel: oe
|
|
4993
4991
|
}
|
|
4994
4992
|
)), (c(n) || c(l)) && A && /* @__PURE__ */ e.createElement(
|
|
4995
|
-
|
|
4993
|
+
pe,
|
|
4996
4994
|
{
|
|
4997
4995
|
feedbackState: c(l) ? "danger" : o,
|
|
4998
4996
|
feedbackText: A,
|
|
@@ -5009,21 +5007,21 @@ const De = (i, t = 10) => {
|
|
|
5009
5007
|
feedbackText: o,
|
|
5010
5008
|
hasError: d,
|
|
5011
5009
|
required: r = !0,
|
|
5012
|
-
onSendHandler:
|
|
5010
|
+
onSendHandler: g,
|
|
5013
5011
|
pattern: b = ha,
|
|
5014
|
-
...
|
|
5015
|
-
},
|
|
5016
|
-
const
|
|
5017
|
-
s.id = s.id ??
|
|
5012
|
+
...E
|
|
5013
|
+
}, N) => {
|
|
5014
|
+
const m = se(), s = { ...E };
|
|
5015
|
+
s.id = s.id ?? m;
|
|
5018
5016
|
const { onChange: R } = s, [I, D] = O(""), [j, h] = O(!1), Y = ge(
|
|
5019
5017
|
(p) => {
|
|
5020
5018
|
const { value: w } = p.currentTarget;
|
|
5021
|
-
D(w), h(new RegExp(b).test(w)),
|
|
5019
|
+
D(w), h(new RegExp(b).test(w)), R == null || R(p);
|
|
5022
5020
|
},
|
|
5023
5021
|
[R, b]
|
|
5024
5022
|
), M = ge(() => {
|
|
5025
|
-
|
|
5026
|
-
}, [
|
|
5023
|
+
g && new RegExp(b).test(I) && g(I);
|
|
5024
|
+
}, [g, b, I]), U = J(
|
|
5027
5025
|
"agora-input-email-bar",
|
|
5028
5026
|
{ dark: c(A) },
|
|
5029
5027
|
{
|
|
@@ -5047,7 +5045,7 @@ const De = (i, t = 10) => {
|
|
|
5047
5045
|
{
|
|
5048
5046
|
...s,
|
|
5049
5047
|
className: "flex-grow-[1] outline-none",
|
|
5050
|
-
ref:
|
|
5048
|
+
ref: N,
|
|
5051
5049
|
type: "email",
|
|
5052
5050
|
disabled: !!s.disabled,
|
|
5053
5051
|
onChange: Y,
|
|
@@ -5067,7 +5065,7 @@ const De = (i, t = 10) => {
|
|
|
5067
5065
|
disabled: !j
|
|
5068
5066
|
}
|
|
5069
5067
|
))), (c(l) || c(d)) && o && /* @__PURE__ */ e.createElement(
|
|
5070
|
-
|
|
5068
|
+
pe,
|
|
5071
5069
|
{
|
|
5072
5070
|
feedbackState: c(d) ? "danger" : n,
|
|
5073
5071
|
feedbackText: o,
|
|
@@ -5084,18 +5082,18 @@ const De = (i, t = 10) => {
|
|
|
5084
5082
|
feedbackState: o,
|
|
5085
5083
|
darkMode: d,
|
|
5086
5084
|
feedbackText: r,
|
|
5087
|
-
hasIcon:
|
|
5085
|
+
hasIcon: g,
|
|
5088
5086
|
icon: b,
|
|
5089
|
-
className:
|
|
5090
|
-
required:
|
|
5091
|
-
...
|
|
5087
|
+
className: E,
|
|
5088
|
+
required: N = !0,
|
|
5089
|
+
...m
|
|
5092
5090
|
}, s) => {
|
|
5093
|
-
const R = se(), I = { ...
|
|
5091
|
+
const R = se(), I = { ...m };
|
|
5094
5092
|
I.id = I.id ?? R;
|
|
5095
5093
|
const { onChange: D, min: j, max: h } = I, Y = C(null), [M, U] = O(I.value), G = (B) => {
|
|
5096
5094
|
var q;
|
|
5097
5095
|
const { value: z } = B.currentTarget;
|
|
5098
|
-
if (U(z),
|
|
5096
|
+
if (U(z), D == null || D(B), h === parseFloat((z == null ? void 0 : z.toString()) ?? "0") || j === parseFloat((z == null ? void 0 : z.toString()) ?? "0")) {
|
|
5099
5097
|
const te = (q = Y.current) == null ? void 0 : q.querySelector("input");
|
|
5100
5098
|
te && te.focus();
|
|
5101
5099
|
}
|
|
@@ -5122,11 +5120,11 @@ const De = (i, t = 10) => {
|
|
|
5122
5120
|
inputClasses: J(
|
|
5123
5121
|
"agora-input-number",
|
|
5124
5122
|
{
|
|
5125
|
-
"has-leading-icon":
|
|
5123
|
+
"has-leading-icon": g && (b == null ? void 0 : b.indexOf("agora-line")) === 0,
|
|
5126
5124
|
// allowing only line family icon
|
|
5127
5125
|
"has-value": M && M.toString().length > 0
|
|
5128
5126
|
},
|
|
5129
|
-
|
|
5127
|
+
E
|
|
5130
5128
|
),
|
|
5131
5129
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
5132
5130
|
}), { inputWrapperClasses: S, labelSectionClasses: F, inputClasses: L, leadingIconWrapperClasses: T } = v(), k = () => {
|
|
@@ -5150,10 +5148,10 @@ const De = (i, t = 10) => {
|
|
|
5150
5148
|
"aria-invalid": c(a),
|
|
5151
5149
|
"aria-label": c(t) ? I["aria-label"] ?? i : I["aria-label"],
|
|
5152
5150
|
ref: s,
|
|
5153
|
-
required:
|
|
5151
|
+
required: N,
|
|
5154
5152
|
onChange: G
|
|
5155
5153
|
}
|
|
5156
|
-
),
|
|
5154
|
+
), g && b && b.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: T }, /* @__PURE__ */ e.createElement(ae, { name: b, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
|
|
5157
5155
|
"div",
|
|
5158
5156
|
{
|
|
5159
5157
|
className: "input-number-controls",
|
|
@@ -5184,7 +5182,7 @@ const De = (i, t = 10) => {
|
|
|
5184
5182
|
/* @__PURE__ */ e.createElement(ae, { name: "agora-solid-plus-circle", "aria-hidden": !0, className: "icon-step icon-step-hover" })
|
|
5185
5183
|
)
|
|
5186
5184
|
)), (c(A) || c(a)) && r && /* @__PURE__ */ e.createElement(
|
|
5187
|
-
|
|
5185
|
+
pe,
|
|
5188
5186
|
{
|
|
5189
5187
|
feedbackState: c(a) ? "danger" : o,
|
|
5190
5188
|
feedbackText: r,
|
|
@@ -5201,19 +5199,18 @@ const De = (i, t = 10) => {
|
|
|
5201
5199
|
feedbackText: o,
|
|
5202
5200
|
hasIcon: d,
|
|
5203
5201
|
icon: r,
|
|
5204
|
-
className:
|
|
5202
|
+
className: g,
|
|
5205
5203
|
required: b = !0,
|
|
5206
|
-
togglePasswordAltIconText:
|
|
5207
|
-
...
|
|
5208
|
-
},
|
|
5209
|
-
const s = se(), R = { ...
|
|
5204
|
+
togglePasswordAltIconText: E,
|
|
5205
|
+
...N
|
|
5206
|
+
}, m) => {
|
|
5207
|
+
const s = se(), R = { ...N };
|
|
5210
5208
|
R.id = R.id ?? s;
|
|
5211
|
-
const { onChange: I } = R, D = C(null), [j, h] = O(!1), [Y, M] = O(R.value), U = () => {
|
|
5209
|
+
const { onChange: I } = R, D = C(null), [j, h] = O(!1), [Y, M] = O(R.value ? R.value.toString().length > 0 : !1), U = () => {
|
|
5212
5210
|
var L;
|
|
5213
5211
|
!R.disabled && !R.readOnly && (h(!j), D != null && D.current && ((L = D.current.querySelector("input")) == null || L.focus()));
|
|
5214
5212
|
}, G = (L) => {
|
|
5215
|
-
|
|
5216
|
-
M(T), De(() => I == null ? void 0 : I(L));
|
|
5213
|
+
M(L.currentTarget.value.length > 0), I == null || I(L);
|
|
5217
5214
|
}, u = () => ({
|
|
5218
5215
|
// main wrapper class
|
|
5219
5216
|
inputWrapperClasses: J(
|
|
@@ -5242,9 +5239,9 @@ const De = (i, t = 10) => {
|
|
|
5242
5239
|
{
|
|
5243
5240
|
"has-leading-icon": d && (r == null ? void 0 : r.startsWith("agora-line")),
|
|
5244
5241
|
// allowing only line family icon
|
|
5245
|
-
"has-value": Y
|
|
5242
|
+
"has-value": Y
|
|
5246
5243
|
},
|
|
5247
|
-
|
|
5244
|
+
g
|
|
5248
5245
|
),
|
|
5249
5246
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
5250
5247
|
}), { inputWrapperClasses: p, labelSectionClasses: w, inputClasses: v, leadingIconWrapperClasses: S } = u(), F = J("input-password-label", { dark: c(A) });
|
|
@@ -5258,7 +5255,7 @@ const De = (i, t = 10) => {
|
|
|
5258
5255
|
readOnly: !!R.readOnly,
|
|
5259
5256
|
"aria-invalid": c(a),
|
|
5260
5257
|
"aria-label": c(t) ? R["aria-label"] ?? i : R["aria-label"],
|
|
5261
|
-
ref:
|
|
5258
|
+
ref: m,
|
|
5262
5259
|
required: b,
|
|
5263
5260
|
onChange: G
|
|
5264
5261
|
}
|
|
@@ -5268,12 +5265,12 @@ const De = (i, t = 10) => {
|
|
|
5268
5265
|
type: "button",
|
|
5269
5266
|
className: "input-btn-toggle bg-transparent",
|
|
5270
5267
|
onClick: U,
|
|
5271
|
-
"aria-label":
|
|
5268
|
+
"aria-label": E,
|
|
5272
5269
|
disabled: R.disabled ?? R.readOnly
|
|
5273
5270
|
},
|
|
5274
5271
|
/* @__PURE__ */ e.createElement(ae, { name: `agora-line-${j ? "eye-off" : "eye"}`, "aria-hidden": !0 })
|
|
5275
5272
|
)), (c(l) || c(a)) && o && /* @__PURE__ */ e.createElement(
|
|
5276
|
-
|
|
5273
|
+
pe,
|
|
5277
5274
|
{
|
|
5278
5275
|
feedbackState: c(a) ? "danger" : n,
|
|
5279
5276
|
feedbackText: o,
|
|
@@ -6665,11 +6662,11 @@ const De = (i, t = 10) => {
|
|
|
6665
6662
|
feedbackText: o,
|
|
6666
6663
|
feedbackState: d = "info",
|
|
6667
6664
|
darkMode: r,
|
|
6668
|
-
className:
|
|
6665
|
+
className: g = "",
|
|
6669
6666
|
searchInputAriaLabel: b,
|
|
6670
|
-
searchInputPlaceholder:
|
|
6671
|
-
searchNoResultsText:
|
|
6672
|
-
visibleCount:
|
|
6667
|
+
searchInputPlaceholder: E,
|
|
6668
|
+
searchNoResultsText: N,
|
|
6669
|
+
visibleCount: m,
|
|
6673
6670
|
required: s = !0,
|
|
6674
6671
|
searchable: R,
|
|
6675
6672
|
dropdownAriaLabel: I,
|
|
@@ -6725,7 +6722,7 @@ const De = (i, t = 10) => {
|
|
|
6725
6722
|
/\d/.test(P.key) || (P.preventDefault(), P.stopPropagation());
|
|
6726
6723
|
}, te = (P) => {
|
|
6727
6724
|
const { value: ne } = P.currentTarget;
|
|
6728
|
-
L(ne.length > 0),
|
|
6725
|
+
L(ne.length > 0), D == null || D(P);
|
|
6729
6726
|
}, y = () => {
|
|
6730
6727
|
var P, ne, Ee;
|
|
6731
6728
|
(P = w.current) != null && P.visibility ? (ne = w.current) == null || ne.hide() : (Ee = w.current) == null || Ee.show();
|
|
@@ -6747,7 +6744,7 @@ const De = (i, t = 10) => {
|
|
|
6747
6744
|
document == null || document.removeEventListener("click", P);
|
|
6748
6745
|
};
|
|
6749
6746
|
}, []);
|
|
6750
|
-
const Q = c(r) ? "dark" : "", H = J("agora-input-phone",
|
|
6747
|
+
const Q = c(r) ? "dark" : "", H = J("agora-input-phone", g, Q), _ = J("input-phone-wrapper", Q, {
|
|
6751
6748
|
"has-value": F,
|
|
6752
6749
|
disabled: U.disabled,
|
|
6753
6750
|
readonly: U.readOnly,
|
|
@@ -6800,9 +6797,9 @@ const De = (i, t = 10) => {
|
|
|
6800
6797
|
type: "text",
|
|
6801
6798
|
searchable: R,
|
|
6802
6799
|
searchAriaLabel: b,
|
|
6803
|
-
searchPlaceholder:
|
|
6804
|
-
noSearchResults:
|
|
6805
|
-
optionsVisible:
|
|
6800
|
+
searchPlaceholder: E,
|
|
6801
|
+
noSearchResults: N,
|
|
6802
|
+
optionsVisible: m,
|
|
6806
6803
|
"aria-label": I,
|
|
6807
6804
|
hideSectionNames: !0
|
|
6808
6805
|
},
|
|
@@ -6822,7 +6819,7 @@ const De = (i, t = 10) => {
|
|
|
6822
6819
|
);
|
|
6823
6820
|
}))
|
|
6824
6821
|
))), (c(A) || c(n)) && o && /* @__PURE__ */ e.createElement(
|
|
6825
|
-
|
|
6822
|
+
pe,
|
|
6826
6823
|
{
|
|
6827
6824
|
feedbackState: c(n) ? "danger" : d,
|
|
6828
6825
|
feedbackText: o,
|
|
@@ -6839,11 +6836,11 @@ const De = (i, t = 10) => {
|
|
|
6839
6836
|
hasFeedback: o,
|
|
6840
6837
|
feedbackText: d,
|
|
6841
6838
|
feedbackState: r = "info",
|
|
6842
|
-
...
|
|
6839
|
+
...g
|
|
6843
6840
|
}, b) => {
|
|
6844
|
-
const
|
|
6845
|
-
|
|
6846
|
-
const { onChange:
|
|
6841
|
+
const E = se(), N = { ...g };
|
|
6842
|
+
N.id = N.id ?? E;
|
|
6843
|
+
const { onChange: m } = N, [s, R] = O([n[0], n[1]]), I = C(n), D = C(null), j = C(null), h = C(null);
|
|
6847
6844
|
Je(
|
|
6848
6845
|
b,
|
|
6849
6846
|
D,
|
|
@@ -6854,7 +6851,7 @@ const De = (i, t = 10) => {
|
|
|
6854
6851
|
), ie(() => {
|
|
6855
6852
|
if (I.current[0] !== n[0] || I.current[1] !== n[1]) {
|
|
6856
6853
|
const u = [...n];
|
|
6857
|
-
a === "single" && (u[1] = Number(
|
|
6854
|
+
a === "single" && (u[1] = Number(N.max)), R(u), I.current = u;
|
|
6858
6855
|
}
|
|
6859
6856
|
}, [n]);
|
|
6860
6857
|
const Y = (u) => {
|
|
@@ -6864,7 +6861,7 @@ const De = (i, t = 10) => {
|
|
|
6864
6861
|
return;
|
|
6865
6862
|
R(u);
|
|
6866
6863
|
}
|
|
6867
|
-
|
|
6864
|
+
m == null || m(u);
|
|
6868
6865
|
}, M = () => {
|
|
6869
6866
|
var u, p;
|
|
6870
6867
|
(u = j.current) == null || u.classList.remove("z-[2]"), (p = h.current) == null || p.classList.remove("z-[2]");
|
|
@@ -6874,40 +6871,40 @@ const De = (i, t = 10) => {
|
|
|
6874
6871
|
"has-label": !c(t),
|
|
6875
6872
|
"has-error": c(A)
|
|
6876
6873
|
});
|
|
6877
|
-
return /* @__PURE__ */ e.createElement("div", { className: G, ref: D }, /* @__PURE__ */ e.createElement("label", { hidden: c(t), htmlFor: `${
|
|
6874
|
+
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: "rail" }), /* @__PURE__ */ e.createElement(
|
|
6878
6875
|
"input",
|
|
6879
6876
|
{
|
|
6880
|
-
...
|
|
6877
|
+
...g,
|
|
6881
6878
|
className: "inner-input-range",
|
|
6882
6879
|
type: "range",
|
|
6883
|
-
id: `${
|
|
6880
|
+
id: `${N.id}-0`,
|
|
6884
6881
|
disabled: l,
|
|
6885
6882
|
onChange: (u) => Y([Number(u.target.value), s[1]]),
|
|
6886
6883
|
value: s[0],
|
|
6887
6884
|
ref: j,
|
|
6888
6885
|
"aria-invalid": c(A),
|
|
6889
|
-
"aria-label": c(t) ?
|
|
6886
|
+
"aria-label": c(t) ? N["aria-label"] ?? i : N["aria-label"],
|
|
6890
6887
|
onMouseDown: U,
|
|
6891
6888
|
onMouseUp: M
|
|
6892
6889
|
}
|
|
6893
6890
|
), /* @__PURE__ */ e.createElement(
|
|
6894
6891
|
"input",
|
|
6895
6892
|
{
|
|
6896
|
-
...
|
|
6893
|
+
...g,
|
|
6897
6894
|
className: "inner-input-range",
|
|
6898
6895
|
hidden: a === "single",
|
|
6899
6896
|
type: "range",
|
|
6900
|
-
id: `${
|
|
6897
|
+
id: `${N.id}-1`,
|
|
6901
6898
|
disabled: l,
|
|
6902
6899
|
onChange: (u) => Y([s[0], Number(u.target.value)]),
|
|
6903
6900
|
value: s[1],
|
|
6904
6901
|
ref: h,
|
|
6905
6902
|
"aria-invalid": c(A),
|
|
6906
|
-
"aria-label": c(t) ?
|
|
6903
|
+
"aria-label": c(t) ? N["aria-label"] ?? i : N["aria-label"],
|
|
6907
6904
|
onMouseDown: U,
|
|
6908
6905
|
onMouseUp: M
|
|
6909
6906
|
}
|
|
6910
|
-
)), (c(o) || c(A)) && d && /* @__PURE__ */ e.createElement(
|
|
6907
|
+
)), (c(o) || c(A)) && d && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(A) ? "danger" : r, feedbackText: d, className: "mt-0" }));
|
|
6911
6908
|
}, Wn = re(Wa), ka = ({
|
|
6912
6909
|
label: i,
|
|
6913
6910
|
hideLabel: t,
|
|
@@ -6918,20 +6915,20 @@ const De = (i, t = 10) => {
|
|
|
6918
6915
|
feedbackText: o,
|
|
6919
6916
|
hasIcon: d,
|
|
6920
6917
|
icon: r,
|
|
6921
|
-
className:
|
|
6918
|
+
className: g,
|
|
6922
6919
|
required: b = !0,
|
|
6923
|
-
|
|
6920
|
+
onChange: E,
|
|
6921
|
+
...N
|
|
6924
6922
|
}, m) => {
|
|
6925
|
-
const
|
|
6926
|
-
|
|
6927
|
-
const
|
|
6928
|
-
|
|
6929
|
-
D(v), De(() => R == null ? void 0 : R(w));
|
|
6923
|
+
const s = se(), R = { ...N };
|
|
6924
|
+
R.id = R.id ?? s;
|
|
6925
|
+
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1), j = (w) => {
|
|
6926
|
+
D(w.currentTarget.value.length > 0), E == null || E(w);
|
|
6930
6927
|
}, h = c(A) ? "dark" : "", Y = () => ({
|
|
6931
6928
|
// main wrapper class
|
|
6932
6929
|
inputWrapperClasses: J("agora-input-search-wrapper", h, {
|
|
6933
|
-
"flex flex-col": !
|
|
6934
|
-
"input-disabled": !!
|
|
6930
|
+
"flex flex-col": !R.hidden,
|
|
6931
|
+
"input-disabled": !!R.disabled,
|
|
6935
6932
|
"has-error": c(a),
|
|
6936
6933
|
"has-feedback": c(l),
|
|
6937
6934
|
["feedback-" + n]: c(l) && n
|
|
@@ -6952,27 +6949,27 @@ const De = (i, t = 10) => {
|
|
|
6952
6949
|
{
|
|
6953
6950
|
"has-leading-icon": d && (r == null ? void 0 : r.indexOf("agora-line")) === 0,
|
|
6954
6951
|
// allowing only line family icon
|
|
6955
|
-
"has-value": I
|
|
6952
|
+
"has-value": I
|
|
6956
6953
|
},
|
|
6957
|
-
|
|
6954
|
+
g
|
|
6958
6955
|
),
|
|
6959
6956
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
6960
6957
|
}), { inputWrapperClasses: M, labelSectionClasses: U, inputClasses: G, leadingIconWrapperClasses: u } = Y(), p = J("input-search-label", h);
|
|
6961
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!
|
|
6958
|
+
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(
|
|
6962
6959
|
"input",
|
|
6963
6960
|
{
|
|
6964
|
-
...
|
|
6961
|
+
...R,
|
|
6965
6962
|
type: "search",
|
|
6966
6963
|
className: G,
|
|
6967
|
-
disabled: !!
|
|
6964
|
+
disabled: !!R.disabled,
|
|
6968
6965
|
"aria-invalid": c(a),
|
|
6969
|
-
"aria-label": c(t) ?
|
|
6966
|
+
"aria-label": c(t) ? R["aria-label"] ?? i : R["aria-label"],
|
|
6970
6967
|
ref: m,
|
|
6971
6968
|
required: b,
|
|
6972
6969
|
onChange: j
|
|
6973
6970
|
}
|
|
6974
6971
|
), d && r && r.startsWith("agora-line") && /* @__PURE__ */ e.createElement("div", { className: u }, /* @__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(
|
|
6975
|
-
|
|
6972
|
+
pe,
|
|
6976
6973
|
{
|
|
6977
6974
|
feedbackState: c(a) ? "danger" : n,
|
|
6978
6975
|
feedbackText: o,
|
|
@@ -6983,8 +6980,8 @@ const De = (i, t = 10) => {
|
|
|
6983
6980
|
let t = 0;
|
|
6984
6981
|
const a = [];
|
|
6985
6982
|
return Ge.forEach(i, (l) => {
|
|
6986
|
-
|
|
6987
|
-
|
|
6983
|
+
Me(l) && Ge.forEach(l.props.children, (n) => {
|
|
6984
|
+
Me(n) && (t = n.props.disabled ? t : t + 1, n.props.selected && a.push(n.props));
|
|
6988
6985
|
});
|
|
6989
6986
|
}), {
|
|
6990
6987
|
allItemsEnabled: t,
|
|
@@ -7000,11 +6997,11 @@ const De = (i, t = 10) => {
|
|
|
7000
6997
|
hasIcon: o,
|
|
7001
6998
|
icon: d,
|
|
7002
6999
|
hasFeedback: r,
|
|
7003
|
-
feedbackText:
|
|
7000
|
+
feedbackText: g,
|
|
7004
7001
|
feedbackState: b,
|
|
7005
|
-
darkMode:
|
|
7006
|
-
hasError:
|
|
7007
|
-
required:
|
|
7002
|
+
darkMode: E,
|
|
7003
|
+
hasError: N,
|
|
7004
|
+
required: m = !0,
|
|
7008
7005
|
onChange: s,
|
|
7009
7006
|
searchable: R,
|
|
7010
7007
|
selectAllLabel: I,
|
|
@@ -7030,11 +7027,11 @@ const De = (i, t = 10) => {
|
|
|
7030
7027
|
);
|
|
7031
7028
|
const B = J(
|
|
7032
7029
|
"agora-input-select",
|
|
7033
|
-
{ dark: c(
|
|
7030
|
+
{ dark: c(E) },
|
|
7034
7031
|
{
|
|
7035
7032
|
disabled: c(S.disabled),
|
|
7036
7033
|
"has-value": K.length > 0,
|
|
7037
|
-
"has-error": c(
|
|
7034
|
+
"has-error": c(N),
|
|
7038
7035
|
"has-feedback": c(r),
|
|
7039
7036
|
["feedback-" + b]: c(r) && b
|
|
7040
7037
|
}
|
|
@@ -7056,7 +7053,7 @@ const De = (i, t = 10) => {
|
|
|
7056
7053
|
var P;
|
|
7057
7054
|
L(!0), (P = V.current) == null || P.first();
|
|
7058
7055
|
}, x = (P) => {
|
|
7059
|
-
W(P),
|
|
7056
|
+
W(P), Ue(() => s == null ? void 0 : s(P));
|
|
7060
7057
|
}, Q = () => {
|
|
7061
7058
|
var P, ne, Ee;
|
|
7062
7059
|
(P = V.current) != null && P.visibility ? (ne = V.current) == null || ne.hide() : (Ee = V.current) == null || Ee.show();
|
|
@@ -7075,7 +7072,7 @@ const De = (i, t = 10) => {
|
|
|
7075
7072
|
document == null || document.removeEventListener("click", P);
|
|
7076
7073
|
};
|
|
7077
7074
|
}, []);
|
|
7078
|
-
const me = J("agora-input-select-label", { dark: c(
|
|
7075
|
+
const me = J("agora-input-select-label", { dark: c(E) });
|
|
7079
7076
|
return /* @__PURE__ */ e.createElement("div", { className: B, hidden: !!S.hidden }, !c(t) && /* @__PURE__ */ e.createElement("div", { id: `agora-input-select-${S.id}-control-label`, className: me, onClickCapture: te }, i), /* @__PURE__ */ e.createElement("div", { className: "agora-input-select-control-wrapper", ref: T }, /* @__PURE__ */ e.createElement(
|
|
7080
7077
|
"div",
|
|
7081
7078
|
{
|
|
@@ -7083,11 +7080,11 @@ const De = (i, t = 10) => {
|
|
|
7083
7080
|
id: `agora-input-select-${S.id}-control`,
|
|
7084
7081
|
"aria-labelledby": `agora-input-select-${S.id}-control-label`,
|
|
7085
7082
|
role: "combobox",
|
|
7086
|
-
"aria-invalid": c(
|
|
7083
|
+
"aria-invalid": c(N),
|
|
7087
7084
|
"aria-disabled": c(S.disabled),
|
|
7088
7085
|
"aria-expanded": F,
|
|
7089
7086
|
"aria-controls": S.id,
|
|
7090
|
-
"aria-required":
|
|
7087
|
+
"aria-required": m,
|
|
7091
7088
|
"aria-label": c(t) ? S["aria-label"] ?? i : S["aria-label"],
|
|
7092
7089
|
className: z,
|
|
7093
7090
|
tabIndex: S.disabled ? -1 : 0,
|
|
@@ -7117,12 +7114,12 @@ const De = (i, t = 10) => {
|
|
|
7117
7114
|
onShow: X
|
|
7118
7115
|
},
|
|
7119
7116
|
M
|
|
7120
|
-
))), (c(r) || c(
|
|
7121
|
-
|
|
7117
|
+
))), (c(r) || c(N)) && g && /* @__PURE__ */ e.createElement(
|
|
7118
|
+
pe,
|
|
7122
7119
|
{
|
|
7123
|
-
feedbackState: c(
|
|
7124
|
-
feedbackText:
|
|
7125
|
-
darkMode: c(
|
|
7120
|
+
feedbackState: c(N) ? "danger" : b,
|
|
7121
|
+
feedbackText: g,
|
|
7122
|
+
darkMode: c(E)
|
|
7126
7123
|
}
|
|
7127
7124
|
));
|
|
7128
7125
|
}, zn = re(Ba), Ta = ({
|
|
@@ -7135,23 +7132,23 @@ const De = (i, t = 10) => {
|
|
|
7135
7132
|
feedbackText: o,
|
|
7136
7133
|
hasIcon: d,
|
|
7137
7134
|
icon: r,
|
|
7138
|
-
className:
|
|
7135
|
+
className: g,
|
|
7139
7136
|
required: b = !0,
|
|
7140
|
-
|
|
7137
|
+
onChange: E,
|
|
7138
|
+
...N
|
|
7141
7139
|
}, m) => {
|
|
7142
|
-
const
|
|
7143
|
-
|
|
7144
|
-
const
|
|
7145
|
-
|
|
7146
|
-
D(w), De(() => R == null ? void 0 : R(p));
|
|
7140
|
+
const s = se(), R = { ...N };
|
|
7141
|
+
R.id = R.id ?? s;
|
|
7142
|
+
const [I, D] = O(R.value ? R.value.toString().length > 0 : !1), j = (p) => {
|
|
7143
|
+
D(p.currentTarget.value.length > 0), E == null || E(p);
|
|
7147
7144
|
}, h = () => ({
|
|
7148
7145
|
// main wrapper class
|
|
7149
7146
|
inputWrapperClasses: J(
|
|
7150
7147
|
"agora-input-text-wrapper",
|
|
7151
7148
|
{ dark: c(A) },
|
|
7152
7149
|
{
|
|
7153
|
-
"flex flex-col": !
|
|
7154
|
-
"input-disabled": !!
|
|
7150
|
+
"flex flex-col": !R.hidden,
|
|
7151
|
+
"input-disabled": !!R.disabled,
|
|
7155
7152
|
"has-error": c(a),
|
|
7156
7153
|
"has-feedback": c(l),
|
|
7157
7154
|
["feedback-" + n]: c(l) && n
|
|
@@ -7172,27 +7169,27 @@ const De = (i, t = 10) => {
|
|
|
7172
7169
|
{
|
|
7173
7170
|
"has-leading-icon": r == null ? void 0 : r.startsWith("agora-line"),
|
|
7174
7171
|
// allowing only line family icon
|
|
7175
|
-
"has-value": I
|
|
7172
|
+
"has-value": I
|
|
7176
7173
|
},
|
|
7177
|
-
|
|
7174
|
+
g
|
|
7178
7175
|
),
|
|
7179
7176
|
leadingIconWrapperClasses: J("input-leading-icon")
|
|
7180
7177
|
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses: U, leadingIconWrapperClasses: G } = h(), u = J("input-text-label", { dark: c(A) });
|
|
7181
|
-
return /* @__PURE__ */ e.createElement("div", { hidden: !!
|
|
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: u }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center" }, /* @__PURE__ */ e.createElement(
|
|
7182
7179
|
"input",
|
|
7183
7180
|
{
|
|
7184
|
-
...
|
|
7181
|
+
...R,
|
|
7185
7182
|
type: "text",
|
|
7186
7183
|
className: U,
|
|
7187
|
-
disabled: !!
|
|
7184
|
+
disabled: !!R.disabled,
|
|
7188
7185
|
"aria-invalid": c(a),
|
|
7189
|
-
"aria-label": c(t) ?
|
|
7186
|
+
"aria-label": c(t) ? R["aria-label"] ?? i : R["aria-label"],
|
|
7190
7187
|
ref: m,
|
|
7191
7188
|
required: b,
|
|
7192
7189
|
onChange: j
|
|
7193
7190
|
}
|
|
7194
7191
|
), 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(
|
|
7195
|
-
|
|
7192
|
+
pe,
|
|
7196
7193
|
{
|
|
7197
7194
|
feedbackState: c(a) ? "danger" : n,
|
|
7198
7195
|
feedbackText: o,
|
|
@@ -7209,19 +7206,20 @@ const De = (i, t = 10) => {
|
|
|
7209
7206
|
feedbackState: o = "info",
|
|
7210
7207
|
darkMode: d,
|
|
7211
7208
|
className: r,
|
|
7212
|
-
required:
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
const
|
|
7218
|
-
|
|
7219
|
-
|
|
7209
|
+
required: g = !0,
|
|
7210
|
+
onChange: b,
|
|
7211
|
+
...E
|
|
7212
|
+
}, N) => {
|
|
7213
|
+
var p, w;
|
|
7214
|
+
const m = se(), s = { ...E };
|
|
7215
|
+
s.id = s.id ?? m, s.rows = Math.max(s.rows ?? 0, 3);
|
|
7216
|
+
const [R, I] = O(s.value ? s.value.toString().length > 0 : !1), D = (v) => {
|
|
7217
|
+
I(v.currentTarget.value.length > 0), b == null || b(v);
|
|
7220
7218
|
}, j = c(d) ? "dark" : "", h = () => ({
|
|
7221
7219
|
// main wrapper class
|
|
7222
7220
|
inputWrapperClasses: J("agora-input-textarea-wrapper", j, {
|
|
7223
|
-
"flex flex-col": !
|
|
7224
|
-
"input-disabled":
|
|
7221
|
+
"flex flex-col": !s.hidden,
|
|
7222
|
+
"input-disabled": s.disabled,
|
|
7225
7223
|
"has-error": c(a),
|
|
7226
7224
|
"has-feedback": c(l),
|
|
7227
7225
|
["feedback-" + o]: c(l) && o
|
|
@@ -7236,60 +7234,60 @@ const De = (i, t = 10) => {
|
|
|
7236
7234
|
inputClasses: J(
|
|
7237
7235
|
"agora-input-textarea",
|
|
7238
7236
|
{
|
|
7239
|
-
"has-value": R
|
|
7237
|
+
"has-value": R
|
|
7240
7238
|
},
|
|
7241
7239
|
r
|
|
7242
7240
|
)
|
|
7243
7241
|
}), { inputWrapperClasses: Y, labelSectionClasses: M, inputClasses: U } = h(), G = J("input-textarea-label", j), u = J("char-counter", j);
|
|
7244
|
-
return /* @__PURE__ */ e.createElement("div", { hidden:
|
|
7242
|
+
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(
|
|
7245
7243
|
"textarea",
|
|
7246
7244
|
{
|
|
7247
|
-
...
|
|
7245
|
+
...s,
|
|
7248
7246
|
className: U,
|
|
7249
7247
|
"aria-invalid": c(a),
|
|
7250
|
-
"aria-label": c(t) ?
|
|
7251
|
-
required:
|
|
7252
|
-
ref:
|
|
7248
|
+
"aria-label": c(t) ? s["aria-label"] ?? i : s["aria-label"],
|
|
7249
|
+
required: g,
|
|
7250
|
+
ref: N,
|
|
7253
7251
|
onChange: D
|
|
7254
7252
|
}
|
|
7255
7253
|
)), (c(l) || c(n)) && /* @__PURE__ */ e.createElement("div", { className: "flex justify-end" }, (c(l) || c(a)) && A && /* @__PURE__ */ e.createElement(
|
|
7256
|
-
|
|
7254
|
+
pe,
|
|
7257
7255
|
{
|
|
7258
7256
|
feedbackState: c(a) ? "danger" : o,
|
|
7259
7257
|
feedbackText: A,
|
|
7260
7258
|
darkMode: c(d)
|
|
7261
7259
|
}
|
|
7262
|
-
), c(n) && /* @__PURE__ */ e.createElement("div", { className: u }, /* @__PURE__ */ e.createElement("span", null, `${(
|
|
7260
|
+
), c(n) && /* @__PURE__ */ e.createElement("div", { className: u }, /* @__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}`))));
|
|
7263
7261
|
}, Tn = re(xa), Fa = ({ title: i, subtitle: t, ...a }) => {
|
|
7264
7262
|
const l = J("agora-loader-dialog");
|
|
7265
7263
|
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)]" }))));
|
|
7266
7264
|
}, Qi = xe({}), xn = () => Fe(Qi), Fn = ({ children: i }) => {
|
|
7267
7265
|
const t = C(null), [a, l] = O(), [n, A] = O(""), o = ge(
|
|
7268
|
-
(
|
|
7269
|
-
var b,
|
|
7270
|
-
if (
|
|
7271
|
-
A(
|
|
7272
|
-
else if (
|
|
7273
|
-
const s =
|
|
7266
|
+
(g) => {
|
|
7267
|
+
var b, E, N;
|
|
7268
|
+
if (g["aria-label"])
|
|
7269
|
+
A(g["aria-label"]);
|
|
7270
|
+
else if (g["aria-labelledby"]) {
|
|
7271
|
+
const s = g["aria-labelledby"].split(" ").map((R) => {
|
|
7274
7272
|
var I;
|
|
7275
7273
|
return ((I = document.getElementById(R)) == null ? void 0 : I.innerText) ?? "";
|
|
7276
7274
|
}).filter((R) => !!R).join(" ");
|
|
7277
7275
|
A(s);
|
|
7278
7276
|
} else
|
|
7279
|
-
A(`${(b =
|
|
7280
|
-
l(
|
|
7277
|
+
A(`${(b = g.title) == null ? void 0 : b.toString()} ${(E = g.subtitle) == null ? void 0 : E.toString()}`);
|
|
7278
|
+
l(g), (N = t.current) == null || N.show();
|
|
7281
7279
|
},
|
|
7282
7280
|
[l]
|
|
7283
7281
|
), d = ge(() => {
|
|
7284
|
-
var
|
|
7285
|
-
A(""), (
|
|
7282
|
+
var g;
|
|
7283
|
+
A(""), (g = t.current) == null || g.hide();
|
|
7286
7284
|
}, []), r = de(
|
|
7287
7285
|
() => {
|
|
7288
|
-
var
|
|
7286
|
+
var g;
|
|
7289
7287
|
return {
|
|
7290
7288
|
showLoader: o,
|
|
7291
7289
|
current: t.current,
|
|
7292
|
-
visibility: !!((
|
|
7290
|
+
visibility: !!((g = t.current) != null && g.visible),
|
|
7293
7291
|
hideLoader: d
|
|
7294
7292
|
};
|
|
7295
7293
|
},
|
|
@@ -7314,15 +7312,15 @@ const De = (i, t = 10) => {
|
|
|
7314
7312
|
)), /* @__PURE__ */ e.createElement("div", { className: "agora-popup-dialog-body mb-32 max-h-[calc(100%-160px)] overflow-hidden" }, /* @__PURE__ */ e.createElement("div", { className: "max-h-full overflow-auto container mx-auto" }, t))));
|
|
7315
7313
|
}, Ln = ({ dismissOnEscape: i = !0, children: t }) => {
|
|
7316
7314
|
const a = C(null), [l, n] = O(), [A, o] = O(), d = ge(
|
|
7317
|
-
(b,
|
|
7318
|
-
var
|
|
7319
|
-
n(b), o(
|
|
7315
|
+
(b, E) => {
|
|
7316
|
+
var N;
|
|
7317
|
+
n(b), o(E), (N = a.current) == null || N.show();
|
|
7320
7318
|
},
|
|
7321
7319
|
[n, o]
|
|
7322
7320
|
), r = ge(() => {
|
|
7323
7321
|
var b;
|
|
7324
7322
|
(b = a.current) == null || b.hide();
|
|
7325
|
-
}, []),
|
|
7323
|
+
}, []), g = de(
|
|
7326
7324
|
() => {
|
|
7327
7325
|
var b;
|
|
7328
7326
|
return {
|
|
@@ -7334,7 +7332,7 @@ const De = (i, t = 10) => {
|
|
|
7334
7332
|
},
|
|
7335
7333
|
[d, r]
|
|
7336
7334
|
);
|
|
7337
|
-
return /* @__PURE__ */ e.createElement(Vi.Provider, { value:
|
|
7335
|
+
return /* @__PURE__ */ e.createElement(Vi.Provider, { value: g }, /* @__PURE__ */ e.createElement(
|
|
7338
7336
|
Xe,
|
|
7339
7337
|
{
|
|
7340
7338
|
ref: a,
|
|
@@ -7346,18 +7344,18 @@ const De = (i, t = 10) => {
|
|
|
7346
7344
|
!!A && /* @__PURE__ */ e.createElement(Qa, { configurations: A }, l)
|
|
7347
7345
|
), t);
|
|
7348
7346
|
}, Oi = xe({}), Va = () => Fe(Oi), Oa = ({ configurations: i, children: t }) => {
|
|
7349
|
-
const { height: a, width: l } = ze(), n = C(null), A = C(null), [o, d] = O(""), [r,
|
|
7347
|
+
const { height: a, width: l } = ze(), n = C(null), A = C(null), [o, d] = O(""), [r, g] = O(""), { hide: b } = Va(), E = J("agora-popup-dialog max-h-full rounded-16 p-32", `agora-popup-dialog-${i.dimensions}`, {
|
|
7350
7348
|
"dark-mode": c(i.darkMode)
|
|
7351
|
-
}),
|
|
7349
|
+
}), N = J("title mt-8 w-full line-clamp-6 text-xl-bold");
|
|
7352
7350
|
return ie(() => {
|
|
7353
|
-
const
|
|
7354
|
-
if (
|
|
7351
|
+
const m = n.current, s = A.current;
|
|
7352
|
+
if (m && s) {
|
|
7355
7353
|
let R = 128;
|
|
7356
7354
|
l >= 768 && (R = 128 * 2);
|
|
7357
7355
|
const I = a - R, { height: D } = s.getBoundingClientRect();
|
|
7358
|
-
d(`${I}px`),
|
|
7356
|
+
d(`${I}px`), g(`${I - D - 16 - 64}px`);
|
|
7359
7357
|
}
|
|
7360
|
-
}, [t, l, a]), /* @__PURE__ */ e.createElement("div", { className: "absolute z-dialog max-h-full flex justify-center my-64 md:my-128 mx-32 md:mx-auto" }, /* @__PURE__ */ e.createElement("div", { ref: n, className:
|
|
7358
|
+
}, [t, l, a]), /* @__PURE__ */ e.createElement("div", { className: "absolute z-dialog max-h-full flex justify-center my-64 md:my-128 mx-32 md:mx-auto" }, /* @__PURE__ */ e.createElement("div", { ref: n, className: E, style: { maxHeight: o ?? "none" } }, /* @__PURE__ */ e.createElement("div", { ref: A, className: "agora-popup-dialog-header flex flex-row items-start gap-24 mb-16" }, /* @__PURE__ */ e.createElement("div", { className: N }, i.title), /* @__PURE__ */ e.createElement(
|
|
7361
7359
|
Ne,
|
|
7362
7360
|
{
|
|
7363
7361
|
onClick: b,
|
|
@@ -7373,25 +7371,25 @@ const De = (i, t = 10) => {
|
|
|
7373
7371
|
)), /* @__PURE__ */ e.createElement("div", { style: { maxHeight: r ?? "none" }, className: "agora-popup-dialog-body overflow-y-auto" }, t)));
|
|
7374
7372
|
}, Qn = ({ dismissOnBackdropClick: i = !0, dismissOnEscape: t = !0, children: a }) => {
|
|
7375
7373
|
const l = C(null), [n, A] = O(), [o, d] = O(), r = ge(
|
|
7376
|
-
(
|
|
7377
|
-
var
|
|
7378
|
-
A(
|
|
7374
|
+
(E, N) => {
|
|
7375
|
+
var m;
|
|
7376
|
+
A(E), d(N), (m = l.current) == null || m.show();
|
|
7379
7377
|
},
|
|
7380
7378
|
[A, d]
|
|
7381
|
-
),
|
|
7382
|
-
var
|
|
7383
|
-
(
|
|
7379
|
+
), g = ge(() => {
|
|
7380
|
+
var E;
|
|
7381
|
+
(E = l.current) == null || E.hide();
|
|
7384
7382
|
}, []), b = de(
|
|
7385
7383
|
() => {
|
|
7386
|
-
var
|
|
7384
|
+
var E;
|
|
7387
7385
|
return {
|
|
7388
7386
|
current: l.current,
|
|
7389
|
-
visibility: !!((
|
|
7387
|
+
visibility: !!((E = l.current) != null && E.visible),
|
|
7390
7388
|
show: r,
|
|
7391
|
-
hide:
|
|
7389
|
+
hide: g
|
|
7392
7390
|
};
|
|
7393
7391
|
},
|
|
7394
|
-
[r,
|
|
7392
|
+
[r, g]
|
|
7395
7393
|
);
|
|
7396
7394
|
return /* @__PURE__ */ e.createElement(Oi.Provider, { value: b }, /* @__PURE__ */ e.createElement(
|
|
7397
7395
|
Xe,
|
|
@@ -7415,19 +7413,19 @@ const De = (i, t = 10) => {
|
|
|
7415
7413
|
hasError: d,
|
|
7416
7414
|
...r
|
|
7417
7415
|
}) => {
|
|
7418
|
-
const
|
|
7419
|
-
b.id = b.id ??
|
|
7420
|
-
const
|
|
7416
|
+
const g = se(), b = { ...r };
|
|
7417
|
+
b.id = b.id ?? g;
|
|
7418
|
+
const E = t !== 0 ? (i / t * 100).toFixed(0) : 0, N = J("agora-progress-bar", a, {
|
|
7421
7419
|
"progress-error": c(d),
|
|
7422
7420
|
"progress-complete": i > 0 && i === t,
|
|
7423
7421
|
"progress-empty": i === 0,
|
|
7424
7422
|
"progress-progress": c(o) && i < t,
|
|
7425
7423
|
"progress-hold": !c(o) && i < t
|
|
7426
|
-
}),
|
|
7424
|
+
}), m = J("progress-bar-percentage", {
|
|
7427
7425
|
"sr-only": c(A),
|
|
7428
7426
|
"not-sr-only": !c(A)
|
|
7429
7427
|
});
|
|
7430
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
7428
|
+
return /* @__PURE__ */ e.createElement("div", { className: N, ...r }, !c(n) && /* @__PURE__ */ e.createElement("label", { htmlFor: b.id }, l), /* @__PURE__ */ e.createElement(
|
|
7431
7429
|
"progress",
|
|
7432
7430
|
{
|
|
7433
7431
|
id: b.id,
|
|
@@ -7437,7 +7435,7 @@ const De = (i, t = 10) => {
|
|
|
7437
7435
|
"aria-valuetext": `${i}/${t}`,
|
|
7438
7436
|
"aria-label": c(n) ? b["aria-label"] ?? l : b["aria-label"]
|
|
7439
7437
|
}
|
|
7440
|
-
), /* @__PURE__ */ e.createElement("p", { className:
|
|
7438
|
+
), /* @__PURE__ */ e.createElement("p", { className: m, role: "status" }, E, "%"));
|
|
7441
7439
|
}, On = ({
|
|
7442
7440
|
label: i,
|
|
7443
7441
|
hideLabel: t,
|
|
@@ -7447,40 +7445,40 @@ const De = (i, t = 10) => {
|
|
|
7447
7445
|
...A
|
|
7448
7446
|
}) => {
|
|
7449
7447
|
const o = Ge.toArray(l), d = de(() => {
|
|
7450
|
-
let
|
|
7448
|
+
let m = !1, s = 0;
|
|
7451
7449
|
if (o.forEach((I) => {
|
|
7452
|
-
|
|
7453
|
-
}), !
|
|
7450
|
+
Me(I) && I.props.current && (s += 1, m = !0);
|
|
7451
|
+
}), !m)
|
|
7454
7452
|
return 0;
|
|
7455
|
-
if (
|
|
7456
|
-
return o.findIndex((I) =>
|
|
7457
|
-
const R = o.findIndex((I) =>
|
|
7453
|
+
if (m && s === 1)
|
|
7454
|
+
return o.findIndex((I) => Me(I) && I.props.current);
|
|
7455
|
+
const R = o.findIndex((I) => Me(I) ? Math.max(0, Math.min(I.props.value ?? 0, I.props.max ?? 0)) < (I.props.max ?? 0) : !1);
|
|
7458
7456
|
return R < 0 ? o.length - 1 : R;
|
|
7459
7457
|
}, [o]), r = de(() => {
|
|
7460
|
-
let
|
|
7458
|
+
let m = 0;
|
|
7461
7459
|
return o.forEach((s) => {
|
|
7462
|
-
|
|
7463
|
-
}),
|
|
7464
|
-
}, [o]),
|
|
7465
|
-
let
|
|
7460
|
+
Me(s) && (m += s.props.max ?? 0);
|
|
7461
|
+
}), m;
|
|
7462
|
+
}, [o]), g = de(() => {
|
|
7463
|
+
let m = 0;
|
|
7466
7464
|
return o.forEach((s) => {
|
|
7467
|
-
|
|
7468
|
-
}),
|
|
7469
|
-
}, [o]), b = (
|
|
7465
|
+
Me(s) && (m += s.props.value ?? 0);
|
|
7466
|
+
}), m;
|
|
7467
|
+
}, [o]), b = (m, s) => {
|
|
7470
7468
|
const R = s === d;
|
|
7471
|
-
let I =
|
|
7472
|
-
return n && (I = d < s ? 0 : I), Ze(
|
|
7473
|
-
key:
|
|
7469
|
+
let I = m.props.value ?? 0;
|
|
7470
|
+
return n && (I = d < s ? 0 : I), Ze(m, {
|
|
7471
|
+
key: m.props.id ?? s,
|
|
7474
7472
|
current: R,
|
|
7475
7473
|
value: I,
|
|
7476
7474
|
"aria-hidden": !0
|
|
7477
7475
|
});
|
|
7478
|
-
},
|
|
7479
|
-
let
|
|
7476
|
+
}, E = () => {
|
|
7477
|
+
let m = 0;
|
|
7480
7478
|
return Ge.forEach(l, (s, R) => {
|
|
7481
|
-
|
|
7482
|
-
}), Math.round(
|
|
7483
|
-
},
|
|
7479
|
+
Me(s) && s.props.value !== void 0 && s.props.max !== void 0 && (!n || R <= d) && (m += Math.min(s.props.value, s.props.max));
|
|
7480
|
+
}), Math.round(m / r * 100);
|
|
7481
|
+
}, N = J("progress-bar-percentage", {
|
|
7484
7482
|
"sr-only": a,
|
|
7485
7483
|
"not-sr-only": !a
|
|
7486
7484
|
});
|
|
@@ -7489,35 +7487,35 @@ const De = (i, t = 10) => {
|
|
|
7489
7487
|
{
|
|
7490
7488
|
className: "progress-bar-group",
|
|
7491
7489
|
role: "progressbar",
|
|
7492
|
-
"aria-valuenow":
|
|
7493
|
-
"aria-valuetext": `${
|
|
7490
|
+
"aria-valuenow": g,
|
|
7491
|
+
"aria-valuetext": `${g}/${r}`,
|
|
7494
7492
|
"aria-valuemax": 100,
|
|
7495
7493
|
"aria-label": i
|
|
7496
7494
|
},
|
|
7497
|
-
Ge.map(l, (
|
|
7498
|
-
), !a && /* @__PURE__ */ e.createElement("div", { className:
|
|
7499
|
-
}, Xa = ({ label: i, hasError: t, hideLabel: a, required: l = !0, hasFeedback: n, feedbackState: A = "info", feedbackText: o, darkMode: d, children: r, ...
|
|
7500
|
-
const
|
|
7501
|
-
|
|
7502
|
-
const
|
|
7503
|
-
disabled:
|
|
7495
|
+
Ge.map(l, (m, s) => Me(m) ? b(m, s) : null)
|
|
7496
|
+
), !a && /* @__PURE__ */ e.createElement("div", { className: N, role: "status" }, E(), "%"));
|
|
7497
|
+
}, Xa = ({ label: i, hasError: t, hideLabel: a, required: l = !0, hasFeedback: n, feedbackState: A = "info", feedbackText: o, darkMode: d, children: r, ...g }, b) => {
|
|
7498
|
+
const E = se(), N = { ...g };
|
|
7499
|
+
N.id = N.id ?? E;
|
|
7500
|
+
const m = J("agora-radio-button", {
|
|
7501
|
+
disabled: g.disabled,
|
|
7504
7502
|
error: c(t),
|
|
7505
7503
|
dark: c(d)
|
|
7506
7504
|
});
|
|
7507
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { hidden:
|
|
7505
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { hidden: N.hidden, className: m }, /* @__PURE__ */ e.createElement(
|
|
7508
7506
|
"input",
|
|
7509
7507
|
{
|
|
7510
|
-
...
|
|
7508
|
+
...N,
|
|
7511
7509
|
className: "inner-input",
|
|
7512
7510
|
type: "radio",
|
|
7513
|
-
"aria-label": c(a) ?
|
|
7511
|
+
"aria-label": c(a) ? N["aria-label"] ?? i : N["aria-label"],
|
|
7514
7512
|
ref: b,
|
|
7515
7513
|
required: l,
|
|
7516
|
-
tabIndex:
|
|
7517
|
-
disabled:
|
|
7514
|
+
tabIndex: N.disabled ? -1 : 0,
|
|
7515
|
+
disabled: N.disabled
|
|
7518
7516
|
}
|
|
7519
|
-
), /* @__PURE__ */ e.createElement("div", { className: "radio-wrapper" }, /* @__PURE__ */ e.createElement("span", { className: "mark" }), !a && /* @__PURE__ */ e.createElement("label", { className: "label", htmlFor:
|
|
7520
|
-
|
|
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", null, r ?? i)))), (c(n) || c(t)) && o && /* @__PURE__ */ e.createElement("div", { className: "agora-radio-button-feedback px-8" }, /* @__PURE__ */ e.createElement(
|
|
7518
|
+
pe,
|
|
7521
7519
|
{
|
|
7522
7520
|
feedbackState: c(t) ? "danger" : A,
|
|
7523
7521
|
feedbackText: o,
|
|
@@ -7534,17 +7532,17 @@ const De = (i, t = 10) => {
|
|
|
7534
7532
|
onChange: o,
|
|
7535
7533
|
children: d,
|
|
7536
7534
|
name: r,
|
|
7537
|
-
...
|
|
7535
|
+
...g
|
|
7538
7536
|
}) => {
|
|
7539
|
-
const b = se(),
|
|
7540
|
-
|
|
7541
|
-
},
|
|
7542
|
-
onChange:
|
|
7537
|
+
const b = se(), E = (s) => {
|
|
7538
|
+
Ue(() => o == null ? void 0 : o(s));
|
|
7539
|
+
}, N = J("agora-radio-button-group", i), m = Ge.map(d, (s) => Me(s) ? Ze(s, {
|
|
7540
|
+
onChange: E,
|
|
7543
7541
|
name: r ?? b,
|
|
7544
7542
|
hasError: c(a),
|
|
7545
7543
|
hasFeedback: c(l)
|
|
7546
7544
|
}) : null);
|
|
7547
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
7545
|
+
return /* @__PURE__ */ e.createElement("div", { className: N }, /* @__PURE__ */ e.createElement("fieldset", { ...g }, t && /* @__PURE__ */ e.createElement("legend", { className: "text-[var(--color-primary-900)] text-m-medium mb-8" }, t), m), (c(l) || c(a)) && A && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(a) ? "danger" : n, feedbackText: A }));
|
|
7548
7546
|
}, Xi = {
|
|
7549
7547
|
// Wave
|
|
7550
7548
|
"agora-wave-left-l": Z(() => import("./wave-left-l-BZZlEa5G.mjs")),
|
|
@@ -7593,12 +7591,12 @@ const De = (i, t = 10) => {
|
|
|
7593
7591
|
d();
|
|
7594
7592
|
return;
|
|
7595
7593
|
}
|
|
7596
|
-
const
|
|
7594
|
+
const g = Pa(i), b = {
|
|
7597
7595
|
...n,
|
|
7598
7596
|
className: A,
|
|
7599
7597
|
title: n.title ?? n.alt
|
|
7600
7598
|
};
|
|
7601
|
-
return o(),
|
|
7599
|
+
return o(), g && /* @__PURE__ */ e.createElement(Ji, null, /* @__PURE__ */ e.createElement(g, { ...b }));
|
|
7602
7600
|
}, fa = ({ className: i, current: t, pageNumber: a, ...l }, n) => {
|
|
7603
7601
|
const A = J("search-page", i, {
|
|
7604
7602
|
current: c(t)
|
|
@@ -7628,37 +7626,37 @@ const De = (i, t = 10) => {
|
|
|
7628
7626
|
label: o,
|
|
7629
7627
|
nextPageAriaLabel: d,
|
|
7630
7628
|
previousPageAriaLabel: r,
|
|
7631
|
-
onChange:
|
|
7629
|
+
onChange: g,
|
|
7632
7630
|
...b
|
|
7633
|
-
},
|
|
7634
|
-
const { width:
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
}, [
|
|
7631
|
+
}, E) => {
|
|
7632
|
+
const { width: N } = ze(), [m, s] = O(0), R = J("nav-arrows");
|
|
7633
|
+
N < 360 && (n = 1, A = 0), ie(() => {
|
|
7634
|
+
Ue(() => g == null ? void 0 : g(m));
|
|
7635
|
+
}, [m]);
|
|
7638
7636
|
const I = () => {
|
|
7639
|
-
|
|
7637
|
+
m > 0 && s((M) => M - 1);
|
|
7640
7638
|
}, D = () => {
|
|
7641
|
-
|
|
7639
|
+
m < i - 1 && s((M) => M + 1);
|
|
7642
7640
|
}, j = Array.from({ length: i }, (M, U) => /* @__PURE__ */ e.createElement(Ka, { key: U, pageNumber: U + 1 })), h = de(() => j == null ? void 0 : j.map((M, U) => Ze(M, {
|
|
7643
7641
|
...M.props,
|
|
7644
7642
|
onClick: () => s(U),
|
|
7645
|
-
current: c(
|
|
7646
|
-
})), [t, i, n, A,
|
|
7647
|
-
const M = Math.max(
|
|
7643
|
+
current: c(m === U)
|
|
7644
|
+
})), [t, i, n, A, m]), Y = de(() => {
|
|
7645
|
+
const M = Math.max(m - A, 0), U = Math.min(m + A, i), G = j.slice(0, n), u = j.slice(M, U + 1), p = j.slice(i - n, i), w = [.../* @__PURE__ */ new Set([...G, ...u, ...p])], v = M > n, S = U < i - (n + 1);
|
|
7648
7646
|
return j == null ? void 0 : j.map((F, L) => {
|
|
7649
7647
|
if (w.some((T) => F == T))
|
|
7650
7648
|
return Ze(F, {
|
|
7651
7649
|
...F.props,
|
|
7652
7650
|
onClick: () => s(L),
|
|
7653
|
-
current: c(
|
|
7651
|
+
current: c(m === L)
|
|
7654
7652
|
});
|
|
7655
7653
|
if (v && L == n)
|
|
7656
7654
|
return /* @__PURE__ */ e.createElement(ji, { key: "left-dots", value: "..." });
|
|
7657
7655
|
if (S && L == i - n - 1)
|
|
7658
7656
|
return /* @__PURE__ */ e.createElement(ji, { key: "right-dots", value: "..." });
|
|
7659
7657
|
});
|
|
7660
|
-
}, [t, i, n, A,
|
|
7661
|
-
return /* @__PURE__ */ e.createElement("nav", { ...b, "aria-label": o, className: "agora-search-pagination", ref:
|
|
7658
|
+
}, [t, i, n, A, m]);
|
|
7659
|
+
return /* @__PURE__ */ e.createElement("nav", { ...b, "aria-label": o, className: "agora-search-pagination", ref: E }, /* @__PURE__ */ e.createElement(
|
|
7662
7660
|
Ne,
|
|
7663
7661
|
{
|
|
7664
7662
|
onClick: I,
|
|
@@ -7667,7 +7665,7 @@ const De = (i, t = 10) => {
|
|
|
7667
7665
|
iconOnly: "true",
|
|
7668
7666
|
leadingIcon: "agora-solid-chevron-left",
|
|
7669
7667
|
leadingIconHover: "agora-solid-chevron-left",
|
|
7670
|
-
disabled:
|
|
7668
|
+
disabled: m === 0,
|
|
7671
7669
|
className: `${R} ${c(a) ? "hide-arrow" : "show-arrow"}`,
|
|
7672
7670
|
"aria-label": r
|
|
7673
7671
|
}
|
|
@@ -7680,19 +7678,19 @@ const De = (i, t = 10) => {
|
|
|
7680
7678
|
iconOnly: "true",
|
|
7681
7679
|
trailingIcon: "agora-solid-chevron-right",
|
|
7682
7680
|
trailingIconHover: "agora-solid-chevron-right",
|
|
7683
|
-
disabled:
|
|
7681
|
+
disabled: m === i - 1,
|
|
7684
7682
|
className: `${R} ${c(l) ? "hide-arrow" : "show-arrow"}`,
|
|
7685
7683
|
"aria-label": d
|
|
7686
7684
|
}
|
|
7687
7685
|
));
|
|
7688
7686
|
}, Pn = re($a), fe = (i, t) => {
|
|
7689
|
-
var A, o, d, r,
|
|
7687
|
+
var A, o, d, r, g, b, E, N, m, s, R, I, D, j;
|
|
7690
7688
|
const a = i.current, n = [...a == null ? void 0 : a.querySelectorAll('[role="treeitem"]')].find((h) => h.ariaCurrent === "page");
|
|
7691
7689
|
if (c(t))
|
|
7692
7690
|
(o = (A = n == null ? void 0 : n.parentElement) == null ? void 0 : A.classList) == null || o.add("agora-sidebar-anchor-item-current");
|
|
7693
7691
|
else {
|
|
7694
7692
|
let h;
|
|
7695
|
-
(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") ? ((
|
|
7693
|
+
(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"]'));
|
|
7696
7694
|
let Y = [h];
|
|
7697
7695
|
for (; h; )
|
|
7698
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 = (j = (D = h == null ? void 0 : h.closest(".agora-sidebar-content-item")) == null ? void 0 : D.previousElementSibling) == null ? void 0 : j.querySelector('[role="treeitem"]'), h && (Y = [...Y, h]);
|
|
@@ -7710,26 +7708,26 @@ const De = (i, t = 10) => {
|
|
|
7710
7708
|
sidebarRef: A
|
|
7711
7709
|
}) => {
|
|
7712
7710
|
const o = C(null), d = () => {
|
|
7713
|
-
var
|
|
7714
|
-
(
|
|
7711
|
+
var m;
|
|
7712
|
+
(m = o.current) == null || m.hide();
|
|
7715
7713
|
}, r = () => {
|
|
7716
|
-
var
|
|
7717
|
-
if ((
|
|
7714
|
+
var m;
|
|
7715
|
+
if ((m = o.current) == null || m.show(), A.current) {
|
|
7718
7716
|
const s = A.current.querySelectorAll('[role="treeitem"]'), R = !!A.current.querySelectorAll('[aria-current="page"]');
|
|
7719
7717
|
s == null || s.forEach((I, D) => {
|
|
7720
7718
|
I.hasAttribute("aria-current") && R || !R && D === 0 ? I.setAttribute("tabIndex", "0") : I.setAttribute("tabIndex", "-1");
|
|
7721
7719
|
}), fe(A, a ?? "false");
|
|
7722
7720
|
}
|
|
7723
|
-
},
|
|
7721
|
+
}, g = J(
|
|
7724
7722
|
"agora-sidebar-navigation-mobile grid gap-x-32 xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12",
|
|
7725
7723
|
{
|
|
7726
7724
|
darkMode: c(t)
|
|
7727
7725
|
}
|
|
7728
|
-
), b = J("agora-snm-menu", { darkMode: c(t) }),
|
|
7726
|
+
), b = J("agora-snm-menu", { darkMode: c(t) }), E = J("agora-snm-back mb-16", { darkMode: c(t) }), N = J("z-dialog absolute w-full h-full container", {
|
|
7729
7727
|
"bg-white": !c(t),
|
|
7730
7728
|
"bg-[var(--color-primary-900)]": c(t)
|
|
7731
7729
|
});
|
|
7732
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
7730
|
+
return /* @__PURE__ */ e.createElement("div", { className: g }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12" }, /* @__PURE__ */ e.createElement(
|
|
7733
7731
|
Ne,
|
|
7734
7732
|
{
|
|
7735
7733
|
className: b,
|
|
@@ -7742,7 +7740,7 @@ const De = (i, t = 10) => {
|
|
|
7742
7740
|
onClick: r
|
|
7743
7741
|
},
|
|
7744
7742
|
l
|
|
7745
|
-
), /* @__PURE__ */ e.createElement(Xe, { ref: o, className: "container" }, /* @__PURE__ */ e.createElement("div", { className:
|
|
7743
|
+
), /* @__PURE__ */ e.createElement(Xe, { ref: o, className: "container" }, /* @__PURE__ */ e.createElement("div", { className: N }, /* @__PURE__ */ e.createElement("div", { className: "grid gap-x-32 xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-12 h-full content-start" }, /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12" }, /* @__PURE__ */ e.createElement(
|
|
7746
7744
|
Ne,
|
|
7747
7745
|
{
|
|
7748
7746
|
appearance: "link",
|
|
@@ -7751,7 +7749,7 @@ const De = (i, t = 10) => {
|
|
|
7751
7749
|
leadingIcon: "agora-line-arrow-left-anchor",
|
|
7752
7750
|
leadingIconHover: "agora-solid-arrow-left-anchor",
|
|
7753
7751
|
onClick: d,
|
|
7754
|
-
className:
|
|
7752
|
+
className: E
|
|
7755
7753
|
},
|
|
7756
7754
|
n
|
|
7757
7755
|
)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12 overflow-auto" }, i))))));
|
|
@@ -7765,9 +7763,9 @@ const De = (i, t = 10) => {
|
|
|
7765
7763
|
backButtonLabel: o,
|
|
7766
7764
|
...d
|
|
7767
7765
|
}) => {
|
|
7768
|
-
let r,
|
|
7769
|
-
const b = se(),
|
|
7770
|
-
l !== "navigation-tabs" && (t && (Array.isArray(t) ?
|
|
7766
|
+
let r, g = [];
|
|
7767
|
+
const b = se(), E = C(null), { width: N } = ze(), m = N < 768, [s, R] = O(!1), [I, D] = O(!1), j = J("agora-sidebar", { darkMode: c(n) }, i);
|
|
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, U) => {
|
|
7771
7769
|
const G = `li-${U}-${b}`;
|
|
7772
7770
|
return Ze(M, {
|
|
7773
7771
|
flat: c(a),
|
|
@@ -7776,7 +7774,7 @@ const De = (i, t = 10) => {
|
|
|
7776
7774
|
darkMode: c(n),
|
|
7777
7775
|
className: `${s ? "trailed" : ""} ${I ? "leaded" : ""}`
|
|
7778
7776
|
});
|
|
7779
|
-
}) : r =
|
|
7777
|
+
}) : r = g == null ? void 0 : g.map((M, U) => {
|
|
7780
7778
|
const G = `li-${U}-${b}`;
|
|
7781
7779
|
return Ze(M, {
|
|
7782
7780
|
variant: l,
|
|
@@ -7787,22 +7785,22 @@ const De = (i, t = 10) => {
|
|
|
7787
7785
|
}));
|
|
7788
7786
|
const h = (M) => {
|
|
7789
7787
|
var U, G, u, p, w;
|
|
7790
|
-
|
|
7788
|
+
E.current && ((U = E.current) != null && U.contains(M.target) ? (u = (G = E.current) == null ? void 0 : G.parentElement) == null || u.classList.add("focus") : ((w = (p = E.current) == null ? void 0 : p.parentElement) == null || w.classList.remove("focus"), fe(E, a)));
|
|
7791
7789
|
}, Y = (M) => {
|
|
7792
7790
|
var U, G;
|
|
7793
7791
|
M.target.closest(".collapsed") && ((G = (U = M.target.closest(".collapsed")) == null ? void 0 : U.previousElementSibling) == null || G.focus(), M.stopPropagation(), M.preventDefault());
|
|
7794
7792
|
};
|
|
7795
7793
|
return ie(() => {
|
|
7796
|
-
if (l === "navigation" && !
|
|
7797
|
-
if (
|
|
7798
|
-
const U =
|
|
7794
|
+
if (l === "navigation" && !m) {
|
|
7795
|
+
if (E.current) {
|
|
7796
|
+
const U = E.current.querySelectorAll('[role="treeitem"]'), G = !!E.current.querySelectorAll('[aria-current="page"]');
|
|
7799
7797
|
U == null || U.forEach((u, p) => {
|
|
7800
7798
|
u.hasAttribute("aria-current") && G || !G && p === 0 ? u.setAttribute("tabIndex", "0") : u.setAttribute("tabIndex", "-1");
|
|
7801
7799
|
});
|
|
7802
7800
|
}
|
|
7803
|
-
fe(
|
|
7801
|
+
fe(E, a);
|
|
7804
7802
|
const M = () => {
|
|
7805
|
-
fe(
|
|
7803
|
+
fe(E, a);
|
|
7806
7804
|
};
|
|
7807
7805
|
return document.addEventListener("load", M), document.addEventListener("focusin", h), document.addEventListener("mousedown", h), () => {
|
|
7808
7806
|
document.removeEventListener("load", M), document.removeEventListener("focusin", h), document.removeEventListener("mousedown", h);
|
|
@@ -7810,21 +7808,21 @@ const De = (i, t = 10) => {
|
|
|
7810
7808
|
}
|
|
7811
7809
|
if (l === "filter") {
|
|
7812
7810
|
const M = [], U = [];
|
|
7813
|
-
if (
|
|
7811
|
+
if (E.current) {
|
|
7814
7812
|
const G = Ge.toArray(t);
|
|
7815
7813
|
return Ge.forEach(G, (u) => {
|
|
7816
|
-
if (!
|
|
7814
|
+
if (!Me(u))
|
|
7817
7815
|
return;
|
|
7818
7816
|
const p = u.props, w = [p.item].some((S) => !!S.collapsedIconLeading);
|
|
7819
7817
|
M.push(w);
|
|
7820
7818
|
const v = [p.item].some((S) => !!S.collapsedIconTrailing);
|
|
7821
7819
|
U.push(v);
|
|
7822
|
-
}), M.every((u) => u === !1) || M.every((u) => u === !0) ? D(!1) : M.some((u) => u) && D(!0), U.every((u) => u === !1) || U.every((u) => u === !0) ? R(!1) : U.some((u) => u) && R(!0),
|
|
7823
|
-
|
|
7820
|
+
}), M.every((u) => u === !1) || M.every((u) => u === !0) ? D(!1) : M.some((u) => u) && D(!0), U.every((u) => u === !1) || U.every((u) => u === !0) ? R(!1) : U.some((u) => u) && R(!0), E.current.addEventListener("focusin", Y), () => {
|
|
7821
|
+
E.current && E.current.removeEventListener("focusin", Y);
|
|
7824
7822
|
};
|
|
7825
7823
|
}
|
|
7826
7824
|
}
|
|
7827
|
-
}, [
|
|
7825
|
+
}, [E.current]), /* @__PURE__ */ e.createElement(e.Fragment, null, (!m || l === "filter" || l === "navigation-tabs") && /* @__PURE__ */ e.createElement("ul", { ref: E, className: j, ...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(
|
|
7828
7826
|
_a,
|
|
7829
7827
|
{
|
|
7830
7828
|
...d,
|
|
@@ -7832,9 +7830,9 @@ const De = (i, t = 10) => {
|
|
|
7832
7830
|
variant: l,
|
|
7833
7831
|
sidebarMenuLabel: A,
|
|
7834
7832
|
backButtonLabel: o,
|
|
7835
|
-
sidebarRef:
|
|
7833
|
+
sidebarRef: E
|
|
7836
7834
|
},
|
|
7837
|
-
/* @__PURE__ */ e.createElement("ul", { ref:
|
|
7835
|
+
/* @__PURE__ */ e.createElement("ul", { ref: E, className: j, ...d, ...l === "navigation" ? { role: "tree" } : void 0 }, r)
|
|
7838
7836
|
));
|
|
7839
7837
|
}, 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) => {
|
|
7840
7838
|
if (!i.ariaExpanded)
|
|
@@ -7852,12 +7850,12 @@ const De = (i, t = 10) => {
|
|
|
7852
7850
|
trailingIcon: c(t) ? i.collapsedIconTrailing : i.expandedIconTrailing,
|
|
7853
7851
|
trailingIconHover: c(t) ? i.collapsedIconHoverTrailing : i.expandedIconHoverTrailing
|
|
7854
7852
|
}), el = ({ children: i, item: t, open: a = !1, flat: l = !1, darkMode: n }, A) => {
|
|
7855
|
-
const o = se(), d = C(null), r = C(null), [
|
|
7853
|
+
const o = se(), d = C(null), r = C(null), [g, b] = O(c(a)), E = J("agora-sidebar-btn-item-filter"), N = J("agora-sidebar-content-item", {
|
|
7856
7854
|
collapsed: !c(a) && !c(l)
|
|
7857
|
-
}),
|
|
7855
|
+
}), m = () => {
|
|
7858
7856
|
b(Hi("filter", r.current));
|
|
7859
7857
|
}, s = () => {
|
|
7860
|
-
d.current && (ai(d.current),
|
|
7858
|
+
d.current && (ai(d.current), m());
|
|
7861
7859
|
}, R = (h) => {
|
|
7862
7860
|
var Y;
|
|
7863
7861
|
s(), (Y = t.onClick) == null || Y.call(t, h);
|
|
@@ -7887,33 +7885,33 @@ const De = (i, t = 10) => {
|
|
|
7887
7885
|
})();
|
|
7888
7886
|
};
|
|
7889
7887
|
ie(() => {
|
|
7890
|
-
b(Ci(l, r.current, a,
|
|
7888
|
+
b(Ci(l, r.current, a, g));
|
|
7891
7889
|
}, []);
|
|
7892
|
-
const D = li(t,
|
|
7890
|
+
const D = li(t, g), j = { ...t };
|
|
7893
7891
|
return delete j.collapsedIconLeading, delete j.collapsedIconHoverLeading, delete j.expandedIconLeading, delete j.expandedIconHoverLeading, delete j.collapsedIconTrailing, delete j.collapsedIconHoverTrailing, delete j.expandedIconTrailing, delete j.expandedIconHoverTrailing, we(
|
|
7894
7892
|
A,
|
|
7895
7893
|
() => ({
|
|
7896
7894
|
current: d.current,
|
|
7897
|
-
isExpanded:
|
|
7895
|
+
isExpanded: g
|
|
7898
7896
|
}),
|
|
7899
|
-
[d.current,
|
|
7897
|
+
[d.current, g]
|
|
7900
7898
|
), /* @__PURE__ */ e.createElement(e.Fragment, null, !c(l) && /* @__PURE__ */ e.createElement(
|
|
7901
7899
|
Ne,
|
|
7902
7900
|
{
|
|
7903
7901
|
appearance: "link",
|
|
7904
7902
|
variant: c(n) ? "neutral" : "primary",
|
|
7905
|
-
className:
|
|
7903
|
+
className: E,
|
|
7906
7904
|
fullWidth: !0,
|
|
7907
7905
|
...D,
|
|
7908
7906
|
...j,
|
|
7909
7907
|
darkMode: n,
|
|
7910
|
-
"aria-expanded":
|
|
7908
|
+
"aria-expanded": g,
|
|
7911
7909
|
"aria-controls": `aria-controls-sidebar-${o}-id`,
|
|
7912
7910
|
onClick: R,
|
|
7913
7911
|
onKeyDown: I,
|
|
7914
7912
|
ref: d
|
|
7915
7913
|
}
|
|
7916
|
-
), c(l) && /* @__PURE__ */ e.createElement("div", { className: "p-16 agora-sidebar-flat-item" }, t.children), /* @__PURE__ */ e.createElement("div", { className:
|
|
7914
|
+
), c(l) && /* @__PURE__ */ e.createElement("div", { className: "p-16 agora-sidebar-flat-item" }, t.children), /* @__PURE__ */ e.createElement("div", { className: N, id: `aria-controls-sidebar-${o}-id`, ref: r }, i));
|
|
7917
7915
|
}, il = re(el), ni = (i, t) => {
|
|
7918
7916
|
var n, A;
|
|
7919
7917
|
if ((A = (n = i.closest(".agora-sidebar-item")) == null ? void 0 : n.parentElement) != null && A.classList.contains(".agora-sidebar") && !t)
|
|
@@ -7970,25 +7968,25 @@ const De = (i, t = 10) => {
|
|
|
7970
7968
|
const t = (l = (a = i.currentTarget) == null ? void 0 : a.closest(".agora-sidebar-content-item")) == null ? void 0 : l.previousElementSibling;
|
|
7971
7969
|
t != null && t.classList.contains("agora-sidebar-button-item") ? t == null || t.focus() : (n = t == null ? void 0 : t.querySelector('[role="treeitem"]')) == null || n.focus();
|
|
7972
7970
|
}, rl = (i) => {
|
|
7973
|
-
var a, l, n, A, o, d, r,
|
|
7974
|
-
const t = [...i].find((
|
|
7971
|
+
var a, l, n, A, o, d, r, g, b;
|
|
7972
|
+
const t = [...i].find((E) => E.ariaCurrent === "page");
|
|
7975
7973
|
if ((a = t == null ? void 0 : t.closest(".agora-sidebar-content-item")) != null && a.classList.contains("collapsed")) {
|
|
7976
|
-
let
|
|
7977
|
-
(n = (l = t == null ? void 0 : t.closest(".agora-sidebar-content-item")) == null ? void 0 : l.previousElementSibling) != null && n.classList.contains("agora-sidebar-button-item") ? ((A = t == null ? void 0 : t.parentElement) == null || A.classList.add("agora-sidebar-anchor-item-current"),
|
|
7978
|
-
let
|
|
7979
|
-
for (;
|
|
7980
|
-
|
|
7981
|
-
|
|
7974
|
+
let E;
|
|
7975
|
+
(n = (l = t == null ? void 0 : t.closest(".agora-sidebar-content-item")) == null ? void 0 : l.previousElementSibling) != null && n.classList.contains("agora-sidebar-button-item") ? ((A = t == null ? void 0 : t.parentElement) == null || A.classList.add("agora-sidebar-anchor-item-current"), E = (o = t == null ? void 0 : t.closest(".agora-sidebar-content-item")) == null ? void 0 : o.previousElementSibling) : E = (r = (d = t == null ? void 0 : t.closest(".agora-sidebar-content-item")) == null ? void 0 : d.previousElementSibling) == null ? void 0 : r.querySelector('[role="treeitem"]');
|
|
7976
|
+
let N = [E];
|
|
7977
|
+
for (; E; )
|
|
7978
|
+
E = (b = (g = E == null ? void 0 : E.closest(".agora-sidebar-content-item")) == null ? void 0 : g.previousElementSibling) == null ? void 0 : b.querySelector('[role="treeitem"]'), E && (N = [...N, E]);
|
|
7979
|
+
N = N.reverse(), N.forEach((m) => {
|
|
7982
7980
|
var s;
|
|
7983
|
-
|
|
7981
|
+
m != null && m.ariaExpanded && (m.classList.contains("agora-sidebar-button-item") && !c(m.ariaExpanded) ? (m.setAttribute("data-custom-triggered-click", "true"), m.click()) : c(m.ariaExpanded) || (s = m.querySelector(".icon-wrapper")) == null || s.click());
|
|
7984
7982
|
});
|
|
7985
7983
|
}
|
|
7986
7984
|
}, dl = (i, t, a) => {
|
|
7987
|
-
var r,
|
|
7985
|
+
var r, g;
|
|
7988
7986
|
const l = $e(t);
|
|
7989
7987
|
a = a.toLowerCase(), l.forEach((b) => {
|
|
7990
|
-
var
|
|
7991
|
-
a === ((
|
|
7988
|
+
var E;
|
|
7989
|
+
a === ((E = b.textContent) == null ? void 0 : E.trim()[0].toLocaleLowerCase()) && b.focus();
|
|
7992
7990
|
});
|
|
7993
7991
|
let n, A, o = -1;
|
|
7994
7992
|
const d = l.indexOf(i) + 1 >= l.length ? 0 : l.indexOf(i) + 1;
|
|
@@ -7999,7 +7997,7 @@ const De = (i, t = 10) => {
|
|
|
7999
7997
|
}
|
|
8000
7998
|
if (o === -1) {
|
|
8001
7999
|
for (n = 0; n < d; n++)
|
|
8002
|
-
if (A = l[n], a === ((
|
|
8000
|
+
if (A = l[n], a === ((g = A.textContent) == null ? void 0 : g.trim()[0].toLowerCase())) {
|
|
8003
8001
|
o = n;
|
|
8004
8002
|
break;
|
|
8005
8003
|
}
|
|
@@ -8017,11 +8015,11 @@ const De = (i, t = 10) => {
|
|
|
8017
8015
|
i.stopPropagation(), i.preventDefault();
|
|
8018
8016
|
}, ml = ({ children: i, variant: t, item: a, open: l = !1, flat: n = !1, darkMode: A }) => {
|
|
8019
8017
|
const o = se();
|
|
8020
|
-
let d, r,
|
|
8021
|
-
const [
|
|
8018
|
+
let d, r, g = [], b = [];
|
|
8019
|
+
const [E, N] = O(c(l)), [m, s] = O(!1), R = J("agora-sidebar-content-item", {
|
|
8022
8020
|
collapsed: !c(l) && !c(n)
|
|
8023
8021
|
}), I = C(null), D = C(null), j = C(null), h = () => {
|
|
8024
|
-
|
|
8022
|
+
N(Hi("navigation", j.current));
|
|
8025
8023
|
}, Y = () => {
|
|
8026
8024
|
I.current && (ai(I.current), h()), D.current && (ai(D.current), h());
|
|
8027
8025
|
}, M = (y, X) => {
|
|
@@ -8106,7 +8104,7 @@ const De = (i, t = 10) => {
|
|
|
8106
8104
|
var x;
|
|
8107
8105
|
y.preventDefault(), (x = X == null ? void 0 : X.onMouseDown) == null || x.call(X, y);
|
|
8108
8106
|
};
|
|
8109
|
-
i && (Array.isArray(i) ? b = i : [i].forEach((y) => b.push(y))), a.children && (Array.isArray(a.children) ?
|
|
8107
|
+
i && (Array.isArray(i) ? b = i : [i].forEach((y) => b.push(y))), a.children && (Array.isArray(a.children) ? g = a.children : [a.children].forEach((y) => g.push(y)));
|
|
8110
8108
|
let S = !1;
|
|
8111
8109
|
const F = (y, X, x) => {
|
|
8112
8110
|
let Q;
|
|
@@ -8124,7 +8122,7 @@ const De = (i, t = 10) => {
|
|
|
8124
8122
|
if (Q.props.href) {
|
|
8125
8123
|
S = !0, Q = Ze(Q, {
|
|
8126
8124
|
role: "treeitem",
|
|
8127
|
-
"aria-expanded":
|
|
8125
|
+
"aria-expanded": E,
|
|
8128
8126
|
"aria-owns": X,
|
|
8129
8127
|
key: x,
|
|
8130
8128
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full",
|
|
@@ -8140,7 +8138,7 @@ const De = (i, t = 10) => {
|
|
|
8140
8138
|
key: x,
|
|
8141
8139
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full"
|
|
8142
8140
|
});
|
|
8143
|
-
}, T = () =>
|
|
8141
|
+
}, T = () => g == null ? void 0 : g.map((y, X) => {
|
|
8144
8142
|
const x = `item-${X}-${o}`, Q = `treeitem-${o}`;
|
|
8145
8143
|
return y.props.href ? (S = !0, Ze(y, {
|
|
8146
8144
|
onClick: (H) => M(H, y.props),
|
|
@@ -8148,20 +8146,20 @@ const De = (i, t = 10) => {
|
|
|
8148
8146
|
onKeyDown: G,
|
|
8149
8147
|
onMouseDown: (H) => v(H, y.props),
|
|
8150
8148
|
role: "treeitem",
|
|
8151
|
-
"aria-expanded":
|
|
8149
|
+
"aria-expanded": E,
|
|
8152
8150
|
"aria-owns": Q,
|
|
8153
8151
|
children: /* @__PURE__ */ e.createElement("span", { className: "children-wrapper" }, y.props.children),
|
|
8154
8152
|
key: x,
|
|
8155
8153
|
className: "agora-anchor agora-sidebar-anchor-item inline-flex [&>*]:inline-flex items-center !justify-start [&>.children-wrapper]:w-full",
|
|
8156
8154
|
ref: I
|
|
8157
8155
|
})) : L(y, Q, x);
|
|
8158
|
-
}), k = (y, X) => /* @__PURE__ */ e.createElement(e.Fragment, null, (y.leadingIcon || y.leadingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper mr-8 justify-start", role: "none", onClick: u }, y.leadingIcon && /* @__PURE__ */ e.createElement(ae, { name: y.leadingIcon, dimensions: "m", "aria-hidden": !0, ...
|
|
8156
|
+
}), k = (y, X) => /* @__PURE__ */ e.createElement(e.Fragment, null, (y.leadingIcon || y.leadingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper mr-8 justify-start", role: "none", onClick: u }, y.leadingIcon && /* @__PURE__ */ e.createElement(ae, { name: y.leadingIcon, dimensions: "m", "aria-hidden": !0, ...m ? { style: { display: "none" } } : "" }), y.leadingIconHover && /* @__PURE__ */ e.createElement(ae, { name: y.leadingIconHover, dimensions: "m", "aria-hidden": !0, ...m ? "" : { style: { display: "none" } } })), /* @__PURE__ */ e.createElement(
|
|
8159
8157
|
"span",
|
|
8160
8158
|
{
|
|
8161
8159
|
className: `data-children-wrapper ${y.leadingIcon || y.leadingIconHover ? "" : "pl-[44px]"} ${y.trailingIcon || y.trailingIconHover ? "" : "pr-[44px]"}`
|
|
8162
8160
|
},
|
|
8163
8161
|
X.props.children
|
|
8164
|
-
), (y.trailingIcon || y.trailingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper ml-auto justify-end", role: "none", onClick: u }, y.trailingIcon && /* @__PURE__ */ e.createElement(ae, { name: y.trailingIcon, dimensions: "m", "aria-hidden": !0, ...
|
|
8162
|
+
), (y.trailingIcon || y.trailingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper ml-auto justify-end", role: "none", onClick: u }, y.trailingIcon && /* @__PURE__ */ e.createElement(ae, { name: y.trailingIcon, dimensions: "m", "aria-hidden": !0, ...m ? { style: { display: "none" } } : "" }), y.trailingIconHover && /* @__PURE__ */ e.createElement(ae, { name: y.trailingIconHover, dimensions: "m", "aria-hidden": !0, ...m ? "" : { style: { display: "none" } } }))), V = (y, X, x, Q) => Ze(y, {
|
|
8165
8163
|
onClick: (H) => M(H, y.props),
|
|
8166
8164
|
onKeyUp: U,
|
|
8167
8165
|
onKeyDown: G,
|
|
@@ -8169,7 +8167,7 @@ const De = (i, t = 10) => {
|
|
|
8169
8167
|
onMouseEnter: p,
|
|
8170
8168
|
onMouseLeave: w,
|
|
8171
8169
|
role: "treeitem",
|
|
8172
|
-
"aria-expanded":
|
|
8170
|
+
"aria-expanded": E,
|
|
8173
8171
|
"aria-owns": X,
|
|
8174
8172
|
key: x,
|
|
8175
8173
|
children: Q,
|
|
@@ -8197,8 +8195,8 @@ const De = (i, t = 10) => {
|
|
|
8197
8195
|
return V(y, X, x, P);
|
|
8198
8196
|
} else
|
|
8199
8197
|
return Ze(y, { key: x });
|
|
8200
|
-
}, B = () =>
|
|
8201
|
-
const x = `item-${X}-${o}`, Q = `treeitem-${o}`, H = li(a,
|
|
8198
|
+
}, B = () => g == null ? void 0 : g.map((y, X) => {
|
|
8199
|
+
const x = `item-${X}-${o}`, Q = `treeitem-${o}`, H = li(a, E);
|
|
8202
8200
|
if (y.props.href) {
|
|
8203
8201
|
S = !0;
|
|
8204
8202
|
const _ = k(H, y);
|
|
@@ -8210,9 +8208,9 @@ const De = (i, t = 10) => {
|
|
|
8210
8208
|
return y.props.item ? Ze(y, { flat: `${n}`, variant: t, darkMode: c(A), key: x }) : /* @__PURE__ */ e.createElement("li", { key: x, role: "none", className: "agora-sidebar-item" }, Ze(y));
|
|
8211
8209
|
});
|
|
8212
8210
|
c(n) ? (d = T(), r = z()) : (d = B(), r = z()), ie(() => {
|
|
8213
|
-
|
|
8211
|
+
N(Ci(n, j.current, l, E));
|
|
8214
8212
|
}, []);
|
|
8215
|
-
const q = li(a,
|
|
8213
|
+
const q = li(a, E), te = J("agora-sidebar-button-item", {
|
|
8216
8214
|
"!pl-[42px]": q.leadingIcon === void 0,
|
|
8217
8215
|
"!pr-[42px]": q.trailingIcon === void 0
|
|
8218
8216
|
});
|
|
@@ -8236,7 +8234,7 @@ const De = (i, t = 10) => {
|
|
|
8236
8234
|
fullWidth: !0,
|
|
8237
8235
|
...c(n) ? void 0 : { hasIcon: !0 },
|
|
8238
8236
|
...q,
|
|
8239
|
-
"aria-expanded":
|
|
8237
|
+
"aria-expanded": E,
|
|
8240
8238
|
"aria-owns": `treeitem-${o}`,
|
|
8241
8239
|
onClick: (y) => u(y, a),
|
|
8242
8240
|
onKeyUp: U,
|
|
@@ -8252,7 +8250,7 @@ const De = (i, t = 10) => {
|
|
|
8252
8250
|
"aria-selected": void 0,
|
|
8253
8251
|
tabIndex: -1,
|
|
8254
8252
|
className: "p-16 sidebar-item-non-interactive",
|
|
8255
|
-
"aria-expanded":
|
|
8253
|
+
"aria-expanded": E,
|
|
8256
8254
|
"aria-owns": `treeitem-${o}`,
|
|
8257
8255
|
onKeyUp: U,
|
|
8258
8256
|
onKeyDown: G,
|
|
@@ -8280,19 +8278,19 @@ const De = (i, t = 10) => {
|
|
|
8280
8278
|
}, r = (G) => {
|
|
8281
8279
|
var u, p;
|
|
8282
8280
|
(u = t.current) == null || u.classList.add("show"), (p = l.onFocus) == null || p.call(l, G);
|
|
8283
|
-
},
|
|
8281
|
+
}, g = (G) => {
|
|
8284
8282
|
var u, p;
|
|
8285
8283
|
A || (G.currentTarget.focus(), (u = t.current) == null || u.classList.remove("show")), (p = l.onBlur) == null || p.call(l, G);
|
|
8286
8284
|
}, b = (G) => {
|
|
8287
8285
|
var v, S;
|
|
8288
8286
|
const u = G.code, p = (v = t.current) == null ? void 0 : v.querySelectorAll('[role="menuitem"]'), w = [...p].findIndex((F) => F === G.currentTarget);
|
|
8289
8287
|
u === "ArrowDown" && (w + 1 !== p.length ? p[w + 1].focus() : p[0].focus()), u === "ArrowUp" && (w - 1 !== p.length && w - 1 >= 0 ? p[w - 1].focus() : p[p.length - 1].focus()), (u === "Tab" || u === "Escape") && n.current && (n.current.classList.add("hidden"), o(!1), n.current.previousSibling.focus()), (S = l.onKeyUp) == null || S.call(l, G);
|
|
8290
|
-
},
|
|
8288
|
+
}, E = (G) => {
|
|
8291
8289
|
const u = G.code;
|
|
8292
8290
|
n.current && A && (u === "Tab" || u === "ArrowDown" || u === "ArrowUp") && (G.preventDefault(), G.stopPropagation());
|
|
8293
|
-
}, m = () => {
|
|
8294
|
-
n.current && !A ? (n.current.classList.remove("hidden"), o(!0)) : n.current && A && (n.current.classList.add("hidden"), o(!1));
|
|
8295
8291
|
}, N = () => {
|
|
8292
|
+
n.current && !A ? (n.current.classList.remove("hidden"), o(!0)) : n.current && A && (n.current.classList.add("hidden"), o(!1));
|
|
8293
|
+
}, m = () => {
|
|
8296
8294
|
var G;
|
|
8297
8295
|
(G = t.current) == null || G.classList.add("show");
|
|
8298
8296
|
}, s = () => {
|
|
@@ -8324,9 +8322,9 @@ const De = (i, t = 10) => {
|
|
|
8324
8322
|
className: `skip-level-${u}`,
|
|
8325
8323
|
onClick: d,
|
|
8326
8324
|
onFocus: (v) => r(v),
|
|
8327
|
-
onBlur: (v) =>
|
|
8325
|
+
onBlur: (v) => g(v),
|
|
8328
8326
|
onKeyUp: (v) => b(v),
|
|
8329
|
-
onKeyDownCapture: (v) =>
|
|
8327
|
+
onKeyDownCapture: (v) => E(v)
|
|
8330
8328
|
}) : w > 0 && p && (p = Ze(G[w], { children: p }));
|
|
8331
8329
|
return p;
|
|
8332
8330
|
}, j = (G, u) => {
|
|
@@ -8348,9 +8346,9 @@ const De = (i, t = 10) => {
|
|
|
8348
8346
|
className: `skip-level-${u}`,
|
|
8349
8347
|
onClick: d,
|
|
8350
8348
|
onFocus: (B) => r(B),
|
|
8351
|
-
onBlur: (B) =>
|
|
8349
|
+
onBlur: (B) => g(B),
|
|
8352
8350
|
onKeyUp: (B) => b(B),
|
|
8353
|
-
onKeyDownCapture: (B) =>
|
|
8351
|
+
onKeyDownCapture: (B) => E(B)
|
|
8354
8352
|
}) : L = j(k, u);
|
|
8355
8353
|
const K = `link-lvl-${u}-${w}`;
|
|
8356
8354
|
V > 1 ? (h = [
|
|
@@ -8378,8 +8376,8 @@ const De = (i, t = 10) => {
|
|
|
8378
8376
|
appearance: "link",
|
|
8379
8377
|
className: "skip-button",
|
|
8380
8378
|
"aria-expanded": A ? "true" : "false",
|
|
8381
|
-
onClick:
|
|
8382
|
-
onFocus:
|
|
8379
|
+
onClick: N,
|
|
8380
|
+
onFocus: m,
|
|
8383
8381
|
onBlur: s,
|
|
8384
8382
|
onKeyUp: R,
|
|
8385
8383
|
onKeyDownCapture: I
|
|
@@ -8440,7 +8438,7 @@ const De = (i, t = 10) => {
|
|
|
8440
8438
|
interactive: a
|
|
8441
8439
|
}), r = () => {
|
|
8442
8440
|
t == null || t();
|
|
8443
|
-
},
|
|
8441
|
+
}, g = de(() => {
|
|
8444
8442
|
switch (A.type) {
|
|
8445
8443
|
case "info":
|
|
8446
8444
|
return "agora-solid-info-mark";
|
|
@@ -8466,7 +8464,7 @@ const De = (i, t = 10) => {
|
|
|
8466
8464
|
trailingIcon: "agora-line-arrow-right-circle",
|
|
8467
8465
|
trailingIconHover: "agora-solid-arrow-right-circle"
|
|
8468
8466
|
},
|
|
8469
|
-
/* @__PURE__ */ e.createElement(ae, { name:
|
|
8467
|
+
/* @__PURE__ */ e.createElement(ae, { name: g, "aria-hidden": !0 }),
|
|
8470
8468
|
l
|
|
8471
8469
|
));
|
|
8472
8470
|
}, Ml = re(Dl), pl = ({ className: i, "aria-label": t, children: a, ...l }, n) => {
|
|
@@ -8474,8 +8472,8 @@ const De = (i, t = 10) => {
|
|
|
8474
8472
|
return /* @__PURE__ */ e.createElement("div", { ...l, role: "status", className: A, ref: n }, /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, t), /* @__PURE__ */ e.createElement("div", { "aria-hidden": !!t }, a));
|
|
8475
8473
|
}, Yl = re(pl), ul = ({ className: i, description: t, type: a = "info", interactive: l, onActivate: n, ...A }, o) => {
|
|
8476
8474
|
const d = de(() => {
|
|
8477
|
-
const r = (
|
|
8478
|
-
switch (
|
|
8475
|
+
const r = (g) => {
|
|
8476
|
+
switch (g) {
|
|
8479
8477
|
case "info":
|
|
8480
8478
|
return "agora-solid-info-mark";
|
|
8481
8479
|
case "success":
|
|
@@ -8515,15 +8513,15 @@ const De = (i, t = 10) => {
|
|
|
8515
8513
|
fullWidth: o,
|
|
8516
8514
|
hasFeedback: d,
|
|
8517
8515
|
feedbackState: r = "info",
|
|
8518
|
-
feedbackText:
|
|
8516
|
+
feedbackText: g,
|
|
8519
8517
|
hasError: b,
|
|
8520
|
-
onChange:
|
|
8521
|
-
...
|
|
8522
|
-
},
|
|
8523
|
-
const s = se(), R = { ...
|
|
8518
|
+
onChange: E,
|
|
8519
|
+
...N
|
|
8520
|
+
}, m) => {
|
|
8521
|
+
const s = se(), R = { ...N };
|
|
8524
8522
|
R.id = R.id ?? s;
|
|
8525
8523
|
const [I, D] = O(c(R.checked ?? R.defaultChecked)), j = C(null), h = (w) => {
|
|
8526
|
-
D((v) => !v),
|
|
8524
|
+
D((v) => !v), Ue(() => E == null ? void 0 : E(w));
|
|
8527
8525
|
};
|
|
8528
8526
|
ie(() => {
|
|
8529
8527
|
const w = R.checked ?? R.defaultChecked;
|
|
@@ -8550,8 +8548,8 @@ const De = (i, t = 10) => {
|
|
|
8550
8548
|
"icon-off": !I && !l
|
|
8551
8549
|
}), u = J("switch-label", {
|
|
8552
8550
|
"label-disabled": l
|
|
8553
|
-
}), p =
|
|
8554
|
-
return /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { ref: j, className: U }, /* @__PURE__ */ e.createElement("input", { ...R, type: "checkbox", tabIndex: -1, disabled: l, onChange: h, ref:
|
|
8551
|
+
}), p = N["aria-label"] ?? t;
|
|
8552
|
+
return /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { ref: j, className: U }, /* @__PURE__ */ e.createElement("input", { ...R, type: "checkbox", tabIndex: -1, disabled: l, onChange: h, ref: m, id: R.id }), /* @__PURE__ */ e.createElement(
|
|
8555
8553
|
"div",
|
|
8556
8554
|
{
|
|
8557
8555
|
className: `toggle-switch ${I ? "on" : "off"}`,
|
|
@@ -8563,7 +8561,7 @@ const De = (i, t = 10) => {
|
|
|
8563
8561
|
onKeyDown: Y
|
|
8564
8562
|
},
|
|
8565
8563
|
/* @__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" }))
|
|
8566
|
-
), !a && t && /* @__PURE__ */ e.createElement("label", { htmlFor: R.id, className: u }, t)), (c(d) || c(b)) &&
|
|
8564
|
+
), !a && t && /* @__PURE__ */ e.createElement("label", { htmlFor: R.id, className: u }, t)), (c(d) || c(b)) && g && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(b) ? "danger" : r, feedbackText: g, className: "px-16" }));
|
|
8567
8565
|
}, 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 = {
|
|
8568
8566
|
string: "agora-line-sort-alpha-up",
|
|
8569
8567
|
date: "agora-solid-sort-generic-up",
|
|
@@ -8573,15 +8571,15 @@ const De = (i, t = 10) => {
|
|
|
8573
8571
|
date: "agora-solid-sort-generic-down",
|
|
8574
8572
|
numeric: "agora-solid-sort-generic-down"
|
|
8575
8573
|
}, AA = ({ sortType: i, sortOrder: t = "none", onSortChange: a, children: l, ...n }) => {
|
|
8576
|
-
const A = ["none", "ascending", "descending"], o = A.findIndex((
|
|
8574
|
+
const A = ["none", "ascending", "descending"], o = A.findIndex((E) => E === t), d = de(() => i ? t === "ascending" ? wl[i] : t === "descending" ? jl[i] : "agora-solid-sort-vertical" : "", [i, t]), r = de(() => i ? t === "ascending" ? "ascending" : t === "descending" ? "descending" : "none" : "none", [i, t]), g = () => {
|
|
8577
8575
|
if (!i)
|
|
8578
8576
|
return "";
|
|
8579
|
-
let
|
|
8580
|
-
|
|
8581
|
-
}, b = (
|
|
8582
|
-
(
|
|
8577
|
+
let E = o + 1;
|
|
8578
|
+
E >= A.length && (E = 0), a == null || a(A[E]);
|
|
8579
|
+
}, b = (E) => {
|
|
8580
|
+
(E.code === "Enter" || E.code === "NumpadEnter" || E.code === "Space") && g();
|
|
8583
8581
|
};
|
|
8584
|
-
return /* @__PURE__ */ e.createElement("th", { ...n, className: n.className, "aria-sort": r }, i && /* @__PURE__ */ e.createElement("button", { className: "table-header-cell", onClick:
|
|
8582
|
+
return /* @__PURE__ */ e.createElement("th", { ...n, className: n.className, "aria-sort": r }, i && /* @__PURE__ */ e.createElement("button", { className: "table-header-cell", onClick: g, onKeyUp: b }, /* @__PURE__ */ e.createElement("div", { className: "w-24" }, /* @__PURE__ */ e.createElement(ae, { name: d, "aria-hidden": !0 })), l), !i && /* @__PURE__ */ e.createElement("span", { className: "table-header-cell" }, l));
|
|
8585
8583
|
}, cA = ({ children: i, ...t }) => /* @__PURE__ */ e.createElement("tr", { ...t }, i), hl = ({
|
|
8586
8584
|
itemsPerPageLabel: i,
|
|
8587
8585
|
itemsPerPage: t,
|
|
@@ -8592,34 +8590,34 @@ const De = (i, t = 10) => {
|
|
|
8592
8590
|
dropdownListAriaLabel: o,
|
|
8593
8591
|
prevButtonAriaLabel: d,
|
|
8594
8592
|
nextButtonAriaLabel: r,
|
|
8595
|
-
...
|
|
8593
|
+
...g
|
|
8596
8594
|
}, b) => {
|
|
8597
|
-
const
|
|
8595
|
+
const E = se(), N = C(null), m = C(null), s = C(null), [R, I] = O(!1), D = () => {
|
|
8598
8596
|
var v, S, F, L;
|
|
8599
|
-
(v =
|
|
8597
|
+
(v = m.current) != null && v.visibility ? (S = m.current) == null || S.hide() : (F = m.current) == null || F.show(), (L = N.current) == null || L.classList.remove("active");
|
|
8600
8598
|
}, j = (v) => {
|
|
8601
8599
|
typeof v.detail == "number" && v.detail === 0 || D();
|
|
8602
8600
|
}, h = (v) => {
|
|
8603
8601
|
var F;
|
|
8604
8602
|
const S = v.code;
|
|
8605
|
-
S === "Escape" && ((F =
|
|
8603
|
+
S === "Escape" && ((F = m.current) != null && F.visibility) && m.current.hide(), (S === "Enter" || S === "Space" || S === "NumpadEnter") && D();
|
|
8606
8604
|
}, Y = () => {
|
|
8607
8605
|
var v;
|
|
8608
|
-
I(!0), (v =
|
|
8606
|
+
I(!0), (v = m.current) == null || v.first();
|
|
8609
8607
|
}, M = () => {
|
|
8610
8608
|
var v;
|
|
8611
|
-
I(!1), (v =
|
|
8609
|
+
I(!1), (v = N.current) == null || v.focus();
|
|
8612
8610
|
}, U = (v) => {
|
|
8613
8611
|
var S;
|
|
8614
8612
|
if (v.length > 0) {
|
|
8615
8613
|
const F = v[0];
|
|
8616
|
-
(S =
|
|
8614
|
+
(S = g.onPageSizeChange) == null || S.call(g, +F.value);
|
|
8617
8615
|
}
|
|
8618
8616
|
};
|
|
8619
8617
|
ie(() => {
|
|
8620
8618
|
const v = (S) => {
|
|
8621
8619
|
var F, L;
|
|
8622
|
-
(F =
|
|
8620
|
+
(F = m.current) != null && F.visibility && !((L = s.current) != null && L.contains(S.target)) && m.current.hide();
|
|
8623
8621
|
};
|
|
8624
8622
|
return document == null || document.addEventListener("click", v), () => {
|
|
8625
8623
|
document == null || document.removeEventListener("click", v);
|
|
@@ -8627,10 +8625,10 @@ const De = (i, t = 10) => {
|
|
|
8627
8625
|
}, []);
|
|
8628
8626
|
const G = Math.ceil(a / t), u = () => {
|
|
8629
8627
|
var v;
|
|
8630
|
-
(v =
|
|
8628
|
+
(v = g.onPageChange) == null || v.call(g, Math.max(0, n - 1));
|
|
8631
8629
|
}, p = () => {
|
|
8632
8630
|
var v;
|
|
8633
|
-
(v =
|
|
8631
|
+
(v = g.onPageChange) == null || v.call(g, Math.min(n + 1, G - 1));
|
|
8634
8632
|
}, w = de(() => R ? {
|
|
8635
8633
|
default: "agora-solid-chevron-up",
|
|
8636
8634
|
hover: "agora-line-chevron-up"
|
|
@@ -8641,14 +8639,14 @@ const De = (i, t = 10) => {
|
|
|
8641
8639
|
return /* @__PURE__ */ e.createElement("div", { className: "agora-table-pagination", ref: b }, /* @__PURE__ */ e.createElement("div", { className: "section-items", ref: s }, /* @__PURE__ */ e.createElement(
|
|
8642
8640
|
Ne,
|
|
8643
8641
|
{
|
|
8644
|
-
ref:
|
|
8642
|
+
ref: N,
|
|
8645
8643
|
appearance: "link",
|
|
8646
8644
|
hasIcon: !0,
|
|
8647
8645
|
trailingIcon: w.default,
|
|
8648
8646
|
trailingIconHover: w.hover,
|
|
8649
8647
|
"aria-label": A,
|
|
8650
8648
|
role: "combobox",
|
|
8651
|
-
"aria-controls":
|
|
8649
|
+
"aria-controls": E,
|
|
8652
8650
|
"aria-expanded": R,
|
|
8653
8651
|
onClick: j,
|
|
8654
8652
|
onKeyDown: h
|
|
@@ -8659,8 +8657,8 @@ const De = (i, t = 10) => {
|
|
|
8659
8657
|
), /* @__PURE__ */ e.createElement("div", { className: "absolute -bottom-8 left-0 w-full min-h-[8px]" }, /* @__PURE__ */ e.createElement(
|
|
8660
8658
|
Ke,
|
|
8661
8659
|
{
|
|
8662
|
-
id:
|
|
8663
|
-
ref:
|
|
8660
|
+
id: E,
|
|
8661
|
+
ref: m,
|
|
8664
8662
|
type: "text",
|
|
8665
8663
|
onHide: M,
|
|
8666
8664
|
onShow: Y,
|
|
@@ -8708,7 +8706,7 @@ const De = (i, t = 10) => {
|
|
|
8708
8706
|
paginationProps: o,
|
|
8709
8707
|
sortDescription: d = "",
|
|
8710
8708
|
...r
|
|
8711
|
-
},
|
|
8709
|
+
}, g) => {
|
|
8712
8710
|
const b = J(
|
|
8713
8711
|
"agora-table-container",
|
|
8714
8712
|
{
|
|
@@ -8721,7 +8719,7 @@ const De = (i, t = 10) => {
|
|
|
8721
8719
|
},
|
|
8722
8720
|
t
|
|
8723
8721
|
);
|
|
8724
|
-
return /* @__PURE__ */ e.createElement("div", { className: "agora-table" }, /* @__PURE__ */ e.createElement("table", { ...r, className: b, ref:
|
|
8722
|
+
return /* @__PURE__ */ e.createElement("div", { className: "agora-table" }, /* @__PURE__ */ e.createElement("table", { ...r, className: b, ref: g }, i && /* @__PURE__ */ e.createElement("caption", null, i), A), o && /* @__PURE__ */ e.createElement(Jl, { ...o }), /* @__PURE__ */ e.createElement("span", { className: "sr-only", "aria-live": "polite" }, d));
|
|
8725
8723
|
}, oA = re(vl), rA = (i) => /* @__PURE__ */ e.createElement("div", { ...i }), dA = (i) => /* @__PURE__ */ e.createElement("div", { ...i }), sA = (i) => /* @__PURE__ */ e.createElement("div", { ...i }), NA = ({
|
|
8726
8724
|
children: i,
|
|
8727
8725
|
automaticActivation: t = !0,
|
|
@@ -8732,15 +8730,15 @@ const De = (i, t = 10) => {
|
|
|
8732
8730
|
currentType: o = "neutral",
|
|
8733
8731
|
...d
|
|
8734
8732
|
}) => {
|
|
8735
|
-
const r = C(null),
|
|
8736
|
-
|
|
8733
|
+
const r = C(null), g = C(null), [b, E] = O(0), [N, m] = O([]), [s, R] = O([]), I = se(), D = (G) => {
|
|
8734
|
+
E(G), A == null || A(G);
|
|
8737
8735
|
};
|
|
8738
8736
|
ie(() => {
|
|
8739
8737
|
const G = [], u = [], p = Ge.toArray(i);
|
|
8740
8738
|
Ge.forEach(p, (w, v) => {
|
|
8741
8739
|
var S, F, L, T;
|
|
8742
|
-
|
|
8743
|
-
}),
|
|
8740
|
+
Me(w) && (c(w.props.active) && D(v), G.push((F = (S = w.props) == null ? void 0 : S.children) == null ? void 0 : F[0]), u.push((T = (L = w.props) == null ? void 0 : L.children) == null ? void 0 : T[1]));
|
|
8741
|
+
}), m(G), R(u);
|
|
8744
8742
|
}, [i]);
|
|
8745
8743
|
const j = (G) => {
|
|
8746
8744
|
var T, k, V;
|
|
@@ -8748,7 +8746,7 @@ const De = (i, t = 10) => {
|
|
|
8748
8746
|
((T = r.current) == null ? void 0 : T.tabIndex) === 0 && (G.preventDefault(), (k = r.current) == null || k.focus());
|
|
8749
8747
|
return;
|
|
8750
8748
|
}
|
|
8751
|
-
const u = ((V =
|
|
8749
|
+
const u = ((V = g.current) == null ? void 0 : V.querySelectorAll(".tab-list-item")) ?? [];
|
|
8752
8750
|
if (u.length == 0)
|
|
8753
8751
|
return;
|
|
8754
8752
|
let p = b;
|
|
@@ -8786,7 +8784,7 @@ const De = (i, t = 10) => {
|
|
|
8786
8784
|
var u;
|
|
8787
8785
|
if (G.currentTarget === G.target && G.code === "Tab" && G.shiftKey) {
|
|
8788
8786
|
G.preventDefault();
|
|
8789
|
-
const p = (u =
|
|
8787
|
+
const p = (u = g.current) == null ? void 0 : u.querySelector(".tab-list-item.active");
|
|
8790
8788
|
p == null || p.focus();
|
|
8791
8789
|
}
|
|
8792
8790
|
}, Y = de(() => {
|
|
@@ -8804,7 +8802,7 @@ const De = (i, t = 10) => {
|
|
|
8804
8802
|
"current-primary": o === "primary",
|
|
8805
8803
|
"current-secondary": o === "secondary"
|
|
8806
8804
|
});
|
|
8807
|
-
return /* @__PURE__ */ e.createElement("div", { className: M, ...d }, /* @__PURE__ */ e.createElement("div", { ref:
|
|
8805
|
+
return /* @__PURE__ */ e.createElement("div", { className: M, ...d }, /* @__PURE__ */ e.createElement("div", { ref: g, role: "tablist", className: "tab-list" }, Ge.map(N, (G, u) => {
|
|
8808
8806
|
const p = `agora-tab-${I}-${u}`, w = J("tab-list-item", {
|
|
8809
8807
|
active: b === u,
|
|
8810
8808
|
"current-neutral": o === "neutral",
|
|
@@ -8868,19 +8866,19 @@ const De = (i, t = 10) => {
|
|
|
8868
8866
|
const a = se(), [l, n] = O([]);
|
|
8869
8867
|
return ie(() => {
|
|
8870
8868
|
const o = Ge.toArray(t.children).reduce(
|
|
8871
|
-
(r,
|
|
8872
|
-
const b =
|
|
8873
|
-
return r[b] = r[b] || [], r[b].push(
|
|
8869
|
+
(r, g) => {
|
|
8870
|
+
const b = g.props.label ?? "";
|
|
8871
|
+
return r[b] = r[b] || [], r[b].push(g), r;
|
|
8874
8872
|
},
|
|
8875
8873
|
{}
|
|
8876
8874
|
), d = Object.values(o);
|
|
8877
8875
|
n(d);
|
|
8878
8876
|
}, [t.children]), /* @__PURE__ */ e.createElement("div", { ...t, className: J("agora-timeline-vertical") }, l.map((A, o) => {
|
|
8879
|
-
var
|
|
8877
|
+
var g;
|
|
8880
8878
|
const d = `timeline-group-${o}-${a}`, r = J("timeline-group", { "has-label": !c(i) });
|
|
8881
|
-
return /* @__PURE__ */ e.createElement("div", { key: d, className: r }, !c(i) && ((
|
|
8882
|
-
const
|
|
8883
|
-
return /* @__PURE__ */ e.createElement(Wl, { key:
|
|
8879
|
+
return /* @__PURE__ */ e.createElement("div", { key: d, className: r }, !c(i) && ((g = A[0]) == null ? void 0 : g.props.label) && /* @__PURE__ */ e.createElement("div", { className: "timeline-label-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "timeline-label" }, A[0].props.label)), /* @__PURE__ */ e.createElement("div", { className: "timeline-items" }, A.map((b, E) => {
|
|
8880
|
+
const N = `timeline-event-${o}-${E}-${a}`;
|
|
8881
|
+
return /* @__PURE__ */ e.createElement(Wl, { key: N, hasIcon: b.props.hasIcon, icon: b.props.icon, altIcon: b.props.altIcon }, b.props.children);
|
|
8884
8882
|
})));
|
|
8885
8883
|
}));
|
|
8886
8884
|
}, bA = ({
|
|
@@ -8891,35 +8889,35 @@ const De = (i, t = 10) => {
|
|
|
8891
8889
|
className: n,
|
|
8892
8890
|
...A
|
|
8893
8891
|
}) => {
|
|
8894
|
-
const [o, d] = O(window.innerWidth < 768), r = 6, [
|
|
8892
|
+
const [o, d] = O(window.innerWidth < 768), r = 6, [g, b] = O([]), [E, N] = O(0), [m, s] = O(0), [R, I] = O(r);
|
|
8895
8893
|
ie(() => {
|
|
8896
8894
|
const p = Ge.toArray(i);
|
|
8897
8895
|
b(p);
|
|
8898
8896
|
const w = p.findIndex((v) => v.props.active);
|
|
8899
|
-
|
|
8897
|
+
N(w !== -1 ? w : 0);
|
|
8900
8898
|
}, [i]);
|
|
8901
8899
|
const D = (p) => {
|
|
8902
|
-
|
|
8900
|
+
N(p);
|
|
8903
8901
|
}, j = (p, w) => p < w ? "completed" : "", h = () => {
|
|
8904
|
-
const p = Math.min(
|
|
8905
|
-
|
|
8902
|
+
const p = Math.min(E + 1, Ge.count(i) - 1);
|
|
8903
|
+
N(p), p >= R && (s(m + 1), I(R + 1));
|
|
8906
8904
|
}, Y = () => {
|
|
8907
|
-
const p = Math.max(
|
|
8908
|
-
|
|
8909
|
-
}, M = Ge.map(i, (p, w) => w ===
|
|
8905
|
+
const p = Math.max(E - 1, 0);
|
|
8906
|
+
N(p), p < m && (s(m - 1), I(R - 1));
|
|
8907
|
+
}, M = Ge.map(i, (p, w) => w === E ? p.props.children : null), U = g.slice(m, R);
|
|
8910
8908
|
ie(() => {
|
|
8911
|
-
if (
|
|
8912
|
-
const p = Math.max(0,
|
|
8913
|
-
w >
|
|
8909
|
+
if (E > R - 1 || E < m) {
|
|
8910
|
+
const p = Math.max(0, E - Math.floor(r / 2)), w = p + r;
|
|
8911
|
+
w > g.length ? (s(g.length - r), I(g.length)) : (s(p), I(w));
|
|
8914
8912
|
}
|
|
8915
|
-
}, [
|
|
8913
|
+
}, [E, g, r, m, R]), at(() => {
|
|
8916
8914
|
function p() {
|
|
8917
8915
|
d(window.innerWidth < 768);
|
|
8918
8916
|
}
|
|
8919
8917
|
return window.addEventListener("resize", p), p(), () => window.removeEventListener("resize", p);
|
|
8920
8918
|
}, []);
|
|
8921
8919
|
const G = () => {
|
|
8922
|
-
const p =
|
|
8920
|
+
const p = E === 0, w = E === Ge.count(i) - 1;
|
|
8923
8921
|
return /* @__PURE__ */ e.createElement("div", { className: "timeline-actions" }, /* @__PURE__ */ e.createElement(
|
|
8924
8922
|
Ne,
|
|
8925
8923
|
{
|
|
@@ -8955,9 +8953,9 @@ const De = (i, t = 10) => {
|
|
|
8955
8953
|
n
|
|
8956
8954
|
);
|
|
8957
8955
|
return /* @__PURE__ */ e.createElement("div", null, o ? /* @__PURE__ */ e.createElement(kl, { ...A, hideLabels: !1 }, i) : /* @__PURE__ */ e.createElement("div", { ...A, className: u }, /* @__PURE__ */ e.createElement("div", { className: "timeline-steps" }, U.map((p, w) => {
|
|
8958
|
-
const v = w +
|
|
8956
|
+
const v = w + m === 0, S = w + m === R - 1, F = m > 0, L = R < g.length, T = J(j(w + m, E), {
|
|
8959
8957
|
"first-event": v,
|
|
8960
|
-
"last-event": S && w +
|
|
8958
|
+
"last-event": S && w + m === g.length - 1,
|
|
8961
8959
|
"has-more-events-left": F,
|
|
8962
8960
|
"has-more-events-right": L
|
|
8963
8961
|
});
|
|
@@ -8966,14 +8964,14 @@ const De = (i, t = 10) => {
|
|
|
8966
8964
|
{
|
|
8967
8965
|
key: p.props.id ?? w,
|
|
8968
8966
|
...p.props,
|
|
8969
|
-
active: w +
|
|
8970
|
-
onClick: () => D(w +
|
|
8967
|
+
active: w + m === E,
|
|
8968
|
+
onClick: () => D(w + m),
|
|
8971
8969
|
interactive: c(l),
|
|
8972
8970
|
className: T
|
|
8973
8971
|
},
|
|
8974
8972
|
p.props.children
|
|
8975
8973
|
);
|
|
8976
|
-
})), c(l) &&
|
|
8974
|
+
})), c(l) && g.length > r && G(), /* @__PURE__ */ e.createElement("div", { className: "timeline-content" }, M)));
|
|
8977
8975
|
}, _i = xe({}), zl = () => Fe(_i), Bl = ({ className: i, id: t, title: a, description: l, type: n, closeLabel: A }) => {
|
|
8978
8976
|
const { removeToast: o } = zl(), d = (b) => {
|
|
8979
8977
|
switch (b) {
|
|
@@ -8994,8 +8992,8 @@ const De = (i, t = 10) => {
|
|
|
8994
8992
|
description: l,
|
|
8995
8993
|
closeLabel: A
|
|
8996
8994
|
});
|
|
8997
|
-
},
|
|
8998
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
8995
|
+
}, g = J("agora-toast", { [`agora-toast-${n}`]: n }, i);
|
|
8996
|
+
return /* @__PURE__ */ e.createElement("div", { className: g, role: "alert", key: t }, /* @__PURE__ */ e.createElement(ae, { className: "toast-icon mt-[10px]", name: d(n), dimensions: "m", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("div", { className: "toast-messages flex flex-col gap-8" }, /* @__PURE__ */ e.createElement("p", { className: "toast-title mt-8" }, a), /* @__PURE__ */ e.createElement("p", { className: "toast-description" }, l)), /* @__PURE__ */ e.createElement(
|
|
8999
8997
|
Ne,
|
|
9000
8998
|
{
|
|
9001
8999
|
className: "toast-close-button",
|
|
@@ -9014,7 +9012,7 @@ const De = (i, t = 10) => {
|
|
|
9014
9012
|
t((A) => A.filter((o) => o.id !== n.id));
|
|
9015
9013
|
};
|
|
9016
9014
|
return { toasts: i, showToast: (n, A) => {
|
|
9017
|
-
t((o) => [...o, n]), A && A > 0 &&
|
|
9015
|
+
t((o) => [...o, n]), A && A > 0 && Ue(() => {
|
|
9018
9016
|
a(n);
|
|
9019
9017
|
}, A);
|
|
9020
9018
|
}, removeToast: a };
|
|
@@ -9026,8 +9024,8 @@ const De = (i, t = 10) => {
|
|
|
9026
9024
|
}),
|
|
9027
9025
|
[l, n]
|
|
9028
9026
|
), d = de(() => {
|
|
9029
|
-
const
|
|
9030
|
-
return t.includes("bottom") ? [...a].slice(-1 *
|
|
9027
|
+
const E = A < 768 ? 3 : 5;
|
|
9028
|
+
return t.includes("bottom") ? [...a].slice(-1 * E) : [...a].reverse().slice(0, E);
|
|
9031
9029
|
}, [t, a, A]);
|
|
9032
9030
|
return /* @__PURE__ */ e.createElement(_i.Provider, { value: o }, i, d.length > 0 && /* @__PURE__ */ e.createElement("div", { className: `agora-toast-list toast-list-${t}`, "aria-live": "assertive" }, d.map((r) => /* @__PURE__ */ e.createElement(Bl, { key: r.id, ...r }))));
|
|
9033
9031
|
}, et = ({
|
|
@@ -9038,14 +9036,14 @@ const De = (i, t = 10) => {
|
|
|
9038
9036
|
onFileReplace: n,
|
|
9039
9037
|
...A
|
|
9040
9038
|
}) => {
|
|
9041
|
-
const o = se(), d = (
|
|
9042
|
-
n == null || n(
|
|
9043
|
-
}, r = (
|
|
9044
|
-
a == null || a(
|
|
9045
|
-
},
|
|
9046
|
-
const R =
|
|
9047
|
-
return `${parseFloat((
|
|
9048
|
-
}, b = (
|
|
9039
|
+
const o = se(), d = (N) => {
|
|
9040
|
+
n == null || n(N);
|
|
9041
|
+
}, r = (N) => {
|
|
9042
|
+
a == null || a(N);
|
|
9043
|
+
}, g = (N, m = 0) => {
|
|
9044
|
+
const R = m < 0 ? 0 : m, I = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], D = Math.floor(Math.log(N) / Math.log(1024));
|
|
9045
|
+
return `${parseFloat((N / Math.pow(1024, D)).toFixed(R))} ${I[D]}`;
|
|
9046
|
+
}, b = (N) => [
|
|
9049
9047
|
{
|
|
9050
9048
|
className: "replace-action",
|
|
9051
9049
|
hasIcon: !0,
|
|
@@ -9054,8 +9052,8 @@ const De = (i, t = 10) => {
|
|
|
9054
9052
|
variant: "neutral",
|
|
9055
9053
|
leadingIcon: "agora-line-refresh-ccw",
|
|
9056
9054
|
leadingIconHover: "agora-solid-refresh-ccw",
|
|
9057
|
-
onClick: () => d(
|
|
9058
|
-
"aria-label": `${l} ${
|
|
9055
|
+
onClick: () => d(N),
|
|
9056
|
+
"aria-label": `${l} ${N.name}`
|
|
9059
9057
|
},
|
|
9060
9058
|
{
|
|
9061
9059
|
className: "delete-action",
|
|
@@ -9065,13 +9063,13 @@ const De = (i, t = 10) => {
|
|
|
9065
9063
|
variant: "neutral",
|
|
9066
9064
|
leadingIcon: "agora-line-trash",
|
|
9067
9065
|
leadingIconHover: "agora-solid-trash",
|
|
9068
|
-
onClick: () => r(
|
|
9069
|
-
"aria-label": `${t} ${
|
|
9066
|
+
onClick: () => r(N),
|
|
9067
|
+
"aria-label": `${t} ${N.name}`
|
|
9070
9068
|
}
|
|
9071
|
-
],
|
|
9072
|
-
return /* @__PURE__ */ e.createElement("ul", { className:
|
|
9073
|
-
const s = `${o}-${
|
|
9074
|
-
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" },
|
|
9069
|
+
], E = J("agora-file-list", { "p-16": i.length > 0 }, A.className);
|
|
9070
|
+
return /* @__PURE__ */ e.createElement("ul", { className: E, "aria-live": "polite" }, i.map((N, m) => {
|
|
9071
|
+
const s = `${o}-${N.name}-${m}`, R = b(N);
|
|
9072
|
+
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) => {
|
|
9075
9073
|
const j = `${s}-action-${D}`;
|
|
9076
9074
|
return /* @__PURE__ */ e.createElement(Ne, { key: j, ...I });
|
|
9077
9075
|
}))), /* @__PURE__ */ e.createElement("div", { className: "file-divider" }));
|
|
@@ -9086,30 +9084,30 @@ const De = (i, t = 10) => {
|
|
|
9086
9084
|
return n.type = "file", n.onchange = a, n.multiple = i, n.accept = t.join(","), l && (n.dataset.replaceFile = l), n;
|
|
9087
9085
|
}, ii = (i, t, a, l, n, A = !1) => {
|
|
9088
9086
|
let o = !1;
|
|
9089
|
-
const d = [], r = [],
|
|
9090
|
-
return b && (o = !0), t.forEach((
|
|
9091
|
-
Fl(
|
|
9087
|
+
const d = [], r = [], g = [], b = !A && a < i.length + t.length;
|
|
9088
|
+
return b && (o = !0), t.forEach((E) => {
|
|
9089
|
+
Fl(E.name, i) || (o = !0, d.push(E.name)), E.size > l && (o = !0, r.push(E.name)), xl(E.name, n) || (o = !0, g.push(E.name));
|
|
9092
9090
|
}), {
|
|
9093
9091
|
hasErrors: o,
|
|
9094
9092
|
maxCountExceeded: b,
|
|
9095
9093
|
duplicatedFiles: d,
|
|
9096
9094
|
sizeExceededFiles: r,
|
|
9097
|
-
extensionForbiddenFiles:
|
|
9095
|
+
extensionForbiddenFiles: g
|
|
9098
9096
|
};
|
|
9099
9097
|
}, it = (i, t, a, l, n, A) => {
|
|
9100
|
-
const o = C([]), d = C(null), r = () => l ? i : 1,
|
|
9101
|
-
|
|
9098
|
+
const o = C([]), d = C(null), r = () => l ? i : 1, g = (Y, M) => {
|
|
9099
|
+
Ue(() => n(Y, M));
|
|
9102
9100
|
}, b = (Y) => {
|
|
9103
9101
|
const M = ii([], Y, r(), t, a), U = [];
|
|
9104
|
-
M.hasErrors ? d.current = M : (d.current = null, U.push(...Y)), o.current = U,
|
|
9105
|
-
},
|
|
9102
|
+
M.hasErrors ? d.current = M : (d.current = null, U.push(...Y)), o.current = U, g(o.current, d.current);
|
|
9103
|
+
}, E = (Y) => {
|
|
9106
9104
|
if (Y.length == 0)
|
|
9107
9105
|
return;
|
|
9108
9106
|
const M = ii(o.current, Y, r(), t, a), U = [...o.current];
|
|
9109
|
-
M.hasErrors ? d.current = M : (d.current = null, U.push(...Y)), o.current = U,
|
|
9110
|
-
},
|
|
9111
|
-
d.current = null, o.current = o.current.filter((M) => M.name !== Y.name),
|
|
9112
|
-
},
|
|
9107
|
+
M.hasErrors ? d.current = M : (d.current = null, U.push(...Y)), o.current = U, g(o.current, d.current);
|
|
9108
|
+
}, N = (Y) => {
|
|
9109
|
+
d.current = null, o.current = o.current.filter((M) => M.name !== Y.name), g(o.current, d.current);
|
|
9110
|
+
}, m = (Y, M) => {
|
|
9113
9111
|
if (!Y || M.length == 0)
|
|
9114
9112
|
return;
|
|
9115
9113
|
const U = ii(o.current, [M[0]], r(), t, a, !0), G = [...o.current];
|
|
@@ -9120,13 +9118,13 @@ const De = (i, t = 10) => {
|
|
|
9120
9118
|
const u = G.findIndex((p) => p.name === Y);
|
|
9121
9119
|
u >= 0 && G.splice(u, 1, M[0]);
|
|
9122
9120
|
}
|
|
9123
|
-
o.current = G,
|
|
9121
|
+
o.current = G, g(o.current, d.current);
|
|
9124
9122
|
}, s = (Y) => {
|
|
9125
9123
|
const M = Y.currentTarget, U = Array.from(M.files ?? []);
|
|
9126
|
-
|
|
9124
|
+
E(U);
|
|
9127
9125
|
}, R = (Y) => {
|
|
9128
9126
|
const M = Y.currentTarget, U = Array.from(M.files ?? []);
|
|
9129
|
-
|
|
9127
|
+
m(M.dataset.replaceFile ?? "", U);
|
|
9130
9128
|
};
|
|
9131
9129
|
ie(() => {
|
|
9132
9130
|
A && b(A);
|
|
@@ -9134,11 +9132,11 @@ const De = (i, t = 10) => {
|
|
|
9134
9132
|
const I = () => {
|
|
9135
9133
|
hi(l, a, s).click();
|
|
9136
9134
|
}, D = (Y) => {
|
|
9137
|
-
|
|
9135
|
+
N(Y);
|
|
9138
9136
|
}, j = (Y) => {
|
|
9139
9137
|
hi(l, a, R, Y.name).click();
|
|
9140
9138
|
}, h = (Y) => {
|
|
9141
|
-
|
|
9139
|
+
E(Y);
|
|
9142
9140
|
};
|
|
9143
9141
|
return { files: o.current, onAddFiles: I, onRemoveFile: D, onReplaceFile: j, onPasteFiles: h };
|
|
9144
9142
|
}, Ll = ({
|
|
@@ -9151,11 +9149,11 @@ const De = (i, t = 10) => {
|
|
|
9151
9149
|
accept: o = "",
|
|
9152
9150
|
maxSize: d = Number.MAX_SAFE_INTEGER,
|
|
9153
9151
|
maxCount: r = Number.MAX_SAFE_INTEGER,
|
|
9154
|
-
maxCountExceededErrorLabel:
|
|
9152
|
+
maxCountExceededErrorLabel: g = "",
|
|
9155
9153
|
maxSizeExceededErrorLabel: b = "",
|
|
9156
|
-
forbiddenExtensionErrorLabel:
|
|
9157
|
-
duplicatedFileErrorLabel:
|
|
9158
|
-
multiple:
|
|
9154
|
+
forbiddenExtensionErrorLabel: E = "",
|
|
9155
|
+
duplicatedFileErrorLabel: N = "",
|
|
9156
|
+
multiple: m,
|
|
9159
9157
|
disabled: s,
|
|
9160
9158
|
onChange: R,
|
|
9161
9159
|
files: I,
|
|
@@ -9173,12 +9171,12 @@ const De = (i, t = 10) => {
|
|
|
9173
9171
|
return;
|
|
9174
9172
|
}
|
|
9175
9173
|
const H = [];
|
|
9176
|
-
Q.maxCountExceeded && H.push(
|
|
9177
|
-
H.push(`${_} - ${
|
|
9174
|
+
Q.maxCountExceeded && H.push(g), Q.duplicatedFiles.forEach((_) => {
|
|
9175
|
+
H.push(`${_} - ${N}`);
|
|
9178
9176
|
}), Q.sizeExceededFiles.forEach((_) => {
|
|
9179
9177
|
H.push(`${_} - ${b}`);
|
|
9180
9178
|
}), Q.extensionForbiddenFiles.forEach((_) => {
|
|
9181
|
-
H.push(`${_} - ${
|
|
9179
|
+
H.push(`${_} - ${E}`);
|
|
9182
9180
|
}), F(H);
|
|
9183
9181
|
}, T = (Q, H) => {
|
|
9184
9182
|
if (Q.length > 0 ? v(`${Q.length} ${t}`) : v(i), p.current) {
|
|
@@ -9187,17 +9185,17 @@ const De = (i, t = 10) => {
|
|
|
9187
9185
|
_.items.add(P);
|
|
9188
9186
|
}), p.current.files = _.files;
|
|
9189
9187
|
const me = Te(p.current, "change");
|
|
9190
|
-
|
|
9188
|
+
Ue(() => R == null ? void 0 : R(me));
|
|
9191
9189
|
}
|
|
9192
9190
|
L(H);
|
|
9193
9191
|
}, { files: k, onAddFiles: V, onRemoveFile: K, onReplaceFile: W, onPasteFiles: B } = it(
|
|
9194
9192
|
r,
|
|
9195
9193
|
d,
|
|
9196
9194
|
o ? o.split(",") : [],
|
|
9197
|
-
!!
|
|
9195
|
+
!!m,
|
|
9198
9196
|
T,
|
|
9199
9197
|
I
|
|
9200
|
-
), z = de(() =>
|
|
9198
|
+
), z = de(() => m ? !s && k.length < r : !s && k.length === 0, [s, m, k]), q = (Q) => {
|
|
9201
9199
|
W(Q);
|
|
9202
9200
|
}, te = (Q) => {
|
|
9203
9201
|
K(Q);
|
|
@@ -9238,7 +9236,7 @@ const De = (i, t = 10) => {
|
|
|
9238
9236
|
w
|
|
9239
9237
|
), /* @__PURE__ */ e.createElement("div", { className: "extension-instructions" }, A), S.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "errors-container" }, S.map((Q, H) => {
|
|
9240
9238
|
const _ = `error-message-${G}-${H}`;
|
|
9241
|
-
return /* @__PURE__ */ e.createElement(
|
|
9239
|
+
return /* @__PURE__ */ e.createElement(pe, { key: _, feedbackState: "danger", feedbackText: Q });
|
|
9242
9240
|
}))), /* @__PURE__ */ e.createElement("div", { className: x }, /* @__PURE__ */ e.createElement(
|
|
9243
9241
|
et,
|
|
9244
9242
|
{
|
|
@@ -9248,7 +9246,7 @@ const De = (i, t = 10) => {
|
|
|
9248
9246
|
removeFileButtonLabel: l,
|
|
9249
9247
|
replaceFileButtonLabel: n
|
|
9250
9248
|
}
|
|
9251
|
-
)), (c(j) || c(D)) && Y && /* @__PURE__ */ e.createElement(
|
|
9249
|
+
)), (c(j) || c(D)) && Y && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(D) ? "danger" : h, feedbackText: Y }));
|
|
9252
9250
|
}, gA = re(Ll), Ql = ({
|
|
9253
9251
|
dragAndDropLabel: i,
|
|
9254
9252
|
label: t,
|
|
@@ -9259,11 +9257,11 @@ const De = (i, t = 10) => {
|
|
|
9259
9257
|
removeFileButtonLabel: o,
|
|
9260
9258
|
replaceFileButtonLabel: d,
|
|
9261
9259
|
accept: r,
|
|
9262
|
-
maxSize:
|
|
9260
|
+
maxSize: g = Number.MAX_SAFE_INTEGER,
|
|
9263
9261
|
maxCount: b = Number.MAX_SAFE_INTEGER,
|
|
9264
|
-
maxCountExceededErrorLabel:
|
|
9265
|
-
maxSizeExceededErrorLabel:
|
|
9266
|
-
forbiddenExtensionErrorLabel:
|
|
9262
|
+
maxCountExceededErrorLabel: E = "",
|
|
9263
|
+
maxSizeExceededErrorLabel: N = "",
|
|
9264
|
+
forbiddenExtensionErrorLabel: m = "",
|
|
9267
9265
|
duplicatedFileErrorLabel: s = "",
|
|
9268
9266
|
multiple: R,
|
|
9269
9267
|
disabled: I,
|
|
@@ -9283,12 +9281,12 @@ const De = (i, t = 10) => {
|
|
|
9283
9281
|
return;
|
|
9284
9282
|
}
|
|
9285
9283
|
const be = [];
|
|
9286
|
-
oe.maxCountExceeded && be.push(
|
|
9284
|
+
oe.maxCountExceeded && be.push(E), oe.duplicatedFiles.forEach((Re) => {
|
|
9287
9285
|
be.push(`${Re} - ${s}`);
|
|
9288
9286
|
}), oe.sizeExceededFiles.forEach((Re) => {
|
|
9289
|
-
be.push(`${Re} - ${m}`);
|
|
9290
|
-
}), oe.extensionForbiddenFiles.forEach((Re) => {
|
|
9291
9287
|
be.push(`${Re} - ${N}`);
|
|
9288
|
+
}), oe.extensionForbiddenFiles.forEach((Re) => {
|
|
9289
|
+
be.push(`${Re} - ${m}`);
|
|
9292
9290
|
}), K(be);
|
|
9293
9291
|
}, B = (oe, be) => {
|
|
9294
9292
|
if (oe.length > 0 ? L(`${oe.length} ${a}`) : L(t), v.current) {
|
|
@@ -9297,12 +9295,12 @@ const De = (i, t = 10) => {
|
|
|
9297
9295
|
Re.items.add(ve);
|
|
9298
9296
|
}), v.current.files = Re.files;
|
|
9299
9297
|
const je = Te(v.current, "change");
|
|
9300
|
-
|
|
9298
|
+
Ue(() => D == null ? void 0 : D(je));
|
|
9301
9299
|
}
|
|
9302
9300
|
W(be);
|
|
9303
9301
|
}, { files: z, onAddFiles: q, onRemoveFile: te, onReplaceFile: y, onPasteFiles: X } = it(
|
|
9304
9302
|
b,
|
|
9305
|
-
|
|
9303
|
+
g,
|
|
9306
9304
|
r ? r.split(",") : [],
|
|
9307
9305
|
!!R,
|
|
9308
9306
|
B,
|
|
@@ -9366,7 +9364,7 @@ const De = (i, t = 10) => {
|
|
|
9366
9364
|
F
|
|
9367
9365
|
), V.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "errors-container" }, V.map((oe, be) => {
|
|
9368
9366
|
const Re = `error-message-${p}-${be}`;
|
|
9369
|
-
return /* @__PURE__ */ e.createElement(
|
|
9367
|
+
return /* @__PURE__ */ e.createElement(pe, { key: Re, feedbackState: "danger", feedbackText: oe });
|
|
9370
9368
|
}))), /* @__PURE__ */ e.createElement(
|
|
9371
9369
|
et,
|
|
9372
9370
|
{
|
|
@@ -9376,13 +9374,13 @@ const De = (i, t = 10) => {
|
|
|
9376
9374
|
removeFileButtonLabel: o,
|
|
9377
9375
|
replaceFileButtonLabel: d
|
|
9378
9376
|
}
|
|
9379
|
-
), (c(Y) || c(h)) && U && /* @__PURE__ */ e.createElement(
|
|
9377
|
+
), (c(Y) || c(h)) && U && /* @__PURE__ */ e.createElement(pe, { feedbackState: c(h) ? "danger" : M, feedbackText: U }));
|
|
9380
9378
|
}, IA = re(Ql);
|
|
9381
9379
|
export {
|
|
9382
9380
|
Pl as Accordion,
|
|
9383
9381
|
fl as AccordionGroup,
|
|
9384
9382
|
Xl as AgoraTailwindConfig,
|
|
9385
|
-
|
|
9383
|
+
De as Anchor,
|
|
9386
9384
|
Gt as Avatar,
|
|
9387
9385
|
Kl as AvatarGroup,
|
|
9388
9386
|
ql as BackToTop,
|
|
@@ -9482,7 +9480,7 @@ export {
|
|
|
9482
9480
|
ti as Tooltip,
|
|
9483
9481
|
ot as allIcons,
|
|
9484
9482
|
Ca as allScribbles,
|
|
9485
|
-
|
|
9483
|
+
Ue as asyncTrigger,
|
|
9486
9484
|
Te as createSyntheticEvent,
|
|
9487
9485
|
Cl as debounce,
|
|
9488
9486
|
Ai as getDateString,
|