@ethora/chat-component 26.7.6 → 26.7.7

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 (47) hide show
  1. package/dist/ChatProfileModal-DehQM4Bo.js +2135 -0
  2. package/dist/FilePreviewModal-BcZLtVAy.js +743 -0
  3. package/dist/{ManageDataModal-CDPXcC93.js → ManageDataModal-DWabKhSC.js} +68 -49
  4. package/dist/{MarkdownBody-DBJGraWM.js → MarkdownBody-CSY3YKDh.js} +1 -1
  5. package/dist/{SideDrawer-Dr_lkaOW.js → SideDrawer-DewJ-iPn.js} +110 -66
  6. package/dist/UserProfileModal-BHZ0TULc.js +574 -0
  7. package/dist/{UserSettingsModal-OcAJao-d.js → UserSettingsModal-BxwVWNKo.js} +2 -2
  8. package/dist/{VideoCallOverlay-CC4sShdK.js → VideoCallOverlay-D5SuimGP.js} +1 -1
  9. package/dist/{VisibilityModal-DkMhx_2k.js → VisibilityModal-Bd67b4EM.js} +2 -2
  10. package/dist/components/MainComponents/ChatRoomOpeningPreview.d.ts +24 -0
  11. package/dist/components/MainComponents/ChatWrapper.d.ts +1 -0
  12. package/dist/components/MainComponents/ChooseChatMessage.d.ts +11 -1
  13. package/dist/components/Modals/Modal/Modal.d.ts +10 -0
  14. package/dist/components/Modals/Modal/ModalContent.d.ts +21 -0
  15. package/dist/components/Modals/ModalBox/ModalBox.d.ts +9 -0
  16. package/dist/components/Modals/ModalReportChat/ModalReportChat.d.ts +6 -1
  17. package/dist/components/Modals/ModalWrapper/ModalWrapper.d.ts +8 -0
  18. package/dist/components/Modals/SettingsModals/SharedStyledComponents.d.ts +12 -0
  19. package/dist/components/Modals/SideDrawer/DrawerProfileParts.d.ts +29 -0
  20. package/dist/components/Modals/SideDrawer/SideDrawer.d.ts +21 -1
  21. package/dist/components/Modals/SidePanel/SidePanel.d.ts +31 -0
  22. package/dist/components/Modals/UserProfileModal/EditUserModal.d.ts +5 -1
  23. package/dist/components/Modals/motionVariants.d.ts +37 -0
  24. package/dist/components/Modals/styledModalComponents.d.ts +0 -1
  25. package/dist/context/ModalTransitionContext.d.ts +2 -0
  26. package/dist/handleCopyClick-BoZWTBLC.js +108 -0
  27. package/dist/helpers/buildChatShareLink.d.ts +20 -0
  28. package/dist/helpers/cacheScope.d.ts +15 -1
  29. package/dist/helpers/constants/MODAL_TYPES.d.ts +6 -4
  30. package/dist/helpers/createRoomFromApi.d.ts +1 -1
  31. package/dist/helpers/formatNumberWithCommas.d.ts +1 -1
  32. package/dist/hooks/useChatOpenPhase.d.ts +21 -0
  33. package/dist/hooks/useDelayedAction.d.ts +22 -0
  34. package/dist/hooks/useExclusiveRightPane.d.ts +25 -0
  35. package/dist/hooks/useExitTransition.d.ts +24 -0
  36. package/dist/hooks/useGetNewArchRoom.d.ts +3 -1
  37. package/dist/hooks/useQRCodeChatHandler.d.ts +29 -1
  38. package/dist/{main-B-8IhwaP.js → main-C2FKeV6y.js} +8107 -7569
  39. package/dist/main.css +1 -1
  40. package/dist/main.js +5 -5
  41. package/dist/styles/motion.d.ts +27 -0
  42. package/dist/types/models/room.model.d.ts +28 -0
  43. package/package.json +1 -1
  44. package/dist/ChatProfileModal-hxsWI8cx.js +0 -2139
  45. package/dist/FilePreviewModal-CwWnHsB1.js +0 -736
  46. package/dist/UserProfileModal-Q_jhXpsX.js +0 -568
  47. package/dist/handleCopyClick-CpmPa6VI.js +0 -32
