react-pro-messenger 1.0.2 → 1.0.4
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 +335 -333
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var yr = Object.defineProperty;
|
|
2
2
|
var gr = (e, s, o) => s in e ? yr(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
|
|
3
3
|
var de = (e, s, o) => gr(e, typeof s != "symbol" ? s + "" : s, o);
|
|
4
|
-
import
|
|
4
|
+
import ne, { useState as se, useRef as ye, useEffect as mr, forwardRef as Re } from "react";
|
|
5
5
|
import { AnimatePresence as dr, motion as We } from "framer-motion";
|
|
6
6
|
class _e {
|
|
7
7
|
constructor({
|
|
@@ -76,34 +76,34 @@ function wr() {
|
|
|
76
76
|
function e(r) {
|
|
77
77
|
if (r == null) return null;
|
|
78
78
|
if (typeof r == "function")
|
|
79
|
-
return r.$$typeof ===
|
|
79
|
+
return r.$$typeof === L ? null : r.displayName || r.name || null;
|
|
80
80
|
if (typeof r == "string") return r;
|
|
81
81
|
switch (r) {
|
|
82
82
|
case V:
|
|
83
83
|
return "Fragment";
|
|
84
84
|
case c:
|
|
85
85
|
return "Portal";
|
|
86
|
-
case
|
|
86
|
+
case F:
|
|
87
87
|
return "Profiler";
|
|
88
|
-
case
|
|
88
|
+
case H:
|
|
89
89
|
return "StrictMode";
|
|
90
|
-
case
|
|
90
|
+
case ae:
|
|
91
91
|
return "Suspense";
|
|
92
|
-
case
|
|
92
|
+
case ie:
|
|
93
93
|
return "SuspenseList";
|
|
94
94
|
}
|
|
95
95
|
if (typeof r == "object")
|
|
96
96
|
switch (typeof r.tag == "number" && console.error(
|
|
97
97
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
98
98
|
), r.$$typeof) {
|
|
99
|
-
case
|
|
99
|
+
case le:
|
|
100
100
|
return (r.displayName || "Context") + ".Provider";
|
|
101
|
-
case
|
|
101
|
+
case re:
|
|
102
102
|
return (r._context.displayName || "Context") + ".Consumer";
|
|
103
|
-
case
|
|
103
|
+
case oe:
|
|
104
104
|
var p = r.render;
|
|
105
105
|
return r = r.displayName, r || (r = p.displayName || p.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
|
|
106
|
-
case
|
|
106
|
+
case K:
|
|
107
107
|
return p = r.displayName || null, p !== null ? p : e(r.type) || "Memo";
|
|
108
108
|
case ce:
|
|
109
109
|
p = r._payload, r = r._init;
|
|
@@ -138,7 +138,7 @@ function wr() {
|
|
|
138
138
|
}
|
|
139
139
|
function i() {
|
|
140
140
|
if (m === 0) {
|
|
141
|
-
_ = console.log,
|
|
141
|
+
_ = console.log, E = console.info, O = console.warn, P = console.error, A = console.group, k = console.groupCollapsed, J = console.groupEnd;
|
|
142
142
|
var r = {
|
|
143
143
|
configurable: !0,
|
|
144
144
|
enumerable: !0,
|
|
@@ -162,8 +162,8 @@ function wr() {
|
|
|
162
162
|
var r = { configurable: !0, enumerable: !0, writable: !0 };
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
164
|
log: u({}, r, { value: _ }),
|
|
165
|
-
info: u({}, r, { value:
|
|
166
|
-
warn: u({}, r, { value:
|
|
165
|
+
info: u({}, r, { value: E }),
|
|
166
|
+
warn: u({}, r, { value: O }),
|
|
167
167
|
error: u({}, r, { value: P }),
|
|
168
168
|
group: u({}, r, { value: A }),
|
|
169
169
|
groupCollapsed: u({}, r, { value: k }),
|
|
@@ -180,11 +180,11 @@ function wr() {
|
|
|
180
180
|
throw Error();
|
|
181
181
|
} catch (v) {
|
|
182
182
|
var p = v.stack.trim().match(/\n( *(at )?)/);
|
|
183
|
-
f = p && p[1] || "",
|
|
183
|
+
f = p && p[1] || "", te = -1 < v.stack.indexOf(`
|
|
184
184
|
at`) ? " (<anonymous>)" : -1 < v.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
185
185
|
}
|
|
186
186
|
return `
|
|
187
|
-
` + f + r +
|
|
187
|
+
` + f + r + te;
|
|
188
188
|
}
|
|
189
189
|
function y(r, p) {
|
|
190
190
|
if (!r || pe) return "";
|
|
@@ -192,9 +192,9 @@ function wr() {
|
|
|
192
192
|
if (v !== void 0) return v;
|
|
193
193
|
pe = !0, v = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
194
194
|
var $ = null;
|
|
195
|
-
$ =
|
|
195
|
+
$ = Z.H, Z.H = null, i();
|
|
196
196
|
try {
|
|
197
|
-
var
|
|
197
|
+
var X = {
|
|
198
198
|
DetermineComponentFrameRoot: function() {
|
|
199
199
|
try {
|
|
200
200
|
if (p) {
|
|
@@ -236,52 +236,52 @@ function wr() {
|
|
|
236
236
|
return [null, null];
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
X.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
240
240
|
var U = Object.getOwnPropertyDescriptor(
|
|
241
|
-
|
|
241
|
+
X.DetermineComponentFrameRoot,
|
|
242
242
|
"name"
|
|
243
243
|
);
|
|
244
244
|
U && U.configurable && Object.defineProperty(
|
|
245
|
-
|
|
245
|
+
X.DetermineComponentFrameRoot,
|
|
246
246
|
"name",
|
|
247
247
|
{ value: "DetermineComponentFrameRoot" }
|
|
248
248
|
);
|
|
249
|
-
var
|
|
249
|
+
var T = X.DetermineComponentFrameRoot(), ue = T[0], xe = T[1];
|
|
250
250
|
if (ue && xe) {
|
|
251
|
-
var
|
|
251
|
+
var Q = ue.split(`
|
|
252
252
|
`), he = xe.split(`
|
|
253
253
|
`);
|
|
254
|
-
for (
|
|
254
|
+
for (T = U = 0; U < Q.length && !Q[U].includes(
|
|
255
255
|
"DetermineComponentFrameRoot"
|
|
256
256
|
); )
|
|
257
257
|
U++;
|
|
258
|
-
for (;
|
|
258
|
+
for (; T < he.length && !he[T].includes(
|
|
259
259
|
"DetermineComponentFrameRoot"
|
|
260
260
|
); )
|
|
261
|
-
|
|
262
|
-
if (U ===
|
|
263
|
-
for (U =
|
|
264
|
-
|
|
265
|
-
for (; 1 <= U && 0 <=
|
|
266
|
-
if (
|
|
267
|
-
if (U !== 1 ||
|
|
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)
|
|
268
268
|
do
|
|
269
|
-
if (U--,
|
|
269
|
+
if (U--, T--, 0 > T || Q[U] !== he[T]) {
|
|
270
270
|
var be = `
|
|
271
|
-
` +
|
|
271
|
+
` + Q[U].replace(
|
|
272
272
|
" at new ",
|
|
273
273
|
" at "
|
|
274
274
|
);
|
|
275
275
|
return r.displayName && be.includes("<anonymous>") && (be = be.replace("<anonymous>", r.displayName)), typeof r == "function" && me.set(r, be), be;
|
|
276
276
|
}
|
|
277
|
-
while (1 <= U && 0 <=
|
|
277
|
+
while (1 <= U && 0 <= T);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
pe = !1,
|
|
282
|
+
pe = !1, Z.H = $, a(), Error.prepareStackTrace = v;
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return Q = (Q = r ? r.displayName || r.name : "") ? d(Q) : "", typeof r == "function" && me.set(r, Q), Q;
|
|
285
285
|
}
|
|
286
286
|
function h(r) {
|
|
287
287
|
if (r == null) return "";
|
|
@@ -294,16 +294,16 @@ function wr() {
|
|
|
294
294
|
}
|
|
295
295
|
if (typeof r == "string") return d(r);
|
|
296
296
|
switch (r) {
|
|
297
|
-
case
|
|
297
|
+
case ae:
|
|
298
298
|
return d("Suspense");
|
|
299
|
-
case
|
|
299
|
+
case ie:
|
|
300
300
|
return d("SuspenseList");
|
|
301
301
|
}
|
|
302
302
|
if (typeof r == "object")
|
|
303
303
|
switch (r.$$typeof) {
|
|
304
|
-
case
|
|
304
|
+
case oe:
|
|
305
305
|
return r = y(r.render, !1), r;
|
|
306
|
-
case
|
|
306
|
+
case K:
|
|
307
307
|
return h(r.type);
|
|
308
308
|
case ce:
|
|
309
309
|
p = r._payload, r = r._init;
|
|
@@ -315,7 +315,7 @@ function wr() {
|
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
317
|
function b() {
|
|
318
|
-
var r =
|
|
318
|
+
var r = Z.A;
|
|
319
319
|
return r === null ? null : r.getOwner();
|
|
320
320
|
}
|
|
321
321
|
function g(r) {
|
|
@@ -343,13 +343,13 @@ function wr() {
|
|
|
343
343
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
344
344
|
)), r = this.props.ref, r !== void 0 ? r : null;
|
|
345
345
|
}
|
|
346
|
-
function z(r, p, v, $,
|
|
346
|
+
function z(r, p, v, $, X, U) {
|
|
347
347
|
return v = U.ref, r = {
|
|
348
348
|
$$typeof: D,
|
|
349
349
|
type: r,
|
|
350
350
|
key: p,
|
|
351
351
|
props: U,
|
|
352
|
-
_owner:
|
|
352
|
+
_owner: X
|
|
353
353
|
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(r, "ref", {
|
|
354
354
|
enumerable: !1,
|
|
355
355
|
get: M
|
|
@@ -365,32 +365,32 @@ function wr() {
|
|
|
365
365
|
value: null
|
|
366
366
|
}), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
|
|
367
367
|
}
|
|
368
|
-
function B(r, p, v, $,
|
|
369
|
-
if (typeof r == "string" || typeof r == "function" || r === V || r ===
|
|
370
|
-
var
|
|
371
|
-
if (
|
|
368
|
+
function B(r, p, v, $, X, U) {
|
|
369
|
+
if (typeof r == "string" || typeof r == "function" || r === V || r === F || r === H || r === ae || r === ie || r === S || typeof r == "object" && r !== null && (r.$$typeof === ce || r.$$typeof === K || r.$$typeof === le || r.$$typeof === re || r.$$typeof === oe || r.$$typeof === w || r.getModuleId !== void 0)) {
|
|
370
|
+
var T = p.children;
|
|
371
|
+
if (T !== void 0)
|
|
372
372
|
if ($)
|
|
373
|
-
if (x(
|
|
374
|
-
for ($ = 0; $ <
|
|
375
|
-
R(
|
|
376
|
-
Object.freeze && Object.freeze(
|
|
373
|
+
if (x(T)) {
|
|
374
|
+
for ($ = 0; $ < T.length; $++)
|
|
375
|
+
R(T[$], r);
|
|
376
|
+
Object.freeze && Object.freeze(T);
|
|
377
377
|
} else
|
|
378
378
|
console.error(
|
|
379
379
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
380
380
|
);
|
|
381
|
-
else R(
|
|
381
|
+
else R(T, r);
|
|
382
382
|
} else
|
|
383
|
-
|
|
383
|
+
T = "", (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), r === null ? $ = "null" : x(r) ? $ = "array" : r !== void 0 && r.$$typeof === D ? ($ = "<" + (e(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof r, console.error(
|
|
384
384
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
385
385
|
$,
|
|
386
|
-
|
|
386
|
+
T
|
|
387
387
|
);
|
|
388
388
|
if (l.call(p, "key")) {
|
|
389
|
-
|
|
390
|
-
var ue = Object.keys(p).filter(function(
|
|
391
|
-
return
|
|
389
|
+
T = e(r);
|
|
390
|
+
var ue = Object.keys(p).filter(function(Q) {
|
|
391
|
+
return Q !== "key";
|
|
392
392
|
});
|
|
393
|
-
$ = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", Je[
|
|
393
|
+
$ = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", Je[T + $] || (ue = 0 < ue.length ? "{" + ue.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
394
394
|
`A props object containing a "key" prop is being spread into JSX:
|
|
395
395
|
let props = %s;
|
|
396
396
|
<%s {...props} />
|
|
@@ -398,55 +398,55 @@ React keys must be passed directly to JSX without using spread:
|
|
|
398
398
|
let props = %s;
|
|
399
399
|
<%s key={someKey} {...props} />`,
|
|
400
400
|
$,
|
|
401
|
-
|
|
401
|
+
T,
|
|
402
402
|
ue,
|
|
403
|
-
|
|
404
|
-
), Je[
|
|
403
|
+
T
|
|
404
|
+
), Je[T + $] = !0);
|
|
405
405
|
}
|
|
406
|
-
if (
|
|
406
|
+
if (T = null, v !== void 0 && (o(v), T = "" + v), g(p) && (o(p.key), T = "" + p.key), "key" in p) {
|
|
407
407
|
v = {};
|
|
408
408
|
for (var xe in p)
|
|
409
409
|
xe !== "key" && (v[xe] = p[xe]);
|
|
410
410
|
} else v = p;
|
|
411
|
-
return
|
|
411
|
+
return T && j(
|
|
412
412
|
v,
|
|
413
413
|
typeof r == "function" ? r.displayName || r.name || "Unknown" : r
|
|
414
|
-
), z(r,
|
|
414
|
+
), z(r, T, U, X, b(), v);
|
|
415
415
|
}
|
|
416
416
|
function R(r, p) {
|
|
417
417
|
if (typeof r == "object" && r && r.$$typeof !== hr) {
|
|
418
418
|
if (x(r))
|
|
419
419
|
for (var v = 0; v < r.length; v++) {
|
|
420
420
|
var $ = r[v];
|
|
421
|
-
W($) &&
|
|
421
|
+
W($) && q($, p);
|
|
422
422
|
}
|
|
423
423
|
else if (W(r))
|
|
424
424
|
r._store && (r._store.validated = 1);
|
|
425
|
-
else if (r === null || typeof r != "object" ? v = null : (v =
|
|
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
426
|
for (; !(r = v.next()).done; )
|
|
427
|
-
W(r.value) &&
|
|
427
|
+
W(r.value) && q(r.value, p);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
function W(r) {
|
|
431
431
|
return typeof r == "object" && r !== null && r.$$typeof === D;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
if (r._store && !r._store.validated && r.key == null && (r._store.validated = 1, p =
|
|
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
435
|
Xe[p] = !0;
|
|
436
436
|
var v = "";
|
|
437
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 $ =
|
|
439
|
-
|
|
440
|
-
var
|
|
441
|
-
return $ && (
|
|
438
|
+
var $ = Z.getCurrentStack;
|
|
439
|
+
Z.getCurrentStack = function() {
|
|
440
|
+
var X = h(r.type);
|
|
441
|
+
return $ && (X += $() || ""), X;
|
|
442
442
|
}, console.error(
|
|
443
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
444
|
p,
|
|
445
445
|
v
|
|
446
|
-
),
|
|
446
|
+
), Z.getCurrentStack = $;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function ee(r) {
|
|
450
450
|
var p = "", v = b();
|
|
451
451
|
return v && (v = e(v.type)) && (p = `
|
|
452
452
|
|
|
@@ -454,13 +454,13 @@ Check the render method of \`` + v + "`."), p || (r = e(r)) && (p = `
|
|
|
454
454
|
|
|
455
455
|
Check the top-level render call using <` + r + ">."), p;
|
|
456
456
|
}
|
|
457
|
-
var
|
|
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
458
|
t.__reactDisabledLog = !0;
|
|
459
|
-
var f,
|
|
460
|
-
je.Fragment = V, je.jsx = function(r, p, v, $,
|
|
461
|
-
return B(r, p, v, !1, $,
|
|
462
|
-
}, je.jsxs = function(r, p, v, $,
|
|
463
|
-
return B(r, p, v, !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
464
|
};
|
|
465
465
|
}()), je;
|
|
466
466
|
}
|
|
@@ -569,7 +569,7 @@ const Cr = ({
|
|
|
569
569
|
className: "cursor-pointer flex items-center gap-2 w-full rounded-md text-left px-2 py-1 hover:bg-gray-200",
|
|
570
570
|
onClick: () => a.onClick(t),
|
|
571
571
|
children: [
|
|
572
|
-
|
|
572
|
+
ne.cloneElement(a.icon, {
|
|
573
573
|
className: "text-black",
|
|
574
574
|
size: 18
|
|
575
575
|
}),
|
|
@@ -664,70 +664,70 @@ const Cr = ({
|
|
|
664
664
|
onFileSend: o,
|
|
665
665
|
dynamicSymbolAssignments: t
|
|
666
666
|
}) => {
|
|
667
|
-
const [i, a] =
|
|
668
|
-
const
|
|
669
|
-
a(
|
|
670
|
-
const
|
|
671
|
-
if (
|
|
672
|
-
const
|
|
667
|
+
const [i, a] = se(""), [d, y] = se(!1), [h, b] = se(0), [g, j] = se(null), [M, z] = se(null), [B, R] = se(0), W = ye(null), q = ye([]), ee = ye(null), C = ye(null), D = ye(null), [c, V] = se(!1), H = (S) => {
|
|
668
|
+
const N = S.target.value;
|
|
669
|
+
a(N);
|
|
670
|
+
const L = N.match(/(\S+)$/);
|
|
671
|
+
if (L) {
|
|
672
|
+
const Z = L[0];
|
|
673
673
|
if (g) {
|
|
674
|
-
const l =
|
|
674
|
+
const l = L[0].split(g)[1];
|
|
675
675
|
z(l);
|
|
676
676
|
}
|
|
677
|
-
t != null && t.some((l) => l.symbol ===
|
|
677
|
+
t != null && t.some((l) => l.symbol === Z) && j(Z);
|
|
678
678
|
} else
|
|
679
679
|
j(null);
|
|
680
|
-
},
|
|
681
|
-
a((
|
|
682
|
-
},
|
|
680
|
+
}, F = (S, N) => {
|
|
681
|
+
a((L) => L + N + " "), j(null), C.current.focus();
|
|
682
|
+
}, re = () => {
|
|
683
683
|
i.trim() !== "" && (e(i), a(""), j(null));
|
|
684
|
-
},
|
|
685
|
-
y(!0), b(0),
|
|
686
|
-
b((
|
|
684
|
+
}, le = async () => {
|
|
685
|
+
y(!0), b(0), q.current = [], ee.current = setInterval(() => {
|
|
686
|
+
b((L) => L + 1);
|
|
687
687
|
}, 1e3);
|
|
688
|
-
const
|
|
689
|
-
W.current =
|
|
690
|
-
|
|
691
|
-
},
|
|
692
|
-
clearInterval(
|
|
693
|
-
const
|
|
694
|
-
s(
|
|
695
|
-
},
|
|
688
|
+
const S = await navigator.mediaDevices.getUserMedia({ audio: !0 }), N = new MediaRecorder(S);
|
|
689
|
+
W.current = N, N.ondataavailable = (L) => {
|
|
690
|
+
L.data.size > 0 && q.current.push(L.data);
|
|
691
|
+
}, N.onstop = () => {
|
|
692
|
+
clearInterval(ee.current);
|
|
693
|
+
const L = new Blob(q.current, { type: "audio/mp3" }), Z = URL.createObjectURL(L);
|
|
694
|
+
s(Z), y(!1);
|
|
695
|
+
}, N.start();
|
|
696
|
+
}, oe = () => {
|
|
697
|
+
var S;
|
|
698
|
+
(S = W.current) == null || S.stop();
|
|
696
699
|
}, ae = () => {
|
|
697
|
-
var
|
|
698
|
-
(
|
|
699
|
-
}, ie = () => {
|
|
700
|
-
var
|
|
701
|
-
(
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
},
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
const { scrollTop: L, scrollHeight: N, clientHeight: H } = O.currentTarget;
|
|
711
|
-
if (L > B) {
|
|
712
|
-
if (L + H >= N - 1) {
|
|
700
|
+
var S;
|
|
701
|
+
(S = D.current) == null || S.click();
|
|
702
|
+
}, ie = (S) => {
|
|
703
|
+
var L;
|
|
704
|
+
const N = (L = S.target.files) == null ? void 0 : L[0];
|
|
705
|
+
N && o(N);
|
|
706
|
+
}, K = (S) => {
|
|
707
|
+
const N = Math.floor(S / 60), L = S % 60;
|
|
708
|
+
return `${N.toString().padStart(2, "0")}:${L.toString().padStart(2, "0")}`;
|
|
709
|
+
}, ce = (S) => {
|
|
710
|
+
const { scrollTop: N, scrollHeight: L, clientHeight: Z } = S.currentTarget;
|
|
711
|
+
if (N > B) {
|
|
712
|
+
if (N + Z >= L - 1) {
|
|
713
713
|
const u = t == null ? void 0 : t.find(
|
|
714
714
|
(w) => w.symbol === g
|
|
715
715
|
);
|
|
716
|
-
u && (u != null && u.updatePageNumber) && (V(!0), u == null || u.updatePageNumber(u.pagNumber + 1), R(
|
|
716
|
+
u && (u != null && u.updatePageNumber) && (V(!0), u == null || u.updatePageNumber(u.pagNumber + 1), R(N), setTimeout(() => {
|
|
717
717
|
V(!1);
|
|
718
718
|
}, 500));
|
|
719
719
|
}
|
|
720
720
|
} else
|
|
721
|
-
R(
|
|
721
|
+
R(N);
|
|
722
722
|
};
|
|
723
723
|
return /* @__PURE__ */ n.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
|
|
724
724
|
d ? /* @__PURE__ */ n.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
|
|
725
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children:
|
|
725
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-blue-400 font-bold flex-1", children: K(h) }),
|
|
726
726
|
/* @__PURE__ */ n.jsx(
|
|
727
727
|
"button",
|
|
728
728
|
{
|
|
729
729
|
className: "cursor-pointer p-2 flex justify-center items-center bg-green-500 text-white rounded-full",
|
|
730
|
-
onClick:
|
|
730
|
+
onClick: oe,
|
|
731
731
|
children: /* @__PURE__ */ n.jsx(er, {})
|
|
732
732
|
}
|
|
733
733
|
)
|
|
@@ -736,7 +736,7 @@ const Cr = ({
|
|
|
736
736
|
/* @__PURE__ */ n.jsx(
|
|
737
737
|
"div",
|
|
738
738
|
{
|
|
739
|
-
onClick:
|
|
739
|
+
onClick: ae,
|
|
740
740
|
className: "cursor-pointer absolute right-4 top-[11px]",
|
|
741
741
|
children: /* @__PURE__ */ n.jsx(Tr, {})
|
|
742
742
|
}
|
|
@@ -747,20 +747,20 @@ const Cr = ({
|
|
|
747
747
|
type: "file",
|
|
748
748
|
ref: D,
|
|
749
749
|
style: { display: "none" },
|
|
750
|
-
onChange:
|
|
750
|
+
onChange: ie
|
|
751
751
|
}
|
|
752
752
|
),
|
|
753
753
|
/* @__PURE__ */ n.jsx(
|
|
754
754
|
"input",
|
|
755
755
|
{
|
|
756
756
|
type: "text",
|
|
757
|
-
ref:
|
|
757
|
+
ref: C,
|
|
758
758
|
className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl ",
|
|
759
759
|
placeholder: "Type a message...",
|
|
760
760
|
value: i,
|
|
761
|
-
onChange:
|
|
762
|
-
onKeyDown: (
|
|
763
|
-
|
|
761
|
+
onChange: H,
|
|
762
|
+
onKeyDown: (S) => {
|
|
763
|
+
S.key === "Enter" && !S.shiftKey && (S.preventDefault(), re());
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
),
|
|
@@ -770,7 +770,7 @@ const Cr = ({
|
|
|
770
770
|
"button",
|
|
771
771
|
{
|
|
772
772
|
className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
|
|
773
|
-
onClick: i ?
|
|
773
|
+
onClick: i ? re : le,
|
|
774
774
|
children: i ? /* @__PURE__ */ n.jsx(er, {}) : /* @__PURE__ */ n.jsx(Or, {})
|
|
775
775
|
}
|
|
776
776
|
)
|
|
@@ -797,31 +797,31 @@ const Cr = ({
|
|
|
797
797
|
)
|
|
798
798
|
] }),
|
|
799
799
|
/* @__PURE__ */ n.jsxs("div", { className: "space-y-2", children: [
|
|
800
|
-
t ? t.filter((
|
|
801
|
-
var
|
|
802
|
-
const { component:
|
|
803
|
-
return
|
|
800
|
+
t ? t.filter((S) => S.symbol === g).map((S) => {
|
|
801
|
+
var Z;
|
|
802
|
+
const { component: N, lists: L } = S;
|
|
803
|
+
return N ? M ? (Z = L == null ? void 0 : L.filter((l) => l == null ? void 0 : l.name.includes(M))) == null ? void 0 : Z.map((l, u) => /* @__PURE__ */ n.jsx(
|
|
804
804
|
"div",
|
|
805
805
|
{
|
|
806
806
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
807
807
|
children: /* @__PURE__ */ n.jsx(
|
|
808
|
-
|
|
808
|
+
N,
|
|
809
809
|
{
|
|
810
810
|
listsProps: l,
|
|
811
|
-
onClick: (w, x) =>
|
|
811
|
+
onClick: (w, x) => F(w, x)
|
|
812
812
|
}
|
|
813
813
|
)
|
|
814
814
|
},
|
|
815
815
|
u
|
|
816
|
-
)) :
|
|
816
|
+
)) : L == null ? void 0 : L.map((l, u) => /* @__PURE__ */ n.jsx(
|
|
817
817
|
"div",
|
|
818
818
|
{
|
|
819
819
|
className: "hover:bg-gray-100 rounded-md p-2 cursor-pointer",
|
|
820
820
|
children: /* @__PURE__ */ n.jsx(
|
|
821
|
-
|
|
821
|
+
N,
|
|
822
822
|
{
|
|
823
823
|
listsProps: l,
|
|
824
|
-
onClick: (w, x) =>
|
|
824
|
+
onClick: (w, x) => F(w, x)
|
|
825
825
|
}
|
|
826
826
|
)
|
|
827
827
|
},
|
|
@@ -912,7 +912,7 @@ const rr = ({
|
|
|
912
912
|
);
|
|
913
913
|
let Ce = null;
|
|
914
914
|
const Pr = ({ src: e, className: s }) => {
|
|
915
|
-
const [o, t] =
|
|
915
|
+
const [o, t] = se(!1), [i, a] = se(0), d = ye(null);
|
|
916
916
|
mr(() => {
|
|
917
917
|
const h = d.current;
|
|
918
918
|
if (!h) return;
|
|
@@ -972,7 +972,7 @@ const Pr = ({ src: e, className: s }) => {
|
|
|
972
972
|
src: e
|
|
973
973
|
}
|
|
974
974
|
) }) : null;
|
|
975
|
-
},
|
|
975
|
+
}, Nr = ({
|
|
976
976
|
message: e,
|
|
977
977
|
showUserProfile: s,
|
|
978
978
|
handleContextMenu: o,
|
|
@@ -1006,7 +1006,7 @@ const Pr = ({ src: e, className: s }) => {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
)
|
|
1008
1008
|
] });
|
|
1009
|
-
},
|
|
1009
|
+
}, Lr = () => /* @__PURE__ */ n.jsxs(
|
|
1010
1010
|
"svg",
|
|
1011
1011
|
{
|
|
1012
1012
|
width: "16",
|
|
@@ -1051,7 +1051,7 @@ const Pr = ({ src: e, className: s }) => {
|
|
|
1051
1051
|
/* @__PURE__ */ n.jsx("span", { children: o.text }),
|
|
1052
1052
|
/* @__PURE__ */ n.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
|
|
1053
1053
|
/* @__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(
|
|
1054
|
+
/* @__PURE__ */ n.jsx(Lr, {})
|
|
1055
1055
|
] }),
|
|
1056
1056
|
/* @__PURE__ */ n.jsx(De, { className: "fill-blue-200 rotate-180 absolute -right-2 bottom-0 [&>g>path]:fill-blue-200" })
|
|
1057
1057
|
]
|
|
@@ -1070,8 +1070,8 @@ var tr;
|
|
|
1070
1070
|
function Ar() {
|
|
1071
1071
|
if (tr) return I;
|
|
1072
1072
|
tr = 1;
|
|
1073
|
-
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117,
|
|
1074
|
-
function
|
|
1073
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
|
|
1074
|
+
function C(c) {
|
|
1075
1075
|
if (typeof c == "object" && c !== null) {
|
|
1076
1076
|
var V = c.$$typeof;
|
|
1077
1077
|
switch (V) {
|
|
@@ -1102,35 +1102,35 @@ function Ar() {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
function D(c) {
|
|
1105
|
-
return
|
|
1105
|
+
return C(c) === b;
|
|
1106
1106
|
}
|
|
1107
1107
|
return I.AsyncMode = h, I.ConcurrentMode = b, I.ContextConsumer = y, I.ContextProvider = d, I.Element = s, I.ForwardRef = g, I.Fragment = t, I.Lazy = B, I.Memo = z, I.Portal = o, I.Profiler = a, I.StrictMode = i, I.Suspense = j, I.isAsyncMode = function(c) {
|
|
1108
|
-
return D(c) ||
|
|
1108
|
+
return D(c) || C(c) === h;
|
|
1109
1109
|
}, I.isConcurrentMode = D, I.isContextConsumer = function(c) {
|
|
1110
|
-
return
|
|
1110
|
+
return C(c) === y;
|
|
1111
1111
|
}, I.isContextProvider = function(c) {
|
|
1112
|
-
return
|
|
1112
|
+
return C(c) === d;
|
|
1113
1113
|
}, I.isElement = function(c) {
|
|
1114
1114
|
return typeof c == "object" && c !== null && c.$$typeof === s;
|
|
1115
1115
|
}, I.isForwardRef = function(c) {
|
|
1116
|
-
return
|
|
1116
|
+
return C(c) === g;
|
|
1117
1117
|
}, I.isFragment = function(c) {
|
|
1118
|
-
return
|
|
1118
|
+
return C(c) === t;
|
|
1119
1119
|
}, I.isLazy = function(c) {
|
|
1120
|
-
return
|
|
1120
|
+
return C(c) === B;
|
|
1121
1121
|
}, I.isMemo = function(c) {
|
|
1122
|
-
return
|
|
1122
|
+
return C(c) === z;
|
|
1123
1123
|
}, I.isPortal = function(c) {
|
|
1124
|
-
return
|
|
1124
|
+
return C(c) === o;
|
|
1125
1125
|
}, I.isProfiler = function(c) {
|
|
1126
|
-
return
|
|
1126
|
+
return C(c) === a;
|
|
1127
1127
|
}, I.isStrictMode = function(c) {
|
|
1128
|
-
return
|
|
1128
|
+
return C(c) === i;
|
|
1129
1129
|
}, I.isSuspense = function(c) {
|
|
1130
|
-
return
|
|
1130
|
+
return C(c) === j;
|
|
1131
1131
|
}, I.isValidElementType = function(c) {
|
|
1132
|
-
return typeof c == "string" || typeof c == "function" || c === t || c === b || c === a || c === i || c === j || c === M || typeof c == "object" && c !== null && (c.$$typeof === B || c.$$typeof === z || c.$$typeof === d || c.$$typeof === y || c.$$typeof === g || c.$$typeof === W || c.$$typeof ===
|
|
1133
|
-
}, I.typeOf =
|
|
1132
|
+
return typeof c == "string" || typeof c == "function" || c === t || c === b || c === a || c === i || c === j || c === M || typeof c == "object" && c !== null && (c.$$typeof === B || c.$$typeof === z || c.$$typeof === d || c.$$typeof === y || c.$$typeof === g || c.$$typeof === W || c.$$typeof === q || c.$$typeof === ee || c.$$typeof === R);
|
|
1133
|
+
}, I.typeOf = C, I;
|
|
1134
1134
|
}
|
|
1135
1135
|
var Y = {};
|
|
1136
1136
|
/** @license React v16.13.1
|
|
@@ -1144,15 +1144,15 @@ var Y = {};
|
|
|
1144
1144
|
var nr;
|
|
1145
1145
|
function $r() {
|
|
1146
1146
|
return nr || (nr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1147
|
-
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117,
|
|
1148
|
-
function
|
|
1147
|
+
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, y = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, M = e ? Symbol.for("react.suspense_list") : 60120, z = e ? Symbol.for("react.memo") : 60115, B = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, W = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, ee = e ? Symbol.for("react.scope") : 60119;
|
|
1148
|
+
function C(f) {
|
|
1149
1149
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1150
|
-
f === t || f === b || f === a || f === i || f === j || f === M || typeof f == "object" && f !== null && (f.$$typeof === B || f.$$typeof === z || f.$$typeof === d || f.$$typeof === y || f.$$typeof === g || f.$$typeof === W || f.$$typeof ===
|
|
1150
|
+
f === t || f === b || f === a || f === i || f === j || f === M || typeof f == "object" && f !== null && (f.$$typeof === B || f.$$typeof === z || f.$$typeof === d || f.$$typeof === y || f.$$typeof === g || f.$$typeof === W || f.$$typeof === q || f.$$typeof === ee || f.$$typeof === R);
|
|
1151
1151
|
}
|
|
1152
1152
|
function D(f) {
|
|
1153
1153
|
if (typeof f == "object" && f !== null) {
|
|
1154
|
-
var
|
|
1155
|
-
switch (
|
|
1154
|
+
var te = f.$$typeof;
|
|
1155
|
+
switch (te) {
|
|
1156
1156
|
case s:
|
|
1157
1157
|
var pe = f.type;
|
|
1158
1158
|
switch (pe) {
|
|
@@ -1173,17 +1173,17 @@ function $r() {
|
|
|
1173
1173
|
case d:
|
|
1174
1174
|
return me;
|
|
1175
1175
|
default:
|
|
1176
|
-
return
|
|
1176
|
+
return te;
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
case o:
|
|
1180
|
-
return
|
|
1180
|
+
return te;
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
|
-
var c = h, V = b,
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1184
|
+
var c = h, V = b, H = y, F = d, re = s, le = g, oe = t, ae = B, ie = z, K = o, ce = a, S = i, N = j, L = !1;
|
|
1185
|
+
function Z(f) {
|
|
1186
|
+
return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(f) || D(f) === h;
|
|
1187
1187
|
}
|
|
1188
1188
|
function l(f) {
|
|
1189
1189
|
return D(f) === b;
|
|
@@ -1203,10 +1203,10 @@ function $r() {
|
|
|
1203
1203
|
function _(f) {
|
|
1204
1204
|
return D(f) === t;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function E(f) {
|
|
1207
1207
|
return D(f) === B;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function O(f) {
|
|
1210
1210
|
return D(f) === z;
|
|
1211
1211
|
}
|
|
1212
1212
|
function P(f) {
|
|
@@ -1221,7 +1221,7 @@ function $r() {
|
|
|
1221
1221
|
function J(f) {
|
|
1222
1222
|
return D(f) === j;
|
|
1223
1223
|
}
|
|
1224
|
-
Y.AsyncMode = c, Y.ConcurrentMode = V, Y.ContextConsumer =
|
|
1224
|
+
Y.AsyncMode = c, Y.ConcurrentMode = V, Y.ContextConsumer = H, Y.ContextProvider = F, Y.Element = re, Y.ForwardRef = le, Y.Fragment = oe, Y.Lazy = ae, Y.Memo = ie, Y.Portal = K, Y.Profiler = ce, Y.StrictMode = S, Y.Suspense = N, Y.isAsyncMode = Z, Y.isConcurrentMode = l, Y.isContextConsumer = u, Y.isContextProvider = w, Y.isElement = x, Y.isForwardRef = m, Y.isFragment = _, Y.isLazy = E, Y.isMemo = O, Y.isPortal = P, Y.isProfiler = A, Y.isStrictMode = k, Y.isSuspense = J, Y.isValidElementType = C, Y.typeOf = D;
|
|
1225
1225
|
}()), Y;
|
|
1226
1226
|
}
|
|
1227
1227
|
var or;
|
|
@@ -1286,13 +1286,13 @@ function Ve() {
|
|
|
1286
1286
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1287
1287
|
return ke = e, ke;
|
|
1288
1288
|
}
|
|
1289
|
-
var
|
|
1289
|
+
var Ne, sr;
|
|
1290
1290
|
function vr() {
|
|
1291
|
-
return sr || (sr = 1,
|
|
1291
|
+
return sr || (sr = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
|
|
1292
1292
|
}
|
|
1293
|
-
var
|
|
1293
|
+
var Le, lr;
|
|
1294
1294
|
function Yr() {
|
|
1295
|
-
if (lr) return
|
|
1295
|
+
if (lr) return Le;
|
|
1296
1296
|
lr = 1;
|
|
1297
1297
|
var e = function() {
|
|
1298
1298
|
};
|
|
@@ -1337,7 +1337,7 @@ function Yr() {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
return i.resetWarningCache = function() {
|
|
1339
1339
|
process.env.NODE_ENV !== "production" && (o = {});
|
|
1340
|
-
},
|
|
1340
|
+
}, Le = i, Le;
|
|
1341
1341
|
}
|
|
1342
1342
|
var Me, cr;
|
|
1343
1343
|
function zr() {
|
|
@@ -1364,25 +1364,25 @@ function zr() {
|
|
|
1364
1364
|
return u;
|
|
1365
1365
|
}
|
|
1366
1366
|
var M = "<<anonymous>>", z = {
|
|
1367
|
-
array:
|
|
1368
|
-
bigint:
|
|
1369
|
-
bool:
|
|
1370
|
-
func:
|
|
1371
|
-
number:
|
|
1372
|
-
object:
|
|
1373
|
-
string:
|
|
1374
|
-
symbol:
|
|
1375
|
-
any:
|
|
1376
|
-
arrayOf:
|
|
1367
|
+
array: q("array"),
|
|
1368
|
+
bigint: q("bigint"),
|
|
1369
|
+
bool: q("boolean"),
|
|
1370
|
+
func: q("function"),
|
|
1371
|
+
number: q("number"),
|
|
1372
|
+
object: q("object"),
|
|
1373
|
+
string: q("string"),
|
|
1374
|
+
symbol: q("symbol"),
|
|
1375
|
+
any: ee(),
|
|
1376
|
+
arrayOf: C,
|
|
1377
1377
|
element: D(),
|
|
1378
1378
|
elementType: c(),
|
|
1379
1379
|
instanceOf: V,
|
|
1380
|
-
node:
|
|
1381
|
-
objectOf:
|
|
1382
|
-
oneOf:
|
|
1383
|
-
oneOfType:
|
|
1384
|
-
shape:
|
|
1385
|
-
exact:
|
|
1380
|
+
node: le(),
|
|
1381
|
+
objectOf: F,
|
|
1382
|
+
oneOf: H,
|
|
1383
|
+
oneOfType: re,
|
|
1384
|
+
shape: ae,
|
|
1385
|
+
exact: ie
|
|
1386
1386
|
};
|
|
1387
1387
|
function B(l, u) {
|
|
1388
1388
|
return l === u ? l !== 0 || 1 / l === 1 / u : l !== l && u !== u;
|
|
@@ -1394,33 +1394,33 @@ function zr() {
|
|
|
1394
1394
|
function W(l) {
|
|
1395
1395
|
if (process.env.NODE_ENV !== "production")
|
|
1396
1396
|
var u = {}, w = 0;
|
|
1397
|
-
function x(_,
|
|
1398
|
-
if (P = P || M, k = k ||
|
|
1397
|
+
function x(_, E, O, P, A, k, J) {
|
|
1398
|
+
if (P = P || M, k = k || O, J !== o) {
|
|
1399
1399
|
if (h) {
|
|
1400
1400
|
var f = new Error(
|
|
1401
1401
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1402
1402
|
);
|
|
1403
1403
|
throw f.name = "Invariant Violation", f;
|
|
1404
1404
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1405
|
-
var
|
|
1406
|
-
!u[
|
|
1405
|
+
var te = P + ":" + O;
|
|
1406
|
+
!u[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1407
1407
|
w < 3 && (a(
|
|
1408
1408
|
"You are manually calling a React.PropTypes validation function for the `" + k + "` prop on `" + P + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1409
|
-
), u[
|
|
1409
|
+
), u[te] = !0, w++);
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
return
|
|
1412
|
+
return E[O] == null ? _ ? E[O] === null ? new R("The " + A + " `" + k + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new R("The " + A + " `" + k + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : l(E, O, P, A, k);
|
|
1413
1413
|
}
|
|
1414
1414
|
var m = x.bind(null, !1);
|
|
1415
1415
|
return m.isRequired = x.bind(null, !0), m;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1418
|
-
function u(w, x, m, _,
|
|
1419
|
-
var P = w[x], A =
|
|
1417
|
+
function q(l) {
|
|
1418
|
+
function u(w, x, m, _, E, O) {
|
|
1419
|
+
var P = w[x], A = S(P);
|
|
1420
1420
|
if (A !== l) {
|
|
1421
|
-
var k =
|
|
1421
|
+
var k = N(P);
|
|
1422
1422
|
return new R(
|
|
1423
|
-
"Invalid " + _ + " `" +
|
|
1423
|
+
"Invalid " + _ + " `" + E + "` of type " + ("`" + k + "` supplied to `" + m + "`, expected ") + ("`" + l + "`."),
|
|
1424
1424
|
{ expectedType: l }
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
@@ -1428,20 +1428,20 @@ function zr() {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
return W(u);
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function ee() {
|
|
1432
1432
|
return W(d);
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
function u(w, x, m, _,
|
|
1434
|
+
function C(l) {
|
|
1435
|
+
function u(w, x, m, _, E) {
|
|
1436
1436
|
if (typeof l != "function")
|
|
1437
|
-
return new R("Property `" +
|
|
1438
|
-
var
|
|
1439
|
-
if (!Array.isArray(
|
|
1440
|
-
var P = O
|
|
1441
|
-
return new R("Invalid " + _ + " `" +
|
|
1437
|
+
return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
|
|
1438
|
+
var O = w[x];
|
|
1439
|
+
if (!Array.isArray(O)) {
|
|
1440
|
+
var P = S(O);
|
|
1441
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an array."));
|
|
1442
1442
|
}
|
|
1443
|
-
for (var A = 0; A <
|
|
1444
|
-
var k = l(
|
|
1443
|
+
for (var A = 0; A < O.length; A++) {
|
|
1444
|
+
var k = l(O, A, m, _, E + "[" + A + "]", o);
|
|
1445
1445
|
if (k instanceof Error)
|
|
1446
1446
|
return k;
|
|
1447
1447
|
}
|
|
@@ -1451,10 +1451,10 @@ function zr() {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
function D() {
|
|
1453
1453
|
function l(u, w, x, m, _) {
|
|
1454
|
-
var
|
|
1455
|
-
if (!y(
|
|
1456
|
-
var
|
|
1457
|
-
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" +
|
|
1454
|
+
var E = u[w];
|
|
1455
|
+
if (!y(E)) {
|
|
1456
|
+
var O = S(E);
|
|
1457
|
+
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
1458
1458
|
}
|
|
1459
1459
|
return null;
|
|
1460
1460
|
}
|
|
@@ -1462,52 +1462,52 @@ function zr() {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
function c() {
|
|
1464
1464
|
function l(u, w, x, m, _) {
|
|
1465
|
-
var
|
|
1466
|
-
if (!e.isValidElementType(
|
|
1467
|
-
var
|
|
1468
|
-
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" +
|
|
1465
|
+
var E = u[w];
|
|
1466
|
+
if (!e.isValidElementType(E)) {
|
|
1467
|
+
var O = S(E);
|
|
1468
|
+
return new R("Invalid " + m + " `" + _ + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
1469
1469
|
}
|
|
1470
1470
|
return null;
|
|
1471
1471
|
}
|
|
1472
1472
|
return W(l);
|
|
1473
1473
|
}
|
|
1474
1474
|
function V(l) {
|
|
1475
|
-
function u(w, x, m, _,
|
|
1475
|
+
function u(w, x, m, _, E) {
|
|
1476
1476
|
if (!(w[x] instanceof l)) {
|
|
1477
|
-
var
|
|
1478
|
-
return new R("Invalid " + _ + " `" +
|
|
1477
|
+
var O = l.name || M, P = Z(w[x]);
|
|
1478
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected ") + ("instance of `" + O + "`."));
|
|
1479
1479
|
}
|
|
1480
1480
|
return null;
|
|
1481
1481
|
}
|
|
1482
1482
|
return W(u);
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function H(l) {
|
|
1485
1485
|
if (!Array.isArray(l))
|
|
1486
1486
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1487
1487
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1488
1488
|
) : a("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
1489
|
-
function u(w, x, m, _,
|
|
1490
|
-
for (var
|
|
1491
|
-
if (B(
|
|
1489
|
+
function u(w, x, m, _, E) {
|
|
1490
|
+
for (var O = w[x], P = 0; P < l.length; P++)
|
|
1491
|
+
if (B(O, l[P]))
|
|
1492
1492
|
return null;
|
|
1493
1493
|
var A = JSON.stringify(l, function(J, f) {
|
|
1494
|
-
var
|
|
1495
|
-
return
|
|
1494
|
+
var te = N(f);
|
|
1495
|
+
return te === "symbol" ? String(f) : f;
|
|
1496
1496
|
});
|
|
1497
|
-
return new R("Invalid " + _ + " `" +
|
|
1497
|
+
return new R("Invalid " + _ + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + m + "`, expected one of " + A + "."));
|
|
1498
1498
|
}
|
|
1499
1499
|
return W(u);
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
function u(w, x, m, _,
|
|
1501
|
+
function F(l) {
|
|
1502
|
+
function u(w, x, m, _, E) {
|
|
1503
1503
|
if (typeof l != "function")
|
|
1504
|
-
return new R("Property `" +
|
|
1505
|
-
var
|
|
1504
|
+
return new R("Property `" + E + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
|
|
1505
|
+
var O = w[x], P = S(O);
|
|
1506
1506
|
if (P !== "object")
|
|
1507
|
-
return new R("Invalid " + _ + " `" +
|
|
1508
|
-
for (var A in
|
|
1509
|
-
if (t(
|
|
1510
|
-
var k = l(
|
|
1507
|
+
return new R("Invalid " + _ + " `" + E + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected an object."));
|
|
1508
|
+
for (var A in O)
|
|
1509
|
+
if (t(O, A)) {
|
|
1510
|
+
var k = l(O, A, m, _, E + "." + A, o);
|
|
1511
1511
|
if (k instanceof Error)
|
|
1512
1512
|
return k;
|
|
1513
1513
|
}
|
|
@@ -1515,49 +1515,49 @@ function zr() {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
return W(u);
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1518
|
+
function re(l) {
|
|
1519
1519
|
if (!Array.isArray(l))
|
|
1520
1520
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
1521
1521
|
for (var u = 0; u < l.length; u++) {
|
|
1522
1522
|
var w = l[u];
|
|
1523
1523
|
if (typeof w != "function")
|
|
1524
1524
|
return a(
|
|
1525
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1525
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(w) + " at index " + u + "."
|
|
1526
1526
|
), d;
|
|
1527
1527
|
}
|
|
1528
|
-
function x(m, _,
|
|
1528
|
+
function x(m, _, E, O, P) {
|
|
1529
1529
|
for (var A = [], k = 0; k < l.length; k++) {
|
|
1530
|
-
var J = l[k], f = J(m, _,
|
|
1530
|
+
var J = l[k], f = J(m, _, E, O, P, o);
|
|
1531
1531
|
if (f == null)
|
|
1532
1532
|
return null;
|
|
1533
1533
|
f.data && t(f.data, "expectedType") && A.push(f.data.expectedType);
|
|
1534
1534
|
}
|
|
1535
|
-
var
|
|
1536
|
-
return new R("Invalid " +
|
|
1535
|
+
var te = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
|
|
1536
|
+
return new R("Invalid " + O + " `" + P + "` supplied to " + ("`" + E + "`" + te + "."));
|
|
1537
1537
|
}
|
|
1538
1538
|
return W(x);
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function le() {
|
|
1541
1541
|
function l(u, w, x, m, _) {
|
|
1542
|
-
return
|
|
1542
|
+
return K(u[w]) ? null : new R("Invalid " + m + " `" + _ + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
1543
1543
|
}
|
|
1544
1544
|
return W(l);
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function oe(l, u, w, x, m) {
|
|
1547
1547
|
return new R(
|
|
1548
1548
|
(l || "React class") + ": " + u + " type `" + w + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
function u(w, x, m, _,
|
|
1553
|
-
var
|
|
1551
|
+
function ae(l) {
|
|
1552
|
+
function u(w, x, m, _, E) {
|
|
1553
|
+
var O = w[x], P = S(O);
|
|
1554
1554
|
if (P !== "object")
|
|
1555
|
-
return new R("Invalid " + _ + " `" +
|
|
1555
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
1556
1556
|
for (var A in l) {
|
|
1557
1557
|
var k = l[A];
|
|
1558
1558
|
if (typeof k != "function")
|
|
1559
|
-
return
|
|
1560
|
-
var J = k(
|
|
1559
|
+
return oe(m, _, E, A, N(k));
|
|
1560
|
+
var J = k(O, A, m, _, E + "." + A, o);
|
|
1561
1561
|
if (J)
|
|
1562
1562
|
return J;
|
|
1563
1563
|
}
|
|
@@ -1565,22 +1565,22 @@ function zr() {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
return W(u);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
function u(w, x, m, _,
|
|
1570
|
-
var
|
|
1568
|
+
function ie(l) {
|
|
1569
|
+
function u(w, x, m, _, E) {
|
|
1570
|
+
var O = w[x], P = S(O);
|
|
1571
1571
|
if (P !== "object")
|
|
1572
|
-
return new R("Invalid " + _ + " `" +
|
|
1572
|
+
return new R("Invalid " + _ + " `" + E + "` of type `" + P + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
1573
1573
|
var A = s({}, w[x], l);
|
|
1574
1574
|
for (var k in A) {
|
|
1575
1575
|
var J = l[k];
|
|
1576
1576
|
if (t(l, k) && typeof J != "function")
|
|
1577
|
-
return
|
|
1577
|
+
return oe(m, _, E, k, N(J));
|
|
1578
1578
|
if (!J)
|
|
1579
1579
|
return new R(
|
|
1580
|
-
"Invalid " + _ + " `" +
|
|
1580
|
+
"Invalid " + _ + " `" + E + "` key `" + k + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(w[x], null, " ") + `
|
|
1581
1581
|
Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
1582
1582
|
);
|
|
1583
|
-
var f = J(
|
|
1583
|
+
var f = J(O, k, m, _, E + "." + k, o);
|
|
1584
1584
|
if (f)
|
|
1585
1585
|
return f;
|
|
1586
1586
|
}
|
|
@@ -1588,7 +1588,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1588
1588
|
}
|
|
1589
1589
|
return W(u);
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function K(l) {
|
|
1592
1592
|
switch (typeof l) {
|
|
1593
1593
|
case "number":
|
|
1594
1594
|
case "string":
|
|
@@ -1598,7 +1598,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1598
1598
|
return !l;
|
|
1599
1599
|
case "object":
|
|
1600
1600
|
if (Array.isArray(l))
|
|
1601
|
-
return l.every(
|
|
1601
|
+
return l.every(K);
|
|
1602
1602
|
if (l === null || y(l))
|
|
1603
1603
|
return !0;
|
|
1604
1604
|
var u = j(l);
|
|
@@ -1606,12 +1606,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1606
1606
|
var w = u.call(l), x;
|
|
1607
1607
|
if (u !== l.entries) {
|
|
1608
1608
|
for (; !(x = w.next()).done; )
|
|
1609
|
-
if (!
|
|
1609
|
+
if (!K(x.value))
|
|
1610
1610
|
return !1;
|
|
1611
1611
|
} else
|
|
1612
1612
|
for (; !(x = w.next()).done; ) {
|
|
1613
1613
|
var m = x.value;
|
|
1614
|
-
if (m && !
|
|
1614
|
+
if (m && !K(m[1]))
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
}
|
|
1617
1617
|
} else
|
|
@@ -1624,14 +1624,14 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1624
1624
|
function ce(l, u) {
|
|
1625
1625
|
return l === "symbol" ? !0 : u ? u["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && u instanceof Symbol : !1;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function S(l) {
|
|
1628
1628
|
var u = typeof l;
|
|
1629
1629
|
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : ce(u, l) ? "symbol" : u;
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function N(l) {
|
|
1632
1632
|
if (typeof l > "u" || l === null)
|
|
1633
1633
|
return "" + l;
|
|
1634
|
-
var u =
|
|
1634
|
+
var u = S(l);
|
|
1635
1635
|
if (u === "object") {
|
|
1636
1636
|
if (l instanceof Date)
|
|
1637
1637
|
return "date";
|
|
@@ -1640,8 +1640,8 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1640
1640
|
}
|
|
1641
1641
|
return u;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1644
|
-
var u =
|
|
1643
|
+
function L(l) {
|
|
1644
|
+
var u = N(l);
|
|
1645
1645
|
switch (u) {
|
|
1646
1646
|
case "array":
|
|
1647
1647
|
case "object":
|
|
@@ -1654,7 +1654,7 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1654
1654
|
return u;
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Z(l) {
|
|
1658
1658
|
return !l.constructor || !l.constructor.name ? M : l.constructor.name;
|
|
1659
1659
|
}
|
|
1660
1660
|
return z.checkPropTypes = i, z.resetWarningCache = i.resetWarningCache, z.PropTypes = z, z;
|
|
@@ -1719,7 +1719,7 @@ function Dr() {
|
|
|
1719
1719
|
return Oe.exports;
|
|
1720
1720
|
}
|
|
1721
1721
|
var Vr = /* @__PURE__ */ Dr();
|
|
1722
|
-
const
|
|
1722
|
+
const G = /* @__PURE__ */ xr(Vr);
|
|
1723
1723
|
function $e() {
|
|
1724
1724
|
return $e = Object.assign || function(e) {
|
|
1725
1725
|
for (var s = 1; s < arguments.length; s++) {
|
|
@@ -1749,7 +1749,7 @@ function Fr(e, s) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
var qe = Re(function(e, s) {
|
|
1751
1751
|
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = qr(e, ["color", "size"]);
|
|
1752
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ ne.createElement("svg", $e({
|
|
1753
1753
|
ref: s,
|
|
1754
1754
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1755
1755
|
width: a,
|
|
@@ -1760,13 +1760,13 @@ var qe = Re(function(e, s) {
|
|
|
1760
1760
|
strokeWidth: "2",
|
|
1761
1761
|
strokeLinecap: "round",
|
|
1762
1762
|
strokeLinejoin: "round"
|
|
1763
|
-
}, d), /* @__PURE__ */
|
|
1763
|
+
}, d), /* @__PURE__ */ ne.createElement("polyline", {
|
|
1764
1764
|
points: "20 6 9 17 4 12"
|
|
1765
1765
|
}));
|
|
1766
1766
|
});
|
|
1767
1767
|
qe.propTypes = {
|
|
1768
|
-
color:
|
|
1769
|
-
size:
|
|
1768
|
+
color: G.string,
|
|
1769
|
+
size: G.oneOfType([G.string, G.number])
|
|
1770
1770
|
};
|
|
1771
1771
|
qe.displayName = "Check";
|
|
1772
1772
|
function Ie() {
|
|
@@ -1798,7 +1798,7 @@ function Br(e, s) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
var Fe = Re(function(e, s) {
|
|
1800
1800
|
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Ur(e, ["color", "size"]);
|
|
1801
|
-
return /* @__PURE__ */
|
|
1801
|
+
return /* @__PURE__ */ ne.createElement("svg", Ie({
|
|
1802
1802
|
ref: s,
|
|
1803
1803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1804
1804
|
width: a,
|
|
@@ -1809,20 +1809,20 @@ var Fe = Re(function(e, s) {
|
|
|
1809
1809
|
strokeWidth: "2",
|
|
1810
1810
|
strokeLinecap: "round",
|
|
1811
1811
|
strokeLinejoin: "round"
|
|
1812
|
-
}, d), /* @__PURE__ */
|
|
1812
|
+
}, d), /* @__PURE__ */ ne.createElement("rect", {
|
|
1813
1813
|
x: "9",
|
|
1814
1814
|
y: "9",
|
|
1815
1815
|
width: "13",
|
|
1816
1816
|
height: "13",
|
|
1817
1817
|
rx: "2",
|
|
1818
1818
|
ry: "2"
|
|
1819
|
-
}), /* @__PURE__ */
|
|
1819
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
1820
1820
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
1821
1821
|
}));
|
|
1822
1822
|
});
|
|
1823
1823
|
Fe.propTypes = {
|
|
1824
|
-
color:
|
|
1825
|
-
size:
|
|
1824
|
+
color: G.string,
|
|
1825
|
+
size: G.oneOfType([G.string, G.number])
|
|
1826
1826
|
};
|
|
1827
1827
|
Fe.displayName = "Copy";
|
|
1828
1828
|
function Ye() {
|
|
@@ -1854,7 +1854,7 @@ function Hr(e, s) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
var Ue = Re(function(e, s) {
|
|
1856
1856
|
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Zr(e, ["color", "size"]);
|
|
1857
|
-
return /* @__PURE__ */
|
|
1857
|
+
return /* @__PURE__ */ ne.createElement("svg", Ye({
|
|
1858
1858
|
ref: s,
|
|
1859
1859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1860
1860
|
width: a,
|
|
@@ -1865,15 +1865,15 @@ var Ue = Re(function(e, s) {
|
|
|
1865
1865
|
strokeWidth: "2",
|
|
1866
1866
|
strokeLinecap: "round",
|
|
1867
1867
|
strokeLinejoin: "round"
|
|
1868
|
-
}, d), /* @__PURE__ */
|
|
1868
|
+
}, d), /* @__PURE__ */ ne.createElement("path", {
|
|
1869
1869
|
d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
|
|
1870
|
-
}), /* @__PURE__ */
|
|
1870
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
1871
1871
|
d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
|
|
1872
1872
|
}));
|
|
1873
1873
|
});
|
|
1874
1874
|
Ue.propTypes = {
|
|
1875
|
-
color:
|
|
1876
|
-
size:
|
|
1875
|
+
color: G.string,
|
|
1876
|
+
size: G.oneOfType([G.string, G.number])
|
|
1877
1877
|
};
|
|
1878
1878
|
Ue.displayName = "Edit";
|
|
1879
1879
|
function ze() {
|
|
@@ -1905,7 +1905,7 @@ function Xr(e, s) {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
var Be = Re(function(e, s) {
|
|
1907
1907
|
var o = e.color, t = o === void 0 ? "currentColor" : o, i = e.size, a = i === void 0 ? 24 : i, d = Jr(e, ["color", "size"]);
|
|
1908
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ ne.createElement("svg", ze({
|
|
1909
1909
|
ref: s,
|
|
1910
1910
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1911
1911
|
width: a,
|
|
@@ -1916,15 +1916,15 @@ var Be = Re(function(e, s) {
|
|
|
1916
1916
|
strokeWidth: "2",
|
|
1917
1917
|
strokeLinecap: "round",
|
|
1918
1918
|
strokeLinejoin: "round"
|
|
1919
|
-
}, d), /* @__PURE__ */
|
|
1919
|
+
}, d), /* @__PURE__ */ ne.createElement("polyline", {
|
|
1920
1920
|
points: "3 6 5 6 21 6"
|
|
1921
|
-
}), /* @__PURE__ */
|
|
1921
|
+
}), /* @__PURE__ */ ne.createElement("path", {
|
|
1922
1922
|
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
|
|
1923
1923
|
}));
|
|
1924
1924
|
});
|
|
1925
1925
|
Be.propTypes = {
|
|
1926
|
-
color:
|
|
1927
|
-
size:
|
|
1926
|
+
color: G.string,
|
|
1927
|
+
size: G.oneOfType([G.string, G.number])
|
|
1928
1928
|
};
|
|
1929
1929
|
Be.displayName = "Trash";
|
|
1930
1930
|
const Gr = ({
|
|
@@ -1935,17 +1935,16 @@ const Gr = ({
|
|
|
1935
1935
|
onEditMessage: i,
|
|
1936
1936
|
onDeleteMessage: a
|
|
1937
1937
|
}) => {
|
|
1938
|
-
const d = ye(null), [y, h] =
|
|
1938
|
+
const d = ye(null), [y, h] = se(!1), [b, g] = se(null), [j, M] = se(null), z = () => {
|
|
1939
1939
|
setTimeout(() => {
|
|
1940
1940
|
d.current && (d.current.scrollTop = d.current.scrollHeight);
|
|
1941
1941
|
}, 100);
|
|
1942
1942
|
}, B = (c, V) => {
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
const Z = (te = d.current) == null ? void 0 : te.getBoundingClientRect(), q = window.scrollX || document.documentElement.scrollLeft, X = window.scrollY || document.documentElement.scrollTop;
|
|
1943
|
+
if (c.preventDefault(), !d.current) return;
|
|
1944
|
+
const H = d.current.getBoundingClientRect();
|
|
1946
1945
|
M({
|
|
1947
|
-
x: c.clientX -
|
|
1948
|
-
y: c.clientY -
|
|
1946
|
+
x: c.clientX - H.left,
|
|
1947
|
+
y: c.clientY - H.top,
|
|
1949
1948
|
message: V
|
|
1950
1949
|
});
|
|
1951
1950
|
}, R = () => {
|
|
@@ -1959,7 +1958,7 @@ const Gr = ({
|
|
|
1959
1958
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
1960
1959
|
});
|
|
1961
1960
|
o([...s, V]), t(V), z();
|
|
1962
|
-
},
|
|
1961
|
+
}, q = (c) => {
|
|
1963
1962
|
const V = new _e({
|
|
1964
1963
|
id: (/* @__PURE__ */ new Date()).toString(),
|
|
1965
1964
|
text: "",
|
|
@@ -1970,8 +1969,8 @@ const Gr = ({
|
|
|
1970
1969
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
1971
1970
|
});
|
|
1972
1971
|
o([...s, V]), t(V), z();
|
|
1973
|
-
},
|
|
1974
|
-
const V = URL.createObjectURL(c),
|
|
1972
|
+
}, ee = (c) => {
|
|
1973
|
+
const V = URL.createObjectURL(c), H = new _e({
|
|
1975
1974
|
id: (/* @__PURE__ */ new Date()).toString(),
|
|
1976
1975
|
text: "",
|
|
1977
1976
|
attachment: V,
|
|
@@ -1980,7 +1979,7 @@ const Gr = ({
|
|
|
1980
1979
|
isRightSided: !0,
|
|
1981
1980
|
createdDate: (/* @__PURE__ */ new Date()).toString()
|
|
1982
1981
|
});
|
|
1983
|
-
o([...s,
|
|
1982
|
+
o([...s, H]), t(H), z();
|
|
1984
1983
|
};
|
|
1985
1984
|
return {
|
|
1986
1985
|
handleDeleteConfirmation: () => {
|
|
@@ -2019,8 +2018,8 @@ const Gr = ({
|
|
|
2019
2018
|
}
|
|
2020
2019
|
}
|
|
2021
2020
|
],
|
|
2022
|
-
handleSendFile:
|
|
2023
|
-
handleSendVoice:
|
|
2021
|
+
handleSendFile: ee,
|
|
2022
|
+
handleSendVoice: q,
|
|
2024
2023
|
handleSendMessage: W,
|
|
2025
2024
|
handleContextMenu: B,
|
|
2026
2025
|
isModalOpen: y,
|
|
@@ -2041,7 +2040,7 @@ const Gr = ({
|
|
|
2041
2040
|
onEditMessage: b,
|
|
2042
2041
|
dynamicSymbolAssignments: g
|
|
2043
2042
|
}) => {
|
|
2044
|
-
var V,
|
|
2043
|
+
var V, H;
|
|
2045
2044
|
const {
|
|
2046
2045
|
handleDeleteConfirmation: j,
|
|
2047
2046
|
handleCloseContextMenu: M,
|
|
@@ -2049,9 +2048,9 @@ const Gr = ({
|
|
|
2049
2048
|
handleSendVoice: B,
|
|
2050
2049
|
handleSendMessage: R,
|
|
2051
2050
|
handleContextMenu: W,
|
|
2052
|
-
contextMenuItems:
|
|
2053
|
-
isModalOpen:
|
|
2054
|
-
contextMenu:
|
|
2051
|
+
contextMenuItems: q,
|
|
2052
|
+
isModalOpen: ee,
|
|
2053
|
+
contextMenu: C,
|
|
2055
2054
|
chatRef: D,
|
|
2056
2055
|
setIsModalOpen: c
|
|
2057
2056
|
} = Gr({
|
|
@@ -2078,37 +2077,37 @@ const Gr = ({
|
|
|
2078
2077
|
"div",
|
|
2079
2078
|
{
|
|
2080
2079
|
ref: D,
|
|
2081
|
-
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${
|
|
2082
|
-
children: /* @__PURE__ */ n.jsx(dr, { children: i.map((
|
|
2083
|
-
var
|
|
2084
|
-
const
|
|
2080
|
+
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${C ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
2081
|
+
children: /* @__PURE__ */ n.jsx(dr, { children: i.map((F, re) => {
|
|
2082
|
+
var ae, ie, K;
|
|
2083
|
+
const le = F != null && F.attachment ? /* @__PURE__ */ n.jsx(
|
|
2085
2084
|
kr,
|
|
2086
2085
|
{
|
|
2087
|
-
attachment:
|
|
2088
|
-
attachmentType:
|
|
2086
|
+
attachment: F.attachment,
|
|
2087
|
+
attachmentType: F == null ? void 0 : F.attachmentType
|
|
2089
2088
|
},
|
|
2090
|
-
|
|
2089
|
+
re
|
|
2091
2090
|
) : null;
|
|
2092
|
-
if (
|
|
2091
|
+
if (F.isRightSided)
|
|
2093
2092
|
return /* @__PURE__ */ n.jsx(
|
|
2094
2093
|
Mr,
|
|
2095
2094
|
{
|
|
2096
|
-
media:
|
|
2095
|
+
media: le,
|
|
2097
2096
|
handleContextMenu: W,
|
|
2098
|
-
message:
|
|
2097
|
+
message: F
|
|
2099
2098
|
},
|
|
2100
|
-
|
|
2099
|
+
re
|
|
2101
2100
|
);
|
|
2102
|
-
const
|
|
2101
|
+
const oe = ((ie = (ae = i[re - 1]) == null ? void 0 : ae.user) == null ? void 0 : ie.id) !== ((K = F == null ? void 0 : F.user) == null ? void 0 : K.id);
|
|
2103
2102
|
return /* @__PURE__ */ n.jsx(
|
|
2104
|
-
|
|
2103
|
+
Nr,
|
|
2105
2104
|
{
|
|
2106
|
-
showUserProfile:
|
|
2107
|
-
media:
|
|
2105
|
+
showUserProfile: oe,
|
|
2106
|
+
media: le,
|
|
2108
2107
|
handleContextMenu: W,
|
|
2109
|
-
message:
|
|
2108
|
+
message: F
|
|
2110
2109
|
},
|
|
2111
|
-
|
|
2110
|
+
re
|
|
2112
2111
|
);
|
|
2113
2112
|
}) })
|
|
2114
2113
|
}
|
|
@@ -2116,21 +2115,24 @@ const Gr = ({
|
|
|
2116
2115
|
/* @__PURE__ */ n.jsx(
|
|
2117
2116
|
Cr,
|
|
2118
2117
|
{
|
|
2119
|
-
isOpen:
|
|
2118
|
+
isOpen: ee,
|
|
2120
2119
|
onClose: () => c(!1),
|
|
2121
2120
|
onConfirm: j,
|
|
2122
2121
|
header: "Confirm Delete",
|
|
2123
2122
|
question: "Are you sure you want to delete this message?"
|
|
2124
2123
|
}
|
|
2125
2124
|
),
|
|
2126
|
-
|
|
2125
|
+
C && ((V = C == null ? void 0 : C.message) != null && V.id) ? /* @__PURE__ */ n.jsx(
|
|
2127
2126
|
Er,
|
|
2128
2127
|
{
|
|
2129
|
-
items:
|
|
2130
|
-
isVisible: !!
|
|
2131
|
-
messageId: String(
|
|
2132
|
-
isCurrentUserMessage: ((
|
|
2133
|
-
position:
|
|
2128
|
+
items: q,
|
|
2129
|
+
isVisible: !!C,
|
|
2130
|
+
messageId: String(C == null ? void 0 : C.message.id),
|
|
2131
|
+
isCurrentUserMessage: ((H = C == null ? void 0 : C.message) == null ? void 0 : H.user.id) === a.id,
|
|
2132
|
+
position: {
|
|
2133
|
+
x: C == null ? void 0 : C.x,
|
|
2134
|
+
y: C == null ? void 0 : C.y
|
|
2135
|
+
}
|
|
2134
2136
|
}
|
|
2135
2137
|
) : null,
|
|
2136
2138
|
/* @__PURE__ */ n.jsx(
|