react-pro-messenger 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.es.js +122 -112
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Input/Input.d.ts +1 -1
- package/dist/src/components/Media/Media.d.ts +2 -2
- package/dist/src/domain/MessageEntity.d.ts +7 -3
- 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 Da = Object.defineProperty;
|
|
2
2
|
var Oa = (e, t, n) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Te = (e, t, n) => (Oa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as Qn from "react";
|
|
5
|
-
import
|
|
5
|
+
import we, { useCallback as Qt, createContext as ct, useRef as he, useId as er, useContext as pe, useInsertionEffect as Vs, useMemo as He, useEffect as ut, Children as La, isValidElement as ka, useLayoutEffect as _a, useState as xe, forwardRef as Ot, Fragment as Ds, createElement as Ia, Component as Fa } from "react";
|
|
6
6
|
import Na from "react-dom";
|
|
7
7
|
var m = { exports: {} }, mt = {};
|
|
8
8
|
var ni;
|
|
@@ -10,7 +10,7 @@ function Ba() {
|
|
|
10
10
|
if (ni)
|
|
11
11
|
return mt;
|
|
12
12
|
ni = 1;
|
|
13
|
-
var e =
|
|
13
|
+
var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
14
14
|
function o(l, a, u) {
|
|
15
15
|
var c, f = {}, h = null, g = null;
|
|
16
16
|
u !== void 0 && (h = "" + u), a.key !== void 0 && (h = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
@@ -27,7 +27,7 @@ var gt = {};
|
|
|
27
27
|
var ri;
|
|
28
28
|
function $a() {
|
|
29
29
|
return ri || (ri = 1, process.env.NODE_ENV !== "production" && function() {
|
|
30
|
-
var e =
|
|
30
|
+
var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), x = Symbol.iterator, y = "@@iterator";
|
|
31
31
|
function P(d) {
|
|
32
32
|
if (d === null || typeof d != "object")
|
|
33
33
|
return null;
|
|
@@ -112,14 +112,14 @@ function $a() {
|
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
var te = Object.assign, ye = 0, ae, X, le,
|
|
115
|
+
var te = Object.assign, ye = 0, ae, X, le, Se, v, w, j;
|
|
116
116
|
function k() {
|
|
117
117
|
}
|
|
118
118
|
k.__reactDisabledLog = !0;
|
|
119
119
|
function D() {
|
|
120
120
|
{
|
|
121
121
|
if (ye === 0) {
|
|
122
|
-
ae = console.log, X = console.info, le = console.warn,
|
|
122
|
+
ae = console.log, X = console.info, le = console.warn, Se = console.error, v = console.group, w = console.groupCollapsed, j = console.groupEnd;
|
|
123
123
|
var d = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -158,7 +158,7 @@ function $a() {
|
|
|
158
158
|
value: le
|
|
159
159
|
}),
|
|
160
160
|
error: te({}, d, {
|
|
161
|
-
value:
|
|
161
|
+
value: Se
|
|
162
162
|
}),
|
|
163
163
|
group: te({}, d, {
|
|
164
164
|
value: v
|
|
@@ -250,9 +250,9 @@ function $a() {
|
|
|
250
250
|
if (re !== 1 || se !== 1)
|
|
251
251
|
do
|
|
252
252
|
if (re--, se--, se < 0 || W[re] !== ve[se]) {
|
|
253
|
-
var
|
|
253
|
+
var Ee = `
|
|
254
254
|
` + W[re].replace(" at new ", " at ");
|
|
255
|
-
return d.displayName &&
|
|
255
|
+
return d.displayName && Ee.includes("<anonymous>") && (Ee = Ee.replace("<anonymous>", d.displayName)), typeof d == "function" && U.set(d, Ee), Ee;
|
|
256
256
|
}
|
|
257
257
|
while (re >= 1 && se >= 0);
|
|
258
258
|
break;
|
|
@@ -264,7 +264,7 @@ function $a() {
|
|
|
264
264
|
var Qe = d ? d.displayName || d.name : "", ti = Qe ? $(Qe) : "";
|
|
265
265
|
return typeof d == "function" && U.set(d, ti), ti;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Ce(d, T, E) {
|
|
268
268
|
return R(d, !1);
|
|
269
269
|
}
|
|
270
270
|
function Ze(d) {
|
|
@@ -287,7 +287,7 @@ function $a() {
|
|
|
287
287
|
if (typeof d == "object")
|
|
288
288
|
switch (d.$$typeof) {
|
|
289
289
|
case a:
|
|
290
|
-
return
|
|
290
|
+
return Ce(d.render);
|
|
291
291
|
case f:
|
|
292
292
|
return We(d.type, T, E);
|
|
293
293
|
case h: {
|
|
@@ -577,17 +577,17 @@ Check the top-level render call using <` + E + ">.");
|
|
|
577
577
|
if (se == null)
|
|
578
578
|
return se;
|
|
579
579
|
if (z) {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
580
|
+
var Ee = T.children;
|
|
581
|
+
if (Ee !== void 0)
|
|
582
582
|
if (I)
|
|
583
|
-
if (an(
|
|
584
|
-
for (var Qe = 0; Qe <
|
|
585
|
-
Qr(
|
|
586
|
-
Object.freeze && Object.freeze(
|
|
583
|
+
if (an(Ee)) {
|
|
584
|
+
for (var Qe = 0; Qe < Ee.length; Qe++)
|
|
585
|
+
Qr(Ee[Qe], d);
|
|
586
|
+
Object.freeze && Object.freeze(Ee);
|
|
587
587
|
} else
|
|
588
588
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
589
589
|
else
|
|
590
|
-
Qr(
|
|
590
|
+
Qr(Ee, d);
|
|
591
591
|
}
|
|
592
592
|
return d === r ? Ra(se) : Ea(se), se;
|
|
593
593
|
}
|
|
@@ -623,25 +623,33 @@ class dn {
|
|
|
623
623
|
id: t,
|
|
624
624
|
text: n,
|
|
625
625
|
createdDate: r,
|
|
626
|
-
|
|
626
|
+
attachmentUrl: i,
|
|
627
627
|
attachmentType: s,
|
|
628
628
|
attachmentFormat: o,
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
629
|
+
attachmentBlob: l,
|
|
630
|
+
user: a,
|
|
631
|
+
isRightSided: u,
|
|
632
|
+
symbols: c,
|
|
633
|
+
isSending: f
|
|
633
634
|
}) {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
this
|
|
635
|
+
Te(this, "id", "0");
|
|
636
|
+
Te(this, "text", "");
|
|
637
|
+
Te(this, "createdDate", "");
|
|
638
|
+
Te(this, "attachmentUrl", "");
|
|
639
|
+
Te(this, "attachmentBlob");
|
|
640
|
+
Te(this, "attachmentType");
|
|
641
|
+
Te(this, "attachmentFormat", "");
|
|
642
|
+
Te(this, "user", { id: "" });
|
|
643
|
+
Te(this, "isRightSided", !1);
|
|
644
|
+
Te(this, "symbols");
|
|
645
|
+
Te(this, "isSending");
|
|
646
|
+
Te(this, "updateId", (t) => {
|
|
647
|
+
this.id = t;
|
|
648
|
+
});
|
|
649
|
+
Te(this, "updateIsSending", (t) => {
|
|
650
|
+
this.isSending = t;
|
|
651
|
+
});
|
|
652
|
+
this.id = t, this.text = n, this.createdDate = r, this.attachmentUrl = i, this.attachmentType = s, this.attachmentFormat = o, this.attachmentBlob = l, this.user = a, this.isRightSided = u, this.symbols = c, this.isSending = f;
|
|
645
653
|
}
|
|
646
654
|
}
|
|
647
655
|
const tr = ct({});
|
|
@@ -776,8 +784,8 @@ const ir = typeof window < "u", Ls = ir ? _a : ut, ks = ({ children: e, custom:
|
|
|
776
784
|
};
|
|
777
785
|
return m.exports.jsx(za, { isPresent: B, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: B ? void 0 : M, anchorX: l, children: p }, A);
|
|
778
786
|
}) });
|
|
779
|
-
},
|
|
780
|
-
let ft =
|
|
787
|
+
}, Pe = (e) => e;
|
|
788
|
+
let ft = Pe, Ne = Pe;
|
|
781
789
|
process.env.NODE_ENV !== "production" && (ft = (e, t) => {
|
|
782
790
|
!e && typeof console < "u" && console.warn(t);
|
|
783
791
|
}, Ne = (e, t) => {
|
|
@@ -855,7 +863,7 @@ function Is(e, t) {
|
|
|
855
863
|
o[$t[S]].cancel(b);
|
|
856
864
|
}, state: i, steps: o };
|
|
857
865
|
}
|
|
858
|
-
const { schedule: J, cancel: Be, state: ue, steps: hn } = Is(typeof requestAnimationFrame < "u" ? requestAnimationFrame :
|
|
866
|
+
const { schedule: J, cancel: Be, state: ue, steps: hn } = Is(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Pe, !0), Fs = ct({ strict: !1 }), si = {
|
|
859
867
|
animation: [
|
|
860
868
|
"animate",
|
|
861
869
|
"variants",
|
|
@@ -1972,7 +1980,7 @@ function sc(e, t, n, r, i) {
|
|
|
1972
1980
|
}
|
|
1973
1981
|
function kt(e, t, n, r) {
|
|
1974
1982
|
if (e === t && n === r)
|
|
1975
|
-
return
|
|
1983
|
+
return Pe;
|
|
1976
1984
|
const i = (s) => sc(s, 0, 1, e, n);
|
|
1977
1985
|
return (s) => s === 0 || s === 1 ? s : fo(i(s), t, r);
|
|
1978
1986
|
}
|
|
@@ -2635,7 +2643,7 @@ function Ri({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2635
2643
|
};
|
|
2636
2644
|
}
|
|
2637
2645
|
const Jc = /* @__PURE__ */ kt(0.42, 0, 1, 1), Qc = /* @__PURE__ */ kt(0, 0, 0.58, 1), No = /* @__PURE__ */ kt(0.42, 0, 0.58, 1), eu = (e) => Array.isArray(e) && typeof e[0] != "number", Ai = {
|
|
2638
|
-
linear:
|
|
2646
|
+
linear: Pe,
|
|
2639
2647
|
easeIn: Jc,
|
|
2640
2648
|
easeInOut: No,
|
|
2641
2649
|
easeOut: Qc,
|
|
@@ -2660,7 +2668,7 @@ function tu(e, t, n) {
|
|
|
2660
2668
|
for (let o = 0; o < s; o++) {
|
|
2661
2669
|
let l = i(e[o], e[o + 1]);
|
|
2662
2670
|
if (t) {
|
|
2663
|
-
const a = Array.isArray(t) ? t[o] ||
|
|
2671
|
+
const a = Array.isArray(t) ? t[o] || Pe : t;
|
|
2664
2672
|
l = _t(a, l);
|
|
2665
2673
|
}
|
|
2666
2674
|
r.push(l);
|
|
@@ -2989,11 +2997,11 @@ class Mi extends Lo {
|
|
|
2989
2997
|
else {
|
|
2990
2998
|
const { resolved: n } = this;
|
|
2991
2999
|
if (!n)
|
|
2992
|
-
return
|
|
3000
|
+
return Pe;
|
|
2993
3001
|
const { animation: r } = n;
|
|
2994
3002
|
hi(r, t);
|
|
2995
3003
|
}
|
|
2996
|
-
return
|
|
3004
|
+
return Pe;
|
|
2997
3005
|
}
|
|
2998
3006
|
play() {
|
|
2999
3007
|
if (this.isStopped)
|
|
@@ -3252,11 +3260,11 @@ function Vu(e) {
|
|
|
3252
3260
|
le && (le.liveStyle = !1);
|
|
3253
3261
|
};
|
|
3254
3262
|
for (const X in oe) {
|
|
3255
|
-
const le = ne[X],
|
|
3263
|
+
const le = ne[X], Se = ge[X];
|
|
3256
3264
|
if (g.hasOwnProperty(X))
|
|
3257
3265
|
continue;
|
|
3258
3266
|
let v = !1;
|
|
3259
|
-
On(le) && On(
|
|
3267
|
+
On(le) && On(Se) ? v = !Uo(le, Se) : v = le !== Se, v ? le != null ? te(X) : h.add(X) : le !== void 0 && h.has(X) ? te(X) : S.protectedKeys[X] = !0;
|
|
3260
3268
|
}
|
|
3261
3269
|
S.prevProp = C, S.prevResolvedValues = ne, S.isActive && (g = { ...g, ...ne }), r && e.blockInitialAnimation && (M = !1), M && (!(A && B) || H) && f.push(...F.map((X) => ({
|
|
3262
3270
|
animation: X,
|
|
@@ -3452,7 +3460,7 @@ const ki = () => ({
|
|
|
3452
3460
|
x: _i(),
|
|
3453
3461
|
y: _i()
|
|
3454
3462
|
});
|
|
3455
|
-
function
|
|
3463
|
+
function Ae(e) {
|
|
3456
3464
|
return [e("x"), e("y")];
|
|
3457
3465
|
}
|
|
3458
3466
|
function xn(e) {
|
|
@@ -3668,7 +3676,7 @@ class sf {
|
|
|
3668
3676
|
const { drag: h, dragPropagation: g, onDragStart: x } = this.getProps();
|
|
3669
3677
|
if (h && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = Hl(h), !this.openDragLock))
|
|
3670
3678
|
return;
|
|
3671
|
-
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
3679
|
+
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ae((P) => {
|
|
3672
3680
|
let b = this.getAxisMotionValue(P).get() || 0;
|
|
3673
3681
|
if (Ve.test(b)) {
|
|
3674
3682
|
const { projection: S } = this.visualElement;
|
|
@@ -3691,7 +3699,7 @@ class sf {
|
|
|
3691
3699
|
return;
|
|
3692
3700
|
}
|
|
3693
3701
|
this.updateAxis("x", f.point, P), this.updateAxis("y", f.point, P), this.visualElement.render(), y && y(c, f);
|
|
3694
|
-
}, l = (c, f) => this.stop(c, f), a = () =>
|
|
3702
|
+
}, l = (c, f) => this.stop(c, f), a = () => Ae((c) => {
|
|
3695
3703
|
var f;
|
|
3696
3704
|
return this.getAnimationState(c) === "paused" && ((f = this.getAxisMotionValue(c).animation) === null || f === void 0 ? void 0 : f.play());
|
|
3697
3705
|
}), { dragSnapToOrigin: u } = this.getProps();
|
|
@@ -3733,7 +3741,7 @@ class sf {
|
|
|
3733
3741
|
resolveConstraints() {
|
|
3734
3742
|
var t;
|
|
3735
3743
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, s = this.constraints;
|
|
3736
|
-
n && et(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ju(i.layoutBox, n) : this.constraints = !1, this.elastic = nf(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints &&
|
|
3744
|
+
n && et(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = Ju(i.layoutBox, n) : this.constraints = !1, this.elastic = nf(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && Ae((o) => {
|
|
3737
3745
|
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = tf(i.layoutBox[o], this.constraints[o]));
|
|
3738
3746
|
});
|
|
3739
3747
|
}
|
|
@@ -3755,7 +3763,7 @@ class sf {
|
|
|
3755
3763
|
return o;
|
|
3756
3764
|
}
|
|
3757
3765
|
startAnimation(t) {
|
|
3758
|
-
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), a = this.constraints || {}, u =
|
|
3766
|
+
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), a = this.constraints || {}, u = Ae((c) => {
|
|
3759
3767
|
if (!Wt(c, n, this.currentDirection))
|
|
3760
3768
|
return;
|
|
3761
3769
|
let f = a && a[c] || {};
|
|
@@ -3780,10 +3788,10 @@ class sf {
|
|
|
3780
3788
|
return _n(this.visualElement, t), r.start(kr(t, r, 0, n, this.visualElement, !1));
|
|
3781
3789
|
}
|
|
3782
3790
|
stopAnimation() {
|
|
3783
|
-
|
|
3791
|
+
Ae((t) => this.getAxisMotionValue(t).stop());
|
|
3784
3792
|
}
|
|
3785
3793
|
pauseAnimation() {
|
|
3786
|
-
|
|
3794
|
+
Ae((t) => {
|
|
3787
3795
|
var n;
|
|
3788
3796
|
return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.pause();
|
|
3789
3797
|
});
|
|
@@ -3797,7 +3805,7 @@ class sf {
|
|
|
3797
3805
|
return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0);
|
|
3798
3806
|
}
|
|
3799
3807
|
snapToCursor(t) {
|
|
3800
|
-
|
|
3808
|
+
Ae((n) => {
|
|
3801
3809
|
const { drag: r } = this.getProps();
|
|
3802
3810
|
if (!Wt(n, r, this.currentDirection))
|
|
3803
3811
|
return;
|
|
@@ -3816,7 +3824,7 @@ class sf {
|
|
|
3816
3824
|
return;
|
|
3817
3825
|
this.stopAnimation();
|
|
3818
3826
|
const i = { x: 0, y: 0 };
|
|
3819
|
-
|
|
3827
|
+
Ae((o) => {
|
|
3820
3828
|
const l = this.getAxisMotionValue(o);
|
|
3821
3829
|
if (l && this.constraints !== !1) {
|
|
3822
3830
|
const a = l.get();
|
|
@@ -3824,7 +3832,7 @@ class sf {
|
|
|
3824
3832
|
}
|
|
3825
3833
|
});
|
|
3826
3834
|
const { transformTemplate: s } = this.visualElement.getProps();
|
|
3827
|
-
this.visualElement.current.style.transform = s ? s({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(),
|
|
3835
|
+
this.visualElement.current.style.transform = s ? s({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Ae((o) => {
|
|
3828
3836
|
if (!Wt(o, t, null))
|
|
3829
3837
|
return;
|
|
3830
3838
|
const l = this.getAxisMotionValue(o), { min: a, max: u } = this.constraints[o];
|
|
@@ -3844,7 +3852,7 @@ class sf {
|
|
|
3844
3852
|
}, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
|
|
3845
3853
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), J.read(r);
|
|
3846
3854
|
const o = Dt(window, "resize", () => this.scalePositionWithinConstraints()), l = i.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: u }) => {
|
|
3847
|
-
this.isDragging && u && (
|
|
3855
|
+
this.isDragging && u && (Ae((c) => {
|
|
3848
3856
|
const f = this.getAxisMotionValue(c);
|
|
3849
3857
|
f && (this.originPoint[c] += a[c].translate, f.set(f.get() + a[c].translate));
|
|
3850
3858
|
}), this.visualElement.render());
|
|
@@ -3875,11 +3883,11 @@ function of(e, t = 10) {
|
|
|
3875
3883
|
}
|
|
3876
3884
|
class af extends Ue {
|
|
3877
3885
|
constructor(t) {
|
|
3878
|
-
super(t), this.removeGroupControls =
|
|
3886
|
+
super(t), this.removeGroupControls = Pe, this.removeListeners = Pe, this.controls = new sf(t);
|
|
3879
3887
|
}
|
|
3880
3888
|
mount() {
|
|
3881
3889
|
const { dragControls: t } = this.node.getProps();
|
|
3882
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
3890
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Pe;
|
|
3883
3891
|
}
|
|
3884
3892
|
unmount() {
|
|
3885
3893
|
this.removeGroupControls(), this.removeListeners();
|
|
@@ -3890,7 +3898,7 @@ const qi = (e) => (t, n) => {
|
|
|
3890
3898
|
};
|
|
3891
3899
|
class lf extends Ue {
|
|
3892
3900
|
constructor() {
|
|
3893
|
-
super(...arguments), this.removePointerDownListener =
|
|
3901
|
+
super(...arguments), this.removePointerDownListener = Pe;
|
|
3894
3902
|
}
|
|
3895
3903
|
onPointerDown(t) {
|
|
3896
3904
|
this.session = new Xo(t, this.createPanHandlers(), {
|
|
@@ -4051,14 +4059,14 @@ function vf(e, t, n, r, i, s) {
|
|
|
4051
4059
|
function Ji(e, t) {
|
|
4052
4060
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
4053
4061
|
}
|
|
4054
|
-
const xf = /* @__PURE__ */ ea(0, 0.5, vo), bf = /* @__PURE__ */ ea(0.5, 0.95,
|
|
4062
|
+
const xf = /* @__PURE__ */ ea(0, 0.5, vo), bf = /* @__PURE__ */ ea(0.5, 0.95, Pe);
|
|
4055
4063
|
function ea(e, t, n) {
|
|
4056
4064
|
return (r) => r < e ? 0 : r > t ? 1 : n(ot(e, t, r));
|
|
4057
4065
|
}
|
|
4058
4066
|
function Qi(e, t) {
|
|
4059
4067
|
e.min = t.min, e.max = t.max;
|
|
4060
4068
|
}
|
|
4061
|
-
function
|
|
4069
|
+
function Re(e, t) {
|
|
4062
4070
|
Qi(e.x, t.x), Qi(e.y, t.y);
|
|
4063
4071
|
}
|
|
4064
4072
|
function es(e, t) {
|
|
@@ -4365,17 +4373,17 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4365
4373
|
removeElementScroll(o) {
|
|
4366
4374
|
var l;
|
|
4367
4375
|
const a = ie();
|
|
4368
|
-
if (
|
|
4376
|
+
if (Re(a, o), !((l = this.scroll) === null || l === void 0) && l.wasRoot)
|
|
4369
4377
|
return a;
|
|
4370
4378
|
for (let u = 0; u < this.path.length; u++) {
|
|
4371
4379
|
const c = this.path[u], { scroll: f, options: h } = c;
|
|
4372
|
-
c !== this.root && f && h.layoutScroll && (f.wasRoot &&
|
|
4380
|
+
c !== this.root && f && h.layoutScroll && (f.wasRoot && Re(a, o), it(a.x, f.offset.x), it(a.y, f.offset.y));
|
|
4373
4381
|
}
|
|
4374
4382
|
return a;
|
|
4375
4383
|
}
|
|
4376
4384
|
applyTransform(o, l = !1) {
|
|
4377
4385
|
const a = ie();
|
|
4378
|
-
|
|
4386
|
+
Re(a, o);
|
|
4379
4387
|
for (let u = 0; u < this.path.length; u++) {
|
|
4380
4388
|
const c = this.path[u];
|
|
4381
4389
|
!l && c.options.layoutScroll && c.scroll && c !== c.root && st(a, {
|
|
@@ -4387,14 +4395,14 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4387
4395
|
}
|
|
4388
4396
|
removeTransform(o) {
|
|
4389
4397
|
const l = ie();
|
|
4390
|
-
|
|
4398
|
+
Re(l, o);
|
|
4391
4399
|
for (let a = 0; a < this.path.length; a++) {
|
|
4392
4400
|
const u = this.path[a];
|
|
4393
4401
|
if (!u.instance || !Ye(u.latestValues))
|
|
4394
4402
|
continue;
|
|
4395
4403
|
zn(u.latestValues) && u.updateSnapshot();
|
|
4396
4404
|
const c = ie(), f = u.measurePageBox();
|
|
4397
|
-
|
|
4405
|
+
Re(c, f), rs(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4398
4406
|
}
|
|
4399
4407
|
return Ye(this.latestValues) && rs(l, this.latestValues), l;
|
|
4400
4408
|
}
|
|
@@ -4425,13 +4433,13 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4425
4433
|
if (!(!this.layout || !(f || h))) {
|
|
4426
4434
|
if (this.resolvedRelativeTargetAt = ue.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4427
4435
|
const g = this.getClosestProjectingParent();
|
|
4428
|
-
g && g.layout && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), Ct(this.relativeTargetOrigin, this.layout.layoutBox, g.layout.layoutBox),
|
|
4436
|
+
g && g.layout && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), Ct(this.relativeTargetOrigin, this.layout.layoutBox, g.layout.layoutBox), Re(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4429
4437
|
}
|
|
4430
4438
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4431
|
-
if (this.target || (this.target = ie(), this.targetWithTransforms = ie()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Yu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) :
|
|
4439
|
+
if (this.target || (this.target = ie(), this.targetWithTransforms = ie()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Yu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) : Re(this.target, this.layout.layoutBox), qo(this.target, this.targetDelta)) : Re(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4432
4440
|
this.attemptToResolveRelativeTarget = !1;
|
|
4433
4441
|
const g = this.getClosestProjectingParent();
|
|
4434
|
-
g && Boolean(g.resumingFrom) === Boolean(this.resumingFrom) && !g.options.layoutScroll && g.target && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), Ct(this.relativeTargetOrigin, this.target, g.target),
|
|
4442
|
+
g && Boolean(g.resumingFrom) === Boolean(this.resumingFrom) && !g.options.layoutScroll && g.target && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ie(), this.relativeTargetOrigin = ie(), Ct(this.relativeTargetOrigin, this.target, g.target), Re(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4435
4443
|
}
|
|
4436
4444
|
Fe.value && Ke.calculatedTargetDeltas++;
|
|
4437
4445
|
}
|
|
@@ -4453,7 +4461,7 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4453
4461
|
const { layout: c, layoutId: f } = this.options;
|
|
4454
4462
|
if (this.isTreeAnimating = Boolean(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || f))
|
|
4455
4463
|
return;
|
|
4456
|
-
|
|
4464
|
+
Re(this.layoutCorrected, this.layout.layoutBox);
|
|
4457
4465
|
const h = this.treeScale.x, g = this.treeScale.y;
|
|
4458
4466
|
Ku(this.layoutCorrected, this.treeScale, this.path, a), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = ie());
|
|
4459
4467
|
const { target: x } = l;
|
|
@@ -4488,7 +4496,7 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4488
4496
|
let C;
|
|
4489
4497
|
this.mixTargetDelta = (V) => {
|
|
4490
4498
|
const p = V / 1e3;
|
|
4491
|
-
ds(f.x, o.x, p), ds(f.y, o.y, p), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ct(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bf(this.relativeTarget, this.relativeTargetOrigin, h, p), C && Sf(this.relativeTarget, C) && (this.isProjectionDirty = !1), C || (C = ie()),
|
|
4499
|
+
ds(f.x, o.x, p), ds(f.y, o.y, p), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ct(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bf(this.relativeTarget, this.relativeTargetOrigin, h, p), C && Sf(this.relativeTarget, C) && (this.isProjectionDirty = !1), C || (C = ie()), Re(C, this.relativeTarget)), y && (this.animationValues = c, vf(c, u, this.latestValues, p, S, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = p;
|
|
4492
4500
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4493
4501
|
}
|
|
4494
4502
|
startAnimation(o) {
|
|
@@ -4526,7 +4534,7 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4526
4534
|
const h = be(this.layout.layoutBox.y);
|
|
4527
4535
|
a.y.min = o.target.y.min, a.y.max = a.y.min + h;
|
|
4528
4536
|
}
|
|
4529
|
-
|
|
4537
|
+
Re(l, a), st(l, c), St(this.projectionDeltaWithTransform, this.layoutCorrected, l, c);
|
|
4530
4538
|
}
|
|
4531
4539
|
}
|
|
4532
4540
|
registerSharedNode(o, l) {
|
|
@@ -4633,10 +4641,10 @@ function Mf(e) {
|
|
|
4633
4641
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
4634
4642
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
4635
4643
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: s } = e.options, o = n.source !== e.layout.source;
|
|
4636
|
-
s === "size" ?
|
|
4644
|
+
s === "size" ? Ae((f) => {
|
|
4637
4645
|
const h = o ? n.measuredBox[f] : n.layoutBox[f], g = be(h);
|
|
4638
4646
|
h.min = r[f].min, h.max = h.min + g;
|
|
4639
|
-
}) : sa(s, n.layoutBox, r) &&
|
|
4647
|
+
}) : sa(s, n.layoutBox, r) && Ae((f) => {
|
|
4640
4648
|
const h = o ? n.measuredBox[f] : n.layoutBox[f], g = be(r[f]);
|
|
4641
4649
|
h.max = h.min + g, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + g);
|
|
4642
4650
|
});
|
|
@@ -4721,7 +4729,7 @@ function $f(e) {
|
|
|
4721
4729
|
const Uf = {
|
|
4722
4730
|
duration: 0.45,
|
|
4723
4731
|
ease: [0.4, 0, 0.1, 1]
|
|
4724
|
-
}, ps = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ms = ps("applewebkit/") && !ps("chrome/") ? Math.round :
|
|
4732
|
+
}, ps = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ms = ps("applewebkit/") && !ps("chrome/") ? Math.round : Pe;
|
|
4725
4733
|
function gs(e) {
|
|
4726
4734
|
e.min = ms(e.min), e.max = ms(e.max);
|
|
4727
4735
|
}
|
|
@@ -5279,7 +5287,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5279
5287
|
className: "cursor-pointer flex items-center gap-2 w-full rounded-md text-left px-2 py-1 disabled:opacity-20 hover:bg-gray-200",
|
|
5280
5288
|
onClick: () => a.onClick(r),
|
|
5281
5289
|
children: [
|
|
5282
|
-
|
|
5290
|
+
we.cloneElement(a.icon, {
|
|
5283
5291
|
className: "text-black",
|
|
5284
5292
|
size: 18
|
|
5285
5293
|
}),
|
|
@@ -5409,8 +5417,8 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5409
5417
|
j.data.size > 0 && C.current.push(j.data);
|
|
5410
5418
|
}, w.onstop = () => {
|
|
5411
5419
|
clearInterval(V.current);
|
|
5412
|
-
const j = new Blob(C.current, { type: "audio/mp3" })
|
|
5413
|
-
t(
|
|
5420
|
+
const j = new Blob(C.current, { type: "audio/mp3" });
|
|
5421
|
+
t(j), u(!1);
|
|
5414
5422
|
}, w.start();
|
|
5415
5423
|
}, te = () => {
|
|
5416
5424
|
var v;
|
|
@@ -5450,7 +5458,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5450
5458
|
]), le = () => {
|
|
5451
5459
|
var v;
|
|
5452
5460
|
(v = A.current) == null || v.click();
|
|
5453
|
-
},
|
|
5461
|
+
}, Se = (v) => {
|
|
5454
5462
|
var k, D;
|
|
5455
5463
|
const w = (k = v.target.files) == null ? void 0 : k[0];
|
|
5456
5464
|
if (!w)
|
|
@@ -5489,7 +5497,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5489
5497
|
type: "file",
|
|
5490
5498
|
ref: A,
|
|
5491
5499
|
style: { display: "none" },
|
|
5492
|
-
onChange:
|
|
5500
|
+
onChange: Se
|
|
5493
5501
|
}
|
|
5494
5502
|
),
|
|
5495
5503
|
/* @__PURE__ */ m.exports.jsx(
|
|
@@ -5716,7 +5724,7 @@ const Sd = ({ src: e, className: t }) => {
|
|
|
5716
5724
|
}
|
|
5717
5725
|
);
|
|
5718
5726
|
}, Cd = ({
|
|
5719
|
-
|
|
5727
|
+
attachmentUrl: e,
|
|
5720
5728
|
attachmentType: t,
|
|
5721
5729
|
attachmentFormat: n
|
|
5722
5730
|
}) => e ? t === Le.Voice ? /* @__PURE__ */ m.exports.jsx("div", { className: "w-full", children: /* @__PURE__ */ m.exports.jsx(Sd, { src: e }) }) : t === Le.Image ? /* @__PURE__ */ m.exports.jsx("div", { className: "w-full", children: /* @__PURE__ */ m.exports.jsx("img", { src: e }) }) : t === Le.File ? /* @__PURE__ */ m.exports.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ m.exports.jsx(
|
|
@@ -5963,8 +5971,8 @@ function Md() {
|
|
|
5963
5971
|
}
|
|
5964
5972
|
function V(R) {
|
|
5965
5973
|
if (typeof R == "object" && R !== null) {
|
|
5966
|
-
var
|
|
5967
|
-
switch (
|
|
5974
|
+
var Ce = R.$$typeof;
|
|
5975
|
+
switch (Ce) {
|
|
5968
5976
|
case t:
|
|
5969
5977
|
var Ze = R.type;
|
|
5970
5978
|
switch (Ze) {
|
|
@@ -5985,16 +5993,16 @@ function Md() {
|
|
|
5985
5993
|
case o:
|
|
5986
5994
|
return We;
|
|
5987
5995
|
default:
|
|
5988
|
-
return
|
|
5996
|
+
return Ce;
|
|
5989
5997
|
}
|
|
5990
5998
|
}
|
|
5991
5999
|
case n:
|
|
5992
|
-
return
|
|
6000
|
+
return Ce;
|
|
5993
6001
|
}
|
|
5994
6002
|
}
|
|
5995
6003
|
}
|
|
5996
6004
|
var p = a, A = u, B = l, M = o, H = t, F = c, ne = r, ge = x, oe = g, te = n, ye = s, ae = i, X = f, le = !1;
|
|
5997
|
-
function
|
|
6005
|
+
function Se(R) {
|
|
5998
6006
|
return le || (le = !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.")), v(R) || V(R) === a;
|
|
5999
6007
|
}
|
|
6000
6008
|
function v(R) {
|
|
@@ -6033,7 +6041,7 @@ function Md() {
|
|
|
6033
6041
|
function fe(R) {
|
|
6034
6042
|
return V(R) === f;
|
|
6035
6043
|
}
|
|
6036
|
-
q.AsyncMode = p, q.ConcurrentMode = A, q.ContextConsumer = B, q.ContextProvider = M, q.Element = H, q.ForwardRef = F, q.Fragment = ne, q.Lazy = ge, q.Memo = oe, q.Portal = te, q.Profiler = ye, q.StrictMode = ae, q.Suspense = X, q.isAsyncMode =
|
|
6044
|
+
q.AsyncMode = p, q.ConcurrentMode = A, q.ContextConsumer = B, q.ContextProvider = M, q.Element = H, q.ForwardRef = F, q.Fragment = ne, q.Lazy = ge, q.Memo = oe, q.Portal = te, q.Profiler = ye, q.StrictMode = ae, q.Suspense = X, q.isAsyncMode = Se, q.isConcurrentMode = v, q.isContextConsumer = w, q.isContextProvider = j, q.isElement = k, q.isForwardRef = D, q.isFragment = O, q.isLazy = _, q.isMemo = N, q.isPortal = $, q.isProfiler = Y, q.isStrictMode = U, q.isSuspense = fe, q.isValidElementType = C, q.typeOf = V;
|
|
6037
6045
|
}()), q;
|
|
6038
6046
|
}
|
|
6039
6047
|
var Ss;
|
|
@@ -6215,10 +6223,10 @@ function Od() {
|
|
|
6215
6223
|
);
|
|
6216
6224
|
throw R.name = "Invariant Violation", R;
|
|
6217
6225
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6218
|
-
var
|
|
6219
|
-
!w[
|
|
6226
|
+
var Ce = $ + ":" + N;
|
|
6227
|
+
!w[Ce] && j < 3 && (s(
|
|
6220
6228
|
"You are manually calling a React.PropTypes validation function for the `" + U + "` prop on `" + $ + "`. 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."
|
|
6221
|
-
), w[
|
|
6229
|
+
), w[Ce] = !0, j++);
|
|
6222
6230
|
}
|
|
6223
6231
|
}
|
|
6224
6232
|
return _[N] == null ? O ? _[N] === null ? new y("The " + Y + " `" + U + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new y("The " + Y + " `" + U + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : v(_, N, $, Y, U);
|
|
@@ -6286,7 +6294,7 @@ function Od() {
|
|
|
6286
6294
|
function A(v) {
|
|
6287
6295
|
function w(j, k, D, O, _) {
|
|
6288
6296
|
if (!(j[k] instanceof v)) {
|
|
6289
|
-
var N = v.name || h, $ =
|
|
6297
|
+
var N = v.name || h, $ = Se(j[k]);
|
|
6290
6298
|
return new y("Invalid " + O + " `" + _ + "` of type " + ("`" + $ + "` supplied to `" + D + "`, expected ") + ("instance of `" + N + "`."));
|
|
6291
6299
|
}
|
|
6292
6300
|
return null;
|
|
@@ -6303,8 +6311,8 @@ function Od() {
|
|
|
6303
6311
|
if (x(N, v[$]))
|
|
6304
6312
|
return null;
|
|
6305
6313
|
var Y = JSON.stringify(v, function(fe, R) {
|
|
6306
|
-
var
|
|
6307
|
-
return
|
|
6314
|
+
var Ce = X(R);
|
|
6315
|
+
return Ce === "symbol" ? String(R) : R;
|
|
6308
6316
|
});
|
|
6309
6317
|
return new y("Invalid " + O + " `" + _ + "` of value `" + String(N) + "` " + ("supplied to `" + D + "`, expected one of " + Y + "."));
|
|
6310
6318
|
}
|
|
@@ -6344,8 +6352,8 @@ function Od() {
|
|
|
6344
6352
|
return null;
|
|
6345
6353
|
R.data && r(R.data, "expectedType") && Y.push(R.data.expectedType);
|
|
6346
6354
|
}
|
|
6347
|
-
var
|
|
6348
|
-
return new y("Invalid " + N + " `" + $ + "` supplied to " + ("`" + _ + "`" +
|
|
6355
|
+
var Ce = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
6356
|
+
return new y("Invalid " + N + " `" + $ + "` supplied to " + ("`" + _ + "`" + Ce + "."));
|
|
6349
6357
|
}
|
|
6350
6358
|
return P(k);
|
|
6351
6359
|
}
|
|
@@ -6466,7 +6474,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
6466
6474
|
return w;
|
|
6467
6475
|
}
|
|
6468
6476
|
}
|
|
6469
|
-
function
|
|
6477
|
+
function Se(v) {
|
|
6470
6478
|
return !v.constructor || !v.constructor.name ? h : v.constructor.name;
|
|
6471
6479
|
}
|
|
6472
6480
|
return g.checkPropTypes = i, g.resetWarningCache = i.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -6557,7 +6565,7 @@ function Fd(e, t) {
|
|
|
6557
6565
|
}
|
|
6558
6566
|
var Nr = Ot(function(e, t) {
|
|
6559
6567
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Id(e, ["color", "size"]);
|
|
6560
|
-
return /* @__PURE__ */
|
|
6568
|
+
return /* @__PURE__ */ we.createElement("svg", Hn({
|
|
6561
6569
|
ref: t,
|
|
6562
6570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6563
6571
|
width: s,
|
|
@@ -6568,7 +6576,7 @@ var Nr = Ot(function(e, t) {
|
|
|
6568
6576
|
strokeWidth: "2",
|
|
6569
6577
|
strokeLinecap: "round",
|
|
6570
6578
|
strokeLinejoin: "round"
|
|
6571
|
-
}, o), /* @__PURE__ */
|
|
6579
|
+
}, o), /* @__PURE__ */ we.createElement("polyline", {
|
|
6572
6580
|
points: "20 6 9 17 4 12"
|
|
6573
6581
|
}));
|
|
6574
6582
|
});
|
|
@@ -6609,7 +6617,7 @@ function $d(e, t) {
|
|
|
6609
6617
|
}
|
|
6610
6618
|
var Br = Ot(function(e, t) {
|
|
6611
6619
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Bd(e, ["color", "size"]);
|
|
6612
|
-
return /* @__PURE__ */
|
|
6620
|
+
return /* @__PURE__ */ we.createElement("svg", Xn({
|
|
6613
6621
|
ref: t,
|
|
6614
6622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6615
6623
|
width: s,
|
|
@@ -6620,14 +6628,14 @@ var Br = Ot(function(e, t) {
|
|
|
6620
6628
|
strokeWidth: "2",
|
|
6621
6629
|
strokeLinecap: "round",
|
|
6622
6630
|
strokeLinejoin: "round"
|
|
6623
|
-
}, o), /* @__PURE__ */
|
|
6631
|
+
}, o), /* @__PURE__ */ we.createElement("rect", {
|
|
6624
6632
|
x: "9",
|
|
6625
6633
|
y: "9",
|
|
6626
6634
|
width: "13",
|
|
6627
6635
|
height: "13",
|
|
6628
6636
|
rx: "2",
|
|
6629
6637
|
ry: "2"
|
|
6630
|
-
}), /* @__PURE__ */
|
|
6638
|
+
}), /* @__PURE__ */ we.createElement("path", {
|
|
6631
6639
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
6632
6640
|
}));
|
|
6633
6641
|
});
|
|
@@ -6668,7 +6676,7 @@ function zd(e, t) {
|
|
|
6668
6676
|
}
|
|
6669
6677
|
var $r = Ot(function(e, t) {
|
|
6670
6678
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Wd(e, ["color", "size"]);
|
|
6671
|
-
return /* @__PURE__ */
|
|
6679
|
+
return /* @__PURE__ */ we.createElement("svg", Zn({
|
|
6672
6680
|
ref: t,
|
|
6673
6681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6674
6682
|
width: s,
|
|
@@ -6679,9 +6687,9 @@ var $r = Ot(function(e, t) {
|
|
|
6679
6687
|
strokeWidth: "2",
|
|
6680
6688
|
strokeLinecap: "round",
|
|
6681
6689
|
strokeLinejoin: "round"
|
|
6682
|
-
}, o), /* @__PURE__ */
|
|
6690
|
+
}, o), /* @__PURE__ */ we.createElement("path", {
|
|
6683
6691
|
d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
|
|
6684
|
-
}), /* @__PURE__ */
|
|
6692
|
+
}), /* @__PURE__ */ we.createElement("path", {
|
|
6685
6693
|
d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
|
|
6686
6694
|
}));
|
|
6687
6695
|
});
|
|
@@ -6722,7 +6730,7 @@ function Gd(e, t) {
|
|
|
6722
6730
|
}
|
|
6723
6731
|
var Ur = Ot(function(e, t) {
|
|
6724
6732
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Kd(e, ["color", "size"]);
|
|
6725
|
-
return /* @__PURE__ */
|
|
6733
|
+
return /* @__PURE__ */ we.createElement("svg", Jn({
|
|
6726
6734
|
ref: t,
|
|
6727
6735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6728
6736
|
width: s,
|
|
@@ -6733,9 +6741,9 @@ var Ur = Ot(function(e, t) {
|
|
|
6733
6741
|
strokeWidth: "2",
|
|
6734
6742
|
strokeLinecap: "round",
|
|
6735
6743
|
strokeLinejoin: "round"
|
|
6736
|
-
}, o), /* @__PURE__ */
|
|
6744
|
+
}, o), /* @__PURE__ */ we.createElement("polyline", {
|
|
6737
6745
|
points: "3 6 5 6 21 6"
|
|
6738
|
-
}), /* @__PURE__ */
|
|
6746
|
+
}), /* @__PURE__ */ we.createElement("path", {
|
|
6739
6747
|
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"
|
|
6740
6748
|
}));
|
|
6741
6749
|
});
|
|
@@ -6785,21 +6793,23 @@ const qd = Ur, Hd = ({
|
|
|
6785
6793
|
});
|
|
6786
6794
|
n([...t, A]), r(A), g();
|
|
6787
6795
|
}, b = (p) => {
|
|
6788
|
-
const A = new dn({
|
|
6796
|
+
const A = URL.createObjectURL(p), B = new dn({
|
|
6789
6797
|
id: new Date().toString(),
|
|
6790
6798
|
text: "",
|
|
6791
|
-
|
|
6799
|
+
attachmentUrl: A,
|
|
6792
6800
|
attachmentType: Le.Voice,
|
|
6801
|
+
attachmentBlob: p,
|
|
6793
6802
|
user: e,
|
|
6794
6803
|
isRightSided: !0,
|
|
6795
6804
|
createdDate: new Date().toString()
|
|
6796
6805
|
});
|
|
6797
|
-
n([...t,
|
|
6806
|
+
n([...t, B]), r(B), g();
|
|
6798
6807
|
}, S = (p, A) => {
|
|
6799
6808
|
const B = URL.createObjectURL(p), M = new dn({
|
|
6800
6809
|
id: new Date().toString(),
|
|
6801
6810
|
text: "",
|
|
6802
|
-
|
|
6811
|
+
attachmentUrl: B,
|
|
6812
|
+
attachmentBlob: p,
|
|
6803
6813
|
attachmentType: A,
|
|
6804
6814
|
user: e,
|
|
6805
6815
|
isRightSided: !0,
|
|
@@ -6910,10 +6920,10 @@ const qd = Ur, Hd = ({
|
|
|
6910
6920
|
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${p ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
6911
6921
|
children: n ? /* @__PURE__ */ m.exports.jsx(ca, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ m.exports.jsx(ks, { children: s.length > 0 ? s.map((F, ne) => {
|
|
6912
6922
|
var te, ye, ae;
|
|
6913
|
-
const ge = F != null && F.
|
|
6923
|
+
const ge = F != null && F.attachmentUrl ? /* @__PURE__ */ m.exports.jsx(
|
|
6914
6924
|
Cd,
|
|
6915
6925
|
{
|
|
6916
|
-
|
|
6926
|
+
attachmentUrl: F.attachmentUrl,
|
|
6917
6927
|
attachmentType: F == null ? void 0 : F.attachmentType,
|
|
6918
6928
|
attachmentFormat: F == null ? void 0 : F.attachmentFormat
|
|
6919
6929
|
},
|