@ethora/chat-component 26.10.4 → 26.10.5

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,18 +1,18 @@
1
- import { jsx as T, jsxs as j, Fragment as Ct } from "react/jsx-runtime";
2
- import $e, { useRef as wt, useState as re, useMemo as le } from "react";
3
- import { w as Kt, b as Rt, x as de, a9 as Xt, B as oe, E as Y, a as je, u as fe, aa as Ue, N as Pt, F as xt, ab as St, ac as _t, ad as Mt, ae as Jt, af as Ie, ag as Vt, ah as Zt, a7 as er, Q as At, a2 as tr, ai as rr, aj as ke, ak as nr, al as ye, am as Dt, an as Ot, P as Lt, $ as Bt, D as or, ao as ar, ap as ir, aq as sr, ar as lr, as as ur, at as cr, au as He, av as fr, y as be, aw as dr, ax as hr, ay as pr, az as vr, M as Ye, aA as mr, aB as gr, aC as yr, aD as We, aE as br, aF as Er, a0 as Tr, aG as Cr, aH as wr, R as Rr, aI as Ge } from "./main-DbepSYi_.js";
4
- import { S as It, f as Pr, b as Ne, D as ce, a as pe, d as xr, e as Sr, g as Ke, h as Xe, i as _r, j as Mr, k as Ar, l as Je } from "./SideDrawer-BQ413Bso.js";
5
- import { h as Dr, P as Or, a as Lr, c as Br, D as Ir, d as kr, e as Ve, f as Ze } from "./handleCopyClick-Cja-CefH.js";
6
- var ue = {}, ve = { exports: {} }, me = { exports: {} }, k = {};
7
- var et;
8
- function Nr() {
9
- if (et) return k;
10
- et = 1;
11
- var n = typeof Symbol == "function" && Symbol.for, d = 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, P = 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 A(p) {
1
+ import { jsx as T, jsxs as j, Fragment as Pt } from "react/jsx-runtime";
2
+ import Ue, { useRef as xt, useState as ee, useMemo as se } from "react";
3
+ import { w as nr, b as St, x as he, a9 as or, B as te, E as Y, a as qe, u as ue, aa as Fe, N as _t, F as Mt, ab as At, ac as Dt, ad as Ot, ae as ar, af as Ne, ag as ir, ah as sr, a7 as lr, Q as Lt, a2 as ur, ai as cr, aj as $e, ak as fr, al as be, am as It, an as Bt, P as kt, $ as Nt, D as dr, ao as hr, ap as pr, aq as vr, ar as mr, as as gr, at as yr, au as We, av as br, y as Te, aw as Er, ax as Tr, ay as Cr, az as wr, M as Ge, aA as Rr, aB as Pr, aC as xr, aD as Ke, aE as Sr, aF as _r, a0 as Mr, aG as Ar, aH as Xe, aI as Dr, R as Or, aJ as Je } from "./main-Cdwk7Rjj.js";
4
+ import { S as $t, f as Lr, b as je, D as de, a as ve, d as Ir, e as Br, g as Ve, h as Ze, i as kr, j as Nr, k as $r, l as et } from "./SideDrawer-BzfNGNbq.js";
5
+ import { h as jr, P as Ur, a as qr, c as Fr, D as zr, d as Qr, e as tt, f as rt } from "./handleCopyClick-C-w304_U.js";
6
+ var le = {}, me = { exports: {} }, ge = { exports: {} }, k = {};
7
+ var nt;
8
+ function Hr() {
9
+ if (nt) return k;
10
+ nt = 1;
11
+ var n = typeof Symbol == "function" && Symbol.for, d = 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, I = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
12
+ function D(p) {
13
13
  if (typeof p == "object" && p !== null) {
14
- var C = p.$$typeof;
15
- switch (C) {
14
+ var w = p.$$typeof;
15
+ switch (w) {
16
16
  case d:
17
17
  switch (p = p.type, p) {
18
18
  case t:
@@ -31,77 +31,77 @@ function Nr() {
31
31
  case l:
32
32
  return p;
33
33
  default:
34
- return C;
34
+ return w;
35
35
  }
36
36
  }
37
37
  case a:
38
- return C;
38
+ return w;
39
39
  }
40
40
  }
41
41
  }
42
42
  function $(p) {
43
- return A(p) === e;
43
+ return D(p) === e;
44
44
  }
45
45
  return k.AsyncMode = t, k.ConcurrentMode = e, k.ContextConsumer = o, k.ContextProvider = l, k.Element = d, 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) || A(p) === t;
46
+ return $(p) || D(p) === t;
47
47
  }, k.isConcurrentMode = $, k.isContextConsumer = function(p) {
48
- return A(p) === o;
48
+ return D(p) === o;
49
49
  }, k.isContextProvider = function(p) {
50
- return A(p) === l;
50
+ return D(p) === l;
51
51
  }, k.isElement = function(p) {
52
52
  return typeof p == "object" && p !== null && p.$$typeof === d;
53
53
  }, k.isForwardRef = function(p) {
54
- return A(p) === s;
54
+ return D(p) === s;
55
55
  }, k.isFragment = function(p) {
56
- return A(p) === u;
56
+ return D(p) === u;
57
57
  }, k.isLazy = function(p) {
58
- return A(p) === v;
58
+ return D(p) === v;
59
59
  }, k.isMemo = function(p) {
60
- return A(p) === m;
60
+ return D(p) === m;
61
61
  }, k.isPortal = function(p) {
62
- return A(p) === a;
62
+ return D(p) === a;
63
63
  }, k.isProfiler = function(p) {
64
- return A(p) === r;
64
+ return D(p) === r;
65
65
  }, k.isStrictMode = function(p) {
66
- return A(p) === c;
66
+ return D(p) === c;
67
67
  }, k.isSuspense = function(p) {
68
- return A(p) === i;
68
+ return D(p) === i;
69
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 === P || p.$$typeof === y || p.$$typeof === B || p.$$typeof === g);
71
- }, k.typeOf = A, k;
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 === I || p.$$typeof === g);
71
+ }, k.typeOf = D, k;
72
72
  }
73
73
  var N = {};
