@ama-pt/agora-design-system 2.2.1 → 2.2.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.
@@ -1,4 +1,4 @@
1
- import e, { lazy as M, Suspense as xt, forwardRef as re, Children as O, isValidElement as B, useRef as C, useState as V, useEffect as _, useImperativeHandle as Se, useId as le, useMemo as oe, createRef as ke, useCallback as be, cloneElement as ge, createContext as ze, useContext as Te, Fragment as hi, useLayoutEffect as vi } from "react";
1
+ import e, { lazy as M, Suspense as xt, forwardRef as re, Children as O, isValidElement as T, useRef as X, useState as V, useEffect as ee, useImperativeHandle as Se, useId as le, useMemo as oe, createRef as ke, useCallback as be, cloneElement as ge, createContext as ze, useContext as Te, Fragment as hi, useLayoutEffect as vi } from "react";
2
2
  import { createPortal as Ji } from "react-dom";
3
3
  const Mt = {
4
4
  content: [],
@@ -658,7 +658,7 @@ const J = /* @__PURE__ */ yi(Si), Lt = {
658
658
  };
659
659
  return m && /* @__PURE__ */ e.createElement(xt, null, /* @__PURE__ */ e.createElement(m, { ...g }));
660
660
  }, de = ({ state: t, ...i }) => /* @__PURE__ */ e.createElement(ne, { "data-state": t, ...i }), zi = ({ className: t, state: i = "default", children: n, ...a }, l) => /* @__PURE__ */ e.createElement("div", { ...a, ref: l, className: t }, O.toArray(n).map((c) => {
661
- if (!B(c))
661
+ if (!T(c))
662
662
  return null;
663
663
  const { state: r, ...o } = c.props;
664
664
  return /* @__PURE__ */ e.createElement(ne, { ...o, "aria-hidden": !0, key: r, style: { display: r === i ? "block" : "none" } });
@@ -699,8 +699,8 @@ const Yr = (t, i = 300) => {
699
699
  }, i);
700
700
  };
701
701
  }, Ti = (t, i = 300) => {
702
- const n = C(null), [a, l] = V(null);
703
- return _(() => (n.current && clearTimeout(n.current), n.current = setTimeout(() => {
702
+ const n = X(null), [a, l] = V(null);
703
+ return ee(() => (n.current && clearTimeout(n.current), n.current = setTimeout(() => {
704
704
  t(a);
705
705
  }, i), () => {
706
706
  n.current && clearTimeout(n.current);
@@ -716,7 +716,7 @@ const Yr = (t, i = 300) => {
716
716
  return `${i}/${n}/${a}`;
717
717
  }, Ur = (t) => t.toLocaleLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, ""), s = (t) => typeof t > "u" ? !1 : typeof t == "boolean" ? t : t === "true";
718
718
  function je(t, i, n, a) {
719
- const l = C();
719
+ const l = X();
720
720
  return Se(
721
721
  t,
722
722
  () => (l.current = i.current, l.current && Object.assign(l.current, n), l.current),
@@ -727,7 +727,7 @@ const De = (t, i = 10) => {
727
727
  setTimeout(t, i);
728
728
  }, pe = () => {
729
729
  const [t, i] = V(1920), [n, a] = V(1080);
730
- return _(() => {
730
+ return ee(() => {
731
731
  let l = !0;
732
732
  const c = () => {
733
733
  l && (i(window.innerWidth), a(window.innerHeight));
@@ -770,13 +770,13 @@ const De = (t, i = 10) => {
770
770
  R || p(!0);
771
771
  }, S = () => {
772
772
  R || p(!1), y({ name: "collapse" });
773
- }, X = () => {
773
+ }, C = () => {
774
774
  R || p(!1);
775
775
  }, F = () => {
776
776
  R || p(!v), v && y({ name: "collapse" }), v || y({ name: "expand" });
777
- }, T = () => {
777
+ }, B = () => {
778
778
  R || p(!v);
779
- }, Q = C(null), L = je(
779
+ }, Q = X(null), L = je(
780
780
  N,
781
781
  Q,
782
782
  {
@@ -784,13 +784,13 @@ const De = (t, i = 10) => {
784
784
  expand: W,
785
785
  silentExpand: x,
786
786
  collapse: S,
787
- silentCollapse: X,
787
+ silentCollapse: C,
788
788
  toggle: F,
789
- silentToggle: T
789
+ silentToggle: B
790
790
  },
791
791
  [Q, v]
792
792
  );
793
- _(() => {
793
+ ee(() => {
794
794
  if (k.name === "expand") {
795
795
  const ie = Be(L.current, "expand");
796
796
  d == null || d(ie);
@@ -802,7 +802,7 @@ const De = (t, i = 10) => {
802
802
  const te = Be(L.current, "change");
803
803
  b == null || b(te);
804
804
  }, [k]);
805
- const ee = J("agora-accordion", A, {
805
+ const _ = J("agora-accordion", A, {
806
806
  "accordion-open": v,
807
807
  "active-state": G === "active",
808
808
  mobile: w,
@@ -822,7 +822,7 @@ const De = (t, i = 10) => {
822
822
  }, se = () => {
823
823
  D("hover");
824
824
  };
825
- return /* @__PURE__ */ e.createElement("div", { className: ee, ...E, ref: Q }, /* @__PURE__ */ e.createElement(o, { className: "flex justify-start items-center w-full" }, /* @__PURE__ */ e.createElement(
825
+ return /* @__PURE__ */ e.createElement("div", { className: _, ...E, ref: Q }, /* @__PURE__ */ e.createElement(o, { className: "flex justify-start items-center w-full" }, /* @__PURE__ */ e.createElement(
826
826
  "button",
827
827
  {
828
828
  "aria-label": u,
@@ -857,7 +857,7 @@ const De = (t, i = 10) => {
857
857
  I !== g && ((b = d.current) == null || b.silentCollapse());
858
858
  });
859
859
  }, A = O.toArray(i).map((g, d) => {
860
- if (!B(g))
860
+ if (!T(g))
861
861
  return null;
862
862
  const I = `accordion-group-${c}-accordion-${d}`, b = ke();
863
863
  r.set(I, b);
@@ -886,7 +886,7 @@ const De = (t, i = 10) => {
886
886
  inline: I = !1,
887
887
  ...b
888
888
  }, u) => {
889
- const E = C(null);
889
+ const E = X(null);
890
890
  je(u, E, {}, [E.current]);
891
891
  const N = J(
892
892
  "agora-anchor",
@@ -947,7 +947,7 @@ const De = (t, i = 10) => {
947
947
  children: r,
948
948
  ...o
949
949
  }) => {
950
- const A = le(), m = C(null), [g, d] = V(0), [I, b] = V(0), [u, E] = V(0), [N, Z] = V(0), R = be(() => {
950
+ const A = le(), m = X(null), [g, d] = V(0), [I, b] = V(0), [u, E] = V(0), [N, Z] = V(0), R = be(() => {
951
951
  var Q;
952
952
  if (m.current) {
953
953
  const L = (Q = m.current) == null ? void 0 : Q.getBoundingClientRect();
@@ -969,7 +969,7 @@ const De = (t, i = 10) => {
969
969
  }, v = () => {
970
970
  U();
971
971
  };
972
- _(() => {
972
+ ee(() => {
973
973
  document.addEventListener("keydown", w);
974
974
  const Q = (L) => {
975
975
  L.detail !== Y.id && D(!1);
@@ -978,7 +978,7 @@ const De = (t, i = 10) => {
978
978
  document.removeEventListener("keydown", w), document.removeEventListener(Yt, Q);
979
979
  };
980
980
  }, [Y.id]);
981
- const k = O.map(r, (Q) => B(Q) ? ge(Q, { ref: m, onMouseEnter: (H) => {
981
+ const k = O.map(r, (Q) => T(Q) ? ge(Q, { ref: m, onMouseEnter: (H) => {
982
982
  var f, K;
983
983
  R(), h(), (K = (f = Q.props).onMouseEnter) == null || K.call(f, H);
984
984
  }, onMouseLeave: (H) => {
@@ -992,7 +992,7 @@ const De = (t, i = 10) => {
992
992
  var f, K;
993
993
  U(), (K = (f = Q.props).onBlur) == null || K.call(f, H);
994
994
  }, "aria-describedby": Y.id }) : Q);
995
- _(() => {
995
+ ee(() => {
996
996
  const Q = () => {
997
997
  R();
998
998
  };
@@ -1076,7 +1076,7 @@ const De = (t, i = 10) => {
1076
1076
  left: `${u + 10}px`,
1077
1077
  transform: "translateY(-100%)"
1078
1078
  };
1079
- }, [a, N, u]), X = oe(() => {
1079
+ }, [a, N, u]), C = oe(() => {
1080
1080
  switch (n) {
1081
1081
  case "top":
1082
1082
  return y;
@@ -1098,9 +1098,9 @@ const De = (t, i = 10) => {
1098
1098
  onMouseLeave: v,
1099
1099
  role: "none"
1100
1100
  },
1101
- /* @__PURE__ */ e.createElement("div", { className: "relative w-full h-full" }, /* @__PURE__ */ e.createElement("div", { ...Y, style: { ...X }, id: Y.id, className: p, role: "tooltip" }, s(t) && /* @__PURE__ */ e.createElement("div", { className: "title" }, l), /* @__PURE__ */ e.createElement("p", { className: "description" }, c), /* @__PURE__ */ e.createElement("div", { className: "tooltip-extra-hover-area", role: "none" })))
1102
- ), [p, c, t, l, Y, X, g, I]), T = oe(() => G ? Ji(F, document.body) : null, [G, F]);
1103
- return /* @__PURE__ */ e.createElement(e.Fragment, null, k, T);
1101
+ /* @__PURE__ */ e.createElement("div", { className: "relative w-full h-full" }, /* @__PURE__ */ e.createElement("div", { ...Y, style: { ...C }, id: Y.id, className: p, role: "tooltip" }, s(t) && /* @__PURE__ */ e.createElement("div", { className: "title" }, l), /* @__PURE__ */ e.createElement("p", { className: "description" }, c), /* @__PURE__ */ e.createElement("div", { className: "tooltip-extra-hover-area", role: "none" })))
1102
+ ), [p, c, t, l, Y, C, g, I]), B = oe(() => G ? Ji(F, document.body) : null, [G, F]);
1103
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, k, B);
1104
1104
  }, Qi = ({
1105
1105
  darkMode: t = !1,
1106
1106
  appearance: i = "solid",
@@ -1117,7 +1117,7 @@ const De = (t, i = 10) => {
1117
1117
  onChange: I,
1118
1118
  ...b
1119
1119
  }, u) => {
1120
- const [E, N] = V(s(b.selected)), [Z, R] = V("default"), Y = C(null);
1120
+ const [E, N] = V(s(b.selected)), [Z, R] = V("default"), Y = X(null);
1121
1121
  je(
1122
1122
  u,
1123
1123
  Y,
@@ -1129,7 +1129,7 @@ const De = (t, i = 10) => {
1129
1129
  const j = () => {
1130
1130
  N((y) => !y);
1131
1131
  };
1132
- _(() => {
1132
+ ee(() => {
1133
1133
  const y = Be({ ...Y.current, selected: E }, "change");
1134
1134
  I == null || I(y);
1135
1135
  }, [E]);
@@ -1147,8 +1147,8 @@ const De = (t, i = 10) => {
1147
1147
  var W, x;
1148
1148
  (y.code === "Enter" || y.code === "NumpadEnter" || y.code === "Space") && ((W = Y.current) == null || W.classList.add("active"), R("active")), (x = b.onKeyDown) == null || x.call(b, y);
1149
1149
  }, D = (y) => {
1150
- var W, x, S, X;
1151
- (y.code === "Enter" || y.code === "NumpadEnter" || y.code === "Space") && ((W = Y.current) == null || W.classList.remove("active"), R("default"), (x = Y.current) == null || x.setAttribute("data-custom-triggered-click", "true"), (S = Y.current) == null || S.click()), (X = b.onKeyUp) == null || X.call(b, y);
1150
+ var W, x, S, C;
1151
+ (y.code === "Enter" || y.code === "NumpadEnter" || y.code === "Space") && ((W = Y.current) == null || W.classList.remove("active"), R("default"), (x = Y.current) == null || x.setAttribute("data-custom-triggered-click", "true"), (S = Y.current) == null || S.click()), (C = b.onKeyUp) == null || C.call(b, y);
1152
1152
  }, h = (y) => {
1153
1153
  var x;
1154
1154
  window.matchMedia("(pointer: coarse)").matches || (R("hover"), (x = b.onMouseEnter) == null || x.call(b, y));
@@ -1162,18 +1162,18 @@ const De = (t, i = 10) => {
1162
1162
  var x, S;
1163
1163
  y.preventDefault(), !window.matchMedia("(pointer: coarse)").matches && (R("default"), (x = Y.current) == null || x.classList.remove("active"), (S = b.onMouseUp) == null || S.call(b, y));
1164
1164
  }, k = (y) => {
1165
- var S, X, F, T;
1165
+ var S, C, F, B;
1166
1166
  const W = window.matchMedia("(pointer: coarse)").matches;
1167
1167
  if (y.detail > 0) {
1168
1168
  j(), R(W ? "default" : "hover"), (S = b.onClick) == null || S.call(b, y);
1169
1169
  return;
1170
1170
  }
1171
- const x = ((X = Y.current) == null ? void 0 : X.getAttribute("data-custom-triggered-click")) === "true";
1171
+ const x = ((C = Y.current) == null ? void 0 : C.getAttribute("data-custom-triggered-click")) === "true";
1172
1172
  if ((F = Y.current) == null || F.removeAttribute("data-custom-triggered-click"), !x) {
1173
1173
  y.preventDefault();
1174
1174
  return;
1175
1175
  }
1176
- j(), R("default"), (T = b.onClick) == null || T.call(b, y);
1176
+ j(), R("default"), (B = b.onClick) == null || B.call(b, y);
1177
1177
  };
1178
1178
  return /* @__PURE__ */ e.createElement(
1179
1179
  "button",
@@ -1263,12 +1263,12 @@ const De = (t, i = 10) => {
1263
1263
  const a = st(), l = a.visibility, c = a.applyFilter, r = a.hide, o = a.next, [A, m] = V(""), g = Ti(c, t), d = (R) => {
1264
1264
  m(R.target.value);
1265
1265
  };
1266
- _(() => {
1266
+ ee(() => {
1267
1267
  g.setArgs(A.toLowerCase());
1268
1268
  }, [A, g]);
1269
1269
  const I = () => {
1270
1270
  m("");
1271
- }, b = C(null), u = C(null);
1271
+ }, b = X(null), u = X(null);
1272
1272
  Se(n, () => ({
1273
1273
  current: u.current,
1274
1274
  resetFilter: I
@@ -1290,7 +1290,7 @@ const De = (t, i = 10) => {
1290
1290
  var Y;
1291
1291
  R.preventDefault(), (Y = b.current) == null || Y.focus();
1292
1292
  };
1293
- return _(() => {
1293
+ return ee(() => {
1294
1294
  if (u.current && l) {
1295
1295
  const { height: R } = u.current.getBoundingClientRect();
1296
1296
  u.current.setAttribute("data-filter-section-height", `${R}`);
@@ -1331,14 +1331,14 @@ const De = (t, i = 10) => {
1331
1331
  "trailing-icon": s(l) && r === "trailing"
1332
1332
  }
1333
1333
  ), U = () => {
1334
- const S = Z.find((X) => X.value === m && X.name === A);
1334
+ const S = Z.find((C) => C.value === m && C.name === A);
1335
1335
  S && N(S);
1336
1336
  }, w = (S) => {
1337
- const X = S.code;
1338
- (X === "Space" || X === "Enter" || X === "NumpadEnter") && (S.stopPropagation(), S.preventDefault(), U()), X === "Tab" && (S.stopPropagation(), S.preventDefault(), D());
1337
+ const C = S.code;
1338
+ (C === "Space" || C === "Enter" || C === "NumpadEnter") && (S.stopPropagation(), S.preventDefault(), U()), C === "Tab" && (S.stopPropagation(), S.preventDefault(), D());
1339
1339
  }, v = (S) => {
1340
- const { code: X } = S;
1341
- switch (X) {
1340
+ const { code: C } = S;
1341
+ switch (C) {
1342
1342
  case "Escape":
1343
1343
  D();
1344
1344
  break;
@@ -1388,13 +1388,13 @@ const De = (t, i = 10) => {
1388
1388
  /* @__PURE__ */ e.createElement($i, { type: G, hasIcon: s(l), icon: b }, o)
1389
1389
  );
1390
1390
  }, en = re(_i), tn = ({ className: t, name: i, label: n = "", hideLabel: a }) => {
1391
- const l = st(), c = l.options, r = l.type, o = l.visibility, A = oe(() => /* @__PURE__ */ new Map(), []), m = C(null), g = J("agora-dropdown-section", t), d = oe(() => c.filter((b) => b.name === i).map((b) => {
1391
+ const l = st(), c = l.options, r = l.type, o = l.visibility, A = oe(() => /* @__PURE__ */ new Map(), []), m = X(null), g = J("agora-dropdown-section", t), d = oe(() => c.filter((b) => b.name === i).map((b) => {
1392
1392
  const u = `${i}-${r}-${b.value}`, E = J(b.className, {
1393
1393
  "no-section-name": r !== "checkbox" && s(a)
1394
1394
  }), N = ke();
1395
1395
  return A.set(u, N), /* @__PURE__ */ e.createElement(en, { ...b, key: u, sectionOptionId: u, ref: N, className: E });
1396
1396
  }), [c, A, i, r, i]);
1397
- _(() => {
1397
+ ee(() => {
1398
1398
  if (A.forEach((b) => {
1399
1399
  if (b.current && o) {
1400
1400
  const u = b.current.getBoundingClientRect().height;
@@ -1408,7 +1408,7 @@ const De = (t, i = 10) => {
1408
1408
  const I = !s(a);
1409
1409
  return /* @__PURE__ */ e.createElement("ul", { className: g, role: "group", ...I ? { "aria-labelledby": i } : {} }, I && /* @__PURE__ */ e.createElement("li", { ref: m, className: "section-name", id: i, role: "presentation" }, n), d);
1410
1410
  }, nn = ({ label: t }) => {
1411
- const i = C(null), n = st(), a = n.visibility, l = n.isAllDisabled, c = n.isAllSelected, r = n.selectAll, o = n.last, A = n.first, m = n.next, g = n.prev, d = n.hide, I = (E) => {
1411
+ const i = X(null), n = st(), a = n.visibility, l = n.isAllDisabled, c = n.isAllSelected, r = n.selectAll, o = n.last, A = n.first, m = n.next, g = n.prev, d = n.hide, I = (E) => {
1412
1412
  const { code: N } = E;
1413
1413
  switch (N) {
1414
1414
  case "Escape":
@@ -1437,14 +1437,14 @@ const De = (t, i = 10) => {
1437
1437
  }, b = () => {
1438
1438
  r();
1439
1439
  };
1440
- _(() => {
1440
+ ee(() => {
1441
1441
  const E = (N) => {
1442
1442
  N.code === "Tab" && (N.stopPropagation(), N.preventDefault(), d());
1443
1443
  };
1444
1444
  return i.current && i.current.addEventListener("keydown", E, !0), () => {
1445
1445
  i.current && i.current.removeEventListener("keydown", E, !0);
1446
1446
  };
1447
- }, []), _(() => {
1447
+ }, []), ee(() => {
1448
1448
  if (i.current && a) {
1449
1449
  const { height: E } = i.current.getBoundingClientRect();
1450
1450
  i.current.setAttribute("data-select-all-section-height", `${E}`);
@@ -1474,9 +1474,9 @@ const De = (t, i = 10) => {
1474
1474
  noSearchResults: c = "",
1475
1475
  ...r
1476
1476
  }, o) => {
1477
- const A = st(), m = A.visibility, g = A.activeFilter, d = A.sections, I = A.options, b = A.type, u = C(null), E = be(() => {
1477
+ const A = st(), m = A.visibility, g = A.activeFilter, d = A.sections, I = A.options, b = A.type, u = X(null), E = be(() => {
1478
1478
  a && u.current && u.current.resetFilter();
1479
- }, [a]), N = C(null);
1479
+ }, [a]), N = X(null);
1480
1480
  je(o, N, { resetFilter: E }, [E]);
1481
1481
  const [Z, R] = V(""), Y = le(), j = { ...r };
1482
1482
  j.id = j.id ?? Y;
@@ -1484,8 +1484,8 @@ const De = (t, i = 10) => {
1484
1484
  if (N.current && a) {
1485
1485
  const S = N.current.querySelectorAll(".agora-dropdown-filter-section-item")[0] ?? null;
1486
1486
  if (S) {
1487
- const X = S.getAttribute("data-filter-section-height");
1488
- return X ? Number(X) : 0;
1487
+ const C = S.getAttribute("data-filter-section-height");
1488
+ return C ? Number(C) : 0;
1489
1489
  }
1490
1490
  }
1491
1491
  return 0;
@@ -1493,16 +1493,16 @@ const De = (t, i = 10) => {
1493
1493
  if (N.current && b === "checkbox") {
1494
1494
  const S = N.current.querySelectorAll(".agora-dropdown-all-option")[0] ?? null;
1495
1495
  if (S) {
1496
- const X = S.getAttribute("data-select-all-section-height");
1497
- return X ? Number(X) : 0;
1496
+ const C = S.getAttribute("data-select-all-section-height");
1497
+ return C ? Number(C) : 0;
1498
1498
  }
1499
1499
  }
1500
1500
  return 0;
1501
1501
  }, [b]), D = be((x) => {
1502
1502
  let S = 0;
1503
1503
  return N.current && N.current.querySelectorAll(".agora-dropdown-section .section-name").forEach((F) => {
1504
- const T = F.getAttribute("data-section-option-id");
1505
- if (T && x.includes(T)) {
1504
+ const B = F.getAttribute("data-section-option-id");
1505
+ if (B && x.includes(B)) {
1506
1506
  const Q = F.getAttribute("data-section-name-height");
1507
1507
  S = S + (Q ? Number(Q) : 0);
1508
1508
  }
@@ -1511,11 +1511,11 @@ const De = (t, i = 10) => {
1511
1511
  (x) => {
1512
1512
  let S = 0;
1513
1513
  if (N.current) {
1514
- const X = x.map((T) => `${T.name}-${b}-${T.value}`);
1515
- N.current.querySelectorAll(".agora-dropdown-section .agora-dropdown-option").forEach((T) => {
1516
- const Q = T.getAttribute("data-section-option-id");
1517
- if (Q && X.includes(Q)) {
1518
- const L = T.getAttribute("data-section-option-height");
1514
+ const C = x.map((B) => `${B.name}-${b}-${B.value}`);
1515
+ N.current.querySelectorAll(".agora-dropdown-section .agora-dropdown-option").forEach((B) => {
1516
+ const Q = B.getAttribute("data-section-option-id");
1517
+ if (Q && C.includes(Q)) {
1518
+ const L = B.getAttribute("data-section-option-height");
1519
1519
  S = S + (L ? Number(L) : 0);
1520
1520
  }
1521
1521
  });
@@ -1528,18 +1528,18 @@ const De = (t, i = 10) => {
1528
1528
  return 0;
1529
1529
  const x = getComputedStyle(N.current);
1530
1530
  if (x) {
1531
- const S = parseFloat(x.borderTopWidth), X = parseFloat(x.borderBottomWidth);
1532
- return S + X;
1531
+ const S = parseFloat(x.borderTopWidth), C = parseFloat(x.borderBottomWidth);
1532
+ return S + C;
1533
1533
  }
1534
1534
  return 0;
1535
1535
  }, [N]);
1536
- _(() => {
1536
+ ee(() => {
1537
1537
  if (m) {
1538
1538
  const x = I.filter((S) => !S.filtered);
1539
1539
  if (x.length > l) {
1540
- const S = x.slice(0, l), X = [...new Set(S.map((T) => T.name ?? "").filter((T) => !!T))];
1540
+ const S = x.slice(0, l), C = [...new Set(S.map((B) => B.name ?? "").filter((B) => !!B))];
1541
1541
  let F = 0;
1542
- F = F + p(), F = F + G(), F = F + D(X), F = F + h(S), F > 0 ? (F = F + U(), R(`${F}px`)) : R("none");
1542
+ F = F + p(), F = F + G(), F = F + D(C), F = F + h(S), F > 0 ? (F = F + U(), R(`${F}px`)) : R("none");
1543
1543
  } else
1544
1544
  R("none");
1545
1545
  }
@@ -1570,87 +1570,87 @@ const De = (t, i = 10) => {
1570
1570
  }
1571
1571
  },
1572
1572
  /* @__PURE__ */ e.createElement("div", { ...j, role: "listbox" }, a && /* @__PURE__ */ e.createElement(Ki, { ref: u, "aria-label": n, placeholder: i }), b === "checkbox" && k && !y && t && /* @__PURE__ */ e.createElement(nn, { label: t }), k && d.filter((x) => W.indexOf(x.name) >= 0).map((x, S) => {
1573
- const X = `agora-dropdown-option-${j.id}-${S}`;
1574
- return /* @__PURE__ */ e.createElement(tn, { key: X, ...x });
1573
+ const C = `agora-dropdown-option-${j.id}-${S}`;
1574
+ return /* @__PURE__ */ e.createElement(tn, { key: C, ...x });
1575
1575
  }), (!v || !k) && /* @__PURE__ */ e.createElement(qi, { label: c }))
1576
1576
  );
1577
1577
  }, ln = re(an), cn = (t, i, n, a, l, c, r, o) => {
1578
1578
  const [A, m] = V([]), [g, d] = V([]);
1579
- _(() => {
1580
- const T = [], Q = [];
1579
+ ee(() => {
1580
+ const B = [], Q = [];
1581
1581
  o && (Array.isArray(o) ? O.forEach(o, (L) => {
1582
- T.push({
1582
+ B.push({
1583
1583
  ...L.props,
1584
1584
  hideLabel: n
1585
1585
  });
1586
- }) : T.push({
1586
+ }) : B.push({
1587
1587
  ...o.props,
1588
1588
  hideLabel: n
1589
- })), T.forEach((L) => {
1590
- O.forEach(L.children, (ee) => {
1589
+ })), B.forEach((L) => {
1590
+ O.forEach(L.children, (_) => {
1591
1591
  Q.push({
1592
- ...ee.props,
1592
+ ..._.props,
1593
1593
  name: L.name
1594
1594
  });
1595
1595
  });
1596
- }), m(T), d(Q);
1596
+ }), m(B), d(Q);
1597
1597
  }, [o, i, a]);
1598
- const [I, b] = V(""), u = (T) => {
1599
- b((Q) => Q === T ? Q : (d((L) => {
1600
- const ee = L.map(($) => {
1598
+ const [I, b] = V(""), u = (B) => {
1599
+ b((Q) => Q === B ? Q : (d((L) => {
1600
+ const _ = L.map(($) => {
1601
1601
  var K;
1602
- if (T === "")
1602
+ if (B === "")
1603
1603
  return { ...$, filtered: !1 };
1604
- const z = $.value.toLowerCase(), H = (K = $.children) == null ? void 0 : K.toString().toLowerCase(), f = !z.includes(T) && !(H != null && H.toString().includes(T));
1604
+ const z = $.value.toLowerCase(), H = (K = $.children) == null ? void 0 : K.toString().toLowerCase(), f = !z.includes(B) && !(H != null && H.toString().includes(B));
1605
1605
  return {
1606
1606
  ...$,
1607
1607
  filtered: f
1608
1608
  };
1609
1609
  });
1610
1610
  if (l) {
1611
- const $ = ee.filter((z) => !z.filtered);
1612
- l(T, $);
1611
+ const $ = _.filter((z) => !z.filtered);
1612
+ l(B, $);
1613
1613
  }
1614
- return ee;
1615
- }), T));
1614
+ return _;
1615
+ }), B));
1616
1616
  }, E = be(() => {
1617
1617
  t.current && t.current.resetFilter();
1618
1618
  }, [t]);
1619
- _(() => {
1619
+ ee(() => {
1620
1620
  E();
1621
1621
  }, [o, E]);
1622
- const N = (T) => {
1623
- T && (T.focus(), T.scrollIntoView({ behavior: "instant", block: "center", inline: "start" }));
1622
+ const N = (B) => {
1623
+ B && (B.focus(), B.scrollIntoView({ behavior: "instant", block: "center", inline: "start" }));
1624
1624
  }, Z = be(() => {
1625
- var T, Q, L;
1625
+ var B, Q, L;
1626
1626
  if (t.current) {
1627
- const ee = Array.from(((T = t.current) == null ? void 0 : T.querySelectorAll(".input-filter")) ?? []), $ = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), z = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), H = [...ee, ...$, ...z], f = Array.from(H).findIndex((K) => K.tabIndex === 0);
1627
+ const _ = Array.from(((B = t.current) == null ? void 0 : B.querySelectorAll(".input-filter")) ?? []), $ = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), z = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), H = [..._, ...$, ...z], f = Array.from(H).findIndex((K) => K.tabIndex === 0);
1628
1628
  f >= 0 && N(H[f]);
1629
1629
  }
1630
1630
  }, [t]), R = be(() => {
1631
- var T, Q, L;
1631
+ var B, Q, L;
1632
1632
  if (t.current) {
1633
- const ee = Array.from(((T = t.current) == null ? void 0 : T.querySelectorAll(".input-filter")) ?? []), $ = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), z = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), H = [...ee, ...$, ...z];
1633
+ const _ = Array.from(((B = t.current) == null ? void 0 : B.querySelectorAll(".input-filter")) ?? []), $ = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), z = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), H = [..._, ...$, ...z];
1634
1634
  if (H.length > 0) {
1635
1635
  const f = Array.from(H).findLastIndex((K) => K.tabIndex === 0);
1636
1636
  f >= 0 && N(H[f]);
1637
1637
  }
1638
1638
  }
1639
1639
  }, [t]), Y = be(() => {
1640
- var T, Q, L;
1640
+ var B, Q, L;
1641
1641
  if (t.current) {
1642
- const ee = document.activeElement, $ = Array.from(((T = t.current) == null ? void 0 : T.querySelectorAll(".input-filter")) ?? []), z = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), H = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), f = [...$, ...z, ...H];
1642
+ const _ = document.activeElement, $ = Array.from(((B = t.current) == null ? void 0 : B.querySelectorAll(".input-filter")) ?? []), z = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), H = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), f = [...$, ...z, ...H];
1643
1643
  if (f.length > 0) {
1644
- const K = Array.from(f).findIndex((q) => q.isEqualNode(ee)), P = Array.from(f).findIndex((q, Ae) => Ae > K && q.tabIndex === 0);
1644
+ const K = Array.from(f).findIndex((q) => q.isEqualNode(_)), P = Array.from(f).findIndex((q, Ae) => Ae > K && q.tabIndex === 0);
1645
1645
  P >= 0 && N(f[P]);
1646
1646
  }
1647
1647
  }
1648
1648
  }, [t, Z]), j = be(() => {
1649
- var T, Q, L;
1649
+ var B, Q, L;
1650
1650
  if (t.current) {
1651
- const ee = document.activeElement, $ = Array.from(((T = t.current) == null ? void 0 : T.querySelectorAll(".input-filter")) ?? []), z = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), H = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), f = [...$, ...z, ...H];
1651
+ const _ = document.activeElement, $ = Array.from(((B = t.current) == null ? void 0 : B.querySelectorAll(".input-filter")) ?? []), z = Array.from(((Q = t.current) == null ? void 0 : Q.querySelectorAll(".agora-dropdown-all-option-item")) ?? []), H = Array.from(((L = t.current) == null ? void 0 : L.querySelectorAll('[role="option"]:not(.filtered)')) ?? []), f = [...$, ...z, ...H];
1652
1652
  if (f.length > 0) {
1653
- const K = Array.from(f).findIndex((q) => q.isEqualNode(ee)), P = Array.from(f).findLastIndex((q, Ae) => Ae < K && q.tabIndex === 0);
1653
+ const K = Array.from(f).findIndex((q) => q.isEqualNode(_)), P = Array.from(f).findLastIndex((q, Ae) => Ae < K && q.tabIndex === 0);
1654
1654
  P >= 0 && N(f[P]);
1655
1655
  }
1656
1656
  }
@@ -1658,8 +1658,8 @@ const De = (t, i = 10) => {
1658
1658
  G(!0);
1659
1659
  }, []), h = be(() => {
1660
1660
  G(!1);
1661
- }, []), U = C(!0);
1662
- _(() => {
1661
+ }, []), U = X(!0);
1662
+ ee(() => {
1663
1663
  if (U.current) {
1664
1664
  U.current = !1;
1665
1665
  return;
@@ -1667,8 +1667,8 @@ const De = (t, i = 10) => {
1667
1667
  p ? c == null || c() : r == null || r();
1668
1668
  }, [p]);
1669
1669
  const w = be(
1670
- (T) => {
1671
- const Q = T.filter((L) => L.selected).map((L) => ({
1670
+ (B) => {
1671
+ const Q = B.filter((L) => L.selected).map((L) => ({
1672
1672
  selected: L.selected,
1673
1673
  value: L.value,
1674
1674
  className: L.className,
@@ -1682,16 +1682,16 @@ const De = (t, i = 10) => {
1682
1682
  },
1683
1683
  [a, h, i]
1684
1684
  ), v = oe(() => i === "checkbox", [i]), k = be(
1685
- (T) => {
1686
- T.disabled || T.filtered || d((Q) => {
1687
- const L = Q.map((ee) => {
1688
- const $ = T.name === ee.name && T.value === ee.value;
1685
+ (B) => {
1686
+ B.disabled || B.filtered || d((Q) => {
1687
+ const L = Q.map((_) => {
1688
+ const $ = B.name === _.name && B.value === _.value;
1689
1689
  return v ? {
1690
- ...ee,
1691
- selected: $ ? !ee.selected : ee.selected
1690
+ ..._,
1691
+ selected: $ ? !_.selected : _.selected
1692
1692
  } : {
1693
- ...ee,
1694
- selected: $ ? !ee.selected : !1
1693
+ ..._,
1694
+ selected: $ ? !_.selected : !1
1695
1695
  };
1696
1696
  });
1697
1697
  return w(L), L;
@@ -1699,37 +1699,37 @@ const De = (t, i = 10) => {
1699
1699
  },
1700
1700
  [d, v, w]
1701
1701
  ), y = be(
1702
- (T) => {
1703
- const Q = g.filter((ee) => ee.name === T && !ee.filtered && !ee.disabled), L = Q.some((ee) => !ee.selected);
1702
+ (B) => {
1703
+ const Q = g.filter((_) => _.name === B && !_.filtered && !_.disabled), L = Q.some((_) => !_.selected);
1704
1704
  return Q.length > 0 && !L;
1705
1705
  },
1706
1706
  [g]
1707
1707
  ), W = be(
1708
- (T) => {
1708
+ (B) => {
1709
1709
  d((Q) => {
1710
- const L = y(T), ee = Q.map(($) => {
1711
- const z = T === $.name;
1710
+ const L = y(B), _ = Q.map(($) => {
1711
+ const z = B === $.name;
1712
1712
  return {
1713
1713
  ...$,
1714
1714
  selected: !$.filtered && !$.disabled && z ? !L : $.selected
1715
1715
  };
1716
1716
  });
1717
- return w(ee), ee;
1717
+ return w(_), _;
1718
1718
  });
1719
1719
  },
1720
1720
  [d, y, w]
1721
1721
  ), x = be(
1722
- (T) => g.filter((L) => L.name === T && !L.filtered && !L.disabled).length > 0,
1722
+ (B) => g.filter((L) => L.name === B && !L.filtered && !L.disabled).length > 0,
1723
1723
  [g]
1724
1724
  ), S = oe(() => {
1725
- const T = g.filter((L) => !L.filtered && !L.disabled), Q = T.some((L) => !L.selected);
1726
- return T.length > 0 && !Q;
1727
- }, [g]), X = oe(() => {
1728
- const T = g.filter((L) => !L.filtered), Q = T.some((L) => !L.disabled);
1729
- return T.length > 0 && !Q;
1725
+ const B = g.filter((L) => !L.filtered && !L.disabled), Q = B.some((L) => !L.selected);
1726
+ return B.length > 0 && !Q;
1727
+ }, [g]), C = oe(() => {
1728
+ const B = g.filter((L) => !L.filtered), Q = B.some((L) => !L.disabled);
1729
+ return B.length > 0 && !Q;
1730
1730
  }, [g]), F = be(() => {
1731
- d((T) => {
1732
- const Q = T.map((L) => ({
1731
+ d((B) => {
1732
+ const Q = B.map((L) => ({
1733
1733
  ...L,
1734
1734
  selected: !L.filtered && !L.disabled ? !S : L.selected
1735
1735
  }));
@@ -1751,7 +1751,7 @@ const De = (t, i = 10) => {
1751
1751
  hasSectionOptionsToInteract: x,
1752
1752
  selectSectionOptions: W,
1753
1753
  isAllSectionOptionsSelected: y,
1754
- isAllDisabled: X,
1754
+ isAllDisabled: C,
1755
1755
  isAllSelected: S,
1756
1756
  selectAll: F,
1757
1757
  applyFilter: u,
@@ -1759,7 +1759,7 @@ const De = (t, i = 10) => {
1759
1759
  resetFilter: E
1760
1760
  };
1761
1761
  }, rn = ({ type: t = "text", onChange: i, onSearchChange: n, onShow: a, onHide: l, children: c, hideSectionNames: r = !1, ...o }, A) => {
1762
- const m = C(null), g = cn(
1762
+ const m = X(null), g = cn(
1763
1763
  m,
1764
1764
  t,
1765
1765
  s(r),
@@ -1768,14 +1768,14 @@ const De = (t, i = 10) => {
1768
1768
  a,
1769
1769
  l,
1770
1770
  c
1771
- ), d = C(!1);
1772
- return _(() => {
1771
+ ), d = X(!1);
1772
+ return ee(() => {
1773
1773
  if (!d.current) {
1774
1774
  d.current = !0;
1775
1775
  const I = [];
1776
1776
  O.forEach(c, (b) => {
1777
- B(b) && O.forEach(b.props.children, (u) => {
1778
- B(u) && u.props.selected && I.push(u.props);
1777
+ T(b) && O.forEach(b.props.children, (u) => {
1778
+ T(u) && u.props.selected && I.push(u.props);
1779
1779
  });
1780
1780
  }), De(() => i == null ? void 0 : i(I));
1781
1781
  }
@@ -1797,7 +1797,7 @@ const De = (t, i = 10) => {
1797
1797
  visibleCountAriaLabel: n,
1798
1798
  children: a
1799
1799
  }) => {
1800
- const l = le(), c = i >= 0 ? `+${t - i}` : `+${t}`, r = O.map(a, (R, Y) => Y >= i && B(R) ? ge(R) : null), o = C(null), A = C(null), [m, g] = V(!1), d = () => {
1800
+ const l = le(), c = i >= 0 ? `+${t - i}` : `+${t}`, r = O.map(a, (R, Y) => Y >= i && T(R) ? ge(R) : null), o = X(null), A = X(null), [m, g] = V(!1), d = () => {
1801
1801
  var R;
1802
1802
  g(!1), (R = A.current) == null || R.focus();
1803
1803
  }, I = () => {
@@ -1808,14 +1808,14 @@ const De = (t, i = 10) => {
1808
1808
  }, u = () => {
1809
1809
  var R, Y, j;
1810
1810
  (R = o.current) != null && R.visibility ? (Y = o.current) == null || Y.hide() : (j = o.current) == null || j.show();
1811
- }, E = C(null), N = () => {
1811
+ }, E = X(null), N = () => {
1812
1812
  var R;
1813
1813
  (R = o.current) == null || R.show();
1814
1814
  }, Z = () => {
1815
1815
  var R;
1816
1816
  (R = o.current) == null || R.hide();
1817
1817
  };
1818
- return _(() => (E.current && (E.current.addEventListener("mouseenter", N), E.current.addEventListener("mouseleave", Z)), () => {
1818
+ return ee(() => (E.current && (E.current.addEventListener("mouseenter", N), E.current.addEventListener("mouseleave", Z)), () => {
1819
1819
  E.current && (E.current.removeEventListener("mouseenter", N), E.current.removeEventListener("mouseleave", Z));
1820
1820
  }), []), /* @__PURE__ */ e.createElement("div", { ref: E, className: "avatar-visible-count-wrapper" }, /* @__PURE__ */ e.createElement(
1821
1821
  ae,
@@ -1869,7 +1869,7 @@ const De = (t, i = 10) => {
1869
1869
  }), o = O.toArray(i).length, A = n ?? o, m = (g) => /* @__PURE__ */ e.createElement("li", null, ge(g, {
1870
1870
  darkMode: a
1871
1871
  }));
1872
- return /* @__PURE__ */ e.createElement("ul", { ...c, className: r }, O.map(i, (g, d) => d < A && B(g) ? m(g) : null), o > A && /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
1872
+ return /* @__PURE__ */ e.createElement("ul", { ...c, className: r }, O.map(i, (g, d) => d < A && T(g) ? m(g) : null), o > A && /* @__PURE__ */ e.createElement("li", null, /* @__PURE__ */ e.createElement(
1873
1873
  on,
1874
1874
  {
1875
1875
  visibleCount: A,
@@ -1931,7 +1931,7 @@ const De = (t, i = 10) => {
1931
1931
  })));
1932
1932
  }, dn = ({ sectionTitle: t, items: i, darkMode: n, ...a }) => {
1933
1933
  var E;
1934
- const l = le(), [c, r] = V(!1), o = C(null), A = C(null), m = J(a.className, "agora-breadcrumb-mobile"), g = a["aria-label"] ?? "Breadcrumb", d = (N) => {
1934
+ const l = le(), [c, r] = V(!1), o = X(null), A = X(null), m = J(a.className, "agora-breadcrumb-mobile"), g = a["aria-label"] ?? "Breadcrumb", d = (N) => {
1935
1935
  A != null && A.current && N.target && !A.current.contains(N.target) && r(!1);
1936
1936
  }, I = (N) => {
1937
1937
  var j, p, G;
@@ -1941,7 +1941,7 @@ const De = (t, i = 10) => {
1941
1941
  var Z;
1942
1942
  (N.key === "Escape" || N.key === "Esc") && (r(!1), (Z = o.current) == null || Z.focus()), N.key === "Tab" && I(N), N.key === "Enter" && r(!1);
1943
1943
  };
1944
- _(() => {
1944
+ ee(() => {
1945
1945
  var N, Z;
1946
1946
  if (c) {
1947
1947
  document.addEventListener("mousedown", d);
@@ -1996,14 +1996,14 @@ const De = (t, i = 10) => {
1996
1996
  const [d, I] = V([]), b = oe(() => {
1997
1997
  const N = [];
1998
1998
  return Array.isArray(l) ? l.forEach((Z, R) => {
1999
- B(Z) && (Z.props.selected && I((Y) => {
1999
+ T(Z) && (Z.props.selected && I((Y) => {
2000
2000
  if (i) {
2001
2001
  const j = [...Y, R];
2002
2002
  return [...new Set(j)];
2003
2003
  }
2004
2004
  return [R];
2005
2005
  }), N.push(Z));
2006
- }) : B(l) && (I([0]), N.push(l)), N;
2006
+ }) : T(l) && (I([0]), N.push(l)), N;
2007
2007
  }, [l, I, i]), u = (N) => {
2008
2008
  const Z = [...d];
2009
2009
  if (s(i))
@@ -2077,7 +2077,7 @@ const De = (t, i = 10) => {
2077
2077
  }, r = () => {
2078
2078
  (i == null ? void 0 : i.current).classList.remove("hover");
2079
2079
  };
2080
- _(() => {
2080
+ ee(() => {
2081
2081
  const o = i == null ? void 0 : i.current, A = t == null ? void 0 : t.current;
2082
2082
  return A && o && (n ? (A.classList.add("blocked-link"), A.addEventListener("click", l, !0), A.addEventListener("mouseenter", c), A.addEventListener("mouseover", c), A.addEventListener("mouseleave", r)) : (A.classList.remove("blocked-link"), A.removeEventListener("click", l, !0), A.removeEventListener("mouseenter", c), A.removeEventListener("mouseleave", r))), () => {
2083
2083
  A && (A.classList.remove("blocked-link"), A.removeEventListener("click", l, !0), A.removeEventListener("mouseenter", c), A.addEventListener("mouseover", c), A.removeEventListener("mouseleave", r));
@@ -2097,7 +2097,7 @@ const De = (t, i = 10) => {
2097
2097
  className: g,
2098
2098
  ...d
2099
2099
  }) => {
2100
- const I = C(null), b = C(null), u = !o && !A && !l && !t && !!n && !n.hidden, E = {
2100
+ const I = X(null), b = X(null), u = !o && !A && !l && !t && !!n && !n.hidden, E = {
2101
2101
  title: !!o,
2102
2102
  subtitle: !o && !!A,
2103
2103
  children: !o && !A && !!l,
@@ -2142,7 +2142,7 @@ const De = (t, i = 10) => {
2142
2142
  className: c,
2143
2143
  ...r
2144
2144
  }) => {
2145
- const o = C(null), A = C(null), m = J("agora-card-collection", c), g = {
2145
+ const o = X(null), A = X(null), m = J("agora-card-collection", c), g = {
2146
2146
  title: !!n,
2147
2147
  subtitle: !n && !!i,
2148
2148
  anchor: !n && !i && !!a && !a.hidden
@@ -2251,7 +2251,7 @@ const De = (t, i = 10) => {
2251
2251
  }, I = [];
2252
2252
  return O.forEach(a, (b, u) => {
2253
2253
  const E = `accordion-group-${r}-accordion-${u}`;
2254
- if (!B(b))
2254
+ if (!T(b))
2255
2255
  return;
2256
2256
  const N = ge(b, {
2257
2257
  ...b.props,
@@ -2276,7 +2276,7 @@ const De = (t, i = 10) => {
2276
2276
  children: c,
2277
2277
  ...r
2278
2278
  }) => {
2279
- const o = C(null), A = C(null), m = J("agora-card-frame", t), g = {
2279
+ const o = X(null), A = X(null), m = J("agora-card-frame", t), g = {
2280
2280
  anchor: !1,
2281
2281
  label: !1,
2282
2282
  children: !1
@@ -2438,7 +2438,7 @@ const De = (t, i = 10) => {
2438
2438
  blockedLink: d,
2439
2439
  ...I
2440
2440
  }) => {
2441
- const b = le(), u = C(null), E = C(null), N = J(
2441
+ const b = le(), u = X(null), E = X(null), N = J(
2442
2442
  "agora-card-links",
2443
2443
  {
2444
2444
  "dark-mode": s(g),
@@ -2502,7 +2502,7 @@ const De = (t, i = 10) => {
2502
2502
  className: o,
2503
2503
  ...A
2504
2504
  }) => {
2505
- const m = C(null), g = C(null), d = {
2505
+ const m = X(null), g = X(null), d = {
2506
2506
  anchor: !1,
2507
2507
  title: !1,
2508
2508
  description: !1
@@ -2530,7 +2530,7 @@ const De = (t, i = 10) => {
2530
2530
  className: m,
2531
2531
  ...g
2532
2532
  }) => {
2533
- const d = oe(() => i === "default" || i === "white" ? "primary" : i, [i]), I = C(null), b = C(null), u = {
2533
+ const d = oe(() => i === "default" || i === "white" ? "primary" : i, [i]), I = X(null), b = X(null), u = {
2534
2534
  title: !!n,
2535
2535
  description: !n && !!a,
2536
2536
  pill: !n && !a && !!l,
@@ -2576,7 +2576,7 @@ const De = (t, i = 10) => {
2576
2576
  children: m,
2577
2577
  ...g
2578
2578
  }, d) => {
2579
- const I = C(null);
2579
+ const I = X(null);
2580
2580
  Se(d, () => I.current);
2581
2581
  const b = le(), u = (s(c) || s(n)) && o, E = { ...g };
2582
2582
  E.id = E.id ?? b;
@@ -2601,7 +2601,7 @@ const De = (t, i = 10) => {
2601
2601
  },
2602
2602
  t
2603
2603
  );
2604
- return _(() => {
2604
+ return ee(() => {
2605
2605
  const D = E.checked ?? E.defaultChecked;
2606
2606
  D !== void 0 && Z(D);
2607
2607
  }, [E.checked, E.defaultChecked]), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
@@ -2645,7 +2645,7 @@ const De = (t, i = 10) => {
2645
2645
  }) => {
2646
2646
  const m = le(), g = (s(a) || s(n)) && l, { hidden: d, ...I } = A, b = (N) => {
2647
2647
  r == null || r(N);
2648
- }, u = J("agora-checkbox-group", t), E = O.map(o, (N) => B(N) ? ge(N, {
2648
+ }, u = J("agora-checkbox-group", t), E = O.map(o, (N) => T(N) ? ge(N, {
2649
2649
  onChange: b,
2650
2650
  hasError: s(n),
2651
2651
  hasFeedback: s(a),
@@ -2680,7 +2680,7 @@ const De = (t, i = 10) => {
2680
2680
  I && (b(!1), De(() => {
2681
2681
  m == null || m();
2682
2682
  }));
2683
- }, [m, I]), N = C(null);
2683
+ }, [m, I]), N = X(null);
2684
2684
  je(
2685
2685
  d,
2686
2686
  N,
@@ -2711,9 +2711,9 @@ const De = (t, i = 10) => {
2711
2711
  }, R = (j) => {
2712
2712
  j.target.classList.contains("agora-dialog-backdrop") && (E(), r == null || r());
2713
2713
  };
2714
- _(() => (document == null || document.addEventListener("keydown", Z), !s(i) && s(n) && (document == null || document.addEventListener("click", R)), () => {
2714
+ ee(() => (document == null || document.addEventListener("keydown", Z), !s(i) && s(n) && (document == null || document.addEventListener("click", R)), () => {
2715
2715
  document == null || document.removeEventListener("keydown", Z), !s(i) && s(n) && (document == null || document.removeEventListener("click", R));
2716
- }), [a, i, n, R, Z]), _(() => {
2716
+ }), [a, i, n, R, Z]), ee(() => {
2717
2717
  if (I && N.current) {
2718
2718
  document.body.classList.add("overflow-hidden");
2719
2719
  const j = Array.from(
@@ -2752,7 +2752,7 @@ const De = (t, i = 10) => {
2752
2752
  "aria-labelledby": g,
2753
2753
  ...d
2754
2754
  }, I) => {
2755
- const [b, u] = V(!1), E = C(null), N = J(
2755
+ const [b, u] = V(!1), E = X(null), N = J(
2756
2756
  "agora-drawer",
2757
2757
  { "agora-drawer-horizontal": a === "left" || a === "right" },
2758
2758
  { "agora-drawer-vertical": a === "top" || a === "bottom" },
@@ -2813,7 +2813,7 @@ const De = (t, i = 10) => {
2813
2813
  const [d, I] = V("neutral"), b = (G) => {
2814
2814
  I((D) => D === G ? "neutral" : G);
2815
2815
  };
2816
- _(() => {
2816
+ ee(() => {
2817
2817
  De(() => r == null ? void 0 : r(d));
2818
2818
  }, [d]);
2819
2819
  const u = (G, D) => {
@@ -2828,7 +2828,7 @@ const De = (t, i = 10) => {
2828
2828
  "aria-pressed": d === D ? "true" : "false"
2829
2829
  }
2830
2830
  );
2831
- }, E = J("rating-buttons", s(a) ? "dark" : "", c), N = J("rating-buttons-wrapper", n ? "icon-only" : "", c), Z = C(null);
2831
+ }, E = J("rating-buttons", s(a) ? "dark" : "", c), N = J("rating-buttons-wrapper", n ? "icon-only" : "", c), Z = X(null);
2832
2832
  je(
2833
2833
  A,
2834
2834
  Z,
@@ -2876,7 +2876,7 @@ const De = (t, i = 10) => {
2876
2876
  }, b) => {
2877
2877
  const u = le(), E = { ...I };
2878
2878
  E.id = E.id ?? u;
2879
- const N = O.toArray(d).filter((W) => B(W) && W.type === ne), Z = C(null), [R, Y] = V(c ?? 0), [j, p] = V(0), G = (W) => {
2879
+ const N = O.toArray(d).filter((W) => T(W) && W.type === ne), Z = X(null), [R, Y] = V(c ?? 0), [j, p] = V(0), G = (W) => {
2880
2880
  s(a) && (W.preventDefault(), W.stopPropagation());
2881
2881
  }, D = (W) => () => {
2882
2882
  s(a) || p(W);
@@ -2893,14 +2893,14 @@ const De = (t, i = 10) => {
2893
2893
  const x = parseInt(W.target.getAttribute("data-icon-value") ?? "1", 10);
2894
2894
  Y(x);
2895
2895
  };
2896
- _(() => {
2896
+ ee(() => {
2897
2897
  var W;
2898
2898
  if ((W = document.activeElement) != null && W.classList.contains("rating-icon") && Z.current) {
2899
2899
  const x = Z.current.querySelector(`.rating-icon[data-icon-value = '${R}']`);
2900
2900
  x == null || x.focus();
2901
2901
  }
2902
2902
  De(() => r == null ? void 0 : r(R));
2903
- }, [R]), _(() => {
2903
+ }, [R]), ee(() => {
2904
2904
  c && Y(c);
2905
2905
  }, [c]);
2906
2906
  const k = J(
@@ -2913,7 +2913,7 @@ const De = (t, i = 10) => {
2913
2913
  ["feedback-" + m]: s(A) && m
2914
2914
  },
2915
2915
  l
2916
- ), y = C(null);
2916
+ ), y = X(null);
2917
2917
  return je(
2918
2918
  b,
2919
2919
  y,
@@ -2931,9 +2931,9 @@ const De = (t, i = 10) => {
2931
2931
  ...s(i) ? { "aria-label": t == null ? void 0 : t.toString() } : { "aria-labelledby": `label-${u}` }
2932
2932
  },
2933
2933
  /* @__PURE__ */ e.createElement("div", { className: "flex flex-col gap-8" }, !s(i) && /* @__PURE__ */ e.createElement("div", { id: `label-${u}`, className: "rating-label" }, t), /* @__PURE__ */ e.createElement("div", { ref: Z, className: "rating-wrapper" }, N.map((W, x) => {
2934
- var ee, $;
2935
- const S = x + 1, X = S <= j, F = R !== null && S <= R, T = ge(W, {
2936
- name: X || F ? (ee = W.props.name) == null ? void 0 : ee.replace("line", "solid") : ($ = W.props.name) == null ? void 0 : $.replace("solid", "line")
2934
+ var _, $;
2935
+ const S = x + 1, C = S <= j, F = R !== null && S <= R, B = ge(W, {
2936
+ name: C || F ? (_ = W.props.name) == null ? void 0 : _.replace("line", "solid") : ($ = W.props.name) == null ? void 0 : $.replace("solid", "line")
2937
2937
  }), Q = `${u}-icon-${x}`;
2938
2938
  let L = -1;
2939
2939
  return s(a) ? L = -1 : R <= 0 ? L = x === 0 ? 0 : -1 : L = R === S ? 0 : -1, /* @__PURE__ */ e.createElement(
@@ -2954,7 +2954,7 @@ const De = (t, i = 10) => {
2954
2954
  "data-icon-value": S,
2955
2955
  "aria-describedby": (s(A) || s(o)) && g ? `rating-icons-${E.id}-feedback` : void 0
2956
2956
  },
2957
- T
2957
+ B
2958
2958
  );
2959
2959
  }))),
2960
2960
  (s(A) || s(o)) && g && /* @__PURE__ */ e.createElement(
@@ -3152,7 +3152,7 @@ const De = (t, i = 10) => {
3152
3152
  "xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-8 xs:col-span-4 md:col-span-8 xl:col-span-8 xs:pb-32 md:pb-64 xl:pb-64": t && !n && i,
3153
3153
  "xs:grid-cols-4 md:grid-cols-8 xl:grid-cols-8 xs:col-span-4 md:col-span-8 xl:col-span-8 xs:pb-32 md:pb-32 xl:pb-64 ": !t && !n && i
3154
3154
  });
3155
- return _(() => {
3155
+ return ee(() => {
3156
3156
  const r = () => {
3157
3157
  const A = document.documentElement.clientWidth;
3158
3158
  document.documentElement.style.setProperty("--footer-aux-vw", `${A}px`);
@@ -3311,79 +3311,79 @@ const De = (t, i = 10) => {
3311
3311
  return A ? /* @__PURE__ */ e.createElement("span", { key: `${c}-${d}`, className: g, "aria-disabled": "true" }, c) : /* @__PURE__ */ e.createElement("a", { key: `${c}-${d}`, ...o, className: g, href: d }, c);
3312
3312
  })));
3313
3313
  }, _r = re(Jn), Pt = ze({}), Ie = () => Te(Pt), Kt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Rt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Ze = () => /* @__PURE__ */ e.createElement(e.Fragment, null), yn = (t) => {
3314
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3314
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3315
3315
  let n = null;
3316
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === Rt));
3316
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === Rt));
3317
3317
  let a = [];
3318
- return n && B(n) && (a = O.toArray(n.props.children).map((l) => {
3319
- if (B(l) && l.type === Kt)
3318
+ return n && T(n) && (a = O.toArray(n.props.children).map((l) => {
3319
+ if (T(l) && l.type === Kt)
3320
3320
  return l;
3321
3321
  })), a.length > 1;
3322
3322
  }, Sn = (t) => {
3323
- const i = O.toArray(t).find((a) => B(a) && a.type === Ze);
3323
+ const i = O.toArray(t).find((a) => T(a) && a.type === Ze);
3324
3324
  let n = null;
3325
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === Rt)), (n == null ? void 0 : n.props["aria-label"]) ?? "";
3325
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === Rt)), (n == null ? void 0 : n.props["aria-label"]) ?? "";
3326
3326
  }, kn = (t) => {
3327
- const i = O.toArray(t).find((a) => B(a) && a.type === Ze);
3327
+ const i = O.toArray(t).find((a) => T(a) && a.type === Ze);
3328
3328
  let n = null;
3329
- if (i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === Rt)), n)
3329
+ if (i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === Rt)), n)
3330
3330
  return n.props.onChange;
3331
3331
  }, qt = (t) => {
3332
- const i = O.toArray(t).find((c) => B(c) && c.type === Ze);
3332
+ const i = O.toArray(t).find((c) => T(c) && c.type === Ze);
3333
3333
  let n = null;
3334
- i && B(i) && (n = O.toArray(i.props.children).find((c) => B(c) && c.type === Rt));
3334
+ i && T(i) && (n = O.toArray(i.props.children).find((c) => T(c) && c.type === Rt));
3335
3335
  let a = [];
3336
- n && B(n) && (a = O.toArray(n.props.children).map((c) => {
3337
- if (B(c) && c.type === Kt)
3336
+ n && T(n) && (a = O.toArray(n.props.children).map((c) => {
3337
+ if (T(c) && c.type === Kt)
3338
3338
  return c;
3339
3339
  }));
3340
- let l = a.map((c) => B(c) ? c == null ? void 0 : c.props : null).filter((c) => !!c);
3340
+ let l = a.map((c) => T(c) ? c == null ? void 0 : c.props : null).filter((c) => !!c);
3341
3341
  return l.length > 0 && !l.some((c) => c.active) && (l = l.map((c, r) => ({
3342
3342
  ...c,
3343
3343
  active: r == 0
3344
3344
  }))), l;
3345
3345
  }, Wn = (t) => qt(t).filter((i) => i.active).at(0), Bn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), zn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Dt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Tn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), xn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Fn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Ln = (t) => {
3346
- const i = O.toArray(t).find((a) => B(a) && a.type === Ze);
3346
+ const i = O.toArray(t).find((a) => T(a) && a.type === Ze);
3347
3347
  let n = null;
3348
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === Dt)), n ? n.props : null;
3348
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === Dt)), n ? n.props : null;
3349
3349
  }, On = (t) => {
3350
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3350
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3351
3351
  let n = null;
3352
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === Dt));
3352
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === Dt));
3353
3353
  let a = null;
3354
- return n && B(n) && (a = O.toArray(n.props.children).find((l) => B(l) && l.type === zn), a) ? a.props : null;
3354
+ return n && T(n) && (a = O.toArray(n.props.children).find((l) => T(l) && l.type === zn), a) ? a.props : null;
3355
3355
  }, Qn = (t) => {
3356
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3356
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3357
3357
  let n = null;
3358
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === Dt));
3358
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === Dt));
3359
3359
  let a = null;
3360
- return n && B(n) && (a = O.toArray(n.props.children).find((l) => B(l) && l.type === Tn)), a ? O.toArray(a.props.children).map((l) => {
3361
- if (B(l) && l.type === xn)
3360
+ return n && T(n) && (a = O.toArray(n.props.children).find((l) => T(l) && l.type === Tn)), a ? O.toArray(a.props.children).map((l) => {
3361
+ if (T(l) && l.type === xn)
3362
3362
  return l.props;
3363
3363
  }).filter((l) => !!l) : [];
3364
3364
  }, Vn = (t) => {
3365
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3365
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3366
3366
  let n = null;
3367
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === Dt));
3367
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === Dt));
3368
3368
  let a = null;
3369
- return n && B(n) && (a = O.toArray(n.props.children).find((l) => B(l) && l.type === Fn)), a ? O.toArray(a.props.children).map((l) => {
3370
- if (B(l) && l.type === Bn)
3369
+ return n && T(n) && (a = O.toArray(n.props.children).find((l) => T(l) && l.type === Fn)), a ? O.toArray(a.props.children).map((l) => {
3370
+ if (T(l) && l.type === Bn)
3371
3371
  return l.props;
3372
3372
  }).filter((l) => !!l) : [];
3373
3373
  }, $t = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Xn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Cn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), fn = (t) => {
3374
- const i = O.toArray(t).find((a) => B(a) && a.type === $t);
3374
+ const i = O.toArray(t).find((a) => T(a) && a.type === $t);
3375
3375
  let n = null;
3376
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === Xn)), n ? n.props.children : "";
3376
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === Xn)), n ? n.props.children : "";
3377
3377
  }, Hn = (t) => {
3378
- const i = O.toArray(t).find((a) => B(a) && a.type === $t);
3378
+ const i = O.toArray(t).find((a) => T(a) && a.type === $t);
3379
3379
  let n = null;
3380
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === Cn)), n ? n.props.children : "";
3380
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === Cn)), n ? n.props.children : "";
3381
3381
  }, Pn = (t) => {
3382
- const i = O.toArray(t).find((n) => B(n) && n.type === Ze);
3382
+ const i = O.toArray(t).find((n) => T(n) && n.type === Ze);
3383
3383
  return (i == null ? void 0 : i.props["aria-label"]) ?? "";
3384
3384
  }, _t = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Kn = () => /* @__PURE__ */ e.createElement(e.Fragment, null), dt = (t) => {
3385
- const i = O.toArray(t).find((n) => B(n) && n.type === Ze);
3386
- return i && B(i) ? O.toArray(i.props.children).find((n) => B(n) && n.type === Kn) : null;
3385
+ const i = O.toArray(t).find((n) => T(n) && n.type === Ze);
3386
+ return i && T(i) ? O.toArray(i.props.children).find((n) => T(n) && n.type === Kn) : null;
3387
3387
  }, qn = (t) => !!dt(t), $n = (t) => {
3388
3388
  const i = dt(t);
3389
3389
  return (i == null ? void 0 : i.props["aria-label"]) ?? "";
@@ -3394,49 +3394,49 @@ const De = (t, i = 10) => {
3394
3394
  }, ea = (t) => {
3395
3395
  const i = dt(t);
3396
3396
  let n = [];
3397
- return i && B(i) && (n = O.toArray(i.props.children).map((a) => {
3398
- if (B(a) && a.type === _t)
3397
+ return i && T(i) && (n = O.toArray(i.props.children).map((a) => {
3398
+ if (T(a) && a.type === _t)
3399
3399
  return a;
3400
3400
  })), n.map((a) => {
3401
- if (B(a))
3401
+ if (T(a))
3402
3402
  return a == null ? void 0 : a.props;
3403
3403
  }).filter((a) => !!a);
3404
3404
  }, ta = (t) => {
3405
3405
  const i = dt(t);
3406
3406
  let n = [];
3407
- return i && B(i) && (n = O.toArray(i.props.children).map((a) => {
3408
- if (B(a) && a.type === _t)
3407
+ return i && T(i) && (n = O.toArray(i.props.children).map((a) => {
3408
+ if (T(a) && a.type === _t)
3409
3409
  return a;
3410
- })), n.length > 0 ? n.filter((a) => B(a) && a.props.checked).map((a) => a.props) : [];
3410
+ })), n.length > 0 ? n.filter((a) => T(a) && a.props.checked).map((a) => a.props) : [];
3411
3411
  }, Qe = () => /* @__PURE__ */ e.createElement(e.Fragment, null), $e = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Nt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ia = (t) => {
3412
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3412
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3413
3413
  return i == null ? void 0 : i.props;
3414
3414
  }, na = (t) => {
3415
3415
  const i = ia(t);
3416
3416
  return (i == null ? void 0 : i.id) ?? "";
3417
3417
  }, aa = (t) => {
3418
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3418
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3419
3419
  return O.toArray((i == null ? void 0 : i.props.children) ?? []).length;
3420
3420
  }, la = (t) => {
3421
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3422
- return O.toArray(i.props.children).map((n) => B(n) && n.type === Nt || B(n) && n.type === $e ? n : null).filter((n) => !!n);
3421
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3422
+ return O.toArray(i.props.children).map((n) => T(n) && n.type === Nt || T(n) && n.type === $e ? n : null).filter((n) => !!n);
3423
3423
  }, ca = (t) => {
3424
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3424
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3425
3425
  return (i == null ? void 0 : i.props.openMenuLabel) ?? (i == null ? void 0 : i.props.modalMenuLabel) ?? "";
3426
3426
  }, ra = (t) => {
3427
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3427
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3428
3428
  return (i == null ? void 0 : i.props.modalAriaLabel) ?? "";
3429
3429
  }, oa = (t) => {
3430
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3430
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3431
3431
  return (i == null ? void 0 : i.props.modalCloseLabel) ?? "";
3432
3432
  }, Aa = (t) => {
3433
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3433
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3434
3434
  return (i == null ? void 0 : i.props.responsiveMenuLabel) ?? "";
3435
3435
  }, sa = (t) => {
3436
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3436
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3437
3437
  return (i == null ? void 0 : i.props.label) ?? (i == null ? void 0 : i.props.responsiveMenuAriaLabel) ?? "";
3438
3438
  }, da = (t) => {
3439
- const i = O.toArray(t).find((n) => B(n) && n.type === Qe);
3439
+ const i = O.toArray(t).find((n) => T(n) && n.type === Qe);
3440
3440
  return (i == null ? void 0 : i.props.backToRootLabel) ?? (i == null ? void 0 : i.props.responsiveMenuBackToRootLabel) ?? "";
3441
3441
  }, ei = () => /* @__PURE__ */ e.createElement(e.Fragment, null), lt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), xe = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ti = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Na = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ii = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ma = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ba = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Ea = () => /* @__PURE__ */ e.createElement("span", { className: "equalizer" }, /* @__PURE__ */ e.createElement("span", { className: "bar-container" }, /* @__PURE__ */ e.createElement("span", { className: "equalizer-1" }), /* @__PURE__ */ e.createElement("span", { className: "equalizer-2" }), /* @__PURE__ */ e.createElement("span", { className: "equalizer-3" }), /* @__PURE__ */ e.createElement("span", { className: "equalizer-4" }))), ga = ({
3442
3442
  className: t,
@@ -3454,7 +3454,7 @@ const De = (t, i = 10) => {
3454
3454
  onChange: I,
3455
3455
  ...b
3456
3456
  }, u) => {
3457
- const E = C(null), N = C(null), Z = C(null), [R, Y] = V("default");
3457
+ const E = X(null), N = X(null), Z = X(null), [R, Y] = V("default");
3458
3458
  je(
3459
3459
  u,
3460
3460
  E,
@@ -3466,9 +3466,9 @@ const De = (t, i = 10) => {
3466
3466
  );
3467
3467
  const j = le(), p = { ...b };
3468
3468
  p.id = p.id ?? j;
3469
- const [G, D] = V(p.value), h = (F) => {
3470
- const { value: T } = F.currentTarget;
3471
- D(T), I == null || I(F);
3469
+ const [G, D] = V(p.value), h = (C) => {
3470
+ const { value: F } = C.currentTarget;
3471
+ D(F), I == null || I(C);
3472
3472
  }, U = () => {
3473
3473
  g == null || g();
3474
3474
  }, w = () => {
@@ -3481,12 +3481,12 @@ const De = (t, i = 10) => {
3481
3481
  Y("hover");
3482
3482
  }, W = () => {
3483
3483
  d == null || d((G == null ? void 0 : G.toString()) ?? "");
3484
- }, x = J("agora-input-search-bar", t), S = J("input-label-wrapper flex items-end", {
3484
+ }, x = J("agora-input-search-bar", { "dark-mode": a }, t), S = J("input-label-wrapper flex items-end", {
3485
3485
  "mb-16": i && !s(n),
3486
3486
  "justify-end": !i || s(n),
3487
3487
  "justify-between": i && !s(n)
3488
- }), X = J("input-search-bar-label", a ? "dark-label" : "light-label");
3489
- return /* @__PURE__ */ e.createElement("div", { hidden: !!p.hidden, className: x }, /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement("label", { hidden: s(n), htmlFor: p.id, className: X }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-search-bar-container" }, l && (c == null ? void 0 : c.startsWith("agora-line")) && /* @__PURE__ */ e.createElement(ne, { name: c, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(
3488
+ });
3489
+ return /* @__PURE__ */ e.createElement("div", { hidden: !!p.hidden, className: x }, /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement("label", { hidden: s(n), htmlFor: p.id, className: "input-search-bar-label" }, i)), /* @__PURE__ */ e.createElement("div", { className: "input-search-bar-container" }, l && (c == null ? void 0 : c.startsWith("agora-line")) && /* @__PURE__ */ e.createElement(ne, { name: c, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(
3490
3490
  "input",
3491
3491
  {
3492
3492
  ...p,
@@ -3527,82 +3527,82 @@ const De = (t, i = 10) => {
3527
3527
  }
3528
3528
  ))));
3529
3529
  }, ni = re(ga), Ia = (t) => {
3530
- const i = O.toArray(t).find((n) => B(n) && n.type === Ze);
3531
- return i && B(i) ? !!O.toArray(i.props.children).find((a) => B(a) && a.type === xe) : !1;
3530
+ const i = O.toArray(t).find((n) => T(n) && n.type === Ze);
3531
+ return i && T(i) ? !!O.toArray(i.props.children).find((a) => T(a) && a.type === xe) : !1;
3532
3532
  }, ua = (t) => {
3533
- const i = O.toArray(t).find((a) => B(a) && a.type === Ze);
3533
+ const i = O.toArray(t).find((a) => T(a) && a.type === Ze);
3534
3534
  let n;
3535
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === xe)), (n == null ? void 0 : n.props.label) ?? "";
3535
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === xe)), (n == null ? void 0 : n.props.label) ?? "";
3536
3536
  }, Ra = (t) => {
3537
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3537
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3538
3538
  let n = null;
3539
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === xe));
3539
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === xe));
3540
3540
  let a = null;
3541
- return n && B(n == null ? void 0 : n.props.children) ? (a = O.toArray(n.props.children).find((l) => B(l) && l.type === lt), !!a) : !1;
3541
+ return n && T(n == null ? void 0 : n.props.children) ? (a = O.toArray(n.props.children).find((l) => T(l) && l.type === lt), !!a) : !1;
3542
3542
  }, Da = (t) => {
3543
- const i = O.toArray(t).find((c) => B(c) && c.type === Ze);
3543
+ const i = O.toArray(t).find((c) => T(c) && c.type === Ze);
3544
3544
  let n = null;
3545
- i && B(i) && (n = O.toArray(i.props.children).find((c) => B(c) && c.type === xe));
3545
+ i && T(i) && (n = O.toArray(i.props.children).find((c) => T(c) && c.type === xe));
3546
3546
  let a = null;
3547
- n && (a = O.toArray(n.props.children).find((c) => B(c) && c.type === lt));
3547
+ n && (a = O.toArray(n.props.children).find((c) => T(c) && c.type === lt));
3548
3548
  let l = null;
3549
- return a && (l = O.toArray(a.props.children).find((c) => B(c) && c.type === ba)), l == null ? void 0 : l.props;
3549
+ return a && (l = O.toArray(a.props.children).find((c) => T(c) && c.type === ba)), l == null ? void 0 : l.props;
3550
3550
  }, Ga = (t) => {
3551
- const i = O.toArray(t).find((r) => B(r) && r.type === Ze);
3551
+ const i = O.toArray(t).find((r) => T(r) && r.type === Ze);
3552
3552
  let n = null;
3553
- i && B(i) && (n = O.toArray(i.props.children).find((r) => B(r) && r.type === xe));
3553
+ i && T(i) && (n = O.toArray(i.props.children).find((r) => T(r) && r.type === xe));
3554
3554
  let a = null;
3555
- n && (a = O.toArray(n.props.children).find((r) => B(r) && r.type === lt));
3555
+ n && (a = O.toArray(n.props.children).find((r) => T(r) && r.type === lt));
3556
3556
  let l = null;
3557
- a && (l = O.toArray(a.props.children).find((r) => B(r) && r.type === ti));
3557
+ a && (l = O.toArray(a.props.children).find((r) => T(r) && r.type === ti));
3558
3558
  let c = null;
3559
- return l && (c = O.toArray(l.props.children).find((r) => B(r) && r.type === ni)), (c == null ? void 0 : c.props) ?? null;
3559
+ return l && (c = O.toArray(l.props.children).find((r) => T(r) && r.type === ni)), (c == null ? void 0 : c.props) ?? null;
3560
3560
  }, Za = (t) => {
3561
- const i = O.toArray(t).find((c) => B(c) && c.type === Ze);
3561
+ const i = O.toArray(t).find((c) => T(c) && c.type === Ze);
3562
3562
  let n = null;
3563
- i && B(i) && (n = O.toArray(i.props.children).find((c) => B(c) && c.type === xe));
3563
+ i && T(i) && (n = O.toArray(i.props.children).find((c) => T(c) && c.type === xe));
3564
3564
  let a = null;
3565
- n && (a = O.toArray(n.props.children).find((c) => B(c) && c.type === lt));
3565
+ n && (a = O.toArray(n.props.children).find((c) => T(c) && c.type === lt));
3566
3566
  let l = null;
3567
- return a && (l = O.toArray(a.props.children).find((c) => B(c) && c.type === ti)), l == null ? void 0 : l.props.children;
3567
+ return a && (l = O.toArray(a.props.children).find((c) => T(c) && c.type === ti)), l == null ? void 0 : l.props.children;
3568
3568
  }, pa = (t) => {
3569
- const i = O.toArray(t).find((r) => B(r) && r.type === Ze);
3569
+ const i = O.toArray(t).find((r) => T(r) && r.type === Ze);
3570
3570
  let n = null;
3571
- i && B(i) && (n = O.toArray(i.props.children).find((r) => B(r) && r.type === xe));
3571
+ i && T(i) && (n = O.toArray(i.props.children).find((r) => T(r) && r.type === xe));
3572
3572
  let a = null;
3573
- n && (a = O.toArray(n.props.children).find((r) => B(r) && r.type === lt));
3573
+ n && (a = O.toArray(n.props.children).find((r) => T(r) && r.type === lt));
3574
3574
  let l = null;
3575
- a && (l = O.toArray(a.props.children).find((r) => B(r) && r.type === ii));
3575
+ a && (l = O.toArray(a.props.children).find((r) => T(r) && r.type === ii));
3576
3576
  let c = null;
3577
- return l && (c = O.toArray(l.props.children).find((r) => B(r) && r.type === ma)), c == null ? void 0 : c.props;
3577
+ return l && (c = O.toArray(l.props.children).find((r) => T(r) && r.type === ma)), c == null ? void 0 : c.props;
3578
3578
  }, Ma = (t) => {
3579
- const i = O.toArray(t).find((c) => B(c) && c.type === Ze);
3579
+ const i = O.toArray(t).find((c) => T(c) && c.type === Ze);
3580
3580
  let n = null;
3581
- i && B(i) && (n = O.toArray(i.props.children).find((c) => B(c) && c.type === xe));
3581
+ i && T(i) && (n = O.toArray(i.props.children).find((c) => T(c) && c.type === xe));
3582
3582
  let a = null;
3583
- n && (a = O.toArray(n.props.children).find((c) => B(c) && c.type === lt));
3583
+ n && (a = O.toArray(n.props.children).find((c) => T(c) && c.type === lt));
3584
3584
  let l = null;
3585
- return a && (l = O.toArray(a.props.children).find((c) => B(c) && c.type === ii)), l ? O.toArray(l.props.children).map((c) => B(c) && c.type === Na ? c.props : null).filter((c) => !!c) : [];
3585
+ return a && (l = O.toArray(a.props.children).find((c) => T(c) && c.type === ii)), l ? O.toArray(l.props.children).map((c) => T(c) && c.type === Na ? c.props : null).filter((c) => !!c) : [];
3586
3586
  }, Ya = (t) => {
3587
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3587
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3588
3588
  let n = null;
3589
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === xe));
3589
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === xe));
3590
3590
  let a = null;
3591
- return n && B(n.props.children) && (a = O.toArray(n.props.children).find((l) => B(l) && l.type === ei)), !!a;
3591
+ return n && T(n.props.children) && (a = O.toArray(n.props.children).find((l) => T(l) && l.type === ei)), !!a;
3592
3592
  }, Ua = (t) => {
3593
- const i = O.toArray(t).find((l) => B(l) && l.type === Ze);
3593
+ const i = O.toArray(t).find((l) => T(l) && l.type === Ze);
3594
3594
  let n = null;
3595
- i && B(i) && (n = O.toArray(i.props.children).find((l) => B(l) && l.type === xe));
3595
+ i && T(i) && (n = O.toArray(i.props.children).find((l) => T(l) && l.type === xe));
3596
3596
  let a = null;
3597
- return n && (a = O.toArray(n.props.children).find((l) => B(l) && l.type === ei)), a == null ? void 0 : a.props;
3597
+ return n && (a = O.toArray(n.props.children).find((l) => T(l) && l.type === ei)), a == null ? void 0 : a.props;
3598
3598
  }, wa = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ja = () => /* @__PURE__ */ e.createElement(e.Fragment, null), ai = (t) => {
3599
- const i = O.toArray(t).find((a) => B(a) && a.type === Ze);
3599
+ const i = O.toArray(t).find((a) => T(a) && a.type === Ze);
3600
3600
  let n = null;
3601
- return i && B(i) && (n = O.toArray(i.props.children).find((a) => B(a) && a.type === wa)), n ? n.props : null;
3601
+ return i && T(i) && (n = O.toArray(i.props.children).find((a) => T(a) && a.type === wa)), n ? n.props : null;
3602
3602
  }, ha = (t) => {
3603
3603
  const i = ai(t);
3604
3604
  return i != null && i.children ? O.toArray(i.children).map((n) => {
3605
- if (B(n) && n.type === ja)
3605
+ if (T(n) && n.type === ja)
3606
3606
  return n.props;
3607
3607
  }).filter((n) => !!n) : [];
3608
3608
  }, va = (t) => {
@@ -3612,7 +3612,7 @@ const De = (t, i = 10) => {
3612
3612
  }, I = () => qn(a), b = () => $n(a), u = (f) => {
3613
3613
  const K = _n(a);
3614
3614
  return K == null ? void 0 : K(f);
3615
- }, E = () => ta(a), N = () => ea(a), Z = () => Ln(a), R = () => On(a), Y = () => Qn(a), j = () => Vn(a), p = () => ai(a), G = () => ha(a), D = () => Ia(a), h = () => ua(a), U = () => Ra(a), w = () => Da(a), v = () => Ga(a), k = () => Za(a), y = () => pa(a), W = () => Ma(a), x = () => Ya(a), S = () => Ua(a), X = () => aa(a), F = () => na(a), T = () => Aa(a), Q = () => sa(a), L = () => da(a), ee = () => ca(a), $ = () => ra(a), z = () => oa(a), H = () => la(a);
3615
+ }, E = () => ta(a), N = () => ea(a), Z = () => Ln(a), R = () => On(a), Y = () => Qn(a), j = () => Vn(a), p = () => ai(a), G = () => ha(a), D = () => Ia(a), h = () => ua(a), U = () => Ra(a), w = () => Da(a), v = () => Ga(a), k = () => Za(a), y = () => pa(a), W = () => Ma(a), x = () => Ya(a), S = () => Ua(a), C = () => aa(a), F = () => na(a), B = () => Aa(a), Q = () => sa(a), L = () => da(a), _ = () => ca(a), $ = () => ra(a), z = () => oa(a), H = () => la(a);
3616
3616
  return oe(() => ({
3617
3617
  getGeneralBarAriaLabel: l,
3618
3618
  getInstitutionalPhrase: c,
@@ -3643,14 +3643,14 @@ const De = (t, i = 10) => {
3643
3643
  getDefaultSearchRelatedLinks: W,
3644
3644
  hasCustomSearch: x,
3645
3645
  getCustomSearch: S,
3646
- countNavigationItems: X,
3646
+ countNavigationItems: C,
3647
3647
  maxNavigationItems: n,
3648
3648
  getNavigationId: F,
3649
3649
  getNavigationItems: H,
3650
- getResponsiveMenuLabel: T,
3650
+ getResponsiveMenuLabel: B,
3651
3651
  getResponsiveMenuAriaLabel: Q,
3652
3652
  getResponsiveMenuBackToRootLabel: L,
3653
- getModalMenuLabel: ee,
3653
+ getModalMenuLabel: _,
3654
3654
  getModalAriaLabel: $,
3655
3655
  getModalCloseLabel: z,
3656
3656
  darkMode: s(i)
@@ -3727,8 +3727,8 @@ const Ja = (t, i) => {
3727
3727
  closeAll: R
3728
3728
  }), []);
3729
3729
  }, li = ze({}), Ye = () => Te(li), ya = () => {
3730
- const [t, i] = V(!1), n = C(null);
3731
- return _(() => {
3730
+ const [t, i] = V(!1), n = X(null);
3731
+ return ee(() => {
3732
3732
  const a = () => {
3733
3733
  i(window.scrollY > 0);
3734
3734
  }, l = () => {
@@ -3741,7 +3741,7 @@ const Ja = (t, i) => {
3741
3741
  };
3742
3742
  }, []), { scrolling: t };
3743
3743
  }, Sa = () => {
3744
- const t = C(/* @__PURE__ */ new Map()), { scrolling: i } = ya(), [n, a] = V(!1), [l, c] = V(!1);
3744
+ const t = X(/* @__PURE__ */ new Map()), { scrolling: i } = ya(), [n, a] = V(!1), [l, c] = V(!1);
3745
3745
  return {
3746
3746
  collapseAllMenus: () => {
3747
3747
  t.current.forEach((E) => {
@@ -3813,7 +3813,7 @@ const Ja = (t, i) => {
3813
3813
  window.matchMedia("(pointer: coarse)").matches || Z("default");
3814
3814
  };
3815
3815
  return /* @__PURE__ */ e.createElement(it, { ...u, ref: E, fullWidth: m, variant: t, appearance: "link", className: R }, O.toArray(A).map((D) => {
3816
- if (B(D)) {
3816
+ if (T(D)) {
3817
3817
  const h = J(
3818
3818
  { "link-with-icon": s(i) || s(n) },
3819
3819
  { "icon-only": s(n) }
@@ -3855,7 +3855,7 @@ const Ja = (t, i) => {
3855
3855
  return t.menuRefMap.set(me.Drawer, l), n ? /* @__PURE__ */ e.createElement(Dn, { ref: l, position: "right", dismissOnEscape: !1, dismissOnBackdropClick: !1, "aria-label": a }, /* @__PURE__ */ e.createElement(za, null), /* @__PURE__ */ e.createElement(Wa, null), /* @__PURE__ */ e.createElement(Ba, null)) : "";
3856
3856
  }, xa = ({ id: t, isDrawerPanel: i = !1, className: n, children: a, iconsCollapsed: l, iconsExpanded: c }, r) => {
3857
3857
  var f, K;
3858
- const { width: o } = pe(), { xlScreen: A } = ve(), m = o >= A, g = t, d = Ie(), I = Ye(), b = I.menuRefMap.get("Header"), [u, E] = V("unset"), [N, Z] = V(!1), R = O.toArray(a).find((P) => B(P) && P.type === ae), Y = O.toArray(a).find((P) => B(P) && P.type === he), j = O.toArray(a).find((P) => B(P) && P.type !== ae), p = !!R, G = !!Y, D = !!j, h = C(null), U = C(null), w = C(null), v = C(null), k = C(null), y = () => {
3858
+ const { width: o } = pe(), { xlScreen: A } = ve(), m = o >= A, g = t, d = Ie(), I = Ye(), b = I.menuRefMap.get("Header"), [u, E] = V("unset"), [N, Z] = V(!1), R = O.toArray(a).find((P) => T(P) && P.type === ae), Y = O.toArray(a).find((P) => T(P) && P.type === he), j = O.toArray(a).find((P) => T(P) && P.type !== ae), p = !!R, G = !!Y, D = !!j, h = X(null), U = X(null), w = X(null), v = X(null), k = X(null), y = () => {
3859
3859
  if (D && !N)
3860
3860
  Z(!0), De(() => {
3861
3861
  var Ae;
@@ -3896,17 +3896,17 @@ const Ja = (t, i) => {
3896
3896
  const S = (P) => {
3897
3897
  var q, Ae;
3898
3898
  N ? I.collapseMenu(g, !0) : I.expandMenu(g), (Ae = (q = R.props).onClick) == null || Ae.call(q, P);
3899
- }, X = J("panel-menu", n, { "dark-mode": d.darkMode }), F = J(
3899
+ }, C = J("panel-menu", n, { "dark-mode": d.darkMode }), F = J(
3900
3900
  "panel-menu-button",
3901
3901
  { "has-panel": D },
3902
3902
  { expanded: N, collapsed: !N },
3903
3903
  (f = R == null ? void 0 : R.props) == null ? void 0 : f.className
3904
- ), T = J("panel-menu-link-wrapper", (K = Y == null ? void 0 : Y.props) == null ? void 0 : K.className), Q = J("panel-drawer-button"), L = J(
3904
+ ), B = J("panel-menu-link-wrapper", (K = Y == null ? void 0 : Y.props) == null ? void 0 : K.className), Q = J("panel-drawer-button"), L = J(
3905
3905
  "panel-menu-content",
3906
3906
  { expanded: N, collapsed: !N },
3907
3907
  { "dark-mode": d.darkMode }
3908
3908
  );
3909
- _(() => {
3909
+ ee(() => {
3910
3910
  const P = (Ae) => {
3911
3911
  const te = Ae.getBoundingClientRect().height || 0, ce = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0) - te;
3912
3912
  if (m)
@@ -3921,14 +3921,14 @@ const Ja = (t, i) => {
3921
3921
  return window.addEventListener("resize", q), q(), () => {
3922
3922
  window.removeEventListener("resize", q);
3923
3923
  };
3924
- }, [b == null ? void 0 : b.current, m]), _(() => {
3924
+ }, [b == null ? void 0 : b.current, m]), ee(() => {
3925
3925
  const P = (q) => {
3926
3926
  q.code === "Escape" && N && I.collapseMenu(g, !0);
3927
3927
  };
3928
3928
  return (D || i) && window.document.addEventListener("keydown", P), () => {
3929
3929
  window.document.removeEventListener("keydown", P);
3930
3930
  };
3931
- }, [D, i, N, I.hasOpenSubmenu()]), _(() => {
3931
+ }, [D, i, N, I.hasOpenSubmenu()]), ee(() => {
3932
3932
  const P = (q) => {
3933
3933
  if (!N)
3934
3934
  return;
@@ -3938,7 +3938,7 @@ const Ja = (t, i) => {
3938
3938
  return (D || i) && window.document.addEventListener("click", P), () => {
3939
3939
  window.document.removeEventListener("click", P);
3940
3940
  };
3941
- }, [D, i, N]), _(() => {
3941
+ }, [D, i, N]), ee(() => {
3942
3942
  const P = (q) => {
3943
3943
  if (!(!N || !k.current) && q.key === "Tab") {
3944
3944
  const Ae = k.current.querySelectorAll(
@@ -3951,14 +3951,14 @@ const Ja = (t, i) => {
3951
3951
  document == null || document.removeEventListener("keydown", P);
3952
3952
  };
3953
3953
  }, [N]);
3954
- const ee = oe(() => N ? (c == null ? void 0 : c.leadingIcon) ?? "" : (l == null ? void 0 : l.leadingIcon) ?? "", [l, c, N]), $ = oe(() => N ? (c == null ? void 0 : c.leadingIconHover) ?? "" : (l == null ? void 0 : l.leadingIconHover) ?? "", [l, c, N]), z = oe(() => N ? (c == null ? void 0 : c.trailingIcon) ?? "" : (l == null ? void 0 : l.trailingIcon) ?? "", [l, c, N]), H = oe(() => N ? (c == null ? void 0 : c.trailingIconHover) ?? "" : (l == null ? void 0 : l.trailingIconHover) ?? "", [l, c, N]);
3955
- return /* @__PURE__ */ e.createElement("div", { ref: h, className: X }, G && /* @__PURE__ */ e.createElement(
3954
+ const _ = oe(() => N ? (c == null ? void 0 : c.leadingIcon) ?? "" : (l == null ? void 0 : l.leadingIcon) ?? "", [l, c, N]), $ = oe(() => N ? (c == null ? void 0 : c.leadingIconHover) ?? "" : (l == null ? void 0 : l.leadingIconHover) ?? "", [l, c, N]), z = oe(() => N ? (c == null ? void 0 : c.trailingIcon) ?? "" : (l == null ? void 0 : l.trailingIcon) ?? "", [l, c, N]), H = oe(() => N ? (c == null ? void 0 : c.trailingIconHover) ?? "" : (l == null ? void 0 : l.trailingIconHover) ?? "", [l, c, N]);
3955
+ return /* @__PURE__ */ e.createElement("div", { ref: h, className: C }, G && /* @__PURE__ */ e.createElement(
3956
3956
  he,
3957
3957
  {
3958
3958
  ...Y.props,
3959
3959
  darkMode: d.darkMode,
3960
3960
  ref: w,
3961
- className: T
3961
+ className: B
3962
3962
  }
3963
3963
  ), p && !i && /* @__PURE__ */ e.createElement(
3964
3964
  ae,
@@ -3972,7 +3972,7 @@ const Ja = (t, i) => {
3972
3972
  darkMode: d.darkMode,
3973
3973
  ...D && { "aria-controls": `panel-content-${g}`, "aria-expanded": N },
3974
3974
  hasIcon: s(R.props.hasIcon),
3975
- ...D && s(R.props.hasIcon) && ee && $ ? { leadingIcon: ee, leadingIconHover: $ } : {},
3975
+ ...D && s(R.props.hasIcon) && _ && $ ? { leadingIcon: _, leadingIconHover: $ } : {},
3976
3976
  ...D && s(R.props.hasIcon) && z && H ? { trailingIcon: z, trailingIconHover: H } : {}
3977
3977
  },
3978
3978
  R.props.children
@@ -3998,7 +3998,7 @@ const Ja = (t, i) => {
3998
3998
  j
3999
3999
  ), /* @__PURE__ */ e.createElement("div", { className: "panel-menu-backdrop" })));
4000
4000
  }, qe = re(xa), yt = () => /* @__PURE__ */ e.createElement(e.Fragment, null), Fa = ({ id: t, linksAriaLabel: i, relatedLinksAriaLabel: n, title: a, buttonProps: l, children: c }, r) => {
4001
- const o = Ie(), A = Ye(), m = o.getResponsiveMenuBackToRootLabel(), g = le(), [d, I] = V(!1), b = O.toArray(c).filter((G) => B(G) && G.type === $e), u = O.toArray(c).filter((G) => B(G) && G.type === yt), E = C(null), N = C(null), Z = () => {
4001
+ const o = Ie(), A = Ye(), m = o.getResponsiveMenuBackToRootLabel(), g = le(), [d, I] = V(!1), b = O.toArray(c).filter((G) => T(G) && G.type === $e), u = O.toArray(c).filter((G) => T(G) && G.type === yt), E = X(null), N = X(null), Z = () => {
4002
4002
  d || (I(!0), De(() => {
4003
4003
  var h;
4004
4004
  const G = (h = N.current) == null ? void 0 : h.querySelectorAll(
@@ -4035,7 +4035,7 @@ const Ja = (t, i) => {
4035
4035
  }, j = () => {
4036
4036
  A.openSubmenu(t);
4037
4037
  };
4038
- _(() => {
4038
+ ee(() => {
4039
4039
  const G = (D) => {
4040
4040
  if (!(!d || !N.current) && D.code === "Tab") {
4041
4041
  const h = N.current.querySelectorAll(
@@ -4090,7 +4090,7 @@ const Ja = (t, i) => {
4090
4090
  }, La = re(
4091
4091
  Fa
4092
4092
  ), Oa = () => {
4093
- const t = Ie(), i = Ye(), n = t.getAreas(), a = n.find((d) => d.active), l = n.filter((d) => !d.active), c = le(), r = C(null), [o, A] = V(0), m = (d) => {
4093
+ const t = Ie(), i = Ye(), n = t.getAreas(), a = n.find((d) => d.active), l = n.filter((d) => !d.active), c = le(), r = X(null), [o, A] = V(0), m = (d) => {
4094
4094
  const { code: I } = d;
4095
4095
  if (r.current) {
4096
4096
  const b = Array.from(r.current.querySelectorAll("[data-menuitem]"));
@@ -4125,7 +4125,7 @@ const Ja = (t, i) => {
4125
4125
  return /* @__PURE__ */ e.createElement("div", { className: "navigation-burger-layout" }, a && /* @__PURE__ */ e.createElement("div", { id: "navigation-burger-current-area", className: "current-area" }, a.label), /* @__PURE__ */ e.createElement("nav", { className: "xs:col-span-4 md:col-span-8 xl:col-span-12", "aria-labelledby": "navigation-burger-current-area" }, /* @__PURE__ */ e.createElement("ul", { ref: r }, t.getNavigationItems().map((d, I) => {
4126
4126
  var E;
4127
4127
  const b = `${me.NavigationBurgerLayout}-${I}`, u = ke();
4128
- if (i.menuRefMap.set(b, u), B(d) && d.type === Nt)
4128
+ if (i.menuRefMap.set(b, u), T(d) && d.type === Nt)
4129
4129
  return /* @__PURE__ */ e.createElement("li", { key: b }, /* @__PURE__ */ e.createElement(
4130
4130
  La,
4131
4131
  {
@@ -4142,7 +4142,7 @@ const Ja = (t, i) => {
4142
4142
  },
4143
4143
  d.props.children
4144
4144
  ));
4145
- if (B(d) && d.type === $e) {
4145
+ if (T(d) && d.type === $e) {
4146
4146
  const N = J("burger-menu-item-link", d.props.className);
4147
4147
  return /* @__PURE__ */ e.createElement("li", { key: b }, /* @__PURE__ */ e.createElement(
4148
4148
  he,
@@ -4203,7 +4203,7 @@ const Ja = (t, i) => {
4203
4203
  const c = J("area", { selected: t });
4204
4204
  return /* @__PURE__ */ e.createElement("button", { ...l, className: c, onClick: a, "data-value": i }, n);
4205
4205
  }, Xa = () => {
4206
- const t = Ie(), i = Ye(), n = C(null);
4206
+ const t = Ie(), i = Ye(), n = X(null);
4207
4207
  i.menuRefMap.set(me.Areas, n);
4208
4208
  const a = t.hasVisibleAreas(), l = J("areas", { "dark-mode": t.darkMode }, { "sr-only": !a }), c = (o, A) => {
4209
4209
  var m, g;
@@ -4287,7 +4287,7 @@ const Ja = (t, i) => {
4287
4287
  }, qa = ({ type: t = "unordered", listStyle: i = "none", startNumber: n = 1, children: a, icon: l, ...c }) => {
4288
4288
  const r = t !== "ordered" ? "ul" : "ol", o = le(), A = { ...c };
4289
4289
  A.id = A.id ?? o;
4290
- const m = J(`agora-list agora-list-${t} list-${i}`, A.className), g = O.map(a, (d) => B(d) ? /* @__PURE__ */ e.createElement("li", null, i === "icon" && t === "unordered" && /* @__PURE__ */ e.createElement(ne, { name: l, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("div", { className: "list-items" }, d.props.children)) : null);
4290
+ const m = J(`agora-list agora-list-${t} list-${i}`, A.className), g = O.map(a, (d) => T(d) ? /* @__PURE__ */ e.createElement("li", null, i === "icon" && t === "unordered" && /* @__PURE__ */ e.createElement(ne, { name: l, "aria-hidden": !0 }), /* @__PURE__ */ e.createElement("div", { className: "list-items" }, d.props.children)) : null);
4291
4291
  return /* @__PURE__ */ e.createElement(r, { style: { "--startNumber": n }, start: n, className: m, id: A.id }, g);
4292
4292
  }, $a = (t) => {
4293
4293
  const i = Ie(), n = i.getDefaultSearchTitle(), a = i.getDefaultSearchInputBar(), l = i.getCustomSearchInputBar(), c = i.getDefaultSearchRelatedLinksTitle(), r = i.getDefaultSearchRelatedLinks();
@@ -4373,7 +4373,7 @@ const Ja = (t, i) => {
4373
4373
  relatedLinksAriaLabel: n,
4374
4374
  children: a
4375
4375
  }) => {
4376
- const l = le(), c = O.toArray(a).filter((A) => B(A) && A.type === $e), r = O.toArray(a).filter((A) => B(A) && A.type === yt), o = J("navigation-links-layout", r.length < 1 ? "pb-32" : "");
4376
+ const l = le(), c = O.toArray(a).filter((A) => T(A) && A.type === $e), r = O.toArray(a).filter((A) => T(A) && A.type === yt), o = J("navigation-links-layout", r.length < 1 ? "pb-32" : "");
4377
4377
  return /* @__PURE__ */ e.createElement("div", { className: o }, t && /* @__PURE__ */ e.createElement("div", { className: "title" }, t), c.length > 0 && /* @__PURE__ */ e.createElement("div", { className: "links", role: "list", "aria-label": i }, c.map((A, m) => {
4378
4378
  const g = `${l}-links-${m}`;
4379
4379
  return /* @__PURE__ */ e.createElement("div", { className: "link-wrapper", key: g, role: "listitem" }, /* @__PURE__ */ e.createElement(he, { ...A.props, variant: "primary" }));
@@ -4386,7 +4386,7 @@ const Ja = (t, i) => {
4386
4386
  return /* @__PURE__ */ e.createElement("nav", { className: "internal-navigation-list", "aria-labelledby": a == null ? void 0 : a.value, ...l ? { id: l } : {} }, /* @__PURE__ */ e.createElement("ul", null, n.map((c, r) => {
4387
4387
  var m;
4388
4388
  const o = `${me.NavigationList}-${r}`, A = ke();
4389
- if (i.menuRefMap.set(o, A), B(c) && c.type === Nt)
4389
+ if (i.menuRefMap.set(o, A), T(c) && c.type === Nt)
4390
4390
  return /* @__PURE__ */ e.createElement("li", { key: o }, /* @__PURE__ */ e.createElement(
4391
4391
  qe,
4392
4392
  {
@@ -4416,13 +4416,13 @@ const Ja = (t, i) => {
4416
4416
  c.props.children
4417
4417
  )
4418
4418
  ));
4419
- if (B(c) && c.type === $e) {
4419
+ if (T(c) && c.type === $e) {
4420
4420
  const g = J("internal-panel-navigation-list-link", c.props.className);
4421
4421
  return /* @__PURE__ */ e.createElement("li", { key: o, className: "relative" }, /* @__PURE__ */ e.createElement(qe, { id: o, ref: A }, /* @__PURE__ */ e.createElement(he, { ...c.props, className: g })));
4422
4422
  }
4423
4423
  })));
4424
4424
  }, ci = ze({}), cl = () => Te(ci), rl = ({ className: t, openLabel: i, closeLabel: n, modalAriaLabel: a, darkMode: l = !1, children: c, ...r }, o) => {
4425
- const A = Ie(), m = cl(), g = O.toArray(c).find((p) => B(p) && p.type !== ae), d = C(null), I = () => {
4425
+ const A = Ie(), m = cl(), g = O.toArray(c).find((p) => T(p) && p.type !== ae), d = X(null), I = () => {
4426
4426
  var p;
4427
4427
  (p = d.current) == null || p.focus();
4428
4428
  }, b = () => {
@@ -4433,7 +4433,7 @@ const Ja = (t, i) => {
4433
4433
  });
4434
4434
  }, u = () => {
4435
4435
  m.hide();
4436
- }, E = C(null);
4436
+ }, E = X(null);
4437
4437
  je(
4438
4438
  o,
4439
4439
  E,
@@ -4473,8 +4473,8 @@ const Ja = (t, i) => {
4473
4473
  }, ol = re(rl), Al = ({ item: t }) => {
4474
4474
  const i = le();
4475
4475
  let n = "", a = "", l = "";
4476
- B(t) && t.type === Nt && (n = t.props.label, a = t.props.linksAriaLabel ?? "", l = t.props.relatedLinksAriaLabel ?? "");
4477
- const c = O.toArray(t.props.children).filter((o) => B(o) && o.type === $e), r = O.toArray(t.props.children).filter((o) => B(o) && o.type === yt);
4476
+ T(t) && t.type === Nt && (n = t.props.label, a = t.props.linksAriaLabel ?? "", l = t.props.relatedLinksAriaLabel ?? "");
4477
+ const c = O.toArray(t.props.children).filter((o) => T(o) && o.type === $e), r = O.toArray(t.props.children).filter((o) => T(o) && o.type === yt);
4478
4478
  return /* @__PURE__ */ e.createElement(e.Fragment, null, c.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "main-content" }, /* @__PURE__ */ e.createElement("div", { className: "content" }, /* @__PURE__ */ e.createElement("div", { className: "links" }, /* @__PURE__ */ e.createElement("div", { className: "links-title" }, n), /* @__PURE__ */ e.createElement("div", { className: "links-list", role: "list", "aria-label": a }, c.map((o, A) => {
4479
4479
  const m = `${i}-link-${A}`;
4480
4480
  return /* @__PURE__ */ e.createElement("div", { key: m, role: "listitem" }, /* @__PURE__ */ e.createElement(he, { ...o.props, variant: "primary" }));
@@ -4483,8 +4483,8 @@ const Ja = (t, i) => {
4483
4483
  return /* @__PURE__ */ e.createElement("div", { key: m, role: "listitem" }, /* @__PURE__ */ e.createElement(he, { ...o.props, variant: "neutral" }));
4484
4484
  })))))));
4485
4485
  }, sl = ({ onActiveChange: t }) => {
4486
- const i = le(), n = C(null), a = Ie(), l = a.getNavigationItems(), [c, r] = V(0);
4487
- _(() => {
4486
+ const i = le(), n = X(null), a = Ie(), l = a.getNavigationItems(), [c, r] = V(0);
4487
+ ee(() => {
4488
4488
  t(c);
4489
4489
  }, [c]);
4490
4490
  const [o, A] = V(0), m = (g) => {
@@ -4508,7 +4508,7 @@ const Ja = (t, i) => {
4508
4508
  const I = `${i}-${d}`, b = J("internal-modal-menu-item", { selected: c === d }), u = () => {
4509
4509
  r(d);
4510
4510
  }, E = d === o;
4511
- if (B(g) && g.type === Nt)
4511
+ if (T(g) && g.type === Nt)
4512
4512
  return /* @__PURE__ */ e.createElement("li", { key: I }, /* @__PURE__ */ e.createElement(
4513
4513
  ae,
4514
4514
  {
@@ -4524,7 +4524,7 @@ const Ja = (t, i) => {
4524
4524
  },
4525
4525
  g.props.label
4526
4526
  ));
4527
- if (B(g) && g.type === $e)
4527
+ if (T(g) && g.type === $e)
4528
4528
  return /* @__PURE__ */ e.createElement("li", { key: I }, /* @__PURE__ */ e.createElement(
4529
4529
  he,
4530
4530
  {
@@ -4585,7 +4585,7 @@ const Ja = (t, i) => {
4585
4585
  };
4586
4586
  return /* @__PURE__ */ e.createElement("div", { className: o, ...c ? g : {} }, c && t.hasVisibleAreas() && /* @__PURE__ */ e.createElement(ot, { className: A }), /* @__PURE__ */ e.createElement("div", { className: "navbar-container" }, /* @__PURE__ */ e.createElement(nl, null), c && t.countNavigationItems() > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, t.countNavigationItems() > t.maxNavigationItems && /* @__PURE__ */ e.createElement(Nl, null), t.countNavigationItems() <= t.maxNavigationItems && /* @__PURE__ */ e.createElement(ll, null))), r && !i.isScrolling() && /* @__PURE__ */ e.createElement(ot, null));
4587
4587
  }, bl = () => {
4588
- const t = Ie(), i = Ye(), n = C(null);
4588
+ const t = Ie(), i = Ye(), n = X(null);
4589
4589
  i.menuRefMap.set(me.Header, n);
4590
4590
  const a = J("agora-header", { "scrolling shadow-bottom-low": i.isScrolling() }), l = J("general-bar-bg", {
4591
4591
  "bg-[var(--color-neutral-100)]": !t.darkMode,
@@ -4596,7 +4596,7 @@ const Ja = (t, i) => {
4596
4596
  });
4597
4597
  return /* @__PURE__ */ e.createElement("div", { className: a, ref: n }, /* @__PURE__ */ e.createElement("div", { className: l }, /* @__PURE__ */ e.createElement(il, null)), /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(ml, null)));
4598
4598
  }, El = ({ children: t }) => /* @__PURE__ */ e.createElement("div", { className: "custom-modal-dialog" }, t), gl = ({ children: t }) => {
4599
- const i = C(null), [n, a] = V(), [l, c] = V({
4599
+ const i = X(null), [n, a] = V(), [l, c] = V({
4600
4600
  closeButtonLabel: "",
4601
4601
  ariaLabel: ""
4602
4602
  }), r = be(
@@ -4642,8 +4642,8 @@ const Ja = (t, i) => {
4642
4642
  }, Il = ({ ...t }, i) => {
4643
4643
  const n = va(t), a = Sa();
4644
4644
  Ja(i, a);
4645
- const l = C(0);
4646
- return _(() => {
4645
+ const l = X(0);
4646
+ return ee(() => {
4647
4647
  const c = () => {
4648
4648
  l.current !== window.innerWidth && (a.collapseAllMenus(), l.current = window.innerWidth);
4649
4649
  };
@@ -4826,7 +4826,7 @@ const _e = ({
4826
4826
  }
4827
4827
  }
4828
4828
  }, Ul = () => {
4829
- const t = St(), i = C(null), [n, a] = V(!1), l = (u) => {
4829
+ const t = St(), i = X(null), [n, a] = V(!1), l = (u) => {
4830
4830
  const E = u.getAttribute("data-date");
4831
4831
  return oi(E);
4832
4832
  }, c = (u) => {
@@ -4946,9 +4946,9 @@ const _e = ({
4946
4946
  u && u.focus();
4947
4947
  }
4948
4948
  };
4949
- return _(() => b(), []), _(() => {
4949
+ return ee(() => b(), []), ee(() => {
4950
4950
  n && b();
4951
- }, [n]), _(() => b(), [t.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]" }, t.getAbbrWeekDays().map((u) => /* @__PURE__ */ e.createElement(
4951
+ }, [n]), ee(() => b(), [t.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]" }, t.getAbbrWeekDays().map((u) => /* @__PURE__ */ e.createElement(
4952
4952
  "div",
4953
4953
  {
4954
4954
  role: "gridcell",
@@ -4979,7 +4979,7 @@ const _e = ({
4979
4979
  return c.okAriaLabel || delete A["aria-label"], /* @__PURE__ */ e.createElement("div", { className: "flex justify-between items-center" }, /* @__PURE__ */ e.createElement("div", { className: "my-16" }, /* @__PURE__ */ e.createElement(ae, { appearance: "link", onClick: t.focusToday, disabled: a, ...r }, c.todayLabel)), /* @__PURE__ */ e.createElement("div", { className: "my-16 flex items-end gap-8" }, /* @__PURE__ */ e.createElement(ae, { appearance: "outline", onClick: t.cancel, ...o }, c.cancelLabel), /* @__PURE__ */ e.createElement(ae, { appearance: "solid", onClick: l, ...A }, c.okLabel)));
4980
4980
  }, jl = () => {
4981
4981
  const t = St(), [i, n] = V(!0), [a, l] = V(!0), [c, r] = V(!0), [o, A] = V(!0);
4982
- return _(() => {
4982
+ return ee(() => {
4983
4983
  n(t.startDate ? Rl(t.focusedDate, t.startDate) : !0), l(t.startDate ? Gl(t.focusedDate, t.startDate) : !0), r(t.endDate ? Dl(t.focusedDate, t.endDate) : !0), A(t.endDate ? Zl(t.focusedDate, t.endDate) : !0);
4984
4984
  }, [t.focusedDate, t.startDate, t.endDate]), /* @__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" }, `${t.focusedMonth} ${t.focusedYear}`), /* @__PURE__ */ e.createElement("div", { className: "flex flex-row justify-between" }, /* @__PURE__ */ e.createElement("div", { className: "flex gap-8 justify-center" }, /* @__PURE__ */ e.createElement(
4985
4985
  ae,
@@ -5034,7 +5034,7 @@ const _e = ({
5034
5034
  const [g, d] = V(!1), [I, b] = V(m), [u, E] = V(m), [N, Z] = V(i), R = () => {
5035
5035
  c();
5036
5036
  };
5037
- _(() => {
5037
+ ee(() => {
5038
5038
  g ? De(() => l(I)) : d(!0);
5039
5039
  }, [I]);
5040
5040
  const Y = oe(() => ({
@@ -5051,7 +5051,7 @@ const _e = ({
5051
5051
  }), [I, u]), j = J(
5052
5052
  o,
5053
5053
  "absolute left-0 top-[68px] shadow-bottom-high bg-white p-16 border-2 border-[var(--color-neutral-200)] rounded-4 z-dropdown"
5054
- ), p = C(null), G = be((D) => {
5054
+ ), p = X(null), G = be((D) => {
5055
5055
  if (D.key === "Escape") {
5056
5056
  D.preventDefault(), c();
5057
5057
  return;
@@ -5063,7 +5063,7 @@ const _e = ({
5063
5063
  D.shiftKey && document.activeElement === U ? (D.preventDefault(), w.focus()) : !D.shiftKey && document.activeElement === w && (D.preventDefault(), U.focus());
5064
5064
  }
5065
5065
  }, []);
5066
- return _(() => (document == null || document.addEventListener("keydown", G), () => {
5066
+ return ee(() => (document == null || document.addEventListener("keydown", G), () => {
5067
5067
  document == null || document.removeEventListener("keydown", G);
5068
5068
  }), [G]), /* @__PURE__ */ e.createElement(ul, { value: Y }, /* @__PURE__ */ e.createElement("div", { ref: p, className: j }, /* @__PURE__ */ e.createElement(jl, null), /* @__PURE__ */ e.createElement(Ul, null), /* @__PURE__ */ e.createElement("div", { className: "border-1 border-[var(--color-neutral-300)]" }), /* @__PURE__ */ e.createElement(wl, null)));
5069
5069
  }, mt = (t) => t === "" ? t : t.length === 1 ? `0${t}` : t, vl = (t) => t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0), Jl = (t, i, n) => {
@@ -5156,16 +5156,16 @@ const _e = ({
5156
5156
  cancelAriaLabel: W,
5157
5157
  okLabel: x,
5158
5158
  okAriaLabel: S,
5159
- value: X,
5159
+ value: C,
5160
5160
  defaultValue: F,
5161
- onChange: T,
5161
+ onChange: B,
5162
5162
  ...Q
5163
5163
  }, L) => {
5164
- const ee = le(), $ = { ...Q };
5165
- $.id = $.id ?? ee;
5166
- const z = Q.disabled || Q.readOnly ? !1 : r, H = C(null);
5164
+ const _ = le(), $ = { ...Q };
5165
+ $.id = $.id ?? _;
5166
+ const z = Q.disabled || Q.readOnly ? !1 : r, H = X(null);
5167
5167
  Se(L, () => H.current, [H.current]);
5168
- const f = C(null), [K, P] = V((X == null ? void 0 : X.toString()) ?? (F == null ? void 0 : F.toString()) ?? ""), q = C("empty"), [Ae, se] = V(+/* @__PURE__ */ new Date()), [te, ie] = V(!1), ce = () => {
5168
+ const f = X(null), [K, P] = V((C == null ? void 0 : C.toString()) ?? (F == null ? void 0 : F.toString()) ?? ""), q = X("empty"), [Ae, se] = V(+/* @__PURE__ */ new Date()), [te, ie] = V(!1), ce = () => {
5169
5169
  ie(!0);
5170
5170
  }, Ee = () => {
5171
5171
  var ue;
@@ -5182,7 +5182,7 @@ const _e = ({
5182
5182
  }, fe = (ue) => {
5183
5183
  ue !== q.current && (q.current = ue, se(+/* @__PURE__ */ new Date()));
5184
5184
  };
5185
- _(() => {
5185
+ ee(() => {
5186
5186
  const ue = (We) => {
5187
5187
  var Ve;
5188
5188
  te && ((Ve = f.current) != null && Ve.contains(We.target) || Ne());
@@ -5190,7 +5190,7 @@ const _e = ({
5190
5190
  return document.addEventListener("click", ue), () => {
5191
5191
  document.removeEventListener("click", ue);
5192
5192
  };
5193
- }, [te]), _(() => {
5193
+ }, [te]), ee(() => {
5194
5194
  var We;
5195
5195
  const ue = (Ve) => {
5196
5196
  Ve.key === "Escape" && (Ve.preventDefault(), Ne());
@@ -5199,9 +5199,9 @@ const _e = ({
5199
5199
  var Ve;
5200
5200
  (Ve = f.current) == null || Ve.removeEventListener("keydown", ue);
5201
5201
  };
5202
- }, []), _(() => {
5203
- F || (P((X == null ? void 0 : X.toString()) ?? ""), fe((X == null ? void 0 : X.toString()) ?? ""));
5204
- }, [X]);
5202
+ }, []), ee(() => {
5203
+ F || (P((C == null ? void 0 : C.toString()) ?? ""), fe((C == null ? void 0 : C.toString()) ?? ""));
5204
+ }, [C]);
5205
5205
  const pt = (ue) => {
5206
5206
  Ne();
5207
5207
  const We = vt(ue);
@@ -5209,10 +5209,10 @@ const _e = ({
5209
5209
  }, Ui = (ue) => {
5210
5210
  P(ue.target.value), fe(ue.target.value);
5211
5211
  };
5212
- _(() => {
5212
+ ee(() => {
5213
5213
  if (H.current) {
5214
5214
  const ue = Be(H.current, "change");
5215
- De(() => T == null ? void 0 : T(ue));
5215
+ De(() => B == null ? void 0 : B(ue));
5216
5216
  }
5217
5217
  }, [Ae]);
5218
5218
  const wi = {
@@ -5240,7 +5240,7 @@ const _e = ({
5240
5240
  "has-feedback": s(A),
5241
5241
  ["feedback-" + g]: s(A) && g
5242
5242
  });
5243
- return /* @__PURE__ */ e.createElement("div", { hidden: !!$.hidden, className: ji, ref: f }, /* @__PURE__ */ e.createElement("label", { hidden: !!s(n), htmlFor: $.id, className: "input-date-label" }, i), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper" }, I && (b == null ? void 0 : b.startsWith("agora-line")) && /* @__PURE__ */ e.createElement("div", { className: "input-leading-icon" }, /* @__PURE__ */ e.createElement(ne, { name: b, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
5243
+ return /* @__PURE__ */ e.createElement("div", { hidden: !!$.hidden, className: ji, ref: f }, /* @__PURE__ */ e.createElement("label", { hidden: !!s(n), htmlFor: $.id, className: "input-date-label" }, i), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper" }, I && (b == null ? void 0 : b.startsWith("agora-solid")) && /* @__PURE__ */ e.createElement("div", { className: "input-leading-icon" }, /* @__PURE__ */ e.createElement(ne, { name: b, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
5244
5244
  Sl,
5245
5245
  {
5246
5246
  ref: H,
@@ -5305,9 +5305,9 @@ const _e = ({
5305
5305
  const I = le(), b = { ...g };
5306
5306
  b.id = b.id ?? I;
5307
5307
  const { onChange: u } = b, [E, N] = V(""), [Z, R] = V(!1), Y = be(
5308
- (h) => {
5309
- const { value: U } = h.currentTarget;
5310
- N(U), R(new RegExp(m).test(U)), u == null || u(h);
5308
+ (U) => {
5309
+ const { value: w } = U.currentTarget;
5310
+ N(w), R(new RegExp(m).test(w)), u == null || u(U);
5311
5311
  },
5312
5312
  [u, m]
5313
5313
  ), j = be(() => {
@@ -5323,15 +5323,15 @@ const _e = ({
5323
5323
  ["feedback-" + l]: s(a) && l
5324
5324
  },
5325
5325
  t
5326
- ), G = J(
5327
- "input-label-wrapper flex items-end",
5328
- {
5329
- "mb-16": n && !s(i),
5330
- "justify-end": !n || s(i),
5331
- "justify-between": n && !s(i)
5332
- }
5333
- ), D = J("agora-input-email-bar-label", { dark: s(c) });
5334
- return /* @__PURE__ */ e.createElement("div", { hidden: !!b.hidden, className: p }, /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement("label", { hidden: s(i), className: D, htmlFor: b.id }, n)), /* @__PURE__ */ e.createElement("div", { className: `agora-input-email-bar-container ${b.disabled ? "disabled" : ""}` }, /* @__PURE__ */ e.createElement(
5326
+ ), G = J("input-label-wrapper flex items-end", {
5327
+ "mb-16": n && !s(i),
5328
+ "justify-end": !n || s(i),
5329
+ "justify-between": n && !s(i)
5330
+ }), D = J("agora-input-email-bar-label", { dark: s(c) }), h = J("agora-input-email-bar-container", {
5331
+ disabled: b.disabled,
5332
+ "invalid-email": !Z
5333
+ });
5334
+ return /* @__PURE__ */ e.createElement("div", { hidden: !!b.hidden, className: p }, /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement("label", { hidden: s(i), className: D, htmlFor: b.id }, n)), /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement(
5335
5335
  "input",
5336
5336
  {
5337
5337
  ...b,
@@ -5382,10 +5382,10 @@ const _e = ({
5382
5382
  }, u) => {
5383
5383
  const E = le(), N = { ...b };
5384
5384
  N.id = N.id ?? E;
5385
- const { onChange: Z, min: R, max: Y } = N, j = C(null), [p, G] = V(N.value), D = b.disabled || b.readOnly ? !1 : I, h = (L) => {
5385
+ const { onChange: Z, min: R, max: Y } = N, j = X(null), [p, G] = V(N.value), D = b.disabled || b.readOnly ? !1 : I, h = (L) => {
5386
5386
  var $;
5387
- const { value: ee } = L.currentTarget;
5388
- if (G(ee), Z == null || Z(L), Y === parseFloat(ee.toString()) || R === parseFloat(ee.toString())) {
5387
+ const { value: _ } = L.currentTarget;
5388
+ if (G(_), Z == null || Z(L), Y === parseFloat(_.toString()) || R === parseFloat(_.toString())) {
5389
5389
  const z = ($ = j.current) == null ? void 0 : $.querySelector("input");
5390
5390
  z && z.focus();
5391
5391
  }
@@ -5412,22 +5412,22 @@ const _e = ({
5412
5412
  inputClasses: J(
5413
5413
  "agora-input-number",
5414
5414
  {
5415
- "has-leading-icon": m && (g == null ? void 0 : g.indexOf("agora-line")) === 0,
5416
- // allowing only line family icon
5415
+ "has-leading-icon": m && (g == null ? void 0 : g.indexOf("agora-solid")) === 0,
5416
+ // allowing only solid family icon
5417
5417
  "has-value": p && p.toString().length > 0
5418
5418
  },
5419
5419
  d
5420
5420
  ),
5421
5421
  leadingIconWrapperClasses: J("input-leading-icon")
5422
- }), { inputWrapperClasses: y, labelSectionClasses: W, inputClasses: x, leadingIconWrapperClasses: S } = k(), X = () => {
5423
- var ee;
5424
- const L = (ee = j.current) == null ? void 0 : ee.querySelector("input");
5422
+ }), { inputWrapperClasses: y, labelSectionClasses: W, inputClasses: x, leadingIconWrapperClasses: S } = k(), C = () => {
5423
+ var _;
5424
+ const L = (_ = j.current) == null ? void 0 : _.querySelector("input");
5425
5425
  L && (L.stepUp(), L.dispatchEvent(new Event("change", { bubbles: !0 })));
5426
5426
  }, F = () => {
5427
- var ee;
5428
- const L = (ee = j.current) == null ? void 0 : ee.querySelector("input");
5427
+ var _;
5428
+ const L = (_ = j.current) == null ? void 0 : _.querySelector("input");
5429
5429
  L && (L.stepDown(), L.dispatchEvent(new Event("change", { bubbles: !0 })));
5430
- }, T = (L) => {
5430
+ }, B = (L) => {
5431
5431
  w(L);
5432
5432
  }, Q = J("input-number-label", v);
5433
5433
  return /* @__PURE__ */ e.createElement("div", { hidden: !!N.hidden, className: y }, /* @__PURE__ */ e.createElement("div", { className: W }, /* @__PURE__ */ e.createElement("label", { hidden: s(i), htmlFor: N.id, className: Q }, t)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center", ref: j }, /* @__PURE__ */ e.createElement(
@@ -5444,15 +5444,15 @@ const _e = ({
5444
5444
  required: D,
5445
5445
  onChange: h
5446
5446
  }
5447
- ), m && (g == null ? void 0 : g.startsWith("agora-line")) && /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement(ne, { name: g, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
5447
+ ), m && (g == null ? void 0 : g.startsWith("agora-solid")) && /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement(ne, { name: g, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement(
5448
5448
  "div",
5449
5449
  {
5450
5450
  className: "input-number-controls",
5451
5451
  role: "presentation",
5452
5452
  onFocus: () => {
5453
5453
  },
5454
- onMouseOver: () => T(!0),
5455
- onMouseLeave: () => T(!1)
5454
+ onMouseOver: () => B(!0),
5455
+ onMouseLeave: () => B(!1)
5456
5456
  },
5457
5457
  /* @__PURE__ */ e.createElement(
5458
5458
  "button",
@@ -5470,7 +5470,7 @@ const _e = ({
5470
5470
  {
5471
5471
  disabled: Y === parseFloat((p == null ? void 0 : p.toString()) ?? "0") || !!N.disabled || !!N.readOnly,
5472
5472
  type: "button",
5473
- onClick: X,
5473
+ onClick: C,
5474
5474
  "aria-label": a
5475
5475
  },
5476
5476
  /* @__PURE__ */ e.createElement(ne, { name: "agora-line-plus-circle", "aria-hidden": !0, className: "icon-step icon-step-default" }),
@@ -5502,7 +5502,7 @@ const _e = ({
5502
5502
  }, b) => {
5503
5503
  const u = le(), E = { ...I };
5504
5504
  E.id = E.id ?? u;
5505
- const { onChange: N } = E, Z = C(null), [R, Y] = V(!1), [j, p] = V(E.value ? E.value.toString().length > 0 : !1), G = I.disabled || I.readOnly ? !1 : g, D = () => {
5505
+ const { onChange: N } = E, Z = X(null), [R, Y] = V(!1), [j, p] = V(E.value ? E.value.toString().length > 0 : !1), G = I.disabled || I.readOnly ? !1 : g, D = () => {
5506
5506
  var x;
5507
5507
  !E.disabled && !E.readOnly && (Y(!R), Z != null && Z.current && ((x = Z.current.querySelector("input")) == null || x.focus()));
5508
5508
  }, h = (x) => {
@@ -6974,13 +6974,13 @@ const _e = ({
6974
6974
  }, j) => {
6975
6975
  const p = le(), G = { ...Y };
6976
6976
  G.id = G.id ?? p;
6977
- const D = C(null), h = C(null), U = C(null), w = C(null), [v, k] = V(!1), [y, W] = V(G.value ? G.value.toString().length > 0 : !1), x = Y.disabled || Y.readOnly ? !1 : u;
6977
+ const D = X(null), h = X(null), U = X(null), w = X(null), [v, k] = V(!1), [y, W] = V(G.value ? G.value.toString().length > 0 : !1), x = Y.disabled || Y.readOnly ? !1 : u;
6978
6978
  let S = et[0];
6979
- const X = i ?? n;
6980
- X && (S = et.find((te) => te.code === X || te.iso.toLocaleLowerCase() === X.toLocaleLowerCase()) ?? S);
6981
- const [F, T] = V(S);
6982
- _(() => {
6983
- T(S);
6979
+ const C = i ?? n;
6980
+ C && (S = et.find((te) => te.code === C || te.iso.toLocaleLowerCase() === C.toLocaleLowerCase()) ?? S);
6981
+ const [F, B] = V(S);
6982
+ ee(() => {
6983
+ B(S);
6984
6984
  }, [S]), je(
6985
6985
  j,
6986
6986
  h,
@@ -6996,11 +6996,11 @@ const _e = ({
6996
6996
  }, L = () => {
6997
6997
  var te;
6998
6998
  k(!0), (te = w.current) == null || te.first();
6999
- }, ee = (te) => {
6999
+ }, _ = (te) => {
7000
7000
  const ie = et.find((ce) => ce.iso === te[0].value);
7001
7001
  if (ie) {
7002
7002
  const ce = { ...ie };
7003
- T(ce), R == null || R(ce);
7003
+ B(ce), R == null || R(ce);
7004
7004
  }
7005
7005
  }, $ = (te) => {
7006
7006
  if ([
@@ -7033,7 +7033,7 @@ const _e = ({
7033
7033
  }, K = (te) => {
7034
7034
  G.disabled || G.readOnly || typeof te.detail == "number" && te.detail === 0 || H();
7035
7035
  };
7036
- _(() => {
7036
+ ee(() => {
7037
7037
  const te = (ie) => {
7038
7038
  var ce, Ee;
7039
7039
  (ce = w.current) != null && ce.visibility && ((Ee = D.current) != null && Ee.contains(ie.target) || w.current.hide());
@@ -7069,7 +7069,7 @@ const _e = ({
7069
7069
  },
7070
7070
  /* @__PURE__ */ e.createElement("img", { className: "shadow-center-lower", src: `${F.flag}`, alt: F.country, width: 26, "aria-hidden": !0 }),
7071
7071
  /* @__PURE__ */ e.createElement(ne, { name: "agora-solid-arrow-down", "aria-hidden": !0, className: "ml-8" })
7072
- ), /* @__PURE__ */ e.createElement("div", { className: "input-text-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "country-code" }, /* @__PURE__ */ e.createElement("span", { "aria-hidden": !0 }, "+(", F == null ? void 0 : F.code, ")"), /* @__PURE__ */ e.createElement("span", { className: "sr-only", "aria-live": "polite" }, `${F == null ? void 0 : F.country} +${F == null ? void 0 : F.code}`)), /* @__PURE__ */ e.createElement(
7072
+ ), /* @__PURE__ */ e.createElement("div", { className: "input-text-wrapper" }, /* @__PURE__ */ e.createElement("div", { className: "country-code" }, /* @__PURE__ */ e.createElement("span", { "aria-hidden": !0 }, "(+", F == null ? void 0 : F.code, ")"), /* @__PURE__ */ e.createElement("span", { className: "sr-only", "aria-live": "polite" }, `${F == null ? void 0 : F.country} +${F == null ? void 0 : F.code}`)), /* @__PURE__ */ e.createElement(
7073
7073
  "input",
7074
7074
  {
7075
7075
  ...G,
@@ -7092,7 +7092,7 @@ const _e = ({
7092
7092
  ref: w,
7093
7093
  onHide: Q,
7094
7094
  onShow: L,
7095
- onChange: ee,
7095
+ onChange: _,
7096
7096
  type: "text",
7097
7097
  searchable: E,
7098
7098
  searchAriaLabel: g,
@@ -7114,7 +7114,7 @@ const _e = ({
7114
7114
  icon: te.flag,
7115
7115
  disabled: te.code === F.code
7116
7116
  },
7117
- `+(${te.code}) ${te.country}`
7117
+ `(+${te.code}) ${te.country}`
7118
7118
  );
7119
7119
  }))
7120
7120
  ))), (s(c) || s(l)) && r && /* @__PURE__ */ e.createElement(
@@ -7140,7 +7140,7 @@ const _e = ({
7140
7140
  }, g) => {
7141
7141
  const d = le(), I = { ...m };
7142
7142
  I.id = I.id ?? d;
7143
- const { onChange: b } = I, [u, E] = V([l[0], l[1]]), N = C(l), Z = C(null), R = C(null), Y = C(null);
7143
+ const { onChange: b } = I, [u, E] = V([l[0], l[1]]), N = X(l), Z = X(null), R = X(null), Y = X(null);
7144
7144
  je(
7145
7145
  g,
7146
7146
  Z,
@@ -7148,7 +7148,7 @@ const _e = ({
7148
7148
  sliders: n === "single" ? [R.current] : [R.current, Y.current]
7149
7149
  },
7150
7150
  [n, Z.current, R.current, Y.current]
7151
- ), _(() => {
7151
+ ), ee(() => {
7152
7152
  if (N.current[0] !== l[0] || N.current[1] !== l[1]) {
7153
7153
  const k = [...l];
7154
7154
  n === "single" && (k[1] = Number(I.max)), E(k), N.current = k;
@@ -7171,7 +7171,7 @@ const _e = ({
7171
7171
  "has-label": !s(i),
7172
7172
  "has-error": s(c)
7173
7173
  }), [h, U] = V("#FFFFFF");
7174
- _(() => {
7174
+ ee(() => {
7175
7175
  const k = getComputedStyle(document.documentElement).getPropertyValue("--color-primary-600"), y = getComputedStyle(document.documentElement).getPropertyValue("--color-neutral-200"), W = Number(I.min), x = Number(I.max);
7176
7176
  if (n === "single" && !a) {
7177
7177
  let S = (u[0] - W) / (x - W) * 100;
@@ -7179,9 +7179,9 @@ const _e = ({
7179
7179
  return;
7180
7180
  }
7181
7181
  if (n === "double" && !a) {
7182
- let S = (u[0] - W) / (x - W) * 100, X = (u[1] - W) / (x - W) * 100;
7183
- S = Math.min(S, 100), X = Math.min(X, 100), U(
7184
- `linear-gradient(to right, ${y} ${S}%, ${k} ${S}%, ${k} ${X}%, ${y} ${X}%)`
7182
+ let S = (u[0] - W) / (x - W) * 100, C = (u[1] - W) / (x - W) * 100;
7183
+ S = Math.min(S, 100), C = Math.min(C, 100), U(
7184
+ `linear-gradient(to right, ${y} ${S}%, ${k} ${S}%, ${k} ${C}%, ${y} ${C}%)`
7185
7185
  );
7186
7186
  return;
7187
7187
  }
@@ -7275,8 +7275,8 @@ const _e = ({
7275
7275
  "agora-input-search",
7276
7276
  "bg-transparent",
7277
7277
  {
7278
- "has-leading-icon": o && (A == null ? void 0 : A.indexOf("agora-line")) === 0,
7279
- // allowing only line family icon
7278
+ "has-leading-icon": o && (A == null ? void 0 : A.indexOf("agora-solid")) === 0,
7279
+ // allowing only solid family icon
7280
7280
  "has-value": N
7281
7281
  },
7282
7282
  m
@@ -7297,7 +7297,7 @@ const _e = ({
7297
7297
  required: R,
7298
7298
  onChange: Y
7299
7299
  }
7300
- ), o && (A == null ? void 0 : A.startsWith("agora-line")) && /* @__PURE__ */ e.createElement("div", { className: U }, /* @__PURE__ */ e.createElement(ne, { name: A, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement("div", { className: "search-icon bg-transparent" }, /* @__PURE__ */ e.createElement(ne, { name: "agora-line-search", "aria-hidden": !0 }))), (s(a) || s(n)) && r && /* @__PURE__ */ e.createElement(
7300
+ ), o && (A == null ? void 0 : A.startsWith("agora-solid")) && /* @__PURE__ */ e.createElement("div", { className: U }, /* @__PURE__ */ e.createElement(ne, { name: A, "aria-hidden": !0 })), /* @__PURE__ */ e.createElement("div", { className: "search-icon bg-transparent" }, /* @__PURE__ */ e.createElement(ne, { name: "agora-line-search", "aria-hidden": !0, className: "icon-search-default" }), /* @__PURE__ */ e.createElement(ne, { name: "agora-solid-search", "aria-hidden": !0, className: "icon-search-hover" }))), (s(a) || s(n)) && r && /* @__PURE__ */ e.createElement(
7301
7301
  Ge,
7302
7302
  {
7303
7303
  id: `input-search-${E.id}-feedback`,
@@ -7309,15 +7309,15 @@ const _e = ({
7309
7309
  }, Ao = re(Ll), Ol = (t) => {
7310
7310
  let i = 0;
7311
7311
  return O.forEach(t, (n) => {
7312
- B(n) && O.forEach(n.props.children, (a) => {
7313
- B(a) && (i = a.props.disabled ? i : i + 1);
7312
+ T(n) && O.forEach(n.props.children, (a) => {
7313
+ T(a) && (i = a.props.disabled ? i : i + 1);
7314
7314
  });
7315
7315
  }), i;
7316
7316
  }, Ql = (t) => {
7317
7317
  const i = [];
7318
7318
  return O.forEach(t, (n) => {
7319
- B(n) && O.forEach(n.props.children, (a) => {
7320
- B(a) && a.props.selected && i.push(a.props);
7319
+ T(n) && O.forEach(n.props.children, (a) => {
7320
+ T(a) && a.props.selected && i.push(a.props);
7321
7321
  });
7322
7322
  }), i;
7323
7323
  }, Vl = ({
@@ -7350,14 +7350,14 @@ const _e = ({
7350
7350
  }, w) => {
7351
7351
  const v = le(), k = { ...U };
7352
7352
  k.id = k.id ?? v;
7353
- const [y, W] = V(!1), x = C(null), S = C(null), X = C(null), [F, T] = V([]), Q = U.disabled ? !1 : b, L = () => {
7354
- T([]), u == null || u([]);
7353
+ const [y, W] = V(!1), x = X(null), S = X(null), C = X(null), [F, B] = V([]), Q = U.disabled ? !1 : b, L = () => {
7354
+ B([]), u == null || u([]);
7355
7355
  };
7356
7356
  Se(w, () => ({
7357
7357
  selectedOptions: F,
7358
7358
  clearSelectedOptions: L
7359
7359
  }), [F]);
7360
- const ee = J(
7360
+ const _ = J(
7361
7361
  "agora-input-select",
7362
7362
  { dark: s(d) },
7363
7363
  {
@@ -7372,9 +7372,9 @@ const _e = ({
7372
7372
  "has-leading-icon": r && (o == null ? void 0 : o.indexOf("agora-line")) === 0
7373
7373
  // allowing only line family icon
7374
7374
  });
7375
- _(() => {
7375
+ ee(() => {
7376
7376
  const ce = Ql(p);
7377
- T(ce);
7377
+ B(ce);
7378
7378
  }, [p]);
7379
7379
  const z = Ol(p), H = oe(() => {
7380
7380
  var Ee;
@@ -7388,29 +7388,29 @@ const _e = ({
7388
7388
  W(!1), (ce = S.current) == null || ce.focus();
7389
7389
  }, P = () => {
7390
7390
  var ce;
7391
- W(!0), (ce = X.current) == null || ce.first();
7391
+ W(!0), (ce = C.current) == null || ce.first();
7392
7392
  }, q = (ce) => {
7393
- T(ce), u == null || u(ce);
7393
+ B(ce), u == null || u(ce);
7394
7394
  }, Ae = () => {
7395
7395
  var ce, Ee, ye;
7396
- (ce = X.current) != null && ce.visibility ? (Ee = X.current) == null || Ee.hide() : (ye = X.current) == null || ye.show();
7396
+ (ce = C.current) != null && ce.visibility ? (Ee = C.current) == null || Ee.hide() : (ye = C.current) == null || ye.show();
7397
7397
  }, se = () => {
7398
7398
  Ae();
7399
7399
  }, te = (ce) => {
7400
7400
  const Ee = ce.code;
7401
7401
  (Ee === "Enter" || Ee === "NumpadEnter" || Ee === "Space") && Ae();
7402
7402
  };
7403
- _(() => {
7403
+ ee(() => {
7404
7404
  const ce = (Ee) => {
7405
7405
  var ye, Ne;
7406
- (ye = X.current) != null && ye.visibility && !((Ne = x.current) != null && Ne.contains(Ee.target)) && X.current.hide();
7406
+ (ye = C.current) != null && ye.visibility && !((Ne = x.current) != null && Ne.contains(Ee.target)) && C.current.hide();
7407
7407
  };
7408
7408
  return document == null || document.addEventListener("click", ce), () => {
7409
7409
  document == null || document.removeEventListener("click", ce);
7410
7410
  };
7411
7411
  }, []);
7412
7412
  const ie = J("agora-input-select-label", { dark: s(d) });
7413
- return /* @__PURE__ */ e.createElement("div", { className: ee, hidden: !!k.hidden }, !s(i) && /* @__PURE__ */ e.createElement(
7413
+ return /* @__PURE__ */ e.createElement("div", { className: _, hidden: !!k.hidden }, !s(i) && /* @__PURE__ */ e.createElement(
7414
7414
  "label",
7415
7415
  {
7416
7416
  id: `agora-input-select-${k.id}-control-label`,
@@ -7444,7 +7444,7 @@ const _e = ({
7444
7444
  ), /* @__PURE__ */ e.createElement("div", { className: "absolute -bottom-8 left-0 w-full min-h-[8px]" }, /* @__PURE__ */ e.createElement(
7445
7445
  It,
7446
7446
  {
7447
- ref: X,
7447
+ ref: C,
7448
7448
  id: k.id,
7449
7449
  "aria-label": h,
7450
7450
  type: D,
@@ -7563,12 +7563,12 @@ const _e = ({
7563
7563
  ...b
7564
7564
  }, u) => {
7565
7565
  var F;
7566
- const E = typeof d < "u", N = typeof I < "u", [Z, R] = V(N ? I : ""), Y = E ? d : Z, j = (T) => {
7567
- g && g(T), E || R(T.target.value);
7566
+ const E = typeof d < "u", N = typeof I < "u", [Z, R] = V(N ? I : ""), Y = E ? d : Z, j = (B) => {
7567
+ g && g(B), E || R(B.target.value);
7568
7568
  }, p = le(), G = { ...b, value: Y };
7569
7569
  G.id = G.id ?? p, G.rows = Math.max(G.rows ?? 0, 3);
7570
- const [D, h] = V(G.value ? G.value.toString().length > 0 : !1), U = b.disabled || b.readOnly ? !1 : m, w = (T) => {
7571
- h(T.currentTarget.value.length > 0), j(T);
7570
+ const [D, h] = V(G.value ? G.value.toString().length > 0 : !1), U = b.disabled || b.readOnly ? !1 : m, w = (B) => {
7571
+ h(B.currentTarget.value.length > 0), j(B);
7572
7572
  }, v = s(o) ? "dark" : "", k = () => ({
7573
7573
  // main wrapper class
7574
7574
  inputWrapperClasses: J("agora-input-textarea-wrapper", v, {
@@ -7592,7 +7592,7 @@ const _e = ({
7592
7592
  },
7593
7593
  A
7594
7594
  )
7595
- }), { inputWrapperClasses: y, labelSectionClasses: W, inputClasses: x } = k(), S = J("input-textarea-label", v), X = J("char-counter", v);
7595
+ }), { inputWrapperClasses: y, labelSectionClasses: W, inputClasses: x } = k(), S = J("input-textarea-label", v), C = J("char-counter", v);
7596
7596
  return /* @__PURE__ */ e.createElement("div", { hidden: G.hidden, className: y }, /* @__PURE__ */ e.createElement("div", { className: W }, /* @__PURE__ */ e.createElement("label", { hidden: s(i), htmlFor: G.id, className: S }, t)), /* @__PURE__ */ e.createElement("div", { className: "input-wrapper flex relative items-center" }, /* @__PURE__ */ e.createElement(
7597
7597
  "textarea",
7598
7598
  {
@@ -7614,7 +7614,7 @@ const _e = ({
7614
7614
  feedbackText: c,
7615
7615
  darkMode: s(o)
7616
7616
  }
7617
- ), s(l) && /* @__PURE__ */ e.createElement("div", { className: X }, /* @__PURE__ */ e.createElement("span", null, `${((F = Y == null ? void 0 : Y.toString()) == null ? void 0 : F.length) ?? 0}`), G.maxLength && /* @__PURE__ */ e.createElement("span", null, ` / ${G.maxLength}`))));
7617
+ ), s(l) && /* @__PURE__ */ e.createElement("div", { className: C }, /* @__PURE__ */ e.createElement("span", null, `${((F = Y == null ? void 0 : Y.toString()) == null ? void 0 : F.length) ?? 0}`), G.maxLength && /* @__PURE__ */ e.createElement("span", null, ` / ${G.maxLength}`))));
7618
7618
  }, mo = re(Cl), Ai = /^(\d{2}):(\d{2})\s(AM|PM)$/, Xe = 1, Pe = 12, Ce = 0, Ke = 59, tt = {
7619
7619
  HOUR: "hh",
7620
7620
  MINUTE: "mm",
@@ -7672,9 +7672,9 @@ const _e = ({
7672
7672
  throw new Error("useTimeInputContext must be used within a TimeInputContextProvider");
7673
7673
  return t;
7674
7674
  }, ql = ({ setInputTextValue: t, className: i, hourInputPlaceholder: n, minuteInputPlaceholder: a, periodInputPlaceholder: l, ...c }, r) => {
7675
- const o = Gt(), A = C(null);
7675
+ const o = Gt(), A = X(null);
7676
7676
  Se(r, () => A.current, [A.current]);
7677
- const m = J("agora-time-input", i), g = C(null), d = (U, w) => U ? U.length === 1 ? U.repeat(2) : U.length > 2 ? U.slice(0, 2) : U : w, I = d(n, tt.HOUR), b = d(a, tt.MINUTE), u = d(l, tt.PERIOD), E = `${I}:${b} ${u}`, N = (U = !1) => {
7677
+ const m = J("agora-time-input", i), g = X(null), d = (U, w) => U ? U.length === 1 ? U.repeat(2) : U.length > 2 ? U.slice(0, 2) : U : w, I = d(n, tt.HOUR), b = d(a, tt.MINUTE), u = d(l, tt.PERIOD), E = `${I}:${b} ${u}`, N = (U = !1) => {
7678
7678
  var k;
7679
7679
  const w = ((k = A.current) == null ? void 0 : k.value) ?? "";
7680
7680
  if ((() => {
@@ -7700,35 +7700,35 @@ const _e = ({
7700
7700
  const w = U.target;
7701
7701
  w.value || (w.value = E);
7702
7702
  }, j = (U, w, v) => {
7703
- const { input: k, start: y, end: W, placeholder: x, minValue: S, maxValue: X, key: F } = U, T = (z, H, f) => {
7703
+ const { input: k, start: y, end: W, placeholder: x, minValue: S, maxValue: C, key: F } = U, B = (z, H, f) => {
7704
7704
  k.value = `${k.value.slice(0, z)}${f}${k.value.slice(H)}`, k.setSelectionRange(z, H);
7705
7705
  }, Q = (z) => {
7706
- T(
7706
+ B(
7707
7707
  y,
7708
7708
  W,
7709
- Math.min(Math.max(parseInt(z), S), X).toString().padStart(2, "0")
7709
+ Math.min(Math.max(parseInt(z), S), C).toString().padStart(2, "0")
7710
7710
  );
7711
7711
  }, L = (z) => {
7712
- const H = parseInt(k.value.slice(y, W)) || 0, f = z ? H >= X ? S : H + 1 : H <= S ? X : H - 1;
7712
+ const H = parseInt(k.value.slice(y, W)) || 0, f = z ? H >= C ? S : H + 1 : H <= S ? C : H - 1;
7713
7713
  Q(f.toString());
7714
- }, ee = () => {
7714
+ }, _ = () => {
7715
7715
  const z = k.value.slice(y, W), H = z === "00" || !z.startsWith("0") || z === x ? `0${F}` : z.charAt(1) + F;
7716
7716
  Q(H);
7717
- const f = parseInt(H), K = f >= 10, P = f * 10 >= X;
7717
+ const f = parseInt(H), K = f >= 10, P = f * 10 >= C;
7718
7718
  (K || P) && k.setSelectionRange(W + 1, W + 3);
7719
7719
  }, $ = () => {
7720
7720
  const z = w.ctrlKey || w.altKey || w.shiftKey;
7721
- (F === "a" || F === "A") && !z ? (w.preventDefault(), T(y, W, v.am.toUpperCase())) : (F === "p" || F === "P") && !z && (w.preventDefault(), T(y, W, v.pm.toUpperCase()));
7721
+ (F === "a" || F === "A") && !z ? (w.preventDefault(), B(y, W, v.am.toUpperCase())) : (F === "p" || F === "P") && !z && (w.preventDefault(), B(y, W, v.pm.toUpperCase()));
7722
7722
  };
7723
7723
  if (F === "Backspace")
7724
- w.preventDefault(), T(y, W, x);
7724
+ w.preventDefault(), B(y, W, x);
7725
7725
  else if (/\d/.test(F)) {
7726
7726
  if (w.preventDefault(), v) return;
7727
- ee();
7727
+ _();
7728
7728
  } else if (F === "ArrowUp" || F === "ArrowDown") {
7729
7729
  if (w.preventDefault(), v) {
7730
7730
  const z = k.value.slice(6, 8).toUpperCase();
7731
- T(6, 8, z === v.am.toUpperCase() ? v.pm.toUpperCase() : v.am.toUpperCase());
7731
+ B(6, 8, z === v.am.toUpperCase() ? v.pm.toUpperCase() : v.am.toUpperCase());
7732
7732
  return;
7733
7733
  }
7734
7734
  L(F === "ArrowUp");
@@ -7762,8 +7762,8 @@ const _e = ({
7762
7762
  };
7763
7763
  if (v < 3 && k <= 2 ? W() : v >= 3 && k <= 5 ? x() : v >= 6 && k <= 8 ? S() : W(), D(U, w, v), U.ctrlKey && y === "a" && (U.preventDefault(), w.select()), U.ctrlKey && y === "c") {
7764
7764
  U.preventDefault();
7765
- const X = w.value.substring(v, k);
7766
- navigator.clipboard.writeText(X);
7765
+ const C = w.value.substring(v, k);
7766
+ navigator.clipboard.writeText(C);
7767
7767
  }
7768
7768
  U.preventDefault(), g.current && clearTimeout(g.current), g.current = setTimeout(() => {
7769
7769
  N(!0);
@@ -7872,8 +7872,8 @@ const _e = ({
7872
7872
  const r = Gt(), [o, A] = V(!1), m = J(
7873
7873
  c,
7874
7874
  "absolute left-0 top-[68px] shadow-bottom-high bg-white p-16 border-2 border-[var(--color-neutral-200)] rounded-4 z-dropdown"
7875
- ), g = C(null);
7876
- if (_(() => {
7875
+ ), g = X(null);
7876
+ if (ee(() => {
7877
7877
  if (r.selectedTime) {
7878
7878
  if (!l)
7879
7879
  r.setSelectedHour(Oe.hour), r.setSelectedMinute(Oe.minute), r.setSelectedPeriod(Oe.period);
@@ -7918,23 +7918,23 @@ const _e = ({
7918
7918
  }, U) => {
7919
7919
  const w = le(), v = { ...h };
7920
7920
  v.id = v.id ?? w;
7921
- const k = h.disabled || h.readOnly ? !1 : a, y = C(null);
7921
+ const k = h.disabled || h.readOnly ? !1 : a, y = X(null);
7922
7922
  Se(U, () => y.current, [y.current]);
7923
- const W = C(null), [x, S] = V((R == null ? void 0 : R.toString()) ?? (Y == null ? void 0 : Y.toString()) ?? ""), X = C("empty"), [F, T] = V(+/* @__PURE__ */ new Date()), [Q, L] = V(!1), ee = () => {
7923
+ const W = X(null), [x, S] = V((R == null ? void 0 : R.toString()) ?? (Y == null ? void 0 : Y.toString()) ?? ""), C = X("empty"), [F, B] = V(+/* @__PURE__ */ new Date()), [Q, L] = V(!1), _ = () => {
7924
7924
  h.readOnly || L(!0);
7925
7925
  }, $ = () => {
7926
7926
  var ie;
7927
7927
  L(!1), (ie = y.current) == null || ie.focus();
7928
7928
  }, z = () => {
7929
- Q ? $() : ee();
7929
+ Q ? $() : _();
7930
7930
  }, H = () => {
7931
7931
  $();
7932
7932
  }, f = (ie) => {
7933
- ie !== X.current && (X.current = ie, T(+/* @__PURE__ */ new Date()));
7933
+ ie !== C.current && (C.current = ie, B(+/* @__PURE__ */ new Date()));
7934
7934
  }, K = (ie) => {
7935
7935
  S(ie), f(ie), H();
7936
7936
  };
7937
- _(() => {
7937
+ ee(() => {
7938
7938
  const ie = (ce) => {
7939
7939
  var ye;
7940
7940
  if (!Q)
@@ -7945,7 +7945,7 @@ const _e = ({
7945
7945
  return document.addEventListener("click", ie), () => {
7946
7946
  document.removeEventListener("click", ie);
7947
7947
  };
7948
- }, [Q]), _(() => {
7948
+ }, [Q]), ee(() => {
7949
7949
  var ce;
7950
7950
  const ie = (Ee) => {
7951
7951
  Ee.key === "Escape" && (Ee.preventDefault(), H());
@@ -7954,7 +7954,7 @@ const _e = ({
7954
7954
  var Ee;
7955
7955
  (Ee = W.current) == null || Ee.removeEventListener("keydown", ie);
7956
7956
  };
7957
- }, []), _(() => {
7957
+ }, []), ee(() => {
7958
7958
  Y || (S((R == null ? void 0 : R.toString()) ?? ""), f((R == null ? void 0 : R.toString()) ?? ""));
7959
7959
  }, [R]);
7960
7960
  const P = (ie) => {
@@ -7962,7 +7962,7 @@ const _e = ({
7962
7962
  }, q = (ie) => {
7963
7963
  S(ie.target.value), f(ie.target.value);
7964
7964
  };
7965
- _(() => {
7965
+ ee(() => {
7966
7966
  if (y.current) {
7967
7967
  const ie = Be(y.current, "change");
7968
7968
  De(() => j == null ? void 0 : j(ie));
@@ -8038,7 +8038,7 @@ const _e = ({
8038
8038
  const a = J("agora-loader-dialog");
8039
8039
  return /* @__PURE__ */ e.createElement("div", { ...n, 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" }, (t || i) && /* @__PURE__ */ e.createElement("div", { className: "flex w-full flex-col gap-8 justify-center items-center text-center" }, t && /* @__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" }, t), i && /* @__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" }, i)), /* @__PURE__ */ e.createElement("div", { className: a, 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)]" }))));
8040
8040
  }, di = ze({}), Eo = () => Te(di), go = ({ children: t }) => {
8041
- const i = C(null), [n, a] = V(), [l, c] = V(""), r = be(
8041
+ const i = X(null), [n, a] = V(), [l, c] = V(""), r = be(
8042
8042
  (m) => {
8043
8043
  var g, d, I;
8044
8044
  if (m["aria-label"])
@@ -8089,7 +8089,7 @@ const _e = ({
8089
8089
  t.closeButtonLabel
8090
8090
  )), /* @__PURE__ */ e.createElement("div", { className: "agora-modal-dialog-body" }, /* @__PURE__ */ e.createElement("div", { className: "agora-modal-dialog-body-content" }, i))));
8091
8091
  }, lc = ({ dismissOnEscape: t = !0, children: i }) => {
8092
- const n = C(null), [a, l] = V(), [c, r] = V(), o = (g, d) => {
8092
+ const n = X(null), [a, l] = V(), [c, r] = V(), o = (g, d) => {
8093
8093
  l(g), r(d), De(() => {
8094
8094
  var I;
8095
8095
  return (I = n.current) == null ? void 0 : I.show();
@@ -8226,7 +8226,7 @@ const _e = ({
8226
8226
  activeButton: r,
8227
8227
  withIcon: o
8228
8228
  }) => {
8229
- const A = le(), { show: m } = mi(), g = C([]), [d, I] = V(new Array(l.length).fill(!1)), [b, u] = V(r), E = J("panel-switcher-mobile"), N = J("panel-button-list mobile"), Z = (G) => {
8229
+ const A = le(), { show: m } = mi(), g = X([]), [d, I] = V(new Array(l.length).fill(!1)), [b, u] = V(r), E = J("panel-switcher-mobile"), N = J("panel-button-list mobile"), Z = (G) => {
8230
8230
  const D = g.current[G], h = c[G].props.children, U = {
8231
8231
  closeButtonLabel: `${t}`,
8232
8232
  darkMode: !1,
@@ -8236,7 +8236,7 @@ const _e = ({
8236
8236
  };
8237
8237
  m(/* @__PURE__ */ e.createElement(rc, { content: h }), U);
8238
8238
  };
8239
- _(() => {
8239
+ ee(() => {
8240
8240
  var G;
8241
8241
  b !== void 0 && g.current[b] && ((G = g.current[b]) == null || G.focus());
8242
8242
  }, [b]);
@@ -8301,15 +8301,15 @@ const _e = ({
8301
8301
  leadingIcon: a,
8302
8302
  leadingIconHover: l
8303
8303
  }) => {
8304
- const c = C(null), r = C(null), [o, A] = V(0), [m, g] = V([]), [d, I] = V([]), { width: b } = pe(), { xlScreen: u } = ve(), E = b < u, N = (Z) => {
8304
+ const c = X(null), r = X(null), [o, A] = V(0), [m, g] = V([]), [d, I] = V([]), { width: b } = pe(), { xlScreen: u } = ve(), E = b < u, N = (Z) => {
8305
8305
  A(Z);
8306
8306
  };
8307
- return _(() => {
8307
+ return ee(() => {
8308
8308
  const Z = O.toArray(t), R = [], Y = [];
8309
8309
  Z.forEach((j) => {
8310
8310
  if (Array.isArray(j.props.children)) {
8311
8311
  const [p, G] = j.props.children;
8312
- p && B(p) && R.push(p), G && B(G) && Y.push(G);
8312
+ p && T(p) && R.push(p), G && T(G) && Y.push(G);
8313
8313
  }
8314
8314
  }), g(R), I(Y);
8315
8315
  }, [t]), /* @__PURE__ */ e.createElement(e.Fragment, null, E ? /* @__PURE__ */ e.createElement(
@@ -8435,94 +8435,98 @@ const _e = ({
8435
8435
  currentType: r = "neutral",
8436
8436
  ...o
8437
8437
  }) => {
8438
- const A = C(null), m = C(null), g = C(null), [d, I] = V(0), [b, u] = V(0), [E, N] = V([]), [Z, R] = V([]), { width: Y } = pe(), { xlScreen: j } = ve(), p = Y < j, G = (S) => {
8438
+ const A = X(null), m = X(null), g = X(null), [d, I] = V(0), [b, u] = V(0), [E, N] = V([]), [Z, R] = V([]), { width: Y } = pe(), { xlScreen: j } = ve(), p = Y < j, G = (S) => {
8439
8439
  I(S), c == null || c(S);
8440
8440
  }, D = () => {
8441
8441
  G(b);
8442
8442
  };
8443
- _(() => {
8444
- const S = [], X = [], F = O.toArray(t);
8445
- O.forEach(F, (T, Q) => {
8446
- var L, ee, $, z;
8447
- B(T) && (s(T.props.active) && G(Q), S.push((ee = (L = T.props) == null ? void 0 : L.children) == null ? void 0 : ee[0]), X.push((z = ($ = T.props) == null ? void 0 : $.children) == null ? void 0 : z[1]));
8448
- }), N(S), R(X);
8443
+ ee(() => {
8444
+ const S = [], C = [], F = O.toArray(t);
8445
+ O.forEach(F, (B, Q) => {
8446
+ var L, _, $, z;
8447
+ T(B) && (s(B.props.active) && G(Q), S.push((_ = (L = B.props) == null ? void 0 : L.children) == null ? void 0 : _[0]), C.push((z = ($ = B.props) == null ? void 0 : $.children) == null ? void 0 : z[1]));
8448
+ }), N(S), R(C);
8449
8449
  }, [t]);
8450
8450
  const h = (S) => {
8451
- var T;
8452
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8451
+ var B;
8452
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8453
8453
  return;
8454
8454
  let F = b;
8455
8455
  !s(l) && !p && (b === S.length - 1 ? (S[0].focus(), F = 0) : (F = b + 1, S[F].focus()), u(F), s(i) && G(F));
8456
8456
  }, U = (S) => {
8457
- var T;
8458
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8457
+ var B;
8458
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8459
8459
  return;
8460
8460
  let F = b;
8461
8461
  !s(l) && !p && (b === 0 ? (S[S.length - 1].focus(), F = S.length - 1) : (F = b - 1, S[F].focus()), u(F), s(i) && G(F));
8462
8462
  }, w = (S) => {
8463
- var T;
8464
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8463
+ var B;
8464
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8465
8465
  return;
8466
8466
  let F = b;
8467
8467
  (s(l) || p) && (b === S.length - 1 ? (S[0].focus(), F = 0) : (F = b + 1, S[F].focus()), u(F), s(i) && G(F));
8468
8468
  }, v = (S) => {
8469
- var T;
8470
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8469
+ var B;
8470
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8471
8471
  return;
8472
8472
  let F = b;
8473
8473
  (s(l) || p) && (b === 0 ? (S[S.length - 1].focus(), F = S.length - 1) : (F = b - 1, S[F].focus()), u(F), s(i) && G(F));
8474
8474
  }, k = (S) => {
8475
- var T;
8476
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8475
+ var B;
8476
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8477
8477
  return;
8478
8478
  const F = 0;
8479
8479
  S[F] && (S[F].focus(), u(F), s(i) && G(F));
8480
8480
  }, y = (S) => {
8481
- var T;
8482
- if (!((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")))
8481
+ var B;
8482
+ if (!((B = document.activeElement) == null ? void 0 : B.classList.contains("tab-list-item")))
8483
8483
  return;
8484
8484
  const F = S.length - 1;
8485
8485
  S[F] && (S[F].focus(), u(F), s(i) && G(F));
8486
8486
  }, W = (S) => {
8487
- var F, T, Q;
8487
+ var Q, L, _, $;
8488
+ const C = S.target.tagName, F = (Q = S.target.parentElement) == null ? void 0 : Q.role;
8488
8489
  if (p)
8489
8490
  return;
8490
- const X = Array.from(((F = m.current) == null ? void 0 : F.querySelectorAll(".tab-list-item")) ?? []).map((L) => L);
8491
- if (X.length != 0) {
8491
+ const B = Array.from(((L = m.current) == null ? void 0 : L.querySelectorAll(".tab-list-item")) ?? []).map((z) => z);
8492
+ if (B.length != 0) {
8492
8493
  if (S.code === "Tab") {
8493
- if (((T = document.activeElement) == null ? void 0 : T.classList.contains("tab-list-item")) && !S.shiftKey) {
8494
- S.preventDefault(), (Q = A.current) == null || Q.focus();
8494
+ if (((_ = document.activeElement) == null ? void 0 : _.classList.contains("tab-list-item")) && !S.shiftKey) {
8495
+ S.preventDefault(), ($ = A.current) == null || $.focus();
8495
8496
  return;
8496
8497
  }
8497
8498
  if (A.current === document.activeElement && S.shiftKey) {
8498
- S.preventDefault(), X[d] && X[d].focus();
8499
+ S.preventDefault(), B[d] && B[d].focus();
8499
8500
  return;
8500
8501
  }
8501
8502
  return;
8502
8503
  }
8503
8504
  switch (S.code) {
8504
8505
  case "Home":
8505
- k(X);
8506
+ k(B);
8506
8507
  break;
8507
8508
  case "End":
8508
- y(X);
8509
+ y(B);
8509
8510
  break;
8510
8511
  case "ArrowRight":
8511
- h(X);
8512
+ h(B);
8512
8513
  break;
8513
8514
  case "ArrowLeft":
8514
- U(X);
8515
+ U(B);
8515
8516
  break;
8516
8517
  case "ArrowDown":
8517
- w(X);
8518
+ w(B);
8518
8519
  break;
8519
8520
  case "ArrowUp":
8520
- v(X);
8521
+ v(B);
8521
8522
  break;
8522
8523
  case "Enter":
8523
8524
  case "NumpadEnter":
8524
8525
  case "Space":
8525
- S.preventDefault(), D();
8526
+ if (C === "BUTTON" && F === "tablist") {
8527
+ S.preventDefault(), D();
8528
+ break;
8529
+ }
8526
8530
  break;
8527
8531
  }
8528
8532
  }
@@ -8569,10 +8573,10 @@ const _e = ({
8569
8573
  return /* @__PURE__ */ e.createElement(mc, { key: m }, /* @__PURE__ */ e.createElement(Nc, null, o.header), /* @__PURE__ */ e.createElement(dc, null, o.body));
8570
8574
  })));
8571
8575
  }, bi = ze({}), gc = () => Te(bi), Ic = ({ configurations: t, children: i }) => {
8572
- const { height: n, width: a } = pe(), l = C(null), c = C(null), [r, o] = V(""), [A, m] = V(""), { hide: g } = gc(), d = J("agora-popup-dialog max-h-full rounded-16 p-32", `agora-popup-dialog-${t.dimensions}`, {
8576
+ const { height: n, width: a } = pe(), l = X(null), c = X(null), [r, o] = V(""), [A, m] = V(""), { hide: g } = gc(), d = J("agora-popup-dialog max-h-full rounded-16 p-32", `agora-popup-dialog-${t.dimensions}`, {
8573
8577
  "dark-mode": s(t.darkMode)
8574
8578
  }), I = J("title mt-8 w-full line-clamp-6 text-xl-bold");
8575
- return _(() => {
8579
+ return ee(() => {
8576
8580
  const b = l.current, u = c.current;
8577
8581
  if (b && u) {
8578
8582
  let E = 128;
@@ -8595,7 +8599,7 @@ const _e = ({
8595
8599
  }
8596
8600
  )), /* @__PURE__ */ e.createElement("div", { style: { maxHeight: A ?? "none" }, className: "agora-popup-dialog-body overflow-y-auto" }, i)));
8597
8601
  }, Ro = ({ dismissOnBackdropClick: t = !0, dismissOnEscape: i = !0, children: n }) => {
8598
- const a = C(null), [l, c] = V(), [r, o] = V(), A = be(
8602
+ const a = X(null), [l, c] = V(), [r, o] = V(), A = be(
8599
8603
  (d, I) => {
8600
8604
  var b;
8601
8605
  c(d), o(I), (b = a.current) == null || b.show();
@@ -8672,22 +8676,22 @@ const _e = ({
8672
8676
  const r = O.toArray(a), o = oe(() => {
8673
8677
  let b = !1, u = 0;
8674
8678
  if (r.forEach((N) => {
8675
- B(N) && N.props.current && (u += 1, b = !0);
8679
+ T(N) && N.props.current && (u += 1, b = !0);
8676
8680
  }), !b)
8677
8681
  return 0;
8678
8682
  if (b && u === 1)
8679
- return r.findIndex((N) => B(N) && N.props.current);
8680
- const E = r.findIndex((N) => B(N) ? Math.max(0, Math.min(N.props.value ?? 0, N.props.max ?? 0)) < (N.props.max ?? 0) : !1);
8683
+ return r.findIndex((N) => T(N) && N.props.current);
8684
+ const E = r.findIndex((N) => T(N) ? Math.max(0, Math.min(N.props.value ?? 0, N.props.max ?? 0)) < (N.props.max ?? 0) : !1);
8681
8685
  return E < 0 ? r.length - 1 : E;
8682
8686
  }, [r]), A = oe(() => {
8683
8687
  let b = 0;
8684
8688
  return r.forEach((u) => {
8685
- B(u) && (b += u.props.max ?? 0);
8689
+ T(u) && (b += u.props.max ?? 0);
8686
8690
  }), b;
8687
8691
  }, [r]), m = oe(() => {
8688
8692
  let b = 0;
8689
8693
  return r.forEach((u) => {
8690
- B(u) && (b += u.props.value ?? 0);
8694
+ T(u) && (b += u.props.value ?? 0);
8691
8695
  }), b;
8692
8696
  }, [r]), g = (b, u) => {
8693
8697
  const E = u === o;
@@ -8701,7 +8705,7 @@ const _e = ({
8701
8705
  }, d = () => {
8702
8706
  let b = 0;
8703
8707
  return O.forEach(a, (u, E) => {
8704
- B(u) && u.props.value !== void 0 && u.props.max !== void 0 && (!l || E <= o) && (b += Math.min(u.props.value, u.props.max));
8708
+ T(u) && u.props.value !== void 0 && u.props.max !== void 0 && (!l || E <= o) && (b += Math.min(u.props.value, u.props.max));
8705
8709
  }), Math.round(b / A * 100);
8706
8710
  }, I = J("progress-bar-percentage", {
8707
8711
  "sr-only": n,
@@ -8717,7 +8721,7 @@ const _e = ({
8717
8721
  "aria-valuemax": 100,
8718
8722
  "aria-label": t
8719
8723
  },
8720
- O.map(a, (b, u) => B(b) ? g(b, u) : null)
8724
+ O.map(a, (b, u) => T(b) ? g(b, u) : null)
8721
8725
  ), !n && /* @__PURE__ */ e.createElement("div", { className: I, role: "status" }, d(), "%"));
8722
8726
  }, uc = ({
8723
8727
  label: t,
@@ -8767,7 +8771,7 @@ const _e = ({
8767
8771
  )));
8768
8772
  }, Rc = re(uc), Zo = ({ children: t, className: i = "", ...n }) => {
8769
8773
  let a = !1;
8770
- B(t) && t.type === Rc && (a = !!t.props.checked), B(t) && t.type === In && (a = !!t.props.checked);
8774
+ T(t) && t.type === Rc && (a = !!t.props.checked), T(t) && t.type === In && (a = !!t.props.checked);
8771
8775
  const l = J(i, "agora-quiz-option", {
8772
8776
  selected: a
8773
8777
  });
@@ -8800,7 +8804,7 @@ const _e = ({
8800
8804
  }) => {
8801
8805
  const g = le(), d = (s(a) || s(n)) && c, I = (E) => {
8802
8806
  r == null || r(E);
8803
- }, b = J("agora-radio-button-group", t), u = O.map(o, (E) => B(E) ? ge(E, {
8807
+ }, b = J("agora-radio-button-group", t), u = O.map(o, (E) => T(E) ? ge(E, {
8804
8808
  onChange: I,
8805
8809
  name: A ?? g,
8806
8810
  hasError: s(n),
@@ -8902,7 +8906,7 @@ const _e = ({
8902
8906
  ...g
8903
8907
  }, d) => {
8904
8908
  const { width: I } = pe(), [b, u] = V(0), E = J("nav-arrows");
8905
- I < 360 && (l = 1, c = 0), _(() => {
8909
+ I < 360 && (l = 1, c = 0), ee(() => {
8906
8910
  De(() => m == null ? void 0 : m(b));
8907
8911
  }, [b]);
8908
8912
  const N = () => {
@@ -8979,7 +8983,7 @@ const _e = ({
8979
8983
  backButtonLabel: l,
8980
8984
  sidebarRef: c
8981
8985
  }) => {
8982
- const r = C(null), o = () => {
8986
+ const r = X(null), o = () => {
8983
8987
  var b;
8984
8988
  (b = r.current) == null || b.hide();
8985
8989
  }, A = () => {
@@ -9036,7 +9040,7 @@ const _e = ({
9036
9040
  ...o
9037
9041
  }) => {
9038
9042
  let A, m = [];
9039
- const g = le(), d = C(null), { width: I } = pe(), { xlScreen: b } = ve(), u = I < b, [E, N] = V(!1), [Z, R] = V(!1), Y = J("agora-sidebar", { darkMode: s(l) }, t);
9043
+ const g = le(), d = X(null), { width: I } = pe(), { xlScreen: b } = ve(), u = I < b, [E, N] = V(!1), [Z, R] = V(!1), Y = J("agora-sidebar", { darkMode: s(l) }, t);
9040
9044
  i && (Array.isArray(i) ? m = i : [i].forEach((D) => m.push(D))), s(n) ? A = m == null ? void 0 : m.map((D, h) => {
9041
9045
  const U = `li-${h}-${g}`;
9042
9046
  return ge(D, {
@@ -9080,7 +9084,7 @@ const _e = ({
9080
9084
  if (d.current) {
9081
9085
  const U = O.toArray(i);
9082
9086
  O.forEach(U, (w) => {
9083
- if (!B(w))
9087
+ if (!T(w))
9084
9088
  return;
9085
9089
  const v = w.props, k = [v.item].some((W) => !!W.collapsedIconLeading);
9086
9090
  D.push(k);
@@ -9090,7 +9094,7 @@ const _e = ({
9090
9094
  }
9091
9095
  }
9092
9096
  };
9093
- return _(() => {
9097
+ return ee(() => {
9094
9098
  p(), G();
9095
9099
  }, [d.current]), /* @__PURE__ */ e.createElement(e.Fragment, null, (!u || a === "filter") && /* @__PURE__ */ e.createElement("ul", { ref: d, className: Y, ...o, ...a === "navigation" ? { role: "tree" } : void 0 }, A), a === "navigation" && u && /* @__PURE__ */ e.createElement(
9096
9100
  wc,
@@ -9120,7 +9124,7 @@ const _e = ({
9120
9124
  return !1;
9121
9125
  s(l.ariaExpanded) && (l.classList.contains("agora-sidebar-button-item") ? (l.setAttribute("data-custom-triggered-click", "true"), l.click()) : (c = l.querySelector(".icon-wrapper")) == null || c.click());
9122
9126
  }), !1) : !1, jc = ({ children: t, item: i, open: n = !1, flat: a = !1, darkMode: l }, c) => {
9123
- const r = le(), o = C(null), A = C(null), [m, g] = V(s(n)), d = J("agora-sidebar-btn-item-filter"), I = J("agora-sidebar-content-item", {
9127
+ const r = le(), o = X(null), A = X(null), [m, g] = V(s(n)), d = J("agora-sidebar-btn-item-filter"), I = J("agora-sidebar-content-item", {
9124
9128
  collapsed: !s(n) && !s(a)
9125
9129
  }), b = () => {
9126
9130
  g(Ii("filter", A.current));
@@ -9130,9 +9134,9 @@ const _e = ({
9130
9134
  var Y;
9131
9135
  u(), (Y = i.onClick) == null || Y.call(i, R);
9132
9136
  };
9133
- _(() => {
9137
+ ee(() => {
9134
9138
  g(gi(a, A.current, n, m));
9135
- }, []), _(() => {
9139
+ }, []), ee(() => {
9136
9140
  A.current.classList.contains("collapsed") ? [
9137
9141
  ...A.current.querySelectorAll(
9138
9142
  '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"])'
@@ -9273,7 +9277,7 @@ const _e = ({
9273
9277
  let o, A, m = [], g = [];
9274
9278
  const [d, I] = V(s(a)), [b, u] = V(!1), E = J("agora-sidebar-content-item", {
9275
9279
  collapsed: !s(a) && !s(l)
9276
- }), N = C(null), Z = C(null), R = C(null), Y = () => {
9280
+ }), N = X(null), Z = X(null), R = X(null), Y = () => {
9277
9281
  I(Ii("navigation", R.current));
9278
9282
  }, j = () => {
9279
9283
  N.current && (jt(N.current), Y()), Z.current && (jt(Z.current), Y());
@@ -9414,7 +9418,7 @@ const _e = ({
9414
9418
  className: `data-children-wrapper ${z.leadingIcon || z.leadingIconHover ? "" : "pl-[44px]"} ${z.trailingIcon || z.trailingIconHover ? "" : "pr-[44px]"}`
9415
9419
  },
9416
9420
  [H.props.children].map((f) => f)
9417
- ), (z.trailingIcon || z.trailingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper ml-auto justify-end", role: "none", onClick: h }, z.trailingIcon && /* @__PURE__ */ e.createElement(ne, { name: z.trailingIcon, dimensions: "m", "aria-hidden": !0, ...b ? { style: { display: "none" } } : "" }), z.trailingIconHover && /* @__PURE__ */ e.createElement(ne, { name: z.trailingIconHover, dimensions: "m", "aria-hidden": !0, ...b ? "" : { style: { display: "none" } } }))), X = (z, H, f, K) => ge(z, {
9421
+ ), (z.trailingIcon || z.trailingIconHover) && /* @__PURE__ */ e.createElement("span", { className: "icon-wrapper ml-auto justify-end", role: "none", onClick: h }, z.trailingIcon && /* @__PURE__ */ e.createElement(ne, { name: z.trailingIcon, dimensions: "m", "aria-hidden": !0, ...b ? { style: { display: "none" } } : "" }), z.trailingIconHover && /* @__PURE__ */ e.createElement(ne, { name: z.trailingIconHover, dimensions: "m", "aria-hidden": !0, ...b ? "" : { style: { display: "none" } } }))), C = (z, H, f, K) => ge(z, {
9418
9422
  onClick: (P) => p(P, z.props),
9419
9423
  onKeyUp: G,
9420
9424
  onKeyDown: D,
@@ -9432,10 +9436,10 @@ const _e = ({
9432
9436
  let P;
9433
9437
  for (let q = 0; q < z.length; q++) {
9434
9438
  const Ae = z, se = S(f, Ae[0]);
9435
- q === 0 ? P = X(Ae[0], K, H, se) : q > 0 && P && (P = ge(z[q], { children: P, key: H }));
9439
+ q === 0 ? P = C(Ae[0], K, H, se) : q > 0 && P && (P = ge(z[q], { children: P, key: H }));
9436
9440
  }
9437
9441
  return P;
9438
- }, T = (z, H, f, K) => {
9442
+ }, B = (z, H, f, K) => {
9439
9443
  var Ae;
9440
9444
  let P = z, q = [];
9441
9445
  for (; P !== null; )
@@ -9447,7 +9451,7 @@ const _e = ({
9447
9451
  P = null;
9448
9452
  if (k) {
9449
9453
  const se = S(K, z);
9450
- return X(z, H, f, se);
9454
+ return C(z, H, f, se);
9451
9455
  } else
9452
9456
  return ge(z, { key: f });
9453
9457
  }, Q = () => m == null ? void 0 : m.map((z, H) => {
@@ -9455,19 +9459,19 @@ const _e = ({
9455
9459
  if (z.props.href) {
9456
9460
  k = !0;
9457
9461
  const q = S(P, z);
9458
- return X(z, K, f, q);
9462
+ return C(z, K, f, q);
9459
9463
  } else
9460
- return T(z, K, f, P);
9464
+ return B(z, K, f, P);
9461
9465
  }), L = () => g == null ? void 0 : g.map((z, H) => {
9462
9466
  const f = `li-${H}-${r}`;
9463
9467
  return z.props.item ? ge(z, { flat: `${l}`, variant: i, darkMode: s(c), key: f }) : /* @__PURE__ */ e.createElement("li", { key: f, role: "none", className: "agora-sidebar-item" }, ge(z));
9464
9468
  });
9465
- s(l) ? (o = x(), A = L()) : (o = Q(), A = L()), _(() => {
9469
+ s(l) ? (o = x(), A = L()) : (o = Q(), A = L()), ee(() => {
9466
9470
  I(gi(l, R.current, a, d));
9467
9471
  }, []);
9468
- const ee = wt(n, d), $ = J("agora-sidebar-button-item", {
9469
- "!pl-[42px]": ee.leadingIcon === void 0,
9470
- "!pr-[42px]": ee.trailingIcon === void 0
9472
+ const _ = wt(n, d), $ = J("agora-sidebar-button-item", {
9473
+ "!pl-[42px]": _.leadingIcon === void 0,
9474
+ "!pr-[42px]": _.trailingIcon === void 0
9471
9475
  });
9472
9476
  return /* @__PURE__ */ e.createElement(e.Fragment, null, k && o.length > 0 && /* @__PURE__ */ e.createElement(
9473
9477
  it,
@@ -9488,7 +9492,7 @@ const _e = ({
9488
9492
  className: $,
9489
9493
  fullWidth: !0,
9490
9494
  ...s(l) ? void 0 : { hasIcon: !0 },
9491
- ...ee,
9495
+ ..._,
9492
9496
  "aria-expanded": d,
9493
9497
  "aria-owns": `treeitem-${r}`,
9494
9498
  onClick: (z) => h(z, n),
@@ -9527,7 +9531,7 @@ const _e = ({
9527
9531
  const r = J("agora-sidebar-item", t);
9528
9532
  return /* @__PURE__ */ e.createElement("li", { className: r, ...i === "navigation" ? { role: "none" } : void 0 }, i === "filter" && /* @__PURE__ */ e.createElement(hc, { ...l, darkMode: a, item: n, ref: c }), i === "navigation" && /* @__PURE__ */ e.createElement(Lc, { ...l, darkMode: a, ...i ? { variant: i } : void 0, item: n }));
9529
9533
  }, ho = re(Oc), Qc = ({ className: t, containerSkipNavRef: i, multipleLinks: n, ...a }) => {
9530
- const l = C(null), [c, r] = V(!1), o = () => {
9534
+ const l = X(null), [c, r] = V(!1), o = () => {
9531
9535
  var D, h;
9532
9536
  (D = l.current) == null || D.classList.add("hidden"), (h = i.current) == null || h.classList.remove("show"), r(!1);
9533
9537
  }, A = (D) => {
@@ -9592,11 +9596,11 @@ const _e = ({
9592
9596
  let Y = [];
9593
9597
  const j = (D, h = 0) => {
9594
9598
  D.forEach((U, w) => {
9595
- var T;
9599
+ var B;
9596
9600
  const v = Object.keys(U), k = v.findIndex((Q) => Q != "link"), y = v[k];
9597
9601
  let W;
9598
- const x = U[y], S = x.link, X = Object.keys(x).length;
9599
- (T = S == null ? void 0 : S.props) != null && T.href ? W = ge(x.link, {
9602
+ const x = U[y], S = x.link, C = Object.keys(x).length;
9603
+ (B = S == null ? void 0 : S.props) != null && B.href ? W = ge(x.link, {
9600
9604
  role: "menuitem",
9601
9605
  className: `skip-level-${h}`,
9602
9606
  onClick: o,
@@ -9606,7 +9610,7 @@ const _e = ({
9606
9610
  onKeyDownCapture: (Q) => d(Q)
9607
9611
  }) : W = R(S, h);
9608
9612
  const F = `link-lvl-${h}-${w}`;
9609
- X > 1 ? (Y = [
9613
+ C > 1 ? (Y = [
9610
9614
  ...Y,
9611
9615
  /* @__PURE__ */ e.createElement(it, { key: F, appearance: "link", variant: "neutral", className: "skip-option" }, W)
9612
9616
  ], j([x], h + 1)) : Y = [
@@ -9622,7 +9626,7 @@ const _e = ({
9622
9626
  var h, U, w;
9623
9627
  (h = i.current) != null && h.contains(D.target) || ((U = l.current) == null || U.classList.add("hidden"), (w = i.current) == null || w.classList.remove("show"), r(!1));
9624
9628
  }, []);
9625
- return _(() => (document == null || document.addEventListener("click", G), () => {
9629
+ return ee(() => (document == null || document.addEventListener("click", G), () => {
9626
9630
  document == null || document.removeEventListener("click", G);
9627
9631
  }), []), /* @__PURE__ */ e.createElement("div", { className: t, ref: i, ...a }, /* @__PURE__ */ e.createElement(
9628
9632
  ae,
@@ -9676,7 +9680,7 @@ const _e = ({
9676
9680
  const l = Cc(n, i, { className: t, containerSkipNavRef: i, singleLink: n, ...a });
9677
9681
  return /* @__PURE__ */ e.createElement(e.Fragment, null, l && /* @__PURE__ */ e.createElement("div", { className: t, ref: i, ...a }, /* @__PURE__ */ e.createElement(it, { inline: !0 }, l)));
9678
9682
  }, Hc = ({ multiple: t = "false", singleLink: i, multipleLinks: n, ...a }, l) => {
9679
- const c = C(null);
9683
+ const c = X(null);
9680
9684
  Se(l, () => c.current);
9681
9685
  const r = J("agora-skip-navigation container mx-auto py-16", a.className);
9682
9686
  return /* @__PURE__ */ e.createElement(e.Fragment, null, s(t) && n && /* @__PURE__ */ e.createElement(Qc, { className: r, containerSkipNavRef: c, multipleLinks: n }), !s(t) && i && /* @__PURE__ */ e.createElement(
@@ -9759,7 +9763,7 @@ const _e = ({
9759
9763
  const n = J("agora-step-list");
9760
9764
  return /* @__PURE__ */ e.createElement("ol", { className: n, ...i }, t);
9761
9765
  }, er = (t, i, n) => /* @__PURE__ */ e.createElement(e.Fragment, null, i === "draft" && /* @__PURE__ */ e.createElement(Je, { className: "icon-wrapper trailing", state: t }, /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "default", name: "agora-line-edit", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "hover", name: "agora-solid-edit", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "active", name: "agora-solid-edit", "aria-hidden": !0 })), i === "current" && /* @__PURE__ */ e.createElement(Je, { className: "icon-wrapper trailing", state: t }, /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "default", name: "agora-line-edit", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "hover", name: "agora-solid-edit", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "active", name: "agora-solid-edit", "aria-hidden": !0 })), i === "done" && /* @__PURE__ */ e.createElement(Je, { className: "icon-wrapper trailing", state: t }, /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "default", name: "agora-line-check", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "hover", name: "agora-solid-check", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "active", name: "agora-solid-check", "aria-hidden": !0 })), i === "error" && /* @__PURE__ */ e.createElement(Je, { className: "icon-wrapper trailing", state: t }, /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "default", name: "agora-line-alert-triangle", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "hover", name: "agora-solid-alert-triangle", "aria-hidden": !0 }), /* @__PURE__ */ e.createElement(de, { dimensions: n, state: "active", name: "agora-solid-alert-triangle", "aria-hidden": !0 }))), tr = (t, i) => /* @__PURE__ */ e.createElement(e.Fragment, null, t === "draft" && /* @__PURE__ */ e.createElement(ne, { dimensions: i, name: "agora-line-edit", "aria-hidden": !0 }), t === "current" && /* @__PURE__ */ e.createElement(ne, { dimensions: i, name: "agora-line-edit", "aria-hidden": !0 }), t === "done" && /* @__PURE__ */ e.createElement(ne, { dimensions: i, name: "agora-line-check", "aria-hidden": !0 }), t === "error" && /* @__PURE__ */ e.createElement(ne, { dimensions: i, name: "agora-line-alert-triangle", "aria-hidden": !0 })), ir = ({ interactive: t = !1, status: i = "default", children: n, ...a }) => {
9762
- const { width: l } = pe(), { xlScreen: c } = ve(), r = l < c, o = C(null), [A, m] = V("default"), g = J("step", i, { "read-only": !s(t) }), d = (R) => {
9766
+ const { width: l } = pe(), { xlScreen: c } = ve(), r = l < c, o = X(null), [A, m] = V("default"), g = J("step", i, { "read-only": !s(t) }), d = (R) => {
9763
9767
  var Y, j;
9764
9768
  (R.code === "Enter" || R.code === "NumpadEnter" || R.code === "Space") && ((Y = o.current) == null || Y.classList.add("active"), m("active")), (j = a.onKeyDown) == null || j.call(a, R);
9765
9769
  }, I = (R) => {
@@ -9815,7 +9819,7 @@ const _e = ({
9815
9819
  }, nr = ({ className: t, children: i, interactive: n = !1, ...a }, l) => {
9816
9820
  const c = le(), r = J("agora-stepper", n, t);
9817
9821
  return /* @__PURE__ */ e.createElement("nav", { ...a, ref: l, className: r }, /* @__PURE__ */ e.createElement("ol", null, O.map(i, (o, A) => {
9818
- if (!B(o))
9822
+ if (!T(o))
9819
9823
  return null;
9820
9824
  const m = `agora-stepper-${c}-${A}`;
9821
9825
  return /* @__PURE__ */ e.createElement(
@@ -9844,10 +9848,10 @@ const _e = ({
9844
9848
  }, b) => {
9845
9849
  const u = le(), E = { ...I };
9846
9850
  E.id = E.id ?? u;
9847
- const [N, Z] = V(s(E.checked ?? E.defaultChecked)), R = C(null), Y = (w) => {
9851
+ const [N, Z] = V(s(E.checked ?? E.defaultChecked)), R = X(null), Y = (w) => {
9848
9852
  Z((v) => !v), De(() => d == null ? void 0 : d(w));
9849
9853
  };
9850
- _(() => {
9854
+ ee(() => {
9851
9855
  const w = E.checked ?? E.defaultChecked;
9852
9856
  w !== void 0 && Z(w);
9853
9857
  }, [E.checked, E.defaultChecked]);
@@ -9925,7 +9929,7 @@ const _e = ({
9925
9929
  nextButtonAriaLabel: A,
9926
9930
  ...m
9927
9931
  }, g) => {
9928
- const d = le(), I = C(null), b = C(null), u = C(null), [E, N] = V(!1), Z = () => {
9932
+ const d = le(), I = X(null), b = X(null), u = X(null), [E, N] = V(!1), Z = () => {
9929
9933
  var v, k, y, W;
9930
9934
  (v = b.current) != null && v.visibility ? (k = b.current) == null || k.hide() : (y = b.current) == null || y.show(), (W = I.current) == null || W.classList.remove("active");
9931
9935
  }, R = (v) => {
@@ -9947,7 +9951,7 @@ const _e = ({
9947
9951
  (k = m.onPageSizeChange) == null || k.call(m, +y.value);
9948
9952
  }
9949
9953
  };
9950
- _(() => {
9954
+ ee(() => {
9951
9955
  const v = (k) => {
9952
9956
  var y, W;
9953
9957
  (y = b.current) != null && y.visibility && !((W = u.current) != null && W.contains(k.target)) && b.current.hide();
@@ -10090,7 +10094,7 @@ const _e = ({
10090
10094
  );
10091
10095
  }, Nr = ({ hasIcon: t, icon: i, altIcon: n, children: a }) => /* @__PURE__ */ e.createElement("div", { className: "agora-timeline-item" }, /* @__PURE__ */ e.createElement("div", { className: "timeline-event" }, s(t) ? /* @__PURE__ */ e.createElement("div", { className: "timeline-icon" }, /* @__PURE__ */ e.createElement(ne, { name: i, alt: n, "aria-hidden": !n })) : /* @__PURE__ */ e.createElement("div", { className: "timeline-dot" }), /* @__PURE__ */ e.createElement("div", { className: "timeline-line" })), /* @__PURE__ */ e.createElement("div", { className: "timeline-content" }, a)), mr = ({ hideLabels: t, ...i }) => {
10092
10096
  const n = le(), [a, l] = V([]);
10093
- return _(() => {
10097
+ return ee(() => {
10094
10098
  const r = O.toArray(i.children).reduce(
10095
10099
  (A, m) => {
10096
10100
  const g = m.props.label ?? "";
@@ -10116,7 +10120,7 @@ const _e = ({
10116
10120
  ...c
10117
10121
  }) => {
10118
10122
  const [r, o] = V(window.innerWidth < 768), A = 6, [m, g] = V([]), [d, I] = V(0), [b, u] = V(0), [E, N] = V(A);
10119
- _(() => {
10123
+ ee(() => {
10120
10124
  const U = O.toArray(t);
10121
10125
  g(U);
10122
10126
  const w = U.findIndex((v) => v.props.active);
@@ -10131,7 +10135,7 @@ const _e = ({
10131
10135
  const U = Math.max(d - 1, 0);
10132
10136
  I(U), U < b && (u(b - 1), N(E - 1));
10133
10137
  }, p = O.map(t, (U, w) => w === d ? U.props.children : null), G = m.slice(b, E);
10134
- _(() => {
10138
+ ee(() => {
10135
10139
  if (d > E - 1 || d < b) {
10136
10140
  const U = Math.max(0, d - Math.floor(A / 2)), w = U + A;
10137
10141
  w > m.length ? (u(m.length - A), N(m.length)) : (u(U), N(w));
@@ -10273,8 +10277,8 @@ const _e = ({
10273
10277
  trailingIconHover: E,
10274
10278
  ...N
10275
10279
  }, Z) => {
10276
- const R = le(), Y = typeof o < "u", j = typeof A < "u", [p, G] = V(j ? A : !1), D = Y ? o : p, [h, U] = V("default"), w = (T) => {
10277
- r && r(T), Y || G(T.target.checked);
10280
+ const R = le(), Y = typeof o < "u", j = typeof A < "u", [p, G] = V(j ? A : !1), D = Y ? o : p, [h, U] = V("default"), w = (B) => {
10281
+ r && r(B), Y || G(B.target.checked);
10278
10282
  }, v = J(
10279
10283
  "agora-toggle",
10280
10284
  `agora-toggle-${t}`,
@@ -10287,28 +10291,28 @@ const _e = ({
10287
10291
  { "has-icon": s(g) },
10288
10292
  { "icon-only": s(d) },
10289
10293
  l
10290
- ), k = (T) => {
10294
+ ), k = (B) => {
10291
10295
  var L;
10292
10296
  const Q = window.matchMedia("(pointer: coarse)").matches;
10293
- U(Q ? "default" : "hover"), (L = N.onClick) == null || L.call(N, T);
10294
- }, y = (T) => {
10297
+ U(Q ? "default" : "hover"), (L = N.onClick) == null || L.call(N, B);
10298
+ }, y = (B) => {
10295
10299
  var L;
10296
- T.preventDefault(), !window.matchMedia("(pointer: coarse)").matches && (U("default"), (L = N.onMouseUp) == null || L.call(N, T));
10297
- }, W = (T) => {
10300
+ B.preventDefault(), !window.matchMedia("(pointer: coarse)").matches && (U("default"), (L = N.onMouseUp) == null || L.call(N, B));
10301
+ }, W = (B) => {
10298
10302
  var L;
10299
- T.preventDefault(), !window.matchMedia("(pointer: coarse)").matches && (U("active"), (L = N.onMouseDown) == null || L.call(N, T));
10300
- }, x = (T) => {
10303
+ B.preventDefault(), !window.matchMedia("(pointer: coarse)").matches && (U("active"), (L = N.onMouseDown) == null || L.call(N, B));
10304
+ }, x = (B) => {
10301
10305
  var L;
10302
- window.matchMedia("(pointer: coarse)").matches || (U("hover"), (L = N.onMouseEnter) == null || L.call(N, T));
10303
- }, S = (T) => {
10306
+ window.matchMedia("(pointer: coarse)").matches || (U("hover"), (L = N.onMouseEnter) == null || L.call(N, B));
10307
+ }, S = (B) => {
10304
10308
  var L;
10305
- window.matchMedia("(pointer: coarse)").matches || (U("default"), (L = N.onMouseLeave) == null || L.call(N, T));
10306
- }, X = (T) => {
10309
+ window.matchMedia("(pointer: coarse)").matches || (U("default"), (L = N.onMouseLeave) == null || L.call(N, B));
10310
+ }, C = (B) => {
10307
10311
  var Q;
10308
- T.code === "Space" && U("default"), (Q = N.onKeyUp) == null || Q.call(N, T);
10309
- }, F = (T) => {
10312
+ B.code === "Space" && U("default"), (Q = N.onKeyUp) == null || Q.call(N, B);
10313
+ }, F = (B) => {
10310
10314
  var Q;
10311
- T.code === "Space" && U("active"), (Q = N.onKeyDown) == null || Q.call(N, T);
10315
+ B.code === "Space" && U("active"), (Q = N.onKeyDown) == null || Q.call(N, B);
10312
10316
  };
10313
10317
  return /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
10314
10318
  "input",
@@ -10319,7 +10323,7 @@ const _e = ({
10319
10323
  onMouseDown: W,
10320
10324
  onMouseEnter: x,
10321
10325
  onMouseLeave: S,
10322
- onKeyUp: X,
10326
+ onKeyUp: C,
10323
10327
  onKeyDown: F,
10324
10328
  "aria-labelledby": R,
10325
10329
  ref: Z,
@@ -10351,7 +10355,7 @@ const _e = ({
10351
10355
  { "full-width": s(n) },
10352
10356
  m
10353
10357
  ), E = typeof r < "u", N = typeof o < "u", Z = N ? Array.isArray(o) ? o : [o] : [], [R, Y] = V(N ? Z : []), j = E ? Array.isArray(r) ? r : [r] : R, p = O.map(g, (D, h) => {
10354
- if (!B(D))
10358
+ if (!T(D))
10355
10359
  return null;
10356
10360
  const U = D.props.value ?? `${b}-v-${h}`, v = !!(s(c) ? j : [j[0]]).find((y) => y === U), k = (y) => {
10357
10361
  if (s(c)) {
@@ -10372,7 +10376,7 @@ const _e = ({
10372
10376
  defaultChecked: void 0,
10373
10377
  onChange: k
10374
10378
  });
10375
- }), G = C(null);
10379
+ }), G = X(null);
10376
10380
  return je(
10377
10381
  I,
10378
10382
  G,
@@ -10448,7 +10452,7 @@ const _e = ({
10448
10452
  extensionForbiddenFiles: m
10449
10453
  };
10450
10454
  }, Yi = (t, i, n, a, l, c) => {
10451
- const r = C([]), o = C(null), A = () => a ? t : 1, m = (j, p) => {
10455
+ const r = X([]), o = X(null), A = () => a ? t : 1, m = (j, p) => {
10452
10456
  De(() => l(j, p));
10453
10457
  }, g = (j) => {
10454
10458
  const p = Ut([], j, A(), i, n), G = [];
@@ -10479,7 +10483,7 @@ const _e = ({
10479
10483
  const p = j.currentTarget, G = Array.from(p.files ?? []);
10480
10484
  b(p.dataset.replaceFile ?? "", G);
10481
10485
  };
10482
- _(() => {
10486
+ ee(() => {
10483
10487
  c && g(c);
10484
10488
  }, [c]);
10485
10489
  const N = () => {
@@ -10518,11 +10522,11 @@ const _e = ({
10518
10522
  id: G,
10519
10523
  ...D
10520
10524
  }, h) => {
10521
- const U = le(), w = G || U, v = E ? !1 : a, k = C(null), y = C(null);
10525
+ const U = le(), w = G || U, v = E ? !1 : a, k = X(null), y = X(null);
10522
10526
  Se(h, () => y.current);
10523
- const [W, x] = V(t), [S, X] = V([]), F = (se) => {
10527
+ const [W, x] = V(t), [S, C] = V([]), F = (se) => {
10524
10528
  if (!se) {
10525
- X([]);
10529
+ C([]);
10526
10530
  return;
10527
10531
  }
10528
10532
  const te = [];
@@ -10532,8 +10536,8 @@ const _e = ({
10532
10536
  te.push(`${ie} - ${d}`);
10533
10537
  }), se.extensionForbiddenFiles.forEach((ie) => {
10534
10538
  te.push(`${ie} - ${I}`);
10535
- }), X(te);
10536
- }, T = (se, te) => {
10539
+ }), C(te);
10540
+ }, B = (se, te) => {
10537
10541
  if (se.length > 0 ? x(`${se.length} ${i}`) : x(t), y.current) {
10538
10542
  const ie = new DataTransfer();
10539
10543
  se.forEach((Ee) => {
@@ -10543,19 +10547,19 @@ const _e = ({
10543
10547
  De(() => N == null ? void 0 : N(ce));
10544
10548
  }
10545
10549
  F(te);
10546
- }, { files: Q, onAddFiles: L, onRemoveFile: ee, onReplaceFile: $, onPasteFiles: z } = Yi(
10550
+ }, { files: Q, onAddFiles: L, onRemoveFile: _, onReplaceFile: $, onPasteFiles: z } = Yi(
10547
10551
  m,
10548
10552
  A,
10549
10553
  o ? o.split(",") : [],
10550
10554
  !!u,
10551
- T,
10555
+ B,
10552
10556
  Z
10553
10557
  ), H = oe(() => u ? !E && Q.length < m : !E && Q.length === 0, [E, u, Q]), f = (se) => {
10554
10558
  $(se);
10555
10559
  }, K = (se) => {
10556
- ee(se);
10560
+ _(se);
10557
10561
  };
10558
- _(() => {
10562
+ ee(() => {
10559
10563
  const se = (te) => {
10560
10564
  if (H && k.current && k.current === document.activeElement) {
10561
10565
  const { clipboardData: ie } = te;
@@ -10640,9 +10644,9 @@ const _e = ({
10640
10644
  }, U) => {
10641
10645
  const w = le(), v = { ...h };
10642
10646
  v.id = v.id ?? w;
10643
- const k = Z ? !1 : l, y = C(null), W = C(null);
10647
+ const k = Z ? !1 : l, y = X(null), W = X(null);
10644
10648
  Se(U, () => W.current);
10645
- const x = C(null), [S, X] = V(i), [F, T] = V(!1), [Q, L] = V([]), ee = (Ne) => {
10649
+ const x = X(null), [S, C] = V(i), [F, B] = V(!1), [Q, L] = V([]), _ = (Ne) => {
10646
10650
  if (!Ne) {
10647
10651
  L([]);
10648
10652
  return;
@@ -10656,7 +10660,7 @@ const _e = ({
10656
10660
  Me.push(`${we} - ${u}`);
10657
10661
  }), L(Me);
10658
10662
  }, $ = (Ne, Me) => {
10659
- if (Ne.length > 0 ? X(`${Ne.length} ${n}`) : X(i), W.current) {
10663
+ if (Ne.length > 0 ? C(`${Ne.length} ${n}`) : C(i), W.current) {
10660
10664
  const we = new DataTransfer();
10661
10665
  Ne.forEach((pt) => {
10662
10666
  we.items.add(pt);
@@ -10664,7 +10668,7 @@ const _e = ({
10664
10668
  const fe = Be(W.current, "change");
10665
10669
  De(() => R == null ? void 0 : R(fe));
10666
10670
  }
10667
- ee(Me);
10671
+ _(Me);
10668
10672
  }, { files: z, onAddFiles: H, onRemoveFile: f, onReplaceFile: K, onPasteFiles: P } = Yi(
10669
10673
  d,
10670
10674
  g,
@@ -10677,7 +10681,7 @@ const _e = ({
10677
10681
  }, se = (Ne) => {
10678
10682
  f(Ne);
10679
10683
  };
10680
- _(() => {
10684
+ ee(() => {
10681
10685
  const Ne = (Me) => {
10682
10686
  if (q && y.current && y.current === document.activeElement) {
10683
10687
  const { clipboardData: we } = Me;
@@ -10692,16 +10696,16 @@ const _e = ({
10692
10696
  };
10693
10697
  }, []);
10694
10698
  const te = (Ne) => {
10695
- q && (Ne.preventDefault(), Ne.stopPropagation(), T(!0), Ne.dataTransfer && (Ne.dataTransfer.dropEffect = "copy"));
10699
+ q && (Ne.preventDefault(), Ne.stopPropagation(), B(!0), Ne.dataTransfer && (Ne.dataTransfer.dropEffect = "copy"));
10696
10700
  }, ie = () => {
10697
- T(!1);
10701
+ B(!1);
10698
10702
  }, ce = (Ne) => {
10699
- if (q && (Ne.preventDefault(), Ne.stopPropagation(), T(!1), Ne.dataTransfer)) {
10703
+ if (q && (Ne.preventDefault(), Ne.stopPropagation(), B(!1), Ne.dataTransfer)) {
10700
10704
  const Me = Array.from(Ne.dataTransfer.files ?? []);
10701
10705
  P(Me);
10702
10706
  }
10703
10707
  };
10704
- _(() => {
10708
+ ee(() => {
10705
10709
  const Ne = (Me) => {
10706
10710
  y.current && y.current !== Me.target && !y.current.contains(Me.target) && H();
10707
10711
  };