react-pro-messenger 1.0.5 → 1.0.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/dist/index.es.js +1191 -1379
- package/dist/index.umd.js +20 -19
- package/dist/react-pro-messenger.css +1 -0
- package/package.json +49 -49
- package/types/features/Chat/index.d.ts +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,669 +1,481 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import { AnimatePresence as
|
|
6
|
-
class
|
|
1
|
+
var yr = Object.defineProperty;
|
|
2
|
+
var gr = (e, s, o) => s in e ? yr(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
|
|
3
|
+
var de = (e, s, o) => gr(e, typeof s != "symbol" ? s + "" : s, o);
|
|
4
|
+
import ne, { useState as se, useRef as ye, useEffect as mr, forwardRef as Re } from "react";
|
|
5
|
+
import { AnimatePresence as dr, motion as We } from "framer-motion";
|
|
6
|
+
class _e {
|
|
7
7
|
constructor({
|
|
8
|
-
id:
|
|
8
|
+
id: s,
|
|
9
9
|
text: o,
|
|
10
10
|
createdDate: t,
|
|
11
|
-
attachment:
|
|
11
|
+
attachment: i,
|
|
12
12
|
attachmentType: a,
|
|
13
|
-
user:
|
|
14
|
-
isRightSided:
|
|
15
|
-
symbols:
|
|
13
|
+
user: d,
|
|
14
|
+
isRightSided: y,
|
|
15
|
+
symbols: h
|
|
16
16
|
}) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.id =
|
|
17
|
+
de(this, "id", "0");
|
|
18
|
+
de(this, "text", "");
|
|
19
|
+
de(this, "createdDate", "");
|
|
20
|
+
de(this, "attachment", "");
|
|
21
|
+
de(this, "attachmentType");
|
|
22
|
+
de(this, "user", { id: "" });
|
|
23
|
+
de(this, "isRightSided", !1);
|
|
24
|
+
de(this, "symbols");
|
|
25
|
+
this.id = s, this.text = o, this.createdDate = t, this.attachment = i, this.attachmentType = a, this.user = d, this.isRightSided = y, this.symbols = h;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function xr(e) {
|
|
29
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Te = { exports: {} }, we = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
|
-
* react-jsx-runtime.production.
|
|
34
|
+
* react-jsx-runtime.production.js
|
|
35
35
|
*
|
|
36
|
-
* Copyright (c)
|
|
36
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
40
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
if (
|
|
44
|
-
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
var Ge;
|
|
42
|
+
function br() {
|
|
43
|
+
if (Ge) return we;
|
|
44
|
+
Ge = 1;
|
|
45
|
+
var e = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
46
|
+
function o(t, i, a) {
|
|
47
|
+
var d = null;
|
|
48
|
+
if (a !== void 0 && (d = "" + a), i.key !== void 0 && (d = "" + i.key), "key" in i) {
|
|
49
|
+
a = {};
|
|
50
|
+
for (var y in i)
|
|
51
|
+
y !== "key" && (a[y] = i[y]);
|
|
52
|
+
} else a = i;
|
|
53
|
+
return i = a.ref, {
|
|
54
|
+
$$typeof: e,
|
|
55
|
+
type: t,
|
|
56
|
+
key: d,
|
|
57
|
+
ref: i !== void 0 ? i : null,
|
|
58
|
+
props: a
|
|
59
|
+
};
|
|
52
60
|
}
|
|
53
|
-
return
|
|
61
|
+
return we.Fragment = s, we.jsx = o, we.jsxs = o, we;
|
|
54
62
|
}
|
|
55
|
-
var
|
|
63
|
+
var je = {};
|
|
56
64
|
/**
|
|
57
65
|
* @license React
|
|
58
66
|
* react-jsx-runtime.development.js
|
|
59
67
|
*
|
|
60
|
-
* Copyright (c)
|
|
68
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
61
69
|
*
|
|
62
70
|
* This source code is licensed under the MIT license found in the
|
|
63
71
|
* LICENSE file in the root directory of this source tree.
|
|
64
72
|
*/
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (
|
|
71
|
-
return null;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var z = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
-
function V(e) {
|
|
77
|
-
{
|
|
78
|
-
for (var c = arguments.length, v = new Array(c > 1 ? c - 1 : 0), x = 1; x < c; x++)
|
|
79
|
-
v[x - 1] = arguments[x];
|
|
80
|
-
j("error", e, v);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function j(e, c, v) {
|
|
84
|
-
{
|
|
85
|
-
var x = z.ReactDebugCurrentFrame, F = x.getStackAddendum();
|
|
86
|
-
F !== "" && (c += "%s", v = v.concat([F]));
|
|
87
|
-
var U = v.map(function(D) {
|
|
88
|
-
return String(D);
|
|
89
|
-
});
|
|
90
|
-
U.unshift("Warning: " + c), Function.prototype.apply.call(console[e], console, U);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
var B = !1, u = !1, Z = !1, ee = !1, H = !1, ae;
|
|
94
|
-
ae = Symbol.for("react.module.reference");
|
|
95
|
-
function pe(e) {
|
|
96
|
-
return !!(typeof e == "string" || typeof e == "function" || e === t || e === a || H || e === s || e === b || e === y || ee || e === A || B || u || Z || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === m || e.$$typeof === h || e.$$typeof === g || e.$$typeof === p || // This needs to include all possible module reference object
|
|
97
|
-
// types supported by any Flight configuration anywhere since
|
|
98
|
-
// we don't know which Flight build this will end up being used
|
|
99
|
-
// with.
|
|
100
|
-
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
101
|
-
}
|
|
102
|
-
function ve(e, c, v) {
|
|
103
|
-
var x = e.displayName;
|
|
104
|
-
if (x)
|
|
105
|
-
return x;
|
|
106
|
-
var F = c.displayName || c.name || "";
|
|
107
|
-
return F !== "" ? v + "(" + F + ")" : v;
|
|
108
|
-
}
|
|
109
|
-
function fe(e) {
|
|
110
|
-
return e.displayName || "Context";
|
|
111
|
-
}
|
|
112
|
-
function Q(e) {
|
|
113
|
-
if (e == null)
|
|
114
|
-
return null;
|
|
115
|
-
if (typeof e.tag == "number" && V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
116
|
-
return e.displayName || e.name || null;
|
|
117
|
-
if (typeof e == "string")
|
|
118
|
-
return e;
|
|
119
|
-
switch (e) {
|
|
120
|
-
case t:
|
|
73
|
+
var Ke;
|
|
74
|
+
function wr() {
|
|
75
|
+
return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
76
|
+
function e(r) {
|
|
77
|
+
if (r == null) return null;
|
|
78
|
+
if (typeof r == "function")
|
|
79
|
+
return r.$$typeof === L ? null : r.displayName || r.name || null;
|
|
80
|
+
if (typeof r == "string") return r;
|
|
81
|
+
switch (r) {
|
|
82
|
+
case V:
|
|
121
83
|
return "Fragment";
|
|
122
|
-
case
|
|
84
|
+
case c:
|
|
123
85
|
return "Portal";
|
|
124
|
-
case
|
|
86
|
+
case F:
|
|
125
87
|
return "Profiler";
|
|
126
|
-
case
|
|
88
|
+
case H:
|
|
127
89
|
return "StrictMode";
|
|
128
|
-
case
|
|
90
|
+
case ae:
|
|
129
91
|
return "Suspense";
|
|
130
|
-
case
|
|
92
|
+
case ie:
|
|
131
93
|
return "SuspenseList";
|
|
132
94
|
}
|
|
133
|
-
if (typeof
|
|
134
|
-
switch (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
return
|
|
141
|
-
case
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return
|
|
146
|
-
case
|
|
147
|
-
|
|
95
|
+
if (typeof r == "object")
|
|
96
|
+
switch (typeof r.tag == "number" && console.error(
|
|
97
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
98
|
+
), r.$$typeof) {
|
|
99
|
+
case le:
|
|
100
|
+
return (r.displayName || "Context") + ".Provider";
|
|
101
|
+
case re:
|
|
102
|
+
return (r._context.displayName || "Context") + ".Consumer";
|
|
103
|
+
case oe:
|
|
104
|
+
var p = r.render;
|
|
105
|
+
return r = r.displayName, r || (r = p.displayName || p.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
106
|
+
case K:
|
|
107
|
+
return p = r.displayName || null, p !== null ? p : e(r.type) || "Memo";
|
|
108
|
+
case ce:
|
|
109
|
+
p = r._payload, r = r._init;
|
|
148
110
|
try {
|
|
149
|
-
return
|
|
111
|
+
return e(r(p));
|
|
150
112
|
} catch {
|
|
151
|
-
return null;
|
|
152
113
|
}
|
|
153
|
-
}
|
|
154
114
|
}
|
|
155
115
|
return null;
|
|
156
116
|
}
|
|
157
|
-
|
|
158
|
-
|
|
117
|
+
function s(r) {
|
|
118
|
+
return "" + r;
|
|
159
119
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
configurable: !0,
|
|
167
|
-
enumerable: !0,
|
|
168
|
-
value: C,
|
|
169
|
-
writable: !0
|
|
170
|
-
};
|
|
171
|
-
Object.defineProperties(console, {
|
|
172
|
-
info: e,
|
|
173
|
-
log: e,
|
|
174
|
-
warn: e,
|
|
175
|
-
error: e,
|
|
176
|
-
group: e,
|
|
177
|
-
groupCollapsed: e,
|
|
178
|
-
groupEnd: e
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
de++;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function M() {
|
|
185
|
-
{
|
|
186
|
-
if (de--, de === 0) {
|
|
187
|
-
var e = {
|
|
188
|
-
configurable: !0,
|
|
189
|
-
enumerable: !0,
|
|
190
|
-
writable: !0
|
|
191
|
-
};
|
|
192
|
-
Object.defineProperties(console, {
|
|
193
|
-
log: G({}, e, {
|
|
194
|
-
value: O
|
|
195
|
-
}),
|
|
196
|
-
info: G({}, e, {
|
|
197
|
-
value: N
|
|
198
|
-
}),
|
|
199
|
-
warn: G({}, e, {
|
|
200
|
-
value: I
|
|
201
|
-
}),
|
|
202
|
-
error: G({}, e, {
|
|
203
|
-
value: re
|
|
204
|
-
}),
|
|
205
|
-
group: G({}, e, {
|
|
206
|
-
value: l
|
|
207
|
-
}),
|
|
208
|
-
groupCollapsed: G({}, e, {
|
|
209
|
-
value: f
|
|
210
|
-
}),
|
|
211
|
-
groupEnd: G({}, e, {
|
|
212
|
-
value: w
|
|
213
|
-
})
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
de < 0 && V("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
120
|
+
function o(r) {
|
|
121
|
+
try {
|
|
122
|
+
s(r);
|
|
123
|
+
var p = !1;
|
|
124
|
+
} catch {
|
|
125
|
+
p = !0;
|
|
217
126
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
var x = F.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
-
R = x && x[1] || "";
|
|
228
|
-
}
|
|
229
|
-
return `
|
|
230
|
-
` + R + e;
|
|
127
|
+
if (p) {
|
|
128
|
+
p = console;
|
|
129
|
+
var v = p.error, $ = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
130
|
+
return v.call(
|
|
131
|
+
p,
|
|
132
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
133
|
+
$
|
|
134
|
+
), s(r);
|
|
231
135
|
}
|
|
232
136
|
}
|
|
233
|
-
|
|
234
|
-
{
|
|
235
|
-
var te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
-
P = new te();
|
|
137
|
+
function t() {
|
|
237
138
|
}
|
|
238
|
-
function
|
|
239
|
-
if (
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
139
|
+
function i() {
|
|
140
|
+
if (m === 0) {
|
|
141
|
+
_ = console.log, E = console.info, O = console.warn, P = console.error, A = console.group, k = console.groupCollapsed, J = console.groupEnd;
|
|
142
|
+
var r = {
|
|
143
|
+
configurable: !0,
|
|
144
|
+
enumerable: !0,
|
|
145
|
+
value: t,
|
|
146
|
+
writable: !0
|
|
147
|
+
};
|
|
148
|
+
Object.defineProperties(console, {
|
|
149
|
+
info: r,
|
|
150
|
+
log: r,
|
|
151
|
+
warn: r,
|
|
152
|
+
error: r,
|
|
153
|
+
group: r,
|
|
154
|
+
groupCollapsed: r,
|
|
155
|
+
groupEnd: r
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
m++;
|
|
159
|
+
}
|
|
160
|
+
function a() {
|
|
161
|
+
if (m--, m === 0) {
|
|
162
|
+
var r = { configurable: !0, enumerable: !0, writable: !0 };
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: u({}, r, { value: _ }),
|
|
165
|
+
info: u({}, r, { value: E }),
|
|
166
|
+
warn: u({}, r, { value: O }),
|
|
167
|
+
error: u({}, r, { value: P }),
|
|
168
|
+
group: u({}, r, { value: A }),
|
|
169
|
+
groupCollapsed: u({}, r, { value: k }),
|
|
170
|
+
groupEnd: u({}, r, { value: J })
|
|
171
|
+
});
|
|
245
172
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
173
|
+
0 > m && console.error(
|
|
174
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
function d(r) {
|
|
178
|
+
if (f === void 0)
|
|
179
|
+
try {
|
|
180
|
+
throw Error();
|
|
181
|
+
} catch (v) {
|
|
182
|
+
var p = v.stack.trim().match(/\n( *(at )?)/);
|
|
183
|
+
f = p && p[1] || "", te = -1 < v.stack.indexOf(`
|
|
184
|
+
at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
185
|
+
}
|
|
186
|
+
return `
|
|
187
|
+
` + f + r + te;
|
|
188
|
+
}
|
|
189
|
+
function y(r, p) {
|
|
190
|
+
if (!r || pe) return "";
|
|
191
|
+
var v = me.get(r);
|
|
192
|
+
if (v !== void 0) return v;
|
|
193
|
+
pe = !0, v = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
194
|
+
var $ = null;
|
|
195
|
+
$ = Z.H, Z.H = null, i();
|
|
252
196
|
try {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
throw Error();
|
|
256
|
-
};
|
|
257
|
-
if (Object.defineProperty(D.prototype, "props", {
|
|
258
|
-
set: function() {
|
|
259
|
-
throw Error();
|
|
260
|
-
}
|
|
261
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
197
|
+
var X = {
|
|
198
|
+
DetermineComponentFrameRoot: function() {
|
|
262
199
|
try {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
200
|
+
if (p) {
|
|
201
|
+
var ve = function() {
|
|
202
|
+
throw Error();
|
|
203
|
+
};
|
|
204
|
+
if (Object.defineProperty(ve.prototype, "props", {
|
|
205
|
+
set: function() {
|
|
206
|
+
throw Error();
|
|
207
|
+
}
|
|
208
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
209
|
+
try {
|
|
210
|
+
Reflect.construct(ve, []);
|
|
211
|
+
} catch (fe) {
|
|
212
|
+
var Ee = fe;
|
|
213
|
+
}
|
|
214
|
+
Reflect.construct(r, [], ve);
|
|
215
|
+
} else {
|
|
216
|
+
try {
|
|
217
|
+
ve.call();
|
|
218
|
+
} catch (fe) {
|
|
219
|
+
Ee = fe;
|
|
220
|
+
}
|
|
221
|
+
r.call(ve.prototype);
|
|
222
|
+
}
|
|
223
|
+
} else {
|
|
224
|
+
try {
|
|
225
|
+
throw Error();
|
|
226
|
+
} catch (fe) {
|
|
227
|
+
Ee = fe;
|
|
228
|
+
}
|
|
229
|
+
(ve = r()) && typeof ve.catch == "function" && ve.catch(function() {
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
} catch (fe) {
|
|
233
|
+
if (fe && Ee && typeof fe.stack == "string")
|
|
234
|
+
return [fe.stack, Ee.stack];
|
|
273
235
|
}
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
} else {
|
|
277
|
-
try {
|
|
278
|
-
throw Error();
|
|
279
|
-
} catch (ie) {
|
|
280
|
-
x = ie;
|
|
236
|
+
return [null, null];
|
|
281
237
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
238
|
+
};
|
|
239
|
+
X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
240
|
+
var U = Object.getOwnPropertyDescriptor(
|
|
241
|
+
X.DetermineComponentFrameRoot,
|
|
242
|
+
"name"
|
|
243
|
+
);
|
|
244
|
+
U && U.configurable && Object.defineProperty(
|
|
245
|
+
X.DetermineComponentFrameRoot,
|
|
246
|
+
"name",
|
|
247
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
248
|
+
);
|
|
249
|
+
var T = X.DetermineComponentFrameRoot(), ue = T[0], xe = T[1];
|
|
250
|
+
if (ue && xe) {
|
|
251
|
+
var Q = ue.split(`
|
|
252
|
+
`), he = xe.split(`
|
|
253
|
+
`);
|
|
254
|
+
for (T = U = 0; U < Q.length && !Q[U].includes(
|
|
255
|
+
"DetermineComponentFrameRoot"
|
|
256
|
+
); )
|
|
257
|
+
U++;
|
|
258
|
+
for (; T < he.length && !he[T].includes(
|
|
259
|
+
"DetermineComponentFrameRoot"
|
|
260
|
+
); )
|
|
261
|
+
T++;
|
|
262
|
+
if (U === Q.length || T === he.length)
|
|
263
|
+
for (U = Q.length - 1, T = he.length - 1; 1 <= U && 0 <= T && Q[U] !== he[T]; )
|
|
264
|
+
T--;
|
|
265
|
+
for (; 1 <= U && 0 <= T; U--, T--)
|
|
266
|
+
if (Q[U] !== he[T]) {
|
|
267
|
+
if (U !== 1 || T !== 1)
|
|
293
268
|
do
|
|
294
|
-
if (
|
|
295
|
-
var
|
|
296
|
-
` +
|
|
297
|
-
|
|
269
|
+
if (U--, T--, 0 > T || Q[U] !== he[T]) {
|
|
270
|
+
var be = `
|
|
271
|
+
` + Q[U].replace(
|
|
272
|
+
" at new ",
|
|
273
|
+
" at "
|
|
274
|
+
);
|
|
275
|
+
return r.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", r.displayName)), typeof r == "function" && me.set(r, be), be;
|
|
298
276
|
}
|
|
299
|
-
while (
|
|
277
|
+
while (1 <= U && 0 <= T);
|
|
300
278
|
break;
|
|
301
279
|
}
|
|
302
280
|
}
|
|
303
281
|
} finally {
|
|
304
|
-
|
|
282
|
+
pe = !1, Z.H = $, a(), Error.prepareStackTrace = v;
|
|
283
|
+
}
|
|
284
|
+
return Q = (Q = r ? r.displayName || r.name : "") ? d(Q) : "", typeof r == "function" && me.set(r, Q), Q;
|
|
285
|
+
}
|
|
286
|
+
function h(r) {
|
|
287
|
+
if (r == null) return "";
|
|
288
|
+
if (typeof r == "function") {
|
|
289
|
+
var p = r.prototype;
|
|
290
|
+
return y(
|
|
291
|
+
r,
|
|
292
|
+
!(!p || !p.isReactComponent)
|
|
293
|
+
);
|
|
305
294
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
function xe(e) {
|
|
313
|
-
var c = e.prototype;
|
|
314
|
-
return !!(c && c.isReactComponent);
|
|
315
|
-
}
|
|
316
|
-
function ye(e, c, v) {
|
|
317
|
-
if (e == null)
|
|
318
|
-
return "";
|
|
319
|
-
if (typeof e == "function")
|
|
320
|
-
return d(e, xe(e));
|
|
321
|
-
if (typeof e == "string")
|
|
322
|
-
return S(e);
|
|
323
|
-
switch (e) {
|
|
324
|
-
case b:
|
|
325
|
-
return S("Suspense");
|
|
326
|
-
case y:
|
|
327
|
-
return S("SuspenseList");
|
|
295
|
+
if (typeof r == "string") return d(r);
|
|
296
|
+
switch (r) {
|
|
297
|
+
case ae:
|
|
298
|
+
return d("Suspense");
|
|
299
|
+
case ie:
|
|
300
|
+
return d("SuspenseList");
|
|
328
301
|
}
|
|
329
|
-
if (typeof
|
|
330
|
-
switch (
|
|
331
|
-
case
|
|
332
|
-
return
|
|
333
|
-
case
|
|
334
|
-
return
|
|
335
|
-
case
|
|
336
|
-
|
|
302
|
+
if (typeof r == "object")
|
|
303
|
+
switch (r.$$typeof) {
|
|
304
|
+
case oe:
|
|
305
|
+
return r = y(r.render, !1), r;
|
|
306
|
+
case K:
|
|
307
|
+
return h(r.type);
|
|
308
|
+
case ce:
|
|
309
|
+
p = r._payload, r = r._init;
|
|
337
310
|
try {
|
|
338
|
-
return
|
|
311
|
+
return h(r(p));
|
|
339
312
|
} catch {
|
|
340
313
|
}
|
|
341
|
-
}
|
|
342
314
|
}
|
|
343
315
|
return "";
|
|
344
316
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
var c = e._owner, v = ye(e.type, e._source, c ? c.type : null);
|
|
349
|
-
tr.setExtraStackFrame(v);
|
|
350
|
-
} else
|
|
351
|
-
tr.setExtraStackFrame(null);
|
|
317
|
+
function b() {
|
|
318
|
+
var r = Z.A;
|
|
319
|
+
return r === null ? null : r.getOwner();
|
|
352
320
|
}
|
|
353
|
-
function
|
|
354
|
-
{
|
|
355
|
-
var
|
|
356
|
-
|
|
357
|
-
if (U(e, D)) {
|
|
358
|
-
var k = void 0;
|
|
359
|
-
try {
|
|
360
|
-
if (typeof e[D] != "function") {
|
|
361
|
-
var oe = Error((x || "React class") + ": " + v + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
|
-
throw oe.name = "Invariant Violation", oe;
|
|
363
|
-
}
|
|
364
|
-
k = e[D](c, D, x, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
|
-
} catch (K) {
|
|
366
|
-
k = K;
|
|
367
|
-
}
|
|
368
|
-
k && !(k instanceof Error) && (Oe(F), V("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", v, D, typeof k), Oe(null)), k instanceof Error && !(k.message in rr) && (rr[k.message] = !0, Oe(F), V("Failed %s type: %s", v, k.message), Oe(null));
|
|
369
|
-
}
|
|
321
|
+
function g(r) {
|
|
322
|
+
if (l.call(r, "key")) {
|
|
323
|
+
var p = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
324
|
+
if (p && p.isReactWarning) return !1;
|
|
370
325
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
return v;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function Dr(e) {
|
|
383
|
-
try {
|
|
384
|
-
return nr(e), !1;
|
|
385
|
-
} catch {
|
|
386
|
-
return !0;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
function nr(e) {
|
|
390
|
-
return "" + e;
|
|
391
|
-
}
|
|
392
|
-
function or(e) {
|
|
393
|
-
if (Dr(e))
|
|
394
|
-
return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mr(e)), nr(e);
|
|
395
|
-
}
|
|
396
|
-
var ar = z.ReactCurrentOwner, $r = {
|
|
397
|
-
key: !0,
|
|
398
|
-
ref: !0,
|
|
399
|
-
__self: !0,
|
|
400
|
-
__source: !0
|
|
401
|
-
}, ir, sr;
|
|
402
|
-
function Ar(e) {
|
|
403
|
-
if (je.call(e, "ref")) {
|
|
404
|
-
var c = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
405
|
-
if (c && c.isReactWarning)
|
|
406
|
-
return !1;
|
|
407
|
-
}
|
|
408
|
-
return e.ref !== void 0;
|
|
409
|
-
}
|
|
410
|
-
function Fr(e) {
|
|
411
|
-
if (je.call(e, "key")) {
|
|
412
|
-
var c = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
413
|
-
if (c && c.isReactWarning)
|
|
414
|
-
return !1;
|
|
415
|
-
}
|
|
416
|
-
return e.key !== void 0;
|
|
417
|
-
}
|
|
418
|
-
function Wr(e, c) {
|
|
419
|
-
typeof e.ref == "string" && ar.current;
|
|
420
|
-
}
|
|
421
|
-
function Yr(e, c) {
|
|
422
|
-
{
|
|
423
|
-
var v = function() {
|
|
424
|
-
ir || (ir = !0, V("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
425
|
-
};
|
|
426
|
-
v.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
427
|
-
get: v,
|
|
428
|
-
configurable: !0
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
function Vr(e, c) {
|
|
433
|
-
{
|
|
434
|
-
var v = function() {
|
|
435
|
-
sr || (sr = !0, V("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
436
|
-
};
|
|
437
|
-
v.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
438
|
-
get: v,
|
|
439
|
-
configurable: !0
|
|
440
|
-
});
|
|
326
|
+
return r.key !== void 0;
|
|
327
|
+
}
|
|
328
|
+
function j(r, p) {
|
|
329
|
+
function v() {
|
|
330
|
+
Ze || (Ze = !0, console.error(
|
|
331
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
332
|
+
p
|
|
333
|
+
));
|
|
441
334
|
}
|
|
335
|
+
v.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
336
|
+
get: v,
|
|
337
|
+
configurable: !0
|
|
338
|
+
});
|
|
442
339
|
}
|
|
443
|
-
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
340
|
+
function M() {
|
|
341
|
+
var r = e(this.type);
|
|
342
|
+
return He[r] || (He[r] = !0, console.error(
|
|
343
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
344
|
+
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
345
|
+
}
|
|
346
|
+
function z(r, p, v, $, X, U) {
|
|
347
|
+
return v = U.ref, r = {
|
|
348
|
+
$$typeof: D,
|
|
349
|
+
type: r,
|
|
350
|
+
key: p,
|
|
351
|
+
props: U,
|
|
352
|
+
_owner: X
|
|
353
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(r, "ref", {
|
|
457
354
|
enumerable: !1,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}), Object.defineProperty(k, "_self", {
|
|
355
|
+
get: M
|
|
356
|
+
}) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
|
|
461
357
|
configurable: !1,
|
|
462
358
|
enumerable: !1,
|
|
463
|
-
writable: !
|
|
464
|
-
value:
|
|
465
|
-
}), Object.defineProperty(
|
|
359
|
+
writable: !0,
|
|
360
|
+
value: 0
|
|
361
|
+
}), Object.defineProperty(r, "_debugInfo", {
|
|
466
362
|
configurable: !1,
|
|
467
363
|
enumerable: !1,
|
|
468
|
-
writable: !
|
|
469
|
-
value:
|
|
470
|
-
}), Object.freeze && (Object.freeze(
|
|
471
|
-
}
|
|
472
|
-
function
|
|
473
|
-
{
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
return zr(e, k, oe, F, x, ar.current, D);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
var Ne = z.ReactCurrentOwner, lr = z.ReactDebugCurrentFrame;
|
|
491
|
-
function we(e) {
|
|
492
|
-
if (e) {
|
|
493
|
-
var c = e._owner, v = ye(e.type, e._source, c ? c.type : null);
|
|
494
|
-
lr.setExtraStackFrame(v);
|
|
364
|
+
writable: !0,
|
|
365
|
+
value: null
|
|
366
|
+
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
367
|
+
}
|
|
368
|
+
function B(r, p, v, $, X, U) {
|
|
369
|
+
if (typeof r == "string" || typeof r == "function" || r === V || r === F || r === H || r === ae || r === ie || r === S || typeof r == "object" && r !== null && (r.$$typeof === ce || r.$$typeof === K || r.$$typeof === le || r.$$typeof === re || r.$$typeof === oe || r.$$typeof === w || r.getModuleId !== void 0)) {
|
|
370
|
+
var T = p.children;
|
|
371
|
+
if (T !== void 0)
|
|
372
|
+
if ($)
|
|
373
|
+
if (x(T)) {
|
|
374
|
+
for ($ = 0; $ < T.length; $++)
|
|
375
|
+
R(T[$], r);
|
|
376
|
+
Object.freeze && Object.freeze(T);
|
|
377
|
+
} else
|
|
378
|
+
console.error(
|
|
379
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
380
|
+
);
|
|
381
|
+
else R(T, r);
|
|
495
382
|
} else
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
return `
|
|
509
|
-
|
|
510
|
-
Check the render method of \`` + e + "`.";
|
|
511
|
-
}
|
|
512
|
-
return "";
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function qr(e) {
|
|
516
|
-
return "";
|
|
517
|
-
}
|
|
518
|
-
var ur = {};
|
|
519
|
-
function Br(e) {
|
|
520
|
-
{
|
|
521
|
-
var c = cr();
|
|
522
|
-
if (!c) {
|
|
523
|
-
var v = typeof e == "string" ? e : e.displayName || e.name;
|
|
524
|
-
v && (c = `
|
|
525
|
-
|
|
526
|
-
Check the top-level render call using <` + v + ">.");
|
|
527
|
-
}
|
|
528
|
-
return c;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
function fr(e, c) {
|
|
532
|
-
{
|
|
533
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
534
|
-
return;
|
|
535
|
-
e._store.validated = !0;
|
|
536
|
-
var v = Br(c);
|
|
537
|
-
if (ur[v])
|
|
538
|
-
return;
|
|
539
|
-
ur[v] = !0;
|
|
540
|
-
var x = "";
|
|
541
|
-
e && e._owner && e._owner !== Ne.current && (x = " It was passed a child from " + Q(e._owner.type) + "."), we(e), V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, x), we(null);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
function dr(e, c) {
|
|
545
|
-
{
|
|
546
|
-
if (typeof e != "object")
|
|
547
|
-
return;
|
|
548
|
-
if (Le(e))
|
|
549
|
-
for (var v = 0; v < e.length; v++) {
|
|
550
|
-
var x = e[v];
|
|
551
|
-
Me(x) && fr(x, c);
|
|
552
|
-
}
|
|
553
|
-
else if (Me(e))
|
|
554
|
-
e._store && (e._store.validated = !0);
|
|
555
|
-
else if (e) {
|
|
556
|
-
var F = q(e);
|
|
557
|
-
if (typeof F == "function" && F !== e.entries)
|
|
558
|
-
for (var U = F.call(e), D; !(D = U.next()).done; )
|
|
559
|
-
Me(D.value) && fr(D.value, c);
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function Zr(e) {
|
|
564
|
-
{
|
|
565
|
-
var c = e.type;
|
|
566
|
-
if (c == null || typeof c == "string")
|
|
567
|
-
return;
|
|
568
|
-
var v;
|
|
569
|
-
if (typeof c == "function")
|
|
570
|
-
v = c.propTypes;
|
|
571
|
-
else if (typeof c == "object" && (c.$$typeof === p || // Note: Memo only checks outer props here.
|
|
572
|
-
// Inner props are checked in the reconciler.
|
|
573
|
-
c.$$typeof === m))
|
|
574
|
-
v = c.propTypes;
|
|
575
|
-
else
|
|
576
|
-
return;
|
|
577
|
-
if (v) {
|
|
578
|
-
var x = Q(c);
|
|
579
|
-
Nr(v, e.props, "prop", x, e);
|
|
580
|
-
} else if (c.PropTypes !== void 0 && !Ie) {
|
|
581
|
-
Ie = !0;
|
|
582
|
-
var F = Q(c);
|
|
583
|
-
V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
|
|
584
|
-
}
|
|
585
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
function Jr(e) {
|
|
589
|
-
{
|
|
590
|
-
for (var c = Object.keys(e.props), v = 0; v < c.length; v++) {
|
|
591
|
-
var x = c[v];
|
|
592
|
-
if (x !== "children" && x !== "key") {
|
|
593
|
-
we(e), V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), we(null);
|
|
594
|
-
break;
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
e.ref !== null && (we(e), V("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
var pr = {};
|
|
601
|
-
function vr(e, c, v, x, F, U) {
|
|
602
|
-
{
|
|
603
|
-
var D = pe(e);
|
|
604
|
-
if (!D) {
|
|
605
|
-
var k = "";
|
|
606
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
607
|
-
var oe = qr();
|
|
608
|
-
oe ? k += oe : k += cr();
|
|
609
|
-
var K;
|
|
610
|
-
e === null ? K = "null" : Le(e) ? K = "array" : e !== void 0 && e.$$typeof === i ? (K = "<" + (Q(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : K = typeof e, V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, k);
|
|
611
|
-
}
|
|
612
|
-
var X = Ur(e, c, v, F, U);
|
|
613
|
-
if (X == null)
|
|
614
|
-
return X;
|
|
615
|
-
if (D) {
|
|
616
|
-
var ce = c.children;
|
|
617
|
-
if (ce !== void 0)
|
|
618
|
-
if (x)
|
|
619
|
-
if (Le(ce)) {
|
|
620
|
-
for (var Ce = 0; Ce < ce.length; Ce++)
|
|
621
|
-
dr(ce[Ce], e);
|
|
622
|
-
Object.freeze && Object.freeze(ce);
|
|
623
|
-
} else
|
|
624
|
-
V("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
625
|
-
else
|
|
626
|
-
dr(ce, e);
|
|
627
|
-
}
|
|
628
|
-
if (je.call(c, "key")) {
|
|
629
|
-
var ge = Q(e), ie = Object.keys(c).filter(function(et) {
|
|
630
|
-
return et !== "key";
|
|
631
|
-
}), De = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
632
|
-
if (!pr[ge + De]) {
|
|
633
|
-
var Qr = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
|
|
634
|
-
V(`A props object containing a "key" prop is being spread into JSX:
|
|
383
|
+
T = "", (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), r === null ? $ = "null" : x(r) ? $ = "array" : r !== void 0 && r.$$typeof === D ? ($ = "<" + (e(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof r, console.error(
|
|
384
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
385
|
+
$,
|
|
386
|
+
T
|
|
387
|
+
);
|
|
388
|
+
if (l.call(p, "key")) {
|
|
389
|
+
T = e(r);
|
|
390
|
+
var ue = Object.keys(p).filter(function(Q) {
|
|
391
|
+
return Q !== "key";
|
|
392
|
+
});
|
|
393
|
+
$ = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", Je[T + $] || (ue = 0 < ue.length ? "{" + ue.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
394
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
635
395
|
let props = %s;
|
|
636
396
|
<%s {...props} />
|
|
637
397
|
React keys must be passed directly to JSX without using spread:
|
|
638
398
|
let props = %s;
|
|
639
|
-
<%s key={someKey} {...props} />`,
|
|
399
|
+
<%s key={someKey} {...props} />`,
|
|
400
|
+
$,
|
|
401
|
+
T,
|
|
402
|
+
ue,
|
|
403
|
+
T
|
|
404
|
+
), Je[T + $] = !0);
|
|
405
|
+
}
|
|
406
|
+
if (T = null, v !== void 0 && (o(v), T = "" + v), g(p) && (o(p.key), T = "" + p.key), "key" in p) {
|
|
407
|
+
v = {};
|
|
408
|
+
for (var xe in p)
|
|
409
|
+
xe !== "key" && (v[xe] = p[xe]);
|
|
410
|
+
} else v = p;
|
|
411
|
+
return T && j(
|
|
412
|
+
v,
|
|
413
|
+
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
414
|
+
), z(r, T, U, X, b(), v);
|
|
415
|
+
}
|
|
416
|
+
function R(r, p) {
|
|
417
|
+
if (typeof r == "object" && r && r.$$typeof !== hr) {
|
|
418
|
+
if (x(r))
|
|
419
|
+
for (var v = 0; v < r.length; v++) {
|
|
420
|
+
var $ = r[v];
|
|
421
|
+
W($) && q($, p);
|
|
640
422
|
}
|
|
641
|
-
|
|
642
|
-
|
|
423
|
+
else if (W(r))
|
|
424
|
+
r._store && (r._store.validated = 1);
|
|
425
|
+
else if (r === null || typeof r != "object" ? v = null : (v = N && r[N] || r["@@iterator"], v = typeof v == "function" ? v : null), typeof v == "function" && v !== r.entries && (v = v.call(r), v !== r))
|
|
426
|
+
for (; !(r = v.next()).done; )
|
|
427
|
+
W(r.value) && q(r.value, p);
|
|
643
428
|
}
|
|
644
429
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
647
|
-
}
|
|
648
|
-
function
|
|
649
|
-
|
|
430
|
+
function W(r) {
|
|
431
|
+
return typeof r == "object" && r !== null && r.$$typeof === D;
|
|
432
|
+
}
|
|
433
|
+
function q(r, p) {
|
|
434
|
+
if (r._store && !r._store.validated && r.key == null && (r._store.validated = 1, p = ee(p), !Xe[p])) {
|
|
435
|
+
Xe[p] = !0;
|
|
436
|
+
var v = "";
|
|
437
|
+
r && r._owner != null && r._owner !== b() && (v = null, typeof r._owner.tag == "number" ? v = e(r._owner.type) : typeof r._owner.name == "string" && (v = r._owner.name), v = " It was passed a child from " + v + ".");
|
|
438
|
+
var $ = Z.getCurrentStack;
|
|
439
|
+
Z.getCurrentStack = function() {
|
|
440
|
+
var X = h(r.type);
|
|
441
|
+
return $ && (X += $() || ""), X;
|
|
442
|
+
}, console.error(
|
|
443
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
444
|
+
p,
|
|
445
|
+
v
|
|
446
|
+
), Z.getCurrentStack = $;
|
|
447
|
+
}
|
|
650
448
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
449
|
+
function ee(r) {
|
|
450
|
+
var p = "", v = b();
|
|
451
|
+
return v && (v = e(v.type)) && (p = `
|
|
452
|
+
|
|
453
|
+
Check the render method of \`` + v + "`."), p || (r = e(r)) && (p = `
|
|
454
|
+
|
|
455
|
+
Check the top-level render call using <` + r + ">."), p;
|
|
456
|
+
}
|
|
457
|
+
var C = ne, D = Symbol.for("react.transitional.element"), c = Symbol.for("react.portal"), V = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), le = Symbol.for("react.context"), oe = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), N = Symbol.iterator, L = Symbol.for("react.client.reference"), Z = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, l = Object.prototype.hasOwnProperty, u = Object.assign, w = Symbol.for("react.client.reference"), x = Array.isArray, m = 0, _, E, O, P, A, k, J;
|
|
458
|
+
t.__reactDisabledLog = !0;
|
|
459
|
+
var f, te, pe = !1, me = new (typeof WeakMap == "function" ? WeakMap : Map)(), hr = Symbol.for("react.client.reference"), Ze, He = {}, Je = {}, Xe = {};
|
|
460
|
+
je.Fragment = V, je.jsx = function(r, p, v, $, X) {
|
|
461
|
+
return B(r, p, v, !1, $, X);
|
|
462
|
+
}, je.jsxs = function(r, p, v, $, X) {
|
|
463
|
+
return B(r, p, v, !0, $, X);
|
|
464
|
+
};
|
|
465
|
+
}()), je;
|
|
654
466
|
}
|
|
655
|
-
var
|
|
656
|
-
function
|
|
657
|
-
return
|
|
467
|
+
var Qe;
|
|
468
|
+
function jr() {
|
|
469
|
+
return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? Te.exports = br() : Te.exports = wr()), Te.exports;
|
|
658
470
|
}
|
|
659
|
-
var n =
|
|
660
|
-
const
|
|
661
|
-
isOpen:
|
|
662
|
-
onClose:
|
|
471
|
+
var n = jr();
|
|
472
|
+
const Cr = ({
|
|
473
|
+
isOpen: e,
|
|
474
|
+
onClose: s,
|
|
663
475
|
onConfirm: o,
|
|
664
476
|
header: t,
|
|
665
|
-
question:
|
|
666
|
-
}) =>
|
|
477
|
+
question: i
|
|
478
|
+
}) => e ? /* @__PURE__ */ n.jsx(
|
|
667
479
|
"div",
|
|
668
480
|
{
|
|
669
481
|
id: "default-modal",
|
|
@@ -681,7 +493,7 @@ const lt = ({
|
|
|
681
493
|
{
|
|
682
494
|
type: "button",
|
|
683
495
|
className: "text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 inline-flex justify-center items-center",
|
|
684
|
-
onClick:
|
|
496
|
+
onClick: s,
|
|
685
497
|
children: [
|
|
686
498
|
/* @__PURE__ */ n.jsx(
|
|
687
499
|
"svg",
|
|
@@ -709,7 +521,7 @@ const lt = ({
|
|
|
709
521
|
)
|
|
710
522
|
] }),
|
|
711
523
|
/* @__PURE__ */ n.jsx("div", { className: "p-4 md:p-5 space-y-4", children: /* @__PURE__ */ n.jsxs("p", { className: "text-base leading-relaxed text-gray-500 dark:text-gray-400", children: [
|
|
712
|
-
|
|
524
|
+
i,
|
|
713
525
|
" "
|
|
714
526
|
] }) }),
|
|
715
527
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center p-4 md:p-5 border-t border-gray-200 rounded-b dark:border-gray-600", children: [
|
|
@@ -717,7 +529,7 @@ const lt = ({
|
|
|
717
529
|
"button",
|
|
718
530
|
{
|
|
719
531
|
onClick: () => {
|
|
720
|
-
o(),
|
|
532
|
+
o(), s();
|
|
721
533
|
},
|
|
722
534
|
type: "button",
|
|
723
535
|
className: "text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",
|
|
@@ -727,7 +539,7 @@ const lt = ({
|
|
|
727
539
|
/* @__PURE__ */ n.jsx(
|
|
728
540
|
"button",
|
|
729
541
|
{
|
|
730
|
-
onClick:
|
|
542
|
+
onClick: s,
|
|
731
543
|
type: "button",
|
|
732
544
|
className: "py-2.5 px-5 ms-3 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700",
|
|
733
545
|
children: "Cancel"
|
|
@@ -736,14 +548,14 @@ const lt = ({
|
|
|
736
548
|
] })
|
|
737
549
|
] }) })
|
|
738
550
|
}
|
|
739
|
-
) : null,
|
|
740
|
-
items:
|
|
741
|
-
isVisible:
|
|
551
|
+
) : null, Er = ({
|
|
552
|
+
items: e,
|
|
553
|
+
isVisible: s,
|
|
742
554
|
position: o,
|
|
743
555
|
messageId: t,
|
|
744
|
-
isCurrentUserMessage:
|
|
745
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
746
|
-
|
|
556
|
+
isCurrentUserMessage: i
|
|
557
|
+
}) => /* @__PURE__ */ n.jsx(dr, { children: s && /* @__PURE__ */ n.jsx(
|
|
558
|
+
We.div,
|
|
747
559
|
{
|
|
748
560
|
initial: { opacity: 0, scale: 0.8, y: -10 },
|
|
749
561
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
@@ -751,13 +563,13 @@ const lt = ({
|
|
|
751
563
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
752
564
|
className: "absolute z-20 bg-white shadow-lg rounded-md p-2 px-1 w-42",
|
|
753
565
|
style: { top: o.y, left: o.x },
|
|
754
|
-
children:
|
|
566
|
+
children: e.map((a, d) => a != null && a.onlyCurrentUserMessage && !i ? null : /* @__PURE__ */ n.jsxs(
|
|
755
567
|
"button",
|
|
756
568
|
{
|
|
757
569
|
className: "cursor-pointer flex items-center gap-2 w-full rounded-md text-left px-2 py-1 hover:bg-gray-200",
|
|
758
570
|
onClick: () => a.onClick(t),
|
|
759
571
|
children: [
|
|
760
|
-
|
|
572
|
+
ne.cloneElement(a.icon, {
|
|
761
573
|
className: "text-black",
|
|
762
574
|
size: 18
|
|
763
575
|
}),
|
|
@@ -765,10 +577,10 @@ const lt = ({
|
|
|
765
577
|
/* @__PURE__ */ n.jsx("span", { className: "ml-2 text-black", children: a.name })
|
|
766
578
|
]
|
|
767
579
|
},
|
|
768
|
-
|
|
580
|
+
d
|
|
769
581
|
))
|
|
770
582
|
}
|
|
771
|
-
) }),
|
|
583
|
+
) }), Tr = () => /* @__PURE__ */ n.jsx(
|
|
772
584
|
"svg",
|
|
773
585
|
{
|
|
774
586
|
width: "21",
|
|
@@ -784,7 +596,7 @@ const lt = ({
|
|
|
784
596
|
}
|
|
785
597
|
)
|
|
786
598
|
}
|
|
787
|
-
),
|
|
599
|
+
), Or = () => /* @__PURE__ */ n.jsx(
|
|
788
600
|
"svg",
|
|
789
601
|
{
|
|
790
602
|
width: "14",
|
|
@@ -800,7 +612,7 @@ const lt = ({
|
|
|
800
612
|
}
|
|
801
613
|
)
|
|
802
614
|
}
|
|
803
|
-
),
|
|
615
|
+
), er = () => /* @__PURE__ */ n.jsx(
|
|
804
616
|
"svg",
|
|
805
617
|
{
|
|
806
618
|
width: "17",
|
|
@@ -816,7 +628,7 @@ const lt = ({
|
|
|
816
628
|
}
|
|
817
629
|
)
|
|
818
630
|
}
|
|
819
|
-
),
|
|
631
|
+
), De = (e) => /* @__PURE__ */ n.jsx("svg", { width: "17px", height: "22px", viewBox: "0 0 9 20", ...e, children: /* @__PURE__ */ n.jsxs("g", { fill: "none", children: [
|
|
820
632
|
/* @__PURE__ */ n.jsx(
|
|
821
633
|
"path",
|
|
822
634
|
{
|
|
@@ -846,77 +658,77 @@ const lt = ({
|
|
|
846
658
|
d: "M9,1 L2,1 C1.72,1 1.452,1.118 1.263,1.325 C0.89,1.732 0.917,2.365 1.325,2.738 C3.504,4.733 5.046,6.893 5.95,9.218 C7.124,12.233 7.807,15.161 8,18 L8,20 L9,20 L9,1 Z M2,0.667 L9,0.667 L9,20 L7.667,20 L7.667,20 L7.668,18.023 C7.477,15.218 6.802,12.324 5.64,9.338 C4.755,7.064 3.243,4.946 1.1,2.983 C0.557,2.486 0.52,1.643 1.017,1.1 C1.269,0.824 1.626,0.667 2,0.667 Z"
|
|
847
659
|
}
|
|
848
660
|
)
|
|
849
|
-
] }) }),
|
|
850
|
-
onSendMessage:
|
|
851
|
-
onSendVoice:
|
|
661
|
+
] }) }), Sr = ({
|
|
662
|
+
onSendMessage: e,
|
|
663
|
+
onSendVoice: s,
|
|
852
664
|
onFileSend: o,
|
|
853
665
|
dynamicSymbolAssignments: t
|
|
854
666
|
}) => {
|
|
855
|
-
const [
|
|
856
|
-
const N =
|
|
667
|
+
const [i, a] = se(""), [d, y] = se(!1), [h, b] = se(0), [g, j] = se(null), [M, z] = se(null), [B, R] = se(0), W = ye(null), q = ye([]), ee = ye(null), C = ye(null), D = ye(null), [c, V] = se(!1), H = (S) => {
|
|
668
|
+
const N = S.target.value;
|
|
857
669
|
a(N);
|
|
858
|
-
const
|
|
859
|
-
if (
|
|
860
|
-
const
|
|
861
|
-
if (
|
|
862
|
-
const l =
|
|
863
|
-
|
|
670
|
+
const L = N.match(/(\S+)$/);
|
|
671
|
+
if (L) {
|
|
672
|
+
const Z = L[0];
|
|
673
|
+
if (g) {
|
|
674
|
+
const l = L[0].split(g)[1];
|
|
675
|
+
z(l);
|
|
864
676
|
}
|
|
865
|
-
t != null && t.some((l) => l.symbol ===
|
|
677
|
+
t != null && t.some((l) => l.symbol === Z) && j(Z);
|
|
866
678
|
} else
|
|
867
|
-
|
|
868
|
-
},
|
|
869
|
-
a((
|
|
870
|
-
},
|
|
871
|
-
|
|
872
|
-
},
|
|
873
|
-
|
|
874
|
-
b((
|
|
679
|
+
j(null);
|
|
680
|
+
}, F = (S, N) => {
|
|
681
|
+
a((L) => L + N + " "), j(null), C.current.focus();
|
|
682
|
+
}, re = () => {
|
|
683
|
+
i.trim() !== "" && (e(i), a(""), j(null));
|
|
684
|
+
}, le = async () => {
|
|
685
|
+
y(!0), b(0), q.current = [], ee.current = setInterval(() => {
|
|
686
|
+
b((L) => L + 1);
|
|
875
687
|
}, 1e3);
|
|
876
|
-
const
|
|
877
|
-
|
|
878
|
-
|
|
688
|
+
const S = await navigator.mediaDevices.getUserMedia({ audio: !0 }), N = new MediaRecorder(S);
|
|
689
|
+
W.current = N, N.ondataavailable = (L) => {
|
|
690
|
+
L.data.size > 0 && q.current.push(L.data);
|
|
879
691
|
}, N.onstop = () => {
|
|
880
|
-
clearInterval(
|
|
881
|
-
const
|
|
882
|
-
|
|
692
|
+
clearInterval(ee.current);
|
|
693
|
+
const L = new Blob(q.current, { type: "audio/mp3" }), Z = URL.createObjectURL(L);
|
|
694
|
+
s(Z), y(!1);
|
|
883
695
|
}, N.start();
|
|
884
|
-
},
|
|
885
|
-
var
|
|
886
|
-
(
|
|
887
|
-
},
|
|
888
|
-
var
|
|
889
|
-
(
|
|
890
|
-
},
|
|
891
|
-
var
|
|
892
|
-
const N = (
|
|
696
|
+
}, oe = () => {
|
|
697
|
+
var S;
|
|
698
|
+
(S = W.current) == null || S.stop();
|
|
699
|
+
}, ae = () => {
|
|
700
|
+
var S;
|
|
701
|
+
(S = D.current) == null || S.click();
|
|
702
|
+
}, ie = (S) => {
|
|
703
|
+
var L;
|
|
704
|
+
const N = (L = S.target.files) == null ? void 0 : L[0];
|
|
893
705
|
N && o(N);
|
|
894
|
-
},
|
|
895
|
-
const N = Math.floor(
|
|
896
|
-
return `${N.toString().padStart(2, "0")}:${
|
|
897
|
-
},
|
|
898
|
-
const { scrollTop: N, scrollHeight:
|
|
899
|
-
if (N >
|
|
900
|
-
if (N +
|
|
901
|
-
const
|
|
902
|
-
(w) => w.symbol ===
|
|
706
|
+
}, K = (S) => {
|
|
707
|
+
const N = Math.floor(S / 60), L = S % 60;
|
|
708
|
+
return `${N.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
|
|
709
|
+
}, ce = (S) => {
|
|
710
|
+
const { scrollTop: N, scrollHeight: L, clientHeight: Z } = S.currentTarget;
|
|
711
|
+
if (N > B) {
|
|
712
|
+
if (N + Z >= L - 1) {
|
|
713
|
+
const u = t == null ? void 0 : t.find(
|
|
714
|
+
(w) => w.symbol === g
|
|
903
715
|
);
|
|
904
|
-
|
|
905
|
-
|
|
716
|
+
u && (u != null && u.updatePageNumber) && (V(!0), u == null || u.updatePageNumber(u.pagNumber + 1), R(N), setTimeout(() => {
|
|
717
|
+
V(!1);
|
|
906
718
|
}, 500));
|
|
907
719
|
}
|
|
908
720
|
} else
|
|
909
|
-
|
|
721
|
+
R(N);
|
|
910
722
|
};
|
|
911
723
|
return /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
|
|
912
|
-
|
|
913
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children:
|
|
724
|
+
d ? /* @__PURE__ */ n.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
|
|
725
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children: K(h) }),
|
|
914
726
|
/* @__PURE__ */ n.jsx(
|
|
915
727
|
"button",
|
|
916
728
|
{
|
|
917
729
|
className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
|
|
918
|
-
onClick:
|
|
919
|
-
children: /* @__PURE__ */ n.jsx(
|
|
730
|
+
onClick: oe,
|
|
731
|
+
children: /* @__PURE__ */ n.jsx(er, {})
|
|
920
732
|
}
|
|
921
733
|
)
|
|
922
734
|
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -924,71 +736,71 @@ const lt = ({
|
|
|
924
736
|
/* @__PURE__ */ n.jsx(
|
|
925
737
|
"div",
|
|
926
738
|
{
|
|
927
|
-
onClick:
|
|
739
|
+
onClick: ae,
|
|
928
740
|
className: "cursor-pointer absolute right-4 top-[11px]",
|
|
929
|
-
children: /* @__PURE__ */ n.jsx(
|
|
741
|
+
children: /* @__PURE__ */ n.jsx(Tr, {})
|
|
930
742
|
}
|
|
931
743
|
),
|
|
932
744
|
/* @__PURE__ */ n.jsx(
|
|
933
745
|
"input",
|
|
934
746
|
{
|
|
935
747
|
type: "file",
|
|
936
|
-
ref:
|
|
748
|
+
ref: D,
|
|
937
749
|
style: { display: "none" },
|
|
938
|
-
onChange:
|
|
750
|
+
onChange: ie
|
|
939
751
|
}
|
|
940
752
|
),
|
|
941
753
|
/* @__PURE__ */ n.jsx(
|
|
942
754
|
"input",
|
|
943
755
|
{
|
|
944
756
|
type: "text",
|
|
945
|
-
ref:
|
|
757
|
+
ref: C,
|
|
946
758
|
className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl ",
|
|
947
759
|
placeholder: "Type a message...",
|
|
948
|
-
value:
|
|
949
|
-
onChange:
|
|
950
|
-
onKeyDown: (
|
|
951
|
-
|
|
760
|
+
value: i,
|
|
761
|
+
onChange: H,
|
|
762
|
+
onKeyDown: (S) => {
|
|
763
|
+
S.key === "Enter" && !S.shiftKey && (S.preventDefault(), re());
|
|
952
764
|
}
|
|
953
765
|
}
|
|
954
766
|
),
|
|
955
|
-
/* @__PURE__ */ n.jsx(
|
|
767
|
+
/* @__PURE__ */ n.jsx(De, { className: "rotate-180 absolute -right-[11.4px] top-5" })
|
|
956
768
|
] }),
|
|
957
769
|
/* @__PURE__ */ n.jsx(
|
|
958
770
|
"button",
|
|
959
771
|
{
|
|
960
772
|
className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
|
|
961
|
-
onClick:
|
|
962
|
-
children:
|
|
773
|
+
onClick: i ? re : le,
|
|
774
|
+
children: i ? /* @__PURE__ */ n.jsx(er, {}) : /* @__PURE__ */ n.jsx(Or, {})
|
|
963
775
|
}
|
|
964
776
|
)
|
|
965
777
|
] }),
|
|
966
|
-
|
|
778
|
+
g && /* @__PURE__ */ n.jsxs(
|
|
967
779
|
"div",
|
|
968
780
|
{
|
|
969
781
|
className: "absolute bottom-full left-0 w-full bg-white shadow-xl rounded-lg border border-gray-200 p-4 z-50 max-h-60 overflow-y-auto",
|
|
970
|
-
onScroll:
|
|
782
|
+
onScroll: ce,
|
|
971
783
|
children: [
|
|
972
784
|
/* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center border-b pb-2 mb-2", children: [
|
|
973
785
|
/* @__PURE__ */ n.jsxs("h3", { className: "text-lg font-semibold text-gray-800", children: [
|
|
974
786
|
"Select an item for",
|
|
975
787
|
" ",
|
|
976
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children:
|
|
788
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-blue-500", children: g })
|
|
977
789
|
] }),
|
|
978
790
|
/* @__PURE__ */ n.jsx(
|
|
979
791
|
"button",
|
|
980
792
|
{
|
|
981
793
|
className: "text-gray-500 hover:text-gray-700",
|
|
982
|
-
onClick: () =>
|
|
794
|
+
onClick: () => j(null),
|
|
983
795
|
children: "✕"
|
|
984
796
|
}
|
|
985
797
|
)
|
|
986
798
|
] }),
|
|
987
799
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
988
|
-
t ? t.filter((
|
|
989
|
-
var
|
|
990
|
-
const { component: N, lists:
|
|
991
|
-
return N ?
|
|
800
|
+
t ? t.filter((S) => S.symbol === g).map((S) => {
|
|
801
|
+
var Z;
|
|
802
|
+
const { component: N, lists: L } = S;
|
|
803
|
+
return N ? M ? (Z = L == null ? void 0 : L.filter((l) => l == null ? void 0 : l.name.includes(M))) == null ? void 0 : Z.map((l, u) => /* @__PURE__ */ n.jsx(
|
|
992
804
|
"div",
|
|
993
805
|
{
|
|
994
806
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
@@ -996,12 +808,12 @@ const lt = ({
|
|
|
996
808
|
N,
|
|
997
809
|
{
|
|
998
810
|
listsProps: l,
|
|
999
|
-
onClick: (w,
|
|
811
|
+
onClick: (w, x) => F(w, x)
|
|
1000
812
|
}
|
|
1001
813
|
)
|
|
1002
814
|
},
|
|
1003
|
-
|
|
1004
|
-
)) :
|
|
815
|
+
u
|
|
816
|
+
)) : L == null ? void 0 : L.map((l, u) => /* @__PURE__ */ n.jsx(
|
|
1005
817
|
"div",
|
|
1006
818
|
{
|
|
1007
819
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
@@ -1009,60 +821,60 @@ const lt = ({
|
|
|
1009
821
|
N,
|
|
1010
822
|
{
|
|
1011
823
|
listsProps: l,
|
|
1012
|
-
onClick: (w,
|
|
824
|
+
onClick: (w, x) => F(w, x)
|
|
1013
825
|
}
|
|
1014
826
|
)
|
|
1015
827
|
},
|
|
1016
|
-
|
|
828
|
+
u
|
|
1017
829
|
)) : null;
|
|
1018
830
|
}) : null,
|
|
1019
|
-
/* @__PURE__ */ n.jsx("div", { className: "h-8", children:
|
|
831
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-8", children: c && "Loading more items..." })
|
|
1020
832
|
] })
|
|
1021
833
|
]
|
|
1022
834
|
}
|
|
1023
835
|
)
|
|
1024
836
|
] });
|
|
1025
837
|
};
|
|
1026
|
-
var
|
|
1027
|
-
const
|
|
1028
|
-
fileName:
|
|
1029
|
-
fileSize:
|
|
838
|
+
var ge = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ge || {});
|
|
839
|
+
const rr = ({
|
|
840
|
+
fileName: e,
|
|
841
|
+
fileSize: s,
|
|
1030
842
|
format: o,
|
|
1031
843
|
src: t
|
|
1032
844
|
}) => {
|
|
1033
|
-
const
|
|
845
|
+
const i = () => ({
|
|
1034
846
|
rar: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-green-500 font-bold", children: o }),
|
|
1035
847
|
zip: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-500 font-bold", children: o }),
|
|
1036
848
|
pdf: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-red-500 font-bold", children: o }),
|
|
1037
849
|
doc: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-blue-400 font-bold", children: o }),
|
|
1038
850
|
vid: /* @__PURE__ */ n.jsx("p", { className: "p-2 text-orange-400 font-bold", children: o }),
|
|
1039
851
|
"": /* @__PURE__ */ n.jsx("p", { className: "p-2 text-black font-bold", children: o })
|
|
1040
|
-
})[o || ""], a = (
|
|
852
|
+
})[o || ""], a = (d) => d > 1048576 ? (d / 1048576).toFixed(1) + " MB" : (d / 1024).toFixed(1) + " KB";
|
|
1041
853
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center rounded-lg", children: [
|
|
1042
|
-
/* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children:
|
|
854
|
+
/* @__PURE__ */ n.jsx("div", { className: "mr-3 relative border border-green-950 rounded-md p-3", children: i() }),
|
|
1043
855
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col flex-grow", children: [
|
|
1044
856
|
/* @__PURE__ */ n.jsx(
|
|
1045
857
|
"a",
|
|
1046
858
|
{
|
|
1047
859
|
href: t,
|
|
1048
|
-
download:
|
|
860
|
+
download: e,
|
|
1049
861
|
className: "text-gray-900 font-medium hover:underline",
|
|
1050
|
-
children:
|
|
862
|
+
children: e
|
|
1051
863
|
}
|
|
1052
864
|
),
|
|
1053
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(
|
|
865
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-gray-600 text-sm", children: a(s) })
|
|
1054
866
|
] }),
|
|
1055
867
|
/* @__PURE__ */ n.jsx(
|
|
1056
868
|
"a",
|
|
1057
869
|
{
|
|
1058
870
|
href: t,
|
|
1059
|
-
download:
|
|
871
|
+
download: e,
|
|
1060
872
|
className: "ml-2 bg-green-500 text-white px-2 py-1 text-sm rounded hover:bg-green-600",
|
|
1061
873
|
children: "Download"
|
|
1062
874
|
}
|
|
1063
875
|
)
|
|
1064
876
|
] });
|
|
1065
|
-
},
|
|
877
|
+
}, Rr = (e) => /* @__PURE__ */ n.jsx(
|
|
1066
878
|
"svg",
|
|
1067
879
|
{
|
|
1068
880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1075,10 +887,10 @@ const br = ({
|
|
|
1075
887
|
strokeLinecap: "round",
|
|
1076
888
|
strokeLinejoin: "round",
|
|
1077
889
|
className: "lucide lucide-play",
|
|
1078
|
-
...
|
|
890
|
+
...e,
|
|
1079
891
|
children: /* @__PURE__ */ n.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
1080
892
|
}
|
|
1081
|
-
),
|
|
893
|
+
), _r = (e) => /* @__PURE__ */ n.jsxs(
|
|
1082
894
|
"svg",
|
|
1083
895
|
{
|
|
1084
896
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1091,110 +903,110 @@ const br = ({
|
|
|
1091
903
|
strokeLinecap: "round",
|
|
1092
904
|
strokeLinejoin: "round",
|
|
1093
905
|
className: "lucide lucide-pause",
|
|
1094
|
-
...
|
|
906
|
+
...e,
|
|
1095
907
|
children: [
|
|
1096
908
|
/* @__PURE__ */ n.jsx("rect", { x: "14", y: "4", width: "4", height: "16", rx: "1" }),
|
|
1097
909
|
/* @__PURE__ */ n.jsx("rect", { x: "6", y: "4", width: "4", height: "16", rx: "1" })
|
|
1098
910
|
]
|
|
1099
911
|
}
|
|
1100
912
|
);
|
|
1101
|
-
let
|
|
1102
|
-
const
|
|
1103
|
-
const [o, t] =
|
|
1104
|
-
|
|
1105
|
-
const
|
|
1106
|
-
if (!
|
|
913
|
+
let Ce = null;
|
|
914
|
+
const Pr = ({ src: e, className: s }) => {
|
|
915
|
+
const [o, t] = se(!1), [i, a] = se(0), d = ye(null);
|
|
916
|
+
mr(() => {
|
|
917
|
+
const h = d.current;
|
|
918
|
+
if (!h) return;
|
|
1107
919
|
const b = () => {
|
|
1108
|
-
a(
|
|
1109
|
-
},
|
|
920
|
+
a(h.currentTime / h.duration * 100);
|
|
921
|
+
}, g = () => t(!0), j = () => t(!1), M = () => {
|
|
1110
922
|
t(!1), a(0);
|
|
1111
923
|
};
|
|
1112
|
-
return
|
|
1113
|
-
|
|
924
|
+
return h.addEventListener("timeupdate", b), h.addEventListener("play", g), h.addEventListener("pause", j), h.addEventListener("ended", M), () => {
|
|
925
|
+
h.removeEventListener("timeupdate", b), h.removeEventListener("play", g), h.removeEventListener("pause", j), h.removeEventListener("ended", M);
|
|
1114
926
|
};
|
|
1115
927
|
}, []);
|
|
1116
|
-
const
|
|
1117
|
-
const
|
|
1118
|
-
|
|
928
|
+
const y = () => {
|
|
929
|
+
const h = d.current;
|
|
930
|
+
h && (o ? h.pause() : (Ce && Ce !== h && (Ce.pause(), Ce.currentTime = 0), h.play(), Ce = h));
|
|
1119
931
|
};
|
|
1120
932
|
return /* @__PURE__ */ n.jsxs(
|
|
1121
933
|
"div",
|
|
1122
934
|
{
|
|
1123
|
-
className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${
|
|
935
|
+
className: `flex items-center gap-2 py-2 pl-1 text-white rounded-xl w-full max-w-sm ${s}`,
|
|
1124
936
|
children: [
|
|
1125
937
|
/* @__PURE__ */ n.jsx(
|
|
1126
938
|
"button",
|
|
1127
939
|
{
|
|
1128
940
|
className: "w-9 h-9 cursor-pointer flex items-center justify-center pl-[1.5px] bg-gray-700 rounded-full hover:bg-gray-600",
|
|
1129
|
-
onClick:
|
|
1130
|
-
children: o ? /* @__PURE__ */ n.jsx(
|
|
941
|
+
onClick: y,
|
|
942
|
+
children: o ? /* @__PURE__ */ n.jsx(_r, {}) : /* @__PURE__ */ n.jsx(Rr, {})
|
|
1131
943
|
}
|
|
1132
944
|
),
|
|
1133
945
|
/* @__PURE__ */ n.jsx("div", { className: "relative flex-1 h-2 bg-gray-700 rounded-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
|
|
1134
946
|
"div",
|
|
1135
947
|
{
|
|
1136
948
|
className: "h-full bg-blue-500 transition-all",
|
|
1137
|
-
style: { width: `${
|
|
949
|
+
style: { width: `${i}%` }
|
|
1138
950
|
}
|
|
1139
951
|
) }),
|
|
1140
|
-
/* @__PURE__ */ n.jsx("audio", { ref:
|
|
952
|
+
/* @__PURE__ */ n.jsx("audio", { ref: d, src: e })
|
|
1141
953
|
]
|
|
1142
954
|
}
|
|
1143
955
|
);
|
|
1144
|
-
},
|
|
1145
|
-
if (
|
|
1146
|
-
return
|
|
1147
|
-
|
|
956
|
+
}, kr = ({ attachment: e, attachmentType: s }) => {
|
|
957
|
+
if (e)
|
|
958
|
+
return s === ge.Voice ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx(Pr, { src: e }) }) : s === ge.Image ? /* @__PURE__ */ n.jsx("div", { className: "w-full", children: /* @__PURE__ */ n.jsx("img", { src: e }) }) : s === ge.File ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
|
|
959
|
+
rr,
|
|
1148
960
|
{
|
|
1149
961
|
fileName: "productivity",
|
|
1150
962
|
fileSize: 23e3,
|
|
1151
963
|
format: "rar",
|
|
1152
|
-
src:
|
|
964
|
+
src: e
|
|
1153
965
|
}
|
|
1154
|
-
) }) :
|
|
1155
|
-
|
|
966
|
+
) }) : s === ge.Video ? /* @__PURE__ */ n.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ n.jsx(
|
|
967
|
+
rr,
|
|
1156
968
|
{
|
|
1157
969
|
fileName: "productivity",
|
|
1158
970
|
fileSize: 23e3,
|
|
1159
971
|
format: "rar",
|
|
1160
|
-
src:
|
|
972
|
+
src: e
|
|
1161
973
|
}
|
|
1162
974
|
) }) : null;
|
|
1163
|
-
},
|
|
1164
|
-
message:
|
|
1165
|
-
showUserProfile:
|
|
975
|
+
}, Nr = ({
|
|
976
|
+
message: e,
|
|
977
|
+
showUserProfile: s,
|
|
1166
978
|
handleContextMenu: o,
|
|
1167
979
|
media: t
|
|
1168
980
|
}) => {
|
|
1169
|
-
var
|
|
981
|
+
var i, a, d, y, h;
|
|
1170
982
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1171
|
-
|
|
983
|
+
s ? /* @__PURE__ */ n.jsx(
|
|
1172
984
|
"img",
|
|
1173
985
|
{
|
|
1174
|
-
src:
|
|
986
|
+
src: e.user.profileImageUrl,
|
|
1175
987
|
className: "w-12 h-12 bg-gray-300 rounded-full"
|
|
1176
988
|
}
|
|
1177
989
|
) : null,
|
|
1178
990
|
/* @__PURE__ */ n.jsxs(
|
|
1179
|
-
|
|
991
|
+
We.div,
|
|
1180
992
|
{
|
|
1181
993
|
initial: { opacity: 0, y: 50 },
|
|
1182
994
|
animate: { opacity: 1, y: 0 },
|
|
1183
995
|
exit: { opacity: 0, y: 50 },
|
|
1184
996
|
transition: { duration: 0.3 },
|
|
1185
|
-
onContextMenu: (b) => o(b,
|
|
997
|
+
onContextMenu: (b) => o(b, e),
|
|
1186
998
|
className: `relative ${t ? "w-3/4" : "w-fit max-w-3/4"}flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg bg-green-200`,
|
|
1187
999
|
children: [
|
|
1188
|
-
/* @__PURE__ */ n.jsx("span", { className: "absolute top-1 text-xs text-orange-700", children: (
|
|
1000
|
+
/* @__PURE__ */ n.jsx("span", { className: "absolute top-1 text-xs text-orange-700", children: (i = e.user) != null && i.fullName && ((d = (a = e.user) == null ? void 0 : a.fullName) == null ? void 0 : d.length) > 16 ? (y = e.user) == null ? void 0 : y.firstName : (h = e.user) == null ? void 0 : h.fullName }),
|
|
1189
1001
|
t || null,
|
|
1190
|
-
/* @__PURE__ */ n.jsx("span", { children:
|
|
1191
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full flex gap- items-center justify-end", children: /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(
|
|
1192
|
-
/* @__PURE__ */ n.jsx(
|
|
1002
|
+
/* @__PURE__ */ n.jsx("span", { children: e.text }),
|
|
1003
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full flex gap- items-center justify-end", children: /* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }) }),
|
|
1004
|
+
/* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 -rotate-180 scale-x-[-1] transition-discrete absolute -left-2 bottom-0 [&>g>path]:fill-green-200" })
|
|
1193
1005
|
]
|
|
1194
1006
|
}
|
|
1195
1007
|
)
|
|
1196
1008
|
] });
|
|
1197
|
-
},
|
|
1009
|
+
}, Lr = () => /* @__PURE__ */ n.jsxs(
|
|
1198
1010
|
"svg",
|
|
1199
1011
|
{
|
|
1200
1012
|
width: "16",
|
|
@@ -1221,31 +1033,31 @@ const ht = ({ src: r, className: i }) => {
|
|
|
1221
1033
|
)
|
|
1222
1034
|
]
|
|
1223
1035
|
}
|
|
1224
|
-
),
|
|
1225
|
-
handleContextMenu:
|
|
1226
|
-
media:
|
|
1036
|
+
), Mr = ({
|
|
1037
|
+
handleContextMenu: e,
|
|
1038
|
+
media: s,
|
|
1227
1039
|
message: o
|
|
1228
1040
|
}) => /* @__PURE__ */ n.jsxs(
|
|
1229
|
-
|
|
1041
|
+
We.div,
|
|
1230
1042
|
{
|
|
1231
1043
|
initial: { opacity: 0, y: 50 },
|
|
1232
1044
|
animate: { opacity: 1, y: 0 },
|
|
1233
1045
|
exit: { opacity: 0, y: 50 },
|
|
1234
1046
|
transition: { duration: 0.3 },
|
|
1235
|
-
onContextMenu: (t) =>
|
|
1236
|
-
className: `relative self-end ${
|
|
1047
|
+
onContextMenu: (t) => e(t, o),
|
|
1048
|
+
className: `relative self-end ${s ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg bg-blue-200`,
|
|
1237
1049
|
children: [
|
|
1238
|
-
|
|
1050
|
+
s || null,
|
|
1239
1051
|
/* @__PURE__ */ n.jsx("span", { children: o.text }),
|
|
1240
1052
|
/* @__PURE__ */ n.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
|
|
1241
1053
|
/* @__PURE__ */ n.jsx("span", { className: "text-[10px]", children: new Date(o.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(o.createdDate).toLocaleTimeString().split(":")[1] }),
|
|
1242
|
-
/* @__PURE__ */ n.jsx(
|
|
1054
|
+
/* @__PURE__ */ n.jsx(Lr, {})
|
|
1243
1055
|
] }),
|
|
1244
|
-
/* @__PURE__ */ n.jsx(
|
|
1056
|
+
/* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
|
|
1245
1057
|
]
|
|
1246
1058
|
}
|
|
1247
1059
|
);
|
|
1248
|
-
var
|
|
1060
|
+
var Oe = { exports: {} }, Se = { exports: {} }, I = {};
|
|
1249
1061
|
/** @license React v16.13.1
|
|
1250
1062
|
* react-is.production.min.js
|
|
1251
1063
|
*
|
|
@@ -1254,71 +1066,71 @@ var Se = { exports: {} }, Pe = { exports: {} }, W = {};
|
|
|
1254
1066
|
* This source code is licensed under the MIT license found in the
|
|
1255
1067
|
* LICENSE file in the root directory of this source tree.
|
|
1256
1068
|
*/
|
|
1257
|
-
var
|
|
1258
|
-
function
|
|
1259
|
-
if (
|
|
1260
|
-
|
|
1261
|
-
var
|
|
1262
|
-
function
|
|
1263
|
-
if (typeof
|
|
1264
|
-
var
|
|
1265
|
-
switch (
|
|
1266
|
-
case
|
|
1267
|
-
switch (
|
|
1268
|
-
case
|
|
1069
|
+
var tr;
|
|
1070
|
+
function Ar() {
|
|
1071
|
+
if (tr) return I;
|
|
1072
|
+
tr = 1;
|
|
1073
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
|
|
1074
|
+
function C(c) {
|
|
1075
|
+
if (typeof c == "object" && c !== null) {
|
|
1076
|
+
var V = c.$$typeof;
|
|
1077
|
+
switch (V) {
|
|
1078
|
+
case s:
|
|
1079
|
+
switch (c = c.type, c) {
|
|
1080
|
+
case h:
|
|
1269
1081
|
case b:
|
|
1270
1082
|
case t:
|
|
1271
1083
|
case a:
|
|
1272
|
-
case
|
|
1273
|
-
case
|
|
1274
|
-
return
|
|
1084
|
+
case i:
|
|
1085
|
+
case j:
|
|
1086
|
+
return c;
|
|
1275
1087
|
default:
|
|
1276
|
-
switch (
|
|
1277
|
-
case g:
|
|
1088
|
+
switch (c = c && c.$$typeof, c) {
|
|
1278
1089
|
case y:
|
|
1279
|
-
case
|
|
1280
|
-
case
|
|
1281
|
-
case
|
|
1282
|
-
|
|
1090
|
+
case g:
|
|
1091
|
+
case B:
|
|
1092
|
+
case z:
|
|
1093
|
+
case d:
|
|
1094
|
+
return c;
|
|
1283
1095
|
default:
|
|
1284
|
-
return
|
|
1096
|
+
return V;
|
|
1285
1097
|
}
|
|
1286
1098
|
}
|
|
1287
1099
|
case o:
|
|
1288
|
-
return
|
|
1100
|
+
return V;
|
|
1289
1101
|
}
|
|
1290
1102
|
}
|
|
1291
1103
|
}
|
|
1292
|
-
function
|
|
1293
|
-
return
|
|
1104
|
+
function D(c) {
|
|
1105
|
+
return C(c) === b;
|
|
1294
1106
|
}
|
|
1295
|
-
return
|
|
1296
|
-
return
|
|
1297
|
-
},
|
|
1298
|
-
return
|
|
1299
|
-
},
|
|
1300
|
-
return
|
|
1301
|
-
},
|
|
1302
|
-
return typeof
|
|
1303
|
-
},
|
|
1304
|
-
return
|
|
1305
|
-
},
|
|
1306
|
-
return
|
|
1307
|
-
},
|
|
1308
|
-
return
|
|
1309
|
-
},
|
|
1310
|
-
return
|
|
1311
|
-
},
|
|
1312
|
-
return
|
|
1313
|
-
},
|
|
1314
|
-
return
|
|
1315
|
-
},
|
|
1316
|
-
return
|
|
1317
|
-
},
|
|
1318
|
-
return
|
|
1319
|
-
},
|
|
1320
|
-
return typeof
|
|
1321
|
-
},
|
|
1107
|
+
return I.AsyncMode = h, I.ConcurrentMode = b, I.ContextConsumer = y, I.ContextProvider = d, I.Element = s, I.ForwardRef = g, I.Fragment = t, I.Lazy = B, I.Memo = z, I.Portal = o, I.Profiler = a, I.StrictMode = i, I.Suspense = j, I.isAsyncMode = function(c) {
|
|
1108
|
+
return D(c) || C(c) === h;
|
|
1109
|
+
}, I.isConcurrentMode = D, I.isContextConsumer = function(c) {
|
|
1110
|
+
return C(c) === y;
|
|
1111
|
+
}, I.isContextProvider = function(c) {
|
|
1112
|
+
return C(c) === d;
|
|
1113
|
+
}, I.isElement = function(c) {
|
|
1114
|
+
return typeof c == "object" && c !== null && c.$$typeof === s;
|
|
1115
|
+
}, I.isForwardRef = function(c) {
|
|
1116
|
+
return C(c) === g;
|
|
1117
|
+
}, I.isFragment = function(c) {
|
|
1118
|
+
return C(c) === t;
|
|
1119
|
+
}, I.isLazy = function(c) {
|
|
1120
|
+
return C(c) === B;
|
|
1121
|
+
}, I.isMemo = function(c) {
|
|
1122
|
+
return C(c) === z;
|
|
1123
|
+
}, I.isPortal = function(c) {
|
|
1124
|
+
return C(c) === o;
|
|
1125
|
+
}, I.isProfiler = function(c) {
|
|
1126
|
+
return C(c) === a;
|
|
1127
|
+
}, I.isStrictMode = function(c) {
|
|
1128
|
+
return C(c) === i;
|
|
1129
|
+
}, I.isSuspense = function(c) {
|
|
1130
|
+
return C(c) === j;
|
|
1131
|
+
}, I.isValidElementType = function(c) {
|
|
1132
|
+
return typeof c == "string" || typeof c == "function" || c === t || c === b || c === a || c === i || c === j || c === M || typeof c == "object" && c !== null && (c.$$typeof === B || c.$$typeof === z || c.$$typeof === d || c.$$typeof === y || c.$$typeof === g || c.$$typeof === W || c.$$typeof === q || c.$$typeof === ee || c.$$typeof === R);
|
|
1133
|
+
}, I.typeOf = C, I;
|
|
1322
1134
|
}
|
|
1323
1135
|
var Y = {};
|
|
1324
1136
|
/** @license React v16.13.1
|
|
@@ -1329,454 +1141,454 @@ var Y = {};
|
|
|
1329
1141
|
* This source code is licensed under the MIT license found in the
|
|
1330
1142
|
* LICENSE file in the root directory of this source tree.
|
|
1331
1143
|
*/
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1337
|
-
return typeof
|
|
1338
|
-
|
|
1339
|
-
}
|
|
1340
|
-
function
|
|
1341
|
-
if (typeof
|
|
1342
|
-
var
|
|
1343
|
-
switch (
|
|
1344
|
-
case
|
|
1345
|
-
var
|
|
1346
|
-
switch (
|
|
1347
|
-
case
|
|
1144
|
+
var nr;
|
|
1145
|
+
function $r() {
|
|
1146
|
+
return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1147
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
|
|
1148
|
+
function C(f) {
|
|
1149
|
+
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1150
|
+
f === t || f === b || f === a || f === i || f === j || f === M || typeof f == "object" && f !== null && (f.$$typeof === B || f.$$typeof === z || f.$$typeof === d || f.$$typeof === y || f.$$typeof === g || f.$$typeof === W || f.$$typeof === q || f.$$typeof === ee || f.$$typeof === R);
|
|
1151
|
+
}
|
|
1152
|
+
function D(f) {
|
|
1153
|
+
if (typeof f == "object" && f !== null) {
|
|
1154
|
+
var te = f.$$typeof;
|
|
1155
|
+
switch (te) {
|
|
1156
|
+
case s:
|
|
1157
|
+
var pe = f.type;
|
|
1158
|
+
switch (pe) {
|
|
1159
|
+
case h:
|
|
1348
1160
|
case b:
|
|
1349
1161
|
case t:
|
|
1350
1162
|
case a:
|
|
1351
|
-
case
|
|
1352
|
-
case
|
|
1353
|
-
return
|
|
1163
|
+
case i:
|
|
1164
|
+
case j:
|
|
1165
|
+
return pe;
|
|
1354
1166
|
default:
|
|
1355
|
-
var
|
|
1356
|
-
switch (
|
|
1357
|
-
case g:
|
|
1167
|
+
var me = pe && pe.$$typeof;
|
|
1168
|
+
switch (me) {
|
|
1358
1169
|
case y:
|
|
1359
|
-
case
|
|
1360
|
-
case
|
|
1361
|
-
case
|
|
1362
|
-
|
|
1170
|
+
case g:
|
|
1171
|
+
case B:
|
|
1172
|
+
case z:
|
|
1173
|
+
case d:
|
|
1174
|
+
return me;
|
|
1363
1175
|
default:
|
|
1364
|
-
return
|
|
1176
|
+
return te;
|
|
1365
1177
|
}
|
|
1366
1178
|
}
|
|
1367
1179
|
case o:
|
|
1368
|
-
return
|
|
1180
|
+
return te;
|
|
1369
1181
|
}
|
|
1370
1182
|
}
|
|
1371
1183
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1184
|
+
var c = h, V = b, H = y, F = d, re = s, le = g, oe = t, ae = B, ie = z, K = o, ce = a, S = i, N = j, L = !1;
|
|
1185
|
+
function Z(f) {
|
|
1186
|
+
return L || (L = !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.")), l(f) || D(f) === h;
|
|
1375
1187
|
}
|
|
1376
|
-
function l(
|
|
1377
|
-
return
|
|
1188
|
+
function l(f) {
|
|
1189
|
+
return D(f) === b;
|
|
1378
1190
|
}
|
|
1379
|
-
function f
|
|
1380
|
-
return
|
|
1191
|
+
function u(f) {
|
|
1192
|
+
return D(f) === y;
|
|
1381
1193
|
}
|
|
1382
|
-
function w(
|
|
1383
|
-
return
|
|
1194
|
+
function w(f) {
|
|
1195
|
+
return D(f) === d;
|
|
1384
1196
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return typeof
|
|
1197
|
+
function x(f) {
|
|
1198
|
+
return typeof f == "object" && f !== null && f.$$typeof === s;
|
|
1387
1199
|
}
|
|
1388
|
-
function
|
|
1389
|
-
return
|
|
1200
|
+
function m(f) {
|
|
1201
|
+
return D(f) === g;
|
|
1390
1202
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return
|
|
1203
|
+
function _(f) {
|
|
1204
|
+
return D(f) === t;
|
|
1393
1205
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
1206
|
+
function E(f) {
|
|
1207
|
+
return D(f) === B;
|
|
1396
1208
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1209
|
+
function O(f) {
|
|
1210
|
+
return D(f) === z;
|
|
1399
1211
|
}
|
|
1400
|
-
function
|
|
1401
|
-
return
|
|
1212
|
+
function P(f) {
|
|
1213
|
+
return D(f) === o;
|
|
1402
1214
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return
|
|
1215
|
+
function A(f) {
|
|
1216
|
+
return D(f) === a;
|
|
1405
1217
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1218
|
+
function k(f) {
|
|
1219
|
+
return D(f) === i;
|
|
1408
1220
|
}
|
|
1409
|
-
function
|
|
1410
|
-
return
|
|
1221
|
+
function J(f) {
|
|
1222
|
+
return D(f) === j;
|
|
1411
1223
|
}
|
|
1412
|
-
Y.AsyncMode =
|
|
1224
|
+
Y.AsyncMode = c, Y.ConcurrentMode = V, Y.ContextConsumer = H, Y.ContextProvider = F, Y.Element = re, Y.ForwardRef = le, Y.Fragment = oe, Y.Lazy = ae, Y.Memo = ie, Y.Portal = K, Y.Profiler = ce, Y.StrictMode = S, Y.Suspense = N, Y.isAsyncMode = Z, Y.isConcurrentMode = l, Y.isContextConsumer = u, Y.isContextProvider = w, Y.isElement = x, Y.isForwardRef = m, Y.isFragment = _, Y.isLazy = E, Y.isMemo = O, Y.isPortal = P, Y.isProfiler = A, Y.isStrictMode = k, Y.isSuspense = J, Y.isValidElementType = C, Y.typeOf = D;
|
|
1413
1225
|
}()), Y;
|
|
1414
1226
|
}
|
|
1415
|
-
var
|
|
1416
|
-
function
|
|
1417
|
-
return
|
|
1227
|
+
var or;
|
|
1228
|
+
function pr() {
|
|
1229
|
+
return or || (or = 1, process.env.NODE_ENV === "production" ? Se.exports = Ar() : Se.exports = $r()), Se.exports;
|
|
1418
1230
|
}
|
|
1419
1231
|
/*
|
|
1420
1232
|
object-assign
|
|
1421
1233
|
(c) Sindre Sorhus
|
|
1422
1234
|
@license MIT
|
|
1423
1235
|
*/
|
|
1424
|
-
var
|
|
1425
|
-
function
|
|
1426
|
-
if (
|
|
1427
|
-
|
|
1428
|
-
var
|
|
1236
|
+
var Pe, ar;
|
|
1237
|
+
function Ir() {
|
|
1238
|
+
if (ar) return Pe;
|
|
1239
|
+
ar = 1;
|
|
1240
|
+
var e = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
1429
1241
|
function t(a) {
|
|
1430
1242
|
if (a == null)
|
|
1431
1243
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1432
1244
|
return Object(a);
|
|
1433
1245
|
}
|
|
1434
|
-
function
|
|
1246
|
+
function i() {
|
|
1435
1247
|
try {
|
|
1436
1248
|
if (!Object.assign)
|
|
1437
1249
|
return !1;
|
|
1438
1250
|
var a = new String("abc");
|
|
1439
1251
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
1440
1252
|
return !1;
|
|
1441
|
-
for (var
|
|
1442
|
-
|
|
1443
|
-
var
|
|
1444
|
-
return
|
|
1253
|
+
for (var d = {}, y = 0; y < 10; y++)
|
|
1254
|
+
d["_" + String.fromCharCode(y)] = y;
|
|
1255
|
+
var h = Object.getOwnPropertyNames(d).map(function(g) {
|
|
1256
|
+
return d[g];
|
|
1445
1257
|
});
|
|
1446
|
-
if (
|
|
1258
|
+
if (h.join("") !== "0123456789")
|
|
1447
1259
|
return !1;
|
|
1448
1260
|
var b = {};
|
|
1449
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1450
|
-
b[
|
|
1261
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(g) {
|
|
1262
|
+
b[g] = g;
|
|
1451
1263
|
}), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst";
|
|
1452
1264
|
} catch {
|
|
1453
1265
|
return !1;
|
|
1454
1266
|
}
|
|
1455
1267
|
}
|
|
1456
|
-
return
|
|
1457
|
-
for (var
|
|
1458
|
-
|
|
1459
|
-
for (var
|
|
1460
|
-
|
|
1461
|
-
if (
|
|
1462
|
-
b =
|
|
1463
|
-
for (var
|
|
1464
|
-
o.call(
|
|
1268
|
+
return Pe = i() ? Object.assign : function(a, d) {
|
|
1269
|
+
for (var y, h = t(a), b, g = 1; g < arguments.length; g++) {
|
|
1270
|
+
y = Object(arguments[g]);
|
|
1271
|
+
for (var j in y)
|
|
1272
|
+
s.call(y, j) && (h[j] = y[j]);
|
|
1273
|
+
if (e) {
|
|
1274
|
+
b = e(y);
|
|
1275
|
+
for (var M = 0; M < b.length; M++)
|
|
1276
|
+
o.call(y, b[M]) && (h[b[M]] = y[b[M]]);
|
|
1465
1277
|
}
|
|
1466
1278
|
}
|
|
1467
|
-
return
|
|
1468
|
-
},
|
|
1279
|
+
return h;
|
|
1280
|
+
}, Pe;
|
|
1469
1281
|
}
|
|
1470
|
-
var
|
|
1471
|
-
function
|
|
1472
|
-
if (
|
|
1473
|
-
|
|
1474
|
-
var
|
|
1475
|
-
return
|
|
1282
|
+
var ke, ir;
|
|
1283
|
+
function Ve() {
|
|
1284
|
+
if (ir) return ke;
|
|
1285
|
+
ir = 1;
|
|
1286
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1287
|
+
return ke = e, ke;
|
|
1476
1288
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1289
|
+
var Ne, sr;
|
|
1290
|
+
function vr() {
|
|
1291
|
+
return sr || (sr = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
|
|
1480
1292
|
}
|
|
1481
|
-
var
|
|
1482
|
-
function
|
|
1483
|
-
if (
|
|
1484
|
-
|
|
1485
|
-
var
|
|
1293
|
+
var Le, lr;
|
|
1294
|
+
function Yr() {
|
|
1295
|
+
if (lr) return Le;
|
|
1296
|
+
lr = 1;
|
|
1297
|
+
var e = function() {
|
|
1486
1298
|
};
|
|
1487
1299
|
if (process.env.NODE_ENV !== "production") {
|
|
1488
|
-
var
|
|
1489
|
-
|
|
1490
|
-
var
|
|
1491
|
-
typeof console < "u" && console.error(
|
|
1300
|
+
var s = /* @__PURE__ */ Ve(), o = {}, t = /* @__PURE__ */ vr();
|
|
1301
|
+
e = function(a) {
|
|
1302
|
+
var d = "Warning: " + a;
|
|
1303
|
+
typeof console < "u" && console.error(d);
|
|
1492
1304
|
try {
|
|
1493
|
-
throw new Error(
|
|
1305
|
+
throw new Error(d);
|
|
1494
1306
|
} catch {
|
|
1495
1307
|
}
|
|
1496
1308
|
};
|
|
1497
1309
|
}
|
|
1498
|
-
function
|
|
1310
|
+
function i(a, d, y, h, b) {
|
|
1499
1311
|
if (process.env.NODE_ENV !== "production") {
|
|
1500
|
-
for (var
|
|
1501
|
-
if (t(a,
|
|
1502
|
-
var
|
|
1312
|
+
for (var g in a)
|
|
1313
|
+
if (t(a, g)) {
|
|
1314
|
+
var j;
|
|
1503
1315
|
try {
|
|
1504
|
-
if (typeof a[
|
|
1505
|
-
var
|
|
1506
|
-
(
|
|
1316
|
+
if (typeof a[g] != "function") {
|
|
1317
|
+
var M = Error(
|
|
1318
|
+
(h || "React class") + ": " + y + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1507
1319
|
);
|
|
1508
|
-
throw
|
|
1320
|
+
throw M.name = "Invariant Violation", M;
|
|
1509
1321
|
}
|
|
1510
|
-
|
|
1511
|
-
} catch (
|
|
1512
|
-
|
|
1322
|
+
j = a[g](d, g, h, y, null, s);
|
|
1323
|
+
} catch (B) {
|
|
1324
|
+
j = B;
|
|
1513
1325
|
}
|
|
1514
|
-
if (
|
|
1515
|
-
(
|
|
1516
|
-
),
|
|
1517
|
-
o[
|
|
1518
|
-
var
|
|
1519
|
-
|
|
1520
|
-
"Failed " +
|
|
1326
|
+
if (j && !(j instanceof Error) && e(
|
|
1327
|
+
(h || "React class") + ": type specification of " + y + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof j + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1328
|
+
), j instanceof Error && !(j.message in o)) {
|
|
1329
|
+
o[j.message] = !0;
|
|
1330
|
+
var z = b ? b() : "";
|
|
1331
|
+
e(
|
|
1332
|
+
"Failed " + y + " type: " + j.message + (z ?? "")
|
|
1521
1333
|
);
|
|
1522
1334
|
}
|
|
1523
1335
|
}
|
|
1524
1336
|
}
|
|
1525
1337
|
}
|
|
1526
|
-
return
|
|
1338
|
+
return i.resetWarningCache = function() {
|
|
1527
1339
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
1528
|
-
},
|
|
1340
|
+
}, Le = i, Le;
|
|
1529
1341
|
}
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1532
|
-
if (
|
|
1533
|
-
|
|
1534
|
-
var
|
|
1342
|
+
var Me, cr;
|
|
1343
|
+
function zr() {
|
|
1344
|
+
if (cr) return Me;
|
|
1345
|
+
cr = 1;
|
|
1346
|
+
var e = pr(), s = Ir(), o = /* @__PURE__ */ Ve(), t = /* @__PURE__ */ vr(), i = /* @__PURE__ */ Yr(), a = function() {
|
|
1535
1347
|
};
|
|
1536
|
-
process.env.NODE_ENV !== "production" && (a = function(
|
|
1537
|
-
var
|
|
1538
|
-
typeof console < "u" && console.error(
|
|
1348
|
+
process.env.NODE_ENV !== "production" && (a = function(y) {
|
|
1349
|
+
var h = "Warning: " + y;
|
|
1350
|
+
typeof console < "u" && console.error(h);
|
|
1539
1351
|
try {
|
|
1540
|
-
throw new Error(
|
|
1352
|
+
throw new Error(h);
|
|
1541
1353
|
} catch {
|
|
1542
1354
|
}
|
|
1543
1355
|
});
|
|
1544
|
-
function
|
|
1356
|
+
function d() {
|
|
1545
1357
|
return null;
|
|
1546
1358
|
}
|
|
1547
|
-
return
|
|
1548
|
-
var b = typeof Symbol == "function" && Symbol.iterator,
|
|
1549
|
-
function
|
|
1550
|
-
var
|
|
1551
|
-
if (typeof
|
|
1552
|
-
return
|
|
1553
|
-
}
|
|
1554
|
-
var
|
|
1555
|
-
array:
|
|
1556
|
-
bigint:
|
|
1557
|
-
bool:
|
|
1558
|
-
func:
|
|
1559
|
-
number:
|
|
1560
|
-
object:
|
|
1561
|
-
string:
|
|
1562
|
-
symbol:
|
|
1563
|
-
any:
|
|
1564
|
-
arrayOf:
|
|
1565
|
-
element:
|
|
1566
|
-
elementType:
|
|
1567
|
-
instanceOf:
|
|
1568
|
-
node:
|
|
1569
|
-
objectOf:
|
|
1570
|
-
oneOf:
|
|
1571
|
-
oneOfType:
|
|
1572
|
-
shape:
|
|
1573
|
-
exact:
|
|
1359
|
+
return Me = function(y, h) {
|
|
1360
|
+
var b = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
1361
|
+
function j(l) {
|
|
1362
|
+
var u = l && (b && l[b] || l[g]);
|
|
1363
|
+
if (typeof u == "function")
|
|
1364
|
+
return u;
|
|
1365
|
+
}
|
|
1366
|
+
var M = "<<anonymous>>", z = {
|
|
1367
|
+
array: q("array"),
|
|
1368
|
+
bigint: q("bigint"),
|
|
1369
|
+
bool: q("boolean"),
|
|
1370
|
+
func: q("function"),
|
|
1371
|
+
number: q("number"),
|
|
1372
|
+
object: q("object"),
|
|
1373
|
+
string: q("string"),
|
|
1374
|
+
symbol: q("symbol"),
|
|
1375
|
+
any: ee(),
|
|
1376
|
+
arrayOf: C,
|
|
1377
|
+
element: D(),
|
|
1378
|
+
elementType: c(),
|
|
1379
|
+
instanceOf: V,
|
|
1380
|
+
node: le(),
|
|
1381
|
+
objectOf: F,
|
|
1382
|
+
oneOf: H,
|
|
1383
|
+
oneOfType: re,
|
|
1384
|
+
shape: ae,
|
|
1385
|
+
exact: ie
|
|
1574
1386
|
};
|
|
1575
|
-
function
|
|
1576
|
-
return l ===
|
|
1387
|
+
function B(l, u) {
|
|
1388
|
+
return l === u ? l !== 0 || 1 / l === 1 / u : l !== l && u !== u;
|
|
1577
1389
|
}
|
|
1578
|
-
function
|
|
1579
|
-
this.message = l, this.data =
|
|
1390
|
+
function R(l, u) {
|
|
1391
|
+
this.message = l, this.data = u && typeof u == "object" ? u : {}, this.stack = "";
|
|
1580
1392
|
}
|
|
1581
|
-
|
|
1582
|
-
function
|
|
1393
|
+
R.prototype = Error.prototype;
|
|
1394
|
+
function W(l) {
|
|
1583
1395
|
if (process.env.NODE_ENV !== "production")
|
|
1584
|
-
var
|
|
1585
|
-
function
|
|
1586
|
-
if (
|
|
1587
|
-
if (
|
|
1588
|
-
var
|
|
1396
|
+
var u = {}, w = 0;
|
|
1397
|
+
function x(_, E, O, P, A, k, J) {
|
|
1398
|
+
if (P = P || M, k = k || O, J !== o) {
|
|
1399
|
+
if (h) {
|
|
1400
|
+
var f = new Error(
|
|
1589
1401
|
"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"
|
|
1590
1402
|
);
|
|
1591
|
-
throw
|
|
1403
|
+
throw f.name = "Invariant Violation", f;
|
|
1592
1404
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1593
|
-
var
|
|
1594
|
-
!
|
|
1405
|
+
var te = P + ":" + O;
|
|
1406
|
+
!u[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1595
1407
|
w < 3 && (a(
|
|
1596
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1597
|
-
),
|
|
1408
|
+
"You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + P + "`. 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."
|
|
1409
|
+
), u[te] = !0, w++);
|
|
1598
1410
|
}
|
|
1599
1411
|
}
|
|
1600
|
-
return
|
|
1412
|
+
return E[O] == null ? _ ? E[O] === null ? new R("The " + A + " `" + k + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new R("The " + A + " `" + k + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : l(E, O, P, A, k);
|
|
1601
1413
|
}
|
|
1602
|
-
var
|
|
1603
|
-
return
|
|
1604
|
-
}
|
|
1605
|
-
function
|
|
1606
|
-
function
|
|
1607
|
-
var
|
|
1608
|
-
if (
|
|
1609
|
-
var
|
|
1610
|
-
return new
|
|
1611
|
-
"Invalid " +
|
|
1414
|
+
var m = x.bind(null, !1);
|
|
1415
|
+
return m.isRequired = x.bind(null, !0), m;
|
|
1416
|
+
}
|
|
1417
|
+
function q(l) {
|
|
1418
|
+
function u(w, x, m, _, E, O) {
|
|
1419
|
+
var P = w[x], A = S(P);
|
|
1420
|
+
if (A !== l) {
|
|
1421
|
+
var k = N(P);
|
|
1422
|
+
return new R(
|
|
1423
|
+
"Invalid " + _ + " `" + E + "` of type " + ("`" + k + "` supplied to `" + m + "`, expected ") + ("`" + l + "`."),
|
|
1612
1424
|
{ expectedType: l }
|
|
1613
1425
|
);
|
|
1614
1426
|
}
|
|
1615
1427
|
return null;
|
|
1616
1428
|
}
|
|
1617
|
-
return
|
|
1429
|
+
return W(u);
|
|
1618
1430
|
}
|
|
1619
|
-
function
|
|
1620
|
-
return
|
|
1431
|
+
function ee() {
|
|
1432
|
+
return W(d);
|
|
1621
1433
|
}
|
|
1622
|
-
function
|
|
1623
|
-
function
|
|
1434
|
+
function C(l) {
|
|
1435
|
+
function u(w, x, m, _, E) {
|
|
1624
1436
|
if (typeof l != "function")
|
|
1625
|
-
return new
|
|
1626
|
-
var
|
|
1627
|
-
if (!Array.isArray(
|
|
1628
|
-
var
|
|
1629
|
-
return new
|
|
1437
|
+
return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
|
|
1438
|
+
var O = w[x];
|
|
1439
|
+
if (!Array.isArray(O)) {
|
|
1440
|
+
var P = S(O);
|
|
1441
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an array."));
|
|
1630
1442
|
}
|
|
1631
|
-
for (var
|
|
1632
|
-
var
|
|
1633
|
-
if (
|
|
1634
|
-
return
|
|
1443
|
+
for (var A = 0; A < O.length; A++) {
|
|
1444
|
+
var k = l(O, A, m, _, E + "[" + A + "]", o);
|
|
1445
|
+
if (k instanceof Error)
|
|
1446
|
+
return k;
|
|
1635
1447
|
}
|
|
1636
1448
|
return null;
|
|
1637
1449
|
}
|
|
1638
|
-
return
|
|
1639
|
-
}
|
|
1640
|
-
function
|
|
1641
|
-
function l(
|
|
1642
|
-
var
|
|
1643
|
-
if (!
|
|
1644
|
-
var
|
|
1645
|
-
return new
|
|
1450
|
+
return W(u);
|
|
1451
|
+
}
|
|
1452
|
+
function D() {
|
|
1453
|
+
function l(u, w, x, m, _) {
|
|
1454
|
+
var E = u[w];
|
|
1455
|
+
if (!y(E)) {
|
|
1456
|
+
var O = S(E);
|
|
1457
|
+
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
1646
1458
|
}
|
|
1647
1459
|
return null;
|
|
1648
1460
|
}
|
|
1649
|
-
return
|
|
1650
|
-
}
|
|
1651
|
-
function
|
|
1652
|
-
function l(
|
|
1653
|
-
var
|
|
1654
|
-
if (!
|
|
1655
|
-
var
|
|
1656
|
-
return new
|
|
1461
|
+
return W(l);
|
|
1462
|
+
}
|
|
1463
|
+
function c() {
|
|
1464
|
+
function l(u, w, x, m, _) {
|
|
1465
|
+
var E = u[w];
|
|
1466
|
+
if (!e.isValidElementType(E)) {
|
|
1467
|
+
var O = S(E);
|
|
1468
|
+
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
1657
1469
|
}
|
|
1658
1470
|
return null;
|
|
1659
1471
|
}
|
|
1660
|
-
return
|
|
1472
|
+
return W(l);
|
|
1661
1473
|
}
|
|
1662
|
-
function
|
|
1663
|
-
function
|
|
1664
|
-
if (!(w[
|
|
1665
|
-
var
|
|
1666
|
-
return new
|
|
1474
|
+
function V(l) {
|
|
1475
|
+
function u(w, x, m, _, E) {
|
|
1476
|
+
if (!(w[x] instanceof l)) {
|
|
1477
|
+
var O = l.name || M, P = Z(w[x]);
|
|
1478
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected ") + ("instance of `" + O + "`."));
|
|
1667
1479
|
}
|
|
1668
1480
|
return null;
|
|
1669
1481
|
}
|
|
1670
|
-
return
|
|
1482
|
+
return W(u);
|
|
1671
1483
|
}
|
|
1672
|
-
function
|
|
1484
|
+
function H(l) {
|
|
1673
1485
|
if (!Array.isArray(l))
|
|
1674
1486
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1675
1487
|
"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])."
|
|
1676
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")),
|
|
1677
|
-
function
|
|
1678
|
-
for (var
|
|
1679
|
-
if (
|
|
1488
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
1489
|
+
function u(w, x, m, _, E) {
|
|
1490
|
+
for (var O = w[x], P = 0; P < l.length; P++)
|
|
1491
|
+
if (B(O, l[P]))
|
|
1680
1492
|
return null;
|
|
1681
|
-
var
|
|
1682
|
-
var
|
|
1683
|
-
return
|
|
1493
|
+
var A = JSON.stringify(l, function(J, f) {
|
|
1494
|
+
var te = N(f);
|
|
1495
|
+
return te === "symbol" ? String(f) : f;
|
|
1684
1496
|
});
|
|
1685
|
-
return new
|
|
1497
|
+
return new R("Invalid " + _ + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + m + "`, expected one of " + A + "."));
|
|
1686
1498
|
}
|
|
1687
|
-
return
|
|
1499
|
+
return W(u);
|
|
1688
1500
|
}
|
|
1689
|
-
function
|
|
1690
|
-
function
|
|
1501
|
+
function F(l) {
|
|
1502
|
+
function u(w, x, m, _, E) {
|
|
1691
1503
|
if (typeof l != "function")
|
|
1692
|
-
return new
|
|
1693
|
-
var
|
|
1694
|
-
if (
|
|
1695
|
-
return new
|
|
1696
|
-
for (var
|
|
1697
|
-
if (t(
|
|
1698
|
-
var
|
|
1699
|
-
if (
|
|
1700
|
-
return
|
|
1504
|
+
return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
|
|
1505
|
+
var O = w[x], P = S(O);
|
|
1506
|
+
if (P !== "object")
|
|
1507
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an object."));
|
|
1508
|
+
for (var A in O)
|
|
1509
|
+
if (t(O, A)) {
|
|
1510
|
+
var k = l(O, A, m, _, E + "." + A, o);
|
|
1511
|
+
if (k instanceof Error)
|
|
1512
|
+
return k;
|
|
1701
1513
|
}
|
|
1702
1514
|
return null;
|
|
1703
1515
|
}
|
|
1704
|
-
return
|
|
1516
|
+
return W(u);
|
|
1705
1517
|
}
|
|
1706
|
-
function
|
|
1518
|
+
function re(l) {
|
|
1707
1519
|
if (!Array.isArray(l))
|
|
1708
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
1709
|
-
for (var
|
|
1710
|
-
var w = l[
|
|
1520
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
1521
|
+
for (var u = 0; u < l.length; u++) {
|
|
1522
|
+
var w = l[u];
|
|
1711
1523
|
if (typeof w != "function")
|
|
1712
1524
|
return a(
|
|
1713
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1714
|
-
),
|
|
1525
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(w) + " at index " + u + "."
|
|
1526
|
+
), d;
|
|
1715
1527
|
}
|
|
1716
|
-
function
|
|
1717
|
-
for (var
|
|
1718
|
-
var
|
|
1719
|
-
if (
|
|
1528
|
+
function x(m, _, E, O, P) {
|
|
1529
|
+
for (var A = [], k = 0; k < l.length; k++) {
|
|
1530
|
+
var J = l[k], f = J(m, _, E, O, P, o);
|
|
1531
|
+
if (f == null)
|
|
1720
1532
|
return null;
|
|
1721
|
-
|
|
1533
|
+
f.data && t(f.data, "expectedType") && A.push(f.data.expectedType);
|
|
1722
1534
|
}
|
|
1723
|
-
var
|
|
1724
|
-
return new
|
|
1535
|
+
var te = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
|
|
1536
|
+
return new R("Invalid " + O + " `" + P + "` supplied to " + ("`" + E + "`" + te + "."));
|
|
1725
1537
|
}
|
|
1726
|
-
return
|
|
1538
|
+
return W(x);
|
|
1727
1539
|
}
|
|
1728
|
-
function
|
|
1729
|
-
function l(
|
|
1730
|
-
return
|
|
1540
|
+
function le() {
|
|
1541
|
+
function l(u, w, x, m, _) {
|
|
1542
|
+
return K(u[w]) ? null : new R("Invalid " + m + " `" + _ + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
1731
1543
|
}
|
|
1732
|
-
return
|
|
1544
|
+
return W(l);
|
|
1733
1545
|
}
|
|
1734
|
-
function
|
|
1735
|
-
return new
|
|
1736
|
-
(l || "React class") + ": " +
|
|
1546
|
+
function oe(l, u, w, x, m) {
|
|
1547
|
+
return new R(
|
|
1548
|
+
(l || "React class") + ": " + u + " type `" + w + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
|
|
1737
1549
|
);
|
|
1738
1550
|
}
|
|
1739
|
-
function
|
|
1740
|
-
function
|
|
1741
|
-
var
|
|
1742
|
-
if (
|
|
1743
|
-
return new
|
|
1744
|
-
for (var
|
|
1745
|
-
var
|
|
1746
|
-
if (typeof
|
|
1747
|
-
return
|
|
1748
|
-
var
|
|
1749
|
-
if (
|
|
1750
|
-
return
|
|
1551
|
+
function ae(l) {
|
|
1552
|
+
function u(w, x, m, _, E) {
|
|
1553
|
+
var O = w[x], P = S(O);
|
|
1554
|
+
if (P !== "object")
|
|
1555
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
1556
|
+
for (var A in l) {
|
|
1557
|
+
var k = l[A];
|
|
1558
|
+
if (typeof k != "function")
|
|
1559
|
+
return oe(m, _, E, A, N(k));
|
|
1560
|
+
var J = k(O, A, m, _, E + "." + A, o);
|
|
1561
|
+
if (J)
|
|
1562
|
+
return J;
|
|
1751
1563
|
}
|
|
1752
1564
|
return null;
|
|
1753
1565
|
}
|
|
1754
|
-
return
|
|
1755
|
-
}
|
|
1756
|
-
function
|
|
1757
|
-
function
|
|
1758
|
-
var
|
|
1759
|
-
if (
|
|
1760
|
-
return new
|
|
1761
|
-
var
|
|
1762
|
-
for (var
|
|
1763
|
-
var
|
|
1764
|
-
if (t(l,
|
|
1765
|
-
return
|
|
1766
|
-
if (!
|
|
1767
|
-
return new
|
|
1768
|
-
"Invalid " +
|
|
1566
|
+
return W(u);
|
|
1567
|
+
}
|
|
1568
|
+
function ie(l) {
|
|
1569
|
+
function u(w, x, m, _, E) {
|
|
1570
|
+
var O = w[x], P = S(O);
|
|
1571
|
+
if (P !== "object")
|
|
1572
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
1573
|
+
var A = s({}, w[x], l);
|
|
1574
|
+
for (var k in A) {
|
|
1575
|
+
var J = l[k];
|
|
1576
|
+
if (t(l, k) && typeof J != "function")
|
|
1577
|
+
return oe(m, _, E, k, N(J));
|
|
1578
|
+
if (!J)
|
|
1579
|
+
return new R(
|
|
1580
|
+
"Invalid " + _ + " `" + E + "` key `" + k + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(w[x], null, " ") + `
|
|
1769
1581
|
Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
1770
1582
|
);
|
|
1771
|
-
var
|
|
1772
|
-
if (
|
|
1773
|
-
return
|
|
1583
|
+
var f = J(O, k, m, _, E + "." + k, o);
|
|
1584
|
+
if (f)
|
|
1585
|
+
return f;
|
|
1774
1586
|
}
|
|
1775
1587
|
return null;
|
|
1776
1588
|
}
|
|
1777
|
-
return
|
|
1589
|
+
return W(u);
|
|
1778
1590
|
}
|
|
1779
|
-
function
|
|
1591
|
+
function K(l) {
|
|
1780
1592
|
switch (typeof l) {
|
|
1781
1593
|
case "number":
|
|
1782
1594
|
case "string":
|
|
@@ -1786,20 +1598,20 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1786
1598
|
return !l;
|
|
1787
1599
|
case "object":
|
|
1788
1600
|
if (Array.isArray(l))
|
|
1789
|
-
return l.every(
|
|
1790
|
-
if (l === null ||
|
|
1601
|
+
return l.every(K);
|
|
1602
|
+
if (l === null || y(l))
|
|
1791
1603
|
return !0;
|
|
1792
|
-
var
|
|
1793
|
-
if (
|
|
1794
|
-
var w =
|
|
1795
|
-
if (
|
|
1796
|
-
for (; !(
|
|
1797
|
-
if (!
|
|
1604
|
+
var u = j(l);
|
|
1605
|
+
if (u) {
|
|
1606
|
+
var w = u.call(l), x;
|
|
1607
|
+
if (u !== l.entries) {
|
|
1608
|
+
for (; !(x = w.next()).done; )
|
|
1609
|
+
if (!K(x.value))
|
|
1798
1610
|
return !1;
|
|
1799
1611
|
} else
|
|
1800
|
-
for (; !(
|
|
1801
|
-
var
|
|
1802
|
-
if (
|
|
1612
|
+
for (; !(x = w.next()).done; ) {
|
|
1613
|
+
var m = x.value;
|
|
1614
|
+
if (m && !K(m[1]))
|
|
1803
1615
|
return !1;
|
|
1804
1616
|
}
|
|
1805
1617
|
} else
|
|
@@ -1809,65 +1621,65 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1809
1621
|
return !1;
|
|
1810
1622
|
}
|
|
1811
1623
|
}
|
|
1812
|
-
function
|
|
1813
|
-
return l === "symbol" ? !0 :
|
|
1624
|
+
function ce(l, u) {
|
|
1625
|
+
return l === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
1814
1626
|
}
|
|
1815
|
-
function
|
|
1816
|
-
var
|
|
1817
|
-
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" :
|
|
1627
|
+
function S(l) {
|
|
1628
|
+
var u = typeof l;
|
|
1629
|
+
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : ce(u, l) ? "symbol" : u;
|
|
1818
1630
|
}
|
|
1819
1631
|
function N(l) {
|
|
1820
1632
|
if (typeof l > "u" || l === null)
|
|
1821
1633
|
return "" + l;
|
|
1822
|
-
var
|
|
1823
|
-
if (
|
|
1634
|
+
var u = S(l);
|
|
1635
|
+
if (u === "object") {
|
|
1824
1636
|
if (l instanceof Date)
|
|
1825
1637
|
return "date";
|
|
1826
1638
|
if (l instanceof RegExp)
|
|
1827
1639
|
return "regexp";
|
|
1828
1640
|
}
|
|
1829
|
-
return
|
|
1641
|
+
return u;
|
|
1830
1642
|
}
|
|
1831
|
-
function
|
|
1832
|
-
var
|
|
1833
|
-
switch (
|
|
1643
|
+
function L(l) {
|
|
1644
|
+
var u = N(l);
|
|
1645
|
+
switch (u) {
|
|
1834
1646
|
case "array":
|
|
1835
1647
|
case "object":
|
|
1836
|
-
return "an " +
|
|
1648
|
+
return "an " + u;
|
|
1837
1649
|
case "boolean":
|
|
1838
1650
|
case "date":
|
|
1839
1651
|
case "regexp":
|
|
1840
|
-
return "a " +
|
|
1652
|
+
return "a " + u;
|
|
1841
1653
|
default:
|
|
1842
|
-
return
|
|
1654
|
+
return u;
|
|
1843
1655
|
}
|
|
1844
1656
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return !l.constructor || !l.constructor.name ?
|
|
1657
|
+
function Z(l) {
|
|
1658
|
+
return !l.constructor || !l.constructor.name ? M : l.constructor.name;
|
|
1847
1659
|
}
|
|
1848
|
-
return
|
|
1849
|
-
},
|
|
1660
|
+
return z.checkPropTypes = i, z.resetWarningCache = i.resetWarningCache, z.PropTypes = z, z;
|
|
1661
|
+
}, Me;
|
|
1850
1662
|
}
|
|
1851
|
-
var
|
|
1852
|
-
function
|
|
1853
|
-
if (
|
|
1854
|
-
|
|
1855
|
-
var
|
|
1856
|
-
function
|
|
1663
|
+
var Ae, ur;
|
|
1664
|
+
function Wr() {
|
|
1665
|
+
if (ur) return Ae;
|
|
1666
|
+
ur = 1;
|
|
1667
|
+
var e = /* @__PURE__ */ Ve();
|
|
1668
|
+
function s() {
|
|
1857
1669
|
}
|
|
1858
1670
|
function o() {
|
|
1859
1671
|
}
|
|
1860
|
-
return o.resetWarningCache =
|
|
1861
|
-
function t(
|
|
1862
|
-
if (
|
|
1863
|
-
var
|
|
1672
|
+
return o.resetWarningCache = s, Ae = function() {
|
|
1673
|
+
function t(d, y, h, b, g, j) {
|
|
1674
|
+
if (j !== e) {
|
|
1675
|
+
var M = new Error(
|
|
1864
1676
|
"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"
|
|
1865
1677
|
);
|
|
1866
|
-
throw
|
|
1678
|
+
throw M.name = "Invariant Violation", M;
|
|
1867
1679
|
}
|
|
1868
1680
|
}
|
|
1869
1681
|
t.isRequired = t;
|
|
1870
|
-
function
|
|
1682
|
+
function i() {
|
|
1871
1683
|
return t;
|
|
1872
1684
|
}
|
|
1873
1685
|
var a = {
|
|
@@ -1880,65 +1692,65 @@ function Tt() {
|
|
|
1880
1692
|
string: t,
|
|
1881
1693
|
symbol: t,
|
|
1882
1694
|
any: t,
|
|
1883
|
-
arrayOf:
|
|
1695
|
+
arrayOf: i,
|
|
1884
1696
|
element: t,
|
|
1885
1697
|
elementType: t,
|
|
1886
|
-
instanceOf:
|
|
1698
|
+
instanceOf: i,
|
|
1887
1699
|
node: t,
|
|
1888
|
-
objectOf:
|
|
1889
|
-
oneOf:
|
|
1890
|
-
oneOfType:
|
|
1891
|
-
shape:
|
|
1892
|
-
exact:
|
|
1700
|
+
objectOf: i,
|
|
1701
|
+
oneOf: i,
|
|
1702
|
+
oneOfType: i,
|
|
1703
|
+
shape: i,
|
|
1704
|
+
exact: i,
|
|
1893
1705
|
checkPropTypes: o,
|
|
1894
|
-
resetWarningCache:
|
|
1706
|
+
resetWarningCache: s
|
|
1895
1707
|
};
|
|
1896
1708
|
return a.PropTypes = a, a;
|
|
1897
|
-
},
|
|
1709
|
+
}, Ae;
|
|
1898
1710
|
}
|
|
1899
|
-
var
|
|
1900
|
-
function
|
|
1901
|
-
if (
|
|
1902
|
-
if (
|
|
1903
|
-
var
|
|
1904
|
-
|
|
1711
|
+
var fr;
|
|
1712
|
+
function Dr() {
|
|
1713
|
+
if (fr) return Oe.exports;
|
|
1714
|
+
if (fr = 1, process.env.NODE_ENV !== "production") {
|
|
1715
|
+
var e = pr(), s = !0;
|
|
1716
|
+
Oe.exports = /* @__PURE__ */ zr()(e.isElement, s);
|
|
1905
1717
|
} else
|
|
1906
|
-
|
|
1907
|
-
return
|
|
1718
|
+
Oe.exports = /* @__PURE__ */ Wr()();
|
|
1719
|
+
return Oe.exports;
|
|
1908
1720
|
}
|
|
1909
|
-
var
|
|
1910
|
-
const
|
|
1911
|
-
function
|
|
1912
|
-
return
|
|
1913
|
-
for (var
|
|
1914
|
-
var o = arguments[
|
|
1721
|
+
var Vr = /* @__PURE__ */ Dr();
|
|
1722
|
+
const G = /* @__PURE__ */ xr(Vr);
|
|
1723
|
+
function $e() {
|
|
1724
|
+
return $e = Object.assign || function(e) {
|
|
1725
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
1726
|
+
var o = arguments[s];
|
|
1915
1727
|
for (var t in o)
|
|
1916
|
-
Object.prototype.hasOwnProperty.call(o, t) && (
|
|
1728
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
1917
1729
|
}
|
|
1918
|
-
return
|
|
1919
|
-
},
|
|
1730
|
+
return e;
|
|
1731
|
+
}, $e.apply(this, arguments);
|
|
1920
1732
|
}
|
|
1921
|
-
function
|
|
1922
|
-
if (
|
|
1923
|
-
var o =
|
|
1733
|
+
function qr(e, s) {
|
|
1734
|
+
if (e == null) return {};
|
|
1735
|
+
var o = Fr(e, s), t, i;
|
|
1924
1736
|
if (Object.getOwnPropertySymbols) {
|
|
1925
|
-
var a = Object.getOwnPropertySymbols(
|
|
1926
|
-
for (
|
|
1927
|
-
t = a[
|
|
1737
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1738
|
+
for (i = 0; i < a.length; i++)
|
|
1739
|
+
t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
1928
1740
|
}
|
|
1929
1741
|
return o;
|
|
1930
1742
|
}
|
|
1931
|
-
function
|
|
1932
|
-
if (
|
|
1933
|
-
var o = {}, t = Object.keys(
|
|
1743
|
+
function Fr(e, s) {
|
|
1744
|
+
if (e == null) return {};
|
|
1745
|
+
var o = {}, t = Object.keys(e), i, a;
|
|
1934
1746
|
for (a = 0; a < t.length; a++)
|
|
1935
|
-
|
|
1747
|
+
i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1936
1748
|
return o;
|
|
1937
1749
|
}
|
|
1938
|
-
var
|
|
1939
|
-
var o =
|
|
1940
|
-
return /* @__PURE__ */
|
|
1941
|
-
ref:
|
|
1750
|
+
var qe = Re(function(e, s) {
|
|
1751
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = qr(e, ["color", "size"]);
|
|
1752
|
+
return /* @__PURE__ */ ne.createElement("svg", $e({
|
|
1753
|
+
ref: s,
|
|
1942
1754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1943
1755
|
width: a,
|
|
1944
1756
|
height: a,
|
|
@@ -1948,46 +1760,46 @@ var Xe = ke(function(r, i) {
|
|
|
1948
1760
|
strokeWidth: "2",
|
|
1949
1761
|
strokeLinecap: "round",
|
|
1950
1762
|
strokeLinejoin: "round"
|
|
1951
|
-
},
|
|
1763
|
+
}, d), /* @__PURE__ */ ne.createElement("polyline", {
|
|
1952
1764
|
points: "20 6 9 17 4 12"
|
|
1953
1765
|
}));
|
|
1954
1766
|
});
|
|
1955
|
-
|
|
1956
|
-
color:
|
|
1957
|
-
size:
|
|
1767
|
+
qe.propTypes = {
|
|
1768
|
+
color: G.string,
|
|
1769
|
+
size: G.oneOfType([G.string, G.number])
|
|
1958
1770
|
};
|
|
1959
|
-
|
|
1960
|
-
function
|
|
1961
|
-
return
|
|
1962
|
-
for (var
|
|
1963
|
-
var o = arguments[
|
|
1771
|
+
qe.displayName = "Check";
|
|
1772
|
+
function Ie() {
|
|
1773
|
+
return Ie = Object.assign || function(e) {
|
|
1774
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
1775
|
+
var o = arguments[s];
|
|
1964
1776
|
for (var t in o)
|
|
1965
|
-
Object.prototype.hasOwnProperty.call(o, t) && (
|
|
1777
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
1966
1778
|
}
|
|
1967
|
-
return
|
|
1968
|
-
},
|
|
1779
|
+
return e;
|
|
1780
|
+
}, Ie.apply(this, arguments);
|
|
1969
1781
|
}
|
|
1970
|
-
function
|
|
1971
|
-
if (
|
|
1972
|
-
var o =
|
|
1782
|
+
function Ur(e, s) {
|
|
1783
|
+
if (e == null) return {};
|
|
1784
|
+
var o = Br(e, s), t, i;
|
|
1973
1785
|
if (Object.getOwnPropertySymbols) {
|
|
1974
|
-
var a = Object.getOwnPropertySymbols(
|
|
1975
|
-
for (
|
|
1976
|
-
t = a[
|
|
1786
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1787
|
+
for (i = 0; i < a.length; i++)
|
|
1788
|
+
t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
1977
1789
|
}
|
|
1978
1790
|
return o;
|
|
1979
1791
|
}
|
|
1980
|
-
function
|
|
1981
|
-
if (
|
|
1982
|
-
var o = {}, t = Object.keys(
|
|
1792
|
+
function Br(e, s) {
|
|
1793
|
+
if (e == null) return {};
|
|
1794
|
+
var o = {}, t = Object.keys(e), i, a;
|
|
1983
1795
|
for (a = 0; a < t.length; a++)
|
|
1984
|
-
|
|
1796
|
+
i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1985
1797
|
return o;
|
|
1986
1798
|
}
|
|
1987
|
-
var
|
|
1988
|
-
var o =
|
|
1989
|
-
return /* @__PURE__ */
|
|
1990
|
-
ref:
|
|
1799
|
+
var Fe = Re(function(e, s) {
|
|
1800
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Ur(e, ["color", "size"]);
|
|
1801
|
+
return /* @__PURE__ */ ne.createElement("svg", Ie({
|
|
1802
|
+
ref: s,
|
|
1991
1803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1992
1804
|
width: a,
|
|
1993
1805
|
height: a,
|
|
@@ -1997,53 +1809,53 @@ var Ge = ke(function(r, i) {
|
|
|
1997
1809
|
strokeWidth: "2",
|
|
1998
1810
|
strokeLinecap: "round",
|
|
1999
1811
|
strokeLinejoin: "round"
|
|
2000
|
-
},
|
|
1812
|
+
}, d), /* @__PURE__ */ ne.createElement("rect", {
|
|
2001
1813
|
x: "9",
|
|
2002
1814
|
y: "9",
|
|
2003
1815
|
width: "13",
|
|
2004
1816
|
height: "13",
|
|
2005
1817
|
rx: "2",
|
|
2006
1818
|
ry: "2"
|
|
2007
|
-
}), /* @__PURE__ */
|
|
1819
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
2008
1820
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
2009
1821
|
}));
|
|
2010
1822
|
});
|
|
2011
|
-
|
|
2012
|
-
color:
|
|
2013
|
-
size:
|
|
1823
|
+
Fe.propTypes = {
|
|
1824
|
+
color: G.string,
|
|
1825
|
+
size: G.oneOfType([G.string, G.number])
|
|
2014
1826
|
};
|
|
2015
|
-
|
|
2016
|
-
function
|
|
2017
|
-
return
|
|
2018
|
-
for (var
|
|
2019
|
-
var o = arguments[
|
|
1827
|
+
Fe.displayName = "Copy";
|
|
1828
|
+
function Ye() {
|
|
1829
|
+
return Ye = Object.assign || function(e) {
|
|
1830
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
1831
|
+
var o = arguments[s];
|
|
2020
1832
|
for (var t in o)
|
|
2021
|
-
Object.prototype.hasOwnProperty.call(o, t) && (
|
|
1833
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
2022
1834
|
}
|
|
2023
|
-
return
|
|
2024
|
-
},
|
|
1835
|
+
return e;
|
|
1836
|
+
}, Ye.apply(this, arguments);
|
|
2025
1837
|
}
|
|
2026
|
-
function
|
|
2027
|
-
if (
|
|
2028
|
-
var o =
|
|
1838
|
+
function Zr(e, s) {
|
|
1839
|
+
if (e == null) return {};
|
|
1840
|
+
var o = Hr(e, s), t, i;
|
|
2029
1841
|
if (Object.getOwnPropertySymbols) {
|
|
2030
|
-
var a = Object.getOwnPropertySymbols(
|
|
2031
|
-
for (
|
|
2032
|
-
t = a[
|
|
1842
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1843
|
+
for (i = 0; i < a.length; i++)
|
|
1844
|
+
t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
2033
1845
|
}
|
|
2034
1846
|
return o;
|
|
2035
1847
|
}
|
|
2036
|
-
function
|
|
2037
|
-
if (
|
|
2038
|
-
var o = {}, t = Object.keys(
|
|
1848
|
+
function Hr(e, s) {
|
|
1849
|
+
if (e == null) return {};
|
|
1850
|
+
var o = {}, t = Object.keys(e), i, a;
|
|
2039
1851
|
for (a = 0; a < t.length; a++)
|
|
2040
|
-
|
|
1852
|
+
i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
2041
1853
|
return o;
|
|
2042
1854
|
}
|
|
2043
|
-
var
|
|
2044
|
-
var o =
|
|
2045
|
-
return /* @__PURE__ */
|
|
2046
|
-
ref:
|
|
1855
|
+
var Ue = Re(function(e, s) {
|
|
1856
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Zr(e, ["color", "size"]);
|
|
1857
|
+
return /* @__PURE__ */ ne.createElement("svg", Ye({
|
|
1858
|
+
ref: s,
|
|
2047
1859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2048
1860
|
width: a,
|
|
2049
1861
|
height: a,
|
|
@@ -2053,48 +1865,48 @@ var Qe = ke(function(r, i) {
|
|
|
2053
1865
|
strokeWidth: "2",
|
|
2054
1866
|
strokeLinecap: "round",
|
|
2055
1867
|
strokeLinejoin: "round"
|
|
2056
|
-
},
|
|
1868
|
+
}, d), /* @__PURE__ */ ne.createElement("path", {
|
|
2057
1869
|
d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
|
|
2058
|
-
}), /* @__PURE__ */
|
|
1870
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
2059
1871
|
d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
|
|
2060
1872
|
}));
|
|
2061
1873
|
});
|
|
2062
|
-
|
|
2063
|
-
color:
|
|
2064
|
-
size:
|
|
1874
|
+
Ue.propTypes = {
|
|
1875
|
+
color: G.string,
|
|
1876
|
+
size: G.oneOfType([G.string, G.number])
|
|
2065
1877
|
};
|
|
2066
|
-
|
|
2067
|
-
function
|
|
2068
|
-
return
|
|
2069
|
-
for (var
|
|
2070
|
-
var o = arguments[
|
|
1878
|
+
Ue.displayName = "Edit";
|
|
1879
|
+
function ze() {
|
|
1880
|
+
return ze = Object.assign || function(e) {
|
|
1881
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
1882
|
+
var o = arguments[s];
|
|
2071
1883
|
for (var t in o)
|
|
2072
|
-
Object.prototype.hasOwnProperty.call(o, t) && (
|
|
1884
|
+
Object.prototype.hasOwnProperty.call(o, t) && (e[t] = o[t]);
|
|
2073
1885
|
}
|
|
2074
|
-
return
|
|
2075
|
-
},
|
|
1886
|
+
return e;
|
|
1887
|
+
}, ze.apply(this, arguments);
|
|
2076
1888
|
}
|
|
2077
|
-
function
|
|
2078
|
-
if (
|
|
2079
|
-
var o =
|
|
1889
|
+
function Jr(e, s) {
|
|
1890
|
+
if (e == null) return {};
|
|
1891
|
+
var o = Xr(e, s), t, i;
|
|
2080
1892
|
if (Object.getOwnPropertySymbols) {
|
|
2081
|
-
var a = Object.getOwnPropertySymbols(
|
|
2082
|
-
for (
|
|
2083
|
-
t = a[
|
|
1893
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1894
|
+
for (i = 0; i < a.length; i++)
|
|
1895
|
+
t = a[i], !(s.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
2084
1896
|
}
|
|
2085
1897
|
return o;
|
|
2086
1898
|
}
|
|
2087
|
-
function
|
|
2088
|
-
if (
|
|
2089
|
-
var o = {}, t = Object.keys(
|
|
1899
|
+
function Xr(e, s) {
|
|
1900
|
+
if (e == null) return {};
|
|
1901
|
+
var o = {}, t = Object.keys(e), i, a;
|
|
2090
1902
|
for (a = 0; a < t.length; a++)
|
|
2091
|
-
|
|
1903
|
+
i = t[a], !(s.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
2092
1904
|
return o;
|
|
2093
1905
|
}
|
|
2094
|
-
var
|
|
2095
|
-
var o =
|
|
2096
|
-
return /* @__PURE__ */
|
|
2097
|
-
ref:
|
|
1906
|
+
var Be = Re(function(e, s) {
|
|
1907
|
+
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Jr(e, ["color", "size"]);
|
|
1908
|
+
return /* @__PURE__ */ ne.createElement("svg", ze({
|
|
1909
|
+
ref: s,
|
|
2098
1910
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2099
1911
|
width: a,
|
|
2100
1912
|
height: a,
|
|
@@ -2104,232 +1916,232 @@ var er = ke(function(r, i) {
|
|
|
2104
1916
|
strokeWidth: "2",
|
|
2105
1917
|
strokeLinecap: "round",
|
|
2106
1918
|
strokeLinejoin: "round"
|
|
2107
|
-
},
|
|
1919
|
+
}, d), /* @__PURE__ */ ne.createElement("polyline", {
|
|
2108
1920
|
points: "3 6 5 6 21 6"
|
|
2109
|
-
}), /* @__PURE__ */
|
|
1921
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
2110
1922
|
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
2111
1923
|
}));
|
|
2112
1924
|
});
|
|
2113
|
-
|
|
2114
|
-
color:
|
|
2115
|
-
size:
|
|
1925
|
+
Be.propTypes = {
|
|
1926
|
+
color: G.string,
|
|
1927
|
+
size: G.oneOfType([G.string, G.number])
|
|
2116
1928
|
};
|
|
2117
|
-
|
|
2118
|
-
const
|
|
2119
|
-
user:
|
|
2120
|
-
messages:
|
|
1929
|
+
Be.displayName = "Trash";
|
|
1930
|
+
const Gr = ({
|
|
1931
|
+
user: e,
|
|
1932
|
+
messages: s,
|
|
2121
1933
|
updateMessages: o,
|
|
2122
1934
|
onMessageSent: t,
|
|
2123
|
-
onEditMessage:
|
|
1935
|
+
onEditMessage: i,
|
|
2124
1936
|
onDeleteMessage: a
|
|
2125
1937
|
}) => {
|
|
2126
|
-
const
|
|
1938
|
+
const d = ye(null), [y, h] = se(!1), [b, g] = se(null), [j, M] = se(null), z = () => {
|
|
2127
1939
|
setTimeout(() => {
|
|
2128
|
-
|
|
1940
|
+
d.current && (d.current.scrollTop = d.current.scrollHeight);
|
|
2129
1941
|
}, 100);
|
|
2130
|
-
},
|
|
2131
|
-
if (
|
|
2132
|
-
const
|
|
2133
|
-
|
|
2134
|
-
x:
|
|
2135
|
-
y:
|
|
2136
|
-
message:
|
|
1942
|
+
}, B = (c, V) => {
|
|
1943
|
+
if (c.preventDefault(), !d.current) return;
|
|
1944
|
+
const H = d.current.getBoundingClientRect();
|
|
1945
|
+
M({
|
|
1946
|
+
x: c.clientX - H.left,
|
|
1947
|
+
y: c.clientY - H.top,
|
|
1948
|
+
message: V
|
|
2137
1949
|
});
|
|
2138
|
-
},
|
|
2139
|
-
|
|
2140
|
-
},
|
|
2141
|
-
const
|
|
1950
|
+
}, R = () => {
|
|
1951
|
+
M(null);
|
|
1952
|
+
}, W = (c) => {
|
|
1953
|
+
const V = new _e({
|
|
2142
1954
|
id: (/* @__PURE__ */ new Date()).toString(),
|
|
2143
|
-
text:
|
|
2144
|
-
user:
|
|
1955
|
+
text: c,
|
|
1956
|
+
user: e,
|
|
2145
1957
|
isRightSided: !0,
|
|
2146
1958
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
2147
1959
|
});
|
|
2148
|
-
o([...
|
|
2149
|
-
},
|
|
2150
|
-
const
|
|
1960
|
+
o([...s, V]), t(V), z();
|
|
1961
|
+
}, q = (c) => {
|
|
1962
|
+
const V = new _e({
|
|
2151
1963
|
id: (/* @__PURE__ */ new Date()).toString(),
|
|
2152
1964
|
text: "",
|
|
2153
|
-
attachment:
|
|
2154
|
-
attachmentType:
|
|
2155
|
-
user:
|
|
1965
|
+
attachment: c,
|
|
1966
|
+
attachmentType: ge.Voice,
|
|
1967
|
+
user: e,
|
|
2156
1968
|
isRightSided: !0,
|
|
2157
1969
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
2158
1970
|
});
|
|
2159
|
-
o([...
|
|
2160
|
-
},
|
|
2161
|
-
const
|
|
1971
|
+
o([...s, V]), t(V), z();
|
|
1972
|
+
}, ee = (c) => {
|
|
1973
|
+
const V = URL.createObjectURL(c), H = new _e({
|
|
2162
1974
|
id: (/* @__PURE__ */ new Date()).toString(),
|
|
2163
1975
|
text: "",
|
|
2164
|
-
attachment:
|
|
2165
|
-
attachmentType:
|
|
2166
|
-
user:
|
|
1976
|
+
attachment: V,
|
|
1977
|
+
attachmentType: ge.File,
|
|
1978
|
+
user: e,
|
|
2167
1979
|
isRightSided: !0,
|
|
2168
1980
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
2169
1981
|
});
|
|
2170
|
-
o([...
|
|
1982
|
+
o([...s, H]), t(H), z();
|
|
2171
1983
|
};
|
|
2172
1984
|
return {
|
|
2173
1985
|
handleDeleteConfirmation: () => {
|
|
2174
|
-
b && (a(b),
|
|
1986
|
+
b && (a(b), g(null)), h(!1);
|
|
2175
1987
|
},
|
|
2176
|
-
handleCloseContextMenu:
|
|
1988
|
+
handleCloseContextMenu: R,
|
|
2177
1989
|
contextMenuItems: [
|
|
2178
1990
|
{
|
|
2179
1991
|
name: "Edit",
|
|
2180
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
1992
|
+
icon: /* @__PURE__ */ n.jsx(Ue, { className: "text-gray-600" }),
|
|
2181
1993
|
onlyCurrentUserMessage: !0,
|
|
2182
|
-
onClick: (
|
|
2183
|
-
console.log("Edit clicked"),
|
|
1994
|
+
onClick: (c) => {
|
|
1995
|
+
console.log("Edit clicked"), R(), i(c);
|
|
2184
1996
|
}
|
|
2185
1997
|
},
|
|
2186
1998
|
{
|
|
2187
1999
|
name: "Delete",
|
|
2188
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2000
|
+
icon: /* @__PURE__ */ n.jsx(Be, { className: "text-red-600" }),
|
|
2189
2001
|
onlyCurrentUserMessage: !0,
|
|
2190
|
-
onClick: (
|
|
2191
|
-
|
|
2002
|
+
onClick: (c) => {
|
|
2003
|
+
g(c), h(!0), R();
|
|
2192
2004
|
}
|
|
2193
2005
|
},
|
|
2194
2006
|
{
|
|
2195
2007
|
name: "Select",
|
|
2196
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2008
|
+
icon: /* @__PURE__ */ n.jsx(qe, { className: "text-green-600" }),
|
|
2197
2009
|
onClick: () => {
|
|
2198
|
-
console.log("Select clicked"),
|
|
2010
|
+
console.log("Select clicked"), R();
|
|
2199
2011
|
}
|
|
2200
2012
|
},
|
|
2201
2013
|
{
|
|
2202
2014
|
name: "Copy",
|
|
2203
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2015
|
+
icon: /* @__PURE__ */ n.jsx(Fe, { className: "text-blue-600" }),
|
|
2204
2016
|
onClick: () => {
|
|
2205
|
-
console.log("Copy clicked"),
|
|
2017
|
+
console.log("Copy clicked"), R();
|
|
2206
2018
|
}
|
|
2207
2019
|
}
|
|
2208
2020
|
],
|
|
2209
|
-
handleSendFile:
|
|
2210
|
-
handleSendVoice:
|
|
2211
|
-
handleSendMessage:
|
|
2212
|
-
handleContextMenu:
|
|
2213
|
-
isModalOpen:
|
|
2214
|
-
contextMenu:
|
|
2215
|
-
chatRef:
|
|
2216
|
-
setIsModalOpen:
|
|
2021
|
+
handleSendFile: ee,
|
|
2022
|
+
handleSendVoice: q,
|
|
2023
|
+
handleSendMessage: W,
|
|
2024
|
+
handleContextMenu: B,
|
|
2025
|
+
isModalOpen: y,
|
|
2026
|
+
contextMenu: j,
|
|
2027
|
+
chatRef: d,
|
|
2028
|
+
setIsModalOpen: h
|
|
2217
2029
|
};
|
|
2218
|
-
},
|
|
2219
|
-
width:
|
|
2220
|
-
height:
|
|
2030
|
+
}, rt = ({
|
|
2031
|
+
width: e = "400px",
|
|
2032
|
+
height: s = "600px",
|
|
2221
2033
|
className: o,
|
|
2222
2034
|
style: t,
|
|
2223
|
-
messages:
|
|
2035
|
+
messages: i,
|
|
2224
2036
|
user: a,
|
|
2225
|
-
updateMessages:
|
|
2226
|
-
onMessageSent:
|
|
2227
|
-
onDeleteMessage:
|
|
2037
|
+
updateMessages: d,
|
|
2038
|
+
onMessageSent: y,
|
|
2039
|
+
onDeleteMessage: h,
|
|
2228
2040
|
onEditMessage: b,
|
|
2229
|
-
dynamicSymbolAssignments:
|
|
2041
|
+
dynamicSymbolAssignments: g
|
|
2230
2042
|
}) => {
|
|
2231
|
-
var
|
|
2043
|
+
var V, H;
|
|
2232
2044
|
const {
|
|
2233
|
-
handleDeleteConfirmation:
|
|
2234
|
-
handleCloseContextMenu:
|
|
2235
|
-
handleSendFile:
|
|
2236
|
-
handleSendVoice:
|
|
2237
|
-
handleSendMessage:
|
|
2238
|
-
handleContextMenu:
|
|
2239
|
-
contextMenuItems:
|
|
2240
|
-
isModalOpen:
|
|
2241
|
-
contextMenu:
|
|
2242
|
-
chatRef:
|
|
2243
|
-
setIsModalOpen:
|
|
2244
|
-
} =
|
|
2045
|
+
handleDeleteConfirmation: j,
|
|
2046
|
+
handleCloseContextMenu: M,
|
|
2047
|
+
handleSendFile: z,
|
|
2048
|
+
handleSendVoice: B,
|
|
2049
|
+
handleSendMessage: R,
|
|
2050
|
+
handleContextMenu: W,
|
|
2051
|
+
contextMenuItems: q,
|
|
2052
|
+
isModalOpen: ee,
|
|
2053
|
+
contextMenu: C,
|
|
2054
|
+
chatRef: D,
|
|
2055
|
+
setIsModalOpen: c
|
|
2056
|
+
} = Gr({
|
|
2245
2057
|
user: a,
|
|
2246
|
-
messages:
|
|
2247
|
-
updateMessages:
|
|
2248
|
-
onMessageSent:
|
|
2058
|
+
messages: i,
|
|
2059
|
+
updateMessages: d,
|
|
2060
|
+
onMessageSent: y,
|
|
2249
2061
|
onEditMessage: b,
|
|
2250
|
-
onDeleteMessage:
|
|
2062
|
+
onDeleteMessage: h
|
|
2251
2063
|
});
|
|
2252
2064
|
return /* @__PURE__ */ n.jsxs(
|
|
2253
2065
|
"div",
|
|
2254
2066
|
{
|
|
2255
2067
|
className: `flex flex-col !bg-cover ${o}`,
|
|
2256
2068
|
style: {
|
|
2257
|
-
width:
|
|
2258
|
-
height:
|
|
2069
|
+
width: e,
|
|
2070
|
+
height: s,
|
|
2259
2071
|
background: "url(./chat-bg-1.jpg)",
|
|
2260
2072
|
...t
|
|
2261
2073
|
},
|
|
2262
|
-
onClick:
|
|
2074
|
+
onClick: M,
|
|
2263
2075
|
children: [
|
|
2264
2076
|
/* @__PURE__ */ n.jsx(
|
|
2265
2077
|
"div",
|
|
2266
2078
|
{
|
|
2267
|
-
ref:
|
|
2268
|
-
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${
|
|
2269
|
-
children: /* @__PURE__ */ n.jsx(
|
|
2270
|
-
var
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2079
|
+
ref: D,
|
|
2080
|
+
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${C ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
2081
|
+
children: /* @__PURE__ */ n.jsx(dr, { children: i.map((F, re) => {
|
|
2082
|
+
var ae, ie, K;
|
|
2083
|
+
const le = F != null && F.attachment ? /* @__PURE__ */ n.jsx(
|
|
2084
|
+
kr,
|
|
2273
2085
|
{
|
|
2274
|
-
attachment:
|
|
2275
|
-
attachmentType:
|
|
2086
|
+
attachment: F.attachment,
|
|
2087
|
+
attachmentType: F == null ? void 0 : F.attachmentType
|
|
2276
2088
|
},
|
|
2277
|
-
|
|
2089
|
+
re
|
|
2278
2090
|
) : null;
|
|
2279
|
-
if (
|
|
2091
|
+
if (F.isRightSided)
|
|
2280
2092
|
return /* @__PURE__ */ n.jsx(
|
|
2281
|
-
|
|
2093
|
+
Mr,
|
|
2282
2094
|
{
|
|
2283
|
-
media:
|
|
2284
|
-
handleContextMenu:
|
|
2285
|
-
message:
|
|
2095
|
+
media: le,
|
|
2096
|
+
handleContextMenu: W,
|
|
2097
|
+
message: F
|
|
2286
2098
|
},
|
|
2287
|
-
|
|
2099
|
+
re
|
|
2288
2100
|
);
|
|
2289
|
-
const
|
|
2101
|
+
const oe = ((ie = (ae = i[re - 1]) == null ? void 0 : ae.user) == null ? void 0 : ie.id) !== ((K = F == null ? void 0 : F.user) == null ? void 0 : K.id);
|
|
2290
2102
|
return /* @__PURE__ */ n.jsx(
|
|
2291
|
-
|
|
2103
|
+
Nr,
|
|
2292
2104
|
{
|
|
2293
|
-
showUserProfile:
|
|
2294
|
-
media:
|
|
2295
|
-
handleContextMenu:
|
|
2296
|
-
message:
|
|
2105
|
+
showUserProfile: oe,
|
|
2106
|
+
media: le,
|
|
2107
|
+
handleContextMenu: W,
|
|
2108
|
+
message: F
|
|
2297
2109
|
},
|
|
2298
|
-
|
|
2110
|
+
re
|
|
2299
2111
|
);
|
|
2300
2112
|
}) })
|
|
2301
2113
|
}
|
|
2302
2114
|
),
|
|
2303
2115
|
/* @__PURE__ */ n.jsx(
|
|
2304
|
-
|
|
2116
|
+
Cr,
|
|
2305
2117
|
{
|
|
2306
|
-
isOpen:
|
|
2307
|
-
onClose: () =>
|
|
2308
|
-
onConfirm:
|
|
2118
|
+
isOpen: ee,
|
|
2119
|
+
onClose: () => c(!1),
|
|
2120
|
+
onConfirm: j,
|
|
2309
2121
|
header: "Confirm Delete",
|
|
2310
2122
|
question: "Are you sure you want to delete this message?"
|
|
2311
2123
|
}
|
|
2312
2124
|
),
|
|
2313
|
-
|
|
2314
|
-
|
|
2125
|
+
C && ((V = C == null ? void 0 : C.message) != null && V.id) ? /* @__PURE__ */ n.jsx(
|
|
2126
|
+
Er,
|
|
2315
2127
|
{
|
|
2316
|
-
items:
|
|
2317
|
-
isVisible: !!
|
|
2318
|
-
messageId: String(
|
|
2319
|
-
isCurrentUserMessage: ((
|
|
2128
|
+
items: q,
|
|
2129
|
+
isVisible: !!C,
|
|
2130
|
+
messageId: String(C == null ? void 0 : C.message.id),
|
|
2131
|
+
isCurrentUserMessage: ((H = C == null ? void 0 : C.message) == null ? void 0 : H.user.id) === a.id,
|
|
2320
2132
|
position: {
|
|
2321
|
-
x:
|
|
2322
|
-
y:
|
|
2133
|
+
x: C == null ? void 0 : C.x,
|
|
2134
|
+
y: C == null ? void 0 : C.y
|
|
2323
2135
|
}
|
|
2324
2136
|
}
|
|
2325
2137
|
) : null,
|
|
2326
2138
|
/* @__PURE__ */ n.jsx(
|
|
2327
|
-
|
|
2139
|
+
Sr,
|
|
2328
2140
|
{
|
|
2329
|
-
onSendVoice:
|
|
2330
|
-
onSendMessage:
|
|
2331
|
-
onFileSend:
|
|
2332
|
-
dynamicSymbolAssignments:
|
|
2141
|
+
onSendVoice: B,
|
|
2142
|
+
onSendMessage: R,
|
|
2143
|
+
onFileSend: z,
|
|
2144
|
+
dynamicSymbolAssignments: g
|
|
2333
2145
|
}
|
|
2334
2146
|
)
|
|
2335
2147
|
]
|
|
@@ -2337,7 +2149,7 @@ const Dt = ({
|
|
|
2337
2149
|
);
|
|
2338
2150
|
};
|
|
2339
2151
|
export {
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2152
|
+
ge as AttachmentTypeEnum,
|
|
2153
|
+
rt as Chat,
|
|
2154
|
+
_e as MessageEntity
|
|
2343
2155
|
};
|