react-pro-messenger 1.0.34 → 1.0.35
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 +523 -505
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Media/File/File.d.ts +2 -0
- package/dist/src/components/Media/Media.d.ts +3 -2
- package/dist/src/components/Message/LeftSide/LeftSide.d.ts +1 -1
- package/dist/src/components/Message/RightSide/RightSide.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Oa = Object.defineProperty;
|
|
2
2
|
var La = (e, t, n) => t in e ? Oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var we = (e, t, n) => (La(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as nr from "react";
|
|
5
|
-
import Pe, { useCallback as nn, createContext as ut, useRef as
|
|
5
|
+
import Pe, { useCallback as nn, createContext as ut, useRef as ge, useId as rr, useContext as ye, useInsertionEffect as Vs, useMemo as Xe, useEffect as ft, Children as ka, isValidElement as _a, useLayoutEffect as Ia, useState as me, forwardRef as kt, Fragment as Os, createElement as Na, Component as Fa } from "react";
|
|
6
6
|
import Ba from "react-dom";
|
|
7
7
|
var p = { exports: {} }, gt = {};
|
|
8
8
|
var ii;
|
|
@@ -35,14 +35,14 @@ function Ua() {
|
|
|
35
35
|
return typeof T == "function" ? T : null;
|
|
36
36
|
}
|
|
37
37
|
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
38
|
-
function
|
|
38
|
+
function S(d) {
|
|
39
39
|
{
|
|
40
40
|
for (var T = arguments.length, j = new Array(T > 1 ? T - 1 : 0), F = 1; F < T; F++)
|
|
41
41
|
j[F - 1] = arguments[F];
|
|
42
|
-
|
|
42
|
+
P("error", d, j);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function P(d, T, j) {
|
|
46
46
|
{
|
|
47
47
|
var F = x.ReactDebugCurrentFrame, q = F.getStackAddendum();
|
|
48
48
|
q !== "" && (T += "%s", j = j.concat([q]));
|
|
@@ -64,13 +64,13 @@ function Ua() {
|
|
|
64
64
|
var q = T.displayName || T.name || "";
|
|
65
65
|
return q !== "" ? j + "(" + q + ")" : j;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function xe(d) {
|
|
68
68
|
return d.displayName || "Context";
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ae(d) {
|
|
71
71
|
if (d == null)
|
|
72
72
|
return null;
|
|
73
|
-
if (typeof d.tag == "number" &&
|
|
73
|
+
if (typeof d.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
74
74
|
return d.displayName || d.name || null;
|
|
75
75
|
if (typeof d == "string")
|
|
76
76
|
return d;
|
|
@@ -92,19 +92,19 @@ function Ua() {
|
|
|
92
92
|
switch (d.$$typeof) {
|
|
93
93
|
case l:
|
|
94
94
|
var T = d;
|
|
95
|
-
return
|
|
95
|
+
return xe(T) + ".Consumer";
|
|
96
96
|
case o:
|
|
97
97
|
var j = d;
|
|
98
|
-
return
|
|
98
|
+
return xe(j._context) + ".Provider";
|
|
99
99
|
case a:
|
|
100
100
|
return ee(d, d.render, "ForwardRef");
|
|
101
101
|
case f:
|
|
102
102
|
var F = d.displayName || null;
|
|
103
|
-
return F !== null ? F :
|
|
103
|
+
return F !== null ? F : ae(d.type) || "Memo";
|
|
104
104
|
case h: {
|
|
105
105
|
var q = d, J = q._payload, K = q._init;
|
|
106
106
|
try {
|
|
107
|
-
return
|
|
107
|
+
return ae(K(J));
|
|
108
108
|
} catch {
|
|
109
109
|
return null;
|
|
110
110
|
}
|
|
@@ -112,14 +112,14 @@ function Ua() {
|
|
|
112
112
|
}
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
|
-
var B = Object.assign,
|
|
115
|
+
var B = Object.assign, le = 0, ue, H, re, be, b, V, U;
|
|
116
116
|
function D() {
|
|
117
117
|
}
|
|
118
118
|
D.__reactDisabledLog = !0;
|
|
119
119
|
function R() {
|
|
120
120
|
{
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if (le === 0) {
|
|
122
|
+
ue = console.log, H = console.info, re = console.warn, be = console.error, b = console.group, V = console.groupCollapsed, U = console.groupEnd;
|
|
123
123
|
var d = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -136,12 +136,12 @@ function Ua() {
|
|
|
136
136
|
groupEnd: d
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
le++;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
function M() {
|
|
143
143
|
{
|
|
144
|
-
if (
|
|
144
|
+
if (le--, le === 0) {
|
|
145
145
|
var d = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
@@ -149,7 +149,7 @@ function Ua() {
|
|
|
149
149
|
};
|
|
150
150
|
Object.defineProperties(console, {
|
|
151
151
|
log: B({}, d, {
|
|
152
|
-
value:
|
|
152
|
+
value: ue
|
|
153
153
|
}),
|
|
154
154
|
info: B({}, d, {
|
|
155
155
|
value: H
|
|
@@ -158,7 +158,7 @@ function Ua() {
|
|
|
158
158
|
value: re
|
|
159
159
|
}),
|
|
160
160
|
error: B({}, d, {
|
|
161
|
-
value:
|
|
161
|
+
value: be
|
|
162
162
|
}),
|
|
163
163
|
group: B({}, d, {
|
|
164
164
|
value: b
|
|
@@ -171,7 +171,7 @@ function Ua() {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
le < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
var L = x.ReactCurrentDispatcher, k;
|
|
@@ -190,8 +190,8 @@ function Ua() {
|
|
|
190
190
|
}
|
|
191
191
|
var W = !1, $;
|
|
192
192
|
{
|
|
193
|
-
var
|
|
194
|
-
$ = new
|
|
193
|
+
var he = typeof WeakMap == "function" ? WeakMap : Map;
|
|
194
|
+
$ = new he();
|
|
195
195
|
}
|
|
196
196
|
function A(d, T) {
|
|
197
197
|
if (!d || W)
|
|
@@ -242,19 +242,19 @@ function Ua() {
|
|
|
242
242
|
} catch (Le) {
|
|
243
243
|
if (Le && F && typeof Le.stack == "string") {
|
|
244
244
|
for (var Y = Le.stack.split(`
|
|
245
|
-
`),
|
|
246
|
-
`),
|
|
247
|
-
|
|
248
|
-
for (;
|
|
249
|
-
if (Y[
|
|
250
|
-
if (
|
|
245
|
+
`), Te = F.stack.split(`
|
|
246
|
+
`), se = Y.length - 1, ce = Te.length - 1; se >= 1 && ce >= 0 && Y[se] !== Te[ce]; )
|
|
247
|
+
ce--;
|
|
248
|
+
for (; se >= 1 && ce >= 0; se--, ce--)
|
|
249
|
+
if (Y[se] !== Te[ce]) {
|
|
250
|
+
if (se !== 1 || ce !== 1)
|
|
251
251
|
do
|
|
252
|
-
if (
|
|
252
|
+
if (se--, ce--, ce < 0 || Y[se] !== Te[ce]) {
|
|
253
253
|
var Re = `
|
|
254
|
-
` + Y[
|
|
254
|
+
` + Y[se].replace(" at new ", " at ");
|
|
255
255
|
return d.displayName && Re.includes("<anonymous>") && (Re = Re.replace("<anonymous>", d.displayName)), typeof d == "function" && $.set(d, Re), Re;
|
|
256
256
|
}
|
|
257
|
-
while (
|
|
257
|
+
while (se >= 1 && ce >= 0);
|
|
258
258
|
break;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
@@ -300,8 +300,8 @@ function Ua() {
|
|
|
300
300
|
}
|
|
301
301
|
return "";
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
function
|
|
303
|
+
var Bt = Object.prototype.hasOwnProperty, Yr = {}, Kr = x.ReactDebugCurrentFrame;
|
|
304
|
+
function $t(d) {
|
|
305
305
|
if (d) {
|
|
306
306
|
var T = d._owner, j = ze(d.type, d._source, T ? T.type : null);
|
|
307
307
|
Kr.setExtraStackFrame(j);
|
|
@@ -310,20 +310,20 @@ function Ua() {
|
|
|
310
310
|
}
|
|
311
311
|
function ha(d, T, j, F, q) {
|
|
312
312
|
{
|
|
313
|
-
var J = Function.call.bind(
|
|
313
|
+
var J = Function.call.bind(Bt);
|
|
314
314
|
for (var K in d)
|
|
315
315
|
if (J(d, K)) {
|
|
316
316
|
var Y = void 0;
|
|
317
317
|
try {
|
|
318
318
|
if (typeof d[K] != "function") {
|
|
319
|
-
var
|
|
320
|
-
throw
|
|
319
|
+
var Te = Error((F || "React class") + ": " + j + " type `" + K + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[K] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
320
|
+
throw Te.name = "Invariant Violation", Te;
|
|
321
321
|
}
|
|
322
322
|
Y = d[K](T, K, F, j, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
323
|
-
} catch (
|
|
324
|
-
Y =
|
|
323
|
+
} catch (se) {
|
|
324
|
+
Y = se;
|
|
325
325
|
}
|
|
326
|
-
Y && !(Y instanceof Error) && (
|
|
326
|
+
Y && !(Y instanceof Error) && ($t(q), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", F || "React class", j, K, typeof Y), $t(null)), Y instanceof Error && !(Y.message in Yr) && (Yr[Y.message] = !0, $t(q), S("Failed %s type: %s", j, Y.message), $t(null));
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -349,7 +349,7 @@ function Ua() {
|
|
|
349
349
|
}
|
|
350
350
|
function qr(d) {
|
|
351
351
|
if (ga(d))
|
|
352
|
-
return
|
|
352
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ma(d)), Gr(d);
|
|
353
353
|
}
|
|
354
354
|
var mt = x.ReactCurrentOwner, ya = {
|
|
355
355
|
key: !0,
|
|
@@ -359,7 +359,7 @@ function Ua() {
|
|
|
359
359
|
}, Hr, Xr, fn;
|
|
360
360
|
fn = {};
|
|
361
361
|
function va(d) {
|
|
362
|
-
if (
|
|
362
|
+
if (Bt.call(d, "ref")) {
|
|
363
363
|
var T = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
364
364
|
if (T && T.isReactWarning)
|
|
365
365
|
return !1;
|
|
@@ -367,7 +367,7 @@ function Ua() {
|
|
|
367
367
|
return d.ref !== void 0;
|
|
368
368
|
}
|
|
369
369
|
function xa(d) {
|
|
370
|
-
if (
|
|
370
|
+
if (Bt.call(d, "key")) {
|
|
371
371
|
var T = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
372
372
|
if (T && T.isReactWarning)
|
|
373
373
|
return !1;
|
|
@@ -376,14 +376,14 @@ function Ua() {
|
|
|
376
376
|
}
|
|
377
377
|
function ba(d, T) {
|
|
378
378
|
if (typeof d.ref == "string" && mt.current && T && mt.current.stateNode !== T) {
|
|
379
|
-
var j =
|
|
380
|
-
fn[j] || (
|
|
379
|
+
var j = ae(mt.current.type);
|
|
380
|
+
fn[j] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ae(mt.current.type), d.ref), fn[j] = !0);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function Ta(d, T) {
|
|
384
384
|
{
|
|
385
385
|
var j = function() {
|
|
386
|
-
Hr || (Hr = !0,
|
|
386
|
+
Hr || (Hr = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
|
|
387
387
|
};
|
|
388
388
|
j.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
389
389
|
get: j,
|
|
@@ -394,7 +394,7 @@ function Ua() {
|
|
|
394
394
|
function wa(d, T) {
|
|
395
395
|
{
|
|
396
396
|
var j = function() {
|
|
397
|
-
Xr || (Xr = !0,
|
|
397
|
+
Xr || (Xr = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", T));
|
|
398
398
|
};
|
|
399
399
|
j.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
400
400
|
get: j,
|
|
@@ -402,7 +402,7 @@ function Ua() {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var Sa = function(d, T, j, F, q, J, K) {
|
|
406
406
|
var Y = {
|
|
407
407
|
$$typeof: t,
|
|
408
408
|
type: d,
|
|
@@ -428,22 +428,22 @@ function Ua() {
|
|
|
428
428
|
value: q
|
|
429
429
|
}), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
|
|
430
430
|
};
|
|
431
|
-
function
|
|
431
|
+
function Pa(d, T, j, F, q) {
|
|
432
432
|
{
|
|
433
|
-
var J, K = {}, Y = null,
|
|
434
|
-
j !== void 0 && (qr(j), Y = "" + j), xa(T) && (qr(T.key), Y = "" + T.key), va(T) && (
|
|
433
|
+
var J, K = {}, Y = null, Te = null;
|
|
434
|
+
j !== void 0 && (qr(j), Y = "" + j), xa(T) && (qr(T.key), Y = "" + T.key), va(T) && (Te = T.ref, ba(T, q));
|
|
435
435
|
for (J in T)
|
|
436
|
-
|
|
436
|
+
Bt.call(T, J) && !ya.hasOwnProperty(J) && (K[J] = T[J]);
|
|
437
437
|
if (d && d.defaultProps) {
|
|
438
|
-
var
|
|
439
|
-
for (J in
|
|
440
|
-
K[J] === void 0 && (K[J] =
|
|
438
|
+
var se = d.defaultProps;
|
|
439
|
+
for (J in se)
|
|
440
|
+
K[J] === void 0 && (K[J] = se[J]);
|
|
441
441
|
}
|
|
442
|
-
if (Y ||
|
|
443
|
-
var
|
|
444
|
-
Y && Ta(K,
|
|
442
|
+
if (Y || Te) {
|
|
443
|
+
var ce = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
444
|
+
Y && Ta(K, ce), Te && wa(K, ce);
|
|
445
445
|
}
|
|
446
|
-
return
|
|
446
|
+
return Sa(d, Y, Te, q, F, mt.current, K);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var dn = x.ReactCurrentOwner, Zr = x.ReactDebugCurrentFrame;
|
|
@@ -462,7 +462,7 @@ function Ua() {
|
|
|
462
462
|
function Jr() {
|
|
463
463
|
{
|
|
464
464
|
if (dn.current) {
|
|
465
|
-
var d =
|
|
465
|
+
var d = ae(dn.current.type);
|
|
466
466
|
if (d)
|
|
467
467
|
return `
|
|
468
468
|
|
|
@@ -505,7 +505,7 @@ Check the top-level render call using <` + j + ">.");
|
|
|
505
505
|
return;
|
|
506
506
|
Qr[j] = !0;
|
|
507
507
|
var F = "";
|
|
508
|
-
d && d._owner && d._owner !== dn.current && (F = " It was passed a child from " +
|
|
508
|
+
d && d._owner && d._owner !== dn.current && (F = " It was passed a child from " + ae(d._owner.type) + "."), Qe(d), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', j, F), Qe(null);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
function ti(d, T) {
|
|
@@ -540,14 +540,14 @@ Check the top-level render call using <` + j + ">.");
|
|
|
540
540
|
else
|
|
541
541
|
return;
|
|
542
542
|
if (j) {
|
|
543
|
-
var F =
|
|
543
|
+
var F = ae(T);
|
|
544
544
|
ha(j, d.props, "prop", F, d);
|
|
545
545
|
} else if (T.PropTypes !== void 0 && !hn) {
|
|
546
546
|
hn = !0;
|
|
547
|
-
var q =
|
|
548
|
-
|
|
547
|
+
var q = ae(T);
|
|
548
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
|
|
549
549
|
}
|
|
550
|
-
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved &&
|
|
550
|
+
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
function ja(d) {
|
|
@@ -555,11 +555,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
555
555
|
for (var T = Object.keys(d.props), j = 0; j < T.length; j++) {
|
|
556
556
|
var F = T[j];
|
|
557
557
|
if (F !== "children" && F !== "key") {
|
|
558
|
-
Qe(d),
|
|
558
|
+
Qe(d), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), Qe(null);
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
d.ref !== null && (Qe(d),
|
|
562
|
+
d.ref !== null && (Qe(d), S("Invalid attribute `ref` supplied to `React.Fragment`."), Qe(null));
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
function ni(d, T, j, F, q, J) {
|
|
@@ -568,14 +568,14 @@ Check the top-level render call using <` + j + ">.");
|
|
|
568
568
|
if (!K) {
|
|
569
569
|
var Y = "";
|
|
570
570
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (Y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
571
|
-
var
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
d === null ?
|
|
571
|
+
var Te = Ca(q);
|
|
572
|
+
Te ? Y += Te : Y += Jr();
|
|
573
|
+
var se;
|
|
574
|
+
d === null ? se = "null" : un(d) ? se = "array" : d !== void 0 && d.$$typeof === t ? (se = "<" + (ae(d.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : se = typeof d, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, Y);
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
576
|
+
var ce = Pa(d, T, j, q, J);
|
|
577
|
+
if (ce == null)
|
|
578
|
+
return ce;
|
|
579
579
|
if (K) {
|
|
580
580
|
var Re = T.children;
|
|
581
581
|
if (Re !== void 0)
|
|
@@ -585,11 +585,11 @@ Check the top-level render call using <` + j + ">.");
|
|
|
585
585
|
ti(Re[et], d);
|
|
586
586
|
Object.freeze && Object.freeze(Re);
|
|
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
590
|
ti(Re, d);
|
|
591
591
|
}
|
|
592
|
-
return d === r ? ja(
|
|
592
|
+
return d === r ? ja(ce) : Ra(ce), ce;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
function Aa(d, T, j) {
|
|
@@ -633,22 +633,22 @@ class wt {
|
|
|
633
633
|
isSending: f,
|
|
634
634
|
isEdited: h
|
|
635
635
|
}) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
636
|
+
we(this, "id", "0");
|
|
637
|
+
we(this, "text", "");
|
|
638
|
+
we(this, "createdDate", "");
|
|
639
|
+
we(this, "attachmentUrl", "");
|
|
640
|
+
we(this, "attachmentBlob");
|
|
641
|
+
we(this, "attachmentType");
|
|
642
|
+
we(this, "attachmentFormat", "");
|
|
643
|
+
we(this, "user", { id: "" });
|
|
644
|
+
we(this, "isRightSided", !1);
|
|
645
|
+
we(this, "symbols");
|
|
646
|
+
we(this, "isSending");
|
|
647
|
+
we(this, "isEdited");
|
|
648
|
+
we(this, "updateId", (t) => {
|
|
649
649
|
this.id = t;
|
|
650
650
|
});
|
|
651
|
-
|
|
651
|
+
we(this, "updateIsSending", (t) => {
|
|
652
652
|
this.isSending = t;
|
|
653
653
|
});
|
|
654
654
|
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, this.isEdited = h;
|
|
@@ -656,7 +656,7 @@ class wt {
|
|
|
656
656
|
}
|
|
657
657
|
const ir = ut({});
|
|
658
658
|
function sr(e) {
|
|
659
|
-
const t =
|
|
659
|
+
const t = ge(null);
|
|
660
660
|
return t.current === null && (t.current = e()), t.current;
|
|
661
661
|
}
|
|
662
662
|
const rn = /* @__PURE__ */ ut(null), or = ut({
|
|
@@ -680,13 +680,13 @@ class Wa extends nr.Component {
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function za({ children: e, isPresent: t, anchorX: n }) {
|
|
683
|
-
const r = rr(), i =
|
|
683
|
+
const r = rr(), i = ge(null), s = ge({
|
|
684
684
|
width: 0,
|
|
685
685
|
height: 0,
|
|
686
686
|
top: 0,
|
|
687
687
|
left: 0,
|
|
688
688
|
right: 0
|
|
689
|
-
}), { nonce: o } =
|
|
689
|
+
}), { nonce: o } = ye(or);
|
|
690
690
|
return Vs(() => {
|
|
691
691
|
const { width: l, height: a, top: u, left: c, right: f } = s.current;
|
|
692
692
|
if (t || !i.current || !l || !a)
|
|
@@ -735,7 +735,7 @@ function Ka() {
|
|
|
735
735
|
return /* @__PURE__ */ new Map();
|
|
736
736
|
}
|
|
737
737
|
function Ls(e = !0) {
|
|
738
|
-
const t =
|
|
738
|
+
const t = ye(rn);
|
|
739
739
|
if (t === null)
|
|
740
740
|
return [!0, null];
|
|
741
741
|
const { isPresent: n, onExitComplete: r, register: i } = t, s = rr();
|
|
@@ -746,7 +746,7 @@ function Ls(e = !0) {
|
|
|
746
746
|
const o = nn(() => e && r && r(s), [s, r, e]);
|
|
747
747
|
return !n && r ? [!1, o] : [!0];
|
|
748
748
|
}
|
|
749
|
-
const
|
|
749
|
+
const Ut = (e) => e.key || "";
|
|
750
750
|
function oi(e) {
|
|
751
751
|
const t = [];
|
|
752
752
|
return ka.forEach(e, (n) => {
|
|
@@ -754,27 +754,27 @@ function oi(e) {
|
|
|
754
754
|
}), t;
|
|
755
755
|
}
|
|
756
756
|
const ar = typeof window < "u", ks = ar ? Ia : ft, _s = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: l = "left" }) => {
|
|
757
|
-
const [a, u] = Ls(o), c = Xe(() => oi(e), [e]), f = o && !a ? [] : c.map(
|
|
757
|
+
const [a, u] = Ls(o), c = Xe(() => oi(e), [e]), f = o && !a ? [] : c.map(Ut), h = ge(!0), m = ge(c), v = sr(() => /* @__PURE__ */ new Map()), [y, w] = me(c), [x, S] = me(c);
|
|
758
758
|
ks(() => {
|
|
759
759
|
h.current = !1, m.current = c;
|
|
760
760
|
for (let g = 0; g < x.length; g++) {
|
|
761
|
-
const E =
|
|
761
|
+
const E = Ut(x[g]);
|
|
762
762
|
f.includes(E) ? v.delete(E) : v.get(E) !== !0 && v.set(E, !1);
|
|
763
763
|
}
|
|
764
764
|
}, [x, f.length, f.join("-")]);
|
|
765
|
-
const
|
|
765
|
+
const P = [];
|
|
766
766
|
if (c !== y) {
|
|
767
767
|
let g = [...c];
|
|
768
768
|
for (let E = 0; E < x.length; E++) {
|
|
769
|
-
const z = x[E], C =
|
|
770
|
-
f.includes(C) || (g.splice(E, 0, z),
|
|
769
|
+
const z = x[E], C = Ut(z);
|
|
770
|
+
f.includes(C) || (g.splice(E, 0, z), P.push(z));
|
|
771
771
|
}
|
|
772
|
-
return s === "wait" &&
|
|
772
|
+
return s === "wait" && P.length && (g = P), S(oi(g)), w(c), null;
|
|
773
773
|
}
|
|
774
774
|
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.`);
|
|
775
|
-
const { forceRender: O } =
|
|
775
|
+
const { forceRender: O } = ye(ir);
|
|
776
776
|
return p.exports.jsx(p.exports.Fragment, { children: x.map((g) => {
|
|
777
|
-
const E =
|
|
777
|
+
const E = Ut(g), z = o && !a ? !1 : c === x || f.includes(E), C = () => {
|
|
778
778
|
if (v.has(E))
|
|
779
779
|
v.set(E, !0);
|
|
780
780
|
else
|
|
@@ -782,12 +782,12 @@ const ar = typeof window < "u", ks = ar ? Ia : ft, _s = ({ children: e, custom:
|
|
|
782
782
|
let N = !0;
|
|
783
783
|
v.forEach((G) => {
|
|
784
784
|
G || (N = !1);
|
|
785
|
-
}), N && (O == null || O(),
|
|
785
|
+
}), N && (O == null || O(), S(m.current), o && (u == null || u()), r && r());
|
|
786
786
|
};
|
|
787
787
|
return p.exports.jsx(Ya, { isPresent: z, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: z ? void 0 : C, anchorX: l, children: g }, E);
|
|
788
788
|
}) });
|
|
789
|
-
},
|
|
790
|
-
let dt =
|
|
789
|
+
}, Ce = (e) => e;
|
|
790
|
+
let dt = Ce, Be = Ce;
|
|
791
791
|
process.env.NODE_ENV !== "production" && (dt = (e, t) => {
|
|
792
792
|
!e && typeof console < "u" && console.warn(t);
|
|
793
793
|
}, Be = (e, t) => {
|
|
@@ -804,7 +804,7 @@ const at = (e, t, n) => {
|
|
|
804
804
|
}, Me = (e) => e * 1e3, _e = (e) => e / 1e3, Is = {
|
|
805
805
|
skipAnimations: !1,
|
|
806
806
|
useManualTiming: !1
|
|
807
|
-
},
|
|
807
|
+
}, Wt = [
|
|
808
808
|
"read",
|
|
809
809
|
"resolveKeyframes",
|
|
810
810
|
"update",
|
|
@@ -851,21 +851,21 @@ function Ns(e, t) {
|
|
|
851
851
|
delta: 0,
|
|
852
852
|
timestamp: 0,
|
|
853
853
|
isProcessing: !1
|
|
854
|
-
}, s = () => n = !0, o =
|
|
854
|
+
}, s = () => n = !0, o = Wt.reduce((x, S) => (x[S] = Ga(s, t ? S : void 0), x), {}), { read: l, resolveKeyframes: a, update: u, preRender: c, render: f, postRender: h } = o, m = () => {
|
|
855
855
|
const x = performance.now();
|
|
856
856
|
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, qa), 1), i.timestamp = x, i.isProcessing = !0, l.process(i), a.process(i), u.process(i), c.process(i), f.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(m));
|
|
857
857
|
}, v = () => {
|
|
858
858
|
n = !0, r = !0, i.isProcessing || e(m);
|
|
859
859
|
};
|
|
860
|
-
return { schedule:
|
|
861
|
-
const
|
|
862
|
-
return x[
|
|
860
|
+
return { schedule: Wt.reduce((x, S) => {
|
|
861
|
+
const P = o[S];
|
|
862
|
+
return x[S] = (O, g = !1, E = !1) => (n || v(), P.schedule(O, g, E)), x;
|
|
863
863
|
}, {}), cancel: (x) => {
|
|
864
|
-
for (let
|
|
865
|
-
o[
|
|
864
|
+
for (let S = 0; S < Wt.length; S++)
|
|
865
|
+
o[Wt[S]].cancel(x);
|
|
866
866
|
}, state: i, steps: o };
|
|
867
867
|
}
|
|
868
|
-
const { schedule: Q, cancel: $e, state:
|
|
868
|
+
const { schedule: Q, cancel: $e, state: de, steps: mn } = Ns(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Ce, !0), Fs = ut({ strict: !1 }), ai = {
|
|
869
869
|
animation: [
|
|
870
870
|
"animate",
|
|
871
871
|
"variants",
|
|
@@ -928,12 +928,12 @@ const Xa = /* @__PURE__ */ new Set([
|
|
|
928
928
|
"ignoreStrict",
|
|
929
929
|
"viewport"
|
|
930
930
|
]);
|
|
931
|
-
function
|
|
931
|
+
function Ht(e) {
|
|
932
932
|
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Xa.has(e);
|
|
933
933
|
}
|
|
934
|
-
let Bs = (e) => !
|
|
934
|
+
let Bs = (e) => !Ht(e);
|
|
935
935
|
function Za(e) {
|
|
936
|
-
e && (Bs = (t) => t.startsWith("on") ? !
|
|
936
|
+
e && (Bs = (t) => t.startsWith("on") ? !Ht(t) : e(t));
|
|
937
937
|
}
|
|
938
938
|
try {
|
|
939
939
|
Za(require("@emotion/is-prop-valid").default);
|
|
@@ -942,7 +942,7 @@ try {
|
|
|
942
942
|
function Ja(e, t, n) {
|
|
943
943
|
const r = {};
|
|
944
944
|
for (const i in e)
|
|
945
|
-
i === "values" && typeof e.values == "object" || (Bs(i) || n === !0 &&
|
|
945
|
+
i === "values" && typeof e.values == "object" || (Bs(i) || n === !0 && Ht(i) || !t && !Ht(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
946
946
|
return r;
|
|
947
947
|
}
|
|
948
948
|
const li = /* @__PURE__ */ new Set();
|
|
@@ -990,7 +990,7 @@ function el(e, t) {
|
|
|
990
990
|
return e.inherit !== !1 ? t : {};
|
|
991
991
|
}
|
|
992
992
|
function tl(e) {
|
|
993
|
-
const { initial: t, animate: n } = el(e,
|
|
993
|
+
const { initial: t, animate: n } = el(e, ye(on));
|
|
994
994
|
return Xe(() => ({ initial: t, animate: n }), [ci(t), ci(n)]);
|
|
995
995
|
}
|
|
996
996
|
function ci(e) {
|
|
@@ -1011,7 +1011,7 @@ function rl(e, t, n) {
|
|
|
1011
1011
|
const fr = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), il = "framerAppearId", Us = "data-" + fr(il), { schedule: dr, cancel: th } = Ns(queueMicrotask, !1), Ws = ut({});
|
|
1012
1012
|
function sl(e, t, n, r, i) {
|
|
1013
1013
|
var s, o;
|
|
1014
|
-
const { visualElement: l } =
|
|
1014
|
+
const { visualElement: l } = ye(on), a = ye(Fs), u = ye(rn), c = ye(or).reducedMotion, f = ge(null);
|
|
1015
1015
|
r = r || a.renderer, !f.current && r && (f.current = r(e, {
|
|
1016
1016
|
visualState: t,
|
|
1017
1017
|
parent: l,
|
|
@@ -1020,13 +1020,13 @@ function sl(e, t, n, r, i) {
|
|
|
1020
1020
|
blockInitialAnimation: u ? u.initial === !1 : !1,
|
|
1021
1021
|
reducedMotionConfig: c
|
|
1022
1022
|
}));
|
|
1023
|
-
const h = f.current, m =
|
|
1023
|
+
const h = f.current, m = ye(Ws);
|
|
1024
1024
|
h && !h.projection && i && (h.type === "html" || h.type === "svg") && ol(f.current, n, i, m);
|
|
1025
|
-
const v =
|
|
1025
|
+
const v = ge(!1);
|
|
1026
1026
|
Vs(() => {
|
|
1027
1027
|
h && v.current && h.update(n, u);
|
|
1028
1028
|
});
|
|
1029
|
-
const y = n[Us], w =
|
|
1029
|
+
const y = n[Us], w = ge(Boolean(y) && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, y)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, y)));
|
|
1030
1030
|
return ks(() => {
|
|
1031
1031
|
h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), dr.render(h.render), w.current && h.animationState && h.animationState.animateChanges());
|
|
1032
1032
|
}), ft(() => {
|
|
@@ -1059,7 +1059,7 @@ function al({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1059
1059
|
function l(u, c) {
|
|
1060
1060
|
let f;
|
|
1061
1061
|
const h = {
|
|
1062
|
-
...
|
|
1062
|
+
...ye(or),
|
|
1063
1063
|
...u,
|
|
1064
1064
|
layoutId: ll(u)
|
|
1065
1065
|
}, { isStatic: m } = h, v = tl(u), y = r(u, m);
|
|
@@ -1071,15 +1071,15 @@ function al({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1071
1071
|
return p.exports.jsxs(on.Provider, { value: v, children: [f && v.visualElement ? p.exports.jsx(f, { visualElement: v.visualElement, ...h }) : null, n(i, u, rl(y, v.visualElement, c), y, m, v.visualElement)] });
|
|
1072
1072
|
}
|
|
1073
1073
|
l.displayName = `motion.${typeof i == "string" ? i : `create(${(o = (s = i.displayName) !== null && s !== void 0 ? s : i.name) !== null && o !== void 0 ? o : ""})`}`;
|
|
1074
|
-
const a =
|
|
1074
|
+
const a = kt(l);
|
|
1075
1075
|
return a[nl] = i, a;
|
|
1076
1076
|
}
|
|
1077
1077
|
function ll({ layoutId: e }) {
|
|
1078
|
-
const t =
|
|
1078
|
+
const t = ye(ir).id;
|
|
1079
1079
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
1080
1080
|
}
|
|
1081
1081
|
function cl(e, t) {
|
|
1082
|
-
const n =
|
|
1082
|
+
const n = ye(Fs).strict;
|
|
1083
1083
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
1084
1084
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1085
1085
|
e.ignoreStrict ? dt(!1, r) : Be(!1, r);
|
|
@@ -1122,21 +1122,21 @@ const ht = [
|
|
|
1122
1122
|
function Ks(e, { layout: t, layoutId: n }) {
|
|
1123
1123
|
return Ze.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!At[e] || e === "opacity");
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const ve = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Ie = (e, t, n) => n > t ? t : n < e ? e : n, pt = {
|
|
1126
1126
|
test: (e) => typeof e == "number",
|
|
1127
1127
|
parse: parseFloat,
|
|
1128
1128
|
transform: (e) => e
|
|
1129
1129
|
}, Dt = {
|
|
1130
1130
|
...pt,
|
|
1131
1131
|
transform: (e) => Ie(0, 1, e)
|
|
1132
|
-
},
|
|
1132
|
+
}, zt = {
|
|
1133
1133
|
...pt,
|
|
1134
1134
|
default: 1
|
|
1135
|
-
},
|
|
1135
|
+
}, _t = (e) => ({
|
|
1136
1136
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
1137
1137
|
parse: parseFloat,
|
|
1138
1138
|
transform: (t) => `${t}${e}`
|
|
1139
|
-
}), Ne = /* @__PURE__ */
|
|
1139
|
+
}), Ne = /* @__PURE__ */ _t("deg"), Ve = /* @__PURE__ */ _t("%"), I = /* @__PURE__ */ _t("px"), pl = /* @__PURE__ */ _t("vh"), ml = /* @__PURE__ */ _t("vw"), ui = {
|
|
1140
1140
|
...Ve,
|
|
1141
1141
|
parse: (e) => Ve.parse(e) / 100,
|
|
1142
1142
|
transform: (e) => Ve.transform(e * 100)
|
|
@@ -1177,10 +1177,10 @@ const ye = (e) => Boolean(e && e.getVelocity), Gs = (e, t) => t && typeof e == "
|
|
|
1177
1177
|
rotateX: Ne,
|
|
1178
1178
|
rotateY: Ne,
|
|
1179
1179
|
rotateZ: Ne,
|
|
1180
|
-
scale:
|
|
1181
|
-
scaleX:
|
|
1182
|
-
scaleY:
|
|
1183
|
-
scaleZ:
|
|
1180
|
+
scale: zt,
|
|
1181
|
+
scaleX: zt,
|
|
1182
|
+
scaleY: zt,
|
|
1183
|
+
scaleZ: zt,
|
|
1184
1184
|
skew: Ne,
|
|
1185
1185
|
skewX: Ne,
|
|
1186
1186
|
skewY: Ne,
|
|
@@ -1262,7 +1262,7 @@ const yr = () => ({
|
|
|
1262
1262
|
});
|
|
1263
1263
|
function qs(e, t, n) {
|
|
1264
1264
|
for (const r in t)
|
|
1265
|
-
!
|
|
1265
|
+
!ve(t[r]) && !Ks(r, n) && (e[r] = t[r]);
|
|
1266
1266
|
}
|
|
1267
1267
|
function Tl({ transformTemplate: e }, t) {
|
|
1268
1268
|
return Xe(() => {
|
|
@@ -1274,11 +1274,11 @@ function wl(e, t) {
|
|
|
1274
1274
|
const n = e.style || {}, r = {};
|
|
1275
1275
|
return qs(r, n, e), Object.assign(r, Tl(e, t)), r;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Sl(e, t) {
|
|
1278
1278
|
const n = {}, r = wl(e, t);
|
|
1279
1279
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
1280
1280
|
}
|
|
1281
|
-
const
|
|
1281
|
+
const Pl = [
|
|
1282
1282
|
"animate",
|
|
1283
1283
|
"circle",
|
|
1284
1284
|
"defs",
|
|
@@ -1306,7 +1306,7 @@ const Sl = [
|
|
|
1306
1306
|
"view"
|
|
1307
1307
|
];
|
|
1308
1308
|
function vr(e) {
|
|
1309
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(
|
|
1309
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(Pl.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
1310
1310
|
}
|
|
1311
1311
|
const Cl = {
|
|
1312
1312
|
offset: "stroke-dashoffset",
|
|
@@ -1368,7 +1368,7 @@ function Al(e, t, n, r) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
function Dl(e = !1) {
|
|
1370
1370
|
return (n, r, i, { latestValues: s }, o) => {
|
|
1371
|
-
const a = (vr(n) ? Al :
|
|
1371
|
+
const a = (vr(n) ? Al : Sl)(r, s, o, n), u = Ja(r, typeof n == "string", e), c = n !== Os ? { ...u, ...a, ref: i } : {}, { children: f } = r, h = Xe(() => ve(f) ? f.get() : f, [f]);
|
|
1372
1372
|
return Na(n, {
|
|
1373
1373
|
...c,
|
|
1374
1374
|
children: h
|
|
@@ -1393,8 +1393,8 @@ function Tr(e, t, n, r) {
|
|
|
1393
1393
|
return t;
|
|
1394
1394
|
}
|
|
1395
1395
|
const _n = (e) => Array.isArray(e), Ml = (e) => Boolean(e && typeof e == "object" && e.mix && e.toValue), Vl = (e) => _n(e) ? e[e.length - 1] || 0 : e;
|
|
1396
|
-
function
|
|
1397
|
-
const t =
|
|
1396
|
+
function Kt(e) {
|
|
1397
|
+
const t = ve(e) ? e.get() : e;
|
|
1398
1398
|
return Ml(t) ? t.toValue() : t;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Ol({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
|
|
@@ -1405,13 +1405,13 @@ function Ol({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n
|
|
|
1405
1405
|
return n && (o.onMount = (l) => n({ props: r, current: l, ...o }), o.onUpdate = (l) => n(l)), o;
|
|
1406
1406
|
}
|
|
1407
1407
|
const Xs = (e) => (t, n) => {
|
|
1408
|
-
const r =
|
|
1408
|
+
const r = ye(on), i = ye(rn), s = () => Ol(e, t, r, i);
|
|
1409
1409
|
return n ? s() : sr(s);
|
|
1410
1410
|
};
|
|
1411
1411
|
function Ll(e, t, n, r) {
|
|
1412
1412
|
const i = {}, s = r(e, {});
|
|
1413
1413
|
for (const h in s)
|
|
1414
|
-
i[h] =
|
|
1414
|
+
i[h] = Kt(s[h]);
|
|
1415
1415
|
let { initial: o, animate: l } = e;
|
|
1416
1416
|
const a = ln(e), u = $s(e);
|
|
1417
1417
|
t && u && !a && e.inherit !== !1 && (o === void 0 && (o = t.initial), l === void 0 && (l = t.animate));
|
|
@@ -1424,16 +1424,16 @@ function Ll(e, t, n, r) {
|
|
|
1424
1424
|
const v = Tr(e, h[m]);
|
|
1425
1425
|
if (v) {
|
|
1426
1426
|
const { transitionEnd: y, transition: w, ...x } = v;
|
|
1427
|
-
for (const
|
|
1428
|
-
let
|
|
1429
|
-
if (Array.isArray(
|
|
1430
|
-
const O = c ?
|
|
1431
|
-
|
|
1427
|
+
for (const S in x) {
|
|
1428
|
+
let P = x[S];
|
|
1429
|
+
if (Array.isArray(P)) {
|
|
1430
|
+
const O = c ? P.length - 1 : 0;
|
|
1431
|
+
P = P[O];
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
P !== null && (i[S] = P);
|
|
1434
1434
|
}
|
|
1435
|
-
for (const
|
|
1436
|
-
i[
|
|
1435
|
+
for (const S in y)
|
|
1436
|
+
i[S] = y[S];
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
@@ -1443,7 +1443,7 @@ function wr(e, t, n) {
|
|
|
1443
1443
|
var r;
|
|
1444
1444
|
const { style: i } = e, s = {};
|
|
1445
1445
|
for (const o in i)
|
|
1446
|
-
(
|
|
1446
|
+
(ve(i[o]) || t.style && ve(t.style[o]) || Ks(o, e) || ((r = n == null ? void 0 : n.getValue(o)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (s[o] = i[o]);
|
|
1447
1447
|
return s;
|
|
1448
1448
|
}
|
|
1449
1449
|
const kl = {
|
|
@@ -1502,7 +1502,7 @@ function eo(e, t, n, r) {
|
|
|
1502
1502
|
function to(e, t, n) {
|
|
1503
1503
|
const r = wr(e, t, n);
|
|
1504
1504
|
for (const i in e)
|
|
1505
|
-
if (
|
|
1505
|
+
if (ve(e[i]) || ve(t[i])) {
|
|
1506
1506
|
const s = ht.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
1507
1507
|
r[s] = e[i];
|
|
1508
1508
|
}
|
|
@@ -1628,7 +1628,7 @@ class Bl extends Fl {
|
|
|
1628
1628
|
return Promise.all(this.animations).then(t).catch(n);
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Sr(e, t) {
|
|
1632
1632
|
return e ? e[t] || e.default || e : void 0;
|
|
1633
1633
|
}
|
|
1634
1634
|
const In = 2e4;
|
|
@@ -1640,7 +1640,7 @@ function no(e) {
|
|
|
1640
1640
|
t += n, r = e.next(t);
|
|
1641
1641
|
return t >= In ? 1 / 0 : t;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Pr(e) {
|
|
1644
1644
|
return typeof e == "function";
|
|
1645
1645
|
}
|
|
1646
1646
|
function mi(e, t) {
|
|
@@ -1656,7 +1656,7 @@ function Ul(e, t) {
|
|
|
1656
1656
|
return (r = $l[t]) !== null && r !== void 0 ? r : n();
|
|
1657
1657
|
};
|
|
1658
1658
|
}
|
|
1659
|
-
const
|
|
1659
|
+
const Xt = /* @__PURE__ */ Ul(() => {
|
|
1660
1660
|
try {
|
|
1661
1661
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1662
1662
|
} catch {
|
|
@@ -1671,7 +1671,7 @@ const Zt = /* @__PURE__ */ Ul(() => {
|
|
|
1671
1671
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
1672
1672
|
};
|
|
1673
1673
|
function io(e) {
|
|
1674
|
-
return Boolean(typeof e == "function" &&
|
|
1674
|
+
return Boolean(typeof e == "function" && Xt() || !e || typeof e == "string" && (e in Nn || Xt()) || Cr(e) || Array.isArray(e) && e.every(io));
|
|
1675
1675
|
}
|
|
1676
1676
|
const bt = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Nn = {
|
|
1677
1677
|
linear: "linear",
|
|
@@ -1686,7 +1686,7 @@ const bt = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Nn = {
|
|
|
1686
1686
|
};
|
|
1687
1687
|
function so(e, t) {
|
|
1688
1688
|
if (e)
|
|
1689
|
-
return typeof e == "function" &&
|
|
1689
|
+
return typeof e == "function" && Xt() ? ro(e, t) : Cr(e) ? bt(e) : Array.isArray(e) ? e.map((n) => so(n, t) || Nn.easeOut) : Nn[e];
|
|
1690
1690
|
}
|
|
1691
1691
|
const De = {
|
|
1692
1692
|
x: !1,
|
|
@@ -1734,7 +1734,7 @@ function zl(e, t, n = {}) {
|
|
|
1734
1734
|
l.addEventListener("pointerenter", o, i);
|
|
1735
1735
|
}), s;
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Zt(e, t) {
|
|
1738
1738
|
const n = `${t}PointerCapture`;
|
|
1739
1739
|
if (e.target instanceof Element && n in e.target && e.pointerId !== void 0)
|
|
1740
1740
|
try {
|
|
@@ -1784,9 +1784,9 @@ function ql(e, t, n = {}) {
|
|
|
1784
1784
|
const a = l.currentTarget;
|
|
1785
1785
|
if (!a || !vi(l) || Tt.has(a))
|
|
1786
1786
|
return;
|
|
1787
|
-
Tt.add(a),
|
|
1787
|
+
Tt.add(a), Zt(l, "set");
|
|
1788
1788
|
const u = t(a, l), c = (m, v) => {
|
|
1789
|
-
a.removeEventListener("pointerup", f), a.removeEventListener("pointercancel", h),
|
|
1789
|
+
a.removeEventListener("pointerup", f), a.removeEventListener("pointercancel", h), Zt(m, "release"), !(!vi(m) || !Tt.has(a)) && (Tt.delete(a), typeof u == "function" && u(m, { success: v }));
|
|
1790
1790
|
}, f = (m) => {
|
|
1791
1791
|
(m.isTrusted ? Hl(m, a instanceof Element ? a.getBoundingClientRect() : {
|
|
1792
1792
|
left: 0,
|
|
@@ -1824,14 +1824,14 @@ const co = /* @__PURE__ */ new Set([
|
|
|
1824
1824
|
"bottom",
|
|
1825
1825
|
...ht
|
|
1826
1826
|
]);
|
|
1827
|
-
let
|
|
1827
|
+
let Gt;
|
|
1828
1828
|
function Zl() {
|
|
1829
|
-
|
|
1829
|
+
Gt = void 0;
|
|
1830
1830
|
}
|
|
1831
1831
|
const Oe = {
|
|
1832
|
-
now: () => (
|
|
1832
|
+
now: () => (Gt === void 0 && Oe.set(de.isProcessing || Is.useManualTiming ? de.timestamp : performance.now()), Gt),
|
|
1833
1833
|
set: (e) => {
|
|
1834
|
-
|
|
1834
|
+
Gt = e, queueMicrotask(Zl);
|
|
1835
1835
|
}
|
|
1836
1836
|
};
|
|
1837
1837
|
function Rr(e, t) {
|
|
@@ -1960,7 +1960,7 @@ function tc(e, t) {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
|
1962
1962
|
function nc(e) {
|
|
1963
|
-
return Boolean(
|
|
1963
|
+
return Boolean(ve(e) && e.add);
|
|
1964
1964
|
}
|
|
1965
1965
|
function Fn(e, t) {
|
|
1966
1966
|
const n = e.getValue("willChange");
|
|
@@ -1980,17 +1980,17 @@ function oc(e, t, n, r, i) {
|
|
|
1980
1980
|
while (Math.abs(s) > ic && ++l < sc);
|
|
1981
1981
|
return o;
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function It(e, t, n, r) {
|
|
1984
1984
|
if (e === t && n === r)
|
|
1985
|
-
return
|
|
1985
|
+
return Ce;
|
|
1986
1986
|
const i = (s) => oc(s, 0, 1, e, n);
|
|
1987
1987
|
return (s) => s === 0 || s === 1 ? s : ho(i(s), t, r);
|
|
1988
1988
|
}
|
|
1989
|
-
const po = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, mo = (e) => (t) => 1 - e(1 - t), go = /* @__PURE__ */
|
|
1989
|
+
const po = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, mo = (e) => (t) => 1 - e(1 - t), go = /* @__PURE__ */ It(0.33, 1.53, 0.69, 0.99), Dr = /* @__PURE__ */ mo(go), yo = /* @__PURE__ */ po(Dr), vo = (e) => (e *= 2) < 1 ? 0.5 * Dr(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Mr = (e) => 1 - Math.sin(Math.acos(e)), xo = mo(Mr), bo = po(Mr), To = (e) => /^0[^.\s]+$/u.test(e);
|
|
1990
1990
|
function ac(e) {
|
|
1991
1991
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || To(e) : !0;
|
|
1992
1992
|
}
|
|
1993
|
-
const
|
|
1993
|
+
const St = (e) => Math.round(e * 1e5) / 1e5, Vr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
1994
1994
|
function lc(e) {
|
|
1995
1995
|
return e == null;
|
|
1996
1996
|
}
|
|
@@ -2010,7 +2010,7 @@ const cc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
2010
2010
|
}, qe = {
|
|
2011
2011
|
test: /* @__PURE__ */ Or("rgb", "red"),
|
|
2012
2012
|
parse: /* @__PURE__ */ wo("red", "green", "blue"),
|
|
2013
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + yn.transform(e) + ", " + yn.transform(t) + ", " + yn.transform(n) + ", " +
|
|
2013
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + yn.transform(e) + ", " + yn.transform(t) + ", " + yn.transform(n) + ", " + St(Dt.transform(r)) + ")"
|
|
2014
2014
|
};
|
|
2015
2015
|
function fc(e) {
|
|
2016
2016
|
let t = "", n = "", r = "", i = "";
|
|
@@ -2028,8 +2028,8 @@ const Bn = {
|
|
|
2028
2028
|
}, nt = {
|
|
2029
2029
|
test: /* @__PURE__ */ Or("hsl", "hue"),
|
|
2030
2030
|
parse: /* @__PURE__ */ wo("hue", "saturation", "lightness"),
|
|
2031
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ve.transform(
|
|
2032
|
-
},
|
|
2031
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ve.transform(St(t)) + ", " + Ve.transform(St(n)) + ", " + St(Dt.transform(r)) + ")"
|
|
2032
|
+
}, pe = {
|
|
2033
2033
|
test: (e) => qe.test(e) || Bn.test(e) || nt.test(e),
|
|
2034
2034
|
parse: (e) => qe.test(e) ? qe.parse(e) : nt.test(e) ? nt.parse(e) : Bn.parse(e),
|
|
2035
2035
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? qe.transform(e) : nt.transform(e)
|
|
@@ -2038,7 +2038,7 @@ function hc(e) {
|
|
|
2038
2038
|
var t, n;
|
|
2039
2039
|
return isNaN(e) && typeof e == "string" && (((t = e.match(Vr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(dc)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2040
2040
|
}
|
|
2041
|
-
const
|
|
2041
|
+
const So = "number", Po = "color", pc = "var", mc = "var(", bi = "${}", gc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2042
2042
|
function Ot(e) {
|
|
2043
2043
|
const t = e.toString(), n = [], r = {
|
|
2044
2044
|
color: [],
|
|
@@ -2046,7 +2046,7 @@ function Ot(e) {
|
|
|
2046
2046
|
var: []
|
|
2047
2047
|
}, i = [];
|
|
2048
2048
|
let s = 0;
|
|
2049
|
-
const l = t.replace(gc, (a) => (
|
|
2049
|
+
const l = t.replace(gc, (a) => (pe.test(a) ? (r.color.push(s), i.push(Po), n.push(pe.parse(a))) : a.startsWith(mc) ? (r.var.push(s), i.push(pc), n.push(a)) : (r.number.push(s), i.push(So), n.push(parseFloat(a))), ++s, bi)).split(bi);
|
|
2050
2050
|
return { values: n, split: l, indexes: r, types: i };
|
|
2051
2051
|
}
|
|
2052
2052
|
function Co(e) {
|
|
@@ -2059,7 +2059,7 @@ function Eo(e) {
|
|
|
2059
2059
|
for (let o = 0; o < r; o++)
|
|
2060
2060
|
if (s += t[o], i[o] !== void 0) {
|
|
2061
2061
|
const l = n[o];
|
|
2062
|
-
l ===
|
|
2062
|
+
l === So ? s += St(i[o]) : l === Po ? s += pe.transform(i[o]) : s += i[o];
|
|
2063
2063
|
}
|
|
2064
2064
|
return s;
|
|
2065
2065
|
};
|
|
@@ -2094,16 +2094,16 @@ const Tc = /\b([a-z-]*)\(.*?\)/gu, $n = {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}, wc = {
|
|
2096
2096
|
...mr,
|
|
2097
|
-
color:
|
|
2098
|
-
backgroundColor:
|
|
2099
|
-
outlineColor:
|
|
2100
|
-
fill:
|
|
2101
|
-
stroke:
|
|
2102
|
-
borderColor:
|
|
2103
|
-
borderTopColor:
|
|
2104
|
-
borderRightColor:
|
|
2105
|
-
borderBottomColor:
|
|
2106
|
-
borderLeftColor:
|
|
2097
|
+
color: pe,
|
|
2098
|
+
backgroundColor: pe,
|
|
2099
|
+
outlineColor: pe,
|
|
2100
|
+
fill: pe,
|
|
2101
|
+
stroke: pe,
|
|
2102
|
+
borderColor: pe,
|
|
2103
|
+
borderTopColor: pe,
|
|
2104
|
+
borderRightColor: pe,
|
|
2105
|
+
borderBottomColor: pe,
|
|
2106
|
+
borderLeftColor: pe,
|
|
2107
2107
|
filter: $n,
|
|
2108
2108
|
WebkitFilter: $n
|
|
2109
2109
|
}, Lr = (e) => wc[e];
|
|
@@ -2111,18 +2111,18 @@ function Ro(e, t) {
|
|
|
2111
2111
|
let n = Lr(e);
|
|
2112
2112
|
return n !== $n && (n = Ue), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2113
2113
|
}
|
|
2114
|
-
const
|
|
2115
|
-
function
|
|
2114
|
+
const Sc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2115
|
+
function Pc(e, t, n) {
|
|
2116
2116
|
let r = 0, i;
|
|
2117
2117
|
for (; r < e.length && !i; ) {
|
|
2118
2118
|
const s = e[r];
|
|
2119
|
-
typeof s == "string" && !
|
|
2119
|
+
typeof s == "string" && !Sc.has(s) && Ot(s).values.length && (i = e[r]), r++;
|
|
2120
2120
|
}
|
|
2121
2121
|
if (i && n)
|
|
2122
2122
|
for (const s of t)
|
|
2123
2123
|
e[s] = Ro(n, i);
|
|
2124
2124
|
}
|
|
2125
|
-
const Ti = (e) => e === pt || e === I, wi = (e, t) => parseFloat(e.split(", ")[t]),
|
|
2125
|
+
const Ti = (e) => e === pt || e === I, wi = (e, t) => parseFloat(e.split(", ")[t]), Si = (e, t) => (n, { transform: r }) => {
|
|
2126
2126
|
if (r === "none" || !r)
|
|
2127
2127
|
return 0;
|
|
2128
2128
|
const i = r.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -2147,8 +2147,8 @@ const ct = {
|
|
|
2147
2147
|
left: (e, { left: t }) => parseFloat(t),
|
|
2148
2148
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
2149
2149
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
2150
|
-
x:
|
|
2151
|
-
y:
|
|
2150
|
+
x: Si(4, 13),
|
|
2151
|
+
y: Si(5, 14)
|
|
2152
2152
|
};
|
|
2153
2153
|
ct.translateX = ct.x;
|
|
2154
2154
|
ct.translateY = ct.y;
|
|
@@ -2246,7 +2246,7 @@ function Mo(e, t, n = 1) {
|
|
|
2246
2246
|
const Vo = (e) => (t) => t.test(e), Vc = {
|
|
2247
2247
|
test: (e) => e === "auto",
|
|
2248
2248
|
parse: (e) => e
|
|
2249
|
-
}, Oo = [pt, I, Ve, Ne, ml, pl, Vc],
|
|
2249
|
+
}, Oo = [pt, I, Ve, Ne, ml, pl, Vc], Pi = (e) => Oo.find(Vo(e));
|
|
2250
2250
|
class Lo extends kr {
|
|
2251
2251
|
constructor(t, n, r, i, s) {
|
|
2252
2252
|
super(t, n, r, i, s, !0);
|
|
@@ -2265,7 +2265,7 @@ class Lo extends kr {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
if (this.resolveNoneKeyframes(), !co.has(r) || t.length !== 2)
|
|
2267
2267
|
return;
|
|
2268
|
-
const [i, s] = t, o =
|
|
2268
|
+
const [i, s] = t, o = Pi(i), l = Pi(s);
|
|
2269
2269
|
if (o !== l)
|
|
2270
2270
|
if (Ti(o) && Ti(l))
|
|
2271
2271
|
for (let a = 0; a < t.length; a++) {
|
|
@@ -2279,7 +2279,7 @@ class Lo extends kr {
|
|
|
2279
2279
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
2280
2280
|
for (let i = 0; i < t.length; i++)
|
|
2281
2281
|
ac(t[i]) && r.push(i);
|
|
2282
|
-
r.length &&
|
|
2282
|
+
r.length && Pc(t, r, n);
|
|
2283
2283
|
}
|
|
2284
2284
|
measureInitialState() {
|
|
2285
2285
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -2318,7 +2318,7 @@ function Lc(e, t, n, r) {
|
|
|
2318
2318
|
if (t === "display" || t === "visibility")
|
|
2319
2319
|
return !0;
|
|
2320
2320
|
const s = e[e.length - 1], o = Ci(i, t), l = Ci(s, t);
|
|
2321
|
-
return dt(o === l, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !l ? !1 : Oc(e) || (n === "spring" ||
|
|
2321
|
+
return dt(o === l, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !l ? !1 : Oc(e) || (n === "spring" || Pr(n)) && r;
|
|
2322
2322
|
}
|
|
2323
2323
|
const kc = (e) => e !== null;
|
|
2324
2324
|
function cn(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
@@ -2375,7 +2375,7 @@ class ko {
|
|
|
2375
2375
|
});
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
const
|
|
2378
|
+
const Pt = {
|
|
2379
2379
|
layout: 0,
|
|
2380
2380
|
mainThread: 0,
|
|
2381
2381
|
waapi: 0
|
|
@@ -2399,7 +2399,7 @@ function Ic({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
2399
2399
|
alpha: r
|
|
2400
2400
|
};
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2402
|
+
function Jt(e, t) {
|
|
2403
2403
|
return (n) => n > 0 ? t : e;
|
|
2404
2404
|
}
|
|
2405
2405
|
const xn = (e, t, n) => {
|
|
@@ -2416,10 +2416,10 @@ function Ei(e) {
|
|
|
2416
2416
|
const Ri = (e, t) => {
|
|
2417
2417
|
const n = Ei(e), r = Ei(t);
|
|
2418
2418
|
if (!n || !r)
|
|
2419
|
-
return
|
|
2419
|
+
return Jt(e, t);
|
|
2420
2420
|
const i = { ...n };
|
|
2421
2421
|
return (s) => (i.red = xn(n.red, r.red, s), i.green = xn(n.green, r.green, s), i.blue = xn(n.blue, r.blue, s), i.alpha = ne(n.alpha, r.alpha, s), qe.transform(i));
|
|
2422
|
-
}, Bc = (e, t) => (n) => t(e(n)),
|
|
2422
|
+
}, Bc = (e, t) => (n) => t(e(n)), Nt = (...e) => e.reduce(Bc), zn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2423
2423
|
function $c(e, t) {
|
|
2424
2424
|
return zn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
2425
2425
|
}
|
|
@@ -2427,7 +2427,7 @@ function Uc(e, t) {
|
|
|
2427
2427
|
return (n) => ne(e, t, n);
|
|
2428
2428
|
}
|
|
2429
2429
|
function _r(e) {
|
|
2430
|
-
return typeof e == "number" ? Uc : typeof e == "string" ? pr(e) ?
|
|
2430
|
+
return typeof e == "number" ? Uc : typeof e == "string" ? pr(e) ? Jt : pe.test(e) ? Ri : Yc : Array.isArray(e) ? _o : typeof e == "object" ? pe.test(e) ? Ri : Wc : Jt;
|
|
2431
2431
|
}
|
|
2432
2432
|
function _o(e, t) {
|
|
2433
2433
|
const n = [...e], r = n.length, i = e.map((s, o) => _r(s)(s, t[o]));
|
|
@@ -2458,7 +2458,7 @@ function zc(e, t) {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
const Yc = (e, t) => {
|
|
2460
2460
|
const n = Ue.createTransformer(t), r = Ot(e), i = Ot(t);
|
|
2461
|
-
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 ? zn.has(e) && !i.values.length || zn.has(t) && !r.values.length ? $c(e, t) :
|
|
2461
|
+
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 ? zn.has(e) && !i.values.length || zn.has(t) && !r.values.length ? $c(e, t) : Nt(_o(zc(r, i), i.values), n) : (dt(!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.`), Jt(e, t));
|
|
2462
2462
|
};
|
|
2463
2463
|
function Io(e, t, n) {
|
|
2464
2464
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? ne(e, t, n) : _r(e)(e, t);
|
|
@@ -2574,20 +2574,20 @@ function Fo(e = te.visualDuration, t = te.bounce) {
|
|
|
2574
2574
|
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: a, damping: u, mass: c, duration: f, velocity: h, isResolvedFromDuration: m } = Jc({
|
|
2575
2575
|
...n,
|
|
2576
2576
|
velocity: -_e(n.velocity || 0)
|
|
2577
|
-
}), v = h || 0, y = u / (2 * Math.sqrt(a * c)), w = o - s, x = _e(Math.sqrt(a / c)),
|
|
2578
|
-
r || (r =
|
|
2579
|
-
let
|
|
2577
|
+
}), v = h || 0, y = u / (2 * Math.sqrt(a * c)), w = o - s, x = _e(Math.sqrt(a / c)), S = Math.abs(w) < 5;
|
|
2578
|
+
r || (r = S ? te.restSpeed.granular : te.restSpeed.default), i || (i = S ? te.restDelta.granular : te.restDelta.default);
|
|
2579
|
+
let P;
|
|
2580
2580
|
if (y < 1) {
|
|
2581
2581
|
const g = Yn(x, y);
|
|
2582
|
-
|
|
2582
|
+
P = (E) => {
|
|
2583
2583
|
const z = Math.exp(-y * x * E);
|
|
2584
2584
|
return o - z * ((v + y * x * w) / g * Math.sin(g * E) + w * Math.cos(g * E));
|
|
2585
2585
|
};
|
|
2586
2586
|
} else if (y === 1)
|
|
2587
|
-
|
|
2587
|
+
P = (g) => o - Math.exp(-x * g) * (w + (v + x * w) * g);
|
|
2588
2588
|
else {
|
|
2589
2589
|
const g = x * Math.sqrt(y * y - 1);
|
|
2590
|
-
|
|
2590
|
+
P = (E) => {
|
|
2591
2591
|
const z = Math.exp(-y * x * E), C = Math.min(g * E, 300);
|
|
2592
2592
|
return o - z * ((v + y * x * w) * Math.sinh(C) + g * w * Math.cosh(C)) / g;
|
|
2593
2593
|
};
|
|
@@ -2595,12 +2595,12 @@ function Fo(e = te.visualDuration, t = te.bounce) {
|
|
|
2595
2595
|
const O = {
|
|
2596
2596
|
calculatedDuration: m && f || null,
|
|
2597
2597
|
next: (g) => {
|
|
2598
|
-
const E =
|
|
2598
|
+
const E = P(g);
|
|
2599
2599
|
if (m)
|
|
2600
2600
|
l.done = g >= f;
|
|
2601
2601
|
else {
|
|
2602
2602
|
let z = 0;
|
|
2603
|
-
y < 1 && (z = g === 0 ? Me(v) : No(
|
|
2603
|
+
y < 1 && (z = g === 0 ? Me(v) : No(P, g, E));
|
|
2604
2604
|
const C = Math.abs(z) <= r, N = Math.abs(o - E) <= i;
|
|
2605
2605
|
l.done = C && N;
|
|
2606
2606
|
}
|
|
@@ -2621,15 +2621,15 @@ function Ai({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2621
2621
|
let y = n * t;
|
|
2622
2622
|
const w = f + y, x = o === void 0 ? w : o(w);
|
|
2623
2623
|
x !== w && (y = x - f);
|
|
2624
|
-
const
|
|
2625
|
-
const N =
|
|
2624
|
+
const S = (C) => -y * Math.exp(-C / r), P = (C) => x + S(C), O = (C) => {
|
|
2625
|
+
const N = S(C), G = P(C);
|
|
2626
2626
|
h.done = Math.abs(N) <= u, h.value = h.done ? x : G;
|
|
2627
2627
|
};
|
|
2628
2628
|
let g, E;
|
|
2629
2629
|
const z = (C) => {
|
|
2630
2630
|
m(h.value) && (g = C, E = Fo({
|
|
2631
2631
|
keyframes: [h.value, v(h.value)],
|
|
2632
|
-
velocity: No(
|
|
2632
|
+
velocity: No(P, C, h.value),
|
|
2633
2633
|
damping: i,
|
|
2634
2634
|
stiffness: s,
|
|
2635
2635
|
restDelta: u,
|
|
@@ -2644,8 +2644,8 @@ function Ai({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2644
2644
|
}
|
|
2645
2645
|
};
|
|
2646
2646
|
}
|
|
2647
|
-
const Qc = /* @__PURE__ */
|
|
2648
|
-
linear:
|
|
2647
|
+
const Qc = /* @__PURE__ */ It(0.42, 0, 1, 1), eu = /* @__PURE__ */ It(0, 0, 0.58, 1), Bo = /* @__PURE__ */ It(0.42, 0, 0.58, 1), tu = (e) => Array.isArray(e) && typeof e[0] != "number", Di = {
|
|
2648
|
+
linear: Ce,
|
|
2649
2649
|
easeIn: Qc,
|
|
2650
2650
|
easeInOut: Bo,
|
|
2651
2651
|
easeOut: eu,
|
|
@@ -2660,7 +2660,7 @@ const Qc = /* @__PURE__ */ Nt(0.42, 0, 1, 1), eu = /* @__PURE__ */ Nt(0, 0, 0.58
|
|
|
2660
2660
|
if (Cr(e)) {
|
|
2661
2661
|
Be(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2662
2662
|
const [t, n, r, i] = e;
|
|
2663
|
-
return
|
|
2663
|
+
return It(t, n, r, i);
|
|
2664
2664
|
} else if (typeof e == "string")
|
|
2665
2665
|
return Be(Di[e] !== void 0, `Invalid easing type '${e}'`), Di[e];
|
|
2666
2666
|
return e;
|
|
@@ -2670,8 +2670,8 @@ function nu(e, t, n) {
|
|
|
2670
2670
|
for (let o = 0; o < s; o++) {
|
|
2671
2671
|
let l = i(e[o], e[o + 1]);
|
|
2672
2672
|
if (t) {
|
|
2673
|
-
const a = Array.isArray(t) ? t[o] ||
|
|
2674
|
-
l =
|
|
2673
|
+
const a = Array.isArray(t) ? t[o] || Ce : t;
|
|
2674
|
+
l = Nt(a, l);
|
|
2675
2675
|
}
|
|
2676
2676
|
r.push(l);
|
|
2677
2677
|
}
|
|
@@ -2734,7 +2734,7 @@ const lu = (e) => {
|
|
|
2734
2734
|
return {
|
|
2735
2735
|
start: () => Q.update(t, !0),
|
|
2736
2736
|
stop: () => $e(t),
|
|
2737
|
-
now: () =>
|
|
2737
|
+
now: () => de.isProcessing ? de.timestamp : Oe.now()
|
|
2738
2738
|
};
|
|
2739
2739
|
}, cu = {
|
|
2740
2740
|
decay: Ai,
|
|
@@ -2759,9 +2759,9 @@ class Ir extends ko {
|
|
|
2759
2759
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
2760
2760
|
}
|
|
2761
2761
|
initPlayback(t) {
|
|
2762
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l =
|
|
2762
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = Pr(n) ? n : cu[n] || Ct;
|
|
2763
2763
|
let a, u;
|
|
2764
|
-
process.env.NODE_ENV !== "production" && l !== Ct && Be(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l !== Ct && typeof t[0] != "number" && (a =
|
|
2764
|
+
process.env.NODE_ENV !== "production" && l !== Ct && Be(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l !== Ct && typeof t[0] != "number" && (a = Nt(uu, Io(t[0], t[1])), t = [0, 100]);
|
|
2765
2765
|
const c = l({ ...this.options, keyframes: t });
|
|
2766
2766
|
s === "mirror" && (u = l({
|
|
2767
2767
|
...this.options,
|
|
@@ -2780,7 +2780,7 @@ class Ir extends ko {
|
|
|
2780
2780
|
}
|
|
2781
2781
|
onPostResolved() {
|
|
2782
2782
|
const { autoplay: t = !0 } = this.options;
|
|
2783
|
-
|
|
2783
|
+
Pt.mainThread++, this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
|
|
2784
2784
|
}
|
|
2785
2785
|
tick(t, n = !1) {
|
|
2786
2786
|
const { resolved: r } = this;
|
|
@@ -2793,18 +2793,18 @@ class Ir extends ko {
|
|
|
2793
2793
|
return s.next(0);
|
|
2794
2794
|
const { delay: h, repeat: m, repeatType: v, repeatDelay: y, onUpdate: w } = this.options;
|
|
2795
2795
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - c / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed;
|
|
2796
|
-
const x = this.currentTime - h * (this.speed >= 0 ? 1 : -1),
|
|
2796
|
+
const x = this.currentTime - h * (this.speed >= 0 ? 1 : -1), S = this.speed >= 0 ? x < 0 : x > c;
|
|
2797
2797
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
2798
|
-
let
|
|
2798
|
+
let P = this.currentTime, O = s;
|
|
2799
2799
|
if (m) {
|
|
2800
2800
|
const C = Math.min(this.currentTime, c) / f;
|
|
2801
2801
|
let N = Math.floor(C), G = C % 1;
|
|
2802
|
-
!G && C >= 1 && (G = 1), G === 1 && N--, N = Math.min(N, m + 1), Boolean(N % 2) && (v === "reverse" ? (G = 1 - G, y && (G -= y / f)) : v === "mirror" && (O = o)),
|
|
2802
|
+
!G && C >= 1 && (G = 1), G === 1 && N--, N = Math.min(N, m + 1), Boolean(N % 2) && (v === "reverse" ? (G = 1 - G, y && (G -= y / f)) : v === "mirror" && (O = o)), P = Ie(0, 1, G) * f;
|
|
2803
2803
|
}
|
|
2804
|
-
const g =
|
|
2804
|
+
const g = S ? { done: !1, value: a[0] } : O.next(P);
|
|
2805
2805
|
l && (g.value = l(g.value));
|
|
2806
2806
|
let { done: E } = g;
|
|
2807
|
-
!
|
|
2807
|
+
!S && u !== null && (E = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
2808
2808
|
const z = this.holdTime === null && (this.state === "finished" || this.state === "running" && E);
|
|
2809
2809
|
return z && i !== void 0 && (g.value = cn(a, this.options, i)), w && w(g.value), z && this.finish(), g;
|
|
2810
2810
|
}
|
|
@@ -2857,7 +2857,7 @@ class Ir extends ko {
|
|
|
2857
2857
|
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
2858
2858
|
}
|
|
2859
2859
|
teardown() {
|
|
2860
|
-
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel(),
|
|
2860
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel(), Pt.mainThread--;
|
|
2861
2861
|
}
|
|
2862
2862
|
stopDriver() {
|
|
2863
2863
|
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
@@ -2885,9 +2885,9 @@ function du(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTyp
|
|
|
2885
2885
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
2886
2886
|
});
|
|
2887
2887
|
}
|
|
2888
|
-
const hu = /* @__PURE__ */ lr(() => Object.hasOwnProperty.call(Element.prototype, "animate")),
|
|
2888
|
+
const hu = /* @__PURE__ */ lr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Qt = 10, pu = 2e4;
|
|
2889
2889
|
function mu(e) {
|
|
2890
|
-
return
|
|
2890
|
+
return Pr(e.type) || e.type === "spring" || !io(e.ease);
|
|
2891
2891
|
}
|
|
2892
2892
|
function gu(e, t) {
|
|
2893
2893
|
const n = new Ir({
|
|
@@ -2901,11 +2901,11 @@ function gu(e, t) {
|
|
|
2901
2901
|
const i = [];
|
|
2902
2902
|
let s = 0;
|
|
2903
2903
|
for (; !r.done && s < pu; )
|
|
2904
|
-
r = n.sample(s), i.push(r.value), s +=
|
|
2904
|
+
r = n.sample(s), i.push(r.value), s += Qt;
|
|
2905
2905
|
return {
|
|
2906
2906
|
times: void 0,
|
|
2907
2907
|
keyframes: i,
|
|
2908
|
-
duration: s -
|
|
2908
|
+
duration: s - Qt,
|
|
2909
2909
|
ease: "linear"
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
@@ -2927,7 +2927,7 @@ class Vi extends ko {
|
|
|
2927
2927
|
let { duration: r = 300, times: i, ease: s, type: o, motionValue: l, name: a, startTime: u } = this.options;
|
|
2928
2928
|
if (!l.owner || !l.owner.current)
|
|
2929
2929
|
return !1;
|
|
2930
|
-
if (typeof s == "string" &&
|
|
2930
|
+
if (typeof s == "string" && Xt() && yu(s) && (s = $o[s]), mu(this.options)) {
|
|
2931
2931
|
const { onComplete: f, onUpdate: h, motionValue: m, element: v, ...y } = this.options, w = gu(t, y);
|
|
2932
2932
|
t = w.keyframes, t.length === 1 && (t[1] = t[0]), r = w.duration, i = w.times, s = w.ease, o = "keyframes";
|
|
2933
2933
|
}
|
|
@@ -2999,11 +2999,11 @@ class Vi extends ko {
|
|
|
2999
2999
|
else {
|
|
3000
3000
|
const { resolved: n } = this;
|
|
3001
3001
|
if (!n)
|
|
3002
|
-
return
|
|
3002
|
+
return Ce;
|
|
3003
3003
|
const { animation: r } = n;
|
|
3004
3004
|
mi(r, t);
|
|
3005
3005
|
}
|
|
3006
|
-
return
|
|
3006
|
+
return Ce;
|
|
3007
3007
|
}
|
|
3008
3008
|
play() {
|
|
3009
3009
|
if (this.isStopped)
|
|
@@ -3041,7 +3041,7 @@ class Vi extends ko {
|
|
|
3041
3041
|
times: l,
|
|
3042
3042
|
isGenerator: !0
|
|
3043
3043
|
}), y = Me(this.time);
|
|
3044
|
-
u.setWithVelocity(v.sample(y -
|
|
3044
|
+
u.setWithVelocity(v.sample(y - Qt).value, v.sample(y).value, Qt);
|
|
3045
3045
|
}
|
|
3046
3046
|
const { onStop: a } = this.options;
|
|
3047
3047
|
a && a(), this.cancel();
|
|
@@ -3080,11 +3080,11 @@ const vu = {
|
|
|
3080
3080
|
ease: [0.25, 0.1, 0.35, 1],
|
|
3081
3081
|
duration: 0.3
|
|
3082
3082
|
}, wu = (e, { keyframes: t }) => t.length > 2 ? bu : Ze.has(e) ? e.startsWith("scale") ? xu(t[1]) : vu : Tu;
|
|
3083
|
-
function
|
|
3083
|
+
function Su({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: l, from: a, elapsed: u, ...c }) {
|
|
3084
3084
|
return !!Object.keys(c).length;
|
|
3085
3085
|
}
|
|
3086
3086
|
const Nr = (e, t, n, r = {}, i, s) => (o) => {
|
|
3087
|
-
const l =
|
|
3087
|
+
const l = Sr(r, e) || {}, a = l.delay || r.delay || 0;
|
|
3088
3088
|
let { elapsed: u = 0 } = r;
|
|
3089
3089
|
u = u - Me(a);
|
|
3090
3090
|
let c = {
|
|
@@ -3103,7 +3103,7 @@ const Nr = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
3103
3103
|
motionValue: t,
|
|
3104
3104
|
element: s ? void 0 : i
|
|
3105
3105
|
};
|
|
3106
|
-
|
|
3106
|
+
Su(l) || (c = {
|
|
3107
3107
|
...c,
|
|
3108
3108
|
...wu(e, c)
|
|
3109
3109
|
}), c.duration && (c.duration = Me(c.duration)), c.repeatDelay && (c.repeatDelay = Me(c.repeatDelay)), c.from !== void 0 && (c.keyframes[0] = c.from);
|
|
@@ -3117,7 +3117,7 @@ const Nr = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
3117
3117
|
}
|
|
3118
3118
|
return !s && Vi.supports(c) ? new Vi(c) : new Ir(c);
|
|
3119
3119
|
};
|
|
3120
|
-
function
|
|
3120
|
+
function Pu({ protectedKeys: e, needsAnimating: t }, n) {
|
|
3121
3121
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
3122
3122
|
return t[n] = !1, r;
|
|
3123
3123
|
}
|
|
@@ -3128,18 +3128,18 @@ function Uo(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3128
3128
|
const u = [], c = i && e.animationState && e.animationState.getState()[i];
|
|
3129
3129
|
for (const f in a) {
|
|
3130
3130
|
const h = e.getValue(f, (s = e.latestValues[f]) !== null && s !== void 0 ? s : null), m = a[f];
|
|
3131
|
-
if (m === void 0 || c &&
|
|
3131
|
+
if (m === void 0 || c && Pu(c, f))
|
|
3132
3132
|
continue;
|
|
3133
3133
|
const v = {
|
|
3134
3134
|
delay: n,
|
|
3135
|
-
...
|
|
3135
|
+
...Sr(o || {}, f)
|
|
3136
3136
|
};
|
|
3137
3137
|
let y = !1;
|
|
3138
3138
|
if (window.MotionHandoffAnimation) {
|
|
3139
3139
|
const x = fo(e);
|
|
3140
3140
|
if (x) {
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3141
|
+
const S = window.MotionHandoffAnimation(x, f, Q);
|
|
3142
|
+
S !== null && (v.startTime = S, y = !0);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
3145
|
Fn(e, f), h.start(Nr(f, h, m, e.shouldReduceMotion && co.has(f) ? { type: !1 } : v, e, y));
|
|
@@ -3243,32 +3243,32 @@ function Vu(e) {
|
|
|
3243
3243
|
const { props: u } = e, c = zo(e.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
|
|
3244
3244
|
let m = {}, v = 1 / 0;
|
|
3245
3245
|
for (let w = 0; w < Du; w++) {
|
|
3246
|
-
const x = Au[w],
|
|
3246
|
+
const x = Au[w], S = n[x], P = u[x] !== void 0 ? u[x] : c[x], O = jt(P), g = x === a ? S.isActive : null;
|
|
3247
3247
|
g === !1 && (v = w);
|
|
3248
|
-
let E =
|
|
3249
|
-
if (E && r && e.manuallyAnimateOnMount && (E = !1),
|
|
3248
|
+
let E = P === c[x] && P !== u[x] && O;
|
|
3249
|
+
if (E && r && e.manuallyAnimateOnMount && (E = !1), S.protectedKeys = { ...m }, !S.isActive && g === null || !P && !S.prevProp || an(P) || typeof P == "boolean")
|
|
3250
3250
|
continue;
|
|
3251
|
-
const z = Ou(
|
|
3252
|
-
let C = z || x === a &&
|
|
3253
|
-
const G = Array.isArray(
|
|
3251
|
+
const z = Ou(S.prevProp, P);
|
|
3252
|
+
let C = z || x === a && S.isActive && !E && O || w > v && O, N = !1;
|
|
3253
|
+
const G = Array.isArray(P) ? P : [P];
|
|
3254
3254
|
let ee = G.reduce(i(x), {});
|
|
3255
3255
|
g === !1 && (ee = {});
|
|
3256
|
-
const { prevResolvedValues:
|
|
3257
|
-
...
|
|
3256
|
+
const { prevResolvedValues: xe = {} } = S, ae = {
|
|
3257
|
+
...xe,
|
|
3258
3258
|
...ee
|
|
3259
3259
|
}, B = (H) => {
|
|
3260
|
-
C = !0, h.has(H) && (N = !0, h.delete(H)),
|
|
3260
|
+
C = !0, h.has(H) && (N = !0, h.delete(H)), S.needsAnimating[H] = !0;
|
|
3261
3261
|
const re = e.getValue(H);
|
|
3262
3262
|
re && (re.liveStyle = !1);
|
|
3263
3263
|
};
|
|
3264
|
-
for (const H in
|
|
3265
|
-
const re = ee[H],
|
|
3264
|
+
for (const H in ae) {
|
|
3265
|
+
const re = ee[H], be = xe[H];
|
|
3266
3266
|
if (m.hasOwnProperty(H))
|
|
3267
3267
|
continue;
|
|
3268
3268
|
let b = !1;
|
|
3269
|
-
_n(re) && _n(
|
|
3269
|
+
_n(re) && _n(be) ? b = !Wo(re, be) : b = re !== be, b ? re != null ? B(H) : h.add(H) : re !== void 0 && h.has(H) ? B(H) : S.protectedKeys[H] = !0;
|
|
3270
3270
|
}
|
|
3271
|
-
|
|
3271
|
+
S.prevProp = P, S.prevResolvedValues = ee, S.isActive && (m = { ...m, ...ee }), r && e.blockInitialAnimation && (C = !1), C && (!(E && z) || N) && f.push(...G.map((H) => ({
|
|
3272
3272
|
animation: H,
|
|
3273
3273
|
options: { type: x }
|
|
3274
3274
|
})));
|
|
@@ -3280,8 +3280,8 @@ function Vu(e) {
|
|
|
3280
3280
|
x && x.transition && (w.transition = x.transition);
|
|
3281
3281
|
}
|
|
3282
3282
|
h.forEach((x) => {
|
|
3283
|
-
const
|
|
3284
|
-
|
|
3283
|
+
const S = e.getBaseTarget(x), P = e.getValue(x);
|
|
3284
|
+
P && (P.liveStyle = !0), w[x] = S ?? null;
|
|
3285
3285
|
}), f.push({ animation: w });
|
|
3286
3286
|
}
|
|
3287
3287
|
let y = Boolean(f.length);
|
|
@@ -3393,7 +3393,7 @@ const Iu = {
|
|
|
3393
3393
|
function Lt(e, t, n, r = { passive: !0 }) {
|
|
3394
3394
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function Ft(e) {
|
|
3397
3397
|
return {
|
|
3398
3398
|
point: {
|
|
3399
3399
|
x: e.pageX,
|
|
@@ -3401,7 +3401,7 @@ function Bt(e) {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
};
|
|
3403
3403
|
}
|
|
3404
|
-
const Nu = (e) => (t) => Er(t) && e(t,
|
|
3404
|
+
const Nu = (e) => (t) => Er(t) && e(t, Ft(t));
|
|
3405
3405
|
function rt(e, t, n, r) {
|
|
3406
3406
|
return Lt(e, t, Nu(n), r);
|
|
3407
3407
|
}
|
|
@@ -3426,26 +3426,26 @@ function Bu(e, t) {
|
|
|
3426
3426
|
};
|
|
3427
3427
|
}
|
|
3428
3428
|
const Ko = 1e-4, $u = 1 - Ko, Uu = 1 + Ko, Go = 0.01, Wu = 0 - Go, zu = 0 + Go;
|
|
3429
|
-
function
|
|
3429
|
+
function Se(e) {
|
|
3430
3430
|
return e.max - e.min;
|
|
3431
3431
|
}
|
|
3432
3432
|
function Yu(e, t, n) {
|
|
3433
3433
|
return Math.abs(e - t) <= n;
|
|
3434
3434
|
}
|
|
3435
3435
|
function Li(e, t, n, r = 0.5) {
|
|
3436
|
-
e.origin = r, e.originPoint = ne(t.min, t.max, e.origin), e.scale =
|
|
3436
|
+
e.origin = r, e.originPoint = ne(t.min, t.max, e.origin), e.scale = Se(n) / Se(t), e.translate = ne(n.min, n.max, e.origin) - e.originPoint, (e.scale >= $u && e.scale <= Uu || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Wu && e.translate <= zu || isNaN(e.translate)) && (e.translate = 0);
|
|
3437
3437
|
}
|
|
3438
3438
|
function Et(e, t, n, r) {
|
|
3439
3439
|
Li(e.x, t.x, n.x, r ? r.originX : void 0), Li(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
3440
3440
|
}
|
|
3441
3441
|
function ki(e, t, n) {
|
|
3442
|
-
e.min = n.min + t.min, e.max = e.min +
|
|
3442
|
+
e.min = n.min + t.min, e.max = e.min + Se(t);
|
|
3443
3443
|
}
|
|
3444
3444
|
function Ku(e, t, n) {
|
|
3445
3445
|
ki(e.x, t.x, n.x), ki(e.y, t.y, n.y);
|
|
3446
3446
|
}
|
|
3447
3447
|
function _i(e, t, n) {
|
|
3448
|
-
e.min = t.min - n.min, e.max = e.min +
|
|
3448
|
+
e.min = t.min - n.min, e.max = e.min + Se(t);
|
|
3449
3449
|
}
|
|
3450
3450
|
function Rt(e, t, n) {
|
|
3451
3451
|
_i(e.x, t.x, n.x), _i(e.y, t.y, n.y);
|
|
@@ -3458,7 +3458,7 @@ const Ii = () => ({
|
|
|
3458
3458
|
}), it = () => ({
|
|
3459
3459
|
x: Ii(),
|
|
3460
3460
|
y: Ii()
|
|
3461
|
-
}), Ni = () => ({ min: 0, max: 0 }),
|
|
3461
|
+
}), Ni = () => ({ min: 0, max: 0 }), oe = () => ({
|
|
3462
3462
|
x: Ni(),
|
|
3463
3463
|
y: Ni()
|
|
3464
3464
|
});
|
|
@@ -3480,12 +3480,12 @@ function qo(e) {
|
|
|
3480
3480
|
function Fi(e) {
|
|
3481
3481
|
return e && e !== "0%";
|
|
3482
3482
|
}
|
|
3483
|
-
function
|
|
3483
|
+
function en(e, t, n) {
|
|
3484
3484
|
const r = e - n, i = t * r;
|
|
3485
3485
|
return n + i;
|
|
3486
3486
|
}
|
|
3487
3487
|
function Bi(e, t, n, r, i) {
|
|
3488
|
-
return i !== void 0 && (e =
|
|
3488
|
+
return i !== void 0 && (e = en(e, i, r)), en(e, n, r) + t;
|
|
3489
3489
|
}
|
|
3490
3490
|
function qn(e, t = 0, n = 1, r, i) {
|
|
3491
3491
|
e.min = Bi(e.min, t, n, r, i), e.max = Bi(e.max, t, n, r, i);
|
|
@@ -3537,10 +3537,10 @@ class Zo {
|
|
|
3537
3537
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
|
3538
3538
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3539
3539
|
return;
|
|
3540
|
-
const c =
|
|
3540
|
+
const c = Sn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, h = Hu(c.offset, { x: 0, y: 0 }) >= 3;
|
|
3541
3541
|
if (!f && !h)
|
|
3542
3542
|
return;
|
|
3543
|
-
const { point: m } = c, { timestamp: v } =
|
|
3543
|
+
const { point: m } = c, { timestamp: v } = de;
|
|
3544
3544
|
this.history.push({ ...m, timestamp: v });
|
|
3545
3545
|
const { onStart: y, onMove: w } = this.handlers;
|
|
3546
3546
|
f || (y && y(this.lastMoveEvent, c), this.startEvent = this.lastMoveEvent), w && w(this.lastMoveEvent, c);
|
|
@@ -3553,19 +3553,19 @@ class Zo {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
this.lastMoveEvent = c, this.lastMoveEventInfo = wn(f, this.transformPagePoint), Q.update(this.updatePoint, !0);
|
|
3555
3555
|
}, this.handlePointerUp = (c, f) => {
|
|
3556
|
-
|
|
3556
|
+
Zt(c, "release"), this.end();
|
|
3557
3557
|
const { onEnd: h, onSessionEnd: m, resumeAnimation: v } = this.handlers;
|
|
3558
3558
|
if (this.dragSnapToOrigin && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3559
3559
|
return;
|
|
3560
|
-
const y =
|
|
3560
|
+
const y = Sn(c.type === "pointercancel" || c.type === "lostpointercapture" ? this.lastMoveEventInfo : wn(f, this.transformPagePoint), this.history);
|
|
3561
3561
|
this.startEvent && h && h(c, y), m && m(c, y);
|
|
3562
3562
|
}, !Er(t))
|
|
3563
3563
|
return;
|
|
3564
3564
|
this.dragSnapToOrigin = i, this.handlers = n, this.transformPagePoint = r;
|
|
3565
|
-
const s =
|
|
3565
|
+
const s = Ft(t), o = wn(s, this.transformPagePoint), { point: l } = o, { timestamp: a } = de;
|
|
3566
3566
|
this.history = [{ ...l, timestamp: a }];
|
|
3567
3567
|
const { onSessionStart: u } = n;
|
|
3568
|
-
u && u(t,
|
|
3568
|
+
u && u(t, Sn(o, this.history)), Zt(t, "set"), this.removeListeners = Nt(rt(t.currentTarget, "pointermove", this.handlePointerMove), rt(t.currentTarget, "pointerup", this.handlePointerUp), rt(t.currentTarget, "pointercancel", this.handlePointerUp), rt(t.currentTarget, "lostpointercapture", this.handlePointerUp));
|
|
3569
3569
|
}
|
|
3570
3570
|
updateHandlers(t) {
|
|
3571
3571
|
this.handlers = t;
|
|
@@ -3580,7 +3580,7 @@ function wn(e, t) {
|
|
|
3580
3580
|
function Yi(e, t) {
|
|
3581
3581
|
return { x: e.x - t.x, y: e.y - t.y };
|
|
3582
3582
|
}
|
|
3583
|
-
function
|
|
3583
|
+
function Sn({ point: e }, t) {
|
|
3584
3584
|
return {
|
|
3585
3585
|
point: e,
|
|
3586
3586
|
delta: Yi(e, Jo(t)),
|
|
@@ -3639,7 +3639,7 @@ function ef(e, t) {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
function tf(e, t) {
|
|
3641
3641
|
let n = 0.5;
|
|
3642
|
-
const r =
|
|
3642
|
+
const r = Se(e), i = Se(t);
|
|
3643
3643
|
return i > r ? n = at(t.min, t.max - r, e.min) : r > i && (n = at(e.min, e.max - i, t.min)), Ie(0, 1, n);
|
|
3644
3644
|
}
|
|
3645
3645
|
function nf(e, t) {
|
|
@@ -3665,7 +3665,7 @@ function Hi(e, t) {
|
|
|
3665
3665
|
const sf = /* @__PURE__ */ new WeakMap();
|
|
3666
3666
|
class of {
|
|
3667
3667
|
constructor(t) {
|
|
3668
|
-
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
3668
|
+
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = oe(), this.visualElement = t;
|
|
3669
3669
|
}
|
|
3670
3670
|
start(t, { snapToCursor: n = !1 } = {}) {
|
|
3671
3671
|
const { presenceContext: r } = this.visualElement;
|
|
@@ -3673,7 +3673,7 @@ class of {
|
|
|
3673
3673
|
return;
|
|
3674
3674
|
const i = (c) => {
|
|
3675
3675
|
const { dragSnapToOrigin: f } = this.getProps();
|
|
3676
|
-
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(
|
|
3676
|
+
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ft(c).point);
|
|
3677
3677
|
}, s = (c, f) => {
|
|
3678
3678
|
const { drag: h, dragPropagation: m, onDragStart: v } = this.getProps();
|
|
3679
3679
|
if (h && !m && (this.openDragLock && this.openDragLock(), this.openDragLock = Xl(h), !this.openDragLock))
|
|
@@ -3681,10 +3681,10 @@ class of {
|
|
|
3681
3681
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Ae((w) => {
|
|
3682
3682
|
let x = this.getAxisMotionValue(w).get() || 0;
|
|
3683
3683
|
if (Ve.test(x)) {
|
|
3684
|
-
const { projection:
|
|
3685
|
-
if (
|
|
3686
|
-
const
|
|
3687
|
-
|
|
3684
|
+
const { projection: S } = this.visualElement;
|
|
3685
|
+
if (S && S.layout) {
|
|
3686
|
+
const P = S.layout.layoutBox[w];
|
|
3687
|
+
P && (x = Se(P) * (parseFloat(x) / 100));
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
3690
|
this.originPoint[w] = x;
|
|
@@ -3734,7 +3734,7 @@ class of {
|
|
|
3734
3734
|
}
|
|
3735
3735
|
updateAxis(t, n, r) {
|
|
3736
3736
|
const { drag: i } = this.getProps();
|
|
3737
|
-
if (!r || !
|
|
3737
|
+
if (!r || !Yt(t, i, this.currentDirection))
|
|
3738
3738
|
return;
|
|
3739
3739
|
const s = this.getAxisMotionValue(t);
|
|
3740
3740
|
let o = this.originPoint[t] + r[t];
|
|
@@ -3766,7 +3766,7 @@ class of {
|
|
|
3766
3766
|
}
|
|
3767
3767
|
startAnimation(t) {
|
|
3768
3768
|
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: l } = this.getProps(), a = this.constraints || {}, u = Ae((c) => {
|
|
3769
|
-
if (!
|
|
3769
|
+
if (!Yt(c, n, this.currentDirection))
|
|
3770
3770
|
return;
|
|
3771
3771
|
let f = a && a[c] || {};
|
|
3772
3772
|
o && (f = { min: 0, max: 0 });
|
|
@@ -3809,7 +3809,7 @@ class of {
|
|
|
3809
3809
|
snapToCursor(t) {
|
|
3810
3810
|
Ae((n) => {
|
|
3811
3811
|
const { drag: r } = this.getProps();
|
|
3812
|
-
if (!
|
|
3812
|
+
if (!Yt(n, r, this.currentDirection))
|
|
3813
3813
|
return;
|
|
3814
3814
|
const { projection: i } = this.visualElement, s = this.getAxisMotionValue(n);
|
|
3815
3815
|
if (i && i.layout) {
|
|
@@ -3835,7 +3835,7 @@ class of {
|
|
|
3835
3835
|
});
|
|
3836
3836
|
const { transformTemplate: s } = this.visualElement.getProps();
|
|
3837
3837
|
this.visualElement.current.style.transform = s ? s({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), Ae((o) => {
|
|
3838
|
-
if (!
|
|
3838
|
+
if (!Yt(o, t, null))
|
|
3839
3839
|
return;
|
|
3840
3840
|
const l = this.getAxisMotionValue(o), { min: a, max: u } = this.constraints[o];
|
|
3841
3841
|
l.set(ne(a, u, i[o]));
|
|
@@ -3876,7 +3876,7 @@ class of {
|
|
|
3876
3876
|
};
|
|
3877
3877
|
}
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function Yt(e, t, n) {
|
|
3880
3880
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
3881
3881
|
}
|
|
3882
3882
|
function af(e, t = 10) {
|
|
@@ -3885,11 +3885,11 @@ function af(e, t = 10) {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
class lf extends We {
|
|
3887
3887
|
constructor(t) {
|
|
3888
|
-
super(t), this.removeGroupControls =
|
|
3888
|
+
super(t), this.removeGroupControls = Ce, this.removeListeners = Ce, this.controls = new of(t);
|
|
3889
3889
|
}
|
|
3890
3890
|
mount() {
|
|
3891
3891
|
const { dragControls: t } = this.node.getProps();
|
|
3892
|
-
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
3892
|
+
t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Ce;
|
|
3893
3893
|
}
|
|
3894
3894
|
unmount() {
|
|
3895
3895
|
this.removeGroupControls(), this.removeListeners();
|
|
@@ -3900,7 +3900,7 @@ const Xi = (e) => (t, n) => {
|
|
|
3900
3900
|
};
|
|
3901
3901
|
class cf extends We {
|
|
3902
3902
|
constructor() {
|
|
3903
|
-
super(...arguments), this.removePointerDownListener =
|
|
3903
|
+
super(...arguments), this.removePointerDownListener = Ce;
|
|
3904
3904
|
}
|
|
3905
3905
|
onPointerDown(t) {
|
|
3906
3906
|
this.session = new Zo(t, this.createPanHandlers(), {
|
|
@@ -3928,7 +3928,7 @@ class cf extends We {
|
|
|
3928
3928
|
this.removePointerDownListener(), this.session && this.session.end();
|
|
3929
3929
|
}
|
|
3930
3930
|
}
|
|
3931
|
-
const
|
|
3931
|
+
const qt = {
|
|
3932
3932
|
hasAnimatedSinceResize: !0,
|
|
3933
3933
|
hasEverUpdated: !1
|
|
3934
3934
|
};
|
|
@@ -3966,7 +3966,7 @@ class ff extends Fa {
|
|
|
3966
3966
|
}), s.setOptions({
|
|
3967
3967
|
...s.options,
|
|
3968
3968
|
onExitComplete: () => this.safeToRemove()
|
|
3969
|
-
})),
|
|
3969
|
+
})), qt.hasEverUpdated = !0;
|
|
3970
3970
|
}
|
|
3971
3971
|
getSnapshotBeforeUpdate(t) {
|
|
3972
3972
|
const { layoutDependency: n, visualElement: r, drag: i, isPresent: s } = this.props, o = r.projection;
|
|
@@ -3994,8 +3994,8 @@ class ff extends Fa {
|
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
3996
|
function Qo(e) {
|
|
3997
|
-
const [t, n] = Ls(), r =
|
|
3998
|
-
return p.exports.jsx(ff, { ...e, layoutGroup: r, switchLayoutGroup:
|
|
3997
|
+
const [t, n] = Ls(), r = ye(ir);
|
|
3998
|
+
return p.exports.jsx(ff, { ...e, layoutGroup: r, switchLayoutGroup: ye(Ws), isPresent: t, safeToRemove: n });
|
|
3999
3999
|
}
|
|
4000
4000
|
const df = {
|
|
4001
4001
|
borderRadius: {
|
|
@@ -4014,7 +4014,7 @@ const df = {
|
|
|
4014
4014
|
boxShadow: uf
|
|
4015
4015
|
};
|
|
4016
4016
|
function hf(e, t, n) {
|
|
4017
|
-
const r =
|
|
4017
|
+
const r = ve(e) ? e : Vt(e);
|
|
4018
4018
|
return r.start(Nr("", r, t, n)), r.animation;
|
|
4019
4019
|
}
|
|
4020
4020
|
function pf(e) {
|
|
@@ -4061,7 +4061,7 @@ function xf(e, t, n, r, i, s) {
|
|
|
4061
4061
|
function es(e, t) {
|
|
4062
4062
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
4063
4063
|
}
|
|
4064
|
-
const bf = /* @__PURE__ */ ta(0, 0.5, xo), Tf = /* @__PURE__ */ ta(0.5, 0.95,
|
|
4064
|
+
const bf = /* @__PURE__ */ ta(0, 0.5, xo), Tf = /* @__PURE__ */ ta(0.5, 0.95, Ce);
|
|
4065
4065
|
function ta(e, t, n) {
|
|
4066
4066
|
return (r) => r < e ? 0 : r > t ? 1 : n(at(e, t, r));
|
|
4067
4067
|
}
|
|
@@ -4075,7 +4075,7 @@ function ns(e, t) {
|
|
|
4075
4075
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
4076
4076
|
}
|
|
4077
4077
|
function rs(e, t, n, r, i) {
|
|
4078
|
-
return e -= t, e =
|
|
4078
|
+
return e -= t, e = en(e, 1 / n, r), i !== void 0 && (e = en(e, 1 / i, r)), e;
|
|
4079
4079
|
}
|
|
4080
4080
|
function wf(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
4081
4081
|
if (Ve.test(t) && (t = parseFloat(t), t = ne(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
@@ -4086,9 +4086,9 @@ function wf(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
|
4086
4086
|
function is(e, t, [n, r, i], s, o) {
|
|
4087
4087
|
wf(e, t[n], t[r], t[i], t.scale, s, o);
|
|
4088
4088
|
}
|
|
4089
|
-
const
|
|
4089
|
+
const Sf = ["x", "scaleX", "originX"], Pf = ["y", "scaleY", "originY"];
|
|
4090
4090
|
function ss(e, t, n, r) {
|
|
4091
|
-
is(e.x, t,
|
|
4091
|
+
is(e.x, t, Sf, n ? n.x : void 0, r ? r.x : void 0), is(e.y, t, Pf, n ? n.y : void 0, r ? r.y : void 0);
|
|
4092
4092
|
}
|
|
4093
4093
|
function os(e) {
|
|
4094
4094
|
return e.translate === 0 && e.scale === 1;
|
|
@@ -4109,7 +4109,7 @@ function ra(e, t) {
|
|
|
4109
4109
|
return ls(e.x, t.x) && ls(e.y, t.y);
|
|
4110
4110
|
}
|
|
4111
4111
|
function cs(e) {
|
|
4112
|
-
return
|
|
4112
|
+
return Se(e.x) / Se(e.y);
|
|
4113
4113
|
}
|
|
4114
4114
|
function us(e, t) {
|
|
4115
4115
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
@@ -4178,7 +4178,7 @@ const Ge = {
|
|
|
4178
4178
|
nodes: 0,
|
|
4179
4179
|
calculatedTargetDeltas: 0,
|
|
4180
4180
|
calculatedProjections: 0
|
|
4181
|
-
},
|
|
4181
|
+
}, Pn = ["", "X", "Y", "Z"], jf = { visibility: "hidden" }, fs = 1e3;
|
|
4182
4182
|
let Af = 0;
|
|
4183
4183
|
function Cn(e, t, n, r) {
|
|
4184
4184
|
const { latestValues: i } = t;
|
|
@@ -4229,7 +4229,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4229
4229
|
let f;
|
|
4230
4230
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
4231
4231
|
e(o, () => {
|
|
4232
|
-
this.root.updateBlockedByResize = !0, f && f(), f = yf(h, 250),
|
|
4232
|
+
this.root.updateBlockedByResize = !0, f && f(), f = yf(h, 250), qt.hasAnimatedSinceResize && (qt.hasAnimatedSinceResize = !1, this.nodes.forEach(hs));
|
|
4233
4233
|
});
|
|
4234
4234
|
}
|
|
4235
4235
|
a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || u) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: h, hasRelativeLayoutChanged: m, layout: v }) => {
|
|
@@ -4237,11 +4237,11 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4237
4237
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4238
4238
|
return;
|
|
4239
4239
|
}
|
|
4240
|
-
const y = this.options.transition || c.getDefaultTransition() || Wf, { onLayoutAnimationStart: w, onLayoutAnimationComplete: x } = c.getProps(),
|
|
4241
|
-
if (this.options.layoutRoot || this.resumeFrom ||
|
|
4242
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f,
|
|
4240
|
+
const y = this.options.transition || c.getDefaultTransition() || Wf, { onLayoutAnimationStart: w, onLayoutAnimationComplete: x } = c.getProps(), S = !this.targetLayout || !ra(this.targetLayout, v), P = !h && m;
|
|
4241
|
+
if (this.options.layoutRoot || this.resumeFrom || P || h && (S || !this.currentAnimation)) {
|
|
4242
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, P);
|
|
4243
4243
|
const O = {
|
|
4244
|
-
...
|
|
4244
|
+
...Sr(y, "layout"),
|
|
4245
4245
|
onPlay: w,
|
|
4246
4246
|
onComplete: x
|
|
4247
4247
|
};
|
|
@@ -4300,7 +4300,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4300
4300
|
}
|
|
4301
4301
|
this.isUpdating || this.nodes.forEach(kf), this.isUpdating = !1, this.nodes.forEach(_f), this.nodes.forEach(Df), this.nodes.forEach(Mf), this.clearAllSnapshots();
|
|
4302
4302
|
const l = Oe.now();
|
|
4303
|
-
|
|
4303
|
+
de.delta = Ie(0, 1e3 / 60, l - de.timestamp), de.timestamp = l, de.isProcessing = !0, mn.update.process(de), mn.preRender.process(de), mn.render.process(de), de.isProcessing = !1;
|
|
4304
4304
|
}
|
|
4305
4305
|
didUpdate() {
|
|
4306
4306
|
this.updateScheduled || (this.updateScheduled = !0, dr.read(this.scheduleUpdate));
|
|
@@ -4317,7 +4317,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4317
4317
|
});
|
|
4318
4318
|
}
|
|
4319
4319
|
updateSnapshot() {
|
|
4320
|
-
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !
|
|
4320
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !Se(this.snapshot.measuredBox.x) && !Se(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
4321
4321
|
}
|
|
4322
4322
|
updateLayout() {
|
|
4323
4323
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
|
|
@@ -4326,7 +4326,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4326
4326
|
for (let a = 0; a < this.path.length; a++)
|
|
4327
4327
|
this.path[a].updateScroll();
|
|
4328
4328
|
const o = this.layout;
|
|
4329
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
4329
|
+
this.layout = this.measure(!1), this.layoutCorrected = oe(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
4330
4330
|
const { visualElement: l } = this.options;
|
|
4331
4331
|
l && l.notify("LayoutMeasure", this.layout.layoutBox, o ? o.layoutBox : void 0);
|
|
4332
4332
|
}
|
|
@@ -4364,7 +4364,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4364
4364
|
var o;
|
|
4365
4365
|
const { visualElement: l } = this.options;
|
|
4366
4366
|
if (!l)
|
|
4367
|
-
return
|
|
4367
|
+
return oe();
|
|
4368
4368
|
const a = l.measureViewportBox();
|
|
4369
4369
|
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(Yf))) {
|
|
4370
4370
|
const { scroll: c } = this.root;
|
|
@@ -4374,7 +4374,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4374
4374
|
}
|
|
4375
4375
|
removeElementScroll(o) {
|
|
4376
4376
|
var l;
|
|
4377
|
-
const a =
|
|
4377
|
+
const a = oe();
|
|
4378
4378
|
if (je(a, o), !((l = this.scroll) === null || l === void 0) && l.wasRoot)
|
|
4379
4379
|
return a;
|
|
4380
4380
|
for (let u = 0; u < this.path.length; u++) {
|
|
@@ -4384,7 +4384,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4384
4384
|
return a;
|
|
4385
4385
|
}
|
|
4386
4386
|
applyTransform(o, l = !1) {
|
|
4387
|
-
const a =
|
|
4387
|
+
const a = oe();
|
|
4388
4388
|
je(a, o);
|
|
4389
4389
|
for (let u = 0; u < this.path.length; u++) {
|
|
4390
4390
|
const c = this.path[u];
|
|
@@ -4396,14 +4396,14 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4396
4396
|
return Ke(this.latestValues) && ot(a, this.latestValues), a;
|
|
4397
4397
|
}
|
|
4398
4398
|
removeTransform(o) {
|
|
4399
|
-
const l =
|
|
4399
|
+
const l = oe();
|
|
4400
4400
|
je(l, o);
|
|
4401
4401
|
for (let a = 0; a < this.path.length; a++) {
|
|
4402
4402
|
const u = this.path[a];
|
|
4403
4403
|
if (!u.instance || !Ke(u.latestValues))
|
|
4404
4404
|
continue;
|
|
4405
4405
|
Gn(u.latestValues) && u.updateSnapshot();
|
|
4406
|
-
const c =
|
|
4406
|
+
const c = oe(), f = u.measurePageBox();
|
|
4407
4407
|
je(c, f), ss(l, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4408
4408
|
}
|
|
4409
4409
|
return Ke(this.latestValues) && ss(l, this.latestValues), l;
|
|
@@ -4422,7 +4422,7 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4422
4422
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4423
4423
|
}
|
|
4424
4424
|
forceRelativeParentToResolveTarget() {
|
|
4425
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
4425
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== de.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
4426
4426
|
}
|
|
4427
4427
|
resolveTargetDelta(o = !1) {
|
|
4428
4428
|
var l;
|
|
@@ -4433,15 +4433,15 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4433
4433
|
return;
|
|
4434
4434
|
const { layout: f, layoutId: h } = this.options;
|
|
4435
4435
|
if (!(!this.layout || !(f || h))) {
|
|
4436
|
-
if (this.resolvedRelativeTargetAt =
|
|
4436
|
+
if (this.resolvedRelativeTargetAt = de.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4437
4437
|
const m = this.getClosestProjectingParent();
|
|
4438
|
-
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4438
|
+
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = oe(), this.relativeTargetOrigin = oe(), Rt(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4439
4439
|
}
|
|
4440
4440
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4441
|
-
if (this.target || (this.target =
|
|
4441
|
+
if (this.target || (this.target = oe(), this.targetWithTransforms = oe()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ku(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) : je(this.target, this.layout.layoutBox), Ho(this.target, this.targetDelta)) : je(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4442
4442
|
this.attemptToResolveRelativeTarget = !1;
|
|
4443
4443
|
const m = this.getClosestProjectingParent();
|
|
4444
|
-
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4444
|
+
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = oe(), this.relativeTargetOrigin = oe(), Rt(this.relativeTargetOrigin, this.target, m.target), je(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4445
4445
|
}
|
|
4446
4446
|
Fe.value && Ge.calculatedTargetDeltas++;
|
|
4447
4447
|
}
|
|
@@ -4458,14 +4458,14 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4458
4458
|
var o;
|
|
4459
4459
|
const l = this.getLead(), a = Boolean(this.resumingFrom) || this !== l;
|
|
4460
4460
|
let u = !0;
|
|
4461
|
-
if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (u = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt ===
|
|
4461
|
+
if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (u = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (u = !1), this.resolvedRelativeTargetAt === de.timestamp && (u = !1), u)
|
|
4462
4462
|
return;
|
|
4463
4463
|
const { layout: c, layoutId: f } = this.options;
|
|
4464
4464
|
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))
|
|
4465
4465
|
return;
|
|
4466
4466
|
je(this.layoutCorrected, this.layout.layoutBox);
|
|
4467
4467
|
const h = this.treeScale.x, m = this.treeScale.y;
|
|
4468
|
-
Gu(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 =
|
|
4468
|
+
Gu(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 = oe());
|
|
4469
4469
|
const { target: v } = l;
|
|
4470
4470
|
if (!v) {
|
|
4471
4471
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -4493,26 +4493,26 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4493
4493
|
setAnimationOrigin(o, l = !1) {
|
|
4494
4494
|
const a = this.snapshot, u = a ? a.latestValues : {}, c = { ...this.latestValues }, f = it();
|
|
4495
4495
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
|
|
4496
|
-
const h =
|
|
4496
|
+
const h = oe(), m = a ? a.source : void 0, v = this.layout ? this.layout.source : void 0, y = m !== v, w = this.getStack(), x = !w || w.members.length <= 1, S = Boolean(y && !x && this.options.crossfade === !0 && !this.path.some(Uf));
|
|
4497
4497
|
this.animationProgress = 0;
|
|
4498
|
-
let
|
|
4498
|
+
let P;
|
|
4499
4499
|
this.mixTargetDelta = (O) => {
|
|
4500
4500
|
const g = O / 1e3;
|
|
4501
|
-
ps(f.x, o.x, g), ps(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), $f(this.relativeTarget, this.relativeTargetOrigin, h, g),
|
|
4501
|
+
ps(f.x, o.x, g), ps(f.y, o.y, g), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Rt(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), $f(this.relativeTarget, this.relativeTargetOrigin, h, g), P && Cf(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = oe()), je(P, this.relativeTarget)), y && (this.animationValues = c, xf(c, u, this.latestValues, g, S, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = g;
|
|
4502
4502
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4503
4503
|
}
|
|
4504
4504
|
startAnimation(o) {
|
|
4505
4505
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && ($e(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Q.update(() => {
|
|
4506
|
-
|
|
4506
|
+
qt.hasAnimatedSinceResize = !0, Pt.layout++, this.currentAnimation = hf(0, fs, {
|
|
4507
4507
|
...o,
|
|
4508
4508
|
onUpdate: (l) => {
|
|
4509
4509
|
this.mixTargetDelta(l), o.onUpdate && o.onUpdate(l);
|
|
4510
4510
|
},
|
|
4511
4511
|
onStop: () => {
|
|
4512
|
-
|
|
4512
|
+
Pt.layout--;
|
|
4513
4513
|
},
|
|
4514
4514
|
onComplete: () => {
|
|
4515
|
-
|
|
4515
|
+
Pt.layout--, o.onComplete && o.onComplete(), this.completeAnimation();
|
|
4516
4516
|
}
|
|
4517
4517
|
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
4518
4518
|
});
|
|
@@ -4530,10 +4530,10 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4530
4530
|
let { targetWithTransforms: l, target: a, layout: u, latestValues: c } = o;
|
|
4531
4531
|
if (!(!l || !a || !u)) {
|
|
4532
4532
|
if (this !== o && this.layout && u && oa(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
|
|
4533
|
-
a = this.target ||
|
|
4534
|
-
const f =
|
|
4533
|
+
a = this.target || oe();
|
|
4534
|
+
const f = Se(this.layout.layoutBox.x);
|
|
4535
4535
|
a.x.min = o.target.x.min, a.x.max = a.x.min + f;
|
|
4536
|
-
const h =
|
|
4536
|
+
const h = Se(this.layout.layoutBox.y);
|
|
4537
4537
|
a.y.min = o.target.y.min, a.y.max = a.y.min + h;
|
|
4538
4538
|
}
|
|
4539
4539
|
je(l, a), ot(l, c), Et(this.projectionDeltaWithTransform, this.layoutCorrected, l, c);
|
|
@@ -4584,8 +4584,8 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4584
4584
|
return;
|
|
4585
4585
|
const u = {};
|
|
4586
4586
|
a.z && Cn("z", o, u, this.animationValues);
|
|
4587
|
-
for (let c = 0; c <
|
|
4588
|
-
Cn(`rotate${
|
|
4587
|
+
for (let c = 0; c < Pn.length; c++)
|
|
4588
|
+
Cn(`rotate${Pn[c]}`, o, u, this.animationValues), Cn(`skew${Pn[c]}`, o, u, this.animationValues);
|
|
4589
4589
|
o.render();
|
|
4590
4590
|
for (const c in u)
|
|
4591
4591
|
o.setStaticValue(c, u[c]), this.animationValues && (this.animationValues[c] = u[c]);
|
|
@@ -4601,11 +4601,11 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4601
4601
|
visibility: ""
|
|
4602
4602
|
}, c = this.getTransformTemplate();
|
|
4603
4603
|
if (this.needsReset)
|
|
4604
|
-
return this.needsReset = !1, u.opacity = "", u.pointerEvents =
|
|
4604
|
+
return this.needsReset = !1, u.opacity = "", u.pointerEvents = Kt(o == null ? void 0 : o.pointerEvents) || "", u.transform = c ? c(this.latestValues, "") : "none", u;
|
|
4605
4605
|
const f = this.getLead();
|
|
4606
4606
|
if (!this.projectionDelta || !this.layout || !f.target) {
|
|
4607
4607
|
const y = {};
|
|
4608
|
-
return this.options.layoutId && (y.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, y.pointerEvents =
|
|
4608
|
+
return this.options.layoutId && (y.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, y.pointerEvents = Kt(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !Ke(this.latestValues) && (y.transform = c ? c({}, "") : "none", this.hasProjected = !1), y;
|
|
4609
4609
|
}
|
|
4610
4610
|
const h = f.animationValues || f.latestValues;
|
|
4611
4611
|
this.applyTransformsToTarget(), u.transform = Rf(this.projectionDeltaWithTransform, this.treeScale, h), c && (u.transform = c(h, u.transform));
|
|
@@ -4614,15 +4614,15 @@ function sa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4614
4614
|
for (const y in At) {
|
|
4615
4615
|
if (h[y] === void 0)
|
|
4616
4616
|
continue;
|
|
4617
|
-
const { correct: w, applyTo: x, isCSSVariable:
|
|
4617
|
+
const { correct: w, applyTo: x, isCSSVariable: S } = At[y], P = u.transform === "none" ? h[y] : w(h[y], f);
|
|
4618
4618
|
if (x) {
|
|
4619
4619
|
const O = x.length;
|
|
4620
4620
|
for (let g = 0; g < O; g++)
|
|
4621
|
-
u[x[g]] =
|
|
4621
|
+
u[x[g]] = P;
|
|
4622
4622
|
} else
|
|
4623
|
-
|
|
4623
|
+
S ? this.options.visualElement.renderState.vars[y] = P : u[y] = P;
|
|
4624
4624
|
}
|
|
4625
|
-
return this.options.layoutId && (u.pointerEvents = f === this ?
|
|
4625
|
+
return this.options.layoutId && (u.pointerEvents = f === this ? Kt(o == null ? void 0 : o.pointerEvents) || "" : "none"), u;
|
|
4626
4626
|
}
|
|
4627
4627
|
clearSnapshot() {
|
|
4628
4628
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -4644,10 +4644,10 @@ function Mf(e) {
|
|
|
4644
4644
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
4645
4645
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: s } = e.options, o = n.source !== e.layout.source;
|
|
4646
4646
|
s === "size" ? Ae((f) => {
|
|
4647
|
-
const h = o ? n.measuredBox[f] : n.layoutBox[f], m =
|
|
4647
|
+
const h = o ? n.measuredBox[f] : n.layoutBox[f], m = Se(h);
|
|
4648
4648
|
h.min = r[f].min, h.max = h.min + m;
|
|
4649
4649
|
}) : oa(s, n.layoutBox, r) && Ae((f) => {
|
|
4650
|
-
const h = o ? n.measuredBox[f] : n.layoutBox[f], m =
|
|
4650
|
+
const h = o ? n.measuredBox[f] : n.layoutBox[f], m = Se(r[f]);
|
|
4651
4651
|
h.max = h.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + m);
|
|
4652
4652
|
});
|
|
4653
4653
|
const l = it();
|
|
@@ -4661,9 +4661,9 @@ function Mf(e) {
|
|
|
4661
4661
|
if (f && !f.resumeFrom) {
|
|
4662
4662
|
const { snapshot: h, layout: m } = f;
|
|
4663
4663
|
if (h && m) {
|
|
4664
|
-
const v =
|
|
4664
|
+
const v = oe();
|
|
4665
4665
|
Rt(v, n.layoutBox, h.layoutBox);
|
|
4666
|
-
const y =
|
|
4666
|
+
const y = oe();
|
|
4667
4667
|
Rt(y, r, m.layoutBox), ra(v, y) || (c = !0), f.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = v, e.relativeParent = f);
|
|
4668
4668
|
}
|
|
4669
4669
|
}
|
|
@@ -4731,7 +4731,7 @@ function Uf(e) {
|
|
|
4731
4731
|
const Wf = {
|
|
4732
4732
|
duration: 0.45,
|
|
4733
4733
|
ease: [0.4, 0, 0.1, 1]
|
|
4734
|
-
}, gs = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ys = gs("applewebkit/") && !gs("chrome/") ? Math.round :
|
|
4734
|
+
}, gs = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ys = gs("applewebkit/") && !gs("chrome/") ? Math.round : Ce;
|
|
4735
4735
|
function vs(e) {
|
|
4736
4736
|
e.min = ys(e.min), e.max = ys(e.max);
|
|
4737
4737
|
}
|
|
@@ -4784,7 +4784,7 @@ function xs(e, t, n) {
|
|
|
4784
4784
|
const { props: r } = e;
|
|
4785
4785
|
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
4786
4786
|
const i = "onHover" + n, s = r[i];
|
|
4787
|
-
s && Q.postRender(() => s(t,
|
|
4787
|
+
s && Q.postRender(() => s(t, Ft(t)));
|
|
4788
4788
|
}
|
|
4789
4789
|
class qf extends We {
|
|
4790
4790
|
mount() {
|
|
@@ -4811,7 +4811,7 @@ class Hf extends We {
|
|
|
4811
4811
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
4812
4812
|
}
|
|
4813
4813
|
mount() {
|
|
4814
|
-
this.unmount =
|
|
4814
|
+
this.unmount = Nt(Lt(this.node.current, "focus", () => this.onFocus()), Lt(this.node.current, "blur", () => this.onBlur()));
|
|
4815
4815
|
}
|
|
4816
4816
|
unmount() {
|
|
4817
4817
|
}
|
|
@@ -4822,7 +4822,7 @@ function bs(e, t, n) {
|
|
|
4822
4822
|
return;
|
|
4823
4823
|
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
4824
4824
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
|
4825
|
-
s && Q.postRender(() => s(t,
|
|
4825
|
+
s && Q.postRender(() => s(t, Ft(t)));
|
|
4826
4826
|
}
|
|
4827
4827
|
class Xf extends We {
|
|
4828
4828
|
mount() {
|
|
@@ -4916,13 +4916,13 @@ function od() {
|
|
|
4916
4916
|
} else
|
|
4917
4917
|
Zn.current = !1;
|
|
4918
4918
|
}
|
|
4919
|
-
const ad = [...Oo,
|
|
4919
|
+
const ad = [...Oo, pe, Ue], ld = (e) => ad.find(Vo(e)), cd = /* @__PURE__ */ new WeakMap();
|
|
4920
4920
|
function ud(e, t, n) {
|
|
4921
4921
|
for (const r in t) {
|
|
4922
4922
|
const i = t[r], s = n[r];
|
|
4923
|
-
if (
|
|
4923
|
+
if (ve(i))
|
|
4924
4924
|
e.addValue(r, i), process.env.NODE_ENV === "development" && sn(i.version === "12.4.7", `Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);
|
|
4925
|
-
else if (
|
|
4925
|
+
else if (ve(s))
|
|
4926
4926
|
e.addValue(r, Vt(i, { owner: e }));
|
|
4927
4927
|
else if (s !== i)
|
|
4928
4928
|
if (e.hasValue(r)) {
|
|
@@ -4962,7 +4962,7 @@ class fd {
|
|
|
4962
4962
|
const { willChange: f, ...h } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
4963
4963
|
for (const m in h) {
|
|
4964
4964
|
const v = h[m];
|
|
4965
|
-
a[m] !== void 0 &&
|
|
4965
|
+
a[m] !== void 0 && ve(v) && v.set(a[m], !1);
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
4968
|
mount(t) {
|
|
@@ -5010,7 +5010,7 @@ class fd {
|
|
|
5010
5010
|
this.build(this.renderState, this.latestValues, this.props);
|
|
5011
5011
|
}
|
|
5012
5012
|
measureViewportBox() {
|
|
5013
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
5013
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : oe();
|
|
5014
5014
|
}
|
|
5015
5015
|
getStaticValue(t) {
|
|
5016
5016
|
return this.latestValues[t];
|
|
@@ -5069,7 +5069,7 @@ class fd {
|
|
|
5069
5069
|
readValue(t, n) {
|
|
5070
5070
|
var r;
|
|
5071
5071
|
let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
|
|
5072
|
-
return i != null && (typeof i == "string" && (Do(i) || To(i)) ? i = parseFloat(i) : !ld(i) && Ue.test(n) && (i = Ro(t, n)), this.setBaseTarget(t,
|
|
5072
|
+
return i != null && (typeof i == "string" && (Do(i) || To(i)) ? i = parseFloat(i) : !ld(i) && Ue.test(n) && (i = Ro(t, n)), this.setBaseTarget(t, ve(i) ? i.get() : i)), ve(i) ? i.get() : i;
|
|
5073
5073
|
}
|
|
5074
5074
|
setBaseTarget(t, n) {
|
|
5075
5075
|
this.baseTarget[t] = n;
|
|
@@ -5085,7 +5085,7 @@ class fd {
|
|
|
5085
5085
|
if (r && i !== void 0)
|
|
5086
5086
|
return i;
|
|
5087
5087
|
const s = this.getBaseTargetFromProps(this.props, t);
|
|
5088
|
-
return s !== void 0 && !
|
|
5088
|
+
return s !== void 0 && !ve(s) ? s : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
|
|
5089
5089
|
}
|
|
5090
5090
|
on(t, n) {
|
|
5091
5091
|
return this.events[t] || (this.events[t] = new Ar()), this.events[t].add(n);
|
|
@@ -5110,7 +5110,7 @@ class ca extends fd {
|
|
|
5110
5110
|
handleChildMotionValue() {
|
|
5111
5111
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
5112
5112
|
const { children: t } = this.props;
|
|
5113
|
-
|
|
5113
|
+
ve(t) && (this.childSubscription = t.on("change", (n) => {
|
|
5114
5114
|
this.current && (this.current.textContent = `${n}`);
|
|
5115
5115
|
}));
|
|
5116
5116
|
}
|
|
@@ -5143,7 +5143,7 @@ class hd extends ca {
|
|
|
5143
5143
|
}
|
|
5144
5144
|
class pd extends ca {
|
|
5145
5145
|
constructor() {
|
|
5146
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
5146
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = oe, this.updateDimensions = () => {
|
|
5147
5147
|
this.current && !this.renderState.dimensions && Zs(this.current, this.renderState);
|
|
5148
5148
|
};
|
|
5149
5149
|
}
|
|
@@ -5266,7 +5266,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5266
5266
|
messageId: r,
|
|
5267
5267
|
isCurrentUserMessage: i
|
|
5268
5268
|
}) => {
|
|
5269
|
-
const s =
|
|
5269
|
+
const s = ge(null), [o, l] = me(!1);
|
|
5270
5270
|
return ft(() => (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), () => {
|
|
5271
5271
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5272
5272
|
}), [t]), !s.current || !o ? null : Ba.createPortal(
|
|
@@ -5353,7 +5353,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5353
5353
|
}
|
|
5354
5354
|
)
|
|
5355
5355
|
}
|
|
5356
|
-
),
|
|
5356
|
+
), tn = (e) => /* @__PURE__ */ p.exports.jsx("svg", { width: "17px", height: "22px", viewBox: "0 0 9 20", ...e, children: /* @__PURE__ */ p.exports.jsxs("g", { fill: "none", children: [
|
|
5357
5357
|
/* @__PURE__ */ p.exports.jsx(
|
|
5358
5358
|
"path",
|
|
5359
5359
|
{
|
|
@@ -5394,7 +5394,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5394
5394
|
messageToEdit: l,
|
|
5395
5395
|
setMessageToEdit: a
|
|
5396
5396
|
}) => {
|
|
5397
|
-
const [u, c] =
|
|
5397
|
+
const [u, c] = me(""), [f, h] = me(!1), [m, v] = me(0), [y, w] = me(null), [x, S] = me(null), [P, O] = me(0), g = ge(null), E = ge([]), z = ge(null), C = ge(null), N = ge(null), [G, ee] = me(!1), xe = (D) => {
|
|
5398
5398
|
const R = D.target.value;
|
|
5399
5399
|
console.log("Input", R), l ? a((L) => L ? new wt({
|
|
5400
5400
|
...L,
|
|
@@ -5402,13 +5402,13 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5402
5402
|
isEdited: !0
|
|
5403
5403
|
}) : void 0) : c(R);
|
|
5404
5404
|
const M = R.match(/(\S+)$/);
|
|
5405
|
-
|
|
5406
|
-
},
|
|
5405
|
+
ae(M);
|
|
5406
|
+
}, ae = (D) => {
|
|
5407
5407
|
if (D) {
|
|
5408
5408
|
const R = D[0];
|
|
5409
5409
|
if (y) {
|
|
5410
5410
|
const M = D[0].split(y)[1];
|
|
5411
|
-
|
|
5411
|
+
S(M);
|
|
5412
5412
|
}
|
|
5413
5413
|
o != null && o.some((M) => M.symbol === R) && w(R);
|
|
5414
5414
|
} else
|
|
@@ -5418,7 +5418,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5418
5418
|
...M,
|
|
5419
5419
|
text: M.text + R + " "
|
|
5420
5420
|
}) : void 0) : c((M) => M + R + " "), w(null), C.current.focus();
|
|
5421
|
-
},
|
|
5421
|
+
}, le = () => {
|
|
5422
5422
|
if (l) {
|
|
5423
5423
|
if (l.text.trim() === "")
|
|
5424
5424
|
return;
|
|
@@ -5429,7 +5429,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5429
5429
|
e(u), c("");
|
|
5430
5430
|
}
|
|
5431
5431
|
w(null);
|
|
5432
|
-
},
|
|
5432
|
+
}, ue = async () => {
|
|
5433
5433
|
h(!0), v(0), E.current = [], z.current = setInterval(() => {
|
|
5434
5434
|
v((M) => M + 1);
|
|
5435
5435
|
}, 1e3);
|
|
@@ -5446,7 +5446,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5446
5446
|
(D = g.current) == null || D.stop();
|
|
5447
5447
|
}, re = (D) => {
|
|
5448
5448
|
const { scrollTop: R, scrollHeight: M, clientHeight: L } = D.currentTarget;
|
|
5449
|
-
if (R >
|
|
5449
|
+
if (R > P) {
|
|
5450
5450
|
if (R + L >= M - 1) {
|
|
5451
5451
|
const _ = o == null ? void 0 : o.find(
|
|
5452
5452
|
(W) => W.symbol === y
|
|
@@ -5457,7 +5457,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5457
5457
|
}
|
|
5458
5458
|
} else
|
|
5459
5459
|
O(R);
|
|
5460
|
-
},
|
|
5460
|
+
}, be = /* @__PURE__ */ new Set([
|
|
5461
5461
|
"jpeg",
|
|
5462
5462
|
"png",
|
|
5463
5463
|
"gif",
|
|
@@ -5489,7 +5489,7 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5489
5489
|
const _ = R.type.split("/");
|
|
5490
5490
|
_.length === 2 && (M = _[1]);
|
|
5491
5491
|
}
|
|
5492
|
-
M || (M = ((k = R.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || ""),
|
|
5492
|
+
M || (M = ((k = R.name.split(".").pop()) == null ? void 0 : k.toLowerCase()) || ""), be.has(M) ? r(R) : b.has(M) ? i(R) : s(R);
|
|
5493
5493
|
};
|
|
5494
5494
|
return /* @__PURE__ */ p.exports.jsxs("div", { className: "absolute bottom-0 w-full flex items-center p-2 pr-4 z-10", children: [
|
|
5495
5495
|
f ? /* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex justify-between items-center bg-white p-2 pl-4 h-11 rounded-3xl ", children: [
|
|
@@ -5523,19 +5523,19 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5523
5523
|
className: "w-full bg-white flex-1 p-2 pl-4 border border-gray-300 outline-none rounded-bl-3xl ",
|
|
5524
5524
|
placeholder: "Type a message...",
|
|
5525
5525
|
value: l.text,
|
|
5526
|
-
onChange:
|
|
5526
|
+
onChange: xe,
|
|
5527
5527
|
onKeyDown: (D) => {
|
|
5528
|
-
D.key === "Enter" && !D.shiftKey && (D.preventDefault(),
|
|
5528
|
+
D.key === "Enter" && !D.shiftKey && (D.preventDefault(), le());
|
|
5529
5529
|
}
|
|
5530
5530
|
}
|
|
5531
5531
|
),
|
|
5532
|
-
/* @__PURE__ */ p.exports.jsx(
|
|
5532
|
+
/* @__PURE__ */ p.exports.jsx(tn, { className: "rotate-180 absolute -right-[11.4px] top-5" })
|
|
5533
5533
|
] }),
|
|
5534
5534
|
/* @__PURE__ */ p.exports.jsx(
|
|
5535
5535
|
"button",
|
|
5536
5536
|
{
|
|
5537
5537
|
className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
|
|
5538
|
-
onClick:
|
|
5538
|
+
onClick: le,
|
|
5539
5539
|
children: /* @__PURE__ */ p.exports.jsx(jn, {})
|
|
5540
5540
|
}
|
|
5541
5541
|
)
|
|
@@ -5566,19 +5566,19 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5566
5566
|
className: "w-full 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 ",
|
|
5567
5567
|
placeholder: "Type a message...",
|
|
5568
5568
|
value: u,
|
|
5569
|
-
onChange:
|
|
5569
|
+
onChange: xe,
|
|
5570
5570
|
onKeyDown: (D) => {
|
|
5571
|
-
D.key === "Enter" && !D.shiftKey && (D.preventDefault(),
|
|
5571
|
+
D.key === "Enter" && !D.shiftKey && (D.preventDefault(), le());
|
|
5572
5572
|
}
|
|
5573
5573
|
}
|
|
5574
5574
|
),
|
|
5575
|
-
/* @__PURE__ */ p.exports.jsx(
|
|
5575
|
+
/* @__PURE__ */ p.exports.jsx(tn, { className: "rotate-180 absolute -right-[11.4px] top-5" })
|
|
5576
5576
|
] }),
|
|
5577
5577
|
/* @__PURE__ */ p.exports.jsx(
|
|
5578
5578
|
"button",
|
|
5579
5579
|
{
|
|
5580
5580
|
className: "flex items-center justify-center cursor-pointer w-9 h-9 ml-2 p-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition",
|
|
5581
|
-
onClick: u ?
|
|
5581
|
+
onClick: u ? le : ue,
|
|
5582
5582
|
children: u ? /* @__PURE__ */ p.exports.jsx(jn, {}) : /* @__PURE__ */ p.exports.jsx(Td, {})
|
|
5583
5583
|
}
|
|
5584
5584
|
)
|
|
@@ -5643,15 +5643,16 @@ const md = (e, t) => vr(e) ? new pd(t) : new hd(t, {
|
|
|
5643
5643
|
)
|
|
5644
5644
|
] });
|
|
5645
5645
|
};
|
|
5646
|
-
var ke = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ke || {}),
|
|
5646
|
+
var ke = /* @__PURE__ */ ((e) => (e[e.File = 0] = "File", e[e.Voice = 1] = "Voice", e[e.Video = 2] = "Video", e[e.Image = 3] = "Image", e))(ke || {}), ie = /* @__PURE__ */ ((e) => (e[e.Telegram = 0] = "Telegram", e[e.Simple = 1] = "Simple", e))(ie || {});
|
|
5647
5647
|
const ws = ({
|
|
5648
5648
|
fileName: e,
|
|
5649
5649
|
fileSize: t,
|
|
5650
5650
|
format: n,
|
|
5651
|
-
src: r
|
|
5651
|
+
src: r,
|
|
5652
|
+
them: i
|
|
5652
5653
|
}) => {
|
|
5653
|
-
const
|
|
5654
|
-
const
|
|
5654
|
+
const s = () => {
|
|
5655
|
+
const l = {
|
|
5655
5656
|
rar: /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-green-500 font-bold", children: n }),
|
|
5656
5657
|
zip: /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-blue-500 font-bold", children: n }),
|
|
5657
5658
|
pdf: /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-red-500 font-bold", children: n }),
|
|
@@ -5675,21 +5676,33 @@ const ws = ({
|
|
|
5675
5676
|
csv: /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-teal-400 font-bold", children: n }),
|
|
5676
5677
|
sql: /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-gray-400 font-bold", children: n })
|
|
5677
5678
|
};
|
|
5678
|
-
return n &&
|
|
5679
|
-
},
|
|
5679
|
+
return n && l[n] ? l[n] : /* @__PURE__ */ p.exports.jsx("p", { className: "p-2 text-black ", children: n ?? "UN" });
|
|
5680
|
+
}, o = (l) => l > 1048576 ? (l / 1048576).toFixed(1) + " MB" : (l / 1024).toFixed(1) + " KB";
|
|
5680
5681
|
return /* @__PURE__ */ p.exports.jsxs("div", { className: "flex items-center rounded-lg", children: [
|
|
5681
|
-
/* @__PURE__ */ p.exports.jsx(
|
|
5682
|
+
/* @__PURE__ */ p.exports.jsx(
|
|
5683
|
+
"div",
|
|
5684
|
+
{
|
|
5685
|
+
className: ` border ${i === ie.Simple ? " border-white " : i === ie.Telegram ? " border-green-900" : ""} w-14 h-14 mr-3 flex items-center justify-center relative rounded-md p-3`,
|
|
5686
|
+
children: s()
|
|
5687
|
+
}
|
|
5688
|
+
),
|
|
5682
5689
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "flex flex-col flex-grow", children: [
|
|
5683
5690
|
/* @__PURE__ */ p.exports.jsx(
|
|
5684
5691
|
"a",
|
|
5685
5692
|
{
|
|
5686
5693
|
href: r,
|
|
5687
5694
|
download: e,
|
|
5688
|
-
className: "text-gray-900 font-medium hover:underline
|
|
5695
|
+
className: `${i === ie.Simple ? "text-white" : i === ie.Telegram ? "text-gray-900" : ""} font-medium hover:underline`,
|
|
5689
5696
|
children: e
|
|
5690
5697
|
}
|
|
5691
5698
|
),
|
|
5692
|
-
/* @__PURE__ */ p.exports.jsx(
|
|
5699
|
+
/* @__PURE__ */ p.exports.jsx(
|
|
5700
|
+
"span",
|
|
5701
|
+
{
|
|
5702
|
+
className: `${i === ie.Simple ? "text-gray-800" : i === ie.Telegram ? "text-gray-900" : ""} text-sm`,
|
|
5703
|
+
children: o(t)
|
|
5704
|
+
}
|
|
5705
|
+
)
|
|
5693
5706
|
] }),
|
|
5694
5707
|
/* @__PURE__ */ p.exports.jsx(
|
|
5695
5708
|
"a",
|
|
@@ -5701,7 +5714,7 @@ const ws = ({
|
|
|
5701
5714
|
}
|
|
5702
5715
|
)
|
|
5703
5716
|
] });
|
|
5704
|
-
},
|
|
5717
|
+
}, Sd = (e) => /* @__PURE__ */ p.exports.jsx(
|
|
5705
5718
|
"svg",
|
|
5706
5719
|
{
|
|
5707
5720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5717,7 +5730,7 @@ const ws = ({
|
|
|
5717
5730
|
...e,
|
|
5718
5731
|
children: /* @__PURE__ */ p.exports.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
5719
5732
|
}
|
|
5720
|
-
),
|
|
5733
|
+
), Pd = (e) => /* @__PURE__ */ p.exports.jsxs(
|
|
5721
5734
|
"svg",
|
|
5722
5735
|
{
|
|
5723
5736
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5739,7 +5752,7 @@ const ws = ({
|
|
|
5739
5752
|
);
|
|
5740
5753
|
let xt = null;
|
|
5741
5754
|
const Cd = ({ src: e, className: t }) => {
|
|
5742
|
-
const [n, r] =
|
|
5755
|
+
const [n, r] = me(!1), [i, s] = me(0), o = ge(null);
|
|
5743
5756
|
ft(() => {
|
|
5744
5757
|
const a = o.current;
|
|
5745
5758
|
if (!a)
|
|
@@ -5767,7 +5780,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5767
5780
|
{
|
|
5768
5781
|
className: "w-9 h-9 cursor-pointer flex items-center justify-center pl-[1.5px] bg-gray-700 rounded-full hover:bg-gray-600",
|
|
5769
5782
|
onClick: l,
|
|
5770
|
-
children: n ? /* @__PURE__ */ p.exports.jsx(
|
|
5783
|
+
children: n ? /* @__PURE__ */ p.exports.jsx(Pd, {}) : /* @__PURE__ */ p.exports.jsx(Sd, {})
|
|
5771
5784
|
}
|
|
5772
5785
|
),
|
|
5773
5786
|
/* @__PURE__ */ p.exports.jsx("div", { className: "relative flex-1 h-2 bg-gray-700 rounded-full overflow-hidden", children: /* @__PURE__ */ p.exports.jsx(
|
|
@@ -5784,7 +5797,8 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5784
5797
|
}, Ed = ({
|
|
5785
5798
|
attachmentUrl: e,
|
|
5786
5799
|
attachmentType: t,
|
|
5787
|
-
attachmentFormat: n
|
|
5800
|
+
attachmentFormat: n,
|
|
5801
|
+
them: r
|
|
5788
5802
|
}) => e ? t === ke.Voice ? /* @__PURE__ */ p.exports.jsx("div", { className: "w-full", children: /* @__PURE__ */ p.exports.jsx(Cd, { src: e }) }) : t === ke.Image ? /* @__PURE__ */ p.exports.jsx("div", { className: "w-full", children: /* @__PURE__ */ p.exports.jsx("img", { src: e }) }) : t === ke.File ? /* @__PURE__ */ p.exports.jsx("div", { className: "w-full mt-1", children: /* @__PURE__ */ p.exports.jsx(
|
|
5789
5803
|
ws,
|
|
5790
5804
|
{
|
|
@@ -5825,7 +5839,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5825
5839
|
exit: { opacity: 0, y: 50 },
|
|
5826
5840
|
transition: { duration: 0.3 },
|
|
5827
5841
|
onContextMenu: (y) => n(y, e),
|
|
5828
|
-
className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"} flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg ${i ===
|
|
5842
|
+
className: `relative ${r ? "w-3/4" : "w-fit max-w-3/4"} flex flex-col gap-1 md:max-w-[400px] p-2 pt-5 rounded-lg ${i === ie.Simple ? "bg-[#f8fbff]" : i === ie.Telegram ? "bg-blue-200 " : ""} `,
|
|
5829
5843
|
children: [
|
|
5830
5844
|
/* @__PURE__ */ p.exports.jsx(
|
|
5831
5845
|
"span",
|
|
@@ -5839,20 +5853,18 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5839
5853
|
/* @__PURE__ */ p.exports.jsx("span", { children: e.text }),
|
|
5840
5854
|
/* @__PURE__ */ p.exports.jsxs("div", { className: "w-full flex gap-1 items-center justify-end", children: [
|
|
5841
5855
|
/* @__PURE__ */ p.exports.jsx("span", { className: "text-[10px]", children: new Date(e.createdDate).toLocaleTimeString().split(":")[0] + ":" + new Date(e.createdDate).toLocaleTimeString().split(":")[1] }),
|
|
5842
|
-
e.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5856
|
+
e.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5857
|
+
"span",
|
|
5858
|
+
{
|
|
5859
|
+
className: `text-xs italic ${i === ie.Simple ? "text-gray-700" : i === ie.Telegram ? "text-gray-600 " : ""}`,
|
|
5860
|
+
children: "edited"
|
|
5861
|
+
}
|
|
5862
|
+
) : ""
|
|
5843
5863
|
] }),
|
|
5844
5864
|
/* @__PURE__ */ p.exports.jsx(
|
|
5845
|
-
|
|
5865
|
+
tn,
|
|
5846
5866
|
{
|
|
5847
|
-
|
|
5848
|
-
height: 19,
|
|
5849
|
-
className: ` ${i === Ce.Simple ? "visible" : "hidden"} -rotate-180 scale-x-[-0.9] scale-y-[0.8] transition-discrete absolute -left-[6.7px] -bottom-[0.9px] [&>g>path]:fill-white `
|
|
5850
|
-
}
|
|
5851
|
-
),
|
|
5852
|
-
/* @__PURE__ */ p.exports.jsx(
|
|
5853
|
-
kt,
|
|
5854
|
-
{
|
|
5855
|
-
className: ` ${i === Ce.Simple ? "[&>g>path]:fill-white [&>g>path:nth-child(2)]:!fill-[#E2E8F0]" : i === Ce.Telegram ? "[&>g>path]:fill-blue-200 " : ""} -rotate-180 scale-x-[-1] transition-discrete absolute z-[-1] -left-2 bottom-0 `
|
|
5867
|
+
className: ` ${i === ie.Simple ? "[&>g>path]:fill-[#f8fbff]" : i === ie.Telegram ? "[&>g>path]:fill-blue-200 " : ""} -rotate-180 scale-x-[-1] transition-discrete absolute z-[-1] -left-2 bottom-0 `
|
|
5856
5868
|
}
|
|
5857
5869
|
)
|
|
5858
5870
|
]
|
|
@@ -5965,7 +5977,7 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5965
5977
|
exit: { opacity: 0, y: 50 },
|
|
5966
5978
|
transition: { duration: 0.3 },
|
|
5967
5979
|
onContextMenu: (i) => e(i, n),
|
|
5968
|
-
className: `relative self-end ${t ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg ${r ===
|
|
5980
|
+
className: `relative self-end ${t ? "w-3/4" : "max-w-3/4"} flex flex-col justify-center md:max-w-[400px] p-2 rounded-lg ${r === ie.Telegram ? " bg-green-200" : ie.Simple ? " bg-[#4F46E5] text-white" : ""}`,
|
|
5969
5981
|
children: [
|
|
5970
5982
|
t || null,
|
|
5971
5983
|
/* @__PURE__ */ p.exports.jsx("span", { className: "", children: n.text }),
|
|
@@ -5974,28 +5986,34 @@ const Cd = ({ src: e, className: t }) => {
|
|
|
5974
5986
|
n.isSending ? /* @__PURE__ */ p.exports.jsx(ua, { size: 13, color: "text-black" }) : /* @__PURE__ */ p.exports.jsx(
|
|
5975
5987
|
jd,
|
|
5976
5988
|
{
|
|
5977
|
-
className: r ===
|
|
5989
|
+
className: r === ie.Telegram ? " " : ie.Simple ? " [&>path]:fill-white" : ""
|
|
5978
5990
|
}
|
|
5979
5991
|
),
|
|
5980
|
-
n.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5992
|
+
n.isEdited ? /* @__PURE__ */ p.exports.jsx(
|
|
5993
|
+
"span",
|
|
5994
|
+
{
|
|
5995
|
+
className: `text-xs italic ${r === ie.Simple ? "text-gray-200" : r === ie.Telegram ? "text-gray-600 " : ""}`,
|
|
5996
|
+
children: "edited"
|
|
5997
|
+
}
|
|
5998
|
+
) : ""
|
|
5981
5999
|
] }),
|
|
5982
6000
|
/* @__PURE__ */ p.exports.jsx(
|
|
5983
|
-
|
|
6001
|
+
tn,
|
|
5984
6002
|
{
|
|
5985
|
-
className: `fill-blue-200 rotate-180 absolute -right-[7px] bottom-[0.1px] ${r ===
|
|
6003
|
+
className: `fill-blue-200 rotate-180 absolute -right-[7px] bottom-[0.1px] ${r === ie.Telegram ? "[&>g>path]:fill-green-200" : ie.Simple ? " z-[-1] [&>g>path]:fill-[#4F46E5]" : ""} `
|
|
5986
6004
|
}
|
|
5987
6005
|
)
|
|
5988
6006
|
]
|
|
5989
6007
|
}
|
|
5990
6008
|
);
|
|
5991
|
-
var
|
|
5992
|
-
var
|
|
6009
|
+
var fe = { exports: {} }, An = { exports: {} }, X = {};
|
|
6010
|
+
var Ss;
|
|
5993
6011
|
function Dd() {
|
|
5994
|
-
if (
|
|
6012
|
+
if (Ss)
|
|
5995
6013
|
return X;
|
|
5996
|
-
|
|
5997
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118,
|
|
5998
|
-
function
|
|
6014
|
+
Ss = 1;
|
|
6015
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
6016
|
+
function P(g) {
|
|
5999
6017
|
if (typeof g == "object" && g !== null) {
|
|
6000
6018
|
var E = g.$$typeof;
|
|
6001
6019
|
switch (E) {
|
|
@@ -6026,43 +6044,43 @@ function Dd() {
|
|
|
6026
6044
|
}
|
|
6027
6045
|
}
|
|
6028
6046
|
function O(g) {
|
|
6029
|
-
return
|
|
6047
|
+
return P(g) === u;
|
|
6030
6048
|
}
|
|
6031
6049
|
return X.AsyncMode = a, X.ConcurrentMode = u, X.ContextConsumer = l, X.ContextProvider = o, X.Element = t, X.ForwardRef = c, X.Fragment = r, X.Lazy = v, X.Memo = m, X.Portal = n, X.Profiler = s, X.StrictMode = i, X.Suspense = f, X.isAsyncMode = function(g) {
|
|
6032
|
-
return O(g) ||
|
|
6050
|
+
return O(g) || P(g) === a;
|
|
6033
6051
|
}, X.isConcurrentMode = O, X.isContextConsumer = function(g) {
|
|
6034
|
-
return
|
|
6052
|
+
return P(g) === l;
|
|
6035
6053
|
}, X.isContextProvider = function(g) {
|
|
6036
|
-
return
|
|
6054
|
+
return P(g) === o;
|
|
6037
6055
|
}, X.isElement = function(g) {
|
|
6038
6056
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
6039
6057
|
}, X.isForwardRef = function(g) {
|
|
6040
|
-
return
|
|
6058
|
+
return P(g) === c;
|
|
6041
6059
|
}, X.isFragment = function(g) {
|
|
6042
|
-
return
|
|
6060
|
+
return P(g) === r;
|
|
6043
6061
|
}, X.isLazy = function(g) {
|
|
6044
|
-
return
|
|
6062
|
+
return P(g) === v;
|
|
6045
6063
|
}, X.isMemo = function(g) {
|
|
6046
|
-
return
|
|
6064
|
+
return P(g) === m;
|
|
6047
6065
|
}, X.isPortal = function(g) {
|
|
6048
|
-
return
|
|
6066
|
+
return P(g) === n;
|
|
6049
6067
|
}, X.isProfiler = function(g) {
|
|
6050
|
-
return
|
|
6068
|
+
return P(g) === s;
|
|
6051
6069
|
}, X.isStrictMode = function(g) {
|
|
6052
|
-
return
|
|
6070
|
+
return P(g) === i;
|
|
6053
6071
|
}, X.isSuspense = function(g) {
|
|
6054
|
-
return
|
|
6072
|
+
return P(g) === f;
|
|
6055
6073
|
}, X.isValidElementType = function(g) {
|
|
6056
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === s || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === m || g.$$typeof === o || g.$$typeof === l || g.$$typeof === c || g.$$typeof === w || g.$$typeof === x || g.$$typeof ===
|
|
6057
|
-
}, X.typeOf =
|
|
6074
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === u || g === s || g === i || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === v || g.$$typeof === m || g.$$typeof === o || g.$$typeof === l || g.$$typeof === c || g.$$typeof === w || g.$$typeof === x || g.$$typeof === S || g.$$typeof === y);
|
|
6075
|
+
}, X.typeOf = P, X;
|
|
6058
6076
|
}
|
|
6059
6077
|
var Z = {};
|
|
6060
|
-
var
|
|
6078
|
+
var Ps;
|
|
6061
6079
|
function Md() {
|
|
6062
|
-
return
|
|
6063
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118,
|
|
6064
|
-
function
|
|
6065
|
-
return typeof A == "string" || typeof A == "function" || A === r || A === u || A === s || A === i || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === v || A.$$typeof === m || A.$$typeof === o || A.$$typeof === l || A.$$typeof === c || A.$$typeof === w || A.$$typeof === x || A.$$typeof ===
|
|
6080
|
+
return Ps || (Ps = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6081
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
6082
|
+
function P(A) {
|
|
6083
|
+
return typeof A == "string" || typeof A == "function" || A === r || A === u || A === s || A === i || A === f || A === h || typeof A == "object" && A !== null && (A.$$typeof === v || A.$$typeof === m || A.$$typeof === o || A.$$typeof === l || A.$$typeof === c || A.$$typeof === w || A.$$typeof === x || A.$$typeof === S || A.$$typeof === y);
|
|
6066
6084
|
}
|
|
6067
6085
|
function O(A) {
|
|
6068
6086
|
if (typeof A == "object" && A !== null) {
|
|
@@ -6096,8 +6114,8 @@ function Md() {
|
|
|
6096
6114
|
}
|
|
6097
6115
|
}
|
|
6098
6116
|
}
|
|
6099
|
-
var g = a, E = u, z = l, C = o, N = t, G = c, ee = r,
|
|
6100
|
-
function
|
|
6117
|
+
var g = a, E = u, z = l, C = o, N = t, G = c, ee = r, xe = v, ae = m, B = n, le = s, ue = i, H = f, re = !1;
|
|
6118
|
+
function be(A) {
|
|
6101
6119
|
return re || (re = !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(A) || O(A) === a;
|
|
6102
6120
|
}
|
|
6103
6121
|
function b(A) {
|
|
@@ -6133,10 +6151,10 @@ function Md() {
|
|
|
6133
6151
|
function $(A) {
|
|
6134
6152
|
return O(A) === i;
|
|
6135
6153
|
}
|
|
6136
|
-
function
|
|
6154
|
+
function he(A) {
|
|
6137
6155
|
return O(A) === f;
|
|
6138
6156
|
}
|
|
6139
|
-
Z.AsyncMode = g, Z.ConcurrentMode = E, Z.ContextConsumer = z, Z.ContextProvider = C, Z.Element = N, Z.ForwardRef = G, Z.Fragment = ee, Z.Lazy =
|
|
6157
|
+
Z.AsyncMode = g, Z.ConcurrentMode = E, Z.ContextConsumer = z, Z.ContextProvider = C, Z.Element = N, Z.ForwardRef = G, Z.Fragment = ee, Z.Lazy = xe, Z.Memo = ae, Z.Portal = B, Z.Profiler = le, Z.StrictMode = ue, Z.Suspense = H, Z.isAsyncMode = be, Z.isConcurrentMode = b, Z.isContextConsumer = V, Z.isContextProvider = U, Z.isElement = D, Z.isForwardRef = R, Z.isFragment = M, Z.isLazy = L, Z.isMemo = k, Z.isPortal = _, Z.isProfiler = W, Z.isStrictMode = $, Z.isSuspense = he, Z.isValidElementType = P, Z.typeOf = O;
|
|
6140
6158
|
}()), Z;
|
|
6141
6159
|
}
|
|
6142
6160
|
var Cs;
|
|
@@ -6288,8 +6306,8 @@ function Ld() {
|
|
|
6288
6306
|
object: x("object"),
|
|
6289
6307
|
string: x("string"),
|
|
6290
6308
|
symbol: x("symbol"),
|
|
6291
|
-
any:
|
|
6292
|
-
arrayOf:
|
|
6309
|
+
any: S(),
|
|
6310
|
+
arrayOf: P,
|
|
6293
6311
|
element: O(),
|
|
6294
6312
|
elementType: g(),
|
|
6295
6313
|
instanceOf: E,
|
|
@@ -6297,8 +6315,8 @@ function Ld() {
|
|
|
6297
6315
|
objectOf: C,
|
|
6298
6316
|
oneOf: z,
|
|
6299
6317
|
oneOfType: N,
|
|
6300
|
-
shape:
|
|
6301
|
-
exact:
|
|
6318
|
+
shape: xe,
|
|
6319
|
+
exact: ae
|
|
6302
6320
|
};
|
|
6303
6321
|
function v(b, V) {
|
|
6304
6322
|
return b === V ? b !== 0 || 1 / b === 1 / V : b !== b && V !== V;
|
|
@@ -6310,8 +6328,8 @@ function Ld() {
|
|
|
6310
6328
|
function w(b) {
|
|
6311
6329
|
if (process.env.NODE_ENV !== "production")
|
|
6312
6330
|
var V = {}, U = 0;
|
|
6313
|
-
function D(M, L, k, _, W, $,
|
|
6314
|
-
if (_ = _ || h, $ = $ || k,
|
|
6331
|
+
function D(M, L, k, _, W, $, he) {
|
|
6332
|
+
if (_ = _ || h, $ = $ || k, he !== n) {
|
|
6315
6333
|
if (a) {
|
|
6316
6334
|
var A = new Error(
|
|
6317
6335
|
"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"
|
|
@@ -6331,7 +6349,7 @@ function Ld() {
|
|
|
6331
6349
|
}
|
|
6332
6350
|
function x(b) {
|
|
6333
6351
|
function V(U, D, R, M, L, k) {
|
|
6334
|
-
var _ = U[D], W =
|
|
6352
|
+
var _ = U[D], W = ue(_);
|
|
6335
6353
|
if (W !== b) {
|
|
6336
6354
|
var $ = H(_);
|
|
6337
6355
|
return new y(
|
|
@@ -6343,16 +6361,16 @@ function Ld() {
|
|
|
6343
6361
|
}
|
|
6344
6362
|
return w(V);
|
|
6345
6363
|
}
|
|
6346
|
-
function
|
|
6364
|
+
function S() {
|
|
6347
6365
|
return w(o);
|
|
6348
6366
|
}
|
|
6349
|
-
function
|
|
6367
|
+
function P(b) {
|
|
6350
6368
|
function V(U, D, R, M, L) {
|
|
6351
6369
|
if (typeof b != "function")
|
|
6352
6370
|
return new y("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
6353
6371
|
var k = U[D];
|
|
6354
6372
|
if (!Array.isArray(k)) {
|
|
6355
|
-
var _ =
|
|
6373
|
+
var _ = ue(k);
|
|
6356
6374
|
return new y("Invalid " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected an array."));
|
|
6357
6375
|
}
|
|
6358
6376
|
for (var W = 0; W < k.length; W++) {
|
|
@@ -6368,7 +6386,7 @@ function Ld() {
|
|
|
6368
6386
|
function b(V, U, D, R, M) {
|
|
6369
6387
|
var L = V[U];
|
|
6370
6388
|
if (!l(L)) {
|
|
6371
|
-
var k =
|
|
6389
|
+
var k = ue(L);
|
|
6372
6390
|
return new y("Invalid " + R + " `" + M + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
6373
6391
|
}
|
|
6374
6392
|
return null;
|
|
@@ -6379,7 +6397,7 @@ function Ld() {
|
|
|
6379
6397
|
function b(V, U, D, R, M) {
|
|
6380
6398
|
var L = V[U];
|
|
6381
6399
|
if (!e.isValidElementType(L)) {
|
|
6382
|
-
var k =
|
|
6400
|
+
var k = ue(L);
|
|
6383
6401
|
return new y("Invalid " + R + " `" + M + "` of type " + ("`" + k + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
6384
6402
|
}
|
|
6385
6403
|
return null;
|
|
@@ -6389,7 +6407,7 @@ function Ld() {
|
|
|
6389
6407
|
function E(b) {
|
|
6390
6408
|
function V(U, D, R, M, L) {
|
|
6391
6409
|
if (!(U[D] instanceof b)) {
|
|
6392
|
-
var k = b.name || h, _ =
|
|
6410
|
+
var k = b.name || h, _ = be(U[D]);
|
|
6393
6411
|
return new y("Invalid " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected ") + ("instance of `" + k + "`."));
|
|
6394
6412
|
}
|
|
6395
6413
|
return null;
|
|
@@ -6405,7 +6423,7 @@ function Ld() {
|
|
|
6405
6423
|
for (var k = U[D], _ = 0; _ < b.length; _++)
|
|
6406
6424
|
if (v(k, b[_]))
|
|
6407
6425
|
return null;
|
|
6408
|
-
var W = JSON.stringify(b, function(
|
|
6426
|
+
var W = JSON.stringify(b, function(he, A) {
|
|
6409
6427
|
var Ee = H(A);
|
|
6410
6428
|
return Ee === "symbol" ? String(A) : A;
|
|
6411
6429
|
});
|
|
@@ -6417,7 +6435,7 @@ function Ld() {
|
|
|
6417
6435
|
function V(U, D, R, M, L) {
|
|
6418
6436
|
if (typeof b != "function")
|
|
6419
6437
|
return new y("Property `" + L + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
6420
|
-
var k = U[D], _ =
|
|
6438
|
+
var k = U[D], _ = ue(k);
|
|
6421
6439
|
if (_ !== "object")
|
|
6422
6440
|
return new y("Invalid " + M + " `" + L + "` of type " + ("`" + _ + "` supplied to `" + R + "`, expected an object."));
|
|
6423
6441
|
for (var W in k)
|
|
@@ -6442,7 +6460,7 @@ function Ld() {
|
|
|
6442
6460
|
}
|
|
6443
6461
|
function D(R, M, L, k, _) {
|
|
6444
6462
|
for (var W = [], $ = 0; $ < b.length; $++) {
|
|
6445
|
-
var
|
|
6463
|
+
var he = b[$], A = he(R, M, L, k, _, n);
|
|
6446
6464
|
if (A == null)
|
|
6447
6465
|
return null;
|
|
6448
6466
|
A.data && r(A.data, "expectedType") && W.push(A.data.expectedType);
|
|
@@ -6463,39 +6481,39 @@ function Ld() {
|
|
|
6463
6481
|
(b || "React class") + ": " + V + " type `" + U + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
6464
6482
|
);
|
|
6465
6483
|
}
|
|
6466
|
-
function
|
|
6484
|
+
function xe(b) {
|
|
6467
6485
|
function V(U, D, R, M, L) {
|
|
6468
|
-
var k = U[D], _ =
|
|
6486
|
+
var k = U[D], _ = ue(k);
|
|
6469
6487
|
if (_ !== "object")
|
|
6470
6488
|
return new y("Invalid " + M + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
6471
6489
|
for (var W in b) {
|
|
6472
6490
|
var $ = b[W];
|
|
6473
6491
|
if (typeof $ != "function")
|
|
6474
6492
|
return ee(R, M, L, W, H($));
|
|
6475
|
-
var
|
|
6476
|
-
if (
|
|
6477
|
-
return
|
|
6493
|
+
var he = $(k, W, R, M, L + "." + W, n);
|
|
6494
|
+
if (he)
|
|
6495
|
+
return he;
|
|
6478
6496
|
}
|
|
6479
6497
|
return null;
|
|
6480
6498
|
}
|
|
6481
6499
|
return w(V);
|
|
6482
6500
|
}
|
|
6483
|
-
function
|
|
6501
|
+
function ae(b) {
|
|
6484
6502
|
function V(U, D, R, M, L) {
|
|
6485
|
-
var k = U[D], _ =
|
|
6503
|
+
var k = U[D], _ = ue(k);
|
|
6486
6504
|
if (_ !== "object")
|
|
6487
6505
|
return new y("Invalid " + M + " `" + L + "` of type `" + _ + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
6488
6506
|
var W = t({}, U[D], b);
|
|
6489
6507
|
for (var $ in W) {
|
|
6490
|
-
var
|
|
6491
|
-
if (r(b, $) && typeof
|
|
6492
|
-
return ee(R, M, L, $, H(
|
|
6493
|
-
if (!
|
|
6508
|
+
var he = b[$];
|
|
6509
|
+
if (r(b, $) && typeof he != "function")
|
|
6510
|
+
return ee(R, M, L, $, H(he));
|
|
6511
|
+
if (!he)
|
|
6494
6512
|
return new y(
|
|
6495
6513
|
"Invalid " + M + " `" + L + "` key `" + $ + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(U[D], null, " ") + `
|
|
6496
6514
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
6497
6515
|
);
|
|
6498
|
-
var A =
|
|
6516
|
+
var A = he(k, $, R, M, L + "." + $, n);
|
|
6499
6517
|
if (A)
|
|
6500
6518
|
return A;
|
|
6501
6519
|
}
|
|
@@ -6536,17 +6554,17 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6536
6554
|
return !1;
|
|
6537
6555
|
}
|
|
6538
6556
|
}
|
|
6539
|
-
function
|
|
6557
|
+
function le(b, V) {
|
|
6540
6558
|
return b === "symbol" ? !0 : V ? V["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && V instanceof Symbol : !1;
|
|
6541
6559
|
}
|
|
6542
|
-
function
|
|
6560
|
+
function ue(b) {
|
|
6543
6561
|
var V = typeof b;
|
|
6544
|
-
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" :
|
|
6562
|
+
return Array.isArray(b) ? "array" : b instanceof RegExp ? "object" : le(V, b) ? "symbol" : V;
|
|
6545
6563
|
}
|
|
6546
6564
|
function H(b) {
|
|
6547
6565
|
if (typeof b > "u" || b === null)
|
|
6548
6566
|
return "" + b;
|
|
6549
|
-
var V =
|
|
6567
|
+
var V = ue(b);
|
|
6550
6568
|
if (V === "object") {
|
|
6551
6569
|
if (b instanceof Date)
|
|
6552
6570
|
return "date";
|
|
@@ -6569,7 +6587,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
6569
6587
|
return V;
|
|
6570
6588
|
}
|
|
6571
6589
|
}
|
|
6572
|
-
function
|
|
6590
|
+
function be(b) {
|
|
6573
6591
|
return !b.constructor || !b.constructor.name ? h : b.constructor.name;
|
|
6574
6592
|
}
|
|
6575
6593
|
return m.checkPropTypes = i, m.resetWarningCache = i.resetWarningCache, m.PropTypes = m, m;
|
|
@@ -6626,9 +6644,9 @@ function kd() {
|
|
|
6626
6644
|
}
|
|
6627
6645
|
if (process.env.NODE_ENV !== "production") {
|
|
6628
6646
|
var _d = fa(), Id = !0;
|
|
6629
|
-
|
|
6647
|
+
fe.exports = Ld()(_d.isElement, Id);
|
|
6630
6648
|
} else
|
|
6631
|
-
|
|
6649
|
+
fe.exports = kd()();
|
|
6632
6650
|
function Jn() {
|
|
6633
6651
|
return Jn = Object.assign || function(e) {
|
|
6634
6652
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -6658,7 +6676,7 @@ function Fd(e, t) {
|
|
|
6658
6676
|
i = r[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
6659
6677
|
return n;
|
|
6660
6678
|
}
|
|
6661
|
-
var $r =
|
|
6679
|
+
var $r = kt(function(e, t) {
|
|
6662
6680
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Nd(e, ["color", "size"]);
|
|
6663
6681
|
return /* @__PURE__ */ Pe.createElement("svg", Jn({
|
|
6664
6682
|
ref: t,
|
|
@@ -6676,8 +6694,8 @@ var $r = _t(function(e, t) {
|
|
|
6676
6694
|
}));
|
|
6677
6695
|
});
|
|
6678
6696
|
$r.propTypes = {
|
|
6679
|
-
color:
|
|
6680
|
-
size:
|
|
6697
|
+
color: fe.exports.string,
|
|
6698
|
+
size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
|
|
6681
6699
|
};
|
|
6682
6700
|
$r.displayName = "Check";
|
|
6683
6701
|
const Bd = $r;
|
|
@@ -6710,7 +6728,7 @@ function Ud(e, t) {
|
|
|
6710
6728
|
i = r[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
6711
6729
|
return n;
|
|
6712
6730
|
}
|
|
6713
|
-
var Ur =
|
|
6731
|
+
var Ur = kt(function(e, t) {
|
|
6714
6732
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = $d(e, ["color", "size"]);
|
|
6715
6733
|
return /* @__PURE__ */ Pe.createElement("svg", Qn({
|
|
6716
6734
|
ref: t,
|
|
@@ -6735,8 +6753,8 @@ var Ur = _t(function(e, t) {
|
|
|
6735
6753
|
}));
|
|
6736
6754
|
});
|
|
6737
6755
|
Ur.propTypes = {
|
|
6738
|
-
color:
|
|
6739
|
-
size:
|
|
6756
|
+
color: fe.exports.string,
|
|
6757
|
+
size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
|
|
6740
6758
|
};
|
|
6741
6759
|
Ur.displayName = "Copy";
|
|
6742
6760
|
const Wd = Ur;
|
|
@@ -6769,7 +6787,7 @@ function Yd(e, t) {
|
|
|
6769
6787
|
i = r[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
6770
6788
|
return n;
|
|
6771
6789
|
}
|
|
6772
|
-
var Wr =
|
|
6790
|
+
var Wr = kt(function(e, t) {
|
|
6773
6791
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = zd(e, ["color", "size"]);
|
|
6774
6792
|
return /* @__PURE__ */ Pe.createElement("svg", er({
|
|
6775
6793
|
ref: t,
|
|
@@ -6789,8 +6807,8 @@ var Wr = _t(function(e, t) {
|
|
|
6789
6807
|
}));
|
|
6790
6808
|
});
|
|
6791
6809
|
Wr.propTypes = {
|
|
6792
|
-
color:
|
|
6793
|
-
size:
|
|
6810
|
+
color: fe.exports.string,
|
|
6811
|
+
size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
|
|
6794
6812
|
};
|
|
6795
6813
|
Wr.displayName = "Edit";
|
|
6796
6814
|
const Kd = Wr;
|
|
@@ -6823,7 +6841,7 @@ function qd(e, t) {
|
|
|
6823
6841
|
i = r[s], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
6824
6842
|
return n;
|
|
6825
6843
|
}
|
|
6826
|
-
var zr =
|
|
6844
|
+
var zr = kt(function(e, t) {
|
|
6827
6845
|
var n = e.color, r = n === void 0 ? "currentColor" : n, i = e.size, s = i === void 0 ? 24 : i, o = Gd(e, ["color", "size"]);
|
|
6828
6846
|
return /* @__PURE__ */ Pe.createElement("svg", tr({
|
|
6829
6847
|
ref: t,
|
|
@@ -6843,8 +6861,8 @@ var zr = _t(function(e, t) {
|
|
|
6843
6861
|
}));
|
|
6844
6862
|
});
|
|
6845
6863
|
zr.propTypes = {
|
|
6846
|
-
color:
|
|
6847
|
-
size:
|
|
6864
|
+
color: fe.exports.string,
|
|
6865
|
+
size: fe.exports.oneOfType([fe.exports.string, fe.exports.number])
|
|
6848
6866
|
};
|
|
6849
6867
|
zr.displayName = "Trash";
|
|
6850
6868
|
const Hd = zr, Xd = ({
|
|
@@ -6855,7 +6873,7 @@ const Hd = zr, Xd = ({
|
|
|
6855
6873
|
onEditMessage: i,
|
|
6856
6874
|
onDeleteMessage: s
|
|
6857
6875
|
}) => {
|
|
6858
|
-
const o =
|
|
6876
|
+
const o = ge(null), [l, a] = me(!1), [u, c] = me(null), [f, h] = me(), [m, v] = me(null), y = () => {
|
|
6859
6877
|
setTimeout(() => {
|
|
6860
6878
|
o.current && (o.current.scrollTop = o.current.scrollHeight);
|
|
6861
6879
|
}, 100);
|
|
@@ -6878,7 +6896,7 @@ const Hd = zr, Xd = ({
|
|
|
6878
6896
|
});
|
|
6879
6897
|
}, x = () => {
|
|
6880
6898
|
v(null);
|
|
6881
|
-
},
|
|
6899
|
+
}, S = (C) => {
|
|
6882
6900
|
const N = new wt({
|
|
6883
6901
|
id: new Date().toString(),
|
|
6884
6902
|
text: C,
|
|
@@ -6887,7 +6905,7 @@ const Hd = zr, Xd = ({
|
|
|
6887
6905
|
createdDate: new Date().toString()
|
|
6888
6906
|
});
|
|
6889
6907
|
n([...t, N]), r(N), y();
|
|
6890
|
-
},
|
|
6908
|
+
}, P = (C) => {
|
|
6891
6909
|
n(
|
|
6892
6910
|
t.map((N) => N.id === C.id ? C : N)
|
|
6893
6911
|
), i(C);
|
|
@@ -6957,7 +6975,7 @@ const Hd = zr, Xd = ({
|
|
|
6957
6975
|
],
|
|
6958
6976
|
handleSendFile: g,
|
|
6959
6977
|
handleSendVoice: O,
|
|
6960
|
-
handleSendMessage:
|
|
6978
|
+
handleSendMessage: S,
|
|
6961
6979
|
handleContextMenu: w,
|
|
6962
6980
|
isModalOpen: l,
|
|
6963
6981
|
contextMenu: m,
|
|
@@ -6965,7 +6983,7 @@ const Hd = zr, Xd = ({
|
|
|
6965
6983
|
setIsModalOpen: a,
|
|
6966
6984
|
messageToEdit: f,
|
|
6967
6985
|
setMessageToEdit: h,
|
|
6968
|
-
handleEditMessage:
|
|
6986
|
+
handleEditMessage: P
|
|
6969
6987
|
};
|
|
6970
6988
|
}, rh = ({
|
|
6971
6989
|
width: e = "400px",
|
|
@@ -6981,16 +6999,16 @@ const Hd = zr, Xd = ({
|
|
|
6981
6999
|
onEditMessage: c,
|
|
6982
7000
|
dynamicSymbolAssignments: f,
|
|
6983
7001
|
backgroundImage: h,
|
|
6984
|
-
them: m =
|
|
7002
|
+
them: m = ie.Telegram
|
|
6985
7003
|
}) => {
|
|
6986
|
-
var
|
|
7004
|
+
var xe, ae;
|
|
6987
7005
|
const {
|
|
6988
7006
|
handleDeleteConfirmation: v,
|
|
6989
7007
|
handleCloseContextMenu: y,
|
|
6990
7008
|
handleSendFile: w,
|
|
6991
7009
|
handleSendVoice: x,
|
|
6992
|
-
handleSendMessage:
|
|
6993
|
-
handleContextMenu:
|
|
7010
|
+
handleSendMessage: S,
|
|
7011
|
+
handleContextMenu: P,
|
|
6994
7012
|
contextMenuItems: O,
|
|
6995
7013
|
isModalOpen: g,
|
|
6996
7014
|
contextMenu: E,
|
|
@@ -7024,39 +7042,39 @@ const Hd = zr, Xd = ({
|
|
|
7024
7042
|
{
|
|
7025
7043
|
ref: z,
|
|
7026
7044
|
className: `flex flex-col gap-2 flex-1 p-3 pb-16 ${E ? "overflow-hidden pr-[22px]" : "overflow-y-scroll"}`,
|
|
7027
|
-
children: n ? /* @__PURE__ */ p.exports.jsx(ua, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(_s, { children: s.length > 0 ? s.map((B,
|
|
7028
|
-
var re,
|
|
7029
|
-
const
|
|
7045
|
+
children: n ? /* @__PURE__ */ p.exports.jsx(ua, { className: "mt-3", size: 27, color: "text-gray-800" }) : /* @__PURE__ */ p.exports.jsx(_s, { children: s.length > 0 ? s.map((B, le) => {
|
|
7046
|
+
var re, be, b;
|
|
7047
|
+
const ue = B != null && B.attachmentUrl ? /* @__PURE__ */ p.exports.jsx(
|
|
7030
7048
|
Ed,
|
|
7031
7049
|
{
|
|
7032
7050
|
attachmentUrl: B.attachmentUrl,
|
|
7033
7051
|
attachmentType: B == null ? void 0 : B.attachmentType,
|
|
7034
7052
|
attachmentFormat: B == null ? void 0 : B.attachmentFormat
|
|
7035
7053
|
},
|
|
7036
|
-
|
|
7054
|
+
le
|
|
7037
7055
|
) : null;
|
|
7038
7056
|
if (B.isRightSided)
|
|
7039
7057
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7040
7058
|
Ad,
|
|
7041
7059
|
{
|
|
7042
|
-
media:
|
|
7043
|
-
handleContextMenu:
|
|
7060
|
+
media: ue,
|
|
7061
|
+
handleContextMenu: P,
|
|
7044
7062
|
message: B,
|
|
7045
7063
|
them: m
|
|
7046
7064
|
},
|
|
7047
|
-
|
|
7065
|
+
le
|
|
7048
7066
|
);
|
|
7049
|
-
const H = ((
|
|
7067
|
+
const H = ((be = (re = s[le - 1]) == null ? void 0 : re.user) == null ? void 0 : be.id) !== ((b = B == null ? void 0 : B.user) == null ? void 0 : b.id);
|
|
7050
7068
|
return /* @__PURE__ */ p.exports.jsx(
|
|
7051
7069
|
Rd,
|
|
7052
7070
|
{
|
|
7053
7071
|
showUserProfile: H,
|
|
7054
|
-
media:
|
|
7055
|
-
handleContextMenu:
|
|
7072
|
+
media: ue,
|
|
7073
|
+
handleContextMenu: P,
|
|
7056
7074
|
message: B,
|
|
7057
7075
|
them: m
|
|
7058
7076
|
},
|
|
7059
|
-
|
|
7077
|
+
le
|
|
7060
7078
|
);
|
|
7061
7079
|
}) : null })
|
|
7062
7080
|
}
|
|
@@ -7071,13 +7089,13 @@ const Hd = zr, Xd = ({
|
|
|
7071
7089
|
question: "Are you sure you want to delete this message?"
|
|
7072
7090
|
}
|
|
7073
7091
|
),
|
|
7074
|
-
E && ((
|
|
7092
|
+
E && ((xe = E == null ? void 0 : E.message) != null && xe.id) ? /* @__PURE__ */ p.exports.jsx(
|
|
7075
7093
|
vd,
|
|
7076
7094
|
{
|
|
7077
7095
|
items: O,
|
|
7078
7096
|
isVisible: Boolean(E),
|
|
7079
7097
|
messageId: String(E == null ? void 0 : E.message.id),
|
|
7080
|
-
isCurrentUserMessage: ((
|
|
7098
|
+
isCurrentUserMessage: ((ae = E == null ? void 0 : E.message) == null ? void 0 : ae.user.id) === o.id,
|
|
7081
7099
|
position: {
|
|
7082
7100
|
x: E == null ? void 0 : E.x,
|
|
7083
7101
|
y: E == null ? void 0 : E.y
|
|
@@ -7088,7 +7106,7 @@ const Hd = zr, Xd = ({
|
|
|
7088
7106
|
wd,
|
|
7089
7107
|
{
|
|
7090
7108
|
onSendVoice: x,
|
|
7091
|
-
onSendMessage:
|
|
7109
|
+
onSendMessage: S,
|
|
7092
7110
|
onFileSend: (B) => w(B, ke.File),
|
|
7093
7111
|
onImageSend: (B) => w(B, ke.Image),
|
|
7094
7112
|
onVideoSend: (B) => w(B, ke.Video),
|
|
@@ -7106,7 +7124,7 @@ export {
|
|
|
7106
7124
|
ke as AttachmentTypeEnum,
|
|
7107
7125
|
eh as Button,
|
|
7108
7126
|
rh as Chat,
|
|
7109
|
-
|
|
7127
|
+
ie as ChatThemEntity,
|
|
7110
7128
|
wt as MessageEntity
|
|
7111
7129
|
};
|
|
7112
7130
|
//# sourceMappingURL=index.es.js.map
|