ovirt-ui-toolkit 0.0.125 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ovirt-ui-toolkit.es.js +355 -351
- package/dist/ovirt-ui-toolkit.umd.js +14 -14
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Fe, { forwardRef as Or, memo as zr, useCallback as wt, useMemo as Dr, PureComponent as Jt, createElement as St, useState as $e,
|
|
1
|
+
import Fe, { forwardRef as Or, memo as zr, useCallback as wt, useMemo as Dr, PureComponent as Jt, createElement as St, useState as $e, useEffect as Le, useRef as Kt } from "react";
|
|
2
2
|
import Zt, { flushSync as Qt } from "react-dom";
|
|
3
3
|
function jr(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -38,11 +38,11 @@ function Mr() {
|
|
|
38
38
|
Rt = 1;
|
|
39
39
|
var r = Fe, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
40
|
function l(a, f, p) {
|
|
41
|
-
var g, h = {}, y = null,
|
|
42
|
-
p !== void 0 && (y = "" + p), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (
|
|
41
|
+
var g, h = {}, y = null, w = null;
|
|
42
|
+
p !== void 0 && (y = "" + p), f.key !== void 0 && (y = "" + f.key), f.ref !== void 0 && (w = f.ref);
|
|
43
43
|
for (g in f) e.call(f, g) && !o.hasOwnProperty(g) && (h[g] = f[g]);
|
|
44
44
|
if (a && a.defaultProps) for (g in f = a.defaultProps, f) h[g] === void 0 && (h[g] = f[g]);
|
|
45
|
-
return { $$typeof: n, type: a, key: y, ref:
|
|
45
|
+
return { $$typeof: n, type: a, key: y, ref: w, props: h, _owner: i.current };
|
|
46
46
|
}
|
|
47
47
|
return Pe.Fragment = t, Pe.jsx = l, Pe.jsxs = l, Pe;
|
|
48
48
|
}
|
|
@@ -59,45 +59,45 @@ var Te = {};
|
|
|
59
59
|
var Et;
|
|
60
60
|
function Ar() {
|
|
61
61
|
return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
|
|
62
|
-
var r = Fe, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"),
|
|
63
|
-
function
|
|
62
|
+
var r = Fe, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.iterator, T = "@@iterator";
|
|
63
|
+
function E(s) {
|
|
64
64
|
if (s === null || typeof s != "object")
|
|
65
65
|
return null;
|
|
66
|
-
var
|
|
67
|
-
return typeof
|
|
66
|
+
var _ = P && s[P] || s[T];
|
|
67
|
+
return typeof _ == "function" ? _ : null;
|
|
68
68
|
}
|
|
69
69
|
var b = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
70
70
|
function d(s) {
|
|
71
71
|
{
|
|
72
|
-
for (var
|
|
72
|
+
for (var _ = arguments.length, z = new Array(_ > 1 ? _ - 1 : 0), N = 1; N < _; N++)
|
|
73
73
|
z[N - 1] = arguments[N];
|
|
74
74
|
v("error", s, z);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function v(s,
|
|
77
|
+
function v(s, _, z) {
|
|
78
78
|
{
|
|
79
79
|
var N = b.ReactDebugCurrentFrame, G = N.getStackAddendum();
|
|
80
|
-
G !== "" && (
|
|
80
|
+
G !== "" && (_ += "%s", z = z.concat([G]));
|
|
81
81
|
var Z = z.map(function(q) {
|
|
82
82
|
return String(q);
|
|
83
83
|
});
|
|
84
|
-
Z.unshift("Warning: " +
|
|
84
|
+
Z.unshift("Warning: " + _), Function.prototype.apply.call(console[s], console, Z);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
var x = !1, c = !1, j = !1, u = !1, m = !1, C;
|
|
88
88
|
C = Symbol.for("react.module.reference");
|
|
89
89
|
function M(s) {
|
|
90
|
-
return !!(typeof s == "string" || typeof s == "function" || s === e || s === o || m || s === i || s === p || s === g || u || s ===
|
|
90
|
+
return !!(typeof s == "string" || typeof s == "function" || s === e || s === o || m || s === i || s === p || s === g || u || s === w || x || c || j || typeof s == "object" && s !== null && (s.$$typeof === y || s.$$typeof === h || s.$$typeof === l || s.$$typeof === a || s.$$typeof === f || // This needs to include all possible module reference object
|
|
91
91
|
// types supported by any Flight configuration anywhere since
|
|
92
92
|
// we don't know which Flight build this will end up being used
|
|
93
93
|
// with.
|
|
94
94
|
s.$$typeof === C || s.getModuleId !== void 0));
|
|
95
95
|
}
|
|
96
|
-
function V(s,
|
|
96
|
+
function V(s, _, z) {
|
|
97
97
|
var N = s.displayName;
|
|
98
98
|
if (N)
|
|
99
99
|
return N;
|
|
100
|
-
var G =
|
|
100
|
+
var G = _.displayName || _.name || "";
|
|
101
101
|
return G !== "" ? z + "(" + G + ")" : z;
|
|
102
102
|
}
|
|
103
103
|
function A(s) {
|
|
@@ -127,8 +127,8 @@ function Ar() {
|
|
|
127
127
|
if (typeof s == "object")
|
|
128
128
|
switch (s.$$typeof) {
|
|
129
129
|
case a:
|
|
130
|
-
var
|
|
131
|
-
return A(
|
|
130
|
+
var _ = s;
|
|
131
|
+
return A(_) + ".Consumer";
|
|
132
132
|
case l:
|
|
133
133
|
var z = s;
|
|
134
134
|
return A(z._context) + ".Provider";
|
|
@@ -148,14 +148,14 @@ function Ar() {
|
|
|
148
148
|
}
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
|
-
var Q = Object.assign, se = 0, ee, ae, ce, de,
|
|
151
|
+
var Q = Object.assign, se = 0, ee, ae, ce, de, S, D, $;
|
|
152
152
|
function F() {
|
|
153
153
|
}
|
|
154
154
|
F.__reactDisabledLog = !0;
|
|
155
155
|
function W() {
|
|
156
156
|
{
|
|
157
157
|
if (se === 0) {
|
|
158
|
-
ee = console.log, ae = console.info, ce = console.warn, de = console.error,
|
|
158
|
+
ee = console.log, ae = console.info, ce = console.warn, de = console.error, S = console.group, D = console.groupCollapsed, $ = console.groupEnd;
|
|
159
159
|
var s = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
@@ -197,7 +197,7 @@ function Ar() {
|
|
|
197
197
|
value: de
|
|
198
198
|
}),
|
|
199
199
|
group: Q({}, s, {
|
|
200
|
-
value:
|
|
200
|
+
value: S
|
|
201
201
|
}),
|
|
202
202
|
groupCollapsed: Q({}, s, {
|
|
203
203
|
value: D
|
|
@@ -211,7 +211,7 @@ function Ar() {
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
var k = b.ReactCurrentDispatcher, I;
|
|
214
|
-
function L(s,
|
|
214
|
+
function L(s, _, z) {
|
|
215
215
|
{
|
|
216
216
|
if (I === void 0)
|
|
217
217
|
try {
|
|
@@ -229,7 +229,7 @@ function Ar() {
|
|
|
229
229
|
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
230
230
|
H = new le();
|
|
231
231
|
}
|
|
232
|
-
function O(s,
|
|
232
|
+
function O(s, _) {
|
|
233
233
|
if (!s || X)
|
|
234
234
|
return "";
|
|
235
235
|
{
|
|
@@ -244,7 +244,7 @@ function Ar() {
|
|
|
244
244
|
var Z;
|
|
245
245
|
Z = k.current, k.current = null, W();
|
|
246
246
|
try {
|
|
247
|
-
if (
|
|
247
|
+
if (_) {
|
|
248
248
|
var q = function() {
|
|
249
249
|
throw Error();
|
|
250
250
|
};
|
|
@@ -300,14 +300,14 @@ function Ar() {
|
|
|
300
300
|
var Re = s ? s.displayName || s.name : "", xe = Re ? L(Re) : "";
|
|
301
301
|
return typeof s == "function" && H.set(s, xe), xe;
|
|
302
302
|
}
|
|
303
|
-
function pe(s,
|
|
303
|
+
function pe(s, _, z) {
|
|
304
304
|
return O(s, !1);
|
|
305
305
|
}
|
|
306
306
|
function we(s) {
|
|
307
|
-
var
|
|
308
|
-
return !!(
|
|
307
|
+
var _ = s.prototype;
|
|
308
|
+
return !!(_ && _.isReactComponent);
|
|
309
309
|
}
|
|
310
|
-
function be(s,
|
|
310
|
+
function be(s, _, z) {
|
|
311
311
|
if (s == null)
|
|
312
312
|
return "";
|
|
313
313
|
if (typeof s == "function")
|
|
@@ -325,11 +325,11 @@ function Ar() {
|
|
|
325
325
|
case f:
|
|
326
326
|
return pe(s.render);
|
|
327
327
|
case h:
|
|
328
|
-
return be(s.type,
|
|
328
|
+
return be(s.type, _, z);
|
|
329
329
|
case y: {
|
|
330
330
|
var N = s, G = N._payload, Z = N._init;
|
|
331
331
|
try {
|
|
332
|
-
return be(Z(G),
|
|
332
|
+
return be(Z(G), _, z);
|
|
333
333
|
} catch {
|
|
334
334
|
}
|
|
335
335
|
}
|
|
@@ -339,12 +339,12 @@ function Ar() {
|
|
|
339
339
|
var _e = Object.prototype.hasOwnProperty, at = {}, lt = b.ReactDebugCurrentFrame;
|
|
340
340
|
function ze(s) {
|
|
341
341
|
if (s) {
|
|
342
|
-
var
|
|
342
|
+
var _ = s._owner, z = be(s.type, s._source, _ ? _.type : null);
|
|
343
343
|
lt.setExtraStackFrame(z);
|
|
344
344
|
} else
|
|
345
345
|
lt.setExtraStackFrame(null);
|
|
346
346
|
}
|
|
347
|
-
function ar(s,
|
|
347
|
+
function ar(s, _, z, N, G) {
|
|
348
348
|
{
|
|
349
349
|
var Z = Function.call.bind(_e);
|
|
350
350
|
for (var q in s)
|
|
@@ -355,7 +355,7 @@ function Ar() {
|
|
|
355
355
|
var ue = Error((N || "React class") + ": " + z + " type `" + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
356
356
|
throw ue.name = "Invariant Violation", ue;
|
|
357
357
|
}
|
|
358
|
-
Y = s[q](
|
|
358
|
+
Y = s[q](_, q, N, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
359
359
|
} catch (te) {
|
|
360
360
|
Y = te;
|
|
361
361
|
}
|
|
@@ -364,12 +364,12 @@ function Ar() {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
var lr = Array.isArray;
|
|
367
|
-
function
|
|
367
|
+
function Ye(s) {
|
|
368
368
|
return lr(s);
|
|
369
369
|
}
|
|
370
370
|
function ur(s) {
|
|
371
371
|
{
|
|
372
|
-
var
|
|
372
|
+
var _ = typeof Symbol == "function" && Symbol.toStringTag, z = _ && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
373
373
|
return z;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -395,27 +395,27 @@ function Ar() {
|
|
|
395
395
|
}, dt, pt;
|
|
396
396
|
function dr(s) {
|
|
397
397
|
if (_e.call(s, "ref")) {
|
|
398
|
-
var
|
|
399
|
-
if (
|
|
398
|
+
var _ = Object.getOwnPropertyDescriptor(s, "ref").get;
|
|
399
|
+
if (_ && _.isReactWarning)
|
|
400
400
|
return !1;
|
|
401
401
|
}
|
|
402
402
|
return s.ref !== void 0;
|
|
403
403
|
}
|
|
404
404
|
function pr(s) {
|
|
405
405
|
if (_e.call(s, "key")) {
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
406
|
+
var _ = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
407
|
+
if (_ && _.isReactWarning)
|
|
408
408
|
return !1;
|
|
409
409
|
}
|
|
410
410
|
return s.key !== void 0;
|
|
411
411
|
}
|
|
412
|
-
function hr(s,
|
|
412
|
+
function hr(s, _) {
|
|
413
413
|
typeof s.ref == "string" && ft.current;
|
|
414
414
|
}
|
|
415
|
-
function gr(s,
|
|
415
|
+
function gr(s, _) {
|
|
416
416
|
{
|
|
417
417
|
var z = function() {
|
|
418
|
-
dt || (dt = !0, 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)",
|
|
418
|
+
dt || (dt = !0, 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)", _));
|
|
419
419
|
};
|
|
420
420
|
z.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
421
421
|
get: z,
|
|
@@ -423,10 +423,10 @@ function Ar() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function vr(s,
|
|
426
|
+
function vr(s, _) {
|
|
427
427
|
{
|
|
428
428
|
var z = function() {
|
|
429
|
-
pt || (pt = !0, 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)",
|
|
429
|
+
pt || (pt = !0, 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)", _));
|
|
430
430
|
};
|
|
431
431
|
z.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
|
432
432
|
get: z,
|
|
@@ -434,13 +434,13 @@ function Ar() {
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var mr = function(s,
|
|
437
|
+
var mr = function(s, _, z, N, G, Z, q) {
|
|
438
438
|
var Y = {
|
|
439
439
|
// This tag allows us to uniquely identify this as a React Element
|
|
440
440
|
$$typeof: n,
|
|
441
441
|
// Built-in properties that belong on the element
|
|
442
442
|
type: s,
|
|
443
|
-
key:
|
|
443
|
+
key: _,
|
|
444
444
|
ref: z,
|
|
445
445
|
props: q,
|
|
446
446
|
// Record the component responsible for creating this element.
|
|
@@ -463,12 +463,12 @@ function Ar() {
|
|
|
463
463
|
value: G
|
|
464
464
|
}), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
|
|
465
465
|
};
|
|
466
|
-
function yr(s,
|
|
466
|
+
function yr(s, _, z, N, G) {
|
|
467
467
|
{
|
|
468
468
|
var Z, q = {}, Y = null, ue = null;
|
|
469
|
-
z !== void 0 && (ct(z), Y = "" + z), pr(
|
|
470
|
-
for (Z in
|
|
471
|
-
_e.call(
|
|
469
|
+
z !== void 0 && (ct(z), Y = "" + z), pr(_) && (ct(_.key), Y = "" + _.key), dr(_) && (ue = _.ref, hr(_, G));
|
|
470
|
+
for (Z in _)
|
|
471
|
+
_e.call(_, Z) && !fr.hasOwnProperty(Z) && (q[Z] = _[Z]);
|
|
472
472
|
if (s && s.defaultProps) {
|
|
473
473
|
var te = s.defaultProps;
|
|
474
474
|
for (Z in te)
|
|
@@ -481,23 +481,23 @@ function Ar() {
|
|
|
481
481
|
return mr(s, Y, ue, G, N, ft.current, q);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
var
|
|
484
|
+
var Be = b.ReactCurrentOwner, ht = b.ReactDebugCurrentFrame;
|
|
485
485
|
function Se(s) {
|
|
486
486
|
if (s) {
|
|
487
|
-
var
|
|
487
|
+
var _ = s._owner, z = be(s.type, s._source, _ ? _.type : null);
|
|
488
488
|
ht.setExtraStackFrame(z);
|
|
489
489
|
} else
|
|
490
490
|
ht.setExtraStackFrame(null);
|
|
491
491
|
}
|
|
492
|
-
var
|
|
493
|
-
|
|
494
|
-
function
|
|
492
|
+
var Ue;
|
|
493
|
+
Ue = !1;
|
|
494
|
+
function qe(s) {
|
|
495
495
|
return typeof s == "object" && s !== null && s.$$typeof === n;
|
|
496
496
|
}
|
|
497
497
|
function gt() {
|
|
498
498
|
{
|
|
499
|
-
if (
|
|
500
|
-
var s = B(
|
|
499
|
+
if (Be.current) {
|
|
500
|
+
var s = B(Be.current.type);
|
|
501
501
|
if (s)
|
|
502
502
|
return `
|
|
503
503
|
|
|
@@ -512,77 +512,77 @@ Check the render method of \`` + s + "`.";
|
|
|
512
512
|
var vt = {};
|
|
513
513
|
function xr(s) {
|
|
514
514
|
{
|
|
515
|
-
var
|
|
516
|
-
if (!
|
|
515
|
+
var _ = gt();
|
|
516
|
+
if (!_) {
|
|
517
517
|
var z = typeof s == "string" ? s : s.displayName || s.name;
|
|
518
|
-
z && (
|
|
518
|
+
z && (_ = `
|
|
519
519
|
|
|
520
520
|
Check the top-level render call using <` + z + ">.");
|
|
521
521
|
}
|
|
522
|
-
return
|
|
522
|
+
return _;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function mt(s,
|
|
525
|
+
function mt(s, _) {
|
|
526
526
|
{
|
|
527
527
|
if (!s._store || s._store.validated || s.key != null)
|
|
528
528
|
return;
|
|
529
529
|
s._store.validated = !0;
|
|
530
|
-
var z = xr(
|
|
530
|
+
var z = xr(_);
|
|
531
531
|
if (vt[z])
|
|
532
532
|
return;
|
|
533
533
|
vt[z] = !0;
|
|
534
534
|
var N = "";
|
|
535
|
-
s && s._owner && s._owner !==
|
|
535
|
+
s && s._owner && s._owner !== Be.current && (N = " It was passed a child from " + B(s._owner.type) + "."), Se(s), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, N), Se(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function yt(s,
|
|
538
|
+
function yt(s, _) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof s != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (Ye(s))
|
|
543
543
|
for (var z = 0; z < s.length; z++) {
|
|
544
544
|
var N = s[z];
|
|
545
|
-
|
|
545
|
+
qe(N) && mt(N, _);
|
|
546
546
|
}
|
|
547
|
-
else if (
|
|
547
|
+
else if (qe(s))
|
|
548
548
|
s._store && (s._store.validated = !0);
|
|
549
549
|
else if (s) {
|
|
550
|
-
var G =
|
|
550
|
+
var G = E(s);
|
|
551
551
|
if (typeof G == "function" && G !== s.entries)
|
|
552
552
|
for (var Z = G.call(s), q; !(q = Z.next()).done; )
|
|
553
|
-
|
|
553
|
+
qe(q.value) && mt(q.value, _);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function wr(s) {
|
|
558
558
|
{
|
|
559
|
-
var
|
|
560
|
-
if (
|
|
559
|
+
var _ = s.type;
|
|
560
|
+
if (_ == null || typeof _ == "string")
|
|
561
561
|
return;
|
|
562
562
|
var z;
|
|
563
|
-
if (typeof
|
|
564
|
-
z =
|
|
565
|
-
else if (typeof
|
|
563
|
+
if (typeof _ == "function")
|
|
564
|
+
z = _.propTypes;
|
|
565
|
+
else if (typeof _ == "object" && (_.$$typeof === f || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
|
-
|
|
568
|
-
z =
|
|
567
|
+
_.$$typeof === h))
|
|
568
|
+
z = _.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (z) {
|
|
572
|
-
var N = B(
|
|
572
|
+
var N = B(_);
|
|
573
573
|
ar(z, s.props, "prop", N, s);
|
|
574
|
-
} else if (
|
|
575
|
-
|
|
576
|
-
var G = B(
|
|
574
|
+
} else if (_.PropTypes !== void 0 && !Ue) {
|
|
575
|
+
Ue = !0;
|
|
576
|
+
var G = B(_);
|
|
577
577
|
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof
|
|
579
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
function Sr(s) {
|
|
583
583
|
{
|
|
584
|
-
for (var
|
|
585
|
-
var N =
|
|
584
|
+
for (var _ = Object.keys(s.props), z = 0; z < _.length; z++) {
|
|
585
|
+
var N = _[z];
|
|
586
586
|
if (N !== "children" && N !== "key") {
|
|
587
587
|
Se(s), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), Se(null);
|
|
588
588
|
break;
|
|
@@ -592,7 +592,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
var bt = {};
|
|
595
|
-
function xt(s,
|
|
595
|
+
function xt(s, _, z, N, G, Z) {
|
|
596
596
|
{
|
|
597
597
|
var q = M(s);
|
|
598
598
|
if (!q) {
|
|
@@ -601,16 +601,16 @@ Check the top-level render call using <` + z + ">.");
|
|
|
601
601
|
var ue = br();
|
|
602
602
|
ue ? Y += ue : Y += gt();
|
|
603
603
|
var te;
|
|
604
|
-
s === null ? te = "null" :
|
|
604
|
+
s === null ? te = "null" : Ye(s) ? te = "array" : s !== void 0 && s.$$typeof === n ? (te = "<" + (B(s.type) || "Unknown") + " />", Y = " Did you accidentally export a JSX literal instead of a component?") : te = typeof s, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", te, Y);
|
|
605
605
|
}
|
|
606
|
-
var ne = yr(s,
|
|
606
|
+
var ne = yr(s, _, z, G, Z);
|
|
607
607
|
if (ne == null)
|
|
608
608
|
return ne;
|
|
609
609
|
if (q) {
|
|
610
|
-
var he =
|
|
610
|
+
var he = _.children;
|
|
611
611
|
if (he !== void 0)
|
|
612
612
|
if (N)
|
|
613
|
-
if (
|
|
613
|
+
if (Ye(he)) {
|
|
614
614
|
for (var Re = 0; Re < he.length; Re++)
|
|
615
615
|
yt(he[Re], s);
|
|
616
616
|
Object.freeze && Object.freeze(he);
|
|
@@ -619,28 +619,28 @@ Check the top-level render call using <` + z + ">.");
|
|
|
619
619
|
else
|
|
620
620
|
yt(he, s);
|
|
621
621
|
}
|
|
622
|
-
if (_e.call(
|
|
623
|
-
var xe = B(s), fe = Object.keys(
|
|
622
|
+
if (_e.call(_, "key")) {
|
|
623
|
+
var xe = B(s), fe = Object.keys(_).filter(function(Cr) {
|
|
624
624
|
return Cr !== "key";
|
|
625
|
-
}),
|
|
626
|
-
if (!bt[xe +
|
|
625
|
+
}), Xe = fe.length > 0 ? "{key: someKey, " + fe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
626
|
+
if (!bt[xe + Xe]) {
|
|
627
627
|
var Tr = fe.length > 0 ? "{" + fe.join(": ..., ") + ": ...}" : "{}";
|
|
628
628
|
d(`A props object containing a "key" prop is being spread into JSX:
|
|
629
629
|
let props = %s;
|
|
630
630
|
<%s {...props} />
|
|
631
631
|
React keys must be passed directly to JSX without using spread:
|
|
632
632
|
let props = %s;
|
|
633
|
-
<%s key={someKey} {...props} />`,
|
|
633
|
+
<%s key={someKey} {...props} />`, Xe, xe, Tr, xe), bt[xe + Xe] = !0;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
return s === e ? Sr(ne) : wr(ne), ne;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
function Rr(s,
|
|
640
|
-
return xt(s,
|
|
639
|
+
function Rr(s, _, z) {
|
|
640
|
+
return xt(s, _, z, !0);
|
|
641
641
|
}
|
|
642
|
-
function Er(s,
|
|
643
|
-
return xt(s,
|
|
642
|
+
function Er(s, _, z) {
|
|
643
|
+
return xt(s, _, z, !1);
|
|
644
644
|
}
|
|
645
645
|
var _r = Er, Pr = Rr;
|
|
646
646
|
Te.Fragment = e, Te.jsx = _r, Te.jsxs = Pr;
|
|
@@ -680,7 +680,7 @@ const bn = () => /* @__PURE__ */ R.jsx("div", { className: "toolbar-pf" }), kr =
|
|
|
680
680
|
)
|
|
681
681
|
]
|
|
682
682
|
}
|
|
683
|
-
) }),
|
|
683
|
+
) }), rt = ({
|
|
684
684
|
type: r = "default",
|
|
685
685
|
typeButton: n = "button",
|
|
686
686
|
title: t,
|
|
@@ -780,7 +780,7 @@ const bn = () => /* @__PURE__ */ R.jsx("div", { className: "toolbar-pf" }), kr =
|
|
|
780
780
|
/* @__PURE__ */ R.jsx("div", { className: "modal-body", children: e })
|
|
781
781
|
] }) }) });
|
|
782
782
|
};
|
|
783
|
-
var Ce = { exports: {} },
|
|
783
|
+
var Ce = { exports: {} }, Ve = {}, je = { exports: {} }, Ne = { exports: {} }, J = {};
|
|
784
784
|
/** @license React v16.13.1
|
|
785
785
|
* react-is.production.min.js
|
|
786
786
|
*
|
|
@@ -793,7 +793,7 @@ var Pt;
|
|
|
793
793
|
function Fr() {
|
|
794
794
|
if (Pt) return J;
|
|
795
795
|
Pt = 1;
|
|
796
|
-
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, l = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, y = r ? Symbol.for("react.suspense_list") : 60120,
|
|
796
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, l = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, y = r ? Symbol.for("react.suspense_list") : 60120, w = r ? Symbol.for("react.memo") : 60115, P = r ? Symbol.for("react.lazy") : 60116, T = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, b = r ? Symbol.for("react.responder") : 60118, d = r ? Symbol.for("react.scope") : 60119;
|
|
797
797
|
function v(c) {
|
|
798
798
|
if (typeof c == "object" && c !== null) {
|
|
799
799
|
var j = c.$$typeof;
|
|
@@ -812,7 +812,7 @@ function Fr() {
|
|
|
812
812
|
case a:
|
|
813
813
|
case g:
|
|
814
814
|
case P:
|
|
815
|
-
case
|
|
815
|
+
case w:
|
|
816
816
|
case l:
|
|
817
817
|
return c;
|
|
818
818
|
default:
|
|
@@ -827,7 +827,7 @@ function Fr() {
|
|
|
827
827
|
function x(c) {
|
|
828
828
|
return v(c) === p;
|
|
829
829
|
}
|
|
830
|
-
return J.AsyncMode = f, J.ConcurrentMode = p, J.ContextConsumer = a, J.ContextProvider = l, J.Element = n, J.ForwardRef = g, J.Fragment = e, J.Lazy = P, J.Memo =
|
|
830
|
+
return J.AsyncMode = f, J.ConcurrentMode = p, J.ContextConsumer = a, J.ContextProvider = l, J.Element = n, J.ForwardRef = g, J.Fragment = e, J.Lazy = P, J.Memo = w, J.Portal = t, J.Profiler = o, J.StrictMode = i, J.Suspense = h, J.isAsyncMode = function(c) {
|
|
831
831
|
return x(c) || v(c) === f;
|
|
832
832
|
}, J.isConcurrentMode = x, J.isContextConsumer = function(c) {
|
|
833
833
|
return v(c) === a;
|
|
@@ -842,7 +842,7 @@ function Fr() {
|
|
|
842
842
|
}, J.isLazy = function(c) {
|
|
843
843
|
return v(c) === P;
|
|
844
844
|
}, J.isMemo = function(c) {
|
|
845
|
-
return v(c) ===
|
|
845
|
+
return v(c) === w;
|
|
846
846
|
}, J.isPortal = function(c) {
|
|
847
847
|
return v(c) === t;
|
|
848
848
|
}, J.isProfiler = function(c) {
|
|
@@ -852,7 +852,7 @@ function Fr() {
|
|
|
852
852
|
}, J.isSuspense = function(c) {
|
|
853
853
|
return v(c) === h;
|
|
854
854
|
}, J.isValidElementType = function(c) {
|
|
855
|
-
return typeof c == "string" || typeof c == "function" || c === e || c === p || c === o || c === i || c === h || c === y || typeof c == "object" && c !== null && (c.$$typeof === P || c.$$typeof ===
|
|
855
|
+
return typeof c == "string" || typeof c == "function" || c === e || c === p || c === o || c === i || c === h || c === y || typeof c == "object" && c !== null && (c.$$typeof === P || c.$$typeof === w || c.$$typeof === l || c.$$typeof === a || c.$$typeof === g || c.$$typeof === E || c.$$typeof === b || c.$$typeof === d || c.$$typeof === T);
|
|
856
856
|
}, J.typeOf = v, J;
|
|
857
857
|
}
|
|
858
858
|
var K = {};
|
|
@@ -867,10 +867,10 @@ var K = {};
|
|
|
867
867
|
var Tt;
|
|
868
868
|
function $r() {
|
|
869
869
|
return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
870
|
-
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, l = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, y = r ? Symbol.for("react.suspense_list") : 60120,
|
|
870
|
+
var r = typeof Symbol == "function" && Symbol.for, n = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, o = r ? Symbol.for("react.profiler") : 60114, l = r ? Symbol.for("react.provider") : 60109, a = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, g = r ? Symbol.for("react.forward_ref") : 60112, h = r ? Symbol.for("react.suspense") : 60113, y = r ? Symbol.for("react.suspense_list") : 60120, w = r ? Symbol.for("react.memo") : 60115, P = r ? Symbol.for("react.lazy") : 60116, T = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, b = r ? Symbol.for("react.responder") : 60118, d = r ? Symbol.for("react.scope") : 60119;
|
|
871
871
|
function v(O) {
|
|
872
872
|
return typeof O == "string" || typeof O == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
873
|
-
O === e || O === p || O === o || O === i || O === h || O === y || typeof O == "object" && O !== null && (O.$$typeof === P || O.$$typeof ===
|
|
873
|
+
O === e || O === p || O === o || O === i || O === h || O === y || typeof O == "object" && O !== null && (O.$$typeof === P || O.$$typeof === w || O.$$typeof === l || O.$$typeof === a || O.$$typeof === g || O.$$typeof === E || O.$$typeof === b || O.$$typeof === d || O.$$typeof === T);
|
|
874
874
|
}
|
|
875
875
|
function x(O) {
|
|
876
876
|
if (typeof O == "object" && O !== null) {
|
|
@@ -892,7 +892,7 @@ function $r() {
|
|
|
892
892
|
case a:
|
|
893
893
|
case g:
|
|
894
894
|
case P:
|
|
895
|
-
case
|
|
895
|
+
case w:
|
|
896
896
|
case l:
|
|
897
897
|
return be;
|
|
898
898
|
default:
|
|
@@ -904,11 +904,11 @@ function $r() {
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
var c = f, j = p, u = a, m = l, C = n, M = g, V = e, A = P, B =
|
|
907
|
+
var c = f, j = p, u = a, m = l, C = n, M = g, V = e, A = P, B = w, Q = t, se = o, ee = i, ae = h, ce = !1;
|
|
908
908
|
function de(O) {
|
|
909
|
-
return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
909
|
+
return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(O) || x(O) === f;
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function S(O) {
|
|
912
912
|
return x(O) === p;
|
|
913
913
|
}
|
|
914
914
|
function D(O) {
|
|
@@ -930,7 +930,7 @@ function $r() {
|
|
|
930
930
|
return x(O) === P;
|
|
931
931
|
}
|
|
932
932
|
function I(O) {
|
|
933
|
-
return x(O) ===
|
|
933
|
+
return x(O) === w;
|
|
934
934
|
}
|
|
935
935
|
function L(O) {
|
|
936
936
|
return x(O) === t;
|
|
@@ -944,7 +944,7 @@ function $r() {
|
|
|
944
944
|
function le(O) {
|
|
945
945
|
return x(O) === h;
|
|
946
946
|
}
|
|
947
|
-
K.AsyncMode = c, K.ConcurrentMode = j, K.ContextConsumer = u, K.ContextProvider = m, K.Element = C, K.ForwardRef = M, K.Fragment = V, K.Lazy = A, K.Memo = B, K.Portal = Q, K.Profiler = se, K.StrictMode = ee, K.Suspense = ae, K.isAsyncMode = de, K.isConcurrentMode =
|
|
947
|
+
K.AsyncMode = c, K.ConcurrentMode = j, K.ContextConsumer = u, K.ContextProvider = m, K.Element = C, K.ForwardRef = M, K.Fragment = V, K.Lazy = A, K.Memo = B, K.Portal = Q, K.Profiler = se, K.StrictMode = ee, K.Suspense = ae, K.isAsyncMode = de, K.isConcurrentMode = S, K.isContextConsumer = D, K.isContextProvider = $, K.isElement = F, K.isForwardRef = W, K.isFragment = U, K.isLazy = k, K.isMemo = I, K.isPortal = L, K.isProfiler = X, K.isStrictMode = H, K.isSuspense = le, K.isValidElementType = v, K.typeOf = x;
|
|
948
948
|
}()), K;
|
|
949
949
|
}
|
|
950
950
|
var Ct;
|
|
@@ -956,9 +956,9 @@ object-assign
|
|
|
956
956
|
(c) Sindre Sorhus
|
|
957
957
|
@license MIT
|
|
958
958
|
*/
|
|
959
|
-
var
|
|
959
|
+
var Ge, Ot;
|
|
960
960
|
function Lr() {
|
|
961
|
-
if (Ot) return
|
|
961
|
+
if (Ot) return Ge;
|
|
962
962
|
Ot = 1;
|
|
963
963
|
var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
964
964
|
function e(o) {
|
|
@@ -988,7 +988,7 @@ function Lr() {
|
|
|
988
988
|
return !1;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
return
|
|
991
|
+
return Ge = i() ? Object.assign : function(o, l) {
|
|
992
992
|
for (var a, f = e(o), p, g = 1; g < arguments.length; g++) {
|
|
993
993
|
a = Object(arguments[g]);
|
|
994
994
|
for (var h in a)
|
|
@@ -1000,22 +1000,22 @@ function Lr() {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
return f;
|
|
1003
|
-
},
|
|
1003
|
+
}, Ge;
|
|
1004
1004
|
}
|
|
1005
|
-
var
|
|
1005
|
+
var Je, zt;
|
|
1006
1006
|
function ot() {
|
|
1007
|
-
if (zt) return
|
|
1007
|
+
if (zt) return Je;
|
|
1008
1008
|
zt = 1;
|
|
1009
1009
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1010
|
-
return
|
|
1010
|
+
return Je = r, Je;
|
|
1011
1011
|
}
|
|
1012
|
-
var
|
|
1012
|
+
var Ke, Dt;
|
|
1013
1013
|
function tr() {
|
|
1014
|
-
return Dt || (Dt = 1,
|
|
1014
|
+
return Dt || (Dt = 1, Ke = Function.call.bind(Object.prototype.hasOwnProperty)), Ke;
|
|
1015
1015
|
}
|
|
1016
|
-
var
|
|
1016
|
+
var Ze, jt;
|
|
1017
1017
|
function Hr() {
|
|
1018
|
-
if (jt) return
|
|
1018
|
+
if (jt) return Ze;
|
|
1019
1019
|
jt = 1;
|
|
1020
1020
|
var r = function() {
|
|
1021
1021
|
};
|
|
@@ -1050,9 +1050,9 @@ function Hr() {
|
|
|
1050
1050
|
(f || "React class") + ": type specification of " + a + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1051
1051
|
), h instanceof Error && !(h.message in t)) {
|
|
1052
1052
|
t[h.message] = !0;
|
|
1053
|
-
var
|
|
1053
|
+
var w = p ? p() : "";
|
|
1054
1054
|
r(
|
|
1055
|
-
"Failed " + a + " type: " + h.message + (
|
|
1055
|
+
"Failed " + a + " type: " + h.message + (w ?? "")
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
@@ -1060,11 +1060,11 @@ function Hr() {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
return i.resetWarningCache = function() {
|
|
1062
1062
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1063
|
-
},
|
|
1063
|
+
}, Ze = i, Ze;
|
|
1064
1064
|
}
|
|
1065
|
-
var
|
|
1065
|
+
var Qe, Nt;
|
|
1066
1066
|
function Yr() {
|
|
1067
|
-
if (Nt) return
|
|
1067
|
+
if (Nt) return Qe;
|
|
1068
1068
|
Nt = 1;
|
|
1069
1069
|
var r = er(), n = Lr(), t = /* @__PURE__ */ ot(), e = /* @__PURE__ */ tr(), i = /* @__PURE__ */ Hr(), o = function() {
|
|
1070
1070
|
};
|
|
@@ -1079,14 +1079,14 @@ function Yr() {
|
|
|
1079
1079
|
function l() {
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
1082
|
-
return
|
|
1082
|
+
return Qe = function(a, f) {
|
|
1083
1083
|
var p = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
|
|
1084
|
-
function h(
|
|
1085
|
-
var D =
|
|
1084
|
+
function h(S) {
|
|
1085
|
+
var D = S && (p && S[p] || S[g]);
|
|
1086
1086
|
if (typeof D == "function")
|
|
1087
1087
|
return D;
|
|
1088
1088
|
}
|
|
1089
|
-
var y = "<<anonymous>>",
|
|
1089
|
+
var y = "<<anonymous>>", w = {
|
|
1090
1090
|
array: b("array"),
|
|
1091
1091
|
bigint: b("bigint"),
|
|
1092
1092
|
bool: b("boolean"),
|
|
@@ -1107,14 +1107,14 @@ function Yr() {
|
|
|
1107
1107
|
shape: A,
|
|
1108
1108
|
exact: B
|
|
1109
1109
|
};
|
|
1110
|
-
function P(
|
|
1111
|
-
return
|
|
1110
|
+
function P(S, D) {
|
|
1111
|
+
return S === D ? S !== 0 || 1 / S === 1 / D : S !== S && D !== D;
|
|
1112
1112
|
}
|
|
1113
|
-
function T(
|
|
1114
|
-
this.message =
|
|
1113
|
+
function T(S, D) {
|
|
1114
|
+
this.message = S, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
|
|
1115
1115
|
}
|
|
1116
1116
|
T.prototype = Error.prototype;
|
|
1117
|
-
function
|
|
1117
|
+
function E(S) {
|
|
1118
1118
|
if (process.env.NODE_ENV !== "production")
|
|
1119
1119
|
var D = {}, $ = 0;
|
|
1120
1120
|
function F(U, k, I, L, X, H, le) {
|
|
@@ -1132,31 +1132,31 @@ function Yr() {
|
|
|
1132
1132
|
), D[pe] = !0, $++);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
return k[I] == null ? U ? k[I] === null ? new T("The " + X + " `" + H + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new T("The " + X + " `" + H + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null :
|
|
1135
|
+
return k[I] == null ? U ? k[I] === null ? new T("The " + X + " `" + H + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new T("The " + X + " `" + H + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : S(k, I, L, X, H);
|
|
1136
1136
|
}
|
|
1137
1137
|
var W = F.bind(null, !1);
|
|
1138
1138
|
return W.isRequired = F.bind(null, !0), W;
|
|
1139
1139
|
}
|
|
1140
|
-
function b(
|
|
1140
|
+
function b(S) {
|
|
1141
1141
|
function D($, F, W, U, k, I) {
|
|
1142
1142
|
var L = $[F], X = ee(L);
|
|
1143
|
-
if (X !==
|
|
1143
|
+
if (X !== S) {
|
|
1144
1144
|
var H = ae(L);
|
|
1145
1145
|
return new T(
|
|
1146
|
-
"Invalid " + U + " `" + k + "` of type " + ("`" + H + "` supplied to `" + W + "`, expected ") + ("`" +
|
|
1147
|
-
{ expectedType:
|
|
1146
|
+
"Invalid " + U + " `" + k + "` of type " + ("`" + H + "` supplied to `" + W + "`, expected ") + ("`" + S + "`."),
|
|
1147
|
+
{ expectedType: S }
|
|
1148
1148
|
);
|
|
1149
1149
|
}
|
|
1150
1150
|
return null;
|
|
1151
1151
|
}
|
|
1152
|
-
return
|
|
1152
|
+
return E(D);
|
|
1153
1153
|
}
|
|
1154
1154
|
function d() {
|
|
1155
|
-
return
|
|
1155
|
+
return E(l);
|
|
1156
1156
|
}
|
|
1157
|
-
function v(
|
|
1157
|
+
function v(S) {
|
|
1158
1158
|
function D($, F, W, U, k) {
|
|
1159
|
-
if (typeof
|
|
1159
|
+
if (typeof S != "function")
|
|
1160
1160
|
return new T("Property `" + k + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
1161
1161
|
var I = $[F];
|
|
1162
1162
|
if (!Array.isArray(I)) {
|
|
@@ -1164,16 +1164,16 @@ function Yr() {
|
|
|
1164
1164
|
return new T("Invalid " + U + " `" + k + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
|
|
1165
1165
|
}
|
|
1166
1166
|
for (var X = 0; X < I.length; X++) {
|
|
1167
|
-
var H =
|
|
1167
|
+
var H = S(I, X, W, U, k + "[" + X + "]", t);
|
|
1168
1168
|
if (H instanceof Error)
|
|
1169
1169
|
return H;
|
|
1170
1170
|
}
|
|
1171
1171
|
return null;
|
|
1172
1172
|
}
|
|
1173
|
-
return
|
|
1173
|
+
return E(D);
|
|
1174
1174
|
}
|
|
1175
1175
|
function x() {
|
|
1176
|
-
function
|
|
1176
|
+
function S(D, $, F, W, U) {
|
|
1177
1177
|
var k = D[$];
|
|
1178
1178
|
if (!a(k)) {
|
|
1179
1179
|
var I = ee(k);
|
|
@@ -1181,10 +1181,10 @@ function Yr() {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
return null;
|
|
1183
1183
|
}
|
|
1184
|
-
return
|
|
1184
|
+
return E(S);
|
|
1185
1185
|
}
|
|
1186
1186
|
function c() {
|
|
1187
|
-
function
|
|
1187
|
+
function S(D, $, F, W, U) {
|
|
1188
1188
|
var k = D[$];
|
|
1189
1189
|
if (!r.isValidElementType(k)) {
|
|
1190
1190
|
var I = ee(k);
|
|
@@ -1192,65 +1192,65 @@ function Yr() {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
return null;
|
|
1194
1194
|
}
|
|
1195
|
-
return
|
|
1195
|
+
return E(S);
|
|
1196
1196
|
}
|
|
1197
|
-
function j(
|
|
1197
|
+
function j(S) {
|
|
1198
1198
|
function D($, F, W, U, k) {
|
|
1199
|
-
if (!($[F] instanceof
|
|
1200
|
-
var I =
|
|
1199
|
+
if (!($[F] instanceof S)) {
|
|
1200
|
+
var I = S.name || y, L = de($[F]);
|
|
1201
1201
|
return new T("Invalid " + U + " `" + k + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + I + "`."));
|
|
1202
1202
|
}
|
|
1203
1203
|
return null;
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return E(D);
|
|
1206
1206
|
}
|
|
1207
|
-
function u(
|
|
1208
|
-
if (!Array.isArray(
|
|
1207
|
+
function u(S) {
|
|
1208
|
+
if (!Array.isArray(S))
|
|
1209
1209
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1210
1210
|
"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])."
|
|
1211
1211
|
) : o("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
1212
1212
|
function D($, F, W, U, k) {
|
|
1213
|
-
for (var I = $[F], L = 0; L <
|
|
1214
|
-
if (P(I,
|
|
1213
|
+
for (var I = $[F], L = 0; L < S.length; L++)
|
|
1214
|
+
if (P(I, S[L]))
|
|
1215
1215
|
return null;
|
|
1216
|
-
var X = JSON.stringify(
|
|
1216
|
+
var X = JSON.stringify(S, function(le, O) {
|
|
1217
1217
|
var pe = ae(O);
|
|
1218
1218
|
return pe === "symbol" ? String(O) : O;
|
|
1219
1219
|
});
|
|
1220
1220
|
return new T("Invalid " + U + " `" + k + "` of value `" + String(I) + "` " + ("supplied to `" + W + "`, expected one of " + X + "."));
|
|
1221
1221
|
}
|
|
1222
|
-
return
|
|
1222
|
+
return E(D);
|
|
1223
1223
|
}
|
|
1224
|
-
function m(
|
|
1224
|
+
function m(S) {
|
|
1225
1225
|
function D($, F, W, U, k) {
|
|
1226
|
-
if (typeof
|
|
1226
|
+
if (typeof S != "function")
|
|
1227
1227
|
return new T("Property `" + k + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
1228
1228
|
var I = $[F], L = ee(I);
|
|
1229
1229
|
if (L !== "object")
|
|
1230
1230
|
return new T("Invalid " + U + " `" + k + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
|
|
1231
1231
|
for (var X in I)
|
|
1232
1232
|
if (e(I, X)) {
|
|
1233
|
-
var H =
|
|
1233
|
+
var H = S(I, X, W, U, k + "." + X, t);
|
|
1234
1234
|
if (H instanceof Error)
|
|
1235
1235
|
return H;
|
|
1236
1236
|
}
|
|
1237
1237
|
return null;
|
|
1238
1238
|
}
|
|
1239
|
-
return
|
|
1239
|
+
return E(D);
|
|
1240
1240
|
}
|
|
1241
|
-
function C(
|
|
1242
|
-
if (!Array.isArray(
|
|
1241
|
+
function C(S) {
|
|
1242
|
+
if (!Array.isArray(S))
|
|
1243
1243
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
1244
|
-
for (var D = 0; D <
|
|
1245
|
-
var $ =
|
|
1244
|
+
for (var D = 0; D < S.length; D++) {
|
|
1245
|
+
var $ = S[D];
|
|
1246
1246
|
if (typeof $ != "function")
|
|
1247
1247
|
return o(
|
|
1248
1248
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ce($) + " at index " + D + "."
|
|
1249
1249
|
), l;
|
|
1250
1250
|
}
|
|
1251
1251
|
function F(W, U, k, I, L) {
|
|
1252
|
-
for (var X = [], H = 0; H <
|
|
1253
|
-
var le =
|
|
1252
|
+
for (var X = [], H = 0; H < S.length; H++) {
|
|
1253
|
+
var le = S[H], O = le(W, U, k, I, L, t);
|
|
1254
1254
|
if (O == null)
|
|
1255
1255
|
return null;
|
|
1256
1256
|
O.data && e(O.data, "expectedType") && X.push(O.data.expectedType);
|
|
@@ -1258,26 +1258,26 @@ function Yr() {
|
|
|
1258
1258
|
var pe = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1259
1259
|
return new T("Invalid " + I + " `" + L + "` supplied to " + ("`" + k + "`" + pe + "."));
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return E(F);
|
|
1262
1262
|
}
|
|
1263
1263
|
function M() {
|
|
1264
|
-
function
|
|
1264
|
+
function S(D, $, F, W, U) {
|
|
1265
1265
|
return Q(D[$]) ? null : new T("Invalid " + W + " `" + U + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
1266
1266
|
}
|
|
1267
|
-
return
|
|
1267
|
+
return E(S);
|
|
1268
1268
|
}
|
|
1269
|
-
function V(
|
|
1269
|
+
function V(S, D, $, F, W) {
|
|
1270
1270
|
return new T(
|
|
1271
|
-
(
|
|
1271
|
+
(S || "React class") + ": " + D + " type `" + $ + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
|
-
function A(
|
|
1274
|
+
function A(S) {
|
|
1275
1275
|
function D($, F, W, U, k) {
|
|
1276
1276
|
var I = $[F], L = ee(I);
|
|
1277
1277
|
if (L !== "object")
|
|
1278
1278
|
return new T("Invalid " + U + " `" + k + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1279
|
-
for (var X in
|
|
1280
|
-
var H =
|
|
1279
|
+
for (var X in S) {
|
|
1280
|
+
var H = S[X];
|
|
1281
1281
|
if (typeof H != "function")
|
|
1282
1282
|
return V(W, U, k, X, ae(H));
|
|
1283
1283
|
var le = H(I, X, W, U, k + "." + X, t);
|
|
@@ -1286,22 +1286,22 @@ function Yr() {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
return null;
|
|
1288
1288
|
}
|
|
1289
|
-
return
|
|
1289
|
+
return E(D);
|
|
1290
1290
|
}
|
|
1291
|
-
function B(
|
|
1291
|
+
function B(S) {
|
|
1292
1292
|
function D($, F, W, U, k) {
|
|
1293
1293
|
var I = $[F], L = ee(I);
|
|
1294
1294
|
if (L !== "object")
|
|
1295
1295
|
return new T("Invalid " + U + " `" + k + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1296
|
-
var X = n({}, $[F],
|
|
1296
|
+
var X = n({}, $[F], S);
|
|
1297
1297
|
for (var H in X) {
|
|
1298
|
-
var le =
|
|
1299
|
-
if (e(
|
|
1298
|
+
var le = S[H];
|
|
1299
|
+
if (e(S, H) && typeof le != "function")
|
|
1300
1300
|
return V(W, U, k, H, ae(le));
|
|
1301
1301
|
if (!le)
|
|
1302
1302
|
return new T(
|
|
1303
1303
|
"Invalid " + U + " `" + k + "` key `" + H + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify($[F], null, " ") + `
|
|
1304
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1304
|
+
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
1305
1305
|
);
|
|
1306
1306
|
var O = le(I, H, W, U, k + "." + H, t);
|
|
1307
1307
|
if (O)
|
|
@@ -1309,25 +1309,25 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return null;
|
|
1311
1311
|
}
|
|
1312
|
-
return
|
|
1312
|
+
return E(D);
|
|
1313
1313
|
}
|
|
1314
|
-
function Q(
|
|
1315
|
-
switch (typeof
|
|
1314
|
+
function Q(S) {
|
|
1315
|
+
switch (typeof S) {
|
|
1316
1316
|
case "number":
|
|
1317
1317
|
case "string":
|
|
1318
1318
|
case "undefined":
|
|
1319
1319
|
return !0;
|
|
1320
1320
|
case "boolean":
|
|
1321
|
-
return !
|
|
1321
|
+
return !S;
|
|
1322
1322
|
case "object":
|
|
1323
|
-
if (Array.isArray(
|
|
1324
|
-
return
|
|
1325
|
-
if (
|
|
1323
|
+
if (Array.isArray(S))
|
|
1324
|
+
return S.every(Q);
|
|
1325
|
+
if (S === null || a(S))
|
|
1326
1326
|
return !0;
|
|
1327
|
-
var D = h(
|
|
1327
|
+
var D = h(S);
|
|
1328
1328
|
if (D) {
|
|
1329
|
-
var $ = D.call(
|
|
1330
|
-
if (D !==
|
|
1329
|
+
var $ = D.call(S), F;
|
|
1330
|
+
if (D !== S.entries) {
|
|
1331
1331
|
for (; !(F = $.next()).done; )
|
|
1332
1332
|
if (!Q(F.value))
|
|
1333
1333
|
return !1;
|
|
@@ -1344,27 +1344,27 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1344
1344
|
return !1;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function se(
|
|
1348
|
-
return
|
|
1347
|
+
function se(S, D) {
|
|
1348
|
+
return S === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1;
|
|
1349
1349
|
}
|
|
1350
|
-
function ee(
|
|
1351
|
-
var D = typeof
|
|
1352
|
-
return Array.isArray(
|
|
1350
|
+
function ee(S) {
|
|
1351
|
+
var D = typeof S;
|
|
1352
|
+
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : se(D, S) ? "symbol" : D;
|
|
1353
1353
|
}
|
|
1354
|
-
function ae(
|
|
1355
|
-
if (typeof
|
|
1356
|
-
return "" +
|
|
1357
|
-
var D = ee(
|
|
1354
|
+
function ae(S) {
|
|
1355
|
+
if (typeof S > "u" || S === null)
|
|
1356
|
+
return "" + S;
|
|
1357
|
+
var D = ee(S);
|
|
1358
1358
|
if (D === "object") {
|
|
1359
|
-
if (
|
|
1359
|
+
if (S instanceof Date)
|
|
1360
1360
|
return "date";
|
|
1361
|
-
if (
|
|
1361
|
+
if (S instanceof RegExp)
|
|
1362
1362
|
return "regexp";
|
|
1363
1363
|
}
|
|
1364
1364
|
return D;
|
|
1365
1365
|
}
|
|
1366
|
-
function ce(
|
|
1367
|
-
var D = ae(
|
|
1366
|
+
function ce(S) {
|
|
1367
|
+
var D = ae(S);
|
|
1368
1368
|
switch (D) {
|
|
1369
1369
|
case "array":
|
|
1370
1370
|
case "object":
|
|
@@ -1377,22 +1377,22 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1377
1377
|
return D;
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
|
-
function de(
|
|
1381
|
-
return !
|
|
1380
|
+
function de(S) {
|
|
1381
|
+
return !S.constructor || !S.constructor.name ? y : S.constructor.name;
|
|
1382
1382
|
}
|
|
1383
|
-
return
|
|
1384
|
-
},
|
|
1383
|
+
return w.checkPropTypes = i, w.resetWarningCache = i.resetWarningCache, w.PropTypes = w, w;
|
|
1384
|
+
}, Qe;
|
|
1385
1385
|
}
|
|
1386
|
-
var
|
|
1386
|
+
var et, Mt;
|
|
1387
1387
|
function Br() {
|
|
1388
|
-
if (Mt) return
|
|
1388
|
+
if (Mt) return et;
|
|
1389
1389
|
Mt = 1;
|
|
1390
1390
|
var r = /* @__PURE__ */ ot();
|
|
1391
1391
|
function n() {
|
|
1392
1392
|
}
|
|
1393
1393
|
function t() {
|
|
1394
1394
|
}
|
|
1395
|
-
return t.resetWarningCache = n,
|
|
1395
|
+
return t.resetWarningCache = n, et = function() {
|
|
1396
1396
|
function e(l, a, f, p, g, h) {
|
|
1397
1397
|
if (h !== r) {
|
|
1398
1398
|
var y = new Error(
|
|
@@ -1429,7 +1429,7 @@ function Br() {
|
|
|
1429
1429
|
resetWarningCache: n
|
|
1430
1430
|
};
|
|
1431
1431
|
return o.PropTypes = o, o;
|
|
1432
|
-
},
|
|
1432
|
+
}, et;
|
|
1433
1433
|
}
|
|
1434
1434
|
var At;
|
|
1435
1435
|
function rr() {
|
|
@@ -1458,7 +1458,7 @@ const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1458
1458
|
default: Wt
|
|
1459
1459
|
}, Symbol.toStringTag, { value: "Module" })), qr = /* @__PURE__ */ Nr(Ur);
|
|
1460
1460
|
var re = {}, me = {}, kt;
|
|
1461
|
-
function
|
|
1461
|
+
function He() {
|
|
1462
1462
|
if (kt) return me;
|
|
1463
1463
|
kt = 1, Object.defineProperty(me, "__esModule", {
|
|
1464
1464
|
value: !0
|
|
@@ -1518,8 +1518,8 @@ function st() {
|
|
|
1518
1518
|
if (Ft) return re;
|
|
1519
1519
|
Ft = 1, Object.defineProperty(re, "__esModule", {
|
|
1520
1520
|
value: !0
|
|
1521
|
-
}), re.addClassName = c, re.addEvent = a, re.addUserSelectStyles = v, re.createCSSTransform = P, re.createSVGTransform = T, re.getTouch = b, re.getTouchIdentifier = d, re.getTranslation =
|
|
1522
|
-
var r =
|
|
1521
|
+
}), re.addClassName = c, re.addEvent = a, re.addUserSelectStyles = v, re.createCSSTransform = P, re.createSVGTransform = T, re.getTouch = b, re.getTouchIdentifier = d, re.getTranslation = E, re.innerHeight = h, re.innerWidth = y, re.matchesSelector = o, re.matchesSelectorAndParentsTo = l, re.offsetXYFromParent = w, re.outerHeight = p, re.outerWidth = g, re.removeClassName = j, re.removeEvent = f, re.removeUserSelectStyles = x;
|
|
1522
|
+
var r = He(), n = e(Xr());
|
|
1523
1523
|
function t(u) {
|
|
1524
1524
|
if (typeof WeakMap != "function") return null;
|
|
1525
1525
|
var m = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap();
|
|
@@ -1594,7 +1594,7 @@ function st() {
|
|
|
1594
1594
|
const C = u.ownerDocument.defaultView.getComputedStyle(u);
|
|
1595
1595
|
return m -= (0, r.int)(C.paddingLeft), m -= (0, r.int)(C.paddingRight), m;
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function w(u, m, C) {
|
|
1598
1598
|
const V = m === m.ownerDocument.body ? {
|
|
1599
1599
|
left: 0,
|
|
1600
1600
|
top: 0
|
|
@@ -1605,15 +1605,15 @@ function st() {
|
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
1607
|
function P(u, m) {
|
|
1608
|
-
const C =
|
|
1608
|
+
const C = E(u, m, "px");
|
|
1609
1609
|
return {
|
|
1610
1610
|
[(0, n.browserPrefixToKey)("transform", n.default)]: C
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
1613
|
function T(u, m) {
|
|
1614
|
-
return
|
|
1614
|
+
return E(u, m, "");
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function E(u, m, C) {
|
|
1617
1617
|
let {
|
|
1618
1618
|
x: M,
|
|
1619
1619
|
y: V
|
|
@@ -1664,9 +1664,9 @@ function ir() {
|
|
|
1664
1664
|
$t = 1, Object.defineProperty(ge, "__esModule", {
|
|
1665
1665
|
value: !0
|
|
1666
1666
|
}), ge.canDragX = i, ge.canDragY = o, ge.createCoreData = a, ge.createDraggableData = f, ge.getBoundPosition = t, ge.getControlPosition = l, ge.snapToGrid = e;
|
|
1667
|
-
var r =
|
|
1668
|
-
function t(h, y,
|
|
1669
|
-
if (!h.props.bounds) return [y,
|
|
1667
|
+
var r = He(), n = st();
|
|
1668
|
+
function t(h, y, w) {
|
|
1669
|
+
if (!h.props.bounds) return [y, w];
|
|
1670
1670
|
let {
|
|
1671
1671
|
bounds: P
|
|
1672
1672
|
} = h.props;
|
|
@@ -1674,10 +1674,10 @@ function ir() {
|
|
|
1674
1674
|
const T = g(h);
|
|
1675
1675
|
if (typeof P == "string") {
|
|
1676
1676
|
const {
|
|
1677
|
-
ownerDocument:
|
|
1678
|
-
} = T, b =
|
|
1677
|
+
ownerDocument: E
|
|
1678
|
+
} = T, b = E.defaultView;
|
|
1679
1679
|
let d;
|
|
1680
|
-
if (P === "parent" ? d = T.parentNode : d =
|
|
1680
|
+
if (P === "parent" ? d = T.parentNode : d = E.querySelector(P), !(d instanceof b.HTMLElement))
|
|
1681
1681
|
throw new Error('Bounds selector "' + P + '" could not find an element.');
|
|
1682
1682
|
const v = d, x = b.getComputedStyle(T), c = b.getComputedStyle(v);
|
|
1683
1683
|
P = {
|
|
@@ -1687,10 +1687,10 @@ function ir() {
|
|
|
1687
1687
|
bottom: (0, n.innerHeight)(v) - (0, n.outerHeight)(T) - T.offsetTop + (0, r.int)(c.paddingBottom) - (0, r.int)(x.marginBottom)
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
|
-
return (0, r.isNum)(P.right) && (y = Math.min(y, P.right)), (0, r.isNum)(P.bottom) && (
|
|
1690
|
+
return (0, r.isNum)(P.right) && (y = Math.min(y, P.right)), (0, r.isNum)(P.bottom) && (w = Math.min(w, P.bottom)), (0, r.isNum)(P.left) && (y = Math.max(y, P.left)), (0, r.isNum)(P.top) && (w = Math.max(w, P.top)), [y, w];
|
|
1691
1691
|
}
|
|
1692
|
-
function e(h, y,
|
|
1693
|
-
const P = Math.round(y / h[0]) * h[0], T = Math.round(
|
|
1692
|
+
function e(h, y, w) {
|
|
1693
|
+
const P = Math.round(y / h[0]) * h[0], T = Math.round(w / h[1]) * h[1];
|
|
1694
1694
|
return [P, T];
|
|
1695
1695
|
}
|
|
1696
1696
|
function i(h) {
|
|
@@ -1699,40 +1699,40 @@ function ir() {
|
|
|
1699
1699
|
function o(h) {
|
|
1700
1700
|
return h.props.axis === "both" || h.props.axis === "y";
|
|
1701
1701
|
}
|
|
1702
|
-
function l(h, y,
|
|
1702
|
+
function l(h, y, w) {
|
|
1703
1703
|
const P = typeof y == "number" ? (0, n.getTouch)(h, y) : null;
|
|
1704
1704
|
if (typeof y == "number" && !P) return null;
|
|
1705
|
-
const T = g(
|
|
1706
|
-
return (0, n.offsetXYFromParent)(P || h,
|
|
1705
|
+
const T = g(w), E = w.props.offsetParent || T.offsetParent || T.ownerDocument.body;
|
|
1706
|
+
return (0, n.offsetXYFromParent)(P || h, E, w.props.scale);
|
|
1707
1707
|
}
|
|
1708
|
-
function a(h, y,
|
|
1708
|
+
function a(h, y, w) {
|
|
1709
1709
|
const P = !(0, r.isNum)(h.lastX), T = g(h);
|
|
1710
1710
|
return P ? {
|
|
1711
1711
|
node: T,
|
|
1712
1712
|
deltaX: 0,
|
|
1713
1713
|
deltaY: 0,
|
|
1714
1714
|
lastX: y,
|
|
1715
|
-
lastY:
|
|
1715
|
+
lastY: w,
|
|
1716
1716
|
x: y,
|
|
1717
|
-
y:
|
|
1717
|
+
y: w
|
|
1718
1718
|
} : {
|
|
1719
1719
|
node: T,
|
|
1720
1720
|
deltaX: y - h.lastX,
|
|
1721
|
-
deltaY:
|
|
1721
|
+
deltaY: w - h.lastY,
|
|
1722
1722
|
lastX: h.lastX,
|
|
1723
1723
|
lastY: h.lastY,
|
|
1724
1724
|
x: y,
|
|
1725
|
-
y:
|
|
1725
|
+
y: w
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
1728
|
function f(h, y) {
|
|
1729
|
-
const
|
|
1729
|
+
const w = h.props.scale;
|
|
1730
1730
|
return {
|
|
1731
1731
|
node: y.node,
|
|
1732
|
-
x: h.state.x + y.deltaX /
|
|
1733
|
-
y: h.state.y + y.deltaY /
|
|
1734
|
-
deltaX: y.deltaX /
|
|
1735
|
-
deltaY: y.deltaY /
|
|
1732
|
+
x: h.state.x + y.deltaX / w,
|
|
1733
|
+
y: h.state.y + y.deltaY / w,
|
|
1734
|
+
deltaX: y.deltaX / w,
|
|
1735
|
+
deltaY: y.deltaY / w,
|
|
1736
1736
|
lastX: h.state.x,
|
|
1737
1737
|
lastY: h.state.y
|
|
1738
1738
|
};
|
|
@@ -1769,51 +1769,51 @@ function Vr() {
|
|
|
1769
1769
|
Ht = 1, Object.defineProperty(Oe, "__esModule", {
|
|
1770
1770
|
value: !0
|
|
1771
1771
|
}), Oe.default = void 0;
|
|
1772
|
-
var r = p(Fe), n = a(/* @__PURE__ */ rr()), t = a(Zt), e = st(), i = ir(), o =
|
|
1773
|
-
function a(
|
|
1774
|
-
return
|
|
1772
|
+
var r = p(Fe), n = a(/* @__PURE__ */ rr()), t = a(Zt), e = st(), i = ir(), o = He(), l = a(or());
|
|
1773
|
+
function a(E) {
|
|
1774
|
+
return E && E.__esModule ? E : { default: E };
|
|
1775
1775
|
}
|
|
1776
|
-
function f(
|
|
1776
|
+
function f(E) {
|
|
1777
1777
|
if (typeof WeakMap != "function") return null;
|
|
1778
1778
|
var b = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
|
|
1779
1779
|
return (f = function(v) {
|
|
1780
1780
|
return v ? d : b;
|
|
1781
|
-
})(
|
|
1781
|
+
})(E);
|
|
1782
1782
|
}
|
|
1783
|
-
function p(
|
|
1784
|
-
if (
|
|
1785
|
-
return
|
|
1786
|
-
if (
|
|
1787
|
-
return { default:
|
|
1783
|
+
function p(E, b) {
|
|
1784
|
+
if (E && E.__esModule)
|
|
1785
|
+
return E;
|
|
1786
|
+
if (E === null || typeof E != "object" && typeof E != "function")
|
|
1787
|
+
return { default: E };
|
|
1788
1788
|
var d = f(b);
|
|
1789
|
-
if (d && d.has(
|
|
1790
|
-
return d.get(
|
|
1789
|
+
if (d && d.has(E))
|
|
1790
|
+
return d.get(E);
|
|
1791
1791
|
var v = {}, x = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1792
|
-
for (var c in
|
|
1793
|
-
if (c !== "default" && Object.prototype.hasOwnProperty.call(
|
|
1794
|
-
var j = x ? Object.getOwnPropertyDescriptor(
|
|
1795
|
-
j && (j.get || j.set) ? Object.defineProperty(v, c, j) : v[c] =
|
|
1792
|
+
for (var c in E)
|
|
1793
|
+
if (c !== "default" && Object.prototype.hasOwnProperty.call(E, c)) {
|
|
1794
|
+
var j = x ? Object.getOwnPropertyDescriptor(E, c) : null;
|
|
1795
|
+
j && (j.get || j.set) ? Object.defineProperty(v, c, j) : v[c] = E[c];
|
|
1796
1796
|
}
|
|
1797
|
-
return v.default =
|
|
1797
|
+
return v.default = E, d && d.set(E, v), v;
|
|
1798
1798
|
}
|
|
1799
|
-
function g(
|
|
1800
|
-
return b = h(b), b in
|
|
1799
|
+
function g(E, b, d) {
|
|
1800
|
+
return b = h(b), b in E ? Object.defineProperty(E, b, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : E[b] = d, E;
|
|
1801
1801
|
}
|
|
1802
|
-
function h(
|
|
1803
|
-
var b = y(
|
|
1802
|
+
function h(E) {
|
|
1803
|
+
var b = y(E, "string");
|
|
1804
1804
|
return typeof b == "symbol" ? b : String(b);
|
|
1805
1805
|
}
|
|
1806
|
-
function y(
|
|
1807
|
-
if (typeof
|
|
1808
|
-
var d =
|
|
1806
|
+
function y(E, b) {
|
|
1807
|
+
if (typeof E != "object" || E === null) return E;
|
|
1808
|
+
var d = E[Symbol.toPrimitive];
|
|
1809
1809
|
if (d !== void 0) {
|
|
1810
|
-
var v = d.call(
|
|
1810
|
+
var v = d.call(E, b);
|
|
1811
1811
|
if (typeof v != "object") return v;
|
|
1812
1812
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1813
1813
|
}
|
|
1814
|
-
return (b === "string" ? String : Number)(
|
|
1814
|
+
return (b === "string" ? String : Number)(E);
|
|
1815
1815
|
}
|
|
1816
|
-
const
|
|
1816
|
+
const w = {
|
|
1817
1817
|
touch: {
|
|
1818
1818
|
start: "touchstart",
|
|
1819
1819
|
move: "touchmove",
|
|
@@ -1825,7 +1825,7 @@ function Vr() {
|
|
|
1825
1825
|
stop: "mouseup"
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
let P =
|
|
1828
|
+
let P = w.mouse, T = class extends r.Component {
|
|
1829
1829
|
constructor() {
|
|
1830
1830
|
super(...arguments), g(this, "dragging", !1), g(this, "lastX", NaN), g(this, "lastY", NaN), g(this, "touchIdentifier", null), g(this, "mounted", !1), g(this, "handleDragStart", (b) => {
|
|
1831
1831
|
if (this.props.onMouseDown(b), !this.props.allowAnyClick && typeof b.button == "number" && b.button !== 0) return !1;
|
|
@@ -1886,12 +1886,12 @@ function Vr() {
|
|
|
1886
1886
|
if (this.props.onStop(b, c) === !1 || this.mounted === !1) return !1;
|
|
1887
1887
|
const u = this.findDOMNode();
|
|
1888
1888
|
u && this.props.enableUserSelectHack && (0, e.removeUserSelectStyles)(u.ownerDocument), (0, l.default)("DraggableCore: handleDragStop: %j", c), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, u && ((0, l.default)("DraggableCore: Removing handlers"), (0, e.removeEvent)(u.ownerDocument, P.move, this.handleDrag), (0, e.removeEvent)(u.ownerDocument, P.stop, this.handleDragStop));
|
|
1889
|
-
}), g(this, "onMouseDown", (b) => (P =
|
|
1889
|
+
}), g(this, "onMouseDown", (b) => (P = w.mouse, this.handleDragStart(b))), g(this, "onMouseUp", (b) => (P = w.mouse, this.handleDragStop(b))), g(this, "onTouchStart", (b) => (P = w.touch, this.handleDragStart(b))), g(this, "onTouchEnd", (b) => (P = w.touch, this.handleDragStop(b)));
|
|
1890
1890
|
}
|
|
1891
1891
|
componentDidMount() {
|
|
1892
1892
|
this.mounted = !0;
|
|
1893
1893
|
const b = this.findDOMNode();
|
|
1894
|
-
b && (0, e.addEvent)(b,
|
|
1894
|
+
b && (0, e.addEvent)(b, w.touch.start, this.onTouchStart, {
|
|
1895
1895
|
passive: !1
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
@@ -1902,7 +1902,7 @@ function Vr() {
|
|
|
1902
1902
|
const {
|
|
1903
1903
|
ownerDocument: d
|
|
1904
1904
|
} = b;
|
|
1905
|
-
(0, e.removeEvent)(d,
|
|
1905
|
+
(0, e.removeEvent)(d, w.mouse.move, this.handleDrag), (0, e.removeEvent)(d, w.touch.move, this.handleDrag), (0, e.removeEvent)(d, w.mouse.stop, this.handleDragStop), (0, e.removeEvent)(d, w.touch.stop, this.handleDragStop), (0, e.removeEvent)(b, w.touch.start, this.onTouchStart, {
|
|
1906
1906
|
passive: !1
|
|
1907
1907
|
}), this.props.enableUserSelectHack && (0, e.removeUserSelectStyles)(d);
|
|
1908
1908
|
}
|
|
@@ -1950,8 +1950,8 @@ function Vr() {
|
|
|
1950
1950
|
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
1951
1951
|
* instead of using the parent node.
|
|
1952
1952
|
*/
|
|
1953
|
-
offsetParent: function(
|
|
1954
|
-
if (
|
|
1953
|
+
offsetParent: function(E, b) {
|
|
1954
|
+
if (E[b] && E[b].nodeType !== 1)
|
|
1955
1955
|
throw new Error("Draggable's offsetParent must be a DOM Node.");
|
|
1956
1956
|
},
|
|
1957
1957
|
/**
|
|
@@ -2075,7 +2075,7 @@ function Gr() {
|
|
|
2075
2075
|
return f.default;
|
|
2076
2076
|
}
|
|
2077
2077
|
}), r.default = void 0;
|
|
2078
|
-
var n = y(Fe), t = g(/* @__PURE__ */ rr()), e = g(Zt), i = g(qr), o = st(), l = ir(), a =
|
|
2078
|
+
var n = y(Fe), t = g(/* @__PURE__ */ rr()), e = g(Zt), i = g(qr), o = st(), l = ir(), a = He(), f = g(Vr()), p = g(or());
|
|
2079
2079
|
function g(d) {
|
|
2080
2080
|
return d && d.__esModule ? d : { default: d };
|
|
2081
2081
|
}
|
|
@@ -2102,24 +2102,24 @@ function Gr() {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
return c.default = d, x && x.set(d, c), c;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
return
|
|
2105
|
+
function w() {
|
|
2106
|
+
return w = Object.assign ? Object.assign.bind() : function(d) {
|
|
2107
2107
|
for (var v = 1; v < arguments.length; v++) {
|
|
2108
2108
|
var x = arguments[v];
|
|
2109
2109
|
for (var c in x)
|
|
2110
2110
|
Object.prototype.hasOwnProperty.call(x, c) && (d[c] = x[c]);
|
|
2111
2111
|
}
|
|
2112
2112
|
return d;
|
|
2113
|
-
},
|
|
2113
|
+
}, w.apply(this, arguments);
|
|
2114
2114
|
}
|
|
2115
2115
|
function P(d, v, x) {
|
|
2116
2116
|
return v = T(v), v in d ? Object.defineProperty(d, v, { value: x, enumerable: !0, configurable: !0, writable: !0 }) : d[v] = x, d;
|
|
2117
2117
|
}
|
|
2118
2118
|
function T(d) {
|
|
2119
|
-
var v =
|
|
2119
|
+
var v = E(d, "string");
|
|
2120
2120
|
return typeof v == "symbol" ? v : String(v);
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function E(d, v) {
|
|
2123
2123
|
if (typeof d != "object" || d === null) return d;
|
|
2124
2124
|
var x = d[Symbol.toPrimitive];
|
|
2125
2125
|
if (x !== void 0) {
|
|
@@ -2248,16 +2248,16 @@ function Gr() {
|
|
|
2248
2248
|
y: (0, l.canDragY)(this) && ae ? this.state.y : ce.y
|
|
2249
2249
|
};
|
|
2250
2250
|
this.state.isElementSVG ? se = (0, o.createSVGTransform)(de, V) : Q = (0, o.createCSSTransform)(de, V);
|
|
2251
|
-
const
|
|
2251
|
+
const S = (0, i.default)(c.props.className || "", u, {
|
|
2252
2252
|
[m]: this.state.dragging,
|
|
2253
2253
|
[C]: this.state.dragged
|
|
2254
2254
|
});
|
|
2255
|
-
return /* @__PURE__ */ n.createElement(f.default,
|
|
2255
|
+
return /* @__PURE__ */ n.createElement(f.default, w({}, B, {
|
|
2256
2256
|
onStart: this.onDragStart,
|
|
2257
2257
|
onDrag: this.onDrag,
|
|
2258
2258
|
onStop: this.onDragStop
|
|
2259
2259
|
}), /* @__PURE__ */ n.cloneElement(n.Children.only(c), {
|
|
2260
|
-
className:
|
|
2260
|
+
className: S,
|
|
2261
2261
|
style: {
|
|
2262
2262
|
...c.props.style,
|
|
2263
2263
|
...Q
|
|
@@ -2386,7 +2386,7 @@ function Gr() {
|
|
|
2386
2386
|
},
|
|
2387
2387
|
scale: 1
|
|
2388
2388
|
});
|
|
2389
|
-
}(
|
|
2389
|
+
}(Ve)), Ve;
|
|
2390
2390
|
}
|
|
2391
2391
|
var Bt;
|
|
2392
2392
|
function Jr() {
|
|
@@ -2488,7 +2488,7 @@ var ie = function() {
|
|
|
2488
2488
|
return Math.abs(l - r) < Math.abs(n[o] - r) ? a : o;
|
|
2489
2489
|
}, 0), i = Math.abs(n[e] - r);
|
|
2490
2490
|
return t === 0 || i < t ? n[e] : r;
|
|
2491
|
-
},
|
|
2491
|
+
}, tt = function(r) {
|
|
2492
2492
|
return r = r.toString(), r === "auto" || r.endsWith("px") || r.endsWith("%") || r.endsWith("vh") || r.endsWith("vw") || r.endsWith("vmax") || r.endsWith("vmin") ? r : "".concat(r, "px");
|
|
2493
2493
|
}, Ie = function(r, n, t, e) {
|
|
2494
2494
|
if (r && typeof r == "string") {
|
|
@@ -2637,8 +2637,8 @@ var ie = function() {
|
|
|
2637
2637
|
var p = t.getParentSize(), g = Number(t.state[a].toString().replace("px", "")), h = g / p[a] * 100;
|
|
2638
2638
|
return "".concat(h, "%");
|
|
2639
2639
|
}
|
|
2640
|
-
return
|
|
2641
|
-
}, o = e && typeof e.width < "u" && !this.state.isResizing ?
|
|
2640
|
+
return tt(t.state[a]);
|
|
2641
|
+
}, o = e && typeof e.width < "u" && !this.state.isResizing ? tt(e.width) : i("width"), l = e && typeof e.height < "u" && !this.state.isResizing ? tt(e.height) : i("height");
|
|
2642
2642
|
return { width: o, height: l };
|
|
2643
2643
|
},
|
|
2644
2644
|
enumerable: !1,
|
|
@@ -2685,15 +2685,15 @@ var ie = function() {
|
|
|
2685
2685
|
} else this.props.bounds === "window" ? this.window && (f = l ? this.resizableRight : this.window.innerWidth - this.resizableLeft, p = a ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (f = l ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), p = a ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop));
|
|
2686
2686
|
return f && Number.isFinite(f) && (t = t && t < f ? t : f), p && Number.isFinite(p) && (e = e && e < p ? e : p), { maxWidth: t, maxHeight: e };
|
|
2687
2687
|
}, n.prototype.calculateNewSizeFromDirection = function(t, e) {
|
|
2688
|
-
var i = this.props.scale || 1, o = sn(this.props.resizeRatio || 1), l = o[0], a = o[1], f = this.state, p = f.direction, g = f.original, h = this.props, y = h.lockAspectRatio,
|
|
2689
|
-
return Ee("right", p) && (T = g.width + (t - g.x) * l / i, y && (
|
|
2688
|
+
var i = this.props.scale || 1, o = sn(this.props.resizeRatio || 1), l = o[0], a = o[1], f = this.state, p = f.direction, g = f.original, h = this.props, y = h.lockAspectRatio, w = h.lockAspectRatioExtraHeight, P = h.lockAspectRatioExtraWidth, T = g.width, E = g.height, b = w || 0, d = P || 0;
|
|
2689
|
+
return Ee("right", p) && (T = g.width + (t - g.x) * l / i, y && (E = (T - d) / this.ratio + b)), Ee("left", p) && (T = g.width - (t - g.x) * l / i, y && (E = (T - d) / this.ratio + b)), Ee("bottom", p) && (E = g.height + (e - g.y) * a / i, y && (T = (E - b) * this.ratio + d)), Ee("top", p) && (E = g.height - (e - g.y) * a / i, y && (T = (E - b) * this.ratio + d)), { newWidth: T, newHeight: E };
|
|
2690
2690
|
}, n.prototype.calculateNewSizeFromAspectRatio = function(t, e, i, o) {
|
|
2691
|
-
var l = this.props, a = l.lockAspectRatio, f = l.lockAspectRatioExtraHeight, p = l.lockAspectRatioExtraWidth, g = typeof o.width > "u" ? 10 : o.width, h = typeof i.width > "u" || i.width < 0 ? t : i.width, y = typeof o.height > "u" ? 10 : o.height,
|
|
2691
|
+
var l = this.props, a = l.lockAspectRatio, f = l.lockAspectRatioExtraHeight, p = l.lockAspectRatioExtraWidth, g = typeof o.width > "u" ? 10 : o.width, h = typeof i.width > "u" || i.width < 0 ? t : i.width, y = typeof o.height > "u" ? 10 : o.height, w = typeof i.height > "u" || i.height < 0 ? e : i.height, P = f || 0, T = p || 0;
|
|
2692
2692
|
if (a) {
|
|
2693
|
-
var
|
|
2693
|
+
var E = (y - P) * this.ratio + T, b = (w - P) * this.ratio + T, d = (g - T) / this.ratio + P, v = (h - T) / this.ratio + P, x = Math.max(g, E), c = Math.min(h, b), j = Math.max(y, d), u = Math.min(w, v);
|
|
2694
2694
|
t = We(t, x, c), e = We(e, j, u);
|
|
2695
2695
|
} else
|
|
2696
|
-
t = We(t, g, h), e = We(e, y,
|
|
2696
|
+
t = We(t, g, h), e = We(e, y, w);
|
|
2697
2697
|
return { newWidth: t, newHeight: e };
|
|
2698
2698
|
}, n.prototype.setBoundingClientRect = function() {
|
|
2699
2699
|
var t = 1 / (this.props.scale || 1);
|
|
@@ -2752,7 +2752,7 @@ var ie = function() {
|
|
|
2752
2752
|
t.preventDefault(), t.stopPropagation();
|
|
2753
2753
|
} catch {
|
|
2754
2754
|
}
|
|
2755
|
-
var i = this.props, o = i.maxWidth, l = i.maxHeight, a = i.minWidth, f = i.minHeight, p = ke(t) ? t.touches[0].clientX : t.clientX, g = ke(t) ? t.touches[0].clientY : t.clientY, h = this.state, y = h.direction,
|
|
2755
|
+
var i = this.props, o = i.maxWidth, l = i.maxHeight, a = i.minWidth, f = i.minHeight, p = ke(t) ? t.touches[0].clientX : t.clientX, g = ke(t) ? t.touches[0].clientY : t.clientY, h = this.state, y = h.direction, w = h.original, P = h.width, T = h.height, E = this.getParentSize(), b = on(E, this.window.innerWidth, this.window.innerHeight, o, l, a, f);
|
|
2756
2756
|
o = b.maxWidth, l = b.maxHeight, a = b.minWidth, f = b.minHeight;
|
|
2757
2757
|
var d = this.calculateNewSizeFromDirection(p, g), v = d.newHeight, x = d.newWidth, c = this.calculateNewMaxFromBoundary(o, l);
|
|
2758
2758
|
this.props.snap && this.props.snap.x && (x = Vt(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (v = Vt(v, this.props.snap.y, this.props.snapGap));
|
|
@@ -2762,12 +2762,12 @@ var ie = function() {
|
|
|
2762
2762
|
x = M, v = V;
|
|
2763
2763
|
}
|
|
2764
2764
|
var A = {
|
|
2765
|
-
width: x -
|
|
2766
|
-
height: v -
|
|
2765
|
+
width: x - w.width,
|
|
2766
|
+
height: v - w.height
|
|
2767
2767
|
};
|
|
2768
2768
|
if (this.delta = A, P && typeof P == "string") {
|
|
2769
2769
|
if (P.endsWith("%")) {
|
|
2770
|
-
var B = x /
|
|
2770
|
+
var B = x / E.width * 100;
|
|
2771
2771
|
x = "".concat(B, "%");
|
|
2772
2772
|
} else if (P.endsWith("vw")) {
|
|
2773
2773
|
var Q = x / this.window.innerWidth * 100;
|
|
@@ -2779,7 +2779,7 @@ var ie = function() {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
if (T && typeof T == "string") {
|
|
2781
2781
|
if (T.endsWith("%")) {
|
|
2782
|
-
var B = v /
|
|
2782
|
+
var B = v / E.height * 100;
|
|
2783
2783
|
v = "".concat(B, "%");
|
|
2784
2784
|
} else if (T.endsWith("vw")) {
|
|
2785
2785
|
var Q = v / this.window.innerWidth * 100;
|
|
@@ -2794,10 +2794,10 @@ var ie = function() {
|
|
|
2794
2794
|
height: this.createSizeForCssProperty(v, "height")
|
|
2795
2795
|
};
|
|
2796
2796
|
this.flexDir === "row" ? ee.flexBasis = ee.width : this.flexDir === "column" && (ee.flexBasis = ee.height);
|
|
2797
|
-
var ae = this.state.width !== ee.width, ce = this.state.height !== ee.height, de = this.state.flexBasis !== ee.flexBasis,
|
|
2798
|
-
|
|
2797
|
+
var ae = this.state.width !== ee.width, ce = this.state.height !== ee.height, de = this.state.flexBasis !== ee.flexBasis, S = ae || ce || de;
|
|
2798
|
+
S && Qt(function() {
|
|
2799
2799
|
e.setState(ee);
|
|
2800
|
-
}), this.props.onResize &&
|
|
2800
|
+
}), this.props.onResize && S && this.props.onResize(t, y, this.resizable, A);
|
|
2801
2801
|
}
|
|
2802
2802
|
}, n.prototype.onMouseUp = function(t) {
|
|
2803
2803
|
var e, i, o = this.state, l = o.isResizing, a = o.direction;
|
|
@@ -2874,15 +2874,15 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
2874
2874
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
2875
2875
|
and limitations under the License.
|
|
2876
2876
|
***************************************************************************** */
|
|
2877
|
-
var
|
|
2878
|
-
return
|
|
2877
|
+
var nt = function(r, n) {
|
|
2878
|
+
return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) {
|
|
2879
2879
|
t.__proto__ = e;
|
|
2880
2880
|
} || function(t, e) {
|
|
2881
2881
|
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
|
|
2882
|
-
},
|
|
2882
|
+
}, nt(r, n);
|
|
2883
2883
|
};
|
|
2884
2884
|
function un(r, n) {
|
|
2885
|
-
|
|
2885
|
+
nt(r, n);
|
|
2886
2886
|
function t() {
|
|
2887
2887
|
this.constructor = r;
|
|
2888
2888
|
}
|
|
@@ -2988,12 +2988,12 @@ var fn = {
|
|
|
2988
2988
|
if (this.props.bounds === "parent")
|
|
2989
2989
|
a = o;
|
|
2990
2990
|
else if (this.props.bounds === "body") {
|
|
2991
|
-
var f = o.getBoundingClientRect(), p = f.left, g = f.top, h = document.body.getBoundingClientRect(), y = -(p - o.offsetLeft * l - h.left) / l,
|
|
2992
|
-
return this.setState({ bounds: { top:
|
|
2991
|
+
var f = o.getBoundingClientRect(), p = f.left, g = f.top, h = document.body.getBoundingClientRect(), y = -(p - o.offsetLeft * l - h.left) / l, w = -(g - o.offsetTop * l - h.top) / l, P = (document.body.offsetWidth - this.resizable.size.width * l) / l + y, T = (document.body.offsetHeight - this.resizable.size.height * l) / l + w;
|
|
2992
|
+
return this.setState({ bounds: { top: w, right: P, bottom: T, left: y } });
|
|
2993
2993
|
} else if (this.props.bounds === "window") {
|
|
2994
2994
|
if (!this.resizable)
|
|
2995
2995
|
return;
|
|
2996
|
-
var
|
|
2996
|
+
var E = o.getBoundingClientRect(), b = E.left, d = E.top, v = -(b - o.offsetLeft * l) / l, x = -(d - o.offsetTop * l) / l, P = (window.innerWidth - this.resizable.size.width * l) / l + v, T = (window.innerHeight - this.resizable.size.height * l) / l + x;
|
|
2997
2997
|
return this.setState({ bounds: { top: x, right: P, bottom: T, left: v } });
|
|
2998
2998
|
} else typeof this.props.bounds == "string" ? a = document.querySelector(this.props.bounds) : this.props.bounds instanceof HTMLElement && (a = this.props.bounds);
|
|
2999
2999
|
if (!(!(a instanceof HTMLElement) || !(o instanceof HTMLElement))) {
|
|
@@ -3042,18 +3042,18 @@ var fn = {
|
|
|
3042
3042
|
this.props.bounds === "parent" ? p = f : this.props.bounds === "body" ? p = document.body : this.props.bounds === "window" ? p = window : typeof this.props.bounds == "string" ? p = document.querySelector(this.props.bounds) : this.props.bounds instanceof HTMLElement && (p = this.props.bounds);
|
|
3043
3043
|
var g = this.getSelfElement();
|
|
3044
3044
|
if (g instanceof Element && (p instanceof HTMLElement || p === window) && f instanceof HTMLElement) {
|
|
3045
|
-
var h = this.getMaxSizesFromProps(), y = h.maxWidth,
|
|
3045
|
+
var h = this.getMaxSizesFromProps(), y = h.maxWidth, w = h.maxHeight, P = this.getParentSize();
|
|
3046
3046
|
if (y && typeof y == "string")
|
|
3047
3047
|
if (y.endsWith("%")) {
|
|
3048
3048
|
var T = Number(y.replace("%", "")) / 100;
|
|
3049
3049
|
y = P.width * T;
|
|
3050
3050
|
} else y.endsWith("px") && (y = Number(y.replace("px", "")));
|
|
3051
|
-
if (
|
|
3052
|
-
if (
|
|
3053
|
-
var T = Number(
|
|
3054
|
-
|
|
3055
|
-
} else
|
|
3056
|
-
var
|
|
3051
|
+
if (w && typeof w == "string")
|
|
3052
|
+
if (w.endsWith("%")) {
|
|
3053
|
+
var T = Number(w.replace("%", "")) / 100;
|
|
3054
|
+
w = P.height * T;
|
|
3055
|
+
} else w.endsWith("px") && (w = Number(w.replace("px", "")));
|
|
3056
|
+
var E = g.getBoundingClientRect(), b = E.left, d = E.top, v = this.props.bounds === "window" ? { left: 0, top: 0 } : p.getBoundingClientRect(), x = v.left, c = v.top, j = this.getOffsetWidth(p), u = this.getOffsetHeight(p), m = e.toLowerCase().endsWith("left"), C = e.toLowerCase().endsWith("right"), M = e.startsWith("top"), V = e.startsWith("bottom");
|
|
3057
3057
|
if ((m || M) && this.resizable) {
|
|
3058
3058
|
var A = (b - x) / o + this.resizable.size.width;
|
|
3059
3059
|
this.setState({ maxWidth: A > Number(y) ? y : A });
|
|
@@ -3065,13 +3065,13 @@ var fn = {
|
|
|
3065
3065
|
if ((M || m) && this.resizable) {
|
|
3066
3066
|
var A = (d - c) / o + this.resizable.size.height;
|
|
3067
3067
|
this.setState({
|
|
3068
|
-
maxHeight: A > Number(
|
|
3068
|
+
maxHeight: A > Number(w) ? w : A
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
3071
|
if (V || this.props.lockAspectRatio && !M && !m) {
|
|
3072
3072
|
var A = u + (c - d) / o;
|
|
3073
3073
|
this.setState({
|
|
3074
|
-
maxHeight: A > Number(
|
|
3074
|
+
maxHeight: A > Number(w) ? w : A
|
|
3075
3075
|
});
|
|
3076
3076
|
}
|
|
3077
3077
|
}
|
|
@@ -3088,9 +3088,9 @@ var fn = {
|
|
|
3088
3088
|
(a.x !== h.x || a.y !== h.y) && Qt(function() {
|
|
3089
3089
|
l.draggable.setState(a);
|
|
3090
3090
|
}), this.updateOffsetFromParent();
|
|
3091
|
-
var y = this.offsetFromParent,
|
|
3092
|
-
this.resizingPosition = { x:
|
|
3093
|
-
x:
|
|
3091
|
+
var y = this.offsetFromParent, w = this.getDraggablePosition().x + y.left, P = this.getDraggablePosition().y + y.top;
|
|
3092
|
+
this.resizingPosition = { x: w, y: P }, this.props.onResize && this.props.onResize(t, e, i, o, {
|
|
3093
|
+
x: w,
|
|
3094
3094
|
y: P
|
|
3095
3095
|
});
|
|
3096
3096
|
}, n.prototype.onResizeStop = function(t, e, i, o) {
|
|
@@ -3116,9 +3116,9 @@ var fn = {
|
|
|
3116
3116
|
top: f.top - a + h - p.y * t
|
|
3117
3117
|
};
|
|
3118
3118
|
}, n.prototype.render = function() {
|
|
3119
|
-
var t = this, e = this.props, i = e.disableDragging, o = e.style, l = e.dragHandleClassName, a = e.position, f = e.onMouseDown, p = e.onMouseUp, g = e.dragAxis, h = e.dragGrid, y = e.bounds,
|
|
3119
|
+
var t = this, e = this.props, i = e.disableDragging, o = e.style, l = e.dragHandleClassName, a = e.position, f = e.onMouseDown, p = e.onMouseUp, g = e.dragAxis, h = e.dragGrid, y = e.bounds, w = e.enableUserSelectHack, P = e.cancel, T = e.children;
|
|
3120
3120
|
e.onResizeStart, e.onResize, e.onResizeStop, e.onDragStart, e.onDrag, e.onDragStop;
|
|
3121
|
-
var
|
|
3121
|
+
var E = e.resizeHandleStyles, b = e.resizeHandleClasses, d = e.resizeHandleComponent, v = e.enableResizing, x = e.resizeGrid, c = e.resizeHandleWrapperClass, j = e.resizeHandleWrapperStyle, u = e.scale, m = e.allowAnyClick, C = e.dragPositionOffset, M = cn(e, ["disableDragging", "style", "dragHandleClassName", "position", "onMouseDown", "onMouseUp", "dragAxis", "dragGrid", "bounds", "enableUserSelectHack", "cancel", "children", "onResizeStart", "onResize", "onResizeStop", "onDragStart", "onDrag", "onDragStop", "resizeHandleStyles", "resizeHandleClasses", "resizeHandleComponent", "enableResizing", "resizeGrid", "resizeHandleWrapperClass", "resizeHandleWrapperStyle", "scale", "allowAnyClick", "dragPositionOffset"]), V = this.props.default ? oe({}, this.props.default) : void 0;
|
|
3122
3122
|
delete M.default;
|
|
3123
3123
|
var A = i || l ? { cursor: "auto" } : { cursor: "move" }, B = oe(oe(oe({}, fn), A), o), Q = this.offsetFromParent, se = Q.left, ee = Q.top, ae;
|
|
3124
3124
|
a && (ae = {
|
|
@@ -3129,8 +3129,8 @@ var fn = {
|
|
|
3129
3129
|
return St(
|
|
3130
3130
|
Zr,
|
|
3131
3131
|
{
|
|
3132
|
-
ref: function(
|
|
3133
|
-
|
|
3132
|
+
ref: function(S) {
|
|
3133
|
+
S && (t.draggable = S);
|
|
3134
3134
|
},
|
|
3135
3135
|
handle: l ? ".".concat(l) : void 0,
|
|
3136
3136
|
defaultPosition: V,
|
|
@@ -3145,16 +3145,16 @@ var fn = {
|
|
|
3145
3145
|
grid: h,
|
|
3146
3146
|
bounds: y ? this.state.bounds : void 0,
|
|
3147
3147
|
position: ce,
|
|
3148
|
-
enableUserSelectHack:
|
|
3148
|
+
enableUserSelectHack: w,
|
|
3149
3149
|
cancel: P,
|
|
3150
3150
|
scale: u,
|
|
3151
3151
|
allowAnyClick: m,
|
|
3152
3152
|
nodeRef: this.resizableElement,
|
|
3153
3153
|
positionOffset: C
|
|
3154
3154
|
},
|
|
3155
|
-
St(ln, oe({}, M, { ref: function(
|
|
3156
|
-
|
|
3157
|
-
}, defaultSize: V, size: this.props.size, enable: typeof v == "boolean" ? dn(v) : v, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: B, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: x, handleWrapperClass: c, handleWrapperStyle: j, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles:
|
|
3155
|
+
St(ln, oe({}, M, { ref: function(S) {
|
|
3156
|
+
S && (t.resizable = S, t.resizableElement.current = S.resizable);
|
|
3157
|
+
}, defaultSize: V, size: this.props.size, enable: typeof v == "boolean" ? dn(v) : v, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: B, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: x, handleWrapperClass: c, handleWrapperStyle: j, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: E, handleClasses: b, handleComponent: d, scale: this.props.scale }), T)
|
|
3158
3158
|
);
|
|
3159
3159
|
}, n.defaultProps = {
|
|
3160
3160
|
maxWidth: Number.MAX_SAFE_INTEGER,
|
|
@@ -3189,15 +3189,19 @@ const _n = ({
|
|
|
3189
3189
|
if (!t) return null;
|
|
3190
3190
|
const f = l.document.body.clientWidth, p = l.document.body.clientHeight, g = Math.max(0, (f - i) / 2), h = Math.max(0, (p - o) / 2);
|
|
3191
3191
|
console.log(f, p, g, h);
|
|
3192
|
-
const [y,
|
|
3192
|
+
const [y, w] = $e({
|
|
3193
3193
|
width: i,
|
|
3194
3194
|
height: o,
|
|
3195
3195
|
x: g,
|
|
3196
3196
|
y: h
|
|
3197
|
-
})
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3197
|
+
});
|
|
3198
|
+
Le(() => {
|
|
3199
|
+
console.log("Changed, initialHeight"), w((E) => ({ ...E, width: i, height: o }));
|
|
3200
|
+
}, [i, o]);
|
|
3201
|
+
const P = (E, b) => {
|
|
3202
|
+
w((d) => ({ ...d, x: b.x, y: b.y }));
|
|
3203
|
+
}, T = (E, b, d, v, x) => {
|
|
3204
|
+
w({
|
|
3201
3205
|
width: parseInt(d.style.width, 10) || i,
|
|
3202
3206
|
height: parseInt(d.style.height, 10) || o,
|
|
3203
3207
|
x: x.x,
|
|
@@ -3270,12 +3274,12 @@ const _n = ({
|
|
|
3270
3274
|
}, p = (y) => {
|
|
3271
3275
|
o(!1), l(y);
|
|
3272
3276
|
}, g = (y) => {
|
|
3273
|
-
const
|
|
3277
|
+
const w = y.id === n;
|
|
3274
3278
|
return /* @__PURE__ */ R.jsx(
|
|
3275
3279
|
"li",
|
|
3276
3280
|
{
|
|
3277
3281
|
onClick: () => p(y),
|
|
3278
|
-
className:
|
|
3282
|
+
className: w ? "active" : "",
|
|
3279
3283
|
children: /* @__PURE__ */ R.jsx("a", { href: "#", children: y.title })
|
|
3280
3284
|
},
|
|
3281
3285
|
y.id
|
|
@@ -3303,7 +3307,7 @@ const _n = ({
|
|
|
3303
3307
|
const [n, t] = $e(!1), e = r.selected, i = r.items.find((l) => l.id == e);
|
|
3304
3308
|
r.debug && (console.log(r), console.log(i));
|
|
3305
3309
|
const o = Kt(null);
|
|
3306
|
-
return
|
|
3310
|
+
return Le(() => {
|
|
3307
3311
|
const l = (a) => {
|
|
3308
3312
|
o.current && !o.current.contains(a.target) && t(!1);
|
|
3309
3313
|
};
|
|
@@ -3362,7 +3366,7 @@ const _n = ({
|
|
|
3362
3366
|
)
|
|
3363
3367
|
] })
|
|
3364
3368
|
] });
|
|
3365
|
-
},
|
|
3369
|
+
}, it = ({
|
|
3366
3370
|
children: r,
|
|
3367
3371
|
onChange: n,
|
|
3368
3372
|
items: t,
|
|
@@ -3370,7 +3374,7 @@ const _n = ({
|
|
|
3370
3374
|
className: i = ""
|
|
3371
3375
|
}) => {
|
|
3372
3376
|
const [o, l] = $e(!1), a = Kt(null);
|
|
3373
|
-
return
|
|
3377
|
+
return Le(() => {
|
|
3374
3378
|
const f = (p) => {
|
|
3375
3379
|
a.current && !a.current.contains(p.target) && l(!1);
|
|
3376
3380
|
};
|
|
@@ -3414,13 +3418,13 @@ const _n = ({
|
|
|
3414
3418
|
n(a.data);
|
|
3415
3419
|
}, o = (l = r.find((a) => a.data === t)) == null ? void 0 : l.id;
|
|
3416
3420
|
return /* @__PURE__ */ R.jsx(
|
|
3417
|
-
|
|
3421
|
+
it,
|
|
3418
3422
|
{
|
|
3419
3423
|
className: "flex",
|
|
3420
3424
|
items: r,
|
|
3421
3425
|
onChange: i,
|
|
3422
3426
|
selected: o,
|
|
3423
|
-
children: /* @__PURE__ */ R.jsxs(
|
|
3427
|
+
children: /* @__PURE__ */ R.jsxs(rt, { className: "m-0", type: "default", onClick: e, children: [
|
|
3424
3428
|
" ",
|
|
3425
3429
|
/* @__PURE__ */ R.jsx("i", { className: "fa fa-refresh" }),
|
|
3426
3430
|
" "
|
|
@@ -3576,7 +3580,7 @@ const _n = ({
|
|
|
3576
3580
|
] }) });
|
|
3577
3581
|
};
|
|
3578
3582
|
function $n(r, n) {
|
|
3579
|
-
|
|
3583
|
+
Le(() => {
|
|
3580
3584
|
if (!r)
|
|
3581
3585
|
return;
|
|
3582
3586
|
const t = setInterval(() => {
|
|
@@ -3596,7 +3600,7 @@ const Ln = () => /* @__PURE__ */ R.jsxs("div", { children: [
|
|
|
3596
3600
|
}
|
|
3597
3601
|
),
|
|
3598
3602
|
/* @__PURE__ */ R.jsx(
|
|
3599
|
-
|
|
3603
|
+
it,
|
|
3600
3604
|
{
|
|
3601
3605
|
onChange: () => {
|
|
3602
3606
|
},
|
|
@@ -3605,11 +3609,11 @@ const Ln = () => /* @__PURE__ */ R.jsxs("div", { children: [
|
|
|
3605
3609
|
{ id: 1, title: "10 сек" },
|
|
3606
3610
|
{ id: 2, title: "20 сек" }
|
|
3607
3611
|
],
|
|
3608
|
-
children: /* @__PURE__ */ R.jsx(
|
|
3612
|
+
children: /* @__PURE__ */ R.jsx(rt, { children: "Hello" })
|
|
3609
3613
|
}
|
|
3610
3614
|
),
|
|
3611
3615
|
/* @__PURE__ */ R.jsx(
|
|
3612
|
-
|
|
3616
|
+
it,
|
|
3613
3617
|
{
|
|
3614
3618
|
onChange: () => {
|
|
3615
3619
|
},
|
|
@@ -3618,19 +3622,19 @@ const Ln = () => /* @__PURE__ */ R.jsxs("div", { children: [
|
|
|
3618
3622
|
{ id: 1, title: "10 сек" },
|
|
3619
3623
|
{ id: 2, title: "20 сек" }
|
|
3620
3624
|
],
|
|
3621
|
-
children: /* @__PURE__ */ R.jsx(
|
|
3625
|
+
children: /* @__PURE__ */ R.jsx(rt, { children: "Hello" })
|
|
3622
3626
|
}
|
|
3623
3627
|
)
|
|
3624
3628
|
] });
|
|
3625
3629
|
export {
|
|
3626
3630
|
kn as Alert,
|
|
3627
3631
|
kr as Breadcrumb,
|
|
3628
|
-
|
|
3632
|
+
rt as Button,
|
|
3629
3633
|
An as Checkbox,
|
|
3630
3634
|
sr as Dropdown,
|
|
3631
3635
|
Nn as DropdownSelect,
|
|
3632
3636
|
_n as FloatModal,
|
|
3633
|
-
|
|
3637
|
+
it as GroupButtonContainer,
|
|
3634
3638
|
Pn as HelpText,
|
|
3635
3639
|
Sn as Input,
|
|
3636
3640
|
In as Label,
|