@canonical/maas-react-components 1.23.1 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as K, jsx as l, Fragment as Ae } from "react/jsx-runtime";
|
|
2
2
|
import * as oe from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useListener as bt, Link as ht, Spinner as _t, Tooltip as Et, Button as
|
|
5
|
-
function
|
|
3
|
+
import pt, { useRef as Oe, useState as ge, useEffect as _e, useCallback as Q, cloneElement as dt, createContext as mt, useId as ke, useContext as Mr, useMemo as se, useReducer as Lr, forwardRef as vt, useImperativeHandle as yt, Fragment as gt } from "react";
|
|
4
|
+
import { useListener as bt, Link as ht, Spinner as _t, Tooltip as Et, Button as fe, Icon as we, Row as wt, Col as St, Input as Ct, Label as Tt, CheckboxInput as xt, useClickOutside as Ot, useOnEscapePressed as Dt, SearchBox as At } from "@canonical/react-components";
|
|
5
|
+
function Br(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
var
|
|
8
|
+
var zr = { exports: {} };
|
|
9
9
|
/*!
|
|
10
10
|
Copyright (c) 2018 Jed Watson.
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
@@ -40,9 +40,9 @@ var Br = { exports: {} };
|
|
|
40
40
|
}
|
|
41
41
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
42
42
|
})();
|
|
43
|
-
})(
|
|
44
|
-
var Pt =
|
|
45
|
-
const B = /* @__PURE__ */
|
|
43
|
+
})(zr);
|
|
44
|
+
var Pt = zr.exports;
|
|
45
|
+
const B = /* @__PURE__ */ Br(Pt);
|
|
46
46
|
const ye = {
|
|
47
47
|
caution: "#F99B11",
|
|
48
48
|
light: "#F7F7F7",
|
|
@@ -52,12 +52,12 @@ const ye = {
|
|
|
52
52
|
positiveFaded: "#B7CCB9",
|
|
53
53
|
positiveMid: "#4DAB4D",
|
|
54
54
|
positive: "#0E8420"
|
|
55
|
-
},
|
|
55
|
+
}, Do = [
|
|
56
56
|
ye.link,
|
|
57
57
|
ye.positive,
|
|
58
58
|
ye.negative,
|
|
59
59
|
ye.caution
|
|
60
|
-
], Rt = ye.linkFaded,
|
|
60
|
+
], Rt = ye.linkFaded, Wr = ye.caution, tr = ye.light, mr = 2, vr = 1, yr = (e, r) => {
|
|
61
61
|
var a, o;
|
|
62
62
|
const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
|
|
63
63
|
return t > r * mr ? t / r : mr;
|
|
@@ -68,7 +68,7 @@ const ye = {
|
|
|
68
68
|
label: "meter-label",
|
|
69
69
|
meteroverflow: "meter-overflow",
|
|
70
70
|
segments: "meter-segments"
|
|
71
|
-
},
|
|
71
|
+
}, Ft = ({
|
|
72
72
|
className: e,
|
|
73
73
|
children: r,
|
|
74
74
|
data: t,
|
|
@@ -77,14 +77,14 @@ const ye = {
|
|
|
77
77
|
size: o = "regular",
|
|
78
78
|
...s
|
|
79
79
|
}) => {
|
|
80
|
-
const i = Oe(null), f = t == null ? void 0 : t.reduce((
|
|
80
|
+
const i = Oe(null), f = t == null ? void 0 : t.reduce((C, S) => C + S.value, 0), c = n || f, v = t.map((C) => C.value / c * 100), [g, h] = ge(0);
|
|
81
81
|
_e(() => {
|
|
82
|
-
h(a === "segmented" ?
|
|
82
|
+
h(a === "segmented" ? yr(i, c) : 0);
|
|
83
83
|
}, [c, a]);
|
|
84
|
-
const
|
|
85
|
-
h(
|
|
84
|
+
const b = Q(() => {
|
|
85
|
+
h(yr(i, c));
|
|
86
86
|
}, [i, c, h]);
|
|
87
|
-
return bt(window,
|
|
87
|
+
return bt(window, b, "resize", !0, a === "segmented"), /* @__PURE__ */ K(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
className: B("p-meter", e, {
|
|
@@ -94,14 +94,14 @@ const ye = {
|
|
|
94
94
|
"data-testid": Ee.container,
|
|
95
95
|
ref: i,
|
|
96
96
|
children: [
|
|
97
|
-
/* @__PURE__ */ l(
|
|
97
|
+
/* @__PURE__ */ l(It, { children: /* @__PURE__ */ l(
|
|
98
98
|
jt,
|
|
99
99
|
{
|
|
100
100
|
data: t,
|
|
101
101
|
datumWidths: v,
|
|
102
102
|
maximum: c,
|
|
103
|
-
overColor:
|
|
104
|
-
segmentWidth:
|
|
103
|
+
overColor: Wr,
|
|
104
|
+
segmentWidth: g,
|
|
105
105
|
separatorColor: tr
|
|
106
106
|
}
|
|
107
107
|
) }),
|
|
@@ -109,7 +109,7 @@ const ye = {
|
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
},
|
|
112
|
+
}, It = ({ children: e }) => /* @__PURE__ */ l(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
className: "p-meter__bar",
|
|
@@ -126,7 +126,7 @@ const ye = {
|
|
|
126
126
|
const a = () => (e == null ? void 0 : e.reduce((i, f) => i + f.value, 0)) > t, o = (i, f) => ({
|
|
127
127
|
backgroundColor: i.color,
|
|
128
128
|
left: `${r == null ? void 0 : r.reduce(
|
|
129
|
-
(c, v,
|
|
129
|
+
(c, v, g) => f > g ? c + v : c,
|
|
130
130
|
0
|
|
131
131
|
)}%`,
|
|
132
132
|
width: `${r[f]}%`
|
|
@@ -145,7 +145,7 @@ const ye = {
|
|
|
145
145
|
{
|
|
146
146
|
className: "p-meter__filled",
|
|
147
147
|
"data-testid": Ee.meteroverflow,
|
|
148
|
-
style: { backgroundColor:
|
|
148
|
+
style: { backgroundColor: Wr, width: "100%" }
|
|
149
149
|
}
|
|
150
150
|
) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */ l(
|
|
151
151
|
"div",
|
|
@@ -176,8 +176,8 @@ const ye = {
|
|
|
176
176
|
children: r
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
|
|
180
|
-
const
|
|
179
|
+
Ft.Label = Nt;
|
|
180
|
+
const Ao = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(ht, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e });
|
|
181
181
|
const kt = ({
|
|
182
182
|
percentComplete: e
|
|
183
183
|
}) => /* @__PURE__ */ K("small", { className: "progress-indicator", children: [
|
|
@@ -201,7 +201,7 @@ const kt = ({
|
|
|
201
201
|
position: "right",
|
|
202
202
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
203
203
|
children: /* @__PURE__ */ l(
|
|
204
|
-
|
|
204
|
+
fe,
|
|
205
205
|
{
|
|
206
206
|
appearance: "base",
|
|
207
207
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
@@ -230,7 +230,7 @@ const kt = ({
|
|
|
230
230
|
children: r,
|
|
231
231
|
className: t,
|
|
232
232
|
...n
|
|
233
|
-
}) => /* @__PURE__ */ l(e || "a", { className: B("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }), Jt = ({ children: e }) =>
|
|
233
|
+
}) => /* @__PURE__ */ l(e || "a", { className: B("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }), Jt = ({ children: e }) => dt(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Zt = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ l(
|
|
234
234
|
"div",
|
|
235
235
|
{
|
|
236
236
|
className: B("p-panel__logo-name is-fading-when-collapsed", {
|
|
@@ -243,7 +243,7 @@ const kt = ({
|
|
|
243
243
|
className: r,
|
|
244
244
|
onClick: t
|
|
245
245
|
}) => /* @__PURE__ */ l(
|
|
246
|
-
|
|
246
|
+
fe,
|
|
247
247
|
{
|
|
248
248
|
appearance: "base",
|
|
249
249
|
className: B(
|
|
@@ -276,7 +276,7 @@ H.LogoIcon = Jt;
|
|
|
276
276
|
H.LogoName = Zt;
|
|
277
277
|
H.LogoText = Qt;
|
|
278
278
|
tn.MenuButton = en;
|
|
279
|
-
const lr =
|
|
279
|
+
const lr = mt(null), Yr = ({ children: e }) => {
|
|
280
280
|
const r = ke();
|
|
281
281
|
return /* @__PURE__ */ l(lr.Provider, { value: r, children: /* @__PURE__ */ l(
|
|
282
282
|
"div",
|
|
@@ -295,8 +295,8 @@ const lr = dt(null), Wr = ({ children: e }) => {
|
|
|
295
295
|
const r = Mr(lr);
|
|
296
296
|
return /* @__PURE__ */ l("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
|
|
297
297
|
};
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
Yr.Label = nn;
|
|
299
|
+
Yr.Description = on;
|
|
300
300
|
const ur = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section", children: e }), an = ({ children: e }) => /* @__PURE__ */ l("h5", { className: "p-form-section__title u-no-padding--top", children: e }), sn = ({ children: e }) => /* @__PURE__ */ l("p", { className: "p-form-help-text", children: e }), cn = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section__content", children: e });
|
|
301
301
|
ur.Title = an;
|
|
302
302
|
ur.Description = sn;
|
|
@@ -317,8 +317,8 @@ function ln(e) {
|
|
|
317
317
|
};
|
|
318
318
|
}, [e, a]), r;
|
|
319
319
|
}
|
|
320
|
-
const
|
|
321
|
-
}]),
|
|
320
|
+
const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
321
|
+
}]), Kr = ({ children: e }) => {
|
|
322
322
|
const r = oe.useRef(null), t = ln(r), [n, a] = oe.useState(!1);
|
|
323
323
|
return /* @__PURE__ */ l(
|
|
324
324
|
"header",
|
|
@@ -327,7 +327,7 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
327
327
|
"main-toolbar--stacked": n
|
|
328
328
|
}),
|
|
329
329
|
ref: r,
|
|
330
|
-
children: /* @__PURE__ */ l(
|
|
330
|
+
children: /* @__PURE__ */ l(qr.Provider, { value: t, children: /* @__PURE__ */ l(Ur.Provider, { value: [n, a], children: e }) })
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
333
|
}, un = ({
|
|
@@ -344,7 +344,7 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
344
344
|
children: r
|
|
345
345
|
}
|
|
346
346
|
), fn = ({ children: e }) => {
|
|
347
|
-
const r = oe.useContext(
|
|
347
|
+
const r = oe.useContext(qr), [t, n] = oe.useContext(Ur), a = oe.useRef(null);
|
|
348
348
|
return oe.useEffect(() => {
|
|
349
349
|
!a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
|
|
350
350
|
}, [n, r, a]), /* @__PURE__ */ K(Ae, { children: [
|
|
@@ -369,8 +369,8 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
369
369
|
)
|
|
370
370
|
] });
|
|
371
371
|
};
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
Kr.Title = un;
|
|
373
|
+
Kr.Controls = fn;
|
|
374
374
|
const Be = ({
|
|
375
375
|
children: e,
|
|
376
376
|
className: r,
|
|
@@ -392,7 +392,7 @@ Be.Title = pn;
|
|
|
392
392
|
Be.Header = dn;
|
|
393
393
|
Be.Content = mn;
|
|
394
394
|
Be.Footer = vn;
|
|
395
|
-
const
|
|
395
|
+
const Hr = ({
|
|
396
396
|
children: e,
|
|
397
397
|
className: r,
|
|
398
398
|
isVisible: t
|
|
@@ -404,11 +404,11 @@ const Kr = ({
|
|
|
404
404
|
style: { visibility: t ? "visible" : "hidden" },
|
|
405
405
|
children: e
|
|
406
406
|
}
|
|
407
|
-
),
|
|
407
|
+
), Po = ({
|
|
408
408
|
children: e,
|
|
409
409
|
...r
|
|
410
|
-
}) => /* @__PURE__ */ l(
|
|
411
|
-
const
|
|
410
|
+
}) => /* @__PURE__ */ l(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ l("div", { className: "p-form__nested-group", ...r, children: e }) });
|
|
411
|
+
const yn = ({
|
|
412
412
|
className: e,
|
|
413
413
|
currentPage: r,
|
|
414
414
|
error: t,
|
|
@@ -426,7 +426,7 @@ const gn = ({
|
|
|
426
426
|
className: B("p-pagination", e),
|
|
427
427
|
children: /* @__PURE__ */ K("span", { className: "p-pagination--items", children: [
|
|
428
428
|
/* @__PURE__ */ l(
|
|
429
|
-
|
|
429
|
+
fe,
|
|
430
430
|
{
|
|
431
431
|
"aria-label": "Previous page",
|
|
432
432
|
className: "p-pagination__link--previous",
|
|
@@ -459,7 +459,7 @@ const gn = ({
|
|
|
459
459
|
f
|
|
460
460
|
] }),
|
|
461
461
|
/* @__PURE__ */ l(
|
|
462
|
-
|
|
462
|
+
fe,
|
|
463
463
|
{
|
|
464
464
|
"aria-label": "Next page",
|
|
465
465
|
className: "p-pagination__link--next",
|
|
@@ -471,15 +471,15 @@ const gn = ({
|
|
|
471
471
|
)
|
|
472
472
|
] })
|
|
473
473
|
}
|
|
474
|
-
),
|
|
474
|
+
), Ro = ({
|
|
475
475
|
currentPage: e,
|
|
476
476
|
disabled: r,
|
|
477
477
|
paginate: t,
|
|
478
478
|
totalPages: n
|
|
479
479
|
}) => {
|
|
480
|
-
const [a, o] =
|
|
480
|
+
const [a, o] = ge(e), [s, i] = ge("");
|
|
481
481
|
return /* @__PURE__ */ l(
|
|
482
|
-
|
|
482
|
+
yn,
|
|
483
483
|
{
|
|
484
484
|
currentPage: a,
|
|
485
485
|
error: s,
|
|
@@ -488,8 +488,8 @@ const gn = ({
|
|
|
488
488
|
o(e), i("");
|
|
489
489
|
},
|
|
490
490
|
onInputChange: (h) => {
|
|
491
|
-
const { value:
|
|
492
|
-
|
|
491
|
+
const { value: b, valueAsNumber: C } = h.target;
|
|
492
|
+
b ? (o(C), C > n || C < 1 ? i(`${C} is not a valid page number.`) : (i(""), t(C))) : i("Enter a page number.");
|
|
493
493
|
},
|
|
494
494
|
onNextClick: () => {
|
|
495
495
|
o((h) => Number(h) + 1), t(Number(e) + 1);
|
|
@@ -501,7 +501,7 @@ const gn = ({
|
|
|
501
501
|
}
|
|
502
502
|
);
|
|
503
503
|
};
|
|
504
|
-
const
|
|
504
|
+
const Fo = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className: "stepper", children: r.map((t, n) => {
|
|
505
505
|
const a = n === e, o = n < e;
|
|
506
506
|
return /* @__PURE__ */ l("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ l(
|
|
507
507
|
"p",
|
|
@@ -515,7 +515,7 @@ const Ro = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className:
|
|
|
515
515
|
}
|
|
516
516
|
) }, n);
|
|
517
517
|
}) });
|
|
518
|
-
var nr = { exports: {} }, je = { exports: {} },
|
|
518
|
+
var nr = { exports: {} }, je = { exports: {} }, I = {};
|
|
519
519
|
/** @license React v16.13.1
|
|
520
520
|
* react-is.production.min.js
|
|
521
521
|
*
|
|
@@ -524,12 +524,12 @@ var nr = { exports: {} }, je = { exports: {} }, F = {};
|
|
|
524
524
|
* This source code is licensed under the MIT license found in the
|
|
525
525
|
* LICENSE file in the root directory of this source tree.
|
|
526
526
|
*/
|
|
527
|
-
var
|
|
528
|
-
function
|
|
529
|
-
if (
|
|
530
|
-
return
|
|
531
|
-
|
|
532
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112,
|
|
527
|
+
var gr;
|
|
528
|
+
function gn() {
|
|
529
|
+
if (gr)
|
|
530
|
+
return I;
|
|
531
|
+
gr = 1;
|
|
532
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
533
533
|
function A(p) {
|
|
534
534
|
if (typeof p == "object" && p !== null) {
|
|
535
535
|
var X = p.$$typeof;
|
|
@@ -541,14 +541,14 @@ function yn() {
|
|
|
541
541
|
case n:
|
|
542
542
|
case o:
|
|
543
543
|
case a:
|
|
544
|
-
case
|
|
544
|
+
case g:
|
|
545
545
|
return p;
|
|
546
546
|
default:
|
|
547
547
|
switch (p = p && p.$$typeof, p) {
|
|
548
548
|
case i:
|
|
549
549
|
case v:
|
|
550
|
-
case
|
|
551
|
-
case
|
|
550
|
+
case C:
|
|
551
|
+
case b:
|
|
552
552
|
case s:
|
|
553
553
|
return p;
|
|
554
554
|
default:
|
|
@@ -563,33 +563,33 @@ function yn() {
|
|
|
563
563
|
function k(p) {
|
|
564
564
|
return A(p) === c;
|
|
565
565
|
}
|
|
566
|
-
return
|
|
566
|
+
return I.AsyncMode = f, I.ConcurrentMode = c, I.ContextConsumer = i, I.ContextProvider = s, I.Element = r, I.ForwardRef = v, I.Fragment = n, I.Lazy = C, I.Memo = b, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
|
|
567
567
|
return k(p) || A(p) === f;
|
|
568
|
-
},
|
|
568
|
+
}, I.isConcurrentMode = k, I.isContextConsumer = function(p) {
|
|
569
569
|
return A(p) === i;
|
|
570
|
-
},
|
|
570
|
+
}, I.isContextProvider = function(p) {
|
|
571
571
|
return A(p) === s;
|
|
572
|
-
},
|
|
572
|
+
}, I.isElement = function(p) {
|
|
573
573
|
return typeof p == "object" && p !== null && p.$$typeof === r;
|
|
574
|
-
},
|
|
574
|
+
}, I.isForwardRef = function(p) {
|
|
575
575
|
return A(p) === v;
|
|
576
|
-
},
|
|
576
|
+
}, I.isFragment = function(p) {
|
|
577
577
|
return A(p) === n;
|
|
578
|
-
},
|
|
579
|
-
return A(p) ===
|
|
580
|
-
},
|
|
581
|
-
return A(p) ===
|
|
582
|
-
},
|
|
578
|
+
}, I.isLazy = function(p) {
|
|
579
|
+
return A(p) === C;
|
|
580
|
+
}, I.isMemo = function(p) {
|
|
581
|
+
return A(p) === b;
|
|
582
|
+
}, I.isPortal = function(p) {
|
|
583
583
|
return A(p) === t;
|
|
584
|
-
},
|
|
584
|
+
}, I.isProfiler = function(p) {
|
|
585
585
|
return A(p) === o;
|
|
586
|
-
},
|
|
586
|
+
}, I.isStrictMode = function(p) {
|
|
587
587
|
return A(p) === a;
|
|
588
|
-
},
|
|
589
|
-
return A(p) ===
|
|
590
|
-
},
|
|
591
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p ===
|
|
592
|
-
},
|
|
588
|
+
}, I.isSuspense = function(p) {
|
|
589
|
+
return A(p) === g;
|
|
590
|
+
}, I.isValidElementType = function(p) {
|
|
591
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === b || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === L || p.$$typeof === N || p.$$typeof === U || p.$$typeof === S);
|
|
592
|
+
}, I.typeOf = A, I;
|
|
593
593
|
}
|
|
594
594
|
var j = {};
|
|
595
595
|
/** @license React v16.13.1
|
|
@@ -603,32 +603,32 @@ var j = {};
|
|
|
603
603
|
var br;
|
|
604
604
|
function bn() {
|
|
605
605
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
606
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112,
|
|
606
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, L = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
607
607
|
function A(d) {
|
|
608
608
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
609
|
-
d === n || d === c || d === o || d === a || d ===
|
|
609
|
+
d === n || d === c || d === o || d === a || d === g || d === h || typeof d == "object" && d !== null && (d.$$typeof === C || d.$$typeof === b || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === L || d.$$typeof === N || d.$$typeof === U || d.$$typeof === S);
|
|
610
610
|
}
|
|
611
611
|
function k(d) {
|
|
612
612
|
if (typeof d == "object" && d !== null) {
|
|
613
613
|
var re = d.$$typeof;
|
|
614
614
|
switch (re) {
|
|
615
615
|
case r:
|
|
616
|
-
var
|
|
617
|
-
switch (
|
|
616
|
+
var me = d.type;
|
|
617
|
+
switch (me) {
|
|
618
618
|
case f:
|
|
619
619
|
case c:
|
|
620
620
|
case n:
|
|
621
621
|
case o:
|
|
622
622
|
case a:
|
|
623
|
-
case
|
|
624
|
-
return
|
|
623
|
+
case g:
|
|
624
|
+
return me;
|
|
625
625
|
default:
|
|
626
|
-
var Te =
|
|
626
|
+
var Te = me && me.$$typeof;
|
|
627
627
|
switch (Te) {
|
|
628
628
|
case i:
|
|
629
629
|
case v:
|
|
630
|
-
case
|
|
631
|
-
case
|
|
630
|
+
case C:
|
|
631
|
+
case b:
|
|
632
632
|
case s:
|
|
633
633
|
return Te;
|
|
634
634
|
default:
|
|
@@ -640,14 +640,14 @@ function bn() {
|
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
|
-
var p = f, X = c, $ = i, J = s, ee = r, ce = v,
|
|
643
|
+
var p = f, X = c, $ = i, J = s, ee = r, ce = v, pe = n, de = C, le = b, W = t, Z = o, ne = a, ae = g, ue = !1;
|
|
644
644
|
function G(d) {
|
|
645
|
-
return
|
|
645
|
+
return ue || (ue = !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.")), u(d) || k(d) === f;
|
|
646
646
|
}
|
|
647
647
|
function u(d) {
|
|
648
648
|
return k(d) === c;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function y(d) {
|
|
651
651
|
return k(d) === i;
|
|
652
652
|
}
|
|
653
653
|
function T(d) {
|
|
@@ -656,36 +656,36 @@ function bn() {
|
|
|
656
656
|
function x(d) {
|
|
657
657
|
return typeof d == "object" && d !== null && d.$$typeof === r;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function E(d) {
|
|
660
660
|
return k(d) === v;
|
|
661
661
|
}
|
|
662
662
|
function P(d) {
|
|
663
663
|
return k(d) === n;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
return k(d) ===
|
|
665
|
+
function w(d) {
|
|
666
|
+
return k(d) === C;
|
|
667
667
|
}
|
|
668
668
|
function O(d) {
|
|
669
|
-
return k(d) ===
|
|
669
|
+
return k(d) === b;
|
|
670
670
|
}
|
|
671
671
|
function R(d) {
|
|
672
672
|
return k(d) === t;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function F(d) {
|
|
675
675
|
return k(d) === o;
|
|
676
676
|
}
|
|
677
677
|
function D(d) {
|
|
678
678
|
return k(d) === a;
|
|
679
679
|
}
|
|
680
680
|
function q(d) {
|
|
681
|
-
return k(d) ===
|
|
681
|
+
return k(d) === g;
|
|
682
682
|
}
|
|
683
|
-
j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment =
|
|
683
|
+
j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment = pe, j.Lazy = de, j.Memo = le, j.Portal = W, j.Profiler = Z, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = y, j.isContextProvider = T, j.isElement = x, j.isForwardRef = E, j.isFragment = P, j.isLazy = w, j.isMemo = O, j.isPortal = R, j.isProfiler = F, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
|
|
684
684
|
}()), j;
|
|
685
685
|
}
|
|
686
686
|
var hr;
|
|
687
|
-
function
|
|
688
|
-
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports =
|
|
687
|
+
function Gr() {
|
|
688
|
+
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = gn() : je.exports = bn()), je.exports;
|
|
689
689
|
}
|
|
690
690
|
/*
|
|
691
691
|
object-assign
|
|
@@ -728,8 +728,8 @@ function hn() {
|
|
|
728
728
|
return Ve = a() ? Object.assign : function(o, s) {
|
|
729
729
|
for (var i, f = n(o), c, v = 1; v < arguments.length; v++) {
|
|
730
730
|
i = Object(arguments[v]);
|
|
731
|
-
for (var
|
|
732
|
-
r.call(i,
|
|
731
|
+
for (var g in i)
|
|
732
|
+
r.call(i, g) && (f[g] = i[g]);
|
|
733
733
|
if (e) {
|
|
734
734
|
c = e(i);
|
|
735
735
|
for (var h = 0; h < c.length; h++)
|
|
@@ -748,7 +748,7 @@ function fr() {
|
|
|
748
748
|
return Je = e, Je;
|
|
749
749
|
}
|
|
750
750
|
var Ze, wr;
|
|
751
|
-
function
|
|
751
|
+
function Vr() {
|
|
752
752
|
return wr || (wr = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
|
|
753
753
|
}
|
|
754
754
|
var Xe, Sr;
|
|
@@ -759,7 +759,7 @@ function _n() {
|
|
|
759
759
|
var e = function() {
|
|
760
760
|
};
|
|
761
761
|
if (process.env.NODE_ENV !== "production") {
|
|
762
|
-
var r = fr(), t = {}, n =
|
|
762
|
+
var r = fr(), t = {}, n = Vr();
|
|
763
763
|
e = function(o) {
|
|
764
764
|
var s = "Warning: " + o;
|
|
765
765
|
typeof console < "u" && console.error(s);
|
|
@@ -773,7 +773,7 @@ function _n() {
|
|
|
773
773
|
if (process.env.NODE_ENV !== "production") {
|
|
774
774
|
for (var v in o)
|
|
775
775
|
if (n(o, v)) {
|
|
776
|
-
var
|
|
776
|
+
var g;
|
|
777
777
|
try {
|
|
778
778
|
if (typeof o[v] != "function") {
|
|
779
779
|
var h = Error(
|
|
@@ -781,17 +781,17 @@ function _n() {
|
|
|
781
781
|
);
|
|
782
782
|
throw h.name = "Invariant Violation", h;
|
|
783
783
|
}
|
|
784
|
-
|
|
785
|
-
} catch (
|
|
786
|
-
|
|
784
|
+
g = o[v](s, v, f, i, null, r);
|
|
785
|
+
} catch (C) {
|
|
786
|
+
g = C;
|
|
787
787
|
}
|
|
788
|
-
if (
|
|
789
|
-
(f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
790
|
-
),
|
|
791
|
-
t[
|
|
792
|
-
var
|
|
788
|
+
if (g && !(g instanceof Error) && e(
|
|
789
|
+
(f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
790
|
+
), g instanceof Error && !(g.message in t)) {
|
|
791
|
+
t[g.message] = !0;
|
|
792
|
+
var b = c ? c() : "";
|
|
793
793
|
e(
|
|
794
|
-
"Failed " + i + " type: " +
|
|
794
|
+
"Failed " + i + " type: " + g.message + (b ?? "")
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
}
|
|
@@ -806,7 +806,7 @@ function En() {
|
|
|
806
806
|
if (Cr)
|
|
807
807
|
return Qe;
|
|
808
808
|
Cr = 1;
|
|
809
|
-
var e =
|
|
809
|
+
var e = Gr(), r = hn(), t = fr(), n = Vr(), a = _n(), o = function() {
|
|
810
810
|
};
|
|
811
811
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
812
812
|
var f = "Warning: " + i;
|
|
@@ -821,12 +821,12 @@ function En() {
|
|
|
821
821
|
}
|
|
822
822
|
return Qe = function(i, f) {
|
|
823
823
|
var c = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
824
|
-
function
|
|
825
|
-
var
|
|
826
|
-
if (typeof
|
|
827
|
-
return
|
|
824
|
+
function g(u) {
|
|
825
|
+
var y = u && (c && u[c] || u[v]);
|
|
826
|
+
if (typeof y == "function")
|
|
827
|
+
return y;
|
|
828
828
|
}
|
|
829
|
-
var h = "<<anonymous>>",
|
|
829
|
+
var h = "<<anonymous>>", b = {
|
|
830
830
|
array: N("array"),
|
|
831
831
|
bigint: N("bigint"),
|
|
832
832
|
bool: N("boolean"),
|
|
@@ -844,20 +844,20 @@ function En() {
|
|
|
844
844
|
objectOf: J,
|
|
845
845
|
oneOf: $,
|
|
846
846
|
oneOfType: ee,
|
|
847
|
-
shape:
|
|
848
|
-
exact:
|
|
847
|
+
shape: de,
|
|
848
|
+
exact: le
|
|
849
849
|
};
|
|
850
|
-
function
|
|
851
|
-
return u ===
|
|
850
|
+
function C(u, y) {
|
|
851
|
+
return u === y ? u !== 0 || 1 / u === 1 / y : u !== u && y !== y;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
854
|
-
this.message = u, this.data =
|
|
853
|
+
function S(u, y) {
|
|
854
|
+
this.message = u, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
855
855
|
}
|
|
856
|
-
|
|
856
|
+
S.prototype = Error.prototype;
|
|
857
857
|
function L(u) {
|
|
858
858
|
if (process.env.NODE_ENV !== "production")
|
|
859
|
-
var
|
|
860
|
-
function x(P,
|
|
859
|
+
var y = {}, T = 0;
|
|
860
|
+
function x(P, w, O, R, F, D, q) {
|
|
861
861
|
if (R = R || h, D = D || O, q !== t) {
|
|
862
862
|
if (f) {
|
|
863
863
|
var d = new Error(
|
|
@@ -866,190 +866,190 @@ function En() {
|
|
|
866
866
|
throw d.name = "Invariant Violation", d;
|
|
867
867
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
868
868
|
var re = R + ":" + O;
|
|
869
|
-
!
|
|
869
|
+
!y[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
870
870
|
T < 3 && (o(
|
|
871
871
|
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
872
|
-
),
|
|
872
|
+
), y[re] = !0, T++);
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
return
|
|
875
|
+
return w[O] == null ? P ? w[O] === null ? new S("The " + F + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new S("The " + F + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(w, O, R, F, D);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
return
|
|
877
|
+
var E = x.bind(null, !1);
|
|
878
|
+
return E.isRequired = x.bind(null, !0), E;
|
|
879
879
|
}
|
|
880
880
|
function N(u) {
|
|
881
|
-
function
|
|
882
|
-
var R = T[x],
|
|
883
|
-
if (
|
|
881
|
+
function y(T, x, E, P, w, O) {
|
|
882
|
+
var R = T[x], F = ne(R);
|
|
883
|
+
if (F !== u) {
|
|
884
884
|
var D = ae(R);
|
|
885
|
-
return new
|
|
886
|
-
"Invalid " + P + " `" +
|
|
885
|
+
return new S(
|
|
886
|
+
"Invalid " + P + " `" + w + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + u + "`."),
|
|
887
887
|
{ expectedType: u }
|
|
888
888
|
);
|
|
889
889
|
}
|
|
890
890
|
return null;
|
|
891
891
|
}
|
|
892
|
-
return L(
|
|
892
|
+
return L(y);
|
|
893
893
|
}
|
|
894
894
|
function U() {
|
|
895
895
|
return L(s);
|
|
896
896
|
}
|
|
897
897
|
function A(u) {
|
|
898
|
-
function
|
|
898
|
+
function y(T, x, E, P, w) {
|
|
899
899
|
if (typeof u != "function")
|
|
900
|
-
return new
|
|
900
|
+
return new S("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
901
901
|
var O = T[x];
|
|
902
902
|
if (!Array.isArray(O)) {
|
|
903
903
|
var R = ne(O);
|
|
904
|
-
return new
|
|
904
|
+
return new S("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
|
|
905
905
|
}
|
|
906
|
-
for (var
|
|
907
|
-
var D = u(O,
|
|
906
|
+
for (var F = 0; F < O.length; F++) {
|
|
907
|
+
var D = u(O, F, E, P, w + "[" + F + "]", t);
|
|
908
908
|
if (D instanceof Error)
|
|
909
909
|
return D;
|
|
910
910
|
}
|
|
911
911
|
return null;
|
|
912
912
|
}
|
|
913
|
-
return L(
|
|
913
|
+
return L(y);
|
|
914
914
|
}
|
|
915
915
|
function k() {
|
|
916
|
-
function u(
|
|
917
|
-
var
|
|
918
|
-
if (!i(
|
|
919
|
-
var O = ne(
|
|
920
|
-
return new
|
|
916
|
+
function u(y, T, x, E, P) {
|
|
917
|
+
var w = y[T];
|
|
918
|
+
if (!i(w)) {
|
|
919
|
+
var O = ne(w);
|
|
920
|
+
return new S("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
921
921
|
}
|
|
922
922
|
return null;
|
|
923
923
|
}
|
|
924
924
|
return L(u);
|
|
925
925
|
}
|
|
926
926
|
function p() {
|
|
927
|
-
function u(
|
|
928
|
-
var
|
|
929
|
-
if (!e.isValidElementType(
|
|
930
|
-
var O = ne(
|
|
931
|
-
return new
|
|
927
|
+
function u(y, T, x, E, P) {
|
|
928
|
+
var w = y[T];
|
|
929
|
+
if (!e.isValidElementType(w)) {
|
|
930
|
+
var O = ne(w);
|
|
931
|
+
return new S("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
932
932
|
}
|
|
933
933
|
return null;
|
|
934
934
|
}
|
|
935
935
|
return L(u);
|
|
936
936
|
}
|
|
937
937
|
function X(u) {
|
|
938
|
-
function
|
|
938
|
+
function y(T, x, E, P, w) {
|
|
939
939
|
if (!(T[x] instanceof u)) {
|
|
940
940
|
var O = u.name || h, R = G(T[x]);
|
|
941
|
-
return new
|
|
941
|
+
return new S("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + O + "`."));
|
|
942
942
|
}
|
|
943
943
|
return null;
|
|
944
944
|
}
|
|
945
|
-
return L(
|
|
945
|
+
return L(y);
|
|
946
946
|
}
|
|
947
947
|
function $(u) {
|
|
948
948
|
if (!Array.isArray(u))
|
|
949
949
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
950
950
|
"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])."
|
|
951
951
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
952
|
-
function
|
|
952
|
+
function y(T, x, E, P, w) {
|
|
953
953
|
for (var O = T[x], R = 0; R < u.length; R++)
|
|
954
|
-
if (
|
|
954
|
+
if (C(O, u[R]))
|
|
955
955
|
return null;
|
|
956
|
-
var
|
|
956
|
+
var F = JSON.stringify(u, function(q, d) {
|
|
957
957
|
var re = ae(d);
|
|
958
958
|
return re === "symbol" ? String(d) : d;
|
|
959
959
|
});
|
|
960
|
-
return new
|
|
960
|
+
return new S("Invalid " + P + " `" + w + "` of value `" + String(O) + "` " + ("supplied to `" + E + "`, expected one of " + F + "."));
|
|
961
961
|
}
|
|
962
|
-
return L(
|
|
962
|
+
return L(y);
|
|
963
963
|
}
|
|
964
964
|
function J(u) {
|
|
965
|
-
function
|
|
965
|
+
function y(T, x, E, P, w) {
|
|
966
966
|
if (typeof u != "function")
|
|
967
|
-
return new
|
|
967
|
+
return new S("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
968
968
|
var O = T[x], R = ne(O);
|
|
969
969
|
if (R !== "object")
|
|
970
|
-
return new
|
|
971
|
-
for (var
|
|
972
|
-
if (n(O,
|
|
973
|
-
var D = u(O,
|
|
970
|
+
return new S("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an object."));
|
|
971
|
+
for (var F in O)
|
|
972
|
+
if (n(O, F)) {
|
|
973
|
+
var D = u(O, F, E, P, w + "." + F, t);
|
|
974
974
|
if (D instanceof Error)
|
|
975
975
|
return D;
|
|
976
976
|
}
|
|
977
977
|
return null;
|
|
978
978
|
}
|
|
979
|
-
return L(
|
|
979
|
+
return L(y);
|
|
980
980
|
}
|
|
981
981
|
function ee(u) {
|
|
982
982
|
if (!Array.isArray(u))
|
|
983
983
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
984
|
-
for (var
|
|
985
|
-
var T = u[
|
|
984
|
+
for (var y = 0; y < u.length; y++) {
|
|
985
|
+
var T = u[y];
|
|
986
986
|
if (typeof T != "function")
|
|
987
987
|
return o(
|
|
988
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
988
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + y + "."
|
|
989
989
|
), s;
|
|
990
990
|
}
|
|
991
|
-
function x(
|
|
992
|
-
for (var
|
|
993
|
-
var q = u[D], d = q(
|
|
991
|
+
function x(E, P, w, O, R) {
|
|
992
|
+
for (var F = [], D = 0; D < u.length; D++) {
|
|
993
|
+
var q = u[D], d = q(E, P, w, O, R, t);
|
|
994
994
|
if (d == null)
|
|
995
995
|
return null;
|
|
996
|
-
d.data && n(d.data, "expectedType") &&
|
|
996
|
+
d.data && n(d.data, "expectedType") && F.push(d.data.expectedType);
|
|
997
997
|
}
|
|
998
|
-
var re =
|
|
999
|
-
return new
|
|
998
|
+
var re = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
999
|
+
return new S("Invalid " + O + " `" + R + "` supplied to " + ("`" + w + "`" + re + "."));
|
|
1000
1000
|
}
|
|
1001
1001
|
return L(x);
|
|
1002
1002
|
}
|
|
1003
1003
|
function ce() {
|
|
1004
|
-
function u(
|
|
1005
|
-
return W(
|
|
1004
|
+
function u(y, T, x, E, P) {
|
|
1005
|
+
return W(y[T]) ? null : new S("Invalid " + E + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return L(u);
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1010
|
-
return new
|
|
1011
|
-
(u || "React class") + ": " +
|
|
1009
|
+
function pe(u, y, T, x, E) {
|
|
1010
|
+
return new S(
|
|
1011
|
+
(u || "React class") + ": " + y + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
1012
1012
|
);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
function
|
|
1014
|
+
function de(u) {
|
|
1015
|
+
function y(T, x, E, P, w) {
|
|
1016
1016
|
var O = T[x], R = ne(O);
|
|
1017
1017
|
if (R !== "object")
|
|
1018
|
-
return new
|
|
1019
|
-
for (var
|
|
1020
|
-
var D = u[
|
|
1018
|
+
return new S("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1019
|
+
for (var F in u) {
|
|
1020
|
+
var D = u[F];
|
|
1021
1021
|
if (typeof D != "function")
|
|
1022
|
-
return
|
|
1023
|
-
var q = D(O,
|
|
1022
|
+
return pe(E, P, w, F, ae(D));
|
|
1023
|
+
var q = D(O, F, E, P, w + "." + F, t);
|
|
1024
1024
|
if (q)
|
|
1025
1025
|
return q;
|
|
1026
1026
|
}
|
|
1027
1027
|
return null;
|
|
1028
1028
|
}
|
|
1029
|
-
return L(
|
|
1029
|
+
return L(y);
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1032
|
-
function
|
|
1031
|
+
function le(u) {
|
|
1032
|
+
function y(T, x, E, P, w) {
|
|
1033
1033
|
var O = T[x], R = ne(O);
|
|
1034
1034
|
if (R !== "object")
|
|
1035
|
-
return new
|
|
1036
|
-
var
|
|
1037
|
-
for (var D in
|
|
1035
|
+
return new S("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1036
|
+
var F = r({}, T[x], u);
|
|
1037
|
+
for (var D in F) {
|
|
1038
1038
|
var q = u[D];
|
|
1039
1039
|
if (n(u, D) && typeof q != "function")
|
|
1040
|
-
return
|
|
1040
|
+
return pe(E, P, w, D, ae(q));
|
|
1041
1041
|
if (!q)
|
|
1042
|
-
return new
|
|
1043
|
-
"Invalid " + P + " `" +
|
|
1042
|
+
return new S(
|
|
1043
|
+
"Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
|
|
1044
1044
|
Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
1045
1045
|
);
|
|
1046
|
-
var d = q(O, D,
|
|
1046
|
+
var d = q(O, D, E, P, w + "." + D, t);
|
|
1047
1047
|
if (d)
|
|
1048
1048
|
return d;
|
|
1049
1049
|
}
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
1052
|
-
return L(
|
|
1052
|
+
return L(y);
|
|
1053
1053
|
}
|
|
1054
1054
|
function W(u) {
|
|
1055
1055
|
switch (typeof u) {
|
|
@@ -1064,17 +1064,17 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1064
1064
|
return u.every(W);
|
|
1065
1065
|
if (u === null || i(u))
|
|
1066
1066
|
return !0;
|
|
1067
|
-
var
|
|
1068
|
-
if (
|
|
1069
|
-
var T =
|
|
1070
|
-
if (
|
|
1067
|
+
var y = g(u);
|
|
1068
|
+
if (y) {
|
|
1069
|
+
var T = y.call(u), x;
|
|
1070
|
+
if (y !== u.entries) {
|
|
1071
1071
|
for (; !(x = T.next()).done; )
|
|
1072
1072
|
if (!W(x.value))
|
|
1073
1073
|
return !1;
|
|
1074
1074
|
} else
|
|
1075
1075
|
for (; !(x = T.next()).done; ) {
|
|
1076
|
-
var
|
|
1077
|
-
if (
|
|
1076
|
+
var E = x.value;
|
|
1077
|
+
if (E && !W(E[1]))
|
|
1078
1078
|
return !1;
|
|
1079
1079
|
}
|
|
1080
1080
|
} else
|
|
@@ -1084,43 +1084,43 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1084
1084
|
return !1;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
-
function Z(u,
|
|
1088
|
-
return u === "symbol" ? !0 :
|
|
1087
|
+
function Z(u, y) {
|
|
1088
|
+
return u === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1089
1089
|
}
|
|
1090
1090
|
function ne(u) {
|
|
1091
|
-
var
|
|
1092
|
-
return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : Z(
|
|
1091
|
+
var y = typeof u;
|
|
1092
|
+
return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : Z(y, u) ? "symbol" : y;
|
|
1093
1093
|
}
|
|
1094
1094
|
function ae(u) {
|
|
1095
1095
|
if (typeof u > "u" || u === null)
|
|
1096
1096
|
return "" + u;
|
|
1097
|
-
var
|
|
1098
|
-
if (
|
|
1097
|
+
var y = ne(u);
|
|
1098
|
+
if (y === "object") {
|
|
1099
1099
|
if (u instanceof Date)
|
|
1100
1100
|
return "date";
|
|
1101
1101
|
if (u instanceof RegExp)
|
|
1102
1102
|
return "regexp";
|
|
1103
1103
|
}
|
|
1104
|
-
return
|
|
1104
|
+
return y;
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
var
|
|
1108
|
-
switch (
|
|
1106
|
+
function ue(u) {
|
|
1107
|
+
var y = ae(u);
|
|
1108
|
+
switch (y) {
|
|
1109
1109
|
case "array":
|
|
1110
1110
|
case "object":
|
|
1111
|
-
return "an " +
|
|
1111
|
+
return "an " + y;
|
|
1112
1112
|
case "boolean":
|
|
1113
1113
|
case "date":
|
|
1114
1114
|
case "regexp":
|
|
1115
|
-
return "a " +
|
|
1115
|
+
return "a " + y;
|
|
1116
1116
|
default:
|
|
1117
|
-
return
|
|
1117
|
+
return y;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
function G(u) {
|
|
1121
1121
|
return !u.constructor || !u.constructor.name ? h : u.constructor.name;
|
|
1122
1122
|
}
|
|
1123
|
-
return
|
|
1123
|
+
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
1124
1124
|
}, Qe;
|
|
1125
1125
|
}
|
|
1126
1126
|
var er, Tr;
|
|
@@ -1134,8 +1134,8 @@ function wn() {
|
|
|
1134
1134
|
function t() {
|
|
1135
1135
|
}
|
|
1136
1136
|
return t.resetWarningCache = r, er = function() {
|
|
1137
|
-
function n(s, i, f, c, v,
|
|
1138
|
-
if (
|
|
1137
|
+
function n(s, i, f, c, v, g) {
|
|
1138
|
+
if (g !== e) {
|
|
1139
1139
|
var h = new Error(
|
|
1140
1140
|
"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"
|
|
1141
1141
|
);
|
|
@@ -1173,12 +1173,12 @@ function wn() {
|
|
|
1173
1173
|
}, er;
|
|
1174
1174
|
}
|
|
1175
1175
|
if (process.env.NODE_ENV !== "production") {
|
|
1176
|
-
var Sn =
|
|
1176
|
+
var Sn = Gr(), Cn = !0;
|
|
1177
1177
|
nr.exports = En()(Sn.isElement, Cn);
|
|
1178
1178
|
} else
|
|
1179
1179
|
nr.exports = wn()();
|
|
1180
1180
|
var Tn = nr.exports;
|
|
1181
|
-
const M = /* @__PURE__ */
|
|
1181
|
+
const M = /* @__PURE__ */ Br(Tn);
|
|
1182
1182
|
function Se(e, r, t, n) {
|
|
1183
1183
|
function a(o) {
|
|
1184
1184
|
return o instanceof t ? o : new t(function(s) {
|
|
@@ -1189,15 +1189,15 @@ function Se(e, r, t, n) {
|
|
|
1189
1189
|
function i(v) {
|
|
1190
1190
|
try {
|
|
1191
1191
|
c(n.next(v));
|
|
1192
|
-
} catch (
|
|
1193
|
-
s(
|
|
1192
|
+
} catch (g) {
|
|
1193
|
+
s(g);
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
function f(v) {
|
|
1197
1197
|
try {
|
|
1198
1198
|
c(n.throw(v));
|
|
1199
|
-
} catch (
|
|
1200
|
-
s(
|
|
1199
|
+
} catch (g) {
|
|
1200
|
+
s(g);
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
function c(v) {
|
|
@@ -1416,9 +1416,9 @@ var Dn = [
|
|
|
1416
1416
|
function An(e) {
|
|
1417
1417
|
return Se(this, void 0, void 0, function() {
|
|
1418
1418
|
return Ce(this, function(r) {
|
|
1419
|
-
return $e(e) && Pn(e.dataTransfer) ? [2, jn(e.dataTransfer, e.type)] : Rn(e) ? [2,
|
|
1419
|
+
return $e(e) && Pn(e.dataTransfer) ? [2, jn(e.dataTransfer, e.type)] : Rn(e) ? [2, Fn(e)] : Array.isArray(e) && e.every(function(t) {
|
|
1420
1420
|
return "getFile" in t && typeof t.getFile == "function";
|
|
1421
|
-
}) ? [2,
|
|
1421
|
+
}) ? [2, In(e)] : [2, []];
|
|
1422
1422
|
});
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
@@ -1431,12 +1431,12 @@ function Rn(e) {
|
|
|
1431
1431
|
function $e(e) {
|
|
1432
1432
|
return typeof e == "object" && e !== null;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function Fn(e) {
|
|
1435
1435
|
return or(e.target.files).map(function(r) {
|
|
1436
1436
|
return Pe(r);
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function In(e) {
|
|
1440
1440
|
return Se(this, void 0, void 0, function() {
|
|
1441
1441
|
var r;
|
|
1442
1442
|
return Ce(this, function(t) {
|
|
@@ -1463,7 +1463,7 @@ function jn(e, r) {
|
|
|
1463
1463
|
return o.kind === "file";
|
|
1464
1464
|
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Nn))]) : [3, 2];
|
|
1465
1465
|
case 1:
|
|
1466
|
-
return n = a.sent(), [2, Dr(
|
|
1466
|
+
return n = a.sent(), [2, Dr(Jr(n))];
|
|
1467
1467
|
case 2:
|
|
1468
1468
|
return [2, Dr(or(e.files).map(function(o) {
|
|
1469
1469
|
return Pe(o);
|
|
@@ -1490,11 +1490,11 @@ function Nn(e) {
|
|
|
1490
1490
|
if (typeof e.webkitGetAsEntry != "function")
|
|
1491
1491
|
return Ar(e);
|
|
1492
1492
|
var r = e.webkitGetAsEntry();
|
|
1493
|
-
return r && r.isDirectory ?
|
|
1493
|
+
return r && r.isDirectory ? Zr(r) : Ar(e);
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function Jr(e) {
|
|
1496
1496
|
return e.reduce(function(r, t) {
|
|
1497
|
-
return Or(Or([], xr(r), !1), xr(Array.isArray(t) ?
|
|
1497
|
+
return Or(Or([], xr(r), !1), xr(Array.isArray(t) ? Jr(t) : [t]), !1);
|
|
1498
1498
|
}, []);
|
|
1499
1499
|
}
|
|
1500
1500
|
function Ar(e) {
|
|
@@ -1507,11 +1507,11 @@ function Ar(e) {
|
|
|
1507
1507
|
function kn(e) {
|
|
1508
1508
|
return Se(this, void 0, void 0, function() {
|
|
1509
1509
|
return Ce(this, function(r) {
|
|
1510
|
-
return [2, e.isDirectory ?
|
|
1510
|
+
return [2, e.isDirectory ? Zr(e) : $n(e)];
|
|
1511
1511
|
});
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function Zr(e) {
|
|
1515
1515
|
var r = e.createReader();
|
|
1516
1516
|
return new Promise(function(t, n) {
|
|
1517
1517
|
var a = [];
|
|
@@ -1520,22 +1520,22 @@ function Jr(e) {
|
|
|
1520
1520
|
r.readEntries(function(i) {
|
|
1521
1521
|
return Se(s, void 0, void 0, function() {
|
|
1522
1522
|
var f, c, v;
|
|
1523
|
-
return Ce(this, function(
|
|
1524
|
-
switch (
|
|
1523
|
+
return Ce(this, function(g) {
|
|
1524
|
+
switch (g.label) {
|
|
1525
1525
|
case 0:
|
|
1526
1526
|
if (i.length)
|
|
1527
1527
|
return [3, 5];
|
|
1528
|
-
|
|
1528
|
+
g.label = 1;
|
|
1529
1529
|
case 1:
|
|
1530
|
-
return
|
|
1530
|
+
return g.trys.push([1, 3, , 4]), [4, Promise.all(a)];
|
|
1531
1531
|
case 2:
|
|
1532
|
-
return f =
|
|
1532
|
+
return f = g.sent(), t(f), [3, 4];
|
|
1533
1533
|
case 3:
|
|
1534
|
-
return c =
|
|
1534
|
+
return c = g.sent(), n(c), [3, 4];
|
|
1535
1535
|
case 4:
|
|
1536
1536
|
return [3, 6];
|
|
1537
1537
|
case 5:
|
|
1538
|
-
v = Promise.all(i.map(kn)), a.push(v), o(),
|
|
1538
|
+
v = Promise.all(i.map(kn)), a.push(v), o(), g.label = 6;
|
|
1539
1539
|
case 6:
|
|
1540
1540
|
return [
|
|
1541
1541
|
2
|
|
@@ -1576,7 +1576,7 @@ var Mn = function(e, r) {
|
|
|
1576
1576
|
return !0;
|
|
1577
1577
|
};
|
|
1578
1578
|
function Pr(e) {
|
|
1579
|
-
return zn(e) || Bn(e) ||
|
|
1579
|
+
return zn(e) || Bn(e) || Qr(e) || Ln();
|
|
1580
1580
|
}
|
|
1581
1581
|
function Ln() {
|
|
1582
1582
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -1600,28 +1600,28 @@ function Rr(e, r) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
return t;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function Fr(e) {
|
|
1604
1604
|
for (var r = 1; r < arguments.length; r++) {
|
|
1605
1605
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
1606
1606
|
r % 2 ? Rr(Object(t), !0).forEach(function(n) {
|
|
1607
|
-
|
|
1607
|
+
Xr(e, n, t[n]);
|
|
1608
1608
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
|
|
1609
1609
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
1612
|
return e;
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Xr(e, r, t) {
|
|
1615
1615
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
1616
1616
|
}
|
|
1617
1617
|
function De(e, r) {
|
|
1618
|
-
return qn(e) || Yn(e, r) ||
|
|
1618
|
+
return qn(e) || Yn(e, r) || Qr(e, r) || Wn();
|
|
1619
1619
|
}
|
|
1620
1620
|
function Wn() {
|
|
1621
1621
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1622
1622
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Qr(e, r) {
|
|
1625
1625
|
if (e) {
|
|
1626
1626
|
if (typeof e == "string")
|
|
1627
1627
|
return ar(e, r);
|
|
@@ -1669,7 +1669,7 @@ var Un = "file-invalid-type", Kn = "file-too-large", Hn = "file-too-small", Gn =
|
|
|
1669
1669
|
code: Un,
|
|
1670
1670
|
message: "File type must be ".concat(t)
|
|
1671
1671
|
};
|
|
1672
|
-
},
|
|
1672
|
+
}, Ir = function(r) {
|
|
1673
1673
|
return {
|
|
1674
1674
|
code: Kn,
|
|
1675
1675
|
message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
@@ -1683,33 +1683,33 @@ var Un = "file-invalid-type", Kn = "file-too-large", Hn = "file-too-small", Gn =
|
|
|
1683
1683
|
code: Gn,
|
|
1684
1684
|
message: "Too many files"
|
|
1685
1685
|
};
|
|
1686
|
-
function
|
|
1686
|
+
function et(e, r) {
|
|
1687
1687
|
var t = e.type === "application/x-moz-file" || Mn(e, r);
|
|
1688
1688
|
return [t, t ? null : Vn(r)];
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
if (
|
|
1692
|
-
if (
|
|
1690
|
+
function rt(e, r, t) {
|
|
1691
|
+
if (ve(e.size))
|
|
1692
|
+
if (ve(r) && ve(t)) {
|
|
1693
1693
|
if (e.size > t)
|
|
1694
|
-
return [!1,
|
|
1694
|
+
return [!1, Ir(t)];
|
|
1695
1695
|
if (e.size < r)
|
|
1696
1696
|
return [!1, jr(r)];
|
|
1697
1697
|
} else {
|
|
1698
|
-
if (
|
|
1698
|
+
if (ve(r) && e.size < r)
|
|
1699
1699
|
return [!1, jr(r)];
|
|
1700
|
-
if (
|
|
1701
|
-
return [!1,
|
|
1700
|
+
if (ve(t) && e.size > t)
|
|
1701
|
+
return [!1, Ir(t)];
|
|
1702
1702
|
}
|
|
1703
1703
|
return [!0, null];
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function ve(e) {
|
|
1706
1706
|
return e != null;
|
|
1707
1707
|
}
|
|
1708
1708
|
function Zn(e) {
|
|
1709
1709
|
var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
|
|
1710
1710
|
return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
|
|
1711
|
-
var c =
|
|
1712
|
-
return
|
|
1711
|
+
var c = et(f, t), v = De(c, 1), g = v[0], h = rt(f, n, a), b = De(h, 1), C = b[0], S = i ? i(f) : null;
|
|
1712
|
+
return g && C && !S;
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
1715
1715
|
function Me(e) {
|
|
@@ -1748,13 +1748,13 @@ function ro() {
|
|
|
1748
1748
|
return "showOpenFilePicker" in window;
|
|
1749
1749
|
}
|
|
1750
1750
|
function to(e) {
|
|
1751
|
-
if (
|
|
1751
|
+
if (ve(e)) {
|
|
1752
1752
|
var r = Object.entries(e).filter(function(t) {
|
|
1753
1753
|
var n = De(t, 2), a = n[0], o = n[1], s = !0;
|
|
1754
|
-
return
|
|
1754
|
+
return tt(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(nt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
|
|
1755
1755
|
}).reduce(function(t, n) {
|
|
1756
1756
|
var a = De(n, 2), o = a[0], s = a[1];
|
|
1757
|
-
return
|
|
1757
|
+
return Fr(Fr({}, t), {}, Xr({}, o, s));
|
|
1758
1758
|
}, {});
|
|
1759
1759
|
return [{
|
|
1760
1760
|
// description is required due to https://crbug.com/1264708
|
|
@@ -1765,12 +1765,12 @@ function to(e) {
|
|
|
1765
1765
|
return e;
|
|
1766
1766
|
}
|
|
1767
1767
|
function no(e) {
|
|
1768
|
-
if (
|
|
1768
|
+
if (ve(e))
|
|
1769
1769
|
return Object.entries(e).reduce(function(r, t) {
|
|
1770
1770
|
var n = De(t, 2), a = n[0], o = n[1];
|
|
1771
1771
|
return [].concat(Pr(r), [a], Pr(o));
|
|
1772
1772
|
}, []).filter(function(r) {
|
|
1773
|
-
return
|
|
1773
|
+
return tt(r) || nt(r);
|
|
1774
1774
|
}).join(",");
|
|
1775
1775
|
}
|
|
1776
1776
|
function oo(e) {
|
|
@@ -1779,15 +1779,15 @@ function oo(e) {
|
|
|
1779
1779
|
function ao(e) {
|
|
1780
1780
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function tt(e) {
|
|
1783
1783
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function nt(e) {
|
|
1786
1786
|
return /^.*\.[\w]+$/.test(e);
|
|
1787
1787
|
}
|
|
1788
1788
|
var io = ["children"], so = ["open"], co = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], lo = ["refKey", "onChange", "onClick"];
|
|
1789
1789
|
function uo(e) {
|
|
1790
|
-
return mo(e) || po(e) ||
|
|
1790
|
+
return mo(e) || po(e) || ot(e) || fo();
|
|
1791
1791
|
}
|
|
1792
1792
|
function fo() {
|
|
1793
1793
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -1802,13 +1802,13 @@ function mo(e) {
|
|
|
1802
1802
|
return ir(e);
|
|
1803
1803
|
}
|
|
1804
1804
|
function rr(e, r) {
|
|
1805
|
-
return
|
|
1805
|
+
return go(e) || yo(e, r) || ot(e, r) || vo();
|
|
1806
1806
|
}
|
|
1807
1807
|
function vo() {
|
|
1808
1808
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1809
1809
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1810
1810
|
}
|
|
1811
|
-
function
|
|
1811
|
+
function ot(e, r) {
|
|
1812
1812
|
if (e) {
|
|
1813
1813
|
if (typeof e == "string")
|
|
1814
1814
|
return ir(e, r);
|
|
@@ -1825,7 +1825,7 @@ function ir(e, r) {
|
|
|
1825
1825
|
n[t] = e[t];
|
|
1826
1826
|
return n;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function yo(e, r) {
|
|
1829
1829
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1830
1830
|
if (t != null) {
|
|
1831
1831
|
var n = [], a = !0, o = !1, s, i;
|
|
@@ -1845,7 +1845,7 @@ function go(e, r) {
|
|
|
1845
1845
|
return n;
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function go(e) {
|
|
1849
1849
|
if (Array.isArray(e))
|
|
1850
1850
|
return e;
|
|
1851
1851
|
}
|
|
@@ -1893,17 +1893,17 @@ function bo(e, r) {
|
|
|
1893
1893
|
return t;
|
|
1894
1894
|
}
|
|
1895
1895
|
var pr = /* @__PURE__ */ vt(function(e, r) {
|
|
1896
|
-
var t = e.children, n = Le(e, io), a =
|
|
1897
|
-
return
|
|
1896
|
+
var t = e.children, n = Le(e, io), a = it(n), o = a.open, s = Le(a, so);
|
|
1897
|
+
return yt(r, function() {
|
|
1898
1898
|
return {
|
|
1899
1899
|
open: o
|
|
1900
1900
|
};
|
|
1901
|
-
}, [o]), /* @__PURE__ */
|
|
1901
|
+
}, [o]), /* @__PURE__ */ pt.createElement(gt, null, t(z(z({}, s), {}, {
|
|
1902
1902
|
open: o
|
|
1903
1903
|
})));
|
|
1904
1904
|
});
|
|
1905
1905
|
pr.displayName = "Dropzone";
|
|
1906
|
-
var
|
|
1906
|
+
var at = {
|
|
1907
1907
|
disabled: !1,
|
|
1908
1908
|
getFilesFromEvent: An,
|
|
1909
1909
|
maxSize: 1 / 0,
|
|
@@ -1919,7 +1919,7 @@ var ot = {
|
|
|
1919
1919
|
useFsAccessApi: !0,
|
|
1920
1920
|
autoFocus: !1
|
|
1921
1921
|
};
|
|
1922
|
-
pr.defaultProps =
|
|
1922
|
+
pr.defaultProps = at;
|
|
1923
1923
|
pr.propTypes = {
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -2097,22 +2097,22 @@ var cr = {
|
|
|
2097
2097
|
acceptedFiles: [],
|
|
2098
2098
|
fileRejections: []
|
|
2099
2099
|
};
|
|
2100
|
-
function
|
|
2101
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({},
|
|
2100
|
+
function it() {
|
|
2101
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles, c = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, C = r.onDropRejected, S = r.onFileDialogCancel, L = r.onFileDialogOpen, N = r.useFsAccessApi, U = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, X = r.noDrag, $ = r.noDragEventsBubbling, J = r.onError, ee = r.validator, ce = se(function() {
|
|
2102
2102
|
return no(t);
|
|
2103
|
-
}, [t]),
|
|
2103
|
+
}, [t]), pe = se(function() {
|
|
2104
2104
|
return to(t);
|
|
2105
|
-
}, [t]),
|
|
2105
|
+
}, [t]), de = se(function() {
|
|
2106
2106
|
return typeof L == "function" ? L : $r;
|
|
2107
|
-
}, [L]),
|
|
2108
|
-
return typeof
|
|
2109
|
-
}, [
|
|
2110
|
-
!T.current &&
|
|
2107
|
+
}, [L]), le = se(function() {
|
|
2108
|
+
return typeof S == "function" ? S : $r;
|
|
2109
|
+
}, [S]), W = Oe(null), Z = Oe(null), ne = Lr(ho, cr), ae = rr(ne, 2), ue = ae[0], G = ae[1], u = ue.isFocused, y = ue.isFileDialogActive, T = Oe(typeof window < "u" && window.isSecureContext && N && ro()), x = function() {
|
|
2110
|
+
!T.current && y && setTimeout(function() {
|
|
2111
2111
|
if (Z.current) {
|
|
2112
|
-
var
|
|
2113
|
-
|
|
2112
|
+
var _ = Z.current.files;
|
|
2113
|
+
_.length || (G({
|
|
2114
2114
|
type: "closeDialog"
|
|
2115
|
-
}),
|
|
2115
|
+
}), le());
|
|
2116
2116
|
}
|
|
2117
2117
|
}, 300);
|
|
2118
2118
|
};
|
|
@@ -2120,9 +2120,9 @@ function at() {
|
|
|
2120
2120
|
return window.addEventListener("focus", x, !1), function() {
|
|
2121
2121
|
window.removeEventListener("focus", x, !1);
|
|
2122
2122
|
};
|
|
2123
|
-
}, [Z,
|
|
2124
|
-
var
|
|
2125
|
-
W.current && W.current.contains(
|
|
2123
|
+
}, [Z, y, le, T]);
|
|
2124
|
+
var E = Oe([]), P = function(_) {
|
|
2125
|
+
W.current && W.current.contains(_.target) || (_.preventDefault(), E.current = []);
|
|
2126
2126
|
};
|
|
2127
2127
|
_e(function() {
|
|
2128
2128
|
return A && (document.addEventListener("dragover", Nr, !1), document.addEventListener("drop", P, !1)), function() {
|
|
@@ -2132,13 +2132,13 @@ function at() {
|
|
|
2132
2132
|
return !n && U && W.current && W.current.focus(), function() {
|
|
2133
2133
|
};
|
|
2134
2134
|
}, [W, U, n]);
|
|
2135
|
-
var
|
|
2135
|
+
var w = Q(function(m) {
|
|
2136
2136
|
J ? J(m) : console.error(m);
|
|
2137
2137
|
}, [J]), O = Q(function(m) {
|
|
2138
|
-
m.preventDefault(), m.persist(),
|
|
2138
|
+
m.preventDefault(), m.persist(), Fe(m), E.current = [].concat(uo(E.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(_) {
|
|
2139
2139
|
if (!(Me(m) && !$)) {
|
|
2140
|
-
var Y =
|
|
2141
|
-
files:
|
|
2140
|
+
var Y = _.length, V = Y > 0 && Zn({
|
|
2141
|
+
files: _,
|
|
2142
2142
|
accept: ce,
|
|
2143
2143
|
minSize: s,
|
|
2144
2144
|
maxSize: o,
|
|
@@ -2153,41 +2153,41 @@ function at() {
|
|
|
2153
2153
|
type: "setDraggedFiles"
|
|
2154
2154
|
}), c && c(m);
|
|
2155
2155
|
}
|
|
2156
|
-
}).catch(function(
|
|
2157
|
-
return
|
|
2156
|
+
}).catch(function(_) {
|
|
2157
|
+
return w(_);
|
|
2158
2158
|
});
|
|
2159
|
-
}, [a, c,
|
|
2160
|
-
m.preventDefault(), m.persist(),
|
|
2161
|
-
var
|
|
2162
|
-
if (
|
|
2159
|
+
}, [a, c, w, $, ce, s, o, i, f, ee]), R = Q(function(m) {
|
|
2160
|
+
m.preventDefault(), m.persist(), Fe(m);
|
|
2161
|
+
var _ = Ne(m);
|
|
2162
|
+
if (_ && m.dataTransfer)
|
|
2163
2163
|
try {
|
|
2164
2164
|
m.dataTransfer.dropEffect = "copy";
|
|
2165
2165
|
} catch {
|
|
2166
2166
|
}
|
|
2167
|
-
return
|
|
2168
|
-
}, [
|
|
2169
|
-
m.preventDefault(), m.persist(),
|
|
2170
|
-
var
|
|
2167
|
+
return _ && g && g(m), !1;
|
|
2168
|
+
}, [g, $]), F = Q(function(m) {
|
|
2169
|
+
m.preventDefault(), m.persist(), Fe(m);
|
|
2170
|
+
var _ = E.current.filter(function(V) {
|
|
2171
2171
|
return W.current && W.current.contains(V);
|
|
2172
|
-
}), Y =
|
|
2173
|
-
Y !== -1 &&
|
|
2172
|
+
}), Y = _.indexOf(m.target);
|
|
2173
|
+
Y !== -1 && _.splice(Y, 1), E.current = _, !(_.length > 0) && (G({
|
|
2174
2174
|
type: "setDraggedFiles",
|
|
2175
2175
|
isDragActive: !1,
|
|
2176
2176
|
isDragAccept: !1,
|
|
2177
2177
|
isDragReject: !1
|
|
2178
2178
|
}), Ne(m) && v && v(m));
|
|
2179
|
-
}, [W, v, $]), D = Q(function(m,
|
|
2179
|
+
}, [W, v, $]), D = Q(function(m, _) {
|
|
2180
2180
|
var Y = [], V = [];
|
|
2181
2181
|
m.forEach(function(te) {
|
|
2182
|
-
var xe =
|
|
2182
|
+
var xe = et(te, ce), he = rr(xe, 2), We = he[0], Ye = he[1], qe = rt(te, s, o), Ie = rr(qe, 2), Ue = Ie[0], Ke = Ie[1], He = ee ? ee(te) : null;
|
|
2183
2183
|
if (We && Ue && !He)
|
|
2184
2184
|
Y.push(te);
|
|
2185
2185
|
else {
|
|
2186
2186
|
var Ge = [Ye, Ke];
|
|
2187
2187
|
He && (Ge = Ge.concat(He)), V.push({
|
|
2188
2188
|
file: te,
|
|
2189
|
-
errors: Ge.filter(function(
|
|
2190
|
-
return
|
|
2189
|
+
errors: Ge.filter(function(ft) {
|
|
2190
|
+
return ft;
|
|
2191
2191
|
})
|
|
2192
2192
|
});
|
|
2193
2193
|
}
|
|
@@ -2200,43 +2200,43 @@ function at() {
|
|
|
2200
2200
|
acceptedFiles: Y,
|
|
2201
2201
|
fileRejections: V,
|
|
2202
2202
|
type: "setFiles"
|
|
2203
|
-
}), h && h(Y, V,
|
|
2204
|
-
}, [G, i, ce, s, o, f, h,
|
|
2205
|
-
m.preventDefault(), m.persist(),
|
|
2206
|
-
Me(m) && !$ || D(
|
|
2207
|
-
}).catch(function(
|
|
2208
|
-
return
|
|
2203
|
+
}), h && h(Y, V, _), V.length > 0 && C && C(V, _), Y.length > 0 && b && b(Y, _);
|
|
2204
|
+
}, [G, i, ce, s, o, f, h, b, C, ee]), q = Q(function(m) {
|
|
2205
|
+
m.preventDefault(), m.persist(), Fe(m), E.current = [], Ne(m) && Promise.resolve(a(m)).then(function(_) {
|
|
2206
|
+
Me(m) && !$ || D(_, m);
|
|
2207
|
+
}).catch(function(_) {
|
|
2208
|
+
return w(_);
|
|
2209
2209
|
}), G({
|
|
2210
2210
|
type: "reset"
|
|
2211
2211
|
});
|
|
2212
|
-
}, [a, D,
|
|
2212
|
+
}, [a, D, w, $]), d = Q(function() {
|
|
2213
2213
|
if (T.current) {
|
|
2214
2214
|
G({
|
|
2215
2215
|
type: "openDialog"
|
|
2216
|
-
}),
|
|
2216
|
+
}), de();
|
|
2217
2217
|
var m = {
|
|
2218
2218
|
multiple: i,
|
|
2219
|
-
types:
|
|
2219
|
+
types: pe
|
|
2220
2220
|
};
|
|
2221
|
-
window.showOpenFilePicker(m).then(function(
|
|
2222
|
-
return a(
|
|
2223
|
-
}).then(function(
|
|
2224
|
-
D(
|
|
2221
|
+
window.showOpenFilePicker(m).then(function(_) {
|
|
2222
|
+
return a(_);
|
|
2223
|
+
}).then(function(_) {
|
|
2224
|
+
D(_, null), G({
|
|
2225
2225
|
type: "closeDialog"
|
|
2226
2226
|
});
|
|
2227
|
-
}).catch(function(
|
|
2228
|
-
oo(
|
|
2227
|
+
}).catch(function(_) {
|
|
2228
|
+
oo(_) ? (le(_), G({
|
|
2229
2229
|
type: "closeDialog"
|
|
2230
|
-
})) : ao(
|
|
2230
|
+
})) : ao(_) ? (T.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : w(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : w(_);
|
|
2231
2231
|
});
|
|
2232
2232
|
return;
|
|
2233
2233
|
}
|
|
2234
2234
|
Z.current && (G({
|
|
2235
2235
|
type: "openDialog"
|
|
2236
|
-
}),
|
|
2237
|
-
}, [G,
|
|
2236
|
+
}), de(), Z.current.value = null, Z.current.click());
|
|
2237
|
+
}, [G, de, le, N, D, w, pe, i]), re = Q(function(m) {
|
|
2238
2238
|
!W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
|
|
2239
|
-
}, [W, d]),
|
|
2239
|
+
}, [W, d]), me = Q(function() {
|
|
2240
2240
|
G({
|
|
2241
2241
|
type: "focus"
|
|
2242
2242
|
});
|
|
@@ -2246,36 +2246,36 @@ function at() {
|
|
|
2246
2246
|
});
|
|
2247
2247
|
}, []), dr = Q(function() {
|
|
2248
2248
|
k || (eo() ? setTimeout(d, 0) : d());
|
|
2249
|
-
}, [k, d]), be = function(
|
|
2250
|
-
return n ? null :
|
|
2251
|
-
}, ze = function(
|
|
2252
|
-
return p ? null : be(
|
|
2253
|
-
}, Re = function(
|
|
2254
|
-
return X ? null : be(
|
|
2255
|
-
},
|
|
2256
|
-
$ &&
|
|
2257
|
-
},
|
|
2249
|
+
}, [k, d]), be = function(_) {
|
|
2250
|
+
return n ? null : _;
|
|
2251
|
+
}, ze = function(_) {
|
|
2252
|
+
return p ? null : be(_);
|
|
2253
|
+
}, Re = function(_) {
|
|
2254
|
+
return X ? null : be(_);
|
|
2255
|
+
}, Fe = function(_) {
|
|
2256
|
+
$ && _.stopPropagation();
|
|
2257
|
+
}, ct = se(function() {
|
|
2258
2258
|
return function() {
|
|
2259
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2259
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown, xe = m.onFocus, he = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Ie = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, co);
|
|
2260
2260
|
return z(z(sr({
|
|
2261
2261
|
onKeyDown: ze(ie(te, re)),
|
|
2262
|
-
onFocus: ze(ie(xe,
|
|
2262
|
+
onFocus: ze(ie(xe, me)),
|
|
2263
2263
|
onBlur: ze(ie(he, Te)),
|
|
2264
2264
|
onClick: be(ie(We, dr)),
|
|
2265
2265
|
onDragEnter: Re(ie(Ye, O)),
|
|
2266
2266
|
onDragOver: Re(ie(qe, R)),
|
|
2267
|
-
onDragLeave: Re(ie(
|
|
2267
|
+
onDragLeave: Re(ie(Ie, F)),
|
|
2268
2268
|
onDrop: Re(ie(Ue, q)),
|
|
2269
2269
|
role: typeof V == "string" && V !== "" ? V : "presentation"
|
|
2270
2270
|
}, Y, W), !n && !p ? {
|
|
2271
2271
|
tabIndex: 0
|
|
2272
2272
|
} : {}), Ke);
|
|
2273
2273
|
};
|
|
2274
|
-
}, [W, re,
|
|
2274
|
+
}, [W, re, me, Te, dr, O, R, F, q, p, X, n]), lt = Q(function(m) {
|
|
2275
2275
|
m.stopPropagation();
|
|
2276
|
-
}, []),
|
|
2276
|
+
}, []), ut = se(function() {
|
|
2277
2277
|
return function() {
|
|
2278
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
2278
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick, xe = Le(m, lo), he = sr({
|
|
2279
2279
|
accept: ce,
|
|
2280
2280
|
multiple: i,
|
|
2281
2281
|
type: "file",
|
|
@@ -2283,16 +2283,16 @@ function at() {
|
|
|
2283
2283
|
display: "none"
|
|
2284
2284
|
},
|
|
2285
2285
|
onChange: be(ie(V, q)),
|
|
2286
|
-
onClick: be(ie(te,
|
|
2286
|
+
onClick: be(ie(te, lt)),
|
|
2287
2287
|
tabIndex: -1
|
|
2288
2288
|
}, Y, Z);
|
|
2289
2289
|
return z(z({}, he), xe);
|
|
2290
2290
|
};
|
|
2291
2291
|
}, [Z, t, i, q, n]);
|
|
2292
|
-
return z(z({},
|
|
2292
|
+
return z(z({}, ue), {}, {
|
|
2293
2293
|
isFocused: u && !n,
|
|
2294
|
-
getRootProps:
|
|
2295
|
-
getInputProps:
|
|
2294
|
+
getRootProps: ct,
|
|
2295
|
+
getInputProps: ut,
|
|
2296
2296
|
rootRef: W,
|
|
2297
2297
|
inputRef: Z,
|
|
2298
2298
|
open: be(d)
|
|
@@ -2335,7 +2335,50 @@ function ho(e, r) {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
function $r() {
|
|
2337
2337
|
}
|
|
2338
|
-
const _o = ({
|
|
2338
|
+
const _o = () => {
|
|
2339
|
+
const e = (i, f) => {
|
|
2340
|
+
switch (f.type) {
|
|
2341
|
+
case "add-files":
|
|
2342
|
+
return {
|
|
2343
|
+
acceptedFiles: [
|
|
2344
|
+
...i.acceptedFiles,
|
|
2345
|
+
...f.payload.acceptedFiles
|
|
2346
|
+
],
|
|
2347
|
+
fileRejections: [
|
|
2348
|
+
...i.fileRejections,
|
|
2349
|
+
...f.payload.fileRejections
|
|
2350
|
+
]
|
|
2351
|
+
};
|
|
2352
|
+
case "remove-accepted":
|
|
2353
|
+
return {
|
|
2354
|
+
...i,
|
|
2355
|
+
acceptedFiles: i.acceptedFiles.filter(
|
|
2356
|
+
(c) => c !== f.payload
|
|
2357
|
+
)
|
|
2358
|
+
};
|
|
2359
|
+
case "remove-rejected":
|
|
2360
|
+
return {
|
|
2361
|
+
...i,
|
|
2362
|
+
fileRejections: i.fileRejections.filter(
|
|
2363
|
+
(c) => c !== f.payload
|
|
2364
|
+
)
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
}, [{ acceptedFiles: r, fileRejections: t }, n] = Lr(
|
|
2368
|
+
e,
|
|
2369
|
+
{
|
|
2370
|
+
acceptedFiles: [],
|
|
2371
|
+
fileRejections: []
|
|
2372
|
+
}
|
|
2373
|
+
), a = Q(
|
|
2374
|
+
(i, f) => n({
|
|
2375
|
+
type: "add-files",
|
|
2376
|
+
payload: { acceptedFiles: i, fileRejections: f }
|
|
2377
|
+
}),
|
|
2378
|
+
[n]
|
|
2379
|
+
);
|
|
2380
|
+
return { acceptedFiles: r, fileRejections: t, onFileUpload: a, removeFile: (i) => n({ type: "remove-accepted", payload: i }), removeRejectedFile: (i) => n({ type: "remove-rejected", payload: i }) };
|
|
2381
|
+
}, Eo = ({
|
|
2339
2382
|
accept: e,
|
|
2340
2383
|
error: r,
|
|
2341
2384
|
files: t,
|
|
@@ -2348,7 +2391,7 @@ const _o = ({
|
|
|
2348
2391
|
removeFile: c,
|
|
2349
2392
|
removeRejectedFile: v
|
|
2350
2393
|
}) => {
|
|
2351
|
-
const { getRootProps:
|
|
2394
|
+
const { getRootProps: g } = it({
|
|
2352
2395
|
accept: e,
|
|
2353
2396
|
maxFiles: o,
|
|
2354
2397
|
maxSize: s,
|
|
@@ -2367,7 +2410,7 @@ const _o = ({
|
|
|
2367
2410
|
!o || t.length < o ? /* @__PURE__ */ l("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ l(
|
|
2368
2411
|
"div",
|
|
2369
2412
|
{
|
|
2370
|
-
...
|
|
2413
|
+
...g(),
|
|
2371
2414
|
"aria-labelledby": a ? h : void 0,
|
|
2372
2415
|
className: "file-upload",
|
|
2373
2416
|
"data-testid": "file-upload",
|
|
@@ -2379,42 +2422,42 @@ const _o = ({
|
|
|
2379
2422
|
r
|
|
2380
2423
|
] }) : null,
|
|
2381
2424
|
/* @__PURE__ */ K("div", { className: "file-upload__files-list", children: [
|
|
2382
|
-
f && f.map((
|
|
2425
|
+
f && f.map((b) => /* @__PURE__ */ K("span", { className: "is-error", children: [
|
|
2383
2426
|
/* @__PURE__ */ K("div", { className: "file-upload__file is-rejected", children: [
|
|
2384
|
-
|
|
2427
|
+
b.file.name,
|
|
2385
2428
|
/* @__PURE__ */ l(
|
|
2386
|
-
|
|
2429
|
+
fe,
|
|
2387
2430
|
{
|
|
2388
2431
|
appearance: "base",
|
|
2389
2432
|
className: "file-upload__file-remove-button",
|
|
2390
|
-
onClick: () => v(
|
|
2433
|
+
onClick: () => v(b),
|
|
2391
2434
|
type: "button",
|
|
2392
2435
|
children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
|
|
2393
2436
|
}
|
|
2394
2437
|
)
|
|
2395
2438
|
] }),
|
|
2396
|
-
|
|
2439
|
+
b.errors.map((C) => /* @__PURE__ */ l(
|
|
2397
2440
|
"p",
|
|
2398
2441
|
{
|
|
2399
2442
|
className: "p-form-validation__message",
|
|
2400
|
-
children:
|
|
2443
|
+
children: C.message
|
|
2401
2444
|
},
|
|
2402
|
-
`${
|
|
2445
|
+
`${b.file.name}-${C.code}`
|
|
2403
2446
|
))
|
|
2404
|
-
] },
|
|
2405
|
-
t && t.map((
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2447
|
+
] }, b.file.name)),
|
|
2448
|
+
t && t.map((b) => /* @__PURE__ */ K("div", { className: "file-upload__file", children: [
|
|
2449
|
+
b.name,
|
|
2450
|
+
b.percentUploaded !== void 0 ? /* @__PURE__ */ l(kt, { percentComplete: b.percentUploaded }) : /* @__PURE__ */ l(
|
|
2451
|
+
fe,
|
|
2409
2452
|
{
|
|
2410
2453
|
appearance: "base",
|
|
2411
2454
|
className: "file-upload__file-remove-button",
|
|
2412
|
-
onClick: () => c(
|
|
2455
|
+
onClick: () => c(b),
|
|
2413
2456
|
type: "button",
|
|
2414
2457
|
children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
|
|
2415
2458
|
}
|
|
2416
2459
|
)
|
|
2417
|
-
] },
|
|
2460
|
+
] }, b.name))
|
|
2418
2461
|
] })
|
|
2419
2462
|
] })
|
|
2420
2463
|
]
|
|
@@ -2428,36 +2471,31 @@ const _o = ({
|
|
|
2428
2471
|
maxFiles: a,
|
|
2429
2472
|
maxSize: o
|
|
2430
2473
|
}) => {
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2474
|
+
const {
|
|
2475
|
+
acceptedFiles: s,
|
|
2476
|
+
fileRejections: i,
|
|
2477
|
+
onFileUpload: f,
|
|
2478
|
+
removeFile: c,
|
|
2479
|
+
removeRejectedFile: v
|
|
2480
|
+
} = _o();
|
|
2437
2481
|
return /* @__PURE__ */ l(
|
|
2438
|
-
|
|
2482
|
+
Eo,
|
|
2439
2483
|
{
|
|
2440
2484
|
accept: e,
|
|
2441
2485
|
error: r,
|
|
2442
2486
|
files: s,
|
|
2443
|
-
rejectedFiles:
|
|
2487
|
+
rejectedFiles: i,
|
|
2444
2488
|
help: t,
|
|
2445
2489
|
label: n,
|
|
2446
2490
|
maxFiles: a,
|
|
2447
2491
|
maxSize: o,
|
|
2448
|
-
onFileUpload:
|
|
2449
|
-
removeFile:
|
|
2450
|
-
|
|
2451
|
-
_.splice(_.indexOf(y), 1), i(_);
|
|
2452
|
-
},
|
|
2453
|
-
removeRejectedFile: (y) => {
|
|
2454
|
-
const _ = [...f];
|
|
2455
|
-
_.splice(_.indexOf(y), 1), c(_);
|
|
2456
|
-
}
|
|
2492
|
+
onFileUpload: f,
|
|
2493
|
+
removeFile: c,
|
|
2494
|
+
removeRejectedFile: v
|
|
2457
2495
|
}
|
|
2458
2496
|
);
|
|
2459
2497
|
};
|
|
2460
|
-
const
|
|
2498
|
+
const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo = (e) => (r, t) => {
|
|
2461
2499
|
if (e) {
|
|
2462
2500
|
const n = e.has(r.value), a = e.has(t.value);
|
|
2463
2501
|
if (n && !a)
|
|
@@ -2466,13 +2504,13 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2466
2504
|
return 1;
|
|
2467
2505
|
}
|
|
2468
2506
|
return 0;
|
|
2469
|
-
},
|
|
2507
|
+
}, So = (e) => {
|
|
2470
2508
|
const r = /* @__PURE__ */ new Map();
|
|
2471
2509
|
return e.forEach((t) => {
|
|
2472
2510
|
const n = t.group || "Ungrouped", a = r.get(n) || [];
|
|
2473
2511
|
a.push(t), r.set(n, a);
|
|
2474
2512
|
}), Array.from(r, ([t, n]) => ({ group: t, items: n }));
|
|
2475
|
-
},
|
|
2513
|
+
}, Co = ({
|
|
2476
2514
|
items: e,
|
|
2477
2515
|
selectedItems: r,
|
|
2478
2516
|
disabledItems: t,
|
|
@@ -2480,22 +2518,22 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2480
2518
|
updateItems: a,
|
|
2481
2519
|
isOpen: o,
|
|
2482
2520
|
footer: s,
|
|
2483
|
-
sortFn: i =
|
|
2484
|
-
groupFn: f =
|
|
2521
|
+
sortFn: i = st,
|
|
2522
|
+
groupFn: f = So,
|
|
2485
2523
|
...c
|
|
2486
2524
|
}) => {
|
|
2487
2525
|
const v = se(
|
|
2488
2526
|
() => new Set(r.map((N) => N.value)),
|
|
2489
2527
|
[r]
|
|
2490
|
-
),
|
|
2528
|
+
), g = se(
|
|
2491
2529
|
() => new Set(t.map((N) => N.value)),
|
|
2492
2530
|
[t]
|
|
2493
|
-
), [h,
|
|
2531
|
+
), [h, b] = ge(new Set(v));
|
|
2494
2532
|
_e(() => {
|
|
2495
|
-
o &&
|
|
2533
|
+
o && b(new Set(v));
|
|
2496
2534
|
}, [o]);
|
|
2497
|
-
const
|
|
2498
|
-
() =>
|
|
2535
|
+
const C = se(() => e.some((N) => N.group), [e]), S = se(
|
|
2536
|
+
() => C ? f(e) : [{ group: "Ungrouped", items: e }],
|
|
2499
2537
|
[e, f]
|
|
2500
2538
|
), L = (N) => {
|
|
2501
2539
|
const { checked: U, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
|
|
@@ -2504,14 +2542,14 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2504
2542
|
a(p);
|
|
2505
2543
|
}
|
|
2506
2544
|
};
|
|
2507
|
-
return /* @__PURE__ */ l(
|
|
2545
|
+
return /* @__PURE__ */ l(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ K("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
2508
2546
|
n || null,
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
/* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: U.sort(i).sort(
|
|
2547
|
+
S.map(({ group: N, items: U }) => /* @__PURE__ */ K("div", { className: "multi-select__group", children: [
|
|
2548
|
+
C ? /* @__PURE__ */ l("h5", { className: "multi-select__dropdown-header", children: N }) : null,
|
|
2549
|
+
/* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: U.sort(i).sort(wo(h)).map((A) => /* @__PURE__ */ l("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ l(
|
|
2512
2550
|
xt,
|
|
2513
2551
|
{
|
|
2514
|
-
disabled:
|
|
2552
|
+
disabled: g.has(A.value),
|
|
2515
2553
|
label: A.label,
|
|
2516
2554
|
checked: v.has(A.value),
|
|
2517
2555
|
value: A.value,
|
|
@@ -2522,7 +2560,7 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2522
2560
|
] }, N)),
|
|
2523
2561
|
s ? /* @__PURE__ */ l("div", { className: "multi-select__footer", children: s }) : null
|
|
2524
2562
|
] }) });
|
|
2525
|
-
},
|
|
2563
|
+
}, jo = ({
|
|
2526
2564
|
disabled: e,
|
|
2527
2565
|
selectedItems: r = [],
|
|
2528
2566
|
label: t,
|
|
@@ -2535,23 +2573,23 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2535
2573
|
dropdownFooter: c,
|
|
2536
2574
|
variant: v = "search"
|
|
2537
2575
|
}) => {
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2576
|
+
const g = Ot(() => {
|
|
2577
|
+
b(!1), S("");
|
|
2540
2578
|
});
|
|
2541
2579
|
Dt(() => {
|
|
2542
|
-
|
|
2580
|
+
b(!1), S("");
|
|
2543
2581
|
});
|
|
2544
|
-
const [h,
|
|
2582
|
+
const [h, b] = ge(!1), [C, S] = ge("");
|
|
2545
2583
|
_e(() => {
|
|
2546
|
-
h ||
|
|
2584
|
+
h || S("");
|
|
2547
2585
|
}, [h]);
|
|
2548
|
-
const [L, N] =
|
|
2586
|
+
const [L, N] = ge([]), U = r || L, A = ($) => {
|
|
2549
2587
|
const J = Array.from(new Set($));
|
|
2550
2588
|
N(J), n && n(J);
|
|
2551
2589
|
}, k = ke(), p = ke(), X = U.filter(
|
|
2552
2590
|
($) => s.some((J) => J.value === $.value)
|
|
2553
|
-
).sort(
|
|
2554
|
-
return /* @__PURE__ */ l("div", { ref:
|
|
2591
|
+
).sort(st).map(($) => $.label).join(", ");
|
|
2592
|
+
return /* @__PURE__ */ l("div", { ref: g, children: /* @__PURE__ */ K("div", { className: "multi-select", children: [
|
|
2555
2593
|
v === "search" ? /* @__PURE__ */ l(
|
|
2556
2594
|
At,
|
|
2557
2595
|
{
|
|
@@ -2564,13 +2602,13 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2564
2602
|
disabled: e,
|
|
2565
2603
|
autoComplete: "off",
|
|
2566
2604
|
onChange: ($) => {
|
|
2567
|
-
|
|
2605
|
+
S($), b(!0);
|
|
2568
2606
|
},
|
|
2569
|
-
onFocus: () =>
|
|
2607
|
+
onFocus: () => b(!0),
|
|
2570
2608
|
placeholder: a ?? "Search",
|
|
2571
2609
|
required: o,
|
|
2572
2610
|
type: "text",
|
|
2573
|
-
value:
|
|
2611
|
+
value: C,
|
|
2574
2612
|
className: "multi-select__input"
|
|
2575
2613
|
}
|
|
2576
2614
|
) : /* @__PURE__ */ l(
|
|
@@ -2583,18 +2621,18 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2583
2621
|
"aria-expanded": h,
|
|
2584
2622
|
className: "multi-select__select-button",
|
|
2585
2623
|
onClick: () => {
|
|
2586
|
-
|
|
2624
|
+
b(($) => !$);
|
|
2587
2625
|
},
|
|
2588
2626
|
children: /* @__PURE__ */ l("span", { className: "multi-select__condensed-text", children: U.length > 0 ? X : a ?? "Select items" })
|
|
2589
2627
|
}
|
|
2590
2628
|
),
|
|
2591
2629
|
/* @__PURE__ */ l(
|
|
2592
|
-
|
|
2630
|
+
Co,
|
|
2593
2631
|
{
|
|
2594
2632
|
id: k,
|
|
2595
2633
|
isOpen: h,
|
|
2596
|
-
items:
|
|
2597
|
-
($) => $.label.toLowerCase().includes(
|
|
2634
|
+
items: C.length > 0 ? s.filter(
|
|
2635
|
+
($) => $.label.toLowerCase().includes(C.toLowerCase())
|
|
2598
2636
|
) : s,
|
|
2599
2637
|
selectedItems: U,
|
|
2600
2638
|
disabledItems: i,
|
|
@@ -2602,7 +2640,7 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2602
2640
|
updateItems: A,
|
|
2603
2641
|
footer: c || /* @__PURE__ */ K(Ae, { children: [
|
|
2604
2642
|
/* @__PURE__ */ l(
|
|
2605
|
-
|
|
2643
|
+
fe,
|
|
2606
2644
|
{
|
|
2607
2645
|
appearance: "link",
|
|
2608
2646
|
onClick: () => {
|
|
@@ -2618,7 +2656,7 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2618
2656
|
}
|
|
2619
2657
|
),
|
|
2620
2658
|
/* @__PURE__ */ l(
|
|
2621
|
-
|
|
2659
|
+
fe,
|
|
2622
2660
|
{
|
|
2623
2661
|
appearance: "link",
|
|
2624
2662
|
onClick: () => {
|
|
@@ -2637,7 +2675,7 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2637
2675
|
}
|
|
2638
2676
|
)
|
|
2639
2677
|
] }) });
|
|
2640
|
-
},
|
|
2678
|
+
}, No = ({ value: e, unit: r }, {
|
|
2641
2679
|
binary: t = !1,
|
|
2642
2680
|
convertTo: n,
|
|
2643
2681
|
decimals: a = 2,
|
|
@@ -2646,37 +2684,37 @@ const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo =
|
|
|
2646
2684
|
const s = e < 0, i = Math.abs(e);
|
|
2647
2685
|
if (i === 0)
|
|
2648
2686
|
return { value: 0, unit: n || "B" };
|
|
2649
|
-
const f = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = c.findIndex((
|
|
2650
|
-
let
|
|
2651
|
-
if (
|
|
2652
|
-
const
|
|
2653
|
-
|
|
2687
|
+
const f = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = c.findIndex((S) => S === r) || 0, g = i * Math.pow(f, v), h = n ? c.findIndex((S) => S === n) : Math.floor(Math.log(g) / Math.log(f));
|
|
2688
|
+
let b = g / Math.pow(f, h);
|
|
2689
|
+
if (b % 1 !== 0) {
|
|
2690
|
+
const S = Math.pow(10, a);
|
|
2691
|
+
b = Math[o](b * S) / S;
|
|
2654
2692
|
}
|
|
2655
2693
|
return {
|
|
2656
|
-
value: s ? -
|
|
2694
|
+
value: s ? -b : b,
|
|
2657
2695
|
unit: c[h]
|
|
2658
2696
|
};
|
|
2659
2697
|
};
|
|
2660
2698
|
export {
|
|
2661
2699
|
Be as ContentSection,
|
|
2662
|
-
|
|
2663
|
-
|
|
2700
|
+
Ao as ExternalLink,
|
|
2701
|
+
Eo as FileUpload,
|
|
2664
2702
|
Io as FileUploadContainer,
|
|
2665
2703
|
ur as FormSection,
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2704
|
+
Yr as InputGroup,
|
|
2705
|
+
Kr as MainToolbar,
|
|
2706
|
+
Ft as Meter,
|
|
2707
|
+
jo as MultiSelect,
|
|
2708
|
+
Co as MultiSelectDropdown,
|
|
2671
2709
|
H as Navigation,
|
|
2672
2710
|
tn as NavigationBar,
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2711
|
+
Po as NestedFormGroup,
|
|
2712
|
+
yn as Pagination,
|
|
2713
|
+
Ro as PaginationContainer,
|
|
2676
2714
|
kt as ProgressIndicator,
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2715
|
+
Fo as Stepper,
|
|
2716
|
+
Do as defaultFilledColors,
|
|
2717
|
+
No as formatBytes,
|
|
2680
2718
|
ye as meterColor,
|
|
2681
2719
|
Ee as testIds
|
|
2682
2720
|
};
|