@@ -0,0 +1,2135 @@
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-DewJ-iPn.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-BoZWTBLC.js";
5
+ import { m as Zt, b as Et, n as de, a1 as er, B as te, v as W, a as Ne, u as fe, a2 as $e, D as Ct, w as wt, a3 as Rt, a4 as Pt, a5 as xt, a6 as tr, a7 as Be, a8 as rr, a9 as nr, $ as or, F as _t, X as ar, aa as ir, ab as Ie, ac as sr, ad as ye, ae as St, P as Mt, T as At, t as lr, af as ur, ag as cr, ah as fr, ai as dr, aj as hr, o as Ye, ak as pr, al as vr, am as mr, an as gr, ao as yr, ap as We, aq as br, ar as Tr, U as Er, as as Cr, at as wr, M as Rr, G as Pr, au as Ge } from "./main-C2FKeV6y.js";
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;
15
+ switch (C) {
16
+ case h:
17
+ switch (v = v.type, v) {
18
+ case t:
19
+ case e:
20
+ case u:
21
+ case r:
22
+ case c:
23
+ case i:
24
+ return v;
25
+ default:
26
+ switch (v = v && v.$$typeof, v) {
27
+ case o:
28
+ case s:
29
+ case p:
30
+ case m:
31
+ case l:
32
+ return v;
33
+ default:
34
+ return C;
35
+ }
36
+ }
37
+ case a:
38
+ return C;
39
+ }
40
+ }
41
+ }
42
+ function $(v) {
43
+ return D(v) === e;
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);
71
+ }, k.typeOf = D, k;
72
+ }
73
+ var N = {};
74
+ var Xe;
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;
85
+ switch (Y) {
86
+ case h:
87
+ var ae = y.type;
88
+ switch (ae) {
89
+ case t:
90
+ case e:
91
+ case u:
92
+ case r:
93
+ case c:
94
+ case i:
95
+ return ae;
96
+ default:
97
+ var ce = ae && ae.$$typeof;
98
+ switch (ce) {
99
+ case o:
100
+ case s:
101
+ case p:
102
+ case m:
103
+ case l:
104
+ return ce;
105
+ default:
106
+ return Y;
107
+ }
108
+ }
109
+ case a:
110
+ return Y;
111
+ }
112
+ }
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;
117
+ }
118
+ function d(y) {
119
+ return $(y) === e;
120
+ }
121
+ function T(y) {
122
+ return $(y) === o;
123
+ }
124
+ function A(y) {
125
+ return $(y) === l;
126
+ }
127
+ function _(y) {
128
+ return typeof y == "object" && y !== null && y.$$typeof === h;
129
+ }
130
+ function P(y) {
131
+ return $(y) === s;
132
+ }
133
+ function O(y) {
134
+ return $(y) === u;
135
+ }
136
+ function x(y) {
137
+ return $(y) === p;
138
+ }
139
+ function S(y) {
140
+ return $(y) === m;
141
+ }
142
+ function L(y) {
143
+ return $(y) === a;
144
+ }
145
+ function I(y) {
146
+ return $(y) === r;
147
+ }
148
+ function M(y) {
149
+ return $(y) === c;
150
+ }
151
+ function F(y) {
152
+ return $(y) === i;
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 = $;
155
+ })()), N;
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;
160
+ }
161
+ var be, Ve;
162
+ function Sr() {
163
+ if (Ve) return be;
164
+ Ve = 1;
165
+ var n = Object.getOwnPropertySymbols, h = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
166
+ function u(r) {
167
+ if (r == null)
168
+ throw new TypeError("Object.assign cannot be called with null or undefined");
169
+ return Object(r);
170
+ }
171
+ function c() {
172
+ try {
173
+ if (!Object.assign)
174
+ return !1;
175
+ var r = new String("abc");
176
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
177
+ return !1;
178
+ for (var l = {}, o = 0; o < 10; o++)
179
+ l["_" + String.fromCharCode(o)] = o;
180
+ var t = Object.getOwnPropertyNames(l).map(function(s) {
181
+ return l[s];
182
+ });
183
+ if (t.join("") !== "0123456789")
184
+ return !1;
185
+ var e = {};
186
+ return "abcdefghijklmnopqrst".split("").forEach(function(s) {
187
+ e[s] = s;
188
+ }), Object.keys(Object.assign({}, e)).join("") === "abcdefghijklmnopqrst";
189
+ } catch {
190
+ return !1;
191
+ }
192
+ }
193
+ return be = c() ? Object.assign : function(r, l) {
194
+ for (var o, t = u(r), e, s = 1; s < arguments.length; s++) {
195
+ o = Object(arguments[s]);
196
+ for (var i in o)
197
+ h.call(o, i) && (t[i] = o[i]);
198
+ if (n) {
199
+ e = n(o);
200
+ for (var f = 0; f < e.length; f++)
201
+ a.call(o, e[f]) && (t[e[f]] = o[e[f]]);
202
+ }
203
+ }
204
+ return t;
205
+ }, be;
206
+ }
207
+ var Te, Ze;
208
+ function je() {
209
+ if (Ze) return Te;
210
+ Ze = 1;
211
+ var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
212
+ return Te = n, Te;
213
+ }
214
+ var Ee, et;
215
+ function Ot() {
216
+ return et || (et = 1, Ee = Function.call.bind(Object.prototype.hasOwnProperty)), Ee;
217
+ }
218
+ var Ce, tt;
219
+ function Mr() {
220
+ if (tt) return Ce;
221
+ tt = 1;
222
+ var n = function() {
223
+ };
224
+ if (process.env.NODE_ENV !== "production") {
225
+ var h = /* @__PURE__ */ je(), a = {}, u = /* @__PURE__ */ Ot();
226
+ n = function(r) {
227
+ var l = "Warning: " + r;
228
+ typeof console < "u" && console.error(l);
229
+ try {
230
+ throw new Error(l);
231
+ } catch {
232
+ }
233
+ };
234
+ }
235
+ function c(r, l, o, t, e) {
236
+ if (process.env.NODE_ENV !== "production") {
237
+ for (var s in r)
238
+ if (u(r, s)) {
239
+ var i;
240
+ try {
241
+ if (typeof r[s] != "function") {
242
+ var f = Error(
243
+ (t || "React class") + ": " + o + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
244
+ );
245
+ throw f.name = "Invariant Violation", f;
246
+ }
247
+ i = r[s](l, s, t, o, null, h);
248
+ } catch (p) {
249
+ i = p;
250
+ }
251
+ if (i && !(i instanceof Error) && n(
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)."
253
+ ), i instanceof Error && !(i.message in a)) {
254
+ a[i.message] = !0;
255
+ var m = e ? e() : "";
256
+ n(
257
+ "Failed " + o + " type: " + i.message + (m ?? "")
258
+ );
259
+ }
260
+ }
261
+ }
262
+ }
263
+ return c.resetWarningCache = function() {
264
+ process.env.NODE_ENV !== "production" && (a = {});
265
+ }, Ce = c, Ce;
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() {
272
+ };
273
+ process.env.NODE_ENV !== "production" && (r = function(o) {
274
+ var t = "Warning: " + o;
275
+ typeof console < "u" && console.error(t);
276
+ try {
277
+ throw new Error(t);
278
+ } catch {
279
+ }
280
+ });
281
+ function l() {
282
+ return null;
283
+ }
284
+ return we = function(o, t) {
285
+ var e = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
286
+ function i(d) {
287
+ var T = d && (e && d[e] || d[s]);
288
+ if (typeof T == "function")
289
+ return T;
290
+ }
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"),
300
+ any: B(),
301
+ arrayOf: D,
302
+ element: $(),
303
+ elementType: v(),
304
+ instanceOf: C,
305
+ node: ne(),
306
+ objectOf: K,
307
+ oneOf: Q,
308
+ oneOfType: re,
309
+ shape: X,
310
+ exact: V
311
+ };
312
+ function p(d, T) {
313
+ return d === T ? d !== 0 || 1 / d === 1 / T : d !== d && T !== T;
314
+ }
315
+ function g(d, T) {
316
+ this.message = d, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
317
+ }
318
+ g.prototype = Error.prototype;
319
+ function R(d) {
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) {
324
+ if (t) {
325
+ var y = new Error(
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
+ );
328
+ throw y.name = "Invariant Violation", y;
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
332
+ A < 3 && (r(
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++);
335
+ }
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);
338
+ }
339
+ var P = _.bind(null, !1);
340
+ return P.isRequired = _.bind(null, !0), P;
341
+ }
342
+ function b(d) {
343
+ function T(A, _, P, O, x, S) {
344
+ var L = A[_], I = q(L);
345
+ if (I !== d) {
346
+ var M = Z(L);
347
+ return new g(
348
+ "Invalid " + O + " `" + x + "` of type " + ("`" + M + "` supplied to `" + P + "`, expected ") + ("`" + d + "`."),
349
+ { expectedType: d }
350
+ );
351
+ }
352
+ return null;
353
+ }
354
+ return R(T);
355
+ }
356
+ function B() {
357
+ return R(l);
358
+ }
359
+ function D(d) {
360
+ function T(A, _, P, O, x) {
361
+ if (typeof d != "function")
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);
366
+ return new g("Invalid " + O + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected an array."));
367
+ }
368
+ for (var I = 0; I < S.length; I++) {
369
+ var M = d(S, I, P, O, x + "[" + I + "]", a);
370
+ if (M instanceof Error)
371
+ return M;
372
+ }
373
+ return null;
374
+ }
375
+ return R(T);
376
+ }
377
+ function $() {
378
+ function d(T, A, _, P, O) {
379
+ var x = T[A];
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."));
383
+ }
384
+ return null;
385
+ }
386
+ return R(d);
387
+ }
388
+ function v() {
389
+ function d(T, A, _, P, O) {
390
+ var x = T[A];
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."));
394
+ }
395
+ return null;
396
+ }
397
+ return R(d);
398
+ }
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 + "`."));
404
+ }
405
+ return null;
406
+ }
407
+ return R(T);
408
+ }
409
+ function Q(d) {
410
+ if (!Array.isArray(d))
411
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
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
+ ) : 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]))
417
+ return null;
418
+ var I = JSON.stringify(d, function(F, y) {
419
+ var Y = Z(y);
420
+ return Y === "symbol" ? String(y) : y;
421
+ });
422
+ return new g("Invalid " + O + " `" + x + "` of value `" + String(S) + "` " + ("supplied to `" + P + "`, expected one of " + I + "."));
423
+ }
424
+ return R(T);
425
+ }
426
+ function K(d) {
427
+ function T(A, _, P, O, x) {
428
+ if (typeof d != "function")
429
+ return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
430
+ var S = A[_], L = q(S);
431
+ if (L !== "object")
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);
436
+ if (M instanceof Error)
437
+ return M;
438
+ }
439
+ return null;
440
+ }
441
+ return R(T);
442
+ }
443
+ function re(d) {
444
+ if (!Array.isArray(d))
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];
448
+ if (typeof A != "function")
449
+ return r(
450
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(A) + " at index " + T + "."
451
+ ), l;
452
+ }
453
+ function _(P, O, x, S, L) {
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)
457
+ return null;
458
+ y.data && u(y.data, "expectedType") && I.push(y.data.expectedType);
459
+ }
460
+ var Y = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
461
+ return new g("Invalid " + S + " `" + L + "` supplied to " + ("`" + x + "`" + Y + "."));
462
+ }
463
+ return R(_);
464
+ }
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."));
468
+ }
469
+ return R(d);
470
+ }
471
+ function G(d, T, A, _, P) {
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 + "`."
474
+ );
475
+ }
476
+ function X(d) {
477
+ function T(A, _, P, O, x) {
478
+ var S = A[_], L = q(S);
479
+ if (L !== "object")
480
+ return new g("Invalid " + O + " `" + x + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
481
+ for (var I in d) {
482
+ var M = d[I];
483
+ if (typeof M != "function")
484
+ return G(P, O, x, I, Z(M));
485
+ var F = M(S, I, P, O, x + "." + I, a);
486
+ if (F)
487
+ return F;
488
+ }
489
+ return null;
490
+ }
491
+ return R(T);
492
+ }
493
+ function V(d) {
494
+ function T(A, _, P, O, x) {
495
+ var S = A[_], L = q(S);
496
+ if (L !== "object")
497
+ return new g("Invalid " + O + " `" + x + "` of type `" + L + "` " + ("supplied to `" + P + "`, expected `object`."));
498
+ var I = h({}, A[_], d);
499
+ for (var M in I) {
500
+ var F = d[M];
501
+ if (u(d, M) && typeof F != "function")
502
+ return G(P, O, x, M, Z(F));
503
+ if (!F)
504
+ return new g(
505
+ "Invalid " + O + " `" + x + "` key `" + M + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(A[_], null, " ") + `
506
+ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
507
+ );
508
+ var y = F(S, M, P, O, x + "." + M, a);
509
+ if (y)
510
+ return y;
511
+ }
512
+ return null;
513
+ }
514
+ return R(T);
515
+ }
516
+ function z(d) {
517
+ switch (typeof d) {
518
+ case "number":
519
+ case "string":
520
+ case "undefined":
521
+ return !0;
522
+ case "boolean":
523
+ return !d;
524
+ case "object":
525
+ if (Array.isArray(d))
526
+ return d.every(z);
527
+ if (d === null || o(d))
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))
535
+ return !1;
536
+ } else
537
+ for (; !(_ = A.next()).done; ) {
538
+ var P = _.value;
539
+ if (P && !z(P[1]))
540
+ return !1;
541
+ }
542
+ } else
543
+ return !1;
544
+ return !0;
545
+ default:
546
+ return !1;
547
+ }
548
+ }
549
+ function H(d, T) {
550
+ return d === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
551
+ }
552
+ function q(d) {
553
+ var T = typeof d;
554
+ return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : H(T, d) ? "symbol" : T;
555
+ }
556
+ function Z(d) {
557
+ if (typeof d > "u" || d === null)
558
+ return "" + d;
559
+ var T = q(d);
560
+ if (T === "object") {
561
+ if (d instanceof Date)
562
+ return "date";
563
+ if (d instanceof RegExp)
564
+ return "regexp";
565
+ }
566
+ return T;
567
+ }
568
+ function oe(d) {
569
+ var T = Z(d);
570
+ switch (T) {
571
+ case "array":
572
+ case "object":
573
+ return "an " + T;
574
+ case "boolean":
575
+ case "date":
576
+ case "regexp":
577
+ return "a " + T;
578
+ default:
579
+ return T;
580
+ }
581
+ }
582
+ function ue(d) {
583
+ return !d.constructor || !d.constructor.name ? f : d.constructor.name;
584
+ }
585
+ return m.checkPropTypes = c, m.resetWarningCache = c.resetWarningCache, m.PropTypes = m, m;
586
+ }, we;
587
+ }
588
+ var Re, nt;
589
+ function Dr() {
590
+ if (nt) return Re;
591
+ nt = 1;
592
+ var n = /* @__PURE__ */ je();
593
+ function h() {
594
+ }
595
+ function a() {
596
+ }
597
+ return a.resetWarningCache = h, Re = function() {
598
+ function u(l, o, t, e, s, i) {
599
+ if (i !== n) {
600
+ var f = new Error(
601
+ "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"
602
+ );
603
+ throw f.name = "Invariant Violation", f;
604
+ }
605
+ }
606
+ u.isRequired = u;
607
+ function c() {
608
+ return u;
609
+ }
610
+ var r = {
611
+ array: u,
612
+ bigint: u,
613
+ bool: u,
614
+ func: u,
615
+ number: u,
616
+ object: u,
617
+ string: u,
618
+ symbol: u,
619
+ any: u,
620
+ arrayOf: c,
621
+ element: u,
622
+ elementType: u,
623
+ instanceOf: c,
624
+ node: u,
625
+ objectOf: c,
626
+ oneOf: c,
627
+ oneOfType: c,
628
+ shape: c,
629
+ exact: c,
630
+ checkPropTypes: a,
631
+ resetWarningCache: h
632
+ };
633
+ return r.PropTypes = r, r;
634
+ }, Re;
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);
642
+ } else
643
+ ve.exports = /* @__PURE__ */ Dr()();
644
+ return ve.exports;
645
+ }
646
+ var Pe, at;
647
+ function Bt() {
648
+ return at || (at = 1, Pe = {
649
+ L: 1,
650
+ M: 0,
651
+ Q: 3,
652
+ H: 2
653
+ }), Pe;
654
+ }
655
+ var xe, it;
656
+ function It() {
657
+ return it || (it = 1, xe = {
658
+ MODE_NUMBER: 1,
659
+ MODE_ALPHA_NUM: 2,
660
+ MODE_8BIT_BYTE: 4,
661
+ MODE_KANJI: 8
662
+ }), xe;
663
+ }
664
+ var _e, st;
665
+ function Or() {
666
+ if (st) return _e;
667
+ st = 1;
668
+ var n = It();
669
+ function h(a) {
670
+ this.mode = n.MODE_8BIT_BYTE, this.data = a;
671
+ }
672
+ return h.prototype = {
673
+ getLength: function(a) {
674
+ return this.data.length;
675
+ },
676
+ write: function(a) {
677
+ for (var u = 0; u < this.data.length; u++)
678
+ a.put(this.data.charCodeAt(u), 8);
679
+ }
680
+ }, _e = h, _e;
681
+ }
682
+ var Se, lt;
683
+ function Lr() {
684
+ if (lt) return Se;
685
+ lt = 1;
686
+ var n = Bt();
687
+ function h(a, u) {
688
+ this.totalCount = a, this.dataCount = u;
689
+ }
690
+ return h.RS_BLOCK_TABLE = [
691
+ // L
692
+ // M
693
+ // Q
694
+ // H
695
+ // 1
696
+ [1, 26, 19],
697
+ [1, 26, 16],
698
+ [1, 26, 13],
699
+ [1, 26, 9],
700
+ // 2
701
+ [1, 44, 34],
702
+ [1, 44, 28],
703
+ [1, 44, 22],
704
+ [1, 44, 16],
705
+ // 3
706
+ [1, 70, 55],
707
+ [1, 70, 44],
708
+ [2, 35, 17],
709
+ [2, 35, 13],
710
+ // 4
711
+ [1, 100, 80],
712
+ [2, 50, 32],
713
+ [2, 50, 24],
714
+ [4, 25, 9],
715
+ // 5
716
+ [1, 134, 108],
717
+ [2, 67, 43],
718
+ [2, 33, 15, 2, 34, 16],
719
+ [2, 33, 11, 2, 34, 12],
720
+ // 6
721
+ [2, 86, 68],
722
+ [4, 43, 27],
723
+ [4, 43, 19],
724
+ [4, 43, 15],
725
+ // 7
726
+ [2, 98, 78],
727
+ [4, 49, 31],
728
+ [2, 32, 14, 4, 33, 15],
729
+ [4, 39, 13, 1, 40, 14],
730
+ // 8
731
+ [2, 121, 97],
732
+ [2, 60, 38, 2, 61, 39],
733
+ [4, 40, 18, 2, 41, 19],
734
+ [4, 40, 14, 2, 41, 15],
735
+ // 9
736
+ [2, 146, 116],
737
+ [3, 58, 36, 2, 59, 37],
738
+ [4, 36, 16, 4, 37, 17],
739
+ [4, 36, 12, 4, 37, 13],
740
+ // 10
741
+ [2, 86, 68, 2, 87, 69],
742
+ [4, 69, 43, 1, 70, 44],
743
+ [6, 43, 19, 2, 44, 20],
744
+ [6, 43, 15, 2, 44, 16],
745
+ // 11
746
+ [4, 101, 81],
747
+ [1, 80, 50, 4, 81, 51],
748
+ [4, 50, 22, 4, 51, 23],
749
+ [3, 36, 12, 8, 37, 13],
750
+ // 12
751
+ [2, 116, 92, 2, 117, 93],
752
+ [6, 58, 36, 2, 59, 37],
753
+ [4, 46, 20, 6, 47, 21],
754
+ [7, 42, 14, 4, 43, 15],
755
+ // 13
756
+ [4, 133, 107],
757
+ [8, 59, 37, 1, 60, 38],
758
+ [8, 44, 20, 4, 45, 21],
759
+ [12, 33, 11, 4, 34, 12],
760
+ // 14
761
+ [3, 145, 115, 1, 146, 116],
762
+ [4, 64, 40, 5, 65, 41],
763
+ [11, 36, 16, 5, 37, 17],
764
+ [11, 36, 12, 5, 37, 13],
765
+ // 15
766
+ [5, 109, 87, 1, 110, 88],
767
+ [5, 65, 41, 5, 66, 42],
768
+ [5, 54, 24, 7, 55, 25],
769
+ [11, 36, 12],
770
+ // 16
771
+ [5, 122, 98, 1, 123, 99],
772
+ [7, 73, 45, 3, 74, 46],
773
+ [15, 43, 19, 2, 44, 20],
774
+ [3, 45, 15, 13, 46, 16],
775
+ // 17
776
+ [1, 135, 107, 5, 136, 108],
777
+ [10, 74, 46, 1, 75, 47],
778
+ [1, 50, 22, 15, 51, 23],
779
+ [2, 42, 14, 17, 43, 15],
780
+ // 18
781
+ [5, 150, 120, 1, 151, 121],
782
+ [9, 69, 43, 4, 70, 44],
783
+ [17, 50, 22, 1, 51, 23],
784
+ [2, 42, 14, 19, 43, 15],
785
+ // 19
786
+ [3, 141, 113, 4, 142, 114],
787
+ [3, 70, 44, 11, 71, 45],
788
+ [17, 47, 21, 4, 48, 22],
789
+ [9, 39, 13, 16, 40, 14],
790
+ // 20
791
+ [3, 135, 107, 5, 136, 108],
792
+ [3, 67, 41, 13, 68, 42],
793
+ [15, 54, 24, 5, 55, 25],
794
+ [15, 43, 15, 10, 44, 16],
795
+ // 21
796
+ [4, 144, 116, 4, 145, 117],
797
+ [17, 68, 42],
798
+ [17, 50, 22, 6, 51, 23],
799
+ [19, 46, 16, 6, 47, 17],
800
+ // 22
801
+ [2, 139, 111, 7, 140, 112],
802
+ [17, 74, 46],
803
+ [7, 54, 24, 16, 55, 25],
804
+ [34, 37, 13],
805
+ // 23
806
+ [4, 151, 121, 5, 152, 122],
807
+ [4, 75, 47, 14, 76, 48],
808
+ [11, 54, 24, 14, 55, 25],
809
+ [16, 45, 15, 14, 46, 16],
810
+ // 24
811
+ [6, 147, 117, 4, 148, 118],
812
+ [6, 73, 45, 14, 74, 46],
813
+ [11, 54, 24, 16, 55, 25],
814
+ [30, 46, 16, 2, 47, 17],
815
+ // 25
816
+ [8, 132, 106, 4, 133, 107],
817
+ [8, 75, 47, 13, 76, 48],
818
+ [7, 54, 24, 22, 55, 25],
819
+ [22, 45, 15, 13, 46, 16],
820
+ // 26
821
+ [10, 142, 114, 2, 143, 115],
822
+ [19, 74, 46, 4, 75, 47],
823
+ [28, 50, 22, 6, 51, 23],
824
+ [33, 46, 16, 4, 47, 17],
825
+ // 27
826
+ [8, 152, 122, 4, 153, 123],
827
+ [22, 73, 45, 3, 74, 46],
828
+ [8, 53, 23, 26, 54, 24],
829
+ [12, 45, 15, 28, 46, 16],
830
+ // 28
831
+ [3, 147, 117, 10, 148, 118],
832
+ [3, 73, 45, 23, 74, 46],
833
+ [4, 54, 24, 31, 55, 25],
834
+ [11, 45, 15, 31, 46, 16],
835
+ // 29
836
+ [7, 146, 116, 7, 147, 117],
837
+ [21, 73, 45, 7, 74, 46],
838
+ [1, 53, 23, 37, 54, 24],
839
+ [19, 45, 15, 26, 46, 16],
840
+ // 30
841
+ [5, 145, 115, 10, 146, 116],
842
+ [19, 75, 47, 10, 76, 48],
843
+ [15, 54, 24, 25, 55, 25],
844
+ [23, 45, 15, 25, 46, 16],
845
+ // 31
846
+ [13, 145, 115, 3, 146, 116],
847
+ [2, 74, 46, 29, 75, 47],
848
+ [42, 54, 24, 1, 55, 25],
849
+ [23, 45, 15, 28, 46, 16],
850
+ // 32
851
+ [17, 145, 115],
852
+ [10, 74, 46, 23, 75, 47],
853
+ [10, 54, 24, 35, 55, 25],
854
+ [19, 45, 15, 35, 46, 16],
855
+ // 33
856
+ [17, 145, 115, 1, 146, 116],
857
+ [14, 74, 46, 21, 75, 47],
858
+ [29, 54, 24, 19, 55, 25],
859
+ [11, 45, 15, 46, 46, 16],
860
+ // 34
861
+ [13, 145, 115, 6, 146, 116],
862
+ [14, 74, 46, 23, 75, 47],
863
+ [44, 54, 24, 7, 55, 25],
864
+ [59, 46, 16, 1, 47, 17],
865
+ // 35
866
+ [12, 151, 121, 7, 152, 122],
867
+ [12, 75, 47, 26, 76, 48],
868
+ [39, 54, 24, 14, 55, 25],
869
+ [22, 45, 15, 41, 46, 16],
870
+ // 36
871
+ [6, 151, 121, 14, 152, 122],
872
+ [6, 75, 47, 34, 76, 48],
873
+ [46, 54, 24, 10, 55, 25],
874
+ [2, 45, 15, 64, 46, 16],
875
+ // 37
876
+ [17, 152, 122, 4, 153, 123],
877
+ [29, 74, 46, 14, 75, 47],
878
+ [49, 54, 24, 10, 55, 25],
879
+ [24, 45, 15, 46, 46, 16],
880
+ // 38
881
+ [4, 152, 122, 18, 153, 123],
882
+ [13, 74, 46, 32, 75, 47],
883
+ [48, 54, 24, 14, 55, 25],
884
+ [42, 45, 15, 32, 46, 16],
885
+ // 39
886
+ [20, 147, 117, 4, 148, 118],
887
+ [40, 75, 47, 7, 76, 48],
888
+ [43, 54, 24, 22, 55, 25],
889
+ [10, 45, 15, 67, 46, 16],
890
+ // 40
891
+ [19, 148, 118, 6, 149, 119],
892
+ [18, 75, 47, 31, 76, 48],
893
+ [34, 54, 24, 34, 55, 25],
894
+ [20, 45, 15, 61, 46, 16]
895
+ ], h.getRSBlocks = function(a, u) {
896
+ var c = h.getRsBlockTable(a, u);
897
+ if (c == null)
898
+ throw new Error("bad rs block @ typeNumber:" + a + "/errorCorrectLevel:" + u);
899
+ for (var r = c.length / 3, l = new Array(), o = 0; o < r; o++)
900
+ for (var t = c[o * 3 + 0], e = c[o * 3 + 1], s = c[o * 3 + 2], i = 0; i < t; i++)
901
+ l.push(new h(e, s));
902
+ return l;
903
+ }, h.getRsBlockTable = function(a, u) {
904
+ switch (u) {
905
+ case n.L:
906
+ return h.RS_BLOCK_TABLE[(a - 1) * 4 + 0];
907
+ case n.M:
908
+ return h.RS_BLOCK_TABLE[(a - 1) * 4 + 1];
909
+ case n.Q:
910
+ return h.RS_BLOCK_TABLE[(a - 1) * 4 + 2];
911
+ case n.H:
912
+ return h.RS_BLOCK_TABLE[(a - 1) * 4 + 3];
913
+ default:
914
+ return;
915
+ }
916
+ }, Se = h, Se;
917
+ }
918
+ var Me, ut;
919
+ function Br() {
920
+ if (ut) return Me;
921
+ ut = 1;
922
+ function n() {
923
+ this.buffer = new Array(), this.length = 0;
924
+ }
925
+ return n.prototype = {
926
+ get: function(h) {
927
+ var a = Math.floor(h / 8);
928
+ return (this.buffer[a] >>> 7 - h % 8 & 1) == 1;
929
+ },
930
+ put: function(h, a) {
931
+ for (var u = 0; u < a; u++)
932
+ this.putBit((h >>> a - u - 1 & 1) == 1);
933
+ },
934
+ getLengthInBits: function() {
935
+ return this.length;
936
+ },
937
+ putBit: function(h) {
938
+ var a = Math.floor(this.length / 8);
939
+ this.buffer.length <= a && this.buffer.push(0), h && (this.buffer[a] |= 128 >>> this.length % 8), this.length++;
940
+ }
941
+ }, Me = n, Me;
942
+ }
943
+ var Ae, ct;
944
+ function kt() {
945
+ if (ct) return Ae;
946
+ ct = 1;
947
+ for (var n = {
948
+ glog: function(a) {
949
+ if (a < 1)
950
+ throw new Error("glog(" + a + ")");
951
+ return n.LOG_TABLE[a];
952
+ },
953
+ gexp: function(a) {
954
+ for (; a < 0; )
955
+ a += 255;
956
+ for (; a >= 256; )
957
+ a -= 255;
958
+ return n.EXP_TABLE[a];
959
+ },
960
+ EXP_TABLE: new Array(256),
961
+ LOG_TABLE: new Array(256)
962
+ }, h = 0; h < 8; h++)
963
+ n.EXP_TABLE[h] = 1 << h;
964
+ for (var h = 8; h < 256; h++)
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
+ for (var h = 0; h < 255; h++)
967
+ n.LOG_TABLE[n.EXP_TABLE[h]] = h;
968
+ return Ae = n, Ae;
969
+ }
970
+ var De, ft;
971
+ function Nt() {
972
+ if (ft) return De;
973
+ ft = 1;
974
+ var n = kt();
975
+ function h(a, u) {
976
+ if (a.length == null)
977
+ throw new Error(a.length + "/" + u);
978
+ for (var c = 0; c < a.length && a[c] == 0; )
979
+ c++;
980
+ this.num = new Array(a.length - c + u);
981
+ for (var r = 0; r < a.length - c; r++)
982
+ this.num[r] = a[r + c];
983
+ }
984
+ return h.prototype = {
985
+ get: function(a) {
986
+ return this.num[a];
987
+ },
988
+ getLength: function() {
989
+ return this.num.length;
990
+ },
991
+ multiply: function(a) {
992
+ for (var u = new Array(this.getLength() + a.getLength() - 1), c = 0; c < this.getLength(); c++)
993
+ for (var r = 0; r < a.getLength(); r++)
994
+ u[c + r] ^= n.gexp(n.glog(this.get(c)) + n.glog(a.get(r)));
995
+ return new h(u, 0);
996
+ },
997
+ mod: function(a) {
998
+ if (this.getLength() - a.getLength() < 0)
999
+ return this;
1000
+ for (var u = n.glog(this.get(0)) - n.glog(a.get(0)), c = new Array(this.getLength()), r = 0; r < this.getLength(); r++)
1001
+ c[r] = this.get(r);
1002
+ for (var r = 0; r < a.getLength(); r++)
1003
+ c[r] ^= n.gexp(n.glog(a.get(r)) + u);
1004
+ return new h(c, 0).mod(a);
1005
+ }
1006
+ }, De = h, De;
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 = {
1013
+ PATTERN000: 0,
1014
+ PATTERN001: 1,
1015
+ PATTERN010: 2,
1016
+ PATTERN011: 3,
1017
+ PATTERN100: 4,
1018
+ PATTERN101: 5,
1019
+ PATTERN110: 6,
1020
+ PATTERN111: 7
1021
+ }, c = {
1022
+ PATTERN_POSITION_TABLE: [
1023
+ [],
1024
+ [6, 18],
1025
+ [6, 22],
1026
+ [6, 26],
1027
+ [6, 30],
1028
+ [6, 34],
1029
+ [6, 22, 38],
1030
+ [6, 24, 42],
1031
+ [6, 26, 46],
1032
+ [6, 28, 50],
1033
+ [6, 30, 54],
1034
+ [6, 32, 58],
1035
+ [6, 34, 62],
1036
+ [6, 26, 46, 66],
1037
+ [6, 26, 48, 70],
1038
+ [6, 26, 50, 74],
1039
+ [6, 30, 54, 78],
1040
+ [6, 30, 56, 82],
1041
+ [6, 30, 58, 86],
1042
+ [6, 34, 62, 90],
1043
+ [6, 28, 50, 72, 94],
1044
+ [6, 26, 50, 74, 98],
1045
+ [6, 30, 54, 78, 102],
1046
+ [6, 28, 54, 80, 106],
1047
+ [6, 32, 58, 84, 110],
1048
+ [6, 30, 58, 86, 114],
1049
+ [6, 34, 62, 90, 118],
1050
+ [6, 26, 50, 74, 98, 122],
1051
+ [6, 30, 54, 78, 102, 126],
1052
+ [6, 26, 52, 78, 104, 130],
1053
+ [6, 30, 56, 82, 108, 134],
1054
+ [6, 34, 60, 86, 112, 138],
1055
+ [6, 30, 58, 86, 114, 142],
1056
+ [6, 34, 62, 90, 118, 146],
1057
+ [6, 30, 54, 78, 102, 126, 150],
1058
+ [6, 24, 50, 76, 102, 128, 154],
1059
+ [6, 28, 54, 80, 106, 132, 158],
1060
+ [6, 32, 58, 84, 110, 136, 162],
1061
+ [6, 26, 54, 82, 110, 138, 166],
1062
+ [6, 30, 58, 86, 114, 142, 170]
1063
+ ],
1064
+ G15: 1335,
1065
+ G18: 7973,
1066
+ G15_MASK: 21522,
1067
+ getBCHTypeInfo: function(r) {
1068
+ for (var l = r << 10; c.getBCHDigit(l) - c.getBCHDigit(c.G15) >= 0; )
1069
+ l ^= c.G15 << c.getBCHDigit(l) - c.getBCHDigit(c.G15);
1070
+ return (r << 10 | l) ^ c.G15_MASK;
1071
+ },
1072
+ getBCHTypeNumber: function(r) {
1073
+ for (var l = r << 12; c.getBCHDigit(l) - c.getBCHDigit(c.G18) >= 0; )
1074
+ l ^= c.G18 << c.getBCHDigit(l) - c.getBCHDigit(c.G18);
1075
+ return r << 12 | l;
1076
+ },
1077
+ getBCHDigit: function(r) {
1078
+ for (var l = 0; r != 0; )
1079
+ l++, r >>>= 1;
1080
+ return l;
1081
+ },
1082
+ getPatternPosition: function(r) {
1083
+ return c.PATTERN_POSITION_TABLE[r - 1];
1084
+ },
1085
+ getMask: function(r, l, o) {
1086
+ switch (r) {
1087
+ case u.PATTERN000:
1088
+ return (l + o) % 2 == 0;
1089
+ case u.PATTERN001:
1090
+ return l % 2 == 0;
1091
+ case u.PATTERN010:
1092
+ return o % 3 == 0;
1093
+ case u.PATTERN011:
1094
+ return (l + o) % 3 == 0;
1095
+ case u.PATTERN100:
1096
+ return (Math.floor(l / 2) + Math.floor(o / 3)) % 2 == 0;
1097
+ case u.PATTERN101:
1098
+ return l * o % 2 + l * o % 3 == 0;
1099
+ case u.PATTERN110:
1100
+ return (l * o % 2 + l * o % 3) % 2 == 0;
1101
+ case u.PATTERN111:
1102
+ return (l * o % 3 + (l + o) % 2) % 2 == 0;
1103
+ default:
1104
+ throw new Error("bad maskPattern:" + r);
1105
+ }
1106
+ },
1107
+ getErrorCorrectPolynomial: function(r) {
1108
+ for (var l = new h([1], 0), o = 0; o < r; o++)
1109
+ l = l.multiply(new h([1, a.gexp(o)], 0));
1110
+ return l;
1111
+ },
1112
+ getLengthInBits: function(r, l) {
1113
+ if (1 <= l && l < 10)
1114
+ switch (r) {
1115
+ case n.MODE_NUMBER:
1116
+ return 10;
1117
+ case n.MODE_ALPHA_NUM:
1118
+ return 9;
1119
+ case n.MODE_8BIT_BYTE:
1120
+ return 8;
1121
+ case n.MODE_KANJI:
1122
+ return 8;
1123
+ default:
1124
+ throw new Error("mode:" + r);
1125
+ }
1126
+ else if (l < 27)
1127
+ switch (r) {
1128
+ case n.MODE_NUMBER:
1129
+ return 12;
1130
+ case n.MODE_ALPHA_NUM:
1131
+ return 11;
1132
+ case n.MODE_8BIT_BYTE:
1133
+ return 16;
1134
+ case n.MODE_KANJI:
1135
+ return 10;
1136
+ default:
1137
+ throw new Error("mode:" + r);
1138
+ }
1139
+ else if (l < 41)
1140
+ switch (r) {
1141
+ case n.MODE_NUMBER:
1142
+ return 14;
1143
+ case n.MODE_ALPHA_NUM:
1144
+ return 13;
1145
+ case n.MODE_8BIT_BYTE:
1146
+ return 16;
1147
+ case n.MODE_KANJI:
1148
+ return 12;
1149
+ default:
1150
+ throw new Error("mode:" + r);
1151
+ }
1152
+ else
1153
+ throw new Error("type:" + l);
1154
+ },
1155
+ getLostPoint: function(r) {
1156
+ for (var l = r.getModuleCount(), o = 0, t = 0; t < l; t++)
1157
+ for (var e = 0; e < l; e++) {
1158
+ for (var s = 0, i = r.isDark(t, e), f = -1; f <= 1; f++)
1159
+ if (!(t + f < 0 || l <= t + f))
1160
+ for (var m = -1; m <= 1; m++)
1161
+ e + m < 0 || l <= e + m || f == 0 && m == 0 || i == r.isDark(t + f, e + m) && s++;
1162
+ s > 5 && (o += 3 + s - 5);
1163
+ }
1164
+ for (var t = 0; t < l - 1; t++)
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);
1168
+ }
1169
+ for (var t = 0; t < l; t++)
1170
+ for (var e = 0; e < l - 6; e++)
1171
+ r.isDark(t, e) && !r.isDark(t, e + 1) && r.isDark(t, e + 2) && r.isDark(t, e + 3) && r.isDark(t, e + 4) && !r.isDark(t, e + 5) && r.isDark(t, e + 6) && (o += 40);
1172
+ for (var e = 0; e < l; e++)
1173
+ for (var t = 0; t < l - 6; t++)
1174
+ r.isDark(t, e) && !r.isDark(t + 1, e) && r.isDark(t + 2, e) && r.isDark(t + 3, e) && r.isDark(t + 4, e) && !r.isDark(t + 5, e) && r.isDark(t + 6, e) && (o += 40);
1175
+ for (var g = 0, e = 0; e < l; e++)
1176
+ for (var t = 0; t < l; t++)
1177
+ r.isDark(t, e) && g++;
1178
+ var R = Math.abs(100 * g / l / l - 50) / 5;
1179
+ return o += R * 10, o;
1180
+ }
1181
+ };
1182
+ return Oe = c, Oe;
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();
1189
+ function r(o, t) {
1190
+ this.typeNumber = o, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
1191
+ }
1192
+ var l = r.prototype;
1193
+ return l.addData = function(o) {
1194
+ var t = new n(o);
1195
+ this.dataList.push(t), this.dataCache = null;
1196
+ }, l.isDark = function(o, t) {
1197
+ if (o < 0 || this.moduleCount <= o || t < 0 || this.moduleCount <= t)
1198
+ throw new Error(o + "," + t);
1199
+ return this.modules[o][t];
1200
+ }, l.getModuleCount = function() {
1201
+ return this.moduleCount;
1202
+ }, l.make = function() {
1203
+ if (this.typeNumber < 1) {
1204
+ var o = 1;
1205
+ for (o = 1; o < 40; o++) {
1206
+ for (var t = h.getRSBlocks(o, this.errorCorrectLevel), e = new a(), s = 0, i = 0; i < t.length; i++)
1207
+ s += t[i].dataCount;
1208
+ for (var i = 0; i < this.dataList.length; i++) {
1209
+ var f = this.dataList[i];
1210
+ e.put(f.mode, 4), e.put(f.getLength(), u.getLengthInBits(f.mode, o)), f.write(e);
1211
+ }
1212
+ if (e.getLengthInBits() <= s * 8)
1213
+ break;
1214
+ }
1215
+ this.typeNumber = o;
1216
+ }
1217
+ this.makeImpl(!1, this.getBestMaskPattern());
1218
+ }, l.makeImpl = function(o, t) {
1219
+ this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
1220
+ for (var e = 0; e < this.moduleCount; e++) {
1221
+ this.modules[e] = new Array(this.moduleCount);
1222
+ for (var s = 0; s < this.moduleCount; s++)
1223
+ this.modules[e][s] = null;
1224
+ }
1225
+ this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(o, t), this.typeNumber >= 7 && this.setupTypeNumber(o), this.dataCache == null && (this.dataCache = r.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
1226
+ }, l.setupPositionProbePattern = function(o, t) {
1227
+ for (var e = -1; e <= 7; e++)
1228
+ if (!(o + e <= -1 || this.moduleCount <= o + e))
1229
+ for (var s = -1; s <= 7; s++)
1230
+ t + s <= -1 || this.moduleCount <= t + s || (0 <= e && e <= 6 && (s == 0 || s == 6) || 0 <= s && s <= 6 && (e == 0 || e == 6) || 2 <= e && e <= 4 && 2 <= s && s <= 4 ? this.modules[o + e][t + s] = !0 : this.modules[o + e][t + s] = !1);
1231
+ }, l.getBestMaskPattern = function() {
1232
+ for (var o = 0, t = 0, e = 0; e < 8; e++) {
1233
+ this.makeImpl(!0, e);
1234
+ var s = u.getLostPoint(this);
1235
+ (e == 0 || o > s) && (o = s, t = e);
1236
+ }
1237
+ return t;
1238
+ }, l.createMovieClip = function(o, t, e) {
1239
+ var s = o.createEmptyMovieClip(t, e), i = 1;
1240
+ this.make();
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];
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
+ }
1246
+ return s;
1247
+ }, l.setupTimingPattern = function() {
1248
+ for (var o = 8; o < this.moduleCount - 8; o++)
1249
+ this.modules[o][6] == null && (this.modules[o][6] = o % 2 == 0);
1250
+ for (var t = 8; t < this.moduleCount - 8; t++)
1251
+ this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
1252
+ }, l.setupPositionAdjustPattern = function() {
1253
+ for (var o = u.getPatternPosition(this.typeNumber), t = 0; t < o.length; t++)
1254
+ for (var e = 0; e < o.length; e++) {
1255
+ var s = o[t], i = o[e];
1256
+ if (this.modules[s][i] == null)
1257
+ for (var f = -2; f <= 2; f++)
1258
+ for (var m = -2; m <= 2; m++)
1259
+ f == -2 || f == 2 || m == -2 || m == 2 || f == 0 && m == 0 ? this.modules[s + f][i + m] = !0 : this.modules[s + f][i + m] = !1;
1260
+ }
1261
+ }, l.setupTypeNumber = function(o) {
1262
+ for (var t = u.getBCHTypeNumber(this.typeNumber), e = 0; e < 18; e++) {
1263
+ var s = !o && (t >> e & 1) == 1;
1264
+ this.modules[Math.floor(e / 3)][e % 3 + this.moduleCount - 8 - 3] = s;
1265
+ }
1266
+ for (var e = 0; e < 18; e++) {
1267
+ var s = !o && (t >> e & 1) == 1;
1268
+ this.modules[e % 3 + this.moduleCount - 8 - 3][Math.floor(e / 3)] = s;
1269
+ }
1270
+ }, l.setupTypeInfo = function(o, t) {
1271
+ for (var e = this.errorCorrectLevel << 3 | t, s = u.getBCHTypeInfo(e), i = 0; i < 15; i++) {
1272
+ var f = !o && (s >> i & 1) == 1;
1273
+ i < 6 ? this.modules[i][8] = f : i < 8 ? this.modules[i + 1][8] = f : this.modules[this.moduleCount - 15 + i][8] = f;
1274
+ }
1275
+ for (var i = 0; i < 15; i++) {
1276
+ var f = !o && (s >> i & 1) == 1;
1277
+ i < 8 ? this.modules[8][this.moduleCount - i - 1] = f : i < 9 ? this.modules[8][15 - i - 1 + 1] = f : this.modules[8][15 - i - 1] = f;
1278
+ }
1279
+ this.modules[this.moduleCount - 8][8] = !o;
1280
+ }, l.mapData = function(o, t) {
1281
+ for (var e = -1, s = this.moduleCount - 1, i = 7, f = 0, m = this.moduleCount - 1; m > 0; m -= 2)
1282
+ for (m == 6 && m--; ; ) {
1283
+ for (var p = 0; p < 2; p++)
1284
+ if (this.modules[s][m - p] == null) {
1285
+ var g = !1;
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);
1289
+ }
1290
+ if (s += e, s < 0 || this.moduleCount <= s) {
1291
+ s -= e, e = -e;
1292
+ break;
1293
+ }
1294
+ }
1295
+ }, r.PAD0 = 236, r.PAD1 = 17, r.createData = function(o, t, e) {
1296
+ for (var s = h.getRSBlocks(o, t), i = new a(), f = 0; f < e.length; f++) {
1297
+ var m = e[f];
1298
+ i.put(m.mode, 4), i.put(m.getLength(), u.getLengthInBits(m.mode, o)), m.write(i);
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; )
1305
+ i.putBit(!1);
1306
+ for (; !(i.getLengthInBits() >= p * 8 || (i.put(r.PAD0, 8), i.getLengthInBits() >= p * 8)); )
1307
+ i.put(r.PAD1, 8);
1308
+ return r.createBytes(i, s);
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];
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;
1321
+ }
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]);
1331
+ return Q;
1332
+ }, Le = r, Le;
1333
+ }
1334
+ var ge = {}, pt;
1335
+ function Nr() {
1336
+ if (pt) return ge;
1337
+ pt = 1, Object.defineProperty(ge, "__esModule", {
1338
+ value: !0
1339
+ });
1340
+ var n = Object.assign || function(e) {
1341
+ for (var s = 1; s < arguments.length; s++) {
1342
+ var i = arguments[s];
1343
+ for (var f in i)
1344
+ Object.prototype.hasOwnProperty.call(i, f) && (e[f] = i[f]);
1345
+ }
1346
+ return e;
1347
+ }, h = /* @__PURE__ */ Lt(), a = r(h), u = ke, c = r(u);
1348
+ function r(e) {
1349
+ return e && e.__esModule ? e : { default: e };
1350
+ }
1351
+ function l(e, s) {
1352
+ var i = {};
1353
+ for (var f in e)
1354
+ s.indexOf(f) >= 0 || Object.prototype.hasOwnProperty.call(e, f) && (i[f] = e[f]);
1355
+ return i;
1356
+ }
1357
+ var o = {
1358
+ bgColor: a.default.oneOfType([a.default.object, a.default.string]).isRequired,
1359
+ bgD: a.default.string.isRequired,
1360
+ fgColor: a.default.oneOfType([a.default.object, a.default.string]).isRequired,
1361
+ fgD: a.default.string.isRequired,
1362
+ size: a.default.number.isRequired,
1363
+ title: a.default.string,
1364
+ viewBoxSize: a.default.number.isRequired,
1365
+ xmlns: a.default.string
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"]);
1368
+ return c.default.createElement(
1369
+ "svg",
1370
+ n({}, $, { height: g, ref: s, viewBox: "0 0 " + b + " " + b, width: g, xmlns: D }),
1371
+ R ? c.default.createElement(
1372
+ "title",
1373
+ null,
1374
+ R
1375
+ ) : null,
1376
+ c.default.createElement("path", { d: f, fill: i }),
1377
+ c.default.createElement("path", { d: m, fill: p })
1378
+ );
1379
+ });
1380
+ return t.displayName = "QRCodeSvg", t.propTypes = o, ge.default = t, ge;
1381
+ }
1382
+ var vt;
1383
+ function $r() {
1384
+ if (vt) return le;
1385
+ vt = 1, Object.defineProperty(le, "__esModule", {
1386
+ value: !0
1387
+ }), le.QRCode = void 0;
1388
+ var n = Object.assign || function(g) {
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]);
1393
+ }
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);
1396
+ function i(g) {
1397
+ return g && g.__esModule ? g : { default: g };
1398
+ }
1399
+ function f(g, R) {
1400
+ var b = {};
1401
+ for (var B in g)
1402
+ R.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(g, B) && (b[B] = g[B]);
1403
+ return b;
1404
+ }
1405
+ var m = {
1406
+ bgColor: a.default.oneOfType([a.default.object, a.default.string]),
1407
+ fgColor: a.default.oneOfType([a.default.object, a.default.string]),
1408
+ level: a.default.string,
1409
+ size: a.default.number,
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]);
1413
+ G.addData(re), G.make();
1414
+ var X = G.modules;
1415
+ return t.default.createElement(s.default, n({}, ne, {
1416
+ bgColor: B,
1417
+ bgD: X.map(function(V, z) {
1418
+ return V.map(function(H, q) {
1419
+ return H ? "" : "M " + q + " " + z + " l 1 0 0 1 -1 0 Z";
1420
+ }).join(" ");
1421
+ }).join(" "),
1422
+ fgColor: $,
1423
+ fgD: X.map(function(V, z) {
1424
+ return V.map(function(H, q) {
1425
+ return H ? "M " + q + " " + z + " l 1 0 0 1 -1 0 Z" : "";
1426
+ }).join(" ");
1427
+ }).join(" "),
1428
+ ref: R,
1429
+ size: K,
1430
+ viewBoxSize: X.length
1431
+ }));
1432
+ });
1433
+ return le.QRCode = p, p.displayName = "QRCode", p.propTypes = m, le.default = p, le;
1434
+ }
1435
+ var jr = $r();
1436
+ const Ur = /* @__PURE__ */ Zt(jr), qr = "chatId", Fr = (n, h, a) => {
1437
+ const u = String(n || "").split("@")[0];
1438
+ if (!u) return "";
1439
+ if (h) return `${h}${u}`;
1440
+ const c = typeof window < "u" ? window.location.href : "";
1441
+ if (!c) return "";
1442
+ try {
1443
+ const r = new URL(c);
1444
+ return r.hash = "", r.searchParams.set(qr, u), r.toString();
1445
+ } catch {
1446
+ return "";
1447
+ }
1448
+ }, zr = W.div`
1449
+ position: absolute;
1450
+ inset: 0;
1451
+ z-index: 2;
1452
+ display: flex;
1453
+ `, Qr = W.div`
1454
+ display: flex;
1455
+ flex-direction: column;
1456
+ align-items: center;
1457
+ width: 100%;
1458
+ margin: auto 0;
1459
+ gap: var(--ethora-space-5, 20px);
1460
+ `, Hr = W(Tt)`
1461
+ width: 100%;
1462
+ `, Yr = W.div`
1463
+ display: flex;
1464
+ justify-content: center;
1465
+ padding: var(--ethora-space-6, 24px) var(--ethora-space-5, 20px);
1466
+ `, Wr = W.div`
1467
+ width: 176px;
1468
+ `, Gr = W.div`
1469
+ box-sizing: border-box;
1470
+ display: flex;
1471
+ flex-direction: column;
1472
+ width: 100%;
1473
+ gap: var(--ethora-space-3, 12px);
1474
+ padding: var(--ethora-space-4, 16px) var(--ethora-space-5, 20px);
1475
+ border-top: 1px solid var(--ethora-color-border, #e6e8ec);
1476
+ `, Kr = ({
1477
+ isVisible: n,
1478
+ chatJid: h,
1479
+ setVisible: a
1480
+ }) => {
1481
+ const { config: u } = Et(), c = de();
1482
+ if (!n) return null;
1483
+ const r = Fr(h, u?.qrUrl);
1484
+ return /* @__PURE__ */ E(zr, { children: /* @__PURE__ */ E(
1485
+ bt,
1486
+ {
1487
+ title: c("modal.qr.title"),
1488
+ onClose: () => a(!1),
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,
1494
+ {
1495
+ size: 176,
1496
+ style: { width: "100%", height: "auto" },
1497
+ value: r,
1498
+ viewBox: "0 0 176 176"
1499
+ }
1500
+ ) }) }),
1501
+ /* @__PURE__ */ j(Gr, { children: [
1502
+ /* @__PURE__ */ E(
1503
+ er,
1504
+ {
1505
+ $colorBg: u?.colors?.colorInput,
1506
+ value: r,
1507
+ readOnly: !0,
1508
+ "aria-label": c("modal.qr.title"),
1509
+ style: { width: "100%" }
1510
+ }
1511
+ ),
1512
+ /* @__PURE__ */ E(
1513
+ te,
1514
+ {
1515
+ text: c("action.copyLink"),
1516
+ onClick: () => Wt(r),
1517
+ variant: "filled",
1518
+ style: { width: "100%" }
1519
+ }
1520
+ )
1521
+ ] })
1522
+ ] }),
1523
+ /* @__PURE__ */ E(qt, { style: { textAlign: "center" }, children: c("modal.qr.hint") })
1524
+ ] })
1525
+ }
1526
+ ) });
1527
+ }, Xr = ({
1528
+ isModalOpen: n,
1529
+ setIsModalOpen: h
1530
+ }) => {
1531
+ const a = Ne(), u = fe((e) => $e(e)), { client: c } = Ct(), r = de(), l = () => h(!1), o = yt(null);
1532
+ wt({
1533
+ enabled: n,
1534
+ onClose: l,
1535
+ containerRef: o
1536
+ });
1537
+ const t = async () => {
1538
+ try {
1539
+ await rr(u.jid.split("@")[0]), c?.leaveTheRoomStanza?.(u.jid), a(nr({ jid: u.jid })), a(or({ roomJID: null })), l();
1540
+ } catch (e) {
1541
+ console.error("Failed to delete chat:", e);
1542
+ }
1543
+ };
1544
+ return n && /* @__PURE__ */ E(Rt, { children: /* @__PURE__ */ j(Pt, { ref: o, children: [
1545
+ /* @__PURE__ */ E(
1546
+ xt,
1547
+ {
1548
+ onClick: l,
1549
+ style: { fontSize: 24 },
1550
+ "aria-label": r("action.close"),
1551
+ children: "×"
1552
+ }
1553
+ ),
1554
+ /* @__PURE__ */ E(tr, { children: r("modal.deleteChat.title") }),
1555
+ /* @__PURE__ */ j(Be, { children: [
1556
+ /* @__PURE__ */ E(
1557
+ te,
1558
+ {
1559
+ onClick: l,
1560
+ text: r("action.cancel"),
1561
+ style: { width: "100%" },
1562
+ unstyled: !0,
1563
+ variant: "outlined"
1564
+ }
1565
+ ),
1566
+ /* @__PURE__ */ E(
1567
+ te,
1568
+ {
1569
+ onClick: t,
1570
+ text: r("action.delete"),
1571
+ style: { width: "100%" },
1572
+ unstyled: !0,
1573
+ variant: "filled",
1574
+ tone: "danger"
1575
+ }
1576
+ )
1577
+ ] })
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 = () => {
1581
+ l(!1), t([]);
1582
+ }, f = yt(null);
1583
+ wt({
1584
+ enabled: r,
1585
+ onClose: i,
1586
+ containerRef: f
1587
+ });
1588
+ const m = async () => {
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);
1593
+ try {
1594
+ const b = await sr({
1595
+ chatName: e.jid.split("@")[0],
1596
+ members: R
1597
+ });
1598
+ h(
1599
+ ye({
1600
+ jid: e.jid,
1601
+ updates: {
1602
+ members: [...b, ...p],
1603
+ usersCnt: p.length + b.length
1604
+ }
1605
+ })
1606
+ ), n({
1607
+ id: Date.now().toString(),
1608
+ title: a("toast.success"),
1609
+ // This is the "add users to an existing room" flow, not room
1610
+ // creation - the old copy here literally said "Room created
1611
+ // succusfully!" (typo and all), copy-pasted from NewChatModal.
1612
+ message: a("toast.usersAddedSuccess"),
1613
+ type: "success",
1614
+ duration: 3e3
1615
+ });
1616
+ } catch (b) {
1617
+ console.error("Error adding users:", b), c(!1);
1618
+ }
1619
+ i(), c(!1);
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,
1626
+ {
1627
+ onClick: i,
1628
+ style: { fontSize: 24 },
1629
+ "aria-label": a("action.close"),
1630
+ children: "×"
1631
+ }
1632
+ ),
1633
+ /* @__PURE__ */ E(
1634
+ Be,
1635
+ {
1636
+ style: {
1637
+ flexDirection: "column",
1638
+ position: "relative",
1639
+ boxSizing: "border-box",
1640
+ width: "100%",
1641
+ minHeight: "400px"
1642
+ },
1643
+ children: /* @__PURE__ */ E(
1644
+ ir,
1645
+ {
1646
+ selectedUsers: o,
1647
+ setSelectedUsers: t,
1648
+ style: {
1649
+ minWidth: "100%",
1650
+ width: "100%",
1651
+ maxHeight: "340px"
1652
+ },
1653
+ headerElement: !1
1654
+ }
1655
+ )
1656
+ }
1657
+ ),
1658
+ /* @__PURE__ */ j(Be, { children: [
1659
+ /* @__PURE__ */ E(
1660
+ te,
1661
+ {
1662
+ onClick: i,
1663
+ text: a("action.cancel"),
1664
+ style: { width: "100%" },
1665
+ unstyled: !0,
1666
+ variant: "outlined"
1667
+ }
1668
+ ),
1669
+ u ? /* @__PURE__ */ E(Ie, {}) : /* @__PURE__ */ E(
1670
+ te,
1671
+ {
1672
+ onClick: m,
1673
+ text: a("action.add"),
1674
+ style: { width: "100%" },
1675
+ unstyled: !0,
1676
+ variant: "filled"
1677
+ }
1678
+ )
1679
+ ] })
1680
+ ] }) })
1681
+ ] });
1682
+ }, Vr = W.div`
1683
+ display: flex;
1684
+ align-items: center;
1685
+ gap: var(--ethora-space-3, 12px);
1686
+ min-height: 60px;
1687
+ border-radius: var(--ethora-radius-md, 12px);
1688
+ padding: var(--ethora-space-2, 8px);
1689
+ transition: background-color var(--ethora-motion-fast, 150ms)
1690
+ var(--ethora-motion-ease, ease);
1691
+
1692
+ &:hover {
1693
+ background-color: var(--ethora-color-bg-hover, #f0f2f5);
1694
+ }
1695
+
1696
+ @media (prefers-reduced-motion: reduce) {
1697
+ transition: none;
1698
+ }
1699
+ `, Zr = W.div`
1700
+ display: flex;
1701
+ align-items: center;
1702
+ gap: var(--ethora-space-3, 12px);
1703
+ min-width: 0;
1704
+ flex: 1 1 auto;
1705
+ cursor: ${({ $clickable: n }) => n ? "pointer" : "default"};
1706
+
1707
+ &:focus-visible {
1708
+ outline: 2px solid var(--ethora-color-primary, #0052cd);
1709
+ outline-offset: 2px;
1710
+ border-radius: var(--ethora-radius-sm, 8px);
1711
+ }
1712
+ `, en = W.div`
1713
+ display: flex;
1714
+ flex-direction: column;
1715
+ gap: 2px;
1716
+ min-width: 0;
1717
+ `, tn = W.span`
1718
+ font-size: var(--ethora-font-size-sm, 14px);
1719
+ font-weight: var(--ethora-font-weight-semibold, 600);
1720
+ color: var(--ethora-color-text, #141414);
1721
+ overflow: hidden;
1722
+ text-overflow: ellipsis;
1723
+ white-space: nowrap;
1724
+ `, rn = W.span`
1725
+ font-size: var(--ethora-font-size-xs, 12px);
1726
+ color: ${({ $online: n }) => n ? "var(--ethora-color-online, #12b76a)" : "var(--ethora-color-text-muted, #8c8c8c)"};
1727
+ overflow: hidden;
1728
+ text-overflow: ellipsis;
1729
+ white-space: nowrap;
1730
+ `, nn = W.span`
1731
+ flex: 0 0 auto;
1732
+ background-color: ${({ $banned: n }) => n ? "rgba(217, 45, 32, 0.1)" : "var(--ethora-color-primary-soft, #e7edf9)"};
1733
+ color: ${({ $banned: n }) => n ? "var(--ethora-color-danger, #d92d20)" : "var(--ethora-color-primary, #0052cd)"};
1734
+ padding: var(--ethora-space-1, 4px) var(--ethora-space-2, 8px);
1735
+ border-radius: var(--ethora-radius-full, 999px);
1736
+ font-size: var(--ethora-font-size-xs, 12px);
1737
+ font-weight: var(--ethora-font-weight-medium, 500);
1738
+ text-transform: capitalize;
1739
+ `, on = ({
1740
+ member: n,
1741
+ disableClick: h,
1742
+ online: a,
1743
+ showMenu: u,
1744
+ menuOptions: c,
1745
+ moreOptionsLabel: r,
1746
+ onAvatarClick: l
1747
+ }) => {
1748
+ const o = de(), t = St(), e = String(n?.xmppUsername || ""), s = e.split("@")[0], i = fe(
1749
+ (D) => D.rooms.usersSet?.[e] ?? D.rooms.usersSet?.[s]
1750
+ ), f = n.firstName || i?.firstName || "", m = n.lastName || i?.lastName || "", p = n.profileImage || i?.profileImage || i?.photoURL || "", g = {
1751
+ ...n,
1752
+ firstName: f,
1753
+ lastName: m,
1754
+ profileImage: p
1755
+ }, R = !!n.role && n.role !== "none", b = n.ban_status === "banned";
1756
+ let B = "";
1757
+ if (a)
1758
+ B = o("presence.online");
1759
+ else if (n.last_active)
1760
+ try {
1761
+ B = new Intl.DateTimeFormat(t, {
1762
+ dateStyle: "medium"
1763
+ }).format(new Date(n.last_active * 1e3));
1764
+ } catch {
1765
+ B = "";
1766
+ }
1767
+ else R && (B = n.role);
1768
+ return /* @__PURE__ */ j(Vr, { children: [
1769
+ /* @__PURE__ */ j(
1770
+ Zr,
1771
+ {
1772
+ $clickable: !h,
1773
+ role: h ? void 0 : "button",
1774
+ tabIndex: h ? void 0 : 0,
1775
+ onClick: h ? void 0 : () => l(g),
1776
+ onKeyDown: h ? void 0 : (D) => {
1777
+ (D.key === "Enter" || D.key === " ") && (D.preventDefault(), l(g));
1778
+ },
1779
+ children: [
1780
+ /* @__PURE__ */ E(
1781
+ Mt,
1782
+ {
1783
+ name: `${f} ${m}`,
1784
+ icon: p,
1785
+ size: 40,
1786
+ online: a
1787
+ }
1788
+ ),
1789
+ /* @__PURE__ */ j(en, { children: [
1790
+ /* @__PURE__ */ j(tn, { children: [
1791
+ f,
1792
+ " ",
1793
+ m
1794
+ ] }),
1795
+ B && /* @__PURE__ */ E(rn, { $online: a, children: B })
1796
+ ] })
1797
+ ]
1798
+ }
1799
+ ),
1800
+ R && /* @__PURE__ */ E(nn, { $banned: b, children: n.role }),
1801
+ u && /* @__PURE__ */ E(
1802
+ At,
1803
+ {
1804
+ options: c,
1805
+ openButton: /* @__PURE__ */ E(
1806
+ te,
1807
+ {
1808
+ onClick: (D) => {
1809
+ D.preventDefault();
1810
+ },
1811
+ "aria-label": r,
1812
+ children: r
1813
+ }
1814
+ ),
1815
+ onClose: () => lr.log("Dropdown closed")
1816
+ }
1817
+ )
1818
+ ] });
1819
+ }, an = ke.memo(on), mt = 150, sn = 150, hn = ({
1820
+ handleCloseModal: n
1821
+ }) => {
1822
+ const [h, a] = ee(!1), [u, c] = ee(!1), [r, l] = ee(!1), { showToast: o } = _t(), t = de(), e = St(), s = se(
1823
+ () => [
1824
+ {
1825
+ label: t("action.deleteChat"),
1826
+ icon: /* @__PURE__ */ E(ur, {}),
1827
+ onClick: () => {
1828
+ l(!0);
1829
+ },
1830
+ styles: { color: "var(--ethora-color-danger, #D92D20)" }
1831
+ }
1832
+ ],
1833
+ [t]
1834
+ ), [i, f] = ee(!1), [m, p] = ee(
1835
+ mt
1836
+ ), [g, R] = ee(""), b = Ne(), B = cr(), { client: D } = Ct(), { user: $, config: v } = Et(), C = fe((w) => $e(w)), {
1837
+ muted: Q,
1838
+ isSupported: K,
1839
+ setMuted: re
1840
+ } = fr(C?.jid), ne = K && !v?.disableRoomMute, G = dr(C?.jid), X = fe(
1841
+ (w) => w.chatSettingStore.user?.fileToken || ""
1842
+ ), V = se(() => new Set(G), [G]), z = se(() => Array.isArray(C?.members) ? C.members : [], [C?.members]), H = se(() => {
1843
+ const w = g.trim().toLowerCase();
1844
+ if (!w) return z;
1845
+ const U = B.getState().rooms.usersSet;
1846
+ return z.filter((J) => {
1847
+ const ie = String(J?.xmppUsername || ""), $t = ie.split("@")[0], qe = U?.[ie] || U?.[$t], jt = J.firstName || qe?.firstName || "", Ut = J.lastName || qe?.lastName || "";
1848
+ return `${jt} ${Ut}`.toLowerCase().includes(w);
1849
+ });
1850
+ }, [z, g, B]), q = se(
1851
+ () => H.slice(0, m),
1852
+ [H, m]
1853
+ ), Z = m < H.length, oe = (w) => {
1854
+ R(w.target.value), p(mt);
1855
+ }, ue = C?.jid ? C.jid.split("@")[0] : void 0, {
1856
+ items: d,
1857
+ loading: T,
1858
+ error: A,
1859
+ remove: _
1860
+ } = hr({ roomName: ue }), P = i ? d : d.slice(0, 6), O = (w) => {
1861
+ const U = Ge(w.location);
1862
+ U && typeof window < "u" && window.open(U, "_blank", "noopener,noreferrer");
1863
+ }, x = (w) => {
1864
+ const U = Ge(w.location);
1865
+ if (!U || typeof document > "u") return;
1866
+ const J = document.createElement("a");
1867
+ J.href = U, J.download = w.originalname || "file", document.body.appendChild(J), J.click(), J.remove();
1868
+ }, S = (w) => {
1869
+ _(w._id).catch(() => {
1870
+ });
1871
+ }, L = async (w) => {
1872
+ try {
1873
+ let U = new FormData();
1874
+ U.append("files", w);
1875
+ const ie = (await wr(U, C.jid))?.data?.results?.[0]?.location;
1876
+ ie && (D.setRoomImageStanza(C.jid, ie, "icon", "none"), b(
1877
+ ye({ jid: C.jid, updates: { icon: ie } })
1878
+ ));
1879
+ } catch (U) {
1880
+ console.error("File upload failed or location is missing:", U);
1881
+ }
1882
+ }, I = async (w) => {
1883
+ try {
1884
+ await Cr({
1885
+ roomId: C.jid.split("@")[0],
1886
+ members: [w]
1887
+ }), b(
1888
+ ye({
1889
+ jid: C.jid,
1890
+ updates: {
1891
+ members: (Array.isArray(C.members) ? C.members : []).filter((U) => U.xmppUsername !== w)
1892
+ }
1893
+ })
1894
+ ), o({
1895
+ id: Date.now().toString(),
1896
+ title: t("toast.success"),
1897
+ message: t("toast.userRemovedFromRoom", { userId: w }),
1898
+ type: "success"
1899
+ });
1900
+ } catch (U) {
1901
+ console.error("Failed to delete user:", U), o({
1902
+ id: Date.now().toString(),
1903
+ title: t("toast.error"),
1904
+ message: t("toast.failedToDeleteUser"),
1905
+ type: "error"
1906
+ });
1907
+ }
1908
+ }, M = v?.disableRoomConfig === !0, F = async () => {
1909
+ D.setRoomImageStanza(C.jid, null, "icon", "none"), b(ye({ jid: C.jid, updates: { icon: null } }));
1910
+ }, y = (w) => {
1911
+ b(Ye(Rr.PROFILE)), b(
1912
+ Pr({
1913
+ id: w._id,
1914
+ firstName: w.firstName,
1915
+ lastName: w.lastName,
1916
+ name: `${w.firstName} ${w.lastName}`,
1917
+ userJID: w?.xmppUsername
1918
+ })
1919
+ );
1920
+ }, Y = se(
1921
+ () => (w) => [
1922
+ {
1923
+ label: t("action.delete"),
1924
+ icon: null,
1925
+ onClick: (U) => {
1926
+ U?.preventDefault(), I(w);
1927
+ }
1928
+ }
1929
+ ],
1930
+ [t]
1931
+ );
1932
+ if (!C)
1933
+ return b(Ye()), null;
1934
+ const ae = (() => {
1935
+ 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);
1936
+ return w === 1 ? t("modal.chatProfile.memberCountSingular", { count: U }) : t("modal.chatProfile.memberCountPlural", { count: U });
1937
+ })(), ce = !v?.disableChatInfo?.disableDescription, Ue = !v?.disableChatInfo?.disableType;
1938
+ return /* @__PURE__ */ j(
1939
+ bt,
1940
+ {
1941
+ title: t("modal.chatProfile.title"),
1942
+ onClose: n,
1943
+ headerActions: /* @__PURE__ */ j(gt, { children: [
1944
+ C?.type === "public" && /* @__PURE__ */ E(
1945
+ te,
1946
+ {
1947
+ EndIcon: /* @__PURE__ */ E(Tr, {}),
1948
+ onClick: () => c(!0),
1949
+ "aria-label": t("action.showQr")
1950
+ }
1951
+ ),
1952
+ C.role === "moderator" && C.type !== "private" && !M && !v?.disableChatInfo?.disableChatHeaderMenu && /* @__PURE__ */ E(
1953
+ At,
1954
+ {
1955
+ position: "left",
1956
+ options: s,
1957
+ openButton: /* @__PURE__ */ E(
1958
+ te,
1959
+ {
1960
+ style: { padding: 8, maxHeight: "40px" },
1961
+ EndIcon: /* @__PURE__ */ E(Er, {}),
1962
+ unstyled: !0,
1963
+ "aria-label": t("action.moreOptions")
1964
+ }
1965
+ )
1966
+ }
1967
+ )
1968
+ ] }),
1969
+ children: [
1970
+ /* @__PURE__ */ j(Gt, { children: [
1971
+ /* @__PURE__ */ E(
1972
+ Mt,
1973
+ {
1974
+ name: C.name,
1975
+ icon: vr(C.icon, X),
1976
+ upload: {
1977
+ onUpload: L,
1978
+ active: !M && C?.role !== "participant"
1979
+ },
1980
+ remove: M ? void 0 : { enabled: !0, onRemoveClick: F },
1981
+ role: C?.role,
1982
+ size: 96
1983
+ }
1984
+ ),
1985
+ /* @__PURE__ */ j("div", { children: [
1986
+ /* @__PURE__ */ E(Kt, { children: C.name }),
1987
+ /* @__PURE__ */ E(Xt, { children: ae })
1988
+ ] })
1989
+ ] }),
1990
+ C.role === "moderator" && C.type === "group" && !M && /* @__PURE__ */ E(Jr, {}),
1991
+ (ce || Ue) && /* @__PURE__ */ j(he, { children: [
1992
+ /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.aboutSection") }),
1993
+ ce && /* @__PURE__ */ E(Jt, { $empty: !C?.description, children: C?.description || t("modal.profile.noDescription") }),
1994
+ Ue && /* @__PURE__ */ j(Vt, { children: [
1995
+ /* @__PURE__ */ E(mr, { color: "currentColor" }),
1996
+ t(
1997
+ C.type === "private" ? "modal.chatProfile.typePrivate" : C.type === "group" ? "modal.chatProfile.typeGroup" : "modal.chatProfile.typePublic"
1998
+ )
1999
+ ] })
2000
+ ] }),
2001
+ ne && /* @__PURE__ */ j(he, { children: [
2002
+ /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.notifications") }),
2003
+ /* @__PURE__ */ E(Tt, { children: /* @__PURE__ */ j(
2004
+ Ft,
2005
+ {
2006
+ style: {
2007
+ flexDirection: "row",
2008
+ justifyContent: "space-between",
2009
+ alignItems: "center"
2010
+ },
2011
+ children: [
2012
+ /* @__PURE__ */ E(zt, { children: t(Q ? "action.unmute" : "action.mute") }),
2013
+ /* @__PURE__ */ E(
2014
+ gr,
2015
+ {
2016
+ checked: Q,
2017
+ onToggle: (w) => {
2018
+ re(w);
2019
+ },
2020
+ bgColor: v?.colors?.primary
2021
+ }
2022
+ )
2023
+ ]
2024
+ }
2025
+ ) })
2026
+ ] }),
2027
+ !v?.disableChatInfo?.hideMembers && /* @__PURE__ */ j(he, { children: [
2028
+ /* @__PURE__ */ E(Fe, { children: /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.membersSection") }) }),
2029
+ z.length > 0 && /* @__PURE__ */ j(Qt, { children: [
2030
+ /* @__PURE__ */ E(yr, { color: "currentColor", height: "18px" }),
2031
+ /* @__PURE__ */ E(
2032
+ Ht,
2033
+ {
2034
+ type: "text",
2035
+ value: g,
2036
+ onChange: oe,
2037
+ placeholder: t("modal.chatProfile.searchMembers"),
2038
+ "aria-label": t("modal.chatProfile.searchMembers")
2039
+ }
2040
+ )
2041
+ ] }),
2042
+ h ? /* @__PURE__ */ E(Ie, {}) : /* @__PURE__ */ j(Yt, { children: [
2043
+ q.map((w) => /* @__PURE__ */ E(
2044
+ an,
2045
+ {
2046
+ member: w,
2047
+ isLast: !0,
2048
+ disableClick: !!v?.disableChatInfo?.disableMembers,
2049
+ online: V.has(w.xmppUsername),
2050
+ showMenu: $.xmppUsername !== w.xmppUsername && C.role === "moderator" && C.type !== "private" && !M,
2051
+ menuOptions: Y(w.xmppUsername),
2052
+ moreOptionsLabel: t("action.moreOptions"),
2053
+ onAvatarClick: y
2054
+ },
2055
+ w.xmppUsername
2056
+ )),
2057
+ Z && /* @__PURE__ */ E(
2058
+ ze,
2059
+ {
2060
+ type: "button",
2061
+ onClick: () => p(
2062
+ (w) => w + sn
2063
+ ),
2064
+ children: t("modal.chatProfile.membersShowMore", {
2065
+ count: H.length - m
2066
+ })
2067
+ }
2068
+ )
2069
+ ] })
2070
+ ] }),
2071
+ /* @__PURE__ */ j(he, { children: [
2072
+ /* @__PURE__ */ j(Fe, { children: [
2073
+ /* @__PURE__ */ E(pe, { children: t("modal.chatProfile.filesTitle") }),
2074
+ d.length > 6 && /* @__PURE__ */ E(
2075
+ ze,
2076
+ {
2077
+ type: "button",
2078
+ onClick: () => f((w) => !w),
2079
+ "aria-expanded": i,
2080
+ children: t(i ? "modal.chatProfile.filesShowLess" : "modal.chatProfile.filesShowAll")
2081
+ }
2082
+ )
2083
+ ] }),
2084
+ T && d.length === 0 ? /* @__PURE__ */ E(Ie, {}) : A && d.length === 0 ? /* @__PURE__ */ j(Qe, { $compact: !0, children: [
2085
+ /* @__PURE__ */ E(
2086
+ We,
2087
+ {
2088
+ color: "var(--ethora-color-text-muted, #8c8c8c)",
2089
+ fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2090
+ }
2091
+ ),
2092
+ /* @__PURE__ */ E(He, { children: t("files.error.title") })
2093
+ ] }) : d.length === 0 ? /* @__PURE__ */ j(Qe, { $compact: !0, children: [
2094
+ /* @__PURE__ */ E(
2095
+ We,
2096
+ {
2097
+ color: "var(--ethora-color-text-muted, #8c8c8c)",
2098
+ fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
2099
+ }
2100
+ ),
2101
+ /* @__PURE__ */ E(He, { children: t("modal.chatProfile.filesEmpty") })
2102
+ ] }) : /* @__PURE__ */ E(
2103
+ br,
2104
+ {
2105
+ items: P,
2106
+ fileToken: X,
2107
+ onPreview: O,
2108
+ onDownload: x,
2109
+ onDelete: S,
2110
+ compact: !0
2111
+ }
2112
+ )
2113
+ ] }),
2114
+ /* @__PURE__ */ E(
2115
+ Kr,
2116
+ {
2117
+ isVisible: u,
2118
+ setVisible: c,
2119
+ chatJid: C.jid
2120
+ }
2121
+ ),
2122
+ /* @__PURE__ */ E(
2123
+ Xr,
2124
+ {
2125
+ isModalOpen: r,
2126
+ setIsModalOpen: l
2127
+ }
2128
+ )
2129
+ ]
2130
+ }
2131
+ );
2132
+ };
2133
+ export {
2134
+ hn as default
2135
+ };