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