ovirt-ui-toolkit 0.0.126 → 0.0.128
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 +245 -245
- package/dist/ovirt-ui-toolkit.umd.js +10 -10
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ 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;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Mr(r) {
|
|
7
7
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
8
8
|
var n = r.default;
|
|
9
9
|
if (typeof n == "function") {
|
|
@@ -33,16 +33,16 @@ var De = { exports: {} }, Pe = {};
|
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
35
|
var Rt;
|
|
36
|
-
function
|
|
36
|
+
function Nr() {
|
|
37
37
|
if (Rt) return Pe;
|
|
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 = {},
|
|
42
|
-
p !== void 0 && (
|
|
41
|
+
var g, h = {}, b = null, w = null;
|
|
42
|
+
p !== void 0 && (b = "" + p), f.key !== void 0 && (b = "" + 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:
|
|
45
|
+
return { $$typeof: n, type: a, key: b, 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,24 +59,24 @@ 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"),
|
|
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"), b = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), P = Symbol.iterator, T = "@@iterator";
|
|
63
63
|
function E(s) {
|
|
64
64
|
if (s === null || typeof s != "object")
|
|
65
65
|
return null;
|
|
66
66
|
var _ = P && s[P] || s[T];
|
|
67
67
|
return typeof _ == "function" ? _ : null;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var y = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
70
70
|
function d(s) {
|
|
71
71
|
{
|
|
72
|
-
for (var _ = arguments.length, z = new Array(_ > 1 ? _ - 1 : 0),
|
|
73
|
-
z[
|
|
72
|
+
for (var _ = arguments.length, z = new Array(_ > 1 ? _ - 1 : 0), M = 1; M < _; M++)
|
|
73
|
+
z[M - 1] = arguments[M];
|
|
74
74
|
v("error", s, z);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
function v(s, _, z) {
|
|
78
78
|
{
|
|
79
|
-
var
|
|
79
|
+
var M = y.ReactDebugCurrentFrame, G = M.getStackAddendum();
|
|
80
80
|
G !== "" && (_ += "%s", z = z.concat([G]));
|
|
81
81
|
var Z = z.map(function(q) {
|
|
82
82
|
return String(q);
|
|
@@ -86,17 +86,17 @@ function Ar() {
|
|
|
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
|
-
function
|
|
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 ===
|
|
89
|
+
function N(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 === b || 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
96
|
function V(s, _, z) {
|
|
97
|
-
var
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
97
|
+
var M = s.displayName;
|
|
98
|
+
if (M)
|
|
99
|
+
return M;
|
|
100
100
|
var G = _.displayName || _.name || "";
|
|
101
101
|
return G !== "" ? z + "(" + G + ")" : z;
|
|
102
102
|
}
|
|
@@ -135,9 +135,9 @@ function Ar() {
|
|
|
135
135
|
case f:
|
|
136
136
|
return V(s, s.render, "ForwardRef");
|
|
137
137
|
case h:
|
|
138
|
-
var
|
|
139
|
-
return
|
|
140
|
-
case
|
|
138
|
+
var M = s.displayName || null;
|
|
139
|
+
return M !== null ? M : B(s.type) || "Memo";
|
|
140
|
+
case b: {
|
|
141
141
|
var G = s, Z = G._payload, q = G._init;
|
|
142
142
|
try {
|
|
143
143
|
return B(q(Z));
|
|
@@ -210,15 +210,15 @@ function Ar() {
|
|
|
210
210
|
se < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var k =
|
|
213
|
+
var k = y.ReactCurrentDispatcher, I;
|
|
214
214
|
function L(s, _, z) {
|
|
215
215
|
{
|
|
216
216
|
if (I === void 0)
|
|
217
217
|
try {
|
|
218
218
|
throw Error();
|
|
219
219
|
} catch (G) {
|
|
220
|
-
var
|
|
221
|
-
I =
|
|
220
|
+
var M = G.stack.trim().match(/\n( *(at )?)/);
|
|
221
|
+
I = M && M[1] || "";
|
|
222
222
|
}
|
|
223
223
|
return `
|
|
224
224
|
` + I + s;
|
|
@@ -237,7 +237,7 @@ function Ar() {
|
|
|
237
237
|
if (z !== void 0)
|
|
238
238
|
return z;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var M;
|
|
241
241
|
X = !0;
|
|
242
242
|
var G = Error.prepareStackTrace;
|
|
243
243
|
Error.prepareStackTrace = void 0;
|
|
@@ -256,14 +256,14 @@ function Ar() {
|
|
|
256
256
|
try {
|
|
257
257
|
Reflect.construct(q, []);
|
|
258
258
|
} catch (fe) {
|
|
259
|
-
|
|
259
|
+
M = fe;
|
|
260
260
|
}
|
|
261
261
|
Reflect.construct(s, [], q);
|
|
262
262
|
} else {
|
|
263
263
|
try {
|
|
264
264
|
q.call();
|
|
265
265
|
} catch (fe) {
|
|
266
|
-
|
|
266
|
+
M = fe;
|
|
267
267
|
}
|
|
268
268
|
s.call(q.prototype);
|
|
269
269
|
}
|
|
@@ -271,14 +271,14 @@ function Ar() {
|
|
|
271
271
|
try {
|
|
272
272
|
throw Error();
|
|
273
273
|
} catch (fe) {
|
|
274
|
-
|
|
274
|
+
M = fe;
|
|
275
275
|
}
|
|
276
276
|
s();
|
|
277
277
|
}
|
|
278
278
|
} catch (fe) {
|
|
279
|
-
if (fe &&
|
|
279
|
+
if (fe && M && typeof fe.stack == "string") {
|
|
280
280
|
for (var Y = fe.stack.split(`
|
|
281
|
-
`), ue =
|
|
281
|
+
`), ue = M.stack.split(`
|
|
282
282
|
`), te = Y.length - 1, ne = ue.length - 1; te >= 1 && ne >= 0 && Y[te] !== ue[ne]; )
|
|
283
283
|
ne--;
|
|
284
284
|
for (; te >= 1 && ne >= 0; te--, ne--)
|
|
@@ -326,8 +326,8 @@ function Ar() {
|
|
|
326
326
|
return pe(s.render);
|
|
327
327
|
case h:
|
|
328
328
|
return be(s.type, _, z);
|
|
329
|
-
case
|
|
330
|
-
var
|
|
329
|
+
case b: {
|
|
330
|
+
var M = s, G = M._payload, Z = M._init;
|
|
331
331
|
try {
|
|
332
332
|
return be(Z(G), _, z);
|
|
333
333
|
} catch {
|
|
@@ -336,7 +336,7 @@ function Ar() {
|
|
|
336
336
|
}
|
|
337
337
|
return "";
|
|
338
338
|
}
|
|
339
|
-
var _e = Object.prototype.hasOwnProperty, at = {}, lt =
|
|
339
|
+
var _e = Object.prototype.hasOwnProperty, at = {}, lt = y.ReactDebugCurrentFrame;
|
|
340
340
|
function ze(s) {
|
|
341
341
|
if (s) {
|
|
342
342
|
var _ = s._owner, z = be(s.type, s._source, _ ? _.type : null);
|
|
@@ -344,7 +344,7 @@ function Ar() {
|
|
|
344
344
|
} else
|
|
345
345
|
lt.setExtraStackFrame(null);
|
|
346
346
|
}
|
|
347
|
-
function ar(s, _, z,
|
|
347
|
+
function ar(s, _, z, M, G) {
|
|
348
348
|
{
|
|
349
349
|
var Z = Function.call.bind(_e);
|
|
350
350
|
for (var q in s)
|
|
@@ -352,14 +352,14 @@ function Ar() {
|
|
|
352
352
|
var Y = void 0;
|
|
353
353
|
try {
|
|
354
354
|
if (typeof s[q] != "function") {
|
|
355
|
-
var ue = Error((
|
|
355
|
+
var ue = Error((M || "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](_, q,
|
|
358
|
+
Y = s[q](_, q, M, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
359
359
|
} catch (te) {
|
|
360
360
|
Y = te;
|
|
361
361
|
}
|
|
362
|
-
Y && !(Y instanceof Error) && (ze(G), 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).",
|
|
362
|
+
Y && !(Y instanceof Error) && (ze(G), 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).", M || "React class", z, q, typeof Y), ze(null)), Y instanceof Error && !(Y.message in at) && (at[Y.message] = !0, ze(G), d("Failed %s type: %s", z, Y.message), ze(null));
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -387,7 +387,7 @@ function Ar() {
|
|
|
387
387
|
if (cr(s))
|
|
388
388
|
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ur(s)), ut(s);
|
|
389
389
|
}
|
|
390
|
-
var ft =
|
|
390
|
+
var ft = y.ReactCurrentOwner, fr = {
|
|
391
391
|
key: !0,
|
|
392
392
|
ref: !0,
|
|
393
393
|
__self: !0,
|
|
@@ -434,7 +434,7 @@ function Ar() {
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var mr = function(s, _, z,
|
|
437
|
+
var mr = function(s, _, z, M, 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,
|
|
@@ -455,7 +455,7 @@ function Ar() {
|
|
|
455
455
|
configurable: !1,
|
|
456
456
|
enumerable: !1,
|
|
457
457
|
writable: !1,
|
|
458
|
-
value:
|
|
458
|
+
value: M
|
|
459
459
|
}), Object.defineProperty(Y, "_source", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
@@ -463,7 +463,7 @@ function Ar() {
|
|
|
463
463
|
value: G
|
|
464
464
|
}), Object.freeze && (Object.freeze(Y.props), Object.freeze(Y)), Y;
|
|
465
465
|
};
|
|
466
|
-
function yr(s, _, z,
|
|
466
|
+
function yr(s, _, z, M, G) {
|
|
467
467
|
{
|
|
468
468
|
var Z, q = {}, Y = null, ue = null;
|
|
469
469
|
z !== void 0 && (ct(z), Y = "" + z), pr(_) && (ct(_.key), Y = "" + _.key), dr(_) && (ue = _.ref, hr(_, G));
|
|
@@ -478,10 +478,10 @@ function Ar() {
|
|
|
478
478
|
var ne = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
479
479
|
Y && gr(q, ne), ue && vr(q, ne);
|
|
480
480
|
}
|
|
481
|
-
return mr(s, Y, ue, G,
|
|
481
|
+
return mr(s, Y, ue, G, M, ft.current, q);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
var Be =
|
|
484
|
+
var Be = y.ReactCurrentOwner, ht = y.ReactDebugCurrentFrame;
|
|
485
485
|
function Se(s) {
|
|
486
486
|
if (s) {
|
|
487
487
|
var _ = s._owner, z = be(s.type, s._source, _ ? _.type : null);
|
|
@@ -531,8 +531,8 @@ Check the top-level render call using <` + z + ">.");
|
|
|
531
531
|
if (vt[z])
|
|
532
532
|
return;
|
|
533
533
|
vt[z] = !0;
|
|
534
|
-
var
|
|
535
|
-
s && s._owner && s._owner !== Be.current && (
|
|
534
|
+
var M = "";
|
|
535
|
+
s && s._owner && s._owner !== Be.current && (M = " 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, M), Se(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function yt(s, _) {
|
|
@@ -541,8 +541,8 @@ Check the top-level render call using <` + z + ">.");
|
|
|
541
541
|
return;
|
|
542
542
|
if (Ye(s))
|
|
543
543
|
for (var z = 0; z < s.length; z++) {
|
|
544
|
-
var
|
|
545
|
-
qe(
|
|
544
|
+
var M = s[z];
|
|
545
|
+
qe(M) && mt(M, _);
|
|
546
546
|
}
|
|
547
547
|
else if (qe(s))
|
|
548
548
|
s._store && (s._store.validated = !0);
|
|
@@ -569,8 +569,8 @@ Check the top-level render call using <` + z + ">.");
|
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (z) {
|
|
572
|
-
var
|
|
573
|
-
ar(z, s.props, "prop",
|
|
572
|
+
var M = B(_);
|
|
573
|
+
ar(z, s.props, "prop", M, s);
|
|
574
574
|
} else if (_.PropTypes !== void 0 && !Ue) {
|
|
575
575
|
Ue = !0;
|
|
576
576
|
var G = B(_);
|
|
@@ -582,9 +582,9 @@ Check the top-level render call using <` + z + ">.");
|
|
|
582
582
|
function Sr(s) {
|
|
583
583
|
{
|
|
584
584
|
for (var _ = Object.keys(s.props), z = 0; z < _.length; z++) {
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
587
|
-
Se(s), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
585
|
+
var M = _[z];
|
|
586
|
+
if (M !== "children" && M !== "key") {
|
|
587
|
+
Se(s), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), Se(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
@@ -592,9 +592,9 @@ Check the top-level render call using <` + z + ">.");
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
var bt = {};
|
|
595
|
-
function xt(s, _, z,
|
|
595
|
+
function xt(s, _, z, M, G, Z) {
|
|
596
596
|
{
|
|
597
|
-
var q =
|
|
597
|
+
var q = N(s);
|
|
598
598
|
if (!q) {
|
|
599
599
|
var Y = "";
|
|
600
600
|
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (Y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -609,7 +609,7 @@ Check the top-level render call using <` + z + ">.");
|
|
|
609
609
|
if (q) {
|
|
610
610
|
var he = _.children;
|
|
611
611
|
if (he !== void 0)
|
|
612
|
-
if (
|
|
612
|
+
if (M)
|
|
613
613
|
if (Ye(he)) {
|
|
614
614
|
for (var Re = 0; Re < he.length; Re++)
|
|
615
615
|
yt(he[Re], s);
|
|
@@ -648,7 +648,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
648
648
|
}
|
|
649
649
|
var _t;
|
|
650
650
|
function Wr() {
|
|
651
|
-
return _t || (_t = 1, process.env.NODE_ENV === "production" ? De.exports =
|
|
651
|
+
return _t || (_t = 1, process.env.NODE_ENV === "production" ? De.exports = Nr() : De.exports = Ar()), De.exports;
|
|
652
652
|
}
|
|
653
653
|
var R = Wr();
|
|
654
654
|
const bn = () => /* @__PURE__ */ R.jsx("div", { className: "toolbar-pf" }), kr = ({ items: r, className: n }) => /* @__PURE__ */ R.jsx("ol", { className: `breadcrumb ${n || ""}`.trim(), children: r.map((t, e) => /* @__PURE__ */ R.jsx("li", { className: t.active ? "active" : "", children: t.active ? t.title : /* @__PURE__ */ R.jsx("a", { href: t.href, children: t.title }) }, e)) }), Ir = /* @__PURE__ */ R.jsx("span", { className: "loading-spinner mr-2", children: /* @__PURE__ */ R.jsxs(
|
|
@@ -693,7 +693,7 @@ const bn = () => /* @__PURE__ */ R.jsx("div", { className: "toolbar-pf" }), kr =
|
|
|
693
693
|
isLoading: p = !1,
|
|
694
694
|
hint: g = ""
|
|
695
695
|
}) => {
|
|
696
|
-
const h = `btn-${r}`,
|
|
696
|
+
const h = `btn-${r}`, b = e ? `btn-${e}` : "", P = `${`btn ${h} ${b}`.trim()} ${f}`.trim();
|
|
697
697
|
return /* @__PURE__ */ R.jsx(
|
|
698
698
|
"button",
|
|
699
699
|
{
|
|
@@ -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: {} }, Ve = {}, je = { exports: {} },
|
|
783
|
+
var Ce = { exports: {} }, Ve = {}, je = { exports: {} }, Me = { 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,
|
|
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, b = 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, y = 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;
|
|
@@ -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 ===
|
|
855
|
+
return typeof c == "string" || typeof c == "function" || c === e || c === p || c === o || c === i || c === h || c === b || 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 === y || 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,
|
|
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, b = 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, y = 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 ===
|
|
873
|
+
O === e || O === p || O === o || O === i || O === h || O === b || 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 === y || O.$$typeof === d || O.$$typeof === T);
|
|
874
874
|
}
|
|
875
875
|
function x(O) {
|
|
876
876
|
if (typeof O == "object" && O !== null) {
|
|
@@ -904,7 +904,7 @@ function $r() {
|
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
var c = f, j = p, u = a, m = l, C = n,
|
|
907
|
+
var c = f, j = p, u = a, m = l, C = n, N = g, V = e, A = P, B = w, Q = t, se = o, ee = i, ae = h, ce = !1;
|
|
908
908
|
function de(O) {
|
|
909
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
|
}
|
|
@@ -944,12 +944,12 @@ 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 =
|
|
947
|
+
K.AsyncMode = c, K.ConcurrentMode = j, K.ContextConsumer = u, K.ContextProvider = m, K.Element = C, K.ForwardRef = N, 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;
|
|
951
951
|
function er() {
|
|
952
|
-
return Ct || (Ct = 1, process.env.NODE_ENV === "production" ?
|
|
952
|
+
return Ct || (Ct = 1, process.env.NODE_ENV === "production" ? Me.exports = Fr() : Me.exports = $r()), Me.exports;
|
|
953
953
|
}
|
|
954
954
|
/*
|
|
955
955
|
object-assign
|
|
@@ -995,8 +995,8 @@ function Lr() {
|
|
|
995
995
|
n.call(a, h) && (f[h] = a[h]);
|
|
996
996
|
if (r) {
|
|
997
997
|
p = r(a);
|
|
998
|
-
for (var
|
|
999
|
-
t.call(a, p[
|
|
998
|
+
for (var b = 0; b < p.length; b++)
|
|
999
|
+
t.call(a, p[b]) && (f[p[b]] = a[p[b]]);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
return f;
|
|
@@ -1037,10 +1037,10 @@ function Hr() {
|
|
|
1037
1037
|
var h;
|
|
1038
1038
|
try {
|
|
1039
1039
|
if (typeof o[g] != "function") {
|
|
1040
|
-
var
|
|
1040
|
+
var b = Error(
|
|
1041
1041
|
(f || "React class") + ": " + a + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1042
1042
|
);
|
|
1043
|
-
throw
|
|
1043
|
+
throw b.name = "Invariant Violation", b;
|
|
1044
1044
|
}
|
|
1045
1045
|
h = o[g](l, g, f, a, null, n);
|
|
1046
1046
|
} catch (P) {
|
|
@@ -1062,10 +1062,10 @@ function Hr() {
|
|
|
1062
1062
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1063
1063
|
}, Ze = i, Ze;
|
|
1064
1064
|
}
|
|
1065
|
-
var Qe,
|
|
1065
|
+
var Qe, Mt;
|
|
1066
1066
|
function Yr() {
|
|
1067
|
-
if (
|
|
1068
|
-
|
|
1067
|
+
if (Mt) return Qe;
|
|
1068
|
+
Mt = 1;
|
|
1069
1069
|
var r = er(), n = Lr(), t = /* @__PURE__ */ ot(), e = /* @__PURE__ */ tr(), i = /* @__PURE__ */ Hr(), o = function() {
|
|
1070
1070
|
};
|
|
1071
1071
|
process.env.NODE_ENV !== "production" && (o = function(a) {
|
|
@@ -1086,21 +1086,21 @@ function Yr() {
|
|
|
1086
1086
|
if (typeof D == "function")
|
|
1087
1087
|
return D;
|
|
1088
1088
|
}
|
|
1089
|
-
var
|
|
1090
|
-
array:
|
|
1091
|
-
bigint:
|
|
1092
|
-
bool:
|
|
1093
|
-
func:
|
|
1094
|
-
number:
|
|
1095
|
-
object:
|
|
1096
|
-
string:
|
|
1097
|
-
symbol:
|
|
1089
|
+
var b = "<<anonymous>>", w = {
|
|
1090
|
+
array: y("array"),
|
|
1091
|
+
bigint: y("bigint"),
|
|
1092
|
+
bool: y("boolean"),
|
|
1093
|
+
func: y("function"),
|
|
1094
|
+
number: y("number"),
|
|
1095
|
+
object: y("object"),
|
|
1096
|
+
string: y("string"),
|
|
1097
|
+
symbol: y("symbol"),
|
|
1098
1098
|
any: d(),
|
|
1099
1099
|
arrayOf: v,
|
|
1100
1100
|
element: x(),
|
|
1101
1101
|
elementType: c(),
|
|
1102
1102
|
instanceOf: j,
|
|
1103
|
-
node:
|
|
1103
|
+
node: N(),
|
|
1104
1104
|
objectOf: m,
|
|
1105
1105
|
oneOf: u,
|
|
1106
1106
|
oneOfType: C,
|
|
@@ -1118,7 +1118,7 @@ function Yr() {
|
|
|
1118
1118
|
if (process.env.NODE_ENV !== "production")
|
|
1119
1119
|
var D = {}, $ = 0;
|
|
1120
1120
|
function F(U, k, I, L, X, H, le) {
|
|
1121
|
-
if (L = L ||
|
|
1121
|
+
if (L = L || b, H = H || I, le !== t) {
|
|
1122
1122
|
if (f) {
|
|
1123
1123
|
var O = new Error(
|
|
1124
1124
|
"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"
|
|
@@ -1137,7 +1137,7 @@ function Yr() {
|
|
|
1137
1137
|
var W = F.bind(null, !1);
|
|
1138
1138
|
return W.isRequired = F.bind(null, !0), W;
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function y(S) {
|
|
1141
1141
|
function D($, F, W, U, k, I) {
|
|
1142
1142
|
var L = $[F], X = ee(L);
|
|
1143
1143
|
if (X !== S) {
|
|
@@ -1197,7 +1197,7 @@ function Yr() {
|
|
|
1197
1197
|
function j(S) {
|
|
1198
1198
|
function D($, F, W, U, k) {
|
|
1199
1199
|
if (!($[F] instanceof S)) {
|
|
1200
|
-
var I = S.name ||
|
|
1200
|
+
var I = S.name || b, 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;
|
|
@@ -1260,7 +1260,7 @@ function Yr() {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
return E(F);
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function N() {
|
|
1264
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
|
}
|
|
@@ -1378,15 +1378,15 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
function de(S) {
|
|
1381
|
-
return !S.constructor || !S.constructor.name ?
|
|
1381
|
+
return !S.constructor || !S.constructor.name ? b : S.constructor.name;
|
|
1382
1382
|
}
|
|
1383
1383
|
return w.checkPropTypes = i, w.resetWarningCache = i.resetWarningCache, w.PropTypes = w, w;
|
|
1384
1384
|
}, Qe;
|
|
1385
1385
|
}
|
|
1386
|
-
var et,
|
|
1386
|
+
var et, Nt;
|
|
1387
1387
|
function Br() {
|
|
1388
|
-
if (
|
|
1389
|
-
|
|
1388
|
+
if (Nt) return et;
|
|
1389
|
+
Nt = 1;
|
|
1390
1390
|
var r = /* @__PURE__ */ ot();
|
|
1391
1391
|
function n() {
|
|
1392
1392
|
}
|
|
@@ -1395,10 +1395,10 @@ function Br() {
|
|
|
1395
1395
|
return t.resetWarningCache = n, et = function() {
|
|
1396
1396
|
function e(l, a, f, p, g, h) {
|
|
1397
1397
|
if (h !== r) {
|
|
1398
|
-
var
|
|
1398
|
+
var b = new Error(
|
|
1399
1399
|
"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"
|
|
1400
1400
|
);
|
|
1401
|
-
throw
|
|
1401
|
+
throw b.name = "Invariant Violation", b;
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
1404
|
e.isRequired = e;
|
|
@@ -1456,7 +1456,7 @@ const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1456
1456
|
__proto__: null,
|
|
1457
1457
|
clsx: Wt,
|
|
1458
1458
|
default: Wt
|
|
1459
|
-
}, Symbol.toStringTag, { value: "Module" })), qr = /* @__PURE__ */
|
|
1459
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = /* @__PURE__ */ Mr(Ur);
|
|
1460
1460
|
var re = {}, me = {}, kt;
|
|
1461
1461
|
function He() {
|
|
1462
1462
|
if (kt) return me;
|
|
@@ -1518,13 +1518,13 @@ 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 =
|
|
1521
|
+
}), re.addClassName = c, re.addEvent = a, re.addUserSelectStyles = v, re.createCSSTransform = P, re.createSVGTransform = T, re.getTouch = y, re.getTouchIdentifier = d, re.getTranslation = E, re.innerHeight = h, re.innerWidth = b, 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
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();
|
|
1526
|
-
return (t = function(
|
|
1527
|
-
return
|
|
1526
|
+
return (t = function(N) {
|
|
1527
|
+
return N ? C : m;
|
|
1528
1528
|
})(u);
|
|
1529
1529
|
}
|
|
1530
1530
|
function e(u, m) {
|
|
@@ -1535,13 +1535,13 @@ function st() {
|
|
|
1535
1535
|
var C = t(m);
|
|
1536
1536
|
if (C && C.has(u))
|
|
1537
1537
|
return C.get(u);
|
|
1538
|
-
var
|
|
1538
|
+
var N = {}, V = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1539
1539
|
for (var A in u)
|
|
1540
1540
|
if (A !== "default" && Object.prototype.hasOwnProperty.call(u, A)) {
|
|
1541
1541
|
var B = V ? Object.getOwnPropertyDescriptor(u, A) : null;
|
|
1542
|
-
B && (B.get || B.set) ? Object.defineProperty(
|
|
1542
|
+
B && (B.get || B.set) ? Object.defineProperty(N, A, B) : N[A] = u[A];
|
|
1543
1543
|
}
|
|
1544
|
-
return
|
|
1544
|
+
return N.default = u, C && C.set(u, N), N;
|
|
1545
1545
|
}
|
|
1546
1546
|
let i = "";
|
|
1547
1547
|
function o(u, m) {
|
|
@@ -1550,27 +1550,27 @@ function st() {
|
|
|
1550
1550
|
})), (0, r.isFunction)(u[i]) ? u[i](m) : !1;
|
|
1551
1551
|
}
|
|
1552
1552
|
function l(u, m, C) {
|
|
1553
|
-
let
|
|
1553
|
+
let N = u;
|
|
1554
1554
|
do {
|
|
1555
|
-
if (o(
|
|
1556
|
-
if (
|
|
1557
|
-
|
|
1558
|
-
} while (
|
|
1555
|
+
if (o(N, m)) return !0;
|
|
1556
|
+
if (N === C) return !1;
|
|
1557
|
+
N = N.parentNode;
|
|
1558
|
+
} while (N);
|
|
1559
1559
|
return !1;
|
|
1560
1560
|
}
|
|
1561
|
-
function a(u, m, C,
|
|
1561
|
+
function a(u, m, C, N) {
|
|
1562
1562
|
if (!u) return;
|
|
1563
1563
|
const V = {
|
|
1564
1564
|
capture: !0,
|
|
1565
|
-
...
|
|
1565
|
+
...N
|
|
1566
1566
|
};
|
|
1567
1567
|
u.addEventListener ? u.addEventListener(m, C, V) : u.attachEvent ? u.attachEvent("on" + m, C) : u["on" + m] = C;
|
|
1568
1568
|
}
|
|
1569
|
-
function f(u, m, C,
|
|
1569
|
+
function f(u, m, C, N) {
|
|
1570
1570
|
if (!u) return;
|
|
1571
1571
|
const V = {
|
|
1572
1572
|
capture: !0,
|
|
1573
|
-
...
|
|
1573
|
+
...N
|
|
1574
1574
|
};
|
|
1575
1575
|
u.removeEventListener ? u.removeEventListener(m, C, V) : u.detachEvent ? u.detachEvent("on" + m, C) : u["on" + m] = null;
|
|
1576
1576
|
}
|
|
@@ -1589,7 +1589,7 @@ function st() {
|
|
|
1589
1589
|
const C = u.ownerDocument.defaultView.getComputedStyle(u);
|
|
1590
1590
|
return m -= (0, r.int)(C.paddingTop), m -= (0, r.int)(C.paddingBottom), m;
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function b(u) {
|
|
1593
1593
|
let m = u.clientWidth;
|
|
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;
|
|
@@ -1615,16 +1615,16 @@ function st() {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
function E(u, m, C) {
|
|
1617
1617
|
let {
|
|
1618
|
-
x:
|
|
1618
|
+
x: N,
|
|
1619
1619
|
y: V
|
|
1620
|
-
} = u, A = "translate(".concat(
|
|
1620
|
+
} = u, A = "translate(".concat(N).concat(C, ",").concat(V).concat(C, ")");
|
|
1621
1621
|
if (m) {
|
|
1622
1622
|
const B = "".concat(typeof m.x == "string" ? m.x : m.x + C), Q = "".concat(typeof m.y == "string" ? m.y : m.y + C);
|
|
1623
1623
|
A = "translate(".concat(B, ", ").concat(Q, ")") + A;
|
|
1624
1624
|
}
|
|
1625
1625
|
return A;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function y(u, m) {
|
|
1628
1628
|
return u.targetTouches && (0, r.findInArray)(u.targetTouches, (C) => m === C.identifier) || u.changedTouches && (0, r.findInArray)(u.changedTouches, (C) => m === C.identifier);
|
|
1629
1629
|
}
|
|
1630
1630
|
function d(u) {
|
|
@@ -1665,8 +1665,8 @@ function ir() {
|
|
|
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
1667
|
var r = He(), n = st();
|
|
1668
|
-
function t(h,
|
|
1669
|
-
if (!h.props.bounds) return [
|
|
1668
|
+
function t(h, b, w) {
|
|
1669
|
+
if (!h.props.bounds) return [b, w];
|
|
1670
1670
|
let {
|
|
1671
1671
|
bounds: P
|
|
1672
1672
|
} = h.props;
|
|
@@ -1675,11 +1675,11 @@ function ir() {
|
|
|
1675
1675
|
if (typeof P == "string") {
|
|
1676
1676
|
const {
|
|
1677
1677
|
ownerDocument: E
|
|
1678
|
-
} = T,
|
|
1678
|
+
} = T, y = E.defaultView;
|
|
1679
1679
|
let d;
|
|
1680
|
-
if (P === "parent" ? d = T.parentNode : d = E.querySelector(P), !(d instanceof
|
|
1680
|
+
if (P === "parent" ? d = T.parentNode : d = E.querySelector(P), !(d instanceof y.HTMLElement))
|
|
1681
1681
|
throw new Error('Bounds selector "' + P + '" could not find an element.');
|
|
1682
|
-
const v = d, x =
|
|
1682
|
+
const v = d, x = y.getComputedStyle(T), c = y.getComputedStyle(v);
|
|
1683
1683
|
P = {
|
|
1684
1684
|
left: -T.offsetLeft + (0, r.int)(c.paddingLeft) + (0, r.int)(x.marginLeft),
|
|
1685
1685
|
top: -T.offsetTop + (0, r.int)(c.paddingTop) + (0, r.int)(x.marginTop),
|
|
@@ -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) && (
|
|
1690
|
+
return (0, r.isNum)(P.right) && (b = Math.min(b, P.right)), (0, r.isNum)(P.bottom) && (w = Math.min(w, P.bottom)), (0, r.isNum)(P.left) && (b = Math.max(b, P.left)), (0, r.isNum)(P.top) && (w = Math.max(w, P.top)), [b, w];
|
|
1691
1691
|
}
|
|
1692
|
-
function e(h,
|
|
1693
|
-
const P = Math.round(
|
|
1692
|
+
function e(h, b, w) {
|
|
1693
|
+
const P = Math.round(b / 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,
|
|
1703
|
-
const P = typeof
|
|
1704
|
-
if (typeof
|
|
1702
|
+
function l(h, b, w) {
|
|
1703
|
+
const P = typeof b == "number" ? (0, n.getTouch)(h, b) : null;
|
|
1704
|
+
if (typeof b == "number" && !P) return null;
|
|
1705
1705
|
const T = g(w), E = w.props.offsetParent || T.offsetParent || T.ownerDocument.body;
|
|
1706
1706
|
return (0, n.offsetXYFromParent)(P || h, E, w.props.scale);
|
|
1707
1707
|
}
|
|
1708
|
-
function a(h,
|
|
1708
|
+
function a(h, b, 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
|
-
lastX:
|
|
1714
|
+
lastX: b,
|
|
1715
1715
|
lastY: w,
|
|
1716
|
-
x:
|
|
1716
|
+
x: b,
|
|
1717
1717
|
y: w
|
|
1718
1718
|
} : {
|
|
1719
1719
|
node: T,
|
|
1720
|
-
deltaX:
|
|
1720
|
+
deltaX: b - h.lastX,
|
|
1721
1721
|
deltaY: w - h.lastY,
|
|
1722
1722
|
lastX: h.lastX,
|
|
1723
1723
|
lastY: h.lastY,
|
|
1724
|
-
x:
|
|
1724
|
+
x: b,
|
|
1725
1725
|
y: w
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
|
-
function f(h,
|
|
1728
|
+
function f(h, b) {
|
|
1729
1729
|
const w = h.props.scale;
|
|
1730
1730
|
return {
|
|
1731
|
-
node:
|
|
1732
|
-
x: h.state.x +
|
|
1733
|
-
y: h.state.y +
|
|
1734
|
-
deltaX:
|
|
1735
|
-
deltaY:
|
|
1731
|
+
node: b.node,
|
|
1732
|
+
x: h.state.x + b.deltaX / w,
|
|
1733
|
+
y: h.state.y + b.deltaY / w,
|
|
1734
|
+
deltaX: b.deltaX / w,
|
|
1735
|
+
deltaY: b.deltaY / w,
|
|
1736
1736
|
lastX: h.state.x,
|
|
1737
1737
|
lastY: h.state.y
|
|
1738
1738
|
};
|
|
@@ -1746,22 +1746,22 @@ function ir() {
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
function g(h) {
|
|
1749
|
-
const
|
|
1750
|
-
if (!
|
|
1749
|
+
const b = h.findDOMNode();
|
|
1750
|
+
if (!b)
|
|
1751
1751
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1752
|
-
return
|
|
1752
|
+
return b;
|
|
1753
1753
|
}
|
|
1754
1754
|
return ge;
|
|
1755
1755
|
}
|
|
1756
|
-
var Oe = {},
|
|
1756
|
+
var Oe = {}, Ne = {}, Lt;
|
|
1757
1757
|
function or() {
|
|
1758
|
-
if (Lt) return
|
|
1759
|
-
Lt = 1, Object.defineProperty(
|
|
1758
|
+
if (Lt) return Ne;
|
|
1759
|
+
Lt = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1760
1760
|
value: !0
|
|
1761
|
-
}),
|
|
1761
|
+
}), Ne.default = r;
|
|
1762
1762
|
function r() {
|
|
1763
1763
|
}
|
|
1764
|
-
return
|
|
1764
|
+
return Ne;
|
|
1765
1765
|
}
|
|
1766
1766
|
var Ht;
|
|
1767
1767
|
function Vr() {
|
|
@@ -1775,17 +1775,17 @@ function Vr() {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
function f(E) {
|
|
1777
1777
|
if (typeof WeakMap != "function") return null;
|
|
1778
|
-
var
|
|
1778
|
+
var y = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
|
|
1779
1779
|
return (f = function(v) {
|
|
1780
|
-
return v ? d :
|
|
1780
|
+
return v ? d : y;
|
|
1781
1781
|
})(E);
|
|
1782
1782
|
}
|
|
1783
|
-
function p(E,
|
|
1783
|
+
function p(E, y) {
|
|
1784
1784
|
if (E && E.__esModule)
|
|
1785
1785
|
return E;
|
|
1786
1786
|
if (E === null || typeof E != "object" && typeof E != "function")
|
|
1787
1787
|
return { default: E };
|
|
1788
|
-
var d = f(
|
|
1788
|
+
var d = f(y);
|
|
1789
1789
|
if (d && d.has(E))
|
|
1790
1790
|
return d.get(E);
|
|
1791
1791
|
var v = {}, x = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
@@ -1796,22 +1796,22 @@ function Vr() {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
return v.default = E, d && d.set(E, v), v;
|
|
1798
1798
|
}
|
|
1799
|
-
function g(E,
|
|
1800
|
-
return
|
|
1799
|
+
function g(E, y, d) {
|
|
1800
|
+
return y = h(y), y in E ? Object.defineProperty(E, y, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : E[y] = d, E;
|
|
1801
1801
|
}
|
|
1802
1802
|
function h(E) {
|
|
1803
|
-
var
|
|
1804
|
-
return typeof
|
|
1803
|
+
var y = b(E, "string");
|
|
1804
|
+
return typeof y == "symbol" ? y : String(y);
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function b(E, y) {
|
|
1807
1807
|
if (typeof E != "object" || E === null) return E;
|
|
1808
1808
|
var d = E[Symbol.toPrimitive];
|
|
1809
1809
|
if (d !== void 0) {
|
|
1810
|
-
var v = d.call(E,
|
|
1810
|
+
var v = d.call(E, y);
|
|
1811
1811
|
if (typeof v != "object") return v;
|
|
1812
1812
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1813
1813
|
}
|
|
1814
|
-
return (
|
|
1814
|
+
return (y === "string" ? String : Number)(E);
|
|
1815
1815
|
}
|
|
1816
1816
|
const w = {
|
|
1817
1817
|
touch: {
|
|
@@ -1827,28 +1827,28 @@ function Vr() {
|
|
|
1827
1827
|
};
|
|
1828
1828
|
let P = w.mouse, T = class extends r.Component {
|
|
1829
1829
|
constructor() {
|
|
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", (
|
|
1831
|
-
if (this.props.onMouseDown(
|
|
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", (y) => {
|
|
1831
|
+
if (this.props.onMouseDown(y), !this.props.allowAnyClick && typeof y.button == "number" && y.button !== 0) return !1;
|
|
1832
1832
|
const d = this.findDOMNode();
|
|
1833
1833
|
if (!d || !d.ownerDocument || !d.ownerDocument.body)
|
|
1834
1834
|
throw new Error("<DraggableCore> not mounted on DragStart!");
|
|
1835
1835
|
const {
|
|
1836
1836
|
ownerDocument: v
|
|
1837
1837
|
} = d;
|
|
1838
|
-
if (this.props.disabled || !(
|
|
1838
|
+
if (this.props.disabled || !(y.target instanceof v.defaultView.Node) || this.props.handle && !(0, e.matchesSelectorAndParentsTo)(y.target, this.props.handle, d) || this.props.cancel && (0, e.matchesSelectorAndParentsTo)(y.target, this.props.cancel, d))
|
|
1839
1839
|
return;
|
|
1840
|
-
|
|
1841
|
-
const x = (0, e.getTouchIdentifier)(
|
|
1840
|
+
y.type === "touchstart" && y.preventDefault();
|
|
1841
|
+
const x = (0, e.getTouchIdentifier)(y);
|
|
1842
1842
|
this.touchIdentifier = x;
|
|
1843
|
-
const c = (0, i.getControlPosition)(
|
|
1843
|
+
const c = (0, i.getControlPosition)(y, x, this);
|
|
1844
1844
|
if (c == null) return;
|
|
1845
1845
|
const {
|
|
1846
1846
|
x: j,
|
|
1847
1847
|
y: u
|
|
1848
1848
|
} = c, m = (0, i.createCoreData)(this, j, u);
|
|
1849
|
-
(0, l.default)("DraggableCore: handleDragStart: %j", m), (0, l.default)("calling", this.props.onStart), !(this.props.onStart(
|
|
1850
|
-
}), g(this, "handleDrag", (
|
|
1851
|
-
const d = (0, i.getControlPosition)(
|
|
1849
|
+
(0, l.default)("DraggableCore: handleDragStart: %j", m), (0, l.default)("calling", this.props.onStart), !(this.props.onStart(y, m) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, e.addUserSelectStyles)(v), this.dragging = !0, this.lastX = j, this.lastY = u, (0, e.addEvent)(v, P.move, this.handleDrag), (0, e.addEvent)(v, P.stop, this.handleDragStop));
|
|
1850
|
+
}), g(this, "handleDrag", (y) => {
|
|
1851
|
+
const d = (0, i.getControlPosition)(y, this.touchIdentifier, this);
|
|
1852
1852
|
if (d == null) return;
|
|
1853
1853
|
let {
|
|
1854
1854
|
x: v,
|
|
@@ -1860,7 +1860,7 @@ function Vr() {
|
|
|
1860
1860
|
v = this.lastX + u, x = this.lastY + m;
|
|
1861
1861
|
}
|
|
1862
1862
|
const c = (0, i.createCoreData)(this, v, x);
|
|
1863
|
-
if ((0, l.default)("DraggableCore: handleDrag: %j", c), this.props.onDrag(
|
|
1863
|
+
if ((0, l.default)("DraggableCore: handleDrag: %j", c), this.props.onDrag(y, c) === !1 || this.mounted === !1) {
|
|
1864
1864
|
try {
|
|
1865
1865
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
1866
1866
|
} catch {
|
|
@@ -1870,9 +1870,9 @@ function Vr() {
|
|
|
1870
1870
|
return;
|
|
1871
1871
|
}
|
|
1872
1872
|
this.lastX = v, this.lastY = x;
|
|
1873
|
-
}), g(this, "handleDragStop", (
|
|
1873
|
+
}), g(this, "handleDragStop", (y) => {
|
|
1874
1874
|
if (!this.dragging) return;
|
|
1875
|
-
const d = (0, i.getControlPosition)(
|
|
1875
|
+
const d = (0, i.getControlPosition)(y, this.touchIdentifier, this);
|
|
1876
1876
|
if (d == null) return;
|
|
1877
1877
|
let {
|
|
1878
1878
|
x: v,
|
|
@@ -1883,26 +1883,26 @@ function Vr() {
|
|
|
1883
1883
|
[m, C] = (0, i.snapToGrid)(this.props.grid, m, C), v = this.lastX + m, x = this.lastY + C;
|
|
1884
1884
|
}
|
|
1885
1885
|
const c = (0, i.createCoreData)(this, v, x);
|
|
1886
|
-
if (this.props.onStop(
|
|
1886
|
+
if (this.props.onStop(y, 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", (
|
|
1889
|
+
}), g(this, "onMouseDown", (y) => (P = w.mouse, this.handleDragStart(y))), g(this, "onMouseUp", (y) => (P = w.mouse, this.handleDragStop(y))), g(this, "onTouchStart", (y) => (P = w.touch, this.handleDragStart(y))), g(this, "onTouchEnd", (y) => (P = w.touch, this.handleDragStop(y)));
|
|
1890
1890
|
}
|
|
1891
1891
|
componentDidMount() {
|
|
1892
1892
|
this.mounted = !0;
|
|
1893
|
-
const
|
|
1894
|
-
|
|
1893
|
+
const y = this.findDOMNode();
|
|
1894
|
+
y && (0, e.addEvent)(y, w.touch.start, this.onTouchStart, {
|
|
1895
1895
|
passive: !1
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
1898
1898
|
componentWillUnmount() {
|
|
1899
1899
|
this.mounted = !1;
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
1900
|
+
const y = this.findDOMNode();
|
|
1901
|
+
if (y) {
|
|
1902
1902
|
const {
|
|
1903
1903
|
ownerDocument: d
|
|
1904
|
-
} =
|
|
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)(
|
|
1904
|
+
} = y;
|
|
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)(y, w.touch.start, this.onTouchStart, {
|
|
1906
1906
|
passive: !1
|
|
1907
1907
|
}), this.props.enableUserSelectHack && (0, e.removeUserSelectStyles)(d);
|
|
1908
1908
|
}
|
|
@@ -1910,8 +1910,8 @@ function Vr() {
|
|
|
1910
1910
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
1911
1911
|
// the underlying DOM node ourselves. See the README for more information.
|
|
1912
1912
|
findDOMNode() {
|
|
1913
|
-
var
|
|
1914
|
-
return (
|
|
1913
|
+
var y, d;
|
|
1914
|
+
return (y = this.props) !== null && y !== void 0 && y.nodeRef ? (d = this.props) === null || d === void 0 || (d = d.nodeRef) === null || d === void 0 ? void 0 : d.current : t.default.findDOMNode(this);
|
|
1915
1915
|
}
|
|
1916
1916
|
render() {
|
|
1917
1917
|
return /* @__PURE__ */ r.cloneElement(r.Children.only(this.props.children), {
|
|
@@ -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(E,
|
|
1954
|
-
if (E[
|
|
1953
|
+
offsetParent: function(E, y) {
|
|
1954
|
+
if (E[y] && E[y].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 =
|
|
2078
|
+
var n = b(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
|
}
|
|
@@ -2086,7 +2086,7 @@ function Gr() {
|
|
|
2086
2086
|
return c ? x : v;
|
|
2087
2087
|
})(d);
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function b(d, v) {
|
|
2090
2090
|
if (d && d.__esModule)
|
|
2091
2091
|
return d;
|
|
2092
2092
|
if (d === null || typeof d != "object" && typeof d != "function")
|
|
@@ -2129,7 +2129,7 @@ function Gr() {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
return (v === "string" ? String : Number)(d);
|
|
2131
2131
|
}
|
|
2132
|
-
class
|
|
2132
|
+
class y extends n.Component {
|
|
2133
2133
|
// React 16.3+
|
|
2134
2134
|
// Arity (props, state)
|
|
2135
2135
|
static getDerivedStateFromProps(v, x) {
|
|
@@ -2168,11 +2168,11 @@ function Gr() {
|
|
|
2168
2168
|
if (this.props.bounds) {
|
|
2169
2169
|
const {
|
|
2170
2170
|
x: C,
|
|
2171
|
-
y:
|
|
2171
|
+
y: N
|
|
2172
2172
|
} = u;
|
|
2173
2173
|
u.x += this.state.slackX, u.y += this.state.slackY;
|
|
2174
2174
|
const [V, A] = (0, l.getBoundPosition)(this, u.x, u.y);
|
|
2175
|
-
u.x = V, u.y = A, u.slackX = this.state.slackX + (C - u.x), u.slackY = this.state.slackY + (
|
|
2175
|
+
u.x = V, u.y = A, u.slackX = this.state.slackX + (C - u.x), u.slackY = this.state.slackY + (N - u.y), j.x = u.x, j.y = u.y, j.deltaX = u.x - this.state.x, j.deltaY = u.y - this.state.y;
|
|
2176
2176
|
}
|
|
2177
2177
|
if (this.props.onDrag(x, j) === !1) return !1;
|
|
2178
2178
|
this.setState(u);
|
|
@@ -2187,9 +2187,9 @@ function Gr() {
|
|
|
2187
2187
|
if (!!this.props.position) {
|
|
2188
2188
|
const {
|
|
2189
2189
|
x: C,
|
|
2190
|
-
y:
|
|
2190
|
+
y: N
|
|
2191
2191
|
} = this.props.position;
|
|
2192
|
-
u.x = C, u.y =
|
|
2192
|
+
u.x = C, u.y = N;
|
|
2193
2193
|
}
|
|
2194
2194
|
this.setState(u);
|
|
2195
2195
|
}), this.state = {
|
|
@@ -2235,13 +2235,13 @@ function Gr() {
|
|
|
2235
2235
|
defaultClassName: u,
|
|
2236
2236
|
defaultClassNameDragging: m,
|
|
2237
2237
|
defaultClassNameDragged: C,
|
|
2238
|
-
position:
|
|
2238
|
+
position: N,
|
|
2239
2239
|
positionOffset: V,
|
|
2240
2240
|
scale: A,
|
|
2241
2241
|
...B
|
|
2242
2242
|
} = this.props;
|
|
2243
2243
|
let Q = {}, se = null;
|
|
2244
|
-
const ae = !!!
|
|
2244
|
+
const ae = !!!N || this.state.dragging, ce = N || j, de = {
|
|
2245
2245
|
// Set left if horizontal drag is enabled
|
|
2246
2246
|
x: (0, l.canDragX)(this) && ae ? this.state.x : ce.x,
|
|
2247
2247
|
// Set top if vertical drag is enabled
|
|
@@ -2266,7 +2266,7 @@ function Gr() {
|
|
|
2266
2266
|
}));
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
r.default =
|
|
2269
|
+
r.default = y, P(y, "displayName", "Draggable"), P(y, "propTypes", {
|
|
2270
2270
|
// Accepts all props <DraggableCore> accepts.
|
|
2271
2271
|
...f.default.propTypes,
|
|
2272
2272
|
/**
|
|
@@ -2373,7 +2373,7 @@ function Gr() {
|
|
|
2373
2373
|
className: a.dontSetMe,
|
|
2374
2374
|
style: a.dontSetMe,
|
|
2375
2375
|
transform: a.dontSetMe
|
|
2376
|
-
}), P(
|
|
2376
|
+
}), P(y, "defaultProps", {
|
|
2377
2377
|
...f.default.defaultProps,
|
|
2378
2378
|
axis: "both",
|
|
2379
2379
|
bounds: !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,
|
|
2689
|
-
return Ee("right", p) && (T = g.width + (t - g.x) * l / i,
|
|
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, b = h.lockAspectRatio, w = h.lockAspectRatioExtraHeight, P = h.lockAspectRatioExtraWidth, T = g.width, E = g.height, y = w || 0, d = P || 0;
|
|
2689
|
+
return Ee("right", p) && (T = g.width + (t - g.x) * l / i, b && (E = (T - d) / this.ratio + y)), Ee("left", p) && (T = g.width - (t - g.x) * l / i, b && (E = (T - d) / this.ratio + y)), Ee("bottom", p) && (E = g.height + (e - g.y) * a / i, b && (T = (E - y) * this.ratio + d)), Ee("top", p) && (E = g.height - (e - g.y) * a / i, b && (T = (E - y) * 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,
|
|
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, b = 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 E = (
|
|
2693
|
+
var E = (b - P) * this.ratio + T, y = (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, y), j = Math.max(b, 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,
|
|
2696
|
+
t = We(t, g, h), e = We(e, b, w);
|
|
2697
2697
|
return { newWidth: t, newHeight: e };
|
|
2698
2698
|
}, n.prototype.setBoundingClientRect = function() {
|
|
2699
2699
|
var t = 1 / (this.props.scale || 1);
|
|
@@ -2752,14 +2752,14 @@ 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,
|
|
2756
|
-
o =
|
|
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, b = h.direction, w = h.original, P = h.width, T = h.height, E = this.getParentSize(), y = on(E, this.window.innerWidth, this.window.innerHeight, o, l, a, f);
|
|
2756
|
+
o = y.maxWidth, l = y.maxHeight, a = y.minWidth, f = y.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));
|
|
2759
2759
|
var j = this.calculateNewSizeFromAspectRatio(x, v, { width: c.maxWidth, height: c.maxHeight }, { width: a, height: f });
|
|
2760
2760
|
if (x = j.newWidth, v = j.newHeight, this.props.grid) {
|
|
2761
|
-
var u = Xt(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), m = Xt(v, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0,
|
|
2762
|
-
x =
|
|
2761
|
+
var u = Xt(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), m = Xt(v, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), C = this.props.snapGap || 0, N = C === 0 || Math.abs(u - x) <= C ? u : x, V = C === 0 || Math.abs(m - v) <= C ? m : v;
|
|
2762
|
+
x = N, v = V;
|
|
2763
2763
|
}
|
|
2764
2764
|
var A = {
|
|
2765
2765
|
width: x - w.width,
|
|
@@ -2797,7 +2797,7 @@ var ie = function() {
|
|
|
2797
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
2798
|
S && Qt(function() {
|
|
2799
2799
|
e.setState(ee);
|
|
2800
|
-
}), this.props.onResize && S && this.props.onResize(t,
|
|
2800
|
+
}), this.props.onResize && S && this.props.onResize(t, b, 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;
|
|
@@ -2988,16 +2988,16 @@ 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(),
|
|
2992
|
-
return this.setState({ bounds: { top: w, right: P, bottom: T, left:
|
|
2991
|
+
var f = o.getBoundingClientRect(), p = f.left, g = f.top, h = document.body.getBoundingClientRect(), b = -(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 + b, T = (document.body.offsetHeight - this.resizable.size.height * l) / l + w;
|
|
2992
|
+
return this.setState({ bounds: { top: w, right: P, bottom: T, left: b } });
|
|
2993
2993
|
} else if (this.props.bounds === "window") {
|
|
2994
2994
|
if (!this.resizable)
|
|
2995
2995
|
return;
|
|
2996
|
-
var E = o.getBoundingClientRect(),
|
|
2996
|
+
var E = o.getBoundingClientRect(), y = E.left, d = E.top, v = -(y - 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))) {
|
|
3000
|
-
var c = a.getBoundingClientRect(), j = c.left, u = c.top, m = o.getBoundingClientRect(), C = m.left,
|
|
3000
|
+
var c = a.getBoundingClientRect(), j = c.left, u = c.top, m = o.getBoundingClientRect(), C = m.left, N = m.top, V = (j - C) / l, A = u - N;
|
|
3001
3001
|
if (this.resizable) {
|
|
3002
3002
|
this.updateOffsetFromParent();
|
|
3003
3003
|
var B = this.offsetFromParent;
|
|
@@ -3042,33 +3042,33 @@ 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(),
|
|
3046
|
-
if (
|
|
3047
|
-
if (
|
|
3048
|
-
var T = Number(
|
|
3049
|
-
|
|
3050
|
-
} else
|
|
3045
|
+
var h = this.getMaxSizesFromProps(), b = h.maxWidth, w = h.maxHeight, P = this.getParentSize();
|
|
3046
|
+
if (b && typeof b == "string")
|
|
3047
|
+
if (b.endsWith("%")) {
|
|
3048
|
+
var T = Number(b.replace("%", "")) / 100;
|
|
3049
|
+
b = P.width * T;
|
|
3050
|
+
} else b.endsWith("px") && (b = Number(b.replace("px", "")));
|
|
3051
3051
|
if (w && typeof w == "string")
|
|
3052
3052
|
if (w.endsWith("%")) {
|
|
3053
3053
|
var T = Number(w.replace("%", "")) / 100;
|
|
3054
3054
|
w = P.height * T;
|
|
3055
3055
|
} else w.endsWith("px") && (w = Number(w.replace("px", "")));
|
|
3056
|
-
var E = g.getBoundingClientRect(),
|
|
3057
|
-
if ((m ||
|
|
3058
|
-
var A = (
|
|
3059
|
-
this.setState({ maxWidth: A > Number(
|
|
3056
|
+
var E = g.getBoundingClientRect(), y = 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"), N = e.startsWith("top"), V = e.startsWith("bottom");
|
|
3057
|
+
if ((m || N) && this.resizable) {
|
|
3058
|
+
var A = (y - x) / o + this.resizable.size.width;
|
|
3059
|
+
this.setState({ maxWidth: A > Number(b) ? b : A });
|
|
3060
3060
|
}
|
|
3061
|
-
if (C || this.props.lockAspectRatio && !m && !
|
|
3062
|
-
var A = j + (x -
|
|
3063
|
-
this.setState({ maxWidth: A > Number(
|
|
3061
|
+
if (C || this.props.lockAspectRatio && !m && !N) {
|
|
3062
|
+
var A = j + (x - y) / o;
|
|
3063
|
+
this.setState({ maxWidth: A > Number(b) ? b : A });
|
|
3064
3064
|
}
|
|
3065
|
-
if ((
|
|
3065
|
+
if ((N || m) && this.resizable) {
|
|
3066
3066
|
var A = (d - c) / o + this.resizable.size.height;
|
|
3067
3067
|
this.setState({
|
|
3068
3068
|
maxHeight: A > Number(w) ? w : A
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
|
-
if (V || this.props.lockAspectRatio && !
|
|
3071
|
+
if (V || this.props.lockAspectRatio && !N && !m) {
|
|
3072
3072
|
var A = u + (c - d) / o;
|
|
3073
3073
|
this.setState({
|
|
3074
3074
|
maxHeight: A > Number(w) ? w : A
|
|
@@ -3088,7 +3088,7 @@ 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
|
|
3091
|
+
var b = this.offsetFromParent, w = this.getDraggablePosition().x + b.left, P = this.getDraggablePosition().y + b.top;
|
|
3092
3092
|
this.resizingPosition = { x: w, y: P }, this.props.onResize && this.props.onResize(t, e, i, o, {
|
|
3093
3093
|
x: w,
|
|
3094
3094
|
y: P
|
|
@@ -3116,10 +3116,10 @@ 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,
|
|
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, b = 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 E = e.resizeHandleStyles,
|
|
3122
|
-
delete
|
|
3121
|
+
var E = e.resizeHandleStyles, y = 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, N = 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
|
+
delete N.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 = {
|
|
3125
3125
|
x: a.x - se,
|
|
@@ -3143,7 +3143,7 @@ var fn = {
|
|
|
3143
3143
|
axis: de,
|
|
3144
3144
|
disabled: i,
|
|
3145
3145
|
grid: h,
|
|
3146
|
-
bounds:
|
|
3146
|
+
bounds: b ? this.state.bounds : void 0,
|
|
3147
3147
|
position: ce,
|
|
3148
3148
|
enableUserSelectHack: w,
|
|
3149
3149
|
cancel: P,
|
|
@@ -3152,9 +3152,9 @@ var fn = {
|
|
|
3152
3152
|
nodeRef: this.resizableElement,
|
|
3153
3153
|
positionOffset: C
|
|
3154
3154
|
},
|
|
3155
|
-
St(ln, oe({},
|
|
3155
|
+
St(ln, oe({}, N, { ref: function(S) {
|
|
3156
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:
|
|
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: y, handleComponent: d, scale: this.props.scale }), T)
|
|
3158
3158
|
);
|
|
3159
3159
|
}, n.defaultProps = {
|
|
3160
3160
|
maxWidth: Number.MAX_SAFE_INTEGER,
|
|
@@ -3187,20 +3187,20 @@ const _n = ({
|
|
|
3187
3187
|
className: a = ""
|
|
3188
3188
|
}) => {
|
|
3189
3189
|
if (!t) return null;
|
|
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
|
-
console.log(f, p, g, h);
|
|
3192
|
-
const [y, w] = $e({
|
|
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), [b, w] = $e({
|
|
3193
3191
|
width: i,
|
|
3194
3192
|
height: o,
|
|
3195
3193
|
x: g,
|
|
3196
3194
|
y: h
|
|
3197
3195
|
});
|
|
3198
3196
|
Le(() => {
|
|
3199
|
-
console.log("Changed, initialHeight")
|
|
3197
|
+
console.log("Changed, initialHeight");
|
|
3198
|
+
const E = Math.max(0, (f - i) / 2), y = Math.max(0, (p - o) / 2);
|
|
3199
|
+
w(() => ({ x: E, y, width: i, height: o }));
|
|
3200
3200
|
}, [i, o]);
|
|
3201
|
-
const P = (E,
|
|
3202
|
-
w((d) => ({ ...d, x:
|
|
3203
|
-
}, T = (E,
|
|
3201
|
+
const P = (E, y) => {
|
|
3202
|
+
w((d) => ({ ...d, x: y.x, y: y.y }));
|
|
3203
|
+
}, T = (E, y, d, v, x) => {
|
|
3204
3204
|
w({
|
|
3205
3205
|
width: parseInt(d.style.width, 10) || i,
|
|
3206
3206
|
height: parseInt(d.style.height, 10) || o,
|
|
@@ -3223,8 +3223,8 @@ const _n = ({
|
|
|
3223
3223
|
children: /* @__PURE__ */ R.jsx(
|
|
3224
3224
|
pn,
|
|
3225
3225
|
{
|
|
3226
|
-
size: { width:
|
|
3227
|
-
position: { x:
|
|
3226
|
+
size: { width: b.width, height: b.height },
|
|
3227
|
+
position: { x: b.x, y: b.y },
|
|
3228
3228
|
onDragStop: P,
|
|
3229
3229
|
onResizeStop: T,
|
|
3230
3230
|
minWidth: 300,
|
|
@@ -3269,20 +3269,20 @@ const _n = ({
|
|
|
3269
3269
|
onChange: l,
|
|
3270
3270
|
className: a = ""
|
|
3271
3271
|
}) => {
|
|
3272
|
-
const f = (
|
|
3273
|
-
o(!
|
|
3274
|
-
}, p = (
|
|
3275
|
-
o(!1), l(
|
|
3276
|
-
}, g = (
|
|
3277
|
-
const w =
|
|
3272
|
+
const f = (b) => {
|
|
3273
|
+
o(!b);
|
|
3274
|
+
}, p = (b) => {
|
|
3275
|
+
o(!1), l(b);
|
|
3276
|
+
}, g = (b) => {
|
|
3277
|
+
const w = b.id === n;
|
|
3278
3278
|
return /* @__PURE__ */ R.jsx(
|
|
3279
3279
|
"li",
|
|
3280
3280
|
{
|
|
3281
|
-
onClick: () => p(
|
|
3281
|
+
onClick: () => p(b),
|
|
3282
3282
|
className: w ? "active" : "",
|
|
3283
|
-
children: /* @__PURE__ */ R.jsx("a", { href: "#", children:
|
|
3283
|
+
children: /* @__PURE__ */ R.jsx("a", { href: "#", children: b.title })
|
|
3284
3284
|
},
|
|
3285
|
-
|
|
3285
|
+
b.id
|
|
3286
3286
|
);
|
|
3287
3287
|
}, h = `btn btn-default dropdown-toggle flex-1 ${a}`;
|
|
3288
3288
|
return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
|
|
@@ -3303,7 +3303,7 @@ const _n = ({
|
|
|
3303
3303
|
),
|
|
3304
3304
|
/* @__PURE__ */ R.jsx("ul", { className: "dropdown-menu", role: "menu", children: r.map(g) })
|
|
3305
3305
|
] });
|
|
3306
|
-
},
|
|
3306
|
+
}, Mn = (r) => {
|
|
3307
3307
|
const [n, t] = $e(!1), e = r.selected, i = r.items.find((l) => l.id == e);
|
|
3308
3308
|
r.debug && (console.log(r), console.log(i));
|
|
3309
3309
|
const o = Kt(null);
|
|
@@ -3431,7 +3431,7 @@ const _n = ({
|
|
|
3431
3431
|
] })
|
|
3432
3432
|
}
|
|
3433
3433
|
);
|
|
3434
|
-
},
|
|
3434
|
+
}, Nn = ({
|
|
3435
3435
|
interval: r,
|
|
3436
3436
|
page: n,
|
|
3437
3437
|
itemsReload: t,
|
|
@@ -3515,8 +3515,8 @@ const _n = ({
|
|
|
3515
3515
|
className: l = ""
|
|
3516
3516
|
}) => {
|
|
3517
3517
|
const [a, f] = $e(e || ""), p = e !== void 0 ? e : a, g = (h) => {
|
|
3518
|
-
const
|
|
3519
|
-
i ? i(
|
|
3518
|
+
const b = h.target.value;
|
|
3519
|
+
i ? i(b) : f(b);
|
|
3520
3520
|
};
|
|
3521
3521
|
return /* @__PURE__ */ R.jsx(
|
|
3522
3522
|
"textarea",
|
|
@@ -3632,7 +3632,7 @@ export {
|
|
|
3632
3632
|
rt as Button,
|
|
3633
3633
|
An as Checkbox,
|
|
3634
3634
|
sr as Dropdown,
|
|
3635
|
-
|
|
3635
|
+
Mn as DropdownSelect,
|
|
3636
3636
|
_n as FloatModal,
|
|
3637
3637
|
it as GroupButtonContainer,
|
|
3638
3638
|
Pn as HelpText,
|
|
@@ -3645,7 +3645,7 @@ export {
|
|
|
3645
3645
|
Ln as SampleComp,
|
|
3646
3646
|
xn as Tab,
|
|
3647
3647
|
Tn as Table,
|
|
3648
|
-
|
|
3648
|
+
Nn as TableToolbar,
|
|
3649
3649
|
wn as Tabs,
|
|
3650
3650
|
Cn as Tbody,
|
|
3651
3651
|
On as Td,
|