@tencentcloud/chat-uikit-react 4.5.3 → 5.3.0
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/CHANGELOG.md +7 -0
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/ChatHeader/AudioCallPicker/AudioCallPicker.js +1 -1
- package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +1 -1
- package/dist/components/ChatHeader/VideoCallPicker/VideoCallPicker.js +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/external_modules/{classnames-HRMVOjAa.js → classnames-YINwPh9B.js} +10 -13
- package/dist/external_modules/{react-vendors-x_iUMC12.js → react-vendors-oB9rFIV-.js} +181 -178
- package/dist/index.js +2 -2
- package/dist/locales/en-US/index.d.ts +0 -94
- package/dist/locales/en-US/index.js +18 -20
- package/dist/locales/ja-JP/index.d.ts +0 -95
- package/dist/locales/ja-JP/index.js +18 -20
- package/dist/locales/ko-KR/index.d.ts +0 -95
- package/dist/locales/ko-KR/index.js +18 -20
- package/dist/locales/zh-CN/index.d.ts +0 -94
- package/dist/locales/zh-CN/index.js +18 -20
- package/dist/locales/zh-TW/index.d.ts +0 -95
- package/dist/locales/zh-TW/index.js +18 -20
- package/package.json +7 -7
- package/src/locales/en-US/index.ts +0 -2
- package/src/locales/ja-JP/index.ts +0 -2
- package/src/locales/ko-KR/index.ts +0 -2
- package/src/locales/zh-CN/index.ts +0 -2
- package/src/locales/zh-TW/index.ts +0 -2
- package/dist/locales/en-US/ChatSetting.d.ts +0 -95
- package/dist/locales/en-US/ChatSetting.js +0 -107
- package/dist/locales/ja-JP/ChatSetting.d.ts +0 -96
- package/dist/locales/ja-JP/ChatSetting.js +0 -108
- package/dist/locales/ko-KR/ChatSetting.d.ts +0 -96
- package/dist/locales/ko-KR/ChatSetting.js +0 -108
- package/dist/locales/zh-CN/ChatSetting.d.ts +0 -95
- package/dist/locales/zh-CN/ChatSetting.js +0 -107
- package/dist/locales/zh-TW/ChatSetting.d.ts +0 -96
- package/dist/locales/zh-TW/ChatSetting.js +0 -108
- package/src/locales/en-US/ChatSetting.ts +0 -116
- package/src/locales/ja-JP/ChatSetting.ts +0 -117
- package/src/locales/ko-KR/ChatSetting.ts +0 -117
- package/src/locales/zh-CN/ChatSetting.ts +0 -116
- package/src/locales/zh-TW/ChatSetting.ts +0 -117
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { g as Ye } from "./classnames-HRMVOjAa.js";
|
|
2
1
|
import V from "react";
|
|
3
2
|
import Q from "react-dom";
|
|
3
|
+
function Ye(t) {
|
|
4
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
|
+
}
|
|
4
6
|
function te() {
|
|
5
|
-
return te = Object.assign ? Object.assign.bind() : function(
|
|
7
|
+
return te = Object.assign ? Object.assign.bind() : function(t) {
|
|
6
8
|
for (var u = 1; u < arguments.length; u++) {
|
|
7
9
|
var l = arguments[u];
|
|
8
|
-
for (var e in l) ({}).hasOwnProperty.call(l, e) && (
|
|
10
|
+
for (var e in l) ({}).hasOwnProperty.call(l, e) && (t[e] = l[e]);
|
|
9
11
|
}
|
|
10
|
-
return
|
|
12
|
+
return t;
|
|
11
13
|
}, te.apply(null, arguments);
|
|
12
14
|
}
|
|
13
|
-
function Ie(
|
|
14
|
-
if (
|
|
15
|
+
function Ie(t, u) {
|
|
16
|
+
if (t == null) return {};
|
|
15
17
|
var l = {};
|
|
16
|
-
for (var e in
|
|
18
|
+
for (var e in t) if ({}.hasOwnProperty.call(t, e)) {
|
|
17
19
|
if (u.indexOf(e) !== -1) continue;
|
|
18
|
-
l[e] =
|
|
20
|
+
l[e] = t[e];
|
|
19
21
|
}
|
|
20
22
|
return l;
|
|
21
23
|
}
|
|
22
|
-
function he(
|
|
24
|
+
function he(t, u) {
|
|
23
25
|
return he = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(l, e) {
|
|
24
26
|
return l.__proto__ = e, l;
|
|
25
|
-
}, he(
|
|
27
|
+
}, he(t, u);
|
|
26
28
|
}
|
|
27
|
-
function je(
|
|
28
|
-
|
|
29
|
+
function je(t, u) {
|
|
30
|
+
t.prototype = Object.create(u.prototype), t.prototype.constructor = t, he(t, u);
|
|
29
31
|
}
|
|
30
32
|
var me = { exports: {} }, ee = { exports: {} }, S = {};
|
|
31
33
|
/** @license React v16.13.1
|
|
@@ -40,7 +42,7 @@ var Te;
|
|
|
40
42
|
function We() {
|
|
41
43
|
if (Te) return S;
|
|
42
44
|
Te = 1;
|
|
43
|
-
var
|
|
45
|
+
var t = typeof Symbol == "function" && Symbol.for, u = t ? Symbol.for("react.element") : 60103, l = t ? Symbol.for("react.portal") : 60106, e = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, n = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, E = t ? Symbol.for("react.suspense") : 60113, P = t ? Symbol.for("react.suspense_list") : 60120, A = t ? Symbol.for("react.memo") : 60115, M = t ? Symbol.for("react.lazy") : 60116, w = t ? Symbol.for("react.block") : 60121, I = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, B = t ? Symbol.for("react.scope") : 60119;
|
|
44
46
|
function $(c) {
|
|
45
47
|
if (typeof c == "object" && c !== null) {
|
|
46
48
|
var Y = c.$$typeof;
|
|
@@ -50,7 +52,7 @@ function We() {
|
|
|
50
52
|
case f:
|
|
51
53
|
case p:
|
|
52
54
|
case e:
|
|
53
|
-
case
|
|
55
|
+
case r:
|
|
54
56
|
case i:
|
|
55
57
|
case E:
|
|
56
58
|
return c;
|
|
@@ -74,7 +76,7 @@ function We() {
|
|
|
74
76
|
function N(c) {
|
|
75
77
|
return $(c) === p;
|
|
76
78
|
}
|
|
77
|
-
return S.AsyncMode = f, S.ConcurrentMode = p, S.ContextConsumer = n, S.ContextProvider = a, S.Element = u, S.ForwardRef = v, S.Fragment = e, S.Lazy = M, S.Memo = A, S.Portal = l, S.Profiler =
|
|
79
|
+
return S.AsyncMode = f, S.ConcurrentMode = p, S.ContextConsumer = n, S.ContextProvider = a, S.Element = u, S.ForwardRef = v, S.Fragment = e, S.Lazy = M, S.Memo = A, S.Portal = l, S.Profiler = r, S.StrictMode = i, S.Suspense = E, S.isAsyncMode = function(c) {
|
|
78
80
|
return N(c) || $(c) === f;
|
|
79
81
|
}, S.isConcurrentMode = N, S.isContextConsumer = function(c) {
|
|
80
82
|
return $(c) === n;
|
|
@@ -93,13 +95,13 @@ function We() {
|
|
|
93
95
|
}, S.isPortal = function(c) {
|
|
94
96
|
return $(c) === l;
|
|
95
97
|
}, S.isProfiler = function(c) {
|
|
96
|
-
return $(c) ===
|
|
98
|
+
return $(c) === r;
|
|
97
99
|
}, S.isStrictMode = function(c) {
|
|
98
100
|
return $(c) === i;
|
|
99
101
|
}, S.isSuspense = function(c) {
|
|
100
102
|
return $(c) === E;
|
|
101
103
|
}, S.isValidElementType = function(c) {
|
|
102
|
-
return typeof c == "string" || typeof c == "function" || c === e || c === p || c ===
|
|
104
|
+
return typeof c == "string" || typeof c == "function" || c === e || c === p || c === r || c === i || c === E || c === P || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === A || c.$$typeof === a || c.$$typeof === n || c.$$typeof === v || c.$$typeof === I || c.$$typeof === D || c.$$typeof === B || c.$$typeof === w);
|
|
103
105
|
}, S.typeOf = $, S;
|
|
104
106
|
}
|
|
105
107
|
var R = {};
|
|
@@ -114,10 +116,10 @@ var R = {};
|
|
|
114
116
|
var Ce;
|
|
115
117
|
function Ue() {
|
|
116
118
|
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
117
|
-
var
|
|
119
|
+
var t = typeof Symbol == "function" && Symbol.for, u = t ? Symbol.for("react.element") : 60103, l = t ? Symbol.for("react.portal") : 60106, e = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, n = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, E = t ? Symbol.for("react.suspense") : 60113, P = t ? Symbol.for("react.suspense_list") : 60120, A = t ? Symbol.for("react.memo") : 60115, M = t ? Symbol.for("react.lazy") : 60116, w = t ? Symbol.for("react.block") : 60121, I = t ? Symbol.for("react.fundamental") : 60117, D = t ? Symbol.for("react.responder") : 60118, B = t ? Symbol.for("react.scope") : 60119;
|
|
118
120
|
function $(s) {
|
|
119
121
|
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
120
|
-
s === e || s === p || s ===
|
|
122
|
+
s === e || s === p || s === r || s === i || s === E || s === P || typeof s == "object" && s !== null && (s.$$typeof === M || s.$$typeof === A || s.$$typeof === a || s.$$typeof === n || s.$$typeof === v || s.$$typeof === I || s.$$typeof === D || s.$$typeof === B || s.$$typeof === w);
|
|
121
123
|
}
|
|
122
124
|
function N(s) {
|
|
123
125
|
if (typeof s == "object" && s !== null) {
|
|
@@ -129,7 +131,7 @@ function Ue() {
|
|
|
129
131
|
case f:
|
|
130
132
|
case p:
|
|
131
133
|
case e:
|
|
132
|
-
case
|
|
134
|
+
case r:
|
|
133
135
|
case i:
|
|
134
136
|
case E:
|
|
135
137
|
return Z;
|
|
@@ -151,7 +153,7 @@ function Ue() {
|
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
|
-
var c = f, Y = p, re = n, ne = a, oe = u, ie = v, J = e, ae = M, se = A, z = l, ue =
|
|
156
|
+
var c = f, Y = p, re = n, ne = a, oe = u, ie = v, J = e, ae = M, se = A, z = l, ue = r, k = i, W = E, K = !1;
|
|
155
157
|
function ce(s) {
|
|
156
158
|
return K || (K = !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.")), o(s) || N(s) === f;
|
|
157
159
|
}
|
|
@@ -164,7 +166,7 @@ function Ue() {
|
|
|
164
166
|
function x(s) {
|
|
165
167
|
return N(s) === a;
|
|
166
168
|
}
|
|
167
|
-
function
|
|
169
|
+
function b(s) {
|
|
168
170
|
return typeof s == "object" && s !== null && s.$$typeof === u;
|
|
169
171
|
}
|
|
170
172
|
function h(s) {
|
|
@@ -176,14 +178,14 @@ function Ue() {
|
|
|
176
178
|
function m(s) {
|
|
177
179
|
return N(s) === M;
|
|
178
180
|
}
|
|
179
|
-
function
|
|
181
|
+
function g(s) {
|
|
180
182
|
return N(s) === A;
|
|
181
183
|
}
|
|
182
184
|
function C(s) {
|
|
183
185
|
return N(s) === l;
|
|
184
186
|
}
|
|
185
187
|
function _(s) {
|
|
186
|
-
return N(s) ===
|
|
188
|
+
return N(s) === r;
|
|
187
189
|
}
|
|
188
190
|
function O(s) {
|
|
189
191
|
return N(s) === i;
|
|
@@ -191,7 +193,7 @@ function Ue() {
|
|
|
191
193
|
function j(s) {
|
|
192
194
|
return N(s) === E;
|
|
193
195
|
}
|
|
194
|
-
R.AsyncMode = c, R.ConcurrentMode = Y, R.ContextConsumer = re, R.ContextProvider = ne, R.Element = oe, R.ForwardRef = ie, R.Fragment = J, R.Lazy = ae, R.Memo = se, R.Portal = z, R.Profiler = ue, R.StrictMode = k, R.Suspense = W, R.isAsyncMode = ce, R.isConcurrentMode = o, R.isContextConsumer = d, R.isContextProvider = x, R.isElement =
|
|
196
|
+
R.AsyncMode = c, R.ConcurrentMode = Y, R.ContextConsumer = re, R.ContextProvider = ne, R.Element = oe, R.ForwardRef = ie, R.Fragment = J, R.Lazy = ae, R.Memo = se, R.Portal = z, R.Profiler = ue, R.StrictMode = k, R.Suspense = W, R.isAsyncMode = ce, R.isConcurrentMode = o, R.isContextConsumer = d, R.isContextProvider = x, R.isElement = b, R.isForwardRef = h, R.isFragment = T, R.isLazy = m, R.isMemo = g, R.isPortal = C, R.isProfiler = _, R.isStrictMode = O, R.isSuspense = j, R.isValidElementType = $, R.typeOf = N;
|
|
195
197
|
}()), R;
|
|
196
198
|
}
|
|
197
199
|
var Oe;
|
|
@@ -207,18 +209,18 @@ var fe, Se;
|
|
|
207
209
|
function Fe() {
|
|
208
210
|
if (Se) return fe;
|
|
209
211
|
Se = 1;
|
|
210
|
-
var
|
|
211
|
-
function e(
|
|
212
|
-
if (
|
|
212
|
+
var t = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
213
|
+
function e(r) {
|
|
214
|
+
if (r == null)
|
|
213
215
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
214
|
-
return Object(
|
|
216
|
+
return Object(r);
|
|
215
217
|
}
|
|
216
218
|
function i() {
|
|
217
219
|
try {
|
|
218
220
|
if (!Object.assign)
|
|
219
221
|
return !1;
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
+
var r = new String("abc");
|
|
223
|
+
if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
|
|
222
224
|
return !1;
|
|
223
225
|
for (var a = {}, n = 0; n < 10; n++)
|
|
224
226
|
a["_" + String.fromCharCode(n)] = n;
|
|
@@ -235,13 +237,13 @@ function Fe() {
|
|
|
235
237
|
return !1;
|
|
236
238
|
}
|
|
237
239
|
}
|
|
238
|
-
return fe = i() ? Object.assign : function(
|
|
239
|
-
for (var n, f = e(
|
|
240
|
+
return fe = i() ? Object.assign : function(r, a) {
|
|
241
|
+
for (var n, f = e(r), p, v = 1; v < arguments.length; v++) {
|
|
240
242
|
n = Object(arguments[v]);
|
|
241
243
|
for (var E in n)
|
|
242
244
|
u.call(n, E) && (f[E] = n[E]);
|
|
243
|
-
if (
|
|
244
|
-
p =
|
|
245
|
+
if (t) {
|
|
246
|
+
p = t(n);
|
|
245
247
|
for (var P = 0; P < p.length; P++)
|
|
246
248
|
l.call(n, p[P]) && (f[p[P]] = n[p[P]]);
|
|
247
249
|
}
|
|
@@ -250,11 +252,11 @@ function Fe() {
|
|
|
250
252
|
}, fe;
|
|
251
253
|
}
|
|
252
254
|
var le, Re;
|
|
253
|
-
function
|
|
255
|
+
function ge() {
|
|
254
256
|
if (Re) return le;
|
|
255
257
|
Re = 1;
|
|
256
|
-
var
|
|
257
|
-
return le =
|
|
258
|
+
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
259
|
+
return le = t, le;
|
|
258
260
|
}
|
|
259
261
|
var pe, _e;
|
|
260
262
|
function De() {
|
|
@@ -264,12 +266,12 @@ var de, Pe;
|
|
|
264
266
|
function Ve() {
|
|
265
267
|
if (Pe) return de;
|
|
266
268
|
Pe = 1;
|
|
267
|
-
var
|
|
269
|
+
var t = function() {
|
|
268
270
|
};
|
|
269
271
|
if (process.env.NODE_ENV !== "production") {
|
|
270
|
-
var u =
|
|
271
|
-
|
|
272
|
-
var a = "Warning: " +
|
|
272
|
+
var u = ge(), l = {}, e = De();
|
|
273
|
+
t = function(r) {
|
|
274
|
+
var a = "Warning: " + r;
|
|
273
275
|
typeof console < "u" && console.error(a);
|
|
274
276
|
try {
|
|
275
277
|
throw new Error(a);
|
|
@@ -277,28 +279,28 @@ function Ve() {
|
|
|
277
279
|
}
|
|
278
280
|
};
|
|
279
281
|
}
|
|
280
|
-
function i(
|
|
282
|
+
function i(r, a, n, f, p) {
|
|
281
283
|
if (process.env.NODE_ENV !== "production") {
|
|
282
|
-
for (var v in
|
|
283
|
-
if (e(
|
|
284
|
+
for (var v in r)
|
|
285
|
+
if (e(r, v)) {
|
|
284
286
|
var E;
|
|
285
287
|
try {
|
|
286
|
-
if (typeof
|
|
288
|
+
if (typeof r[v] != "function") {
|
|
287
289
|
var P = Error(
|
|
288
|
-
(f || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
290
|
+
(f || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
289
291
|
);
|
|
290
292
|
throw P.name = "Invariant Violation", P;
|
|
291
293
|
}
|
|
292
|
-
E =
|
|
294
|
+
E = r[v](a, v, f, n, null, u);
|
|
293
295
|
} catch (M) {
|
|
294
296
|
E = M;
|
|
295
297
|
}
|
|
296
|
-
if (E && !(E instanceof Error) &&
|
|
298
|
+
if (E && !(E instanceof Error) && t(
|
|
297
299
|
(f || "React class") + ": type specification of " + n + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
298
300
|
), E instanceof Error && !(E.message in l)) {
|
|
299
301
|
l[E.message] = !0;
|
|
300
302
|
var A = p ? p() : "";
|
|
301
|
-
|
|
303
|
+
t(
|
|
302
304
|
"Failed " + n + " type: " + E.message + (A ?? "")
|
|
303
305
|
);
|
|
304
306
|
}
|
|
@@ -313,9 +315,9 @@ var ve, we;
|
|
|
313
315
|
function ze() {
|
|
314
316
|
if (we) return ve;
|
|
315
317
|
we = 1;
|
|
316
|
-
var
|
|
318
|
+
var t = Me(), u = Fe(), l = ge(), e = De(), i = Ve(), r = function() {
|
|
317
319
|
};
|
|
318
|
-
process.env.NODE_ENV !== "production" && (
|
|
320
|
+
process.env.NODE_ENV !== "production" && (r = function(n) {
|
|
319
321
|
var f = "Warning: " + n;
|
|
320
322
|
typeof console < "u" && console.error(f);
|
|
321
323
|
try {
|
|
@@ -364,29 +366,29 @@ function ze() {
|
|
|
364
366
|
function I(o) {
|
|
365
367
|
if (process.env.NODE_ENV !== "production")
|
|
366
368
|
var d = {}, x = 0;
|
|
367
|
-
function
|
|
368
|
-
if (C = C || P, O = O ||
|
|
369
|
+
function b(T, m, g, C, _, O, j) {
|
|
370
|
+
if (C = C || P, O = O || g, j !== l) {
|
|
369
371
|
if (f) {
|
|
370
372
|
var s = new Error(
|
|
371
373
|
"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"
|
|
372
374
|
);
|
|
373
375
|
throw s.name = "Invariant Violation", s;
|
|
374
376
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
375
|
-
var L = C + ":" +
|
|
377
|
+
var L = C + ":" + g;
|
|
376
378
|
!d[L] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
377
|
-
x < 3 && (
|
|
379
|
+
x < 3 && (r(
|
|
378
380
|
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
379
381
|
), d[L] = !0, x++);
|
|
380
382
|
}
|
|
381
383
|
}
|
|
382
|
-
return m[
|
|
384
|
+
return m[g] == null ? T ? m[g] === null ? new w("The " + _ + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new w("The " + _ + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : o(m, g, C, _, O);
|
|
383
385
|
}
|
|
384
|
-
var h =
|
|
385
|
-
return h.isRequired =
|
|
386
|
+
var h = b.bind(null, !1);
|
|
387
|
+
return h.isRequired = b.bind(null, !0), h;
|
|
386
388
|
}
|
|
387
389
|
function D(o) {
|
|
388
|
-
function d(x,
|
|
389
|
-
var C = x[
|
|
390
|
+
function d(x, b, h, T, m, g) {
|
|
391
|
+
var C = x[b], _ = k(C);
|
|
390
392
|
if (_ !== o) {
|
|
391
393
|
var O = W(C);
|
|
392
394
|
return new w(
|
|
@@ -402,16 +404,16 @@ function ze() {
|
|
|
402
404
|
return I(a);
|
|
403
405
|
}
|
|
404
406
|
function $(o) {
|
|
405
|
-
function d(x,
|
|
407
|
+
function d(x, b, h, T, m) {
|
|
406
408
|
if (typeof o != "function")
|
|
407
409
|
return new w("Property `" + m + "` of component `" + h + "` has invalid PropType notation inside arrayOf.");
|
|
408
|
-
var
|
|
409
|
-
if (!Array.isArray(
|
|
410
|
-
var C = k(
|
|
410
|
+
var g = x[b];
|
|
411
|
+
if (!Array.isArray(g)) {
|
|
412
|
+
var C = k(g);
|
|
411
413
|
return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an array."));
|
|
412
414
|
}
|
|
413
|
-
for (var _ = 0; _ <
|
|
414
|
-
var O = o(
|
|
415
|
+
for (var _ = 0; _ < g.length; _++) {
|
|
416
|
+
var O = o(g, _, h, T, m + "[" + _ + "]", l);
|
|
415
417
|
if (O instanceof Error)
|
|
416
418
|
return O;
|
|
417
419
|
}
|
|
@@ -420,32 +422,32 @@ function ze() {
|
|
|
420
422
|
return I(d);
|
|
421
423
|
}
|
|
422
424
|
function N() {
|
|
423
|
-
function o(d, x,
|
|
425
|
+
function o(d, x, b, h, T) {
|
|
424
426
|
var m = d[x];
|
|
425
427
|
if (!n(m)) {
|
|
426
|
-
var
|
|
427
|
-
return new w("Invalid " + h + " `" + T + "` of type " + ("`" +
|
|
428
|
+
var g = k(m);
|
|
429
|
+
return new w("Invalid " + h + " `" + T + "` of type " + ("`" + g + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
428
430
|
}
|
|
429
431
|
return null;
|
|
430
432
|
}
|
|
431
433
|
return I(o);
|
|
432
434
|
}
|
|
433
435
|
function c() {
|
|
434
|
-
function o(d, x,
|
|
436
|
+
function o(d, x, b, h, T) {
|
|
435
437
|
var m = d[x];
|
|
436
|
-
if (!
|
|
437
|
-
var
|
|
438
|
-
return new w("Invalid " + h + " `" + T + "` of type " + ("`" +
|
|
438
|
+
if (!t.isValidElementType(m)) {
|
|
439
|
+
var g = k(m);
|
|
440
|
+
return new w("Invalid " + h + " `" + T + "` of type " + ("`" + g + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
439
441
|
}
|
|
440
442
|
return null;
|
|
441
443
|
}
|
|
442
444
|
return I(o);
|
|
443
445
|
}
|
|
444
446
|
function Y(o) {
|
|
445
|
-
function d(x,
|
|
446
|
-
if (!(x[
|
|
447
|
-
var
|
|
448
|
-
return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected ") + ("instance of `" +
|
|
447
|
+
function d(x, b, h, T, m) {
|
|
448
|
+
if (!(x[b] instanceof o)) {
|
|
449
|
+
var g = o.name || P, C = ce(x[b]);
|
|
450
|
+
return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected ") + ("instance of `" + g + "`."));
|
|
449
451
|
}
|
|
450
452
|
return null;
|
|
451
453
|
}
|
|
@@ -453,31 +455,31 @@ function ze() {
|
|
|
453
455
|
}
|
|
454
456
|
function re(o) {
|
|
455
457
|
if (!Array.isArray(o))
|
|
456
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
458
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
457
459
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
458
|
-
) :
|
|
459
|
-
function d(x,
|
|
460
|
-
for (var
|
|
461
|
-
if (M(
|
|
460
|
+
) : r("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
461
|
+
function d(x, b, h, T, m) {
|
|
462
|
+
for (var g = x[b], C = 0; C < o.length; C++)
|
|
463
|
+
if (M(g, o[C]))
|
|
462
464
|
return null;
|
|
463
465
|
var _ = JSON.stringify(o, function(j, s) {
|
|
464
466
|
var L = W(s);
|
|
465
467
|
return L === "symbol" ? String(s) : s;
|
|
466
468
|
});
|
|
467
|
-
return new w("Invalid " + T + " `" + m + "` of value `" + String(
|
|
469
|
+
return new w("Invalid " + T + " `" + m + "` of value `" + String(g) + "` " + ("supplied to `" + h + "`, expected one of " + _ + "."));
|
|
468
470
|
}
|
|
469
471
|
return I(d);
|
|
470
472
|
}
|
|
471
473
|
function ne(o) {
|
|
472
|
-
function d(x,
|
|
474
|
+
function d(x, b, h, T, m) {
|
|
473
475
|
if (typeof o != "function")
|
|
474
476
|
return new w("Property `" + m + "` of component `" + h + "` has invalid PropType notation inside objectOf.");
|
|
475
|
-
var
|
|
477
|
+
var g = x[b], C = k(g);
|
|
476
478
|
if (C !== "object")
|
|
477
479
|
return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an object."));
|
|
478
|
-
for (var _ in
|
|
479
|
-
if (e(
|
|
480
|
-
var O = o(
|
|
480
|
+
for (var _ in g)
|
|
481
|
+
if (e(g, _)) {
|
|
482
|
+
var O = o(g, _, h, T, m + "." + _, l);
|
|
481
483
|
if (O instanceof Error)
|
|
482
484
|
return O;
|
|
483
485
|
}
|
|
@@ -487,47 +489,47 @@ function ze() {
|
|
|
487
489
|
}
|
|
488
490
|
function oe(o) {
|
|
489
491
|
if (!Array.isArray(o))
|
|
490
|
-
return process.env.NODE_ENV !== "production" &&
|
|
492
|
+
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
491
493
|
for (var d = 0; d < o.length; d++) {
|
|
492
494
|
var x = o[d];
|
|
493
495
|
if (typeof x != "function")
|
|
494
|
-
return
|
|
496
|
+
return r(
|
|
495
497
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(x) + " at index " + d + "."
|
|
496
498
|
), a;
|
|
497
499
|
}
|
|
498
|
-
function
|
|
500
|
+
function b(h, T, m, g, C) {
|
|
499
501
|
for (var _ = [], O = 0; O < o.length; O++) {
|
|
500
|
-
var j = o[O], s = j(h, T, m,
|
|
502
|
+
var j = o[O], s = j(h, T, m, g, C, l);
|
|
501
503
|
if (s == null)
|
|
502
504
|
return null;
|
|
503
505
|
s.data && e(s.data, "expectedType") && _.push(s.data.expectedType);
|
|
504
506
|
}
|
|
505
507
|
var L = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
506
|
-
return new w("Invalid " +
|
|
508
|
+
return new w("Invalid " + g + " `" + C + "` supplied to " + ("`" + m + "`" + L + "."));
|
|
507
509
|
}
|
|
508
|
-
return I(
|
|
510
|
+
return I(b);
|
|
509
511
|
}
|
|
510
512
|
function ie() {
|
|
511
|
-
function o(d, x,
|
|
512
|
-
return z(d[x]) ? null : new w("Invalid " + h + " `" + T + "` supplied to " + ("`" +
|
|
513
|
+
function o(d, x, b, h, T) {
|
|
514
|
+
return z(d[x]) ? null : new w("Invalid " + h + " `" + T + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
513
515
|
}
|
|
514
516
|
return I(o);
|
|
515
517
|
}
|
|
516
|
-
function J(o, d, x,
|
|
518
|
+
function J(o, d, x, b, h) {
|
|
517
519
|
return new w(
|
|
518
|
-
(o || "React class") + ": " + d + " type `" + x + "." +
|
|
520
|
+
(o || "React class") + ": " + d + " type `" + x + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + h + "`."
|
|
519
521
|
);
|
|
520
522
|
}
|
|
521
523
|
function ae(o) {
|
|
522
|
-
function d(x,
|
|
523
|
-
var
|
|
524
|
+
function d(x, b, h, T, m) {
|
|
525
|
+
var g = x[b], C = k(g);
|
|
524
526
|
if (C !== "object")
|
|
525
527
|
return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
|
|
526
528
|
for (var _ in o) {
|
|
527
529
|
var O = o[_];
|
|
528
530
|
if (typeof O != "function")
|
|
529
531
|
return J(h, T, m, _, W(O));
|
|
530
|
-
var j = O(
|
|
532
|
+
var j = O(g, _, h, T, m + "." + _, l);
|
|
531
533
|
if (j)
|
|
532
534
|
return j;
|
|
533
535
|
}
|
|
@@ -536,21 +538,21 @@ function ze() {
|
|
|
536
538
|
return I(d);
|
|
537
539
|
}
|
|
538
540
|
function se(o) {
|
|
539
|
-
function d(x,
|
|
540
|
-
var
|
|
541
|
+
function d(x, b, h, T, m) {
|
|
542
|
+
var g = x[b], C = k(g);
|
|
541
543
|
if (C !== "object")
|
|
542
544
|
return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
|
|
543
|
-
var _ = u({}, x[
|
|
545
|
+
var _ = u({}, x[b], o);
|
|
544
546
|
for (var O in _) {
|
|
545
547
|
var j = o[O];
|
|
546
548
|
if (e(o, O) && typeof j != "function")
|
|
547
549
|
return J(h, T, m, O, W(j));
|
|
548
550
|
if (!j)
|
|
549
551
|
return new w(
|
|
550
|
-
"Invalid " + T + " `" + m + "` key `" + O + "` supplied to `" + h + "`.\nBad object: " + JSON.stringify(x[
|
|
552
|
+
"Invalid " + T + " `" + m + "` key `" + O + "` supplied to `" + h + "`.\nBad object: " + JSON.stringify(x[b], null, " ") + `
|
|
551
553
|
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
552
554
|
);
|
|
553
|
-
var s = j(
|
|
555
|
+
var s = j(g, O, h, T, m + "." + O, l);
|
|
554
556
|
if (s)
|
|
555
557
|
return s;
|
|
556
558
|
}
|
|
@@ -573,14 +575,14 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
573
575
|
return !0;
|
|
574
576
|
var d = E(o);
|
|
575
577
|
if (d) {
|
|
576
|
-
var x = d.call(o),
|
|
578
|
+
var x = d.call(o), b;
|
|
577
579
|
if (d !== o.entries) {
|
|
578
|
-
for (; !(
|
|
579
|
-
if (!z(
|
|
580
|
+
for (; !(b = x.next()).done; )
|
|
581
|
+
if (!z(b.value))
|
|
580
582
|
return !1;
|
|
581
583
|
} else
|
|
582
|
-
for (; !(
|
|
583
|
-
var h =
|
|
584
|
+
for (; !(b = x.next()).done; ) {
|
|
585
|
+
var h = b.value;
|
|
584
586
|
if (h && !z(h[1]))
|
|
585
587
|
return !1;
|
|
586
588
|
}
|
|
@@ -634,14 +636,14 @@ var ye, Ae;
|
|
|
634
636
|
function Ge() {
|
|
635
637
|
if (Ae) return ye;
|
|
636
638
|
Ae = 1;
|
|
637
|
-
var
|
|
639
|
+
var t = ge();
|
|
638
640
|
function u() {
|
|
639
641
|
}
|
|
640
642
|
function l() {
|
|
641
643
|
}
|
|
642
644
|
return l.resetWarningCache = u, ye = function() {
|
|
643
645
|
function e(a, n, f, p, v, E) {
|
|
644
|
-
if (E !==
|
|
646
|
+
if (E !== t) {
|
|
645
647
|
var P = new Error(
|
|
646
648
|
"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"
|
|
647
649
|
);
|
|
@@ -652,7 +654,7 @@ function Ge() {
|
|
|
652
654
|
function i() {
|
|
653
655
|
return e;
|
|
654
656
|
}
|
|
655
|
-
var
|
|
657
|
+
var r = {
|
|
656
658
|
array: e,
|
|
657
659
|
bigint: e,
|
|
658
660
|
bool: e,
|
|
@@ -675,7 +677,7 @@ function Ge() {
|
|
|
675
677
|
checkPropTypes: l,
|
|
676
678
|
resetWarningCache: u
|
|
677
679
|
};
|
|
678
|
-
return
|
|
680
|
+
return r.PropTypes = r, r;
|
|
679
681
|
}, ye;
|
|
680
682
|
}
|
|
681
683
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -685,17 +687,17 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
685
687
|
me.exports = Ge()();
|
|
686
688
|
var He = me.exports;
|
|
687
689
|
const y = /* @__PURE__ */ Ye(He);
|
|
688
|
-
function Je(
|
|
689
|
-
return
|
|
690
|
+
function Je(t, u) {
|
|
691
|
+
return t.classList ? !!u && t.classList.contains(u) : (" " + (t.className.baseVal || t.className) + " ").indexOf(" " + u + " ") !== -1;
|
|
690
692
|
}
|
|
691
|
-
function Ke(
|
|
692
|
-
|
|
693
|
+
function Ke(t, u) {
|
|
694
|
+
t.classList ? t.classList.add(u) : Je(t, u) || (typeof t.className == "string" ? t.className = t.className + " " + u : t.setAttribute("class", (t.className && t.className.baseVal || "") + " " + u));
|
|
693
695
|
}
|
|
694
|
-
function Ne(
|
|
695
|
-
return
|
|
696
|
+
function Ne(t, u) {
|
|
697
|
+
return t.replace(new RegExp("(^|\\s)" + u + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
696
698
|
}
|
|
697
|
-
function Ze(
|
|
698
|
-
|
|
699
|
+
function Ze(t, u) {
|
|
700
|
+
t.classList ? t.classList.remove(u) : typeof t.className == "string" ? t.className = Ne(t.className, u) : t.setAttribute("class", Ne(t.className && t.className.baseVal || "", u));
|
|
699
701
|
}
|
|
700
702
|
const $e = {
|
|
701
703
|
disabled: !1
|
|
@@ -719,19 +721,19 @@ var Qe = process.env.NODE_ENV !== "production" ? y.oneOfType([y.number, y.shape(
|
|
|
719
721
|
const ke = V.createContext(null);
|
|
720
722
|
var Le = function(u) {
|
|
721
723
|
return u.scrollTop;
|
|
722
|
-
}, H = "unmounted", U = "exited", F = "entering", X = "entered",
|
|
723
|
-
je(u,
|
|
724
|
+
}, H = "unmounted", U = "exited", F = "entering", X = "entered", be = "exiting", q = /* @__PURE__ */ function(t) {
|
|
725
|
+
je(u, t);
|
|
724
726
|
function u(e, i) {
|
|
725
|
-
var
|
|
726
|
-
|
|
727
|
+
var r;
|
|
728
|
+
r = t.call(this, e, i) || this;
|
|
727
729
|
var a = i, n = a && !a.isMounting ? e.enter : e.appear, f;
|
|
728
|
-
return
|
|
730
|
+
return r.appearStatus = null, e.in ? n ? (f = U, r.appearStatus = F) : f = X : e.unmountOnExit || e.mountOnEnter ? f = H : f = U, r.state = {
|
|
729
731
|
status: f
|
|
730
|
-
},
|
|
732
|
+
}, r.nextCallback = null, r;
|
|
731
733
|
}
|
|
732
|
-
u.getDerivedStateFromProps = function(i,
|
|
734
|
+
u.getDerivedStateFromProps = function(i, r) {
|
|
733
735
|
var a = i.in;
|
|
734
|
-
return a &&
|
|
736
|
+
return a && r.status === H ? {
|
|
735
737
|
status: U
|
|
736
738
|
} : null;
|
|
737
739
|
};
|
|
@@ -739,24 +741,24 @@ var Le = function(u) {
|
|
|
739
741
|
return l.componentDidMount = function() {
|
|
740
742
|
this.updateStatus(!0, this.appearStatus);
|
|
741
743
|
}, l.componentDidUpdate = function(i) {
|
|
742
|
-
var
|
|
744
|
+
var r = null;
|
|
743
745
|
if (i !== this.props) {
|
|
744
746
|
var a = this.state.status;
|
|
745
|
-
this.props.in ? a !== F && a !== X && (
|
|
747
|
+
this.props.in ? a !== F && a !== X && (r = F) : (a === F || a === X) && (r = be);
|
|
746
748
|
}
|
|
747
|
-
this.updateStatus(!1,
|
|
749
|
+
this.updateStatus(!1, r);
|
|
748
750
|
}, l.componentWillUnmount = function() {
|
|
749
751
|
this.cancelNextCallback();
|
|
750
752
|
}, l.getTimeouts = function() {
|
|
751
|
-
var i = this.props.timeout,
|
|
752
|
-
return
|
|
753
|
-
exit:
|
|
753
|
+
var i = this.props.timeout, r, a, n;
|
|
754
|
+
return r = a = n = i, i != null && typeof i != "number" && (r = i.exit, a = i.enter, n = i.appear !== void 0 ? i.appear : a), {
|
|
755
|
+
exit: r,
|
|
754
756
|
enter: a,
|
|
755
757
|
appear: n
|
|
756
758
|
};
|
|
757
|
-
}, l.updateStatus = function(i,
|
|
758
|
-
if (i === void 0 && (i = !1),
|
|
759
|
-
if (this.cancelNextCallback(),
|
|
759
|
+
}, l.updateStatus = function(i, r) {
|
|
760
|
+
if (i === void 0 && (i = !1), r !== null)
|
|
761
|
+
if (this.cancelNextCallback(), r === F) {
|
|
760
762
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
761
763
|
var a = this.props.nodeRef ? this.props.nodeRef.current : Q.findDOMNode(this);
|
|
762
764
|
a && Le(a);
|
|
@@ -768,29 +770,29 @@ var Le = function(u) {
|
|
|
768
770
|
status: H
|
|
769
771
|
});
|
|
770
772
|
}, l.performEnter = function(i) {
|
|
771
|
-
var
|
|
773
|
+
var r = this, a = this.props.enter, n = this.context ? this.context.isMounting : i, f = this.props.nodeRef ? [n] : [Q.findDOMNode(this), n], p = f[0], v = f[1], E = this.getTimeouts(), P = n ? E.appear : E.enter;
|
|
772
774
|
if (!i && !a || $e.disabled) {
|
|
773
775
|
this.safeSetState({
|
|
774
776
|
status: X
|
|
775
777
|
}, function() {
|
|
776
|
-
|
|
778
|
+
r.props.onEntered(p);
|
|
777
779
|
});
|
|
778
780
|
return;
|
|
779
781
|
}
|
|
780
782
|
this.props.onEnter(p, v), this.safeSetState({
|
|
781
783
|
status: F
|
|
782
784
|
}, function() {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
+
r.props.onEntering(p, v), r.onTransitionEnd(P, function() {
|
|
786
|
+
r.safeSetState({
|
|
785
787
|
status: X
|
|
786
788
|
}, function() {
|
|
787
|
-
|
|
789
|
+
r.props.onEntered(p, v);
|
|
788
790
|
});
|
|
789
791
|
});
|
|
790
792
|
});
|
|
791
793
|
}, l.performExit = function() {
|
|
792
|
-
var i = this,
|
|
793
|
-
if (!
|
|
794
|
+
var i = this, r = this.props.exit, a = this.getTimeouts(), n = this.props.nodeRef ? void 0 : Q.findDOMNode(this);
|
|
795
|
+
if (!r || $e.disabled) {
|
|
794
796
|
this.safeSetState({
|
|
795
797
|
status: U
|
|
796
798
|
}, function() {
|
|
@@ -799,7 +801,7 @@ var Le = function(u) {
|
|
|
799
801
|
return;
|
|
800
802
|
}
|
|
801
803
|
this.props.onExit(n), this.safeSetState({
|
|
802
|
-
status:
|
|
804
|
+
status: be
|
|
803
805
|
}, function() {
|
|
804
806
|
i.props.onExiting(n), i.onTransitionEnd(a.exit, function() {
|
|
805
807
|
i.safeSetState({
|
|
@@ -811,17 +813,17 @@ var Le = function(u) {
|
|
|
811
813
|
});
|
|
812
814
|
}, l.cancelNextCallback = function() {
|
|
813
815
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
814
|
-
}, l.safeSetState = function(i,
|
|
815
|
-
|
|
816
|
+
}, l.safeSetState = function(i, r) {
|
|
817
|
+
r = this.setNextCallback(r), this.setState(i, r);
|
|
816
818
|
}, l.setNextCallback = function(i) {
|
|
817
|
-
var
|
|
819
|
+
var r = this, a = !0;
|
|
818
820
|
return this.nextCallback = function(n) {
|
|
819
|
-
a && (a = !1,
|
|
821
|
+
a && (a = !1, r.nextCallback = null, i(n));
|
|
820
822
|
}, this.nextCallback.cancel = function() {
|
|
821
823
|
a = !1;
|
|
822
824
|
}, this.nextCallback;
|
|
823
|
-
}, l.onTransitionEnd = function(i,
|
|
824
|
-
this.setNextCallback(
|
|
825
|
+
}, l.onTransitionEnd = function(i, r) {
|
|
826
|
+
this.setNextCallback(r);
|
|
825
827
|
var a = this.props.nodeRef ? this.props.nodeRef.current : Q.findDOMNode(this), n = i == null && !this.props.addEndListener;
|
|
826
828
|
if (!a || n) {
|
|
827
829
|
setTimeout(this.nextCallback, 0);
|
|
@@ -836,9 +838,9 @@ var Le = function(u) {
|
|
|
836
838
|
var i = this.state.status;
|
|
837
839
|
if (i === H)
|
|
838
840
|
return null;
|
|
839
|
-
var
|
|
840
|
-
|
|
841
|
-
var n = Ie(
|
|
841
|
+
var r = this.props, a = r.children;
|
|
842
|
+
r.in, r.mountOnEnter, r.unmountOnExit, r.appear, r.enter, r.exit, r.timeout, r.addEndListener, r.onEnter, r.onEntering, r.onEntered, r.onExit, r.onExiting, r.onExited, r.nodeRef;
|
|
843
|
+
var n = Ie(r, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
842
844
|
return (
|
|
843
845
|
// allows for nested Transitions
|
|
844
846
|
/* @__PURE__ */ V.createElement(ke.Provider, {
|
|
@@ -861,9 +863,9 @@ q.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
861
863
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
862
864
|
*/
|
|
863
865
|
nodeRef: y.shape({
|
|
864
|
-
current: typeof Element > "u" ? y.any : function(
|
|
865
|
-
var a =
|
|
866
|
-
return y.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(
|
|
866
|
+
current: typeof Element > "u" ? y.any : function(t, u, l, e, i, r) {
|
|
867
|
+
var a = t[u];
|
|
868
|
+
return y.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, u, l, e, i, r);
|
|
867
869
|
}
|
|
868
870
|
}),
|
|
869
871
|
/**
|
|
@@ -946,8 +948,8 @@ q.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
946
948
|
timeout: function(u) {
|
|
947
949
|
var l = Qe;
|
|
948
950
|
u.addEndListener || (l = l.isRequired);
|
|
949
|
-
for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0),
|
|
950
|
-
i[
|
|
951
|
+
for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
952
|
+
i[r - 1] = arguments[r];
|
|
951
953
|
return l.apply(void 0, [u].concat(i));
|
|
952
954
|
},
|
|
953
955
|
/**
|
|
@@ -1037,7 +1039,7 @@ q.UNMOUNTED = H;
|
|
|
1037
1039
|
q.EXITED = U;
|
|
1038
1040
|
q.ENTERING = F;
|
|
1039
1041
|
q.ENTERED = X;
|
|
1040
|
-
q.EXITING =
|
|
1042
|
+
q.EXITING = be;
|
|
1041
1043
|
var tt = function(u, l) {
|
|
1042
1044
|
return u && l && l.split(" ").forEach(function(e) {
|
|
1043
1045
|
return Ke(u, e);
|
|
@@ -1046,12 +1048,12 @@ var tt = function(u, l) {
|
|
|
1046
1048
|
return u && l && l.split(" ").forEach(function(e) {
|
|
1047
1049
|
return Ze(u, e);
|
|
1048
1050
|
});
|
|
1049
|
-
}, qe = /* @__PURE__ */ function(
|
|
1050
|
-
je(u,
|
|
1051
|
+
}, qe = /* @__PURE__ */ function(t) {
|
|
1052
|
+
je(u, t);
|
|
1051
1053
|
function u() {
|
|
1052
|
-
for (var e, i = arguments.length,
|
|
1053
|
-
|
|
1054
|
-
return e =
|
|
1054
|
+
for (var e, i = arguments.length, r = new Array(i), a = 0; a < i; a++)
|
|
1055
|
+
r[a] = arguments[a];
|
|
1056
|
+
return e = t.call.apply(t, [this].concat(r)) || this, e.appliedClasses = {
|
|
1055
1057
|
appear: {},
|
|
1056
1058
|
enter: {},
|
|
1057
1059
|
exit: {}
|
|
@@ -1085,17 +1087,17 @@ var tt = function(u, l) {
|
|
|
1085
1087
|
}, e;
|
|
1086
1088
|
}
|
|
1087
1089
|
var l = u.prototype;
|
|
1088
|
-
return l.addClass = function(i,
|
|
1089
|
-
var n = this.getClassNames(
|
|
1090
|
-
|
|
1091
|
-
}, l.removeClasses = function(i,
|
|
1092
|
-
var a = this.appliedClasses[
|
|
1093
|
-
this.appliedClasses[
|
|
1090
|
+
return l.addClass = function(i, r, a) {
|
|
1091
|
+
var n = this.getClassNames(r)[a + "ClassName"], f = this.getClassNames("enter"), p = f.doneClassName;
|
|
1092
|
+
r === "appear" && a === "done" && p && (n += " " + p), a === "active" && i && Le(i), n && (this.appliedClasses[r][a] = n, tt(i, n));
|
|
1093
|
+
}, l.removeClasses = function(i, r) {
|
|
1094
|
+
var a = this.appliedClasses[r], n = a.base, f = a.active, p = a.done;
|
|
1095
|
+
this.appliedClasses[r] = {}, n && Ee(i, n), f && Ee(i, f), p && Ee(i, p);
|
|
1094
1096
|
}, l.render = function() {
|
|
1095
1097
|
var i = this.props;
|
|
1096
1098
|
i.classNames;
|
|
1097
|
-
var
|
|
1098
|
-
return /* @__PURE__ */ V.createElement(q, te({},
|
|
1099
|
+
var r = Ie(i, ["classNames"]);
|
|
1100
|
+
return /* @__PURE__ */ V.createElement(q, te({}, r, {
|
|
1099
1101
|
onEnter: this.onEnter,
|
|
1100
1102
|
onEntered: this.onEntered,
|
|
1101
1103
|
onEntering: this.onEntering,
|
|
@@ -1233,5 +1235,6 @@ qe.propTypes = process.env.NODE_ENV !== "production" ? te({}, q.propTypes, {
|
|
|
1233
1235
|
onExited: y.func
|
|
1234
1236
|
}) : {};
|
|
1235
1237
|
export {
|
|
1236
|
-
qe as C
|
|
1238
|
+
qe as C,
|
|
1239
|
+
Ye as g
|
|
1237
1240
|
};
|