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