@canonical/maas-react-components 1.22.0 → 1.23.1
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/@canonical/maas-react-components.es.js +431 -423
- package/dist/@canonical/maas-react-components.umd.js +11 -11
- package/dist/src/lib/components/FileUpload/FileUpload.d.ts +5 -1
- package/dist/src/lib/elements/ProgressIndicator/ProgressIndicator.d.ts +5 -0
- package/dist/src/lib/elements/ProgressIndicator/ProgressIndicator.test.d.ts +1 -0
- package/dist/src/lib/elements/ProgressIndicator/index.d.ts +1 -0
- package/dist/src/lib/elements/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
3
|
+
import ft, { useRef as Oe, useState as le, useEffect as _e, useCallback as Q, cloneElement as pt, createContext as dt, useId as ke, useContext as Mr, useMemo as se, useReducer as mt, forwardRef as vt, useImperativeHandle as gt, Fragment as yt } from "react";
|
|
4
|
+
import { useListener as bt, Link as ht, Spinner as _t, Tooltip as Et, Button as pe, 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
5
|
function Lr(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
@@ -41,8 +41,8 @@ var Br = { exports: {} };
|
|
|
41
41
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
42
42
|
})();
|
|
43
43
|
})(Br);
|
|
44
|
-
var
|
|
45
|
-
const B = /* @__PURE__ */ Lr(
|
|
44
|
+
var Pt = Br.exports;
|
|
45
|
+
const B = /* @__PURE__ */ Lr(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
|
+
}, Oo = [
|
|
56
56
|
ye.link,
|
|
57
57
|
ye.positive,
|
|
58
58
|
ye.negative,
|
|
59
59
|
ye.caution
|
|
60
|
-
],
|
|
60
|
+
], Rt = ye.linkFaded, zr = ye.caution, tr = ye.light, mr = 2, vr = 1, gr = (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
|
+
}, It = ({
|
|
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) => _ + C.value, 0), c = n || f, v = t.map((_) => _.value / c * 100), [b, h] = le(0);
|
|
81
81
|
_e(() => {
|
|
82
82
|
h(a === "segmented" ? gr(i, c) : 0);
|
|
83
83
|
}, [c, a]);
|
|
84
|
-
const
|
|
84
|
+
const y = Q(() => {
|
|
85
85
|
h(gr(i, c));
|
|
86
86
|
}, [i, c, h]);
|
|
87
|
-
return
|
|
87
|
+
return bt(window, y, "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(
|
|
98
|
-
|
|
97
|
+
/* @__PURE__ */ l(Ft, { children: /* @__PURE__ */ l(
|
|
98
|
+
jt,
|
|
99
99
|
{
|
|
100
100
|
data: t,
|
|
101
101
|
datumWidths: v,
|
|
102
102
|
maximum: c,
|
|
103
103
|
overColor: zr,
|
|
104
|
-
segmentWidth:
|
|
104
|
+
segmentWidth: b,
|
|
105
105
|
separatorColor: tr
|
|
106
106
|
}
|
|
107
107
|
) }),
|
|
@@ -109,15 +109,15 @@ const ye = {
|
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
},
|
|
112
|
+
}, Ft = ({ children: e }) => /* @__PURE__ */ l(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
className: "p-meter__bar",
|
|
116
116
|
"data-testid": Ee.bar,
|
|
117
|
-
style: { backgroundColor:
|
|
117
|
+
style: { backgroundColor: Rt },
|
|
118
118
|
children: e
|
|
119
119
|
}
|
|
120
|
-
),
|
|
120
|
+
), jt = ({
|
|
121
121
|
data: e,
|
|
122
122
|
datumWidths: r,
|
|
123
123
|
maximum: t,
|
|
@@ -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, b) => f > b ? c + v : c,
|
|
130
130
|
0
|
|
131
131
|
)}%`,
|
|
132
132
|
width: `${r[f]}%`
|
|
@@ -139,7 +139,7 @@ const ye = {
|
|
|
139
139
|
${tr} ${n}px
|
|
140
140
|
)`
|
|
141
141
|
});
|
|
142
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ K(Ae, { children: [
|
|
143
143
|
a() ? /* @__PURE__ */ l(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -165,7 +165,7 @@ const ye = {
|
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
] });
|
|
168
|
-
},
|
|
168
|
+
}, Nt = ({
|
|
169
169
|
className: e,
|
|
170
170
|
children: r
|
|
171
171
|
}) => /* @__PURE__ */ l(
|
|
@@ -176,16 +176,23 @@ const ye = {
|
|
|
176
176
|
children: r
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
|
|
180
|
-
const
|
|
179
|
+
It.Label = Nt;
|
|
180
|
+
const Do = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(ht, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e });
|
|
181
|
+
const kt = ({
|
|
182
|
+
percentComplete: e
|
|
183
|
+
}) => /* @__PURE__ */ K("small", { className: "progress-indicator", children: [
|
|
184
|
+
e,
|
|
185
|
+
"% ",
|
|
186
|
+
/* @__PURE__ */ l(_t, { className: "progress-indicator__spinner" })
|
|
187
|
+
] }), $t = ({ children: e }) => /* @__PURE__ */ l(Ae, { children: e }), Mt = ({
|
|
181
188
|
isCollapsed: e,
|
|
182
189
|
setIsCollapsed: r,
|
|
183
190
|
className: t
|
|
184
191
|
}) => /* @__PURE__ */ l(
|
|
185
|
-
|
|
192
|
+
Et,
|
|
186
193
|
{
|
|
187
194
|
className: "p-side-navigation__tooltip-wrapper",
|
|
188
|
-
message: /* @__PURE__ */
|
|
195
|
+
message: /* @__PURE__ */ K(Ae, { children: [
|
|
189
196
|
e ? "expand" : "collapse",
|
|
190
197
|
"( ",
|
|
191
198
|
/* @__PURE__ */ l("code", { children: "[" }),
|
|
@@ -209,7 +216,7 @@ const xo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href:
|
|
|
209
216
|
}
|
|
210
217
|
)
|
|
211
218
|
}
|
|
212
|
-
),
|
|
219
|
+
), Lt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__content", children: /* @__PURE__ */ l("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Bt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__controls u-no-margin--top", children: e }), zt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ l("div", { className: "p-panel is-dark", children: e }) }), Wt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__footer", children: e }), Yt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__header", children: e }), qt = ({ light: e = !0, name: r }) => /* @__PURE__ */ l(we, { className: "p-side-navigation__icon", light: e, name: r }), Ut = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ l("li", { className: B("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Kt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ l("span", { className: B("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Ht = ({
|
|
213
220
|
as: e,
|
|
214
221
|
...r
|
|
215
222
|
}) => /* @__PURE__ */ l(
|
|
@@ -218,12 +225,12 @@ const xo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href:
|
|
|
218
225
|
className: B("p-side-navigation__link", r.className),
|
|
219
226
|
...r
|
|
220
227
|
}
|
|
221
|
-
),
|
|
228
|
+
), Gt = ({ children: e, className: r }) => /* @__PURE__ */ l("ul", { className: B("p-side-navigation__list", r), children: e }), Vt = ({
|
|
222
229
|
as: e,
|
|
223
230
|
children: r,
|
|
224
231
|
className: t,
|
|
225
232
|
...n
|
|
226
|
-
}) => /* @__PURE__ */ l(e || "a", { className: B("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }),
|
|
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 }) => pt(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Zt = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ l(
|
|
227
234
|
"div",
|
|
228
235
|
{
|
|
229
236
|
className: B("p-panel__logo-name is-fading-when-collapsed", {
|
|
@@ -231,7 +238,7 @@ const xo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href:
|
|
|
231
238
|
}),
|
|
232
239
|
children: e
|
|
233
240
|
}
|
|
234
|
-
),
|
|
241
|
+
), Xt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-navigation__logo-tag", children: e }), Qt = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-panel__logo-text", children: e }), en = ({
|
|
235
242
|
children: e,
|
|
236
243
|
className: r,
|
|
237
244
|
onClick: t
|
|
@@ -248,28 +255,28 @@ const xo = ({ children: e, to: r, ...t }) => /* @__PURE__ */ l(bt, { ...t, href:
|
|
|
248
255
|
},
|
|
249
256
|
children: e
|
|
250
257
|
}
|
|
251
|
-
),
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
const lr =
|
|
258
|
+
), rn = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-side-navigation__text", children: e });
|
|
259
|
+
const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ l("header", { "aria-label": "main navigation", className: B("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), tn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ l("div", { className: B("p-panel is-dark", r), children: e }) });
|
|
260
|
+
H.Header = Yt;
|
|
261
|
+
H.Banner = $t;
|
|
262
|
+
H.Drawer = zt;
|
|
263
|
+
H.Controls = Bt;
|
|
264
|
+
H.CollapseToggle = Mt;
|
|
265
|
+
H.Content = Lt;
|
|
266
|
+
H.Footer = Wt;
|
|
267
|
+
H.List = Gt;
|
|
268
|
+
H.Item = Ut;
|
|
269
|
+
H.Link = Ht;
|
|
270
|
+
H.Text = rn;
|
|
271
|
+
H.Icon = qt;
|
|
272
|
+
H.Label = Kt;
|
|
273
|
+
H.Logo = Vt;
|
|
274
|
+
H.LogoTag = Xt;
|
|
275
|
+
H.LogoIcon = Jt;
|
|
276
|
+
H.LogoName = Zt;
|
|
277
|
+
H.LogoText = Qt;
|
|
278
|
+
tn.MenuButton = en;
|
|
279
|
+
const lr = dt(null), Wr = ({ children: e }) => {
|
|
273
280
|
const r = ke();
|
|
274
281
|
return /* @__PURE__ */ l(lr.Provider, { value: r, children: /* @__PURE__ */ l(
|
|
275
282
|
"div",
|
|
@@ -281,20 +288,20 @@ const lr = pt(null), Wr = ({ children: e }) => {
|
|
|
281
288
|
children: e
|
|
282
289
|
}
|
|
283
290
|
) });
|
|
284
|
-
},
|
|
291
|
+
}, nn = ({ children: e }) => {
|
|
285
292
|
const r = Mr(lr);
|
|
286
293
|
return /* @__PURE__ */ l("label", { id: `${r}_label`, children: e });
|
|
287
|
-
},
|
|
294
|
+
}, on = ({ children: e }) => {
|
|
288
295
|
const r = Mr(lr);
|
|
289
296
|
return /* @__PURE__ */ l("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
|
|
290
297
|
};
|
|
291
|
-
Wr.Label =
|
|
292
|
-
Wr.Description =
|
|
293
|
-
const ur = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-form-section", children: e }),
|
|
294
|
-
ur.Title =
|
|
295
|
-
ur.Description =
|
|
296
|
-
ur.Content =
|
|
297
|
-
function
|
|
298
|
+
Wr.Label = nn;
|
|
299
|
+
Wr.Description = on;
|
|
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
|
+
ur.Title = an;
|
|
302
|
+
ur.Description = sn;
|
|
303
|
+
ur.Content = cn;
|
|
304
|
+
function ln(e) {
|
|
298
305
|
const [r, t] = oe.useState(null), n = oe.useRef(null), a = oe.useCallback(() => {
|
|
299
306
|
if (e.current) {
|
|
300
307
|
const o = e.current.getBoundingClientRect();
|
|
@@ -311,8 +318,8 @@ function an(e) {
|
|
|
311
318
|
}, [e, a]), r;
|
|
312
319
|
}
|
|
313
320
|
const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
314
|
-
}]),
|
|
315
|
-
const r = oe.useRef(null), t =
|
|
321
|
+
}]), Ur = ({ children: e }) => {
|
|
322
|
+
const r = oe.useRef(null), t = ln(r), [n, a] = oe.useState(!1);
|
|
316
323
|
return /* @__PURE__ */ l(
|
|
317
324
|
"header",
|
|
318
325
|
{
|
|
@@ -323,7 +330,7 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
323
330
|
children: /* @__PURE__ */ l(Yr.Provider, { value: t, children: /* @__PURE__ */ l(qr.Provider, { value: [n, a], children: e }) })
|
|
324
331
|
}
|
|
325
332
|
);
|
|
326
|
-
},
|
|
333
|
+
}, un = ({
|
|
327
334
|
as: e,
|
|
328
335
|
children: r,
|
|
329
336
|
className: t,
|
|
@@ -336,11 +343,11 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
336
343
|
...n,
|
|
337
344
|
children: r
|
|
338
345
|
}
|
|
339
|
-
),
|
|
346
|
+
), fn = ({ children: e }) => {
|
|
340
347
|
const r = oe.useContext(Yr), [t, n] = oe.useContext(qr), a = oe.useRef(null);
|
|
341
348
|
return oe.useEffect(() => {
|
|
342
349
|
!a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
|
|
343
|
-
}, [n, r, a]), /* @__PURE__ */
|
|
350
|
+
}, [n, r, a]), /* @__PURE__ */ K(Ae, { children: [
|
|
344
351
|
/* @__PURE__ */ l(
|
|
345
352
|
"div",
|
|
346
353
|
{
|
|
@@ -362,8 +369,8 @@ const Yr = oe.createContext(null), qr = oe.createContext([!1, () => {
|
|
|
362
369
|
)
|
|
363
370
|
] });
|
|
364
371
|
};
|
|
365
|
-
|
|
366
|
-
|
|
372
|
+
Ur.Title = un;
|
|
373
|
+
Ur.Controls = fn;
|
|
367
374
|
const Be = ({
|
|
368
375
|
children: e,
|
|
369
376
|
className: r,
|
|
@@ -372,20 +379,20 @@ const Be = ({
|
|
|
372
379
|
...a
|
|
373
380
|
}) => {
|
|
374
381
|
const o = t || "section", s = B("content-section", r);
|
|
375
|
-
return /* @__PURE__ */ l(o, { ...a, className: s, children: /* @__PURE__ */ l(
|
|
376
|
-
},
|
|
382
|
+
return /* @__PURE__ */ l(o, { ...a, className: s, children: /* @__PURE__ */ l(wt, { children: /* @__PURE__ */ l(St, { size: n === "narrow" ? 6 : 12, children: e }) }) });
|
|
383
|
+
}, pn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ l(
|
|
377
384
|
t || "h1",
|
|
378
385
|
{
|
|
379
386
|
...n,
|
|
380
387
|
className: B("content-section__title p-heading--4", r),
|
|
381
388
|
children: e
|
|
382
389
|
}
|
|
383
|
-
),
|
|
384
|
-
Be.Title =
|
|
385
|
-
Be.Header =
|
|
386
|
-
Be.Content =
|
|
387
|
-
Be.Footer =
|
|
388
|
-
const
|
|
390
|
+
), dn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { className: B("content-section__header", r), children: e }), mn = ({ children: e, className: r }) => /* @__PURE__ */ l("div", { className: B("content-section__body", r), children: e }), vn = ({ children: e, className: r }) => /* @__PURE__ */ l("footer", { className: B("content-section__footer", r), children: e });
|
|
391
|
+
Be.Title = pn;
|
|
392
|
+
Be.Header = dn;
|
|
393
|
+
Be.Content = mn;
|
|
394
|
+
Be.Footer = vn;
|
|
395
|
+
const Kr = ({
|
|
389
396
|
children: e,
|
|
390
397
|
className: r,
|
|
391
398
|
isVisible: t
|
|
@@ -397,11 +404,11 @@ const Ur = ({
|
|
|
397
404
|
style: { visibility: t ? "visible" : "hidden" },
|
|
398
405
|
children: e
|
|
399
406
|
}
|
|
400
|
-
),
|
|
407
|
+
), Ao = ({
|
|
401
408
|
children: e,
|
|
402
409
|
...r
|
|
403
|
-
}) => /* @__PURE__ */ l(
|
|
404
|
-
const
|
|
410
|
+
}) => /* @__PURE__ */ l(Kr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ l("div", { className: "p-form__nested-group", ...r, children: e }) });
|
|
411
|
+
const gn = ({
|
|
405
412
|
className: e,
|
|
406
413
|
currentPage: r,
|
|
407
414
|
error: t,
|
|
@@ -417,7 +424,7 @@ const dn = ({
|
|
|
417
424
|
{
|
|
418
425
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
419
426
|
className: B("p-pagination", e),
|
|
420
|
-
children: /* @__PURE__ */
|
|
427
|
+
children: /* @__PURE__ */ K("span", { className: "p-pagination--items", children: [
|
|
421
428
|
/* @__PURE__ */ l(
|
|
422
429
|
pe,
|
|
423
430
|
{
|
|
@@ -432,7 +439,7 @@ const dn = ({
|
|
|
432
439
|
/* @__PURE__ */ l("strong", { children: "Page " }),
|
|
433
440
|
" ",
|
|
434
441
|
/* @__PURE__ */ l(
|
|
435
|
-
|
|
442
|
+
Ct,
|
|
436
443
|
{
|
|
437
444
|
"aria-label": "page number",
|
|
438
445
|
className: "p-pagination__input",
|
|
@@ -447,7 +454,7 @@ const dn = ({
|
|
|
447
454
|
}
|
|
448
455
|
),
|
|
449
456
|
" ",
|
|
450
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ K("strong", { className: "u-no-wrap", children: [
|
|
451
458
|
" of ",
|
|
452
459
|
f
|
|
453
460
|
] }),
|
|
@@ -464,7 +471,7 @@ const dn = ({
|
|
|
464
471
|
)
|
|
465
472
|
] })
|
|
466
473
|
}
|
|
467
|
-
),
|
|
474
|
+
), Po = ({
|
|
468
475
|
currentPage: e,
|
|
469
476
|
disabled: r,
|
|
470
477
|
paginate: t,
|
|
@@ -472,7 +479,7 @@ const dn = ({
|
|
|
472
479
|
}) => {
|
|
473
480
|
const [a, o] = le(e), [s, i] = le("");
|
|
474
481
|
return /* @__PURE__ */ l(
|
|
475
|
-
|
|
482
|
+
gn,
|
|
476
483
|
{
|
|
477
484
|
currentPage: a,
|
|
478
485
|
error: s,
|
|
@@ -481,8 +488,8 @@ const dn = ({
|
|
|
481
488
|
o(e), i("");
|
|
482
489
|
},
|
|
483
490
|
onInputChange: (h) => {
|
|
484
|
-
const { value:
|
|
485
|
-
|
|
491
|
+
const { value: y, valueAsNumber: _ } = h.target;
|
|
492
|
+
y ? (o(_), _ > n || _ < 1 ? i(`${_} is not a valid page number.`) : (i(""), t(_))) : i("Enter a page number.");
|
|
486
493
|
},
|
|
487
494
|
onNextClick: () => {
|
|
488
495
|
o((h) => Number(h) + 1), t(Number(e) + 1);
|
|
@@ -494,7 +501,7 @@ const dn = ({
|
|
|
494
501
|
}
|
|
495
502
|
);
|
|
496
503
|
};
|
|
497
|
-
const
|
|
504
|
+
const Ro = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className: "stepper", children: r.map((t, n) => {
|
|
498
505
|
const a = n === e, o = n < e;
|
|
499
506
|
return /* @__PURE__ */ l("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ l(
|
|
500
507
|
"p",
|
|
@@ -518,11 +525,11 @@ var nr = { exports: {} }, je = { exports: {} }, F = {};
|
|
|
518
525
|
* LICENSE file in the root directory of this source tree.
|
|
519
526
|
*/
|
|
520
527
|
var yr;
|
|
521
|
-
function
|
|
528
|
+
function yn() {
|
|
522
529
|
if (yr)
|
|
523
530
|
return F;
|
|
524
531
|
yr = 1;
|
|
525
|
-
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,
|
|
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, b = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, C = 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;
|
|
526
533
|
function A(p) {
|
|
527
534
|
if (typeof p == "object" && p !== null) {
|
|
528
535
|
var X = p.$$typeof;
|
|
@@ -534,14 +541,14 @@ function mn() {
|
|
|
534
541
|
case n:
|
|
535
542
|
case o:
|
|
536
543
|
case a:
|
|
537
|
-
case
|
|
544
|
+
case b:
|
|
538
545
|
return p;
|
|
539
546
|
default:
|
|
540
547
|
switch (p = p && p.$$typeof, p) {
|
|
541
548
|
case i:
|
|
542
549
|
case v:
|
|
543
550
|
case _:
|
|
544
|
-
case
|
|
551
|
+
case y:
|
|
545
552
|
case s:
|
|
546
553
|
return p;
|
|
547
554
|
default:
|
|
@@ -556,7 +563,7 @@ function mn() {
|
|
|
556
563
|
function k(p) {
|
|
557
564
|
return A(p) === c;
|
|
558
565
|
}
|
|
559
|
-
return F.AsyncMode = f, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = v, F.Fragment = n, F.Lazy = _, F.Memo =
|
|
566
|
+
return F.AsyncMode = f, F.ConcurrentMode = c, F.ContextConsumer = i, F.ContextProvider = s, F.Element = r, F.ForwardRef = v, F.Fragment = n, F.Lazy = _, F.Memo = y, F.Portal = t, F.Profiler = o, F.StrictMode = a, F.Suspense = b, F.isAsyncMode = function(p) {
|
|
560
567
|
return k(p) || A(p) === f;
|
|
561
568
|
}, F.isConcurrentMode = k, F.isContextConsumer = function(p) {
|
|
562
569
|
return A(p) === i;
|
|
@@ -571,7 +578,7 @@ function mn() {
|
|
|
571
578
|
}, F.isLazy = function(p) {
|
|
572
579
|
return A(p) === _;
|
|
573
580
|
}, F.isMemo = function(p) {
|
|
574
|
-
return A(p) ===
|
|
581
|
+
return A(p) === y;
|
|
575
582
|
}, F.isPortal = function(p) {
|
|
576
583
|
return A(p) === t;
|
|
577
584
|
}, F.isProfiler = function(p) {
|
|
@@ -579,9 +586,9 @@ function mn() {
|
|
|
579
586
|
}, F.isStrictMode = function(p) {
|
|
580
587
|
return A(p) === a;
|
|
581
588
|
}, F.isSuspense = function(p) {
|
|
582
|
-
return A(p) ===
|
|
589
|
+
return A(p) === b;
|
|
583
590
|
}, F.isValidElementType = function(p) {
|
|
584
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p ===
|
|
591
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === b || p === h || typeof p == "object" && p !== null && (p.$$typeof === _ || p.$$typeof === y || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === L || p.$$typeof === N || p.$$typeof === U || p.$$typeof === C);
|
|
585
592
|
}, F.typeOf = A, F;
|
|
586
593
|
}
|
|
587
594
|
var j = {};
|
|
@@ -594,12 +601,12 @@ var j = {};
|
|
|
594
601
|
* LICENSE file in the root directory of this source tree.
|
|
595
602
|
*/
|
|
596
603
|
var br;
|
|
597
|
-
function
|
|
604
|
+
function bn() {
|
|
598
605
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
599
|
-
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, b = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, C = 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;
|
|
600
607
|
function A(d) {
|
|
601
608
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
602
|
-
d === n || d === c || d === o || d === a || d ===
|
|
609
|
+
d === n || d === c || d === o || d === a || d === b || d === h || typeof d == "object" && d !== null && (d.$$typeof === _ || d.$$typeof === y || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === L || d.$$typeof === N || d.$$typeof === U || d.$$typeof === C);
|
|
603
610
|
}
|
|
604
611
|
function k(d) {
|
|
605
612
|
if (typeof d == "object" && d !== null) {
|
|
@@ -613,17 +620,17 @@ function vn() {
|
|
|
613
620
|
case n:
|
|
614
621
|
case o:
|
|
615
622
|
case a:
|
|
616
|
-
case
|
|
623
|
+
case b:
|
|
617
624
|
return ve;
|
|
618
625
|
default:
|
|
619
|
-
var
|
|
620
|
-
switch (
|
|
626
|
+
var Te = ve && ve.$$typeof;
|
|
627
|
+
switch (Te) {
|
|
621
628
|
case i:
|
|
622
629
|
case v:
|
|
623
630
|
case _:
|
|
624
|
-
case
|
|
631
|
+
case y:
|
|
625
632
|
case s:
|
|
626
|
-
return
|
|
633
|
+
return Te;
|
|
627
634
|
default:
|
|
628
635
|
return re;
|
|
629
636
|
}
|
|
@@ -633,8 +640,8 @@ function vn() {
|
|
|
633
640
|
}
|
|
634
641
|
}
|
|
635
642
|
}
|
|
636
|
-
var p = f, X = c, $ = i, J = s, ee = r, ce = v, de = n, me = _, ue =
|
|
637
|
-
function
|
|
643
|
+
var p = f, X = c, $ = i, J = s, ee = r, ce = v, de = n, me = _, ue = y, W = t, Z = o, ne = a, ae = b, fe = !1;
|
|
644
|
+
function G(d) {
|
|
638
645
|
return fe || (fe = !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;
|
|
639
646
|
}
|
|
640
647
|
function u(d) {
|
|
@@ -643,7 +650,7 @@ function vn() {
|
|
|
643
650
|
function g(d) {
|
|
644
651
|
return k(d) === i;
|
|
645
652
|
}
|
|
646
|
-
function
|
|
653
|
+
function T(d) {
|
|
647
654
|
return k(d) === s;
|
|
648
655
|
}
|
|
649
656
|
function x(d) {
|
|
@@ -659,7 +666,7 @@ function vn() {
|
|
|
659
666
|
return k(d) === _;
|
|
660
667
|
}
|
|
661
668
|
function O(d) {
|
|
662
|
-
return k(d) ===
|
|
669
|
+
return k(d) === y;
|
|
663
670
|
}
|
|
664
671
|
function R(d) {
|
|
665
672
|
return k(d) === t;
|
|
@@ -671,14 +678,14 @@ function vn() {
|
|
|
671
678
|
return k(d) === a;
|
|
672
679
|
}
|
|
673
680
|
function q(d) {
|
|
674
|
-
return k(d) ===
|
|
681
|
+
return k(d) === b;
|
|
675
682
|
}
|
|
676
|
-
j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment = de, j.Lazy = me, j.Memo = ue, j.Portal = W, j.Profiler = Z, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode =
|
|
683
|
+
j.AsyncMode = p, j.ConcurrentMode = X, j.ContextConsumer = $, j.ContextProvider = J, j.Element = ee, j.ForwardRef = ce, j.Fragment = de, j.Lazy = me, j.Memo = ue, j.Portal = W, j.Profiler = Z, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = g, j.isContextProvider = T, j.isElement = x, j.isForwardRef = w, j.isFragment = P, j.isLazy = S, j.isMemo = O, j.isPortal = R, j.isProfiler = I, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
|
|
677
684
|
}()), j;
|
|
678
685
|
}
|
|
679
686
|
var hr;
|
|
680
687
|
function Hr() {
|
|
681
|
-
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports =
|
|
688
|
+
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = yn() : je.exports = bn()), je.exports;
|
|
682
689
|
}
|
|
683
690
|
/*
|
|
684
691
|
object-assign
|
|
@@ -686,7 +693,7 @@ object-assign
|
|
|
686
693
|
@license MIT
|
|
687
694
|
*/
|
|
688
695
|
var Ve, _r;
|
|
689
|
-
function
|
|
696
|
+
function hn() {
|
|
690
697
|
if (_r)
|
|
691
698
|
return Ve;
|
|
692
699
|
_r = 1;
|
|
@@ -721,8 +728,8 @@ function gn() {
|
|
|
721
728
|
return Ve = a() ? Object.assign : function(o, s) {
|
|
722
729
|
for (var i, f = n(o), c, v = 1; v < arguments.length; v++) {
|
|
723
730
|
i = Object(arguments[v]);
|
|
724
|
-
for (var
|
|
725
|
-
r.call(i,
|
|
731
|
+
for (var b in i)
|
|
732
|
+
r.call(i, b) && (f[b] = i[b]);
|
|
726
733
|
if (e) {
|
|
727
734
|
c = e(i);
|
|
728
735
|
for (var h = 0; h < c.length; h++)
|
|
@@ -745,7 +752,7 @@ function Gr() {
|
|
|
745
752
|
return wr || (wr = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
|
|
746
753
|
}
|
|
747
754
|
var Xe, Sr;
|
|
748
|
-
function
|
|
755
|
+
function _n() {
|
|
749
756
|
if (Sr)
|
|
750
757
|
return Xe;
|
|
751
758
|
Sr = 1;
|
|
@@ -766,7 +773,7 @@ function yn() {
|
|
|
766
773
|
if (process.env.NODE_ENV !== "production") {
|
|
767
774
|
for (var v in o)
|
|
768
775
|
if (n(o, v)) {
|
|
769
|
-
var
|
|
776
|
+
var b;
|
|
770
777
|
try {
|
|
771
778
|
if (typeof o[v] != "function") {
|
|
772
779
|
var h = Error(
|
|
@@ -774,17 +781,17 @@ function yn() {
|
|
|
774
781
|
);
|
|
775
782
|
throw h.name = "Invariant Violation", h;
|
|
776
783
|
}
|
|
777
|
-
|
|
784
|
+
b = o[v](s, v, f, i, null, r);
|
|
778
785
|
} catch (_) {
|
|
779
|
-
|
|
786
|
+
b = _;
|
|
780
787
|
}
|
|
781
|
-
if (
|
|
782
|
-
(f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
783
|
-
),
|
|
784
|
-
t[
|
|
785
|
-
var
|
|
788
|
+
if (b && !(b 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 b + ". 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
|
+
), b instanceof Error && !(b.message in t)) {
|
|
791
|
+
t[b.message] = !0;
|
|
792
|
+
var y = c ? c() : "";
|
|
786
793
|
e(
|
|
787
|
-
"Failed " + i + " type: " +
|
|
794
|
+
"Failed " + i + " type: " + b.message + (y ?? "")
|
|
788
795
|
);
|
|
789
796
|
}
|
|
790
797
|
}
|
|
@@ -794,12 +801,12 @@ function yn() {
|
|
|
794
801
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
795
802
|
}, Xe = a, Xe;
|
|
796
803
|
}
|
|
797
|
-
var Qe,
|
|
798
|
-
function
|
|
799
|
-
if (
|
|
804
|
+
var Qe, Cr;
|
|
805
|
+
function En() {
|
|
806
|
+
if (Cr)
|
|
800
807
|
return Qe;
|
|
801
|
-
|
|
802
|
-
var e = Hr(), r =
|
|
808
|
+
Cr = 1;
|
|
809
|
+
var e = Hr(), r = hn(), t = fr(), n = Gr(), a = _n(), o = function() {
|
|
803
810
|
};
|
|
804
811
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
805
812
|
var f = "Warning: " + i;
|
|
@@ -814,12 +821,12 @@ function bn() {
|
|
|
814
821
|
}
|
|
815
822
|
return Qe = function(i, f) {
|
|
816
823
|
var c = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
817
|
-
function
|
|
824
|
+
function b(u) {
|
|
818
825
|
var g = u && (c && u[c] || u[v]);
|
|
819
826
|
if (typeof g == "function")
|
|
820
827
|
return g;
|
|
821
828
|
}
|
|
822
|
-
var h = "<<anonymous>>",
|
|
829
|
+
var h = "<<anonymous>>", y = {
|
|
823
830
|
array: N("array"),
|
|
824
831
|
bigint: N("bigint"),
|
|
825
832
|
bool: N("boolean"),
|
|
@@ -828,7 +835,7 @@ function bn() {
|
|
|
828
835
|
object: N("object"),
|
|
829
836
|
string: N("string"),
|
|
830
837
|
symbol: N("symbol"),
|
|
831
|
-
any:
|
|
838
|
+
any: U(),
|
|
832
839
|
arrayOf: A,
|
|
833
840
|
element: k(),
|
|
834
841
|
elementType: p(),
|
|
@@ -843,13 +850,13 @@ function bn() {
|
|
|
843
850
|
function _(u, g) {
|
|
844
851
|
return u === g ? u !== 0 || 1 / u === 1 / g : u !== u && g !== g;
|
|
845
852
|
}
|
|
846
|
-
function
|
|
853
|
+
function C(u, g) {
|
|
847
854
|
this.message = u, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
|
|
848
855
|
}
|
|
849
|
-
|
|
856
|
+
C.prototype = Error.prototype;
|
|
850
857
|
function L(u) {
|
|
851
858
|
if (process.env.NODE_ENV !== "production")
|
|
852
|
-
var g = {},
|
|
859
|
+
var g = {}, T = 0;
|
|
853
860
|
function x(P, S, O, R, I, D, q) {
|
|
854
861
|
if (R = R || h, D = D || O, q !== t) {
|
|
855
862
|
if (f) {
|
|
@@ -860,22 +867,22 @@ function bn() {
|
|
|
860
867
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
861
868
|
var re = R + ":" + O;
|
|
862
869
|
!g[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
863
|
-
|
|
870
|
+
T < 3 && (o(
|
|
864
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."
|
|
865
|
-
), g[re] = !0,
|
|
872
|
+
), g[re] = !0, T++);
|
|
866
873
|
}
|
|
867
874
|
}
|
|
868
|
-
return S[O] == null ? P ? S[O] === null ? new
|
|
875
|
+
return S[O] == null ? P ? S[O] === null ? new C("The " + I + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new C("The " + I + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(S, O, R, I, D);
|
|
869
876
|
}
|
|
870
877
|
var w = x.bind(null, !1);
|
|
871
878
|
return w.isRequired = x.bind(null, !0), w;
|
|
872
879
|
}
|
|
873
880
|
function N(u) {
|
|
874
|
-
function g(
|
|
875
|
-
var R =
|
|
881
|
+
function g(T, x, w, P, S, O) {
|
|
882
|
+
var R = T[x], I = ne(R);
|
|
876
883
|
if (I !== u) {
|
|
877
884
|
var D = ae(R);
|
|
878
|
-
return new
|
|
885
|
+
return new C(
|
|
879
886
|
"Invalid " + P + " `" + S + "` of type " + ("`" + D + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
|
|
880
887
|
{ expectedType: u }
|
|
881
888
|
);
|
|
@@ -884,17 +891,17 @@ function bn() {
|
|
|
884
891
|
}
|
|
885
892
|
return L(g);
|
|
886
893
|
}
|
|
887
|
-
function
|
|
894
|
+
function U() {
|
|
888
895
|
return L(s);
|
|
889
896
|
}
|
|
890
897
|
function A(u) {
|
|
891
|
-
function g(
|
|
898
|
+
function g(T, x, w, P, S) {
|
|
892
899
|
if (typeof u != "function")
|
|
893
|
-
return new
|
|
894
|
-
var O =
|
|
900
|
+
return new C("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
|
|
901
|
+
var O = T[x];
|
|
895
902
|
if (!Array.isArray(O)) {
|
|
896
903
|
var R = ne(O);
|
|
897
|
-
return new
|
|
904
|
+
return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an array."));
|
|
898
905
|
}
|
|
899
906
|
for (var I = 0; I < O.length; I++) {
|
|
900
907
|
var D = u(O, I, w, P, S + "[" + I + "]", t);
|
|
@@ -906,32 +913,32 @@ function bn() {
|
|
|
906
913
|
return L(g);
|
|
907
914
|
}
|
|
908
915
|
function k() {
|
|
909
|
-
function u(g,
|
|
910
|
-
var S = g[
|
|
916
|
+
function u(g, T, x, w, P) {
|
|
917
|
+
var S = g[T];
|
|
911
918
|
if (!i(S)) {
|
|
912
919
|
var O = ne(S);
|
|
913
|
-
return new
|
|
920
|
+
return new C("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement."));
|
|
914
921
|
}
|
|
915
922
|
return null;
|
|
916
923
|
}
|
|
917
924
|
return L(u);
|
|
918
925
|
}
|
|
919
926
|
function p() {
|
|
920
|
-
function u(g,
|
|
921
|
-
var S = g[
|
|
927
|
+
function u(g, T, x, w, P) {
|
|
928
|
+
var S = g[T];
|
|
922
929
|
if (!e.isValidElementType(S)) {
|
|
923
930
|
var O = ne(S);
|
|
924
|
-
return new
|
|
931
|
+
return new C("Invalid " + w + " `" + P + "` of type " + ("`" + O + "` supplied to `" + x + "`, expected a single ReactElement type."));
|
|
925
932
|
}
|
|
926
933
|
return null;
|
|
927
934
|
}
|
|
928
935
|
return L(u);
|
|
929
936
|
}
|
|
930
937
|
function X(u) {
|
|
931
|
-
function g(
|
|
932
|
-
if (!(
|
|
933
|
-
var O = u.name || h, R =
|
|
934
|
-
return new
|
|
938
|
+
function g(T, x, w, P, S) {
|
|
939
|
+
if (!(T[x] instanceof u)) {
|
|
940
|
+
var O = u.name || h, R = G(T[x]);
|
|
941
|
+
return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
|
|
935
942
|
}
|
|
936
943
|
return null;
|
|
937
944
|
}
|
|
@@ -942,25 +949,25 @@ function bn() {
|
|
|
942
949
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
943
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])."
|
|
944
951
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
945
|
-
function g(
|
|
946
|
-
for (var O =
|
|
952
|
+
function g(T, x, w, P, S) {
|
|
953
|
+
for (var O = T[x], R = 0; R < u.length; R++)
|
|
947
954
|
if (_(O, u[R]))
|
|
948
955
|
return null;
|
|
949
956
|
var I = JSON.stringify(u, function(q, d) {
|
|
950
957
|
var re = ae(d);
|
|
951
958
|
return re === "symbol" ? String(d) : d;
|
|
952
959
|
});
|
|
953
|
-
return new
|
|
960
|
+
return new C("Invalid " + P + " `" + S + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + I + "."));
|
|
954
961
|
}
|
|
955
962
|
return L(g);
|
|
956
963
|
}
|
|
957
964
|
function J(u) {
|
|
958
|
-
function g(
|
|
965
|
+
function g(T, x, w, P, S) {
|
|
959
966
|
if (typeof u != "function")
|
|
960
|
-
return new
|
|
961
|
-
var O =
|
|
967
|
+
return new C("Property `" + S + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
|
|
968
|
+
var O = T[x], R = ne(O);
|
|
962
969
|
if (R !== "object")
|
|
963
|
-
return new
|
|
970
|
+
return new C("Invalid " + P + " `" + S + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected an object."));
|
|
964
971
|
for (var I in O)
|
|
965
972
|
if (n(O, I)) {
|
|
966
973
|
var D = u(O, I, w, P, S + "." + I, t);
|
|
@@ -975,10 +982,10 @@ function bn() {
|
|
|
975
982
|
if (!Array.isArray(u))
|
|
976
983
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
977
984
|
for (var g = 0; g < u.length; g++) {
|
|
978
|
-
var
|
|
979
|
-
if (typeof
|
|
985
|
+
var T = u[g];
|
|
986
|
+
if (typeof T != "function")
|
|
980
987
|
return o(
|
|
981
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(
|
|
988
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(T) + " at index " + g + "."
|
|
982
989
|
), s;
|
|
983
990
|
}
|
|
984
991
|
function x(w, P, S, O, R) {
|
|
@@ -989,26 +996,26 @@ function bn() {
|
|
|
989
996
|
d.data && n(d.data, "expectedType") && I.push(d.data.expectedType);
|
|
990
997
|
}
|
|
991
998
|
var re = I.length > 0 ? ", expected one of type [" + I.join(", ") + "]" : "";
|
|
992
|
-
return new
|
|
999
|
+
return new C("Invalid " + O + " `" + R + "` supplied to " + ("`" + S + "`" + re + "."));
|
|
993
1000
|
}
|
|
994
1001
|
return L(x);
|
|
995
1002
|
}
|
|
996
1003
|
function ce() {
|
|
997
|
-
function u(g,
|
|
998
|
-
return W(g[
|
|
1004
|
+
function u(g, T, x, w, P) {
|
|
1005
|
+
return W(g[T]) ? null : new C("Invalid " + w + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
999
1006
|
}
|
|
1000
1007
|
return L(u);
|
|
1001
1008
|
}
|
|
1002
|
-
function de(u, g,
|
|
1003
|
-
return new
|
|
1004
|
-
(u || "React class") + ": " + g + " type `" +
|
|
1009
|
+
function de(u, g, T, x, w) {
|
|
1010
|
+
return new C(
|
|
1011
|
+
(u || "React class") + ": " + g + " type `" + T + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
|
|
1005
1012
|
);
|
|
1006
1013
|
}
|
|
1007
1014
|
function me(u) {
|
|
1008
|
-
function g(
|
|
1009
|
-
var O =
|
|
1015
|
+
function g(T, x, w, P, S) {
|
|
1016
|
+
var O = T[x], R = ne(O);
|
|
1010
1017
|
if (R !== "object")
|
|
1011
|
-
return new
|
|
1018
|
+
return new C("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
1012
1019
|
for (var I in u) {
|
|
1013
1020
|
var D = u[I];
|
|
1014
1021
|
if (typeof D != "function")
|
|
@@ -1022,18 +1029,18 @@ function bn() {
|
|
|
1022
1029
|
return L(g);
|
|
1023
1030
|
}
|
|
1024
1031
|
function ue(u) {
|
|
1025
|
-
function g(
|
|
1026
|
-
var O =
|
|
1032
|
+
function g(T, x, w, P, S) {
|
|
1033
|
+
var O = T[x], R = ne(O);
|
|
1027
1034
|
if (R !== "object")
|
|
1028
|
-
return new
|
|
1029
|
-
var I = r({},
|
|
1035
|
+
return new C("Invalid " + P + " `" + S + "` of type `" + R + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
1036
|
+
var I = r({}, T[x], u);
|
|
1030
1037
|
for (var D in I) {
|
|
1031
1038
|
var q = u[D];
|
|
1032
1039
|
if (n(u, D) && typeof q != "function")
|
|
1033
1040
|
return de(w, P, S, D, ae(q));
|
|
1034
1041
|
if (!q)
|
|
1035
|
-
return new
|
|
1036
|
-
"Invalid " + P + " `" + S + "` key `" + D + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(
|
|
1042
|
+
return new C(
|
|
1043
|
+
"Invalid " + P + " `" + S + "` key `" + D + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(T[x], null, " ") + `
|
|
1037
1044
|
Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
1038
1045
|
);
|
|
1039
1046
|
var d = q(O, D, w, P, S + "." + D, t);
|
|
@@ -1057,15 +1064,15 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1057
1064
|
return u.every(W);
|
|
1058
1065
|
if (u === null || i(u))
|
|
1059
1066
|
return !0;
|
|
1060
|
-
var g =
|
|
1067
|
+
var g = b(u);
|
|
1061
1068
|
if (g) {
|
|
1062
|
-
var
|
|
1069
|
+
var T = g.call(u), x;
|
|
1063
1070
|
if (g !== u.entries) {
|
|
1064
|
-
for (; !(x =
|
|
1071
|
+
for (; !(x = T.next()).done; )
|
|
1065
1072
|
if (!W(x.value))
|
|
1066
1073
|
return !1;
|
|
1067
1074
|
} else
|
|
1068
|
-
for (; !(x =
|
|
1075
|
+
for (; !(x = T.next()).done; ) {
|
|
1069
1076
|
var w = x.value;
|
|
1070
1077
|
if (w && !W(w[1]))
|
|
1071
1078
|
return !1;
|
|
@@ -1110,25 +1117,25 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1110
1117
|
return g;
|
|
1111
1118
|
}
|
|
1112
1119
|
}
|
|
1113
|
-
function
|
|
1120
|
+
function G(u) {
|
|
1114
1121
|
return !u.constructor || !u.constructor.name ? h : u.constructor.name;
|
|
1115
1122
|
}
|
|
1116
|
-
return
|
|
1123
|
+
return y.checkPropTypes = a, y.resetWarningCache = a.resetWarningCache, y.PropTypes = y, y;
|
|
1117
1124
|
}, Qe;
|
|
1118
1125
|
}
|
|
1119
|
-
var er,
|
|
1120
|
-
function
|
|
1121
|
-
if (
|
|
1126
|
+
var er, Tr;
|
|
1127
|
+
function wn() {
|
|
1128
|
+
if (Tr)
|
|
1122
1129
|
return er;
|
|
1123
|
-
|
|
1130
|
+
Tr = 1;
|
|
1124
1131
|
var e = fr();
|
|
1125
1132
|
function r() {
|
|
1126
1133
|
}
|
|
1127
1134
|
function t() {
|
|
1128
1135
|
}
|
|
1129
1136
|
return t.resetWarningCache = r, er = function() {
|
|
1130
|
-
function n(s, i, f, c, v,
|
|
1131
|
-
if (
|
|
1137
|
+
function n(s, i, f, c, v, b) {
|
|
1138
|
+
if (b !== e) {
|
|
1132
1139
|
var h = new Error(
|
|
1133
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"
|
|
1134
1141
|
);
|
|
@@ -1166,12 +1173,12 @@ function hn() {
|
|
|
1166
1173
|
}, er;
|
|
1167
1174
|
}
|
|
1168
1175
|
if (process.env.NODE_ENV !== "production") {
|
|
1169
|
-
var
|
|
1170
|
-
nr.exports =
|
|
1176
|
+
var Sn = Hr(), Cn = !0;
|
|
1177
|
+
nr.exports = En()(Sn.isElement, Cn);
|
|
1171
1178
|
} else
|
|
1172
|
-
nr.exports =
|
|
1173
|
-
var
|
|
1174
|
-
const M = /* @__PURE__ */ Lr(
|
|
1179
|
+
nr.exports = wn()();
|
|
1180
|
+
var Tn = nr.exports;
|
|
1181
|
+
const M = /* @__PURE__ */ Lr(Tn);
|
|
1175
1182
|
function Se(e, r, t, n) {
|
|
1176
1183
|
function a(o) {
|
|
1177
1184
|
return o instanceof t ? o : new t(function(s) {
|
|
@@ -1182,15 +1189,15 @@ function Se(e, r, t, n) {
|
|
|
1182
1189
|
function i(v) {
|
|
1183
1190
|
try {
|
|
1184
1191
|
c(n.next(v));
|
|
1185
|
-
} catch (
|
|
1186
|
-
s(
|
|
1192
|
+
} catch (b) {
|
|
1193
|
+
s(b);
|
|
1187
1194
|
}
|
|
1188
1195
|
}
|
|
1189
1196
|
function f(v) {
|
|
1190
1197
|
try {
|
|
1191
1198
|
c(n.throw(v));
|
|
1192
|
-
} catch (
|
|
1193
|
-
s(
|
|
1199
|
+
} catch (b) {
|
|
1200
|
+
s(b);
|
|
1194
1201
|
}
|
|
1195
1202
|
}
|
|
1196
1203
|
function c(v) {
|
|
@@ -1199,7 +1206,7 @@ function Se(e, r, t, n) {
|
|
|
1199
1206
|
c((n = n.apply(e, r || [])).next());
|
|
1200
1207
|
});
|
|
1201
1208
|
}
|
|
1202
|
-
function
|
|
1209
|
+
function Ce(e, r) {
|
|
1203
1210
|
var t = { label: 0, sent: function() {
|
|
1204
1211
|
if (o[0] & 1)
|
|
1205
1212
|
throw o[1];
|
|
@@ -1290,7 +1297,7 @@ function Or(e, r, t) {
|
|
|
1290
1297
|
(o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
|
|
1291
1298
|
return e.concat(o || Array.prototype.slice.call(r));
|
|
1292
1299
|
}
|
|
1293
|
-
var
|
|
1300
|
+
var xn = /* @__PURE__ */ new Map([
|
|
1294
1301
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
1295
1302
|
["aac", "audio/aac"],
|
|
1296
1303
|
["abw", "application/x-abiword"],
|
|
@@ -1375,7 +1382,7 @@ var Sn = /* @__PURE__ */ new Map([
|
|
|
1375
1382
|
["msg", "application/vnd.ms-outlook"]
|
|
1376
1383
|
]);
|
|
1377
1384
|
function Pe(e, r) {
|
|
1378
|
-
var t =
|
|
1385
|
+
var t = On(e);
|
|
1379
1386
|
if (typeof t.path != "string") {
|
|
1380
1387
|
var n = e.webkitRelativePath;
|
|
1381
1388
|
Object.defineProperty(t, "path", {
|
|
@@ -1387,10 +1394,10 @@ function Pe(e, r) {
|
|
|
1387
1394
|
}
|
|
1388
1395
|
return t;
|
|
1389
1396
|
}
|
|
1390
|
-
function
|
|
1397
|
+
function On(e) {
|
|
1391
1398
|
var r = e.name, t = r && r.lastIndexOf(".") !== -1;
|
|
1392
1399
|
if (t && !e.type) {
|
|
1393
|
-
var n = r.split(".").pop().toLowerCase(), a =
|
|
1400
|
+
var n = r.split(".").pop().toLowerCase(), a = xn.get(n);
|
|
1394
1401
|
a && Object.defineProperty(e, "type", {
|
|
1395
1402
|
value: a,
|
|
1396
1403
|
writable: !1,
|
|
@@ -1400,39 +1407,39 @@ function Tn(e) {
|
|
|
1400
1407
|
}
|
|
1401
1408
|
return e;
|
|
1402
1409
|
}
|
|
1403
|
-
var
|
|
1410
|
+
var Dn = [
|
|
1404
1411
|
// Thumbnail cache files for macOS and Windows
|
|
1405
1412
|
".DS_Store",
|
|
1406
1413
|
"Thumbs.db"
|
|
1407
1414
|
// Windows
|
|
1408
1415
|
];
|
|
1409
|
-
function
|
|
1416
|
+
function An(e) {
|
|
1410
1417
|
return Se(this, void 0, void 0, function() {
|
|
1411
|
-
return
|
|
1412
|
-
return $e(e) &&
|
|
1418
|
+
return Ce(this, function(r) {
|
|
1419
|
+
return $e(e) && Pn(e.dataTransfer) ? [2, jn(e.dataTransfer, e.type)] : Rn(e) ? [2, In(e)] : Array.isArray(e) && e.every(function(t) {
|
|
1413
1420
|
return "getFile" in t && typeof t.getFile == "function";
|
|
1414
|
-
}) ? [2,
|
|
1421
|
+
}) ? [2, Fn(e)] : [2, []];
|
|
1415
1422
|
});
|
|
1416
1423
|
});
|
|
1417
1424
|
}
|
|
1418
|
-
function
|
|
1425
|
+
function Pn(e) {
|
|
1419
1426
|
return $e(e);
|
|
1420
1427
|
}
|
|
1421
|
-
function
|
|
1428
|
+
function Rn(e) {
|
|
1422
1429
|
return $e(e) && $e(e.target);
|
|
1423
1430
|
}
|
|
1424
1431
|
function $e(e) {
|
|
1425
1432
|
return typeof e == "object" && e !== null;
|
|
1426
1433
|
}
|
|
1427
|
-
function
|
|
1434
|
+
function In(e) {
|
|
1428
1435
|
return or(e.target.files).map(function(r) {
|
|
1429
1436
|
return Pe(r);
|
|
1430
1437
|
});
|
|
1431
1438
|
}
|
|
1432
|
-
function
|
|
1439
|
+
function Fn(e) {
|
|
1433
1440
|
return Se(this, void 0, void 0, function() {
|
|
1434
1441
|
var r;
|
|
1435
|
-
return
|
|
1442
|
+
return Ce(this, function(t) {
|
|
1436
1443
|
switch (t.label) {
|
|
1437
1444
|
case 0:
|
|
1438
1445
|
return [4, Promise.all(e.map(function(n) {
|
|
@@ -1446,15 +1453,15 @@ function Pn(e) {
|
|
|
1446
1453
|
});
|
|
1447
1454
|
});
|
|
1448
1455
|
}
|
|
1449
|
-
function
|
|
1456
|
+
function jn(e, r) {
|
|
1450
1457
|
return Se(this, void 0, void 0, function() {
|
|
1451
1458
|
var t, n;
|
|
1452
|
-
return
|
|
1459
|
+
return Ce(this, function(a) {
|
|
1453
1460
|
switch (a.label) {
|
|
1454
1461
|
case 0:
|
|
1455
1462
|
return e.items ? (t = or(e.items).filter(function(o) {
|
|
1456
1463
|
return o.kind === "file";
|
|
1457
|
-
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(
|
|
1464
|
+
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Nn))]) : [3, 2];
|
|
1458
1465
|
case 1:
|
|
1459
1466
|
return n = a.sent(), [2, Dr(Vr(n))];
|
|
1460
1467
|
case 2:
|
|
@@ -1467,7 +1474,7 @@ function Rn(e, r) {
|
|
|
1467
1474
|
}
|
|
1468
1475
|
function Dr(e) {
|
|
1469
1476
|
return e.filter(function(r) {
|
|
1470
|
-
return
|
|
1477
|
+
return Dn.indexOf(r.name) === -1;
|
|
1471
1478
|
});
|
|
1472
1479
|
}
|
|
1473
1480
|
function or(e) {
|
|
@@ -1479,7 +1486,7 @@ function or(e) {
|
|
|
1479
1486
|
}
|
|
1480
1487
|
return r;
|
|
1481
1488
|
}
|
|
1482
|
-
function
|
|
1489
|
+
function Nn(e) {
|
|
1483
1490
|
if (typeof e.webkitGetAsEntry != "function")
|
|
1484
1491
|
return Ar(e);
|
|
1485
1492
|
var r = e.webkitGetAsEntry();
|
|
@@ -1497,10 +1504,10 @@ function Ar(e) {
|
|
|
1497
1504
|
var t = Pe(r);
|
|
1498
1505
|
return Promise.resolve(t);
|
|
1499
1506
|
}
|
|
1500
|
-
function
|
|
1507
|
+
function kn(e) {
|
|
1501
1508
|
return Se(this, void 0, void 0, function() {
|
|
1502
|
-
return
|
|
1503
|
-
return [2, e.isDirectory ? Jr(e) :
|
|
1509
|
+
return Ce(this, function(r) {
|
|
1510
|
+
return [2, e.isDirectory ? Jr(e) : $n(e)];
|
|
1504
1511
|
});
|
|
1505
1512
|
});
|
|
1506
1513
|
}
|
|
@@ -1513,22 +1520,22 @@ function Jr(e) {
|
|
|
1513
1520
|
r.readEntries(function(i) {
|
|
1514
1521
|
return Se(s, void 0, void 0, function() {
|
|
1515
1522
|
var f, c, v;
|
|
1516
|
-
return
|
|
1517
|
-
switch (
|
|
1523
|
+
return Ce(this, function(b) {
|
|
1524
|
+
switch (b.label) {
|
|
1518
1525
|
case 0:
|
|
1519
1526
|
if (i.length)
|
|
1520
1527
|
return [3, 5];
|
|
1521
|
-
|
|
1528
|
+
b.label = 1;
|
|
1522
1529
|
case 1:
|
|
1523
|
-
return
|
|
1530
|
+
return b.trys.push([1, 3, , 4]), [4, Promise.all(a)];
|
|
1524
1531
|
case 2:
|
|
1525
|
-
return f =
|
|
1532
|
+
return f = b.sent(), t(f), [3, 4];
|
|
1526
1533
|
case 3:
|
|
1527
|
-
return c =
|
|
1534
|
+
return c = b.sent(), n(c), [3, 4];
|
|
1528
1535
|
case 4:
|
|
1529
1536
|
return [3, 6];
|
|
1530
1537
|
case 5:
|
|
1531
|
-
v = Promise.all(i.map(
|
|
1538
|
+
v = Promise.all(i.map(kn)), a.push(v), o(), b.label = 6;
|
|
1532
1539
|
case 6:
|
|
1533
1540
|
return [
|
|
1534
1541
|
2
|
|
@@ -1544,9 +1551,9 @@ function Jr(e) {
|
|
|
1544
1551
|
o();
|
|
1545
1552
|
});
|
|
1546
1553
|
}
|
|
1547
|
-
function
|
|
1554
|
+
function $n(e) {
|
|
1548
1555
|
return Se(this, void 0, void 0, function() {
|
|
1549
|
-
return
|
|
1556
|
+
return Ce(this, function(r) {
|
|
1550
1557
|
return [2, new Promise(function(t, n) {
|
|
1551
1558
|
e.file(function(a) {
|
|
1552
1559
|
var o = Pe(a, e.fullPath);
|
|
@@ -1558,7 +1565,7 @@ function jn(e) {
|
|
|
1558
1565
|
});
|
|
1559
1566
|
});
|
|
1560
1567
|
}
|
|
1561
|
-
var
|
|
1568
|
+
var Mn = function(e, r) {
|
|
1562
1569
|
if (e && r) {
|
|
1563
1570
|
var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = (e.type || "").toLowerCase(), o = a.replace(/\/.*$/, "");
|
|
1564
1571
|
return t.some(function(s) {
|
|
@@ -1569,17 +1576,17 @@ var Nn = function(e, r) {
|
|
|
1569
1576
|
return !0;
|
|
1570
1577
|
};
|
|
1571
1578
|
function Pr(e) {
|
|
1572
|
-
return
|
|
1579
|
+
return zn(e) || Bn(e) || Xr(e) || Ln();
|
|
1573
1580
|
}
|
|
1574
|
-
function
|
|
1581
|
+
function Ln() {
|
|
1575
1582
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1576
1583
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1577
1584
|
}
|
|
1578
|
-
function
|
|
1585
|
+
function Bn(e) {
|
|
1579
1586
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
1580
1587
|
return Array.from(e);
|
|
1581
1588
|
}
|
|
1582
|
-
function
|
|
1589
|
+
function zn(e) {
|
|
1583
1590
|
if (Array.isArray(e))
|
|
1584
1591
|
return ar(e);
|
|
1585
1592
|
}
|
|
@@ -1608,9 +1615,9 @@ function Zr(e, r, t) {
|
|
|
1608
1615
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
1609
1616
|
}
|
|
1610
1617
|
function De(e, r) {
|
|
1611
|
-
return
|
|
1618
|
+
return qn(e) || Yn(e, r) || Xr(e, r) || Wn();
|
|
1612
1619
|
}
|
|
1613
|
-
function
|
|
1620
|
+
function Wn() {
|
|
1614
1621
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1615
1622
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1616
1623
|
}
|
|
@@ -1631,7 +1638,7 @@ function ar(e, r) {
|
|
|
1631
1638
|
n[t] = e[t];
|
|
1632
1639
|
return n;
|
|
1633
1640
|
}
|
|
1634
|
-
function
|
|
1641
|
+
function Yn(e, r) {
|
|
1635
1642
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1636
1643
|
if (t != null) {
|
|
1637
1644
|
var n = [], a = !0, o = !1, s, i;
|
|
@@ -1651,34 +1658,34 @@ function Bn(e, r) {
|
|
|
1651
1658
|
return n;
|
|
1652
1659
|
}
|
|
1653
1660
|
}
|
|
1654
|
-
function
|
|
1661
|
+
function qn(e) {
|
|
1655
1662
|
if (Array.isArray(e))
|
|
1656
1663
|
return e;
|
|
1657
1664
|
}
|
|
1658
|
-
var
|
|
1665
|
+
var Un = "file-invalid-type", Kn = "file-too-large", Hn = "file-too-small", Gn = "too-many-files", Vn = function(r) {
|
|
1659
1666
|
r = Array.isArray(r) && r.length === 1 ? r[0] : r;
|
|
1660
1667
|
var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
|
|
1661
1668
|
return {
|
|
1662
|
-
code:
|
|
1669
|
+
code: Un,
|
|
1663
1670
|
message: "File type must be ".concat(t)
|
|
1664
1671
|
};
|
|
1665
1672
|
}, Fr = function(r) {
|
|
1666
1673
|
return {
|
|
1667
|
-
code:
|
|
1674
|
+
code: Kn,
|
|
1668
1675
|
message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
1669
1676
|
};
|
|
1670
1677
|
}, jr = function(r) {
|
|
1671
1678
|
return {
|
|
1672
|
-
code:
|
|
1679
|
+
code: Hn,
|
|
1673
1680
|
message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
1674
1681
|
};
|
|
1675
|
-
},
|
|
1676
|
-
code:
|
|
1682
|
+
}, Jn = {
|
|
1683
|
+
code: Gn,
|
|
1677
1684
|
message: "Too many files"
|
|
1678
1685
|
};
|
|
1679
1686
|
function Qr(e, r) {
|
|
1680
|
-
var t = e.type === "application/x-moz-file" ||
|
|
1681
|
-
return [t, t ? null :
|
|
1687
|
+
var t = e.type === "application/x-moz-file" || Mn(e, r);
|
|
1688
|
+
return [t, t ? null : Vn(r)];
|
|
1682
1689
|
}
|
|
1683
1690
|
function et(e, r, t) {
|
|
1684
1691
|
if (ge(e.size))
|
|
@@ -1698,11 +1705,11 @@ function et(e, r, t) {
|
|
|
1698
1705
|
function ge(e) {
|
|
1699
1706
|
return e != null;
|
|
1700
1707
|
}
|
|
1701
|
-
function
|
|
1708
|
+
function Zn(e) {
|
|
1702
1709
|
var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
|
|
1703
1710
|
return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
|
|
1704
|
-
var c = Qr(f, t), v = De(c, 1),
|
|
1705
|
-
return
|
|
1711
|
+
var c = Qr(f, t), v = De(c, 1), b = v[0], h = et(f, n, a), y = De(h, 1), _ = y[0], C = i ? i(f) : null;
|
|
1712
|
+
return b && _ && !C;
|
|
1706
1713
|
});
|
|
1707
1714
|
}
|
|
1708
1715
|
function Me(e) {
|
|
@@ -1716,15 +1723,15 @@ function Ne(e) {
|
|
|
1716
1723
|
function Nr(e) {
|
|
1717
1724
|
e.preventDefault();
|
|
1718
1725
|
}
|
|
1719
|
-
function
|
|
1726
|
+
function Xn(e) {
|
|
1720
1727
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
1721
1728
|
}
|
|
1722
|
-
function
|
|
1729
|
+
function Qn(e) {
|
|
1723
1730
|
return e.indexOf("Edge/") !== -1;
|
|
1724
1731
|
}
|
|
1725
|
-
function
|
|
1732
|
+
function eo() {
|
|
1726
1733
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1727
|
-
return
|
|
1734
|
+
return Xn(e) || Qn(e);
|
|
1728
1735
|
}
|
|
1729
1736
|
function ie() {
|
|
1730
1737
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
@@ -1737,10 +1744,10 @@ function ie() {
|
|
|
1737
1744
|
});
|
|
1738
1745
|
};
|
|
1739
1746
|
}
|
|
1740
|
-
function
|
|
1747
|
+
function ro() {
|
|
1741
1748
|
return "showOpenFilePicker" in window;
|
|
1742
1749
|
}
|
|
1743
|
-
function
|
|
1750
|
+
function to(e) {
|
|
1744
1751
|
if (ge(e)) {
|
|
1745
1752
|
var r = Object.entries(e).filter(function(t) {
|
|
1746
1753
|
var n = De(t, 2), a = n[0], o = n[1], s = !0;
|
|
@@ -1757,7 +1764,7 @@ function Qn(e) {
|
|
|
1757
1764
|
}
|
|
1758
1765
|
return e;
|
|
1759
1766
|
}
|
|
1760
|
-
function
|
|
1767
|
+
function no(e) {
|
|
1761
1768
|
if (ge(e))
|
|
1762
1769
|
return Object.entries(e).reduce(function(r, t) {
|
|
1763
1770
|
var n = De(t, 2), a = n[0], o = n[1];
|
|
@@ -1766,10 +1773,10 @@ function eo(e) {
|
|
|
1766
1773
|
return rt(r) || tt(r);
|
|
1767
1774
|
}).join(",");
|
|
1768
1775
|
}
|
|
1769
|
-
function
|
|
1776
|
+
function oo(e) {
|
|
1770
1777
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
1771
1778
|
}
|
|
1772
|
-
function
|
|
1779
|
+
function ao(e) {
|
|
1773
1780
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
1774
1781
|
}
|
|
1775
1782
|
function rt(e) {
|
|
@@ -1778,26 +1785,26 @@ function rt(e) {
|
|
|
1778
1785
|
function tt(e) {
|
|
1779
1786
|
return /^.*\.[\w]+$/.test(e);
|
|
1780
1787
|
}
|
|
1781
|
-
var
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1788
|
+
var io = ["children"], so = ["open"], co = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], lo = ["refKey", "onChange", "onClick"];
|
|
1789
|
+
function uo(e) {
|
|
1790
|
+
return mo(e) || po(e) || nt(e) || fo();
|
|
1784
1791
|
}
|
|
1785
|
-
function
|
|
1792
|
+
function fo() {
|
|
1786
1793
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1787
1794
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1788
1795
|
}
|
|
1789
|
-
function
|
|
1796
|
+
function po(e) {
|
|
1790
1797
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
1791
1798
|
return Array.from(e);
|
|
1792
1799
|
}
|
|
1793
|
-
function
|
|
1800
|
+
function mo(e) {
|
|
1794
1801
|
if (Array.isArray(e))
|
|
1795
1802
|
return ir(e);
|
|
1796
1803
|
}
|
|
1797
1804
|
function rr(e, r) {
|
|
1798
|
-
return
|
|
1805
|
+
return yo(e) || go(e, r) || nt(e, r) || vo();
|
|
1799
1806
|
}
|
|
1800
|
-
function
|
|
1807
|
+
function vo() {
|
|
1801
1808
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1802
1809
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1803
1810
|
}
|
|
@@ -1818,7 +1825,7 @@ function ir(e, r) {
|
|
|
1818
1825
|
n[t] = e[t];
|
|
1819
1826
|
return n;
|
|
1820
1827
|
}
|
|
1821
|
-
function
|
|
1828
|
+
function go(e, r) {
|
|
1822
1829
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1823
1830
|
if (t != null) {
|
|
1824
1831
|
var n = [], a = !0, o = !1, s, i;
|
|
@@ -1838,7 +1845,7 @@ function po(e, r) {
|
|
|
1838
1845
|
return n;
|
|
1839
1846
|
}
|
|
1840
1847
|
}
|
|
1841
|
-
function
|
|
1848
|
+
function yo(e) {
|
|
1842
1849
|
if (Array.isArray(e))
|
|
1843
1850
|
return e;
|
|
1844
1851
|
}
|
|
@@ -1869,7 +1876,7 @@ function sr(e, r, t) {
|
|
|
1869
1876
|
function Le(e, r) {
|
|
1870
1877
|
if (e == null)
|
|
1871
1878
|
return {};
|
|
1872
|
-
var t =
|
|
1879
|
+
var t = bo(e, r), n, a;
|
|
1873
1880
|
if (Object.getOwnPropertySymbols) {
|
|
1874
1881
|
var o = Object.getOwnPropertySymbols(e);
|
|
1875
1882
|
for (a = 0; a < o.length; a++)
|
|
@@ -1877,7 +1884,7 @@ function Le(e, r) {
|
|
|
1877
1884
|
}
|
|
1878
1885
|
return t;
|
|
1879
1886
|
}
|
|
1880
|
-
function
|
|
1887
|
+
function bo(e, r) {
|
|
1881
1888
|
if (e == null)
|
|
1882
1889
|
return {};
|
|
1883
1890
|
var t = {}, n = Object.keys(e), a, o;
|
|
@@ -1885,20 +1892,20 @@ function vo(e, r) {
|
|
|
1885
1892
|
a = n[o], !(r.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
1886
1893
|
return t;
|
|
1887
1894
|
}
|
|
1888
|
-
var pr = /* @__PURE__ */
|
|
1889
|
-
var t = e.children, n = Le(e,
|
|
1890
|
-
return
|
|
1895
|
+
var pr = /* @__PURE__ */ vt(function(e, r) {
|
|
1896
|
+
var t = e.children, n = Le(e, io), a = at(n), o = a.open, s = Le(a, so);
|
|
1897
|
+
return gt(r, function() {
|
|
1891
1898
|
return {
|
|
1892
1899
|
open: o
|
|
1893
1900
|
};
|
|
1894
|
-
}, [o]), /* @__PURE__ */
|
|
1901
|
+
}, [o]), /* @__PURE__ */ ft.createElement(yt, null, t(z(z({}, s), {}, {
|
|
1895
1902
|
open: o
|
|
1896
1903
|
})));
|
|
1897
1904
|
});
|
|
1898
1905
|
pr.displayName = "Dropzone";
|
|
1899
1906
|
var ot = {
|
|
1900
1907
|
disabled: !1,
|
|
1901
|
-
getFilesFromEvent:
|
|
1908
|
+
getFilesFromEvent: An,
|
|
1902
1909
|
maxSize: 1 / 0,
|
|
1903
1910
|
minSize: 0,
|
|
1904
1911
|
multiple: !0,
|
|
@@ -2091,19 +2098,19 @@ var cr = {
|
|
|
2091
2098
|
fileRejections: []
|
|
2092
2099
|
};
|
|
2093
2100
|
function at() {
|
|
2094
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, ot), 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,
|
|
2095
|
-
return
|
|
2101
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, ot), 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, b = r.onDragOver, h = r.onDrop, y = r.onDropAccepted, _ = r.onDropRejected, C = 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
|
+
return no(t);
|
|
2096
2103
|
}, [t]), de = se(function() {
|
|
2097
|
-
return
|
|
2104
|
+
return to(t);
|
|
2098
2105
|
}, [t]), me = se(function() {
|
|
2099
2106
|
return typeof L == "function" ? L : $r;
|
|
2100
2107
|
}, [L]), ue = se(function() {
|
|
2101
|
-
return typeof
|
|
2102
|
-
}, [
|
|
2103
|
-
!
|
|
2108
|
+
return typeof C == "function" ? C : $r;
|
|
2109
|
+
}, [C]), W = Oe(null), Z = Oe(null), ne = mt(ho, cr), ae = rr(ne, 2), fe = ae[0], G = ae[1], u = fe.isFocused, g = fe.isFileDialogActive, T = Oe(typeof window < "u" && window.isSecureContext && N && ro()), x = function() {
|
|
2110
|
+
!T.current && g && setTimeout(function() {
|
|
2104
2111
|
if (Z.current) {
|
|
2105
2112
|
var E = Z.current.files;
|
|
2106
|
-
E.length || (
|
|
2113
|
+
E.length || (G({
|
|
2107
2114
|
type: "closeDialog"
|
|
2108
2115
|
}), ue());
|
|
2109
2116
|
}
|
|
@@ -2113,7 +2120,7 @@ function at() {
|
|
|
2113
2120
|
return window.addEventListener("focus", x, !1), function() {
|
|
2114
2121
|
window.removeEventListener("focus", x, !1);
|
|
2115
2122
|
};
|
|
2116
|
-
}, [Z, g, ue,
|
|
2123
|
+
}, [Z, g, ue, T]);
|
|
2117
2124
|
var w = Oe([]), P = function(E) {
|
|
2118
2125
|
W.current && W.current.contains(E.target) || (E.preventDefault(), w.current = []);
|
|
2119
2126
|
};
|
|
@@ -2122,15 +2129,15 @@ function at() {
|
|
|
2122
2129
|
A && (document.removeEventListener("dragover", Nr), document.removeEventListener("drop", P));
|
|
2123
2130
|
};
|
|
2124
2131
|
}, [W, A]), _e(function() {
|
|
2125
|
-
return !n &&
|
|
2132
|
+
return !n && U && W.current && W.current.focus(), function() {
|
|
2126
2133
|
};
|
|
2127
|
-
}, [W,
|
|
2134
|
+
}, [W, U, n]);
|
|
2128
2135
|
var S = Q(function(m) {
|
|
2129
2136
|
J ? J(m) : console.error(m);
|
|
2130
2137
|
}, [J]), O = Q(function(m) {
|
|
2131
|
-
m.preventDefault(), m.persist(), Ie(m), w.current = [].concat(
|
|
2138
|
+
m.preventDefault(), m.persist(), Ie(m), w.current = [].concat(uo(w.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(E) {
|
|
2132
2139
|
if (!(Me(m) && !$)) {
|
|
2133
|
-
var Y = E.length,
|
|
2140
|
+
var Y = E.length, V = Y > 0 && Zn({
|
|
2134
2141
|
files: E,
|
|
2135
2142
|
accept: ce,
|
|
2136
2143
|
minSize: s,
|
|
@@ -2138,9 +2145,9 @@ function at() {
|
|
|
2138
2145
|
multiple: i,
|
|
2139
2146
|
maxFiles: f,
|
|
2140
2147
|
validator: ee
|
|
2141
|
-
}), te = Y > 0 && !
|
|
2142
|
-
|
|
2143
|
-
isDragAccept:
|
|
2148
|
+
}), te = Y > 0 && !V;
|
|
2149
|
+
G({
|
|
2150
|
+
isDragAccept: V,
|
|
2144
2151
|
isDragReject: te,
|
|
2145
2152
|
isDragActive: !0,
|
|
2146
2153
|
type: "setDraggedFiles"
|
|
@@ -2157,54 +2164,54 @@ function at() {
|
|
|
2157
2164
|
m.dataTransfer.dropEffect = "copy";
|
|
2158
2165
|
} catch {
|
|
2159
2166
|
}
|
|
2160
|
-
return E &&
|
|
2161
|
-
}, [
|
|
2167
|
+
return E && b && b(m), !1;
|
|
2168
|
+
}, [b, $]), I = Q(function(m) {
|
|
2162
2169
|
m.preventDefault(), m.persist(), Ie(m);
|
|
2163
|
-
var E = w.current.filter(function(
|
|
2164
|
-
return W.current && W.current.contains(
|
|
2170
|
+
var E = w.current.filter(function(V) {
|
|
2171
|
+
return W.current && W.current.contains(V);
|
|
2165
2172
|
}), Y = E.indexOf(m.target);
|
|
2166
|
-
Y !== -1 && E.splice(Y, 1), w.current = E, !(E.length > 0) && (
|
|
2173
|
+
Y !== -1 && E.splice(Y, 1), w.current = E, !(E.length > 0) && (G({
|
|
2167
2174
|
type: "setDraggedFiles",
|
|
2168
2175
|
isDragActive: !1,
|
|
2169
2176
|
isDragAccept: !1,
|
|
2170
2177
|
isDragReject: !1
|
|
2171
2178
|
}), Ne(m) && v && v(m));
|
|
2172
2179
|
}, [W, v, $]), D = Q(function(m, E) {
|
|
2173
|
-
var Y = [],
|
|
2180
|
+
var Y = [], V = [];
|
|
2174
2181
|
m.forEach(function(te) {
|
|
2175
|
-
var xe = Qr(te, ce), he = rr(xe, 2), We = he[0], Ye = he[1], qe = et(te, s, o), Fe = rr(qe, 2),
|
|
2176
|
-
if (We &&
|
|
2182
|
+
var xe = Qr(te, ce), he = rr(xe, 2), We = he[0], Ye = he[1], qe = et(te, s, o), Fe = rr(qe, 2), Ue = Fe[0], Ke = Fe[1], He = ee ? ee(te) : null;
|
|
2183
|
+
if (We && Ue && !He)
|
|
2177
2184
|
Y.push(te);
|
|
2178
2185
|
else {
|
|
2179
|
-
var Ge = [Ye,
|
|
2180
|
-
He && (Ge = Ge.concat(He)),
|
|
2186
|
+
var Ge = [Ye, Ke];
|
|
2187
|
+
He && (Ge = Ge.concat(He)), V.push({
|
|
2181
2188
|
file: te,
|
|
2182
|
-
errors: Ge.filter(function(
|
|
2183
|
-
return
|
|
2189
|
+
errors: Ge.filter(function(ut) {
|
|
2190
|
+
return ut;
|
|
2184
2191
|
})
|
|
2185
2192
|
});
|
|
2186
2193
|
}
|
|
2187
2194
|
}), (!i && Y.length > 1 || i && f >= 1 && Y.length > f) && (Y.forEach(function(te) {
|
|
2188
|
-
|
|
2195
|
+
V.push({
|
|
2189
2196
|
file: te,
|
|
2190
|
-
errors: [
|
|
2197
|
+
errors: [Jn]
|
|
2191
2198
|
});
|
|
2192
|
-
}), Y.splice(0)),
|
|
2199
|
+
}), Y.splice(0)), G({
|
|
2193
2200
|
acceptedFiles: Y,
|
|
2194
|
-
fileRejections:
|
|
2201
|
+
fileRejections: V,
|
|
2195
2202
|
type: "setFiles"
|
|
2196
|
-
}), h && h(Y,
|
|
2197
|
-
}, [
|
|
2203
|
+
}), h && h(Y, V, E), V.length > 0 && _ && _(V, E), Y.length > 0 && y && y(Y, E);
|
|
2204
|
+
}, [G, i, ce, s, o, f, h, y, _, ee]), q = Q(function(m) {
|
|
2198
2205
|
m.preventDefault(), m.persist(), Ie(m), w.current = [], Ne(m) && Promise.resolve(a(m)).then(function(E) {
|
|
2199
2206
|
Me(m) && !$ || D(E, m);
|
|
2200
2207
|
}).catch(function(E) {
|
|
2201
2208
|
return S(E);
|
|
2202
|
-
}),
|
|
2209
|
+
}), G({
|
|
2203
2210
|
type: "reset"
|
|
2204
2211
|
});
|
|
2205
2212
|
}, [a, D, S, $]), d = Q(function() {
|
|
2206
|
-
if (
|
|
2207
|
-
|
|
2213
|
+
if (T.current) {
|
|
2214
|
+
G({
|
|
2208
2215
|
type: "openDialog"
|
|
2209
2216
|
}), me();
|
|
2210
2217
|
var m = {
|
|
@@ -2214,31 +2221,31 @@ function at() {
|
|
|
2214
2221
|
window.showOpenFilePicker(m).then(function(E) {
|
|
2215
2222
|
return a(E);
|
|
2216
2223
|
}).then(function(E) {
|
|
2217
|
-
D(E, null),
|
|
2224
|
+
D(E, null), G({
|
|
2218
2225
|
type: "closeDialog"
|
|
2219
2226
|
});
|
|
2220
2227
|
}).catch(function(E) {
|
|
2221
|
-
|
|
2228
|
+
oo(E) ? (ue(E), G({
|
|
2222
2229
|
type: "closeDialog"
|
|
2223
|
-
})) :
|
|
2230
|
+
})) : ao(E) ? (T.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : S(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."))) : S(E);
|
|
2224
2231
|
});
|
|
2225
2232
|
return;
|
|
2226
2233
|
}
|
|
2227
|
-
Z.current && (
|
|
2234
|
+
Z.current && (G({
|
|
2228
2235
|
type: "openDialog"
|
|
2229
2236
|
}), me(), Z.current.value = null, Z.current.click());
|
|
2230
|
-
}, [
|
|
2237
|
+
}, [G, me, ue, N, D, S, de, i]), re = Q(function(m) {
|
|
2231
2238
|
!W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
|
|
2232
2239
|
}, [W, d]), ve = Q(function() {
|
|
2233
|
-
|
|
2240
|
+
G({
|
|
2234
2241
|
type: "focus"
|
|
2235
2242
|
});
|
|
2236
|
-
}, []),
|
|
2237
|
-
|
|
2243
|
+
}, []), Te = Q(function() {
|
|
2244
|
+
G({
|
|
2238
2245
|
type: "blur"
|
|
2239
2246
|
});
|
|
2240
2247
|
}, []), dr = Q(function() {
|
|
2241
|
-
k || (
|
|
2248
|
+
k || (eo() ? setTimeout(d, 0) : d());
|
|
2242
2249
|
}, [k, d]), be = function(E) {
|
|
2243
2250
|
return n ? null : E;
|
|
2244
2251
|
}, ze = function(E) {
|
|
@@ -2247,36 +2254,36 @@ function at() {
|
|
|
2247
2254
|
return X ? null : be(E);
|
|
2248
2255
|
}, Ie = function(E) {
|
|
2249
2256
|
$ && E.stopPropagation();
|
|
2250
|
-
},
|
|
2257
|
+
}, st = se(function() {
|
|
2251
2258
|
return function() {
|
|
2252
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E,
|
|
2259
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, V = m.role, te = m.onKeyDown, xe = m.onFocus, he = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Fe = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, co);
|
|
2253
2260
|
return z(z(sr({
|
|
2254
2261
|
onKeyDown: ze(ie(te, re)),
|
|
2255
2262
|
onFocus: ze(ie(xe, ve)),
|
|
2256
|
-
onBlur: ze(ie(he,
|
|
2263
|
+
onBlur: ze(ie(he, Te)),
|
|
2257
2264
|
onClick: be(ie(We, dr)),
|
|
2258
2265
|
onDragEnter: Re(ie(Ye, O)),
|
|
2259
2266
|
onDragOver: Re(ie(qe, R)),
|
|
2260
2267
|
onDragLeave: Re(ie(Fe, I)),
|
|
2261
|
-
onDrop: Re(ie(
|
|
2262
|
-
role: typeof
|
|
2268
|
+
onDrop: Re(ie(Ue, q)),
|
|
2269
|
+
role: typeof V == "string" && V !== "" ? V : "presentation"
|
|
2263
2270
|
}, Y, W), !n && !p ? {
|
|
2264
2271
|
tabIndex: 0
|
|
2265
|
-
} : {}),
|
|
2272
|
+
} : {}), Ke);
|
|
2266
2273
|
};
|
|
2267
|
-
}, [W, re, ve,
|
|
2274
|
+
}, [W, re, ve, Te, dr, O, R, I, q, p, X, n]), ct = Q(function(m) {
|
|
2268
2275
|
m.stopPropagation();
|
|
2269
|
-
}, []),
|
|
2276
|
+
}, []), lt = se(function() {
|
|
2270
2277
|
return function() {
|
|
2271
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E,
|
|
2278
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = m.refKey, Y = E === void 0 ? "ref" : E, V = m.onChange, te = m.onClick, xe = Le(m, lo), he = sr({
|
|
2272
2279
|
accept: ce,
|
|
2273
2280
|
multiple: i,
|
|
2274
2281
|
type: "file",
|
|
2275
2282
|
style: {
|
|
2276
2283
|
display: "none"
|
|
2277
2284
|
},
|
|
2278
|
-
onChange: be(ie(
|
|
2279
|
-
onClick: be(ie(te,
|
|
2285
|
+
onChange: be(ie(V, q)),
|
|
2286
|
+
onClick: be(ie(te, ct)),
|
|
2280
2287
|
tabIndex: -1
|
|
2281
2288
|
}, Y, Z);
|
|
2282
2289
|
return z(z({}, he), xe);
|
|
@@ -2284,14 +2291,14 @@ function at() {
|
|
|
2284
2291
|
}, [Z, t, i, q, n]);
|
|
2285
2292
|
return z(z({}, fe), {}, {
|
|
2286
2293
|
isFocused: u && !n,
|
|
2287
|
-
getRootProps:
|
|
2288
|
-
getInputProps:
|
|
2294
|
+
getRootProps: st,
|
|
2295
|
+
getInputProps: lt,
|
|
2289
2296
|
rootRef: W,
|
|
2290
2297
|
inputRef: Z,
|
|
2291
2298
|
open: be(d)
|
|
2292
2299
|
});
|
|
2293
2300
|
}
|
|
2294
|
-
function
|
|
2301
|
+
function ho(e, r) {
|
|
2295
2302
|
switch (r.type) {
|
|
2296
2303
|
case "focus":
|
|
2297
2304
|
return z(z({}, e), {}, {
|
|
@@ -2328,7 +2335,7 @@ function go(e, r) {
|
|
|
2328
2335
|
}
|
|
2329
2336
|
function $r() {
|
|
2330
2337
|
}
|
|
2331
|
-
const
|
|
2338
|
+
const _o = ({
|
|
2332
2339
|
accept: e,
|
|
2333
2340
|
error: r,
|
|
2334
2341
|
files: t,
|
|
@@ -2341,79 +2348,79 @@ const yo = ({
|
|
|
2341
2348
|
removeFile: c,
|
|
2342
2349
|
removeRejectedFile: v
|
|
2343
2350
|
}) => {
|
|
2344
|
-
const { getRootProps:
|
|
2351
|
+
const { getRootProps: b } = at({
|
|
2345
2352
|
accept: e,
|
|
2346
2353
|
maxFiles: o,
|
|
2347
2354
|
maxSize: s,
|
|
2348
2355
|
onDrop: i
|
|
2349
2356
|
}), h = ke();
|
|
2350
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ K(
|
|
2351
2358
|
"div",
|
|
2352
2359
|
{
|
|
2353
2360
|
className: B("p-form__group p-form-validation", {
|
|
2354
2361
|
"is-error": !!r
|
|
2355
2362
|
}),
|
|
2356
2363
|
children: [
|
|
2357
|
-
a && /* @__PURE__ */ l(
|
|
2364
|
+
a && /* @__PURE__ */ l(Tt, { id: h, children: a }),
|
|
2358
2365
|
n && /* @__PURE__ */ l("p", { className: "p-form-help-text", children: n }),
|
|
2359
|
-
/* @__PURE__ */
|
|
2366
|
+
/* @__PURE__ */ K("div", { className: "p-form__control", children: [
|
|
2360
2367
|
!o || t.length < o ? /* @__PURE__ */ l("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ l(
|
|
2361
2368
|
"div",
|
|
2362
2369
|
{
|
|
2363
|
-
...
|
|
2370
|
+
...b(),
|
|
2364
2371
|
"aria-labelledby": a ? h : void 0,
|
|
2365
2372
|
className: "file-upload",
|
|
2366
2373
|
"data-testid": "file-upload",
|
|
2367
2374
|
children: /* @__PURE__ */ l("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
2368
2375
|
}
|
|
2369
2376
|
) }) : null,
|
|
2370
|
-
r ? /* @__PURE__ */
|
|
2377
|
+
r ? /* @__PURE__ */ K("p", { className: "p-form-validation__message", children: [
|
|
2371
2378
|
/* @__PURE__ */ l("strong", { children: "Error: " }),
|
|
2372
2379
|
r
|
|
2373
2380
|
] }) : null,
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
f && f.map((
|
|
2376
|
-
/* @__PURE__ */
|
|
2377
|
-
|
|
2381
|
+
/* @__PURE__ */ K("div", { className: "file-upload__files-list", children: [
|
|
2382
|
+
f && f.map((y) => /* @__PURE__ */ K("span", { className: "is-error", children: [
|
|
2383
|
+
/* @__PURE__ */ K("div", { className: "file-upload__file is-rejected", children: [
|
|
2384
|
+
y.file.name,
|
|
2378
2385
|
/* @__PURE__ */ l(
|
|
2379
2386
|
pe,
|
|
2380
2387
|
{
|
|
2381
2388
|
appearance: "base",
|
|
2382
2389
|
className: "file-upload__file-remove-button",
|
|
2383
|
-
onClick: () => v(
|
|
2390
|
+
onClick: () => v(y),
|
|
2384
2391
|
type: "button",
|
|
2385
2392
|
children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
|
|
2386
2393
|
}
|
|
2387
2394
|
)
|
|
2388
2395
|
] }),
|
|
2389
|
-
|
|
2396
|
+
y.errors.map((_) => /* @__PURE__ */ l(
|
|
2390
2397
|
"p",
|
|
2391
2398
|
{
|
|
2392
2399
|
className: "p-form-validation__message",
|
|
2393
2400
|
children: _.message
|
|
2394
2401
|
},
|
|
2395
|
-
`${
|
|
2402
|
+
`${y.file.name}-${_.code}`
|
|
2396
2403
|
))
|
|
2397
|
-
] },
|
|
2398
|
-
t && t.map((
|
|
2399
|
-
|
|
2400
|
-
/* @__PURE__ */ l(
|
|
2404
|
+
] }, y.file.name)),
|
|
2405
|
+
t && t.map((y) => /* @__PURE__ */ K("div", { className: "file-upload__file", children: [
|
|
2406
|
+
y.name,
|
|
2407
|
+
y.percentUploaded !== void 0 ? /* @__PURE__ */ l(kt, { percentComplete: y.percentUploaded }) : /* @__PURE__ */ l(
|
|
2401
2408
|
pe,
|
|
2402
2409
|
{
|
|
2403
2410
|
appearance: "base",
|
|
2404
2411
|
className: "file-upload__file-remove-button",
|
|
2405
|
-
onClick: () => c(
|
|
2412
|
+
onClick: () => c(y),
|
|
2406
2413
|
type: "button",
|
|
2407
2414
|
children: /* @__PURE__ */ l(we, { name: "close", children: "Remove file" })
|
|
2408
2415
|
}
|
|
2409
2416
|
)
|
|
2410
|
-
] },
|
|
2417
|
+
] }, y.name))
|
|
2411
2418
|
] })
|
|
2412
2419
|
] })
|
|
2413
2420
|
]
|
|
2414
2421
|
}
|
|
2415
2422
|
);
|
|
2416
|
-
},
|
|
2423
|
+
}, Io = ({
|
|
2417
2424
|
accept: e,
|
|
2418
2425
|
error: r,
|
|
2419
2426
|
help: t,
|
|
@@ -2422,13 +2429,13 @@ const yo = ({
|
|
|
2422
2429
|
maxSize: o
|
|
2423
2430
|
}) => {
|
|
2424
2431
|
const [s, i] = le([]), [f, c] = le([]), v = Q(
|
|
2425
|
-
(
|
|
2426
|
-
i([...s, ...
|
|
2432
|
+
(y, _) => {
|
|
2433
|
+
i([...s, ...y]), c([...f, ..._]);
|
|
2427
2434
|
},
|
|
2428
2435
|
[s, f]
|
|
2429
2436
|
);
|
|
2430
2437
|
return /* @__PURE__ */ l(
|
|
2431
|
-
|
|
2438
|
+
_o,
|
|
2432
2439
|
{
|
|
2433
2440
|
accept: e,
|
|
2434
2441
|
error: r,
|
|
@@ -2439,18 +2446,18 @@ const yo = ({
|
|
|
2439
2446
|
maxFiles: a,
|
|
2440
2447
|
maxSize: o,
|
|
2441
2448
|
onFileUpload: v,
|
|
2442
|
-
removeFile: (
|
|
2449
|
+
removeFile: (y) => {
|
|
2443
2450
|
const _ = [...s];
|
|
2444
|
-
_.splice(_.indexOf(
|
|
2451
|
+
_.splice(_.indexOf(y), 1), i(_);
|
|
2445
2452
|
},
|
|
2446
|
-
removeRejectedFile: (
|
|
2453
|
+
removeRejectedFile: (y) => {
|
|
2447
2454
|
const _ = [...f];
|
|
2448
|
-
_.splice(_.indexOf(
|
|
2455
|
+
_.splice(_.indexOf(y), 1), c(_);
|
|
2449
2456
|
}
|
|
2450
2457
|
}
|
|
2451
2458
|
);
|
|
2452
2459
|
};
|
|
2453
|
-
const
|
|
2460
|
+
const it = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Eo = (e) => (r, t) => {
|
|
2454
2461
|
if (e) {
|
|
2455
2462
|
const n = e.has(r.value), a = e.has(t.value);
|
|
2456
2463
|
if (n && !a)
|
|
@@ -2459,13 +2466,13 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2459
2466
|
return 1;
|
|
2460
2467
|
}
|
|
2461
2468
|
return 0;
|
|
2462
|
-
},
|
|
2469
|
+
}, wo = (e) => {
|
|
2463
2470
|
const r = /* @__PURE__ */ new Map();
|
|
2464
2471
|
return e.forEach((t) => {
|
|
2465
2472
|
const n = t.group || "Ungrouped", a = r.get(n) || [];
|
|
2466
2473
|
a.push(t), r.set(n, a);
|
|
2467
2474
|
}), Array.from(r, ([t, n]) => ({ group: t, items: n }));
|
|
2468
|
-
},
|
|
2475
|
+
}, So = ({
|
|
2469
2476
|
items: e,
|
|
2470
2477
|
selectedItems: r,
|
|
2471
2478
|
disabledItems: t,
|
|
@@ -2473,38 +2480,38 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2473
2480
|
updateItems: a,
|
|
2474
2481
|
isOpen: o,
|
|
2475
2482
|
footer: s,
|
|
2476
|
-
sortFn: i =
|
|
2477
|
-
groupFn: f =
|
|
2483
|
+
sortFn: i = it,
|
|
2484
|
+
groupFn: f = wo,
|
|
2478
2485
|
...c
|
|
2479
2486
|
}) => {
|
|
2480
2487
|
const v = se(
|
|
2481
2488
|
() => new Set(r.map((N) => N.value)),
|
|
2482
2489
|
[r]
|
|
2483
|
-
),
|
|
2490
|
+
), b = se(
|
|
2484
2491
|
() => new Set(t.map((N) => N.value)),
|
|
2485
2492
|
[t]
|
|
2486
|
-
), [h,
|
|
2493
|
+
), [h, y] = le(new Set(v));
|
|
2487
2494
|
_e(() => {
|
|
2488
|
-
o &&
|
|
2495
|
+
o && y(new Set(v));
|
|
2489
2496
|
}, [o]);
|
|
2490
|
-
const _ = se(() => e.some((N) => N.group), [e]),
|
|
2497
|
+
const _ = se(() => e.some((N) => N.group), [e]), C = se(
|
|
2491
2498
|
() => _ ? f(e) : [{ group: "Ungrouped", items: e }],
|
|
2492
2499
|
[e, f]
|
|
2493
2500
|
), L = (N) => {
|
|
2494
|
-
const { checked:
|
|
2501
|
+
const { checked: U, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
|
|
2495
2502
|
if (k) {
|
|
2496
|
-
const p =
|
|
2503
|
+
const p = U ? [...r, k] : r.filter((X) => `${X.value}` !== A) ?? [];
|
|
2497
2504
|
a(p);
|
|
2498
2505
|
}
|
|
2499
2506
|
};
|
|
2500
|
-
return /* @__PURE__ */ l(
|
|
2507
|
+
return /* @__PURE__ */ l(Kr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ K("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
2501
2508
|
n || null,
|
|
2502
|
-
|
|
2509
|
+
C.map(({ group: N, items: U }) => /* @__PURE__ */ K("div", { className: "multi-select__group", children: [
|
|
2503
2510
|
_ ? /* @__PURE__ */ l("h5", { className: "multi-select__dropdown-header", children: N }) : null,
|
|
2504
|
-
/* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children:
|
|
2505
|
-
|
|
2511
|
+
/* @__PURE__ */ l("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: U.sort(i).sort(Eo(h)).map((A) => /* @__PURE__ */ l("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ l(
|
|
2512
|
+
xt,
|
|
2506
2513
|
{
|
|
2507
|
-
disabled:
|
|
2514
|
+
disabled: b.has(A.value),
|
|
2508
2515
|
label: A.label,
|
|
2509
2516
|
checked: v.has(A.value),
|
|
2510
2517
|
value: A.value,
|
|
@@ -2515,7 +2522,7 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2515
2522
|
] }, N)),
|
|
2516
2523
|
s ? /* @__PURE__ */ l("div", { className: "multi-select__footer", children: s }) : null
|
|
2517
2524
|
] }) });
|
|
2518
|
-
},
|
|
2525
|
+
}, Fo = ({
|
|
2519
2526
|
disabled: e,
|
|
2520
2527
|
selectedItems: r = [],
|
|
2521
2528
|
label: t,
|
|
@@ -2528,25 +2535,25 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2528
2535
|
dropdownFooter: c,
|
|
2529
2536
|
variant: v = "search"
|
|
2530
2537
|
}) => {
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2538
|
+
const b = Ot(() => {
|
|
2539
|
+
y(!1), C("");
|
|
2533
2540
|
});
|
|
2534
|
-
|
|
2535
|
-
|
|
2541
|
+
Dt(() => {
|
|
2542
|
+
y(!1), C("");
|
|
2536
2543
|
});
|
|
2537
|
-
const [h,
|
|
2544
|
+
const [h, y] = le(!1), [_, C] = le("");
|
|
2538
2545
|
_e(() => {
|
|
2539
|
-
h ||
|
|
2546
|
+
h || C("");
|
|
2540
2547
|
}, [h]);
|
|
2541
|
-
const [L, N] = le([]),
|
|
2548
|
+
const [L, N] = le([]), U = r || L, A = ($) => {
|
|
2542
2549
|
const J = Array.from(new Set($));
|
|
2543
2550
|
N(J), n && n(J);
|
|
2544
|
-
}, k = ke(), p = ke(), X =
|
|
2551
|
+
}, k = ke(), p = ke(), X = U.filter(
|
|
2545
2552
|
($) => s.some((J) => J.value === $.value)
|
|
2546
|
-
).map(($) => $.label).join(", ");
|
|
2547
|
-
return /* @__PURE__ */ l("div", { ref:
|
|
2553
|
+
).sort(it).map(($) => $.label).join(", ");
|
|
2554
|
+
return /* @__PURE__ */ l("div", { ref: b, children: /* @__PURE__ */ K("div", { className: "multi-select", children: [
|
|
2548
2555
|
v === "search" ? /* @__PURE__ */ l(
|
|
2549
|
-
|
|
2556
|
+
At,
|
|
2550
2557
|
{
|
|
2551
2558
|
externallyControlled: !0,
|
|
2552
2559
|
"aria-controls": k,
|
|
@@ -2557,9 +2564,9 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2557
2564
|
disabled: e,
|
|
2558
2565
|
autoComplete: "off",
|
|
2559
2566
|
onChange: ($) => {
|
|
2560
|
-
|
|
2567
|
+
C($), y(!0);
|
|
2561
2568
|
},
|
|
2562
|
-
onFocus: () =>
|
|
2569
|
+
onFocus: () => y(!0),
|
|
2563
2570
|
placeholder: a ?? "Search",
|
|
2564
2571
|
required: o,
|
|
2565
2572
|
type: "text",
|
|
@@ -2576,24 +2583,24 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2576
2583
|
"aria-expanded": h,
|
|
2577
2584
|
className: "multi-select__select-button",
|
|
2578
2585
|
onClick: () => {
|
|
2579
|
-
|
|
2586
|
+
y(($) => !$);
|
|
2580
2587
|
},
|
|
2581
|
-
children: /* @__PURE__ */ l("span", { className: "multi-select__condensed-text", children:
|
|
2588
|
+
children: /* @__PURE__ */ l("span", { className: "multi-select__condensed-text", children: U.length > 0 ? X : a ?? "Select items" })
|
|
2582
2589
|
}
|
|
2583
2590
|
),
|
|
2584
2591
|
/* @__PURE__ */ l(
|
|
2585
|
-
|
|
2592
|
+
So,
|
|
2586
2593
|
{
|
|
2587
2594
|
id: k,
|
|
2588
2595
|
isOpen: h,
|
|
2589
2596
|
items: _.length > 0 ? s.filter(
|
|
2590
2597
|
($) => $.label.toLowerCase().includes(_.toLowerCase())
|
|
2591
2598
|
) : s,
|
|
2592
|
-
selectedItems:
|
|
2599
|
+
selectedItems: U,
|
|
2593
2600
|
disabledItems: i,
|
|
2594
2601
|
header: f,
|
|
2595
2602
|
updateItems: A,
|
|
2596
|
-
footer: c || /* @__PURE__ */
|
|
2603
|
+
footer: c || /* @__PURE__ */ K(Ae, { children: [
|
|
2597
2604
|
/* @__PURE__ */ l(
|
|
2598
2605
|
pe,
|
|
2599
2606
|
{
|
|
@@ -2604,7 +2611,7 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2604
2611
|
(ee) => ee.value === J.value
|
|
2605
2612
|
)
|
|
2606
2613
|
);
|
|
2607
|
-
A([...
|
|
2614
|
+
A([...U, ...$]);
|
|
2608
2615
|
},
|
|
2609
2616
|
type: "button",
|
|
2610
2617
|
children: "Select all"
|
|
@@ -2615,7 +2622,7 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2615
2622
|
{
|
|
2616
2623
|
appearance: "link",
|
|
2617
2624
|
onClick: () => {
|
|
2618
|
-
const $ =
|
|
2625
|
+
const $ = U.filter(
|
|
2619
2626
|
(J) => i.some(
|
|
2620
2627
|
(ee) => ee.value === J.value
|
|
2621
2628
|
)
|
|
@@ -2630,7 +2637,7 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2630
2637
|
}
|
|
2631
2638
|
)
|
|
2632
2639
|
] }) });
|
|
2633
|
-
},
|
|
2640
|
+
}, jo = ({ value: e, unit: r }, {
|
|
2634
2641
|
binary: t = !1,
|
|
2635
2642
|
convertTo: n,
|
|
2636
2643
|
decimals: a = 2,
|
|
@@ -2639,36 +2646,37 @@ const bo = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), ho =
|
|
|
2639
2646
|
const s = e < 0, i = Math.abs(e);
|
|
2640
2647
|
if (i === 0)
|
|
2641
2648
|
return { value: 0, unit: n || "B" };
|
|
2642
|
-
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((
|
|
2643
|
-
let
|
|
2644
|
-
if (
|
|
2645
|
-
const
|
|
2646
|
-
|
|
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((C) => C === r) || 0, b = i * Math.pow(f, v), h = n ? c.findIndex((C) => C === n) : Math.floor(Math.log(b) / Math.log(f));
|
|
2650
|
+
let y = b / Math.pow(f, h);
|
|
2651
|
+
if (y % 1 !== 0) {
|
|
2652
|
+
const C = Math.pow(10, a);
|
|
2653
|
+
y = Math[o](y * C) / C;
|
|
2647
2654
|
}
|
|
2648
2655
|
return {
|
|
2649
|
-
value: s ? -
|
|
2656
|
+
value: s ? -y : y,
|
|
2650
2657
|
unit: c[h]
|
|
2651
2658
|
};
|
|
2652
2659
|
};
|
|
2653
2660
|
export {
|
|
2654
2661
|
Be as ContentSection,
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2662
|
+
Do as ExternalLink,
|
|
2663
|
+
_o as FileUpload,
|
|
2664
|
+
Io as FileUploadContainer,
|
|
2658
2665
|
ur as FormSection,
|
|
2659
2666
|
Wr as InputGroup,
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2667
|
+
Ur as MainToolbar,
|
|
2668
|
+
It as Meter,
|
|
2669
|
+
Fo as MultiSelect,
|
|
2670
|
+
So as MultiSelectDropdown,
|
|
2671
|
+
H as Navigation,
|
|
2672
|
+
tn as NavigationBar,
|
|
2673
|
+
Ao as NestedFormGroup,
|
|
2674
|
+
gn as Pagination,
|
|
2675
|
+
Po as PaginationContainer,
|
|
2676
|
+
kt as ProgressIndicator,
|
|
2677
|
+
Ro as Stepper,
|
|
2678
|
+
Oo as defaultFilledColors,
|
|
2679
|
+
jo as formatBytes,
|
|
2672
2680
|
ye as meterColor,
|
|
2673
2681
|
Ee as testIds
|
|
2674
2682
|
};
|