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