74
- var tt;
75
- function $r() {
76
- return tt || (tt = 1, process.env.NODE_ENV !== "production" && (function() {
77
- var n = typeof Symbol == "function" && Symbol.for, d = 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, P = 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 A(b) {
74
+ var ot;
75
+ function Yr() {
76
+ return ot || (ot = 1, process.env.NODE_ENV !== "production" && (function() {
77
+ var n = typeof Symbol == "function" && Symbol.for, d = 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, I = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
78
+ function D(b) {
79
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 === P || b.$$typeof === y || b.$$typeof === B || b.$$typeof === g);
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 === I || b.$$typeof === g);
81
81
  }
82
82
  function $(b) {
83
83
  if (typeof b == "object" && b !== null) {
84
84
  var H = b.$$typeof;
85
85
  switch (H) {
86
86
  case d:
87
- var J = b.type;
88
- switch (J) {
87
+ var ie = b.type;
88
+ switch (ie) {
89
89
  case t:
90
90
  case e:
91
91
  case u:
92
92
  case r:
93
93
  case c:
94
94
  case i:
95
- return J;
95
+ return ie;
96
96
  default:
97
- var he = J && J.$$typeof;
98
- switch (he) {
97
+ var pe = ie && ie.$$typeof;
98
+ switch (pe) {
99
99
  case o:
100
100
  case s:
101
101
  case v:
102
102
  case m:
103
103
  case l:
104
- return he;
104
+ return pe;
105
105
  default:
106
106
  return H;
107
107
  }
@@ -111,9 +111,9 @@ function $r() {
111
111
  }
112
112
  }
113
113
  }
114
- var p = t, C = e, Q = o, K = l, ae = d, ie = s, W = u, X = v, Z = m, z = a, G = r, q = c, ee = i, te = !1;
115
- function ne(b) {
116
- return te || (te = !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.")), h(b) || $(b) === t;
114
+ var p = t, w = e, z = o, G = l, re = d, ne = s, W = u, K = v, V = m, Q = a, X = r, F = c, Z = i, ae = !1;
115
+ function ce(b) {
116
+ return ae || (ae = !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.")), h(b) || $(b) === t;
117
117
  }
118
118
  function h(b) {
119
119
  return $(b) === e;
@@ -121,47 +121,47 @@ function $r() {
121
121
  function E(b) {
122
122
  return $(b) === o;
123
123
  }
124
- function M(b) {
124
+ function S(b) {
125
125
  return $(b) === l;
126
126
  }
127
- function S(b) {
127
+ function _(b) {
128
128
  return typeof b == "object" && b !== null && b.$$typeof === d;
129
129
  }
130
- function R(b) {
130
+ function P(b) {
131
131
  return $(b) === s;
132
132
  }
133
- function D(b) {
133
+ function A(b) {
134
134
  return $(b) === u;
135
135
  }
136
136
  function x(b) {
137
137
  return $(b) === v;
138
138
  }
139
- function _(b) {
139
+ function M(b) {
140
140
  return $(b) === m;
141
141
  }
142
142
  function O(b) {
143
143
  return $(b) === a;
144
144
  }
145
- function I(b) {
145
+ function B(b) {
146
146
  return $(b) === r;
147
147
  }
148
148
  function L(b) {
149
149
  return $(b) === c;
150
150
  }
151
- function F(b) {
151
+ function q(b) {
152
152
  return $(b) === i;
153
153
  }
154
- N.AsyncMode = p, N.ConcurrentMode = C, N.ContextConsumer = Q, N.ContextProvider = K, N.Element = ae, N.ForwardRef = ie, N.Fragment = W, N.Lazy = X, N.Memo = Z, N.Portal = z, N.Profiler = G, N.StrictMode = q, N.Suspense = ee, N.isAsyncMode = ne, N.isConcurrentMode = h, N.isContextConsumer = E, N.isContextProvider = M, N.isElement = S, N.isForwardRef = R, N.isFragment = D, N.isLazy = x, N.isMemo = _, N.isPortal = O, N.isProfiler = I, N.isStrictMode = L, N.isSuspense = F, N.isValidElementType = A, N.typeOf = $;
154
+ N.AsyncMode = p, N.ConcurrentMode = w, N.ContextConsumer = z, N.ContextProvider = G, N.Element = re, N.ForwardRef = ne, N.Fragment = W, N.Lazy = K, N.Memo = V, N.Portal = Q, N.Profiler = X, N.StrictMode = F, N.Suspense = Z, N.isAsyncMode = ce, N.isConcurrentMode = h, N.isContextConsumer = E, N.isContextProvider = S, N.isElement = _, N.isForwardRef = P, N.isFragment = A, N.isLazy = x, N.isMemo = M, N.isPortal = O, N.isProfiler = B, N.isStrictMode = L, N.isSuspense = q, N.isValidElementType = D, N.typeOf = $;
155
155
  })()), N;
156
156
  }
157
- var rt;
158
- function kt() {
159
- return rt || (rt = 1, process.env.NODE_ENV === "production" ? me.exports = Nr() : me.exports = $r()), me.exports;
157
+ var at;
158
+ function jt() {
159
+ return at || (at = 1, process.env.NODE_ENV === "production" ? ge.exports = Hr() : ge.exports = Yr()), ge.exports;
160
160
  }
161
- var Ee, nt;
162
- function jr() {
163
- if (nt) return Ee;
164
- nt = 1;
161
+ var Ce, it;
162
+ function Wr() {
163
+ if (it) return Ce;
164
+ it = 1;
165
165
  var n = Object.getOwnPropertySymbols, d = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
166
166
  function u(r) {
167
167
  if (r == null)
@@ -190,7 +190,7 @@ function jr() {
190
190
  return !1;
191
191
  }
192
192
  }
193
- return Ee = c() ? Object.assign : function(r, l) {
193
+ return Ce = 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 jr() {
202
202
  }
203
203
  }
204
204
  return t;
205
- }, Ee;
205
+ }, Ce;
206
206
  }
207
- var Te, ot;
208
- function qe() {
209
- if (ot) return Te;
210
- ot = 1;
207
+ var we, st;
208
+ function ze() {
209
+ if (st) return we;
210
+ st = 1;
211
211
  var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
212
- return Te = n, Te;
212
+ return we = n, we;
213
213
  }
214
- var Ce, at;
215
- function Nt() {
216
- return at || (at = 1, Ce = Function.call.bind(Object.prototype.hasOwnProperty)), Ce;
214
+ var Re, lt;
215
+ function Ut() {
216
+ return lt || (lt = 1, Re = Function.call.bind(Object.prototype.hasOwnProperty)), Re;
217
217
  }
218
- var we, it;
219
- function Ur() {
220
- if (it) return we;
221
- it = 1;
218
+ var Pe, ut;
219
+ function Gr() {
220
+ if (ut) return Pe;
221
+ ut = 1;
222
222
  var n = function() {
223
223
  };
224
224
  if (process.env.NODE_ENV !== "production") {
225
- var d = /* @__PURE__ */ qe(), a = {}, u = /* @__PURE__ */ Nt();
225
+ var d = /* @__PURE__ */ ze(), a = {}, u = /* @__PURE__ */ Ut();
226
226
  n = function(r) {
227
227
  var l = "Warning: " + r;
228
228
  typeof console < "u" && console.error(l);
@@ -262,13 +262,13 @@ function Ur() {
262
262
  }
263
263
  return c.resetWarningCache = function() {
264
264
  process.env.NODE_ENV !== "production" && (a = {});
265
- }, we = c, we;
265
+ }, Pe = c, Pe;
266
266
  }
267
- var Re, st;
268
- function qr() {
269
- if (st) return Re;
270
- st = 1;
271
- var n = kt(), d = jr(), a = /* @__PURE__ */ qe(), u = /* @__PURE__ */ Nt(), c = /* @__PURE__ */ Ur(), r = function() {
267
+ var xe, ct;
268
+ function Kr() {
269
+ if (ct) return xe;
270
+ ct = 1;
271
+ var n = jt(), d = Wr(), a = /* @__PURE__ */ ze(), u = /* @__PURE__ */ Ut(), c = /* @__PURE__ */ Gr(), r = function() {
272
272
  };
273
273
  process.env.NODE_ENV !== "production" && (r = function(o) {
274
274
  var t = "Warning: " + o;
@@ -281,7 +281,7 @@ function qr() {
281
281
  function l() {
282
282
  return null;
283
283
  }
284
- return Re = function(o, t) {
284
+ return xe = function(o, t) {
285
285
  var e = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
286
286
  function i(h) {
287
287
  var E = h && (e && h[e] || h[s]);
@@ -297,17 +297,17 @@ function qr() {
297
297
  object: y("object"),
298
298
  string: y("string"),
299
299
  symbol: y("symbol"),
300
- any: B(),
301
- arrayOf: A,
300
+ any: I(),
301
+ arrayOf: D,
302
302
  element: $(),
303
303
  elementType: p(),
304
- instanceOf: C,
305
- node: ie(),
306
- objectOf: K,
307
- oneOf: Q,
308
- oneOfType: ae,
309
- shape: X,
310
- exact: Z
304
+ instanceOf: w,
305
+ node: ne(),
306
+ objectOf: G,
307
+ oneOf: z,
308
+ oneOfType: re,
309
+ shape: K,
310
+ exact: V
311
311
  };
312
312
  function v(h, E) {
313
313
  return h === E ? h !== 0 || 1 / h === 1 / E : h !== h && E !== E;
@@ -316,204 +316,204 @@ function qr() {
316
316
  this.message = h, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
317
317
  }
318
318
  g.prototype = Error.prototype;
319
- function P(h) {
319
+ function R(h) {
320
320
  if (process.env.NODE_ENV !== "production")
321
- var E = {}, M = 0;
322
- function S(D, x, _, O, I, L, F) {
323
- if (O = O || f, L = L || _, F !== a) {
321
+ var E = {}, S = 0;
322
+ function _(A, x, M, O, B, L, q) {
323
+ if (O = O || f, L = L || M, q !== a) {
324
324
  if (t) {
325
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
328
  throw b.name = "Invariant Violation", b;
329
329
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
330
- var H = O + ":" + _;
330
+ var H = O + ":" + M;
331
331
  !E[H] && // Avoid spamming the console because they are often not actionable except for lib authors
332
- M < 3 && (r(
332
+ S < 3 && (r(
333
333
  "You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + O + "`. 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
- ), E[H] = !0, M++);
334
+ ), E[H] = !0, S++);
335
335
  }
336
336
  }
337
- return x[_] == null ? D ? x[_] === null ? new g("The " + I + " `" + L + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new g("The " + I + " `" + L + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : h(x, _, O, I, L);
337
+ return x[M] == null ? A ? x[M] === null ? new g("The " + B + " `" + L + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new g("The " + B + " `" + L + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : h(x, M, O, B, L);
338
338
  }
339
- var R = S.bind(null, !1);
340
- return R.isRequired = S.bind(null, !0), R;
339
+ var P = _.bind(null, !1);
340
+ return P.isRequired = _.bind(null, !0), P;
341
341
  }
342
342
  function y(h) {
343
- function E(M, S, R, D, x, _) {
344
- var O = M[S], I = q(O);
345
- if (I !== h) {
346
- var L = ee(O);
343
+ function E(S, _, P, A, x, M) {
344
+ var O = S[_], B = F(O);
345
+ if (B !== h) {
346
+ var L = Z(O);
347
347
  return new g(
348
- "Invalid " + D + " `" + x + "` of type " + ("`" + L + "` supplied to `" + R + "`, expected ") + ("`" + h + "`."),
348
+ "Invalid " + A + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("`" + h + "`."),
349
349
  { expectedType: h }
350
350
  );
351
351
  }
352
352
  return null;
353
353
  }
354
- return P(E);
354
+ return R(E);
355
355
  }
356
- function B() {
357
- return P(l);
356
+ function I() {
357
+ return R(l);
358
358
  }
359
- function A(h) {
360
- function E(M, S, R, D, x) {
359
+ function D(h) {
360
+ function E(S, _, P, A, x) {
361
361
  if (typeof h != "function")
362
- return new g("Property `" + x + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
363
- var _ = M[S];
364
- if (!Array.isArray(_)) {
365
- var O = q(_);
366
- return new g("Invalid " + D + " `" + x + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected an array."));
362
+ return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
363
+ var M = S[_];
364
+ if (!Array.isArray(M)) {
365
+ var O = F(M);
366
+ return new g("Invalid " + A + " `" + x + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected an array."));
367
367
  }
368
- for (var I = 0; I < _.length; I++) {
369
- var L = h(_, I, R, D, x + "[" + I + "]", a);
368
+ for (var B = 0; B < M.length; B++) {
369
+ var L = h(M, B, P, A, x + "[" + B + "]", a);
370
370
  if (L instanceof Error)
371
371
  return L;
372
372
  }
373
373
  return null;
374
374
  }
375
- return P(E);
375
+ return R(E);
376
376
  }
377
377
  function $() {
378
- function h(E, M, S, R, D) {
379
- var x = E[M];
378
+ function h(E, S, _, P, A) {
379
+ var x = E[S];
380
380
  if (!o(x)) {
381
- var _ = q(x);
382
- return new g("Invalid " + R + " `" + D + "` of type " + ("`" + _ + "` supplied to `" + S + "`, expected a single ReactElement."));
381
+ var M = F(x);
382
+ return new g("Invalid " + P + " `" + A + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected a single ReactElement."));
383
383
  }
384
384
  return null;
385
385
  }
386
- return P(h);
386
+ return R(h);
387
387
  }
388
388
  function p() {
389
- function h(E, M, S, R, D) {
390
- var x = E[M];
389
+ function h(E, S, _, P, A) {
390
+ var x = E[S];
391
391
  if (!n.isValidElementType(x)) {
392
- var _ = q(x);
393
- return new g("Invalid " + R + " `" + D + "` of type " + ("`" + _ + "` supplied to `" + S + "`, expected a single ReactElement type."));
392
+ var M = F(x);
393
+ return new g("Invalid " + P + " `" + A + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected a single ReactElement type."));
394
394
  }
395
395
  return null;
396
396
  }
397
- return P(h);
397
+ return R(h);
398
398
  }
399
- function C(h) {
400
- function E(M, S, R, D, x) {
401
- if (!(M[S] instanceof h)) {
402
- var _ = h.name || f, O = ne(M[S]);
403
- return new g("Invalid " + D + " `" + x + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected ") + ("instance of `" + _ + "`."));
399
+ function w(h) {
400
+ function E(S, _, P, A, x) {
401
+ if (!(S[_] instanceof h)) {
402
+ var M = h.name || f, O = ce(S[_]);
403
+ return new g("Invalid " + A + " `" + x + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected ") + ("instance of `" + M + "`."));
404
404
  }
405
405
  return null;
406
406
  }
407
- return P(E);
407
+ return R(E);
408
408
  }
409
- function Q(h) {
409
+ function z(h) {
410
410
  if (!Array.isArray(h))
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 E(M, S, R, D, x) {
415
- for (var _ = M[S], O = 0; O < h.length; O++)
416
- if (v(_, h[O]))
414
+ function E(S, _, P, A, x) {
415
+ for (var M = S[_], O = 0; O < h.length; O++)
416
+ if (v(M, h[O]))
417
417
  return null;
418
- var I = JSON.stringify(h, function(F, b) {
419
- var H = ee(b);
418
+ var B = JSON.stringify(h, function(q, b) {
419
+ var H = Z(b);
420
420
  return H === "symbol" ? String(b) : b;
421
421
  });
422
- return new g("Invalid " + D + " `" + x + "` of value `" + String(_) + "` " + ("supplied to `" + R + "`, expected one of " + I + "."));
422
+ return new g("Invalid " + A + " `" + x + "` of value `" + String(M) + "` " + ("supplied to `" + P + "`, expected one of " + B + "."));
423
423
  }
424
- return P(E);
424
+ return R(E);
425
425
  }
426
- function K(h) {
427
- function E(M, S, R, D, x) {
426
+ function G(h) {
427
+ function E(S, _, P, A, x) {
428
428
  if (typeof h != "function")
429
- return new g("Property `" + x + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
430
- var _ = M[S], O = q(_);
429
+ return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
430
+ var M = S[_], O = F(M);
431
431
  if (O !== "object")
432
- return new g("Invalid " + D + " `" + x + "` of type " + ("`" + O + "` supplied to `" + R + "`, expected an object."));
433
- for (var I in _)
434
- if (u(_, I)) {
435
- var L = h(_, I, R, D, x + "." + I, a);
432
+ return new g("Invalid " + A + " `" + x + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected an object."));
433
+ for (var B in M)
434
+ if (u(M, B)) {
435
+ var L = h(M, B, P, A, x + "." + B, a);
436
436
  if (L instanceof Error)
437
437
  return L;
438
438
  }
439
439
  return null;
440
440
  }
441
- return P(E);
441
+ return R(E);
442
442
  }
443
- function ae(h) {
443
+ function re(h) {
444
444
  if (!Array.isArray(h))
445
445
  return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), l;
446
446
  for (var E = 0; E < h.length; E++) {
447
- var M = h[E];
448
- if (typeof M != "function")
447
+ var S = h[E];
448
+ if (typeof S != "function")
449
449
  return r(
450
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(M) + " at index " + E + "."
450
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(S) + " at index " + E + "."
451
451
  ), l;
452
452
  }
453
- function S(R, D, x, _, O) {
454
- for (var I = [], L = 0; L < h.length; L++) {
455
- var F = h[L], b = F(R, D, x, _, O, a);
453
+ function _(P, A, x, M, O) {
454
+ for (var B = [], L = 0; L < h.length; L++) {
455
+ var q = h[L], b = q(P, A, x, M, O, a);
456
456
  if (b == null)
457
457
  return null;
458
- b.data && u(b.data, "expectedType") && I.push(b.data.expectedType);
458
+ b.data && u(b.data, "expectedType") && B.push(b.data.expectedType);
459
459
  }
460
- var H = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
461
- return new g("Invalid " + _ + " `" + O + "` supplied to " + ("`" + x + "`" + H + "."));
460
+ var H = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
461
+ return new g("Invalid " + M + " `" + O + "` supplied to " + ("`" + x + "`" + H + "."));
462
462
  }
463
- return P(S);
463
+ return R(_);
464
464
  }
465
- function ie() {
466
- function h(E, M, S, R, D) {
467
- return z(E[M]) ? null : new g("Invalid " + R + " `" + D + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
465
+ function ne() {
466
+ function h(E, S, _, P, A) {
467
+ return Q(E[S]) ? null : new g("Invalid " + P + " `" + A + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
468
468
  }
469
- return P(h);
469
+ return R(h);
470
470
  }
471
- function W(h, E, M, S, R) {
471
+ function W(h, E, S, _, P) {
472
472
  return new g(
473
- (h || "React class") + ": " + E + " type `" + M + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
473
+ (h || "React class") + ": " + E + " type `" + S + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
474
474
  );
475
475
  }
476
- function X(h) {
477
- function E(M, S, R, D, x) {
478
- var _ = M[S], O = q(_);
476
+ function K(h) {
477
+ function E(S, _, P, A, x) {
478
+ var M = S[_], O = F(M);
479
479
  if (O !== "object")
480
- return new g("Invalid " + D + " `" + x + "` of type `" + O + "` " + ("supplied to `" + R + "`, expected `object`."));
481
- for (var I in h) {
482
- var L = h[I];
480
+ return new g("Invalid " + A + " `" + x + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
481
+ for (var B in h) {
482
+ var L = h[B];
483
483
  if (typeof L != "function")
484
- return W(R, D, x, I, ee(L));
485
- var F = L(_, I, R, D, x + "." + I, a);
486
- if (F)
487
- return F;
484
+ return W(P, A, x, B, Z(L));
485
+ var q = L(M, B, P, A, x + "." + B, a);
486
+ if (q)
487
+ return q;
488
488
  }
489
489
  return null;
490
490
  }
491
- return P(E);
491
+ return R(E);
492
492
  }
493
- function Z(h) {
494
- function E(M, S, R, D, x) {
495
- var _ = M[S], O = q(_);
493
+ function V(h) {
494
+ function E(S, _, P, A, x) {
495
+ var M = S[_], O = F(M);
496
496
  if (O !== "object")
497
- return new g("Invalid " + D + " `" + x + "` of type `" + O + "` " + ("supplied to `" + R + "`, expected `object`."));
498
- var I = d({}, M[S], h);
499
- for (var L in I) {
500
- var F = h[L];
501
- if (u(h, L) && typeof F != "function")
502
- return W(R, D, x, L, ee(F));
503
- if (!F)
497
+ return new g("Invalid " + A + " `" + x + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
498
+ var B = d({}, S[_], h);
499
+ for (var L in B) {
500
+ var q = h[L];
501
+ if (u(h, L) && typeof q != "function")
502
+ return W(P, A, x, L, Z(q));
503
+ if (!q)
504
504
  return new g(
505
- "Invalid " + D + " `" + x + "` key `" + L + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(M[S], null, " ") + `
505
+ "Invalid " + A + " `" + x + "` key `" + L + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(S[_], null, " ") + `
506
506
  Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
507
507
  );
508
- var b = F(_, L, R, D, x + "." + L, a);
508
+ var b = q(M, L, P, A, x + "." + L, a);
509
509
  if (b)
510
510
  return b;
511
511
  }
512
512
  return null;
513
513
  }
514
- return P(E);
514
+ return R(E);
515
515
  }
516
- function z(h) {
516
+ function Q(h) {
517
517
  switch (typeof h) {
518
518
  case "number":
519
519
  case "string":
@@ -523,20 +523,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
523
523
  return !h;
524
524
  case "object":
525
525
  if (Array.isArray(h))
526
- return h.every(z);
526
+ return h.every(Q);
527
527
  if (h === null || o(h))
528
528
  return !0;
529
529
  var E = i(h);
530
530
  if (E) {
531
- var M = E.call(h), S;
531
+ var S = E.call(h), _;
532
532
  if (E !== h.entries) {
533
- for (; !(S = M.next()).done; )
534
- if (!z(S.value))
533
+ for (; !(_ = S.next()).done; )
534
+ if (!Q(_.value))
535
535
  return !1;
536
536
  } else
537
- for (; !(S = M.next()).done; ) {
538
- var R = S.value;
539
- if (R && !z(R[1]))
537
+ for (; !(_ = S.next()).done; ) {
538
+ var P = _.value;
539
+ if (P && !Q(P[1]))
540
540
  return !1;
541
541
  }
542
542
  } else
@@ -546,17 +546,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
546
546
  return !1;
547
547
  }
548
548
  }
549
- function G(h, E) {
549
+ function X(h, E) {
550
550
  return h === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
551
551
  }
552
- function q(h) {
552
+ function F(h) {
553
553
  var E = typeof h;
554
- return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : G(E, h) ? "symbol" : E;
554
+ return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : X(E, h) ? "symbol" : E;
555
555
  }
556
- function ee(h) {
556
+ function Z(h) {
557
557
  if (typeof h > "u" || h === null)
558
558
  return "" + h;
559
- var E = q(h);
559
+ var E = F(h);
560
560
  if (E === "object") {
561
561
  if (h instanceof Date)
562
562
  return "date";
@@ -565,8 +565,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
565
565
  }
566
566
  return E;
567
567
  }
568
- function te(h) {
569
- var E = ee(h);
568
+ function ae(h) {
569
+ var E = Z(h);
570
570
  switch (E) {
571
571
  case "array":
572
572
  case "object":
@@ -579,22 +579,22 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
579
579
  return E;
580
580
  }
581
581
  }
582
- function ne(h) {
582
+ function ce(h) {
583
583
  return !h.constructor || !h.constructor.name ? f : h.constructor.name;
584
584
  }
585
585
  return m.checkPropTypes = c, m.resetWarningCache = c.resetWarningCache, m.PropTypes = m, m;
586
- }, Re;
586
+ }, xe;
587
587
  }
588
- var Pe, lt;
589
- function Fr() {
590
- if (lt) return Pe;
591
- lt = 1;
592
- var n = /* @__PURE__ */ qe();
588
+ var Se, ft;
589
+ function Xr() {
590
+ if (ft) return Se;
591
+ ft = 1;
592
+ var n = /* @__PURE__ */ ze();
593
593
  function d() {
594
594
  }
595
595
  function a() {
596
596
  }
597
- return a.resetWarningCache = d, Pe = function() {
597
+ return a.resetWarningCache = d, Se = 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 Fr() {
631
631
  resetWarningCache: d
632
632
  };
633
633
  return r.PropTypes = r, r;
634
- }, Pe;
634
+ }, Se;
635
635
  }
636
- var ut;
637
- function $t() {
638
- if (ut) return ve.exports;
639
- if (ut = 1, process.env.NODE_ENV !== "production") {
640
- var n = kt(), d = !0;
641
- ve.exports = /* @__PURE__ */ qr()(n.isElement, d);
636
+ var dt;
637
+ function qt() {
638
+ if (dt) return me.exports;
639
+ if (dt = 1, process.env.NODE_ENV !== "production") {
640
+ var n = jt(), d = !0;
641
+ me.exports = /* @__PURE__ */ Kr()(n.isElement, d);
642
642
  } else
643
- ve.exports = /* @__PURE__ */ Fr()();
644
- return ve.exports;
643
+ me.exports = /* @__PURE__ */ Xr()();
644
+ return me.exports;
645
645
  }
646
- var xe, ct;
647
- function jt() {
648
- return ct || (ct = 1, xe = {
646
+ var _e, ht;
647
+ function Ft() {
648
+ return ht || (ht = 1, _e = {
649
649
  L: 1,
650
650
  M: 0,
651
651
  Q: 3,
652
652
  H: 2
653
- }), xe;
653
+ }), _e;
654
654
  }
655
- var Se, ft;
656
- function Ut() {
657
- return ft || (ft = 1, Se = {
655
+ var Me, pt;
656
+ function zt() {
657
+ return pt || (pt = 1, Me = {
658
658
  MODE_NUMBER: 1,
659
659
  MODE_ALPHA_NUM: 2,
660
660
  MODE_8BIT_BYTE: 4,
661
661
  MODE_KANJI: 8
662
- }), Se;
662
+ }), Me;
663
663
  }
664
- var _e, dt;
665
- function zr() {
666
- if (dt) return _e;
667
- dt = 1;
668
- var n = Ut();
664
+ var Ae, vt;
665
+ function Jr() {
666
+ if (vt) return Ae;
667
+ vt = 1;
668
+ var n = zt();
669
669
  function d(a) {
670
670
  this.mode = n.MODE_8BIT_BYTE, this.data = a;
671
671
  }
@@ -677,13 +677,13 @@ function zr() {
677
677
  for (var u = 0; u < this.data.length; u++)
678
678
  a.put(this.data.charCodeAt(u), 8);
679
679
  }
680
- }, _e = d, _e;
680
+ }, Ae = d, Ae;
681
681
  }
682
- var Me, ht;
683
- function Qr() {
684
- if (ht) return Me;
685
- ht = 1;
686
- var n = jt();
682
+ var De, mt;
683
+ function Vr() {
684
+ if (mt) return De;
685
+ mt = 1;
686
+ var n = Ft();
687
687
  function d(a, u) {
688
688
  this.totalCount = a, this.dataCount = u;
689
689
  }
@@ -913,12 +913,12 @@ function Qr() {
913
913
  default:
914
914
  return;
915
915
  }
916
- }, Me = d, Me;
916
+ }, De = d, De;
917
917
  }
918
- var Ae, pt;
919
- function Hr() {
920
- if (pt) return Ae;
921
- pt = 1;
918
+ var Oe, gt;
919
+ function Zr() {
920
+ if (gt) return Oe;
921
+ gt = 1;
922
922
  function n() {
923
923
  this.buffer = new Array(), this.length = 0;
924
924
  }
@@ -938,12 +938,12 @@ function Hr() {
938
938
  var a = Math.floor(this.length / 8);
939
939
  this.buffer.length <= a && this.buffer.push(0), d && (this.buffer[a] |= 128 >>> this.length % 8), this.length++;
940
940
  }
941
- }, Ae = n, Ae;
941
+ }, Oe = n, Oe;
942
942
  }
943
- var De, vt;
944
- function qt() {
945
- if (vt) return De;
946
- vt = 1;
943
+ var Le, yt;
944
+ function Qt() {
945
+ if (yt) return Le;
946
+ yt = 1;
947
947
  for (var n = {
948
948
  glog: function(a) {
949
949
  if (a < 1)
@@ -965,13 +965,13 @@ function qt() {
965
965
  n.EXP_TABLE[d] = n.EXP_TABLE[d - 4] ^ n.EXP_TABLE[d - 5] ^ n.EXP_TABLE[d - 6] ^ n.EXP_TABLE[d - 8];
966
966
  for (var d = 0; d < 255; d++)
967
967
  n.LOG_TABLE[n.EXP_TABLE[d]] = d;
968
- return De = n, De;
968
+ return Le = n, Le;
969
969
  }
970
- var Oe, mt;
971
- function Ft() {
972
- if (mt) return Oe;
973
- mt = 1;
974
- var n = qt();
970
+ var Ie, bt;
971
+ function Ht() {
972
+ if (bt) return Ie;
973
+ bt = 1;
974
+ var n = Qt();
975
975
  function d(a, u) {
976
976
  if (a.length == null)
977
977
  throw new Error(a.length + "/" + u);
@@ -1003,13 +1003,13 @@ function Ft() {
1003
1003
  c[r] ^= n.gexp(n.glog(a.get(r)) + u);
1004
1004
  return new d(c, 0).mod(a);
1005
1005
  }
1006
- }, Oe = d, Oe;
1006
+ }, Ie = d, Ie;
1007
1007
  }
1008
- var Le, gt;
1009
- function Yr() {
1010
- if (gt) return Le;
1011
- gt = 1;
1012
- var n = Ut(), d = Ft(), a = qt(), u = {
1008
+ var Be, Et;
1009
+ function en() {
1010
+ if (Et) return Be;
1011
+ Et = 1;
1012
+ var n = zt(), d = Ht(), a = Qt(), u = {
1013
1013
  PATTERN000: 0,
1014
1014
  PATTERN001: 1,
1015
1015
  PATTERN010: 2,
@@ -1175,17 +1175,17 @@ function Yr() {
1175
1175
  for (var g = 0, e = 0; e < l; e++)
1176
1176
  for (var t = 0; t < l; t++)
1177
1177
  r.isDark(t, e) && g++;
1178
- var P = Math.abs(100 * g / l / l - 50) / 5;
1179
- return o += P * 10, o;
1178
+ var R = Math.abs(100 * g / l / l - 50) / 5;
1179
+ return o += R * 10, o;
1180
1180
  }
1181
1181
  };
1182
- return Le = c, Le;
1182
+ return Be = c, Be;
1183
1183
  }
1184
- var Be, yt;
1185
- function Wr() {
1186
- if (yt) return Be;
1187
- yt = 1;
1188
- var n = zr(), d = Qr(), a = Hr(), u = Yr(), c = Ft();
1184
+ var ke, Tt;
1185
+ function tn() {
1186
+ if (Tt) return ke;
1187
+ Tt = 1;
1188
+ var n = Jr(), d = Vr(), a = Zr(), u = en(), c = Ht();
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
  }
@@ -1240,8 +1240,8 @@ function Wr() {
1240
1240
  this.make();
1241
1241
  for (var f = 0; f < this.modules.length; f++)
1242
1242
  for (var m = f * i, v = 0; v < this.modules[f].length; v++) {
1243
- var g = v * i, P = this.modules[f][v];
1244
- P && (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());
1243
+ var g = v * i, R = this.modules[f][v];
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;
1247
1247
  }, l.setupTimingPattern = function() {
@@ -1284,8 +1284,8 @@ function Wr() {
1284
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 P = u.getMask(t, s, m - v);
1288
- P && (g = !g), this.modules[s][m - v] = 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;
@@ -1308,33 +1308,33 @@ function Wr() {
1308
1308
  return r.createBytes(i, s);
1309
1309
  }, r.createBytes = function(o, t) {
1310
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, P = t[v].totalCount - g;
1312
- s = Math.max(s, g), i = Math.max(i, P), f[v] = new Array(g);
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
1313
  for (var y = 0; y < f[v].length; y++)
1314
1314
  f[v][y] = 255 & o.buffer[y + e];
1315
1315
  e += g;
1316
- var B = u.getErrorCorrectPolynomial(P), A = new c(f[v], B.getLength() - 1), $ = A.mod(B);
1317
- m[v] = new Array(B.getLength() - 1);
1316
+ var I = u.getErrorCorrectPolynomial(R), D = new c(f[v], I.getLength() - 1), $ = D.mod(I);
1317
+ m[v] = new Array(I.getLength() - 1);
1318
1318
  for (var y = 0; y < m[v].length; y++) {
1319
1319
  var p = y + $.getLength() - m[v].length;
1320
1320
  m[v][y] = p >= 0 ? $.get(p) : 0;
1321
1321
  }
1322
1322
  }
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++)
1323
+ for (var w = 0, y = 0; y < t.length; y++)
1324
+ w += t[y].totalCount;
1325
+ for (var z = new Array(w), G = 0, y = 0; y < s; y++)
1326
1326
  for (var v = 0; v < t.length; v++)
1327
- y < f[v].length && (Q[K++] = f[v][y]);
1327
+ y < f[v].length && (z[G++] = f[v][y]);
1328
1328
  for (var y = 0; y < i; y++)
1329
1329
  for (var v = 0; v < t.length; v++)
1330
- y < m[v].length && (Q[K++] = m[v][y]);
1331
- return Q;
1332
- }, Be = r, Be;
1330
+ y < m[v].length && (z[G++] = m[v][y]);
1331
+ return z;
1332
+ }, ke = r, ke;
1333
1333
  }
1334
- var ge = {}, bt;
1335
- function Gr() {
1336
- if (bt) return ge;
1337
- bt = 1, Object.defineProperty(ge, "__esModule", {
1334
+ var ye = {}, Ct;
1335
+ function rn() {
1336
+ if (Ct) return ye;
1337
+ Ct = 1, Object.defineProperty(ye, "__esModule", {
1338
1338
  value: !0
1339
1339
  });
1340
1340
  var n = Object.assign || function(e) {
@@ -1344,7 +1344,7 @@ function Gr() {
1344
1344
  Object.prototype.hasOwnProperty.call(i, f) && (e[f] = i[f]);
1345
1345
  }
1346
1346
  return e;
1347
- }, d = /* @__PURE__ */ $t(), a = r(d), u = $e, c = r(u);
1347
+ }, d = /* @__PURE__ */ qt(), a = r(d), u = Ue, c = r(u);
1348
1348
  function r(e) {
1349
1349
  return e && e.__esModule ? e : { default: e };
1350
1350
  }
@@ -1364,42 +1364,42 @@ function Gr() {
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, v = e.fgColor, g = e.size, P = e.title, y = e.viewBoxSize, B = e.xmlns, A = 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, I = e.xmlns, D = I === void 0 ? "http://www.w3.org/2000/svg" : I, $ = 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 " + y + " " + y, width: g, xmlns: A }),
1371
- P ? c.default.createElement(
1370
+ n({}, $, { height: g, ref: s, viewBox: "0 0 " + y + " " + y, width: g, xmlns: D }),
1371
+ R ? c.default.createElement(
1372
1372
  "title",
1373
1373
  null,
1374
- P
1374
+ R
1375
1375
  ) : null,
1376
1376
  c.default.createElement("path", { d: f, fill: i }),
1377
1377
  c.default.createElement("path", { d: m, fill: v })
1378
1378
  );
1379
1379
  });
1380
- return t.displayName = "QRCodeSvg", t.propTypes = o, ge.default = t, ge;
1380
+ return t.displayName = "QRCodeSvg", t.propTypes = o, ye.default = t, ye;
1381
1381
  }
1382
- var Et;
1383
- function Kr() {
1384
- if (Et) return ue;
1385
- Et = 1, Object.defineProperty(ue, "__esModule", {
1382
+ var wt;
1383
+ function nn() {
1384
+ if (wt) return le;
1385
+ wt = 1, Object.defineProperty(le, "__esModule", {
1386
1386
  value: !0
1387
- }), ue.QRCode = void 0;
1387
+ }), le.QRCode = void 0;
1388
1388
  var n = Object.assign || function(g) {
1389
- for (var P = 1; P < arguments.length; P++) {
1390
- var y = arguments[P];
1391
- for (var B in y)
1392
- Object.prototype.hasOwnProperty.call(y, B) && (g[B] = y[B]);
1389
+ for (var R = 1; R < arguments.length; R++) {
1390
+ var y = arguments[R];
1391
+ for (var I in y)
1392
+ Object.prototype.hasOwnProperty.call(y, I) && (g[I] = y[I]);
1393
1393
  }
1394
1394
  return g;
1395
- }, d = /* @__PURE__ */ $t(), a = i(d), u = jt(), c = i(u), r = Wr(), l = i(r), o = $e, t = i(o), e = Gr(), s = i(e);
1395
+ }, d = /* @__PURE__ */ qt(), a = i(d), u = Ft(), c = i(u), r = tn(), l = i(r), o = Ue, t = i(o), e = rn(), s = i(e);
1396
1396
  function i(g) {
1397
1397
  return g && g.__esModule ? g : { default: g };
1398
1398
  }
1399
- function f(g, P) {
1399
+ function f(g, R) {
1400
1400
  var y = {};
1401
- for (var B in g)
1402
- P.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(g, B) && (y[B] = g[B]);
1401
+ for (var I in g)
1402
+ R.indexOf(I) >= 0 || Object.prototype.hasOwnProperty.call(g, I) && (y[I] = g[I]);
1403
1403
  return y;
1404
1404
  }
1405
1405
  var m = {
@@ -1408,32 +1408,32 @@ function Kr() {
1408
1408
  level: a.default.string,
1409
1409
  size: a.default.number,
1410
1410
  value: a.default.string.isRequired
1411
- }, v = (0, o.forwardRef)(function(g, P) {
1412
- var y = g.bgColor, B = y === void 0 ? "#FFFFFF" : y, A = g.fgColor, $ = A === void 0 ? "#000000" : A, p = g.level, C = p === void 0 ? "L" : p, Q = g.size, K = Q === void 0 ? 256 : Q, ae = g.value, ie = f(g, ["bgColor", "fgColor", "level", "size", "value"]), W = new l.default(-1, c.default[C]);
1413
- W.addData(ae), W.make();
1414
- var X = W.modules;
1415
- return t.default.createElement(s.default, n({}, ie, {
1416
- bgColor: B,
1417
- bgD: X.map(function(Z, z) {
1418
- return Z.map(function(G, q) {
1419
- return G ? "" : "M " + q + " " + z + " l 1 0 0 1 -1 0 Z";
1411
+ }, v = (0, o.forwardRef)(function(g, R) {
1412
+ var y = g.bgColor, I = y === void 0 ? "#FFFFFF" : y, D = g.fgColor, $ = D === void 0 ? "#000000" : D, p = g.level, w = p === void 0 ? "L" : p, z = g.size, G = z === void 0 ? 256 : z, re = g.value, ne = f(g, ["bgColor", "fgColor", "level", "size", "value"]), W = new l.default(-1, c.default[w]);
1413
+ W.addData(re), W.make();
1414
+ var K = W.modules;
1415
+ return t.default.createElement(s.default, n({}, ne, {
1416
+ bgColor: I,
1417
+ bgD: K.map(function(V, Q) {
1418
+ return V.map(function(X, F) {
1419
+ return X ? "" : "M " + F + " " + Q + " l 1 0 0 1 -1 0 Z";
1420
1420
  }).join(" ");
1421
1421
  }).join(" "),
1422
1422
  fgColor: $,
1423
- fgD: X.map(function(Z, z) {
1424
- return Z.map(function(G, q) {
1425
- return G ? "M " + q + " " + z + " l 1 0 0 1 -1 0 Z" : "";
1423
+ fgD: K.map(function(V, Q) {
1424
+ return V.map(function(X, F) {
1425
+ return X ? "M " + F + " " + Q + " l 1 0 0 1 -1 0 Z" : "";
1426
1426
  }).join(" ");
1427
1427
  }).join(" "),
1428
- ref: P,
1429
- size: K,
1430
- viewBoxSize: X.length
1428
+ ref: R,
1429
+ size: G,
1430
+ viewBoxSize: K.length
1431
1431
  }));
1432
1432
  });
1433
- return ue.QRCode = v, v.displayName = "QRCode", v.propTypes = m, ue.default = v, ue;
1433
+ return le.QRCode = v, v.displayName = "QRCode", v.propTypes = m, le.default = v, le;
1434
1434
  }
1435
- var Xr = Kr();
1436
- const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1435
+ var on = nn();
1436
+ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1437
1437
  const u = String(n || "").split("@")[0];
1438
1438
  if (!u) return "";
1439
1439
  if (d) return `${d}${u}`;
@@ -1441,31 +1441,31 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1441
1441
  if (!c) return "";
1442
1442
  try {
1443
1443
  const r = new URL(c);
1444
- return r.hash = "", r.searchParams.set(Vr, u), r.toString();
1444
+ return r.hash = "", r.searchParams.set(sn, u), r.toString();
1445
1445
  } catch {
1446
1446
  return "";
1447
1447
  }
1448
- }, en = Y.div`
1448
+ }, un = Y.div`
1449
1449
  position: absolute;
1450
1450
  inset: 0;
1451
1451
  z-index: 2;
1452
1452
  display: flex;
1453
- `, tn = Y.div`
1453
+ `, cn = Y.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
- `, rn = Y(Ne)`
1460
+ `, fn = Y(je)`
1461
1461
  width: 100%;
1462
- `, nn = Y.div`
1462
+ `, dn = Y.div`
1463
1463
  display: flex;
1464
1464
  justify-content: center;
1465
1465
  padding: var(--ethora-space-6, 24px) var(--ethora-space-5, 20px);
1466
- `, on = Y.div`
1466
+ `, hn = Y.div`
1467
1467
  width: 176px;
1468
- `, an = Y.div`
1468
+ `, pn = Y.div`
1469
1469
  box-sizing: border-box;
1470
1470
  display: flex;
1471
1471
  flex-direction: column;
@@ -1473,24 +1473,24 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, 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
- `, sn = ({
1476
+ `, vn = ({
1477
1477
  isVisible: n,
1478
1478
  chatJid: d,
1479
1479
  setVisible: a
1480
1480
  }) => {
1481
- const { config: u } = Rt(), c = de();
1481
+ const { config: u } = St(), c = he();
1482
1482
  if (!n) return null;
1483
- const r = Zr(d, u?.qrUrl);
1484
- return /* @__PURE__ */ T(en, { children: /* @__PURE__ */ T(
1485
- It,
1483
+ const r = ln(d, u?.qrUrl);
1484
+ return /* @__PURE__ */ T(un, { children: /* @__PURE__ */ T(
1485
+ $t,
1486
1486
  {
1487
1487
  title: c("modal.qr.title"),
1488
1488
  onClose: () => a(!1),
1489
1489
  backLabel: c("action.close"),
1490
- children: /* @__PURE__ */ j(tn, { children: [
1491
- /* @__PURE__ */ j(rn, { children: [
1492
- /* @__PURE__ */ T(nn, { children: /* @__PURE__ */ T(on, { children: /* @__PURE__ */ T(
1493
- Jr,
1490
+ children: /* @__PURE__ */ j(cn, { children: [
1491
+ /* @__PURE__ */ j(fn, { children: [
1492
+ /* @__PURE__ */ T(dn, { children: /* @__PURE__ */ T(hn, { children: /* @__PURE__ */ T(
1493
+ an,
1494
1494
  {
1495
1495
  size: 176,
1496
1496
  style: { width: "100%", height: "auto" },
@@ -1498,9 +1498,9 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1498
1498
  viewBox: "0 0 176 176"
1499
1499
  }
1500
1500
  ) }) }),
1501
- /* @__PURE__ */ j(an, { children: [
1501
+ /* @__PURE__ */ j(pn, { children: [
1502
1502
  /* @__PURE__ */ T(
1503
- Xt,
1503
+ or,
1504
1504
  {
1505
1505
  $colorBg: u?.colors?.colorInput,
1506
1506
  value: r,
@@ -1510,40 +1510,40 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1510
1510
  }
1511
1511
  ),
1512
1512
  /* @__PURE__ */ T(
1513
- oe,
1513
+ te,
1514
1514
  {
1515
1515
  text: c("action.copyLink"),
1516
- onClick: () => Dr(r),
1516
+ onClick: () => jr(r),
1517
1517
  variant: "filled",
1518
1518
  style: { width: "100%" }
1519
1519
  }
1520
1520
  )
1521
1521
  ] })
1522
1522
  ] }),
1523
- /* @__PURE__ */ T(Pr, { style: { textAlign: "center" }, children: c("modal.qr.hint") })
1523
+ /* @__PURE__ */ T(Lr, { style: { textAlign: "center" }, children: c("modal.qr.hint") })
1524
1524
  ] })
1525
1525
  }
1526
1526
  ) });
1527
- }, ln = ({
1527
+ }, mn = ({
1528
1528
  isModalOpen: n,
1529
1529
  setIsModalOpen: d
1530
1530
  }) => {
1531
- const a = je(), u = fe((e) => Ue(e)), { client: c } = Pt(), r = de(), l = () => d(!1), o = wt(null);
1532
- xt({
1531
+ const a = qe(), u = ue((e) => Fe(e)), { client: c } = _t(), r = he(), l = () => d(!1), o = xt(null);
1532
+ Mt({
1533
1533
  enabled: n,
1534
1534
  onClose: l,
1535
1535
  containerRef: o
1536
1536
  });
1537
1537
  const t = async () => {
1538
1538
  try {
1539
- await Vt(u.jid.split("@")[0]), c?.leaveTheRoomStanza?.(u.jid), a(Zt({ jid: u.jid })), a(er({ roomJID: null })), l();
1539
+ await ir(u.jid.split("@")[0]), c?.leaveTheRoomStanza?.(u.jid), a(sr({ jid: u.jid })), a(lr({ roomJID: null })), l();
1540
1540
  } catch (e) {
1541
1541
  console.error("Failed to delete chat:", e);
1542
1542
  }
1543
1543
  };
1544
- return n && /* @__PURE__ */ T(St, { children: /* @__PURE__ */ j(_t, { ref: o, children: [
1544
+ return n && /* @__PURE__ */ T(At, { children: /* @__PURE__ */ j(Dt, { ref: o, children: [
1545
1545
  /* @__PURE__ */ T(
1546
- Mt,
1546
+ Ot,
1547
1547
  {
1548
1548
  onClick: l,
1549
1549
  style: { fontSize: 24 },
@@ -1551,10 +1551,10 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1551
1551
  children: "×"
1552
1552
  }
1553
1553
  ),
1554
- /* @__PURE__ */ T(Jt, { children: r("modal.deleteChat.title") }),
1555
- /* @__PURE__ */ j(Ie, { children: [
1554
+ /* @__PURE__ */ T(ar, { children: r("modal.deleteChat.title") }),
1555
+ /* @__PURE__ */ j(Ne, { children: [
1556
1556
  /* @__PURE__ */ T(
1557
- oe,
1557
+ te,
1558
1558
  {
1559
1559
  onClick: l,
1560
1560
  text: r("action.cancel"),
@@ -1564,7 +1564,7 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1564
1564
  }
1565
1565
  ),
1566
1566
  /* @__PURE__ */ T(
1567
- oe,
1567
+ te,
1568
1568
  {
1569
1569
  onClick: t,
1570
1570
  text: r("action.delete"),
@@ -1576,11 +1576,11 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1576
1576
  )
1577
1577
  ] })
1578
1578
  ] }) });
1579
- }, un = () => {
1580
- const { showToast: n } = At(), d = je(), a = de(), [u, c] = re(!1), [r, l] = re(!1), [o, t] = re([]), e = fe((v) => Ue(v)), s = () => l(!0), i = () => {
1579
+ }, gn = () => {
1580
+ const { showToast: n } = Lt(), d = qe(), a = he(), [u, c] = ee(!1), [r, l] = ee(!1), [o, t] = ee([]), e = ue((v) => Fe(v)), s = () => l(!0), i = () => {
1581
1581
  l(!1), t([]);
1582
- }, f = wt(null);
1583
- xt({
1582
+ }, f = xt(null);
1583
+ Mt({
1584
1584
  enabled: r,
1585
1585
  onClose: i,
1586
1586
  containerRef: f
@@ -1589,18 +1589,18 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1589
1589
  c(!0);
1590
1590
  const v = Array.isArray(e?.members) ? e.members : [], g = v.map(
1591
1591
  (y) => y.xmppUsername
1592
- ), P = o.filter((y) => !g.includes(y.xmppUsername)).map((y) => y.xmppUsername);
1592
+ ), R = o.filter((y) => !g.includes(y.xmppUsername)).map((y) => y.xmppUsername);
1593
1593
  try {
1594
- const y = await nr({
1594
+ const y = await fr({
1595
1595
  chatName: e.jid.split("@")[0],
1596
- members: P
1596
+ members: R
1597
1597
  });
1598
1598
  d(
1599
- ye({
1599
+ be({
1600
1600
  jid: e.jid,
1601
1601
  updates: {
1602
1602
  members: [...y, ...v],
1603
- usersCnt: Dt(e) + y.length
1603
+ usersCnt: It(e) + y.length
1604
1604
  }
1605
1605
  })
1606
1606
  ), n({
@@ -1618,11 +1618,11 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1618
1618
  }
1619
1619
  i(), c(!1);
1620
1620
  };
1621
- return /* @__PURE__ */ j(Ct, { children: [
1622
- /* @__PURE__ */ T(tr, { variant: "filled", unstyled: !0, onClick: s, children: a("action.addMoreUsers") }),
1623
- r && /* @__PURE__ */ T(St, { children: /* @__PURE__ */ j(_t, { ref: f, children: [
1621
+ return /* @__PURE__ */ j(Pt, { children: [
1622
+ /* @__PURE__ */ T(ur, { variant: "filled", unstyled: !0, onClick: s, children: a("action.addMoreUsers") }),
1623
+ r && /* @__PURE__ */ T(At, { children: /* @__PURE__ */ j(Dt, { ref: f, children: [
1624
1624
  /* @__PURE__ */ T(
1625
- Mt,
1625
+ Ot,
1626
1626
  {
1627
1627
  onClick: i,
1628
1628
  style: { fontSize: 24 },
@@ -1631,7 +1631,7 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1631
1631
  }
1632
1632
  ),
1633
1633
  /* @__PURE__ */ T(
1634
- Ie,
1634
+ Ne,
1635
1635
  {
1636
1636
  style: {
1637
1637
  flexDirection: "column",
@@ -1641,7 +1641,7 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1641
1641
  minHeight: "400px"
1642
1642
  },
1643
1643
  children: /* @__PURE__ */ T(
1644
- rr,
1644
+ cr,
1645
1645
  {
1646
1646
  selectedUsers: o,
1647
1647
  setSelectedUsers: t,
@@ -1655,9 +1655,9 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1655
1655
  )
1656
1656
  }
1657
1657
  ),
1658
- /* @__PURE__ */ j(Ie, { children: [
1658
+ /* @__PURE__ */ j(Ne, { children: [
1659
1659
  /* @__PURE__ */ T(
1660
- oe,
1660
+ te,
1661
1661
  {
1662
1662
  onClick: i,
1663
1663
  text: a("action.cancel"),
@@ -1666,8 +1666,8 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1666
1666
  variant: "outlined"
1667
1667
  }
1668
1668
  ),
1669
- u ? /* @__PURE__ */ T(ke, {}) : /* @__PURE__ */ T(
1670
- oe,
1669
+ u ? /* @__PURE__ */ T($e, {}) : /* @__PURE__ */ T(
1670
+ te,
1671
1671
  {
1672
1672
  onClick: m,
1673
1673
  text: a("action.add"),
@@ -1679,7 +1679,7 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1679
1679
  ] })
1680
1680
  ] }) })
1681
1681
  ] });
1682
- }, cn = Y.div`
1682
+ }, yn = Y.div`
1683
1683
  display: flex;
1684
1684
  align-items: center;
1685
1685
  gap: var(--ethora-space-3, 12px);
@@ -1696,7 +1696,7 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1696
1696
  @media (prefers-reduced-motion: reduce) {
1697
1697
  transition: none;
1698
1698
  }
1699
- `, fn = Y.div`
1699
+ `, bn = Y.div`
1700
1700
  display: flex;
1701
1701
  align-items: center;
1702
1702
  gap: var(--ethora-space-3, 12px);
@@ -1709,25 +1709,25 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1709
1709
  outline-offset: 2px;
1710
1710
  border-radius: var(--ethora-radius-sm, 8px);
1711
1711
  }
1712
- `, dn = Y.div`
1712
+ `, En = Y.div`
1713
1713
  display: flex;
1714
1714
  flex-direction: column;
1715
1715
  gap: 2px;
1716
1716
  min-width: 0;
1717
- `, hn = Y.span`
1717
+ `, Tn = Y.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
- `, pn = Y.span`
1724
+ `, Cn = Y.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
- `, vn = Y.span`
1730
+ `, wn = Y.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 Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1739
1739
  [data-ethora-color-scheme='dark'] & {
1740
1740
  ${({ $banned: n }) => n ? "background-color: rgba(242, 118, 107, 0.15);" : ""}
1741
1741
  }
1742
- `, mn = ({
1742
+ `, Rn = ({
1743
1743
  member: n,
1744
1744
  disableClick: d,
1745
1745
  online: a,
@@ -1748,40 +1748,40 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1748
1748
  moreOptionsLabel: r,
1749
1749
  onAvatarClick: l
1750
1750
  }) => {
1751
- const o = de(), t = Ot(), e = String(n?.xmppUsername || ""), s = e.split("@")[0], i = fe(
1752
- (A) => A.rooms.usersSet?.[e] ?? A.rooms.usersSet?.[s]
1751
+ const o = he(), t = Bt(), e = String(n?.xmppUsername || ""), s = e.split("@")[0], i = ue(
1752
+ (D) => D.rooms.usersSet?.[e] ?? D.rooms.usersSet?.[s]
1753
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
1757
  profileImage: v
1758
- }, P = !!n.role && n.role !== "none", y = n.ban_status === "banned";
1759
- let B = "";
1758
+ }, R = !!n.role && n.role !== "none", y = n.ban_status === "banned";
1759
+ let I = "";
1760
1760
  if (a)
1761
- B = o("presence.online");
1761
+ I = o("presence.online");
1762
1762
  else if (n.last_active)
1763
1763
  try {
1764
- B = new Intl.DateTimeFormat(t, {
1764
+ I = new Intl.DateTimeFormat(t, {
1765
1765
  dateStyle: "medium"
1766
1766
  }).format(new Date(n.last_active * 1e3));
1767
1767
  } catch {
1768
- B = "";
1768
+ I = "";
1769
1769
  }
1770
- else P && (B = n.role);
1771
- return /* @__PURE__ */ j(cn, { children: [
1770
+ else R && (I = n.role);
1771
+ return /* @__PURE__ */ j(yn, { children: [
1772
1772
  /* @__PURE__ */ j(
1773
- fn,
1773
+ bn,
1774
1774
  {
1775
1775
  $clickable: !d,
1776
1776
  role: d ? void 0 : "button",
1777
1777
  tabIndex: d ? void 0 : 0,
1778
1778
  onClick: d ? void 0 : () => l(g),
1779
- onKeyDown: d ? void 0 : (A) => {
1780
- (A.key === "Enter" || A.key === " ") && (A.preventDefault(), l(g));
1779
+ onKeyDown: d ? void 0 : (D) => {
1780
+ (D.key === "Enter" || D.key === " ") && (D.preventDefault(), l(g));
1781
1781
  },
1782
1782
  children: [
1783
1783
  /* @__PURE__ */ T(
1784
- Lt,
1784
+ kt,
1785
1785
  {
1786
1786
  name: `${f} ${m}`,
1787
1787
  icon: v,
@@ -1789,44 +1789,44 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1789
1789
  online: a
1790
1790
  }
1791
1791
  ),
1792
- /* @__PURE__ */ j(dn, { children: [
1793
- /* @__PURE__ */ j(hn, { children: [
1792
+ /* @__PURE__ */ j(En, { children: [
1793
+ /* @__PURE__ */ j(Tn, { children: [
1794
1794
  f,
1795
1795
  " ",
1796
1796
  m
1797
1797
  ] }),
1798
- B && /* @__PURE__ */ T(pn, { $online: a, children: B })
1798
+ I && /* @__PURE__ */ T(Cn, { $online: a, children: I })
1799
1799
  ] })
1800
1800
  ]
1801
1801
  }
1802
1802
  ),
1803
- P && /* @__PURE__ */ T(vn, { $banned: y, children: n.role }),
1803
+ R && /* @__PURE__ */ T(wn, { $banned: y, children: n.role }),
1804
1804
  u && /* @__PURE__ */ T(
1805
- Bt,
1805
+ Nt,
1806
1806
  {
1807
1807
  options: c,
1808
1808
  openButton: /* @__PURE__ */ T(
1809
- oe,
1809
+ te,
1810
1810
  {
1811
- onClick: (A) => {
1812
- A.preventDefault();
1811
+ onClick: (D) => {
1812
+ D.preventDefault();
1813
1813
  },
1814
1814
  "aria-label": r,
1815
1815
  children: r
1816
1816
  }
1817
1817
  ),
1818
- onClose: () => or.log("Dropdown closed")
1818
+ onClose: () => dr.log("Dropdown closed")
1819
1819
  }
1820
1820
  )
1821
1821
  ] });
1822
- }, gn = $e.memo(mn), Tt = 150, yn = 150, Rn = ({
1822
+ }, Pn = Ue.memo(Rn), Rt = 150, xn = 150, On = ({
1823
1823
  handleCloseModal: n
1824
1824
  }) => {
1825
- const [d, a] = re(!1), [u, c] = re(!1), [r, l] = re(!1), { showToast: o } = At(), t = de(), e = Ot(), s = le(
1825
+ const [d, a] = ee(!1), [u, c] = ee(!1), [r, l] = ee(!1), { showToast: o } = Lt(), t = he(), e = Bt(), s = se(
1826
1826
  () => [
1827
1827
  {
1828
1828
  label: t("action.deleteChat"),
1829
- icon: /* @__PURE__ */ T(ar, {}),
1829
+ icon: /* @__PURE__ */ T(hr, {}),
1830
1830
  onClick: () => {
1831
1831
  l(!0);
1832
1832
  },
@@ -1834,73 +1834,84 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1834
1834
  }
1835
1835
  ],
1836
1836
  [t]
1837
- ), [i, f] = re(!1), [m, v] = re(
1838
- Tt
1839
- ), [g, P] = re(""), y = je(), B = ir(), { client: A } = Pt(), { user: $, config: p } = Rt(), C = fe((w) => Ue(w)), {
1840
- muted: Q,
1841
- isSupported: K,
1842
- setMuted: ae
1843
- } = sr(C?.jid), ie = K && !p?.disableRoomMute, W = lr(C?.jid), X = fe(
1844
- (w) => w.chatSettingStore.user?.fileToken || ""
1845
- ), Z = le(() => new Set(W), [W]), z = ur(C), { members: G, state: q } = cr(C?.jid, z), ee = z && q === "loading", te = le(() => {
1846
- const w = Array.isArray(C?.members) ? C.members : [];
1847
- return !z || G.length === 0 ? He(w) : He([...w, ...G]);
1848
- }, [C?.members, z, G]), ne = le(() => {
1849
- const w = g.trim().toLowerCase();
1850
- if (!w) return te;
1851
- const U = B.getState().rooms.usersSet;
1852
- return te.filter((V) => {
1853
- const se = String(V?.xmppUsername || ""), Yt = se.split("@")[0], Qe = U?.[se] || U?.[Yt], Wt = V.firstName || Qe?.firstName || "", Gt = V.lastName || Qe?.lastName || "";
1854
- return `${Wt} ${Gt}`.toLowerCase().includes(w);
1837
+ ), [i, f] = ee(!1), [m, v] = ee(
1838
+ Rt
1839
+ ), [g, R] = ee(""), y = qe(), I = pr(), { client: D } = _t(), { user: $, config: p } = St(), w = ue((C) => Fe(C)), {
1840
+ muted: z,
1841
+ isSupported: G,
1842
+ setMuted: re
1843
+ } = vr(w?.jid), ne = G && !p?.disableRoomMute, W = mr(w?.jid), K = ue(
1844
+ (C) => C.chatSettingStore.user?.fileToken || ""
1845
+ ), V = $?.xmppUsername || "", Q = w?.type === "private", X = Q ? (w?.members || []).find(
1846
+ (C) => C.xmppUsername && C.xmppUsername !== V
1847
+ ) : void 0, F = X?.xmppUsername || "", Z = F.split("@")[0], ae = ue(
1848
+ (C) => F ? C.rooms.usersSet?.[F] ?? C.rooms.usersSet?.[Z] : void 0
1849
+ ), ce = X?.profileImage || ae?.profileImage || "", h = se(() => new Set(W), [W]), E = gr(w), { members: S, state: _ } = yr(w?.jid, E), P = E && _ === "loading", A = se(() => {
1850
+ const C = Array.isArray(w?.members) ? w.members : [];
1851
+ return !E || S.length === 0 ? We(C) : We([...C, ...S]);
1852
+ }, [w?.members, E, S]), x = se(() => {
1853
+ const C = g.trim().toLowerCase();
1854
+ if (!C) return A;
1855
+ const U = I.getState().rooms.usersSet;
1856
+ return A.filter((J) => {
1857
+ const oe = String(J?.xmppUsername || ""), Ee = oe.split("@")[0], Ye = U?.[oe] || U?.[Ee], tr = J.firstName || Ye?.firstName || "", rr = J.lastName || Ye?.lastName || "";
1858
+ return `${tr} ${rr}`.toLowerCase().includes(C);
1855
1859
  });
1856
- }, [te, g, B]), h = le(
1857
- () => ne.slice(0, m),
1858
- [ne, m]
1859
- ), E = m < ne.length, M = (w) => {
1860
- P(w.target.value), v(Tt);
1861
- }, S = C?.jid ? C.jid.split("@")[0] : void 0, {
1862
- items: R,
1863
- loading: D,
1864
- error: x,
1865
- remove: _
1866
- } = fr({ roomName: S }), O = i ? R : R.slice(0, 6), I = (w) => {
1867
- const U = Ge(w.location);
1860
+ }, [A, g, I]), M = se(
1861
+ () => x.slice(0, m),
1862
+ [x, m]
1863
+ ), O = m < x.length, B = (C) => {
1864
+ R(C.target.value), v(Rt);
1865
+ }, L = w?.jid ? w.jid.split("@")[0] : void 0, {
1866
+ items: q,
1867
+ loading: b,
1868
+ error: H,
1869
+ remove: ie
1870
+ } = br({ roomName: L }), pe = i ? q : q.slice(0, 6), Yt = (C) => {
1871
+ const U = Je(C.location);
1868
1872
  U && typeof window < "u" && window.open(U, "_blank", "noopener,noreferrer");
1869
- }, L = (w) => {
1870
- const U = Ge(w.location);
1873
+ }, Wt = (C) => {
1874
+ const U = Je(C.location);
1871
1875
  if (!U || typeof document > "u") return;
1872
- const V = document.createElement("a");
1873
- V.href = U, V.download = w.originalname || "file", document.body.appendChild(V), V.click(), V.remove();
1874
- }, F = (w) => {
1875
- _(w._id).catch(() => {
1876
+ const J = document.createElement("a");
1877
+ J.href = U, J.download = C.originalname || "file", document.body.appendChild(J), J.click(), J.remove();
1878
+ }, Gt = (C) => {
1879
+ ie(C._id).catch(() => {
1876
1880
  });
1877
- }, b = async (w) => {
1881
+ }, Kt = async (C) => {
1878
1882
  try {
1879
1883
  let U = new FormData();
1880
- U.append("files", w);
1881
- const se = (await wr(U, C.jid))?.data?.results?.[0]?.location;
1882
- se && (A.setRoomImageStanza(C.jid, se, "icon", "none"), y(
1883
- ye({ jid: C.jid, updates: { icon: se } })
1884
- ));
1884
+ U.append("files", C);
1885
+ const oe = (await Dr(U, w.jid))?.data?.results?.[0]?.location;
1886
+ if (oe) {
1887
+ try {
1888
+ await Xe(w.jid.split("@")[0], { picture: oe });
1889
+ } catch (Ee) {
1890
+ console.warn("Chat picture persistence failed:", Ee);
1891
+ }
1892
+ D.setRoomImageStanza(w.jid, oe, "icon", "none"), y(
1893
+ be({ jid: w.jid, updates: { icon: oe } })
1894
+ );
1895
+ }
1885
1896
  } catch (U) {
1886
1897
  console.error("File upload failed or location is missing:", U);
1887
1898
  }
1888
- }, H = async (w) => {
1899
+ }, Xt = async (C) => {
1889
1900
  try {
1890
- await Cr({
1891
- roomId: C.jid.split("@")[0],
1892
- members: [w]
1901
+ await Ar({
1902
+ roomId: w.jid.split("@")[0],
1903
+ members: [C]
1893
1904
  }), y(
1894
- ye({
1895
- jid: C.jid,
1905
+ be({
1906
+ jid: w.jid,
1896
1907
  updates: {
1897
- members: (Array.isArray(C.members) ? C.members : []).filter((U) => U.xmppUsername !== w)
1908
+ members: (Array.isArray(w.members) ? w.members : []).filter((U) => U.xmppUsername !== C)
1898
1909
  }
1899
1910
  })
1900
1911
  ), o({
1901
1912
  id: Date.now().toString(),
1902
1913
  title: t("toast.success"),
1903
- message: t("toast.userRemovedFromRoom", { userId: w }),
1914
+ message: t("toast.userRemovedFromRoom", { userId: C }),
1904
1915
  type: "success"
1905
1916
  });
1906
1917
  } catch (U) {
@@ -1911,60 +1922,65 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1911
1922
  type: "error"
1912
1923
  });
1913
1924
  }
1914
- }, J = p?.disableRoomConfig === !0, he = async () => {
1915
- A.setRoomImageStanza(C.jid, null, "icon", "none"), y(ye({ jid: C.jid, updates: { icon: null } }));
1916
- }, zt = (w) => {
1917
- y(be(Ye.PROFILE)), y(
1918
- Rr({
1919
- id: w._id,
1920
- firstName: w.firstName,
1921
- lastName: w.lastName,
1922
- name: `${w.firstName} ${w.lastName}`,
1923
- userJID: w?.xmppUsername
1925
+ }, fe = p?.disableRoomConfig === !0, Jt = async () => {
1926
+ try {
1927
+ await Xe(w.jid.split("@")[0], { picture: "" });
1928
+ } catch (C) {
1929
+ console.warn("Chat picture clear failed:", C);
1930
+ }
1931
+ D.setRoomImageStanza(w.jid, null, "icon", "none"), y(be({ jid: w.jid, updates: { icon: null } }));
1932
+ }, Vt = (C) => {
1933
+ y(Te(Ge.PROFILE)), y(
1934
+ Or({
1935
+ id: C._id,
1936
+ firstName: C.firstName,
1937
+ lastName: C.lastName,
1938
+ name: `${C.firstName} ${C.lastName}`,
1939
+ userJID: C?.xmppUsername
1924
1940
  })
1925
1941
  );
1926
- }, Qt = le(
1927
- () => (w) => [
1942
+ }, Zt = se(
1943
+ () => (C) => [
1928
1944
  {
1929
1945
  label: t("action.delete"),
1930
1946
  icon: null,
1931
1947
  onClick: (U) => {
1932
- U?.preventDefault(), H(w);
1948
+ U?.preventDefault(), Xt(C);
1933
1949
  }
1934
1950
  }
1935
1951
  ],
1936
1952
  [t]
1937
1953
  );
1938
- if (!C)
1939
- return y(be()), null;
1940
- const Ht = (() => {
1941
- const w = Dt(C), U = dr(w, e);
1942
- return w === 1 ? t("modal.chatProfile.memberCountSingular", { count: U }) : t("modal.chatProfile.memberCountPlural", { count: U });
1943
- })(), Fe = !p?.disableChatInfo?.disableDescription, ze = !p?.disableChatInfo?.disableType;
1954
+ if (!w)
1955
+ return y(Te()), null;
1956
+ const er = (() => {
1957
+ const C = It(w), U = Er(C, e);
1958
+ return C === 1 ? t("modal.chatProfile.memberCountSingular", { count: U }) : t("modal.chatProfile.memberCountPlural", { count: U });
1959
+ })(), Qe = !p?.disableChatInfo?.disableDescription, He = !p?.disableChatInfo?.disableType;
1944
1960
  return /* @__PURE__ */ j(
1945
- It,
1961
+ $t,
1946
1962
  {
1947
1963
  title: t("modal.chatProfile.title"),
1948
1964
  onClose: n,
1949
- headerActions: /* @__PURE__ */ j(Ct, { children: [
1950
- C?.type === "public" && /* @__PURE__ */ T(
1951
- oe,
1965
+ headerActions: /* @__PURE__ */ j(Pt, { children: [
1966
+ w?.type === "public" && /* @__PURE__ */ T(
1967
+ te,
1952
1968
  {
1953
- EndIcon: /* @__PURE__ */ T(Er, {}),
1969
+ EndIcon: /* @__PURE__ */ T(_r, {}),
1954
1970
  onClick: () => c(!0),
1955
1971
  "aria-label": t("action.showQr")
1956
1972
  }
1957
1973
  ),
1958
- C.role === "moderator" && C.type !== "private" && !J && !p?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ T(
1959
- Bt,
1974
+ w.role === "moderator" && w.type !== "private" && !fe && !p?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ T(
1975
+ Nt,
1960
1976
  {
1961
1977
  position: "left",
1962
1978
  options: s,
1963
1979
  openButton: /* @__PURE__ */ T(
1964
- oe,
1980
+ te,
1965
1981
  {
1966
1982
  style: { padding: 8, maxHeight: "40px" },
1967
- EndIcon: /* @__PURE__ */ T(Tr, {}),
1983
+ EndIcon: /* @__PURE__ */ T(Mr, {}),
1968
1984
  unstyled: !0,
1969
1985
  "aria-label": t("action.moreOptions")
1970
1986
  }
@@ -1973,48 +1989,51 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
1973
1989
  )
1974
1990
  ] }),
1975
1991
  children: [
1976
- /* @__PURE__ */ j(Or, { children: [
1992
+ /* @__PURE__ */ j(Ur, { children: [
1977
1993
  /* @__PURE__ */ T(
1978
- Lt,
1994
+ kt,
1979
1995
  {
1980
- name: C.name,
1981
- icon: hr(C.icon, X),
1996
+ name: w.name,
1997
+ icon: Tr(
1998
+ w.icon || (Q ? ce : ""),
1999
+ K
2000
+ ),
1982
2001
  upload: {
1983
- onUpload: b,
1984
- active: !J && C?.role !== "participant"
2002
+ onUpload: Kt,
2003
+ active: !fe && w?.role !== "participant"
1985
2004
  },
1986
- remove: J ? void 0 : { enabled: !0, onRemoveClick: he },
1987
- role: C?.role,
2005
+ remove: fe ? void 0 : { enabled: !0, onRemoveClick: Jt },
2006
+ role: w?.role,
1988
2007
  size: 96
1989
2008
  }
1990
2009
  ),
1991
2010
  /* @__PURE__ */ j("div", { children: [
1992
- /* @__PURE__ */ T(Lr, { children: C.name }),
1993
- /* @__PURE__ */ T(Br, { children: Ht })
2011
+ /* @__PURE__ */ T(qr, { children: w.name }),
2012
+ /* @__PURE__ */ T(Fr, { children: er })
1994
2013
  ] })
1995
2014
  ] }),
1996
- C.role === "moderator" && C.type === "group" && !J && /* @__PURE__ */ T(un, {}),
1997
- (Fe || ze) && /* @__PURE__ */ j(ce, { children: [
1998
- /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.aboutSection") }),
1999
- Fe && /* @__PURE__ */ T(Ir, { $empty: !C?.description, children: C?.description || t("modal.profile.noDescription") }),
2000
- ze && /* @__PURE__ */ j(kr, { children: [
2001
- /* @__PURE__ */ T(pr, { color: "currentColor" }),
2015
+ w.role === "moderator" && w.type === "group" && !fe && /* @__PURE__ */ T(gn, {}),
2016
+ (Qe || He) && /* @__PURE__ */ j(de, { children: [
2017
+ /* @__PURE__ */ T(ve, { children: t("modal.chatProfile.aboutSection") }),
2018
+ Qe && /* @__PURE__ */ T(zr, { $empty: !w?.description, children: w?.description || t("modal.profile.noDescription") }),
2019
+ He && /* @__PURE__ */ j(Qr, { children: [
2020
+ /* @__PURE__ */ T(Cr, { color: "currentColor" }),
2002
2021
  t(
2003
- C.type === "private" ? "modal.chatProfile.typePrivate" : C.type === "group" ? "modal.chatProfile.typeGroup" : "modal.chatProfile.typePublic"
2022
+ w.type === "private" ? "modal.chatProfile.typePrivate" : w.type === "group" ? "modal.chatProfile.typeGroup" : "modal.chatProfile.typePublic"
2004
2023
  )
2005
2024
  ] })
2006
2025
  ] }),
2007
- vr(p) && /* @__PURE__ */ T(ce, { children: /* @__PURE__ */ T(Ne, { children: /* @__PURE__ */ T(
2008
- xr,
2026
+ wr(p) && /* @__PURE__ */ T(de, { children: /* @__PURE__ */ T(je, { children: /* @__PURE__ */ T(
2027
+ Ir,
2009
2028
  {
2010
2029
  label: t("search.messages.title"),
2011
- onClick: () => y(be(Ye.MESSAGE_SEARCH))
2030
+ onClick: () => y(Te(Ge.MESSAGE_SEARCH))
2012
2031
  }
2013
2032
  ) }) }),
2014
- ie && /* @__PURE__ */ j(ce, { children: [
2015
- /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.notifications") }),
2016
- /* @__PURE__ */ T(Ne, { children: /* @__PURE__ */ j(
2017
- Sr,
2033
+ ne && /* @__PURE__ */ j(de, { children: [
2034
+ /* @__PURE__ */ T(ve, { children: t("modal.chatProfile.notifications") }),
2035
+ /* @__PURE__ */ T(je, { children: /* @__PURE__ */ j(
2036
+ Br,
2018
2037
  {
2019
2038
  style: {
2020
2039
  flexDirection: "row",
@@ -2022,13 +2041,13 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
2022
2041
  alignItems: "center"
2023
2042
  },
2024
2043
  children: [
2025
- /* @__PURE__ */ T(Ke, { children: t(Q ? "action.unmute" : "action.mute") }),
2044
+ /* @__PURE__ */ T(Ve, { children: t(z ? "action.unmute" : "action.mute") }),
2026
2045
  /* @__PURE__ */ T(
2027
- mr,
2046
+ Rr,
2028
2047
  {
2029
- checked: Q,
2030
- onToggle: (w) => {
2031
- ae(w);
2048
+ checked: z,
2049
+ onToggle: (C) => {
2050
+ re(C);
2032
2051
  },
2033
2052
  bgColor: p?.colors?.primary
2034
2053
  }
@@ -2037,104 +2056,104 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
2037
2056
  }
2038
2057
  ) })
2039
2058
  ] }),
2040
- !p?.disableChatInfo?.hideMembers && /* @__PURE__ */ j(ce, { children: [
2041
- /* @__PURE__ */ T(Xe, { children: /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.membersSection") }) }),
2042
- te.length > 0 && /* @__PURE__ */ j(_r, { children: [
2043
- /* @__PURE__ */ T(gr, { color: "currentColor", height: "18px" }),
2059
+ !p?.disableChatInfo?.hideMembers && /* @__PURE__ */ j(de, { children: [
2060
+ /* @__PURE__ */ T(Ze, { children: /* @__PURE__ */ T(ve, { children: t("modal.chatProfile.membersSection") }) }),
2061
+ A.length > 0 && /* @__PURE__ */ j(kr, { children: [
2062
+ /* @__PURE__ */ T(Pr, { color: "currentColor", height: "18px" }),
2044
2063
  /* @__PURE__ */ T(
2045
- Mr,
2064
+ Nr,
2046
2065
  {
2047
2066
  type: "text",
2048
2067
  value: g,
2049
- onChange: M,
2068
+ onChange: B,
2050
2069
  placeholder: t("modal.chatProfile.searchMembers"),
2051
2070
  "aria-label": t("modal.chatProfile.searchMembers")
2052
2071
  }
2053
2072
  )
2054
2073
  ] }),
2055
- d ? /* @__PURE__ */ T(ke, {}) : /* @__PURE__ */ j(Ar, { children: [
2056
- h.map((w) => /* @__PURE__ */ T(
2057
- gn,
2074
+ d ? /* @__PURE__ */ T($e, {}) : /* @__PURE__ */ j($r, { children: [
2075
+ M.map((C) => /* @__PURE__ */ T(
2076
+ Pn,
2058
2077
  {
2059
- member: w,
2078
+ member: C,
2060
2079
  isLast: !0,
2061
2080
  disableClick: !!p?.disableChatInfo?.disableMembers,
2062
- online: Z.has(w.xmppUsername),
2063
- showMenu: $.xmppUsername !== w.xmppUsername && C.role === "moderator" && C.type !== "private" && !J,
2064
- menuOptions: Qt(w.xmppUsername),
2081
+ online: h.has(C.xmppUsername),
2082
+ showMenu: $.xmppUsername !== C.xmppUsername && w.role === "moderator" && w.type !== "private" && !fe,
2083
+ menuOptions: Zt(C.xmppUsername),
2065
2084
  moreOptionsLabel: t("action.moreOptions"),
2066
- onAvatarClick: zt
2085
+ onAvatarClick: Vt
2067
2086
  },
2068
- yr(w) || w._id
2087
+ xr(C) || C._id
2069
2088
  )),
2070
- ee && /* @__PURE__ */ T(Ke, { children: t("modal.chatProfile.membersLoadingAll") }),
2071
- E && /* @__PURE__ */ T(
2072
- Je,
2089
+ P && /* @__PURE__ */ T(Ve, { children: t("modal.chatProfile.membersLoadingAll") }),
2090
+ O && /* @__PURE__ */ T(
2091
+ et,
2073
2092
  {
2074
2093
  type: "button",
2075
2094
  onClick: () => v(
2076
- (w) => w + yn
2095
+ (C) => C + xn
2077
2096
  ),
2078
2097
  children: t("modal.chatProfile.membersShowMore", {
2079
- count: ne.length - m
2098
+ count: x.length - m
2080
2099
  })
2081
2100
  }
2082
2101
  )
2083
2102
  ] })
2084
2103
  ] }),
2085
- /* @__PURE__ */ j(ce, { children: [
2086
- /* @__PURE__ */ j(Xe, { children: [
2087
- /* @__PURE__ */ T(pe, { children: t("modal.chatProfile.filesTitle") }),
2088
- R.length > 6 && /* @__PURE__ */ T(
2089
- Je,
2104
+ /* @__PURE__ */ j(de, { children: [
2105
+ /* @__PURE__ */ j(Ze, { children: [
2106
+ /* @__PURE__ */ T(ve, { children: t("modal.chatProfile.filesTitle") }),
2107
+ q.length > 6 && /* @__PURE__ */ T(
2108
+ et,
2090
2109
  {
2091
2110
  type: "button",
2092
- onClick: () => f((w) => !w),
2111
+ onClick: () => f((C) => !C),
2093
2112
  "aria-expanded": i,
2094
2113
  children: t(i ? "modal.chatProfile.filesShowLess" : "modal.chatProfile.filesShowAll")
2095
2114
  }
2096
2115
  )
2097
2116
  ] }),
2098
- D && R.length === 0 ? /* @__PURE__ */ T(ke, {}) : x && R.length === 0 ? /* @__PURE__ */ j(Ve, { $compact: !0, children: [
2117
+ b && q.length === 0 ? /* @__PURE__ */ T($e, {}) : H && q.length === 0 ? /* @__PURE__ */ j(tt, { $compact: !0, children: [
2099
2118
  /* @__PURE__ */ T(
2100
- We,
2119
+ Ke,
2101
2120
  {
2102
2121
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2103
2122
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2104
2123
  }
2105
2124
  ),
2106
- /* @__PURE__ */ T(Ze, { children: t("files.error.title") })
2107
- ] }) : R.length === 0 ? /* @__PURE__ */ j(Ve, { $compact: !0, children: [
2125
+ /* @__PURE__ */ T(rt, { children: t("files.error.title") })
2126
+ ] }) : q.length === 0 ? /* @__PURE__ */ j(tt, { $compact: !0, children: [
2108
2127
  /* @__PURE__ */ T(
2109
- We,
2128
+ Ke,
2110
2129
  {
2111
2130
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2112
2131
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2113
2132
  }
2114
2133
  ),
2115
- /* @__PURE__ */ T(Ze, { children: t("modal.chatProfile.filesEmpty") })
2134
+ /* @__PURE__ */ T(rt, { children: t("modal.chatProfile.filesEmpty") })
2116
2135
  ] }) : /* @__PURE__ */ T(
2117
- br,
2136
+ Sr,
2118
2137
  {
2119
- items: O,
2120
- fileToken: X,
2121
- onPreview: I,
2122
- onDownload: L,
2123
- onDelete: F,
2138
+ items: pe,
2139
+ fileToken: K,
2140
+ onPreview: Yt,
2141
+ onDownload: Wt,
2142
+ onDelete: Gt,
2124
2143
  compact: !0
2125
2144
  }
2126
2145
  )
2127
2146
  ] }),
2128
2147
  /* @__PURE__ */ T(
2129
- sn,
2148
+ vn,
2130
2149
  {
2131
2150
  isVisible: u,
2132
2151
  setVisible: c,
2133
- chatJid: C.jid
2152
+ chatJid: w.jid
2134
2153
  }
2135
2154
  ),
2136
2155
  /* @__PURE__ */ T(
2137
- ln,
2156
+ mn,
2138
2157
  {
2139
2158
  isModalOpen: r,
2140
2159
  setIsModalOpen: l
@@ -2145,5 +2164,5 @@ const Jr = /* @__PURE__ */ Kt(Xr), Vr = "chatId", Zr = (n, d, a) => {
2145
2164
  );
2146
2165
  };
2147
2166
  export {
2148
- Rn as default
2167
+ On as default
2149
2168
  };