@ethora/chat-component 26.9.4 → 26.9.6

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.
Files changed (49) hide show
  1. package/README.md +2 -0
  2. package/dist/{ChatProfileModal-Pr4--RdW.js → ChatProfileModal-DKuxJsdM.js} +526 -519
  3. package/dist/{FilePreviewModal-CYHlKzRc.js → FilePreviewModal-BcaSoO3-.js} +89 -89
  4. package/dist/{ManageDataModal-BE1eGlYh.js → ManageDataModal-Dw4dCQll.js} +2 -2
  5. package/dist/{MarkdownBody-G0_J0NL6.js → MarkdownBody-xtKDMR0h.js} +1 -1
  6. package/dist/MessageSearchModal-BVKU6H3v.js +389 -0
  7. package/dist/PublicChatsModal-CscOnVaQ.js +202 -0
  8. package/dist/{SideDrawer-BG2m7Bcm.js → SideDrawer-WneDrrWG.js} +27 -27
  9. package/dist/{UserProfileModal-B2Hp5bAF.js → UserProfileModal-CMHFq1I9.js} +3 -3
  10. package/dist/{UserSettingsModal-D871FDAT.js → UserSettingsModal-BoZXZ0oR.js} +2 -2
  11. package/dist/{VideoCallOverlay-Br0ji0nZ.js → VideoCallOverlay-CQNi7wp5.js} +1 -1
  12. package/dist/{VisibilityModal-DdFBV1_g.js → VisibilityModal-BPsNiMzJ.js} +2 -2
  13. package/dist/assets/icons.d.ts +9 -0
  14. package/dist/components/InputComponents/Search.d.ts +4 -0
  15. package/dist/components/MainComponents/ArchivedMessageCard.d.ts +11 -0
  16. package/dist/components/MainComponents/computeAnchoredScrollTop.d.ts +9 -0
  17. package/dist/components/MainComponents/useJumpToMessage.d.ts +63 -0
  18. package/dist/components/MainComponents/useStickToBottom.d.ts +27 -0
  19. package/dist/components/Modals/MessageSearchModal/MessageHitResults.d.ts +22 -0
  20. package/dist/components/Modals/MessageSearchModal/MessageSearchModal.d.ts +6 -0
  21. package/dist/components/Modals/MessageSearchModal/resolveSender.d.ts +33 -0
  22. package/dist/components/Modals/MessageSearchModal/searchFilters.d.ts +34 -0
  23. package/dist/components/Modals/MessageSearchModal/snippet.d.ts +14 -0
  24. package/dist/components/Modals/MessageSearchModal/useMessageSearch.d.ts +22 -0
  25. package/dist/components/Modals/PublicChatsModal/PublicChatsModal.d.ts +13 -0
  26. package/dist/components/styled/RoomListComponents/index.d.ts +3 -0
  27. package/dist/context/ToastContext.d.ts +7 -0
  28. package/dist/firebase-messaging-sw.js +21 -3
  29. package/dist/{handleCopyClick-DPjxMoJn.js → handleCopyClick-B70vLjJD.js} +1 -1
  30. package/dist/helpers/constants/MODAL_TYPES.d.ts +2 -0
  31. package/dist/helpers/nanoToMs.d.ts +1 -1
  32. package/dist/helpers/openRoomAtMessage.d.ts +17 -0
  33. package/dist/hooks/useMessageSearchShortcut.d.ts +14 -0
  34. package/dist/hooks/useRoomState.d.ts +1 -0
  35. package/dist/{main-BRIZ98KV.js → main-rJpE4hh-.js} +12318 -11108
  36. package/dist/main.css +1 -1
  37. package/dist/main.js +6 -6
  38. package/dist/networking/api-requests/messageSearch.api.d.ts +56 -0
  39. package/dist/networking/api-requests/publicChats.api.d.ts +23 -0
  40. package/dist/networking/api-requests/xmppToken.api.d.ts +1 -0
  41. package/dist/networking/xmppClient.d.ts +2 -0
  42. package/dist/roomStore/chatSettingsSlice.d.ts +1 -1
  43. package/dist/roomStore/roomsSlice.d.ts +38 -1
  44. package/dist/styles/classNames.d.ts +2 -0
  45. package/dist/types/models/config.model.d.ts +11 -0
  46. package/dist/utils/notificationUtils.d.ts +12 -0
  47. package/dist/version.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/public/firebase-messaging-sw.js +21 -3
@@ -1,35 +1,35 @@
1
- import { jsx as E, jsxs as j, Fragment as gt } from "react/jsx-runtime";
2
- import ke, { useRef as yt, useState as ee, useMemo as se } from "react";
3
- import { S as bt, f as qt, b as Tt, D as he, a as pe, e as Ft, g as zt, h as Fe, i as Qt, j as Ht, k as Yt, l as ze } from "./SideDrawer-BG2m7Bcm.js";
4
- import { h as Wt, P as Gt, a as Kt, c as Xt, D as Jt, d as Vt, e as Qe, f as He } from "./handleCopyClick-DPjxMoJn.js";
5
- import { o as Zt, b as Et, p as de, a4 as er, B as te, x as W, a as Ne, u as fe, a5 as $e, F as Ct, y as wt, a6 as Rt, a7 as Pt, a8 as xt, a9 as tr, aa as Be, ab as rr, ac as nr, a2 as or, J as _t, Z as ar, ad as ir, ae as Ie, af as sr, ag as ye, ah as St, P as Mt, W as At, w as lr, ai as ur, aj as cr, ak as fr, al as dr, am as hr, q as Ye, an as pr, ao as vr, ap as mr, aq as gr, ar as yr, as as We, at as br, au as Tr, X as Er, av as Cr, aw as wr, M as Rr, K as Pr, ax as Ge } from "./main-BRIZ98KV.js";
1
+ import { jsx as T, jsxs as j, Fragment as bt } from "react/jsx-runtime";
2
+ import $e, { useRef as Et, useState as ee, useMemo as se } from "react";
3
+ import { S as Tt, f as Ft, b as Ie, D as fe, a as pe, d as zt, e as Qt, g as Ht, h as Qe, i as Yt, j as Wt, k as Gt, l as He } from "./SideDrawer-WneDrrWG.js";
4
+ import { h as Kt, P as Xt, a as Jt, c as Vt, D as Zt, d as er, e as Ye, f as We } from "./handleCopyClick-B70vLjJD.js";
5
+ import { o as tr, b as Ct, p as he, a4 as rr, B as te, x as W, a as je, u as de, a5 as Ue, F as wt, y as Rt, a6 as Pt, a7 as xt, a8 as St, a9 as nr, aa as ke, ab as or, ac as ar, a2 as ir, J as _t, Z as sr, ad as lr, ae as Ne, af as ur, ag as ye, ah as Mt, P as At, W as Dt, w as cr, ai as fr, aj as dr, ak as hr, al as pr, am as vr, q as be, an as mr, ao as gr, ap as yr, M as Ge, aq as br, ar as Er, as as Ke, at as Tr, au as Cr, X as wr, av as Rr, aw as Pr, K as xr, ax as Xe } from "./main-rJpE4hh-.js";
6
6
  var le = {}, ve = { exports: {} }, me = { exports: {} }, k = {};
