react-pro-messenger 1.0.21 → 1.0.24
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 +100 -97
- 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/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -52,10 +52,10 @@ function $a() {
|
|
|
52
52
|
Q.unshift("Warning: " + T), Function.prototype.apply.call(console[d], console, Q);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
var j = !1, p = !1, A = !1,
|
|
55
|
+
var j = !1, p = !1, A = !1, N = !1, D = !1, X;
|
|
56
56
|
X = Symbol.for("react.module.reference");
|
|
57
57
|
function z(d) {
|
|
58
|
-
return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || D || d === i || d === u || d === c ||
|
|
58
|
+
return !!(typeof d == "string" || typeof d == "function" || d === r || d === s || D || d === i || d === u || d === c || N || d === m || j || p || A || typeof d == "object" && d !== null && (d.$$typeof === h || d.$$typeof === f || d.$$typeof === o || d.$$typeof === l || d.$$typeof === a || d.$$typeof === X || d.getModuleId !== void 0));
|
|
59
59
|
}
|
|
60
60
|
function oe(d, T, E) {
|
|
61
61
|
var O = d.displayName;
|
|
@@ -174,18 +174,18 @@ function $a() {
|
|
|
174
174
|
ye < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var B = x.ReactCurrentDispatcher, $;
|
|
178
178
|
function U(d, T, E) {
|
|
179
179
|
{
|
|
180
|
-
if (
|
|
180
|
+
if ($ === void 0)
|
|
181
181
|
try {
|
|
182
182
|
throw Error();
|
|
183
183
|
} catch (H) {
|
|
184
184
|
var O = H.stack.trim().match(/\n( *(at )?)/);
|
|
185
|
-
|
|
185
|
+
$ = O && O[1] || "";
|
|
186
186
|
}
|
|
187
187
|
return `
|
|
188
|
-
` +
|
|
188
|
+
` + $ + d;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
var q = !1, W;
|
|
@@ -206,7 +206,7 @@ function $a() {
|
|
|
206
206
|
var H = Error.prepareStackTrace;
|
|
207
207
|
Error.prepareStackTrace = void 0;
|
|
208
208
|
var Q;
|
|
209
|
-
Q =
|
|
209
|
+
Q = B.current, B.current = null, F();
|
|
210
210
|
try {
|
|
211
211
|
if (T) {
|
|
212
212
|
var G = function() {
|
|
@@ -259,7 +259,7 @@ function $a() {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
} finally {
|
|
262
|
-
q = !1,
|
|
262
|
+
q = !1, B.current = Q, K(), Error.prepareStackTrace = H;
|
|
263
263
|
}
|
|
264
264
|
var Qe = d ? d.displayName || d.name : "", ti = Qe ? U(Qe) : "";
|
|
265
265
|
return typeof d == "function" && W.set(d, ti), ti;
|
|
@@ -754,15 +754,15 @@ const ir = typeof window < "u", Ls = ir ? _a : ut, ks = ({ children: e, custom:
|
|
|
754
754
|
if (c !== y) {
|
|
755
755
|
let p = [...c];
|
|
756
756
|
for (let A = 0; A < x.length; A++) {
|
|
757
|
-
const
|
|
758
|
-
f.includes(D) || (p.splice(A, 0,
|
|
757
|
+
const N = x[A], D = Bt(N);
|
|
758
|
+
f.includes(D) || (p.splice(A, 0, N), S.push(N));
|
|
759
759
|
}
|
|
760
760
|
return s === "wait" && S.length && (p = S), P(ii(p)), w(c), null;
|
|
761
761
|
}
|
|
762
762
|
process.env.NODE_ENV !== "production" && s === "wait" && x.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
763
763
|
const { forceRender: j } = me(tr);
|
|
764
764
|
return g.exports.jsx(g.exports.Fragment, { children: x.map((p) => {
|
|
765
|
-
const A = Bt(p),
|
|
765
|
+
const A = Bt(p), N = o && !a ? !1 : c === x || f.includes(A), D = () => {
|
|
766
766
|
if (v.has(A))
|
|
767
767
|
v.set(A, !0);
|
|
768
768
|
else
|
|
@@ -772,7 +772,7 @@ const ir = typeof window < "u", Ls = ir ? _a : ut, ks = ({ children: e, custom:
|
|
|
772
772
|
z || (X = !1);
|
|
773
773
|
}), X && (j == null || j(), P(m.current), o && (u == null || u()), r && r());
|
|
774
774
|
};
|
|
775
|
-
return g.exports.jsx(za, { isPresent:
|
|
775
|
+
return g.exports.jsx(za, { isPresent: N, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: N ? void 0 : D, anchorX: l, children: p }, A);
|
|
776
776
|
}) });
|
|
777
777
|
}, Pe = (e) => e;
|
|
778
778
|
let ft = Pe, Fe = Pe;
|
|
@@ -2568,16 +2568,16 @@ function Fo(e = te.visualDuration, t = te.bounce) {
|
|
|
2568
2568
|
if (y < 1) {
|
|
2569
2569
|
const p = Un(x, y);
|
|
2570
2570
|
S = (A) => {
|
|
2571
|
-
const
|
|
2572
|
-
return o -
|
|
2571
|
+
const N = Math.exp(-y * x * A);
|
|
2572
|
+
return o - N * ((v + y * x * w) / p * Math.sin(p * A) + w * Math.cos(p * A));
|
|
2573
2573
|
};
|
|
2574
2574
|
} else if (y === 1)
|
|
2575
2575
|
S = (p) => o - Math.exp(-x * p) * (w + (v + x * w) * p);
|
|
2576
2576
|
else {
|
|
2577
2577
|
const p = x * Math.sqrt(y * y - 1);
|
|
2578
2578
|
S = (A) => {
|
|
2579
|
-
const
|
|
2580
|
-
return o -
|
|
2579
|
+
const N = Math.exp(-y * x * A), D = Math.min(p * A, 300);
|
|
2580
|
+
return o - N * ((v + y * x * w) * Math.sinh(D) + p * w * Math.cosh(D)) / p;
|
|
2581
2581
|
};
|
|
2582
2582
|
}
|
|
2583
2583
|
const j = {
|
|
@@ -2587,15 +2587,15 @@ function Fo(e = te.visualDuration, t = te.bounce) {
|
|
|
2587
2587
|
if (m)
|
|
2588
2588
|
l.done = p >= f;
|
|
2589
2589
|
else {
|
|
2590
|
-
let
|
|
2591
|
-
y < 1 && (
|
|
2592
|
-
const D = Math.abs(
|
|
2590
|
+
let N = 0;
|
|
2591
|
+
y < 1 && (N = p === 0 ? De(v) : Io(S, p, A));
|
|
2592
|
+
const D = Math.abs(N) <= r, X = Math.abs(o - A) <= i;
|
|
2593
2593
|
l.done = D && X;
|
|
2594
2594
|
}
|
|
2595
2595
|
return l.value = l.done ? o : A, l;
|
|
2596
2596
|
},
|
|
2597
2597
|
toString: () => {
|
|
2598
|
-
const p = Math.min(to(j), Ln), A = no((
|
|
2598
|
+
const p = Math.min(to(j), Ln), A = no((N) => j.next(p * N).value, p, 30);
|
|
2599
2599
|
return p + "ms " + A;
|
|
2600
2600
|
}
|
|
2601
2601
|
};
|
|
@@ -2614,7 +2614,7 @@ function Ri({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2614
2614
|
h.done = Math.abs(X) <= u, h.value = h.done ? x : z;
|
|
2615
2615
|
};
|
|
2616
2616
|
let p, A;
|
|
2617
|
-
const
|
|
2617
|
+
const N = (D) => {
|
|
2618
2618
|
m(h.value) && (p = D, A = Fo({
|
|
2619
2619
|
keyframes: [h.value, v(h.value)],
|
|
2620
2620
|
velocity: Io(S, D, h.value),
|
|
@@ -2624,11 +2624,11 @@ function Ri({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2624
2624
|
restSpeed: c
|
|
2625
2625
|
}));
|
|
2626
2626
|
};
|
|
2627
|
-
return
|
|
2627
|
+
return N(0), {
|
|
2628
2628
|
calculatedDuration: null,
|
|
2629
2629
|
next: (D) => {
|
|
2630
2630
|
let X = !1;
|
|
2631
|
-
return !A && p === void 0 && (X = !0, j(D),
|
|
2631
|
+
return !A && p === void 0 && (X = !0, j(D), N(D)), p !== void 0 && D >= p ? A.next(D - p) : (!X && j(D), h);
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
2634
|
}
|
|
@@ -2793,8 +2793,8 @@ class Lr extends Lo {
|
|
|
2793
2793
|
l && (p.value = l(p.value));
|
|
2794
2794
|
let { done: A } = p;
|
|
2795
2795
|
!P && u !== null && (A = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
2796
|
-
const
|
|
2797
|
-
return
|
|
2796
|
+
const N = this.holdTime === null && (this.state === "finished" || this.state === "running" && A);
|
|
2797
|
+
return N && i !== void 0 && (p.value = on(a, this.options, i)), w && w(p.value), N && this.finish(), p;
|
|
2798
2798
|
}
|
|
2799
2799
|
get duration() {
|
|
2800
2800
|
const { resolved: t } = this;
|
|
@@ -3236,8 +3236,8 @@ function Vu(e) {
|
|
|
3236
3236
|
let A = S === c[x] && S !== u[x] && j;
|
|
3237
3237
|
if (A && r && e.manuallyAnimateOnMount && (A = !1), P.protectedKeys = { ...m }, !P.isActive && p === null || !S && !P.prevProp || rn(S) || typeof S == "boolean")
|
|
3238
3238
|
continue;
|
|
3239
|
-
const
|
|
3240
|
-
let D =
|
|
3239
|
+
const N = Mu(P.prevProp, S);
|
|
3240
|
+
let D = N || x === a && P.isActive && !A && j || w > v && j, X = !1;
|
|
3241
3241
|
const z = Array.isArray(S) ? S : [S];
|
|
3242
3242
|
let oe = z.reduce(i(x), {});
|
|
3243
3243
|
p === !1 && (oe = {});
|
|
@@ -3256,7 +3256,7 @@ function Vu(e) {
|
|
|
3256
3256
|
let b = !1;
|
|
3257
3257
|
On(L) && On(ae) ? b = !Uo(L, ae) : b = L !== ae, b ? L != null ? re(V) : h.add(V) : L !== void 0 && h.has(V) ? re(V) : P.protectedKeys[V] = !0;
|
|
3258
3258
|
}
|
|
3259
|
-
P.prevProp = S, P.prevResolvedValues = oe, P.isActive && (m = { ...m, ...oe }), r && e.blockInitialAnimation && (D = !1), D && (!(A &&
|
|
3259
|
+
P.prevProp = S, P.prevResolvedValues = oe, P.isActive && (m = { ...m, ...oe }), r && e.blockInitialAnimation && (D = !1), D && (!(A && N) || X) && f.push(...z.map((V) => ({
|
|
3260
3260
|
animation: V,
|
|
3261
3261
|
options: { type: x }
|
|
3262
3262
|
})));
|
|
@@ -5255,7 +5255,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5255
5255
|
isCurrentUserMessage: i
|
|
5256
5256
|
}) => {
|
|
5257
5257
|
const s = pe(null), [o, l] = xe(!1);
|
|
5258
|
-
return ut(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", document.body.appendChild(s.current)), l(!0), () => {
|
|
5258
|
+
return ut(() => (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)), l(!0), () => {
|
|
5259
5259
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5260
5260
|
}), [t]), !s.current || !o ? null : Na.createPortal(
|
|
5261
5261
|
/* @__PURE__ */ g.exports.jsx(ks, { children: t && /* @__PURE__ */ g.exports.jsx(
|
|
@@ -5265,7 +5265,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5265
5265
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
5266
5266
|
exit: { opacity: 0, scale: 0.8, y: -10 },
|
|
5267
5267
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
5268
|
-
className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42",
|
|
5268
|
+
className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42 pointer-events-auto",
|
|
5269
5269
|
style: {
|
|
5270
5270
|
top: n.y,
|
|
5271
5271
|
left: n.x
|
|
@@ -5273,7 +5273,8 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5273
5273
|
children: e.map((a, u) => a != null && a.onlyCurrentUserMessage && !i ? null : /* @__PURE__ */ g.exports.jsxs(
|
|
5274
5274
|
"button",
|
|
5275
5275
|
{
|
|
5276
|
-
|
|
5276
|
+
disabled: a == null ? void 0 : a.disabled,
|
|
5277
|
+
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",
|
|
5277
5278
|
onClick: () => a.onClick(r),
|
|
5278
5279
|
children: [
|
|
5279
5280
|
we.cloneElement(a.icon, {
|
|
@@ -5373,7 +5374,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5373
5374
|
onFileSend: n,
|
|
5374
5375
|
dynamicSymbolAssignments: r
|
|
5375
5376
|
}) => {
|
|
5376
|
-
const [i, s] = xe(""), [o, l] = xe(!1), [a, u] = xe(0), [c, f] = xe(null), [h, m] = xe(null), [v, y] = xe(0), w = pe(null), x = pe([]), P = pe(null), S = pe(null), j = pe(null), [p, A] = xe(!1),
|
|
5377
|
+
const [i, s] = xe(""), [o, l] = xe(!1), [a, u] = xe(0), [c, f] = xe(null), [h, m] = xe(null), [v, y] = xe(0), w = pe(null), x = pe([]), P = pe(null), S = pe(null), j = pe(null), [p, A] = xe(!1), N = (_) => {
|
|
5377
5378
|
const V = _.target.value;
|
|
5378
5379
|
s(V);
|
|
5379
5380
|
const L = V.match(/(\S+)$/);
|
|
@@ -5467,7 +5468,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5467
5468
|
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 ",
|
|
5468
5469
|
placeholder: "Type a message...",
|
|
5469
5470
|
value: i,
|
|
5470
|
-
onChange:
|
|
5471
|
+
onChange: N,
|
|
5471
5472
|
onKeyDown: (_) => {
|
|
5472
5473
|
_.key === "Enter" && !_.shiftKey && (_.preventDefault(), X());
|
|
5473
5474
|
}
|
|
@@ -5937,7 +5938,7 @@ function jd() {
|
|
|
5937
5938
|
}
|
|
5938
5939
|
}
|
|
5939
5940
|
}
|
|
5940
|
-
var p = a, A = u,
|
|
5941
|
+
var p = a, A = u, N = l, D = o, X = t, z = c, oe = r, Te = v, ce = m, re = n, ye = s, _ = i, V = f, L = !1;
|
|
5941
5942
|
function ae(R) {
|
|
5942
5943
|
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.")), b(R) || j(R) === a;
|
|
5943
5944
|
}
|
|
@@ -5959,10 +5960,10 @@ function jd() {
|
|
|
5959
5960
|
function K(R) {
|
|
5960
5961
|
return j(R) === r;
|
|
5961
5962
|
}
|
|
5962
|
-
function
|
|
5963
|
+
function B(R) {
|
|
5963
5964
|
return j(R) === v;
|
|
5964
5965
|
}
|
|
5965
|
-
function
|
|
5966
|
+
function $(R) {
|
|
5966
5967
|
return j(R) === m;
|
|
5967
5968
|
}
|
|
5968
5969
|
function U(R) {
|
|
@@ -5977,7 +5978,7 @@ function jd() {
|
|
|
5977
5978
|
function de(R) {
|
|
5978
5979
|
return j(R) === f;
|
|
5979
5980
|
}
|
|
5980
|
-
J.AsyncMode = p, J.ConcurrentMode = A, J.ContextConsumer =
|
|
5981
|
+
J.AsyncMode = p, J.ConcurrentMode = A, J.ContextConsumer = N, J.ContextProvider = D, J.Element = X, J.ForwardRef = z, J.Fragment = oe, J.Lazy = Te, J.Memo = ce, J.Portal = re, J.Profiler = ye, J.StrictMode = _, J.Suspense = V, J.isAsyncMode = ae, J.isConcurrentMode = b, J.isContextConsumer = C, J.isContextProvider = k, J.isElement = I, J.isForwardRef = F, J.isFragment = K, J.isLazy = B, J.isMemo = $, J.isPortal = U, J.isProfiler = q, J.isStrictMode = W, J.isSuspense = de, J.isValidElementType = S, J.typeOf = j;
|
|
5981
5982
|
}()), J;
|
|
5982
5983
|
}
|
|
5983
5984
|
var Ss;
|
|
@@ -6136,7 +6137,7 @@ function Md() {
|
|
|
6136
6137
|
instanceOf: A,
|
|
6137
6138
|
node: z(),
|
|
6138
6139
|
objectOf: D,
|
|
6139
|
-
oneOf:
|
|
6140
|
+
oneOf: N,
|
|
6140
6141
|
oneOfType: X,
|
|
6141
6142
|
shape: Te,
|
|
6142
6143
|
exact: ce
|
|
@@ -6151,32 +6152,32 @@ function Md() {
|
|
|
6151
6152
|
function w(b) {
|
|
6152
6153
|
if (process.env.NODE_ENV !== "production")
|
|
6153
6154
|
var C = {}, k = 0;
|
|
6154
|
-
function I(K,
|
|
6155
|
-
if (U = U || h, W = W ||
|
|
6155
|
+
function I(K, B, $, U, q, W, de) {
|
|
6156
|
+
if (U = U || h, W = W || $, de !== n) {
|
|
6156
6157
|
if (a) {
|
|
6157
6158
|
var R = new Error(
|
|
6158
6159
|
"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"
|
|
6159
6160
|
);
|
|
6160
6161
|
throw R.name = "Invariant Violation", R;
|
|
6161
6162
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
6162
|
-
var Se = U + ":" +
|
|
6163
|
+
var Se = U + ":" + $;
|
|
6163
6164
|
!C[Se] && k < 3 && (s(
|
|
6164
6165
|
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + U + "`. 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."
|
|
6165
6166
|
), C[Se] = !0, k++);
|
|
6166
6167
|
}
|
|
6167
6168
|
}
|
|
6168
|
-
return
|
|
6169
|
+
return B[$] == null ? K ? B[$] === null ? new y("The " + q + " `" + W + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + q + " `" + W + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : b(B, $, U, q, W);
|
|
6169
6170
|
}
|
|
6170
6171
|
var F = I.bind(null, !1);
|
|
6171
6172
|
return F.isRequired = I.bind(null, !0), F;
|
|
6172
6173
|
}
|
|
6173
6174
|
function x(b) {
|
|
6174
|
-
function C(k, I, F, K,
|
|
6175
|
+
function C(k, I, F, K, B, $) {
|
|
6175
6176
|
var U = k[I], q = _(U);
|
|
6176
6177
|
if (q !== b) {
|
|
6177
6178
|
var W = V(U);
|
|
6178
6179
|
return new y(
|
|
6179
|
-
"Invalid " + K + " `" +
|
|
6180
|
+
"Invalid " + K + " `" + B + "` of type " + ("`" + W + "` supplied to `" + F + "`, expected ") + ("`" + b + "`."),
|
|
6180
6181
|
{ expectedType: b }
|
|
6181
6182
|
);
|
|
6182
6183
|
}
|
|
@@ -6188,16 +6189,16 @@ function Md() {
|
|
|
6188
6189
|
return w(o);
|
|
6189
6190
|
}
|
|
6190
6191
|
function S(b) {
|
|
6191
|
-
function C(k, I, F, K,
|
|
6192
|
+
function C(k, I, F, K, B) {
|
|
6192
6193
|
if (typeof b != "function")
|
|
6193
|
-
return new y("Property `" +
|
|
6194
|
-
var
|
|
6195
|
-
if (!Array.isArray(
|
|
6196
|
-
var U = _(
|
|
6197
|
-
return new y("Invalid " + K + " `" +
|
|
6194
|
+
return new y("Property `" + B + "` of component `" + F + "` has invalid PropType notation inside arrayOf.");
|
|
6195
|
+
var $ = k[I];
|
|
6196
|
+
if (!Array.isArray($)) {
|
|
6197
|
+
var U = _($);
|
|
6198
|
+
return new y("Invalid " + K + " `" + B + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an array."));
|
|
6198
6199
|
}
|
|
6199
|
-
for (var q = 0; q <
|
|
6200
|
-
var W = b(
|
|
6200
|
+
for (var q = 0; q < $.length; q++) {
|
|
6201
|
+
var W = b($, q, F, K, B + "[" + q + "]", n);
|
|
6201
6202
|
if (W instanceof Error)
|
|
6202
6203
|
return W;
|
|
6203
6204
|
}
|
|
@@ -6207,10 +6208,10 @@ function Md() {
|
|
|
6207
6208
|
}
|
|
6208
6209
|
function j() {
|
|
6209
6210
|
function b(C, k, I, F, K) {
|
|
6210
|
-
var
|
|
6211
|
-
if (!l(
|
|
6212
|
-
var
|
|
6213
|
-
return new y("Invalid " + F + " `" + K + "` of type " + ("`" +
|
|
6211
|
+
var B = C[k];
|
|
6212
|
+
if (!l(B)) {
|
|
6213
|
+
var $ = _(B);
|
|
6214
|
+
return new y("Invalid " + F + " `" + K + "` of type " + ("`" + $ + "` supplied to `" + I + "`, expected a single ReactElement."));
|
|
6214
6215
|
}
|
|
6215
6216
|
return null;
|
|
6216
6217
|
}
|
|
@@ -6218,52 +6219,52 @@ function Md() {
|
|
|
6218
6219
|
}
|
|
6219
6220
|
function p() {
|
|
6220
6221
|
function b(C, k, I, F, K) {
|
|
6221
|
-
var
|
|
6222
|
-
if (!e.isValidElementType(
|
|
6223
|
-
var
|
|
6224
|
-
return new y("Invalid " + F + " `" + K + "` of type " + ("`" +
|
|
6222
|
+
var B = C[k];
|
|
6223
|
+
if (!e.isValidElementType(B)) {
|
|
6224
|
+
var $ = _(B);
|
|
6225
|
+
return new y("Invalid " + F + " `" + K + "` of type " + ("`" + $ + "` supplied to `" + I + "`, expected a single ReactElement type."));
|
|
6225
6226
|
}
|
|
6226
6227
|
return null;
|
|
6227
6228
|
}
|
|
6228
6229
|
return w(b);
|
|
6229
6230
|
}
|
|
6230
6231
|
function A(b) {
|
|
6231
|
-
function C(k, I, F, K,
|
|
6232
|
+
function C(k, I, F, K, B) {
|
|
6232
6233
|
if (!(k[I] instanceof b)) {
|
|
6233
|
-
var
|
|
6234
|
-
return new y("Invalid " + K + " `" +
|
|
6234
|
+
var $ = b.name || h, U = ae(k[I]);
|
|
6235
|
+
return new y("Invalid " + K + " `" + B + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected ") + ("instance of `" + $ + "`."));
|
|
6235
6236
|
}
|
|
6236
6237
|
return null;
|
|
6237
6238
|
}
|
|
6238
6239
|
return w(C);
|
|
6239
6240
|
}
|
|
6240
|
-
function
|
|
6241
|
+
function N(b) {
|
|
6241
6242
|
if (!Array.isArray(b))
|
|
6242
6243
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
6243
6244
|
"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])."
|
|
6244
6245
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
6245
|
-
function C(k, I, F, K,
|
|
6246
|
-
for (var
|
|
6247
|
-
if (v(
|
|
6246
|
+
function C(k, I, F, K, B) {
|
|
6247
|
+
for (var $ = k[I], U = 0; U < b.length; U++)
|
|
6248
|
+
if (v($, b[U]))
|
|
6248
6249
|
return null;
|
|
6249
6250
|
var q = JSON.stringify(b, function(de, R) {
|
|
6250
6251
|
var Se = V(R);
|
|
6251
6252
|
return Se === "symbol" ? String(R) : R;
|
|
6252
6253
|
});
|
|
6253
|
-
return new y("Invalid " + K + " `" +
|
|
6254
|
+
return new y("Invalid " + K + " `" + B + "` of value `" + String($) + "` " + ("supplied to `" + F + "`, expected one of " + q + "."));
|
|
6254
6255
|
}
|
|
6255
6256
|
return w(C);
|
|
6256
6257
|
}
|
|
6257
6258
|
function D(b) {
|
|
6258
|
-
function C(k, I, F, K,
|
|
6259
|
+
function C(k, I, F, K, B) {
|
|
6259
6260
|
if (typeof b != "function")
|
|
6260
|
-
return new y("Property `" +
|
|
6261
|
-
var
|
|
6261
|
+
return new y("Property `" + B + "` of component `" + F + "` has invalid PropType notation inside objectOf.");
|
|
6262
|
+
var $ = k[I], U = _($);
|
|
6262
6263
|
if (U !== "object")
|
|
6263
|
-
return new y("Invalid " + K + " `" +
|
|
6264
|
-
for (var q in
|
|
6265
|
-
if (r(
|
|
6266
|
-
var W = b(
|
|
6264
|
+
return new y("Invalid " + K + " `" + B + "` of type " + ("`" + U + "` supplied to `" + F + "`, expected an object."));
|
|
6265
|
+
for (var q in $)
|
|
6266
|
+
if (r($, q)) {
|
|
6267
|
+
var W = b($, q, F, K, B + "." + q, n);
|
|
6267
6268
|
if (W instanceof Error)
|
|
6268
6269
|
return W;
|
|
6269
6270
|
}
|
|
@@ -6281,15 +6282,15 @@ function Md() {
|
|
|
6281
6282
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(k) + " at index " + C + "."
|
|
6282
6283
|
), o;
|
|
6283
6284
|
}
|
|
6284
|
-
function I(F, K,
|
|
6285
|
+
function I(F, K, B, $, U) {
|
|
6285
6286
|
for (var q = [], W = 0; W < b.length; W++) {
|
|
6286
|
-
var de = b[W], R = de(F, K,
|
|
6287
|
+
var de = b[W], R = de(F, K, B, $, U, n);
|
|
6287
6288
|
if (R == null)
|
|
6288
6289
|
return null;
|
|
6289
6290
|
R.data && r(R.data, "expectedType") && q.push(R.data.expectedType);
|
|
6290
6291
|
}
|
|
6291
6292
|
var Se = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
6292
|
-
return new y("Invalid " +
|
|
6293
|
+
return new y("Invalid " + $ + " `" + U + "` supplied to " + ("`" + B + "`" + Se + "."));
|
|
6293
6294
|
}
|
|
6294
6295
|
return w(I);
|
|
6295
6296
|
}
|
|
@@ -6305,15 +6306,15 @@ function Md() {
|
|
|
6305
6306
|
);
|
|
6306
6307
|
}
|
|
6307
6308
|
function Te(b) {
|
|
6308
|
-
function C(k, I, F, K,
|
|
6309
|
-
var
|
|
6309
|
+
function C(k, I, F, K, B) {
|
|
6310
|
+
var $ = k[I], U = _($);
|
|
6310
6311
|
if (U !== "object")
|
|
6311
|
-
return new y("Invalid " + K + " `" +
|
|
6312
|
+
return new y("Invalid " + K + " `" + B + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
6312
6313
|
for (var q in b) {
|
|
6313
6314
|
var W = b[q];
|
|
6314
6315
|
if (typeof W != "function")
|
|
6315
|
-
return oe(F, K,
|
|
6316
|
-
var de = W(
|
|
6316
|
+
return oe(F, K, B, q, V(W));
|
|
6317
|
+
var de = W($, q, F, K, B + "." + q, n);
|
|
6317
6318
|
if (de)
|
|
6318
6319
|
return de;
|
|
6319
6320
|
}
|
|
@@ -6322,21 +6323,21 @@ function Md() {
|
|
|
6322
6323
|
return w(C);
|
|
6323
6324
|
}
|
|
6324
6325
|
function ce(b) {
|
|
6325
|
-
function C(k, I, F, K,
|
|
6326
|
-
var
|
|
6326
|
+
function C(k, I, F, K, B) {
|
|
6327
|
+
var $ = k[I], U = _($);
|
|
6327
6328
|
if (U !== "object")
|
|
6328
|
-
return new y("Invalid " + K + " `" +
|
|
6329
|
+
return new y("Invalid " + K + " `" + B + "` of type `" + U + "` " + ("supplied to `" + F + "`, expected `object`."));
|
|
6329
6330
|
var q = t({}, k[I], b);
|
|
6330
6331
|
for (var W in q) {
|
|
6331
6332
|
var de = b[W];
|
|
6332
6333
|
if (r(b, W) && typeof de != "function")
|
|
6333
|
-
return oe(F, K,
|
|
6334
|
+
return oe(F, K, B, W, V(de));
|
|
6334
6335
|
if (!de)
|
|
6335
6336
|
return new y(
|
|
6336
|
-
"Invalid " + K + " `" +
|
|
6337
|
+
"Invalid " + K + " `" + B + "` key `" + W + "` supplied to `" + F + "`.\nBad object: " + JSON.stringify(k[I], null, " ") + `
|
|
6337
6338
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
6338
6339
|
);
|
|
6339
|
-
var R = de(
|
|
6340
|
+
var R = de($, W, F, K, B + "." + W, n);
|
|
6340
6341
|
if (R)
|
|
6341
6342
|
return R;
|
|
6342
6343
|
}
|
|
@@ -6711,9 +6712,9 @@ const Gd = Ur, qd = ({
|
|
|
6711
6712
|
}, [h]);
|
|
6712
6713
|
const v = (p, A) => {
|
|
6713
6714
|
p.preventDefault();
|
|
6714
|
-
const
|
|
6715
|
+
const N = window.scrollX, D = window.scrollY;
|
|
6715
6716
|
h({
|
|
6716
|
-
x: p.clientX +
|
|
6717
|
+
x: p.clientX + N,
|
|
6717
6718
|
y: p.clientY + D,
|
|
6718
6719
|
message: A
|
|
6719
6720
|
});
|
|
@@ -6740,7 +6741,7 @@ const Gd = Ur, qd = ({
|
|
|
6740
6741
|
});
|
|
6741
6742
|
n([...t, A]), r(A), m();
|
|
6742
6743
|
}, P = (p) => {
|
|
6743
|
-
const A = URL.createObjectURL(p),
|
|
6744
|
+
const A = URL.createObjectURL(p), N = new dn({
|
|
6744
6745
|
id: new Date().toString(),
|
|
6745
6746
|
text: "",
|
|
6746
6747
|
attachment: A,
|
|
@@ -6749,7 +6750,7 @@ const Gd = Ur, qd = ({
|
|
|
6749
6750
|
isRightSided: !0,
|
|
6750
6751
|
createdDate: new Date().toString()
|
|
6751
6752
|
});
|
|
6752
|
-
n([...t,
|
|
6753
|
+
n([...t, N]), r(N), m();
|
|
6753
6754
|
};
|
|
6754
6755
|
return {
|
|
6755
6756
|
handleDeleteConfirmation: () => {
|
|
@@ -6776,6 +6777,7 @@ const Gd = Ur, qd = ({
|
|
|
6776
6777
|
{
|
|
6777
6778
|
name: "Select",
|
|
6778
6779
|
icon: /* @__PURE__ */ g.exports.jsx(Fd, { className: "text-green-600" }),
|
|
6780
|
+
disabled: !0,
|
|
6779
6781
|
onClick: () => {
|
|
6780
6782
|
console.log("Select clicked"), y();
|
|
6781
6783
|
}
|
|
@@ -6783,8 +6785,9 @@ const Gd = Ur, qd = ({
|
|
|
6783
6785
|
{
|
|
6784
6786
|
name: "Copy",
|
|
6785
6787
|
icon: /* @__PURE__ */ g.exports.jsx($d, { className: "text-blue-600" }),
|
|
6786
|
-
onClick: () => {
|
|
6787
|
-
|
|
6788
|
+
onClick: (p) => {
|
|
6789
|
+
const A = t.find((N) => N.id === p);
|
|
6790
|
+
A && navigator.clipboard.writeText(A.text), y();
|
|
6788
6791
|
}
|
|
6789
6792
|
}
|
|
6790
6793
|
],
|
|
@@ -6824,7 +6827,7 @@ const Gd = Ur, qd = ({
|
|
|
6824
6827
|
isModalOpen: j,
|
|
6825
6828
|
contextMenu: p,
|
|
6826
6829
|
chatRef: A,
|
|
6827
|
-
setIsModalOpen:
|
|
6830
|
+
setIsModalOpen: N
|
|
6828
6831
|
} = qd({
|
|
6829
6832
|
user: o,
|
|
6830
6833
|
messages: s,
|
|
@@ -6888,7 +6891,7 @@ const Gd = Ur, qd = ({
|
|
|
6888
6891
|
gd,
|
|
6889
6892
|
{
|
|
6890
6893
|
isOpen: j,
|
|
6891
|
-
onClose: () =>
|
|
6894
|
+
onClose: () => N(!1),
|
|
6892
6895
|
onConfirm: m,
|
|
6893
6896
|
header: "Confirm Delete",
|
|
6894
6897
|
question: "Are you sure you want to delete this message?"
|