react-pro-messenger 1.1.1 → 1.1.2
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 +156 -153
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Input/Input.d.ts +1 -1
- package/dist/src/domain/MessageEntity.d.ts +3 -1
- package/dist/src/features/Chat/logic.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var ka = Object.defineProperty;
|
|
2
2
|
var _a = (e, t, n) => t in e ? ka(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var ye = (e, t, n) => (_a(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as sr from "react";
|
|
5
|
-
import Re, { useCallback as on, createContext as mt, useRef as Se, useId as or, useContext as Ce, useInsertionEffect as ks, useMemo as tt, useEffect as He, Children as Ia, isValidElement as Na, useLayoutEffect as Fa, useState as
|
|
5
|
+
import Re, { useCallback as on, createContext as mt, useRef as Se, useId as or, useContext as Ce, useInsertionEffect as ks, useMemo as tt, useEffect as He, Children as Ia, isValidElement as Na, useLayoutEffect as Fa, useState as ve, forwardRef as Nt, Fragment as _s, createElement as Ba, Component as $a } from "react";
|
|
6
6
|
import Ua from "react-dom";
|
|
7
7
|
var p = { exports: {} }, bt = {};
|
|
8
8
|
var oi;
|
|
@@ -64,7 +64,7 @@ function za() {
|
|
|
64
64
|
var X = S.displayName || S.name || "";
|
|
65
65
|
return X !== "" ? A + "(" + X + ")" : A;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ie(d) {
|
|
68
68
|
return d.displayName || "Context";
|
|
69
69
|
}
|
|
70
70
|
function U(d) {
|
|
@@ -92,10 +92,10 @@ function za() {
|
|
|
92
92
|
switch (d.$$typeof) {
|
|
93
93
|
case a:
|
|
94
94
|
var S = d;
|
|
95
|
-
return
|
|
95
|
+
return ie(S) + ".Consumer";
|
|
96
96
|
case o:
|
|
97
97
|
var A = d;
|
|
98
|
-
return
|
|
98
|
+
return ie(A._context) + ".Provider";
|
|
99
99
|
case l:
|
|
100
100
|
return H(d, d.render, "ForwardRef");
|
|
101
101
|
case f:
|
|
@@ -112,14 +112,14 @@ function za() {
|
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
115
|
+
var se = Object.assign, pe = 0, he, q, oe, me, b, w, F;
|
|
116
116
|
function B() {
|
|
117
117
|
}
|
|
118
118
|
B.__reactDisabledLog = !0;
|
|
119
119
|
function _() {
|
|
120
120
|
{
|
|
121
121
|
if (pe === 0) {
|
|
122
|
-
he = console.log, q = console.info,
|
|
122
|
+
he = console.log, q = console.info, oe = console.warn, me = console.error, b = console.group, w = console.groupCollapsed, F = console.groupEnd;
|
|
123
123
|
var d = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -148,25 +148,25 @@ function za() {
|
|
|
148
148
|
writable: !0
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
151
|
-
log:
|
|
151
|
+
log: se({}, d, {
|
|
152
152
|
value: he
|
|
153
153
|
}),
|
|
154
|
-
info:
|
|
154
|
+
info: se({}, d, {
|
|
155
155
|
value: q
|
|
156
156
|
}),
|
|
157
|
-
warn:
|
|
158
|
-
value:
|
|
157
|
+
warn: se({}, d, {
|
|
158
|
+
value: oe
|
|
159
159
|
}),
|
|
160
|
-
error:
|
|
160
|
+
error: se({}, d, {
|
|
161
161
|
value: me
|
|
162
162
|
}),
|
|
163
|
-
group:
|
|
163
|
+
group: se({}, d, {
|
|
164
164
|
value: b
|
|
165
165
|
}),
|
|
166
|
-
groupCollapsed:
|
|
166
|
+
groupCollapsed: se({}, d, {
|
|
167
167
|
value: w
|
|
168
168
|
}),
|
|
169
|
-
groupEnd:
|
|
169
|
+
groupEnd: se({}, d, {
|
|
170
170
|
value: F
|
|
171
171
|
})
|
|
172
172
|
});
|
|
@@ -300,7 +300,7 @@ function za() {
|
|
|
300
300
|
}
|
|
301
301
|
return "";
|
|
302
302
|
}
|
|
303
|
-
var
|
|
303
|
+
var be = Object.prototype.hasOwnProperty, rt = {}, Wt = x.ReactDebugCurrentFrame;
|
|
304
304
|
function qe(d) {
|
|
305
305
|
if (d) {
|
|
306
306
|
var S = d._owner, A = ge(d.type, d._source, S ? S.type : null);
|
|
@@ -310,7 +310,7 @@ function za() {
|
|
|
310
310
|
}
|
|
311
311
|
function $e(d, S, A, N, X) {
|
|
312
312
|
{
|
|
313
|
-
var ne = Function.call.bind(
|
|
313
|
+
var ne = Function.call.bind(be);
|
|
314
314
|
for (var G in d)
|
|
315
315
|
if (ne(d, G)) {
|
|
316
316
|
var K = void 0;
|
|
@@ -359,7 +359,7 @@ function za() {
|
|
|
359
359
|
}, Zr, Jr, pn;
|
|
360
360
|
pn = {};
|
|
361
361
|
function ba(d) {
|
|
362
|
-
if (
|
|
362
|
+
if (be.call(d, "ref")) {
|
|
363
363
|
var S = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
364
364
|
if (S && S.isReactWarning)
|
|
365
365
|
return !1;
|
|
@@ -367,7 +367,7 @@ function za() {
|
|
|
367
367
|
return d.ref !== void 0;
|
|
368
368
|
}
|
|
369
369
|
function wa(d) {
|
|
370
|
-
if (
|
|
370
|
+
if (be.call(d, "key")) {
|
|
371
371
|
var S = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
372
372
|
if (S && S.isReactWarning)
|
|
373
373
|
return !1;
|
|
@@ -433,7 +433,7 @@ function za() {
|
|
|
433
433
|
var ne, G = {}, K = null, Ee = null;
|
|
434
434
|
A !== void 0 && (Xr(A), K = "" + A), wa(S) && (Xr(S.key), K = "" + S.key), ba(S) && (Ee = S.ref, Ta(S, X));
|
|
435
435
|
for (ne in S)
|
|
436
|
-
|
|
436
|
+
be.call(S, ne) && !xa.hasOwnProperty(ne) && (G[ne] = S[ne]);
|
|
437
437
|
if (d && d.defaultProps) {
|
|
438
438
|
var ue = d.defaultProps;
|
|
439
439
|
for (ne in ue)
|
|
@@ -638,40 +638,42 @@ class Gt {
|
|
|
638
638
|
constructor({
|
|
639
639
|
id: t,
|
|
640
640
|
text: n,
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
641
|
+
htmlContent: r,
|
|
642
|
+
createdDate: i,
|
|
643
|
+
attachmentUrl: s,
|
|
644
|
+
attachmentType: o,
|
|
645
|
+
attachmentFormat: a,
|
|
646
|
+
attachmentBlob: l,
|
|
647
|
+
attachmentName: c,
|
|
648
|
+
attachmentSize: u,
|
|
649
|
+
user: f,
|
|
650
|
+
isRightSided: h,
|
|
651
|
+
symbols: m,
|
|
652
|
+
isSending: y,
|
|
653
|
+
isEdited: v
|
|
653
654
|
}) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
655
|
+
ye(this, "id", "0");
|
|
656
|
+
ye(this, "text", "");
|
|
657
|
+
ye(this, "htmlContent", "");
|
|
658
|
+
ye(this, "createdDate", "");
|
|
659
|
+
ye(this, "attachmentUrl", "");
|
|
660
|
+
ye(this, "attachmentBlob");
|
|
661
|
+
ye(this, "attachmentType");
|
|
662
|
+
ye(this, "attachmentFormat", "");
|
|
663
|
+
ye(this, "attachmentName", "");
|
|
664
|
+
ye(this, "attachmentSize", 0);
|
|
665
|
+
ye(this, "user", { id: "" });
|
|
666
|
+
ye(this, "isRightSided", !1);
|
|
667
|
+
ye(this, "symbols");
|
|
668
|
+
ye(this, "isSending");
|
|
669
|
+
ye(this, "isEdited");
|
|
670
|
+
ye(this, "updateId", (t) => {
|
|
669
671
|
this.id = t;
|
|
670
672
|
});
|
|
671
|
-
|
|
673
|
+
ye(this, "updateIsSending", (t) => {
|
|
672
674
|
this.isSending = t;
|
|
673
675
|
});
|
|
674
|
-
this.id = t, this.text = n, this.
|
|
676
|
+
this.id = t, this.text = n, this.htmlContent = r, this.createdDate = i, this.attachmentUrl = s, this.attachmentType = o, this.attachmentFormat = a, this.attachmentBlob = l, this.attachmentName = c, this.attachmentSize = u, this.user = f, this.isRightSided = h, this.symbols = m, this.isSending = y, this.isEdited = v;
|
|
675
677
|
}
|
|
676
678
|
}
|
|
677
679
|
const ar = mt({});
|
|
@@ -774,7 +776,7 @@ function li(e) {
|
|
|
774
776
|
}), t;
|
|
775
777
|
}
|
|
776
778
|
const ur = typeof window < "u", Ns = ur ? Fa : He, Fs = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: a = "left" }) => {
|
|
777
|
-
const [l, c] = Is(o), u = tt(() => li(e), [e]), f = o && !l ? [] : u.map(zt), h = Se(!0), m = Se(u), y = lr(() => /* @__PURE__ */ new Map()), [v, T] =
|
|
779
|
+
const [l, c] = Is(o), u = tt(() => li(e), [e]), f = o && !l ? [] : u.map(zt), h = Se(!0), m = Se(u), y = lr(() => /* @__PURE__ */ new Map()), [v, T] = ve(u), [x, C] = ve(u);
|
|
778
780
|
Ns(() => {
|
|
779
781
|
h.current = !1, m.current = u;
|
|
780
782
|
for (let g = 0; g < x.length; g++) {
|
|
@@ -2399,7 +2401,7 @@ const jt = {
|
|
|
2399
2401
|
layout: 0,
|
|
2400
2402
|
mainThread: 0,
|
|
2401
2403
|
waapi: 0
|
|
2402
|
-
},
|
|
2404
|
+
}, le = (e, t, n) => e + (t - e) * n;
|
|
2403
2405
|
function wn(e, t, n) {
|
|
2404
2406
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
2405
2407
|
}
|
|
@@ -2438,13 +2440,13 @@ const Ai = (e, t) => {
|
|
|
2438
2440
|
if (!n || !r)
|
|
2439
2441
|
return tn(e, t);
|
|
2440
2442
|
const i = { ...n };
|
|
2441
|
-
return (s) => (i.red = Tn(n.red, r.red, s), i.green = Tn(n.green, r.green, s), i.blue = Tn(n.blue, r.blue, s), i.alpha =
|
|
2443
|
+
return (s) => (i.red = Tn(n.red, r.red, s), i.green = Tn(n.green, r.green, s), i.blue = Tn(n.blue, r.blue, s), i.alpha = le(n.alpha, r.alpha, s), Qe.transform(i));
|
|
2442
2444
|
}, Uc = (e, t) => (n) => t(e(n)), $t = (...e) => e.reduce(Uc), Hn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2443
2445
|
function Wc(e, t) {
|
|
2444
2446
|
return Hn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
2445
2447
|
}
|
|
2446
2448
|
function zc(e, t) {
|
|
2447
|
-
return (n) =>
|
|
2449
|
+
return (n) => le(e, t, n);
|
|
2448
2450
|
}
|
|
2449
2451
|
function Fr(e) {
|
|
2450
2452
|
return typeof e == "number" ? zc : typeof e == "string" ? yr(e) ? tn : Te.test(e) ? Ai : Hc : Array.isArray(e) ? Fo : typeof e == "object" ? Te.test(e) ? Ai : Yc : tn;
|
|
@@ -2481,14 +2483,14 @@ const Hc = (e, t) => {
|
|
|
2481
2483
|
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Hn.has(e) && !i.values.length || Hn.has(t) && !r.values.length ? Wc(e, t) : $t(Fo(Kc(r, i), i.values), n) : (gt(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), tn(e, t));
|
|
2482
2484
|
};
|
|
2483
2485
|
function Bo(e, t, n) {
|
|
2484
|
-
return typeof e == "number" && typeof t == "number" && typeof n == "number" ?
|
|
2486
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? le(e, t, n) : Fr(e)(e, t);
|
|
2485
2487
|
}
|
|
2486
2488
|
const Gc = 5;
|
|
2487
2489
|
function $o(e, t, n) {
|
|
2488
2490
|
const r = Math.max(t - Gc, 0);
|
|
2489
2491
|
return po(n - e(r), t - r);
|
|
2490
2492
|
}
|
|
2491
|
-
const
|
|
2493
|
+
const ae = {
|
|
2492
2494
|
stiffness: 100,
|
|
2493
2495
|
damping: 10,
|
|
2494
2496
|
mass: 1,
|
|
@@ -2509,11 +2511,11 @@ const oe = {
|
|
|
2509
2511
|
minDamping: 0.05,
|
|
2510
2512
|
maxDamping: 1
|
|
2511
2513
|
}, Sn = 1e-3;
|
|
2512
|
-
function qc({ duration: e =
|
|
2514
|
+
function qc({ duration: e = ae.duration, bounce: t = ae.bounce, velocity: n = ae.velocity, mass: r = ae.mass }) {
|
|
2513
2515
|
let i, s;
|
|
2514
|
-
gt(e <= Oe(
|
|
2516
|
+
gt(e <= Oe(ae.maxDuration), "Spring duration must be 10 seconds or less");
|
|
2515
2517
|
let o = 1 - t;
|
|
2516
|
-
o = Be(
|
|
2518
|
+
o = Be(ae.minDamping, ae.maxDamping, o), e = Be(ae.minDuration, ae.maxDuration, Fe(e)), o < 1 ? (i = (c) => {
|
|
2517
2519
|
const u = c * o, f = u * e, h = u - n, m = Gn(c, o), y = Math.exp(-f);
|
|
2518
2520
|
return Sn - h / m * y;
|
|
2519
2521
|
}, s = (c) => {
|
|
@@ -2529,8 +2531,8 @@ function qc({ duration: e = oe.duration, bounce: t = oe.bounce, velocity: n = oe
|
|
|
2529
2531
|
const a = 5 / e, l = Zc(i, s, a);
|
|
2530
2532
|
if (e = Oe(e), isNaN(l))
|
|
2531
2533
|
return {
|
|
2532
|
-
stiffness:
|
|
2533
|
-
damping:
|
|
2534
|
+
stiffness: ae.stiffness,
|
|
2535
|
+
damping: ae.damping,
|
|
2534
2536
|
duration: e
|
|
2535
2537
|
};
|
|
2536
2538
|
{
|
|
@@ -2558,10 +2560,10 @@ function Mi(e, t) {
|
|
|
2558
2560
|
}
|
|
2559
2561
|
function eu(e) {
|
|
2560
2562
|
let t = {
|
|
2561
|
-
velocity:
|
|
2562
|
-
stiffness:
|
|
2563
|
-
damping:
|
|
2564
|
-
mass:
|
|
2563
|
+
velocity: ae.velocity,
|
|
2564
|
+
stiffness: ae.stiffness,
|
|
2565
|
+
damping: ae.damping,
|
|
2566
|
+
mass: ae.mass,
|
|
2565
2567
|
isResolvedFromDuration: !1,
|
|
2566
2568
|
...e
|
|
2567
2569
|
};
|
|
@@ -2570,7 +2572,7 @@ function eu(e) {
|
|
|
2570
2572
|
const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * Be(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
2571
2573
|
t = {
|
|
2572
2574
|
...t,
|
|
2573
|
-
mass:
|
|
2575
|
+
mass: ae.mass,
|
|
2574
2576
|
stiffness: i,
|
|
2575
2577
|
damping: s
|
|
2576
2578
|
};
|
|
@@ -2579,12 +2581,12 @@ function eu(e) {
|
|
|
2579
2581
|
t = {
|
|
2580
2582
|
...t,
|
|
2581
2583
|
...n,
|
|
2582
|
-
mass:
|
|
2584
|
+
mass: ae.mass
|
|
2583
2585
|
}, t.isResolvedFromDuration = !0;
|
|
2584
2586
|
}
|
|
2585
2587
|
return t;
|
|
2586
2588
|
}
|
|
2587
|
-
function Uo(e =
|
|
2589
|
+
function Uo(e = ae.visualDuration, t = ae.bounce) {
|
|
2588
2590
|
const n = typeof e != "object" ? {
|
|
2589
2591
|
visualDuration: e,
|
|
2590
2592
|
keyframes: [0, 1],
|
|
@@ -2595,7 +2597,7 @@ function Uo(e = oe.visualDuration, t = oe.bounce) {
|
|
|
2595
2597
|
...n,
|
|
2596
2598
|
velocity: -Fe(n.velocity || 0)
|
|
2597
2599
|
}), y = h || 0, v = c / (2 * Math.sqrt(l * u)), T = o - s, x = Fe(Math.sqrt(l / u)), C = Math.abs(T) < 5;
|
|
2598
|
-
r || (r = C ?
|
|
2600
|
+
r || (r = C ? ae.restSpeed.granular : ae.restSpeed.default), i || (i = C ? ae.restDelta.granular : ae.restDelta.default);
|
|
2599
2601
|
let E;
|
|
2600
2602
|
if (v < 1) {
|
|
2601
2603
|
const g = Gn(x, v);
|
|
@@ -2721,7 +2723,7 @@ function ou(e, t) {
|
|
|
2721
2723
|
const n = e[e.length - 1];
|
|
2722
2724
|
for (let r = 1; r <= t; r++) {
|
|
2723
2725
|
const i = dt(0, t, r);
|
|
2724
|
-
e.push(
|
|
2726
|
+
e.push(le(n, 1, i));
|
|
2725
2727
|
}
|
|
2726
2728
|
}
|
|
2727
2729
|
function au(e) {
|
|
@@ -3273,20 +3275,20 @@ function Ou(e) {
|
|
|
3273
3275
|
const R = Array.isArray(E) ? E : [E];
|
|
3274
3276
|
let H = R.reduce(i(x), {});
|
|
3275
3277
|
g === !1 && (H = {});
|
|
3276
|
-
const { prevResolvedValues:
|
|
3277
|
-
...
|
|
3278
|
+
const { prevResolvedValues: ie = {} } = C, U = {
|
|
3279
|
+
...ie,
|
|
3278
3280
|
...H
|
|
3279
|
-
},
|
|
3281
|
+
}, se = (q) => {
|
|
3280
3282
|
O = !0, h.has(q) && (Z = !0, h.delete(q)), C.needsAnimating[q] = !0;
|
|
3281
|
-
const
|
|
3282
|
-
|
|
3283
|
+
const oe = e.getValue(q);
|
|
3284
|
+
oe && (oe.liveStyle = !1);
|
|
3283
3285
|
};
|
|
3284
3286
|
for (const q in U) {
|
|
3285
|
-
const
|
|
3287
|
+
const oe = H[q], me = ie[q];
|
|
3286
3288
|
if (m.hasOwnProperty(q))
|
|
3287
3289
|
continue;
|
|
3288
3290
|
let b = !1;
|
|
3289
|
-
Fn(
|
|
3291
|
+
Fn(oe) && Fn(me) ? b = !Ko(oe, me) : b = oe !== me, b ? oe != null ? se(q) : h.add(q) : oe !== void 0 && h.has(q) ? se(q) : C.protectedKeys[q] = !0;
|
|
3290
3292
|
}
|
|
3291
3293
|
C.prevProp = E, C.prevResolvedValues = H, C.isActive && (m = { ...m, ...H }), r && e.blockInitialAnimation && (O = !1), O && (!(D && z) || Z) && f.push(...R.map((q) => ({
|
|
3292
3294
|
animation: q,
|
|
@@ -3453,7 +3455,7 @@ function Hu(e, t, n) {
|
|
|
3453
3455
|
return Math.abs(e - t) <= n;
|
|
3454
3456
|
}
|
|
3455
3457
|
function _i(e, t, n, r = 0.5) {
|
|
3456
|
-
e.origin = r, e.originPoint =
|
|
3458
|
+
e.origin = r, e.originPoint = le(t.min, t.max, e.origin), e.scale = je(n) / je(t), e.translate = le(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Wu && e.scale <= zu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Yu && e.translate <= Ku || isNaN(e.translate)) && (e.translate = 0);
|
|
3457
3459
|
}
|
|
3458
3460
|
function At(e, t, n, r) {
|
|
3459
3461
|
_i(e.x, t.x, n.x, r ? r.originX : void 0), _i(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
@@ -3534,7 +3536,7 @@ function ut(e, t) {
|
|
|
3534
3536
|
e.min = e.min + t, e.max = e.max + t;
|
|
3535
3537
|
}
|
|
3536
3538
|
function Yi(e, t, n, r, i = 0.5) {
|
|
3537
|
-
const s =
|
|
3539
|
+
const s = le(e.min, e.max, i);
|
|
3538
3540
|
Zn(e, t, n, s, r);
|
|
3539
3541
|
}
|
|
3540
3542
|
function ft(e, t) {
|
|
@@ -3633,7 +3635,7 @@ function Qu(e, t) {
|
|
|
3633
3635
|
return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
|
|
3634
3636
|
}
|
|
3635
3637
|
function ef(e, { min: t, max: n }, r) {
|
|
3636
|
-
return t !== void 0 && e < t ? e = r ?
|
|
3638
|
+
return t !== void 0 && e < t ? e = r ? le(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? le(n, e, r.max) : Math.min(e, n)), e;
|
|
3637
3639
|
}
|
|
3638
3640
|
function Gi(e, t, n) {
|
|
3639
3641
|
return {
|
|
@@ -3834,7 +3836,7 @@ class lf {
|
|
|
3834
3836
|
const { projection: i } = this.visualElement, s = this.getAxisMotionValue(n);
|
|
3835
3837
|
if (i && i.layout) {
|
|
3836
3838
|
const { min: o, max: a } = i.layout.layoutBox[n];
|
|
3837
|
-
s.set(t[n] -
|
|
3839
|
+
s.set(t[n] - le(o, a, 0.5));
|
|
3838
3840
|
}
|
|
3839
3841
|
});
|
|
3840
3842
|
}
|
|
@@ -3858,7 +3860,7 @@ class lf {
|
|
|
3858
3860
|
if (!Ht(o, t, null))
|
|
3859
3861
|
return;
|
|
3860
3862
|
const a = this.getAxisMotionValue(o), { min: l, max: c } = this.constraints[o];
|
|
3861
|
-
a.set(
|
|
3863
|
+
a.set(le(l, c, i[o]));
|
|
3862
3864
|
});
|
|
3863
3865
|
}
|
|
3864
3866
|
addListeners() {
|
|
@@ -3974,7 +3976,7 @@ const Tt = {
|
|
|
3974
3976
|
return r;
|
|
3975
3977
|
const s = Ke.createTransformer(e), o = typeof i[0] != "number" ? 1 : 0, a = n.x.scale * t.x, l = n.y.scale * t.y;
|
|
3976
3978
|
i[0 + o] /= a, i[1 + o] /= l;
|
|
3977
|
-
const c =
|
|
3979
|
+
const c = le(a, l, 0.5);
|
|
3978
3980
|
return typeof i[2 + o] == "number" && (i[2 + o] /= c), typeof i[3 + o] == "number" && (i[3 + o] /= c), s(i);
|
|
3979
3981
|
}
|
|
3980
3982
|
};
|
|
@@ -4064,19 +4066,19 @@ function xf(e, t) {
|
|
|
4064
4066
|
}
|
|
4065
4067
|
const ra = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], bf = ra.length, es = (e) => typeof e == "string" ? parseFloat(e) : e, ts = (e) => typeof e == "number" || k.test(e);
|
|
4066
4068
|
function wf(e, t, n, r, i, s) {
|
|
4067
|
-
i ? (e.opacity =
|
|
4069
|
+
i ? (e.opacity = le(
|
|
4068
4070
|
0,
|
|
4069
4071
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
4070
4072
|
Tf(r)
|
|
4071
|
-
), e.opacityExit =
|
|
4073
|
+
), e.opacityExit = le(t.opacity !== void 0 ? t.opacity : 1, 0, Sf(r))) : s && (e.opacity = le(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
4072
4074
|
for (let o = 0; o < bf; o++) {
|
|
4073
4075
|
const a = `border${ra[o]}Radius`;
|
|
4074
4076
|
let l = ns(t, a), c = ns(n, a);
|
|
4075
4077
|
if (l === void 0 && c === void 0)
|
|
4076
4078
|
continue;
|
|
4077
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 || ts(l) === ts(c) ? (e[a] = Math.max(
|
|
4079
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || ts(l) === ts(c) ? (e[a] = Math.max(le(es(l), es(c), r), 0), (ke.test(c) || ke.test(l)) && (e[a] += "%")) : e[a] = c;
|
|
4078
4080
|
}
|
|
4079
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
4081
|
+
(t.rotate || n.rotate) && (e.rotate = le(t.rotate || 0, n.rotate || 0, r));
|
|
4080
4082
|
}
|
|
4081
4083
|
function ns(e, t) {
|
|
4082
4084
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
@@ -4098,9 +4100,9 @@ function ss(e, t, n, r, i) {
|
|
|
4098
4100
|
return e -= t, e = rn(e, 1 / n, r), i !== void 0 && (e = rn(e, 1 / i, r)), e;
|
|
4099
4101
|
}
|
|
4100
4102
|
function Cf(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
4101
|
-
if (ke.test(t) && (t = parseFloat(t), t =
|
|
4103
|
+
if (ke.test(t) && (t = parseFloat(t), t = le(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
4102
4104
|
return;
|
|
4103
|
-
let a =
|
|
4105
|
+
let a = le(s.min, s.max, r);
|
|
4104
4106
|
e === s && (a -= t), e.min = ss(e.min, t, n, a, i), e.max = ss(e.max, t, n, a, i);
|
|
4105
4107
|
}
|
|
4106
4108
|
function os(e, t, [n, r, i], s, o) {
|
|
@@ -4737,10 +4739,10 @@ function Uf(e) {
|
|
|
4737
4739
|
e.removeLeadSnapshot();
|
|
4738
4740
|
}
|
|
4739
4741
|
function gs(e, t, n) {
|
|
4740
|
-
e.translate =
|
|
4742
|
+
e.translate = le(t.translate, 0, n), e.scale = le(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
4741
4743
|
}
|
|
4742
4744
|
function ys(e, t, n, r) {
|
|
4743
|
-
e.min =
|
|
4745
|
+
e.min = le(t.min, n.min, r), e.max = le(t.max, n.max, r);
|
|
4744
4746
|
}
|
|
4745
4747
|
function Wf(e, t, n, r) {
|
|
4746
4748
|
ys(e.x, t.x, n.x, r), ys(e.y, t.y, n.y, r);
|
|
@@ -5286,7 +5288,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5286
5288
|
messageId: r,
|
|
5287
5289
|
isCurrentUserMessage: i
|
|
5288
5290
|
}) => {
|
|
5289
|
-
const s = Se(null), [o, a] =
|
|
5291
|
+
const s = Se(null), [o, a] = ve(!1);
|
|
5290
5292
|
return He(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", s.current.style.top = "0", s.current.style.left = "0", s.current.style.width = "100%", s.current.style.height = "100%", s.current.style.pointerEvents = "none", document.body.appendChild(s.current)), a(!0), () => {
|
|
5291
5293
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5292
5294
|
}), [t]), !s.current || !o ? null : Ua.createPortal(
|
|
@@ -5423,27 +5425,27 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5423
5425
|
messageToEdit: c,
|
|
5424
5426
|
setMessageToEdit: u
|
|
5425
5427
|
}) => {
|
|
5426
|
-
const [f, h] =
|
|
5428
|
+
const [f, h] = ve(""), [m, y] = ve(!1), [v, T] = ve(0), [x, C] = ve(null), [E, V] = ve(null), [g, D] = ve(0), z = Se(null), O = Se([]), Z = Se(null), R = Se(null), H = Se(null), [ie, U] = ve(!1), [se, pe] = ve([]), he = 150, q = 41.6;
|
|
5427
5429
|
He(() => {
|
|
5428
5430
|
const j = document.getElementById("static-display");
|
|
5429
5431
|
j && !j.textContent && (c != null && c.text) && (j.textContent = c == null ? void 0 : c.text);
|
|
5430
5432
|
}, [c == null ? void 0 : c.text]);
|
|
5431
|
-
const
|
|
5433
|
+
const oe = (j) => {
|
|
5432
5434
|
c ? u((L) => L ? new Gt({
|
|
5433
5435
|
...L,
|
|
5434
5436
|
text: j,
|
|
5435
5437
|
isEdited: !0
|
|
5436
5438
|
}) : void 0) : h(j);
|
|
5437
5439
|
const M = j.match(/(\S+)$/);
|
|
5438
|
-
if (F(M),
|
|
5440
|
+
if (F(M), se.length > 0) {
|
|
5439
5441
|
const L = Array.from(
|
|
5440
5442
|
j.matchAll(/<span[^>]*id=["']([^"']+)["'][^>]*>/g)
|
|
5441
5443
|
).map((P) => P[1]);
|
|
5442
5444
|
pe((P) => (P.filter(
|
|
5443
5445
|
(ee) => !L.includes(ee)
|
|
5444
5446
|
).forEach((ee) => {
|
|
5445
|
-
const ge = ee.charAt(0),
|
|
5446
|
-
l == null || l(
|
|
5447
|
+
const ge = ee.charAt(0), be = ee.slice(1);
|
|
5448
|
+
l == null || l(be, ge);
|
|
5447
5449
|
}), L));
|
|
5448
5450
|
}
|
|
5449
5451
|
if (R.current) {
|
|
@@ -5457,14 +5459,14 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5457
5459
|
return;
|
|
5458
5460
|
t({
|
|
5459
5461
|
...c,
|
|
5462
|
+
htmlContent: c.text,
|
|
5460
5463
|
text: j
|
|
5461
5464
|
}), u(void 0);
|
|
5462
|
-
} else
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
return;
|
|
5466
|
-
|
|
5467
|
-
}
|
|
5465
|
+
} else
|
|
5466
|
+
h((j) => {
|
|
5467
|
+
const M = Cs(j);
|
|
5468
|
+
return M.trim() === "" ? j : (console.log("htmlcontnent before", j), e(M, j), "");
|
|
5469
|
+
});
|
|
5468
5470
|
C(null), V(null), R.current && (R.current.style.height = `${q}px`, R.current.innerHTML = "");
|
|
5469
5471
|
}, b = async () => {
|
|
5470
5472
|
y(!0), T(0), O.current = [], Z.current = setInterval(() => {
|
|
@@ -5508,10 +5510,10 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5508
5510
|
R.current.innerHTML = P + ee;
|
|
5509
5511
|
const ge = document.createTextNode("");
|
|
5510
5512
|
R.current.appendChild(ge);
|
|
5511
|
-
const
|
|
5512
|
-
rt.setStart(ge, 0), rt.collapse(!0),
|
|
5513
|
+
const be = window.getSelection(), rt = document.createRange();
|
|
5514
|
+
rt.setStart(ge, 0), rt.collapse(!0), be == null || be.removeAllRanges(), be == null || be.addRange(rt);
|
|
5513
5515
|
const Wt = R.current.innerHTML;
|
|
5514
|
-
|
|
5516
|
+
oe(Wt), a && a(M, j, L), C(null), V(null), setTimeout(() => {
|
|
5515
5517
|
var $e;
|
|
5516
5518
|
($e = R.current) == null || $e.focus();
|
|
5517
5519
|
}, 0);
|
|
@@ -5598,7 +5600,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5598
5600
|
className: "w-full resize-none h-[41.6px] absolute bottom-0 bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-bl-3xl ",
|
|
5599
5601
|
placeholder: "Type a message...",
|
|
5600
5602
|
value: c.text,
|
|
5601
|
-
onChange: (j) =>
|
|
5603
|
+
onChange: (j) => oe(j.target.value),
|
|
5602
5604
|
onKeyDown: (j) => {
|
|
5603
5605
|
j.key === "Enter" && !j.shiftKey && (j.preventDefault(), me());
|
|
5604
5606
|
}
|
|
@@ -5641,7 +5643,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5641
5643
|
suppressContentEditableWarning: !0,
|
|
5642
5644
|
className: "w-full absolute bottom-0 resize-none bg-white flex-1 p-2 pr-10 pl-4 border border-gray-300 outline-none rounded-tl-3xl rounded-tr-2xl rounded-bl-3xl overflow-hidden",
|
|
5643
5645
|
style: { height: q },
|
|
5644
|
-
onInput: (j) =>
|
|
5646
|
+
onInput: (j) => oe(j.currentTarget.innerHTML),
|
|
5645
5647
|
onKeyDown: (j) => {
|
|
5646
5648
|
j.key === "Enter" && !j.shiftKey && (j.preventDefault(), me());
|
|
5647
5649
|
}
|
|
@@ -5691,7 +5693,7 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5691
5693
|
M,
|
|
5692
5694
|
{
|
|
5693
5695
|
listsProps: te,
|
|
5694
|
-
onClick: (ge,
|
|
5696
|
+
onClick: (ge, be) => B(ge, be, x)
|
|
5695
5697
|
}
|
|
5696
5698
|
)
|
|
5697
5699
|
},
|
|
@@ -5704,14 +5706,14 @@ const yd = (e, t) => wr(e) ? new gd(t) : new md(t, {
|
|
|
5704
5706
|
M,
|
|
5705
5707
|
{
|
|
5706
5708
|
listsProps: te,
|
|
5707
|
-
onClick: (ge,
|
|
5709
|
+
onClick: (ge, be) => B(ge, be, x)
|
|
5708
5710
|
}
|
|
5709
5711
|
)
|
|
5710
5712
|
},
|
|
5711
5713
|
ee
|
|
5712
5714
|
)) : null;
|
|
5713
5715
|
}) : null,
|
|
5714
|
-
/* @__PURE__ */ p.exports.jsx("div", { className: "h-8", children:
|
|
5716
|
+
/* @__PURE__ */ p.exports.jsx("div", { className: "h-8", children: ie && "Loading more items..." })
|
|
5715
5717
|
] })
|
|
5716
5718
|
]
|
|
5717
5719
|
}
|
|
@@ -5730,7 +5732,7 @@ const Wr = ({
|
|
|
5730
5732
|
onCancelClick: a,
|
|
5731
5733
|
className: l
|
|
5732
5734
|
}) => {
|
|
5733
|
-
const [c, u] =
|
|
5735
|
+
const [c, u] = ve(0), f = (t - n) / 2, h = 2 * Math.PI * f, m = h - c / 100 * h;
|
|
5734
5736
|
return He(() => {
|
|
5735
5737
|
const y = Date.now(), v = y + s, T = () => {
|
|
5736
5738
|
const x = Date.now(), E = Math.min(1, (x - y) / s) * e;
|
|
@@ -5953,7 +5955,7 @@ const jd = ({
|
|
|
5953
5955
|
uploadProgres: n,
|
|
5954
5956
|
onCancelClick: r
|
|
5955
5957
|
}) => {
|
|
5956
|
-
const [i, s] =
|
|
5958
|
+
const [i, s] = ve(!1), [o, a] = ve(0), l = Se(null);
|
|
5957
5959
|
He(() => {
|
|
5958
5960
|
const u = l.current;
|
|
5959
5961
|
if (!u)
|
|
@@ -6266,7 +6268,7 @@ const jd = ({
|
|
|
6266
6268
|
]
|
|
6267
6269
|
}
|
|
6268
6270
|
);
|
|
6269
|
-
var
|
|
6271
|
+
var xe = { exports: {} }, Dn = { exports: {} }, J = {};
|
|
6270
6272
|
var Es;
|
|
6271
6273
|
function Dd() {
|
|
6272
6274
|
if (Es)
|
|
@@ -6374,9 +6376,9 @@ function Ld() {
|
|
|
6374
6376
|
}
|
|
6375
6377
|
}
|
|
6376
6378
|
}
|
|
6377
|
-
var g = l, D = c, z = a, O = o, Z = t, R = u, H = r,
|
|
6379
|
+
var g = l, D = c, z = a, O = o, Z = t, R = u, H = r, ie = y, U = m, se = n, pe = s, he = i, q = f, oe = !1;
|
|
6378
6380
|
function me(P) {
|
|
6379
|
-
return
|
|
6381
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), b(P) || V(P) === l;
|
|
6380
6382
|
}
|
|
6381
6383
|
function b(P) {
|
|
6382
6384
|
return V(P) === c;
|
|
@@ -6414,7 +6416,7 @@ function Ld() {
|
|
|
6414
6416
|
function L(P) {
|
|
6415
6417
|
return V(P) === f;
|
|
6416
6418
|
}
|
|
6417
|
-
Q.AsyncMode = g, Q.ConcurrentMode = D, Q.ContextConsumer = z, Q.ContextProvider = O, Q.Element = Z, Q.ForwardRef = R, Q.Fragment = H, Q.Lazy =
|
|
6419
|
+
Q.AsyncMode = g, Q.ConcurrentMode = D, Q.ContextConsumer = z, Q.ContextProvider = O, Q.Element = Z, Q.ForwardRef = R, Q.Fragment = H, Q.Lazy = ie, Q.Memo = U, Q.Portal = se, Q.Profiler = pe, Q.StrictMode = he, Q.Suspense = q, Q.isAsyncMode = me, Q.isConcurrentMode = b, Q.isContextConsumer = w, Q.isContextProvider = F, Q.isElement = B, Q.isForwardRef = _, Q.isFragment = Y, Q.isLazy = I, Q.isMemo = $, Q.isPortal = W, Q.isProfiler = j, Q.isStrictMode = M, Q.isSuspense = L, Q.isValidElementType = E, Q.typeOf = V;
|
|
6418
6420
|
}()), Q;
|
|
6419
6421
|
}
|
|
6420
6422
|
var Rs;
|
|
@@ -6575,7 +6577,7 @@ function _d() {
|
|
|
6575
6577
|
objectOf: O,
|
|
6576
6578
|
oneOf: z,
|
|
6577
6579
|
oneOfType: Z,
|
|
6578
|
-
shape:
|
|
6580
|
+
shape: ie,
|
|
6579
6581
|
exact: U
|
|
6580
6582
|
};
|
|
6581
6583
|
function y(b, w) {
|
|
@@ -6715,7 +6717,7 @@ function _d() {
|
|
|
6715
6717
|
var F = b[w];
|
|
6716
6718
|
if (typeof F != "function")
|
|
6717
6719
|
return s(
|
|
6718
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
6720
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(F) + " at index " + w + "."
|
|
6719
6721
|
), o;
|
|
6720
6722
|
}
|
|
6721
6723
|
function B(_, Y, I, $, W) {
|
|
@@ -6732,7 +6734,7 @@ function _d() {
|
|
|
6732
6734
|
}
|
|
6733
6735
|
function R() {
|
|
6734
6736
|
function b(w, F, B, _, Y) {
|
|
6735
|
-
return
|
|
6737
|
+
return se(w[F]) ? null : new v("Invalid " + _ + " `" + Y + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
6736
6738
|
}
|
|
6737
6739
|
return T(b);
|
|
6738
6740
|
}
|
|
@@ -6741,7 +6743,7 @@ function _d() {
|
|
|
6741
6743
|
(b || "React class") + ": " + w + " type `" + F + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
6742
6744
|
);
|
|
6743
6745
|
}
|
|
6744
|
-
function
|
|
6746
|
+
function ie(b) {
|
|
6745
6747
|
function w(F, B, _, Y, I) {
|
|
6746
6748
|
var $ = F[B], W = he($);
|
|
6747
6749
|
if (W !== "object")
|
|
@@ -6781,7 +6783,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6781
6783
|
}
|
|
6782
6784
|
return T(w);
|
|
6783
6785
|
}
|
|
6784
|
-
function
|
|
6786
|
+
function se(b) {
|
|
6785
6787
|
switch (typeof b) {
|
|
6786
6788
|
case "number":
|
|
6787
6789
|
case "string":
|
|
@@ -6791,7 +6793,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6791
6793
|
return !b;
|
|
6792
6794
|
case "object":
|
|
6793
6795
|
if (Array.isArray(b))
|
|
6794
|
-
return b.every(
|
|
6796
|
+
return b.every(se);
|
|
6795
6797
|
if (b === null || a(b))
|
|
6796
6798
|
return !0;
|
|
6797
6799
|
var w = f(b);
|
|
@@ -6799,12 +6801,12 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6799
6801
|
var F = w.call(b), B;
|
|
6800
6802
|
if (w !== b.entries) {
|
|
6801
6803
|
for (; !(B = F.next()).done; )
|
|
6802
|
-
if (!
|
|
6804
|
+
if (!se(B.value))
|
|
6803
6805
|
return !1;
|
|
6804
6806
|
} else
|
|
6805
6807
|
for (; !(B = F.next()).done; ) {
|
|
6806
6808
|
var _ = B.value;
|
|
6807
|
-
if (_ && !
|
|
6809
|
+
if (_ && !se(_[1]))
|
|
6808
6810
|
return !1;
|
|
6809
6811
|
}
|
|
6810
6812
|
} else
|
|
@@ -6833,7 +6835,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6833
6835
|
}
|
|
6834
6836
|
return w;
|
|
6835
6837
|
}
|
|
6836
|
-
function
|
|
6838
|
+
function oe(b) {
|
|
6837
6839
|
var w = q(b);
|
|
6838
6840
|
switch (w) {
|
|
6839
6841
|
case "array":
|
|
@@ -6904,9 +6906,9 @@ function Id() {
|
|
|
6904
6906
|
}
|
|
6905
6907
|
if (process.env.NODE_ENV !== "production") {
|
|
6906
6908
|
var Nd = pa(), Fd = !0;
|
|
6907
|
-
|
|
6909
|
+
xe.exports = _d()(Nd.isElement, Fd);
|
|
6908
6910
|
} else
|
|
6909
|
-
|
|
6911
|
+
xe.exports = Id()();
|
|
6910
6912
|
function tr() {
|
|
6911
6913
|
return tr = Object.assign || function(e) {
|
|
6912
6914
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6954,8 +6956,8 @@ var Yr = Nt(function(e, t) {
|
|
|
6954
6956
|
}));
|
|
6955
6957
|
});
|
|
6956
6958
|
Yr.propTypes = {
|
|
6957
|
-
color:
|
|
6958
|
-
size:
|
|
6959
|
+
color: xe.exports.string,
|
|
6960
|
+
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
6959
6961
|
};
|
|
6960
6962
|
Yr.displayName = "Check";
|
|
6961
6963
|
const Ud = Yr;
|
|
@@ -7013,8 +7015,8 @@ var Kr = Nt(function(e, t) {
|
|
|
7013
7015
|
}));
|
|
7014
7016
|
});
|
|
7015
7017
|
Kr.propTypes = {
|
|
7016
|
-
color:
|
|
7017
|
-
size:
|
|
7018
|
+
color: xe.exports.string,
|
|
7019
|
+
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7018
7020
|
};
|
|
7019
7021
|
Kr.displayName = "Copy";
|
|
7020
7022
|
const Yd = Kr;
|
|
@@ -7067,8 +7069,8 @@ var Hr = Nt(function(e, t) {
|
|
|
7067
7069
|
}));
|
|
7068
7070
|
});
|
|
7069
7071
|
Hr.propTypes = {
|
|
7070
|
-
color:
|
|
7071
|
-
size:
|
|
7072
|
+
color: xe.exports.string,
|
|
7073
|
+
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7072
7074
|
};
|
|
7073
7075
|
Hr.displayName = "Edit";
|
|
7074
7076
|
const Gd = Hr;
|
|
@@ -7121,8 +7123,8 @@ var Gr = Nt(function(e, t) {
|
|
|
7121
7123
|
}));
|
|
7122
7124
|
});
|
|
7123
7125
|
Gr.propTypes = {
|
|
7124
|
-
color:
|
|
7125
|
-
size:
|
|
7126
|
+
color: xe.exports.string,
|
|
7127
|
+
size: xe.exports.oneOfType([xe.exports.string, xe.exports.number])
|
|
7126
7128
|
};
|
|
7127
7129
|
Gr.displayName = "Trash";
|
|
7128
7130
|
const Zd = Gr, Jd = ({
|
|
@@ -7135,7 +7137,7 @@ const Zd = Gr, Jd = ({
|
|
|
7135
7137
|
isSendingDefultForEdited: o,
|
|
7136
7138
|
onDeleteMessage: a
|
|
7137
7139
|
}) => {
|
|
7138
|
-
const l = Se(null), [c, u] =
|
|
7140
|
+
const l = Se(null), [c, u] = ve(!1), [f, h] = ve(null), [m, y] = ve(), [v, T] = ve(null), x = () => {
|
|
7139
7141
|
setTimeout(() => {
|
|
7140
7142
|
l.current && (l.current.scrollTop = l.current.scrollHeight);
|
|
7141
7143
|
}, 100);
|
|
@@ -7150,30 +7152,31 @@ const Zd = Gr, Jd = ({
|
|
|
7150
7152
|
}, [T]);
|
|
7151
7153
|
const C = (R, H) => {
|
|
7152
7154
|
R.preventDefault();
|
|
7153
|
-
const
|
|
7155
|
+
const ie = window.scrollX, U = window.scrollY;
|
|
7154
7156
|
T({
|
|
7155
|
-
x: R.clientX +
|
|
7157
|
+
x: R.clientX + ie,
|
|
7156
7158
|
y: R.clientY + U,
|
|
7157
7159
|
message: H
|
|
7158
7160
|
});
|
|
7159
7161
|
}, E = () => {
|
|
7160
7162
|
T(null);
|
|
7161
|
-
}, V = (R) => {
|
|
7162
|
-
const
|
|
7163
|
+
}, V = (R, H) => {
|
|
7164
|
+
const ie = new Gt({
|
|
7163
7165
|
id: new Date().toString(),
|
|
7164
7166
|
text: R,
|
|
7167
|
+
htmlContent: H,
|
|
7165
7168
|
user: e,
|
|
7166
7169
|
isRightSided: !0,
|
|
7167
7170
|
isSending: s,
|
|
7168
7171
|
createdDate: new Date().toString()
|
|
7169
7172
|
});
|
|
7170
|
-
n([...t,
|
|
7173
|
+
n([...t, ie]), r(ie), x();
|
|
7171
7174
|
}, g = (R) => {
|
|
7172
7175
|
n(
|
|
7173
7176
|
t.map((H) => H.id === R.id ? (R.updateIsSending(Boolean(o)), R) : H)
|
|
7174
7177
|
), i(R);
|
|
7175
7178
|
}, D = (R) => {
|
|
7176
|
-
const H = URL.createObjectURL(R),
|
|
7179
|
+
const H = URL.createObjectURL(R), ie = new Gt({
|
|
7177
7180
|
id: new Date().toString(),
|
|
7178
7181
|
text: "",
|
|
7179
7182
|
attachmentUrl: H,
|
|
@@ -7183,15 +7186,15 @@ const Zd = Gr, Jd = ({
|
|
|
7183
7186
|
isRightSided: !0,
|
|
7184
7187
|
createdDate: new Date().toString()
|
|
7185
7188
|
});
|
|
7186
|
-
n([...t,
|
|
7189
|
+
n([...t, ie]), r(ie), x();
|
|
7187
7190
|
}, z = (R, H) => {
|
|
7188
|
-
const
|
|
7191
|
+
const ie = URL.createObjectURL(R), U = R instanceof File ? R.name : "", se = R instanceof File ? R.name.split(".").pop() : "", pe = new Gt({
|
|
7189
7192
|
id: new Date().toString(),
|
|
7190
7193
|
text: "",
|
|
7191
|
-
attachmentUrl:
|
|
7194
|
+
attachmentUrl: ie,
|
|
7192
7195
|
attachmentBlob: R,
|
|
7193
7196
|
attachmentType: H,
|
|
7194
|
-
attachmentFormat:
|
|
7197
|
+
attachmentFormat: se,
|
|
7195
7198
|
attachmentName: U,
|
|
7196
7199
|
user: e,
|
|
7197
7200
|
isRightSided: !0,
|
|
@@ -7233,7 +7236,7 @@ const Zd = Gr, Jd = ({
|
|
|
7233
7236
|
name: "Copy",
|
|
7234
7237
|
icon: /* @__PURE__ */ p.exports.jsx(Yd, { className: "text-blue-600" }),
|
|
7235
7238
|
onClick: (R) => {
|
|
7236
|
-
const H = t.find((
|
|
7239
|
+
const H = t.find((ie) => ie.id === R);
|
|
7237
7240
|
H && navigator.clipboard.writeText(H.text), E();
|
|
7238
7241
|
}
|
|
7239
7242
|
}
|
|
@@ -7282,13 +7285,13 @@ const Zd = Gr, Jd = ({
|
|
|
7282
7285
|
handleSendMessage: Z,
|
|
7283
7286
|
handleContextMenu: R,
|
|
7284
7287
|
contextMenuItems: H,
|
|
7285
|
-
isModalOpen:
|
|
7288
|
+
isModalOpen: ie,
|
|
7286
7289
|
contextMenu: U,
|
|
7287
|
-
chatRef:
|
|
7290
|
+
chatRef: se,
|
|
7288
7291
|
setIsModalOpen: pe,
|
|
7289
7292
|
messageToEdit: he,
|
|
7290
7293
|
setMessageToEdit: q,
|
|
7291
|
-
handleEditMessage:
|
|
7294
|
+
handleEditMessage: oe
|
|
7292
7295
|
} = Jd({
|
|
7293
7296
|
user: o,
|
|
7294
7297
|
messages: s,
|
|
@@ -7314,7 +7317,7 @@ const Zd = Gr, Jd = ({
|
|
|
7314
7317
|
/* @__PURE__ */ p.exports.jsx(
|
|
7315
7318
|
"div",
|
|
7316
7319
|
{
|
|
7317
|
-
ref:
|
|
7320
|
+
ref: se,
|
|
7318
7321
|
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${U ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
7319
7322
|
children: n ? /* @__PURE__ */ p.exports.jsx(ha, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(Fs, { children: s.length > 0 ? s.map((w, F) => {
|
|
7320
7323
|
var Y, I, $;
|
|
@@ -7364,7 +7367,7 @@ const Zd = Gr, Jd = ({
|
|
|
7364
7367
|
/* @__PURE__ */ p.exports.jsx(
|
|
7365
7368
|
xd,
|
|
7366
7369
|
{
|
|
7367
|
-
isOpen:
|
|
7370
|
+
isOpen: ie,
|
|
7368
7371
|
onClose: () => pe(!1),
|
|
7369
7372
|
onConfirm: g,
|
|
7370
7373
|
header: "Confirm Delete",
|
|
@@ -7397,7 +7400,7 @@ const Zd = Gr, Jd = ({
|
|
|
7397
7400
|
onDynamicSymbolListDelete: m,
|
|
7398
7401
|
messageToEdit: he,
|
|
7399
7402
|
setMessageToEdit: q,
|
|
7400
|
-
onEditMessage:
|
|
7403
|
+
onEditMessage: oe
|
|
7401
7404
|
}
|
|
7402
7405
|
)
|
|
7403
7406
|
]
|