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