@nutui/nutui-react 2.6.9 → 2.6.10
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 +11 -0
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Animate/style/style.css +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/CalendarItem.js +2 -4
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +2 -2
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Picker.js +6 -9
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/PullToRefresh.js +2 -2
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Swipe.js +2 -2
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/VirtualList.js +0 -2
- package/dist/esm/checkbox2.js +2 -3
- package/dist/esm/date.js +1 -4
- package/dist/esm/tabs2.js +6 -4
- package/dist/esm/tslib.es6.js +2 -3
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +410 -2694
- package/dist/nutui.react.umd.js +760 -3044
- package/dist/packages/tabpane/tabpane.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/confirm.d.ts +1 -1
- package/dist/types/packages/virtuallist/utils.d.ts +2 -2
- package/dist/types/utils/interceptor.d.ts +2 -2
- package/dist/types/utils/use-ref-state.d.ts +1 -1
- package/package.json +1 -1
- package/dist/style.mjs +0 -5
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v2.6.
|
|
2
|
+
* @nutui/nutui-react v2.6.10 Fri Jun 21 2024 18:21:45 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -103,604 +103,7 @@ function fr() {
|
|
|
103
103
|
}
|
|
104
104
|
return $.Fragment = F, $.jsx = O, $.jsxs = O, $;
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @license React
|
|
109
|
-
* react-jsx-runtime.development.js
|
|
110
|
-
*
|
|
111
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the MIT license found in the
|
|
114
|
-
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/
|
|
116
|
-
var Oe;
|
|
117
|
-
function dr() {
|
|
118
|
-
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
119
|
-
var x = React__default, R = Symbol.for("react.element"), F = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), m = Symbol.for("react.context"), c6 = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), D = Symbol.iterator, N = "@@iterator";
|
|
120
|
-
function B(e2) {
|
|
121
|
-
if (e2 === null || typeof e2 != "object")
|
|
122
|
-
return null;
|
|
123
|
-
var r = D && e2[D] || e2[N];
|
|
124
|
-
return typeof r == "function" ? r : null;
|
|
125
|
-
}
|
|
126
|
-
var p = x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
127
|
-
function d(e2) {
|
|
128
|
-
{
|
|
129
|
-
for (var r = arguments.length, t2 = new Array(r > 1 ? r - 1 : 0), n2 = 1; n2 < r; n2++)
|
|
130
|
-
t2[n2 - 1] = arguments[n2];
|
|
131
|
-
ke("error", e2, t2);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
function ke(e2, r, t2) {
|
|
135
|
-
{
|
|
136
|
-
var n2 = p.ReactDebugCurrentFrame, i2 = n2.getStackAddendum();
|
|
137
|
-
i2 !== "" && (r += "%s", t2 = t2.concat([i2]));
|
|
138
|
-
var u = t2.map(function(o2) {
|
|
139
|
-
return String(o2);
|
|
140
|
-
});
|
|
141
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e2], console, u);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
var Fe = false, De = false, Ae = false, Ie = false, $e = false, re;
|
|
145
|
-
re = Symbol.for("react.module.reference");
|
|
146
|
-
function We(e2) {
|
|
147
|
-
return !!(typeof e2 == "string" || typeof e2 == "function" || e2 === T || e2 === C || $e || e2 === S || e2 === b || e2 === f || Ie || e2 === w || Fe || De || Ae || typeof e2 == "object" && e2 !== null && (e2.$$typeof === y || e2.$$typeof === h || e2.$$typeof === O || e2.$$typeof === m || e2.$$typeof === c6 || // This needs to include all possible module reference object
|
|
148
|
-
// types supported by any Flight configuration anywhere since
|
|
149
|
-
// we don't know which Flight build this will end up being used
|
|
150
|
-
// with.
|
|
151
|
-
e2.$$typeof === re || e2.getModuleId !== void 0));
|
|
152
|
-
}
|
|
153
|
-
function Ne(e2, r, t2) {
|
|
154
|
-
var n2 = e2.displayName;
|
|
155
|
-
if (n2)
|
|
156
|
-
return n2;
|
|
157
|
-
var i2 = r.displayName || r.name || "";
|
|
158
|
-
return i2 !== "" ? t2 + "(" + i2 + ")" : t2;
|
|
159
|
-
}
|
|
160
|
-
function te(e2) {
|
|
161
|
-
return e2.displayName || "Context";
|
|
162
|
-
}
|
|
163
|
-
function E(e2) {
|
|
164
|
-
if (e2 == null)
|
|
165
|
-
return null;
|
|
166
|
-
if (typeof e2.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e2 == "function")
|
|
167
|
-
return e2.displayName || e2.name || null;
|
|
168
|
-
if (typeof e2 == "string")
|
|
169
|
-
return e2;
|
|
170
|
-
switch (e2) {
|
|
171
|
-
case T:
|
|
172
|
-
return "Fragment";
|
|
173
|
-
case F:
|
|
174
|
-
return "Portal";
|
|
175
|
-
case C:
|
|
176
|
-
return "Profiler";
|
|
177
|
-
case S:
|
|
178
|
-
return "StrictMode";
|
|
179
|
-
case b:
|
|
180
|
-
return "Suspense";
|
|
181
|
-
case f:
|
|
182
|
-
return "SuspenseList";
|
|
183
|
-
}
|
|
184
|
-
if (typeof e2 == "object")
|
|
185
|
-
switch (e2.$$typeof) {
|
|
186
|
-
case m:
|
|
187
|
-
var r = e2;
|
|
188
|
-
return te(r) + ".Consumer";
|
|
189
|
-
case O:
|
|
190
|
-
var t2 = e2;
|
|
191
|
-
return te(t2._context) + ".Provider";
|
|
192
|
-
case c6:
|
|
193
|
-
return Ne(e2, e2.render, "ForwardRef");
|
|
194
|
-
case h:
|
|
195
|
-
var n2 = e2.displayName || null;
|
|
196
|
-
return n2 !== null ? n2 : E(e2.type) || "Memo";
|
|
197
|
-
case y: {
|
|
198
|
-
var i2 = e2, u = i2._payload, o2 = i2._init;
|
|
199
|
-
try {
|
|
200
|
-
return E(o2(u));
|
|
201
|
-
} catch {
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
return null;
|
|
207
|
-
}
|
|
208
|
-
var P = Object.assign, A = 0, ne, ae, oe, ie, ue, se, le;
|
|
209
|
-
function ce() {
|
|
210
|
-
}
|
|
211
|
-
ce.__reactDisabledLog = true;
|
|
212
|
-
function Ye() {
|
|
213
|
-
{
|
|
214
|
-
if (A === 0) {
|
|
215
|
-
ne = console.log, ae = console.info, oe = console.warn, ie = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
216
|
-
var e2 = {
|
|
217
|
-
configurable: true,
|
|
218
|
-
enumerable: true,
|
|
219
|
-
value: ce,
|
|
220
|
-
writable: true
|
|
221
|
-
};
|
|
222
|
-
Object.defineProperties(console, {
|
|
223
|
-
info: e2,
|
|
224
|
-
log: e2,
|
|
225
|
-
warn: e2,
|
|
226
|
-
error: e2,
|
|
227
|
-
group: e2,
|
|
228
|
-
groupCollapsed: e2,
|
|
229
|
-
groupEnd: e2
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
A++;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
function Le() {
|
|
236
|
-
{
|
|
237
|
-
if (A--, A === 0) {
|
|
238
|
-
var e2 = {
|
|
239
|
-
configurable: true,
|
|
240
|
-
enumerable: true,
|
|
241
|
-
writable: true
|
|
242
|
-
};
|
|
243
|
-
Object.defineProperties(console, {
|
|
244
|
-
log: P({}, e2, {
|
|
245
|
-
value: ne
|
|
246
|
-
}),
|
|
247
|
-
info: P({}, e2, {
|
|
248
|
-
value: ae
|
|
249
|
-
}),
|
|
250
|
-
warn: P({}, e2, {
|
|
251
|
-
value: oe
|
|
252
|
-
}),
|
|
253
|
-
error: P({}, e2, {
|
|
254
|
-
value: ie
|
|
255
|
-
}),
|
|
256
|
-
group: P({}, e2, {
|
|
257
|
-
value: ue
|
|
258
|
-
}),
|
|
259
|
-
groupCollapsed: P({}, e2, {
|
|
260
|
-
value: se
|
|
261
|
-
}),
|
|
262
|
-
groupEnd: P({}, e2, {
|
|
263
|
-
value: le
|
|
264
|
-
})
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
A < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
var q = p.ReactCurrentDispatcher, J;
|
|
271
|
-
function Y(e2, r, t2) {
|
|
272
|
-
{
|
|
273
|
-
if (J === void 0)
|
|
274
|
-
try {
|
|
275
|
-
throw Error();
|
|
276
|
-
} catch (i2) {
|
|
277
|
-
var n2 = i2.stack.trim().match(/\n( *(at )?)/);
|
|
278
|
-
J = n2 && n2[1] || "";
|
|
279
|
-
}
|
|
280
|
-
return `
|
|
281
|
-
` + J + e2;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
var G = false, L;
|
|
285
|
-
{
|
|
286
|
-
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
287
|
-
L = new Ve();
|
|
288
|
-
}
|
|
289
|
-
function fe(e2, r) {
|
|
290
|
-
if (!e2 || G)
|
|
291
|
-
return "";
|
|
292
|
-
{
|
|
293
|
-
var t2 = L.get(e2);
|
|
294
|
-
if (t2 !== void 0)
|
|
295
|
-
return t2;
|
|
296
|
-
}
|
|
297
|
-
var n2;
|
|
298
|
-
G = true;
|
|
299
|
-
var i2 = Error.prepareStackTrace;
|
|
300
|
-
Error.prepareStackTrace = void 0;
|
|
301
|
-
var u;
|
|
302
|
-
u = q.current, q.current = null, Ye();
|
|
303
|
-
try {
|
|
304
|
-
if (r) {
|
|
305
|
-
var o2 = function() {
|
|
306
|
-
throw Error();
|
|
307
|
-
};
|
|
308
|
-
if (Object.defineProperty(o2.prototype, "props", {
|
|
309
|
-
set: function() {
|
|
310
|
-
throw Error();
|
|
311
|
-
}
|
|
312
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
313
|
-
try {
|
|
314
|
-
Reflect.construct(o2, []);
|
|
315
|
-
} catch (_) {
|
|
316
|
-
n2 = _;
|
|
317
|
-
}
|
|
318
|
-
Reflect.construct(e2, [], o2);
|
|
319
|
-
} else {
|
|
320
|
-
try {
|
|
321
|
-
o2.call();
|
|
322
|
-
} catch (_) {
|
|
323
|
-
n2 = _;
|
|
324
|
-
}
|
|
325
|
-
e2.call(o2.prototype);
|
|
326
|
-
}
|
|
327
|
-
} else {
|
|
328
|
-
try {
|
|
329
|
-
throw Error();
|
|
330
|
-
} catch (_) {
|
|
331
|
-
n2 = _;
|
|
332
|
-
}
|
|
333
|
-
e2();
|
|
334
|
-
}
|
|
335
|
-
} catch (_) {
|
|
336
|
-
if (_ && n2 && typeof _.stack == "string") {
|
|
337
|
-
for (var a2 = _.stack.split(`
|
|
338
|
-
`), v = n2.stack.split(`
|
|
339
|
-
`), s = a2.length - 1, l2 = v.length - 1; s >= 1 && l2 >= 0 && a2[s] !== v[l2]; )
|
|
340
|
-
l2--;
|
|
341
|
-
for (; s >= 1 && l2 >= 0; s--, l2--)
|
|
342
|
-
if (a2[s] !== v[l2]) {
|
|
343
|
-
if (s !== 1 || l2 !== 1)
|
|
344
|
-
do
|
|
345
|
-
if (s--, l2--, l2 < 0 || a2[s] !== v[l2]) {
|
|
346
|
-
var g = `
|
|
347
|
-
` + a2[s].replace(" at new ", " at ");
|
|
348
|
-
return e2.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e2.displayName)), typeof e2 == "function" && L.set(e2, g), g;
|
|
349
|
-
}
|
|
350
|
-
while (s >= 1 && l2 >= 0);
|
|
351
|
-
break;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
} finally {
|
|
355
|
-
G = false, q.current = u, Le(), Error.prepareStackTrace = i2;
|
|
356
|
-
}
|
|
357
|
-
var k = e2 ? e2.displayName || e2.name : "", we = k ? Y(k) : "";
|
|
358
|
-
return typeof e2 == "function" && L.set(e2, we), we;
|
|
359
|
-
}
|
|
360
|
-
function Me(e2, r, t2) {
|
|
361
|
-
return fe(e2, false);
|
|
362
|
-
}
|
|
363
|
-
function Ue(e2) {
|
|
364
|
-
var r = e2.prototype;
|
|
365
|
-
return !!(r && r.isReactComponent);
|
|
366
|
-
}
|
|
367
|
-
function V2(e2, r, t2) {
|
|
368
|
-
if (e2 == null)
|
|
369
|
-
return "";
|
|
370
|
-
if (typeof e2 == "function")
|
|
371
|
-
return fe(e2, Ue(e2));
|
|
372
|
-
if (typeof e2 == "string")
|
|
373
|
-
return Y(e2);
|
|
374
|
-
switch (e2) {
|
|
375
|
-
case b:
|
|
376
|
-
return Y("Suspense");
|
|
377
|
-
case f:
|
|
378
|
-
return Y("SuspenseList");
|
|
379
|
-
}
|
|
380
|
-
if (typeof e2 == "object")
|
|
381
|
-
switch (e2.$$typeof) {
|
|
382
|
-
case c6:
|
|
383
|
-
return Me(e2.render);
|
|
384
|
-
case h:
|
|
385
|
-
return V2(e2.type, r, t2);
|
|
386
|
-
case y: {
|
|
387
|
-
var n2 = e2, i2 = n2._payload, u = n2._init;
|
|
388
|
-
try {
|
|
389
|
-
return V2(u(i2), r, t2);
|
|
390
|
-
} catch {
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
return "";
|
|
395
|
-
}
|
|
396
|
-
var M = Object.prototype.hasOwnProperty, de = {}, ve = p.ReactDebugCurrentFrame;
|
|
397
|
-
function U(e2) {
|
|
398
|
-
if (e2) {
|
|
399
|
-
var r = e2._owner, t2 = V2(e2.type, e2._source, r ? r.type : null);
|
|
400
|
-
ve.setExtraStackFrame(t2);
|
|
401
|
-
} else
|
|
402
|
-
ve.setExtraStackFrame(null);
|
|
403
|
-
}
|
|
404
|
-
function Be(e2, r, t2, n2, i2) {
|
|
405
|
-
{
|
|
406
|
-
var u = Function.call.bind(M);
|
|
407
|
-
for (var o2 in e2)
|
|
408
|
-
if (u(e2, o2)) {
|
|
409
|
-
var a2 = void 0;
|
|
410
|
-
try {
|
|
411
|
-
if (typeof e2[o2] != "function") {
|
|
412
|
-
var v = Error((n2 || "React class") + ": " + t2 + " type `" + o2 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e2[o2] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
413
|
-
throw v.name = "Invariant Violation", v;
|
|
414
|
-
}
|
|
415
|
-
a2 = e2[o2](r, o2, n2, t2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
416
|
-
} catch (s) {
|
|
417
|
-
a2 = s;
|
|
418
|
-
}
|
|
419
|
-
a2 && !(a2 instanceof Error) && (U(i2), d("%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).", n2 || "React class", t2, o2, typeof a2), U(null)), a2 instanceof Error && !(a2.message in de) && (de[a2.message] = true, U(i2), d("Failed %s type: %s", t2, a2.message), U(null));
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
var qe = Array.isArray;
|
|
424
|
-
function z(e2) {
|
|
425
|
-
return qe(e2);
|
|
426
|
-
}
|
|
427
|
-
function Je(e2) {
|
|
428
|
-
{
|
|
429
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t2 = r && e2[Symbol.toStringTag] || e2.constructor.name || "Object";
|
|
430
|
-
return t2;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
function Ge(e2) {
|
|
434
|
-
try {
|
|
435
|
-
return pe(e2), false;
|
|
436
|
-
} catch {
|
|
437
|
-
return true;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
function pe(e2) {
|
|
441
|
-
return "" + e2;
|
|
442
|
-
}
|
|
443
|
-
function he(e2) {
|
|
444
|
-
if (Ge(e2))
|
|
445
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e2)), pe(e2);
|
|
446
|
-
}
|
|
447
|
-
var I = p.ReactCurrentOwner, ze = {
|
|
448
|
-
key: true,
|
|
449
|
-
ref: true,
|
|
450
|
-
__self: true,
|
|
451
|
-
__source: true
|
|
452
|
-
}, ge, me, H;
|
|
453
|
-
H = {};
|
|
454
|
-
function He(e2) {
|
|
455
|
-
if (M.call(e2, "ref")) {
|
|
456
|
-
var r = Object.getOwnPropertyDescriptor(e2, "ref").get;
|
|
457
|
-
if (r && r.isReactWarning)
|
|
458
|
-
return false;
|
|
459
|
-
}
|
|
460
|
-
return e2.ref !== void 0;
|
|
461
|
-
}
|
|
462
|
-
function Ke(e2) {
|
|
463
|
-
if (M.call(e2, "key")) {
|
|
464
|
-
var r = Object.getOwnPropertyDescriptor(e2, "key").get;
|
|
465
|
-
if (r && r.isReactWarning)
|
|
466
|
-
return false;
|
|
467
|
-
}
|
|
468
|
-
return e2.key !== void 0;
|
|
469
|
-
}
|
|
470
|
-
function Xe(e2, r) {
|
|
471
|
-
if (typeof e2.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
472
|
-
var t2 = E(I.current.type);
|
|
473
|
-
H[t2] || (d('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', E(I.current.type), e2.ref), H[t2] = true);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
function Ze(e2, r) {
|
|
477
|
-
{
|
|
478
|
-
var t2 = function() {
|
|
479
|
-
ge || (ge = true, d("%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)", r));
|
|
480
|
-
};
|
|
481
|
-
t2.isReactWarning = true, Object.defineProperty(e2, "key", {
|
|
482
|
-
get: t2,
|
|
483
|
-
configurable: true
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function Qe(e2, r) {
|
|
488
|
-
{
|
|
489
|
-
var t2 = function() {
|
|
490
|
-
me || (me = true, d("%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)", r));
|
|
491
|
-
};
|
|
492
|
-
t2.isReactWarning = true, Object.defineProperty(e2, "ref", {
|
|
493
|
-
get: t2,
|
|
494
|
-
configurable: true
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
var er = function(e2, r, t2, n2, i2, u, o2) {
|
|
499
|
-
var a2 = {
|
|
500
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
501
|
-
$$typeof: R,
|
|
502
|
-
// Built-in properties that belong on the element
|
|
503
|
-
type: e2,
|
|
504
|
-
key: r,
|
|
505
|
-
ref: t2,
|
|
506
|
-
props: o2,
|
|
507
|
-
// Record the component responsible for creating this element.
|
|
508
|
-
_owner: u
|
|
509
|
-
};
|
|
510
|
-
return a2._store = {}, Object.defineProperty(a2._store, "validated", {
|
|
511
|
-
configurable: false,
|
|
512
|
-
enumerable: false,
|
|
513
|
-
writable: true,
|
|
514
|
-
value: false
|
|
515
|
-
}), Object.defineProperty(a2, "_self", {
|
|
516
|
-
configurable: false,
|
|
517
|
-
enumerable: false,
|
|
518
|
-
writable: false,
|
|
519
|
-
value: n2
|
|
520
|
-
}), Object.defineProperty(a2, "_source", {
|
|
521
|
-
configurable: false,
|
|
522
|
-
enumerable: false,
|
|
523
|
-
writable: false,
|
|
524
|
-
value: i2
|
|
525
|
-
}), Object.freeze && (Object.freeze(a2.props), Object.freeze(a2)), a2;
|
|
526
|
-
};
|
|
527
|
-
function rr(e2, r, t2, n2, i2) {
|
|
528
|
-
{
|
|
529
|
-
var u, o2 = {}, a2 = null, v = null;
|
|
530
|
-
t2 !== void 0 && (he(t2), a2 = "" + t2), Ke(r) && (he(r.key), a2 = "" + r.key), He(r) && (v = r.ref, Xe(r, i2));
|
|
531
|
-
for (u in r)
|
|
532
|
-
M.call(r, u) && !ze.hasOwnProperty(u) && (o2[u] = r[u]);
|
|
533
|
-
if (e2 && e2.defaultProps) {
|
|
534
|
-
var s = e2.defaultProps;
|
|
535
|
-
for (u in s)
|
|
536
|
-
o2[u] === void 0 && (o2[u] = s[u]);
|
|
537
|
-
}
|
|
538
|
-
if (a2 || v) {
|
|
539
|
-
var l2 = typeof e2 == "function" ? e2.displayName || e2.name || "Unknown" : e2;
|
|
540
|
-
a2 && Ze(o2, l2), v && Qe(o2, l2);
|
|
541
|
-
}
|
|
542
|
-
return er(e2, a2, v, i2, n2, I.current, o2);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
var K = p.ReactCurrentOwner, be = p.ReactDebugCurrentFrame;
|
|
546
|
-
function j(e2) {
|
|
547
|
-
if (e2) {
|
|
548
|
-
var r = e2._owner, t2 = V2(e2.type, e2._source, r ? r.type : null);
|
|
549
|
-
be.setExtraStackFrame(t2);
|
|
550
|
-
} else
|
|
551
|
-
be.setExtraStackFrame(null);
|
|
552
|
-
}
|
|
553
|
-
var X;
|
|
554
|
-
X = false;
|
|
555
|
-
function Z(e2) {
|
|
556
|
-
return typeof e2 == "object" && e2 !== null && e2.$$typeof === R;
|
|
557
|
-
}
|
|
558
|
-
function ye() {
|
|
559
|
-
{
|
|
560
|
-
if (K.current) {
|
|
561
|
-
var e2 = E(K.current.type);
|
|
562
|
-
if (e2)
|
|
563
|
-
return `
|
|
564
|
-
|
|
565
|
-
Check the render method of \`` + e2 + "`.";
|
|
566
|
-
}
|
|
567
|
-
return "";
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
function tr(e2) {
|
|
571
|
-
{
|
|
572
|
-
if (e2 !== void 0) {
|
|
573
|
-
var r = e2.fileName.replace(/^.*[\\\/]/, ""), t2 = e2.lineNumber;
|
|
574
|
-
return `
|
|
575
|
-
|
|
576
|
-
Check your code at ` + r + ":" + t2 + ".";
|
|
577
|
-
}
|
|
578
|
-
return "";
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
var Ee = {};
|
|
582
|
-
function nr(e2) {
|
|
583
|
-
{
|
|
584
|
-
var r = ye();
|
|
585
|
-
if (!r) {
|
|
586
|
-
var t2 = typeof e2 == "string" ? e2 : e2.displayName || e2.name;
|
|
587
|
-
t2 && (r = `
|
|
588
|
-
|
|
589
|
-
Check the top-level render call using <` + t2 + ">.");
|
|
590
|
-
}
|
|
591
|
-
return r;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
function _e(e2, r) {
|
|
595
|
-
{
|
|
596
|
-
if (!e2._store || e2._store.validated || e2.key != null)
|
|
597
|
-
return;
|
|
598
|
-
e2._store.validated = true;
|
|
599
|
-
var t2 = nr(r);
|
|
600
|
-
if (Ee[t2])
|
|
601
|
-
return;
|
|
602
|
-
Ee[t2] = true;
|
|
603
|
-
var n2 = "";
|
|
604
|
-
e2 && e2._owner && e2._owner !== K.current && (n2 = " It was passed a child from " + E(e2._owner.type) + "."), j(e2), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t2, n2), j(null);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
function Re(e2, r) {
|
|
608
|
-
{
|
|
609
|
-
if (typeof e2 != "object")
|
|
610
|
-
return;
|
|
611
|
-
if (z(e2))
|
|
612
|
-
for (var t2 = 0; t2 < e2.length; t2++) {
|
|
613
|
-
var n2 = e2[t2];
|
|
614
|
-
Z(n2) && _e(n2, r);
|
|
615
|
-
}
|
|
616
|
-
else if (Z(e2))
|
|
617
|
-
e2._store && (e2._store.validated = true);
|
|
618
|
-
else if (e2) {
|
|
619
|
-
var i2 = B(e2);
|
|
620
|
-
if (typeof i2 == "function" && i2 !== e2.entries)
|
|
621
|
-
for (var u = i2.call(e2), o2; !(o2 = u.next()).done; )
|
|
622
|
-
Z(o2.value) && _e(o2.value, r);
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
function ar(e2) {
|
|
627
|
-
{
|
|
628
|
-
var r = e2.type;
|
|
629
|
-
if (r == null || typeof r == "string")
|
|
630
|
-
return;
|
|
631
|
-
var t2;
|
|
632
|
-
if (typeof r == "function")
|
|
633
|
-
t2 = r.propTypes;
|
|
634
|
-
else if (typeof r == "object" && (r.$$typeof === c6 || // Note: Memo only checks outer props here.
|
|
635
|
-
// Inner props are checked in the reconciler.
|
|
636
|
-
r.$$typeof === h))
|
|
637
|
-
t2 = r.propTypes;
|
|
638
|
-
else
|
|
639
|
-
return;
|
|
640
|
-
if (t2) {
|
|
641
|
-
var n2 = E(r);
|
|
642
|
-
Be(t2, e2.props, "prop", n2, e2);
|
|
643
|
-
} else if (r.PropTypes !== void 0 && !X) {
|
|
644
|
-
X = true;
|
|
645
|
-
var i2 = E(r);
|
|
646
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i2 || "Unknown");
|
|
647
|
-
}
|
|
648
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
function or(e2) {
|
|
652
|
-
{
|
|
653
|
-
for (var r = Object.keys(e2.props), t2 = 0; t2 < r.length; t2++) {
|
|
654
|
-
var n2 = r[t2];
|
|
655
|
-
if (n2 !== "children" && n2 !== "key") {
|
|
656
|
-
j(e2), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n2), j(null);
|
|
657
|
-
break;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
e2.ref !== null && (j(e2), d("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
function Te(e2, r, t2, n2, i2, u) {
|
|
664
|
-
{
|
|
665
|
-
var o2 = We(e2);
|
|
666
|
-
if (!o2) {
|
|
667
|
-
var a2 = "";
|
|
668
|
-
(e2 === void 0 || typeof e2 == "object" && e2 !== null && Object.keys(e2).length === 0) && (a2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
669
|
-
var v = tr(i2);
|
|
670
|
-
v ? a2 += v : a2 += ye();
|
|
671
|
-
var s;
|
|
672
|
-
e2 === null ? s = "null" : z(e2) ? s = "array" : e2 !== void 0 && e2.$$typeof === R ? (s = "<" + (E(e2.type) || "Unknown") + " />", a2 = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e2, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a2);
|
|
673
|
-
}
|
|
674
|
-
var l2 = rr(e2, r, t2, i2, u);
|
|
675
|
-
if (l2 == null)
|
|
676
|
-
return l2;
|
|
677
|
-
if (o2) {
|
|
678
|
-
var g = r.children;
|
|
679
|
-
if (g !== void 0)
|
|
680
|
-
if (n2)
|
|
681
|
-
if (z(g)) {
|
|
682
|
-
for (var k = 0; k < g.length; k++)
|
|
683
|
-
Re(g[k], e2);
|
|
684
|
-
Object.freeze && Object.freeze(g);
|
|
685
|
-
} else
|
|
686
|
-
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
687
|
-
else
|
|
688
|
-
Re(g, e2);
|
|
689
|
-
}
|
|
690
|
-
return e2 === T ? or(l2) : ar(l2), l2;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
function ir(e2, r, t2) {
|
|
694
|
-
return Te(e2, r, t2, true);
|
|
695
|
-
}
|
|
696
|
-
function ur(e2, r, t2) {
|
|
697
|
-
return Te(e2, r, t2, false);
|
|
698
|
-
}
|
|
699
|
-
var sr = ur, lr = ir;
|
|
700
|
-
W.Fragment = T, W.jsx = sr, W.jsxs = lr;
|
|
701
|
-
}()), W;
|
|
702
|
-
}
|
|
703
|
-
process.env.NODE_ENV === "production" ? Q.exports = fr() : Q.exports = dr();
|
|
106
|
+
Q.exports = fr();
|
|
704
107
|
var ee = Q.exports;
|
|
705
108
|
const vr = ee.Fragment, Pe = ee.jsx, gr = ee.jsxs, Se = {
|
|
706
109
|
className: "",
|
|
@@ -1520,9 +923,6 @@ var freeSelf = typeof self == "object" && self && self.Object === Object && self
|
|
|
1520
923
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
1521
924
|
function arrayReduce(array4, iteratee, accumulator, initAccum) {
|
|
1522
925
|
var index = -1, length = array4 ? array4.length : 0;
|
|
1523
|
-
if (initAccum && length) {
|
|
1524
|
-
accumulator = array4[++index];
|
|
1525
|
-
}
|
|
1526
926
|
while (++index < length) {
|
|
1527
927
|
accumulator = iteratee(accumulator, array4[index], index, array4);
|
|
1528
928
|
}
|
|
@@ -1580,7 +980,7 @@ var kebabCase = createCompounder(function(result, word, index) {
|
|
|
1580
980
|
});
|
|
1581
981
|
function words(string3, pattern4, guard) {
|
|
1582
982
|
string3 = toString(string3);
|
|
1583
|
-
pattern4 =
|
|
983
|
+
pattern4 = pattern4;
|
|
1584
984
|
if (pattern4 === void 0) {
|
|
1585
985
|
return hasUnicodeWord(string3) ? unicodeWords(string3) : asciiWords(string3);
|
|
1586
986
|
}
|
|
@@ -1694,8 +1094,8 @@ lodash_isequal.exports;
|
|
|
1694
1094
|
);
|
|
1695
1095
|
var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
1696
1096
|
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
|
|
1697
|
-
var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"),
|
|
1698
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(
|
|
1097
|
+
var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"), WeakMap = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
|
|
1098
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap);
|
|
1699
1099
|
var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
|
|
1700
1100
|
function Hash(entries) {
|
|
1701
1101
|
var index = -1, length = entries == null ? 0 : entries.length;
|
|
@@ -1881,7 +1281,7 @@ lodash_isequal.exports;
|
|
|
1881
1281
|
function arrayLikeKeys(value, inherited) {
|
|
1882
1282
|
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1883
1283
|
for (var key in value) {
|
|
1884
|
-
if (
|
|
1284
|
+
if (hasOwnProperty.call(value, key) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1885
1285
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1886
1286
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1887
1287
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
@@ -2142,7 +1542,7 @@ lodash_isequal.exports;
|
|
|
2142
1542
|
});
|
|
2143
1543
|
};
|
|
2144
1544
|
var getTag = baseGetTag;
|
|
2145
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag ||
|
|
1545
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
2146
1546
|
getTag = function(value) {
|
|
2147
1547
|
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
2148
1548
|
if (ctorString) {
|
|
@@ -2576,8 +1976,7 @@ const Image$1 = (props) => {
|
|
|
2576
1976
|
onClick && onClick(event);
|
|
2577
1977
|
};
|
|
2578
1978
|
const renderErrorImg = useCallback(() => {
|
|
2579
|
-
if (!isError)
|
|
2580
|
-
return null;
|
|
1979
|
+
if (!isError) return null;
|
|
2581
1980
|
if (typeof error === "boolean" && error === true && !innerLoading) {
|
|
2582
1981
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-error" }, /* @__PURE__ */ React__default.createElement(e$9, null));
|
|
2583
1982
|
}
|
|
@@ -2587,8 +1986,7 @@ const Image$1 = (props) => {
|
|
|
2587
1986
|
return null;
|
|
2588
1987
|
}, [error, isError]);
|
|
2589
1988
|
const renderLoading = useCallback(() => {
|
|
2590
|
-
if (!loading)
|
|
2591
|
-
return null;
|
|
1989
|
+
if (!loading) return null;
|
|
2592
1990
|
if (typeof loading === "boolean" && loading === true && innerLoading) {
|
|
2593
1991
|
return /* @__PURE__ */ React__default.createElement("div", { className: "nut-img-loading" }, /* @__PURE__ */ React__default.createElement(e$8, null));
|
|
2594
1992
|
}
|
|
@@ -2609,1035 +2007,68 @@ const Image$1 = (props) => {
|
|
|
2609
2007
|
lazy ? /* @__PURE__ */ React__default.createElement(
|
|
2610
2008
|
"img",
|
|
2611
2009
|
{
|
|
2612
|
-
ref: imgRef,
|
|
2613
|
-
className: "nut-img lazyload",
|
|
2614
|
-
style: imgStyle,
|
|
2615
|
-
"data-src": src,
|
|
2616
|
-
alt,
|
|
2617
|
-
loading: "lazy",
|
|
2618
|
-
onLoad: handleLoad,
|
|
2619
|
-
onError: handleError,
|
|
2620
|
-
draggable
|
|
2621
|
-
}
|
|
2622
|
-
) : /* @__PURE__ */ React__default.createElement(
|
|
2623
|
-
"img",
|
|
2624
|
-
{
|
|
2625
|
-
ref: imgRef,
|
|
2626
|
-
className: "nut-img",
|
|
2627
|
-
style: imgStyle,
|
|
2628
|
-
src,
|
|
2629
|
-
alt,
|
|
2630
|
-
onLoad: handleLoad,
|
|
2631
|
-
onError: handleError,
|
|
2632
|
-
draggable
|
|
2633
|
-
}
|
|
2634
|
-
),
|
|
2635
|
-
renderLoading(),
|
|
2636
|
-
renderErrorImg()
|
|
2637
|
-
);
|
|
2638
|
-
};
|
|
2639
|
-
Image$1.displayName = "NutImage";
|
|
2640
|
-
function _extends$4() {
|
|
2641
|
-
_extends$4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
2642
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
2643
|
-
var source = arguments[i2];
|
|
2644
|
-
for (var key in source) {
|
|
2645
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2646
|
-
target[key] = source[key];
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
return target;
|
|
2651
|
-
};
|
|
2652
|
-
return _extends$4.apply(this, arguments);
|
|
2653
|
-
}
|
|
2654
|
-
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
2655
|
-
if (source == null)
|
|
2656
|
-
return {};
|
|
2657
|
-
var target = {};
|
|
2658
|
-
var sourceKeys = Object.keys(source);
|
|
2659
|
-
var key, i2;
|
|
2660
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
2661
|
-
key = sourceKeys[i2];
|
|
2662
|
-
if (excluded.indexOf(key) >= 0)
|
|
2663
|
-
continue;
|
|
2664
|
-
target[key] = source[key];
|
|
2665
|
-
}
|
|
2666
|
-
return target;
|
|
2667
|
-
}
|
|
2668
|
-
function _setPrototypeOf$1(o2, p) {
|
|
2669
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
|
|
2670
|
-
o3.__proto__ = p2;
|
|
2671
|
-
return o3;
|
|
2672
|
-
};
|
|
2673
|
-
return _setPrototypeOf$1(o2, p);
|
|
2674
|
-
}
|
|
2675
|
-
function _inheritsLoose$1(subClass, superClass) {
|
|
2676
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
2677
|
-
subClass.prototype.constructor = subClass;
|
|
2678
|
-
_setPrototypeOf$1(subClass, superClass);
|
|
2679
|
-
}
|
|
2680
|
-
var propTypes = { exports: {} };
|
|
2681
|
-
var reactIs = { exports: {} };
|
|
2682
|
-
var reactIs_production_min = {};
|
|
2683
|
-
/** @license React v16.13.1
|
|
2684
|
-
* react-is.production.min.js
|
|
2685
|
-
*
|
|
2686
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2687
|
-
*
|
|
2688
|
-
* This source code is licensed under the MIT license found in the
|
|
2689
|
-
* LICENSE file in the root directory of this source tree.
|
|
2690
|
-
*/
|
|
2691
|
-
var hasRequiredReactIs_production_min;
|
|
2692
|
-
function requireReactIs_production_min() {
|
|
2693
|
-
if (hasRequiredReactIs_production_min)
|
|
2694
|
-
return reactIs_production_min;
|
|
2695
|
-
hasRequiredReactIs_production_min = 1;
|
|
2696
|
-
var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
2697
|
-
function z(a2) {
|
|
2698
|
-
if ("object" === typeof a2 && null !== a2) {
|
|
2699
|
-
var u = a2.$$typeof;
|
|
2700
|
-
switch (u) {
|
|
2701
|
-
case c6:
|
|
2702
|
-
switch (a2 = a2.type, a2) {
|
|
2703
|
-
case l2:
|
|
2704
|
-
case m:
|
|
2705
|
-
case e2:
|
|
2706
|
-
case g:
|
|
2707
|
-
case f:
|
|
2708
|
-
case p:
|
|
2709
|
-
return a2;
|
|
2710
|
-
default:
|
|
2711
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
2712
|
-
case k:
|
|
2713
|
-
case n2:
|
|
2714
|
-
case t2:
|
|
2715
|
-
case r:
|
|
2716
|
-
case h:
|
|
2717
|
-
return a2;
|
|
2718
|
-
default:
|
|
2719
|
-
return u;
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
case d:
|
|
2723
|
-
return u;
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
function A(a2) {
|
|
2728
|
-
return z(a2) === m;
|
|
2729
|
-
}
|
|
2730
|
-
reactIs_production_min.AsyncMode = l2;
|
|
2731
|
-
reactIs_production_min.ConcurrentMode = m;
|
|
2732
|
-
reactIs_production_min.ContextConsumer = k;
|
|
2733
|
-
reactIs_production_min.ContextProvider = h;
|
|
2734
|
-
reactIs_production_min.Element = c6;
|
|
2735
|
-
reactIs_production_min.ForwardRef = n2;
|
|
2736
|
-
reactIs_production_min.Fragment = e2;
|
|
2737
|
-
reactIs_production_min.Lazy = t2;
|
|
2738
|
-
reactIs_production_min.Memo = r;
|
|
2739
|
-
reactIs_production_min.Portal = d;
|
|
2740
|
-
reactIs_production_min.Profiler = g;
|
|
2741
|
-
reactIs_production_min.StrictMode = f;
|
|
2742
|
-
reactIs_production_min.Suspense = p;
|
|
2743
|
-
reactIs_production_min.isAsyncMode = function(a2) {
|
|
2744
|
-
return A(a2) || z(a2) === l2;
|
|
2745
|
-
};
|
|
2746
|
-
reactIs_production_min.isConcurrentMode = A;
|
|
2747
|
-
reactIs_production_min.isContextConsumer = function(a2) {
|
|
2748
|
-
return z(a2) === k;
|
|
2749
|
-
};
|
|
2750
|
-
reactIs_production_min.isContextProvider = function(a2) {
|
|
2751
|
-
return z(a2) === h;
|
|
2752
|
-
};
|
|
2753
|
-
reactIs_production_min.isElement = function(a2) {
|
|
2754
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
|
|
2755
|
-
};
|
|
2756
|
-
reactIs_production_min.isForwardRef = function(a2) {
|
|
2757
|
-
return z(a2) === n2;
|
|
2758
|
-
};
|
|
2759
|
-
reactIs_production_min.isFragment = function(a2) {
|
|
2760
|
-
return z(a2) === e2;
|
|
2761
|
-
};
|
|
2762
|
-
reactIs_production_min.isLazy = function(a2) {
|
|
2763
|
-
return z(a2) === t2;
|
|
2764
|
-
};
|
|
2765
|
-
reactIs_production_min.isMemo = function(a2) {
|
|
2766
|
-
return z(a2) === r;
|
|
2767
|
-
};
|
|
2768
|
-
reactIs_production_min.isPortal = function(a2) {
|
|
2769
|
-
return z(a2) === d;
|
|
2770
|
-
};
|
|
2771
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
2772
|
-
return z(a2) === g;
|
|
2773
|
-
};
|
|
2774
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
2775
|
-
return z(a2) === f;
|
|
2776
|
-
};
|
|
2777
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
2778
|
-
return z(a2) === p;
|
|
2779
|
-
};
|
|
2780
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
2781
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n2 || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
|
|
2782
|
-
};
|
|
2783
|
-
reactIs_production_min.typeOf = z;
|
|
2784
|
-
return reactIs_production_min;
|
|
2785
|
-
}
|
|
2786
|
-
var reactIs_development = {};
|
|
2787
|
-
/** @license React v16.13.1
|
|
2788
|
-
* react-is.development.js
|
|
2789
|
-
*
|
|
2790
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2791
|
-
*
|
|
2792
|
-
* This source code is licensed under the MIT license found in the
|
|
2793
|
-
* LICENSE file in the root directory of this source tree.
|
|
2794
|
-
*/
|
|
2795
|
-
var hasRequiredReactIs_development;
|
|
2796
|
-
function requireReactIs_development() {
|
|
2797
|
-
if (hasRequiredReactIs_development)
|
|
2798
|
-
return reactIs_development;
|
|
2799
|
-
hasRequiredReactIs_development = 1;
|
|
2800
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2801
|
-
(function() {
|
|
2802
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
2803
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
2804
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
2805
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
2806
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
2807
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
2808
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
2809
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
2810
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
2811
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
2812
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
2813
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
2814
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
2815
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
2816
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
2817
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
2818
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
2819
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
2820
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
2821
|
-
function isValidElementType(type4) {
|
|
2822
|
-
return typeof type4 === "string" || typeof type4 === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2823
|
-
type4 === REACT_FRAGMENT_TYPE || type4 === REACT_CONCURRENT_MODE_TYPE || type4 === REACT_PROFILER_TYPE || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || typeof type4 === "object" && type4 !== null && (type4.$$typeof === REACT_LAZY_TYPE || type4.$$typeof === REACT_MEMO_TYPE || type4.$$typeof === REACT_PROVIDER_TYPE || type4.$$typeof === REACT_CONTEXT_TYPE || type4.$$typeof === REACT_FORWARD_REF_TYPE || type4.$$typeof === REACT_FUNDAMENTAL_TYPE || type4.$$typeof === REACT_RESPONDER_TYPE || type4.$$typeof === REACT_SCOPE_TYPE || type4.$$typeof === REACT_BLOCK_TYPE);
|
|
2824
|
-
}
|
|
2825
|
-
function typeOf(object4) {
|
|
2826
|
-
if (typeof object4 === "object" && object4 !== null) {
|
|
2827
|
-
var $$typeof = object4.$$typeof;
|
|
2828
|
-
switch ($$typeof) {
|
|
2829
|
-
case REACT_ELEMENT_TYPE:
|
|
2830
|
-
var type4 = object4.type;
|
|
2831
|
-
switch (type4) {
|
|
2832
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
2833
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
2834
|
-
case REACT_FRAGMENT_TYPE:
|
|
2835
|
-
case REACT_PROFILER_TYPE:
|
|
2836
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2837
|
-
case REACT_SUSPENSE_TYPE:
|
|
2838
|
-
return type4;
|
|
2839
|
-
default:
|
|
2840
|
-
var $$typeofType = type4 && type4.$$typeof;
|
|
2841
|
-
switch ($$typeofType) {
|
|
2842
|
-
case REACT_CONTEXT_TYPE:
|
|
2843
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2844
|
-
case REACT_LAZY_TYPE:
|
|
2845
|
-
case REACT_MEMO_TYPE:
|
|
2846
|
-
case REACT_PROVIDER_TYPE:
|
|
2847
|
-
return $$typeofType;
|
|
2848
|
-
default:
|
|
2849
|
-
return $$typeof;
|
|
2850
|
-
}
|
|
2851
|
-
}
|
|
2852
|
-
case REACT_PORTAL_TYPE:
|
|
2853
|
-
return $$typeof;
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
return void 0;
|
|
2857
|
-
}
|
|
2858
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
2859
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2860
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
2861
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
2862
|
-
var Element2 = REACT_ELEMENT_TYPE;
|
|
2863
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2864
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
2865
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
2866
|
-
var Memo = REACT_MEMO_TYPE;
|
|
2867
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
2868
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
2869
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2870
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
2871
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
2872
|
-
function isAsyncMode(object4) {
|
|
2873
|
-
{
|
|
2874
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2875
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
2876
|
-
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.");
|
|
2877
|
-
}
|
|
2878
|
-
}
|
|
2879
|
-
return isConcurrentMode(object4) || typeOf(object4) === REACT_ASYNC_MODE_TYPE;
|
|
2880
|
-
}
|
|
2881
|
-
function isConcurrentMode(object4) {
|
|
2882
|
-
return typeOf(object4) === REACT_CONCURRENT_MODE_TYPE;
|
|
2883
|
-
}
|
|
2884
|
-
function isContextConsumer(object4) {
|
|
2885
|
-
return typeOf(object4) === REACT_CONTEXT_TYPE;
|
|
2886
|
-
}
|
|
2887
|
-
function isContextProvider(object4) {
|
|
2888
|
-
return typeOf(object4) === REACT_PROVIDER_TYPE;
|
|
2889
|
-
}
|
|
2890
|
-
function isElement2(object4) {
|
|
2891
|
-
return typeof object4 === "object" && object4 !== null && object4.$$typeof === REACT_ELEMENT_TYPE;
|
|
2892
|
-
}
|
|
2893
|
-
function isForwardRef(object4) {
|
|
2894
|
-
return typeOf(object4) === REACT_FORWARD_REF_TYPE;
|
|
2895
|
-
}
|
|
2896
|
-
function isFragment(object4) {
|
|
2897
|
-
return typeOf(object4) === REACT_FRAGMENT_TYPE;
|
|
2898
|
-
}
|
|
2899
|
-
function isLazy(object4) {
|
|
2900
|
-
return typeOf(object4) === REACT_LAZY_TYPE;
|
|
2901
|
-
}
|
|
2902
|
-
function isMemo(object4) {
|
|
2903
|
-
return typeOf(object4) === REACT_MEMO_TYPE;
|
|
2904
|
-
}
|
|
2905
|
-
function isPortal(object4) {
|
|
2906
|
-
return typeOf(object4) === REACT_PORTAL_TYPE;
|
|
2907
|
-
}
|
|
2908
|
-
function isProfiler(object4) {
|
|
2909
|
-
return typeOf(object4) === REACT_PROFILER_TYPE;
|
|
2910
|
-
}
|
|
2911
|
-
function isStrictMode(object4) {
|
|
2912
|
-
return typeOf(object4) === REACT_STRICT_MODE_TYPE;
|
|
2913
|
-
}
|
|
2914
|
-
function isSuspense(object4) {
|
|
2915
|
-
return typeOf(object4) === REACT_SUSPENSE_TYPE;
|
|
2916
|
-
}
|
|
2917
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
2918
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
2919
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
2920
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
2921
|
-
reactIs_development.Element = Element2;
|
|
2922
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
2923
|
-
reactIs_development.Fragment = Fragment;
|
|
2924
|
-
reactIs_development.Lazy = Lazy;
|
|
2925
|
-
reactIs_development.Memo = Memo;
|
|
2926
|
-
reactIs_development.Portal = Portal;
|
|
2927
|
-
reactIs_development.Profiler = Profiler;
|
|
2928
|
-
reactIs_development.StrictMode = StrictMode;
|
|
2929
|
-
reactIs_development.Suspense = Suspense;
|
|
2930
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
2931
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
2932
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
2933
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
2934
|
-
reactIs_development.isElement = isElement2;
|
|
2935
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
2936
|
-
reactIs_development.isFragment = isFragment;
|
|
2937
|
-
reactIs_development.isLazy = isLazy;
|
|
2938
|
-
reactIs_development.isMemo = isMemo;
|
|
2939
|
-
reactIs_development.isPortal = isPortal;
|
|
2940
|
-
reactIs_development.isProfiler = isProfiler;
|
|
2941
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
2942
|
-
reactIs_development.isSuspense = isSuspense;
|
|
2943
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
2944
|
-
reactIs_development.typeOf = typeOf;
|
|
2945
|
-
})();
|
|
2946
|
-
}
|
|
2947
|
-
return reactIs_development;
|
|
2948
|
-
}
|
|
2949
|
-
var hasRequiredReactIs;
|
|
2950
|
-
function requireReactIs() {
|
|
2951
|
-
if (hasRequiredReactIs)
|
|
2952
|
-
return reactIs.exports;
|
|
2953
|
-
hasRequiredReactIs = 1;
|
|
2954
|
-
if (process.env.NODE_ENV === "production") {
|
|
2955
|
-
reactIs.exports = requireReactIs_production_min();
|
|
2956
|
-
} else {
|
|
2957
|
-
reactIs.exports = requireReactIs_development();
|
|
2958
|
-
}
|
|
2959
|
-
return reactIs.exports;
|
|
2960
|
-
}
|
|
2961
|
-
/*
|
|
2962
|
-
object-assign
|
|
2963
|
-
(c) Sindre Sorhus
|
|
2964
|
-
@license MIT
|
|
2965
|
-
*/
|
|
2966
|
-
var objectAssign;
|
|
2967
|
-
var hasRequiredObjectAssign;
|
|
2968
|
-
function requireObjectAssign() {
|
|
2969
|
-
if (hasRequiredObjectAssign)
|
|
2970
|
-
return objectAssign;
|
|
2971
|
-
hasRequiredObjectAssign = 1;
|
|
2972
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2973
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2974
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
2975
|
-
function toObject(val) {
|
|
2976
|
-
if (val === null || val === void 0) {
|
|
2977
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
2978
|
-
}
|
|
2979
|
-
return Object(val);
|
|
2980
|
-
}
|
|
2981
|
-
function shouldUseNative() {
|
|
2982
|
-
try {
|
|
2983
|
-
if (!Object.assign) {
|
|
2984
|
-
return false;
|
|
2985
|
-
}
|
|
2986
|
-
var test1 = new String("abc");
|
|
2987
|
-
test1[5] = "de";
|
|
2988
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
2989
|
-
return false;
|
|
2990
|
-
}
|
|
2991
|
-
var test2 = {};
|
|
2992
|
-
for (var i2 = 0; i2 < 10; i2++) {
|
|
2993
|
-
test2["_" + String.fromCharCode(i2)] = i2;
|
|
2994
|
-
}
|
|
2995
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
2996
|
-
return test2[n2];
|
|
2997
|
-
});
|
|
2998
|
-
if (order2.join("") !== "0123456789") {
|
|
2999
|
-
return false;
|
|
3000
|
-
}
|
|
3001
|
-
var test3 = {};
|
|
3002
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
3003
|
-
test3[letter] = letter;
|
|
3004
|
-
});
|
|
3005
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
3006
|
-
return false;
|
|
3007
|
-
}
|
|
3008
|
-
return true;
|
|
3009
|
-
} catch (err) {
|
|
3010
|
-
return false;
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
3014
|
-
var from;
|
|
3015
|
-
var to2 = toObject(target);
|
|
3016
|
-
var symbols;
|
|
3017
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
3018
|
-
from = Object(arguments[s]);
|
|
3019
|
-
for (var key in from) {
|
|
3020
|
-
if (hasOwnProperty.call(from, key)) {
|
|
3021
|
-
to2[key] = from[key];
|
|
3022
|
-
}
|
|
3023
|
-
}
|
|
3024
|
-
if (getOwnPropertySymbols) {
|
|
3025
|
-
symbols = getOwnPropertySymbols(from);
|
|
3026
|
-
for (var i2 = 0; i2 < symbols.length; i2++) {
|
|
3027
|
-
if (propIsEnumerable.call(from, symbols[i2])) {
|
|
3028
|
-
to2[symbols[i2]] = from[symbols[i2]];
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
return to2;
|
|
3034
|
-
};
|
|
3035
|
-
return objectAssign;
|
|
3036
|
-
}
|
|
3037
|
-
var ReactPropTypesSecret_1;
|
|
3038
|
-
var hasRequiredReactPropTypesSecret;
|
|
3039
|
-
function requireReactPropTypesSecret() {
|
|
3040
|
-
if (hasRequiredReactPropTypesSecret)
|
|
3041
|
-
return ReactPropTypesSecret_1;
|
|
3042
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
3043
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
3044
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
3045
|
-
return ReactPropTypesSecret_1;
|
|
3046
|
-
}
|
|
3047
|
-
var has;
|
|
3048
|
-
var hasRequiredHas;
|
|
3049
|
-
function requireHas() {
|
|
3050
|
-
if (hasRequiredHas)
|
|
3051
|
-
return has;
|
|
3052
|
-
hasRequiredHas = 1;
|
|
3053
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
3054
|
-
return has;
|
|
3055
|
-
}
|
|
3056
|
-
var checkPropTypes_1;
|
|
3057
|
-
var hasRequiredCheckPropTypes;
|
|
3058
|
-
function requireCheckPropTypes() {
|
|
3059
|
-
if (hasRequiredCheckPropTypes)
|
|
3060
|
-
return checkPropTypes_1;
|
|
3061
|
-
hasRequiredCheckPropTypes = 1;
|
|
3062
|
-
var printWarning = function() {
|
|
3063
|
-
};
|
|
3064
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3065
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3066
|
-
var loggedTypeFailures = {};
|
|
3067
|
-
var has2 = requireHas();
|
|
3068
|
-
printWarning = function(text) {
|
|
3069
|
-
var message = "Warning: " + text;
|
|
3070
|
-
if (typeof console !== "undefined") {
|
|
3071
|
-
console.error(message);
|
|
3072
|
-
}
|
|
3073
|
-
try {
|
|
3074
|
-
throw new Error(message);
|
|
3075
|
-
} catch (x) {
|
|
3076
|
-
}
|
|
3077
|
-
};
|
|
3078
|
-
}
|
|
3079
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
3080
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3081
|
-
for (var typeSpecName in typeSpecs) {
|
|
3082
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
3083
|
-
var error;
|
|
3084
|
-
try {
|
|
3085
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
3086
|
-
var err = Error(
|
|
3087
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
3088
|
-
);
|
|
3089
|
-
err.name = "Invariant Violation";
|
|
3090
|
-
throw err;
|
|
3091
|
-
}
|
|
3092
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3093
|
-
} catch (ex) {
|
|
3094
|
-
error = ex;
|
|
3095
|
-
}
|
|
3096
|
-
if (error && !(error instanceof Error)) {
|
|
3097
|
-
printWarning(
|
|
3098
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
3099
|
-
);
|
|
3100
|
-
}
|
|
3101
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
3102
|
-
loggedTypeFailures[error.message] = true;
|
|
3103
|
-
var stack = getStack ? getStack() : "";
|
|
3104
|
-
printWarning(
|
|
3105
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
3106
|
-
);
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
}
|
|
3112
|
-
checkPropTypes.resetWarningCache = function() {
|
|
3113
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3114
|
-
loggedTypeFailures = {};
|
|
3115
|
-
}
|
|
3116
|
-
};
|
|
3117
|
-
checkPropTypes_1 = checkPropTypes;
|
|
3118
|
-
return checkPropTypes_1;
|
|
3119
|
-
}
|
|
3120
|
-
var factoryWithTypeCheckers;
|
|
3121
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
3122
|
-
function requireFactoryWithTypeCheckers() {
|
|
3123
|
-
if (hasRequiredFactoryWithTypeCheckers)
|
|
3124
|
-
return factoryWithTypeCheckers;
|
|
3125
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
3126
|
-
var ReactIs = requireReactIs();
|
|
3127
|
-
var assign2 = requireObjectAssign();
|
|
3128
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
3129
|
-
var has2 = requireHas();
|
|
3130
|
-
var checkPropTypes = requireCheckPropTypes();
|
|
3131
|
-
var printWarning = function() {
|
|
3132
|
-
};
|
|
3133
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3134
|
-
printWarning = function(text) {
|
|
3135
|
-
var message = "Warning: " + text;
|
|
3136
|
-
if (typeof console !== "undefined") {
|
|
3137
|
-
console.error(message);
|
|
3138
|
-
}
|
|
3139
|
-
try {
|
|
3140
|
-
throw new Error(message);
|
|
3141
|
-
} catch (x) {
|
|
3142
|
-
}
|
|
3143
|
-
};
|
|
3144
|
-
}
|
|
3145
|
-
function emptyFunctionThatReturnsNull() {
|
|
3146
|
-
return null;
|
|
3147
|
-
}
|
|
3148
|
-
factoryWithTypeCheckers = function(isValidElement2, throwOnDirectAccess) {
|
|
3149
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
3150
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
3151
|
-
function getIteratorFn(maybeIterable) {
|
|
3152
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
3153
|
-
if (typeof iteratorFn === "function") {
|
|
3154
|
-
return iteratorFn;
|
|
3155
|
-
}
|
|
3156
|
-
}
|
|
3157
|
-
var ANONYMOUS = "<<anonymous>>";
|
|
3158
|
-
var ReactPropTypes = {
|
|
3159
|
-
array: createPrimitiveTypeChecker("array"),
|
|
3160
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
|
3161
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
|
3162
|
-
func: createPrimitiveTypeChecker("function"),
|
|
3163
|
-
number: createPrimitiveTypeChecker("number"),
|
|
3164
|
-
object: createPrimitiveTypeChecker("object"),
|
|
3165
|
-
string: createPrimitiveTypeChecker("string"),
|
|
3166
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
|
3167
|
-
any: createAnyTypeChecker(),
|
|
3168
|
-
arrayOf: createArrayOfTypeChecker,
|
|
3169
|
-
element: createElementTypeChecker(),
|
|
3170
|
-
elementType: createElementTypeTypeChecker(),
|
|
3171
|
-
instanceOf: createInstanceTypeChecker,
|
|
3172
|
-
node: createNodeChecker(),
|
|
3173
|
-
objectOf: createObjectOfTypeChecker,
|
|
3174
|
-
oneOf: createEnumTypeChecker,
|
|
3175
|
-
oneOfType: createUnionTypeChecker,
|
|
3176
|
-
shape: createShapeTypeChecker,
|
|
3177
|
-
exact: createStrictShapeTypeChecker
|
|
3178
|
-
};
|
|
3179
|
-
function is2(x, y) {
|
|
3180
|
-
if (x === y) {
|
|
3181
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
3182
|
-
} else {
|
|
3183
|
-
return x !== x && y !== y;
|
|
3184
|
-
}
|
|
3185
|
-
}
|
|
3186
|
-
function PropTypeError(message, data) {
|
|
3187
|
-
this.message = message;
|
|
3188
|
-
this.data = data && typeof data === "object" ? data : {};
|
|
3189
|
-
this.stack = "";
|
|
3190
|
-
}
|
|
3191
|
-
PropTypeError.prototype = Error.prototype;
|
|
3192
|
-
function createChainableTypeChecker(validate) {
|
|
3193
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3194
|
-
var manualPropTypeCallCache = {};
|
|
3195
|
-
var manualPropTypeWarningCount = 0;
|
|
3196
|
-
}
|
|
3197
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
3198
|
-
componentName = componentName || ANONYMOUS;
|
|
3199
|
-
propFullName = propFullName || propName;
|
|
3200
|
-
if (secret !== ReactPropTypesSecret) {
|
|
3201
|
-
if (throwOnDirectAccess) {
|
|
3202
|
-
var err = new Error(
|
|
3203
|
-
"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"
|
|
3204
|
-
);
|
|
3205
|
-
err.name = "Invariant Violation";
|
|
3206
|
-
throw err;
|
|
3207
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
3208
|
-
var cacheKey2 = componentName + ":" + propName;
|
|
3209
|
-
if (!manualPropTypeCallCache[cacheKey2] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3210
|
-
manualPropTypeWarningCount < 3) {
|
|
3211
|
-
printWarning(
|
|
3212
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. 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."
|
|
3213
|
-
);
|
|
3214
|
-
manualPropTypeCallCache[cacheKey2] = true;
|
|
3215
|
-
manualPropTypeWarningCount++;
|
|
3216
|
-
}
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
if (props[propName] == null) {
|
|
3220
|
-
if (isRequired) {
|
|
3221
|
-
if (props[propName] === null) {
|
|
3222
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
3223
|
-
}
|
|
3224
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
3225
|
-
}
|
|
3226
|
-
return null;
|
|
3227
|
-
} else {
|
|
3228
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
3232
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
3233
|
-
return chainedCheckType;
|
|
3234
|
-
}
|
|
3235
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
3236
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
3237
|
-
var propValue = props[propName];
|
|
3238
|
-
var propType = getPropType(propValue);
|
|
3239
|
-
if (propType !== expectedType) {
|
|
3240
|
-
var preciseType = getPreciseType(propValue);
|
|
3241
|
-
return new PropTypeError(
|
|
3242
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
3243
|
-
{ expectedType }
|
|
3244
|
-
);
|
|
3245
|
-
}
|
|
3246
|
-
return null;
|
|
3247
|
-
}
|
|
3248
|
-
return createChainableTypeChecker(validate);
|
|
3249
|
-
}
|
|
3250
|
-
function createAnyTypeChecker() {
|
|
3251
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
3252
|
-
}
|
|
3253
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
3254
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3255
|
-
if (typeof typeChecker !== "function") {
|
|
3256
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
3257
|
-
}
|
|
3258
|
-
var propValue = props[propName];
|
|
3259
|
-
if (!Array.isArray(propValue)) {
|
|
3260
|
-
var propType = getPropType(propValue);
|
|
3261
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
3262
|
-
}
|
|
3263
|
-
for (var i2 = 0; i2 < propValue.length; i2++) {
|
|
3264
|
-
var error = typeChecker(propValue, i2, componentName, location, propFullName + "[" + i2 + "]", ReactPropTypesSecret);
|
|
3265
|
-
if (error instanceof Error) {
|
|
3266
|
-
return error;
|
|
3267
|
-
}
|
|
3268
|
-
}
|
|
3269
|
-
return null;
|
|
3270
|
-
}
|
|
3271
|
-
return createChainableTypeChecker(validate);
|
|
3272
|
-
}
|
|
3273
|
-
function createElementTypeChecker() {
|
|
3274
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3275
|
-
var propValue = props[propName];
|
|
3276
|
-
if (!isValidElement2(propValue)) {
|
|
3277
|
-
var propType = getPropType(propValue);
|
|
3278
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
3279
|
-
}
|
|
3280
|
-
return null;
|
|
3281
|
-
}
|
|
3282
|
-
return createChainableTypeChecker(validate);
|
|
3283
|
-
}
|
|
3284
|
-
function createElementTypeTypeChecker() {
|
|
3285
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3286
|
-
var propValue = props[propName];
|
|
3287
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
3288
|
-
var propType = getPropType(propValue);
|
|
3289
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
3290
|
-
}
|
|
3291
|
-
return null;
|
|
3292
|
-
}
|
|
3293
|
-
return createChainableTypeChecker(validate);
|
|
3294
|
-
}
|
|
3295
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
3296
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3297
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
3298
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
3299
|
-
var actualClassName = getClassName(props[propName]);
|
|
3300
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
3301
|
-
}
|
|
3302
|
-
return null;
|
|
3303
|
-
}
|
|
3304
|
-
return createChainableTypeChecker(validate);
|
|
3305
|
-
}
|
|
3306
|
-
function createEnumTypeChecker(expectedValues) {
|
|
3307
|
-
if (!Array.isArray(expectedValues)) {
|
|
3308
|
-
if (process.env.NODE_ENV !== "production") {
|
|
3309
|
-
if (arguments.length > 1) {
|
|
3310
|
-
printWarning(
|
|
3311
|
-
"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])."
|
|
3312
|
-
);
|
|
3313
|
-
} else {
|
|
3314
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
3315
|
-
}
|
|
3316
|
-
}
|
|
3317
|
-
return emptyFunctionThatReturnsNull;
|
|
3318
|
-
}
|
|
3319
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3320
|
-
var propValue = props[propName];
|
|
3321
|
-
for (var i2 = 0; i2 < expectedValues.length; i2++) {
|
|
3322
|
-
if (is2(propValue, expectedValues[i2])) {
|
|
3323
|
-
return null;
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
3327
|
-
var type4 = getPreciseType(value);
|
|
3328
|
-
if (type4 === "symbol") {
|
|
3329
|
-
return String(value);
|
|
3330
|
-
}
|
|
3331
|
-
return value;
|
|
3332
|
-
});
|
|
3333
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
3334
|
-
}
|
|
3335
|
-
return createChainableTypeChecker(validate);
|
|
3336
|
-
}
|
|
3337
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
3338
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3339
|
-
if (typeof typeChecker !== "function") {
|
|
3340
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
3341
|
-
}
|
|
3342
|
-
var propValue = props[propName];
|
|
3343
|
-
var propType = getPropType(propValue);
|
|
3344
|
-
if (propType !== "object") {
|
|
3345
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
3346
|
-
}
|
|
3347
|
-
for (var key in propValue) {
|
|
3348
|
-
if (has2(propValue, key)) {
|
|
3349
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
3350
|
-
if (error instanceof Error) {
|
|
3351
|
-
return error;
|
|
3352
|
-
}
|
|
3353
|
-
}
|
|
3354
|
-
}
|
|
3355
|
-
return null;
|
|
3356
|
-
}
|
|
3357
|
-
return createChainableTypeChecker(validate);
|
|
3358
|
-
}
|
|
3359
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
3360
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
3361
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
3362
|
-
return emptyFunctionThatReturnsNull;
|
|
3363
|
-
}
|
|
3364
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
3365
|
-
var checker = arrayOfTypeCheckers[i2];
|
|
3366
|
-
if (typeof checker !== "function") {
|
|
3367
|
-
printWarning(
|
|
3368
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i2 + "."
|
|
3369
|
-
);
|
|
3370
|
-
return emptyFunctionThatReturnsNull;
|
|
3371
|
-
}
|
|
3372
|
-
}
|
|
3373
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3374
|
-
var expectedTypes = [];
|
|
3375
|
-
for (var i3 = 0; i3 < arrayOfTypeCheckers.length; i3++) {
|
|
3376
|
-
var checker2 = arrayOfTypeCheckers[i3];
|
|
3377
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
3378
|
-
if (checkerResult == null) {
|
|
3379
|
-
return null;
|
|
3380
|
-
}
|
|
3381
|
-
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
3382
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
3383
|
-
}
|
|
3384
|
-
}
|
|
3385
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
3386
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
3387
|
-
}
|
|
3388
|
-
return createChainableTypeChecker(validate);
|
|
3389
|
-
}
|
|
3390
|
-
function createNodeChecker() {
|
|
3391
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3392
|
-
if (!isNode(props[propName])) {
|
|
3393
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
3394
|
-
}
|
|
3395
|
-
return null;
|
|
3396
|
-
}
|
|
3397
|
-
return createChainableTypeChecker(validate);
|
|
3398
|
-
}
|
|
3399
|
-
function invalidValidatorError(componentName, location, propFullName, key, type4) {
|
|
3400
|
-
return new PropTypeError(
|
|
3401
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type4 + "`."
|
|
3402
|
-
);
|
|
3403
|
-
}
|
|
3404
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
3405
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3406
|
-
var propValue = props[propName];
|
|
3407
|
-
var propType = getPropType(propValue);
|
|
3408
|
-
if (propType !== "object") {
|
|
3409
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
3410
|
-
}
|
|
3411
|
-
for (var key in shapeTypes) {
|
|
3412
|
-
var checker = shapeTypes[key];
|
|
3413
|
-
if (typeof checker !== "function") {
|
|
3414
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
3415
|
-
}
|
|
3416
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
3417
|
-
if (error) {
|
|
3418
|
-
return error;
|
|
3419
|
-
}
|
|
3420
|
-
}
|
|
3421
|
-
return null;
|
|
3422
|
-
}
|
|
3423
|
-
return createChainableTypeChecker(validate);
|
|
3424
|
-
}
|
|
3425
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
3426
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
3427
|
-
var propValue = props[propName];
|
|
3428
|
-
var propType = getPropType(propValue);
|
|
3429
|
-
if (propType !== "object") {
|
|
3430
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
3431
|
-
}
|
|
3432
|
-
var allKeys = assign2({}, props[propName], shapeTypes);
|
|
3433
|
-
for (var key in allKeys) {
|
|
3434
|
-
var checker = shapeTypes[key];
|
|
3435
|
-
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
3436
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
3437
|
-
}
|
|
3438
|
-
if (!checker) {
|
|
3439
|
-
return new PropTypeError(
|
|
3440
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
3441
|
-
);
|
|
3442
|
-
}
|
|
3443
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
3444
|
-
if (error) {
|
|
3445
|
-
return error;
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
return null;
|
|
3449
|
-
}
|
|
3450
|
-
return createChainableTypeChecker(validate);
|
|
3451
|
-
}
|
|
3452
|
-
function isNode(propValue) {
|
|
3453
|
-
switch (typeof propValue) {
|
|
3454
|
-
case "number":
|
|
3455
|
-
case "string":
|
|
3456
|
-
case "undefined":
|
|
3457
|
-
return true;
|
|
3458
|
-
case "boolean":
|
|
3459
|
-
return !propValue;
|
|
3460
|
-
case "object":
|
|
3461
|
-
if (Array.isArray(propValue)) {
|
|
3462
|
-
return propValue.every(isNode);
|
|
3463
|
-
}
|
|
3464
|
-
if (propValue === null || isValidElement2(propValue)) {
|
|
3465
|
-
return true;
|
|
3466
|
-
}
|
|
3467
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
3468
|
-
if (iteratorFn) {
|
|
3469
|
-
var iterator = iteratorFn.call(propValue);
|
|
3470
|
-
var step;
|
|
3471
|
-
if (iteratorFn !== propValue.entries) {
|
|
3472
|
-
while (!(step = iterator.next()).done) {
|
|
3473
|
-
if (!isNode(step.value)) {
|
|
3474
|
-
return false;
|
|
3475
|
-
}
|
|
3476
|
-
}
|
|
3477
|
-
} else {
|
|
3478
|
-
while (!(step = iterator.next()).done) {
|
|
3479
|
-
var entry = step.value;
|
|
3480
|
-
if (entry) {
|
|
3481
|
-
if (!isNode(entry[1])) {
|
|
3482
|
-
return false;
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
}
|
|
3486
|
-
}
|
|
3487
|
-
} else {
|
|
3488
|
-
return false;
|
|
3489
|
-
}
|
|
3490
|
-
return true;
|
|
3491
|
-
default:
|
|
3492
|
-
return false;
|
|
3493
|
-
}
|
|
3494
|
-
}
|
|
3495
|
-
function isSymbol2(propType, propValue) {
|
|
3496
|
-
if (propType === "symbol") {
|
|
3497
|
-
return true;
|
|
3498
|
-
}
|
|
3499
|
-
if (!propValue) {
|
|
3500
|
-
return false;
|
|
3501
|
-
}
|
|
3502
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
|
3503
|
-
return true;
|
|
3504
|
-
}
|
|
3505
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
3506
|
-
return true;
|
|
3507
|
-
}
|
|
3508
|
-
return false;
|
|
3509
|
-
}
|
|
3510
|
-
function getPropType(propValue) {
|
|
3511
|
-
var propType = typeof propValue;
|
|
3512
|
-
if (Array.isArray(propValue)) {
|
|
3513
|
-
return "array";
|
|
3514
|
-
}
|
|
3515
|
-
if (propValue instanceof RegExp) {
|
|
3516
|
-
return "object";
|
|
3517
|
-
}
|
|
3518
|
-
if (isSymbol2(propType, propValue)) {
|
|
3519
|
-
return "symbol";
|
|
3520
|
-
}
|
|
3521
|
-
return propType;
|
|
3522
|
-
}
|
|
3523
|
-
function getPreciseType(propValue) {
|
|
3524
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
|
3525
|
-
return "" + propValue;
|
|
3526
|
-
}
|
|
3527
|
-
var propType = getPropType(propValue);
|
|
3528
|
-
if (propType === "object") {
|
|
3529
|
-
if (propValue instanceof Date) {
|
|
3530
|
-
return "date";
|
|
3531
|
-
} else if (propValue instanceof RegExp) {
|
|
3532
|
-
return "regexp";
|
|
3533
|
-
}
|
|
3534
|
-
}
|
|
3535
|
-
return propType;
|
|
3536
|
-
}
|
|
3537
|
-
function getPostfixForTypeWarning(value) {
|
|
3538
|
-
var type4 = getPreciseType(value);
|
|
3539
|
-
switch (type4) {
|
|
3540
|
-
case "array":
|
|
3541
|
-
case "object":
|
|
3542
|
-
return "an " + type4;
|
|
3543
|
-
case "boolean":
|
|
3544
|
-
case "date":
|
|
3545
|
-
case "regexp":
|
|
3546
|
-
return "a " + type4;
|
|
3547
|
-
default:
|
|
3548
|
-
return type4;
|
|
2010
|
+
ref: imgRef,
|
|
2011
|
+
className: "nut-img lazyload",
|
|
2012
|
+
style: imgStyle,
|
|
2013
|
+
"data-src": src,
|
|
2014
|
+
alt,
|
|
2015
|
+
loading: "lazy",
|
|
2016
|
+
onLoad: handleLoad,
|
|
2017
|
+
onError: handleError,
|
|
2018
|
+
draggable
|
|
3549
2019
|
}
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
2020
|
+
) : /* @__PURE__ */ React__default.createElement(
|
|
2021
|
+
"img",
|
|
2022
|
+
{
|
|
2023
|
+
ref: imgRef,
|
|
2024
|
+
className: "nut-img",
|
|
2025
|
+
style: imgStyle,
|
|
2026
|
+
src,
|
|
2027
|
+
alt,
|
|
2028
|
+
onLoad: handleLoad,
|
|
2029
|
+
onError: handleError,
|
|
2030
|
+
draggable
|
|
3554
2031
|
}
|
|
3555
|
-
|
|
2032
|
+
),
|
|
2033
|
+
renderLoading(),
|
|
2034
|
+
renderErrorImg()
|
|
2035
|
+
);
|
|
2036
|
+
};
|
|
2037
|
+
Image$1.displayName = "NutImage";
|
|
2038
|
+
function _extends$4() {
|
|
2039
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
2040
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
2041
|
+
var t2 = arguments[e2];
|
|
2042
|
+
for (var r in t2) ({}).hasOwnProperty.call(t2, r) && (n2[r] = t2[r]);
|
|
3556
2043
|
}
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3560
|
-
return ReactPropTypes;
|
|
3561
|
-
};
|
|
3562
|
-
return factoryWithTypeCheckers;
|
|
2044
|
+
return n2;
|
|
2045
|
+
}, _extends$4.apply(null, arguments);
|
|
3563
2046
|
}
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
if (
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3578
|
-
if (secret === ReactPropTypesSecret) {
|
|
3579
|
-
return;
|
|
3580
|
-
}
|
|
3581
|
-
var err = new Error(
|
|
3582
|
-
"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"
|
|
3583
|
-
);
|
|
3584
|
-
err.name = "Invariant Violation";
|
|
3585
|
-
throw err;
|
|
3586
|
-
}
|
|
3587
|
-
shim.isRequired = shim;
|
|
3588
|
-
function getShim() {
|
|
3589
|
-
return shim;
|
|
3590
|
-
}
|
|
3591
|
-
var ReactPropTypes = {
|
|
3592
|
-
array: shim,
|
|
3593
|
-
bigint: shim,
|
|
3594
|
-
bool: shim,
|
|
3595
|
-
func: shim,
|
|
3596
|
-
number: shim,
|
|
3597
|
-
object: shim,
|
|
3598
|
-
string: shim,
|
|
3599
|
-
symbol: shim,
|
|
3600
|
-
any: shim,
|
|
3601
|
-
arrayOf: getShim,
|
|
3602
|
-
element: shim,
|
|
3603
|
-
elementType: shim,
|
|
3604
|
-
instanceOf: getShim,
|
|
3605
|
-
node: shim,
|
|
3606
|
-
objectOf: getShim,
|
|
3607
|
-
oneOf: getShim,
|
|
3608
|
-
oneOfType: getShim,
|
|
3609
|
-
shape: getShim,
|
|
3610
|
-
exact: getShim,
|
|
3611
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3612
|
-
resetWarningCache: emptyFunction
|
|
3613
|
-
};
|
|
3614
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3615
|
-
return ReactPropTypes;
|
|
3616
|
-
};
|
|
3617
|
-
return factoryWithThrowingShims;
|
|
2047
|
+
function _objectWithoutPropertiesLoose$3(r, e2) {
|
|
2048
|
+
if (null == r) return {};
|
|
2049
|
+
var t2 = {};
|
|
2050
|
+
for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
|
|
2051
|
+
if (e2.indexOf(n2) >= 0) continue;
|
|
2052
|
+
t2[n2] = r[n2];
|
|
2053
|
+
}
|
|
2054
|
+
return t2;
|
|
2055
|
+
}
|
|
2056
|
+
function _setPrototypeOf$1(t2, e2) {
|
|
2057
|
+
return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
|
|
2058
|
+
return t3.__proto__ = e3, t3;
|
|
2059
|
+
}, _setPrototypeOf$1(t2, e2);
|
|
3618
2060
|
}
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
var throwOnDirectAccess = true;
|
|
3622
|
-
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
3623
|
-
} else {
|
|
3624
|
-
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
2061
|
+
function _inheritsLoose$1(t2, o2) {
|
|
2062
|
+
t2.prototype = Object.create(o2.prototype), t2.prototype.constructor = t2, _setPrototypeOf$1(t2, o2);
|
|
3625
2063
|
}
|
|
3626
|
-
var propTypesExports = propTypes.exports;
|
|
3627
|
-
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
3628
2064
|
function hasClass(element, className) {
|
|
3629
|
-
if (element.classList)
|
|
3630
|
-
return !!className && element.classList.contains(className);
|
|
2065
|
+
if (element.classList) return !!className && element.classList.contains(className);
|
|
3631
2066
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
3632
2067
|
}
|
|
3633
2068
|
function addClass(element, className) {
|
|
3634
|
-
if (element.classList)
|
|
3635
|
-
|
|
3636
|
-
else
|
|
3637
|
-
if (typeof element.className === "string")
|
|
3638
|
-
element.className = element.className + " " + className;
|
|
3639
|
-
else
|
|
3640
|
-
element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
2069
|
+
if (element.classList) element.classList.add(className);
|
|
2070
|
+
else if (!hasClass(element, className)) if (typeof element.className === "string") element.className = element.className + " " + className;
|
|
2071
|
+
else element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
|
|
3641
2072
|
}
|
|
3642
2073
|
function replaceClassName(origClass, classToRemove) {
|
|
3643
2074
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
@@ -3654,23 +2085,6 @@ function removeClass$1(element, className) {
|
|
|
3654
2085
|
const config$2 = {
|
|
3655
2086
|
disabled: false
|
|
3656
2087
|
};
|
|
3657
|
-
var timeoutsShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
3658
|
-
enter: PropTypes.number,
|
|
3659
|
-
exit: PropTypes.number,
|
|
3660
|
-
appear: PropTypes.number
|
|
3661
|
-
}).isRequired]) : null;
|
|
3662
|
-
var classNamesShape = process.env.NODE_ENV !== "production" ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
3663
|
-
enter: PropTypes.string,
|
|
3664
|
-
exit: PropTypes.string,
|
|
3665
|
-
active: PropTypes.string
|
|
3666
|
-
}), PropTypes.shape({
|
|
3667
|
-
enter: PropTypes.string,
|
|
3668
|
-
enterDone: PropTypes.string,
|
|
3669
|
-
enterActive: PropTypes.string,
|
|
3670
|
-
exit: PropTypes.string,
|
|
3671
|
-
exitDone: PropTypes.string,
|
|
3672
|
-
exitActive: PropTypes.string
|
|
3673
|
-
})]) : null;
|
|
3674
2088
|
const TransitionGroupContext = React__default.createContext(null);
|
|
3675
2089
|
var forceReflow = function forceReflow2(node) {
|
|
3676
2090
|
return node.scrollTop;
|
|
@@ -3765,8 +2179,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
3765
2179
|
if (nextStatus === ENTERING) {
|
|
3766
2180
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
3767
2181
|
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default.findDOMNode(this);
|
|
3768
|
-
if (node)
|
|
3769
|
-
forceReflow(node);
|
|
2182
|
+
if (node) forceReflow(node);
|
|
3770
2183
|
}
|
|
3771
2184
|
this.performEnter(mounting);
|
|
3772
2185
|
} else {
|
|
@@ -3907,177 +2320,7 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
|
|
|
3907
2320
|
return Transition2;
|
|
3908
2321
|
}(React__default.Component);
|
|
3909
2322
|
Transition.contextType = TransitionGroupContext;
|
|
3910
|
-
Transition.propTypes =
|
|
3911
|
-
/**
|
|
3912
|
-
* A React reference to DOM element that need to transition:
|
|
3913
|
-
* https://stackoverflow.com/a/51127130/4671932
|
|
3914
|
-
*
|
|
3915
|
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
3916
|
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
3917
|
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
3918
|
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
3919
|
-
* (see
|
|
3920
|
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
3921
|
-
*/
|
|
3922
|
-
nodeRef: PropTypes.shape({
|
|
3923
|
-
current: typeof Element === "undefined" ? PropTypes.any : function(propValue, key, componentName, location, propFullName, secret) {
|
|
3924
|
-
var value = propValue[key];
|
|
3925
|
-
return PropTypes.instanceOf(value && "ownerDocument" in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
3926
|
-
}
|
|
3927
|
-
}),
|
|
3928
|
-
/**
|
|
3929
|
-
* A `function` child can be used instead of a React element. This function is
|
|
3930
|
-
* called with the current transition status (`'entering'`, `'entered'`,
|
|
3931
|
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
3932
|
-
* specific props to a component.
|
|
3933
|
-
*
|
|
3934
|
-
* ```jsx
|
|
3935
|
-
* <Transition in={this.state.in} timeout={150}>
|
|
3936
|
-
* {state => (
|
|
3937
|
-
* <MyComponent className={`fade fade-${state}`} />
|
|
3938
|
-
* )}
|
|
3939
|
-
* </Transition>
|
|
3940
|
-
* ```
|
|
3941
|
-
*/
|
|
3942
|
-
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
|
3943
|
-
/**
|
|
3944
|
-
* Show the component; triggers the enter or exit states
|
|
3945
|
-
*/
|
|
3946
|
-
in: PropTypes.bool,
|
|
3947
|
-
/**
|
|
3948
|
-
* By default the child component is mounted immediately along with
|
|
3949
|
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
3950
|
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
3951
|
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
3952
|
-
*/
|
|
3953
|
-
mountOnEnter: PropTypes.bool,
|
|
3954
|
-
/**
|
|
3955
|
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
3956
|
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
3957
|
-
*/
|
|
3958
|
-
unmountOnExit: PropTypes.bool,
|
|
3959
|
-
/**
|
|
3960
|
-
* By default the child component does not perform the enter transition when
|
|
3961
|
-
* it first mounts, regardless of the value of `in`. If you want this
|
|
3962
|
-
* behavior, set both `appear` and `in` to `true`.
|
|
3963
|
-
*
|
|
3964
|
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
3965
|
-
* > only adds an additional enter transition. However, in the
|
|
3966
|
-
* > `<CSSTransition>` component that first enter transition does result in
|
|
3967
|
-
* > additional `.appear-*` classes, that way you can choose to style it
|
|
3968
|
-
* > differently.
|
|
3969
|
-
*/
|
|
3970
|
-
appear: PropTypes.bool,
|
|
3971
|
-
/**
|
|
3972
|
-
* Enable or disable enter transitions.
|
|
3973
|
-
*/
|
|
3974
|
-
enter: PropTypes.bool,
|
|
3975
|
-
/**
|
|
3976
|
-
* Enable or disable exit transitions.
|
|
3977
|
-
*/
|
|
3978
|
-
exit: PropTypes.bool,
|
|
3979
|
-
/**
|
|
3980
|
-
* The duration of the transition, in milliseconds.
|
|
3981
|
-
* Required unless `addEndListener` is provided.
|
|
3982
|
-
*
|
|
3983
|
-
* You may specify a single timeout for all transitions:
|
|
3984
|
-
*
|
|
3985
|
-
* ```jsx
|
|
3986
|
-
* timeout={500}
|
|
3987
|
-
* ```
|
|
3988
|
-
*
|
|
3989
|
-
* or individually:
|
|
3990
|
-
*
|
|
3991
|
-
* ```jsx
|
|
3992
|
-
* timeout={{
|
|
3993
|
-
* appear: 500,
|
|
3994
|
-
* enter: 300,
|
|
3995
|
-
* exit: 500,
|
|
3996
|
-
* }}
|
|
3997
|
-
* ```
|
|
3998
|
-
*
|
|
3999
|
-
* - `appear` defaults to the value of `enter`
|
|
4000
|
-
* - `enter` defaults to `0`
|
|
4001
|
-
* - `exit` defaults to `0`
|
|
4002
|
-
*
|
|
4003
|
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
4004
|
-
*/
|
|
4005
|
-
timeout: function timeout(props) {
|
|
4006
|
-
var pt = timeoutsShape;
|
|
4007
|
-
if (!props.addEndListener)
|
|
4008
|
-
pt = pt.isRequired;
|
|
4009
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4010
|
-
args[_key - 1] = arguments[_key];
|
|
4011
|
-
}
|
|
4012
|
-
return pt.apply(void 0, [props].concat(args));
|
|
4013
|
-
},
|
|
4014
|
-
/**
|
|
4015
|
-
* Add a custom transition end trigger. Called with the transitioning
|
|
4016
|
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
4017
|
-
* logic. Timeouts are still used as a fallback if provided.
|
|
4018
|
-
*
|
|
4019
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4020
|
-
*
|
|
4021
|
-
* ```jsx
|
|
4022
|
-
* addEndListener={(node, done) => {
|
|
4023
|
-
* // use the css transitionend event to mark the finish of a transition
|
|
4024
|
-
* node.addEventListener('transitionend', done, false);
|
|
4025
|
-
* }}
|
|
4026
|
-
* ```
|
|
4027
|
-
*/
|
|
4028
|
-
addEndListener: PropTypes.func,
|
|
4029
|
-
/**
|
|
4030
|
-
* Callback fired before the "entering" status is applied. An extra parameter
|
|
4031
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
4032
|
-
*
|
|
4033
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4034
|
-
*
|
|
4035
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
4036
|
-
*/
|
|
4037
|
-
onEnter: PropTypes.func,
|
|
4038
|
-
/**
|
|
4039
|
-
* Callback fired after the "entering" status is applied. An extra parameter
|
|
4040
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
4041
|
-
*
|
|
4042
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4043
|
-
*
|
|
4044
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
4045
|
-
*/
|
|
4046
|
-
onEntering: PropTypes.func,
|
|
4047
|
-
/**
|
|
4048
|
-
* Callback fired after the "entered" status is applied. An extra parameter
|
|
4049
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
4050
|
-
*
|
|
4051
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4052
|
-
*
|
|
4053
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
4054
|
-
*/
|
|
4055
|
-
onEntered: PropTypes.func,
|
|
4056
|
-
/**
|
|
4057
|
-
* Callback fired before the "exiting" status is applied.
|
|
4058
|
-
*
|
|
4059
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4060
|
-
*
|
|
4061
|
-
* @type Function(node: HtmlElement) -> void
|
|
4062
|
-
*/
|
|
4063
|
-
onExit: PropTypes.func,
|
|
4064
|
-
/**
|
|
4065
|
-
* Callback fired after the "exiting" status is applied.
|
|
4066
|
-
*
|
|
4067
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4068
|
-
*
|
|
4069
|
-
* @type Function(node: HtmlElement) -> void
|
|
4070
|
-
*/
|
|
4071
|
-
onExiting: PropTypes.func,
|
|
4072
|
-
/**
|
|
4073
|
-
* Callback fired after the "exited" status is applied.
|
|
4074
|
-
*
|
|
4075
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
4076
|
-
*
|
|
4077
|
-
* @type Function(node: HtmlElement) -> void
|
|
4078
|
-
*/
|
|
4079
|
-
onExited: PropTypes.func
|
|
4080
|
-
} : {};
|
|
2323
|
+
Transition.propTypes = {};
|
|
4081
2324
|
function noop$2() {
|
|
4082
2325
|
}
|
|
4083
2326
|
Transition.defaultProps = {
|
|
@@ -4099,7 +2342,6 @@ Transition.EXITED = EXITED;
|
|
|
4099
2342
|
Transition.ENTERING = ENTERING;
|
|
4100
2343
|
Transition.ENTERED = ENTERED;
|
|
4101
2344
|
Transition.EXITING = EXITING;
|
|
4102
|
-
const Transition$1 = Transition;
|
|
4103
2345
|
var _addClass = function addClass$1(node, classes) {
|
|
4104
2346
|
return node && classes && classes.split(" ").forEach(function(c6) {
|
|
4105
2347
|
return addClass(node, c6);
|
|
@@ -4198,8 +2440,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
4198
2440
|
className += " " + doneClassName;
|
|
4199
2441
|
}
|
|
4200
2442
|
if (phase === "active") {
|
|
4201
|
-
if (node)
|
|
4202
|
-
forceReflow(node);
|
|
2443
|
+
if (node) forceReflow(node);
|
|
4203
2444
|
}
|
|
4204
2445
|
if (className) {
|
|
4205
2446
|
this.appliedClasses[type4][phase] = className;
|
|
@@ -4223,7 +2464,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
4223
2464
|
var _this$props = this.props;
|
|
4224
2465
|
_this$props.classNames;
|
|
4225
2466
|
var props = _objectWithoutPropertiesLoose$3(_this$props, ["classNames"]);
|
|
4226
|
-
return /* @__PURE__ */ React__default.createElement(Transition
|
|
2467
|
+
return /* @__PURE__ */ React__default.createElement(Transition, _extends$4({}, props, {
|
|
4227
2468
|
onEnter: this.onEnter,
|
|
4228
2469
|
onEntered: this.onEntered,
|
|
4229
2470
|
onEntering: this.onEntering,
|
|
@@ -4237,131 +2478,7 @@ var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
|
4237
2478
|
CSSTransition.defaultProps = {
|
|
4238
2479
|
classNames: ""
|
|
4239
2480
|
};
|
|
4240
|
-
CSSTransition.propTypes =
|
|
4241
|
-
/**
|
|
4242
|
-
* The animation classNames applied to the component as it appears, enters,
|
|
4243
|
-
* exits or has finished the transition. A single name can be provided, which
|
|
4244
|
-
* will be suffixed for each stage, e.g. `classNames="fade"` applies:
|
|
4245
|
-
*
|
|
4246
|
-
* - `fade-appear`, `fade-appear-active`, `fade-appear-done`
|
|
4247
|
-
* - `fade-enter`, `fade-enter-active`, `fade-enter-done`
|
|
4248
|
-
* - `fade-exit`, `fade-exit-active`, `fade-exit-done`
|
|
4249
|
-
*
|
|
4250
|
-
* A few details to note about how these classes are applied:
|
|
4251
|
-
*
|
|
4252
|
-
* 1. They are _joined_ with the ones that are already defined on the child
|
|
4253
|
-
* component, so if you want to add some base styles, you can use
|
|
4254
|
-
* `className` without worrying that it will be overridden.
|
|
4255
|
-
*
|
|
4256
|
-
* 2. If the transition component mounts with `in={false}`, no classes are
|
|
4257
|
-
* applied yet. You might be expecting `*-exit-done`, but if you think
|
|
4258
|
-
* about it, a component cannot finish exiting if it hasn't entered yet.
|
|
4259
|
-
*
|
|
4260
|
-
* 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
|
|
4261
|
-
* allows you to define different behavior for when appearing is done and
|
|
4262
|
-
* when regular entering is done, using selectors like
|
|
4263
|
-
* `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
|
|
4264
|
-
* an epic entrance animation when element first appears in the DOM using
|
|
4265
|
-
* [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
|
|
4266
|
-
* simply use `fade-enter-done` for defining both cases.
|
|
4267
|
-
*
|
|
4268
|
-
* Each individual classNames can also be specified independently like:
|
|
4269
|
-
*
|
|
4270
|
-
* ```js
|
|
4271
|
-
* classNames={{
|
|
4272
|
-
* appear: 'my-appear',
|
|
4273
|
-
* appearActive: 'my-active-appear',
|
|
4274
|
-
* appearDone: 'my-done-appear',
|
|
4275
|
-
* enter: 'my-enter',
|
|
4276
|
-
* enterActive: 'my-active-enter',
|
|
4277
|
-
* enterDone: 'my-done-enter',
|
|
4278
|
-
* exit: 'my-exit',
|
|
4279
|
-
* exitActive: 'my-active-exit',
|
|
4280
|
-
* exitDone: 'my-done-exit',
|
|
4281
|
-
* }}
|
|
4282
|
-
* ```
|
|
4283
|
-
*
|
|
4284
|
-
* If you want to set these classes using CSS Modules:
|
|
4285
|
-
*
|
|
4286
|
-
* ```js
|
|
4287
|
-
* import styles from './styles.css';
|
|
4288
|
-
* ```
|
|
4289
|
-
*
|
|
4290
|
-
* you might want to use camelCase in your CSS file, that way could simply
|
|
4291
|
-
* spread them instead of listing them one by one:
|
|
4292
|
-
*
|
|
4293
|
-
* ```js
|
|
4294
|
-
* classNames={{ ...styles }}
|
|
4295
|
-
* ```
|
|
4296
|
-
*
|
|
4297
|
-
* @type {string | {
|
|
4298
|
-
* appear?: string,
|
|
4299
|
-
* appearActive?: string,
|
|
4300
|
-
* appearDone?: string,
|
|
4301
|
-
* enter?: string,
|
|
4302
|
-
* enterActive?: string,
|
|
4303
|
-
* enterDone?: string,
|
|
4304
|
-
* exit?: string,
|
|
4305
|
-
* exitActive?: string,
|
|
4306
|
-
* exitDone?: string,
|
|
4307
|
-
* }}
|
|
4308
|
-
*/
|
|
4309
|
-
classNames: classNamesShape,
|
|
4310
|
-
/**
|
|
4311
|
-
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
4312
|
-
* applied.
|
|
4313
|
-
*
|
|
4314
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4315
|
-
*
|
|
4316
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
4317
|
-
*/
|
|
4318
|
-
onEnter: PropTypes.func,
|
|
4319
|
-
/**
|
|
4320
|
-
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
4321
|
-
* 'appear-active' class is applied.
|
|
4322
|
-
*
|
|
4323
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4324
|
-
*
|
|
4325
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
4326
|
-
*/
|
|
4327
|
-
onEntering: PropTypes.func,
|
|
4328
|
-
/**
|
|
4329
|
-
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
4330
|
-
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
4331
|
-
*
|
|
4332
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
4333
|
-
*
|
|
4334
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
4335
|
-
*/
|
|
4336
|
-
onEntered: PropTypes.func,
|
|
4337
|
-
/**
|
|
4338
|
-
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
4339
|
-
* applied.
|
|
4340
|
-
*
|
|
4341
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
4342
|
-
*
|
|
4343
|
-
* @type Function(node: HtmlElement)
|
|
4344
|
-
*/
|
|
4345
|
-
onExit: PropTypes.func,
|
|
4346
|
-
/**
|
|
4347
|
-
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
4348
|
-
*
|
|
4349
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
4350
|
-
*
|
|
4351
|
-
* @type Function(node: HtmlElement)
|
|
4352
|
-
*/
|
|
4353
|
-
onExiting: PropTypes.func,
|
|
4354
|
-
/**
|
|
4355
|
-
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
4356
|
-
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
4357
|
-
*
|
|
4358
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
4359
|
-
*
|
|
4360
|
-
* @type Function(node: HtmlElement)
|
|
4361
|
-
*/
|
|
4362
|
-
onExited: PropTypes.func
|
|
4363
|
-
}) : {};
|
|
4364
|
-
const CSSTransition$1 = CSSTransition;
|
|
2481
|
+
CSSTransition.propTypes = {};
|
|
4365
2482
|
const MIN_DISTANCE = 10;
|
|
4366
2483
|
function getDirection(x, y) {
|
|
4367
2484
|
if (x > y && x > MIN_DISTANCE) {
|
|
@@ -4505,8 +2622,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
4505
2622
|
event.target,
|
|
4506
2623
|
rootRef.current
|
|
4507
2624
|
);
|
|
4508
|
-
if (!el)
|
|
4509
|
-
return;
|
|
2625
|
+
if (!el) return;
|
|
4510
2626
|
if (shouldLock === "strict") {
|
|
4511
2627
|
const scrollableParent = getScrollableElement(event.target);
|
|
4512
2628
|
if (scrollableParent === document.body || scrollableParent === document.documentElement) {
|
|
@@ -4613,7 +2729,7 @@ const Overlay = (props) => {
|
|
|
4613
2729
|
afterClose && afterClose();
|
|
4614
2730
|
};
|
|
4615
2731
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
4616
|
-
CSSTransition
|
|
2732
|
+
CSSTransition,
|
|
4617
2733
|
{
|
|
4618
2734
|
nodeRef,
|
|
4619
2735
|
classNames: `${classPrefix2}-slide`,
|
|
@@ -5015,11 +3131,9 @@ const Sticky = (props) => {
|
|
|
5015
3131
|
return getScrollParent(rootRef.current);
|
|
5016
3132
|
}, []);
|
|
5017
3133
|
useEffect(() => {
|
|
5018
|
-
if (position === "top")
|
|
5019
|
-
return;
|
|
3134
|
+
if (position === "top") return;
|
|
5020
3135
|
const containerEle = container == null ? void 0 : container.current;
|
|
5021
|
-
if (!rootRef.current && !containerEle)
|
|
5022
|
-
return;
|
|
3136
|
+
if (!rootRef.current && !containerEle) return;
|
|
5023
3137
|
const rootRect = getRect(rootRef.current);
|
|
5024
3138
|
const containerRect = getRect(containerEle);
|
|
5025
3139
|
const clientHeight = document.documentElement.clientHeight;
|
|
@@ -5040,8 +3154,7 @@ const Sticky = (props) => {
|
|
|
5040
3154
|
}, [position, container, threshold]);
|
|
5041
3155
|
const handleScroll = useCallback(() => {
|
|
5042
3156
|
const containerEle = container == null ? void 0 : container.current;
|
|
5043
|
-
if (!rootRef.current && !containerEle)
|
|
5044
|
-
return;
|
|
3157
|
+
if (!rootRef.current && !containerEle) return;
|
|
5045
3158
|
const rootRect = getRect(rootRef.current);
|
|
5046
3159
|
const stCurrent = stickyRef.current;
|
|
5047
3160
|
const stickyRect = getRect(stCurrent);
|
|
@@ -5254,8 +3367,7 @@ function clamp$2(v, min, max) {
|
|
|
5254
3367
|
}
|
|
5255
3368
|
const V = {
|
|
5256
3369
|
toVector(v, fallback) {
|
|
5257
|
-
if (v === void 0)
|
|
5258
|
-
v = fallback;
|
|
3370
|
+
if (v === void 0) v = fallback;
|
|
5259
3371
|
return Array.isArray(v) ? v : [v, v];
|
|
5260
3372
|
},
|
|
5261
3373
|
add(v1, v2) {
|
|
@@ -5274,17 +3386,13 @@ const V = {
|
|
|
5274
3386
|
}
|
|
5275
3387
|
};
|
|
5276
3388
|
function rubberband$1(distance, dimension, constant) {
|
|
5277
|
-
if (dimension === 0 || Math.abs(dimension) === Infinity)
|
|
5278
|
-
return Math.pow(distance, constant * 5);
|
|
3389
|
+
if (dimension === 0 || Math.abs(dimension) === Infinity) return Math.pow(distance, constant * 5);
|
|
5279
3390
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
5280
3391
|
}
|
|
5281
3392
|
function rubberbandIfOutOfBounds$1(position, min, max, constant = 0.15) {
|
|
5282
|
-
if (constant === 0)
|
|
5283
|
-
|
|
5284
|
-
if (position
|
|
5285
|
-
return -rubberband$1(min - position, max - min, constant) + min;
|
|
5286
|
-
if (position > max)
|
|
5287
|
-
return +rubberband$1(position - max, max - min, constant) + max;
|
|
3393
|
+
if (constant === 0) return clamp$2(position, min, max);
|
|
3394
|
+
if (position < min) return -rubberband$1(min - position, max - min, constant) + min;
|
|
3395
|
+
if (position > max) return +rubberband$1(position - max, max - min, constant) + max;
|
|
5288
3396
|
return position;
|
|
5289
3397
|
}
|
|
5290
3398
|
function computeRubberband(bounds, [Vx, Vy], [Rx, Ry]) {
|
|
@@ -5348,8 +3456,7 @@ const EVENT_TYPE_MAP = {
|
|
|
5348
3456
|
}
|
|
5349
3457
|
};
|
|
5350
3458
|
function capitalize(string3) {
|
|
5351
|
-
if (!string3)
|
|
5352
|
-
return "";
|
|
3459
|
+
if (!string3) return "";
|
|
5353
3460
|
return string3[0].toUpperCase() + string3.slice(1);
|
|
5354
3461
|
}
|
|
5355
3462
|
const actionsWithoutCaptureSupported = ["enter", "leave"];
|
|
@@ -5365,12 +3472,10 @@ const pointerCaptureEvents = ["gotpointercapture", "lostpointercapture"];
|
|
|
5365
3472
|
function parseProp(prop) {
|
|
5366
3473
|
let eventKey = prop.substring(2).toLowerCase();
|
|
5367
3474
|
const passive = !!~eventKey.indexOf("passive");
|
|
5368
|
-
if (passive)
|
|
5369
|
-
eventKey = eventKey.replace("passive", "");
|
|
3475
|
+
if (passive) eventKey = eventKey.replace("passive", "");
|
|
5370
3476
|
const captureKey = pointerCaptureEvents.includes(eventKey) ? "capturecapture" : "capture";
|
|
5371
3477
|
const capture = !!~eventKey.indexOf(captureKey);
|
|
5372
|
-
if (capture)
|
|
5373
|
-
eventKey = eventKey.replace("capture", "");
|
|
3478
|
+
if (capture) eventKey = eventKey.replace("capture", "");
|
|
5374
3479
|
return {
|
|
5375
3480
|
device: eventKey,
|
|
5376
3481
|
capture,
|
|
@@ -5386,10 +3491,8 @@ function isTouch(event) {
|
|
|
5386
3491
|
return "touches" in event;
|
|
5387
3492
|
}
|
|
5388
3493
|
function getPointerType(event) {
|
|
5389
|
-
if (isTouch(event))
|
|
5390
|
-
|
|
5391
|
-
if ("pointerType" in event)
|
|
5392
|
-
return event.pointerType;
|
|
3494
|
+
if (isTouch(event)) return "touch";
|
|
3495
|
+
if ("pointerType" in event) return event.pointerType;
|
|
5393
3496
|
return "mouse";
|
|
5394
3497
|
}
|
|
5395
3498
|
function getCurrentTargetTouchList(event) {
|
|
@@ -5462,8 +3565,7 @@ function scrollValues(event) {
|
|
|
5462
3565
|
}
|
|
5463
3566
|
function getEventDetails(event) {
|
|
5464
3567
|
const payload = {};
|
|
5465
|
-
if ("buttons" in event)
|
|
5466
|
-
payload.buttons = event.buttons;
|
|
3568
|
+
if ("buttons" in event) payload.buttons = event.buttons;
|
|
5467
3569
|
if ("shiftKey" in event) {
|
|
5468
3570
|
const {
|
|
5469
3571
|
shiftKey,
|
|
@@ -5490,10 +3592,8 @@ function call$1(v, ...args) {
|
|
|
5490
3592
|
function noop$1() {
|
|
5491
3593
|
}
|
|
5492
3594
|
function chain(...fns) {
|
|
5493
|
-
if (fns.length === 0)
|
|
5494
|
-
|
|
5495
|
-
if (fns.length === 1)
|
|
5496
|
-
return fns[0];
|
|
3595
|
+
if (fns.length === 0) return noop$1;
|
|
3596
|
+
if (fns.length === 1) return fns[0];
|
|
5497
3597
|
return function() {
|
|
5498
3598
|
let result;
|
|
5499
3599
|
for (const fn of fns) {
|
|
@@ -5515,8 +3615,7 @@ class Engine {
|
|
|
5515
3615
|
this.state = {};
|
|
5516
3616
|
this.computeValues([0, 0]);
|
|
5517
3617
|
this.computeInitial();
|
|
5518
|
-
if (this.init)
|
|
5519
|
-
this.init();
|
|
3618
|
+
if (this.init) this.init();
|
|
5520
3619
|
this.reset();
|
|
5521
3620
|
}
|
|
5522
3621
|
}
|
|
@@ -5606,8 +3705,7 @@ class Engine {
|
|
|
5606
3705
|
let dt = 0;
|
|
5607
3706
|
if (event) {
|
|
5608
3707
|
state.event = event;
|
|
5609
|
-
if (config2.preventDefault && event.cancelable)
|
|
5610
|
-
state.event.preventDefault();
|
|
3708
|
+
if (config2.preventDefault && event.cancelable) state.event.preventDefault();
|
|
5611
3709
|
state.type = event.type;
|
|
5612
3710
|
shared.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size;
|
|
5613
3711
|
shared.locked = !!document.pointerLockElement;
|
|
@@ -5621,8 +3719,7 @@ class Engine {
|
|
|
5621
3719
|
const _absoluteDelta = state._delta.map(Math.abs);
|
|
5622
3720
|
V.addTo(state._distance, _absoluteDelta);
|
|
5623
3721
|
}
|
|
5624
|
-
if (this.axisIntent)
|
|
5625
|
-
this.axisIntent(event);
|
|
3722
|
+
if (this.axisIntent) this.axisIntent(event);
|
|
5626
3723
|
const [_m0, _m1] = state._movement;
|
|
5627
3724
|
const [t0, t1] = config2.threshold;
|
|
5628
3725
|
const {
|
|
@@ -5630,19 +3727,14 @@ class Engine {
|
|
|
5630
3727
|
values
|
|
5631
3728
|
} = state;
|
|
5632
3729
|
if (config2.hasCustomTransform) {
|
|
5633
|
-
if (_step[0] === false)
|
|
5634
|
-
|
|
5635
|
-
if (_step[1] === false)
|
|
5636
|
-
_step[1] = Math.abs(_m1) >= t1 && values[1];
|
|
3730
|
+
if (_step[0] === false) _step[0] = Math.abs(_m0) >= t0 && values[0];
|
|
3731
|
+
if (_step[1] === false) _step[1] = Math.abs(_m1) >= t1 && values[1];
|
|
5637
3732
|
} else {
|
|
5638
|
-
if (_step[0] === false)
|
|
5639
|
-
|
|
5640
|
-
if (_step[1] === false)
|
|
5641
|
-
_step[1] = Math.abs(_m1) >= t1 && Math.sign(_m1) * t1;
|
|
3733
|
+
if (_step[0] === false) _step[0] = Math.abs(_m0) >= t0 && Math.sign(_m0) * t0;
|
|
3734
|
+
if (_step[1] === false) _step[1] = Math.abs(_m1) >= t1 && Math.sign(_m1) * t1;
|
|
5642
3735
|
}
|
|
5643
3736
|
state.intentional = _step[0] !== false || _step[1] !== false;
|
|
5644
|
-
if (!state.intentional)
|
|
5645
|
-
return;
|
|
3737
|
+
if (!state.intentional) return;
|
|
5646
3738
|
const movement = [0, 0];
|
|
5647
3739
|
if (config2.hasCustomTransform) {
|
|
5648
3740
|
const [v0, v1] = values;
|
|
@@ -5652,8 +3744,7 @@ class Engine {
|
|
|
5652
3744
|
movement[0] = _step[0] !== false ? _m0 - _step[0] : 0;
|
|
5653
3745
|
movement[1] = _step[1] !== false ? _m1 - _step[1] : 0;
|
|
5654
3746
|
}
|
|
5655
|
-
if (this.restrictToAxis && !state._blocked)
|
|
5656
|
-
this.restrictToAxis(movement);
|
|
3747
|
+
if (this.restrictToAxis && !state._blocked) this.restrictToAxis(movement);
|
|
5657
3748
|
const previousOffset = state.offset;
|
|
5658
3749
|
const gestureIsActive = state._active && !state._blocked || state.active;
|
|
5659
3750
|
if (gestureIsActive) {
|
|
@@ -5662,10 +3753,8 @@ class Engine {
|
|
|
5662
3753
|
state.active = shared[this.ingKey] = state._active;
|
|
5663
3754
|
if (event) {
|
|
5664
3755
|
if (state.first) {
|
|
5665
|
-
if ("bounds" in config2)
|
|
5666
|
-
|
|
5667
|
-
if (this.setup)
|
|
5668
|
-
this.setup();
|
|
3756
|
+
if ("bounds" in config2) state._bounds = call$1(config2.bounds, state);
|
|
3757
|
+
if (this.setup) this.setup();
|
|
5669
3758
|
}
|
|
5670
3759
|
state.movement = movement;
|
|
5671
3760
|
this.computeOffset();
|
|
@@ -5695,15 +3784,12 @@ class Engine {
|
|
|
5695
3784
|
const state = this.state;
|
|
5696
3785
|
const shared = this.shared;
|
|
5697
3786
|
const config2 = this.config;
|
|
5698
|
-
if (!state._active)
|
|
5699
|
-
|
|
5700
|
-
if ((state._blocked || !state.intentional) && !state._force && !config2.triggerAllEvents)
|
|
5701
|
-
return;
|
|
3787
|
+
if (!state._active) this.clean();
|
|
3788
|
+
if ((state._blocked || !state.intentional) && !state._force && !config2.triggerAllEvents) return;
|
|
5702
3789
|
const memo = this.handler(_objectSpread2(_objectSpread2(_objectSpread2({}, shared), state), {}, {
|
|
5703
3790
|
[this.aliasKey]: state.values
|
|
5704
3791
|
}));
|
|
5705
|
-
if (memo !== void 0)
|
|
5706
|
-
state.memo = memo;
|
|
3792
|
+
if (memo !== void 0) state.memo = memo;
|
|
5707
3793
|
}
|
|
5708
3794
|
clean() {
|
|
5709
3795
|
this.eventStore.clean();
|
|
@@ -5788,60 +3874,25 @@ const commonConfigResolver = {
|
|
|
5788
3874
|
}
|
|
5789
3875
|
},
|
|
5790
3876
|
from(value) {
|
|
5791
|
-
if (typeof value === "function")
|
|
5792
|
-
|
|
5793
|
-
if (value != null)
|
|
5794
|
-
return V.toVector(value);
|
|
3877
|
+
if (typeof value === "function") return value;
|
|
3878
|
+
if (value != null) return V.toVector(value);
|
|
5795
3879
|
},
|
|
5796
3880
|
transform(value, _k, config2) {
|
|
5797
3881
|
const transform = value || config2.shared.transform;
|
|
5798
3882
|
this.hasCustomTransform = !!transform;
|
|
5799
|
-
if (process.env.NODE_ENV === "development") {
|
|
5800
|
-
const originalTransform = transform || identity;
|
|
5801
|
-
return (v) => {
|
|
5802
|
-
const r = originalTransform(v);
|
|
5803
|
-
if (!isFinite(r[0]) || !isFinite(r[1])) {
|
|
5804
|
-
console.warn(`[@use-gesture]: config.transform() must produce a valid result, but it was: [${r[0]},${[1]}]`);
|
|
5805
|
-
}
|
|
5806
|
-
return r;
|
|
5807
|
-
};
|
|
5808
|
-
}
|
|
5809
3883
|
return transform || identity;
|
|
5810
3884
|
},
|
|
5811
3885
|
threshold(value) {
|
|
5812
3886
|
return V.toVector(value, 0);
|
|
5813
3887
|
}
|
|
5814
3888
|
};
|
|
5815
|
-
if (process.env.NODE_ENV === "development") {
|
|
5816
|
-
Object.assign(commonConfigResolver, {
|
|
5817
|
-
domTarget(value) {
|
|
5818
|
-
if (value !== void 0) {
|
|
5819
|
-
throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`);
|
|
5820
|
-
}
|
|
5821
|
-
return NaN;
|
|
5822
|
-
},
|
|
5823
|
-
lockDirection(value) {
|
|
5824
|
-
if (value !== void 0) {
|
|
5825
|
-
throw Error(`[@use-gesture]: \`lockDirection\` option has been merged with \`axis\`. Use it as in \`{ axis: 'lock' }\``);
|
|
5826
|
-
}
|
|
5827
|
-
return NaN;
|
|
5828
|
-
},
|
|
5829
|
-
initial(value) {
|
|
5830
|
-
if (value !== void 0) {
|
|
5831
|
-
throw Error(`[@use-gesture]: \`initial\` option has been renamed to \`from\`.`);
|
|
5832
|
-
}
|
|
5833
|
-
return NaN;
|
|
5834
|
-
}
|
|
5835
|
-
});
|
|
5836
|
-
}
|
|
5837
3889
|
const DEFAULT_AXIS_THRESHOLD = 0;
|
|
5838
3890
|
const coordinatesConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
|
|
5839
3891
|
axis(_v, _k, {
|
|
5840
3892
|
axis
|
|
5841
3893
|
}) {
|
|
5842
3894
|
this.lockDirection = axis === "lock";
|
|
5843
|
-
if (!this.lockDirection)
|
|
5844
|
-
return axis;
|
|
3895
|
+
if (!this.lockDirection) return axis;
|
|
5845
3896
|
},
|
|
5846
3897
|
axisThreshold(value = DEFAULT_AXIS_THRESHOLD) {
|
|
5847
3898
|
return value;
|
|
@@ -5906,8 +3957,7 @@ class DragEngine extends CoordinatesEngine {
|
|
|
5906
3957
|
}
|
|
5907
3958
|
cancel() {
|
|
5908
3959
|
const state = this.state;
|
|
5909
|
-
if (state.canceled)
|
|
5910
|
-
return;
|
|
3960
|
+
if (state.canceled) return;
|
|
5911
3961
|
state.canceled = true;
|
|
5912
3962
|
state._active = false;
|
|
5913
3963
|
setTimeout(() => {
|
|
@@ -5927,14 +3977,12 @@ class DragEngine extends CoordinatesEngine {
|
|
|
5927
3977
|
pointerDown(event) {
|
|
5928
3978
|
const config2 = this.config;
|
|
5929
3979
|
const state = this.state;
|
|
5930
|
-
if (event.buttons != null && (Array.isArray(config2.pointerButtons) ? !config2.pointerButtons.includes(event.buttons) : config2.pointerButtons !== -1 && config2.pointerButtons !== event.buttons))
|
|
5931
|
-
return;
|
|
3980
|
+
if (event.buttons != null && (Array.isArray(config2.pointerButtons) ? !config2.pointerButtons.includes(event.buttons) : config2.pointerButtons !== -1 && config2.pointerButtons !== event.buttons)) return;
|
|
5932
3981
|
const ctrlIds = this.ctrl.setEventIds(event);
|
|
5933
3982
|
if (config2.pointerCapture) {
|
|
5934
3983
|
event.target.setPointerCapture(event.pointerId);
|
|
5935
3984
|
}
|
|
5936
|
-
if (ctrlIds && ctrlIds.size > 1 && state._pointerActive)
|
|
5937
|
-
return;
|
|
3985
|
+
if (ctrlIds && ctrlIds.size > 1 && state._pointerActive) return;
|
|
5938
3986
|
this.start(event);
|
|
5939
3987
|
this.setupPointer(event);
|
|
5940
3988
|
state._pointerId = pointerId(event);
|
|
@@ -5965,13 +4013,10 @@ class DragEngine extends CoordinatesEngine {
|
|
|
5965
4013
|
pointerMove(event) {
|
|
5966
4014
|
const state = this.state;
|
|
5967
4015
|
const config2 = this.config;
|
|
5968
|
-
if (!state._pointerActive)
|
|
5969
|
-
|
|
5970
|
-
if (state.type === event.type && event.timeStamp === state.timeStamp)
|
|
5971
|
-
return;
|
|
4016
|
+
if (!state._pointerActive) return;
|
|
4017
|
+
if (state.type === event.type && event.timeStamp === state.timeStamp) return;
|
|
5972
4018
|
const id = pointerId(event);
|
|
5973
|
-
if (state._pointerId !== void 0 && id !== state._pointerId)
|
|
5974
|
-
return;
|
|
4019
|
+
if (state._pointerId !== void 0 && id !== state._pointerId) return;
|
|
5975
4020
|
const _values = pointerValues(event);
|
|
5976
4021
|
if (document.pointerLockElement === event.target) {
|
|
5977
4022
|
state._delta = [event.movementX, event.movementY];
|
|
@@ -6012,19 +4057,12 @@ class DragEngine extends CoordinatesEngine {
|
|
|
6012
4057
|
event.target.releasePointerCapture(event.pointerId);
|
|
6013
4058
|
}
|
|
6014
4059
|
} catch (_unused) {
|
|
6015
|
-
if (process.env.NODE_ENV === "development") {
|
|
6016
|
-
console.warn(`[@use-gesture]: If you see this message, it's likely that you're using an outdated version of \`@react-three/fiber\`.
|
|
6017
|
-
|
|
6018
|
-
Please upgrade to the latest version.`);
|
|
6019
|
-
}
|
|
6020
4060
|
}
|
|
6021
4061
|
const state = this.state;
|
|
6022
4062
|
const config2 = this.config;
|
|
6023
|
-
if (!state._active || !state._pointerActive)
|
|
6024
|
-
return;
|
|
4063
|
+
if (!state._active || !state._pointerActive) return;
|
|
6025
4064
|
const id = pointerId(event);
|
|
6026
|
-
if (state._pointerId !== void 0 && id !== state._pointerId)
|
|
6027
|
-
return;
|
|
4065
|
+
if (state._pointerId !== void 0 && id !== state._pointerId) return;
|
|
6028
4066
|
this.state._pointerActive = false;
|
|
6029
4067
|
this.setActive();
|
|
6030
4068
|
this.compute(event);
|
|
@@ -6040,10 +4078,8 @@ Please upgrade to the latest version.`);
|
|
|
6040
4078
|
const [sx, sy] = config2.swipe.distance;
|
|
6041
4079
|
const sdt = config2.swipe.duration;
|
|
6042
4080
|
if (state.elapsedTime < sdt) {
|
|
6043
|
-
if (Math.abs(vx) > svx && Math.abs(mx) > sx)
|
|
6044
|
-
|
|
6045
|
-
if (Math.abs(vy) > svy && Math.abs(my) > sy)
|
|
6046
|
-
state.swipe[1] = diry;
|
|
4081
|
+
if (Math.abs(vx) > svx && Math.abs(mx) > sx) state.swipe[0] = dirx;
|
|
4082
|
+
if (Math.abs(vy) > svy && Math.abs(my) > sy) state.swipe[1] = diry;
|
|
6047
4083
|
}
|
|
6048
4084
|
}
|
|
6049
4085
|
this.emit();
|
|
@@ -6057,20 +4093,6 @@ Please upgrade to the latest version.`);
|
|
|
6057
4093
|
setupPointer(event) {
|
|
6058
4094
|
const config2 = this.config;
|
|
6059
4095
|
const device = config2.device;
|
|
6060
|
-
if (process.env.NODE_ENV === "development") {
|
|
6061
|
-
try {
|
|
6062
|
-
if (device === "pointer" && config2.preventScrollDelay === void 0) {
|
|
6063
|
-
const currentTarget = "uv" in event ? event.sourceEvent.currentTarget : event.currentTarget;
|
|
6064
|
-
const style = window.getComputedStyle(currentTarget);
|
|
6065
|
-
if (style.touchAction === "auto") {
|
|
6066
|
-
console.warn(`[@use-gesture]: The drag target has its \`touch-action\` style property set to \`auto\`. It is recommended to add \`touch-action: 'none'\` so that the drag gesture behaves correctly on touch-enabled devices. For more information read this: https://use-gesture.netlify.app/docs/extras/#touch-action.
|
|
6067
|
-
|
|
6068
|
-
This message will only show in development mode. It won't appear in production. If this is intended, you can ignore it.`, currentTarget);
|
|
6069
|
-
}
|
|
6070
|
-
}
|
|
6071
|
-
} catch (_unused2) {
|
|
6072
|
-
}
|
|
6073
|
-
}
|
|
6074
4096
|
if (config2.pointerLock) {
|
|
6075
4097
|
event.currentTarget.requestPointerLock();
|
|
6076
4098
|
}
|
|
@@ -6121,8 +4143,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
6121
4143
|
}
|
|
6122
4144
|
}
|
|
6123
4145
|
keyUp(event) {
|
|
6124
|
-
if (!(event.key in KEYS_DELTA_MAP))
|
|
6125
|
-
return;
|
|
4146
|
+
if (!(event.key in KEYS_DELTA_MAP)) return;
|
|
6126
4147
|
this.state._keyboardActive = false;
|
|
6127
4148
|
this.setActive();
|
|
6128
4149
|
this.compute(event);
|
|
@@ -6199,22 +4220,17 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
|
|
|
6199
4220
|
} = {}
|
|
6200
4221
|
}) {
|
|
6201
4222
|
this.pointerLock = lock && SUPPORT.pointerLock;
|
|
6202
|
-
if (SUPPORT.touch && touch)
|
|
6203
|
-
|
|
6204
|
-
if (
|
|
6205
|
-
|
|
6206
|
-
if (SUPPORT.pointer && !mouse)
|
|
6207
|
-
return "pointer";
|
|
6208
|
-
if (SUPPORT.touch)
|
|
6209
|
-
return "touch";
|
|
4223
|
+
if (SUPPORT.touch && touch) return "touch";
|
|
4224
|
+
if (this.pointerLock) return "mouse";
|
|
4225
|
+
if (SUPPORT.pointer && !mouse) return "pointer";
|
|
4226
|
+
if (SUPPORT.touch) return "touch";
|
|
6210
4227
|
return "mouse";
|
|
6211
4228
|
},
|
|
6212
4229
|
preventScrollAxis(value, _k, {
|
|
6213
4230
|
preventScroll
|
|
6214
4231
|
}) {
|
|
6215
4232
|
this.preventScrollDelay = typeof preventScroll === "number" ? preventScroll : preventScroll || preventScroll === void 0 && value ? DEFAULT_PREVENT_SCROLL_DELAY : void 0;
|
|
6216
|
-
if (!SUPPORT.touchscreen || preventScroll === false)
|
|
6217
|
-
return void 0;
|
|
4233
|
+
if (!SUPPORT.touchscreen || preventScroll === false) return void 0;
|
|
6218
4234
|
return value ? value : preventScroll !== void 0 ? "y" : void 0;
|
|
6219
4235
|
},
|
|
6220
4236
|
pointerCapture(_v, _k, {
|
|
@@ -6261,45 +4277,10 @@ const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigRe
|
|
|
6261
4277
|
}
|
|
6262
4278
|
},
|
|
6263
4279
|
axisThreshold(value) {
|
|
6264
|
-
if (!value)
|
|
6265
|
-
return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
4280
|
+
if (!value) return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
6266
4281
|
return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
6267
4282
|
}
|
|
6268
4283
|
});
|
|
6269
|
-
if (process.env.NODE_ENV === "development") {
|
|
6270
|
-
Object.assign(dragConfigResolver, {
|
|
6271
|
-
useTouch(value) {
|
|
6272
|
-
if (value !== void 0) {
|
|
6273
|
-
throw Error(`[@use-gesture]: \`useTouch\` option has been renamed to \`pointer.touch\`. Use it as in \`{ pointer: { touch: true } }\`.`);
|
|
6274
|
-
}
|
|
6275
|
-
return NaN;
|
|
6276
|
-
},
|
|
6277
|
-
experimental_preventWindowScrollY(value) {
|
|
6278
|
-
if (value !== void 0) {
|
|
6279
|
-
throw Error(`[@use-gesture]: \`experimental_preventWindowScrollY\` option has been renamed to \`preventScroll\`.`);
|
|
6280
|
-
}
|
|
6281
|
-
return NaN;
|
|
6282
|
-
},
|
|
6283
|
-
swipeVelocity(value) {
|
|
6284
|
-
if (value !== void 0) {
|
|
6285
|
-
throw Error(`[@use-gesture]: \`swipeVelocity\` option has been renamed to \`swipe.velocity\`. Use it as in \`{ swipe: { velocity: 0.5 } }\`.`);
|
|
6286
|
-
}
|
|
6287
|
-
return NaN;
|
|
6288
|
-
},
|
|
6289
|
-
swipeDistance(value) {
|
|
6290
|
-
if (value !== void 0) {
|
|
6291
|
-
throw Error(`[@use-gesture]: \`swipeDistance\` option has been renamed to \`swipe.distance\`. Use it as in \`{ swipe: { distance: 50 } }\`.`);
|
|
6292
|
-
}
|
|
6293
|
-
return NaN;
|
|
6294
|
-
},
|
|
6295
|
-
swipeDuration(value) {
|
|
6296
|
-
if (value !== void 0) {
|
|
6297
|
-
throw Error(`[@use-gesture]: \`swipeDuration\` option has been renamed to \`swipe.duration\`. Use it as in \`{ swipe: { duration: 250 } }\`.`);
|
|
6298
|
-
}
|
|
6299
|
-
return NaN;
|
|
6300
|
-
}
|
|
6301
|
-
});
|
|
6302
|
-
}
|
|
6303
4284
|
const SCALE_ANGLE_RATIO_INTENT_DEG = 30;
|
|
6304
4285
|
const PINCH_WHEEL_RATIO = 100;
|
|
6305
4286
|
class PinchEngine extends Engine {
|
|
@@ -6345,24 +4326,19 @@ class PinchEngine extends Engine {
|
|
|
6345
4326
|
const [_m0, _m1] = state._movement;
|
|
6346
4327
|
if (!state.axis) {
|
|
6347
4328
|
const axisMovementDifference = Math.abs(_m0) * SCALE_ANGLE_RATIO_INTENT_DEG - Math.abs(_m1);
|
|
6348
|
-
if (axisMovementDifference < 0)
|
|
6349
|
-
|
|
6350
|
-
else if (axisMovementDifference > 0)
|
|
6351
|
-
state.axis = "scale";
|
|
4329
|
+
if (axisMovementDifference < 0) state.axis = "angle";
|
|
4330
|
+
else if (axisMovementDifference > 0) state.axis = "scale";
|
|
6352
4331
|
}
|
|
6353
4332
|
}
|
|
6354
4333
|
restrictToAxis(v) {
|
|
6355
4334
|
if (this.config.lockDirection) {
|
|
6356
|
-
if (this.state.axis === "scale")
|
|
6357
|
-
|
|
6358
|
-
else if (this.state.axis === "angle")
|
|
6359
|
-
v[0] = 0;
|
|
4335
|
+
if (this.state.axis === "scale") v[1] = 0;
|
|
4336
|
+
else if (this.state.axis === "angle") v[0] = 0;
|
|
6360
4337
|
}
|
|
6361
4338
|
}
|
|
6362
4339
|
cancel() {
|
|
6363
4340
|
const state = this.state;
|
|
6364
|
-
if (state.canceled)
|
|
6365
|
-
return;
|
|
4341
|
+
if (state.canceled) return;
|
|
6366
4342
|
setTimeout(() => {
|
|
6367
4343
|
state.canceled = true;
|
|
6368
4344
|
state._active = false;
|
|
@@ -6375,33 +4351,28 @@ class PinchEngine extends Engine {
|
|
|
6375
4351
|
const state = this.state;
|
|
6376
4352
|
const ctrlTouchIds = this.ctrl.touchIds;
|
|
6377
4353
|
if (state._active) {
|
|
6378
|
-
if (state._touchIds.every((id) => ctrlTouchIds.has(id)))
|
|
6379
|
-
return;
|
|
4354
|
+
if (state._touchIds.every((id) => ctrlTouchIds.has(id))) return;
|
|
6380
4355
|
}
|
|
6381
|
-
if (ctrlTouchIds.size < 2)
|
|
6382
|
-
return;
|
|
4356
|
+
if (ctrlTouchIds.size < 2) return;
|
|
6383
4357
|
this.start(event);
|
|
6384
4358
|
state._touchIds = Array.from(ctrlTouchIds).slice(0, 2);
|
|
6385
4359
|
const payload = touchDistanceAngle(event, state._touchIds);
|
|
6386
4360
|
this.pinchStart(event, payload);
|
|
6387
4361
|
}
|
|
6388
4362
|
pointerStart(event) {
|
|
6389
|
-
if (event.buttons != null && event.buttons % 2 !== 1)
|
|
6390
|
-
return;
|
|
4363
|
+
if (event.buttons != null && event.buttons % 2 !== 1) return;
|
|
6391
4364
|
this.ctrl.setEventIds(event);
|
|
6392
4365
|
event.target.setPointerCapture(event.pointerId);
|
|
6393
4366
|
const state = this.state;
|
|
6394
4367
|
const _pointerEvents = state._pointerEvents;
|
|
6395
4368
|
const ctrlPointerIds = this.ctrl.pointerIds;
|
|
6396
4369
|
if (state._active) {
|
|
6397
|
-
if (Array.from(_pointerEvents.keys()).every((id) => ctrlPointerIds.has(id)))
|
|
6398
|
-
return;
|
|
4370
|
+
if (Array.from(_pointerEvents.keys()).every((id) => ctrlPointerIds.has(id))) return;
|
|
6399
4371
|
}
|
|
6400
4372
|
if (_pointerEvents.size < 2) {
|
|
6401
4373
|
_pointerEvents.set(event.pointerId, event);
|
|
6402
4374
|
}
|
|
6403
|
-
if (state._pointerEvents.size < 2)
|
|
6404
|
-
return;
|
|
4375
|
+
if (state._pointerEvents.size < 2) return;
|
|
6405
4376
|
this.start(event);
|
|
6406
4377
|
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
|
|
6407
4378
|
this.pinchStart(event, payload);
|
|
@@ -6415,8 +4386,7 @@ class PinchEngine extends Engine {
|
|
|
6415
4386
|
this.emit();
|
|
6416
4387
|
}
|
|
6417
4388
|
touchMove(event) {
|
|
6418
|
-
if (!this.state._active)
|
|
6419
|
-
return;
|
|
4389
|
+
if (!this.state._active) return;
|
|
6420
4390
|
const payload = touchDistanceAngle(event, this.state._touchIds);
|
|
6421
4391
|
this.pinchMove(event, payload);
|
|
6422
4392
|
}
|
|
@@ -6425,8 +4395,7 @@ class PinchEngine extends Engine {
|
|
|
6425
4395
|
if (_pointerEvents.has(event.pointerId)) {
|
|
6426
4396
|
_pointerEvents.set(event.pointerId, event);
|
|
6427
4397
|
}
|
|
6428
|
-
if (!this.state._active)
|
|
6429
|
-
return;
|
|
4398
|
+
if (!this.state._active) return;
|
|
6430
4399
|
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
|
|
6431
4400
|
this.pinchMove(event, payload);
|
|
6432
4401
|
}
|
|
@@ -6435,8 +4404,7 @@ class PinchEngine extends Engine {
|
|
|
6435
4404
|
const prev_a = state._values[1];
|
|
6436
4405
|
const delta_a = payload.angle - prev_a;
|
|
6437
4406
|
let delta_turns = 0;
|
|
6438
|
-
if (Math.abs(delta_a) > 270)
|
|
6439
|
-
delta_turns += Math.sign(delta_a);
|
|
4407
|
+
if (Math.abs(delta_a) > 270) delta_turns += Math.sign(delta_a);
|
|
6440
4408
|
this.computeValues([payload.distance, payload.angle - 360 * delta_turns]);
|
|
6441
4409
|
state.origin = payload.origin;
|
|
6442
4410
|
state.turns = delta_turns;
|
|
@@ -6446,8 +4414,7 @@ class PinchEngine extends Engine {
|
|
|
6446
4414
|
}
|
|
6447
4415
|
touchEnd(event) {
|
|
6448
4416
|
this.ctrl.setEventIds(event);
|
|
6449
|
-
if (!this.state._active)
|
|
6450
|
-
return;
|
|
4417
|
+
if (!this.state._active) return;
|
|
6451
4418
|
if (this.state._touchIds.some((id) => !this.ctrl.touchIds.has(id))) {
|
|
6452
4419
|
this.state._active = false;
|
|
6453
4420
|
this.compute(event);
|
|
@@ -6464,8 +4431,7 @@ class PinchEngine extends Engine {
|
|
|
6464
4431
|
if (state._pointerEvents.has(event.pointerId)) {
|
|
6465
4432
|
state._pointerEvents.delete(event.pointerId);
|
|
6466
4433
|
}
|
|
6467
|
-
if (!state._active)
|
|
6468
|
-
return;
|
|
4434
|
+
if (!state._active) return;
|
|
6469
4435
|
if (state._pointerEvents.size < 2) {
|
|
6470
4436
|
state._active = false;
|
|
6471
4437
|
this.compute(event);
|
|
@@ -6473,11 +4439,9 @@ class PinchEngine extends Engine {
|
|
|
6473
4439
|
}
|
|
6474
4440
|
}
|
|
6475
4441
|
gestureStart(event) {
|
|
6476
|
-
if (event.cancelable)
|
|
6477
|
-
event.preventDefault();
|
|
4442
|
+
if (event.cancelable) event.preventDefault();
|
|
6478
4443
|
const state = this.state;
|
|
6479
|
-
if (state._active)
|
|
6480
|
-
return;
|
|
4444
|
+
if (state._active) return;
|
|
6481
4445
|
this.start(event);
|
|
6482
4446
|
this.computeValues([event.scale, event.rotation]);
|
|
6483
4447
|
state.origin = [event.clientX, event.clientY];
|
|
@@ -6485,10 +4449,8 @@ class PinchEngine extends Engine {
|
|
|
6485
4449
|
this.emit();
|
|
6486
4450
|
}
|
|
6487
4451
|
gestureMove(event) {
|
|
6488
|
-
if (event.cancelable)
|
|
6489
|
-
|
|
6490
|
-
if (!this.state._active)
|
|
6491
|
-
return;
|
|
4452
|
+
if (event.cancelable) event.preventDefault();
|
|
4453
|
+
if (!this.state._active) return;
|
|
6492
4454
|
const state = this.state;
|
|
6493
4455
|
this.computeValues([event.scale, event.rotation]);
|
|
6494
4456
|
state.origin = [event.clientX, event.clientY];
|
|
@@ -6499,20 +4461,16 @@ class PinchEngine extends Engine {
|
|
|
6499
4461
|
this.emit();
|
|
6500
4462
|
}
|
|
6501
4463
|
gestureEnd(event) {
|
|
6502
|
-
if (!this.state._active)
|
|
6503
|
-
return;
|
|
4464
|
+
if (!this.state._active) return;
|
|
6504
4465
|
this.state._active = false;
|
|
6505
4466
|
this.compute(event);
|
|
6506
4467
|
this.emit();
|
|
6507
4468
|
}
|
|
6508
4469
|
wheel(event) {
|
|
6509
4470
|
const modifierKey = this.config.modifierKey;
|
|
6510
|
-
if (modifierKey && !event[modifierKey])
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
this.wheelStart(event);
|
|
6514
|
-
else
|
|
6515
|
-
this.wheelChange(event);
|
|
4471
|
+
if (modifierKey && !event[modifierKey]) return;
|
|
4472
|
+
if (!this.state._active) this.wheelStart(event);
|
|
4473
|
+
else this.wheelChange(event);
|
|
6516
4474
|
this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this));
|
|
6517
4475
|
}
|
|
6518
4476
|
wheelStart(event) {
|
|
@@ -6525,11 +4483,6 @@ class PinchEngine extends Engine {
|
|
|
6525
4483
|
if (event.cancelable) {
|
|
6526
4484
|
event.preventDefault();
|
|
6527
4485
|
}
|
|
6528
|
-
if (process.env.NODE_ENV === "development" && !event.defaultPrevented) {
|
|
6529
|
-
console.warn(`[@use-gesture]: To properly support zoom on trackpads, try using the \`target\` option.
|
|
6530
|
-
|
|
6531
|
-
This message will only appear in development mode.`);
|
|
6532
|
-
}
|
|
6533
4486
|
}
|
|
6534
4487
|
const state = this.state;
|
|
6535
4488
|
state._delta = [-wheelValues(event)[1] / PINCH_WHEEL_RATIO * state.offset[0], 0];
|
|
@@ -6539,8 +4492,7 @@ This message will only appear in development mode.`);
|
|
|
6539
4492
|
this.emit();
|
|
6540
4493
|
}
|
|
6541
4494
|
wheelEnd() {
|
|
6542
|
-
if (!this.state._active)
|
|
6543
|
-
return;
|
|
4495
|
+
if (!this.state._active) return;
|
|
6544
4496
|
this.state._active = false;
|
|
6545
4497
|
this.compute();
|
|
6546
4498
|
this.emit();
|
|
@@ -6566,15 +4518,11 @@ const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolv
|
|
|
6566
4518
|
} = {}
|
|
6567
4519
|
}) {
|
|
6568
4520
|
const sharedConfig = shared;
|
|
6569
|
-
if (sharedConfig.target && !SUPPORT.touch && SUPPORT.gesture)
|
|
6570
|
-
|
|
6571
|
-
if (SUPPORT.touch && touch)
|
|
6572
|
-
return "touch";
|
|
4521
|
+
if (sharedConfig.target && !SUPPORT.touch && SUPPORT.gesture) return "gesture";
|
|
4522
|
+
if (SUPPORT.touch && touch) return "touch";
|
|
6573
4523
|
if (SUPPORT.touchscreen) {
|
|
6574
|
-
if (SUPPORT.pointer)
|
|
6575
|
-
|
|
6576
|
-
if (SUPPORT.touch)
|
|
6577
|
-
return "touch";
|
|
4524
|
+
if (SUPPORT.pointer) return "pointer";
|
|
4525
|
+
if (SUPPORT.touch) return "touch";
|
|
6578
4526
|
}
|
|
6579
4527
|
},
|
|
6580
4528
|
bounds(_v, _k, {
|
|
@@ -6595,8 +4543,7 @@ const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolv
|
|
|
6595
4543
|
});
|
|
6596
4544
|
return [A.min, A.max];
|
|
6597
4545
|
};
|
|
6598
|
-
if (typeof scaleBounds !== "function" && typeof angleBounds !== "function")
|
|
6599
|
-
return [_scaleBounds(), _angleBounds()];
|
|
4546
|
+
if (typeof scaleBounds !== "function" && typeof angleBounds !== "function") return [_scaleBounds(), _angleBounds()];
|
|
6600
4547
|
return (state) => [_scaleBounds(state), _angleBounds(state)];
|
|
6601
4548
|
},
|
|
6602
4549
|
threshold(value, _k, config2) {
|
|
@@ -6605,8 +4552,7 @@ const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolv
|
|
|
6605
4552
|
return threshold;
|
|
6606
4553
|
},
|
|
6607
4554
|
modifierKey(value) {
|
|
6608
|
-
if (value === void 0)
|
|
6609
|
-
return "ctrlKey";
|
|
4555
|
+
if (value === void 0) return "ctrlKey";
|
|
6610
4556
|
return value;
|
|
6611
4557
|
}
|
|
6612
4558
|
});
|
|
@@ -6616,12 +4562,9 @@ class MoveEngine extends CoordinatesEngine {
|
|
|
6616
4562
|
_defineProperty(this, "ingKey", "moving");
|
|
6617
4563
|
}
|
|
6618
4564
|
move(event) {
|
|
6619
|
-
if (this.config.mouseOnly && event.pointerType !== "mouse")
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
this.moveStart(event);
|
|
6623
|
-
else
|
|
6624
|
-
this.moveChange(event);
|
|
4565
|
+
if (this.config.mouseOnly && event.pointerType !== "mouse") return;
|
|
4566
|
+
if (!this.state._active) this.moveStart(event);
|
|
4567
|
+
else this.moveChange(event);
|
|
6625
4568
|
this.timeoutStore.add("moveEnd", this.moveEnd.bind(this));
|
|
6626
4569
|
}
|
|
6627
4570
|
moveStart(event) {
|
|
@@ -6632,8 +4575,7 @@ class MoveEngine extends CoordinatesEngine {
|
|
|
6632
4575
|
this.emit();
|
|
6633
4576
|
}
|
|
6634
4577
|
moveChange(event) {
|
|
6635
|
-
if (!this.state._active)
|
|
6636
|
-
return;
|
|
4578
|
+
if (!this.state._active) return;
|
|
6637
4579
|
const values = pointerValues(event);
|
|
6638
4580
|
const state = this.state;
|
|
6639
4581
|
state._delta = V.sub(values, state._values);
|
|
@@ -6643,8 +4585,7 @@ class MoveEngine extends CoordinatesEngine {
|
|
|
6643
4585
|
this.emit();
|
|
6644
4586
|
}
|
|
6645
4587
|
moveEnd(event) {
|
|
6646
|
-
if (!this.state._active)
|
|
6647
|
-
return;
|
|
4588
|
+
if (!this.state._active) return;
|
|
6648
4589
|
this.state._active = false;
|
|
6649
4590
|
this.compute(event);
|
|
6650
4591
|
this.emit();
|
|
@@ -6663,14 +4604,12 @@ class ScrollEngine extends CoordinatesEngine {
|
|
|
6663
4604
|
_defineProperty(this, "ingKey", "scrolling");
|
|
6664
4605
|
}
|
|
6665
4606
|
scroll(event) {
|
|
6666
|
-
if (!this.state._active)
|
|
6667
|
-
this.start(event);
|
|
4607
|
+
if (!this.state._active) this.start(event);
|
|
6668
4608
|
this.scrollChange(event);
|
|
6669
4609
|
this.timeoutStore.add("scrollEnd", this.scrollEnd.bind(this));
|
|
6670
4610
|
}
|
|
6671
4611
|
scrollChange(event) {
|
|
6672
|
-
if (event.cancelable)
|
|
6673
|
-
event.preventDefault();
|
|
4612
|
+
if (event.cancelable) event.preventDefault();
|
|
6674
4613
|
const state = this.state;
|
|
6675
4614
|
const values = scrollValues(event);
|
|
6676
4615
|
state._delta = V.sub(values, state._values);
|
|
@@ -6680,8 +4619,7 @@ class ScrollEngine extends CoordinatesEngine {
|
|
|
6680
4619
|
this.emit();
|
|
6681
4620
|
}
|
|
6682
4621
|
scrollEnd() {
|
|
6683
|
-
if (!this.state._active)
|
|
6684
|
-
return;
|
|
4622
|
+
if (!this.state._active) return;
|
|
6685
4623
|
this.state._active = false;
|
|
6686
4624
|
this.compute();
|
|
6687
4625
|
this.emit();
|
|
@@ -6697,8 +4635,7 @@ class WheelEngine extends CoordinatesEngine {
|
|
|
6697
4635
|
_defineProperty(this, "ingKey", "wheeling");
|
|
6698
4636
|
}
|
|
6699
4637
|
wheel(event) {
|
|
6700
|
-
if (!this.state._active)
|
|
6701
|
-
this.start(event);
|
|
4638
|
+
if (!this.state._active) this.start(event);
|
|
6702
4639
|
this.wheelChange(event);
|
|
6703
4640
|
this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this));
|
|
6704
4641
|
}
|
|
@@ -6719,8 +4656,7 @@ class WheelEngine extends CoordinatesEngine {
|
|
|
6719
4656
|
this.emit();
|
|
6720
4657
|
}
|
|
6721
4658
|
wheelEnd() {
|
|
6722
|
-
if (!this.state._active)
|
|
6723
|
-
return;
|
|
4659
|
+
if (!this.state._active) return;
|
|
6724
4660
|
this.state._active = false;
|
|
6725
4661
|
this.compute();
|
|
6726
4662
|
this.emit();
|
|
@@ -6736,19 +4672,16 @@ class HoverEngine extends CoordinatesEngine {
|
|
|
6736
4672
|
_defineProperty(this, "ingKey", "hovering");
|
|
6737
4673
|
}
|
|
6738
4674
|
enter(event) {
|
|
6739
|
-
if (this.config.mouseOnly && event.pointerType !== "mouse")
|
|
6740
|
-
return;
|
|
4675
|
+
if (this.config.mouseOnly && event.pointerType !== "mouse") return;
|
|
6741
4676
|
this.start(event);
|
|
6742
4677
|
this.computeValues(pointerValues(event));
|
|
6743
4678
|
this.compute(event);
|
|
6744
4679
|
this.emit();
|
|
6745
4680
|
}
|
|
6746
4681
|
leave(event) {
|
|
6747
|
-
if (this.config.mouseOnly && event.pointerType !== "mouse")
|
|
6748
|
-
return;
|
|
4682
|
+
if (this.config.mouseOnly && event.pointerType !== "mouse") return;
|
|
6749
4683
|
const state = this.state;
|
|
6750
|
-
if (!state._active)
|
|
6751
|
-
return;
|
|
4684
|
+
if (!state._active) return;
|
|
6752
4685
|
state._active = false;
|
|
6753
4686
|
const values = pointerValues(event);
|
|
6754
4687
|
state._movement = state._delta = V.sub(values, state._values);
|
|
@@ -6802,32 +4735,27 @@ const wheelAction = {
|
|
|
6802
4735
|
resolver: wheelConfigResolver
|
|
6803
4736
|
};
|
|
6804
4737
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
6805
|
-
if (source == null)
|
|
6806
|
-
return {};
|
|
4738
|
+
if (source == null) return {};
|
|
6807
4739
|
var target = {};
|
|
6808
4740
|
var sourceKeys = Object.keys(source);
|
|
6809
4741
|
var key, i2;
|
|
6810
4742
|
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
6811
4743
|
key = sourceKeys[i2];
|
|
6812
|
-
if (excluded.indexOf(key) >= 0)
|
|
6813
|
-
continue;
|
|
4744
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
6814
4745
|
target[key] = source[key];
|
|
6815
4746
|
}
|
|
6816
4747
|
return target;
|
|
6817
4748
|
}
|
|
6818
4749
|
function _objectWithoutProperties(source, excluded) {
|
|
6819
|
-
if (source == null)
|
|
6820
|
-
return {};
|
|
4750
|
+
if (source == null) return {};
|
|
6821
4751
|
var target = _objectWithoutPropertiesLoose$2(source, excluded);
|
|
6822
4752
|
var key, i2;
|
|
6823
4753
|
if (Object.getOwnPropertySymbols) {
|
|
6824
4754
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
6825
4755
|
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
|
6826
4756
|
key = sourceSymbolKeys[i2];
|
|
6827
|
-
if (excluded.indexOf(key) >= 0)
|
|
6828
|
-
|
|
6829
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
6830
|
-
continue;
|
|
4757
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
4758
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
6831
4759
|
target[key] = source[key];
|
|
6832
4760
|
}
|
|
6833
4761
|
}
|
|
@@ -6865,11 +4793,7 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
6865
4793
|
for (const [key, resolver] of Object.entries(resolvers)) {
|
|
6866
4794
|
switch (typeof resolver) {
|
|
6867
4795
|
case "function":
|
|
6868
|
-
|
|
6869
|
-
const r = resolver.call(result, config2[key], key, config2);
|
|
6870
|
-
if (!Number.isNaN(r))
|
|
6871
|
-
result[key] = r;
|
|
6872
|
-
} else {
|
|
4796
|
+
{
|
|
6873
4797
|
result[key] = resolver.call(result, config2[key], key, config2);
|
|
6874
4798
|
}
|
|
6875
4799
|
break;
|
|
@@ -6877,8 +4801,7 @@ function resolveWith(config2 = {}, resolvers) {
|
|
|
6877
4801
|
result[key] = resolveWith(config2[key], resolver);
|
|
6878
4802
|
break;
|
|
6879
4803
|
case "boolean":
|
|
6880
|
-
if (resolver)
|
|
6881
|
-
result[key] = config2[key];
|
|
4804
|
+
if (resolver) result[key] = config2[key];
|
|
6882
4805
|
break;
|
|
6883
4806
|
}
|
|
6884
4807
|
}
|
|
@@ -6911,13 +4834,6 @@ function parse(newConfig, gestureKey, _config = {}) {
|
|
|
6911
4834
|
_config[key] = resolveWith(_objectSpread2({
|
|
6912
4835
|
shared: _config.shared
|
|
6913
4836
|
}, rest[key]), resolver);
|
|
6914
|
-
} else if (process.env.NODE_ENV === "development") {
|
|
6915
|
-
if (!["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(key)) {
|
|
6916
|
-
if (key === "domTarget") {
|
|
6917
|
-
throw Error(`[@use-gesture]: \`domTarget\` option has been renamed to \`target\`.`);
|
|
6918
|
-
}
|
|
6919
|
-
console.warn(`[@use-gesture]: Unknown config key \`${key}\` was used. Please read the documentation for further information.`);
|
|
6920
|
-
}
|
|
6921
4837
|
}
|
|
6922
4838
|
}
|
|
6923
4839
|
}
|
|
@@ -6956,12 +4872,11 @@ class TimeoutStore {
|
|
|
6956
4872
|
this._timeouts.set(key, window.setTimeout(callback, ms, ...args));
|
|
6957
4873
|
}
|
|
6958
4874
|
remove(key) {
|
|
6959
|
-
const
|
|
6960
|
-
if (
|
|
6961
|
-
window.clearTimeout(timeout2);
|
|
4875
|
+
const timeout = this._timeouts.get(key);
|
|
4876
|
+
if (timeout) window.clearTimeout(timeout);
|
|
6962
4877
|
}
|
|
6963
4878
|
clean() {
|
|
6964
|
-
this._timeouts.forEach((
|
|
4879
|
+
this._timeouts.forEach((timeout) => void window.clearTimeout(timeout));
|
|
6965
4880
|
this._timeouts.clear();
|
|
6966
4881
|
}
|
|
6967
4882
|
}
|
|
@@ -6990,10 +4905,8 @@ let Controller$1 = class Controller {
|
|
|
6990
4905
|
this.touchIds = new Set(touchIds(event));
|
|
6991
4906
|
return this.touchIds;
|
|
6992
4907
|
} else if ("pointerId" in event) {
|
|
6993
|
-
if (event.type === "pointerup" || event.type === "pointercancel")
|
|
6994
|
-
|
|
6995
|
-
else if (event.type === "pointerdown")
|
|
6996
|
-
this.pointerIds.add(event.pointerId);
|
|
4908
|
+
if (event.type === "pointerup" || event.type === "pointercancel") this.pointerIds.delete(event.pointerId);
|
|
4909
|
+
else if (event.type === "pointerdown") this.pointerIds.add(event.pointerId);
|
|
6997
4910
|
return this.pointerIds;
|
|
6998
4911
|
}
|
|
6999
4912
|
}
|
|
@@ -7012,8 +4925,7 @@ let Controller$1 = class Controller {
|
|
|
7012
4925
|
}
|
|
7013
4926
|
}
|
|
7014
4927
|
effect() {
|
|
7015
|
-
if (this.config.shared.target)
|
|
7016
|
-
this.bind();
|
|
4928
|
+
if (this.config.shared.target) this.bind();
|
|
7017
4929
|
return () => this._targetEventStore.clean();
|
|
7018
4930
|
}
|
|
7019
4931
|
bind(...args) {
|
|
@@ -7022,8 +4934,7 @@ let Controller$1 = class Controller {
|
|
|
7022
4934
|
let target;
|
|
7023
4935
|
if (sharedConfig.target) {
|
|
7024
4936
|
target = sharedConfig.target();
|
|
7025
|
-
if (!target)
|
|
7026
|
-
return;
|
|
4937
|
+
if (!target) return;
|
|
7027
4938
|
}
|
|
7028
4939
|
if (sharedConfig.enabled) {
|
|
7029
4940
|
for (const gestureKey of this.gestures) {
|
|
@@ -7045,8 +4956,7 @@ let Controller$1 = class Controller {
|
|
|
7045
4956
|
for (const handlerProp in props) {
|
|
7046
4957
|
props[handlerProp] = chain(...props[handlerProp]);
|
|
7047
4958
|
}
|
|
7048
|
-
if (!target)
|
|
7049
|
-
return props;
|
|
4959
|
+
if (!target) return props;
|
|
7050
4960
|
for (const handlerProp in props) {
|
|
7051
4961
|
const {
|
|
7052
4962
|
device,
|
|
@@ -7066,26 +4976,19 @@ function setupGesture(ctrl, gestureKey) {
|
|
|
7066
4976
|
ctrl.gestureTimeoutStores[gestureKey] = new TimeoutStore();
|
|
7067
4977
|
}
|
|
7068
4978
|
function resolveGestures(ctrl, internalHandlers) {
|
|
7069
|
-
if (internalHandlers.drag)
|
|
7070
|
-
|
|
7071
|
-
if (internalHandlers.
|
|
7072
|
-
|
|
7073
|
-
if (internalHandlers.
|
|
7074
|
-
|
|
7075
|
-
if (internalHandlers.move)
|
|
7076
|
-
setupGesture(ctrl, "move");
|
|
7077
|
-
if (internalHandlers.pinch)
|
|
7078
|
-
setupGesture(ctrl, "pinch");
|
|
7079
|
-
if (internalHandlers.hover)
|
|
7080
|
-
setupGesture(ctrl, "hover");
|
|
4979
|
+
if (internalHandlers.drag) setupGesture(ctrl, "drag");
|
|
4980
|
+
if (internalHandlers.wheel) setupGesture(ctrl, "wheel");
|
|
4981
|
+
if (internalHandlers.scroll) setupGesture(ctrl, "scroll");
|
|
4982
|
+
if (internalHandlers.move) setupGesture(ctrl, "move");
|
|
4983
|
+
if (internalHandlers.pinch) setupGesture(ctrl, "pinch");
|
|
4984
|
+
if (internalHandlers.hover) setupGesture(ctrl, "hover");
|
|
7081
4985
|
}
|
|
7082
4986
|
const bindToProps = (props, eventOptions, withPassiveOption) => (device, action, handler, options2 = {}, isNative = false) => {
|
|
7083
4987
|
var _options$capture, _options$passive;
|
|
7084
4988
|
const capture = (_options$capture = options2.capture) !== null && _options$capture !== void 0 ? _options$capture : eventOptions.capture;
|
|
7085
4989
|
const passive = (_options$passive = options2.passive) !== null && _options$passive !== void 0 ? _options$passive : eventOptions.passive;
|
|
7086
4990
|
let handlerProp = isNative ? device : toHandlerProp(device, action, capture);
|
|
7087
|
-
if (withPassiveOption && passive)
|
|
7088
|
-
handlerProp += "Passive";
|
|
4991
|
+
if (withPassiveOption && passive) handlerProp += "Passive";
|
|
7089
4992
|
props[handlerProp] = props[handlerProp] || [];
|
|
7090
4993
|
props[handlerProp].push(handler);
|
|
7091
4994
|
};
|
|
@@ -7105,26 +5008,17 @@ function sortHandlers(_handlers) {
|
|
|
7105
5008
|
return [handlers, native, actions];
|
|
7106
5009
|
}
|
|
7107
5010
|
function registerGesture(actions, handlers, handlerKey, key, internalHandlers, config2) {
|
|
7108
|
-
if (!actions.has(handlerKey))
|
|
7109
|
-
return;
|
|
5011
|
+
if (!actions.has(handlerKey)) return;
|
|
7110
5012
|
if (!EngineMap.has(key)) {
|
|
7111
|
-
if (process.env.NODE_ENV === "development") {
|
|
7112
|
-
console.warn(`[@use-gesture]: You've created a custom handler that that uses the \`${key}\` gesture but isn't properly configured.
|
|
7113
|
-
|
|
7114
|
-
Please add \`${key}Action\` when creating your handler.`);
|
|
7115
|
-
}
|
|
7116
5013
|
return;
|
|
7117
5014
|
}
|
|
7118
5015
|
const startKey = handlerKey + "Start";
|
|
7119
5016
|
const endKey = handlerKey + "End";
|
|
7120
5017
|
const fn = (state) => {
|
|
7121
5018
|
let memo = void 0;
|
|
7122
|
-
if (state.first && startKey in handlers)
|
|
7123
|
-
|
|
7124
|
-
if (
|
|
7125
|
-
memo = handlers[handlerKey](state);
|
|
7126
|
-
if (state.last && endKey in handlers)
|
|
7127
|
-
handlers[endKey](state);
|
|
5019
|
+
if (state.first && startKey in handlers) handlers[startKey](state);
|
|
5020
|
+
if (handlerKey in handlers) memo = handlers[handlerKey](state);
|
|
5021
|
+
if (state.last && endKey in handlers) handlers[endKey](state);
|
|
7128
5022
|
return memo;
|
|
7129
5023
|
};
|
|
7130
5024
|
internalHandlers[key] = fn;
|
|
@@ -7177,7 +5071,7 @@ function createUseGesture(actions) {
|
|
|
7177
5071
|
}
|
|
7178
5072
|
function useGesture(handlers, config2) {
|
|
7179
5073
|
const hook = createUseGesture([dragAction, pinchAction, scrollAction, wheelAction, moveAction, hoverAction]);
|
|
7180
|
-
return hook(handlers,
|
|
5074
|
+
return hook(handlers, {});
|
|
7181
5075
|
}
|
|
7182
5076
|
let updateQueue = makeQueue();
|
|
7183
5077
|
const raf = (fn) => schedule(fn, updateQueue);
|
|
@@ -7194,19 +5088,18 @@ raf.setTimeout = (handler, ms) => {
|
|
|
7194
5088
|
let time = raf.now() + ms;
|
|
7195
5089
|
let cancel = () => {
|
|
7196
5090
|
let i2 = timeouts.findIndex((t2) => t2.cancel == cancel);
|
|
7197
|
-
if (~i2)
|
|
7198
|
-
timeouts.splice(i2, 1);
|
|
5091
|
+
if (~i2) timeouts.splice(i2, 1);
|
|
7199
5092
|
pendingCount -= ~i2 ? 1 : 0;
|
|
7200
5093
|
};
|
|
7201
|
-
let
|
|
5094
|
+
let timeout = {
|
|
7202
5095
|
time,
|
|
7203
5096
|
handler,
|
|
7204
5097
|
cancel
|
|
7205
5098
|
};
|
|
7206
|
-
timeouts.splice(findTimeout(time), 0,
|
|
5099
|
+
timeouts.splice(findTimeout(time), 0, timeout);
|
|
7207
5100
|
pendingCount += 1;
|
|
7208
5101
|
start();
|
|
7209
|
-
return
|
|
5102
|
+
return timeout;
|
|
7210
5103
|
};
|
|
7211
5104
|
let findTimeout = (time) => ~(~timeouts.findIndex((t2) => t2.time > time) || ~timeouts.length);
|
|
7212
5105
|
raf.cancel = (fn) => {
|
|
@@ -7351,11 +5244,9 @@ const is = {
|
|
|
7351
5244
|
};
|
|
7352
5245
|
function isEqual(a2, b) {
|
|
7353
5246
|
if (is.arr(a2)) {
|
|
7354
|
-
if (!is.arr(b) || a2.length !== b.length)
|
|
7355
|
-
return false;
|
|
5247
|
+
if (!is.arr(b) || a2.length !== b.length) return false;
|
|
7356
5248
|
for (let i2 = 0; i2 < a2.length; i2++) {
|
|
7357
|
-
if (a2[i2] !== b[i2])
|
|
7358
|
-
return false;
|
|
5249
|
+
if (a2[i2] !== b[i2]) return false;
|
|
7359
5250
|
}
|
|
7360
5251
|
return true;
|
|
7361
5252
|
}
|
|
@@ -7391,24 +5282,15 @@ let colors$1 = null;
|
|
|
7391
5282
|
let skipAnimation = false;
|
|
7392
5283
|
let willAdvance = noop;
|
|
7393
5284
|
const assign = (globals2) => {
|
|
7394
|
-
if (globals2.to)
|
|
7395
|
-
|
|
7396
|
-
if (globals2.
|
|
7397
|
-
|
|
7398
|
-
if (globals2.
|
|
7399
|
-
|
|
7400
|
-
if (globals2.
|
|
7401
|
-
|
|
7402
|
-
if (globals2.
|
|
7403
|
-
createStringInterpolator$1 = globals2.createStringInterpolator;
|
|
7404
|
-
if (globals2.requestAnimationFrame)
|
|
7405
|
-
raf.use(globals2.requestAnimationFrame);
|
|
7406
|
-
if (globals2.batchedUpdates)
|
|
7407
|
-
raf.batchedUpdates = globals2.batchedUpdates;
|
|
7408
|
-
if (globals2.willAdvance)
|
|
7409
|
-
willAdvance = globals2.willAdvance;
|
|
7410
|
-
if (globals2.frameLoop)
|
|
7411
|
-
raf.frameLoop = globals2.frameLoop;
|
|
5285
|
+
if (globals2.to) to = globals2.to;
|
|
5286
|
+
if (globals2.now) raf.now = globals2.now;
|
|
5287
|
+
if (globals2.colors !== void 0) colors$1 = globals2.colors;
|
|
5288
|
+
if (globals2.skipAnimation != null) skipAnimation = globals2.skipAnimation;
|
|
5289
|
+
if (globals2.createStringInterpolator) createStringInterpolator$1 = globals2.createStringInterpolator;
|
|
5290
|
+
if (globals2.requestAnimationFrame) raf.use(globals2.requestAnimationFrame);
|
|
5291
|
+
if (globals2.batchedUpdates) raf.batchedUpdates = globals2.batchedUpdates;
|
|
5292
|
+
if (globals2.willAdvance) willAdvance = globals2.willAdvance;
|
|
5293
|
+
if (globals2.frameLoop) raf.frameLoop = globals2.frameLoop;
|
|
7412
5294
|
};
|
|
7413
5295
|
var globals = /* @__PURE__ */ Object.freeze({
|
|
7414
5296
|
__proto__: null,
|
|
@@ -7469,8 +5351,7 @@ function flushStartQueue() {
|
|
|
7469
5351
|
raf(advance);
|
|
7470
5352
|
}
|
|
7471
5353
|
function startSafely(animation) {
|
|
7472
|
-
if (!currentFrame.includes(animation))
|
|
7473
|
-
startUnsafely(animation);
|
|
5354
|
+
if (!currentFrame.includes(animation)) startUnsafely(animation);
|
|
7474
5355
|
}
|
|
7475
5356
|
function startUnsafely(animation) {
|
|
7476
5357
|
currentFrame.splice(findIndex(currentFrame, (other) => other.priority > animation.priority), 0, animation);
|
|
@@ -7669,8 +5550,7 @@ function normalizeColor(color) {
|
|
|
7669
5550
|
if (typeof color === "number") {
|
|
7670
5551
|
return color >>> 0 === color && color >= 0 && color <= 4294967295 ? color : null;
|
|
7671
5552
|
}
|
|
7672
|
-
if (match = hex6.exec(color))
|
|
7673
|
-
return parseInt(match[1] + "ff", 16) >>> 0;
|
|
5553
|
+
if (match = hex6.exec(color)) return parseInt(match[1] + "ff", 16) >>> 0;
|
|
7674
5554
|
if (colors$1 && colors$1[color] !== void 0) {
|
|
7675
5555
|
return colors$1[color];
|
|
7676
5556
|
}
|
|
@@ -7683,8 +5563,7 @@ function normalizeColor(color) {
|
|
|
7683
5563
|
if (match = hex3.exec(color)) {
|
|
7684
5564
|
return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + "ff", 16) >>> 0;
|
|
7685
5565
|
}
|
|
7686
|
-
if (match = hex8.exec(color))
|
|
7687
|
-
return parseInt(match[1], 16) >>> 0;
|
|
5566
|
+
if (match = hex8.exec(color)) return parseInt(match[1], 16) >>> 0;
|
|
7688
5567
|
if (match = hex4.exec(color)) {
|
|
7689
5568
|
return parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + match[4] + match[4], 16) >>> 0;
|
|
7690
5569
|
}
|
|
@@ -7697,16 +5576,11 @@ function normalizeColor(color) {
|
|
|
7697
5576
|
return null;
|
|
7698
5577
|
}
|
|
7699
5578
|
function hue2rgb(p, q, t2) {
|
|
7700
|
-
if (t2 < 0)
|
|
7701
|
-
|
|
7702
|
-
if (t2
|
|
7703
|
-
|
|
7704
|
-
if (t2 <
|
|
7705
|
-
return p + (q - p) * 6 * t2;
|
|
7706
|
-
if (t2 < 1 / 2)
|
|
7707
|
-
return q;
|
|
7708
|
-
if (t2 < 2 / 3)
|
|
7709
|
-
return p + (q - p) * (2 / 3 - t2) * 6;
|
|
5579
|
+
if (t2 < 0) t2 += 1;
|
|
5580
|
+
if (t2 > 1) t2 -= 1;
|
|
5581
|
+
if (t2 < 1 / 6) return p + (q - p) * 6 * t2;
|
|
5582
|
+
if (t2 < 1 / 2) return q;
|
|
5583
|
+
if (t2 < 2 / 3) return p + (q - p) * (2 / 3 - t2) * 6;
|
|
7710
5584
|
return p;
|
|
7711
5585
|
}
|
|
7712
5586
|
function hslToRgb(h, s, l2) {
|
|
@@ -7719,10 +5593,8 @@ function hslToRgb(h, s, l2) {
|
|
|
7719
5593
|
}
|
|
7720
5594
|
function parse255(str) {
|
|
7721
5595
|
const int = parseInt(str, 10);
|
|
7722
|
-
if (int < 0)
|
|
7723
|
-
|
|
7724
|
-
if (int > 255)
|
|
7725
|
-
return 255;
|
|
5596
|
+
if (int < 0) return 0;
|
|
5597
|
+
if (int > 255) return 255;
|
|
7726
5598
|
return int;
|
|
7727
5599
|
}
|
|
7728
5600
|
function parse360(str) {
|
|
@@ -7731,24 +5603,19 @@ function parse360(str) {
|
|
|
7731
5603
|
}
|
|
7732
5604
|
function parse1(str) {
|
|
7733
5605
|
const num = parseFloat(str);
|
|
7734
|
-
if (num < 0)
|
|
7735
|
-
|
|
7736
|
-
if (num > 1)
|
|
7737
|
-
return 255;
|
|
5606
|
+
if (num < 0) return 0;
|
|
5607
|
+
if (num > 1) return 255;
|
|
7738
5608
|
return Math.round(num * 255);
|
|
7739
5609
|
}
|
|
7740
5610
|
function parsePercentage(str) {
|
|
7741
5611
|
const int = parseFloat(str);
|
|
7742
|
-
if (int < 0)
|
|
7743
|
-
|
|
7744
|
-
if (int > 100)
|
|
7745
|
-
return 1;
|
|
5612
|
+
if (int < 0) return 0;
|
|
5613
|
+
if (int > 100) return 1;
|
|
7746
5614
|
return int / 100;
|
|
7747
5615
|
}
|
|
7748
5616
|
function colorToRgba(input) {
|
|
7749
5617
|
let int32Color = normalizeColor(input);
|
|
7750
|
-
if (int32Color === null)
|
|
7751
|
-
return input;
|
|
5618
|
+
if (int32Color === null) return input;
|
|
7752
5619
|
int32Color = int32Color || 0;
|
|
7753
5620
|
let r = (int32Color & 4278190080) >>> 24;
|
|
7754
5621
|
let g = (int32Color & 16711680) >>> 16;
|
|
@@ -7784,40 +5651,26 @@ const createInterpolator = (range3, output, extrapolate) => {
|
|
|
7784
5651
|
function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight, map) {
|
|
7785
5652
|
let result = map ? map(input) : input;
|
|
7786
5653
|
if (result < inputMin) {
|
|
7787
|
-
if (extrapolateLeft === "identity")
|
|
7788
|
-
|
|
7789
|
-
else if (extrapolateLeft === "clamp")
|
|
7790
|
-
result = inputMin;
|
|
5654
|
+
if (extrapolateLeft === "identity") return result;
|
|
5655
|
+
else if (extrapolateLeft === "clamp") result = inputMin;
|
|
7791
5656
|
}
|
|
7792
5657
|
if (result > inputMax) {
|
|
7793
|
-
if (extrapolateRight === "identity")
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
if (
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
return input <= inputMin ? outputMin : outputMax;
|
|
7802
|
-
if (inputMin === -Infinity)
|
|
7803
|
-
result = -result;
|
|
7804
|
-
else if (inputMax === Infinity)
|
|
7805
|
-
result = result - inputMin;
|
|
7806
|
-
else
|
|
7807
|
-
result = (result - inputMin) / (inputMax - inputMin);
|
|
5658
|
+
if (extrapolateRight === "identity") return result;
|
|
5659
|
+
else if (extrapolateRight === "clamp") result = inputMax;
|
|
5660
|
+
}
|
|
5661
|
+
if (outputMin === outputMax) return outputMin;
|
|
5662
|
+
if (inputMin === inputMax) return input <= inputMin ? outputMin : outputMax;
|
|
5663
|
+
if (inputMin === -Infinity) result = -result;
|
|
5664
|
+
else if (inputMax === Infinity) result = result - inputMin;
|
|
5665
|
+
else result = (result - inputMin) / (inputMax - inputMin);
|
|
7808
5666
|
result = easing(result);
|
|
7809
|
-
if (outputMin === -Infinity)
|
|
7810
|
-
|
|
7811
|
-
else
|
|
7812
|
-
result = result + outputMin;
|
|
7813
|
-
else
|
|
7814
|
-
result = result * (outputMax - outputMin) + outputMin;
|
|
5667
|
+
if (outputMin === -Infinity) result = -result;
|
|
5668
|
+
else if (outputMax === Infinity) result = result + outputMin;
|
|
5669
|
+
else result = result * (outputMax - outputMin) + outputMin;
|
|
7815
5670
|
return result;
|
|
7816
5671
|
}
|
|
7817
5672
|
function findRange(input, inputRange) {
|
|
7818
|
-
for (var i2 = 1; i2 < inputRange.length - 1; ++i2)
|
|
7819
|
-
if (inputRange[i2] >= input)
|
|
7820
|
-
break;
|
|
5673
|
+
for (var i2 = 1; i2 < inputRange.length - 1; ++i2) if (inputRange[i2] >= input) break;
|
|
7821
5674
|
return i2 - 1;
|
|
7822
5675
|
}
|
|
7823
5676
|
const steps = (steps2, direction = "end") => (progress) => {
|
|
@@ -7986,16 +5839,14 @@ const variableToRgba = (input) => {
|
|
|
7986
5839
|
};
|
|
7987
5840
|
const parseCSSVariable = (current) => {
|
|
7988
5841
|
const match = cssVariableRegex.exec(current);
|
|
7989
|
-
if (!match)
|
|
7990
|
-
return [,];
|
|
5842
|
+
if (!match) return [,];
|
|
7991
5843
|
const [, token, fallback] = match;
|
|
7992
5844
|
return [token, fallback];
|
|
7993
5845
|
};
|
|
7994
5846
|
let namedColorRegex;
|
|
7995
5847
|
const rgbaRound = (_, p1, p2, p3, p4) => `rgba(${Math.round(p1)}, ${Math.round(p2)}, ${Math.round(p3)}, ${p4})`;
|
|
7996
5848
|
const createStringInterpolator = (config2) => {
|
|
7997
|
-
if (!namedColorRegex)
|
|
7998
|
-
namedColorRegex = colors$1 ? new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`, "g") : /^\b$/;
|
|
5849
|
+
if (!namedColorRegex) namedColorRegex = colors$1 ? new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`, "g") : /^\b$/;
|
|
7999
5850
|
const output = config2.output.map((value) => {
|
|
8000
5851
|
return getFluidValue(value).replace(cssVariableRegex, variableToRgba).replace(colorRegex, colorToRgba).replace(namedColorRegex, colorToRgba);
|
|
8001
5852
|
});
|
|
@@ -8170,8 +6021,7 @@ class AnimatedValue extends Animated {
|
|
|
8170
6021
|
this.elapsedTime = 0;
|
|
8171
6022
|
this.durationProgress = 0;
|
|
8172
6023
|
this.lastPosition = this._value;
|
|
8173
|
-
if (done)
|
|
8174
|
-
this.lastVelocity = null;
|
|
6024
|
+
if (done) this.lastVelocity = null;
|
|
8175
6025
|
this.v0 = null;
|
|
8176
6026
|
}
|
|
8177
6027
|
}
|
|
@@ -8361,20 +6211,17 @@ class PropsObserver {
|
|
|
8361
6211
|
function getAnimatedState(props, host2) {
|
|
8362
6212
|
const dependencies = /* @__PURE__ */ new Set();
|
|
8363
6213
|
TreeContext.dependencies = dependencies;
|
|
8364
|
-
if (props.style)
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
});
|
|
6214
|
+
if (props.style) props = _extends$2({}, props, {
|
|
6215
|
+
style: host2.createAnimatedStyle(props.style)
|
|
6216
|
+
});
|
|
8368
6217
|
props = new AnimatedObject(props);
|
|
8369
6218
|
TreeContext.dependencies = null;
|
|
8370
6219
|
return [props, dependencies];
|
|
8371
6220
|
}
|
|
8372
6221
|
function updateRef(ref, value) {
|
|
8373
6222
|
if (ref) {
|
|
8374
|
-
if (is.fun(ref))
|
|
8375
|
-
|
|
8376
|
-
else
|
|
8377
|
-
ref.current = value;
|
|
6223
|
+
if (is.fun(ref)) ref(value);
|
|
6224
|
+
else ref.current = value;
|
|
8378
6225
|
}
|
|
8379
6226
|
return value;
|
|
8380
6227
|
}
|
|
@@ -8513,8 +6360,7 @@ function computeGoal(value) {
|
|
|
8513
6360
|
})(1) : value;
|
|
8514
6361
|
}
|
|
8515
6362
|
function hasProps(props) {
|
|
8516
|
-
for (const _ in props)
|
|
8517
|
-
return true;
|
|
6363
|
+
for (const _ in props) return true;
|
|
8518
6364
|
return false;
|
|
8519
6365
|
}
|
|
8520
6366
|
function isAsyncTo(to2) {
|
|
@@ -8604,10 +6450,8 @@ function mergeConfig(config2, newConfig, defaultConfig) {
|
|
|
8604
6450
|
damping
|
|
8605
6451
|
} = config2;
|
|
8606
6452
|
if (!is.und(frequency)) {
|
|
8607
|
-
if (frequency < 0.01)
|
|
8608
|
-
|
|
8609
|
-
if (damping < 0)
|
|
8610
|
-
damping = 0;
|
|
6453
|
+
if (frequency < 0.01) frequency = 0.01;
|
|
6454
|
+
if (damping < 0) damping = 0;
|
|
8611
6455
|
config2.tension = Math.pow(2 * Math.PI / frequency, 2) * mass;
|
|
8612
6456
|
config2.friction = 4 * Math.PI * damping * mass / frequency;
|
|
8613
6457
|
}
|
|
@@ -8650,7 +6494,7 @@ function scheduleProps(callId, {
|
|
|
8650
6494
|
return new Promise((resolve, reject) => {
|
|
8651
6495
|
var _props$cancel;
|
|
8652
6496
|
let delay;
|
|
8653
|
-
let
|
|
6497
|
+
let timeout;
|
|
8654
6498
|
let cancel = matchProp((_props$cancel = props.cancel) != null ? _props$cancel : defaultProps2 == null ? void 0 : defaultProps2.cancel, key);
|
|
8655
6499
|
if (cancel) {
|
|
8656
6500
|
onStart();
|
|
@@ -8673,16 +6517,16 @@ function scheduleProps(callId, {
|
|
|
8673
6517
|
}
|
|
8674
6518
|
function onPause() {
|
|
8675
6519
|
state.resumeQueue.add(onResume);
|
|
8676
|
-
state.timeouts.delete(
|
|
8677
|
-
|
|
8678
|
-
delay =
|
|
6520
|
+
state.timeouts.delete(timeout);
|
|
6521
|
+
timeout.cancel();
|
|
6522
|
+
delay = timeout.time - raf.now();
|
|
8679
6523
|
}
|
|
8680
6524
|
function onResume() {
|
|
8681
6525
|
if (delay > 0 && !globals.skipAnimation) {
|
|
8682
6526
|
state.delayed = true;
|
|
8683
|
-
|
|
6527
|
+
timeout = raf.setTimeout(onStart, delay);
|
|
8684
6528
|
state.pauseQueue.add(onPause);
|
|
8685
|
-
state.timeouts.add(
|
|
6529
|
+
state.timeouts.add(timeout);
|
|
8686
6530
|
} else {
|
|
8687
6531
|
onStart();
|
|
8688
6532
|
}
|
|
@@ -8692,7 +6536,7 @@ function scheduleProps(callId, {
|
|
|
8692
6536
|
state.delayed = false;
|
|
8693
6537
|
}
|
|
8694
6538
|
state.pauseQueue.delete(onPause);
|
|
8695
|
-
state.timeouts.delete(
|
|
6539
|
+
state.timeouts.delete(timeout);
|
|
8696
6540
|
if (callId <= (state.cancelId || 0)) {
|
|
8697
6541
|
cancel = true;
|
|
8698
6542
|
}
|
|
@@ -8828,8 +6672,7 @@ function stopAsync(state, cancelId) {
|
|
|
8828
6672
|
state.pauseQueue.clear();
|
|
8829
6673
|
state.resumeQueue.clear();
|
|
8830
6674
|
state.asyncId = state.asyncTo = state.promise = void 0;
|
|
8831
|
-
if (cancelId)
|
|
8832
|
-
state.cancelId = cancelId;
|
|
6675
|
+
if (cancelId) state.cancelId = cancelId;
|
|
8833
6676
|
}
|
|
8834
6677
|
class BailSignal extends Error {
|
|
8835
6678
|
constructor() {
|
|
@@ -8876,12 +6719,10 @@ class FrameValue extends FluidValue {
|
|
|
8876
6719
|
return this.get();
|
|
8877
6720
|
}
|
|
8878
6721
|
observerAdded(count) {
|
|
8879
|
-
if (count == 1)
|
|
8880
|
-
this._attach();
|
|
6722
|
+
if (count == 1) this._attach();
|
|
8881
6723
|
}
|
|
8882
6724
|
observerRemoved(count) {
|
|
8883
|
-
if (count == 0)
|
|
8884
|
-
this._detach();
|
|
6725
|
+
if (count == 0) this._detach();
|
|
8885
6726
|
}
|
|
8886
6727
|
_attach() {
|
|
8887
6728
|
}
|
|
@@ -8978,8 +6819,7 @@ class SpringValue extends FrameValue {
|
|
|
8978
6819
|
toValues = toArray(getFluidValue(anim.to));
|
|
8979
6820
|
}
|
|
8980
6821
|
anim.values.forEach((node2, i2) => {
|
|
8981
|
-
if (node2.done)
|
|
8982
|
-
return;
|
|
6822
|
+
if (node2.done) return;
|
|
8983
6823
|
const to2 = node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2];
|
|
8984
6824
|
let finished = anim.immediate;
|
|
8985
6825
|
let position = to2;
|
|
@@ -9176,8 +7016,7 @@ class SpringValue extends FrameValue {
|
|
|
9176
7016
|
from
|
|
9177
7017
|
};
|
|
9178
7018
|
if (!hasAnimated(this)) {
|
|
9179
|
-
if (props.reverse)
|
|
9180
|
-
[to2, from] = [from, to2];
|
|
7019
|
+
if (props.reverse) [to2, from] = [from, to2];
|
|
9181
7020
|
from = getFluidValue(from);
|
|
9182
7021
|
if (!is.und(from)) {
|
|
9183
7022
|
this._set(from);
|
|
@@ -9193,8 +7032,7 @@ class SpringValue extends FrameValue {
|
|
|
9193
7032
|
key,
|
|
9194
7033
|
defaultProps: defaultProps2
|
|
9195
7034
|
} = this;
|
|
9196
|
-
if (props.default)
|
|
9197
|
-
Object.assign(defaultProps2, getDefaultProps(props, (value, prop) => /^on/.test(prop) ? resolveProp(value, key) : value));
|
|
7035
|
+
if (props.default) Object.assign(defaultProps2, getDefaultProps(props, (value, prop) => /^on/.test(prop) ? resolveProp(value, key) : value));
|
|
9198
7036
|
mergeActiveFn(this, props, "onProps");
|
|
9199
7037
|
sendEvent(this, "onProps", props, this);
|
|
9200
7038
|
const range3 = this._prepareNode(props);
|
|
@@ -9267,8 +7105,7 @@ class SpringValue extends FrameValue {
|
|
|
9267
7105
|
if (hasFromProp && !hasToProp && (!props.default || is.und(to2))) {
|
|
9268
7106
|
to2 = from;
|
|
9269
7107
|
}
|
|
9270
|
-
if (props.reverse)
|
|
9271
|
-
[to2, from] = [from, to2];
|
|
7108
|
+
if (props.reverse) [to2, from] = [from, to2];
|
|
9272
7109
|
const hasFromChanged = !isEqual(from, prevFrom);
|
|
9273
7110
|
if (hasFromChanged) {
|
|
9274
7111
|
anim.from = from;
|
|
@@ -9306,8 +7143,7 @@ class SpringValue extends FrameValue {
|
|
|
9306
7143
|
if (nodeType !== node.constructor) {
|
|
9307
7144
|
if (immediate) {
|
|
9308
7145
|
node = this._set(goal);
|
|
9309
|
-
} else
|
|
9310
|
-
throw Error(`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`);
|
|
7146
|
+
} else throw Error(`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`);
|
|
9311
7147
|
}
|
|
9312
7148
|
}
|
|
9313
7149
|
const goalType = node.constructor;
|
|
@@ -9349,16 +7185,15 @@ class SpringValue extends FrameValue {
|
|
|
9349
7185
|
const result = getFinishedResult(this, checkFinished(this, prevTo));
|
|
9350
7186
|
flushCalls(this._pendingCalls, result);
|
|
9351
7187
|
this._pendingCalls.add(resolve);
|
|
9352
|
-
if (anim.changed)
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
});
|
|
7188
|
+
if (anim.changed) raf.batchedUpdates(() => {
|
|
7189
|
+
anim.changed = !reset;
|
|
7190
|
+
onRest == null ? void 0 : onRest(result, this);
|
|
7191
|
+
if (reset) {
|
|
7192
|
+
callProp(defaultProps2.onRest, result);
|
|
7193
|
+
} else {
|
|
7194
|
+
anim.onStart == null ? void 0 : anim.onStart(result, this);
|
|
7195
|
+
}
|
|
7196
|
+
});
|
|
9362
7197
|
}
|
|
9363
7198
|
}
|
|
9364
7199
|
if (reset) {
|
|
@@ -9512,10 +7347,8 @@ function createUpdate(props) {
|
|
|
9512
7347
|
from
|
|
9513
7348
|
} = props = inferTo(props);
|
|
9514
7349
|
const keys = /* @__PURE__ */ new Set();
|
|
9515
|
-
if (is.obj(to2))
|
|
9516
|
-
|
|
9517
|
-
if (is.obj(from))
|
|
9518
|
-
findDefined(from, keys);
|
|
7350
|
+
if (is.obj(to2)) findDefined(to2, keys);
|
|
7351
|
+
if (is.obj(from)) findDefined(from, keys);
|
|
9519
7352
|
props.keys = keys.size ? Array.from(keys) : null;
|
|
9520
7353
|
return props;
|
|
9521
7354
|
}
|
|
@@ -9696,8 +7529,7 @@ class Controller2 {
|
|
|
9696
7529
|
}
|
|
9697
7530
|
} else if (event.type == "idle") {
|
|
9698
7531
|
this._active.delete(event.parent);
|
|
9699
|
-
} else
|
|
9700
|
-
return;
|
|
7532
|
+
} else return;
|
|
9701
7533
|
raf.onFrame(this._onFrame);
|
|
9702
7534
|
}
|
|
9703
7535
|
}
|
|
@@ -9717,10 +7549,8 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
9717
7549
|
if (loop2) {
|
|
9718
7550
|
props.loop = false;
|
|
9719
7551
|
}
|
|
9720
|
-
if (to2 === false)
|
|
9721
|
-
|
|
9722
|
-
if (from === false)
|
|
9723
|
-
props.from = null;
|
|
7552
|
+
if (to2 === false) props.to = null;
|
|
7553
|
+
if (from === false) props.from = null;
|
|
9724
7554
|
const asyncTo = is.arr(to2) || is.fun(to2) ? to2 : void 0;
|
|
9725
7555
|
if (asyncTo) {
|
|
9726
7556
|
props.to = void 0;
|
|
@@ -9739,10 +7569,8 @@ async function flushUpdate(ctrl, props, isLoop) {
|
|
|
9739
7569
|
}) => {
|
|
9740
7570
|
const result2 = queue.get(handler);
|
|
9741
7571
|
if (result2) {
|
|
9742
|
-
if (!finished)
|
|
9743
|
-
|
|
9744
|
-
if (cancelled)
|
|
9745
|
-
result2.cancelled = true;
|
|
7572
|
+
if (!finished) result2.finished = false;
|
|
7573
|
+
if (cancelled) result2.cancelled = true;
|
|
9746
7574
|
} else {
|
|
9747
7575
|
queue.set(handler, {
|
|
9748
7576
|
value: null,
|
|
@@ -9855,15 +7683,13 @@ function prepareKeys(ctrl, queue) {
|
|
|
9855
7683
|
});
|
|
9856
7684
|
}
|
|
9857
7685
|
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
9858
|
-
if (source == null)
|
|
9859
|
-
return {};
|
|
7686
|
+
if (source == null) return {};
|
|
9860
7687
|
var target = {};
|
|
9861
7688
|
var sourceKeys = Object.keys(source);
|
|
9862
7689
|
var key, i2;
|
|
9863
7690
|
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
9864
7691
|
key = sourceKeys[i2];
|
|
9865
|
-
if (excluded.indexOf(key) >= 0)
|
|
9866
|
-
continue;
|
|
7692
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
9867
7693
|
target[key] = source[key];
|
|
9868
7694
|
}
|
|
9869
7695
|
return target;
|
|
@@ -9920,8 +7746,7 @@ const SpringRef = () => {
|
|
|
9920
7746
|
};
|
|
9921
7747
|
SpringRef2.delete = function(ctrl) {
|
|
9922
7748
|
const i2 = current.indexOf(ctrl);
|
|
9923
|
-
if (~i2)
|
|
9924
|
-
current.splice(i2, 1);
|
|
7749
|
+
if (~i2) current.splice(i2, 1);
|
|
9925
7750
|
};
|
|
9926
7751
|
SpringRef2.pause = function() {
|
|
9927
7752
|
each(current, (ctrl) => ctrl.pause(...arguments));
|
|
@@ -9964,8 +7789,7 @@ const SpringRef = () => {
|
|
|
9964
7789
|
};
|
|
9965
7790
|
function useSprings(length, props, deps) {
|
|
9966
7791
|
const propsFn = is.fun(props) && props;
|
|
9967
|
-
if (propsFn && !deps)
|
|
9968
|
-
deps = [];
|
|
7792
|
+
if (propsFn && !deps) deps = [];
|
|
9969
7793
|
const ref = useMemo$1(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
|
|
9970
7794
|
const layoutId = useRef(0);
|
|
9971
7795
|
const forceUpdate = useForceUpdate$1();
|
|
@@ -10047,7 +7871,7 @@ function useSprings(length, props, deps) {
|
|
|
10047
7871
|
}
|
|
10048
7872
|
function useSpring(props, deps) {
|
|
10049
7873
|
const isFn = is.fun(props);
|
|
10050
|
-
const [[values], ref] = useSprings(1, isFn ? props : [props], isFn ?
|
|
7874
|
+
const [[values], ref] = useSprings(1, isFn ? props : [props], isFn ? [] : deps);
|
|
10051
7875
|
return isFn || arguments.length == 2 ? [values, ref] : values;
|
|
10052
7876
|
}
|
|
10053
7877
|
let TransitionPhase;
|
|
@@ -10162,15 +7986,13 @@ globals.assign({
|
|
|
10162
7986
|
to: (source, args) => new Interpolation(source, args)
|
|
10163
7987
|
});
|
|
10164
7988
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
10165
|
-
if (source == null)
|
|
10166
|
-
return {};
|
|
7989
|
+
if (source == null) return {};
|
|
10167
7990
|
var target = {};
|
|
10168
7991
|
var sourceKeys = Object.keys(source);
|
|
10169
7992
|
var key, i2;
|
|
10170
7993
|
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
10171
7994
|
key = sourceKeys[i2];
|
|
10172
|
-
if (excluded.indexOf(key) >= 0)
|
|
10173
|
-
continue;
|
|
7995
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
10174
7996
|
target[key] = source[key];
|
|
10175
7997
|
}
|
|
10176
7998
|
return target;
|
|
@@ -10178,10 +8000,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
10178
8000
|
const _excluded$2 = ["style", "children", "scrollTop", "scrollLeft", "viewBox"];
|
|
10179
8001
|
const isCustomPropRE = /^--/;
|
|
10180
8002
|
function dangerousStyleValue(name, value) {
|
|
10181
|
-
if (value == null || typeof value === "boolean" || value === "")
|
|
10182
|
-
|
|
10183
|
-
if (typeof value === "number" && value !== 0 && !isCustomPropRE.test(name) && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]))
|
|
10184
|
-
return value + "px";
|
|
8003
|
+
if (value == null || typeof value === "boolean" || value === "") return "";
|
|
8004
|
+
if (typeof value === "number" && value !== 0 && !isCustomPropRE.test(name) && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) return value + "px";
|
|
10185
8005
|
return ("" + value).trim();
|
|
10186
8006
|
}
|
|
10187
8007
|
const attributeCache = {};
|
|
@@ -10299,8 +8119,7 @@ class AnimatedStyle extends AnimatedObject {
|
|
|
10299
8119
|
transforms.push((transform) => [transform, transform === ""]);
|
|
10300
8120
|
} else if (domTransforms.test(key)) {
|
|
10301
8121
|
delete style[key];
|
|
10302
|
-
if (is.und(value))
|
|
10303
|
-
return;
|
|
8122
|
+
if (is.und(value)) return;
|
|
10304
8123
|
const unit = pxTransforms.test(key) ? "px" : degTransforms.test(key) ? "deg" : "";
|
|
10305
8124
|
inputs.push(toArray(value));
|
|
10306
8125
|
transforms.push(key === "rotate3d" ? ([x2, y2, z2, deg]) => [`rotate3d(${x2},${y2},${z2},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v) => addUnit(v, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
|
|
@@ -10334,12 +8153,10 @@ class FluidTransform extends FluidValue {
|
|
|
10334
8153
|
return identity2 ? "none" : transform;
|
|
10335
8154
|
}
|
|
10336
8155
|
observerAdded(count) {
|
|
10337
|
-
if (count == 1)
|
|
10338
|
-
each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && addFluidObserver(value, this)));
|
|
8156
|
+
if (count == 1) each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && addFluidObserver(value, this)));
|
|
10339
8157
|
}
|
|
10340
8158
|
observerRemoved(count) {
|
|
10341
|
-
if (count == 0)
|
|
10342
|
-
each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && removeFluidObserver(value, this)));
|
|
8159
|
+
if (count == 0) each(this.inputs, (input) => each(input, (value) => hasFluidValue(value) && removeFluidObserver(value, this)));
|
|
10343
8160
|
}
|
|
10344
8161
|
eventObserved(event) {
|
|
10345
8162
|
if (event.type == "change") {
|
|
@@ -10899,7 +8716,7 @@ const Popup = (props) => {
|
|
|
10899
8716
|
};
|
|
10900
8717
|
const renderPop = () => {
|
|
10901
8718
|
return /* @__PURE__ */ React__default.createElement(
|
|
10902
|
-
CSSTransition
|
|
8719
|
+
CSSTransition,
|
|
10903
8720
|
{
|
|
10904
8721
|
nodeRef,
|
|
10905
8722
|
classNames: transitionName,
|
|
@@ -11145,24 +8962,20 @@ const Badge = (props) => {
|
|
|
11145
8962
|
[`${classPrefix2}-${fill}`]: fill === "outline"
|
|
11146
8963
|
});
|
|
11147
8964
|
function content() {
|
|
11148
|
-
if (dot || typeof value === "object" || value === 0)
|
|
11149
|
-
return null;
|
|
8965
|
+
if (dot || typeof value === "object" || value === 0) return null;
|
|
11150
8966
|
if (typeof value === "number" && typeof max === "number") {
|
|
11151
8967
|
return max < value ? `${max}+` : `${value}`;
|
|
11152
8968
|
}
|
|
11153
8969
|
return value;
|
|
11154
8970
|
}
|
|
11155
8971
|
function isIcon() {
|
|
11156
|
-
if (typeof value === "object" && value)
|
|
11157
|
-
return value;
|
|
8972
|
+
if (typeof value === "object" && value) return value;
|
|
11158
8973
|
}
|
|
11159
8974
|
function isNumber() {
|
|
11160
|
-
if (typeof value === "number" && value)
|
|
11161
|
-
return value;
|
|
8975
|
+
if (typeof value === "number" && value) return value;
|
|
11162
8976
|
}
|
|
11163
8977
|
function isString() {
|
|
11164
|
-
if (typeof value === "string" && value)
|
|
11165
|
-
return value;
|
|
8978
|
+
if (typeof value === "string" && value) return value;
|
|
11166
8979
|
}
|
|
11167
8980
|
const contentClasses = classNames(
|
|
11168
8981
|
{ [`${classPrefix2}-dot`]: dot },
|
|
@@ -11315,8 +9128,7 @@ const Tabbar = (props) => {
|
|
|
11315
9128
|
}
|
|
11316
9129
|
},
|
|
11317
9130
|
React__default.Children.map(children, (child, index) => {
|
|
11318
|
-
if (!React__default.isValidElement(child))
|
|
11319
|
-
return null;
|
|
9131
|
+
if (!React__default.isValidElement(child)) return null;
|
|
11320
9132
|
return React__default.cloneElement(child, { ...child.props, index });
|
|
11321
9133
|
})
|
|
11322
9134
|
)),
|
|
@@ -11389,7 +9201,7 @@ const Tabs = (props) => {
|
|
|
11389
9201
|
const scrollDirection = (nav, to2, duration2, direction2) => {
|
|
11390
9202
|
let count = 0;
|
|
11391
9203
|
const from = direction2 === "horizontal" ? nav.scrollLeft : nav.scrollTop;
|
|
11392
|
-
const frames =
|
|
9204
|
+
const frames = Math.round(duration2 * 1e3 / 16);
|
|
11393
9205
|
function animate() {
|
|
11394
9206
|
if (direction2 === "horizontal") {
|
|
11395
9207
|
nav.scrollLeft += (to2 - from) / frames;
|
|
@@ -11405,10 +9217,12 @@ const Tabs = (props) => {
|
|
|
11405
9217
|
const scrollIntoView = (index, immediate) => {
|
|
11406
9218
|
const nav = navRef.current;
|
|
11407
9219
|
const titleItem = titleItemsRef.current;
|
|
11408
|
-
|
|
9220
|
+
const titlesLength = titles.current.length;
|
|
9221
|
+
const itemLength = titleItemsRef.current.length;
|
|
9222
|
+
if (!nav || !titleItem || !titleItem[itemLength - titlesLength + index]) {
|
|
11409
9223
|
return;
|
|
11410
9224
|
}
|
|
11411
|
-
const title2 = titleItem[index];
|
|
9225
|
+
const title2 = titleItem[itemLength - titlesLength + index];
|
|
11412
9226
|
let to2 = 0;
|
|
11413
9227
|
if (direction === "vertical") {
|
|
11414
9228
|
const runTop = title2.offsetTop - nav.offsetTop + 10;
|
|
@@ -11416,7 +9230,7 @@ const Tabs = (props) => {
|
|
|
11416
9230
|
} else {
|
|
11417
9231
|
to2 = title2.offsetLeft - (nav.offsetWidth - title2.offsetWidth) / 2;
|
|
11418
9232
|
}
|
|
11419
|
-
scrollDirection(nav, to2,
|
|
9233
|
+
scrollDirection(nav, to2, 0.3, direction);
|
|
11420
9234
|
};
|
|
11421
9235
|
const getTitles = () => {
|
|
11422
9236
|
const titles2 = [];
|
|
@@ -12451,9 +10265,6 @@ const getCurrMonthData = (type4, year, month) => {
|
|
|
12451
10265
|
};
|
|
12452
10266
|
const getDaysStatus = (type4, year, month) => {
|
|
12453
10267
|
let days = Utils.getMonthDays(`${year}`, `${month}`);
|
|
12454
|
-
if (type4 === "prev" && days >= 7) {
|
|
12455
|
-
days -= 7;
|
|
12456
|
-
}
|
|
12457
10268
|
return Array.from(Array(days), (v, k) => {
|
|
12458
10269
|
return {
|
|
12459
10270
|
day: k + 1,
|
|
@@ -12472,7 +10283,7 @@ const getPreMonthDates = (type4, year, month, firstDayOfWeek) => {
|
|
|
12472
10283
|
}
|
|
12473
10284
|
let days = Utils.getMonthPreDay(+year, +month);
|
|
12474
10285
|
days -= firstDayOfWeek;
|
|
12475
|
-
if (
|
|
10286
|
+
if (days >= 7) {
|
|
12476
10287
|
days -= 7;
|
|
12477
10288
|
}
|
|
12478
10289
|
const preDates = Utils.getMonthDays(`${preYear}`, `${preMonth}`);
|
|
@@ -12647,7 +10458,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12647
10458
|
cssHeight,
|
|
12648
10459
|
scrollTop
|
|
12649
10460
|
};
|
|
12650
|
-
|
|
10461
|
+
{
|
|
12651
10462
|
if (!endDates || !Utils.compareDate(
|
|
12652
10463
|
`${endDates[0]}/${endDates[1]}/${Utils.getMonthDays(
|
|
12653
10464
|
endDates[0],
|
|
@@ -12657,11 +10468,6 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12657
10468
|
)) {
|
|
12658
10469
|
monthData.push(monthInfo);
|
|
12659
10470
|
}
|
|
12660
|
-
} else if (!startDates || !Utils.compareDate(
|
|
12661
|
-
`${curData[0]}/${curData[1]}/${curData[2]}`,
|
|
12662
|
-
`${startDates[0]}/${startDates[1]}/01`
|
|
12663
|
-
)) {
|
|
12664
|
-
monthData.unshift(monthInfo);
|
|
12665
10471
|
}
|
|
12666
10472
|
date4 = getCurrMonthData("next", y, m);
|
|
12667
10473
|
} while (i2++ < monthNum);
|
|
@@ -12670,8 +10476,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12670
10476
|
const setReachedYearMonthInfo = (current) => {
|
|
12671
10477
|
const currentMonthsData = monthsData[current];
|
|
12672
10478
|
const [year, month] = currentMonthsData.curData;
|
|
12673
|
-
if (currentMonthsData.title === yearMonthTitle)
|
|
12674
|
-
return;
|
|
10479
|
+
if (currentMonthsData.title === yearMonthTitle) return;
|
|
12675
10480
|
onPageChange && onPageChange([year, month, `${year}-${month}`]);
|
|
12676
10481
|
setYearMonthTitle(currentMonthsData.title);
|
|
12677
10482
|
};
|
|
@@ -12860,7 +10665,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12860
10665
|
};
|
|
12861
10666
|
const initData = () => {
|
|
12862
10667
|
const monthNum = getMonthNum();
|
|
12863
|
-
getMonthData(startDates, monthNum
|
|
10668
|
+
getMonthData(startDates, monthNum);
|
|
12864
10669
|
const current = renderCurrentDate();
|
|
12865
10670
|
setDefaultRange(monthNum, current);
|
|
12866
10671
|
requestAniFrameFunc(current, monthNum);
|
|
@@ -12917,8 +10722,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
12917
10722
|
}
|
|
12918
10723
|
const scrollTop = e2.target.scrollTop;
|
|
12919
10724
|
let current = Math.floor(scrollTop / avgHeight);
|
|
12920
|
-
if (!monthsData[current + 1])
|
|
12921
|
-
return;
|
|
10725
|
+
if (!monthsData[current + 1]) return;
|
|
12922
10726
|
const nextTop = monthsData[current + 1].scrollTop;
|
|
12923
10727
|
const nextHeight = monthsData[current + 1].cssHeight;
|
|
12924
10728
|
if (current === 0) {
|
|
@@ -13691,7 +11495,6 @@ const CalendarCard = React__default.forwardRef((props, ref) => {
|
|
|
13691
11495
|
});
|
|
13692
11496
|
CalendarCard.displayName = "NutCalendarCard";
|
|
13693
11497
|
const CheckboxGroupContext = createContext(null);
|
|
13694
|
-
const Context$1 = CheckboxGroupContext;
|
|
13695
11498
|
const defaultProps$_ = {
|
|
13696
11499
|
max: void 0,
|
|
13697
11500
|
min: void 0,
|
|
@@ -13769,7 +11572,7 @@ const CheckboxGroup = React__default.forwardRef(
|
|
|
13769
11572
|
});
|
|
13770
11573
|
}, [options2, max, min]);
|
|
13771
11574
|
return /* @__PURE__ */ React__default.createElement(
|
|
13772
|
-
|
|
11575
|
+
CheckboxGroupContext.Provider,
|
|
13773
11576
|
{
|
|
13774
11577
|
value: {
|
|
13775
11578
|
labelPosition: labelPosition || "right",
|
|
@@ -13849,7 +11652,7 @@ const Checkbox = (props) => {
|
|
|
13849
11652
|
...others
|
|
13850
11653
|
} = props;
|
|
13851
11654
|
let { labelPosition, ...rest } = others;
|
|
13852
|
-
const ctx2 = useContext(
|
|
11655
|
+
const ctx2 = useContext(CheckboxGroupContext);
|
|
13853
11656
|
let [innerChecked, setChecked] = usePropsValue({
|
|
13854
11657
|
value: checked,
|
|
13855
11658
|
defaultValue: defaultChecked,
|
|
@@ -13871,12 +11674,9 @@ const Checkbox = (props) => {
|
|
|
13871
11674
|
innerDisabled = ctx2.disabled !== void 0 ? ctx2.disabled : innerDisabled;
|
|
13872
11675
|
innerChecked = ctx2.value.includes(value);
|
|
13873
11676
|
setChecked = (checked2) => {
|
|
13874
|
-
if (ctx2.disabled)
|
|
13875
|
-
|
|
13876
|
-
if (checked2)
|
|
13877
|
-
ctx2.check(value);
|
|
13878
|
-
if (!checked2)
|
|
13879
|
-
ctx2.uncheck(value);
|
|
11677
|
+
if (ctx2.disabled) return;
|
|
11678
|
+
if (checked2) ctx2.check(value);
|
|
11679
|
+
if (!checked2) ctx2.uncheck(value);
|
|
13880
11680
|
};
|
|
13881
11681
|
}
|
|
13882
11682
|
const renderIcon = () => {
|
|
@@ -13928,8 +11728,7 @@ const Checkbox = (props) => {
|
|
|
13928
11728
|
);
|
|
13929
11729
|
};
|
|
13930
11730
|
const handleClick2 = () => {
|
|
13931
|
-
if (disabled)
|
|
13932
|
-
return;
|
|
11731
|
+
if (disabled) return;
|
|
13933
11732
|
const latestChecked = !innerChecked;
|
|
13934
11733
|
setChecked(latestChecked);
|
|
13935
11734
|
};
|
|
@@ -14055,14 +11854,13 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14055
11854
|
touch.move(event);
|
|
14056
11855
|
if (touch.isVertical) {
|
|
14057
11856
|
moving.current = true;
|
|
14058
|
-
preventDefault2(event
|
|
11857
|
+
preventDefault2(event);
|
|
14059
11858
|
}
|
|
14060
11859
|
const move = touch.deltaY.current - startY;
|
|
14061
11860
|
setMove(move);
|
|
14062
11861
|
};
|
|
14063
11862
|
const touchEnd = () => {
|
|
14064
|
-
if (!moving.current)
|
|
14065
|
-
return;
|
|
11863
|
+
if (!moving.current) return;
|
|
14066
11864
|
const move = touch.deltaY.current - startY;
|
|
14067
11865
|
const moveTime = Date.now() - startTime;
|
|
14068
11866
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
@@ -14082,7 +11880,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14082
11880
|
return nDistance;
|
|
14083
11881
|
};
|
|
14084
11882
|
const modifyStatus = (type4, val) => {
|
|
14085
|
-
const value =
|
|
11883
|
+
const value = defaultValue;
|
|
14086
11884
|
let index = -1;
|
|
14087
11885
|
if (value) {
|
|
14088
11886
|
options2.some((item, idx) => {
|
|
@@ -14101,7 +11899,6 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14101
11899
|
}
|
|
14102
11900
|
setCurrIndex(index === -1 ? 1 : index + 1);
|
|
14103
11901
|
const move = index === -1 ? 0 : index * lineSpacing;
|
|
14104
|
-
type4 && setChooseValue(-move);
|
|
14105
11902
|
setMove(-move);
|
|
14106
11903
|
};
|
|
14107
11904
|
const stopMomentum = () => {
|
|
@@ -14113,7 +11910,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14113
11910
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
14114
11911
|
event.preventDefault();
|
|
14115
11912
|
}
|
|
14116
|
-
|
|
11913
|
+
{
|
|
14117
11914
|
event.stopPropagation();
|
|
14118
11915
|
}
|
|
14119
11916
|
};
|
|
@@ -14132,7 +11929,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14132
11929
|
useEffect(() => {
|
|
14133
11930
|
setScrollDistance(0);
|
|
14134
11931
|
transformY.current = 0;
|
|
14135
|
-
modifyStatus(
|
|
11932
|
+
modifyStatus();
|
|
14136
11933
|
return () => {
|
|
14137
11934
|
clearTimeout(timer);
|
|
14138
11935
|
};
|
|
@@ -14200,13 +11997,11 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
14200
11997
|
);
|
|
14201
11998
|
};
|
|
14202
11999
|
const PickerPanel = React__default.forwardRef(InternalPickerPanel);
|
|
14203
|
-
const PickerPanel$1 = PickerPanel;
|
|
14204
12000
|
function useRefs() {
|
|
14205
12001
|
const refs = React__default.useRef([]);
|
|
14206
12002
|
const setRefs = React__default.useCallback(
|
|
14207
12003
|
(index) => (el) => {
|
|
14208
|
-
if (el)
|
|
14209
|
-
refs.current[index] = el;
|
|
12004
|
+
if (el) refs.current[index] = el;
|
|
14210
12005
|
},
|
|
14211
12006
|
[]
|
|
14212
12007
|
);
|
|
@@ -14293,8 +12088,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14293
12088
|
const options22 = columnOptions.children;
|
|
14294
12089
|
const value = values[columnIndex2];
|
|
14295
12090
|
let index = options22.findIndex((columnItem) => columnItem.value === value);
|
|
14296
|
-
if (index === -1)
|
|
14297
|
-
index = 0;
|
|
12091
|
+
if (index === -1) index = 0;
|
|
14298
12092
|
columnOptions = columnOptions.children[index];
|
|
14299
12093
|
columnIndex2++;
|
|
14300
12094
|
formatted.push(options22);
|
|
@@ -14403,8 +12197,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14403
12197
|
const confirm2 = () => {
|
|
14404
12198
|
let moving = false;
|
|
14405
12199
|
refs.forEach((ref2) => {
|
|
14406
|
-
if (ref2.moving)
|
|
14407
|
-
moving = true;
|
|
12200
|
+
if (ref2.moving) moving = true;
|
|
14408
12201
|
ref2.stopMomentum();
|
|
14409
12202
|
});
|
|
14410
12203
|
if (moving) {
|
|
@@ -14460,7 +12253,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14460
12253
|
},
|
|
14461
12254
|
/* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...rest }, renderTitleBar(), typeof children !== "function" && children, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-panel`, ref: pickerRef }, columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
14462
12255
|
return /* @__PURE__ */ React__default.createElement(
|
|
14463
|
-
PickerPanel
|
|
12256
|
+
PickerPanel,
|
|
14464
12257
|
{
|
|
14465
12258
|
ref: setRefs(index),
|
|
14466
12259
|
defaultValue: innerValue == null ? void 0 : innerValue[index],
|
|
@@ -14477,7 +12270,6 @@ const InternalPicker = (props, ref) => {
|
|
|
14477
12270
|
));
|
|
14478
12271
|
};
|
|
14479
12272
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
14480
|
-
const Picker$1 = Picker;
|
|
14481
12273
|
const isDate = (val) => {
|
|
14482
12274
|
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
14483
12275
|
};
|
|
@@ -14591,8 +12383,7 @@ const DatePicker = (props) => {
|
|
|
14591
12383
|
};
|
|
14592
12384
|
const ranges = () => {
|
|
14593
12385
|
const selected = new Date(selectedDate);
|
|
14594
|
-
if (!selected)
|
|
14595
|
-
return [];
|
|
12386
|
+
if (!selected) return [];
|
|
14596
12387
|
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
|
|
14597
12388
|
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
|
|
14598
12389
|
const result = [
|
|
@@ -14751,8 +12542,7 @@ const DatePicker = (props) => {
|
|
|
14751
12542
|
};
|
|
14752
12543
|
const getDateIndex = (type22) => {
|
|
14753
12544
|
const date4 = new Date(selectedDate);
|
|
14754
|
-
if (!selectedDate)
|
|
14755
|
-
return 0;
|
|
12545
|
+
if (!selectedDate) return 0;
|
|
14756
12546
|
if (type22 === "year") {
|
|
14757
12547
|
return date4.getFullYear();
|
|
14758
12548
|
}
|
|
@@ -14789,7 +12579,7 @@ const DatePicker = (props) => {
|
|
|
14789
12579
|
setPickerOptions(columns());
|
|
14790
12580
|
}, [selectedDate, startDate, endDate]);
|
|
14791
12581
|
return /* @__PURE__ */ React__default.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest }, pickerOptions.length && /* @__PURE__ */ React__default.createElement(
|
|
14792
|
-
Picker
|
|
12582
|
+
Picker,
|
|
14793
12583
|
{
|
|
14794
12584
|
...pickerProps,
|
|
14795
12585
|
title,
|
|
@@ -14827,25 +12617,22 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
14827
12617
|
_setPrototypeOf(subClass, superClass);
|
|
14828
12618
|
}
|
|
14829
12619
|
function _getPrototypeOf(o2) {
|
|
14830
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(
|
|
14831
|
-
return
|
|
12620
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o22) {
|
|
12621
|
+
return o22.__proto__ || Object.getPrototypeOf(o22);
|
|
14832
12622
|
};
|
|
14833
12623
|
return _getPrototypeOf(o2);
|
|
14834
12624
|
}
|
|
14835
12625
|
function _setPrototypeOf(o2, p) {
|
|
14836
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(
|
|
14837
|
-
|
|
14838
|
-
return
|
|
12626
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o22, p2) {
|
|
12627
|
+
o22.__proto__ = p2;
|
|
12628
|
+
return o22;
|
|
14839
12629
|
};
|
|
14840
12630
|
return _setPrototypeOf(o2, p);
|
|
14841
12631
|
}
|
|
14842
12632
|
function _isNativeReflectConstruct() {
|
|
14843
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
14844
|
-
|
|
14845
|
-
if (
|
|
14846
|
-
return false;
|
|
14847
|
-
if (typeof Proxy === "function")
|
|
14848
|
-
return true;
|
|
12633
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
12634
|
+
if (Reflect.construct.sham) return false;
|
|
12635
|
+
if (typeof Proxy === "function") return true;
|
|
14849
12636
|
try {
|
|
14850
12637
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
14851
12638
|
}));
|
|
@@ -14863,8 +12650,7 @@ function _construct(Parent, args, Class) {
|
|
|
14863
12650
|
a2.push.apply(a2, args2);
|
|
14864
12651
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
14865
12652
|
var instance = new Constructor();
|
|
14866
|
-
if (Class2)
|
|
14867
|
-
_setPrototypeOf(instance, Class2.prototype);
|
|
12653
|
+
if (Class2) _setPrototypeOf(instance, Class2.prototype);
|
|
14868
12654
|
return instance;
|
|
14869
12655
|
};
|
|
14870
12656
|
}
|
|
@@ -14876,14 +12662,12 @@ function _isNativeFunction(fn) {
|
|
|
14876
12662
|
function _wrapNativeSuper(Class) {
|
|
14877
12663
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
14878
12664
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
14879
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
14880
|
-
return Class2;
|
|
12665
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
14881
12666
|
if (typeof Class2 !== "function") {
|
|
14882
12667
|
throw new TypeError("Super expression must either be null or a function");
|
|
14883
12668
|
}
|
|
14884
12669
|
if (typeof _cache !== "undefined") {
|
|
14885
|
-
if (_cache.has(Class2))
|
|
14886
|
-
return _cache.get(Class2);
|
|
12670
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
14887
12671
|
_cache.set(Class2, Wrapper);
|
|
14888
12672
|
}
|
|
14889
12673
|
function Wrapper() {
|
|
@@ -14904,7 +12688,7 @@ function _wrapNativeSuper(Class) {
|
|
|
14904
12688
|
var formatRegExp = /%[sdj%]/g;
|
|
14905
12689
|
var warning = function warning2() {
|
|
14906
12690
|
};
|
|
14907
|
-
if (typeof process !== "undefined" && process.env &&
|
|
12691
|
+
if (typeof process !== "undefined" && process.env && false) {
|
|
14908
12692
|
warning = function warning3(type4, errors) {
|
|
14909
12693
|
if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
|
|
14910
12694
|
if (errors.every(function(e2) {
|
|
@@ -14916,8 +12700,7 @@ if (typeof process !== "undefined" && process.env && process.env.NODE_ENV !== "p
|
|
|
14916
12700
|
};
|
|
14917
12701
|
}
|
|
14918
12702
|
function convertFieldsError(errors) {
|
|
14919
|
-
if (!errors || !errors.length)
|
|
14920
|
-
return null;
|
|
12703
|
+
if (!errors || !errors.length) return null;
|
|
14921
12704
|
var fields = {};
|
|
14922
12705
|
errors.forEach(function(error) {
|
|
14923
12706
|
var field = error.field;
|
|
@@ -16579,10 +14362,8 @@ const InputNumber = (props) => {
|
|
|
16579
14362
|
return res;
|
|
16580
14363
|
};
|
|
16581
14364
|
const format2 = (value2) => {
|
|
16582
|
-
if (value2 === null)
|
|
16583
|
-
|
|
16584
|
-
if (typeof value2 === "string")
|
|
16585
|
-
value2 = parseFloat(value2);
|
|
14365
|
+
if (value2 === null) return "";
|
|
14366
|
+
if (typeof value2 === "string") value2 = parseFloat(value2);
|
|
16586
14367
|
const fixedValue = bound2(value2, Number(min), Number(max));
|
|
16587
14368
|
if (formatter) {
|
|
16588
14369
|
return formatter(fixedValue);
|
|
@@ -16626,22 +14407,18 @@ const InputNumber = (props) => {
|
|
|
16626
14407
|
}
|
|
16627
14408
|
};
|
|
16628
14409
|
const handleReduce = (e2) => {
|
|
16629
|
-
if (disabled)
|
|
16630
|
-
return;
|
|
14410
|
+
if (disabled) return;
|
|
16631
14411
|
onMinus == null ? void 0 : onMinus(e2);
|
|
16632
14412
|
update2(true, e2);
|
|
16633
14413
|
};
|
|
16634
14414
|
const handlePlus = (e2) => {
|
|
16635
|
-
if (disabled)
|
|
16636
|
-
return;
|
|
14415
|
+
if (disabled) return;
|
|
16637
14416
|
onPlus == null ? void 0 : onPlus(e2);
|
|
16638
14417
|
update2(false, e2);
|
|
16639
14418
|
};
|
|
16640
14419
|
const parseValue = (text) => {
|
|
16641
|
-
if (text === "")
|
|
16642
|
-
|
|
16643
|
-
if (text === "-")
|
|
16644
|
-
return null;
|
|
14420
|
+
if (text === "") return null;
|
|
14421
|
+
if (text === "-") return null;
|
|
16645
14422
|
return text;
|
|
16646
14423
|
};
|
|
16647
14424
|
const handleInputChange = (e2) => {
|
|
@@ -16826,8 +14603,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
16826
14603
|
setValue(item.value);
|
|
16827
14604
|
};
|
|
16828
14605
|
const isShow = () => {
|
|
16829
|
-
if (showPopup)
|
|
16830
|
-
return {};
|
|
14606
|
+
if (showPopup) return {};
|
|
16831
14607
|
return { display: "none" };
|
|
16832
14608
|
};
|
|
16833
14609
|
const [position, setPosition] = useState({
|
|
@@ -16910,7 +14686,7 @@ const MenuItem = forwardRef((props, ref) => {
|
|
|
16910
14686
|
}
|
|
16911
14687
|
},
|
|
16912
14688
|
/* @__PURE__ */ React__default.createElement(
|
|
16913
|
-
CSSTransition
|
|
14689
|
+
CSSTransition,
|
|
16914
14690
|
{
|
|
16915
14691
|
in: showPopup,
|
|
16916
14692
|
timeout: 100,
|
|
@@ -17051,10 +14827,8 @@ const Menu = (props) => {
|
|
|
17051
14827
|
(option) => option.value === (value !== void 0 ? value : defaultValue)
|
|
17052
14828
|
);
|
|
17053
14829
|
const finallyTitle = () => {
|
|
17054
|
-
if (title)
|
|
17055
|
-
|
|
17056
|
-
if (menuItemTitle && menuItemTitle[index])
|
|
17057
|
-
return menuItemTitle[index];
|
|
14830
|
+
if (title) return title;
|
|
14831
|
+
if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
|
|
17058
14832
|
if (selected && selected.length && selected[0].text)
|
|
17059
14833
|
return selected[0].text;
|
|
17060
14834
|
return "";
|
|
@@ -17074,8 +14848,7 @@ const Menu = (props) => {
|
|
|
17074
14848
|
key: index,
|
|
17075
14849
|
onClick: (e2) => {
|
|
17076
14850
|
e2.stopPropagation();
|
|
17077
|
-
if ((!options2 || !options2.length) && !child.props.children)
|
|
17078
|
-
return;
|
|
14851
|
+
if ((!options2 || !options2.length) && !child.props.children) return;
|
|
17079
14852
|
!disabled && toggleMenuItem(index);
|
|
17080
14853
|
}
|
|
17081
14854
|
},
|
|
@@ -17157,8 +14930,7 @@ const NumberKeyboard = (props) => {
|
|
|
17157
14930
|
{ id: "0", type: "num" },
|
|
17158
14931
|
{ id: "delete", type: "delete" }
|
|
17159
14932
|
];
|
|
17160
|
-
if (!custom)
|
|
17161
|
-
return customKeys;
|
|
14933
|
+
if (!custom) return customKeys;
|
|
17162
14934
|
if (custom.length > 0) {
|
|
17163
14935
|
customKeys[0] = { id: custom[0], type: "custom" };
|
|
17164
14936
|
}
|
|
@@ -17456,8 +15228,7 @@ const Radio = (props) => {
|
|
|
17456
15228
|
return renderByShape(context && context.shape ? context.shape : shape);
|
|
17457
15229
|
};
|
|
17458
15230
|
const handleClick2 = (e2) => {
|
|
17459
|
-
if (disabled || checkedStatement)
|
|
17460
|
-
return;
|
|
15231
|
+
if (disabled || checkedStatement) return;
|
|
17461
15232
|
setCheckedStatement(!checkedStatement);
|
|
17462
15233
|
};
|
|
17463
15234
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -17846,8 +15617,7 @@ const Rate = (props) => {
|
|
|
17846
15617
|
const onClick = (e2, index) => {
|
|
17847
15618
|
e2.preventDefault();
|
|
17848
15619
|
e2.stopPropagation();
|
|
17849
|
-
if (disabled || readOnly)
|
|
17850
|
-
return;
|
|
15620
|
+
if (disabled || readOnly) return;
|
|
17851
15621
|
let value2 = 0;
|
|
17852
15622
|
if (!(index === 1 && score === index)) {
|
|
17853
15623
|
value2 = index;
|
|
@@ -18080,23 +15850,19 @@ const SearchBar = (props) => {
|
|
|
18080
15850
|
onInputClick && onInputClick(e2);
|
|
18081
15851
|
};
|
|
18082
15852
|
const renderLeftIn = () => {
|
|
18083
|
-
if (!leftIn)
|
|
18084
|
-
return null;
|
|
15853
|
+
if (!leftIn) return null;
|
|
18085
15854
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-leftin ${classPrefix2}-icon` }, leftIn);
|
|
18086
15855
|
};
|
|
18087
15856
|
const renderLeft = () => {
|
|
18088
|
-
if (!backable && !left)
|
|
18089
|
-
return null;
|
|
15857
|
+
if (!backable && !left) return null;
|
|
18090
15858
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React__default.createElement(e$d, { width: "16", height: "16" }) : left);
|
|
18091
15859
|
};
|
|
18092
15860
|
const renderRightIn = () => {
|
|
18093
|
-
if (!rightIn)
|
|
18094
|
-
return null;
|
|
15861
|
+
if (!rightIn) return null;
|
|
18095
15862
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-rightin ${classPrefix2}-icon` }, rightIn);
|
|
18096
15863
|
};
|
|
18097
15864
|
const renderRight = () => {
|
|
18098
|
-
if (!right)
|
|
18099
|
-
return null;
|
|
15865
|
+
if (!right) return null;
|
|
18100
15866
|
return /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, right);
|
|
18101
15867
|
};
|
|
18102
15868
|
const handleClear = () => {
|
|
@@ -18410,8 +16176,7 @@ const Switch = (props) => {
|
|
|
18410
16176
|
return `${classPrefix2} ${value ? "nut-switch-open" : "nut-switch-close"} ${disabled ? `${classPrefix2}-disabled` : ""} ${`${classPrefix2}-base`} ${className}`;
|
|
18411
16177
|
};
|
|
18412
16178
|
const onClick = (event) => {
|
|
18413
|
-
if (disabled)
|
|
18414
|
-
return;
|
|
16179
|
+
if (disabled) return;
|
|
18415
16180
|
onChange && onChange(!value, event);
|
|
18416
16181
|
setValue(!value);
|
|
18417
16182
|
};
|
|
@@ -18493,17 +16258,13 @@ const TextArea = (props) => {
|
|
|
18493
16258
|
setInputValue(value2);
|
|
18494
16259
|
};
|
|
18495
16260
|
const handleFocus = (event) => {
|
|
18496
|
-
if (disabled)
|
|
18497
|
-
|
|
18498
|
-
if (readOnly)
|
|
18499
|
-
return;
|
|
16261
|
+
if (disabled) return;
|
|
16262
|
+
if (readOnly) return;
|
|
18500
16263
|
onFocus && onFocus(event);
|
|
18501
16264
|
};
|
|
18502
16265
|
const handleBlur = (event) => {
|
|
18503
|
-
if (disabled)
|
|
18504
|
-
|
|
18505
|
-
if (readOnly)
|
|
18506
|
-
return;
|
|
16266
|
+
if (disabled) return;
|
|
16267
|
+
if (readOnly) return;
|
|
18507
16268
|
onBlur && onBlur(event);
|
|
18508
16269
|
};
|
|
18509
16270
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -18881,7 +16642,7 @@ const InternalUploader = (props, ref) => {
|
|
|
18881
16642
|
url: url2,
|
|
18882
16643
|
previewUrl,
|
|
18883
16644
|
headers,
|
|
18884
|
-
timeout
|
|
16645
|
+
timeout,
|
|
18885
16646
|
method: method4,
|
|
18886
16647
|
xhrState,
|
|
18887
16648
|
withCredentials,
|
|
@@ -18949,7 +16710,7 @@ const InternalUploader = (props, ref) => {
|
|
|
18949
16710
|
(_a = fileItem.formData) == null ? void 0 : _a.append(key, value2);
|
|
18950
16711
|
}
|
|
18951
16712
|
uploadOption.formData = fileItem.formData;
|
|
18952
|
-
uploadOption.timeout =
|
|
16713
|
+
uploadOption.timeout = timeout * 1;
|
|
18953
16714
|
uploadOption.method = method4;
|
|
18954
16715
|
uploadOption.xhrState = xhrState;
|
|
18955
16716
|
uploadOption.headers = headers;
|
|
@@ -19320,7 +17081,7 @@ const confirm = (config2, renderFunc) => {
|
|
|
19320
17081
|
render(/* @__PURE__ */ React__default.createElement(ConfirmDialog, { ...props, onCancel: () => onCancel() }), div);
|
|
19321
17082
|
callback && callback();
|
|
19322
17083
|
};
|
|
19323
|
-
const renderFunction =
|
|
17084
|
+
const renderFunction = render$1;
|
|
19324
17085
|
const onConfirm = () => {
|
|
19325
17086
|
const _onConfirm = config2.onConfirm || config2.onConfirm;
|
|
19326
17087
|
const ret = _onConfirm == null ? void 0 : _onConfirm();
|
|
@@ -19476,7 +17237,7 @@ const DialogWrap = (props) => {
|
|
|
19476
17237
|
onClick: onHandleClickOverlay
|
|
19477
17238
|
}
|
|
19478
17239
|
) : null, /* @__PURE__ */ React__default.createElement(
|
|
19479
|
-
CSSTransition
|
|
17240
|
+
CSSTransition,
|
|
19480
17241
|
{
|
|
19481
17242
|
in: visible,
|
|
19482
17243
|
timeout: 300,
|
|
@@ -19529,14 +17290,11 @@ const BaseDialog = (props, ref) => {
|
|
|
19529
17290
|
const classPrefix2 = "nut-dialog";
|
|
19530
17291
|
const [loading, setLoading] = useState(false);
|
|
19531
17292
|
const renderFooter = () => {
|
|
19532
|
-
if (footer === null)
|
|
19533
|
-
return "";
|
|
17293
|
+
if (footer === null) return "";
|
|
19534
17294
|
const handleCancel = (e2) => {
|
|
19535
17295
|
e2.stopPropagation();
|
|
19536
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
19537
|
-
|
|
19538
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
19539
|
-
return;
|
|
17296
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
17297
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
19540
17298
|
onClose == null ? void 0 : onClose();
|
|
19541
17299
|
onCancel == null ? void 0 : onCancel();
|
|
19542
17300
|
};
|
|
@@ -19574,13 +17332,10 @@ const BaseDialog = (props, ref) => {
|
|
|
19574
17332
|
));
|
|
19575
17333
|
};
|
|
19576
17334
|
const renderCloseIcon = () => {
|
|
19577
|
-
if (!closeIcon)
|
|
19578
|
-
return null;
|
|
17335
|
+
if (!closeIcon) return null;
|
|
19579
17336
|
const handleCancel = () => {
|
|
19580
|
-
if (!(beforeCancel == null ? void 0 : beforeCancel()))
|
|
19581
|
-
|
|
19582
|
-
if (!(beforeClose == null ? void 0 : beforeClose()))
|
|
19583
|
-
return;
|
|
17337
|
+
if (!(beforeCancel == null ? void 0 : beforeCancel())) return;
|
|
17338
|
+
if (!(beforeClose == null ? void 0 : beforeClose())) return;
|
|
19584
17339
|
onClose == null ? void 0 : onClose();
|
|
19585
17340
|
onCancel == null ? void 0 : onCancel();
|
|
19586
17341
|
};
|
|
@@ -20058,8 +17813,7 @@ const NoticeBar = (props) => {
|
|
|
20058
17813
|
const { childs, childCount } = useMemo$1(() => {
|
|
20059
17814
|
let childCount2 = 0;
|
|
20060
17815
|
const childs2 = React__default.Children.map(children, (child) => {
|
|
20061
|
-
if (!React__default.isValidElement(child))
|
|
20062
|
-
return null;
|
|
17816
|
+
if (!React__default.isValidElement(child)) return null;
|
|
20063
17817
|
childCount2++;
|
|
20064
17818
|
return child;
|
|
20065
17819
|
});
|
|
@@ -20214,8 +17968,7 @@ const NoticeBar = (props) => {
|
|
|
20214
17968
|
swiperRef.current.autoplayTimer = null;
|
|
20215
17969
|
};
|
|
20216
17970
|
const autoplay = () => {
|
|
20217
|
-
if (childCount <= 1)
|
|
20218
|
-
return;
|
|
17971
|
+
if (childCount <= 1) return;
|
|
20219
17972
|
stopAutoPlay();
|
|
20220
17973
|
swiperRef.current.autoplayTimer = setTimeout(
|
|
20221
17974
|
() => {
|
|
@@ -20226,8 +17979,7 @@ const NoticeBar = (props) => {
|
|
|
20226
17979
|
);
|
|
20227
17980
|
};
|
|
20228
17981
|
const move = ({ pace = 0, offset: offset2 = 0 }) => {
|
|
20229
|
-
if (childCount <= 1)
|
|
20230
|
-
return;
|
|
17982
|
+
if (childCount <= 1) return;
|
|
20231
17983
|
const targetActive = getActive(pace);
|
|
20232
17984
|
const targetOffset = getOffset(targetActive, offset2);
|
|
20233
17985
|
if (Array.isArray(children) && children[0] && targetOffset !== minOffset) {
|
|
@@ -20443,7 +18195,7 @@ let Notification$1 = class Notification extends React.PureComponent {
|
|
|
20443
18195
|
[`${classPrefix$c}-${type4}`]: true
|
|
20444
18196
|
});
|
|
20445
18197
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
20446
|
-
CSSTransition
|
|
18198
|
+
CSSTransition,
|
|
20447
18199
|
{
|
|
20448
18200
|
in: show2,
|
|
20449
18201
|
timeout: 300,
|
|
@@ -20671,8 +18423,7 @@ const Popover = (props) => {
|
|
|
20671
18423
|
const getRootPosition = () => {
|
|
20672
18424
|
var _a, _b;
|
|
20673
18425
|
const styles = {};
|
|
20674
|
-
if (!rootPosition)
|
|
20675
|
-
return {};
|
|
18426
|
+
if (!rootPosition) return {};
|
|
20676
18427
|
const contentWidth = (_a = popoverContentRef.current) == null ? void 0 : _a.clientWidth;
|
|
20677
18428
|
const contentHeight = (_b = popoverContentRef.current) == null ? void 0 : _b.clientHeight;
|
|
20678
18429
|
const { width, height, left, top, right } = rootPosition;
|
|
@@ -20830,10 +18581,10 @@ const Popover = (props) => {
|
|
|
20830
18581
|
Popover.displayName = "NutPopover";
|
|
20831
18582
|
function bound(position, min, max) {
|
|
20832
18583
|
let ret = position;
|
|
20833
|
-
|
|
18584
|
+
{
|
|
20834
18585
|
ret = Math.max(position, min);
|
|
20835
18586
|
}
|
|
20836
|
-
|
|
18587
|
+
{
|
|
20837
18588
|
ret = Math.min(ret, max);
|
|
20838
18589
|
}
|
|
20839
18590
|
return ret;
|
|
@@ -20842,8 +18593,7 @@ function rubberband(distance, dimension, constant) {
|
|
|
20842
18593
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
20843
18594
|
}
|
|
20844
18595
|
function rubberbandIfOutOfBounds(position, min, max, dimension, constant = 0.15) {
|
|
20845
|
-
if (constant === 0)
|
|
20846
|
-
return bound(position, min, max);
|
|
18596
|
+
if (constant === 0) return bound(position, min, max);
|
|
20847
18597
|
if (position < min)
|
|
20848
18598
|
return -rubberband(min - position, dimension, constant) + min;
|
|
20849
18599
|
if (position > max)
|
|
@@ -20928,8 +18678,7 @@ const PullToRefresh = (p) => {
|
|
|
20928
18678
|
}
|
|
20929
18679
|
useDrag(
|
|
20930
18680
|
(state) => {
|
|
20931
|
-
if (status === "refreshing" || status === "complete")
|
|
20932
|
-
return;
|
|
18681
|
+
if (status === "refreshing" || status === "complete") return;
|
|
20933
18682
|
const { event } = state;
|
|
20934
18683
|
if (state.last) {
|
|
20935
18684
|
pullingRef.current = false;
|
|
@@ -20946,12 +18695,10 @@ const PullToRefresh = (p) => {
|
|
|
20946
18695
|
const [, y] = state.movement;
|
|
20947
18696
|
if (state.first && y > 0) {
|
|
20948
18697
|
const target = state.event.target;
|
|
20949
|
-
if (!target || !(target instanceof Element))
|
|
20950
|
-
return;
|
|
18698
|
+
if (!target || !(target instanceof Element)) return;
|
|
20951
18699
|
let scrollParent = getScrollParent(target);
|
|
20952
18700
|
while (true) {
|
|
20953
|
-
if (!scrollParent)
|
|
20954
|
-
return;
|
|
18701
|
+
if (!scrollParent) return;
|
|
20955
18702
|
const scrollTop = getScrollTop(scrollParent);
|
|
20956
18703
|
if (scrollTop > 0) {
|
|
20957
18704
|
return;
|
|
@@ -20963,8 +18710,7 @@ const PullToRefresh = (p) => {
|
|
|
20963
18710
|
}
|
|
20964
18711
|
pullingRef.current = true;
|
|
20965
18712
|
}
|
|
20966
|
-
if (!pullingRef.current)
|
|
20967
|
-
return;
|
|
18713
|
+
if (!pullingRef.current) return;
|
|
20968
18714
|
if (event.cancelable) {
|
|
20969
18715
|
event.preventDefault();
|
|
20970
18716
|
}
|
|
@@ -20999,14 +18745,10 @@ const PullToRefresh = (p) => {
|
|
|
20999
18745
|
if (props.renderText) {
|
|
21000
18746
|
return (_a = props.renderText) == null ? void 0 : _a.call(props, status);
|
|
21001
18747
|
}
|
|
21002
|
-
if (status === "pulling")
|
|
21003
|
-
|
|
21004
|
-
if (status === "
|
|
21005
|
-
|
|
21006
|
-
if (status === "refreshing")
|
|
21007
|
-
return props.refreshingText;
|
|
21008
|
-
if (status === "complete")
|
|
21009
|
-
return props.completeText;
|
|
18748
|
+
if (status === "pulling") return props.pullingText;
|
|
18749
|
+
if (status === "canRelease") return props.canReleaseText;
|
|
18750
|
+
if (status === "refreshing") return props.refreshingText;
|
|
18751
|
+
if (status === "complete") return props.completeText;
|
|
21010
18752
|
return "";
|
|
21011
18753
|
};
|
|
21012
18754
|
return /* @__PURE__ */ React__default.createElement(animated.div, { ref: elementRef, className: classes, style: props.style }, /* @__PURE__ */ React__default.createElement(animated.div, { style: springStyles, className: `${classPrefix2}-head` }, /* @__PURE__ */ React__default.createElement(
|
|
@@ -21222,7 +18964,7 @@ function preventDefault(event, isStopPropagation) {
|
|
|
21222
18964
|
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
21223
18965
|
event.preventDefault();
|
|
21224
18966
|
}
|
|
21225
|
-
|
|
18967
|
+
{
|
|
21226
18968
|
event.stopPropagation();
|
|
21227
18969
|
}
|
|
21228
18970
|
}
|
|
@@ -21271,7 +19013,7 @@ const Swipe = forwardRef((props, instanceRef) => {
|
|
|
21271
19013
|
const newState = { ...state, dragging: true };
|
|
21272
19014
|
const isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
21273
19015
|
if (isEdge) {
|
|
21274
|
-
preventDefault(event
|
|
19016
|
+
preventDefault(event);
|
|
21275
19017
|
}
|
|
21276
19018
|
newState.offset = rangeCalculation(
|
|
21277
19019
|
touch.deltaX.current + startOffset.current,
|
|
@@ -22328,8 +20070,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
22328
20070
|
// 设置了 startTime 时,与 date.now() 的差异
|
|
22329
20071
|
});
|
|
22330
20072
|
const getTimeStamp = (timeStr) => {
|
|
22331
|
-
if (!timeStr)
|
|
22332
|
-
return Date.now();
|
|
20073
|
+
if (!timeStr) return Date.now();
|
|
22333
20074
|
let t2 = timeStr;
|
|
22334
20075
|
t2 = Number(t2) > 0 ? +t2 : t2.toString().replace(/-/g, "/");
|
|
22335
20076
|
return new Date(t2).getTime();
|
|
@@ -22341,8 +20082,7 @@ const InternalCountDown = (props, ref) => {
|
|
|
22341
20082
|
stateRef.current.handleEndTime = endTime;
|
|
22342
20083
|
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime);
|
|
22343
20084
|
}
|
|
22344
|
-
if (!stateRef.current.counting)
|
|
22345
|
-
stateRef.current.counting = true;
|
|
20085
|
+
if (!stateRef.current.counting) stateRef.current.counting = true;
|
|
22346
20086
|
tick();
|
|
22347
20087
|
};
|
|
22348
20088
|
const tick = () => {
|
|
@@ -22561,8 +20301,7 @@ const Ellipsis = (props) => {
|
|
|
22561
20301
|
}
|
|
22562
20302
|
}, [content]);
|
|
22563
20303
|
const createContainer = () => {
|
|
22564
|
-
if (!root2.current)
|
|
22565
|
-
return;
|
|
20304
|
+
if (!root2.current) return;
|
|
22566
20305
|
const originStyle = window.getComputedStyle(root2.current);
|
|
22567
20306
|
container = document.createElement("div");
|
|
22568
20307
|
const styleNames = Array.prototype.slice.apply(originStyle);
|
|
@@ -22656,8 +20395,7 @@ const Ellipsis = (props) => {
|
|
|
22656
20395
|
);
|
|
22657
20396
|
};
|
|
22658
20397
|
const pxToNumber = (value) => {
|
|
22659
|
-
if (!value)
|
|
22660
|
-
return 0;
|
|
20398
|
+
if (!value) return 0;
|
|
22661
20399
|
const match = value.match(/^\d*(\.\d*)?/);
|
|
22662
20400
|
return match ? Number(match[0]) : 0;
|
|
22663
20401
|
};
|
|
@@ -22885,12 +20623,10 @@ const focusEffect = (args) => {
|
|
|
22885
20623
|
[isVertical ? "top" : "left"]: `-${index * 100}%`,
|
|
22886
20624
|
scale: springs.s.to((ss) => {
|
|
22887
20625
|
const scales = getRefValue(transforms);
|
|
22888
|
-
if (!scales)
|
|
22889
|
-
return 1;
|
|
20626
|
+
if (!scales) return 1;
|
|
22890
20627
|
const scale = scales[index];
|
|
22891
20628
|
const currentRefValue = getRefValue(current);
|
|
22892
|
-
if (dragging === false)
|
|
22893
|
-
ss = 0;
|
|
20629
|
+
if (dragging === false) ss = 0;
|
|
22894
20630
|
const ps = ss * scale;
|
|
22895
20631
|
if (index === currentRefValue) {
|
|
22896
20632
|
return Math.max(scale - ps, effect.scale);
|
|
@@ -22962,19 +20698,16 @@ const Swiper = React__default.forwardRef(
|
|
|
22962
20698
|
return c6;
|
|
22963
20699
|
}, [children]);
|
|
22964
20700
|
const getSlideSize = () => {
|
|
22965
|
-
if (props.slideSize)
|
|
22966
|
-
return props.slideSize;
|
|
20701
|
+
if (props.slideSize) return props.slideSize;
|
|
22967
20702
|
if (stageRef.current) {
|
|
22968
|
-
if (isVertical)
|
|
22969
|
-
return stageRef.current.offsetHeight;
|
|
20703
|
+
if (isVertical) return stageRef.current.offsetHeight;
|
|
22970
20704
|
return stageRef.current.offsetWidth;
|
|
22971
20705
|
}
|
|
22972
20706
|
return 0;
|
|
22973
20707
|
};
|
|
22974
20708
|
const getSwiperSize = () => {
|
|
22975
20709
|
if (swiperRef.current) {
|
|
22976
|
-
if (isVertical)
|
|
22977
|
-
return swiperRef.current.offsetHeight;
|
|
20710
|
+
if (isVertical) return swiperRef.current.offsetHeight;
|
|
22978
20711
|
return swiperRef.current.offsetWidth;
|
|
22979
20712
|
}
|
|
22980
20713
|
return 0;
|
|
@@ -23018,12 +20751,10 @@ const Swiper = React__default.forwardRef(
|
|
|
23018
20751
|
}, d);
|
|
23019
20752
|
};
|
|
23020
20753
|
useEffect(() => {
|
|
23021
|
-
if (!autoPlay || dragging)
|
|
23022
|
-
return;
|
|
20754
|
+
if (!autoPlay || dragging) return;
|
|
23023
20755
|
runTimeSwiper();
|
|
23024
20756
|
return () => {
|
|
23025
|
-
if (timeoutRef.current)
|
|
23026
|
-
window.clearTimeout(timeoutRef.current);
|
|
20757
|
+
if (timeoutRef.current) window.clearTimeout(timeoutRef.current);
|
|
23027
20758
|
};
|
|
23028
20759
|
}, [autoPlay, duration, dragging, count]);
|
|
23029
20760
|
function boundIndex(current2) {
|
|
@@ -23106,8 +20837,7 @@ const Swiper = React__default.forwardRef(
|
|
|
23106
20837
|
},
|
|
23107
20838
|
triggerAllEvents: true,
|
|
23108
20839
|
bounds: () => {
|
|
23109
|
-
if (loop2)
|
|
23110
|
-
return {};
|
|
20840
|
+
if (loop2) return {};
|
|
23111
20841
|
const slideSize = getSlideSize();
|
|
23112
20842
|
getSwiperSize();
|
|
23113
20843
|
if (isVertical) {
|
|
@@ -23124,10 +20854,8 @@ const Swiper = React__default.forwardRef(
|
|
|
23124
20854
|
}
|
|
23125
20855
|
);
|
|
23126
20856
|
const renderIndicator = () => {
|
|
23127
|
-
if (React__default.isValidElement(indicator))
|
|
23128
|
-
|
|
23129
|
-
if (!indicator)
|
|
23130
|
-
return null;
|
|
20857
|
+
if (React__default.isValidElement(indicator)) return indicator;
|
|
20858
|
+
if (!indicator) return null;
|
|
23131
20859
|
return /* @__PURE__ */ React__default.createElement(
|
|
23132
20860
|
"div",
|
|
23133
20861
|
{
|
|
@@ -23511,8 +21239,7 @@ const Pagination = (props) => {
|
|
|
23511
21239
|
return items;
|
|
23512
21240
|
}, [currentPage, itemSize, pageCount]);
|
|
23513
21241
|
const handleSelectPage = (curPage) => {
|
|
23514
|
-
if (curPage > pageCount || curPage < 1)
|
|
23515
|
-
return;
|
|
21242
|
+
if (curPage > pageCount || curPage < 1) return;
|
|
23516
21243
|
setCurrentPage(curPage);
|
|
23517
21244
|
};
|
|
23518
21245
|
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), ...rest }, (mode === "multi" || mode === "simple") && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
@@ -23662,8 +21389,7 @@ const Step = (props) => {
|
|
|
23662
21389
|
const dot = parent.propSteps.dot;
|
|
23663
21390
|
const getCurrentStatus = () => {
|
|
23664
21391
|
const index = value;
|
|
23665
|
-
if (index < +parent.propSteps.value)
|
|
23666
|
-
return "finish";
|
|
21392
|
+
if (index < +parent.propSteps.value) return "finish";
|
|
23667
21393
|
return index === +parent.propSteps.value ? "process" : "wait";
|
|
23668
21394
|
};
|
|
23669
21395
|
const handleClickStep = () => {
|
|
@@ -24294,11 +22020,8 @@ const updateItemSize = (positions, items, sizeKey, margin) => {
|
|
|
24294
22020
|
Array.from(items).forEach((item) => {
|
|
24295
22021
|
const index = Number(item.getAttribute("data-index"));
|
|
24296
22022
|
const styleVal = item.getAttribute("style");
|
|
24297
|
-
if (styleVal && styleVal.includes("none"))
|
|
24298
|
-
return;
|
|
22023
|
+
if (styleVal && styleVal.includes("none")) return;
|
|
24299
22024
|
let nowSize = item.getBoundingClientRect()[sizeKey];
|
|
24300
|
-
if (margin)
|
|
24301
|
-
nowSize += margin;
|
|
24302
22025
|
const oldSize = positions[index][sizeKey];
|
|
24303
22026
|
const dValue = oldSize - nowSize;
|
|
24304
22027
|
if (dValue) {
|
|
@@ -24385,14 +22108,12 @@ const VirtualList = (props) => {
|
|
|
24385
22108
|
return ((_a = scrollRef.current) == null ? void 0 : _a.parentElement) || document.body;
|
|
24386
22109
|
}, []);
|
|
24387
22110
|
useEffect(() => {
|
|
24388
|
-
if (containerHeight)
|
|
24389
|
-
return;
|
|
22111
|
+
if (containerHeight) return;
|
|
24390
22112
|
const size = horizontal ? getElement().offsetWidth : getElement().offsetHeight;
|
|
24391
22113
|
setOffSetSize(size);
|
|
24392
22114
|
}, [getElement, horizontal, containerHeight]);
|
|
24393
22115
|
useEffect(() => {
|
|
24394
|
-
if (offSetSize === 0)
|
|
24395
|
-
return;
|
|
22116
|
+
if (offSetSize === 0) return;
|
|
24396
22117
|
const count = Math.ceil(offSetSize / itemHeight) + overscan;
|
|
24397
22118
|
setVisibleCount(count);
|
|
24398
22119
|
setOptions((options22) => {
|
|
@@ -24400,11 +22121,9 @@ const VirtualList = (props) => {
|
|
|
24400
22121
|
});
|
|
24401
22122
|
}, [getElement, horizontal, itemHeight, overscan, offSetSize]);
|
|
24402
22123
|
const updateTotalSize = useCallback(() => {
|
|
24403
|
-
if (!itemsRef.current)
|
|
24404
|
-
return;
|
|
22124
|
+
if (!itemsRef.current) return;
|
|
24405
22125
|
const items = itemsRef.current.children;
|
|
24406
|
-
if (!items.length)
|
|
24407
|
-
return;
|
|
22126
|
+
if (!items.length) return;
|
|
24408
22127
|
updateItemSize(positions, items, sizeKey);
|
|
24409
22128
|
const totalSize = getListTotalSize(positions, horizontal);
|
|
24410
22129
|
setListTotalSize(totalSize);
|
|
@@ -25165,8 +22884,7 @@ const AvatarCropper = (props) => {
|
|
|
25165
22884
|
const { img, width, height, x, y, swidth } = drawImage;
|
|
25166
22885
|
const { moveX, moveY, scale, angle, displayWidth, displayHeight } = state;
|
|
25167
22886
|
const canvas = canvasRef.current;
|
|
25168
|
-
if (!canvas)
|
|
25169
|
-
return;
|
|
22887
|
+
if (!canvas) return;
|
|
25170
22888
|
const ctx2 = canvas.getContext("2d");
|
|
25171
22889
|
canvas.width = displayWidth;
|
|
25172
22890
|
canvas.height = displayHeight;
|
|
@@ -25196,8 +22914,7 @@ const AvatarCropper = (props) => {
|
|
|
25196
22914
|
}, [state, maxMoveX, maxMoveY, draw]);
|
|
25197
22915
|
const setDrawImgs = (image) => {
|
|
25198
22916
|
const rect = getRect(cropperPopupRef.current);
|
|
25199
|
-
if (!rect)
|
|
25200
|
-
return;
|
|
22917
|
+
if (!rect) return;
|
|
25201
22918
|
const { width: clientWidth, height: clientHeight } = rect;
|
|
25202
22919
|
const canvasWidth = state.displayWidth = clientWidth * devicePixelRatio;
|
|
25203
22920
|
const canvasHeight = state.displayHeight = clientHeight * devicePixelRatio;
|
|
@@ -25223,8 +22940,7 @@ const AvatarCropper = (props) => {
|
|
|
25223
22940
|
setVisible(true);
|
|
25224
22941
|
const $el = event.target;
|
|
25225
22942
|
const { files } = $el;
|
|
25226
|
-
if (!(files == null ? void 0 : files.length))
|
|
25227
|
-
return;
|
|
22943
|
+
if (!(files == null ? void 0 : files.length)) return;
|
|
25228
22944
|
const base64 = await fileToDataURL(files[0]);
|
|
25229
22945
|
const image = await dataURLToImage(base64);
|
|
25230
22946
|
setDrawImgs(image);
|
|
@@ -25463,7 +23179,7 @@ export {
|
|
|
25463
23179
|
NumberKeyboard,
|
|
25464
23180
|
Overlay,
|
|
25465
23181
|
Pagination,
|
|
25466
|
-
Picker
|
|
23182
|
+
Picker,
|
|
25467
23183
|
Popover,
|
|
25468
23184
|
Popup,
|
|
25469
23185
|
Price,
|