@ethora/chat-component 26.10.5 → 26.10.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 (43) hide show
  1. package/README.md +32 -1
  2. package/dist/{ChatProfileModal-Dw7pPDv8.js → ChatProfileModal-BDZvd0rm.js} +145 -145
  3. package/dist/{FilePreviewModal-CEcb5HZ2.js → FilePreviewModal-DlOjnYzv.js} +79 -79
  4. package/dist/{ManageDataModal-Qma0dQja.js → ManageDataModal-BZLGJZze.js} +16 -16
  5. package/dist/{MarkdownBody-DiVdEIJH.js → MarkdownBody-CtArwCDa.js} +1 -1
  6. package/dist/{MessageSearchModal-DVJTW9WM.js → MessageSearchModal-CcUnfZlU.js} +46 -46
  7. package/dist/{PublicChatsModal-CX1qZbEc.js → PublicChatsModal-BWn0NXVo.js} +10 -10
  8. package/dist/{SideDrawer-BzfNGNbq.js → SideDrawer-CqZl9sxK.js} +28 -28
  9. package/dist/UserProfileModal-D0JZ3-uy.js +635 -0
  10. package/dist/{UserSettingsModal-DdbURRR3.js → UserSettingsModal-OvykYDsT.js} +4 -4
  11. package/dist/{VideoCallOverlay-D1lGzbw3.js → VideoCallOverlay-DrvO2v_g.js} +4616 -4477
  12. package/dist/{VisibilityModal-yGZ0eOJx.js → VisibilityModal-pOF9-UXR.js} +11 -11
  13. package/dist/components/Modals/styledModalComponents.d.ts +4 -4
  14. package/dist/components/VideoCalls/VideoCallSession.d.ts +2 -0
  15. package/dist/components/styled/SendInput.d.ts +3 -2
  16. package/dist/firebase-messaging-sw.js +918 -96
  17. package/dist/{handleCopyClick-C-w304_U.js → handleCopyClick-BUbVvd2G.js} +1 -1
  18. package/dist/helpers/callClaim.d.ts +17 -0
  19. package/dist/helpers/callOutcomeSync.d.ts +23 -0
  20. package/dist/helpers/callPush.d.ts +23 -0
  21. package/dist/helpers/incomingCallPush.d.ts +89 -0
  22. package/dist/helpers/pushRoomHandoff.d.ts +13 -0
  23. package/dist/hooks/useChatSettingState.d.ts +1 -0
  24. package/dist/hooks/usePushNotifications.d.ts +2 -0
  25. package/dist/{main-Cdwk7Rjj.js → main-CpHMnydn.js} +12241 -11463
  26. package/dist/main.js +17 -17
  27. package/dist/networking/api-requests/rooms.api.d.ts +9 -0
  28. package/dist/networking/xmpp/sendMessageReaction.xmpp.d.ts +13 -1
  29. package/dist/networking/xmppClient.d.ts +2 -1
  30. package/dist/roomStore/Middleware/blockedHydrationMiddleware.d.ts +2 -0
  31. package/dist/roomStore/chatSettingsSlice.d.ts +2 -1
  32. package/dist/types/models/config.model.d.ts +42 -0
  33. package/dist/types/models/xmpp.model.d.ts +2 -1
  34. package/dist/utils/callAuthMirror.d.ts +1 -0
  35. package/dist/utils/callBroadcast.d.ts +12 -0
  36. package/dist/utils/callNotifications.d.ts +67 -0
  37. package/dist/utils/firebasePushNotifications.d.ts +14 -0
  38. package/dist/utils/handledCalls.d.ts +5 -0
  39. package/dist/utils/pushServiceWorkerBridge.d.ts +19 -0
  40. package/dist/utils/webLock.d.ts +13 -0
  41. package/package.json +1 -1
  42. package/public/firebase-messaging-sw.js +918 -96
  43. package/dist/UserProfileModal-DdW_nEsM.js +0 -594
@@ -1,8 +1,8 @@
1
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";
2
+ import Ue, { useRef as St, useState as ee, useMemo as se } from "react";
3
+ import { L as nr, f as xt, M as he, ap as or, I as te, U as Y, a as qe, u as ue, aq as ze, $ as _t, W as Mt, ar as At, as as Dt, at as Ot, au as ar, av as Ne, aw as ir, ac as sr, ad as lr, a1 as Lt, ai as ur, ax as cr, ay as $e, az as fr, aA as be, aB as It, aC as Bt, P as kt, af as Nt, S as dr, aD as hr, e as pr, aE as vr, aF as mr, aG as gr, aH as yr, aI as We, aJ as br, N as Te, aK as Er, aL as Tr, aM as Cr, aN as wr, O as Ke, aO as Rr, aP as Pr, aQ as Sr, aR as Ge, aS as xr, aT as _r, ag as Mr, aU as Ar, aV as Xe, aW as Dr, a2 as Or, aX as Je } from "./main-CpHMnydn.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-CqZl9sxK.js";
5
+ import { h as jr, P as Ur, a as qr, c as zr, D as Fr, d as Qr, e as tt, f as rt } from "./handleCopyClick-BUbVvd2G.js";
6
6
  var le = {}, me = { exports: {} }, ge = { exports: {} }, k = {};