7
- var Ke;
8
- function xr() {
9
- if (Ke) return k;
10
- Ke = 1;
11
- var n = typeof Symbol == "function" && Symbol.for, h = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, a = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, u = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, c = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, e = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, i = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, b = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, B = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12
- function D(v) {
13
- if (typeof v == "object" && v !== null) {
14
- var C = v.$$typeof;
7
+ var Je;
8
+ function Sr() {
9
+ if (Je) return k;
10
+ Je = 1;
11
+ var n = typeof Symbol == "function" && Symbol.for, h = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, a = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, u = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, c = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, e = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, i = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, B = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12
+ function D(p) {
13
+ if (typeof p == "object" && p !== null) {
14
+ var C = p.$$typeof;
15
15
  switch (C) {
16
16
  case h:
17
- switch (v = v.type, v) {
17
+ switch (p = p.type, p) {
18
18
  case t:
19
19
  case e:
20
20
  case u:
21
21
  case r:
22
22
  case c:
23
23
  case i:
24
- return v;
24
+ return p;
25
25
  default:
26
- switch (v = v && v.$$typeof, v) {
26
+ switch (p = p && p.$$typeof, p) {
27
27
  case o:
28
28
  case s:
29
- case p:
29
+ case v:
30
30
  case m:
31
31
  case l:
32
- return v;
32
+ return p;
33
33
  default:
34
34
  return C;
35
35
  }
@@ -39,52 +39,52 @@ function xr() {
39
39
  }
40
40
  }
41
41
  }
42
- function $(v) {
43
- return D(v) === e;
42
+ function $(p) {
43
+ return D(p) === e;
44
44
  }
45
- return k.AsyncMode = t, k.ConcurrentMode = e, k.ContextConsumer = o, k.ContextProvider = l, k.Element = h, k.ForwardRef = s, k.Fragment = u, k.Lazy = p, k.Memo = m, k.Portal = a, k.Profiler = r, k.StrictMode = c, k.Suspense = i, k.isAsyncMode = function(v) {
46
- return $(v) || D(v) === t;
47
- }, k.isConcurrentMode = $, k.isContextConsumer = function(v) {
48
- return D(v) === o;
49
- }, k.isContextProvider = function(v) {
50
- return D(v) === l;
51
- }, k.isElement = function(v) {
52
- return typeof v == "object" && v !== null && v.$$typeof === h;
53
- }, k.isForwardRef = function(v) {
54
- return D(v) === s;
55
- }, k.isFragment = function(v) {
56
- return D(v) === u;
57
- }, k.isLazy = function(v) {
58
- return D(v) === p;
59
- }, k.isMemo = function(v) {
60
- return D(v) === m;
61
- }, k.isPortal = function(v) {
62
- return D(v) === a;
63
- }, k.isProfiler = function(v) {
64
- return D(v) === r;
65
- }, k.isStrictMode = function(v) {
66
- return D(v) === c;
67
- }, k.isSuspense = function(v) {
68
- return D(v) === i;
69
- }, k.isValidElementType = function(v) {
70
- return typeof v == "string" || typeof v == "function" || v === u || v === e || v === r || v === c || v === i || v === f || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === m || v.$$typeof === l || v.$$typeof === o || v.$$typeof === s || v.$$typeof === R || v.$$typeof === b || v.$$typeof === B || v.$$typeof === g);
45
+ return k.AsyncMode = t, k.ConcurrentMode = e, k.ContextConsumer = o, k.ContextProvider = l, k.Element = h, k.ForwardRef = s, k.Fragment = u, k.Lazy = v, k.Memo = m, k.Portal = a, k.Profiler = r, k.StrictMode = c, k.Suspense = i, k.isAsyncMode = function(p) {
46
+ return $(p) || D(p) === t;
47
+ }, k.isConcurrentMode = $, k.isContextConsumer = function(p) {
48
+ return D(p) === o;
49
+ }, k.isContextProvider = function(p) {
50
+ return D(p) === l;
51
+ }, k.isElement = function(p) {
52
+ return typeof p == "object" && p !== null && p.$$typeof === h;
53
+ }, k.isForwardRef = function(p) {
54
+ return D(p) === s;
55
+ }, k.isFragment = function(p) {
56
+ return D(p) === u;
57
+ }, k.isLazy = function(p) {
58
+ return D(p) === v;
59
+ }, k.isMemo = function(p) {
60
+ return D(p) === m;
61
+ }, k.isPortal = function(p) {
62
+ return D(p) === a;
63
+ }, k.isProfiler = function(p) {
64
+ return D(p) === r;
65
+ }, k.isStrictMode = function(p) {
66
+ return D(p) === c;
67
+ }, k.isSuspense = function(p) {
68
+ return D(p) === i;
69
+ }, k.isValidElementType = function(p) {
70
+ return typeof p == "string" || typeof p == "function" || p === u || p === e || p === r || p === c || p === i || p === f || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === m || p.$$typeof === l || p.$$typeof === o || p.$$typeof === s || p.$$typeof === R || p.$$typeof === y || p.$$typeof === B || p.$$typeof === g);
71
71
  }, k.typeOf = D, k;
72
72
  }
73
73
  var N = {};
74
- var Xe;
74
+ var Ve;
75
75
  function _r() {
76
- return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && (function() {
77
- var n = typeof Symbol == "function" && Symbol.for, h = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, a = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, u = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, c = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, e = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, i = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, b = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, B = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
78
- function D(y) {
79
- return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
80
- y === u || y === e || y === r || y === c || y === i || y === f || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === m || y.$$typeof === l || y.$$typeof === o || y.$$typeof === s || y.$$typeof === R || y.$$typeof === b || y.$$typeof === B || y.$$typeof === g);
81
- }
82
- function $(y) {
83
- if (typeof y == "object" && y !== null) {
84
- var Y = y.$$typeof;
76
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && (function() {
77
+ var n = typeof Symbol == "function" && Symbol.for, h = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, a = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, u = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, c = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, r = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, l = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, o = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, t = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, e = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, i = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, v = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, g = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, R = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, y = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, B = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
78
+ function D(b) {
79
+ return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
80
+ b === u || b === e || b === r || b === c || b === i || b === f || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === m || b.$$typeof === l || b.$$typeof === o || b.$$typeof === s || b.$$typeof === R || b.$$typeof === y || b.$$typeof === B || b.$$typeof === g);
81
+ }
82
+ function $(b) {
83
+ if (typeof b == "object" && b !== null) {
84
+ var Y = b.$$typeof;
85
85
  switch (Y) {
86
86
  case h:
87
- var ae = y.type;
87
+ var ae = b.type;
88
88
  switch (ae) {
89
89
  case t:
90
90
  case e:
@@ -98,7 +98,7 @@ function _r() {
98
98
  switch (ce) {
99
99
  case o:
100
100
  case s:
101
- case p:
101
+ case v:
102
102
  case m:
103
103
  case l:
104
104
  return ce;
@@ -111,57 +111,57 @@ function _r() {
111
111
  }
112
112
  }
113
113
  }
114
- var v = t, C = e, Q = o, K = l, re = h, ne = s, G = u, X = p, V = m, z = a, H = r, q = c, Z = i, oe = !1;
115
- function ue(y) {
116
- return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(y) || $(y) === t;
114
+ var p = t, C = e, Q = o, K = l, re = h, ne = s, G = u, X = v, V = m, z = a, H = r, q = c, Z = i, oe = !1;
115
+ function ue(b) {
116
+ return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(b) || $(b) === t;
117
117
  }
118
- function d(y) {
119
- return $(y) === e;
118
+ function d(b) {
119
+ return $(b) === e;
120
120
  }
121
- function T(y) {
122
- return $(y) === o;
121
+ function E(b) {
122
+ return $(b) === o;
123
123
  }
124
- function A(y) {
125
- return $(y) === l;
124
+ function A(b) {
125
+ return $(b) === l;
126
126
  }
127
- function _(y) {
128
- return typeof y == "object" && y !== null && y.$$typeof === h;
127
+ function S(b) {
128
+ return typeof b == "object" && b !== null && b.$$typeof === h;
129
129
  }
130
- function P(y) {
131
- return $(y) === s;
130
+ function P(b) {
131
+ return $(b) === s;
132
132
  }
133
- function O(y) {
134
- return $(y) === u;
133
+ function O(b) {
134
+ return $(b) === u;
135
135
  }
136
- function x(y) {
137
- return $(y) === p;
136
+ function x(b) {
137
+ return $(b) === v;
138
138
  }
139
- function S(y) {
140
- return $(y) === m;
139
+ function _(b) {
140
+ return $(b) === m;
141
141
  }
142
- function L(y) {
143
- return $(y) === a;
142
+ function L(b) {
143
+ return $(b) === a;
144
144
  }
145
- function I(y) {
146
- return $(y) === r;
145
+ function I(b) {
146
+ return $(b) === r;
147
147
  }
148
- function M(y) {
149
- return $(y) === c;
148
+ function M(b) {
149
+ return $(b) === c;
150
150
  }
151
- function F(y) {
152
- return $(y) === i;
151
+ function F(b) {
152
+ return $(b) === i;
153
153
  }
154
- N.AsyncMode = v, N.ConcurrentMode = C, N.ContextConsumer = Q, N.ContextProvider = K, N.Element = re, N.ForwardRef = ne, N.Fragment = G, N.Lazy = X, N.Memo = V, N.Portal = z, N.Profiler = H, N.StrictMode = q, N.Suspense = Z, N.isAsyncMode = ue, N.isConcurrentMode = d, N.isContextConsumer = T, N.isContextProvider = A, N.isElement = _, N.isForwardRef = P, N.isFragment = O, N.isLazy = x, N.isMemo = S, N.isPortal = L, N.isProfiler = I, N.isStrictMode = M, N.isSuspense = F, N.isValidElementType = D, N.typeOf = $;
154
+ N.AsyncMode = p, N.ConcurrentMode = C, N.ContextConsumer = Q, N.ContextProvider = K, N.Element = re, N.ForwardRef = ne, N.Fragment = G, N.Lazy = X, N.Memo = V, N.Portal = z, N.Profiler = H, N.StrictMode = q, N.Suspense = Z, N.isAsyncMode = ue, N.isConcurrentMode = d, N.isContextConsumer = E, N.isContextProvider = A, N.isElement = S, N.isForwardRef = P, N.isFragment = O, N.isLazy = x, N.isMemo = _, N.isPortal = L, N.isProfiler = I, N.isStrictMode = M, N.isSuspense = F, N.isValidElementType = D, N.typeOf = $;
155
155
  })()), N;
156
156
  }
157
- var Je;
158
- function Dt() {
159
- return Je || (Je = 1, process.env.NODE_ENV === "production" ? me.exports = xr() : me.exports = _r()), me.exports;
157
+ var Ze;
158
+ function Ot() {
159
+ return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? me.exports = Sr() : me.exports = _r()), me.exports;
160
160
  }
161
- var be, Ve;
162
- function Sr() {
163
- if (Ve) return be;
164
- Ve = 1;
161
+ var Ee, et;
162
+ function Mr() {
163
+ if (et) return Ee;
164
+ et = 1;
165
165
  var n = Object.getOwnPropertySymbols, h = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
166
166
  function u(r) {
167
167
  if (r == null)
@@ -190,7 +190,7 @@ function Sr() {
190
190
  return !1;
191
191
  }
192
192
  }
193
- return be = c() ? Object.assign : function(r, l) {
193
+ return Ee = c() ? Object.assign : function(r, l) {
194
194
  for (var o, t = u(r), e, s = 1; s < arguments.length; s++) {
195
195
  o = Object(arguments[s]);
196
196
  for (var i in o)
@@ -202,27 +202,27 @@ function Sr() {
202
202
  }
203
203
  }
204
204
  return t;
205
- }, be;
205
+ }, Ee;
206
206
  }
207
- var Te, Ze;
208
- function je() {
209
- if (Ze) return Te;
210
- Ze = 1;
207
+ var Te, tt;
208
+ function qe() {
209
+ if (tt) return Te;
210
+ tt = 1;
211
211
  var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
212
212
  return Te = n, Te;
213
213
  }
214
- var Ee, et;
215
- function Ot() {
216
- return et || (et = 1, Ee = Function.call.bind(Object.prototype.hasOwnProperty)), Ee;
214
+ var Ce, rt;
215
+ function Lt() {
216
+ return rt || (rt = 1, Ce = Function.call.bind(Object.prototype.hasOwnProperty)), Ce;
217
217
  }
218
- var Ce, tt;
219
- function Mr() {
220
- if (tt) return Ce;
221
- tt = 1;
218
+ var we, nt;
219
+ function Ar() {
220
+ if (nt) return we;
221
+ nt = 1;
222
222
  var n = function() {
223
223
  };
224
224
  if (process.env.NODE_ENV !== "production") {
225
- var h = /* @__PURE__ */ je(), a = {}, u = /* @__PURE__ */ Ot();
225
+ var h = /* @__PURE__ */ qe(), a = {}, u = /* @__PURE__ */ Lt();
226
226
  n = function(r) {
227
227
  var l = "Warning: " + r;
228
228
  typeof console < "u" && console.error(l);
@@ -245,8 +245,8 @@ function Mr() {
245
245
  throw f.name = "Invariant Violation", f;
246
246
  }
247
247
  i = r[s](l, s, t, o, null, h);
248
- } catch (p) {
249
- i = p;
248
+ } catch (v) {
249
+ i = v;
250
250
  }
251
251
  if (i && !(i instanceof Error) && n(
252
252
  (t || "React class") + ": type specification of " + o + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof i + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -262,13 +262,13 @@ function Mr() {
262
262
  }
263
263
  return c.resetWarningCache = function() {
264
264
  process.env.NODE_ENV !== "production" && (a = {});
265
- }, Ce = c, Ce;
265
+ }, we = c, we;
266
266
  }
267
- var we, rt;
268
- function Ar() {
269
- if (rt) return we;
270
- rt = 1;
271
- var n = Dt(), h = Sr(), a = /* @__PURE__ */ je(), u = /* @__PURE__ */ Ot(), c = /* @__PURE__ */ Mr(), r = function() {
267
+ var Re, ot;
268
+ function Dr() {
269
+ if (ot) return Re;
270
+ ot = 1;
271
+ var n = Ot(), h = Mr(), a = /* @__PURE__ */ qe(), u = /* @__PURE__ */ Lt(), c = /* @__PURE__ */ Ar(), r = function() {
272
272
  };
273
273
  process.env.NODE_ENV !== "production" && (r = function(o) {
274
274
  var t = "Warning: " + o;
@@ -281,26 +281,26 @@ function Ar() {
281
281
  function l() {
282
282
  return null;
283
283
  }
284
- return we = function(o, t) {
284
+ return Re = function(o, t) {
285
285
  var e = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
286
286
  function i(d) {
287
- var T = d && (e && d[e] || d[s]);
288
- if (typeof T == "function")
289
- return T;
287
+ var E = d && (e && d[e] || d[s]);
288
+ if (typeof E == "function")
289
+ return E;
290
290
  }
291
291
  var f = "<<anonymous>>", m = {
292
- array: b("array"),
293
- bigint: b("bigint"),
294
- bool: b("boolean"),
295
- func: b("function"),
296
- number: b("number"),
297
- object: b("object"),
298
- string: b("string"),
299
- symbol: b("symbol"),
292
+ array: y("array"),
293
+ bigint: y("bigint"),
294
+ bool: y("boolean"),
295
+ func: y("function"),
296
+ number: y("number"),
297
+ object: y("object"),
298
+ string: y("string"),
299
+ symbol: y("symbol"),
300
300
  any: B(),
301
301
  arrayOf: D,
302
302
  element: $(),
303
- elementType: v(),
303
+ elementType: p(),
304
304
  instanceOf: C,
305
305
  node: ne(),
306
306
  objectOf: K,
@@ -309,39 +309,39 @@ function Ar() {
309
309
  shape: X,
310
310
  exact: V
311
311
  };
312
- function p(d, T) {
313
- return d === T ? d !== 0 || 1 / d === 1 / T : d !== d && T !== T;
312
+ function v(d, E) {
313
+ return d === E ? d !== 0 || 1 / d === 1 / E : d !== d && E !== E;
314
314
  }
315
- function g(d, T) {
316
- this.message = d, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
315
+ function g(d, E) {
316
+ this.message = d, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
317
317
  }
318
318
  g.prototype = Error.prototype;
319
319
  function R(d) {
320
320
  if (process.env.NODE_ENV !== "production")
321
- var T = {}, A = 0;
322
- function _(O, x, S, L, I, M, F) {
323
- if (L = L || f, M = M || S, F !== a) {
321
+ var E = {}, A = 0;
322
+ function S(O, x, _, L, I, M, F) {
323
+ if (L = L || f, M = M || _, F !== a) {
324
324
  if (t) {
325
- var y = new Error(
325
+ var b = new Error(
326
326
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
327
327
  );
328
- throw y.name = "Invariant Violation", y;
328
+ throw b.name = "Invariant Violation", b;
329
329
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
330
- var Y = L + ":" + S;
331
- !T[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
330
+ var Y = L + ":" + _;
331
+ !E[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
332
332
  A < 3 && (r(
333
333
  "You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
334
- ), T[Y] = !0, A++);
334
+ ), E[Y] = !0, A++);
335
335
  }
336
336
  }
337
- return x[S] == null ? O ? x[S] === null ? new g("The " + I + " `" + M + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + I + " `" + M + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : d(x, S, L, I, M);
337
+ return x[_] == null ? O ? x[_] === null ? new g("The " + I + " `" + M + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + I + " `" + M + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : d(x, _, L, I, M);
338
338
  }
339
- var P = _.bind(null, !1);
340
- return P.isRequired = _.bind(null, !0), P;
339
+ var P = S.bind(null, !1);
340
+ return P.isRequired = S.bind(null, !0), P;
341
341
  }
342
- function b(d) {
343
- function T(A, _, P, O, x, S) {
344
- var L = A[_], I = q(L);
342
+ function y(d) {
343
+ function E(A, S, P, O, x, _) {
344
+ var L = A[S], I = q(L);
345
345
  if (I !== d) {
346
346
  var M = Z(L);
347
347
  return new g(
@@ -351,167 +351,167 @@ function Ar() {
351
351
  }
352
352
  return null;
353
353
  }
354
- return R(T);
354
+ return R(E);
355
355
  }
356
356
  function B() {
357
357
  return R(l);
358
358
  }
359
359
  function D(d) {
360
- function T(A, _, P, O, x) {
360
+ function E(A, S, P, O, x) {
361
361
  if (typeof d != "function")
362
362
  return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
363
- var S = A[_];
364
- if (!Array.isArray(S)) {
365
- var L = q(S);
363
+ var _ = A[S];
364
+ if (!Array.isArray(_)) {
365
+ var L = q(_);
366
366
  return new g("Invalid " + O + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected an array."));
367
367
  }
368
- for (var I = 0; I < S.length; I++) {
369
- var M = d(S, I, P, O, x + "[" + I + "]", a);
368
+ for (var I = 0; I < _.length; I++) {
369
+ var M = d(_, I, P, O, x + "[" + I + "]", a);
370
370
  if (M instanceof Error)
371
371
  return M;
372
372
  }
373
373
  return null;
374
374
  }
375
- return R(T);
375
+ return R(E);
376
376
  }
377
377
  function $() {
378
- function d(T, A, _, P, O) {
379
- var x = T[A];
378
+ function d(E, A, S, P, O) {
379
+ var x = E[A];
380
380
  if (!o(x)) {
381
- var S = q(x);
382
- return new g("Invalid " + P + " `" + O + "` of type " + ("`" + S + "` supplied to `" + _ + "`, expected a single ReactElement."));
381
+ var _ = q(x);
382
+ return new g("Invalid " + P + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + S + "`, expected a single ReactElement."));
383
383
  }
384
384
  return null;
385
385
  }
386
386
  return R(d);
387
387
  }
388
- function v() {
389
- function d(T, A, _, P, O) {
390
- var x = T[A];
388
+ function p() {
389
+ function d(E, A, S, P, O) {
390
+ var x = E[A];
391
391
  if (!n.isValidElementType(x)) {
392
- var S = q(x);
393
- return new g("Invalid " + P + " `" + O + "` of type " + ("`" + S + "` supplied to `" + _ + "`, expected a single ReactElement type."));
392
+ var _ = q(x);
393
+ return new g("Invalid " + P + " `" + O + "` of type " + ("`" + _ + "` supplied to `" + S + "`, expected a single ReactElement type."));
394
394
  }
395
395
  return null;
396
396
  }
397
397
  return R(d);
398
398
  }
399
399
  function C(d) {
400
- function T(A, _, P, O, x) {
401
- if (!(A[_] instanceof d)) {
402
- var S = d.name || f, L = ue(A[_]);
403
- return new g("Invalid " + O + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("instance of `" + S + "`."));
400
+ function E(A, S, P, O, x) {
401
+ if (!(A[S] instanceof d)) {
402
+ var _ = d.name || f, L = ue(A[S]);
403
+ return new g("Invalid " + O + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("instance of `" + _ + "`."));
404
404
  }
405
405
  return null;
406
406
  }
407
- return R(T);
407
+ return R(E);
408
408
  }
409
409
  function Q(d) {
410
410
  if (!Array.isArray(d))
411
411
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
412
412
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
413
413
  ) : r("Invalid argument supplied to oneOf, expected an array.")), l;
414
- function T(A, _, P, O, x) {
415
- for (var S = A[_], L = 0; L < d.length; L++)
416
- if (p(S, d[L]))
414
+ function E(A, S, P, O, x) {
415
+ for (var _ = A[S], L = 0; L < d.length; L++)
416
+ if (v(_, d[L]))
417
417
  return null;
418
- var I = JSON.stringify(d, function(F, y) {
419
- var Y = Z(y);
420
- return Y === "symbol" ? String(y) : y;
418
+ var I = JSON.stringify(d, function(F, b) {
419
+ var Y = Z(b);
420
+ return Y === "symbol" ? String(b) : b;
421
421
  });
422
- return new g("Invalid " + O + " `" + x + "` of value `" + String(S) + "` " + ("supplied to `" + P + "`, expected one of " + I + "."));
422
+ return new g("Invalid " + O + " `" + x + "` of value `" + String(_) + "` " + ("supplied to `" + P + "`, expected one of " + I + "."));
423
423
  }
424
- return R(T);
424
+ return R(E);
425
425
  }
426
426
  function K(d) {
427
- function T(A, _, P, O, x) {
427
+ function E(A, S, P, O, x) {
428
428
  if (typeof d != "function")
429
429
  return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
430
- var S = A[_], L = q(S);
430
+ var _ = A[S], L = q(_);
431
431
  if (L !== "object")
432
432
  return new g("Invalid " + O + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected an object."));
433
- for (var I in S)
434
- if (u(S, I)) {
435
- var M = d(S, I, P, O, x + "." + I, a);
433
+ for (var I in _)
434
+ if (u(_, I)) {
435
+ var M = d(_, I, P, O, x + "." + I, a);
436
436
  if (M instanceof Error)
437
437
  return M;
438
438
  }
439
439
  return null;
440
440
  }
441
- return R(T);
441
+ return R(E);
442
442
  }
443
443
  function re(d) {
444
444
  if (!Array.isArray(d))
445
445
  return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), l;
446
- for (var T = 0; T < d.length; T++) {
447
- var A = d[T];
446
+ for (var E = 0; E < d.length; E++) {
447
+ var A = d[E];
448
448
  if (typeof A != "function")
449
449
  return r(
450
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(A) + " at index " + T + "."
450
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(A) + " at index " + E + "."
451
451
  ), l;
452
452
  }
453
- function _(P, O, x, S, L) {
453
+ function S(P, O, x, _, L) {
454
454
  for (var I = [], M = 0; M < d.length; M++) {
455
- var F = d[M], y = F(P, O, x, S, L, a);
456
- if (y == null)
455
+ var F = d[M], b = F(P, O, x, _, L, a);
456
+ if (b == null)
457
457
  return null;
458
- y.data && u(y.data, "expectedType") && I.push(y.data.expectedType);
458
+ b.data && u(b.data, "expectedType") && I.push(b.data.expectedType);
459
459
  }
460
460
  var Y = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
461
- return new g("Invalid " + S + " `" + L + "` supplied to " + ("`" + x + "`" + Y + "."));
461
+ return new g("Invalid " + _ + " `" + L + "` supplied to " + ("`" + x + "`" + Y + "."));
462
462
  }
463
- return R(_);
463
+ return R(S);
464
464
  }
465
465
  function ne() {
466
- function d(T, A, _, P, O) {
467
- return z(T[A]) ? null : new g("Invalid " + P + " `" + O + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
466
+ function d(E, A, S, P, O) {
467
+ return z(E[A]) ? null : new g("Invalid " + P + " `" + O + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
468
468
  }
469
469
  return R(d);
470
470
  }
471
- function G(d, T, A, _, P) {
471
+ function G(d, E, A, S, P) {
472
472
  return new g(
473
- (d || "React class") + ": " + T + " type `" + A + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
473
+ (d || "React class") + ": " + E + " type `" + A + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
474
474
  );
475
475
  }
476
476
  function X(d) {
477
- function T(A, _, P, O, x) {
478
- var S = A[_], L = q(S);
477
+ function E(A, S, P, O, x) {
478
+ var _ = A[S], L = q(_);
479
479
  if (L !== "object")
480
480
  return new g("Invalid " + O + " `" + x + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
481
481
  for (var I in d) {
482
482
  var M = d[I];
483
483
  if (typeof M != "function")
484
484
  return G(P, O, x, I, Z(M));
485
- var F = M(S, I, P, O, x + "." + I, a);
485
+ var F = M(_, I, P, O, x + "." + I, a);
486
486
  if (F)
487
487
  return F;
488
488
  }
489
489
  return null;
490
490
  }
491
- return R(T);
491
+ return R(E);
492
492
  }
493
493
  function V(d) {
494
- function T(A, _, P, O, x) {
495
- var S = A[_], L = q(S);
494
+ function E(A, S, P, O, x) {
495
+ var _ = A[S], L = q(_);
496
496
  if (L !== "object")
497
497
  return new g("Invalid " + O + " `" + x + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
498
- var I = h({}, A[_], d);
498
+ var I = h({}, A[S], d);
499
499
  for (var M in I) {
500
500
  var F = d[M];
501
501
  if (u(d, M) && typeof F != "function")
502
502
  return G(P, O, x, M, Z(F));
503
503
  if (!F)
504
504
  return new g(
505
- "Invalid " + O + " `" + x + "` key `" + M + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(A[_], null, " ") + `
505
+ "Invalid " + O + " `" + x + "` key `" + M + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(A[S], null, " ") + `
506
506
  Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
507
507
  );
508
- var y = F(S, M, P, O, x + "." + M, a);
509
- if (y)
510
- return y;
508
+ var b = F(_, M, P, O, x + "." + M, a);
509
+ if (b)
510
+ return b;
511
511
  }
512
512
  return null;
513
513
  }
514
- return R(T);
514
+ return R(E);
515
515
  }
516
516
  function z(d) {
517
517
  switch (typeof d) {
@@ -526,16 +526,16 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
526
526
  return d.every(z);
527
527
  if (d === null || o(d))
528
528
  return !0;
529
- var T = i(d);
530
- if (T) {
531
- var A = T.call(d), _;
532
- if (T !== d.entries) {
533
- for (; !(_ = A.next()).done; )
534
- if (!z(_.value))
529
+ var E = i(d);
530
+ if (E) {
531
+ var A = E.call(d), S;
532
+ if (E !== d.entries) {
533
+ for (; !(S = A.next()).done; )
534
+ if (!z(S.value))
535
535
  return !1;
536
536
  } else
537
- for (; !(_ = A.next()).done; ) {
538
- var P = _.value;
537
+ for (; !(S = A.next()).done; ) {
538
+ var P = S.value;
539
539
  if (P && !z(P[1]))
540
540
  return !1;
541
541
  }
@@ -546,55 +546,55 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
546
546
  return !1;
547
547
  }
548
548
  }
549
- function H(d, T) {
550
- return d === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
549
+ function H(d, E) {
550
+ return d === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
551
551
  }
552
552
  function q(d) {
553
- var T = typeof d;
554
- return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : H(T, d) ? "symbol" : T;
553
+ var E = typeof d;
554
+ return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : H(E, d) ? "symbol" : E;
555
555
  }
556
556
  function Z(d) {
557
557
  if (typeof d > "u" || d === null)
558
558
  return "" + d;
559
- var T = q(d);
560
- if (T === "object") {
559
+ var E = q(d);
560
+ if (E === "object") {
561
561
  if (d instanceof Date)
562
562
  return "date";
563
563
  if (d instanceof RegExp)
564
564
  return "regexp";
565
565
  }
566
- return T;
566
+ return E;
567
567
  }
568
568
  function oe(d) {
569
- var T = Z(d);
570
- switch (T) {
569
+ var E = Z(d);
570
+ switch (E) {
571
571
  case "array":
572
572
  case "object":
573
- return "an " + T;
573
+ return "an " + E;
574
574
  case "boolean":
575
575
  case "date":
576
576
  case "regexp":
577
- return "a " + T;
577
+ return "a " + E;
578
578
  default:
579
- return T;
579
+ return E;
580
580
  }
581
581
  }
582
582
  function ue(d) {
583
583
  return !d.constructor || !d.constructor.name ? f : d.constructor.name;
584
584
  }
585
585
  return m.checkPropTypes = c, m.resetWarningCache = c.resetWarningCache, m.PropTypes = m, m;
586
- }, we;
586
+ }, Re;
587
587
  }
588
- var Re, nt;
589
- function Dr() {
590
- if (nt) return Re;
591
- nt = 1;
592
- var n = /* @__PURE__ */ je();
588
+ var Pe, at;
589
+ function Or() {
590
+ if (at) return Pe;
591
+ at = 1;
592
+ var n = /* @__PURE__ */ qe();
593
593
  function h() {
594
594
  }
595
595
  function a() {
596
596
  }
597
- return a.resetWarningCache = h, Re = function() {
597
+ return a.resetWarningCache = h, Pe = function() {
598
598
  function u(l, o, t, e, s, i) {
599
599
  if (i !== n) {
600
600
  var f = new Error(
@@ -631,41 +631,41 @@ function Dr() {
631
631
  resetWarningCache: h
632
632
  };
633
633
  return r.PropTypes = r, r;
634
- }, Re;
634
+ }, Pe;
635
635
  }
636
- var ot;
637
- function Lt() {
638
- if (ot) return ve.exports;
639
- if (ot = 1, process.env.NODE_ENV !== "production") {
640
- var n = Dt(), h = !0;
641
- ve.exports = /* @__PURE__ */ Ar()(n.isElement, h);
636
+ var it;
637
+ function Bt() {
638
+ if (it) return ve.exports;
639
+ if (it = 1, process.env.NODE_ENV !== "production") {
640
+ var n = Ot(), h = !0;
641
+ ve.exports = /* @__PURE__ */ Dr()(n.isElement, h);
642
642
  } else
643
- ve.exports = /* @__PURE__ */ Dr()();
643
+ ve.exports = /* @__PURE__ */ Or()();
644
644
  return ve.exports;
645
645
  }
646
- var Pe, at;
647
- function Bt() {
648
- return at || (at = 1, Pe = {
646
+ var xe, st;
647
+ function It() {
648
+ return st || (st = 1, xe = {
649
649
  L: 1,
650
650
  M: 0,
651
651
  Q: 3,
652
652
  H: 2
653
- }), Pe;
653
+ }), xe;
654
654
  }
655
- var xe, it;
656
- function It() {
657
- return it || (it = 1, xe = {
655
+ var Se, lt;
656
+ function kt() {
657
+ return lt || (lt = 1, Se = {
658
658
  MODE_NUMBER: 1,
659
659
  MODE_ALPHA_NUM: 2,
660
660
  MODE_8BIT_BYTE: 4,
661
661
  MODE_KANJI: 8
662
- }), xe;
662
+ }), Se;
663
663
  }
664
- var _e, st;
665
- function Or() {
666
- if (st) return _e;
667
- st = 1;
668
- var n = It();
664
+ var _e, ut;
665
+ function Lr() {
666
+ if (ut) return _e;
667
+ ut = 1;
668
+ var n = kt();
669
669
  function h(a) {
670
670
  this.mode = n.MODE_8BIT_BYTE, this.data = a;
671
671
  }
@@ -679,11 +679,11 @@ function Or() {
679
679
  }
680
680
  }, _e = h, _e;
681
681
  }
682
- var Se, lt;
683
- function Lr() {
684
- if (lt) return Se;
685
- lt = 1;
686
- var n = Bt();
682
+ var Me, ct;
683
+ function Br() {
684
+ if (ct) return Me;
685
+ ct = 1;
686
+ var n = It();
687
687
  function h(a, u) {
688
688
  this.totalCount = a, this.dataCount = u;
689
689
  }
@@ -913,12 +913,12 @@ function Lr() {
913
913
  default:
914
914
  return;
915
915
  }
916
- }, Se = h, Se;
916
+ }, Me = h, Me;
917
917
  }
918
- var Me, ut;
919
- function Br() {
920
- if (ut) return Me;
921
- ut = 1;
918
+ var Ae, ft;
919
+ function Ir() {
920
+ if (ft) return Ae;
921
+ ft = 1;
922
922
  function n() {
923
923
  this.buffer = new Array(), this.length = 0;
924
924
  }
@@ -938,12 +938,12 @@ function Br() {
938
938
  var a = Math.floor(this.length / 8);
939
939
  this.buffer.length <= a && this.buffer.push(0), h && (this.buffer[a] |= 128 >>> this.length % 8), this.length++;
940
940
  }
941
- }, Me = n, Me;
941
+ }, Ae = n, Ae;
942
942
  }
943
- var Ae, ct;
944
- function kt() {
945
- if (ct) return Ae;
946
- ct = 1;
943
+ var De, dt;
944
+ function Nt() {
945
+ if (dt) return De;
946
+ dt = 1;
947
947
  for (var n = {
948
948
  glog: function(a) {
949
949
  if (a < 1)
@@ -965,13 +965,13 @@ function kt() {
965
965
  n.EXP_TABLE[h] = n.EXP_TABLE[h - 4] ^ n.EXP_TABLE[h - 5] ^ n.EXP_TABLE[h - 6] ^ n.EXP_TABLE[h - 8];
966
966
  for (var h = 0; h < 255; h++)
967
967
  n.LOG_TABLE[n.EXP_TABLE[h]] = h;
968
- return Ae = n, Ae;
968
+ return De = n, De;
969
969
  }
970
- var De, ft;
971
- function Nt() {
972
- if (ft) return De;
973
- ft = 1;
974
- var n = kt();
970
+ var Oe, ht;
971
+ function $t() {
972
+ if (ht) return Oe;
973
+ ht = 1;
974
+ var n = Nt();
975
975
  function h(a, u) {
976
976
  if (a.length == null)
977
977
  throw new Error(a.length + "/" + u);
@@ -1003,13 +1003,13 @@ function Nt() {
1003
1003
  c[r] ^= n.gexp(n.glog(a.get(r)) + u);
1004
1004
  return new h(c, 0).mod(a);
1005
1005
  }
1006
- }, De = h, De;
1006
+ }, Oe = h, Oe;
1007
1007
  }
1008
- var Oe, dt;
1009
- function Ir() {
1010
- if (dt) return Oe;
1011
- dt = 1;
1012
- var n = It(), h = Nt(), a = kt(), u = {
1008
+ var Le, pt;
1009
+ function kr() {
1010
+ if (pt) return Le;
1011
+ pt = 1;
1012
+ var n = kt(), h = $t(), a = Nt(), u = {
1013
1013
  PATTERN000: 0,
1014
1014
  PATTERN001: 1,
1015
1015
  PATTERN010: 2,
@@ -1163,8 +1163,8 @@ function Ir() {
1163
1163
  }
1164
1164
  for (var t = 0; t < l - 1; t++)
1165
1165
  for (var e = 0; e < l - 1; e++) {
1166
- var p = 0;
1167
- r.isDark(t, e) && p++, r.isDark(t + 1, e) && p++, r.isDark(t, e + 1) && p++, r.isDark(t + 1, e + 1) && p++, (p == 0 || p == 4) && (o += 3);
1166
+ var v = 0;
1167
+ r.isDark(t, e) && v++, r.isDark(t + 1, e) && v++, r.isDark(t, e + 1) && v++, r.isDark(t + 1, e + 1) && v++, (v == 0 || v == 4) && (o += 3);
1168
1168
  }
1169
1169
  for (var t = 0; t < l; t++)
1170
1170
  for (var e = 0; e < l - 6; e++)
@@ -1179,13 +1179,13 @@ function Ir() {
1179
1179
  return o += R * 10, o;
1180
1180
  }
1181
1181
  };
1182
- return Oe = c, Oe;
1182
+ return Le = c, Le;
1183
1183
  }
1184
- var Le, ht;
1185
- function kr() {
1186
- if (ht) return Le;
1187
- ht = 1;
1188
- var n = Or(), h = Lr(), a = Br(), u = Ir(), c = Nt();
1184
+ var Be, vt;
1185
+ function Nr() {
1186
+ if (vt) return Be;
1187
+ vt = 1;
1188
+ var n = Lr(), h = Br(), a = Ir(), u = kr(), c = $t();
1189
1189
  function r(o, t) {
1190
1190
  this.typeNumber = o, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
1191
1191
  }
@@ -1239,8 +1239,8 @@ function kr() {
1239
1239
  var s = o.createEmptyMovieClip(t, e), i = 1;
1240
1240
  this.make();
1241
1241
  for (var f = 0; f < this.modules.length; f++)
1242
- for (var m = f * i, p = 0; p < this.modules[f].length; p++) {
1243
- var g = p * i, R = this.modules[f][p];
1242
+ for (var m = f * i, v = 0; v < this.modules[f].length; v++) {
1243
+ var g = v * i, R = this.modules[f][v];
1244
1244
  R && (s.beginFill(0, 100), s.moveTo(g, m), s.lineTo(g + i, m), s.lineTo(g + i, m + i), s.lineTo(g, m + i), s.endFill());
1245
1245
  }
1246
1246
  return s;
@@ -1280,12 +1280,12 @@ function kr() {
1280
1280
  }, l.mapData = function(o, t) {
1281
1281
  for (var e = -1, s = this.moduleCount - 1, i = 7, f = 0, m = this.moduleCount - 1; m > 0; m -= 2)
1282
1282
  for (m == 6 && m--; ; ) {
1283
- for (var p = 0; p < 2; p++)
1284
- if (this.modules[s][m - p] == null) {
1283
+ for (var v = 0; v < 2; v++)
1284
+ if (this.modules[s][m - v] == null) {
1285
1285
  var g = !1;
1286
1286
  f < o.length && (g = (o[f] >>> i & 1) == 1);
1287
- var R = u.getMask(t, s, m - p);
1288
- R && (g = !g), this.modules[s][m - p] = g, i--, i == -1 && (f++, i = 7);
1287
+ var R = u.getMask(t, s, m - v);
1288
+ R && (g = !g), this.modules[s][m - v] = g, i--, i == -1 && (f++, i = 7);
1289
1289
  }
1290
1290
  if (s += e, s < 0 || this.moduleCount <= s) {
1291
1291
  s -= e, e = -e;
@@ -1297,44 +1297,44 @@ function kr() {
1297
1297
  var m = e[f];
1298
1298
  i.put(m.mode, 4), i.put(m.getLength(), u.getLengthInBits(m.mode, o)), m.write(i);
1299
1299
  }
1300
- for (var p = 0, f = 0; f < s.length; f++)
1301
- p += s[f].dataCount;
1302
- if (i.getLengthInBits() > p * 8)
1303
- throw new Error("code length overflow. (" + i.getLengthInBits() + ">" + p * 8 + ")");
1304
- for (i.getLengthInBits() + 4 <= p * 8 && i.put(0, 4); i.getLengthInBits() % 8 != 0; )
1300
+ for (var v = 0, f = 0; f < s.length; f++)
1301
+ v += s[f].dataCount;
1302
+ if (i.getLengthInBits() > v * 8)
1303
+ throw new Error("code length overflow. (" + i.getLengthInBits() + ">" + v * 8 + ")");
1304
+ for (i.getLengthInBits() + 4 <= v * 8 && i.put(0, 4); i.getLengthInBits() % 8 != 0; )
1305
1305
  i.putBit(!1);
1306
- for (; !(i.getLengthInBits() >= p * 8 || (i.put(r.PAD0, 8), i.getLengthInBits() >= p * 8)); )
1306
+ for (; !(i.getLengthInBits() >= v * 8 || (i.put(r.PAD0, 8), i.getLengthInBits() >= v * 8)); )
1307
1307
  i.put(r.PAD1, 8);
1308
1308
  return r.createBytes(i, s);
1309
1309
  }, r.createBytes = function(o, t) {
1310
- for (var e = 0, s = 0, i = 0, f = new Array(t.length), m = new Array(t.length), p = 0; p < t.length; p++) {
1311
- var g = t[p].dataCount, R = t[p].totalCount - g;
1312
- s = Math.max(s, g), i = Math.max(i, R), f[p] = new Array(g);
1313
- for (var b = 0; b < f[p].length; b++)
1314
- f[p][b] = 255 & o.buffer[b + e];
1310
+ for (var e = 0, s = 0, i = 0, f = new Array(t.length), m = new Array(t.length), v = 0; v < t.length; v++) {
1311
+ var g = t[v].dataCount, R = t[v].totalCount - g;
1312
+ s = Math.max(s, g), i = Math.max(i, R), f[v] = new Array(g);
1313
+ for (var y = 0; y < f[v].length; y++)
1314
+ f[v][y] = 255 & o.buffer[y + e];
1315
1315
  e += g;
1316
- var B = u.getErrorCorrectPolynomial(R), D = new c(f[p], B.getLength() - 1), $ = D.mod(B);
1317
- m[p] = new Array(B.getLength() - 1);
1318
- for (var b = 0; b < m[p].length; b++) {
1319
- var v = b + $.getLength() - m[p].length;
1320
- m[p][b] = v >= 0 ? $.get(v) : 0;
1316
+ var B = u.getErrorCorrectPolynomial(R), D = new c(f[v], B.getLength() - 1), $ = D.mod(B);
1317
+ m[v] = new Array(B.getLength() - 1);
1318
+ for (var y = 0; y < m[v].length; y++) {
1319
+ var p = y + $.getLength() - m[v].length;
1320
+ m[v][y] = p >= 0 ? $.get(p) : 0;
1321
1321
  }
1322
1322
  }
1323
- for (var C = 0, b = 0; b < t.length; b++)
1324
- C += t[b].totalCount;
1325
- for (var Q = new Array(C), K = 0, b = 0; b < s; b++)
1326
- for (var p = 0; p < t.length; p++)
1327
- b < f[p].length && (Q[K++] = f[p][b]);
1328
- for (var b = 0; b < i; b++)
1329
- for (var p = 0; p < t.length; p++)
1330
- b < m[p].length && (Q[K++] = m[p][b]);
1323
+ for (var C = 0, y = 0; y < t.length; y++)
1324
+ C += t[y].totalCount;
1325
+ for (var Q = new Array(C), K = 0, y = 0; y < s; y++)
1326
+ for (var v = 0; v < t.length; v++)
1327
+ y < f[v].length && (Q[K++] = f[v][y]);
1328
+ for (var y = 0; y < i; y++)
1329
+ for (var v = 0; v < t.length; v++)
1330
+ y < m[v].length && (Q[K++] = m[v][y]);
1331
1331
  return Q;
1332
- }, Le = r, Le;
1332
+ }, Be = r, Be;
1333
1333
  }
1334
- var ge = {}, pt;
1335
- function Nr() {
1336
- if (pt) return ge;
1337
- pt = 1, Object.defineProperty(ge, "__esModule", {
1334
+ var ge = {}, mt;
1335
+ function $r() {
1336
+ if (mt) return ge;
1337
+ mt = 1, Object.defineProperty(ge, "__esModule", {
1338
1338
  value: !0
1339
1339
  });
1340
1340
  var n = Object.assign || function(e) {
@@ -1344,7 +1344,7 @@ function Nr() {
1344
1344
  Object.prototype.hasOwnProperty.call(i, f) && (e[f] = i[f]);
1345
1345
  }
1346
1346
  return e;
1347
- }, h = /* @__PURE__ */ Lt(), a = r(h), u = ke, c = r(u);
1347
+ }, h = /* @__PURE__ */ Bt(), a = r(h), u = $e, c = r(u);
1348
1348
  function r(e) {
1349
1349
  return e && e.__esModule ? e : { default: e };
1350
1350
  }
@@ -1364,43 +1364,43 @@ function Nr() {
1364
1364
  viewBoxSize: a.default.number.isRequired,
1365
1365
  xmlns: a.default.string
1366
1366
  }, t = (0, u.forwardRef)(function(e, s) {
1367
- var i = e.bgColor, f = e.bgD, m = e.fgD, p = e.fgColor, g = e.size, R = e.title, b = e.viewBoxSize, B = e.xmlns, D = B === void 0 ? "http://www.w3.org/2000/svg" : B, $ = l(e, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
1367
+ var i = e.bgColor, f = e.bgD, m = e.fgD, v = e.fgColor, g = e.size, R = e.title, y = e.viewBoxSize, B = e.xmlns, D = B === void 0 ? "http://www.w3.org/2000/svg" : B, $ = l(e, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
1368
1368
  return c.default.createElement(
1369
1369
  "svg",
1370
- n({}, $, { height: g, ref: s, viewBox: "0 0 " + b + " " + b, width: g, xmlns: D }),
1370
+ n({}, $, { height: g, ref: s, viewBox: "0 0 " + y + " " + y, width: g, xmlns: D }),
1371
1371
  R ? c.default.createElement(
1372
1372
  "title",
1373
1373
  null,
1374
1374
  R
1375
1375
  ) : null,
1376
1376
  c.default.createElement("path", { d: f, fill: i }),
1377
- c.default.createElement("path", { d: m, fill: p })
1377
+ c.default.createElement("path", { d: m, fill: v })
1378
1378
  );
1379
1379
  });
1380
1380
  return t.displayName = "QRCodeSvg", t.propTypes = o, ge.default = t, ge;
1381
1381
  }
1382
- var vt;
1383
- function $r() {
1384
- if (vt) return le;
1385
- vt = 1, Object.defineProperty(le, "__esModule", {
1382
+ var gt;
1383
+ function jr() {
1384
+ if (gt) return le;
1385
+ gt = 1, Object.defineProperty(le, "__esModule", {
1386
1386
  value: !0
1387
1387
  }), le.QRCode = void 0;
1388
1388
  var n = Object.assign || function(g) {
1389
1389
  for (var R = 1; R < arguments.length; R++) {
1390
- var b = arguments[R];
1391
- for (var B in b)
1392
- Object.prototype.hasOwnProperty.call(b, B) && (g[B] = b[B]);
1390
+ var y = arguments[R];
1391
+ for (var B in y)
1392
+ Object.prototype.hasOwnProperty.call(y, B) && (g[B] = y[B]);
1393
1393
  }
1394
1394
  return g;
1395
- }, h = /* @__PURE__ */ Lt(), a = i(h), u = Bt(), c = i(u), r = kr(), l = i(r), o = ke, t = i(o), e = Nr(), s = i(e);
1395
+ }, h = /* @__PURE__ */ Bt(), a = i(h), u = It(), c = i(u), r = Nr(), l = i(r), o = $e, t = i(o), e = $r(), s = i(e);
1396
1396
  function i(g) {
1397
1397
  return g && g.__esModule ? g : { default: g };
1398
1398
  }
1399
1399
  function f(g, R) {
1400
- var b = {};
1400
+ var y = {};
1401
1401
  for (var B in g)
1402
- R.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(g, B) && (b[B] = g[B]);
1403
- return b;
1402
+ R.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(g, B) && (y[B] = g[B]);
1403
+ return y;
1404
1404
  }
1405
1405
  var m = {
1406
1406
  bgColor: a.default.oneOfType([a.default.object, a.default.string]),
@@ -1408,8 +1408,8 @@ function $r() {
1408
1408
  level: a.default.string,
1409
1409
  size: a.default.number,
1410
1410
  value: a.default.string.isRequired
1411
- }, p = (0, o.forwardRef)(function(g, R) {
1412
- var b = g.bgColor, B = b === void 0 ? "#FFFFFF" : b, D = g.fgColor, $ = D === void 0 ? "#000000" : D, v = g.level, C = v === void 0 ? "L" : v, Q = g.size, K = Q === void 0 ? 256 : Q, re = g.value, ne = f(g, ["bgColor", "fgColor", "level", "size", "value"]), G = new l.default(-1, c.default[C]);
1411
+ }, v = (0, o.forwardRef)(function(g, R) {
1412
+ var y = g.bgColor, B = y === void 0 ? "#FFFFFF" : y, D = g.fgColor, $ = D === void 0 ? "#000000" : D, p = g.level, C = p === void 0 ? "L" : p, Q = g.size, K = Q === void 0 ? 256 : Q, re = g.value, ne = f(g, ["bgColor", "fgColor", "level", "size", "value"]), G = new l.default(-1, c.default[C]);
1413
1413
  G.addData(re), G.make();
1414
1414
  var X = G.modules;
1415
1415
  return t.default.createElement(s.default, n({}, ne, {
@@ -1430,10 +1430,10 @@ function $r() {
1430
1430
  viewBoxSize: X.length
1431
1431
  }));
1432
1432
  });
1433
- return le.QRCode = p, p.displayName = "QRCode", p.propTypes = m, le.default = p, le;
1433
+ return le.QRCode = v, v.displayName = "QRCode", v.propTypes = m, le.default = v, le;
1434
1434
  }
1435
- var jr = $r();
1436
- const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1435
+ var Ur = jr();
1436
+ const qr = /* @__PURE__ */ tr(Ur), Fr = "chatId", zr = (n, h, a) => {
1437
1437
  const u = String(n || "").split("@")[0];
1438
1438
  if (!u) return "";
1439
1439
  if (h) return `${h}${u}`;
@@ -1441,31 +1441,31 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1441
1441
  if (!c) return "";
1442
1442
  try {
1443
1443
  const r = new URL(c);
1444
- return r.hash = "", r.searchParams.set(qr, u), r.toString();
1444
+ return r.hash = "", r.searchParams.set(Fr, u), r.toString();
1445
1445
  } catch {
1446
1446
  return "";
1447
1447
  }
1448
- }, zr = W.div`
1448
+ }, Qr = W.div`
1449
1449
  position: absolute;
1450
1450
  inset: 0;
1451
1451
  z-index: 2;
1452
1452
  display: flex;
1453
- `, Qr = W.div`
1453
+ `, Hr = W.div`
1454
1454
  display: flex;
1455
1455
  flex-direction: column;
1456
1456
  align-items: center;
1457
1457
  width: 100%;
1458
1458
  margin: auto 0;
1459
1459
  gap: var(--ethora-space-5, 20px);
1460
- `, Hr = W(Tt)`
1460
+ `, Yr = W(Ie)`
1461
1461
  width: 100%;
1462
- `, Yr = W.div`
1462
+ `, Wr = W.div`
1463
1463
  display: flex;
1464
1464
  justify-content: center;
1465
1465
  padding: var(--ethora-space-6, 24px) var(--ethora-space-5, 20px);
1466
- `, Wr = W.div`
1467
- width: 176px;
1468
1466
  `, Gr = W.div`
1467
+ width: 176px;
1468
+ `, Kr = W.div`
1469
1469
  box-sizing: border-box;
1470
1470
  display: flex;
1471
1471
  flex-direction: column;
@@ -1473,24 +1473,24 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1473
1473
  gap: var(--ethora-space-3, 12px);
1474
1474
  padding: var(--ethora-space-4, 16px) var(--ethora-space-5, 20px);
1475
1475
  border-top: 1px solid var(--ethora-color-border, #e6e8ec);
1476
- `, Kr = ({
1476
+ `, Xr = ({
1477
1477
  isVisible: n,
1478
1478
  chatJid: h,
1479
1479
  setVisible: a
1480
1480
  }) => {
1481
- const { config: u } = Et(), c = de();
1481
+ const { config: u } = Ct(), c = he();
1482
1482
  if (!n) return null;
1483
- const r = Fr(h, u?.qrUrl);
1484
- return /* @__PURE__ */ E(zr, { children: /* @__PURE__ */ E(
1485
- bt,
1483
+ const r = zr(h, u?.qrUrl);
1484
+ return /* @__PURE__ */ T(Qr, { children: /* @__PURE__ */ T(
1485
+ Tt,
1486
1486
  {
1487
1487
  title: c("modal.qr.title"),
1488
1488
  onClose: () => a(!1),
1489
1489
  backLabel: c("action.close"),
1490
- children: /* @__PURE__ */ j(Qr, { children: [
1491
- /* @__PURE__ */ j(Hr, { children: [
1492
- /* @__PURE__ */ E(Yr, { children: /* @__PURE__ */ E(Wr, { children: /* @__PURE__ */ E(
1493
- Ur,
1490
+ children: /* @__PURE__ */ j(Hr, { children: [
1491
+ /* @__PURE__ */ j(Yr, { children: [
1492
+ /* @__PURE__ */ T(Wr, { children: /* @__PURE__ */ T(Gr, { children: /* @__PURE__ */ T(
1493
+ qr,
1494
1494
  {
1495
1495
  size: 176,
1496
1496
  style: { width: "100%", height: "auto" },
@@ -1498,9 +1498,9 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1498
1498
  viewBox: "0 0 176 176"
1499
1499
  }
1500
1500
  ) }) }),
1501
- /* @__PURE__ */ j(Gr, { children: [
1502
- /* @__PURE__ */ E(
1503
- er,
1501
+ /* @__PURE__ */ j(Kr, { children: [
1502
+ /* @__PURE__ */ T(
1503
+ rr,
1504
1504
  {
1505
1505
  $colorBg: u?.colors?.colorInput,
1506
1506
  value: r,
@@ -1509,41 +1509,41 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1509
1509
  style: { width: "100%" }
1510
1510
  }
1511
1511
  ),
1512
- /* @__PURE__ */ E(
1512
+ /* @__PURE__ */ T(
1513
1513
  te,
1514
1514
  {
1515
1515
  text: c("action.copyLink"),
1516
- onClick: () => Wt(r),
1516
+ onClick: () => Kt(r),
1517
1517
  variant: "filled",
1518
1518
  style: { width: "100%" }
1519
1519
  }
1520
1520
  )
1521
1521
  ] })
1522
1522
  ] }),
1523
- /* @__PURE__ */ E(qt, { style: { textAlign: "center" }, children: c("modal.qr.hint") })
1523
+ /* @__PURE__ */ T(Ft, { style: { textAlign: "center" }, children: c("modal.qr.hint") })
1524
1524
  ] })
1525
1525
  }
1526
1526
  ) });
1527
- }, Xr = ({
1527
+ }, Jr = ({
1528
1528
  isModalOpen: n,
1529
1529
  setIsModalOpen: h
1530
1530
  }) => {
1531
- const a = Ne(), u = fe((e) => $e(e)), { client: c } = Ct(), r = de(), l = () => h(!1), o = yt(null);
1532
- wt({
1531
+ const a = je(), u = de((e) => Ue(e)), { client: c } = wt(), r = he(), l = () => h(!1), o = Et(null);
1532
+ Rt({
1533
1533
  enabled: n,
1534
1534
  onClose: l,
1535
1535
  containerRef: o
1536
1536
  });
1537
1537
  const t = async () => {
1538
1538
  try {
1539
- await rr(u.jid.split("@")[0]), c?.leaveTheRoomStanza?.(u.jid), a(nr({ jid: u.jid })), a(or({ roomJID: null })), l();
1539
+ await or(u.jid.split("@")[0]), c?.leaveTheRoomStanza?.(u.jid), a(ar({ jid: u.jid })), a(ir({ roomJID: null })), l();
1540
1540
  } catch (e) {
1541
1541
  console.error("Failed to delete chat:", e);
1542
1542
  }
1543
1543
  };
1544
- return n && /* @__PURE__ */ E(Rt, { children: /* @__PURE__ */ j(Pt, { ref: o, children: [
1545
- /* @__PURE__ */ E(
1546
- xt,
1544
+ return n && /* @__PURE__ */ T(Pt, { children: /* @__PURE__ */ j(xt, { ref: o, children: [
1545
+ /* @__PURE__ */ T(
1546
+ St,
1547
1547
  {
1548
1548
  onClick: l,
1549
1549
  style: { fontSize: 24 },
@@ -1551,9 +1551,9 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1551
1551
  children: "×"
1552
1552
  }
1553
1553
  ),
1554
- /* @__PURE__ */ E(tr, { children: r("modal.deleteChat.title") }),
1555
- /* @__PURE__ */ j(Be, { children: [
1556
- /* @__PURE__ */ E(
1554
+ /* @__PURE__ */ T(nr, { children: r("modal.deleteChat.title") }),
1555
+ /* @__PURE__ */ j(ke, { children: [
1556
+ /* @__PURE__ */ T(
1557
1557
  te,
1558
1558
  {
1559
1559
  onClick: l,
@@ -1563,7 +1563,7 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1563
1563
  variant: "outlined"
1564
1564
  }
1565
1565
  ),
1566
- /* @__PURE__ */ E(
1566
+ /* @__PURE__ */ T(
1567
1567
  te,
1568
1568
  {
1569
1569
  onClick: t,
@@ -1576,22 +1576,22 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1576
1576
  )
1577
1577
  ] })
1578
1578
  ] }) });
1579
- }, Jr = () => {
1580
- const { showToast: n } = _t(), h = Ne(), a = de(), [u, c] = ee(!1), [r, l] = ee(!1), [o, t] = ee([]), e = fe((p) => $e(p)), s = () => l(!0), i = () => {
1579
+ }, Vr = () => {
1580
+ const { showToast: n } = _t(), h = je(), a = he(), [u, c] = ee(!1), [r, l] = ee(!1), [o, t] = ee([]), e = de((v) => Ue(v)), s = () => l(!0), i = () => {
1581
1581
  l(!1), t([]);
1582
- }, f = yt(null);
1583
- wt({
1582
+ }, f = Et(null);
1583
+ Rt({
1584
1584
  enabled: r,
1585
1585
  onClose: i,
1586
1586
  containerRef: f
1587
1587
  });
1588
1588
  const m = async () => {
1589
1589
  c(!0);
1590
- const p = Array.isArray(e?.members) ? e.members : [], g = p.map(
1591
- (b) => b.xmppUsername
1592
- ), R = o.filter((b) => !g.includes(b.xmppUsername)).map((b) => b.xmppUsername);
1590
+ const v = Array.isArray(e?.members) ? e.members : [], g = v.map(
1591
+ (y) => y.xmppUsername
1592
+ ), R = o.filter((y) => !g.includes(y.xmppUsername)).map((y) => y.xmppUsername);
1593
1593
  try {
1594
- const b = await sr({
1594
+ const y = await ur({
1595
1595
  chatName: e.jid.split("@")[0],
1596
1596
  members: R
1597
1597
  });
@@ -1599,8 +1599,8 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1599
1599
  ye({
1600
1600
  jid: e.jid,
1601
1601
  updates: {
1602
- members: [...b, ...p],
1603
- usersCnt: p.length + b.length
1602
+ members: [...y, ...v],
1603
+ usersCnt: v.length + y.length
1604
1604
  }
1605
1605
  })
1606
1606
  ), n({
@@ -1613,16 +1613,16 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1613
1613
  type: "success",
1614
1614
  duration: 3e3
1615
1615
  });
1616
- } catch (b) {
1617
- console.error("Error adding users:", b), c(!1);
1616
+ } catch (y) {
1617
+ console.error("Error adding users:", y), c(!1);
1618
1618
  }
1619
1619
  i(), c(!1);
1620
1620
  };
1621
- return /* @__PURE__ */ j(gt, { children: [
1622
- /* @__PURE__ */ E(ar, { variant: "filled", unstyled: !0, onClick: s, children: a("action.addMoreUsers") }),
1623
- r && /* @__PURE__ */ E(Rt, { children: /* @__PURE__ */ j(Pt, { ref: f, children: [
1624
- /* @__PURE__ */ E(
1625
- xt,
1621
+ return /* @__PURE__ */ j(bt, { children: [
1622
+ /* @__PURE__ */ T(sr, { variant: "filled", unstyled: !0, onClick: s, children: a("action.addMoreUsers") }),
1623
+ r && /* @__PURE__ */ T(Pt, { children: /* @__PURE__ */ j(xt, { ref: f, children: [
1624
+ /* @__PURE__ */ T(
1625
+ St,
1626
1626
  {
1627
1627
  onClick: i,
1628
1628
  style: { fontSize: 24 },
@@ -1630,8 +1630,8 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1630
1630
  children: "×"
1631
1631
  }
1632
1632
  ),
1633
- /* @__PURE__ */ E(
1634
- Be,
1633
+ /* @__PURE__ */ T(
1634
+ ke,
1635
1635
  {
1636
1636
  style: {
1637
1637
  flexDirection: "column",
@@ -1640,8 +1640,8 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1640
1640
  width: "100%",
1641
1641
  minHeight: "400px"
1642
1642
  },
1643
- children: /* @__PURE__ */ E(
1644
- ir,
1643
+ children: /* @__PURE__ */ T(
1644
+ lr,
1645
1645
  {
1646
1646
  selectedUsers: o,
1647
1647
  setSelectedUsers: t,
@@ -1655,8 +1655,8 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1655
1655
  )
1656
1656
  }
1657
1657
  ),
1658
- /* @__PURE__ */ j(Be, { children: [
1659
- /* @__PURE__ */ E(
1658
+ /* @__PURE__ */ j(ke, { children: [
1659
+ /* @__PURE__ */ T(
1660
1660
  te,
1661
1661
  {
1662
1662
  onClick: i,
@@ -1666,7 +1666,7 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1666
1666
  variant: "outlined"
1667
1667
  }
1668
1668
  ),
1669
- u ? /* @__PURE__ */ E(Ie, {}) : /* @__PURE__ */ E(
1669
+ u ? /* @__PURE__ */ T(Ne, {}) : /* @__PURE__ */ T(
1670
1670
  te,
1671
1671
  {
1672
1672
  onClick: m,
@@ -1679,7 +1679,7 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1679
1679
  ] })
1680
1680
  ] }) })
1681
1681
  ] });
1682
- }, Vr = W.div`
1682
+ }, Zr = W.div`
1683
1683
  display: flex;
1684
1684
  align-items: center;
1685
1685
  gap: var(--ethora-space-3, 12px);
@@ -1696,7 +1696,7 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1696
1696
  @media (prefers-reduced-motion: reduce) {
1697
1697
  transition: none;
1698
1698
  }
1699
- `, Zr = W.div`
1699
+ `, en = W.div`
1700
1700
  display: flex;
1701
1701
  align-items: center;
1702
1702
  gap: var(--ethora-space-3, 12px);
@@ -1709,25 +1709,25 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1709
1709
  outline-offset: 2px;
1710
1710
  border-radius: var(--ethora-radius-sm, 8px);
1711
1711
  }
1712
- `, en = W.div`
1712
+ `, tn = W.div`
1713
1713
  display: flex;
1714
1714
  flex-direction: column;
1715
1715
  gap: 2px;
1716
1716
  min-width: 0;
1717
- `, tn = W.span`
1717
+ `, rn = W.span`
1718
1718
  font-size: var(--ethora-font-size-sm, 14px);
1719
1719
  font-weight: var(--ethora-font-weight-semibold, 600);
1720
1720
  color: var(--ethora-color-text, #141414);
1721
1721
  overflow: hidden;
1722
1722
  text-overflow: ellipsis;
1723
1723
  white-space: nowrap;
1724
- `, rn = W.span`
1724
+ `, nn = W.span`
1725
1725
  font-size: var(--ethora-font-size-xs, 12px);
1726
1726
  color: ${({ $online: n }) => n ? "var(--ethora-color-online, #12b76a)" : "var(--ethora-color-text-muted, #8c8c8c)"};
1727
1727
  overflow: hidden;
1728
1728
  text-overflow: ellipsis;
1729
1729
  white-space: nowrap;
1730
- `, nn = W.span`
1730
+ `, on = W.span`
1731
1731
  flex: 0 0 auto;
1732
1732
  background-color: ${({ $banned: n }) => n ? "rgba(217, 45, 32, 0.1)" : "var(--ethora-color-primary-soft, #e7edf9)"};
1733
1733
  color: ${({ $banned: n }) => n ? "var(--ethora-color-danger, #d92d20)" : "var(--ethora-color-primary, #0052cd)"};
@@ -1739,7 +1739,7 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1739
1739
  [data-ethora-color-scheme='dark'] & {
1740
1740
  ${({ $banned: n }) => n ? "background-color: rgba(242, 118, 107, 0.15);" : ""}
1741
1741
  }
1742
- `, on = ({
1742
+ `, an = ({
1743
1743
  member: n,
1744
1744
  disableClick: h,
1745
1745
  online: a,
@@ -1748,14 +1748,14 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1748
1748
  moreOptionsLabel: r,
1749
1749
  onAvatarClick: l
1750
1750
  }) => {
1751
- const o = de(), t = St(), e = String(n?.xmppUsername || ""), s = e.split("@")[0], i = fe(
1751
+ const o = he(), t = Mt(), e = String(n?.xmppUsername || ""), s = e.split("@")[0], i = de(
1752
1752
  (D) => D.rooms.usersSet?.[e] ?? D.rooms.usersSet?.[s]
1753
- ), f = n.firstName || i?.firstName || "", m = n.lastName || i?.lastName || "", p = n.profileImage || i?.profileImage || i?.photoURL || "", g = {
1753
+ ), f = n.firstName || i?.firstName || "", m = n.lastName || i?.lastName || "", v = n.profileImage || i?.profileImage || i?.photoURL || "", g = {
1754
1754
  ...n,
1755
1755
  firstName: f,
1756
1756
  lastName: m,
1757
- profileImage: p
1758
- }, R = !!n.role && n.role !== "none", b = n.ban_status === "banned";
1757
+ profileImage: v
1758
+ }, R = !!n.role && n.role !== "none", y = n.ban_status === "banned";
1759
1759
  let B = "";
1760
1760
  if (a)
1761
1761
  B = o("presence.online");
@@ -1768,9 +1768,9 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1768
1768
  B = "";
1769
1769
  }
1770
1770
  else R && (B = n.role);
1771
- return /* @__PURE__ */ j(Vr, { children: [
1771
+ return /* @__PURE__ */ j(Zr, { children: [
1772
1772
  /* @__PURE__ */ j(
1773
- Zr,
1773
+ en,
1774
1774
  {
1775
1775
  $clickable: !h,
1776
1776
  role: h ? void 0 : "button",
@@ -1780,32 +1780,32 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1780
1780
  (D.key === "Enter" || D.key === " ") && (D.preventDefault(), l(g));
1781
1781
  },
1782
1782
  children: [
1783
- /* @__PURE__ */ E(
1784
- Mt,
1783
+ /* @__PURE__ */ T(
1784
+ At,
1785
1785
  {
1786
1786
  name: `${f} ${m}`,
1787
- icon: p,
1787
+ icon: v,
1788
1788
  size: 40,
1789
1789
  online: a
1790
1790
  }
1791
1791
  ),
1792
- /* @__PURE__ */ j(en, { children: [
1793
- /* @__PURE__ */ j(tn, { children: [
1792
+ /* @__PURE__ */ j(tn, { children: [
1793
+ /* @__PURE__ */ j(rn, { children: [
1794
1794
  f,
1795
1795
  " ",
1796
1796
  m
1797
1797
  ] }),
1798
- B && /* @__PURE__ */ E(rn, { $online: a, children: B })
1798
+ B && /* @__PURE__ */ T(nn, { $online: a, children: B })
1799
1799
  ] })
1800
1800
  ]
1801
1801
  }
1802
1802
  ),
1803
- R && /* @__PURE__ */ E(nn, { $banned: b, children: n.role }),
1804
- u && /* @__PURE__ */ E(
1805
- At,
1803
+ R && /* @__PURE__ */ T(on, { $banned: y, children: n.role }),
1804
+ u && /* @__PURE__ */ T(
1805
+ Dt,
1806
1806
  {
1807
1807
  options: c,
1808
- openButton: /* @__PURE__ */ E(
1808
+ openButton: /* @__PURE__ */ T(
1809
1809
  te,
1810
1810
  {
1811
1811
  onClick: (D) => {
@@ -1815,18 +1815,18 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1815
1815
  children: r
1816
1816
  }
1817
1817
  ),
1818
- onClose: () => lr.log("Dropdown closed")
1818
+ onClose: () => cr.log("Dropdown closed")
1819
1819
  }
1820
1820
  )
1821
1821
  ] });
1822
- }, an = ke.memo(on), mt = 150, sn = 150, hn = ({
1822
+ }, sn = $e.memo(an), yt = 150, ln = 150, pn = ({
1823
1823
  handleCloseModal: n
1824
1824
  }) => {
1825
- const [h, a] = ee(!1), [u, c] = ee(!1), [r, l] = ee(!1), { showToast: o } = _t(), t = de(), e = St(), s = se(
1825
+ const [h, a] = ee(!1), [u, c] = ee(!1), [r, l] = ee(!1), { showToast: o } = _t(), t = he(), e = Mt(), s = se(
1826
1826
  () => [
1827
1827
  {
1828
1828
  label: t("action.deleteChat"),
1829
- icon: /* @__PURE__ */ E(ur, {}),
1829
+ icon: /* @__PURE__ */ T(fr, {}),
1830
1830
  onClick: () => {
1831
1831
  l(!0);
1832
1832
  },
@@ -1834,49 +1834,49 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1834
1834
  }
1835
1835
  ],
1836
1836
  [t]
1837
- ), [i, f] = ee(!1), [m, p] = ee(
1838
- mt
1839
- ), [g, R] = ee(""), b = Ne(), B = cr(), { client: D } = Ct(), { user: $, config: v } = Et(), C = fe((w) => $e(w)), {
1837
+ ), [i, f] = ee(!1), [m, v] = ee(
1838
+ yt
1839
+ ), [g, R] = ee(""), y = je(), B = dr(), { client: D } = wt(), { user: $, config: p } = Ct(), C = de((w) => Ue(w)), {
1840
1840
  muted: Q,
1841
1841
  isSupported: K,
1842
1842
  setMuted: re
1843
- } = fr(C?.jid), ne = K && !v?.disableRoomMute, G = dr(C?.jid), X = fe(
1843
+ } = hr(C?.jid), ne = K && !p?.disableRoomMute, G = pr(C?.jid), X = de(
1844
1844
  (w) => w.chatSettingStore.user?.fileToken || ""
1845
1845
  ), V = se(() => new Set(G), [G]), z = se(() => Array.isArray(C?.members) ? C.members : [], [C?.members]), H = se(() => {
1846
1846
  const w = g.trim().toLowerCase();
1847
1847
  if (!w) return z;
1848
1848
  const U = B.getState().rooms.usersSet;
1849
1849
  return z.filter((J) => {
1850
- const ie = String(J?.xmppUsername || ""), $t = ie.split("@")[0], qe = U?.[ie] || U?.[$t], jt = J.firstName || qe?.firstName || "", Ut = J.lastName || qe?.lastName || "";
1851
- return `${jt} ${Ut}`.toLowerCase().includes(w);
1850
+ const ie = String(J?.xmppUsername || ""), jt = ie.split("@")[0], ze = U?.[ie] || U?.[jt], Ut = J.firstName || ze?.firstName || "", qt = J.lastName || ze?.lastName || "";
1851
+ return `${Ut} ${qt}`.toLowerCase().includes(w);
1852
1852
  });
1853
1853
  }, [z, g, B]), q = se(
1854
1854
  () => H.slice(0, m),
1855
1855
  [H, m]
1856
1856
  ), Z = m < H.length, oe = (w) => {
1857
- R(w.target.value), p(mt);
1857
+ R(w.target.value), v(yt);
1858
1858
  }, ue = C?.jid ? C.jid.split("@")[0] : void 0, {
1859
1859
  items: d,
1860
- loading: T,
1860
+ loading: E,
1861
1861
  error: A,
1862
- remove: _
1863
- } = hr({ roomName: ue }), P = i ? d : d.slice(0, 6), O = (w) => {
1864
- const U = Ge(w.location);
1862
+ remove: S
1863
+ } = vr({ roomName: ue }), P = i ? d : d.slice(0, 6), O = (w) => {
1864
+ const U = Xe(w.location);
1865
1865
  U && typeof window < "u" && window.open(U, "_blank", "noopener,noreferrer");
1866
1866
  }, x = (w) => {
1867
- const U = Ge(w.location);
1867
+ const U = Xe(w.location);
1868
1868
  if (!U || typeof document > "u") return;
1869
1869
  const J = document.createElement("a");
1870
1870
  J.href = U, J.download = w.originalname || "file", document.body.appendChild(J), J.click(), J.remove();
1871
- }, S = (w) => {
1872
- _(w._id).catch(() => {
1871
+ }, _ = (w) => {
1872
+ S(w._id).catch(() => {
1873
1873
  });
1874
1874
  }, L = async (w) => {
1875
1875
  try {
1876
1876
  let U = new FormData();
1877
1877
  U.append("files", w);
1878
- const ie = (await wr(U, C.jid))?.data?.results?.[0]?.location;
1879
- ie && (D.setRoomImageStanza(C.jid, ie, "icon", "none"), b(
1878
+ const ie = (await Pr(U, C.jid))?.data?.results?.[0]?.location;
1879
+ ie && (D.setRoomImageStanza(C.jid, ie, "icon", "none"), y(
1880
1880
  ye({ jid: C.jid, updates: { icon: ie } })
1881
1881
  ));
1882
1882
  } catch (U) {
@@ -1884,10 +1884,10 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1884
1884
  }
1885
1885
  }, I = async (w) => {
1886
1886
  try {
1887
- await Cr({
1887
+ await Rr({
1888
1888
  roomId: C.jid.split("@")[0],
1889
1889
  members: [w]
1890
- }), b(
1890
+ }), y(
1891
1891
  ye({
1892
1892
  jid: C.jid,
1893
1893
  updates: {
@@ -1908,11 +1908,11 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1908
1908
  type: "error"
1909
1909
  });
1910
1910
  }
1911
- }, M = v?.disableRoomConfig === !0, F = async () => {
1912
- D.setRoomImageStanza(C.jid, null, "icon", "none"), b(ye({ jid: C.jid, updates: { icon: null } }));
1913
- }, y = (w) => {
1914
- b(Ye(Rr.PROFILE)), b(
1915
- Pr({
1911
+ }, M = p?.disableRoomConfig === !0, F = async () => {
1912
+ D.setRoomImageStanza(C.jid, null, "icon", "none"), y(ye({ jid: C.jid, updates: { icon: null } }));
1913
+ }, b = (w) => {
1914
+ y(be(Ge.PROFILE)), y(
1915
+ xr({
1916
1916
  id: w._id,
1917
1917
  firstName: w.firstName,
1918
1918
  lastName: w.lastName,
@@ -1933,35 +1933,35 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1933
1933
  [t]
1934
1934
  );
1935
1935
  if (!C)
1936
- return b(Ye()), null;
1936
+ return y(be()), null;
1937
1937
  const ae = (() => {
1938
- const w = Array.isArray(C.members) && C.members.length > 0 ? C.members.length : typeof C.usersCnt == "number" && C.usersCnt > 0 ? C.usersCnt : 0, U = pr(w, e);
1938
+ const w = Array.isArray(C.members) && C.members.length > 0 ? C.members.length : typeof C.usersCnt == "number" && C.usersCnt > 0 ? C.usersCnt : 0, U = mr(w, e);
1939
1939
  return w === 1 ? t("modal.chatProfile.memberCountSingular", { count: U }) : t("modal.chatProfile.memberCountPlural", { count: U });
1940
- })(), ce = !v?.disableChatInfo?.disableDescription, Ue = !v?.disableChatInfo?.disableType;
1940
+ })(), ce = !p?.disableChatInfo?.disableDescription, Fe = !p?.disableChatInfo?.disableType;
1941
1941
  return /* @__PURE__ */ j(
1942
- bt,
1942
+ Tt,
1943
1943
  {
1944
1944
  title: t("modal.chatProfile.title"),
1945
1945
  onClose: n,
1946
- headerActions: /* @__PURE__ */ j(gt, { children: [
1947
- C?.type === "public" && /* @__PURE__ */ E(
1946
+ headerActions: /* @__PURE__ */ j(bt, { children: [
1947
+ C?.type === "public" && /* @__PURE__ */ T(
1948
1948
  te,
1949
1949
  {
1950
- EndIcon: /* @__PURE__ */ E(Tr, {}),
1950
+ EndIcon: /* @__PURE__ */ T(Cr, {}),
1951
1951
  onClick: () => c(!0),
1952
1952
  "aria-label": t("action.showQr")
1953
1953
  }
1954
1954
  ),
1955
- C.role === "moderator" && C.type !== "private" && !M && !v?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ E(
1956
- At,
1955
+ C.role === "moderator" && C.type !== "private" && !M && !p?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ T(
1956
+ Dt,
1957
1957
  {
1958
1958
  position: "left",
1959
1959
  options: s,
1960
- openButton: /* @__PURE__ */ E(
1960
+ openButton: /* @__PURE__ */ T(
1961
1961
  te,
1962
1962
  {
1963
1963
  style: { padding: 8, maxHeight: "40px" },
1964
- EndIcon: /* @__PURE__ */ E(Er, {}),
1964
+ EndIcon: /* @__PURE__ */ T(wr, {}),
1965
1965
  unstyled: !0,
1966
1966
  "aria-label": t("action.moreOptions")
1967
1967
  }
@@ -1970,12 +1970,12 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1970
1970
  )
1971
1971
  ] }),
1972
1972
  children: [
1973
- /* @__PURE__ */ j(Gt, { children: [
1974
- /* @__PURE__ */ E(
1975
- Mt,
1973
+ /* @__PURE__ */ j(Xt, { children: [
1974
+ /* @__PURE__ */ T(
1975
+ At,
1976
1976
  {
1977
1977
  name: C.name,
1978
- icon: vr(C.icon, X),
1978
+ icon: gr(C.icon, X),
1979
1979
  upload: {
1980
1980
  onUpload: L,
1981
1981
  active: !M && C?.role !== "participant"
@@ -1986,25 +1986,32 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1986
1986
  }
1987
1987
  ),
1988
1988
  /* @__PURE__ */ j("div", { children: [
1989
- /* @__PURE__ */ E(Kt, { children: C.name }),
1990
- /* @__PURE__ */ E(Xt, { children: ae })
1989
+ /* @__PURE__ */ T(Jt, { children: C.name }),
1990
+ /* @__PURE__ */ T(Vt, { children: ae })
1991
1991
  ] })
1992
1992
  ] }),
1993
- C.role === "moderator" && C.type === "group" && !M && /* @__PURE__ */ E(Jr, {}),
1994
- (ce || Ue) && /* @__PURE__ */ j(he, { children: [
1995
- /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.aboutSection") }),
1996
- ce && /* @__PURE__ */ E(Jt, { $empty: !C?.description, children: C?.description || t("modal.profile.noDescription") }),
1997
- Ue && /* @__PURE__ */ j(Vt, { children: [
1998
- /* @__PURE__ */ E(mr, { color: "currentColor" }),
1993
+ C.role === "moderator" && C.type === "group" && !M && /* @__PURE__ */ T(Vr, {}),
1994
+ (ce || Fe) && /* @__PURE__ */ j(fe, { children: [
1995
+ /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.aboutSection") }),
1996
+ ce && /* @__PURE__ */ T(Zt, { $empty: !C?.description, children: C?.description || t("modal.profile.noDescription") }),
1997
+ Fe && /* @__PURE__ */ j(er, { children: [
1998
+ /* @__PURE__ */ T(yr, { color: "currentColor" }),
1999
1999
  t(
2000
2000
  C.type === "private" ? "modal.chatProfile.typePrivate" : C.type === "group" ? "modal.chatProfile.typeGroup" : "modal.chatProfile.typePublic"
2001
2001
  )
2002
2002
  ] })
2003
2003
  ] }),
2004
- ne && /* @__PURE__ */ j(he, { children: [
2005
- /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.notifications") }),
2006
- /* @__PURE__ */ E(Tt, { children: /* @__PURE__ */ j(
2007
- Ft,
2004
+ !!p?.appId && !p?.disableMessageSearch && /* @__PURE__ */ T(fe, { children: /* @__PURE__ */ T(Ie, { children: /* @__PURE__ */ T(
2005
+ zt,
2006
+ {
2007
+ label: t("search.messages.title"),
2008
+ onClick: () => y(be(Ge.MESSAGE_SEARCH))
2009
+ }
2010
+ ) }) }),
2011
+ ne && /* @__PURE__ */ j(fe, { children: [
2012
+ /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.notifications") }),
2013
+ /* @__PURE__ */ T(Ie, { children: /* @__PURE__ */ j(
2014
+ Qt,
2008
2015
  {
2009
2016
  style: {
2010
2017
  flexDirection: "row",
@@ -2012,27 +2019,27 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
2012
2019
  alignItems: "center"
2013
2020
  },
2014
2021
  children: [
2015
- /* @__PURE__ */ E(zt, { children: t(Q ? "action.unmute" : "action.mute") }),
2016
- /* @__PURE__ */ E(
2017
- gr,
2022
+ /* @__PURE__ */ T(Ht, { children: t(Q ? "action.unmute" : "action.mute") }),
2023
+ /* @__PURE__ */ T(
2024
+ br,
2018
2025
  {
2019
2026
  checked: Q,
2020
2027
  onToggle: (w) => {
2021
2028
  re(w);
2022
2029
  },
2023
- bgColor: v?.colors?.primary
2030
+ bgColor: p?.colors?.primary
2024
2031
  }
2025
2032
  )
2026
2033
  ]
2027
2034
  }
2028
2035
  ) })
2029
2036
  ] }),
2030
- !v?.disableChatInfo?.hideMembers && /* @__PURE__ */ j(he, { children: [
2031
- /* @__PURE__ */ E(Fe, { children: /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.membersSection") }) }),
2032
- z.length > 0 && /* @__PURE__ */ j(Qt, { children: [
2033
- /* @__PURE__ */ E(yr, { color: "currentColor", height: "18px" }),
2034
- /* @__PURE__ */ E(
2035
- Ht,
2037
+ !p?.disableChatInfo?.hideMembers && /* @__PURE__ */ j(fe, { children: [
2038
+ /* @__PURE__ */ T(Qe, { children: /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.membersSection") }) }),
2039
+ z.length > 0 && /* @__PURE__ */ j(Yt, { children: [
2040
+ /* @__PURE__ */ T(Er, { color: "currentColor", height: "18px" }),
2041
+ /* @__PURE__ */ T(
2042
+ Wt,
2036
2043
  {
2037
2044
  type: "text",
2038
2045
  value: g,
@@ -2042,27 +2049,27 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
2042
2049
  }
2043
2050
  )
2044
2051
  ] }),
2045
- h ? /* @__PURE__ */ E(Ie, {}) : /* @__PURE__ */ j(Yt, { children: [
2046
- q.map((w) => /* @__PURE__ */ E(
2047
- an,
2052
+ h ? /* @__PURE__ */ T(Ne, {}) : /* @__PURE__ */ j(Gt, { children: [
2053
+ q.map((w) => /* @__PURE__ */ T(
2054
+ sn,
2048
2055
  {
2049
2056
  member: w,
2050
2057
  isLast: !0,
2051
- disableClick: !!v?.disableChatInfo?.disableMembers,
2058
+ disableClick: !!p?.disableChatInfo?.disableMembers,
2052
2059
  online: V.has(w.xmppUsername),
2053
2060
  showMenu: $.xmppUsername !== w.xmppUsername && C.role === "moderator" && C.type !== "private" && !M,
2054
2061
  menuOptions: Y(w.xmppUsername),
2055
2062
  moreOptionsLabel: t("action.moreOptions"),
2056
- onAvatarClick: y
2063
+ onAvatarClick: b
2057
2064
  },
2058
2065
  w.xmppUsername
2059
2066
  )),
2060
- Z && /* @__PURE__ */ E(
2061
- ze,
2067
+ Z && /* @__PURE__ */ T(
2068
+ He,
2062
2069
  {
2063
2070
  type: "button",
2064
- onClick: () => p(
2065
- (w) => w + sn
2071
+ onClick: () => v(
2072
+ (w) => w + ln
2066
2073
  ),
2067
2074
  children: t("modal.chatProfile.membersShowMore", {
2068
2075
  count: H.length - m
@@ -2071,11 +2078,11 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
2071
2078
  )
2072
2079
  ] })
2073
2080
  ] }),
2074
- /* @__PURE__ */ j(he, { children: [
2075
- /* @__PURE__ */ j(Fe, { children: [
2076
- /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.filesTitle") }),
2077
- d.length > 6 && /* @__PURE__ */ E(
2078
- ze,
2081
+ /* @__PURE__ */ j(fe, { children: [
2082
+ /* @__PURE__ */ j(Qe, { children: [
2083
+ /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.filesTitle") }),
2084
+ d.length > 6 && /* @__PURE__ */ T(
2085
+ He,
2079
2086
  {
2080
2087
  type: "button",
2081
2088
  onClick: () => f((w) => !w),
@@ -2084,46 +2091,46 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
2084
2091
  }
2085
2092
  )
2086
2093
  ] }),
2087
- T && d.length === 0 ? /* @__PURE__ */ E(Ie, {}) : A && d.length === 0 ? /* @__PURE__ */ j(Qe, { $compact: !0, children: [
2088
- /* @__PURE__ */ E(
2089
- We,
2094
+ E && d.length === 0 ? /* @__PURE__ */ T(Ne, {}) : A && d.length === 0 ? /* @__PURE__ */ j(Ye, { $compact: !0, children: [
2095
+ /* @__PURE__ */ T(
2096
+ Ke,
2090
2097
  {
2091
2098
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2092
2099
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2093
2100
  }
2094
2101
  ),
2095
- /* @__PURE__ */ E(He, { children: t("files.error.title") })
2096
- ] }) : d.length === 0 ? /* @__PURE__ */ j(Qe, { $compact: !0, children: [
2097
- /* @__PURE__ */ E(
2098
- We,
2102
+ /* @__PURE__ */ T(We, { children: t("files.error.title") })
2103
+ ] }) : d.length === 0 ? /* @__PURE__ */ j(Ye, { $compact: !0, children: [
2104
+ /* @__PURE__ */ T(
2105
+ Ke,
2099
2106
  {
2100
2107
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2101
2108
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2102
2109
  }
2103
2110
  ),
2104
- /* @__PURE__ */ E(He, { children: t("modal.chatProfile.filesEmpty") })
2105
- ] }) : /* @__PURE__ */ E(
2106
- br,
2111
+ /* @__PURE__ */ T(We, { children: t("modal.chatProfile.filesEmpty") })
2112
+ ] }) : /* @__PURE__ */ T(
2113
+ Tr,
2107
2114
  {
2108
2115
  items: P,
2109
2116
  fileToken: X,
2110
2117
  onPreview: O,
2111
2118
  onDownload: x,
2112
- onDelete: S,
2119
+ onDelete: _,
2113
2120
  compact: !0
2114
2121
  }
2115
2122
  )
2116
2123
  ] }),
2117
- /* @__PURE__ */ E(
2118
- Kr,
2124
+ /* @__PURE__ */ T(
2125
+ Xr,
2119
2126
  {
2120
2127
  isVisible: u,
2121
2128
  setVisible: c,
2122
2129
  chatJid: C.jid
2123
2130
  }
2124
2131
  ),
2125
- /* @__PURE__ */ E(
2126
- Xr,
2132
+ /* @__PURE__ */ T(
2133
+ Jr,
2127
2134
  {
2128
2135
  isModalOpen: r,
2129
2136
  setIsModalOpen: l
@@ -2134,5 +2141,5 @@ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
2134
2141
  );
2135
2142
  };
2136
2143
  export {
2137
- hn as default
2144
+ pn as default
2138
2145
  };