@canonical/maas-react-components 1.25.0 → 1.26.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 +634 -572
- package/dist/@canonical/maas-react-components.umd.js +14 -14
- package/dist/src/constants.d.ts +6 -0
- package/dist/src/lib/components/DynamicTable/DynamicTable.d.ts +26 -0
- package/dist/src/lib/components/DynamicTable/DynamicTable.stories.d.ts +5 -0
- package/dist/src/lib/components/DynamicTable/DynamicTable.test.d.ts +1 -0
- package/dist/src/lib/components/DynamicTable/index.d.ts +1 -0
- package/dist/src/lib/components/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as U, jsx as c, Fragment as de } from "react/jsx-runtime";
|
|
2
2
|
import * as oe from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useListener as
|
|
3
|
+
import mt, { useRef as we, useState as fe, useEffect as he, useCallback as Z, cloneElement as vt, createContext as yt, useId as ke, useContext as Mr, useMemo as se, useReducer as Lr, forwardRef as gt, useImperativeHandle as bt, Fragment as ht, useLayoutEffect as _t } from "react";
|
|
4
|
+
import { useListener as Et, Link as wt, Spinner as xt, Tooltip as St, Button as pe, Icon as Se, Row as Tt, Col as Ct, Input as Ot, Label as Dt, CheckboxInput as At, useClickOutside as Pt, useOnEscapePressed as Rt, SearchBox as Ft } from "@canonical/react-components";
|
|
5
5
|
function Br(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
@@ -41,9 +41,9 @@ var zr = { exports: {} };
|
|
|
41
41
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
42
42
|
})();
|
|
43
43
|
})(zr);
|
|
44
|
-
var
|
|
45
|
-
const L = /* @__PURE__ */ Br(
|
|
46
|
-
const
|
|
44
|
+
var It = zr.exports;
|
|
45
|
+
const L = /* @__PURE__ */ Br(It);
|
|
46
|
+
const be = {
|
|
47
47
|
caution: "#F99B11",
|
|
48
48
|
light: "#F7F7F7",
|
|
49
49
|
linkFaded: "#D3E4ED",
|
|
@@ -52,23 +52,23 @@ const ye = {
|
|
|
52
52
|
positiveFaded: "#B7CCB9",
|
|
53
53
|
positiveMid: "#4DAB4D",
|
|
54
54
|
positive: "#0E8420"
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
],
|
|
55
|
+
}, No = [
|
|
56
|
+
be.link,
|
|
57
|
+
be.positive,
|
|
58
|
+
be.negative,
|
|
59
|
+
be.caution
|
|
60
|
+
], jt = be.linkFaded, Wr = be.caution, tr = be.light, mr = 2, vr = 1, yr = (e, r) => {
|
|
61
61
|
var a, o;
|
|
62
62
|
const t = ((o = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : o.width) || 0;
|
|
63
63
|
return t > r * mr ? t / r : mr;
|
|
64
|
-
},
|
|
64
|
+
}, xe = {
|
|
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
|
+
}, Nt = ({
|
|
72
72
|
className: e,
|
|
73
73
|
children: r,
|
|
74
74
|
data: t,
|
|
@@ -77,29 +77,29 @@ const ye = {
|
|
|
77
77
|
size: o = "regular",
|
|
78
78
|
...s
|
|
79
79
|
}) => {
|
|
80
|
-
const i =
|
|
81
|
-
|
|
82
|
-
h(a === "segmented" ? yr(i,
|
|
83
|
-
}, [
|
|
84
|
-
const b =
|
|
85
|
-
h(yr(i,
|
|
86
|
-
}, [i,
|
|
87
|
-
return
|
|
80
|
+
const i = we(null), f = t == null ? void 0 : t.reduce((S, x) => S + x.value, 0), l = n || f, v = t.map((S) => S.value / l * 100), [g, h] = fe(0);
|
|
81
|
+
he(() => {
|
|
82
|
+
h(a === "segmented" ? yr(i, l) : 0);
|
|
83
|
+
}, [l, a]);
|
|
84
|
+
const b = Z(() => {
|
|
85
|
+
h(yr(i, l));
|
|
86
|
+
}, [i, l, h]);
|
|
87
|
+
return Et(window, b, "resize", !0, a === "segmented"), /* @__PURE__ */ U(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
className: L("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": xe.container,
|
|
95
95
|
ref: i,
|
|
96
96
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
97
|
+
/* @__PURE__ */ c(kt, { children: /* @__PURE__ */ c(
|
|
98
|
+
$t,
|
|
99
99
|
{
|
|
100
100
|
data: t,
|
|
101
101
|
datumWidths: v,
|
|
102
|
-
maximum:
|
|
102
|
+
maximum: l,
|
|
103
103
|
overColor: Wr,
|
|
104
104
|
segmentWidth: g,
|
|
105
105
|
separatorColor: tr
|
|
@@ -109,15 +109,15 @@ const ye = {
|
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
},
|
|
112
|
+
}, kt = ({ children: e }) => /* @__PURE__ */ c(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
115
|
className: "p-meter__bar",
|
|
116
|
-
"data-testid":
|
|
117
|
-
style: { backgroundColor:
|
|
116
|
+
"data-testid": xe.bar,
|
|
117
|
+
style: { backgroundColor: jt },
|
|
118
118
|
children: e
|
|
119
119
|
}
|
|
120
|
-
),
|
|
120
|
+
), $t = ({
|
|
121
121
|
data: e,
|
|
122
122
|
datumWidths: r,
|
|
123
123
|
maximum: t,
|
|
@@ -126,7 +126,7 @@ const ye = {
|
|
|
126
126
|
const a = () => (e == null ? void 0 : e.reduce((i, f) => i + f.value, 0)) > t, o = (i, f) => ({
|
|
127
127
|
backgroundColor: i.color,
|
|
128
128
|
left: `${r == null ? void 0 : r.reduce(
|
|
129
|
-
(
|
|
129
|
+
(l, v, g) => f > g ? l + v : l,
|
|
130
130
|
0
|
|
131
131
|
)}%`,
|
|
132
132
|
width: `${r[f]}%`
|
|
@@ -139,87 +139,87 @@ const ye = {
|
|
|
139
139
|
${tr} ${n}px
|
|
140
140
|
)`
|
|
141
141
|
});
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
a() ? /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ U(de, { children: [
|
|
143
|
+
a() ? /* @__PURE__ */ c(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
146
146
|
className: "p-meter__filled",
|
|
147
|
-
"data-testid":
|
|
147
|
+
"data-testid": xe.meteroverflow,
|
|
148
148
|
style: { backgroundColor: Wr, width: "100%" }
|
|
149
149
|
}
|
|
150
|
-
) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */
|
|
150
|
+
) : e == null ? void 0 : e.map((i, f) => /* @__PURE__ */ c(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
153
|
className: "p-meter__filled",
|
|
154
|
-
"data-testid":
|
|
154
|
+
"data-testid": xe.filled,
|
|
155
155
|
style: o(i, f)
|
|
156
156
|
},
|
|
157
157
|
`meter-${f}`
|
|
158
158
|
)),
|
|
159
|
-
n > 0 && /* @__PURE__ */
|
|
159
|
+
n > 0 && /* @__PURE__ */ c(
|
|
160
160
|
"div",
|
|
161
161
|
{
|
|
162
162
|
className: "p-meter__separators",
|
|
163
|
-
"data-testid":
|
|
163
|
+
"data-testid": xe.segments,
|
|
164
164
|
style: s()
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
] });
|
|
168
|
-
},
|
|
168
|
+
}, Mt = ({
|
|
169
169
|
className: e,
|
|
170
170
|
children: r
|
|
171
|
-
}) => /* @__PURE__ */
|
|
171
|
+
}) => /* @__PURE__ */ c(
|
|
172
172
|
"div",
|
|
173
173
|
{
|
|
174
174
|
className: L("p-meter__label", e),
|
|
175
|
-
"data-testid":
|
|
175
|
+
"data-testid": xe.label,
|
|
176
176
|
children: r
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
const
|
|
179
|
+
Nt.Label = Mt;
|
|
180
|
+
const ko = ({ children: e, to: r, ...t }) => /* @__PURE__ */ c(wt, { ...t, href: r, rel: "noreferrer noopener", target: "_blank", children: e });
|
|
181
|
+
const Lt = ({
|
|
182
182
|
percentComplete: e
|
|
183
|
-
}) => /* @__PURE__ */
|
|
183
|
+
}) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
|
|
184
184
|
e,
|
|
185
185
|
"% ",
|
|
186
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ c(xt, { className: "progress-indicator__spinner" })
|
|
187
187
|
] });
|
|
188
|
-
const
|
|
188
|
+
const Bt = ({
|
|
189
189
|
text: e,
|
|
190
190
|
children: r,
|
|
191
191
|
className: t,
|
|
192
192
|
isPending: n = !1
|
|
193
193
|
}) => {
|
|
194
194
|
const a = Math.floor(Math.random() * 750);
|
|
195
|
-
return n ? /* @__PURE__ */
|
|
195
|
+
return n ? /* @__PURE__ */ c(
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
"aria-label": "loading",
|
|
199
199
|
className: L("p-placeholder", t),
|
|
200
200
|
role: "progressbar",
|
|
201
201
|
style: { animationDelay: `${a}ms` },
|
|
202
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ c("span", { "aria-hidden": "true", children: e || r || "Loading" })
|
|
203
203
|
}
|
|
204
|
-
) : /* @__PURE__ */
|
|
205
|
-
},
|
|
204
|
+
) : /* @__PURE__ */ c(de, { children: r });
|
|
205
|
+
}, zt = ({ children: e }) => /* @__PURE__ */ c(de, { children: e }), Wt = ({
|
|
206
206
|
isCollapsed: e,
|
|
207
207
|
setIsCollapsed: r,
|
|
208
208
|
className: t
|
|
209
|
-
}) => /* @__PURE__ */
|
|
210
|
-
|
|
209
|
+
}) => /* @__PURE__ */ c(
|
|
210
|
+
St,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
|
-
message: /* @__PURE__ */
|
|
213
|
+
message: /* @__PURE__ */ U(de, { children: [
|
|
214
214
|
e ? "expand" : "collapse",
|
|
215
215
|
"( ",
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ c("code", { children: "[" }),
|
|
217
217
|
" )"
|
|
218
218
|
] }),
|
|
219
219
|
position: "right",
|
|
220
220
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
221
|
-
children: /* @__PURE__ */
|
|
222
|
-
|
|
221
|
+
children: /* @__PURE__ */ c(
|
|
222
|
+
pe,
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
@@ -230,25 +230,25 @@ const Po = ({
|
|
|
230
230
|
onClick: (n) => {
|
|
231
231
|
r(!e), n.stopPropagation(), n.currentTarget.blur();
|
|
232
232
|
},
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ c(Se, { light: !0, name: "sidebar-toggle" })
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), Yt = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-panel__content", children: /* @__PURE__ */ c("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), qt = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-panel__controls u-no-margin--top", children: e }), Ut = ({ children: e }) => /* @__PURE__ */ c("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ c("div", { className: "p-panel is-dark", children: e }) }), Kt = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-panel__footer", children: e }), Ht = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-panel__header", children: e }), Gt = ({ light: e = !0, name: r }) => /* @__PURE__ */ c(Se, { className: "p-side-navigation__icon", light: e, name: r }), Vt = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ c("li", { className: L("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Xt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ c("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Jt = ({
|
|
238
238
|
as: e,
|
|
239
239
|
...r
|
|
240
|
-
}) => /* @__PURE__ */
|
|
240
|
+
}) => /* @__PURE__ */ c(
|
|
241
241
|
e || "a",
|
|
242
242
|
{
|
|
243
243
|
className: L("p-side-navigation__link", r.className),
|
|
244
244
|
...r
|
|
245
245
|
}
|
|
246
|
-
),
|
|
246
|
+
), Zt = ({ children: e, className: r }) => /* @__PURE__ */ c("ul", { className: L("p-side-navigation__list", r), children: e }), Qt = ({
|
|
247
247
|
as: e,
|
|
248
248
|
children: r,
|
|
249
249
|
className: t,
|
|
250
250
|
...n
|
|
251
|
-
}) => /* @__PURE__ */
|
|
251
|
+
}) => /* @__PURE__ */ c(e || "a", { className: L("p-panel__logo", t), ...n, children: /* @__PURE__ */ c("div", { className: "p-navigation__tagged-logo", children: r }) }), en = ({ children: e }) => vt(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), rn = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ c(
|
|
252
252
|
"div",
|
|
253
253
|
{
|
|
254
254
|
className: L("p-panel__logo-name is-fading-when-collapsed", {
|
|
@@ -256,12 +256,12 @@ const Po = ({
|
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
258
258
|
}
|
|
259
|
-
),
|
|
259
|
+
), tn = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-navigation__logo-tag", children: e }), nn = ({ children: e }) => /* @__PURE__ */ c("span", { className: "p-panel__logo-text", children: e }), on = ({
|
|
260
260
|
children: e,
|
|
261
261
|
className: r,
|
|
262
262
|
onClick: t
|
|
263
|
-
}) => /* @__PURE__ */
|
|
264
|
-
|
|
263
|
+
}) => /* @__PURE__ */ c(
|
|
264
|
+
pe,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
267
267
|
className: L(
|
|
@@ -273,30 +273,30 @@ const Po = ({
|
|
|
273
273
|
},
|
|
274
274
|
children: e
|
|
275
275
|
}
|
|
276
|
-
),
|
|
277
|
-
const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */
|
|
278
|
-
H.Header =
|
|
279
|
-
H.Banner =
|
|
280
|
-
H.Drawer =
|
|
281
|
-
H.Controls =
|
|
282
|
-
H.CollapseToggle =
|
|
283
|
-
H.Content =
|
|
284
|
-
H.Footer =
|
|
285
|
-
H.List =
|
|
286
|
-
H.Item =
|
|
287
|
-
H.Link =
|
|
288
|
-
H.Text =
|
|
289
|
-
H.Icon =
|
|
290
|
-
H.Label =
|
|
291
|
-
H.Logo =
|
|
292
|
-
H.LogoTag =
|
|
293
|
-
H.LogoIcon =
|
|
294
|
-
H.LogoName =
|
|
295
|
-
H.LogoText =
|
|
296
|
-
|
|
297
|
-
const lr =
|
|
276
|
+
), an = ({ children: e }) => /* @__PURE__ */ c("span", { className: "p-side-navigation__text", children: e });
|
|
277
|
+
const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ c("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), sn = ({ children: e, className: r }) => /* @__PURE__ */ c("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ c("div", { className: L("p-panel is-dark", r), children: e }) });
|
|
278
|
+
H.Header = Ht;
|
|
279
|
+
H.Banner = zt;
|
|
280
|
+
H.Drawer = Ut;
|
|
281
|
+
H.Controls = qt;
|
|
282
|
+
H.CollapseToggle = Wt;
|
|
283
|
+
H.Content = Yt;
|
|
284
|
+
H.Footer = Kt;
|
|
285
|
+
H.List = Zt;
|
|
286
|
+
H.Item = Vt;
|
|
287
|
+
H.Link = Jt;
|
|
288
|
+
H.Text = an;
|
|
289
|
+
H.Icon = Gt;
|
|
290
|
+
H.Label = Xt;
|
|
291
|
+
H.Logo = Qt;
|
|
292
|
+
H.LogoTag = tn;
|
|
293
|
+
H.LogoIcon = en;
|
|
294
|
+
H.LogoName = rn;
|
|
295
|
+
H.LogoText = nn;
|
|
296
|
+
sn.MenuButton = on;
|
|
297
|
+
const lr = yt(null), Yr = ({ children: e }) => {
|
|
298
298
|
const r = ke();
|
|
299
|
-
return /* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ c(lr.Provider, { value: r, children: /* @__PURE__ */ c(
|
|
300
300
|
"div",
|
|
301
301
|
{
|
|
302
302
|
role: "group",
|
|
@@ -306,20 +306,20 @@ const lr = mt(null), Yr = ({ children: e }) => {
|
|
|
306
306
|
children: e
|
|
307
307
|
}
|
|
308
308
|
) });
|
|
309
|
-
},
|
|
309
|
+
}, cn = ({ children: e }) => {
|
|
310
310
|
const r = Mr(lr);
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
},
|
|
311
|
+
return /* @__PURE__ */ c("label", { id: `${r}_label`, children: e });
|
|
312
|
+
}, ln = ({ children: e }) => {
|
|
313
313
|
const r = Mr(lr);
|
|
314
|
-
return /* @__PURE__ */
|
|
314
|
+
return /* @__PURE__ */ c("p", { className: "p-form-help-text", id: `${r}_description`, children: e });
|
|
315
315
|
};
|
|
316
|
-
Yr.Label =
|
|
317
|
-
Yr.Description =
|
|
318
|
-
const ur = ({ children: e }) => /* @__PURE__ */
|
|
319
|
-
ur.Title =
|
|
320
|
-
ur.Description =
|
|
321
|
-
ur.Content =
|
|
322
|
-
function
|
|
316
|
+
Yr.Label = cn;
|
|
317
|
+
Yr.Description = ln;
|
|
318
|
+
const ur = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-form-section", children: e }), un = ({ children: e }) => /* @__PURE__ */ c("h5", { className: "p-form-section__title u-no-padding--top", children: e }), fn = ({ children: e }) => /* @__PURE__ */ c("p", { className: "p-form-help-text", children: e }), pn = ({ children: e }) => /* @__PURE__ */ c("div", { className: "p-form-section__content", children: e });
|
|
319
|
+
ur.Title = un;
|
|
320
|
+
ur.Description = fn;
|
|
321
|
+
ur.Content = pn;
|
|
322
|
+
function dn(e) {
|
|
323
323
|
const [r, t] = oe.useState(null), n = oe.useRef(null), a = oe.useCallback(() => {
|
|
324
324
|
if (e.current) {
|
|
325
325
|
const o = e.current.getBoundingClientRect();
|
|
@@ -337,23 +337,23 @@ function ln(e) {
|
|
|
337
337
|
}
|
|
338
338
|
const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
339
339
|
}]), Kr = ({ children: e }) => {
|
|
340
|
-
const r = oe.useRef(null), t =
|
|
341
|
-
return /* @__PURE__ */
|
|
340
|
+
const r = oe.useRef(null), t = dn(r), [n, a] = oe.useState(!1);
|
|
341
|
+
return /* @__PURE__ */ c(
|
|
342
342
|
"header",
|
|
343
343
|
{
|
|
344
344
|
className: L("main-toolbar", {
|
|
345
345
|
"main-toolbar--stacked": n
|
|
346
346
|
}),
|
|
347
347
|
ref: r,
|
|
348
|
-
children: /* @__PURE__ */
|
|
348
|
+
children: /* @__PURE__ */ c(qr.Provider, { value: t, children: /* @__PURE__ */ c(Ur.Provider, { value: [n, a], children: e }) })
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
|
-
},
|
|
351
|
+
}, mn = ({
|
|
352
352
|
as: e,
|
|
353
353
|
children: r,
|
|
354
354
|
className: t,
|
|
355
355
|
...n
|
|
356
|
-
}) => /* @__PURE__ */
|
|
356
|
+
}) => /* @__PURE__ */ c(
|
|
357
357
|
e || "h1",
|
|
358
358
|
{
|
|
359
359
|
className: L("main-toolbar__title p-heading--4", t),
|
|
@@ -361,12 +361,12 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
361
361
|
...n,
|
|
362
362
|
children: r
|
|
363
363
|
}
|
|
364
|
-
),
|
|
364
|
+
), vn = ({ children: e }) => {
|
|
365
365
|
const r = oe.useContext(qr), [t, n] = oe.useContext(Ur), a = oe.useRef(null);
|
|
366
366
|
return oe.useEffect(() => {
|
|
367
367
|
!a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
|
|
368
|
-
}, [n, r, a]), /* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */
|
|
368
|
+
}, [n, r, a]), /* @__PURE__ */ U(de, { children: [
|
|
369
|
+
/* @__PURE__ */ c(
|
|
370
370
|
"div",
|
|
371
371
|
{
|
|
372
372
|
"aria-hidden": "true",
|
|
@@ -376,7 +376,7 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
376
376
|
children: e
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ c(
|
|
380
380
|
"div",
|
|
381
381
|
{
|
|
382
382
|
className: L("main-toolbar__controls", {
|
|
@@ -387,8 +387,8 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
387
387
|
)
|
|
388
388
|
] });
|
|
389
389
|
};
|
|
390
|
-
Kr.Title =
|
|
391
|
-
Kr.Controls =
|
|
390
|
+
Kr.Title = mn;
|
|
391
|
+
Kr.Controls = vn;
|
|
392
392
|
const Be = ({
|
|
393
393
|
children: e,
|
|
394
394
|
className: r,
|
|
@@ -397,24 +397,24 @@ const Be = ({
|
|
|
397
397
|
...a
|
|
398
398
|
}) => {
|
|
399
399
|
const o = t || "section", s = L("content-section", r);
|
|
400
|
-
return /* @__PURE__ */
|
|
401
|
-
},
|
|
400
|
+
return /* @__PURE__ */ c(o, { ...a, className: s, children: /* @__PURE__ */ c(Tt, { children: /* @__PURE__ */ c(Ct, { size: n === "narrow" ? 6 : 12, children: e }) }) });
|
|
401
|
+
}, yn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ c(
|
|
402
402
|
t || "h1",
|
|
403
403
|
{
|
|
404
404
|
...n,
|
|
405
405
|
className: L("content-section__title p-heading--4", r),
|
|
406
406
|
children: e
|
|
407
407
|
}
|
|
408
|
-
),
|
|
409
|
-
Be.Title =
|
|
410
|
-
Be.Header =
|
|
411
|
-
Be.Content =
|
|
412
|
-
Be.Footer =
|
|
408
|
+
), gn = ({ children: e, className: r }) => /* @__PURE__ */ c("header", { className: L("content-section__header", r), children: e }), bn = ({ children: e, className: r }) => /* @__PURE__ */ c("div", { className: L("content-section__body", r), children: e }), hn = ({ children: e, className: r }) => /* @__PURE__ */ c("footer", { className: L("content-section__footer", r), children: e });
|
|
409
|
+
Be.Title = yn;
|
|
410
|
+
Be.Header = gn;
|
|
411
|
+
Be.Content = bn;
|
|
412
|
+
Be.Footer = hn;
|
|
413
413
|
const Hr = ({
|
|
414
414
|
children: e,
|
|
415
415
|
className: r,
|
|
416
416
|
isVisible: t
|
|
417
|
-
}) => /* @__PURE__ */
|
|
417
|
+
}) => /* @__PURE__ */ c(
|
|
418
418
|
"div",
|
|
419
419
|
{
|
|
420
420
|
className: L("fade-in--down", r),
|
|
@@ -422,11 +422,11 @@ const Hr = ({
|
|
|
422
422
|
style: { visibility: t ? "visible" : "hidden" },
|
|
423
423
|
children: e
|
|
424
424
|
}
|
|
425
|
-
),
|
|
425
|
+
), $o = ({
|
|
426
426
|
children: e,
|
|
427
427
|
...r
|
|
428
|
-
}) => /* @__PURE__ */
|
|
429
|
-
const
|
|
428
|
+
}) => /* @__PURE__ */ c(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ c("div", { className: "p-form__nested-group", ...r, children: e }) });
|
|
429
|
+
const _n = ({
|
|
430
430
|
className: e,
|
|
431
431
|
currentPage: r,
|
|
432
432
|
error: t,
|
|
@@ -436,28 +436,28 @@ const yn = ({
|
|
|
436
436
|
onNextClick: s,
|
|
437
437
|
onPreviousClick: i,
|
|
438
438
|
totalPages: f,
|
|
439
|
-
...
|
|
440
|
-
}) => /* @__PURE__ */
|
|
439
|
+
...l
|
|
440
|
+
}) => /* @__PURE__ */ c(
|
|
441
441
|
"nav",
|
|
442
442
|
{
|
|
443
|
-
"aria-label": (
|
|
443
|
+
"aria-label": (l == null ? void 0 : l["aria-label"]) || "pagination",
|
|
444
444
|
className: L("p-pagination", e),
|
|
445
|
-
children: /* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
|
|
445
|
+
children: /* @__PURE__ */ U("span", { className: "p-pagination--items", children: [
|
|
446
|
+
/* @__PURE__ */ c(
|
|
447
|
+
pe,
|
|
448
448
|
{
|
|
449
449
|
"aria-label": "Previous page",
|
|
450
450
|
className: "p-pagination__link--previous",
|
|
451
451
|
disabled: r === 1 || n,
|
|
452
452
|
onClick: i,
|
|
453
453
|
type: "button",
|
|
454
|
-
children: /* @__PURE__ */
|
|
454
|
+
children: /* @__PURE__ */ c(Se, { name: "chevron-down" })
|
|
455
455
|
}
|
|
456
456
|
),
|
|
457
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ c("strong", { children: "Page " }),
|
|
458
458
|
" ",
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
-
|
|
459
|
+
/* @__PURE__ */ c(
|
|
460
|
+
Ot,
|
|
461
461
|
{
|
|
462
462
|
"aria-label": "page number",
|
|
463
463
|
className: "p-pagination__input",
|
|
@@ -472,32 +472,32 @@ const yn = ({
|
|
|
472
472
|
}
|
|
473
473
|
),
|
|
474
474
|
" ",
|
|
475
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ U("strong", { className: "u-no-wrap", children: [
|
|
476
476
|
" of ",
|
|
477
477
|
f
|
|
478
478
|
] }),
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
|
|
479
|
+
/* @__PURE__ */ c(
|
|
480
|
+
pe,
|
|
481
481
|
{
|
|
482
482
|
"aria-label": "Next page",
|
|
483
483
|
className: "p-pagination__link--next",
|
|
484
484
|
disabled: r === f || n,
|
|
485
485
|
onClick: s,
|
|
486
486
|
type: "button",
|
|
487
|
-
children: /* @__PURE__ */
|
|
487
|
+
children: /* @__PURE__ */ c(Se, { name: "chevron-up" })
|
|
488
488
|
}
|
|
489
489
|
)
|
|
490
490
|
] })
|
|
491
491
|
}
|
|
492
|
-
),
|
|
492
|
+
), Mo = ({
|
|
493
493
|
currentPage: e,
|
|
494
494
|
disabled: r,
|
|
495
495
|
paginate: t,
|
|
496
496
|
totalPages: n
|
|
497
497
|
}) => {
|
|
498
|
-
const [a, o] =
|
|
499
|
-
return /* @__PURE__ */
|
|
500
|
-
|
|
498
|
+
const [a, o] = fe(e), [s, i] = fe("");
|
|
499
|
+
return /* @__PURE__ */ c(
|
|
500
|
+
_n,
|
|
501
501
|
{
|
|
502
502
|
currentPage: a,
|
|
503
503
|
error: s,
|
|
@@ -506,8 +506,8 @@ const yn = ({
|
|
|
506
506
|
o(e), i("");
|
|
507
507
|
},
|
|
508
508
|
onInputChange: (h) => {
|
|
509
|
-
const { value: b, valueAsNumber:
|
|
510
|
-
b ? (o(
|
|
509
|
+
const { value: b, valueAsNumber: S } = h.target;
|
|
510
|
+
b ? (o(S), S > n || S < 1 ? i(`${S} is not a valid page number.`) : (i(""), t(S))) : i("Enter a page number.");
|
|
511
511
|
},
|
|
512
512
|
onNextClick: () => {
|
|
513
513
|
o((h) => Number(h) + 1), t(Number(e) + 1);
|
|
@@ -519,9 +519,9 @@ const yn = ({
|
|
|
519
519
|
}
|
|
520
520
|
);
|
|
521
521
|
};
|
|
522
|
-
const
|
|
522
|
+
const Lo = ({ activeStep: e, items: r }) => /* @__PURE__ */ c("ol", { className: "stepper", children: r.map((t, n) => {
|
|
523
523
|
const a = n === e, o = n < e;
|
|
524
|
-
return /* @__PURE__ */
|
|
524
|
+
return /* @__PURE__ */ c("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ c(
|
|
525
525
|
"p",
|
|
526
526
|
{
|
|
527
527
|
"aria-label": o ? `${t} (completed)` : t,
|
|
@@ -543,19 +543,19 @@ var nr = { exports: {} }, je = { exports: {} }, I = {};
|
|
|
543
543
|
* LICENSE file in the root directory of this source tree.
|
|
544
544
|
*/
|
|
545
545
|
var gr;
|
|
546
|
-
function
|
|
546
|
+
function En() {
|
|
547
547
|
if (gr)
|
|
548
548
|
return I;
|
|
549
549
|
gr = 1;
|
|
550
|
-
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,
|
|
550
|
+
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, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
|
|
551
551
|
function A(p) {
|
|
552
552
|
if (typeof p == "object" && p !== null) {
|
|
553
|
-
var
|
|
554
|
-
switch (
|
|
553
|
+
var Q = p.$$typeof;
|
|
554
|
+
switch (Q) {
|
|
555
555
|
case r:
|
|
556
556
|
switch (p = p.type, p) {
|
|
557
557
|
case f:
|
|
558
|
-
case
|
|
558
|
+
case l:
|
|
559
559
|
case n:
|
|
560
560
|
case o:
|
|
561
561
|
case a:
|
|
@@ -565,23 +565,23 @@ function gn() {
|
|
|
565
565
|
switch (p = p && p.$$typeof, p) {
|
|
566
566
|
case i:
|
|
567
567
|
case v:
|
|
568
|
-
case
|
|
568
|
+
case S:
|
|
569
569
|
case b:
|
|
570
570
|
case s:
|
|
571
571
|
return p;
|
|
572
572
|
default:
|
|
573
|
-
return
|
|
573
|
+
return Q;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
case t:
|
|
577
|
-
return
|
|
577
|
+
return Q;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function k(p) {
|
|
582
|
-
return A(p) ===
|
|
582
|
+
return A(p) === l;
|
|
583
583
|
}
|
|
584
|
-
return I.AsyncMode = f, I.ConcurrentMode =
|
|
584
|
+
return I.AsyncMode = f, I.ConcurrentMode = l, I.ContextConsumer = i, I.ContextProvider = s, I.Element = r, I.ForwardRef = v, I.Fragment = n, I.Lazy = S, I.Memo = b, I.Portal = t, I.Profiler = o, I.StrictMode = a, I.Suspense = g, I.isAsyncMode = function(p) {
|
|
585
585
|
return k(p) || A(p) === f;
|
|
586
586
|
}, I.isConcurrentMode = k, I.isContextConsumer = function(p) {
|
|
587
587
|
return A(p) === i;
|
|
@@ -594,7 +594,7 @@ function gn() {
|
|
|
594
594
|
}, I.isFragment = function(p) {
|
|
595
595
|
return A(p) === n;
|
|
596
596
|
}, I.isLazy = function(p) {
|
|
597
|
-
return A(p) ===
|
|
597
|
+
return A(p) === S;
|
|
598
598
|
}, I.isMemo = function(p) {
|
|
599
599
|
return A(p) === b;
|
|
600
600
|
}, I.isPortal = function(p) {
|
|
@@ -606,7 +606,7 @@ function gn() {
|
|
|
606
606
|
}, I.isSuspense = function(p) {
|
|
607
607
|
return A(p) === g;
|
|
608
608
|
}, I.isValidElementType = function(p) {
|
|
609
|
-
return typeof p == "string" || typeof p == "function" || p === n || p ===
|
|
609
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === l || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === b || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === B || p.$$typeof === N || p.$$typeof === K || p.$$typeof === x);
|
|
610
610
|
}, I.typeOf = A, I;
|
|
611
611
|
}
|
|
612
612
|
var j = {};
|
|
@@ -619,36 +619,36 @@ var j = {};
|
|
|
619
619
|
* LICENSE file in the root directory of this source tree.
|
|
620
620
|
*/
|
|
621
621
|
var br;
|
|
622
|
-
function
|
|
622
|
+
function wn() {
|
|
623
623
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
624
|
-
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,
|
|
624
|
+
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, l = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, S = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, K = e ? Symbol.for("react.scope") : 60119;
|
|
625
625
|
function A(d) {
|
|
626
626
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
627
|
-
d === n || d ===
|
|
627
|
+
d === n || d === l || d === o || d === a || d === g || d === h || typeof d == "object" && d !== null && (d.$$typeof === S || d.$$typeof === b || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === B || d.$$typeof === N || d.$$typeof === K || d.$$typeof === x);
|
|
628
628
|
}
|
|
629
629
|
function k(d) {
|
|
630
630
|
if (typeof d == "object" && d !== null) {
|
|
631
631
|
var re = d.$$typeof;
|
|
632
632
|
switch (re) {
|
|
633
633
|
case r:
|
|
634
|
-
var
|
|
635
|
-
switch (
|
|
634
|
+
var ye = d.type;
|
|
635
|
+
switch (ye) {
|
|
636
636
|
case f:
|
|
637
|
-
case
|
|
637
|
+
case l:
|
|
638
638
|
case n:
|
|
639
639
|
case o:
|
|
640
640
|
case a:
|
|
641
641
|
case g:
|
|
642
|
-
return
|
|
642
|
+
return ye;
|
|
643
643
|
default:
|
|
644
|
-
var
|
|
645
|
-
switch (
|
|
644
|
+
var Oe = ye && ye.$$typeof;
|
|
645
|
+
switch (Oe) {
|
|
646
646
|
case i:
|
|
647
647
|
case v:
|
|
648
|
-
case
|
|
648
|
+
case S:
|
|
649
649
|
case b:
|
|
650
650
|
case s:
|
|
651
|
-
return
|
|
651
|
+
return Oe;
|
|
652
652
|
default:
|
|
653
653
|
return re;
|
|
654
654
|
}
|
|
@@ -658,12 +658,12 @@ function bn() {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
var p = f,
|
|
661
|
+
var p = f, Q = l, $ = i, X = s, ee = r, ce = v, me = n, ve = S, le = b, W = t, J = o, ne = a, ae = g, ue = !1;
|
|
662
662
|
function G(d) {
|
|
663
663
|
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), u(d) || k(d) === f;
|
|
664
664
|
}
|
|
665
665
|
function u(d) {
|
|
666
|
-
return k(d) ===
|
|
666
|
+
return k(d) === l;
|
|
667
667
|
}
|
|
668
668
|
function y(d) {
|
|
669
669
|
return k(d) === i;
|
|
@@ -671,7 +671,7 @@ function bn() {
|
|
|
671
671
|
function T(d) {
|
|
672
672
|
return k(d) === s;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function C(d) {
|
|
675
675
|
return typeof d == "object" && d !== null && d.$$typeof === r;
|
|
676
676
|
}
|
|
677
677
|
function E(d) {
|
|
@@ -681,7 +681,7 @@ function bn() {
|
|
|
681
681
|
return k(d) === n;
|
|
682
682
|
}
|
|
683
683
|
function w(d) {
|
|
684
|
-
return k(d) ===
|
|
684
|
+
return k(d) === S;
|
|
685
685
|
}
|
|
686
686
|
function O(d) {
|
|
687
687
|
return k(d) === b;
|
|
@@ -698,12 +698,12 @@ function bn() {
|
|
|
698
698
|
function q(d) {
|
|
699
699
|
return k(d) === g;
|
|
700
700
|
}
|
|
701
|
-
j.AsyncMode = p, j.ConcurrentMode =
|
|
701
|
+
j.AsyncMode = p, j.ConcurrentMode = Q, j.ContextConsumer = $, j.ContextProvider = X, j.Element = ee, j.ForwardRef = ce, j.Fragment = me, j.Lazy = ve, j.Memo = le, j.Portal = W, j.Profiler = J, j.StrictMode = ne, j.Suspense = ae, j.isAsyncMode = G, j.isConcurrentMode = u, j.isContextConsumer = y, j.isContextProvider = T, j.isElement = C, j.isForwardRef = E, j.isFragment = P, j.isLazy = w, j.isMemo = O, j.isPortal = R, j.isProfiler = F, j.isStrictMode = D, j.isSuspense = q, j.isValidElementType = A, j.typeOf = k;
|
|
702
702
|
}()), j;
|
|
703
703
|
}
|
|
704
704
|
var hr;
|
|
705
705
|
function Gr() {
|
|
706
|
-
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports =
|
|
706
|
+
return hr || (hr = 1, process.env.NODE_ENV === "production" ? je.exports = En() : je.exports = wn()), je.exports;
|
|
707
707
|
}
|
|
708
708
|
/*
|
|
709
709
|
object-assign
|
|
@@ -711,7 +711,7 @@ object-assign
|
|
|
711
711
|
@license MIT
|
|
712
712
|
*/
|
|
713
713
|
var Ve, _r;
|
|
714
|
-
function
|
|
714
|
+
function xn() {
|
|
715
715
|
if (_r)
|
|
716
716
|
return Ve;
|
|
717
717
|
_r = 1;
|
|
@@ -735,45 +735,45 @@ function hn() {
|
|
|
735
735
|
});
|
|
736
736
|
if (f.join("") !== "0123456789")
|
|
737
737
|
return !1;
|
|
738
|
-
var
|
|
738
|
+
var l = {};
|
|
739
739
|
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
740
|
-
|
|
741
|
-
}), Object.keys(Object.assign({},
|
|
740
|
+
l[v] = v;
|
|
741
|
+
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
742
742
|
} catch {
|
|
743
743
|
return !1;
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
return Ve = a() ? Object.assign : function(o, s) {
|
|
747
|
-
for (var i, f = n(o),
|
|
747
|
+
for (var i, f = n(o), l, v = 1; v < arguments.length; v++) {
|
|
748
748
|
i = Object(arguments[v]);
|
|
749
749
|
for (var g in i)
|
|
750
750
|
r.call(i, g) && (f[g] = i[g]);
|
|
751
751
|
if (e) {
|
|
752
|
-
|
|
753
|
-
for (var h = 0; h <
|
|
754
|
-
t.call(i,
|
|
752
|
+
l = e(i);
|
|
753
|
+
for (var h = 0; h < l.length; h++)
|
|
754
|
+
t.call(i, l[h]) && (f[l[h]] = i[l[h]]);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
return f;
|
|
758
758
|
}, Ve;
|
|
759
759
|
}
|
|
760
|
-
var
|
|
760
|
+
var Xe, Er;
|
|
761
761
|
function fr() {
|
|
762
762
|
if (Er)
|
|
763
|
-
return
|
|
763
|
+
return Xe;
|
|
764
764
|
Er = 1;
|
|
765
765
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
766
|
-
return
|
|
766
|
+
return Xe = e, Xe;
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var Je, wr;
|
|
769
769
|
function Vr() {
|
|
770
|
-
return wr || (wr = 1,
|
|
770
|
+
return wr || (wr = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
|
|
771
771
|
}
|
|
772
|
-
var
|
|
773
|
-
function
|
|
774
|
-
if (
|
|
775
|
-
return
|
|
776
|
-
|
|
772
|
+
var Ze, xr;
|
|
773
|
+
function Sn() {
|
|
774
|
+
if (xr)
|
|
775
|
+
return Ze;
|
|
776
|
+
xr = 1;
|
|
777
777
|
var e = function() {
|
|
778
778
|
};
|
|
779
779
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -787,7 +787,7 @@ function _n() {
|
|
|
787
787
|
}
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
|
-
function a(o, s, i, f,
|
|
790
|
+
function a(o, s, i, f, l) {
|
|
791
791
|
if (process.env.NODE_ENV !== "production") {
|
|
792
792
|
for (var v in o)
|
|
793
793
|
if (n(o, v)) {
|
|
@@ -800,14 +800,14 @@ function _n() {
|
|
|
800
800
|
throw h.name = "Invariant Violation", h;
|
|
801
801
|
}
|
|
802
802
|
g = o[v](s, v, f, i, null, r);
|
|
803
|
-
} catch (
|
|
804
|
-
g =
|
|
803
|
+
} catch (S) {
|
|
804
|
+
g = S;
|
|
805
805
|
}
|
|
806
806
|
if (g && !(g instanceof Error) && e(
|
|
807
807
|
(f || "React class") + ": type specification of " + i + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
808
808
|
), g instanceof Error && !(g.message in t)) {
|
|
809
809
|
t[g.message] = !0;
|
|
810
|
-
var b =
|
|
810
|
+
var b = l ? l() : "";
|
|
811
811
|
e(
|
|
812
812
|
"Failed " + i + " type: " + g.message + (b ?? "")
|
|
813
813
|
);
|
|
@@ -817,14 +817,14 @@ function _n() {
|
|
|
817
817
|
}
|
|
818
818
|
return a.resetWarningCache = function() {
|
|
819
819
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
820
|
-
},
|
|
820
|
+
}, Ze = a, Ze;
|
|
821
821
|
}
|
|
822
|
-
var Qe,
|
|
823
|
-
function
|
|
824
|
-
if (
|
|
822
|
+
var Qe, Sr;
|
|
823
|
+
function Tn() {
|
|
824
|
+
if (Sr)
|
|
825
825
|
return Qe;
|
|
826
|
-
|
|
827
|
-
var e = Gr(), r =
|
|
826
|
+
Sr = 1;
|
|
827
|
+
var e = Gr(), r = xn(), t = fr(), n = Vr(), a = Sn(), o = function() {
|
|
828
828
|
};
|
|
829
829
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
830
830
|
var f = "Warning: " + i;
|
|
@@ -838,9 +838,9 @@ function En() {
|
|
|
838
838
|
return null;
|
|
839
839
|
}
|
|
840
840
|
return Qe = function(i, f) {
|
|
841
|
-
var
|
|
841
|
+
var l = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
842
842
|
function g(u) {
|
|
843
|
-
var y = u && (
|
|
843
|
+
var y = u && (l && u[l] || u[v]);
|
|
844
844
|
if (typeof y == "function")
|
|
845
845
|
return y;
|
|
846
846
|
}
|
|
@@ -853,29 +853,29 @@ function En() {
|
|
|
853
853
|
object: N("object"),
|
|
854
854
|
string: N("string"),
|
|
855
855
|
symbol: N("symbol"),
|
|
856
|
-
any:
|
|
856
|
+
any: K(),
|
|
857
857
|
arrayOf: A,
|
|
858
858
|
element: k(),
|
|
859
859
|
elementType: p(),
|
|
860
|
-
instanceOf:
|
|
860
|
+
instanceOf: Q,
|
|
861
861
|
node: ce(),
|
|
862
|
-
objectOf:
|
|
862
|
+
objectOf: X,
|
|
863
863
|
oneOf: $,
|
|
864
864
|
oneOfType: ee,
|
|
865
|
-
shape:
|
|
865
|
+
shape: ve,
|
|
866
866
|
exact: le
|
|
867
867
|
};
|
|
868
|
-
function
|
|
868
|
+
function S(u, y) {
|
|
869
869
|
return u === y ? u !== 0 || 1 / u === 1 / y : u !== u && y !== y;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function x(u, y) {
|
|
872
872
|
this.message = u, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
873
873
|
}
|
|
874
|
-
|
|
874
|
+
x.prototype = Error.prototype;
|
|
875
875
|
function B(u) {
|
|
876
876
|
if (process.env.NODE_ENV !== "production")
|
|
877
877
|
var y = {}, T = 0;
|
|
878
|
-
function
|
|
878
|
+
function C(P, w, O, R, F, D, q) {
|
|
879
879
|
if (R = R || h, D = D || O, q !== t) {
|
|
880
880
|
if (f) {
|
|
881
881
|
var d = new Error(
|
|
@@ -890,17 +890,17 @@ function En() {
|
|
|
890
890
|
), y[re] = !0, T++);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
return w[O] == null ? P ? w[O] === null ? new
|
|
893
|
+
return w[O] == null ? P ? w[O] === null ? new x("The " + F + " `" + D + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new x("The " + F + " `" + D + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : u(w, O, R, F, D);
|
|
894
894
|
}
|
|
895
|
-
var E =
|
|
896
|
-
return E.isRequired =
|
|
895
|
+
var E = C.bind(null, !1);
|
|
896
|
+
return E.isRequired = C.bind(null, !0), E;
|
|
897
897
|
}
|
|
898
898
|
function N(u) {
|
|
899
|
-
function y(T,
|
|
900
|
-
var R = T[
|
|
899
|
+
function y(T, C, E, P, w, O) {
|
|
900
|
+
var R = T[C], F = ne(R);
|
|
901
901
|
if (F !== u) {
|
|
902
902
|
var D = ae(R);
|
|
903
|
-
return new
|
|
903
|
+
return new x(
|
|
904
904
|
"Invalid " + P + " `" + w + "` of type " + ("`" + D + "` supplied to `" + E + "`, expected ") + ("`" + u + "`."),
|
|
905
905
|
{ expectedType: u }
|
|
906
906
|
);
|
|
@@ -909,17 +909,17 @@ function En() {
|
|
|
909
909
|
}
|
|
910
910
|
return B(y);
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function K() {
|
|
913
913
|
return B(s);
|
|
914
914
|
}
|
|
915
915
|
function A(u) {
|
|
916
|
-
function y(T,
|
|
916
|
+
function y(T, C, E, P, w) {
|
|
917
917
|
if (typeof u != "function")
|
|
918
|
-
return new
|
|
919
|
-
var O = T[
|
|
918
|
+
return new x("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
919
|
+
var O = T[C];
|
|
920
920
|
if (!Array.isArray(O)) {
|
|
921
921
|
var R = ne(O);
|
|
922
|
-
return new
|
|
922
|
+
return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
|
|
923
923
|
}
|
|
924
924
|
for (var F = 0; F < O.length; F++) {
|
|
925
925
|
var D = u(O, F, E, P, w + "[" + F + "]", t);
|
|
@@ -931,32 +931,32 @@ function En() {
|
|
|
931
931
|
return B(y);
|
|
932
932
|
}
|
|
933
933
|
function k() {
|
|
934
|
-
function u(y, T,
|
|
934
|
+
function u(y, T, C, E, P) {
|
|
935
935
|
var w = y[T];
|
|
936
936
|
if (!i(w)) {
|
|
937
937
|
var O = ne(w);
|
|
938
|
-
return new
|
|
938
|
+
return new x("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
939
939
|
}
|
|
940
940
|
return null;
|
|
941
941
|
}
|
|
942
942
|
return B(u);
|
|
943
943
|
}
|
|
944
944
|
function p() {
|
|
945
|
-
function u(y, T,
|
|
945
|
+
function u(y, T, C, E, P) {
|
|
946
946
|
var w = y[T];
|
|
947
947
|
if (!e.isValidElementType(w)) {
|
|
948
948
|
var O = ne(w);
|
|
949
|
-
return new
|
|
949
|
+
return new x("Invalid " + E + " `" + P + "` of type " + ("`" + O + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
950
950
|
}
|
|
951
951
|
return null;
|
|
952
952
|
}
|
|
953
953
|
return B(u);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
function y(T,
|
|
957
|
-
if (!(T[
|
|
958
|
-
var O = u.name || h, R = G(T[
|
|
959
|
-
return new
|
|
955
|
+
function Q(u) {
|
|
956
|
+
function y(T, C, E, P, w) {
|
|
957
|
+
if (!(T[C] instanceof u)) {
|
|
958
|
+
var O = u.name || h, R = G(T[C]);
|
|
959
|
+
return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + O + "`."));
|
|
960
960
|
}
|
|
961
961
|
return null;
|
|
962
962
|
}
|
|
@@ -967,25 +967,25 @@ function En() {
|
|
|
967
967
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
968
968
|
"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])."
|
|
969
969
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
970
|
-
function y(T,
|
|
971
|
-
for (var O = T[
|
|
972
|
-
if (
|
|
970
|
+
function y(T, C, E, P, w) {
|
|
971
|
+
for (var O = T[C], R = 0; R < u.length; R++)
|
|
972
|
+
if (S(O, u[R]))
|
|
973
973
|
return null;
|
|
974
974
|
var F = JSON.stringify(u, function(q, d) {
|
|
975
975
|
var re = ae(d);
|
|
976
976
|
return re === "symbol" ? String(d) : d;
|
|
977
977
|
});
|
|
978
|
-
return new
|
|
978
|
+
return new x("Invalid " + P + " `" + w + "` of value `" + String(O) + "` " + ("supplied to `" + E + "`, expected one of " + F + "."));
|
|
979
979
|
}
|
|
980
980
|
return B(y);
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
function y(T,
|
|
982
|
+
function X(u) {
|
|
983
|
+
function y(T, C, E, P, w) {
|
|
984
984
|
if (typeof u != "function")
|
|
985
|
-
return new
|
|
986
|
-
var O = T[
|
|
985
|
+
return new x("Property `" + w + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
986
|
+
var O = T[C], R = ne(O);
|
|
987
987
|
if (R !== "object")
|
|
988
|
-
return new
|
|
988
|
+
return new x("Invalid " + P + " `" + w + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an object."));
|
|
989
989
|
for (var F in O)
|
|
990
990
|
if (n(O, F)) {
|
|
991
991
|
var D = u(O, F, E, P, w + "." + F, t);
|
|
@@ -1006,7 +1006,7 @@ function En() {
|
|
|
1006
1006
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(T) + " at index " + y + "."
|
|
1007
1007
|
), s;
|
|
1008
1008
|
}
|
|
1009
|
-
function
|
|
1009
|
+
function C(E, P, w, O, R) {
|
|
1010
1010
|
for (var F = [], D = 0; D < u.length; D++) {
|
|
1011
1011
|
var q = u[D], d = q(E, P, w, O, R, t);
|
|
1012
1012
|
if (d == null)
|
|
@@ -1014,30 +1014,30 @@ function En() {
|
|
|
1014
1014
|
d.data && n(d.data, "expectedType") && F.push(d.data.expectedType);
|
|
1015
1015
|
}
|
|
1016
1016
|
var re = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
1017
|
-
return new
|
|
1017
|
+
return new x("Invalid " + O + " `" + R + "` supplied to " + ("`" + w + "`" + re + "."));
|
|
1018
1018
|
}
|
|
1019
|
-
return B(
|
|
1019
|
+
return B(C);
|
|
1020
1020
|
}
|
|
1021
1021
|
function ce() {
|
|
1022
|
-
function u(y, T,
|
|
1023
|
-
return W(y[T]) ? null : new
|
|
1022
|
+
function u(y, T, C, E, P) {
|
|
1023
|
+
return W(y[T]) ? null : new x("Invalid " + E + " `" + P + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
1024
1024
|
}
|
|
1025
1025
|
return B(u);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return new
|
|
1029
|
-
(u || "React class") + ": " + y + " type `" + T + "." +
|
|
1027
|
+
function me(u, y, T, C, E) {
|
|
1028
|
+
return new x(
|
|
1029
|
+
(u || "React class") + ": " + y + " type `" + T + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
1030
1030
|
);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
function y(T,
|
|
1034
|
-
var O = T[
|
|
1032
|
+
function ve(u) {
|
|
1033
|
+
function y(T, C, E, P, w) {
|
|
1034
|
+
var O = T[C], R = ne(O);
|
|
1035
1035
|
if (R !== "object")
|
|
1036
|
-
return new
|
|
1036
|
+
return new x("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1037
1037
|
for (var F in u) {
|
|
1038
1038
|
var D = u[F];
|
|
1039
1039
|
if (typeof D != "function")
|
|
1040
|
-
return
|
|
1040
|
+
return me(E, P, w, F, ae(D));
|
|
1041
1041
|
var q = D(O, F, E, P, w + "." + F, t);
|
|
1042
1042
|
if (q)
|
|
1043
1043
|
return q;
|
|
@@ -1047,18 +1047,18 @@ function En() {
|
|
|
1047
1047
|
return B(y);
|
|
1048
1048
|
}
|
|
1049
1049
|
function le(u) {
|
|
1050
|
-
function y(T,
|
|
1051
|
-
var O = T[
|
|
1050
|
+
function y(T, C, E, P, w) {
|
|
1051
|
+
var O = T[C], R = ne(O);
|
|
1052
1052
|
if (R !== "object")
|
|
1053
|
-
return new
|
|
1054
|
-
var F = r({}, T[
|
|
1053
|
+
return new x("Invalid " + P + " `" + w + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1054
|
+
var F = r({}, T[C], u);
|
|
1055
1055
|
for (var D in F) {
|
|
1056
1056
|
var q = u[D];
|
|
1057
1057
|
if (n(u, D) && typeof q != "function")
|
|
1058
|
-
return
|
|
1058
|
+
return me(E, P, w, D, ae(q));
|
|
1059
1059
|
if (!q)
|
|
1060
|
-
return new
|
|
1061
|
-
"Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[
|
|
1060
|
+
return new x(
|
|
1061
|
+
"Invalid " + P + " `" + w + "` key `" + D + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[C], null, " ") + `
|
|
1062
1062
|
Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
1063
1063
|
);
|
|
1064
1064
|
var d = q(O, D, E, P, w + "." + D, t);
|
|
@@ -1084,14 +1084,14 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1084
1084
|
return !0;
|
|
1085
1085
|
var y = g(u);
|
|
1086
1086
|
if (y) {
|
|
1087
|
-
var T = y.call(u),
|
|
1087
|
+
var T = y.call(u), C;
|
|
1088
1088
|
if (y !== u.entries) {
|
|
1089
|
-
for (; !(
|
|
1090
|
-
if (!W(
|
|
1089
|
+
for (; !(C = T.next()).done; )
|
|
1090
|
+
if (!W(C.value))
|
|
1091
1091
|
return !1;
|
|
1092
1092
|
} else
|
|
1093
|
-
for (; !(
|
|
1094
|
-
var E =
|
|
1093
|
+
for (; !(C = T.next()).done; ) {
|
|
1094
|
+
var E = C.value;
|
|
1095
1095
|
if (E && !W(E[1]))
|
|
1096
1096
|
return !1;
|
|
1097
1097
|
}
|
|
@@ -1102,12 +1102,12 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1102
1102
|
return !1;
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1105
|
+
function J(u, y) {
|
|
1106
1106
|
return u === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1107
1107
|
}
|
|
1108
1108
|
function ne(u) {
|
|
1109
1109
|
var y = typeof u;
|
|
1110
|
-
return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" :
|
|
1110
|
+
return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : J(y, u) ? "symbol" : y;
|
|
1111
1111
|
}
|
|
1112
1112
|
function ae(u) {
|
|
1113
1113
|
if (typeof u > "u" || u === null)
|
|
@@ -1142,7 +1142,7 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1142
1142
|
}, Qe;
|
|
1143
1143
|
}
|
|
1144
1144
|
var er, Tr;
|
|
1145
|
-
function
|
|
1145
|
+
function Cn() {
|
|
1146
1146
|
if (Tr)
|
|
1147
1147
|
return er;
|
|
1148
1148
|
Tr = 1;
|
|
@@ -1152,7 +1152,7 @@ function wn() {
|
|
|
1152
1152
|
function t() {
|
|
1153
1153
|
}
|
|
1154
1154
|
return t.resetWarningCache = r, er = function() {
|
|
1155
|
-
function n(s, i, f,
|
|
1155
|
+
function n(s, i, f, l, v, g) {
|
|
1156
1156
|
if (g !== e) {
|
|
1157
1157
|
var h = new Error(
|
|
1158
1158
|
"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"
|
|
@@ -1191,13 +1191,13 @@ function wn() {
|
|
|
1191
1191
|
}, er;
|
|
1192
1192
|
}
|
|
1193
1193
|
if (process.env.NODE_ENV !== "production") {
|
|
1194
|
-
var
|
|
1195
|
-
nr.exports =
|
|
1194
|
+
var On = Gr(), Dn = !0;
|
|
1195
|
+
nr.exports = Tn()(On.isElement, Dn);
|
|
1196
1196
|
} else
|
|
1197
|
-
nr.exports =
|
|
1198
|
-
var
|
|
1199
|
-
const M = /* @__PURE__ */ Br(
|
|
1200
|
-
function
|
|
1197
|
+
nr.exports = Cn()();
|
|
1198
|
+
var An = nr.exports;
|
|
1199
|
+
const M = /* @__PURE__ */ Br(An);
|
|
1200
|
+
function Te(e, r, t, n) {
|
|
1201
1201
|
function a(o) {
|
|
1202
1202
|
return o instanceof t ? o : new t(function(s) {
|
|
1203
1203
|
s(o);
|
|
@@ -1206,25 +1206,25 @@ function Ce(e, r, t, n) {
|
|
|
1206
1206
|
return new (t || (t = Promise))(function(o, s) {
|
|
1207
1207
|
function i(v) {
|
|
1208
1208
|
try {
|
|
1209
|
-
|
|
1209
|
+
l(n.next(v));
|
|
1210
1210
|
} catch (g) {
|
|
1211
1211
|
s(g);
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
function f(v) {
|
|
1215
1215
|
try {
|
|
1216
|
-
|
|
1216
|
+
l(n.throw(v));
|
|
1217
1217
|
} catch (g) {
|
|
1218
1218
|
s(g);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function l(v) {
|
|
1222
1222
|
v.done ? o(v.value) : a(v.value).then(i, f);
|
|
1223
1223
|
}
|
|
1224
|
-
|
|
1224
|
+
l((n = n.apply(e, r || [])).next());
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Ce(e, r) {
|
|
1228
1228
|
var t = { label: 0, sent: function() {
|
|
1229
1229
|
if (o[0] & 1)
|
|
1230
1230
|
throw o[1];
|
|
@@ -1233,63 +1233,63 @@ function Te(e, r) {
|
|
|
1233
1233
|
return s = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1234
1234
|
return this;
|
|
1235
1235
|
}), s;
|
|
1236
|
-
function i(
|
|
1236
|
+
function i(l) {
|
|
1237
1237
|
return function(v) {
|
|
1238
|
-
return f([
|
|
1238
|
+
return f([l, v]);
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
|
-
function f(
|
|
1241
|
+
function f(l) {
|
|
1242
1242
|
if (n)
|
|
1243
1243
|
throw new TypeError("Generator is already executing.");
|
|
1244
|
-
for (; s && (s = 0,
|
|
1244
|
+
for (; s && (s = 0, l[0] && (t = 0)), t; )
|
|
1245
1245
|
try {
|
|
1246
|
-
if (n = 1, a && (o =
|
|
1246
|
+
if (n = 1, a && (o = l[0] & 2 ? a.return : l[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, l[1])).done)
|
|
1247
1247
|
return o;
|
|
1248
|
-
switch (a = 0, o && (
|
|
1248
|
+
switch (a = 0, o && (l = [l[0] & 2, o.value]), l[0]) {
|
|
1249
1249
|
case 0:
|
|
1250
1250
|
case 1:
|
|
1251
|
-
o =
|
|
1251
|
+
o = l;
|
|
1252
1252
|
break;
|
|
1253
1253
|
case 4:
|
|
1254
|
-
return t.label++, { value:
|
|
1254
|
+
return t.label++, { value: l[1], done: !1 };
|
|
1255
1255
|
case 5:
|
|
1256
|
-
t.label++, a =
|
|
1256
|
+
t.label++, a = l[1], l = [0];
|
|
1257
1257
|
continue;
|
|
1258
1258
|
case 7:
|
|
1259
|
-
|
|
1259
|
+
l = t.ops.pop(), t.trys.pop();
|
|
1260
1260
|
continue;
|
|
1261
1261
|
default:
|
|
1262
|
-
if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (
|
|
1262
|
+
if (o = t.trys, !(o = o.length > 0 && o[o.length - 1]) && (l[0] === 6 || l[0] === 2)) {
|
|
1263
1263
|
t = 0;
|
|
1264
1264
|
continue;
|
|
1265
1265
|
}
|
|
1266
|
-
if (
|
|
1267
|
-
t.label =
|
|
1266
|
+
if (l[0] === 3 && (!o || l[1] > o[0] && l[1] < o[3])) {
|
|
1267
|
+
t.label = l[1];
|
|
1268
1268
|
break;
|
|
1269
1269
|
}
|
|
1270
|
-
if (
|
|
1271
|
-
t.label = o[1], o =
|
|
1270
|
+
if (l[0] === 6 && t.label < o[1]) {
|
|
1271
|
+
t.label = o[1], o = l;
|
|
1272
1272
|
break;
|
|
1273
1273
|
}
|
|
1274
1274
|
if (o && t.label < o[2]) {
|
|
1275
|
-
t.label = o[2], t.ops.push(
|
|
1275
|
+
t.label = o[2], t.ops.push(l);
|
|
1276
1276
|
break;
|
|
1277
1277
|
}
|
|
1278
1278
|
o[2] && t.ops.pop(), t.trys.pop();
|
|
1279
1279
|
continue;
|
|
1280
1280
|
}
|
|
1281
|
-
|
|
1281
|
+
l = r.call(e, t);
|
|
1282
1282
|
} catch (v) {
|
|
1283
|
-
|
|
1283
|
+
l = [6, v], a = 0;
|
|
1284
1284
|
} finally {
|
|
1285
1285
|
n = o = 0;
|
|
1286
1286
|
}
|
|
1287
|
-
if (
|
|
1288
|
-
throw
|
|
1289
|
-
return { value:
|
|
1287
|
+
if (l[0] & 5)
|
|
1288
|
+
throw l[1];
|
|
1289
|
+
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
1290
1290
|
}
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Cr(e, r) {
|
|
1293
1293
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
|
1294
1294
|
if (!t)
|
|
1295
1295
|
return e;
|
|
@@ -1315,7 +1315,7 @@ function Or(e, r, t) {
|
|
|
1315
1315
|
(o || !(n in r)) && (o || (o = Array.prototype.slice.call(r, 0, n)), o[n] = r[n]);
|
|
1316
1316
|
return e.concat(o || Array.prototype.slice.call(r));
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1318
|
+
var Pn = /* @__PURE__ */ new Map([
|
|
1319
1319
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
1320
1320
|
["aac", "audio/aac"],
|
|
1321
1321
|
["abw", "application/x-abiword"],
|
|
@@ -1400,7 +1400,7 @@ var xn = /* @__PURE__ */ new Map([
|
|
|
1400
1400
|
["msg", "application/vnd.ms-outlook"]
|
|
1401
1401
|
]);
|
|
1402
1402
|
function Pe(e, r) {
|
|
1403
|
-
var t =
|
|
1403
|
+
var t = Rn(e);
|
|
1404
1404
|
if (typeof t.path != "string") {
|
|
1405
1405
|
var n = e.webkitRelativePath;
|
|
1406
1406
|
Object.defineProperty(t, "path", {
|
|
@@ -1412,10 +1412,10 @@ function Pe(e, r) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return t;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Rn(e) {
|
|
1416
1416
|
var r = e.name, t = r && r.lastIndexOf(".") !== -1;
|
|
1417
1417
|
if (t && !e.type) {
|
|
1418
|
-
var n = r.split(".").pop().toLowerCase(), a =
|
|
1418
|
+
var n = r.split(".").pop().toLowerCase(), a = Pn.get(n);
|
|
1419
1419
|
a && Object.defineProperty(e, "type", {
|
|
1420
1420
|
value: a,
|
|
1421
1421
|
writable: !1,
|
|
@@ -1425,39 +1425,39 @@ function On(e) {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return e;
|
|
1427
1427
|
}
|
|
1428
|
-
var
|
|
1428
|
+
var Fn = [
|
|
1429
1429
|
// Thumbnail cache files for macOS and Windows
|
|
1430
1430
|
".DS_Store",
|
|
1431
1431
|
"Thumbs.db"
|
|
1432
1432
|
// Windows
|
|
1433
1433
|
];
|
|
1434
|
-
function
|
|
1435
|
-
return
|
|
1436
|
-
return
|
|
1437
|
-
return $e(e) &&
|
|
1434
|
+
function In(e) {
|
|
1435
|
+
return Te(this, void 0, void 0, function() {
|
|
1436
|
+
return Ce(this, function(r) {
|
|
1437
|
+
return $e(e) && jn(e.dataTransfer) ? [2, Mn(e.dataTransfer, e.type)] : Nn(e) ? [2, kn(e)] : Array.isArray(e) && e.every(function(t) {
|
|
1438
1438
|
return "getFile" in t && typeof t.getFile == "function";
|
|
1439
|
-
}) ? [2,
|
|
1439
|
+
}) ? [2, $n(e)] : [2, []];
|
|
1440
1440
|
});
|
|
1441
1441
|
});
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function jn(e) {
|
|
1444
1444
|
return $e(e);
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function Nn(e) {
|
|
1447
1447
|
return $e(e) && $e(e.target);
|
|
1448
1448
|
}
|
|
1449
1449
|
function $e(e) {
|
|
1450
1450
|
return typeof e == "object" && e !== null;
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function kn(e) {
|
|
1453
1453
|
return or(e.target.files).map(function(r) {
|
|
1454
1454
|
return Pe(r);
|
|
1455
1455
|
});
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return
|
|
1457
|
+
function $n(e) {
|
|
1458
|
+
return Te(this, void 0, void 0, function() {
|
|
1459
1459
|
var r;
|
|
1460
|
-
return
|
|
1460
|
+
return Ce(this, function(t) {
|
|
1461
1461
|
switch (t.label) {
|
|
1462
1462
|
case 0:
|
|
1463
1463
|
return [4, Promise.all(e.map(function(n) {
|
|
@@ -1471,17 +1471,17 @@ function In(e) {
|
|
|
1471
1471
|
});
|
|
1472
1472
|
});
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return
|
|
1474
|
+
function Mn(e, r) {
|
|
1475
|
+
return Te(this, void 0, void 0, function() {
|
|
1476
1476
|
var t, n;
|
|
1477
|
-
return
|
|
1477
|
+
return Ce(this, function(a) {
|
|
1478
1478
|
switch (a.label) {
|
|
1479
1479
|
case 0:
|
|
1480
1480
|
return e.items ? (t = or(e.items).filter(function(o) {
|
|
1481
1481
|
return o.kind === "file";
|
|
1482
|
-
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(
|
|
1482
|
+
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(Ln))]) : [3, 2];
|
|
1483
1483
|
case 1:
|
|
1484
|
-
return n = a.sent(), [2, Dr(
|
|
1484
|
+
return n = a.sent(), [2, Dr(Xr(n))];
|
|
1485
1485
|
case 2:
|
|
1486
1486
|
return [2, Dr(or(e.files).map(function(o) {
|
|
1487
1487
|
return Pe(o);
|
|
@@ -1492,7 +1492,7 @@ function jn(e, r) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
function Dr(e) {
|
|
1494
1494
|
return e.filter(function(r) {
|
|
1495
|
-
return
|
|
1495
|
+
return Fn.indexOf(r.name) === -1;
|
|
1496
1496
|
});
|
|
1497
1497
|
}
|
|
1498
1498
|
function or(e) {
|
|
@@ -1504,15 +1504,15 @@ function or(e) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
return r;
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Ln(e) {
|
|
1508
1508
|
if (typeof e.webkitGetAsEntry != "function")
|
|
1509
1509
|
return Ar(e);
|
|
1510
1510
|
var r = e.webkitGetAsEntry();
|
|
1511
|
-
return r && r.isDirectory ?
|
|
1511
|
+
return r && r.isDirectory ? Jr(r) : Ar(e);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function Xr(e) {
|
|
1514
1514
|
return e.reduce(function(r, t) {
|
|
1515
|
-
return Or(Or([],
|
|
1515
|
+
return Or(Or([], Cr(r), !1), Cr(Array.isArray(t) ? Xr(t) : [t]), !1);
|
|
1516
1516
|
}, []);
|
|
1517
1517
|
}
|
|
1518
1518
|
function Ar(e) {
|
|
@@ -1522,23 +1522,23 @@ function Ar(e) {
|
|
|
1522
1522
|
var t = Pe(r);
|
|
1523
1523
|
return Promise.resolve(t);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1527
|
-
return
|
|
1528
|
-
return [2, e.isDirectory ?
|
|
1525
|
+
function Bn(e) {
|
|
1526
|
+
return Te(this, void 0, void 0, function() {
|
|
1527
|
+
return Ce(this, function(r) {
|
|
1528
|
+
return [2, e.isDirectory ? Jr(e) : zn(e)];
|
|
1529
1529
|
});
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function Jr(e) {
|
|
1533
1533
|
var r = e.createReader();
|
|
1534
1534
|
return new Promise(function(t, n) {
|
|
1535
1535
|
var a = [];
|
|
1536
1536
|
function o() {
|
|
1537
1537
|
var s = this;
|
|
1538
1538
|
r.readEntries(function(i) {
|
|
1539
|
-
return
|
|
1540
|
-
var f,
|
|
1541
|
-
return
|
|
1539
|
+
return Te(s, void 0, void 0, function() {
|
|
1540
|
+
var f, l, v;
|
|
1541
|
+
return Ce(this, function(g) {
|
|
1542
1542
|
switch (g.label) {
|
|
1543
1543
|
case 0:
|
|
1544
1544
|
if (i.length)
|
|
@@ -1549,11 +1549,11 @@ function Zr(e) {
|
|
|
1549
1549
|
case 2:
|
|
1550
1550
|
return f = g.sent(), t(f), [3, 4];
|
|
1551
1551
|
case 3:
|
|
1552
|
-
return
|
|
1552
|
+
return l = g.sent(), n(l), [3, 4];
|
|
1553
1553
|
case 4:
|
|
1554
1554
|
return [3, 6];
|
|
1555
1555
|
case 5:
|
|
1556
|
-
v = Promise.all(i.map(
|
|
1556
|
+
v = Promise.all(i.map(Bn)), a.push(v), o(), g.label = 6;
|
|
1557
1557
|
case 6:
|
|
1558
1558
|
return [
|
|
1559
1559
|
2
|
|
@@ -1569,9 +1569,9 @@ function Zr(e) {
|
|
|
1569
1569
|
o();
|
|
1570
1570
|
});
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1573
|
-
return
|
|
1574
|
-
return
|
|
1572
|
+
function zn(e) {
|
|
1573
|
+
return Te(this, void 0, void 0, function() {
|
|
1574
|
+
return Ce(this, function(r) {
|
|
1575
1575
|
return [2, new Promise(function(t, n) {
|
|
1576
1576
|
e.file(function(a) {
|
|
1577
1577
|
var o = Pe(a, e.fullPath);
|
|
@@ -1583,7 +1583,7 @@ function $n(e) {
|
|
|
1583
1583
|
});
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
|
-
var
|
|
1586
|
+
var Wn = function(e, r) {
|
|
1587
1587
|
if (e && r) {
|
|
1588
1588
|
var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", a = (e.type || "").toLowerCase(), o = a.replace(/\/.*$/, "");
|
|
1589
1589
|
return t.some(function(s) {
|
|
@@ -1594,17 +1594,17 @@ var Mn = function(e, r) {
|
|
|
1594
1594
|
return !0;
|
|
1595
1595
|
};
|
|
1596
1596
|
function Pr(e) {
|
|
1597
|
-
return
|
|
1597
|
+
return Un(e) || qn(e) || Qr(e) || Yn();
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Yn() {
|
|
1600
1600
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1601
1601
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function qn(e) {
|
|
1604
1604
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
1605
1605
|
return Array.from(e);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function Un(e) {
|
|
1608
1608
|
if (Array.isArray(e))
|
|
1609
1609
|
return ar(e);
|
|
1610
1610
|
}
|
|
@@ -1622,20 +1622,20 @@ function Fr(e) {
|
|
|
1622
1622
|
for (var r = 1; r < arguments.length; r++) {
|
|
1623
1623
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
1624
1624
|
r % 2 ? Rr(Object(t), !0).forEach(function(n) {
|
|
1625
|
-
|
|
1625
|
+
Zr(e, n, t[n]);
|
|
1626
1626
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Rr(Object(t)).forEach(function(n) {
|
|
1627
1627
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1628
1628
|
});
|
|
1629
1629
|
}
|
|
1630
1630
|
return e;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function Zr(e, r, t) {
|
|
1633
1633
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
1634
1634
|
}
|
|
1635
1635
|
function Ae(e, r) {
|
|
1636
|
-
return
|
|
1636
|
+
return Gn(e) || Hn(e, r) || Qr(e, r) || Kn();
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function Kn() {
|
|
1639
1639
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1640
1640
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1641
1641
|
}
|
|
@@ -1656,7 +1656,7 @@ function ar(e, r) {
|
|
|
1656
1656
|
n[t] = e[t];
|
|
1657
1657
|
return n;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function Hn(e, r) {
|
|
1660
1660
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1661
1661
|
if (t != null) {
|
|
1662
1662
|
var n = [], a = !0, o = !1, s, i;
|
|
@@ -1676,58 +1676,58 @@ function Yn(e, r) {
|
|
|
1676
1676
|
return n;
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function Gn(e) {
|
|
1680
1680
|
if (Array.isArray(e))
|
|
1681
1681
|
return e;
|
|
1682
1682
|
}
|
|
1683
|
-
var
|
|
1683
|
+
var Vn = "file-invalid-type", Xn = "file-too-large", Jn = "file-too-small", Zn = "too-many-files", Qn = function(r) {
|
|
1684
1684
|
r = Array.isArray(r) && r.length === 1 ? r[0] : r;
|
|
1685
1685
|
var t = Array.isArray(r) ? "one of ".concat(r.join(", ")) : r;
|
|
1686
1686
|
return {
|
|
1687
|
-
code:
|
|
1687
|
+
code: Vn,
|
|
1688
1688
|
message: "File type must be ".concat(t)
|
|
1689
1689
|
};
|
|
1690
1690
|
}, Ir = function(r) {
|
|
1691
1691
|
return {
|
|
1692
|
-
code:
|
|
1692
|
+
code: Xn,
|
|
1693
1693
|
message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
1694
1694
|
};
|
|
1695
1695
|
}, jr = function(r) {
|
|
1696
1696
|
return {
|
|
1697
|
-
code:
|
|
1697
|
+
code: Jn,
|
|
1698
1698
|
message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
1699
1699
|
};
|
|
1700
|
-
},
|
|
1701
|
-
code:
|
|
1700
|
+
}, eo = {
|
|
1701
|
+
code: Zn,
|
|
1702
1702
|
message: "Too many files"
|
|
1703
1703
|
};
|
|
1704
1704
|
function et(e, r) {
|
|
1705
|
-
var t = e.type === "application/x-moz-file" ||
|
|
1706
|
-
return [t, t ? null :
|
|
1705
|
+
var t = e.type === "application/x-moz-file" || Wn(e, r);
|
|
1706
|
+
return [t, t ? null : Qn(r)];
|
|
1707
1707
|
}
|
|
1708
1708
|
function rt(e, r, t) {
|
|
1709
|
-
if (
|
|
1710
|
-
if (
|
|
1709
|
+
if (ge(e.size))
|
|
1710
|
+
if (ge(r) && ge(t)) {
|
|
1711
1711
|
if (e.size > t)
|
|
1712
1712
|
return [!1, Ir(t)];
|
|
1713
1713
|
if (e.size < r)
|
|
1714
1714
|
return [!1, jr(r)];
|
|
1715
1715
|
} else {
|
|
1716
|
-
if (
|
|
1716
|
+
if (ge(r) && e.size < r)
|
|
1717
1717
|
return [!1, jr(r)];
|
|
1718
|
-
if (
|
|
1718
|
+
if (ge(t) && e.size > t)
|
|
1719
1719
|
return [!1, Ir(t)];
|
|
1720
1720
|
}
|
|
1721
1721
|
return [!0, null];
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function ge(e) {
|
|
1724
1724
|
return e != null;
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function ro(e) {
|
|
1727
1727
|
var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
|
|
1728
1728
|
return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
|
|
1729
|
-
var
|
|
1730
|
-
return g &&
|
|
1729
|
+
var l = et(f, t), v = Ae(l, 1), g = v[0], h = rt(f, n, a), b = Ae(h, 1), S = b[0], x = i ? i(f) : null;
|
|
1730
|
+
return g && S && !x;
|
|
1731
1731
|
});
|
|
1732
1732
|
}
|
|
1733
1733
|
function Me(e) {
|
|
@@ -1741,15 +1741,15 @@ function Ne(e) {
|
|
|
1741
1741
|
function Nr(e) {
|
|
1742
1742
|
e.preventDefault();
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function to(e) {
|
|
1745
1745
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function no(e) {
|
|
1748
1748
|
return e.indexOf("Edge/") !== -1;
|
|
1749
1749
|
}
|
|
1750
|
-
function
|
|
1750
|
+
function oo() {
|
|
1751
1751
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1752
|
-
return
|
|
1752
|
+
return to(e) || no(e);
|
|
1753
1753
|
}
|
|
1754
1754
|
function ie() {
|
|
1755
1755
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
@@ -1762,17 +1762,17 @@ function ie() {
|
|
|
1762
1762
|
});
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function ao() {
|
|
1766
1766
|
return "showOpenFilePicker" in window;
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
if (
|
|
1768
|
+
function io(e) {
|
|
1769
|
+
if (ge(e)) {
|
|
1770
1770
|
var r = Object.entries(e).filter(function(t) {
|
|
1771
1771
|
var n = Ae(t, 2), a = n[0], o = n[1], s = !0;
|
|
1772
1772
|
return tt(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(nt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
|
|
1773
1773
|
}).reduce(function(t, n) {
|
|
1774
1774
|
var a = Ae(n, 2), o = a[0], s = a[1];
|
|
1775
|
-
return Fr(Fr({}, t), {},
|
|
1775
|
+
return Fr(Fr({}, t), {}, Zr({}, o, s));
|
|
1776
1776
|
}, {});
|
|
1777
1777
|
return [{
|
|
1778
1778
|
// description is required due to https://crbug.com/1264708
|
|
@@ -1782,8 +1782,8 @@ function to(e) {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return e;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1786
|
-
if (
|
|
1785
|
+
function so(e) {
|
|
1786
|
+
if (ge(e))
|
|
1787
1787
|
return Object.entries(e).reduce(function(r, t) {
|
|
1788
1788
|
var n = Ae(t, 2), a = n[0], o = n[1];
|
|
1789
1789
|
return [].concat(Pr(r), [a], Pr(o));
|
|
@@ -1791,10 +1791,10 @@ function no(e) {
|
|
|
1791
1791
|
return tt(r) || nt(r);
|
|
1792
1792
|
}).join(",");
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function co(e) {
|
|
1795
1795
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function lo(e) {
|
|
1798
1798
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
1799
1799
|
}
|
|
1800
1800
|
function tt(e) {
|
|
@@ -1803,26 +1803,26 @@ function tt(e) {
|
|
|
1803
1803
|
function nt(e) {
|
|
1804
1804
|
return /^.*\.[\w]+$/.test(e);
|
|
1805
1805
|
}
|
|
1806
|
-
var
|
|
1807
|
-
function
|
|
1808
|
-
return
|
|
1806
|
+
var uo = ["children"], fo = ["open"], po = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], mo = ["refKey", "onChange", "onClick"];
|
|
1807
|
+
function vo(e) {
|
|
1808
|
+
return bo(e) || go(e) || ot(e) || yo();
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1810
|
+
function yo() {
|
|
1811
1811
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1812
1812
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function go(e) {
|
|
1815
1815
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null)
|
|
1816
1816
|
return Array.from(e);
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function bo(e) {
|
|
1819
1819
|
if (Array.isArray(e))
|
|
1820
1820
|
return ir(e);
|
|
1821
1821
|
}
|
|
1822
1822
|
function rr(e, r) {
|
|
1823
|
-
return
|
|
1823
|
+
return Eo(e) || _o(e, r) || ot(e, r) || ho();
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function ho() {
|
|
1826
1826
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1827
1827
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1828
1828
|
}
|
|
@@ -1843,7 +1843,7 @@ function ir(e, r) {
|
|
|
1843
1843
|
n[t] = e[t];
|
|
1844
1844
|
return n;
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function _o(e, r) {
|
|
1847
1847
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1848
1848
|
if (t != null) {
|
|
1849
1849
|
var n = [], a = !0, o = !1, s, i;
|
|
@@ -1863,7 +1863,7 @@ function yo(e, r) {
|
|
|
1863
1863
|
return n;
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Eo(e) {
|
|
1867
1867
|
if (Array.isArray(e))
|
|
1868
1868
|
return e;
|
|
1869
1869
|
}
|
|
@@ -1894,7 +1894,7 @@ function sr(e, r, t) {
|
|
|
1894
1894
|
function Le(e, r) {
|
|
1895
1895
|
if (e == null)
|
|
1896
1896
|
return {};
|
|
1897
|
-
var t =
|
|
1897
|
+
var t = wo(e, r), n, a;
|
|
1898
1898
|
if (Object.getOwnPropertySymbols) {
|
|
1899
1899
|
var o = Object.getOwnPropertySymbols(e);
|
|
1900
1900
|
for (a = 0; a < o.length; a++)
|
|
@@ -1902,7 +1902,7 @@ function Le(e, r) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
return t;
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function wo(e, r) {
|
|
1906
1906
|
if (e == null)
|
|
1907
1907
|
return {};
|
|
1908
1908
|
var t = {}, n = Object.keys(e), a, o;
|
|
@@ -1910,20 +1910,20 @@ function bo(e, r) {
|
|
|
1910
1910
|
a = n[o], !(r.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
1911
1911
|
return t;
|
|
1912
1912
|
}
|
|
1913
|
-
var pr = /* @__PURE__ */
|
|
1914
|
-
var t = e.children, n = Le(e,
|
|
1915
|
-
return
|
|
1913
|
+
var pr = /* @__PURE__ */ gt(function(e, r) {
|
|
1914
|
+
var t = e.children, n = Le(e, uo), a = it(n), o = a.open, s = Le(a, fo);
|
|
1915
|
+
return bt(r, function() {
|
|
1916
1916
|
return {
|
|
1917
1917
|
open: o
|
|
1918
1918
|
};
|
|
1919
|
-
}, [o]), /* @__PURE__ */
|
|
1919
|
+
}, [o]), /* @__PURE__ */ mt.createElement(ht, null, t(z(z({}, s), {}, {
|
|
1920
1920
|
open: o
|
|
1921
1921
|
})));
|
|
1922
1922
|
});
|
|
1923
1923
|
pr.displayName = "Dropzone";
|
|
1924
1924
|
var at = {
|
|
1925
1925
|
disabled: !1,
|
|
1926
|
-
getFilesFromEvent:
|
|
1926
|
+
getFilesFromEvent: In,
|
|
1927
1927
|
maxSize: 1 / 0,
|
|
1928
1928
|
minSize: 0,
|
|
1929
1929
|
multiple: !0,
|
|
@@ -2116,46 +2116,46 @@ var cr = {
|
|
|
2116
2116
|
fileRejections: []
|
|
2117
2117
|
};
|
|
2118
2118
|
function it() {
|
|
2119
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles,
|
|
2120
|
-
return
|
|
2121
|
-
}, [t]),
|
|
2122
|
-
return
|
|
2123
|
-
}, [t]),
|
|
2119
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles, l = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, S = r.onDropRejected, x = r.onFileDialogCancel, B = r.onFileDialogOpen, N = r.useFsAccessApi, K = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, Q = r.noDrag, $ = r.noDragEventsBubbling, X = r.onError, ee = r.validator, ce = se(function() {
|
|
2120
|
+
return so(t);
|
|
2121
|
+
}, [t]), me = se(function() {
|
|
2122
|
+
return io(t);
|
|
2123
|
+
}, [t]), ve = se(function() {
|
|
2124
2124
|
return typeof B == "function" ? B : $r;
|
|
2125
2125
|
}, [B]), le = se(function() {
|
|
2126
|
-
return typeof
|
|
2127
|
-
}, [
|
|
2126
|
+
return typeof x == "function" ? x : $r;
|
|
2127
|
+
}, [x]), W = we(null), J = we(null), ne = Lr(xo, cr), ae = rr(ne, 2), ue = ae[0], G = ae[1], u = ue.isFocused, y = ue.isFileDialogActive, T = we(typeof window < "u" && window.isSecureContext && N && ao()), C = function() {
|
|
2128
2128
|
!T.current && y && setTimeout(function() {
|
|
2129
|
-
if (
|
|
2130
|
-
var _ =
|
|
2129
|
+
if (J.current) {
|
|
2130
|
+
var _ = J.current.files;
|
|
2131
2131
|
_.length || (G({
|
|
2132
2132
|
type: "closeDialog"
|
|
2133
2133
|
}), le());
|
|
2134
2134
|
}
|
|
2135
2135
|
}, 300);
|
|
2136
2136
|
};
|
|
2137
|
-
|
|
2138
|
-
return window.addEventListener("focus",
|
|
2139
|
-
window.removeEventListener("focus",
|
|
2137
|
+
he(function() {
|
|
2138
|
+
return window.addEventListener("focus", C, !1), function() {
|
|
2139
|
+
window.removeEventListener("focus", C, !1);
|
|
2140
2140
|
};
|
|
2141
|
-
}, [
|
|
2142
|
-
var E =
|
|
2141
|
+
}, [J, y, le, T]);
|
|
2142
|
+
var E = we([]), P = function(_) {
|
|
2143
2143
|
W.current && W.current.contains(_.target) || (_.preventDefault(), E.current = []);
|
|
2144
2144
|
};
|
|
2145
|
-
|
|
2145
|
+
he(function() {
|
|
2146
2146
|
return A && (document.addEventListener("dragover", Nr, !1), document.addEventListener("drop", P, !1)), function() {
|
|
2147
2147
|
A && (document.removeEventListener("dragover", Nr), document.removeEventListener("drop", P));
|
|
2148
2148
|
};
|
|
2149
|
-
}, [W, A]),
|
|
2150
|
-
return !n &&
|
|
2149
|
+
}, [W, A]), he(function() {
|
|
2150
|
+
return !n && K && W.current && W.current.focus(), function() {
|
|
2151
2151
|
};
|
|
2152
|
-
}, [W,
|
|
2153
|
-
var w =
|
|
2154
|
-
|
|
2155
|
-
}, [
|
|
2156
|
-
m.preventDefault(), m.persist(), Fe(m), E.current = [].concat(
|
|
2152
|
+
}, [W, K, n]);
|
|
2153
|
+
var w = Z(function(m) {
|
|
2154
|
+
X ? X(m) : console.error(m);
|
|
2155
|
+
}, [X]), O = Z(function(m) {
|
|
2156
|
+
m.preventDefault(), m.persist(), Fe(m), E.current = [].concat(vo(E.current), [m.target]), Ne(m) && Promise.resolve(a(m)).then(function(_) {
|
|
2157
2157
|
if (!(Me(m) && !$)) {
|
|
2158
|
-
var Y = _.length, V = Y > 0 &&
|
|
2158
|
+
var Y = _.length, V = Y > 0 && ro({
|
|
2159
2159
|
files: _,
|
|
2160
2160
|
accept: ce,
|
|
2161
2161
|
minSize: s,
|
|
@@ -2169,12 +2169,12 @@ function it() {
|
|
|
2169
2169
|
isDragReject: te,
|
|
2170
2170
|
isDragActive: !0,
|
|
2171
2171
|
type: "setDraggedFiles"
|
|
2172
|
-
}),
|
|
2172
|
+
}), l && l(m);
|
|
2173
2173
|
}
|
|
2174
2174
|
}).catch(function(_) {
|
|
2175
2175
|
return w(_);
|
|
2176
2176
|
});
|
|
2177
|
-
}, [a,
|
|
2177
|
+
}, [a, l, w, $, ce, s, o, i, f, ee]), R = Z(function(m) {
|
|
2178
2178
|
m.preventDefault(), m.persist(), Fe(m);
|
|
2179
2179
|
var _ = Ne(m);
|
|
2180
2180
|
if (_ && m.dataTransfer)
|
|
@@ -2183,7 +2183,7 @@ function it() {
|
|
|
2183
2183
|
} catch {
|
|
2184
2184
|
}
|
|
2185
2185
|
return _ && g && g(m), !1;
|
|
2186
|
-
}, [g, $]), F =
|
|
2186
|
+
}, [g, $]), F = Z(function(m) {
|
|
2187
2187
|
m.preventDefault(), m.persist(), Fe(m);
|
|
2188
2188
|
var _ = E.current.filter(function(V) {
|
|
2189
2189
|
return W.current && W.current.contains(V);
|
|
@@ -2194,32 +2194,32 @@ function it() {
|
|
|
2194
2194
|
isDragAccept: !1,
|
|
2195
2195
|
isDragReject: !1
|
|
2196
2196
|
}), Ne(m) && v && v(m));
|
|
2197
|
-
}, [W, v, $]), D =
|
|
2197
|
+
}, [W, v, $]), D = Z(function(m, _) {
|
|
2198
2198
|
var Y = [], V = [];
|
|
2199
2199
|
m.forEach(function(te) {
|
|
2200
|
-
var
|
|
2200
|
+
var De = et(te, ce), Ee = rr(De, 2), We = Ee[0], Ye = Ee[1], qe = rt(te, s, o), Ie = rr(qe, 2), Ue = Ie[0], Ke = Ie[1], He = ee ? ee(te) : null;
|
|
2201
2201
|
if (We && Ue && !He)
|
|
2202
2202
|
Y.push(te);
|
|
2203
2203
|
else {
|
|
2204
2204
|
var Ge = [Ye, Ke];
|
|
2205
2205
|
He && (Ge = Ge.concat(He)), V.push({
|
|
2206
2206
|
file: te,
|
|
2207
|
-
errors: Ge.filter(function(
|
|
2208
|
-
return
|
|
2207
|
+
errors: Ge.filter(function(dt) {
|
|
2208
|
+
return dt;
|
|
2209
2209
|
})
|
|
2210
2210
|
});
|
|
2211
2211
|
}
|
|
2212
2212
|
}), (!i && Y.length > 1 || i && f >= 1 && Y.length > f) && (Y.forEach(function(te) {
|
|
2213
2213
|
V.push({
|
|
2214
2214
|
file: te,
|
|
2215
|
-
errors: [
|
|
2215
|
+
errors: [eo]
|
|
2216
2216
|
});
|
|
2217
2217
|
}), Y.splice(0)), G({
|
|
2218
2218
|
acceptedFiles: Y,
|
|
2219
2219
|
fileRejections: V,
|
|
2220
2220
|
type: "setFiles"
|
|
2221
|
-
}), h && h(Y, V, _), V.length > 0 &&
|
|
2222
|
-
}, [G, i, ce, s, o, f, h, b,
|
|
2221
|
+
}), h && h(Y, V, _), V.length > 0 && S && S(V, _), Y.length > 0 && b && b(Y, _);
|
|
2222
|
+
}, [G, i, ce, s, o, f, h, b, S, ee]), q = Z(function(m) {
|
|
2223
2223
|
m.preventDefault(), m.persist(), Fe(m), E.current = [], Ne(m) && Promise.resolve(a(m)).then(function(_) {
|
|
2224
2224
|
Me(m) && !$ || D(_, m);
|
|
2225
2225
|
}).catch(function(_) {
|
|
@@ -2227,14 +2227,14 @@ function it() {
|
|
|
2227
2227
|
}), G({
|
|
2228
2228
|
type: "reset"
|
|
2229
2229
|
});
|
|
2230
|
-
}, [a, D, w, $]), d =
|
|
2230
|
+
}, [a, D, w, $]), d = Z(function() {
|
|
2231
2231
|
if (T.current) {
|
|
2232
2232
|
G({
|
|
2233
2233
|
type: "openDialog"
|
|
2234
|
-
}),
|
|
2234
|
+
}), ve();
|
|
2235
2235
|
var m = {
|
|
2236
2236
|
multiple: i,
|
|
2237
|
-
types:
|
|
2237
|
+
types: me
|
|
2238
2238
|
};
|
|
2239
2239
|
window.showOpenFilePicker(m).then(function(_) {
|
|
2240
2240
|
return a(_);
|
|
@@ -2243,43 +2243,43 @@ function it() {
|
|
|
2243
2243
|
type: "closeDialog"
|
|
2244
2244
|
});
|
|
2245
2245
|
}).catch(function(_) {
|
|
2246
|
-
|
|
2246
|
+
co(_) ? (le(_), G({
|
|
2247
2247
|
type: "closeDialog"
|
|
2248
|
-
})) :
|
|
2248
|
+
})) : lo(_) ? (T.current = !1, J.current ? (J.current.value = null, J.current.click()) : w(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : w(_);
|
|
2249
2249
|
});
|
|
2250
2250
|
return;
|
|
2251
2251
|
}
|
|
2252
|
-
|
|
2252
|
+
J.current && (G({
|
|
2253
2253
|
type: "openDialog"
|
|
2254
|
-
}),
|
|
2255
|
-
}, [G,
|
|
2254
|
+
}), ve(), J.current.value = null, J.current.click());
|
|
2255
|
+
}, [G, ve, le, N, D, w, me, i]), re = Z(function(m) {
|
|
2256
2256
|
!W.current || !W.current.isEqualNode(m.target) || (m.key === " " || m.key === "Enter" || m.keyCode === 32 || m.keyCode === 13) && (m.preventDefault(), d());
|
|
2257
|
-
}, [W, d]),
|
|
2257
|
+
}, [W, d]), ye = Z(function() {
|
|
2258
2258
|
G({
|
|
2259
2259
|
type: "focus"
|
|
2260
2260
|
});
|
|
2261
|
-
}, []),
|
|
2261
|
+
}, []), Oe = Z(function() {
|
|
2262
2262
|
G({
|
|
2263
2263
|
type: "blur"
|
|
2264
2264
|
});
|
|
2265
|
-
}, []), dr =
|
|
2266
|
-
k || (
|
|
2267
|
-
}, [k, d]),
|
|
2265
|
+
}, []), dr = Z(function() {
|
|
2266
|
+
k || (oo() ? setTimeout(d, 0) : d());
|
|
2267
|
+
}, [k, d]), _e = function(_) {
|
|
2268
2268
|
return n ? null : _;
|
|
2269
2269
|
}, ze = function(_) {
|
|
2270
|
-
return p ? null :
|
|
2270
|
+
return p ? null : _e(_);
|
|
2271
2271
|
}, Re = function(_) {
|
|
2272
|
-
return
|
|
2272
|
+
return Q ? null : _e(_);
|
|
2273
2273
|
}, Fe = function(_) {
|
|
2274
2274
|
$ && _.stopPropagation();
|
|
2275
|
-
},
|
|
2275
|
+
}, ut = se(function() {
|
|
2276
2276
|
return function() {
|
|
2277
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown,
|
|
2277
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown, De = m.onFocus, Ee = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Ie = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, po);
|
|
2278
2278
|
return z(z(sr({
|
|
2279
2279
|
onKeyDown: ze(ie(te, re)),
|
|
2280
|
-
onFocus: ze(ie(
|
|
2281
|
-
onBlur: ze(ie(
|
|
2282
|
-
onClick:
|
|
2280
|
+
onFocus: ze(ie(De, ye)),
|
|
2281
|
+
onBlur: ze(ie(Ee, Oe)),
|
|
2282
|
+
onClick: _e(ie(We, dr)),
|
|
2283
2283
|
onDragEnter: Re(ie(Ye, O)),
|
|
2284
2284
|
onDragOver: Re(ie(qe, R)),
|
|
2285
2285
|
onDragLeave: Re(ie(Ie, F)),
|
|
@@ -2289,34 +2289,34 @@ function it() {
|
|
|
2289
2289
|
tabIndex: 0
|
|
2290
2290
|
} : {}), Ke);
|
|
2291
2291
|
};
|
|
2292
|
-
}, [W, re,
|
|
2292
|
+
}, [W, re, ye, Oe, dr, O, R, F, q, p, Q, n]), ft = Z(function(m) {
|
|
2293
2293
|
m.stopPropagation();
|
|
2294
|
-
}, []),
|
|
2294
|
+
}, []), pt = se(function() {
|
|
2295
2295
|
return function() {
|
|
2296
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick,
|
|
2296
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick, De = Le(m, mo), Ee = sr({
|
|
2297
2297
|
accept: ce,
|
|
2298
2298
|
multiple: i,
|
|
2299
2299
|
type: "file",
|
|
2300
2300
|
style: {
|
|
2301
2301
|
display: "none"
|
|
2302
2302
|
},
|
|
2303
|
-
onChange:
|
|
2304
|
-
onClick:
|
|
2303
|
+
onChange: _e(ie(V, q)),
|
|
2304
|
+
onClick: _e(ie(te, ft)),
|
|
2305
2305
|
tabIndex: -1
|
|
2306
|
-
}, Y,
|
|
2307
|
-
return z(z({},
|
|
2306
|
+
}, Y, J);
|
|
2307
|
+
return z(z({}, Ee), De);
|
|
2308
2308
|
};
|
|
2309
|
-
}, [
|
|
2309
|
+
}, [J, t, i, q, n]);
|
|
2310
2310
|
return z(z({}, ue), {}, {
|
|
2311
2311
|
isFocused: u && !n,
|
|
2312
|
-
getRootProps:
|
|
2313
|
-
getInputProps:
|
|
2312
|
+
getRootProps: ut,
|
|
2313
|
+
getInputProps: pt,
|
|
2314
2314
|
rootRef: W,
|
|
2315
|
-
inputRef:
|
|
2316
|
-
open:
|
|
2315
|
+
inputRef: J,
|
|
2316
|
+
open: _e(d)
|
|
2317
2317
|
});
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function xo(e, r) {
|
|
2320
2320
|
switch (r.type) {
|
|
2321
2321
|
case "focus":
|
|
2322
2322
|
return z(z({}, e), {}, {
|
|
@@ -2353,7 +2353,7 @@ function ho(e, r) {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
function $r() {
|
|
2355
2355
|
}
|
|
2356
|
-
const
|
|
2356
|
+
const So = () => {
|
|
2357
2357
|
const e = (i, f) => {
|
|
2358
2358
|
switch (f.type) {
|
|
2359
2359
|
case "add-files":
|
|
@@ -2371,14 +2371,14 @@ const _o = () => {
|
|
|
2371
2371
|
return {
|
|
2372
2372
|
...i,
|
|
2373
2373
|
acceptedFiles: i.acceptedFiles.filter(
|
|
2374
|
-
(
|
|
2374
|
+
(l) => l !== f.payload
|
|
2375
2375
|
)
|
|
2376
2376
|
};
|
|
2377
2377
|
case "remove-rejected":
|
|
2378
2378
|
return {
|
|
2379
2379
|
...i,
|
|
2380
2380
|
fileRejections: i.fileRejections.filter(
|
|
2381
|
-
(
|
|
2381
|
+
(l) => l !== f.payload
|
|
2382
2382
|
)
|
|
2383
2383
|
};
|
|
2384
2384
|
}
|
|
@@ -2388,7 +2388,7 @@ const _o = () => {
|
|
|
2388
2388
|
acceptedFiles: [],
|
|
2389
2389
|
fileRejections: []
|
|
2390
2390
|
}
|
|
2391
|
-
), a =
|
|
2391
|
+
), a = Z(
|
|
2392
2392
|
(i, f) => n({
|
|
2393
2393
|
type: "add-files",
|
|
2394
2394
|
payload: { acceptedFiles: i, fileRejections: f }
|
|
@@ -2396,7 +2396,7 @@ const _o = () => {
|
|
|
2396
2396
|
[n]
|
|
2397
2397
|
);
|
|
2398
2398
|
return { acceptedFiles: r, fileRejections: t, onFileUpload: a, removeFile: (i) => n({ type: "remove-accepted", payload: i }), removeRejectedFile: (i) => n({ type: "remove-rejected", payload: i }) };
|
|
2399
|
-
},
|
|
2399
|
+
}, To = ({
|
|
2400
2400
|
accept: e,
|
|
2401
2401
|
error: r,
|
|
2402
2402
|
files: t,
|
|
@@ -2406,7 +2406,7 @@ const _o = () => {
|
|
|
2406
2406
|
maxSize: s,
|
|
2407
2407
|
onFileUpload: i,
|
|
2408
2408
|
rejectedFiles: f,
|
|
2409
|
-
removeFile:
|
|
2409
|
+
removeFile: l,
|
|
2410
2410
|
removeRejectedFile: v
|
|
2411
2411
|
}) => {
|
|
2412
2412
|
const { getRootProps: g } = it({
|
|
@@ -2415,64 +2415,64 @@ const _o = () => {
|
|
|
2415
2415
|
maxSize: s,
|
|
2416
2416
|
onDrop: i
|
|
2417
2417
|
}), h = ke();
|
|
2418
|
-
return /* @__PURE__ */
|
|
2418
|
+
return /* @__PURE__ */ U(
|
|
2419
2419
|
"div",
|
|
2420
2420
|
{
|
|
2421
2421
|
className: L("p-form__group p-form-validation", {
|
|
2422
2422
|
"is-error": !!r
|
|
2423
2423
|
}),
|
|
2424
2424
|
children: [
|
|
2425
|
-
a && /* @__PURE__ */
|
|
2426
|
-
n && /* @__PURE__ */
|
|
2427
|
-
/* @__PURE__ */
|
|
2428
|
-
!o || t.length < o ? /* @__PURE__ */
|
|
2425
|
+
a && /* @__PURE__ */ c(Dt, { id: h, children: a }),
|
|
2426
|
+
n && /* @__PURE__ */ c("p", { className: "p-form-help-text", children: n }),
|
|
2427
|
+
/* @__PURE__ */ U("div", { className: "p-form__control", children: [
|
|
2428
|
+
!o || t.length < o ? /* @__PURE__ */ c("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ c(
|
|
2429
2429
|
"div",
|
|
2430
2430
|
{
|
|
2431
2431
|
...g(),
|
|
2432
2432
|
"aria-labelledby": a ? h : void 0,
|
|
2433
2433
|
className: "file-upload",
|
|
2434
2434
|
"data-testid": "file-upload",
|
|
2435
|
-
children: /* @__PURE__ */
|
|
2435
|
+
children: /* @__PURE__ */ c("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
2436
2436
|
}
|
|
2437
2437
|
) }) : null,
|
|
2438
|
-
r ? /* @__PURE__ */
|
|
2439
|
-
/* @__PURE__ */
|
|
2438
|
+
r ? /* @__PURE__ */ U("p", { className: "p-form-validation__message", children: [
|
|
2439
|
+
/* @__PURE__ */ c("strong", { children: "Error: " }),
|
|
2440
2440
|
r
|
|
2441
2441
|
] }) : null,
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
f && f.map((b) => /* @__PURE__ */
|
|
2444
|
-
/* @__PURE__ */
|
|
2442
|
+
/* @__PURE__ */ U("div", { className: "file-upload__files-list", children: [
|
|
2443
|
+
f && f.map((b) => /* @__PURE__ */ U("span", { className: "is-error", children: [
|
|
2444
|
+
/* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
|
|
2445
2445
|
b.file.name,
|
|
2446
|
-
/* @__PURE__ */
|
|
2447
|
-
|
|
2446
|
+
/* @__PURE__ */ c(
|
|
2447
|
+
pe,
|
|
2448
2448
|
{
|
|
2449
2449
|
appearance: "base",
|
|
2450
2450
|
className: "file-upload__file-remove-button",
|
|
2451
2451
|
onClick: () => v(b),
|
|
2452
2452
|
type: "button",
|
|
2453
|
-
children: /* @__PURE__ */
|
|
2453
|
+
children: /* @__PURE__ */ c(Se, { name: "close", children: "Remove file" })
|
|
2454
2454
|
}
|
|
2455
2455
|
)
|
|
2456
2456
|
] }),
|
|
2457
|
-
b.errors.map((
|
|
2457
|
+
b.errors.map((S) => /* @__PURE__ */ c(
|
|
2458
2458
|
"p",
|
|
2459
2459
|
{
|
|
2460
2460
|
className: "p-form-validation__message",
|
|
2461
|
-
children:
|
|
2461
|
+
children: S.message
|
|
2462
2462
|
},
|
|
2463
|
-
`${b.file.name}-${
|
|
2463
|
+
`${b.file.name}-${S.code}`
|
|
2464
2464
|
))
|
|
2465
2465
|
] }, b.file.name)),
|
|
2466
|
-
t && t.map((b) => /* @__PURE__ */
|
|
2466
|
+
t && t.map((b) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
|
|
2467
2467
|
b.name,
|
|
2468
|
-
b.percentUploaded !== void 0 ? /* @__PURE__ */
|
|
2469
|
-
|
|
2468
|
+
b.percentUploaded !== void 0 ? /* @__PURE__ */ c(Lt, { percentComplete: b.percentUploaded }) : /* @__PURE__ */ c(
|
|
2469
|
+
pe,
|
|
2470
2470
|
{
|
|
2471
2471
|
appearance: "base",
|
|
2472
2472
|
className: "file-upload__file-remove-button",
|
|
2473
|
-
onClick: () =>
|
|
2473
|
+
onClick: () => l(b),
|
|
2474
2474
|
type: "button",
|
|
2475
|
-
children: /* @__PURE__ */
|
|
2475
|
+
children: /* @__PURE__ */ c(Se, { name: "close", children: "Remove file" })
|
|
2476
2476
|
}
|
|
2477
2477
|
)
|
|
2478
2478
|
] }, b.name))
|
|
@@ -2481,7 +2481,7 @@ const _o = () => {
|
|
|
2481
2481
|
]
|
|
2482
2482
|
}
|
|
2483
2483
|
);
|
|
2484
|
-
},
|
|
2484
|
+
}, Bo = ({
|
|
2485
2485
|
accept: e,
|
|
2486
2486
|
error: r,
|
|
2487
2487
|
help: t,
|
|
@@ -2493,11 +2493,11 @@ const _o = () => {
|
|
|
2493
2493
|
acceptedFiles: s,
|
|
2494
2494
|
fileRejections: i,
|
|
2495
2495
|
onFileUpload: f,
|
|
2496
|
-
removeFile:
|
|
2496
|
+
removeFile: l,
|
|
2497
2497
|
removeRejectedFile: v
|
|
2498
|
-
} =
|
|
2499
|
-
return /* @__PURE__ */
|
|
2500
|
-
|
|
2498
|
+
} = So();
|
|
2499
|
+
return /* @__PURE__ */ c(
|
|
2500
|
+
To,
|
|
2501
2501
|
{
|
|
2502
2502
|
accept: e,
|
|
2503
2503
|
error: r,
|
|
@@ -2508,12 +2508,12 @@ const _o = () => {
|
|
|
2508
2508
|
maxFiles: a,
|
|
2509
2509
|
maxSize: o,
|
|
2510
2510
|
onFileUpload: f,
|
|
2511
|
-
removeFile:
|
|
2511
|
+
removeFile: l,
|
|
2512
2512
|
removeRejectedFile: v
|
|
2513
2513
|
}
|
|
2514
2514
|
);
|
|
2515
2515
|
};
|
|
2516
|
-
const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }),
|
|
2516
|
+
const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), Co = (e) => (r, t) => {
|
|
2517
2517
|
if (e) {
|
|
2518
2518
|
const n = e.has(r.value), a = e.has(t.value);
|
|
2519
2519
|
if (n && !a)
|
|
@@ -2522,13 +2522,13 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2522
2522
|
return 1;
|
|
2523
2523
|
}
|
|
2524
2524
|
return 0;
|
|
2525
|
-
},
|
|
2525
|
+
}, Oo = (e) => {
|
|
2526
2526
|
const r = /* @__PURE__ */ new Map();
|
|
2527
2527
|
return e.forEach((t) => {
|
|
2528
2528
|
const n = t.group || "Ungrouped", a = r.get(n) || [];
|
|
2529
2529
|
a.push(t), r.set(n, a);
|
|
2530
2530
|
}), Array.from(r, ([t, n]) => ({ group: t, items: n }));
|
|
2531
|
-
},
|
|
2531
|
+
}, Do = ({
|
|
2532
2532
|
items: e,
|
|
2533
2533
|
selectedItems: r,
|
|
2534
2534
|
disabledItems: t,
|
|
@@ -2537,8 +2537,8 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2537
2537
|
isOpen: o,
|
|
2538
2538
|
footer: s,
|
|
2539
2539
|
sortFn: i = st,
|
|
2540
|
-
groupFn: f =
|
|
2541
|
-
...
|
|
2540
|
+
groupFn: f = Oo,
|
|
2541
|
+
...l
|
|
2542
2542
|
}) => {
|
|
2543
2543
|
const v = se(
|
|
2544
2544
|
() => new Set(r.map((N) => N.value)),
|
|
@@ -2546,26 +2546,26 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2546
2546
|
), g = se(
|
|
2547
2547
|
() => new Set(t.map((N) => N.value)),
|
|
2548
2548
|
[t]
|
|
2549
|
-
), [h, b] =
|
|
2550
|
-
|
|
2549
|
+
), [h, b] = fe(new Set(v));
|
|
2550
|
+
he(() => {
|
|
2551
2551
|
o && b(new Set(v));
|
|
2552
2552
|
}, [o]);
|
|
2553
|
-
const
|
|
2554
|
-
() =>
|
|
2553
|
+
const S = se(() => e.some((N) => N.group), [e]), x = se(
|
|
2554
|
+
() => S ? f(e) : [{ group: "Ungrouped", items: e }],
|
|
2555
2555
|
[e, f]
|
|
2556
2556
|
), B = (N) => {
|
|
2557
|
-
const { checked:
|
|
2557
|
+
const { checked: K, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
|
|
2558
2558
|
if (k) {
|
|
2559
|
-
const p =
|
|
2559
|
+
const p = K ? [...r, k] : r.filter((Q) => `${Q.value}` !== A) ?? [];
|
|
2560
2560
|
a(p);
|
|
2561
2561
|
}
|
|
2562
2562
|
};
|
|
2563
|
-
return /* @__PURE__ */
|
|
2563
|
+
return /* @__PURE__ */ c(Hr, { isVisible: o, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...l, children: [
|
|
2564
2564
|
n || null,
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
|
|
2565
|
+
x.map(({ group: N, items: K }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
|
|
2566
|
+
S ? /* @__PURE__ */ c("h5", { className: "multi-select__dropdown-header", children: N }) : null,
|
|
2567
|
+
/* @__PURE__ */ c("ul", { className: "multi-select__dropdown-list", "aria-label": N, children: K.sort(i).sort(Co(h)).map((A) => /* @__PURE__ */ c("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ c(
|
|
2568
|
+
At,
|
|
2569
2569
|
{
|
|
2570
2570
|
disabled: g.has(A.value),
|
|
2571
2571
|
label: A.label,
|
|
@@ -2576,9 +2576,9 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2576
2576
|
A.value
|
|
2577
2577
|
) }, A.value)) })
|
|
2578
2578
|
] }, N)),
|
|
2579
|
-
s ? /* @__PURE__ */
|
|
2579
|
+
s ? /* @__PURE__ */ c("div", { className: "multi-select__footer", children: s }) : null
|
|
2580
2580
|
] }) });
|
|
2581
|
-
},
|
|
2581
|
+
}, zo = ({
|
|
2582
2582
|
disabled: e,
|
|
2583
2583
|
selectedItems: r = [],
|
|
2584
2584
|
label: t,
|
|
@@ -2588,28 +2588,28 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2588
2588
|
items: s = [],
|
|
2589
2589
|
disabledItems: i = [],
|
|
2590
2590
|
dropdownHeader: f,
|
|
2591
|
-
dropdownFooter:
|
|
2591
|
+
dropdownFooter: l,
|
|
2592
2592
|
variant: v = "search"
|
|
2593
2593
|
}) => {
|
|
2594
|
-
const g =
|
|
2595
|
-
b(!1),
|
|
2594
|
+
const g = Pt(() => {
|
|
2595
|
+
b(!1), x("");
|
|
2596
2596
|
});
|
|
2597
|
-
|
|
2598
|
-
b(!1),
|
|
2597
|
+
Rt(() => {
|
|
2598
|
+
b(!1), x("");
|
|
2599
2599
|
});
|
|
2600
|
-
const [h, b] =
|
|
2601
|
-
|
|
2602
|
-
h ||
|
|
2600
|
+
const [h, b] = fe(!1), [S, x] = fe("");
|
|
2601
|
+
he(() => {
|
|
2602
|
+
h || x("");
|
|
2603
2603
|
}, [h]);
|
|
2604
|
-
const [B, N] =
|
|
2605
|
-
const
|
|
2606
|
-
N(
|
|
2607
|
-
}, k = ke(), p = ke(),
|
|
2608
|
-
($) => s.some((
|
|
2604
|
+
const [B, N] = fe([]), K = r || B, A = ($) => {
|
|
2605
|
+
const X = Array.from(new Set($));
|
|
2606
|
+
N(X), n && n(X);
|
|
2607
|
+
}, k = ke(), p = ke(), Q = K.filter(
|
|
2608
|
+
($) => s.some((X) => X.value === $.value)
|
|
2609
2609
|
).sort(st).map(($) => $.label).join(", ");
|
|
2610
|
-
return /* @__PURE__ */
|
|
2611
|
-
v === "search" ? /* @__PURE__ */
|
|
2612
|
-
|
|
2610
|
+
return /* @__PURE__ */ c("div", { ref: g, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
|
|
2611
|
+
v === "search" ? /* @__PURE__ */ c(
|
|
2612
|
+
Ft,
|
|
2613
2613
|
{
|
|
2614
2614
|
externallyControlled: !0,
|
|
2615
2615
|
"aria-controls": k,
|
|
@@ -2620,16 +2620,16 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2620
2620
|
disabled: e,
|
|
2621
2621
|
autoComplete: "off",
|
|
2622
2622
|
onChange: ($) => {
|
|
2623
|
-
|
|
2623
|
+
x($), b(!0);
|
|
2624
2624
|
},
|
|
2625
2625
|
onFocus: () => b(!0),
|
|
2626
2626
|
placeholder: a ?? "Search",
|
|
2627
2627
|
required: o,
|
|
2628
2628
|
type: "text",
|
|
2629
|
-
value:
|
|
2629
|
+
value: S,
|
|
2630
2630
|
className: "multi-select__input"
|
|
2631
2631
|
}
|
|
2632
|
-
) : /* @__PURE__ */
|
|
2632
|
+
) : /* @__PURE__ */ c(
|
|
2633
2633
|
"button",
|
|
2634
2634
|
{
|
|
2635
2635
|
role: "combobox",
|
|
@@ -2641,46 +2641,46 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2641
2641
|
onClick: () => {
|
|
2642
2642
|
b(($) => !$);
|
|
2643
2643
|
},
|
|
2644
|
-
children: /* @__PURE__ */
|
|
2644
|
+
children: /* @__PURE__ */ c("span", { className: "multi-select__condensed-text", children: K.length > 0 ? Q : a ?? "Select items" })
|
|
2645
2645
|
}
|
|
2646
2646
|
),
|
|
2647
|
-
/* @__PURE__ */
|
|
2648
|
-
|
|
2647
|
+
/* @__PURE__ */ c(
|
|
2648
|
+
Do,
|
|
2649
2649
|
{
|
|
2650
2650
|
id: k,
|
|
2651
2651
|
isOpen: h,
|
|
2652
|
-
items:
|
|
2653
|
-
($) => $.label.toLowerCase().includes(
|
|
2652
|
+
items: S.length > 0 ? s.filter(
|
|
2653
|
+
($) => $.label.toLowerCase().includes(S.toLowerCase())
|
|
2654
2654
|
) : s,
|
|
2655
|
-
selectedItems:
|
|
2655
|
+
selectedItems: K,
|
|
2656
2656
|
disabledItems: i,
|
|
2657
2657
|
header: f,
|
|
2658
2658
|
updateItems: A,
|
|
2659
|
-
footer:
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
|
|
2659
|
+
footer: l || /* @__PURE__ */ U(de, { children: [
|
|
2660
|
+
/* @__PURE__ */ c(
|
|
2661
|
+
pe,
|
|
2662
2662
|
{
|
|
2663
2663
|
appearance: "link",
|
|
2664
2664
|
onClick: () => {
|
|
2665
2665
|
const $ = s.filter(
|
|
2666
|
-
(
|
|
2667
|
-
(ee) => ee.value ===
|
|
2666
|
+
(X) => !i.some(
|
|
2667
|
+
(ee) => ee.value === X.value
|
|
2668
2668
|
)
|
|
2669
2669
|
);
|
|
2670
|
-
A([...
|
|
2670
|
+
A([...K, ...$]);
|
|
2671
2671
|
},
|
|
2672
2672
|
type: "button",
|
|
2673
2673
|
children: "Select all"
|
|
2674
2674
|
}
|
|
2675
2675
|
),
|
|
2676
|
-
/* @__PURE__ */
|
|
2677
|
-
|
|
2676
|
+
/* @__PURE__ */ c(
|
|
2677
|
+
pe,
|
|
2678
2678
|
{
|
|
2679
2679
|
appearance: "link",
|
|
2680
2680
|
onClick: () => {
|
|
2681
|
-
const $ =
|
|
2682
|
-
(
|
|
2683
|
-
(ee) => ee.value ===
|
|
2681
|
+
const $ = K.filter(
|
|
2682
|
+
(X) => i.some(
|
|
2683
|
+
(ee) => ee.value === X.value
|
|
2684
2684
|
)
|
|
2685
2685
|
);
|
|
2686
2686
|
A($);
|
|
@@ -2693,7 +2693,68 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2693
2693
|
}
|
|
2694
2694
|
)
|
|
2695
2695
|
] }) });
|
|
2696
|
-
},
|
|
2696
|
+
}, Ao = {
|
|
2697
|
+
// Mobile (portrait)
|
|
2698
|
+
xSmall: 460,
|
|
2699
|
+
// Mobile or tablet
|
|
2700
|
+
small: 620,
|
|
2701
|
+
// Desktop
|
|
2702
|
+
large: 1036,
|
|
2703
|
+
// Large desktop
|
|
2704
|
+
xLarge: 1681
|
|
2705
|
+
};
|
|
2706
|
+
const ct = ({
|
|
2707
|
+
className: e,
|
|
2708
|
+
children: r,
|
|
2709
|
+
...t
|
|
2710
|
+
}) => /* @__PURE__ */ c("table", { ...t, className: L("p-table-dynamic", e), children: r }), Po = ({ columns: e }) => /* @__PURE__ */ c(de, { children: Array.from({ length: 10 }, (r, t) => /* @__PURE__ */ c("tr", { "aria-hidden": "true", children: e.map((n, a) => /* @__PURE__ */ c(
|
|
2711
|
+
"td",
|
|
2712
|
+
{
|
|
2713
|
+
className: L(n.id, "u-text-overflow-clip"),
|
|
2714
|
+
children: /* @__PURE__ */ c(Bt, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
2715
|
+
},
|
|
2716
|
+
a
|
|
2717
|
+
)) }, t)) }), Ro = ({
|
|
2718
|
+
className: e,
|
|
2719
|
+
table: r
|
|
2720
|
+
}) => {
|
|
2721
|
+
const t = r ? r.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
2722
|
+
return /* @__PURE__ */ U(de, { children: [
|
|
2723
|
+
/* @__PURE__ */ c("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
2724
|
+
/* @__PURE__ */ c(lt, { "aria-busy": "true", className: e, children: /* @__PURE__ */ c(Po, { columns: t }) })
|
|
2725
|
+
] });
|
|
2726
|
+
}, lt = ({
|
|
2727
|
+
className: e,
|
|
2728
|
+
children: r,
|
|
2729
|
+
...t
|
|
2730
|
+
}) => {
|
|
2731
|
+
const n = we(null), [a, o] = fe(null), s = Z(() => {
|
|
2732
|
+
var i, f;
|
|
2733
|
+
if (window.innerWidth > Ao.small) {
|
|
2734
|
+
const l = (f = (i = n.current) == null ? void 0 : i.getBoundingClientRect) == null ? void 0 : f.call(i).top;
|
|
2735
|
+
l && o(l + 1);
|
|
2736
|
+
} else
|
|
2737
|
+
o(null);
|
|
2738
|
+
}, []);
|
|
2739
|
+
return _t(() => {
|
|
2740
|
+
s();
|
|
2741
|
+
}, [s]), he(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]), /* @__PURE__ */ c(
|
|
2742
|
+
"tbody",
|
|
2743
|
+
{
|
|
2744
|
+
className: e,
|
|
2745
|
+
ref: n,
|
|
2746
|
+
style: a ? {
|
|
2747
|
+
height: `calc(100vh - ${a}px)`,
|
|
2748
|
+
minHeight: `calc(100vh - ${a}px)`
|
|
2749
|
+
} : void 0,
|
|
2750
|
+
...t,
|
|
2751
|
+
children: r
|
|
2752
|
+
}
|
|
2753
|
+
);
|
|
2754
|
+
};
|
|
2755
|
+
ct.Body = lt;
|
|
2756
|
+
ct.Loading = Ro;
|
|
2757
|
+
const Wo = ({ value: e, unit: r }, {
|
|
2697
2758
|
binary: t = !1,
|
|
2698
2759
|
convertTo: n,
|
|
2699
2760
|
decimals: a = 2,
|
|
@@ -2702,38 +2763,39 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2702
2763
|
const s = e < 0, i = Math.abs(e);
|
|
2703
2764
|
if (i === 0)
|
|
2704
2765
|
return { value: 0, unit: n || "B" };
|
|
2705
|
-
const f = t ? 1024 : 1e3,
|
|
2766
|
+
const f = t ? 1024 : 1e3, l = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], v = l.findIndex((x) => x === r) || 0, g = i * Math.pow(f, v), h = n ? l.findIndex((x) => x === n) : Math.floor(Math.log(g) / Math.log(f));
|
|
2706
2767
|
let b = g / Math.pow(f, h);
|
|
2707
2768
|
if (b % 1 !== 0) {
|
|
2708
|
-
const
|
|
2709
|
-
b = Math[o](b *
|
|
2769
|
+
const x = Math.pow(10, a);
|
|
2770
|
+
b = Math[o](b * x) / x;
|
|
2710
2771
|
}
|
|
2711
2772
|
return {
|
|
2712
2773
|
value: s ? -b : b,
|
|
2713
|
-
unit:
|
|
2774
|
+
unit: l[h]
|
|
2714
2775
|
};
|
|
2715
2776
|
};
|
|
2716
2777
|
export {
|
|
2717
2778
|
Be as ContentSection,
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2779
|
+
ct as DynamicTable,
|
|
2780
|
+
ko as ExternalLink,
|
|
2781
|
+
To as FileUpload,
|
|
2782
|
+
Bo as FileUploadContainer,
|
|
2721
2783
|
ur as FormSection,
|
|
2722
2784
|
Yr as InputGroup,
|
|
2723
2785
|
Kr as MainToolbar,
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2786
|
+
Nt as Meter,
|
|
2787
|
+
zo as MultiSelect,
|
|
2788
|
+
Do as MultiSelectDropdown,
|
|
2727
2789
|
H as Navigation,
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2790
|
+
sn as NavigationBar,
|
|
2791
|
+
$o as NestedFormGroup,
|
|
2792
|
+
_n as Pagination,
|
|
2793
|
+
Mo as PaginationContainer,
|
|
2794
|
+
Bt as Placeholder,
|
|
2795
|
+
Lt as ProgressIndicator,
|
|
2796
|
+
Lo as Stepper,
|
|
2797
|
+
No as defaultFilledColors,
|
|
2798
|
+
Wo as formatBytes,
|
|
2799
|
+
be as meterColor,
|
|
2800
|
+
xe as testIds
|
|
2739
2801
|
};
|