7
7
  var nt;
8
8
  function Hr() {
@@ -111,7 +111,7 @@ function Yr() {
111
111
  }
112
112
  }
113
113
  }
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;
114
+ var p = t, w = e, F = o, K = l, re = d, ne = s, W = u, G = v, V = m, Q = a, X = r, z = c, Z = i, ae = !1;
115
115
  function ce(b) {
116
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
  }
@@ -121,7 +121,7 @@ function Yr() {
121
121
  function E(b) {
122
122
  return $(b) === o;
123
123
  }
124
- function S(b) {
124
+ function x(b) {
125
125
  return $(b) === l;
126
126
  }
127
127
  function _(b) {
@@ -133,7 +133,7 @@ function Yr() {
133
133
  function A(b) {
134
134
  return $(b) === u;
135
135
  }
136
- function x(b) {
136
+ function S(b) {
137
137
  return $(b) === v;
138
138
  }
139
139
  function M(b) {
@@ -151,7 +151,7 @@ function Yr() {
151
151
  function q(b) {
152
152
  return $(b) === i;
153
153
  }
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 = $;
154
+ N.AsyncMode = p, N.ConcurrentMode = w, N.ContextConsumer = F, N.ContextProvider = K, N.Element = re, N.ForwardRef = ne, N.Fragment = W, N.Lazy = G, N.Memo = V, N.Portal = Q, N.Profiler = X, N.StrictMode = z, N.Suspense = Z, N.isAsyncMode = ce, N.isConcurrentMode = h, N.isContextConsumer = E, N.isContextProvider = x, N.isElement = _, N.isForwardRef = P, N.isFragment = A, N.isLazy = S, 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
157
  var at;
@@ -205,7 +205,7 @@ function Wr() {
205
205
  }, Ce;
206
206
  }
207
207
  var we, st;
208
- function ze() {
208
+ function Fe() {
209
209
  if (st) return we;
210
210
  st = 1;
211
211
  var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
@@ -216,13 +216,13 @@ function Ut() {
216
216
  return lt || (lt = 1, Re = Function.call.bind(Object.prototype.hasOwnProperty)), Re;
217
217
  }
218
218
  var Pe, ut;
219
- function Gr() {
219
+ function Kr() {
220
220
  if (ut) return Pe;
221
221
  ut = 1;
222
222
  var n = function() {
223
223
  };
224
224
  if (process.env.NODE_ENV !== "production") {
225
- var d = /* @__PURE__ */ ze(), a = {}, u = /* @__PURE__ */ Ut();
225
+ var d = /* @__PURE__ */ Fe(), a = {}, u = /* @__PURE__ */ Ut();
226
226
  n = function(r) {
227
227
  var l = "Warning: " + r;
228
228
  typeof console < "u" && console.error(l);
@@ -264,11 +264,11 @@ function Gr() {
264
264
  process.env.NODE_ENV !== "production" && (a = {});
265
265
  }, Pe = c, Pe;
266
266
  }
267
- var xe, ct;
268
- function Kr() {
269
- if (ct) return xe;
267
+ var Se, ct;
268
+ function Gr() {
269
+ if (ct) return Se;
270
270
  ct = 1;
271
- var n = jt(), d = Wr(), a = /* @__PURE__ */ ze(), u = /* @__PURE__ */ Ut(), c = /* @__PURE__ */ Gr(), r = function() {
271
+ var n = jt(), d = Wr(), a = /* @__PURE__ */ Fe(), u = /* @__PURE__ */ Ut(), c = /* @__PURE__ */ Kr(), 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 Kr() {
281
281
  function l() {
282
282
  return null;
283
283
  }
284
- return xe = function(o, t) {
284
+ return Se = 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]);
@@ -303,10 +303,10 @@ function Kr() {
303
303
  elementType: p(),
304
304
  instanceOf: w,
305
305
  node: ne(),
306
- objectOf: G,
307
- oneOf: z,
306
+ objectOf: K,
307
+ oneOf: F,
308
308
  oneOfType: re,
309
- shape: K,
309
+ shape: G,
310
310
  exact: V
311
311
  };
312
312
  function v(h, E) {
@@ -318,8 +318,8 @@ function Kr() {
318
318
  g.prototype = Error.prototype;
319
319
  function R(h) {
320
320
  if (process.env.NODE_ENV !== "production")
321
- var E = {}, S = 0;
322
- function _(A, x, M, O, B, L, q) {
321
+ var E = {}, x = 0;
322
+ function _(A, S, M, O, B, L, q) {
323
323
  if (O = O || f, L = L || M, q !== a) {
324
324
  if (t) {
325
325
  var b = new Error(
@@ -329,23 +329,23 @@ function Kr() {
329
329
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
330
330
  var H = O + ":" + M;
331
331
  !E[H] && // Avoid spamming the console because they are often not actionable except for lib authors
332
- S < 3 && (r(
332
+ x < 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, S++);
334
+ ), E[H] = !0, x++);
335
335
  }
336
336
  }
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);
337
+ return S[M] == null ? A ? S[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(S, M, O, B, L);
338
338
  }
339
339
  var P = _.bind(null, !1);
340
340
  return P.isRequired = _.bind(null, !0), P;
341
341
  }
342
342
  function y(h) {
343
- function E(S, _, P, A, x, M) {
344
- var O = S[_], B = F(O);
343
+ function E(x, _, P, A, S, M) {
344
+ var O = x[_], B = z(O);
345
345
  if (B !== h) {
346
346
  var L = Z(O);
347
347
  return new g(
348
- "Invalid " + A + " `" + x + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("`" + h + "`."),
348
+ "Invalid " + A + " `" + S + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("`" + h + "`."),
349
349
  { expectedType: h }
350
350
  );
351
351
  }
@@ -357,16 +357,16 @@ function Kr() {
357
357
  return R(l);
358
358
  }
359
359
  function D(h) {
360
- function E(S, _, P, A, x) {
360
+ function E(x, _, P, A, S) {
361
361
  if (typeof h != "function")
362
- return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
363
- var M = S[_];
362
+ return new g("Property `" + S + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
363
+ var M = x[_];
364
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."));
365
+ var O = z(M);
366
+ return new g("Invalid " + A + " `" + S + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected an array."));
367
367
  }
368
368
  for (var B = 0; B < M.length; B++) {
369
- var L = h(M, B, P, A, x + "[" + B + "]", a);
369
+ var L = h(M, B, P, A, S + "[" + B + "]", a);
370
370
  if (L instanceof Error)
371
371
  return L;
372
372
  }
@@ -375,10 +375,10 @@ function Kr() {
375
375
  return R(E);
376
376
  }
377
377
  function $() {
378
- function h(E, S, _, P, A) {
379
- var x = E[S];
380
- if (!o(x)) {
381
- var M = F(x);
378
+ function h(E, x, _, P, A) {
379
+ var S = E[x];
380
+ if (!o(S)) {
381
+ var M = z(S);
382
382
  return new g("Invalid " + P + " `" + A + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected a single ReactElement."));
383
383
  }
384
384
  return null;
@@ -386,10 +386,10 @@ function Kr() {
386
386
  return R(h);
387
387
  }
388
388
  function p() {
389
- function h(E, S, _, P, A) {
390
- var x = E[S];
391
- if (!n.isValidElementType(x)) {
392
- var M = F(x);
389
+ function h(E, x, _, P, A) {
390
+ var S = E[x];
391
+ if (!n.isValidElementType(S)) {
392
+ var M = z(S);
393
393
  return new g("Invalid " + P + " `" + A + "` of type " + ("`" + M + "` supplied to `" + _ + "`, expected a single ReactElement type."));
394
394
  }
395
395
  return null;
@@ -397,42 +397,42 @@ function Kr() {
397
397
  return R(h);
398
398
  }
399
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 + "`."));
400
+ function E(x, _, P, A, S) {
401
+ if (!(x[_] instanceof h)) {
402
+ var M = h.name || f, O = ce(x[_]);
403
+ return new g("Invalid " + A + " `" + S + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected ") + ("instance of `" + M + "`."));
404
404
  }
405
405
  return null;
406
406
  }
407
407
  return R(E);
408
408
  }
409
- function z(h) {
409
+ function F(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(S, _, P, A, x) {
415
- for (var M = S[_], O = 0; O < h.length; O++)
414
+ function E(x, _, P, A, S) {
415
+ for (var M = x[_], O = 0; O < h.length; O++)
416
416
  if (v(M, h[O]))
417
417
  return null;
418
418
  var B = JSON.stringify(h, function(q, b) {
419
419
  var H = Z(b);
420
420
  return H === "symbol" ? String(b) : b;
421
421
  });
422
- return new g("Invalid " + A + " `" + x + "` of value `" + String(M) + "` " + ("supplied to `" + P + "`, expected one of " + B + "."));
422
+ return new g("Invalid " + A + " `" + S + "` of value `" + String(M) + "` " + ("supplied to `" + P + "`, expected one of " + B + "."));
423
423
  }
424
424
  return R(E);
425
425
  }
426
- function G(h) {
427
- function E(S, _, P, A, x) {
426
+ function K(h) {
427
+ function E(x, _, P, A, S) {
428
428
  if (typeof h != "function")
429
- return new g("Property `" + x + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
430
- var M = S[_], O = F(M);
429
+ return new g("Property `" + S + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
430
+ var M = x[_], O = z(M);
431
431
  if (O !== "object")
432
- return new g("Invalid " + A + " `" + x + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected an object."));
432
+ return new g("Invalid " + A + " `" + S + "` of type " + ("`" + O + "` supplied to `" + P + "`, expected an object."));
433
433
  for (var B in M)
434
434
  if (u(M, B)) {
435
- var L = h(M, B, P, A, x + "." + B, a);
435
+ var L = h(M, B, P, A, S + "." + B, a);
436
436
  if (L instanceof Error)
437
437
  return L;
438
438
  }
@@ -444,45 +444,45 @@ function Kr() {
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 S = h[E];
448
- if (typeof S != "function")
447
+ var x = h[E];
448
+ if (typeof x != "function")
449
449
  return r(
450
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(S) + " at index " + E + "."
450
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(x) + " at index " + E + "."
451
451
  ), l;
452
452
  }
453
- function _(P, A, x, M, O) {
453
+ function _(P, A, S, M, O) {
454
454
  for (var B = [], L = 0; L < h.length; L++) {
455
- var q = h[L], b = q(P, A, x, M, O, a);
455
+ var q = h[L], b = q(P, A, S, M, O, a);
456
456
  if (b == null)
457
457
  return null;
458
458
  b.data && u(b.data, "expectedType") && B.push(b.data.expectedType);
459
459
  }
460
460
  var H = B.length > 0 ? ", expected one of type [" + B.join(", ") + "]" : "";
461
- return new g("Invalid " + M + " `" + O + "` supplied to " + ("`" + x + "`" + H + "."));
461
+ return new g("Invalid " + M + " `" + O + "` supplied to " + ("`" + S + "`" + H + "."));
462
462
  }
463
463
  return R(_);
464
464
  }
465
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."));
466
+ function h(E, x, _, P, A) {
467
+ return Q(E[x]) ? null : new g("Invalid " + P + " `" + A + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
468
468
  }
469
469
  return R(h);
470
470
  }
471
- function W(h, E, S, _, P) {
471
+ function W(h, E, x, _, P) {
472
472
  return new g(
473
- (h || "React class") + ": " + E + " type `" + S + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
473
+ (h || "React class") + ": " + E + " type `" + x + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
474
474
  );
475
475
  }
476
- function K(h) {
477
- function E(S, _, P, A, x) {
478
- var M = S[_], O = F(M);
476
+ function G(h) {
477
+ function E(x, _, P, A, S) {
478
+ var M = x[_], O = z(M);
479
479
  if (O !== "object")
480
- return new g("Invalid " + A + " `" + x + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
480
+ return new g("Invalid " + A + " `" + S + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
481
481
  for (var B in h) {
482
482
  var L = h[B];
483
483
  if (typeof L != "function")
484
- return W(P, A, x, B, Z(L));
485
- var q = L(M, B, P, A, x + "." + B, a);
484
+ return W(P, A, S, B, Z(L));
485
+ var q = L(M, B, P, A, S + "." + B, a);
486
486
  if (q)
487
487
  return q;
488
488
  }
@@ -491,21 +491,21 @@ function Kr() {
491
491
  return R(E);
492
492
  }
493
493
  function V(h) {
494
- function E(S, _, P, A, x) {
495
- var M = S[_], O = F(M);
494
+ function E(x, _, P, A, S) {
495
+ var M = x[_], O = z(M);
496
496
  if (O !== "object")
497
- return new g("Invalid " + A + " `" + x + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
498
- var B = d({}, S[_], h);
497
+ return new g("Invalid " + A + " `" + S + "` of type `" + O + "` " + ("supplied to `" + P + "`, expected `object`."));
498
+ var B = d({}, x[_], h);
499
499
  for (var L in B) {
500
500
  var q = h[L];
501
501
  if (u(h, L) && typeof q != "function")
502
- return W(P, A, x, L, Z(q));
502
+ return W(P, A, S, L, Z(q));
503
503
  if (!q)
504
504
  return new g(
505
- "Invalid " + A + " `" + x + "` key `" + L + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(S[_], null, " ") + `
505
+ "Invalid " + A + " `" + S + "` key `" + L + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(x[_], null, " ") + `
506
506
  Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
507
507
  );
508
- var b = q(M, L, P, A, x + "." + L, a);
508
+ var b = q(M, L, P, A, S + "." + L, a);
509
509
  if (b)
510
510
  return b;
511
511
  }
@@ -528,13 +528,13 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
528
528
  return !0;
529
529
  var E = i(h);
530
530
  if (E) {
531
- var S = E.call(h), _;
531
+ var x = E.call(h), _;
532
532
  if (E !== h.entries) {
533
- for (; !(_ = S.next()).done; )
533
+ for (; !(_ = x.next()).done; )
534
534
  if (!Q(_.value))
535
535
  return !1;
536
536
  } else
537
- for (; !(_ = S.next()).done; ) {
537
+ for (; !(_ = x.next()).done; ) {
538
538
  var P = _.value;
539
539
  if (P && !Q(P[1]))
540
540
  return !1;
@@ -549,14 +549,14 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
549
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 F(h) {
552
+ function z(h) {
553
553
  var E = typeof h;
554
554
  return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : X(E, h) ? "symbol" : E;
555
555
  }
556
556
  function Z(h) {
557
557
  if (typeof h > "u" || h === null)
558
558
  return "" + h;
559
- var E = F(h);
559
+ var E = z(h);
560
560
  if (E === "object") {
561
561
  if (h instanceof Date)
562
562
  return "date";
@@ -583,18 +583,18 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
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
- }, xe;
586
+ }, Se;
587
587
  }
588
- var Se, ft;
588
+ var xe, ft;
589
589
  function Xr() {
590
- if (ft) return Se;
590
+ if (ft) return xe;
591
591
  ft = 1;
592
- var n = /* @__PURE__ */ ze();
592
+ var n = /* @__PURE__ */ Fe();
593
593
  function d() {
594
594
  }
595
595
  function a() {
596
596
  }
597
- return a.resetWarningCache = d, Se = function() {
597
+ return a.resetWarningCache = d, xe = function() {
598
598
  function u(l, o, t, e, s, i) {
599
599
  if (i !== n) {
600
600
  var f = new Error(
@@ -631,20 +631,20 @@ function Xr() {
631
631
  resetWarningCache: d
632
632
  };
633
633
  return r.PropTypes = r, r;
634
- }, Se;
634
+ }, xe;
635
635
  }
636
636
  var dt;
637
637
  function qt() {
638
638
  if (dt) return me.exports;
639
639
  if (dt = 1, process.env.NODE_ENV !== "production") {
640
640
  var n = jt(), d = !0;
641
- me.exports = /* @__PURE__ */ Kr()(n.isElement, d);
641
+ me.exports = /* @__PURE__ */ Gr()(n.isElement, d);
642
642
  } else
643
643
  me.exports = /* @__PURE__ */ Xr()();
644
644
  return me.exports;
645
645
  }
646
646
  var _e, ht;
647
- function Ft() {
647
+ function zt() {
648
648
  return ht || (ht = 1, _e = {
649
649
  L: 1,
650
650
  M: 0,
@@ -653,7 +653,7 @@ function Ft() {
653
653
  }), _e;
654
654
  }
655
655
  var Me, pt;
656
- function zt() {
656
+ function Ft() {
657
657
  return pt || (pt = 1, Me = {
658
658
  MODE_NUMBER: 1,
659
659
  MODE_ALPHA_NUM: 2,
@@ -665,7 +665,7 @@ var Ae, vt;
665
665
  function Jr() {
666
666
  if (vt) return Ae;
667
667
  vt = 1;
668
- var n = zt();
668
+ var n = Ft();
669
669
  function d(a) {
670
670
  this.mode = n.MODE_8BIT_BYTE, this.data = a;
671
671
  }
@@ -683,7 +683,7 @@ var De, mt;
683
683
  function Vr() {
684
684
  if (mt) return De;
685
685
  mt = 1;
686
- var n = Ft();
686
+ var n = zt();
687
687
  function d(a, u) {
688
688
  this.totalCount = a, this.dataCount = u;
689
689
  }
@@ -1009,7 +1009,7 @@ var Be, Et;
1009
1009
  function en() {
1010
1010
  if (Et) return Be;
1011
1011
  Et = 1;
1012
- var n = zt(), d = Ht(), a = Qt(), u = {
1012
+ var n = Ft(), d = Ht(), a = Qt(), u = {
1013
1013
  PATTERN000: 0,
1014
1014
  PATTERN001: 1,
1015
1015
  PATTERN010: 2,
@@ -1322,13 +1322,13 @@ function tn() {
1322
1322
  }
1323
1323
  for (var w = 0, y = 0; y < t.length; y++)
1324
1324
  w += t[y].totalCount;
1325
- for (var z = new Array(w), G = 0, y = 0; y < s; y++)
1325
+ for (var F = new Array(w), K = 0, y = 0; y < s; y++)
1326
1326
  for (var v = 0; v < t.length; v++)
1327
- y < f[v].length && (z[G++] = f[v][y]);
1327
+ y < f[v].length && (F[K++] = 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 && (z[G++] = m[v][y]);
1331
- return z;
1330
+ y < m[v].length && (F[K++] = m[v][y]);
1331
+ return F;
1332
1332
  }, ke = r, ke;
1333
1333
  }
1334
1334
  var ye = {}, Ct;
@@ -1392,7 +1392,7 @@ function nn() {
1392
1392
  Object.prototype.hasOwnProperty.call(y, I) && (g[I] = y[I]);
1393
1393
  }
1394
1394
  return g;
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);
1395
+ }, d = /* @__PURE__ */ qt(), a = i(d), u = zt(), 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
  }
@@ -1409,25 +1409,25 @@ function nn() {
1409
1409
  size: a.default.number,
1410
1410
  value: a.default.string.isRequired
1411
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]);
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, F = g.size, K = F === void 0 ? 256 : F, re = g.value, ne = f(g, ["bgColor", "fgColor", "level", "size", "value"]), W = new l.default(-1, c.default[w]);
1413
1413
  W.addData(re), W.make();
1414
- var K = W.modules;
1414
+ var G = W.modules;
1415
1415
  return t.default.createElement(s.default, n({}, ne, {
1416
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";
1417
+ bgD: G.map(function(V, Q) {
1418
+ return V.map(function(X, z) {
1419
+ return X ? "" : "M " + z + " " + Q + " l 1 0 0 1 -1 0 Z";
1420
1420
  }).join(" ");
1421
1421
  }).join(" "),
1422
1422
  fgColor: $,
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" : "";
1423
+ fgD: G.map(function(V, Q) {
1424
+ return V.map(function(X, z) {
1425
+ return X ? "M " + z + " " + Q + " l 1 0 0 1 -1 0 Z" : "";
1426
1426
  }).join(" ");
1427
1427
  }).join(" "),
1428
1428
  ref: R,
1429
- size: G,
1430
- viewBoxSize: K.length
1429
+ size: K,
1430
+ viewBoxSize: G.length
1431
1431
  }));
1432
1432
  });
1433
1433
  return le.QRCode = v, v.displayName = "QRCode", v.propTypes = m, le.default = v, le;
@@ -1478,7 +1478,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1478
1478
  chatJid: d,
1479
1479
  setVisible: a
1480
1480
  }) => {
1481
- const { config: u } = St(), c = he();
1481
+ const { config: u } = xt(), c = he();
1482
1482
  if (!n) return null;
1483
1483
  const r = ln(d, u?.qrUrl);
1484
1484
  return /* @__PURE__ */ T(un, { children: /* @__PURE__ */ T(
@@ -1528,7 +1528,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1528
1528
  isModalOpen: n,
1529
1529
  setIsModalOpen: d
1530
1530
  }) => {
1531
- const a = qe(), u = ue((e) => Fe(e)), { client: c } = _t(), r = he(), l = () => d(!1), o = xt(null);
1531
+ const a = qe(), u = ue((e) => ze(e)), { client: c } = _t(), r = he(), l = () => d(!1), o = St(null);
1532
1532
  Mt({
1533
1533
  enabled: n,
1534
1534
  onClose: l,
@@ -1577,9 +1577,9 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1577
1577
  ] })
1578
1578
  ] }) });
1579
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 = () => {
1580
+ const { showToast: n } = Lt(), d = qe(), a = he(), [u, c] = ee(!1), [r, l] = ee(!1), [o, t] = ee([]), e = ue((v) => ze(v)), s = () => l(!0), i = () => {
1581
1581
  l(!1), t([]);
1582
- }, f = xt(null);
1582
+ }, f = St(null);
1583
1583
  Mt({
1584
1584
  enabled: r,
1585
1585
  onClose: i,
@@ -1819,7 +1819,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1819
1819
  }
1820
1820
  )
1821
1821
  ] });
1822
- }, Pn = Ue.memo(Rn), Rt = 150, xn = 150, On = ({
1822
+ }, Pn = Ue.memo(Rn), Rt = 150, Sn = 150, On = ({
1823
1823
  handleCloseModal: n
1824
1824
  }) => {
1825
1825
  const [d, a] = ee(!1), [u, c] = ee(!1), [r, l] = ee(!1), { showToast: o } = Lt(), t = he(), e = Bt(), s = se(
@@ -1836,20 +1836,20 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1836
1836
  [t]
1837
1837
  ), [i, f] = ee(!1), [m, v] = ee(
1838
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,
1839
+ ), [g, R] = ee(""), y = qe(), I = pr(), { client: D } = _t(), { user: $, config: p } = xt(), w = ue((C) => ze(C)), {
1840
+ muted: F,
1841
+ isSupported: K,
1842
1842
  setMuted: re
1843
- } = vr(w?.jid), ne = G && !p?.disableRoomMute, W = mr(w?.jid), K = ue(
1843
+ } = vr(w?.jid), ne = K && !p?.disableRoomMute, W = mr(w?.jid), G = ue(
1844
1844
  (C) => C.chatSettingStore.user?.fileToken || ""
1845
1845
  ), V = $?.xmppUsername || "", Q = w?.type === "private", X = Q ? (w?.members || []).find(
1846
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(() => {
1847
+ ) : void 0, z = X?.xmppUsername || "", Z = z.split("@")[0], ae = ue(
1848
+ (C) => z ? C.rooms.usersSet?.[z] ?? C.rooms.usersSet?.[Z] : void 0
1849
+ ), ce = X?.profileImage || ae?.profileImage || "", h = se(() => new Set(W), [W]), E = gr(w), { members: x, state: _ } = yr(w?.jid, E), P = E && _ === "loading", A = se(() => {
1850
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(() => {
1851
+ return !E || x.length === 0 ? We(C) : We([...C, ...x]);
1852
+ }, [w?.members, E, x]), S = se(() => {
1853
1853
  const C = g.trim().toLowerCase();
1854
1854
  if (!C) return A;
1855
1855
  const U = I.getState().rooms.usersSet;
@@ -1858,9 +1858,9 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1858
1858
  return `${tr} ${rr}`.toLowerCase().includes(C);
1859
1859
  });
1860
1860
  }, [A, g, I]), M = se(
1861
- () => x.slice(0, m),
1862
- [x, m]
1863
- ), O = m < x.length, B = (C) => {
1861
+ () => S.slice(0, m),
1862
+ [S, m]
1863
+ ), O = m < S.length, B = (C) => {
1864
1864
  R(C.target.value), v(Rt);
1865
1865
  }, L = w?.jid ? w.jid.split("@")[0] : void 0, {
1866
1866
  items: q,
@@ -1875,10 +1875,10 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1875
1875
  if (!U || typeof document > "u") return;
1876
1876
  const J = document.createElement("a");
1877
1877
  J.href = U, J.download = C.originalname || "file", document.body.appendChild(J), J.click(), J.remove();
1878
- }, Gt = (C) => {
1878
+ }, Kt = (C) => {
1879
1879
  ie(C._id).catch(() => {
1880
1880
  });
1881
- }, Kt = async (C) => {
1881
+ }, Gt = async (C) => {
1882
1882
  try {
1883
1883
  let U = new FormData();
1884
1884
  U.append("files", C);
@@ -1930,7 +1930,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1930
1930
  }
1931
1931
  D.setRoomImageStanza(w.jid, null, "icon", "none"), y(be({ jid: w.jid, updates: { icon: null } }));
1932
1932
  }, Vt = (C) => {
1933
- y(Te(Ge.PROFILE)), y(
1933
+ y(Te(Ke.PROFILE)), y(
1934
1934
  Or({
1935
1935
  id: C._id,
1936
1936
  firstName: C.firstName,
@@ -1996,10 +1996,10 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
1996
1996
  name: w.name,
1997
1997
  icon: Tr(
1998
1998
  w.icon || (Q ? ce : ""),
1999
- K
1999
+ G
2000
2000
  ),
2001
2001
  upload: {
2002
- onUpload: Kt,
2002
+ onUpload: Gt,
2003
2003
  active: !fe && w?.role !== "participant"
2004
2004
  },
2005
2005
  remove: fe ? void 0 : { enabled: !0, onRemoveClick: Jt },
@@ -2009,13 +2009,13 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2009
2009
  ),
2010
2010
  /* @__PURE__ */ j("div", { children: [
2011
2011
  /* @__PURE__ */ T(qr, { children: w.name }),
2012
- /* @__PURE__ */ T(Fr, { children: er })
2012
+ /* @__PURE__ */ T(zr, { children: er })
2013
2013
  ] })
2014
2014
  ] }),
2015
2015
  w.role === "moderator" && w.type === "group" && !fe && /* @__PURE__ */ T(gn, {}),
2016
2016
  (Qe || He) && /* @__PURE__ */ j(de, { children: [
2017
2017
  /* @__PURE__ */ T(ve, { children: t("modal.chatProfile.aboutSection") }),
2018
- Qe && /* @__PURE__ */ T(zr, { $empty: !w?.description, children: w?.description || t("modal.profile.noDescription") }),
2018
+ Qe && /* @__PURE__ */ T(Fr, { $empty: !w?.description, children: w?.description || t("modal.profile.noDescription") }),
2019
2019
  He && /* @__PURE__ */ j(Qr, { children: [
2020
2020
  /* @__PURE__ */ T(Cr, { color: "currentColor" }),
2021
2021
  t(
@@ -2027,7 +2027,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2027
2027
  Ir,
2028
2028
  {
2029
2029
  label: t("search.messages.title"),
2030
- onClick: () => y(Te(Ge.MESSAGE_SEARCH))
2030
+ onClick: () => y(Te(Ke.MESSAGE_SEARCH))
2031
2031
  }
2032
2032
  ) }) }),
2033
2033
  ne && /* @__PURE__ */ j(de, { children: [
@@ -2041,11 +2041,11 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2041
2041
  alignItems: "center"
2042
2042
  },
2043
2043
  children: [
2044
- /* @__PURE__ */ T(Ve, { children: t(z ? "action.unmute" : "action.mute") }),
2044
+ /* @__PURE__ */ T(Ve, { children: t(F ? "action.unmute" : "action.mute") }),
2045
2045
  /* @__PURE__ */ T(
2046
2046
  Rr,
2047
2047
  {
2048
- checked: z,
2048
+ checked: F,
2049
2049
  onToggle: (C) => {
2050
2050
  re(C);
2051
2051
  },
@@ -2084,7 +2084,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2084
2084
  moreOptionsLabel: t("action.moreOptions"),
2085
2085
  onAvatarClick: Vt
2086
2086
  },
2087
- xr(C) || C._id
2087
+ Sr(C) || C._id
2088
2088
  )),
2089
2089
  P && /* @__PURE__ */ T(Ve, { children: t("modal.chatProfile.membersLoadingAll") }),
2090
2090
  O && /* @__PURE__ */ T(
@@ -2092,10 +2092,10 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2092
2092
  {
2093
2093
  type: "button",
2094
2094
  onClick: () => v(
2095
- (C) => C + xn
2095
+ (C) => C + Sn
2096
2096
  ),
2097
2097
  children: t("modal.chatProfile.membersShowMore", {
2098
- count: x.length - m
2098
+ count: S.length - m
2099
2099
  })
2100
2100
  }
2101
2101
  )
@@ -2116,7 +2116,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2116
2116
  ] }),
2117
2117
  b && q.length === 0 ? /* @__PURE__ */ T($e, {}) : H && q.length === 0 ? /* @__PURE__ */ j(tt, { $compact: !0, children: [
2118
2118
  /* @__PURE__ */ T(
2119
- Ke,
2119
+ Ge,
2120
2120
  {
2121
2121
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2122
2122
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
@@ -2125,7 +2125,7 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2125
2125
  /* @__PURE__ */ T(rt, { children: t("files.error.title") })
2126
2126
  ] }) : q.length === 0 ? /* @__PURE__ */ j(tt, { $compact: !0, children: [
2127
2127
  /* @__PURE__ */ T(
2128
- Ke,
2128
+ Ge,
2129
2129
  {
2130
2130
  color: "var(--ethora-color-text-muted, #8c8c8c)",
2131
2131
  fill: "var(--ethora-color-bg-subtle, #f5f7fa)"
@@ -2133,13 +2133,13 @@ const an = /* @__PURE__ */ nr(on), sn = "chatId", ln = (n, d, a) => {
2133
2133
  ),
2134
2134
  /* @__PURE__ */ T(rt, { children: t("modal.chatProfile.filesEmpty") })
2135
2135
  ] }) : /* @__PURE__ */ T(
2136
- Sr,
2136
+ xr,
2137
2137
  {
2138
2138
  items: pe,
2139
- fileToken: K,
2139
+ fileToken: G,
2140
2140
  onPreview: Yt,
2141
2141
  onDownload: Wt,
2142
- onDelete: Gt,
2142
+ onDelete: Kt,
2143
2143
  compact: !0
2144
2144
  }
2145
2145
  )