@canonical/maas-react-components 1.32.0 → 1.33.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 +738 -733
- package/dist/@canonical/maas-react-components.umd.js +11 -11
- package/dist/maas-react-components.css +1 -1
- package/dist/src/lib/components/GenericTable/GenericTable.d.ts +5 -3
- package/dist/src/lib/components/GenericTable/GenericTable.stories.d.ts +2 -0
- package/dist/src/lib/components/GenericTable/TableCheckbox/TableCheckbox.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import bi, { useRef as be, useState as de, useEffect as Ee, useCallback as
|
|
1
|
+
import { jsxs as U, jsx as p, Fragment as we } from "react/jsx-runtime";
|
|
2
|
+
import * as pe from "react";
|
|
3
|
+
import bi, { useRef as be, useState as de, useEffect as Ee, useCallback as Q, cloneElement as Si, createContext as In, useId as et, useContext as Ht, useMemo as le, useReducer as Dn, forwardRef as Ci, useImperativeHandle as _i, Fragment as $n, useLayoutEffect as An } from "react";
|
|
4
4
|
import { useListener as Ri, Link as Ei, Spinner as qt, Tooltip as Mn, Button as Se, Icon as Ce, Row as ki, Col as Fi, Input as Pi, Label as Ii, CheckboxInput as Di, useClickOutside as $i, useOnEscapePressed as Ai, SearchBox as On, Select as Mi } from "@canonical/react-components";
|
|
5
5
|
function Gt(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -45,7 +45,7 @@ function Oi() {
|
|
|
45
45
|
}(ft)), ft.exports;
|
|
46
46
|
}
|
|
47
47
|
var ji = Oi();
|
|
48
|
-
const
|
|
48
|
+
const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
49
49
|
caution: "#F99B11",
|
|
50
50
|
light: "#F7F7F7",
|
|
51
51
|
linkFaded: "#D3E4ED",
|
|
@@ -83,13 +83,13 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
83
83
|
Ee(() => {
|
|
84
84
|
g(o === "segmented" ? nn(l, c) : 0);
|
|
85
85
|
}, [c, o]);
|
|
86
|
-
const u =
|
|
86
|
+
const u = Q(() => {
|
|
87
87
|
g(nn(l, c));
|
|
88
88
|
}, [l, c, g]);
|
|
89
|
-
return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */
|
|
89
|
+
return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ U(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
|
-
className:
|
|
92
|
+
className: q("p-meter", e, {
|
|
93
93
|
"p-meter--small": a === "small"
|
|
94
94
|
}),
|
|
95
95
|
"aria-label": r == null ? void 0 : r["aria-label"],
|
|
@@ -141,7 +141,7 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
141
141
|
${It} ${i}px
|
|
142
142
|
)`
|
|
143
143
|
});
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ U(we, { children: [
|
|
145
145
|
o() ? /* @__PURE__ */ p(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
@@ -173,7 +173,7 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
173
173
|
}) => /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
|
-
className:
|
|
176
|
+
className: q("p-meter__label", e),
|
|
177
177
|
"data-testid": Oe.label,
|
|
178
178
|
children: n
|
|
179
179
|
}
|
|
@@ -181,7 +181,7 @@ const G = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
181
181
|
zi.Label = Li;
|
|
182
182
|
const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Hi = ({
|
|
183
183
|
percentComplete: e
|
|
184
|
-
}) => /* @__PURE__ */
|
|
184
|
+
}) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
|
|
185
185
|
e,
|
|
186
186
|
"% ",
|
|
187
187
|
/* @__PURE__ */ p(qt, { className: "progress-indicator__spinner" })
|
|
@@ -196,7 +196,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
"aria-label": "loading",
|
|
199
|
-
className:
|
|
199
|
+
className: q("p-placeholder", t),
|
|
200
200
|
role: "progressbar",
|
|
201
201
|
style: { animationDelay: `${o}ms` },
|
|
202
202
|
children: /* @__PURE__ */ p("span", { "aria-hidden": "true", children: e || n || "Loading" })
|
|
@@ -210,7 +210,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
210
210
|
Mn,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
|
-
message: /* @__PURE__ */
|
|
213
|
+
message: /* @__PURE__ */ U(we, { children: [
|
|
214
214
|
e ? "expand" : "collapse",
|
|
215
215
|
"( ",
|
|
216
216
|
/* @__PURE__ */ p("code", { children: "[" }),
|
|
@@ -223,7 +223,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
226
|
-
className:
|
|
226
|
+
className: q(
|
|
227
227
|
"is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
|
|
228
228
|
t
|
|
229
229
|
),
|
|
@@ -234,24 +234,24 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
|
-
), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className:
|
|
237
|
+
), Ui = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Qi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), Ji = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: q("p-side-navigation__item", n, { "has-active-child": t }), children: e }), Zi = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: q("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), eo = ({
|
|
238
238
|
as: e,
|
|
239
239
|
...n
|
|
240
240
|
}) => /* @__PURE__ */ p(
|
|
241
241
|
e || "a",
|
|
242
242
|
{
|
|
243
|
-
className:
|
|
243
|
+
className: q("p-side-navigation__link", n.className),
|
|
244
244
|
...n
|
|
245
245
|
}
|
|
246
|
-
), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className:
|
|
246
|
+
), to = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: q("p-side-navigation__list", n), children: e }), no = ({
|
|
247
247
|
as: e,
|
|
248
248
|
children: n,
|
|
249
249
|
className: t,
|
|
250
250
|
...i
|
|
251
|
-
}) => /* @__PURE__ */ p(e || "a", { className:
|
|
251
|
+
}) => /* @__PURE__ */ p(e || "a", { className: q("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), io = ({ children: e }) => Si(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), oo = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
|
|
252
252
|
"div",
|
|
253
253
|
{
|
|
254
|
-
className:
|
|
254
|
+
className: q("p-panel__logo-name is-fading-when-collapsed", {
|
|
255
255
|
"p-panel__logo-name--small": n === "small"
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
@@ -264,7 +264,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
264
264
|
Se,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
267
|
-
className:
|
|
267
|
+
className: q(
|
|
268
268
|
"p-side-navigation__button--menu has-icon is-dark",
|
|
269
269
|
n
|
|
270
270
|
),
|
|
@@ -273,25 +273,25 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
273
273
|
},
|
|
274
274
|
children: /* @__PURE__ */ p(we, { children: e })
|
|
275
275
|
}
|
|
276
|
-
), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
276
|
+
), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: q("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), co = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: q("p-panel is-dark", n), children: e }) });
|
|
277
|
+
re.Header = Xi;
|
|
278
|
+
re.Banner = Gi;
|
|
279
|
+
re.Drawer = Wi;
|
|
280
|
+
re.Controls = Ki;
|
|
281
|
+
re.CollapseToggle = Bi;
|
|
282
|
+
re.Content = Ui;
|
|
283
|
+
re.Footer = Yi;
|
|
284
|
+
re.List = to;
|
|
285
|
+
re.Item = Ji;
|
|
286
|
+
re.Link = eo;
|
|
287
|
+
re.Text = so;
|
|
288
|
+
re.Icon = Qi;
|
|
289
|
+
re.Label = Zi;
|
|
290
|
+
re.Logo = no;
|
|
291
|
+
re.LogoTag = ao;
|
|
292
|
+
re.LogoIcon = io;
|
|
293
|
+
re.LogoName = oo;
|
|
294
|
+
re.LogoText = ro;
|
|
295
295
|
co.MenuButton = lo;
|
|
296
296
|
const Bt = In(null), Tn = ({ children: e }) => {
|
|
297
297
|
const n = et();
|
|
@@ -319,13 +319,13 @@ Ut.Title = go;
|
|
|
319
319
|
Ut.Description = fo;
|
|
320
320
|
Ut.Content = mo;
|
|
321
321
|
function vo(e) {
|
|
322
|
-
const [n, t] =
|
|
322
|
+
const [n, t] = pe.useState(null), i = pe.useRef(null), o = pe.useCallback(() => {
|
|
323
323
|
if (e.current) {
|
|
324
324
|
const a = e.current.getBoundingClientRect();
|
|
325
325
|
t(a);
|
|
326
326
|
}
|
|
327
327
|
}, [e]);
|
|
328
|
-
return
|
|
328
|
+
return pe.useEffect(() => {
|
|
329
329
|
const a = new ResizeObserver(() => {
|
|
330
330
|
i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
|
|
331
331
|
});
|
|
@@ -334,13 +334,13 @@ function vo(e) {
|
|
|
334
334
|
};
|
|
335
335
|
}, [e, o]), n;
|
|
336
336
|
}
|
|
337
|
-
const zn =
|
|
337
|
+
const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
|
|
338
338
|
}]), Nn = ({ children: e }) => {
|
|
339
|
-
const n =
|
|
339
|
+
const n = pe.useRef(null), t = vo(n), [i, o] = pe.useState(!1);
|
|
340
340
|
return /* @__PURE__ */ p(
|
|
341
341
|
"header",
|
|
342
342
|
{
|
|
343
|
-
className:
|
|
343
|
+
className: q("main-toolbar", {
|
|
344
344
|
"main-toolbar--stacked": i
|
|
345
345
|
}),
|
|
346
346
|
ref: n,
|
|
@@ -355,16 +355,16 @@ const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
|
|
|
355
355
|
}) => /* @__PURE__ */ p(
|
|
356
356
|
e || "h1",
|
|
357
357
|
{
|
|
358
|
-
className:
|
|
358
|
+
className: q("main-toolbar__title p-heading--4", t),
|
|
359
359
|
"data-testid": "main-toolbar-heading",
|
|
360
360
|
...i,
|
|
361
361
|
children: n
|
|
362
362
|
}
|
|
363
363
|
), ho = ({ children: e }) => {
|
|
364
|
-
const n =
|
|
365
|
-
return
|
|
364
|
+
const n = pe.useContext(zn), [t, i] = pe.useContext(Vn), o = pe.useRef(null);
|
|
365
|
+
return pe.useEffect(() => {
|
|
366
366
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
367
|
-
}, [i, n, o]), /* @__PURE__ */
|
|
367
|
+
}, [i, n, o]), /* @__PURE__ */ U(we, { children: [
|
|
368
368
|
/* @__PURE__ */ p(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
@@ -378,7 +378,7 @@ const zn = ue.createContext(null), Vn = ue.createContext([!1, () => {
|
|
|
378
378
|
/* @__PURE__ */ p(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
|
-
className:
|
|
381
|
+
className: q("main-toolbar__controls", {
|
|
382
382
|
"main-toolbar__controls--stacked": t
|
|
383
383
|
}),
|
|
384
384
|
children: e
|
|
@@ -395,16 +395,16 @@ const ot = ({
|
|
|
395
395
|
variant: i = "wide",
|
|
396
396
|
...o
|
|
397
397
|
}) => {
|
|
398
|
-
const a = t || "section", r =
|
|
398
|
+
const a = t || "section", r = q("content-section", n);
|
|
399
399
|
return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(ki, { children: /* @__PURE__ */ p(Fi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(we, { children: e }) }) }) });
|
|
400
400
|
}, wo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
|
|
401
401
|
t || "h1",
|
|
402
402
|
{
|
|
403
403
|
...i,
|
|
404
|
-
className:
|
|
404
|
+
className: q("content-section__title p-heading--4", n),
|
|
405
405
|
children: e
|
|
406
406
|
}
|
|
407
|
-
), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className:
|
|
407
|
+
), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: q("content-section__header", n), children: e }), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: q("content-section__body", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: q("content-section__footer", n), children: e });
|
|
408
408
|
ot.Title = wo;
|
|
409
409
|
ot.Header = yo;
|
|
410
410
|
ot.Content = bo;
|
|
@@ -416,7 +416,7 @@ const Ln = ({
|
|
|
416
416
|
}) => /* @__PURE__ */ p(
|
|
417
417
|
"div",
|
|
418
418
|
{
|
|
419
|
-
className:
|
|
419
|
+
className: q("fade-in--down", n),
|
|
420
420
|
"aria-hidden": t ? "false" : "true",
|
|
421
421
|
style: { visibility: t ? "visible" : "hidden" },
|
|
422
422
|
children: e
|
|
@@ -439,8 +439,8 @@ const Ln = ({
|
|
|
439
439
|
"nav",
|
|
440
440
|
{
|
|
441
441
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
442
|
-
className:
|
|
443
|
-
children: /* @__PURE__ */
|
|
442
|
+
className: q("p-pagination", e),
|
|
443
|
+
children: /* @__PURE__ */ U("span", { className: "p-pagination--items", children: [
|
|
444
444
|
/* @__PURE__ */ p(
|
|
445
445
|
Se,
|
|
446
446
|
{
|
|
@@ -470,7 +470,7 @@ const Ln = ({
|
|
|
470
470
|
}
|
|
471
471
|
),
|
|
472
472
|
" ",
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ U("strong", { className: "u-no-wrap", children: [
|
|
474
474
|
" of ",
|
|
475
475
|
s
|
|
476
476
|
] }),
|
|
@@ -522,7 +522,7 @@ const Ln = ({
|
|
|
522
522
|
"p",
|
|
523
523
|
{
|
|
524
524
|
"aria-label": a ? `${t} (completed)` : t,
|
|
525
|
-
className:
|
|
525
|
+
className: q("stepper__title", {
|
|
526
526
|
"stepper__title--is-active": o,
|
|
527
527
|
"stepper__title--is-complete": a
|
|
528
528
|
}),
|
|
@@ -530,7 +530,7 @@ const Ln = ({
|
|
|
530
530
|
}
|
|
531
531
|
) }, i);
|
|
532
532
|
}) });
|
|
533
|
-
var Ue = { exports: {} }, Ke = { exports: {} },
|
|
533
|
+
var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
|
|
534
534
|
/** @license React v16.13.1
|
|
535
535
|
* react-is.production.min.js
|
|
536
536
|
*
|
|
@@ -541,71 +541,71 @@ var Ue = { exports: {} }, Ke = { exports: {} }, U = {};
|
|
|
541
541
|
*/
|
|
542
542
|
var on;
|
|
543
543
|
function Ro() {
|
|
544
|
-
if (on) return
|
|
544
|
+
if (on) return K;
|
|
545
545
|
on = 1;
|
|
546
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117,
|
|
547
|
-
function
|
|
548
|
-
if (typeof
|
|
549
|
-
var
|
|
550
|
-
switch (
|
|
546
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
547
|
+
function _(x) {
|
|
548
|
+
if (typeof x == "object" && x !== null) {
|
|
549
|
+
var V = x.$$typeof;
|
|
550
|
+
switch (V) {
|
|
551
551
|
case n:
|
|
552
|
-
switch (
|
|
552
|
+
switch (x = x.type, x) {
|
|
553
553
|
case s:
|
|
554
554
|
case c:
|
|
555
555
|
case i:
|
|
556
556
|
case a:
|
|
557
557
|
case o:
|
|
558
558
|
case f:
|
|
559
|
-
return
|
|
559
|
+
return x;
|
|
560
560
|
default:
|
|
561
|
-
switch (
|
|
561
|
+
switch (x = x && x.$$typeof, x) {
|
|
562
562
|
case l:
|
|
563
563
|
case d:
|
|
564
564
|
case m:
|
|
565
565
|
case u:
|
|
566
566
|
case r:
|
|
567
|
-
return
|
|
567
|
+
return x;
|
|
568
568
|
default:
|
|
569
|
-
return
|
|
569
|
+
return V;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
case t:
|
|
573
|
-
return
|
|
573
|
+
return V;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function M(
|
|
578
|
-
return
|
|
577
|
+
function M(x) {
|
|
578
|
+
return _(x) === c;
|
|
579
579
|
}
|
|
580
|
-
return
|
|
581
|
-
return M(
|
|
582
|
-
},
|
|
583
|
-
return
|
|
584
|
-
},
|
|
585
|
-
return
|
|
586
|
-
},
|
|
587
|
-
return typeof
|
|
588
|
-
},
|
|
589
|
-
return
|
|
590
|
-
},
|
|
591
|
-
return
|
|
592
|
-
},
|
|
593
|
-
return
|
|
594
|
-
},
|
|
595
|
-
return
|
|
596
|
-
},
|
|
597
|
-
return
|
|
598
|
-
},
|
|
599
|
-
return
|
|
600
|
-
},
|
|
601
|
-
return
|
|
602
|
-
},
|
|
603
|
-
return
|
|
604
|
-
},
|
|
605
|
-
return typeof
|
|
606
|
-
},
|
|
580
|
+
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
|
|
581
|
+
return M(x) || _(x) === s;
|
|
582
|
+
}, K.isConcurrentMode = M, K.isContextConsumer = function(x) {
|
|
583
|
+
return _(x) === l;
|
|
584
|
+
}, K.isContextProvider = function(x) {
|
|
585
|
+
return _(x) === r;
|
|
586
|
+
}, K.isElement = function(x) {
|
|
587
|
+
return typeof x == "object" && x !== null && x.$$typeof === n;
|
|
588
|
+
}, K.isForwardRef = function(x) {
|
|
589
|
+
return _(x) === d;
|
|
590
|
+
}, K.isFragment = function(x) {
|
|
591
|
+
return _(x) === i;
|
|
592
|
+
}, K.isLazy = function(x) {
|
|
593
|
+
return _(x) === m;
|
|
594
|
+
}, K.isMemo = function(x) {
|
|
595
|
+
return _(x) === u;
|
|
596
|
+
}, K.isPortal = function(x) {
|
|
597
|
+
return _(x) === t;
|
|
598
|
+
}, K.isProfiler = function(x) {
|
|
599
|
+
return _(x) === a;
|
|
600
|
+
}, K.isStrictMode = function(x) {
|
|
601
|
+
return _(x) === o;
|
|
602
|
+
}, K.isSuspense = function(x) {
|
|
603
|
+
return _(x) === f;
|
|
604
|
+
}, K.isValidElementType = function(x) {
|
|
605
|
+
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === R || x.$$typeof === h || x.$$typeof === j || x.$$typeof === v);
|
|
606
|
+
}, K.typeOf = _, K;
|
|
607
607
|
}
|
|
608
|
-
var
|
|
608
|
+
var W = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
610
610
|
* react-is.development.js
|
|
611
611
|
*
|
|
@@ -617,15 +617,15 @@ var K = {};
|
|
|
617
617
|
var an;
|
|
618
618
|
function Eo() {
|
|
619
619
|
return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
|
|
620
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117,
|
|
621
|
-
function
|
|
620
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
621
|
+
function _(b) {
|
|
622
622
|
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
623
|
-
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof ===
|
|
623
|
+
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === R || b.$$typeof === h || b.$$typeof === j || b.$$typeof === v);
|
|
624
624
|
}
|
|
625
625
|
function M(b) {
|
|
626
626
|
if (typeof b == "object" && b !== null) {
|
|
627
|
-
var
|
|
628
|
-
switch (
|
|
627
|
+
var fe = b.$$typeof;
|
|
628
|
+
switch (fe) {
|
|
629
629
|
case n:
|
|
630
630
|
var Fe = b.type;
|
|
631
631
|
switch (Fe) {
|
|
@@ -646,19 +646,19 @@ function Eo() {
|
|
|
646
646
|
case r:
|
|
647
647
|
return Te;
|
|
648
648
|
default:
|
|
649
|
-
return
|
|
649
|
+
return fe;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
case t:
|
|
653
|
-
return
|
|
653
|
+
return fe;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var
|
|
657
|
+
var x = s, V = c, L = l, B = r, Z = n, ce = d, ue = i, ge = m, I = u, S = t, H = a, Y = o, ee = f, oe = !1;
|
|
658
658
|
function te(b) {
|
|
659
|
-
return
|
|
659
|
+
return oe || (oe = !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.")), w(b) || M(b) === s;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function w(b) {
|
|
662
662
|
return M(b) === c;
|
|
663
663
|
}
|
|
664
664
|
function y(b) {
|
|
@@ -667,25 +667,25 @@ function Eo() {
|
|
|
667
667
|
function k(b) {
|
|
668
668
|
return M(b) === r;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function F(b) {
|
|
671
671
|
return typeof b == "object" && b !== null && b.$$typeof === n;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function E(b) {
|
|
674
674
|
return M(b) === d;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function D(b) {
|
|
677
677
|
return M(b) === i;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function P(b) {
|
|
680
680
|
return M(b) === m;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function T(b) {
|
|
683
683
|
return M(b) === u;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function z(b) {
|
|
686
686
|
return M(b) === t;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function G(b) {
|
|
689
689
|
return M(b) === a;
|
|
690
690
|
}
|
|
691
691
|
function N(b) {
|
|
@@ -694,8 +694,8 @@ function Eo() {
|
|
|
694
694
|
function ie(b) {
|
|
695
695
|
return M(b) === f;
|
|
696
696
|
}
|
|
697
|
-
|
|
698
|
-
}()),
|
|
697
|
+
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = L, W.ContextProvider = B, W.Element = Z, W.ForwardRef = ce, W.Fragment = ue, W.Lazy = ge, W.Memo = I, W.Portal = S, W.Profiler = H, W.StrictMode = Y, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = y, W.isContextProvider = k, W.isElement = F, W.isForwardRef = E, W.isFragment = D, W.isLazy = P, W.isMemo = T, W.isPortal = z, W.isProfiler = G, W.isStrictMode = N, W.isSuspense = ie, W.isValidElementType = _, W.typeOf = M;
|
|
698
|
+
}()), W;
|
|
699
699
|
}
|
|
700
700
|
var rn;
|
|
701
701
|
function Hn() {
|
|
@@ -831,90 +831,90 @@ function Po() {
|
|
|
831
831
|
}
|
|
832
832
|
return wt = function(l, s) {
|
|
833
833
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
834
|
-
function f(
|
|
835
|
-
var y =
|
|
834
|
+
function f(w) {
|
|
835
|
+
var y = w && (c && w[c] || w[d]);
|
|
836
836
|
if (typeof y == "function")
|
|
837
837
|
return y;
|
|
838
838
|
}
|
|
839
839
|
var g = "<<anonymous>>", u = {
|
|
840
|
-
array:
|
|
841
|
-
bigint:
|
|
842
|
-
bool:
|
|
843
|
-
func:
|
|
844
|
-
number:
|
|
845
|
-
object:
|
|
846
|
-
string:
|
|
847
|
-
symbol:
|
|
848
|
-
any:
|
|
849
|
-
arrayOf:
|
|
840
|
+
array: h("array"),
|
|
841
|
+
bigint: h("bigint"),
|
|
842
|
+
bool: h("boolean"),
|
|
843
|
+
func: h("function"),
|
|
844
|
+
number: h("number"),
|
|
845
|
+
object: h("object"),
|
|
846
|
+
string: h("string"),
|
|
847
|
+
symbol: h("symbol"),
|
|
848
|
+
any: j(),
|
|
849
|
+
arrayOf: _,
|
|
850
850
|
element: M(),
|
|
851
|
-
elementType:
|
|
852
|
-
instanceOf:
|
|
853
|
-
node:
|
|
854
|
-
objectOf:
|
|
855
|
-
oneOf:
|
|
856
|
-
oneOfType:
|
|
857
|
-
shape:
|
|
851
|
+
elementType: x(),
|
|
852
|
+
instanceOf: V,
|
|
853
|
+
node: ce(),
|
|
854
|
+
objectOf: B,
|
|
855
|
+
oneOf: L,
|
|
856
|
+
oneOfType: Z,
|
|
857
|
+
shape: ge,
|
|
858
858
|
exact: I
|
|
859
859
|
};
|
|
860
|
-
function m(
|
|
861
|
-
return
|
|
860
|
+
function m(w, y) {
|
|
861
|
+
return w === y ? w !== 0 || 1 / w === 1 / y : w !== w && y !== y;
|
|
862
862
|
}
|
|
863
|
-
function v(
|
|
864
|
-
this.message =
|
|
863
|
+
function v(w, y) {
|
|
864
|
+
this.message = w, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
865
865
|
}
|
|
866
866
|
v.prototype = Error.prototype;
|
|
867
|
-
function R(
|
|
867
|
+
function R(w) {
|
|
868
868
|
if (process.env.NODE_ENV !== "production")
|
|
869
869
|
var y = {}, k = 0;
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
870
|
+
function F(D, P, T, z, G, N, ie) {
|
|
871
|
+
if (z = z || g, N = N || T, ie !== t) {
|
|
872
872
|
if (s) {
|
|
873
873
|
var b = new Error(
|
|
874
874
|
"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"
|
|
875
875
|
);
|
|
876
876
|
throw b.name = "Invariant Violation", b;
|
|
877
877
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
878
|
-
var
|
|
879
|
-
!y[
|
|
878
|
+
var fe = z + ":" + T;
|
|
879
|
+
!y[fe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
880
880
|
k < 3 && (a(
|
|
881
|
-
"You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" +
|
|
882
|
-
), y[
|
|
881
|
+
"You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
882
|
+
), y[fe] = !0, k++);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
return
|
|
885
|
+
return P[T] == null ? D ? P[T] === null ? new v("The " + G + " `" + N + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new v("The " + G + " `" + N + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : w(P, T, z, G, N);
|
|
886
886
|
}
|
|
887
|
-
var
|
|
888
|
-
return
|
|
887
|
+
var E = F.bind(null, !1);
|
|
888
|
+
return E.isRequired = F.bind(null, !0), E;
|
|
889
889
|
}
|
|
890
|
-
function w
|
|
891
|
-
function y(k,
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var N =
|
|
890
|
+
function h(w) {
|
|
891
|
+
function y(k, F, E, D, P, T) {
|
|
892
|
+
var z = k[F], G = Y(z);
|
|
893
|
+
if (G !== w) {
|
|
894
|
+
var N = ee(z);
|
|
895
895
|
return new v(
|
|
896
|
-
"Invalid " +
|
|
897
|
-
{ expectedType:
|
|
896
|
+
"Invalid " + D + " `" + P + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected ") + ("`" + w + "`."),
|
|
897
|
+
{ expectedType: w }
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
900
|
return null;
|
|
901
901
|
}
|
|
902
902
|
return R(y);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function j() {
|
|
905
905
|
return R(r);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
function y(k,
|
|
909
|
-
if (typeof
|
|
910
|
-
return new v("Property `" +
|
|
911
|
-
var
|
|
912
|
-
if (!Array.isArray(
|
|
913
|
-
var
|
|
914
|
-
return new v("Invalid " +
|
|
907
|
+
function _(w) {
|
|
908
|
+
function y(k, F, E, D, P) {
|
|
909
|
+
if (typeof w != "function")
|
|
910
|
+
return new v("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
911
|
+
var T = k[F];
|
|
912
|
+
if (!Array.isArray(T)) {
|
|
913
|
+
var z = Y(T);
|
|
914
|
+
return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an array."));
|
|
915
915
|
}
|
|
916
|
-
for (var
|
|
917
|
-
var N =
|
|
916
|
+
for (var G = 0; G < T.length; G++) {
|
|
917
|
+
var N = w(T, G, E, D, P + "[" + G + "]", t);
|
|
918
918
|
if (N instanceof Error)
|
|
919
919
|
return N;
|
|
920
920
|
}
|
|
@@ -923,64 +923,64 @@ function Po() {
|
|
|
923
923
|
return R(y);
|
|
924
924
|
}
|
|
925
925
|
function M() {
|
|
926
|
-
function
|
|
927
|
-
var
|
|
928
|
-
if (!l(
|
|
929
|
-
var
|
|
930
|
-
return new v("Invalid " +
|
|
926
|
+
function w(y, k, F, E, D) {
|
|
927
|
+
var P = y[k];
|
|
928
|
+
if (!l(P)) {
|
|
929
|
+
var T = Y(P);
|
|
930
|
+
return new v("Invalid " + E + " `" + D + "` of type " + ("`" + T + "` supplied to `" + F + "`, expected a single ReactElement."));
|
|
931
931
|
}
|
|
932
932
|
return null;
|
|
933
933
|
}
|
|
934
|
-
return R(
|
|
934
|
+
return R(w);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
function
|
|
938
|
-
var
|
|
939
|
-
if (!e.isValidElementType(
|
|
940
|
-
var
|
|
941
|
-
return new v("Invalid " +
|
|
936
|
+
function x() {
|
|
937
|
+
function w(y, k, F, E, D) {
|
|
938
|
+
var P = y[k];
|
|
939
|
+
if (!e.isValidElementType(P)) {
|
|
940
|
+
var T = Y(P);
|
|
941
|
+
return new v("Invalid " + E + " `" + D + "` of type " + ("`" + T + "` supplied to `" + F + "`, expected a single ReactElement type."));
|
|
942
942
|
}
|
|
943
943
|
return null;
|
|
944
944
|
}
|
|
945
|
-
return R(
|
|
945
|
+
return R(w);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
function y(k,
|
|
949
|
-
if (!(k[
|
|
950
|
-
var
|
|
951
|
-
return new v("Invalid " +
|
|
947
|
+
function V(w) {
|
|
948
|
+
function y(k, F, E, D, P) {
|
|
949
|
+
if (!(k[F] instanceof w)) {
|
|
950
|
+
var T = w.name || g, z = te(k[F]);
|
|
951
|
+
return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected ") + ("instance of `" + T + "`."));
|
|
952
952
|
}
|
|
953
953
|
return null;
|
|
954
954
|
}
|
|
955
955
|
return R(y);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
if (!Array.isArray(
|
|
957
|
+
function L(w) {
|
|
958
|
+
if (!Array.isArray(w))
|
|
959
959
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
960
960
|
"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])."
|
|
961
961
|
) : a("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
962
|
-
function y(k,
|
|
963
|
-
for (var
|
|
964
|
-
if (m(
|
|
962
|
+
function y(k, F, E, D, P) {
|
|
963
|
+
for (var T = k[F], z = 0; z < w.length; z++)
|
|
964
|
+
if (m(T, w[z]))
|
|
965
965
|
return null;
|
|
966
|
-
var
|
|
967
|
-
var
|
|
968
|
-
return
|
|
966
|
+
var G = JSON.stringify(w, function(ie, b) {
|
|
967
|
+
var fe = ee(b);
|
|
968
|
+
return fe === "symbol" ? String(b) : b;
|
|
969
969
|
});
|
|
970
|
-
return new v("Invalid " +
|
|
970
|
+
return new v("Invalid " + D + " `" + P + "` of value `" + String(T) + "` " + ("supplied to `" + E + "`, expected one of " + G + "."));
|
|
971
971
|
}
|
|
972
972
|
return R(y);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
function y(k,
|
|
976
|
-
if (typeof
|
|
977
|
-
return new v("Property `" +
|
|
978
|
-
var
|
|
979
|
-
if (
|
|
980
|
-
return new v("Invalid " +
|
|
981
|
-
for (var
|
|
982
|
-
if (i(
|
|
983
|
-
var N =
|
|
974
|
+
function B(w) {
|
|
975
|
+
function y(k, F, E, D, P) {
|
|
976
|
+
if (typeof w != "function")
|
|
977
|
+
return new v("Property `" + P + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
978
|
+
var T = k[F], z = Y(T);
|
|
979
|
+
if (z !== "object")
|
|
980
|
+
return new v("Invalid " + D + " `" + P + "` of type " + ("`" + z + "` supplied to `" + E + "`, expected an object."));
|
|
981
|
+
for (var G in T)
|
|
982
|
+
if (i(T, G)) {
|
|
983
|
+
var N = w(T, G, E, D, P + "." + G, t);
|
|
984
984
|
if (N instanceof Error)
|
|
985
985
|
return N;
|
|
986
986
|
}
|
|
@@ -988,49 +988,49 @@ function Po() {
|
|
|
988
988
|
}
|
|
989
989
|
return R(y);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
if (!Array.isArray(
|
|
991
|
+
function Z(w) {
|
|
992
|
+
if (!Array.isArray(w))
|
|
993
993
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
994
|
-
for (var y = 0; y <
|
|
995
|
-
var k =
|
|
994
|
+
for (var y = 0; y < w.length; y++) {
|
|
995
|
+
var k = w[y];
|
|
996
996
|
if (typeof k != "function")
|
|
997
997
|
return a(
|
|
998
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
998
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(k) + " at index " + y + "."
|
|
999
999
|
), r;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
for (var
|
|
1003
|
-
var ie =
|
|
1001
|
+
function F(E, D, P, T, z) {
|
|
1002
|
+
for (var G = [], N = 0; N < w.length; N++) {
|
|
1003
|
+
var ie = w[N], b = ie(E, D, P, T, z, t);
|
|
1004
1004
|
if (b == null)
|
|
1005
1005
|
return null;
|
|
1006
|
-
b.data && i(b.data, "expectedType") &&
|
|
1006
|
+
b.data && i(b.data, "expectedType") && G.push(b.data.expectedType);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1009
|
-
return new v("Invalid " +
|
|
1008
|
+
var fe = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
1009
|
+
return new v("Invalid " + T + " `" + z + "` supplied to " + ("`" + P + "`" + fe + "."));
|
|
1010
1010
|
}
|
|
1011
|
-
return R(
|
|
1011
|
+
return R(F);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
function
|
|
1015
|
-
return S(y[k]) ? null : new v("Invalid " +
|
|
1013
|
+
function ce() {
|
|
1014
|
+
function w(y, k, F, E, D) {
|
|
1015
|
+
return S(y[k]) ? null : new v("Invalid " + E + " `" + D + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
|
|
1016
1016
|
}
|
|
1017
|
-
return R(
|
|
1017
|
+
return R(w);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function ue(w, y, k, F, E) {
|
|
1020
1020
|
return new v(
|
|
1021
|
-
(
|
|
1021
|
+
(w || "React class") + ": " + y + " type `" + k + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
function y(k,
|
|
1026
|
-
var
|
|
1027
|
-
if (
|
|
1028
|
-
return new v("Invalid " +
|
|
1029
|
-
for (var
|
|
1030
|
-
var N =
|
|
1024
|
+
function ge(w) {
|
|
1025
|
+
function y(k, F, E, D, P) {
|
|
1026
|
+
var T = k[F], z = Y(T);
|
|
1027
|
+
if (z !== "object")
|
|
1028
|
+
return new v("Invalid " + D + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1029
|
+
for (var G in w) {
|
|
1030
|
+
var N = w[G];
|
|
1031
1031
|
if (typeof N != "function")
|
|
1032
|
-
return
|
|
1033
|
-
var ie = N(
|
|
1032
|
+
return ue(E, D, P, G, ee(N));
|
|
1033
|
+
var ie = N(T, G, E, D, P + "." + G, t);
|
|
1034
1034
|
if (ie)
|
|
1035
1035
|
return ie;
|
|
1036
1036
|
}
|
|
@@ -1038,22 +1038,22 @@ function Po() {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
return R(y);
|
|
1040
1040
|
}
|
|
1041
|
-
function I(
|
|
1042
|
-
function y(k,
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
return new v("Invalid " +
|
|
1046
|
-
var
|
|
1047
|
-
for (var N in
|
|
1048
|
-
var ie =
|
|
1049
|
-
if (i(
|
|
1050
|
-
return
|
|
1041
|
+
function I(w) {
|
|
1042
|
+
function y(k, F, E, D, P) {
|
|
1043
|
+
var T = k[F], z = Y(T);
|
|
1044
|
+
if (z !== "object")
|
|
1045
|
+
return new v("Invalid " + D + " `" + P + "` of type `" + z + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1046
|
+
var G = n({}, k[F], w);
|
|
1047
|
+
for (var N in G) {
|
|
1048
|
+
var ie = w[N];
|
|
1049
|
+
if (i(w, N) && typeof ie != "function")
|
|
1050
|
+
return ue(E, D, P, N, ee(ie));
|
|
1051
1051
|
if (!ie)
|
|
1052
1052
|
return new v(
|
|
1053
|
-
"Invalid " +
|
|
1054
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1053
|
+
"Invalid " + D + " `" + P + "` key `" + N + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(k[F], null, " ") + `
|
|
1054
|
+
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1055
1055
|
);
|
|
1056
|
-
var b = ie(
|
|
1056
|
+
var b = ie(T, N, E, D, P + "." + N, t);
|
|
1057
1057
|
if (b)
|
|
1058
1058
|
return b;
|
|
1059
1059
|
}
|
|
@@ -1061,30 +1061,30 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1061
1061
|
}
|
|
1062
1062
|
return R(y);
|
|
1063
1063
|
}
|
|
1064
|
-
function S(
|
|
1065
|
-
switch (typeof
|
|
1064
|
+
function S(w) {
|
|
1065
|
+
switch (typeof w) {
|
|
1066
1066
|
case "number":
|
|
1067
1067
|
case "string":
|
|
1068
1068
|
case "undefined":
|
|
1069
1069
|
return !0;
|
|
1070
1070
|
case "boolean":
|
|
1071
|
-
return !
|
|
1071
|
+
return !w;
|
|
1072
1072
|
case "object":
|
|
1073
|
-
if (Array.isArray(
|
|
1074
|
-
return
|
|
1075
|
-
if (
|
|
1073
|
+
if (Array.isArray(w))
|
|
1074
|
+
return w.every(S);
|
|
1075
|
+
if (w === null || l(w))
|
|
1076
1076
|
return !0;
|
|
1077
|
-
var y = f(
|
|
1077
|
+
var y = f(w);
|
|
1078
1078
|
if (y) {
|
|
1079
|
-
var k = y.call(
|
|
1080
|
-
if (y !==
|
|
1081
|
-
for (; !(
|
|
1082
|
-
if (!S(
|
|
1079
|
+
var k = y.call(w), F;
|
|
1080
|
+
if (y !== w.entries) {
|
|
1081
|
+
for (; !(F = k.next()).done; )
|
|
1082
|
+
if (!S(F.value))
|
|
1083
1083
|
return !1;
|
|
1084
1084
|
} else
|
|
1085
|
-
for (; !(
|
|
1086
|
-
var
|
|
1087
|
-
if (
|
|
1085
|
+
for (; !(F = k.next()).done; ) {
|
|
1086
|
+
var E = F.value;
|
|
1087
|
+
if (E && !S(E[1]))
|
|
1088
1088
|
return !1;
|
|
1089
1089
|
}
|
|
1090
1090
|
} else
|
|
@@ -1094,27 +1094,27 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1094
1094
|
return !1;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1097
|
+
function H(w, y) {
|
|
1098
|
+
return w === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
var y = typeof
|
|
1102
|
-
return Array.isArray(
|
|
1100
|
+
function Y(w) {
|
|
1101
|
+
var y = typeof w;
|
|
1102
|
+
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : H(y, w) ? "symbol" : y;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
if (typeof
|
|
1106
|
-
return "" +
|
|
1107
|
-
var y =
|
|
1104
|
+
function ee(w) {
|
|
1105
|
+
if (typeof w > "u" || w === null)
|
|
1106
|
+
return "" + w;
|
|
1107
|
+
var y = Y(w);
|
|
1108
1108
|
if (y === "object") {
|
|
1109
|
-
if (
|
|
1109
|
+
if (w instanceof Date)
|
|
1110
1110
|
return "date";
|
|
1111
|
-
if (
|
|
1111
|
+
if (w instanceof RegExp)
|
|
1112
1112
|
return "regexp";
|
|
1113
1113
|
}
|
|
1114
1114
|
return y;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
var y =
|
|
1116
|
+
function oe(w) {
|
|
1117
|
+
var y = ee(w);
|
|
1118
1118
|
switch (y) {
|
|
1119
1119
|
case "array":
|
|
1120
1120
|
case "object":
|
|
@@ -1127,8 +1127,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1127
1127
|
return y;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
function te(
|
|
1131
|
-
return !
|
|
1130
|
+
function te(w) {
|
|
1131
|
+
return !w.constructor || !w.constructor.name ? g : w.constructor.name;
|
|
1132
1132
|
}
|
|
1133
1133
|
return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
|
|
1134
1134
|
}, wt;
|
|
@@ -1192,7 +1192,7 @@ function Do() {
|
|
|
1192
1192
|
return Ue.exports;
|
|
1193
1193
|
}
|
|
1194
1194
|
var $o = /* @__PURE__ */ Do();
|
|
1195
|
-
const
|
|
1195
|
+
const X = /* @__PURE__ */ Gt($o);
|
|
1196
1196
|
function De(e, n, t, i) {
|
|
1197
1197
|
function o(a) {
|
|
1198
1198
|
return a instanceof t ? a : new t(function(r) {
|
|
@@ -2855,7 +2855,7 @@ function _n(e, n) {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
return t;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function J(e) {
|
|
2859
2859
|
for (var n = 1; n < arguments.length; n++) {
|
|
2860
2860
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2861
2861
|
n % 2 ? _n(Object(t), !0).forEach(function(i) {
|
|
@@ -2892,7 +2892,7 @@ var Wt = /* @__PURE__ */ Ci(function(e, n) {
|
|
|
2892
2892
|
return {
|
|
2893
2893
|
open: a
|
|
2894
2894
|
};
|
|
2895
|
-
}, [a]), /* @__PURE__ */ bi.createElement($n, null, t(
|
|
2895
|
+
}, [a]), /* @__PURE__ */ bi.createElement($n, null, t(J(J({}, r), {}, {
|
|
2896
2896
|
open: a
|
|
2897
2897
|
})));
|
|
2898
2898
|
});
|
|
@@ -2930,7 +2930,7 @@ Wt.propTypes = {
|
|
|
2930
2930
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2931
2931
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2932
2932
|
*/
|
|
2933
|
-
children:
|
|
2933
|
+
children: X.func,
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Set accepted file types.
|
|
2936
2936
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2938,90 +2938,90 @@ Wt.propTypes = {
|
|
|
2938
2938
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2939
2939
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2940
2940
|
*/
|
|
2941
|
-
accept:
|
|
2941
|
+
accept: X.objectOf(X.arrayOf(X.string)),
|
|
2942
2942
|
/**
|
|
2943
2943
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2944
2944
|
*/
|
|
2945
|
-
multiple:
|
|
2945
|
+
multiple: X.bool,
|
|
2946
2946
|
/**
|
|
2947
2947
|
* If false, allow dropped items to take over the current browser window
|
|
2948
2948
|
*/
|
|
2949
|
-
preventDropOnDocument:
|
|
2949
|
+
preventDropOnDocument: X.bool,
|
|
2950
2950
|
/**
|
|
2951
2951
|
* If true, disables click to open the native file selection dialog
|
|
2952
2952
|
*/
|
|
2953
|
-
noClick:
|
|
2953
|
+
noClick: X.bool,
|
|
2954
2954
|
/**
|
|
2955
2955
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2956
2956
|
* Note that it also stops tracking the focus state.
|
|
2957
2957
|
*/
|
|
2958
|
-
noKeyboard:
|
|
2958
|
+
noKeyboard: X.bool,
|
|
2959
2959
|
/**
|
|
2960
2960
|
* If true, disables drag 'n' drop
|
|
2961
2961
|
*/
|
|
2962
|
-
noDrag:
|
|
2962
|
+
noDrag: X.bool,
|
|
2963
2963
|
/**
|
|
2964
2964
|
* If true, stops drag event propagation to parents
|
|
2965
2965
|
*/
|
|
2966
|
-
noDragEventsBubbling:
|
|
2966
|
+
noDragEventsBubbling: X.bool,
|
|
2967
2967
|
/**
|
|
2968
2968
|
* Minimum file size (in bytes)
|
|
2969
2969
|
*/
|
|
2970
|
-
minSize:
|
|
2970
|
+
minSize: X.number,
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Maximum file size (in bytes)
|
|
2973
2973
|
*/
|
|
2974
|
-
maxSize:
|
|
2974
|
+
maxSize: X.number,
|
|
2975
2975
|
/**
|
|
2976
2976
|
* Maximum accepted number of files
|
|
2977
2977
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2978
2978
|
*/
|
|
2979
|
-
maxFiles:
|
|
2979
|
+
maxFiles: X.number,
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Enable/disable the dropzone
|
|
2982
2982
|
*/
|
|
2983
|
-
disabled:
|
|
2983
|
+
disabled: X.bool,
|
|
2984
2984
|
/**
|
|
2985
2985
|
* Use this to provide a custom file aggregator
|
|
2986
2986
|
*
|
|
2987
2987
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2988
2988
|
*/
|
|
2989
|
-
getFilesFromEvent:
|
|
2989
|
+
getFilesFromEvent: X.func,
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Cb for when closing the file dialog with no selection
|
|
2992
2992
|
*/
|
|
2993
|
-
onFileDialogCancel:
|
|
2993
|
+
onFileDialogCancel: X.func,
|
|
2994
2994
|
/**
|
|
2995
2995
|
* Cb for when opening the file dialog
|
|
2996
2996
|
*/
|
|
2997
|
-
onFileDialogOpen:
|
|
2997
|
+
onFileDialogOpen: X.func,
|
|
2998
2998
|
/**
|
|
2999
2999
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3000
3000
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3001
3001
|
*/
|
|
3002
|
-
useFsAccessApi:
|
|
3002
|
+
useFsAccessApi: X.bool,
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Set to true to focus the root element on render
|
|
3005
3005
|
*/
|
|
3006
|
-
autoFocus:
|
|
3006
|
+
autoFocus: X.bool,
|
|
3007
3007
|
/**
|
|
3008
3008
|
* Cb for when the `dragenter` event occurs.
|
|
3009
3009
|
*
|
|
3010
3010
|
* @param {DragEvent} event
|
|
3011
3011
|
*/
|
|
3012
|
-
onDragEnter:
|
|
3012
|
+
onDragEnter: X.func,
|
|
3013
3013
|
/**
|
|
3014
3014
|
* Cb for when the `dragleave` event occurs
|
|
3015
3015
|
*
|
|
3016
3016
|
* @param {DragEvent} event
|
|
3017
3017
|
*/
|
|
3018
|
-
onDragLeave:
|
|
3018
|
+
onDragLeave: X.func,
|
|
3019
3019
|
/**
|
|
3020
3020
|
* Cb for when the `dragover` event occurs
|
|
3021
3021
|
*
|
|
3022
3022
|
* @param {DragEvent} event
|
|
3023
3023
|
*/
|
|
3024
|
-
onDragOver:
|
|
3024
|
+
onDragOver: X.func,
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Cb for when the `drop` event occurs.
|
|
3027
3027
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3052,7 +3052,7 @@ Wt.propTypes = {
|
|
|
3052
3052
|
* @param {FileRejection[]} fileRejections
|
|
3053
3053
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3054
3054
|
*/
|
|
3055
|
-
onDrop:
|
|
3055
|
+
onDrop: X.func,
|
|
3056
3056
|
/**
|
|
3057
3057
|
* Cb for when the `drop` event occurs.
|
|
3058
3058
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3060,7 +3060,7 @@ Wt.propTypes = {
|
|
|
3060
3060
|
* @param {File[]} files
|
|
3061
3061
|
* @param {(DragEvent|Event)} event
|
|
3062
3062
|
*/
|
|
3063
|
-
onDropAccepted:
|
|
3063
|
+
onDropAccepted: X.func,
|
|
3064
3064
|
/**
|
|
3065
3065
|
* Cb for when the `drop` event occurs.
|
|
3066
3066
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3068,19 +3068,19 @@ Wt.propTypes = {
|
|
|
3068
3068
|
* @param {FileRejection[]} fileRejections
|
|
3069
3069
|
* @param {(DragEvent|Event)} event
|
|
3070
3070
|
*/
|
|
3071
|
-
onDropRejected:
|
|
3071
|
+
onDropRejected: X.func,
|
|
3072
3072
|
/**
|
|
3073
3073
|
* Cb for when there's some error from any of the promises.
|
|
3074
3074
|
*
|
|
3075
3075
|
* @param {Error} error
|
|
3076
3076
|
*/
|
|
3077
|
-
onError:
|
|
3077
|
+
onError: X.func,
|
|
3078
3078
|
/**
|
|
3079
3079
|
* Custom validation function. It must return null if there's no errors.
|
|
3080
3080
|
* @param {File} file
|
|
3081
3081
|
* @returns {FileError|FileError[]|null}
|
|
3082
3082
|
*/
|
|
3083
|
-
validator:
|
|
3083
|
+
validator: X.func
|
|
3084
3084
|
};
|
|
3085
3085
|
var Ot = {
|
|
3086
3086
|
isFocused: !1,
|
|
@@ -3092,18 +3092,18 @@ var Ot = {
|
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
3094
|
function ei() {
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n =
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, Zn), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, R = n.onFileDialogOpen, h = n.useFsAccessApi, j = n.autoFocus, _ = n.preventDropOnDocument, M = n.noClick, x = n.noKeyboard, V = n.noDrag, L = n.noDragEventsBubbling, B = n.onError, Z = n.validator, ce = le(function() {
|
|
3096
3096
|
return da(t);
|
|
3097
|
-
}, [t]),
|
|
3097
|
+
}, [t]), ue = le(function() {
|
|
3098
3098
|
return ua(t);
|
|
3099
|
-
}, [t]),
|
|
3099
|
+
}, [t]), ge = le(function() {
|
|
3100
3100
|
return typeof R == "function" ? R : Rn;
|
|
3101
|
-
}, [R]), I =
|
|
3101
|
+
}, [R]), I = le(function() {
|
|
3102
3102
|
return typeof v == "function" ? v : Rn;
|
|
3103
|
-
}, [v]), S = be(null),
|
|
3103
|
+
}, [v]), S = be(null), H = be(null), Y = Dn(ka, Ot), ee = St(Y, 2), oe = ee[0], te = ee[1], w = oe.isFocused, y = oe.isFileDialogActive, k = be(typeof window < "u" && window.isSecureContext && h && pa()), F = function() {
|
|
3104
3104
|
!k.current && y && setTimeout(function() {
|
|
3105
|
-
if (
|
|
3106
|
-
var O =
|
|
3105
|
+
if (H.current) {
|
|
3106
|
+
var O = H.current.files;
|
|
3107
3107
|
O.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
3109
|
}), I());
|
|
@@ -3111,46 +3111,46 @@ function ei() {
|
|
|
3111
3111
|
}, 300);
|
|
3112
3112
|
};
|
|
3113
3113
|
Ee(function() {
|
|
3114
|
-
return window.addEventListener("focus",
|
|
3115
|
-
window.removeEventListener("focus",
|
|
3114
|
+
return window.addEventListener("focus", F, !1), function() {
|
|
3115
|
+
window.removeEventListener("focus", F, !1);
|
|
3116
3116
|
};
|
|
3117
|
-
}, [
|
|
3118
|
-
var
|
|
3119
|
-
S.current && S.current.contains(O.target) || (O.preventDefault(),
|
|
3117
|
+
}, [H, y, I, k]);
|
|
3118
|
+
var E = be([]), D = function(O) {
|
|
3119
|
+
S.current && S.current.contains(O.target) || (O.preventDefault(), E.current = []);
|
|
3120
3120
|
};
|
|
3121
3121
|
Ee(function() {
|
|
3122
|
-
return
|
|
3123
|
-
|
|
3122
|
+
return _ && (document.addEventListener("dragover", Cn, !1), document.addEventListener("drop", D, !1)), function() {
|
|
3123
|
+
_ && (document.removeEventListener("dragover", Cn), document.removeEventListener("drop", D));
|
|
3124
3124
|
};
|
|
3125
|
-
}, [S,
|
|
3126
|
-
return !i &&
|
|
3125
|
+
}, [S, _]), Ee(function() {
|
|
3126
|
+
return !i && j && S.current && S.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [S,
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
}, [
|
|
3132
|
-
C.preventDefault(), C.persist(), Ge(C),
|
|
3133
|
-
if (!(nt(C) && !
|
|
3134
|
-
var ne = O.length,
|
|
3128
|
+
}, [S, j, i]);
|
|
3129
|
+
var P = Q(function(C) {
|
|
3130
|
+
B ? B(C) : console.error(C);
|
|
3131
|
+
}, [B]), T = Q(function(C) {
|
|
3132
|
+
C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(O) {
|
|
3133
|
+
if (!(nt(C) && !L)) {
|
|
3134
|
+
var ne = O.length, ae = ne > 0 && ra({
|
|
3135
3135
|
files: O,
|
|
3136
|
-
accept:
|
|
3136
|
+
accept: ce,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
3139
3139
|
multiple: l,
|
|
3140
3140
|
maxFiles: s,
|
|
3141
|
-
validator:
|
|
3142
|
-
}),
|
|
3141
|
+
validator: Z
|
|
3142
|
+
}), me = ne > 0 && !ae;
|
|
3143
3143
|
te({
|
|
3144
|
-
isDragAccept:
|
|
3145
|
-
isDragReject:
|
|
3144
|
+
isDragAccept: ae,
|
|
3145
|
+
isDragReject: me,
|
|
3146
3146
|
isDragActive: !0,
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
3148
|
}), c && c(C);
|
|
3149
3149
|
}
|
|
3150
3150
|
}).catch(function(O) {
|
|
3151
|
-
return
|
|
3151
|
+
return P(O);
|
|
3152
3152
|
});
|
|
3153
|
-
}, [o, c,
|
|
3153
|
+
}, [o, c, P, L, ce, r, a, l, s, Z]), z = Q(function(C) {
|
|
3154
3154
|
C.preventDefault(), C.persist(), Ge(C);
|
|
3155
3155
|
var O = Ye(C);
|
|
3156
3156
|
if (O && C.dataTransfer)
|
|
@@ -3159,59 +3159,59 @@ function ei() {
|
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
3161
|
return O && f && f(C), !1;
|
|
3162
|
-
}, [f,
|
|
3162
|
+
}, [f, L]), G = Q(function(C) {
|
|
3163
3163
|
C.preventDefault(), C.persist(), Ge(C);
|
|
3164
|
-
var O =
|
|
3165
|
-
return S.current && S.current.contains(
|
|
3164
|
+
var O = E.current.filter(function(ae) {
|
|
3165
|
+
return S.current && S.current.contains(ae);
|
|
3166
3166
|
}), ne = O.indexOf(C.target);
|
|
3167
|
-
ne !== -1 && O.splice(ne, 1),
|
|
3167
|
+
ne !== -1 && O.splice(ne, 1), E.current = O, !(O.length > 0) && (te({
|
|
3168
3168
|
type: "setDraggedFiles",
|
|
3169
3169
|
isDragActive: !1,
|
|
3170
3170
|
isDragAccept: !1,
|
|
3171
3171
|
isDragReject: !1
|
|
3172
3172
|
}), Ye(C) && d && d(C));
|
|
3173
|
-
}, [S, d,
|
|
3174
|
-
var ne = [],
|
|
3175
|
-
C.forEach(function(
|
|
3176
|
-
var ze = Wn(
|
|
3173
|
+
}, [S, d, L]), N = Q(function(C, O) {
|
|
3174
|
+
var ne = [], ae = [];
|
|
3175
|
+
C.forEach(function(me) {
|
|
3176
|
+
var ze = Wn(me, ce), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Yn(me, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = Z ? Z(me) : null;
|
|
3177
3177
|
if (lt && pt && !dt)
|
|
3178
|
-
ne.push(
|
|
3178
|
+
ne.push(me);
|
|
3179
3179
|
else {
|
|
3180
3180
|
var gt = [st, ut];
|
|
3181
|
-
dt && (gt = gt.concat(dt)),
|
|
3182
|
-
file:
|
|
3181
|
+
dt && (gt = gt.concat(dt)), ae.push({
|
|
3182
|
+
file: me,
|
|
3183
3183
|
errors: gt.filter(function(yi) {
|
|
3184
3184
|
return yi;
|
|
3185
3185
|
})
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
|
-
}), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(
|
|
3189
|
-
|
|
3190
|
-
file:
|
|
3188
|
+
}), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(me) {
|
|
3189
|
+
ae.push({
|
|
3190
|
+
file: me,
|
|
3191
3191
|
errors: [aa]
|
|
3192
3192
|
});
|
|
3193
3193
|
}), ne.splice(0)), te({
|
|
3194
3194
|
acceptedFiles: ne,
|
|
3195
|
-
fileRejections:
|
|
3196
|
-
isDragReject:
|
|
3195
|
+
fileRejections: ae,
|
|
3196
|
+
isDragReject: ae.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(ne,
|
|
3199
|
-
}, [te, l,
|
|
3200
|
-
C.preventDefault(), C.persist(), Ge(C),
|
|
3201
|
-
nt(C) && !
|
|
3198
|
+
}), g && g(ne, ae, O), ae.length > 0 && m && m(ae, O), ne.length > 0 && u && u(ne, O);
|
|
3199
|
+
}, [te, l, ce, r, a, s, g, u, m, Z]), ie = Q(function(C) {
|
|
3200
|
+
C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(O) {
|
|
3201
|
+
nt(C) && !L || N(O, C);
|
|
3202
3202
|
}).catch(function(O) {
|
|
3203
|
-
return
|
|
3203
|
+
return P(O);
|
|
3204
3204
|
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
3207
|
-
}, [o, N,
|
|
3207
|
+
}, [o, N, P, L]), b = Q(function() {
|
|
3208
3208
|
if (k.current) {
|
|
3209
3209
|
te({
|
|
3210
3210
|
type: "openDialog"
|
|
3211
|
-
}),
|
|
3211
|
+
}), ge();
|
|
3212
3212
|
var C = {
|
|
3213
3213
|
multiple: l,
|
|
3214
|
-
types:
|
|
3214
|
+
types: ue
|
|
3215
3215
|
};
|
|
3216
3216
|
window.showOpenFilePicker(C).then(function(O) {
|
|
3217
3217
|
return o(O);
|
|
@@ -3222,56 +3222,56 @@ function ei() {
|
|
|
3222
3222
|
}).catch(function(O) {
|
|
3223
3223
|
ga(O) ? (I(O), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) : fa(O) ? (k.current = !1,
|
|
3225
|
+
})) : fa(O) ? (k.current = !1, H.current ? (H.current.value = null, H.current.click()) : P(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."))) : P(O);
|
|
3226
3226
|
});
|
|
3227
3227
|
return;
|
|
3228
3228
|
}
|
|
3229
|
-
|
|
3229
|
+
H.current && (te({
|
|
3230
3230
|
type: "openDialog"
|
|
3231
|
-
}),
|
|
3232
|
-
}, [te,
|
|
3231
|
+
}), ge(), H.current.value = null, H.current.click());
|
|
3232
|
+
}, [te, ge, I, h, N, P, ue, l]), fe = Q(function(C) {
|
|
3233
3233
|
!S.current || !S.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), b());
|
|
3234
|
-
}, [S, b]), Fe =
|
|
3234
|
+
}, [S, b]), Fe = Q(function() {
|
|
3235
3235
|
te({
|
|
3236
3236
|
type: "focus"
|
|
3237
3237
|
});
|
|
3238
|
-
}, []), Te =
|
|
3238
|
+
}, []), Te = Q(function() {
|
|
3239
3239
|
te({
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
|
-
}, []), Jt =
|
|
3242
|
+
}, []), Jt = Q(function() {
|
|
3243
3243
|
M || (ca() ? setTimeout(b, 0) : b());
|
|
3244
3244
|
}, [M, b]), $e = function(O) {
|
|
3245
3245
|
return i ? null : O;
|
|
3246
3246
|
}, rt = function(O) {
|
|
3247
|
-
return
|
|
3247
|
+
return x ? null : $e(O);
|
|
3248
3248
|
}, qe = function(O) {
|
|
3249
|
-
return
|
|
3249
|
+
return V ? null : $e(O);
|
|
3250
3250
|
}, Ge = function(O) {
|
|
3251
|
-
|
|
3252
|
-
}, xi =
|
|
3251
|
+
L && O.stopPropagation();
|
|
3252
|
+
}, xi = le(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O,
|
|
3255
|
-
return
|
|
3256
|
-
onKeyDown: rt(ye(
|
|
3254
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, ae = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, xa);
|
|
3255
|
+
return J(J(Mt({
|
|
3256
|
+
onKeyDown: rt(ye(me, fe)),
|
|
3257
3257
|
onFocus: rt(ye(ze, Fe)),
|
|
3258
3258
|
onBlur: rt(ye(Ae, Te)),
|
|
3259
3259
|
onClick: $e(ye(lt, Jt)),
|
|
3260
|
-
onDragEnter: qe(ye(st,
|
|
3261
|
-
onDragOver: qe(ye(ct,
|
|
3262
|
-
onDragLeave: qe(ye(Be,
|
|
3260
|
+
onDragEnter: qe(ye(st, T)),
|
|
3261
|
+
onDragOver: qe(ye(ct, z)),
|
|
3262
|
+
onDragLeave: qe(ye(Be, G)),
|
|
3263
3263
|
onDrop: qe(ye(pt, ie)),
|
|
3264
|
-
role: typeof
|
|
3265
|
-
}, ne, S), !i && !
|
|
3264
|
+
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
3265
|
+
}, ne, S), !i && !x ? {
|
|
3266
3266
|
tabIndex: 0
|
|
3267
3267
|
} : {}), ut);
|
|
3268
3268
|
};
|
|
3269
|
-
}, [S,
|
|
3269
|
+
}, [S, fe, Fe, Te, Jt, T, z, G, ie, x, V, i]), hi = Q(function(C) {
|
|
3270
3270
|
C.stopPropagation();
|
|
3271
|
-
}, []), wi =
|
|
3271
|
+
}, []), wi = le(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O,
|
|
3274
|
-
accept:
|
|
3273
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, O = C.refKey, ne = O === void 0 ? "ref" : O, ae = C.onChange, me = C.onClick, ze = it(C, ha), Ae = Mt({
|
|
3274
|
+
accept: ce,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
3277
3277
|
style: {
|
|
@@ -3286,54 +3286,54 @@ function ei() {
|
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
|
-
onChange: $e(ye(
|
|
3290
|
-
onClick: $e(ye(
|
|
3289
|
+
onChange: $e(ye(ae, ie)),
|
|
3290
|
+
onClick: $e(ye(me, hi)),
|
|
3291
3291
|
tabIndex: -1
|
|
3292
|
-
}, ne,
|
|
3293
|
-
return
|
|
3292
|
+
}, ne, H);
|
|
3293
|
+
return J(J({}, Ae), ze);
|
|
3294
3294
|
};
|
|
3295
|
-
}, [
|
|
3296
|
-
return
|
|
3297
|
-
isFocused:
|
|
3295
|
+
}, [H, t, l, ie, i]);
|
|
3296
|
+
return J(J({}, oe), {}, {
|
|
3297
|
+
isFocused: w && !i,
|
|
3298
3298
|
getRootProps: xi,
|
|
3299
3299
|
getInputProps: wi,
|
|
3300
3300
|
rootRef: S,
|
|
3301
|
-
inputRef:
|
|
3301
|
+
inputRef: H,
|
|
3302
3302
|
open: $e(b)
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
3305
|
function ka(e, n) {
|
|
3306
3306
|
switch (n.type) {
|
|
3307
3307
|
case "focus":
|
|
3308
|
-
return
|
|
3308
|
+
return J(J({}, e), {}, {
|
|
3309
3309
|
isFocused: !0
|
|
3310
3310
|
});
|
|
3311
3311
|
case "blur":
|
|
3312
|
-
return
|
|
3312
|
+
return J(J({}, e), {}, {
|
|
3313
3313
|
isFocused: !1
|
|
3314
3314
|
});
|
|
3315
3315
|
case "openDialog":
|
|
3316
|
-
return
|
|
3316
|
+
return J(J({}, Ot), {}, {
|
|
3317
3317
|
isFileDialogActive: !0
|
|
3318
3318
|
});
|
|
3319
3319
|
case "closeDialog":
|
|
3320
|
-
return
|
|
3320
|
+
return J(J({}, e), {}, {
|
|
3321
3321
|
isFileDialogActive: !1
|
|
3322
3322
|
});
|
|
3323
3323
|
case "setDraggedFiles":
|
|
3324
|
-
return
|
|
3324
|
+
return J(J({}, e), {}, {
|
|
3325
3325
|
isDragActive: n.isDragActive,
|
|
3326
3326
|
isDragAccept: n.isDragAccept,
|
|
3327
3327
|
isDragReject: n.isDragReject
|
|
3328
3328
|
});
|
|
3329
3329
|
case "setFiles":
|
|
3330
|
-
return
|
|
3330
|
+
return J(J({}, e), {}, {
|
|
3331
3331
|
acceptedFiles: n.acceptedFiles,
|
|
3332
3332
|
fileRejections: n.fileRejections,
|
|
3333
3333
|
isDragReject: n.isDragReject
|
|
3334
3334
|
});
|
|
3335
3335
|
case "reset":
|
|
3336
|
-
return
|
|
3336
|
+
return J({}, Ot);
|
|
3337
3337
|
default:
|
|
3338
3338
|
return e;
|
|
3339
3339
|
}
|
|
@@ -3375,7 +3375,7 @@ const Fa = () => {
|
|
|
3375
3375
|
acceptedFiles: [],
|
|
3376
3376
|
fileRejections: []
|
|
3377
3377
|
}
|
|
3378
|
-
), o =
|
|
3378
|
+
), o = Q(
|
|
3379
3379
|
(l, s) => i({
|
|
3380
3380
|
type: "add-files",
|
|
3381
3381
|
payload: { acceptedFiles: l, fileRejections: s }
|
|
@@ -3402,16 +3402,16 @@ const Fa = () => {
|
|
|
3402
3402
|
maxSize: r,
|
|
3403
3403
|
onDrop: l
|
|
3404
3404
|
}), g = et();
|
|
3405
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ U(
|
|
3406
3406
|
"div",
|
|
3407
3407
|
{
|
|
3408
|
-
className:
|
|
3408
|
+
className: q("p-form__group p-form-validation", {
|
|
3409
3409
|
"is-error": !!n
|
|
3410
3410
|
}),
|
|
3411
3411
|
children: [
|
|
3412
3412
|
o && /* @__PURE__ */ p(Ii, { id: g, children: o }),
|
|
3413
3413
|
i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
|
|
3414
|
-
/* @__PURE__ */
|
|
3414
|
+
/* @__PURE__ */ U("div", { className: "p-form__control", children: [
|
|
3415
3415
|
!a || t.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ p(
|
|
3416
3416
|
"div",
|
|
3417
3417
|
{
|
|
@@ -3422,13 +3422,13 @@ const Fa = () => {
|
|
|
3422
3422
|
children: /* @__PURE__ */ p("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
3423
3423
|
}
|
|
3424
3424
|
) }) : null,
|
|
3425
|
-
n ? /* @__PURE__ */
|
|
3425
|
+
n ? /* @__PURE__ */ U("p", { className: "p-form-validation__message", children: [
|
|
3426
3426
|
/* @__PURE__ */ p("strong", { children: "Error: " }),
|
|
3427
3427
|
n
|
|
3428
3428
|
] }) : null,
|
|
3429
|
-
/* @__PURE__ */
|
|
3430
|
-
s && s.map((u) => /* @__PURE__ */
|
|
3431
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ U("div", { className: "file-upload__files-list", children: [
|
|
3430
|
+
s && s.map((u) => /* @__PURE__ */ U("span", { className: "is-error", children: [
|
|
3431
|
+
/* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
|
|
3432
3432
|
u.file.name,
|
|
3433
3433
|
/* @__PURE__ */ p(
|
|
3434
3434
|
Se,
|
|
@@ -3450,7 +3450,7 @@ const Fa = () => {
|
|
|
3450
3450
|
`${u.file.name}-${m.code}`
|
|
3451
3451
|
))
|
|
3452
3452
|
] }, u.file.name)),
|
|
3453
|
-
t && t.map((u) => /* @__PURE__ */
|
|
3453
|
+
t && t.map((u) => /* @__PURE__ */ U("div", { className: "file-upload__file", children: [
|
|
3454
3454
|
u.name,
|
|
3455
3455
|
u.percentUploaded !== void 0 ? /* @__PURE__ */ p(Hi, { percentComplete: u.percentUploaded }) : /* @__PURE__ */ p(
|
|
3456
3456
|
Se,
|
|
@@ -3524,42 +3524,42 @@ const Fa = () => {
|
|
|
3524
3524
|
groupFn: s = Da,
|
|
3525
3525
|
...c
|
|
3526
3526
|
}) => {
|
|
3527
|
-
const d =
|
|
3528
|
-
() => new Set(n.map((
|
|
3527
|
+
const d = le(
|
|
3528
|
+
() => new Set(n.map((h) => h.value)),
|
|
3529
3529
|
[n]
|
|
3530
|
-
), f =
|
|
3531
|
-
() => new Set(t.map((
|
|
3530
|
+
), f = le(
|
|
3531
|
+
() => new Set(t.map((h) => h.value)),
|
|
3532
3532
|
[t]
|
|
3533
3533
|
), [g, u] = de(new Set(d));
|
|
3534
3534
|
Ee(() => {
|
|
3535
3535
|
a && u(new Set(d));
|
|
3536
3536
|
}, [a]);
|
|
3537
|
-
const m =
|
|
3537
|
+
const m = le(() => e.some((h) => h.group), [e]), v = le(
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3539
3539
|
[e, s]
|
|
3540
|
-
), R = (
|
|
3541
|
-
const { checked:
|
|
3540
|
+
), R = (h) => {
|
|
3541
|
+
const { checked: j, value: _ } = h.target, M = e.find((x) => `${x.value}` === _);
|
|
3542
3542
|
if (M) {
|
|
3543
|
-
const
|
|
3544
|
-
o(
|
|
3543
|
+
const x = j ? [...n, M] : n.filter((V) => `${V.value}` !== _) ?? [];
|
|
3544
|
+
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ p(Ln, { isVisible: a, className: "put-above", children: /* @__PURE__ */ U("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
3548
3548
|
i || null,
|
|
3549
|
-
v.map(({ group:
|
|
3550
|
-
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children:
|
|
3551
|
-
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label":
|
|
3549
|
+
v.map(({ group: h, items: j }) => /* @__PURE__ */ U("div", { className: "multi-select__group", children: [
|
|
3550
|
+
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3551
|
+
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: j.sort(l).sort(Ia(g)).map((_) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3552
3552
|
Di,
|
|
3553
3553
|
{
|
|
3554
|
-
disabled: f.has(
|
|
3555
|
-
label:
|
|
3556
|
-
checked: d.has(
|
|
3557
|
-
value:
|
|
3554
|
+
disabled: f.has(_.value),
|
|
3555
|
+
label: _.label,
|
|
3556
|
+
checked: d.has(_.value),
|
|
3557
|
+
value: _.value,
|
|
3558
3558
|
onChange: R
|
|
3559
3559
|
},
|
|
3560
|
-
|
|
3561
|
-
) },
|
|
3562
|
-
] },
|
|
3560
|
+
_.value
|
|
3561
|
+
) }, _.value)) })
|
|
3562
|
+
] }, h)),
|
|
3563
3563
|
r ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: r }) : null
|
|
3564
3564
|
] }) });
|
|
3565
3565
|
}, Kr = ({
|
|
@@ -3585,26 +3585,26 @@ const Fa = () => {
|
|
|
3585
3585
|
Ee(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
3588
|
-
const [R,
|
|
3589
|
-
const
|
|
3590
|
-
|
|
3591
|
-
}, M = et(),
|
|
3592
|
-
(
|
|
3593
|
-
).sort(ti).map((
|
|
3594
|
-
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */
|
|
3588
|
+
const [R, h] = de([]), j = n || R, _ = (L) => {
|
|
3589
|
+
const B = Array.from(new Set(L));
|
|
3590
|
+
h(B), i && i(B);
|
|
3591
|
+
}, M = et(), x = et(), V = j.filter(
|
|
3592
|
+
(L) => r.some((B) => B.value === L.value)
|
|
3593
|
+
).sort(ti).map((L) => L.label).join(", ");
|
|
3594
|
+
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ U("div", { className: "multi-select", children: [
|
|
3595
3595
|
d === "search" ? /* @__PURE__ */ p(
|
|
3596
3596
|
On,
|
|
3597
3597
|
{
|
|
3598
3598
|
externallyControlled: !0,
|
|
3599
3599
|
"aria-controls": M,
|
|
3600
3600
|
"aria-expanded": g,
|
|
3601
|
-
id:
|
|
3601
|
+
id: x,
|
|
3602
3602
|
role: "combobox",
|
|
3603
3603
|
"aria-label": t || o || "Search",
|
|
3604
3604
|
disabled: e,
|
|
3605
3605
|
autoComplete: "off",
|
|
3606
|
-
onChange: (
|
|
3607
|
-
v(
|
|
3606
|
+
onChange: (L) => {
|
|
3607
|
+
v(L), u(!0);
|
|
3608
3608
|
},
|
|
3609
3609
|
onFocus: () => u(!0),
|
|
3610
3610
|
placeholder: o ?? "Search",
|
|
@@ -3623,9 +3623,9 @@ const Fa = () => {
|
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
u((
|
|
3626
|
+
u((L) => !L);
|
|
3627
3627
|
},
|
|
3628
|
-
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children:
|
|
3628
|
+
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: j.length > 0 ? V : o ?? "Select items" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
3631
|
/* @__PURE__ */ p(
|
|
@@ -3634,24 +3634,24 @@ const Fa = () => {
|
|
|
3634
3634
|
id: M,
|
|
3635
3635
|
isOpen: g,
|
|
3636
3636
|
items: m.length > 0 ? r.filter(
|
|
3637
|
-
(
|
|
3637
|
+
(L) => L.label.toLowerCase().includes(m.toLowerCase())
|
|
3638
3638
|
) : r,
|
|
3639
|
-
selectedItems:
|
|
3639
|
+
selectedItems: j,
|
|
3640
3640
|
disabledItems: l,
|
|
3641
3641
|
header: s,
|
|
3642
|
-
updateItems:
|
|
3643
|
-
footer: c || /* @__PURE__ */
|
|
3642
|
+
updateItems: _,
|
|
3643
|
+
footer: c || /* @__PURE__ */ U(we, { children: [
|
|
3644
3644
|
/* @__PURE__ */ p(
|
|
3645
3645
|
Se,
|
|
3646
3646
|
{
|
|
3647
3647
|
appearance: "link",
|
|
3648
3648
|
onClick: () => {
|
|
3649
|
-
const
|
|
3650
|
-
(
|
|
3651
|
-
(
|
|
3649
|
+
const L = r.filter(
|
|
3650
|
+
(B) => !l.some(
|
|
3651
|
+
(Z) => Z.value === B.value
|
|
3652
3652
|
)
|
|
3653
3653
|
);
|
|
3654
|
-
|
|
3654
|
+
_([...j, ...L]);
|
|
3655
3655
|
},
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
children: "Select all"
|
|
@@ -3662,12 +3662,12 @@ const Fa = () => {
|
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const
|
|
3666
|
-
(
|
|
3667
|
-
(
|
|
3665
|
+
const L = j.filter(
|
|
3666
|
+
(B) => l.some(
|
|
3667
|
+
(Z) => Z.value === B.value
|
|
3668
3668
|
)
|
|
3669
3669
|
);
|
|
3670
|
-
|
|
3670
|
+
_(L);
|
|
3671
3671
|
},
|
|
3672
3672
|
type: "button",
|
|
3673
3673
|
children: "Clear"
|
|
@@ -3689,7 +3689,7 @@ const Fa = () => {
|
|
|
3689
3689
|
"table",
|
|
3690
3690
|
{
|
|
3691
3691
|
...i,
|
|
3692
|
-
className:
|
|
3692
|
+
className: q("p-table-dynamic", e, {
|
|
3693
3693
|
"is-full-height": t === "full-height"
|
|
3694
3694
|
}),
|
|
3695
3695
|
children: n
|
|
@@ -3697,7 +3697,7 @@ const Fa = () => {
|
|
|
3697
3697
|
) }), Ma = ({ columns: e }) => /* @__PURE__ */ p(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
|
|
3698
3698
|
"td",
|
|
3699
3699
|
{
|
|
3700
|
-
className:
|
|
3700
|
+
className: q(i.id, "u-text-overflow-clip"),
|
|
3701
3701
|
children: /* @__PURE__ */ p(qi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
3702
3702
|
},
|
|
3703
3703
|
o
|
|
@@ -3706,7 +3706,7 @@ const Fa = () => {
|
|
|
3706
3706
|
table: n
|
|
3707
3707
|
}) => {
|
|
3708
3708
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3709
|
-
return /* @__PURE__ */
|
|
3709
|
+
return /* @__PURE__ */ U(we, { children: [
|
|
3710
3710
|
/* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3711
3711
|
/* @__PURE__ */ p(oi, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ma, { columns: t }) })
|
|
3712
3712
|
] });
|
|
@@ -3716,7 +3716,7 @@ const Fa = () => {
|
|
|
3716
3716
|
style: t,
|
|
3717
3717
|
...i
|
|
3718
3718
|
}) => {
|
|
3719
|
-
const { variant: o } = Ht(ni), a = be(null), [r, l] = de(null), s =
|
|
3719
|
+
const { variant: o } = Ht(ni), a = be(null), [r, l] = de(null), s = Q(() => {
|
|
3720
3720
|
var d, f;
|
|
3721
3721
|
if (window.innerWidth > Aa.small) {
|
|
3722
3722
|
const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
|
|
@@ -3727,7 +3727,7 @@ const Fa = () => {
|
|
|
3727
3727
|
An(() => {
|
|
3728
3728
|
s();
|
|
3729
3729
|
}, [s]), Ee(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
|
|
3730
|
-
const c =
|
|
3730
|
+
const c = le(() => o === "full-height" && r ? {
|
|
3731
3731
|
height: `calc(100vh - ${r}px)`,
|
|
3732
3732
|
minHeight: `calc(100vh - ${r}px)`,
|
|
3733
3733
|
...t
|
|
@@ -3761,7 +3761,7 @@ ai.Description = Ta;
|
|
|
3761
3761
|
function Re(e, n) {
|
|
3762
3762
|
return typeof e == "function" ? e(n) : e;
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3764
|
+
function ve(e, n) {
|
|
3765
3765
|
return (t) => {
|
|
3766
3766
|
n.setState((i) => ({
|
|
3767
3767
|
...i,
|
|
@@ -3882,7 +3882,7 @@ function Na(e, n, t, i) {
|
|
|
3882
3882
|
g.createColumn == null || g.createColumn(f, e);
|
|
3883
3883
|
return f;
|
|
3884
3884
|
}
|
|
3885
|
-
const
|
|
3885
|
+
const se = "debugHeaders";
|
|
3886
3886
|
function En(e, n, t) {
|
|
3887
3887
|
var i;
|
|
3888
3888
|
let a = {
|
|
@@ -3918,27 +3918,27 @@ const La = {
|
|
|
3918
3918
|
var a, r;
|
|
3919
3919
|
const l = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
|
|
3920
3920
|
return Xe(n, [...l, ...c, ...s], e);
|
|
3921
|
-
}, A(e.options,
|
|
3921
|
+
}, A(e.options, se, "getHeaderGroups")), e.getCenterHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Xe(n, t, e, "center")), A(e.options, se, "getCenterHeaderGroups")), e.getLeftHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
|
|
3922
3922
|
var o;
|
|
3923
3923
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3924
3924
|
return Xe(n, a, e, "left");
|
|
3925
|
-
}, A(e.options,
|
|
3925
|
+
}, A(e.options, se, "getLeftHeaderGroups")), e.getRightHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
|
|
3926
3926
|
var o;
|
|
3927
3927
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3928
3928
|
return Xe(n, a, e, "right");
|
|
3929
|
-
}, A(e.options,
|
|
3929
|
+
}, A(e.options, se, "getRightHeaderGroups")), e.getFooterGroups = $(() => [e.getHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getFooterGroups")), e.getLeftFooterGroups = $(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getLeftFooterGroups")), e.getCenterFooterGroups = $(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getCenterFooterGroups")), e.getRightFooterGroups = $(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), A(e.options, se, "getRightFooterGroups")), e.getFlatHeaders = $(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getFlatHeaders")), e.getLeftFlatHeaders = $(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getLeftFlatHeaders")), e.getCenterFlatHeaders = $(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getCenterFlatHeaders")), e.getRightFlatHeaders = $(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, se, "getRightFlatHeaders")), e.getCenterLeafHeaders = $(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
3930
3930
|
var i;
|
|
3931
3931
|
return !((i = t.subHeaders) != null && i.length);
|
|
3932
|
-
}), A(e.options,
|
|
3932
|
+
}), A(e.options, se, "getCenterLeafHeaders")), e.getLeftLeafHeaders = $(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
3933
3933
|
var i;
|
|
3934
3934
|
return !((i = t.subHeaders) != null && i.length);
|
|
3935
|
-
}), A(e.options,
|
|
3935
|
+
}), A(e.options, se, "getLeftLeafHeaders")), e.getRightLeafHeaders = $(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
3936
3936
|
var i;
|
|
3937
3937
|
return !((i = t.subHeaders) != null && i.length);
|
|
3938
|
-
}), A(e.options,
|
|
3938
|
+
}), A(e.options, se, "getRightLeafHeaders")), e.getLeafHeaders = $(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
|
|
3939
3939
|
var o, a, r, l, s, c;
|
|
3940
3940
|
return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(r = (l = t[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
|
|
3941
|
-
}, A(e.options,
|
|
3941
|
+
}, A(e.options, se, "getLeafHeaders"));
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
3944
|
function Xe(e, n, t, i) {
|
|
@@ -3959,19 +3959,19 @@ function Xe(e, n, t, i) {
|
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
3961
|
g.forEach((R) => {
|
|
3962
|
-
const
|
|
3963
|
-
let
|
|
3964
|
-
if (
|
|
3965
|
-
|
|
3962
|
+
const h = [...v].reverse()[0], j = R.column.depth === m.depth;
|
|
3963
|
+
let _, M = !1;
|
|
3964
|
+
if (j && R.column.parent ? _ = R.column.parent : (_ = R.column, M = !0), h && (h == null ? void 0 : h.column) === _)
|
|
3965
|
+
h.subHeaders.push(R);
|
|
3966
3966
|
else {
|
|
3967
|
-
const
|
|
3968
|
-
id: [i, u,
|
|
3967
|
+
const x = En(t, _, {
|
|
3968
|
+
id: [i, u, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
|
|
3969
3969
|
isPlaceholder: M,
|
|
3970
|
-
placeholderId: M ? `${v.filter((
|
|
3970
|
+
placeholderId: M ? `${v.filter((V) => V.column === _).length}` : void 0,
|
|
3971
3971
|
depth: u,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
3974
|
-
|
|
3974
|
+
x.subHeaders.push(R), v.push(x);
|
|
3975
3975
|
}
|
|
3976
3976
|
m.headers.push(R), R.headerGroup = m;
|
|
3977
3977
|
}), s.push(m), u > 0 && c(v, u - 1);
|
|
@@ -3981,16 +3981,16 @@ function Xe(e, n, t, i) {
|
|
|
3981
3981
|
}));
|
|
3982
3982
|
c(d, r - 1), s.reverse();
|
|
3983
3983
|
const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
|
|
3984
|
-
let v = 0, R = 0,
|
|
3985
|
-
m.subHeaders && m.subHeaders.length ? (
|
|
3984
|
+
let v = 0, R = 0, h = [0];
|
|
3985
|
+
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((_) => {
|
|
3986
3986
|
let {
|
|
3987
3987
|
colSpan: M,
|
|
3988
|
-
rowSpan:
|
|
3989
|
-
} =
|
|
3990
|
-
v += M,
|
|
3988
|
+
rowSpan: x
|
|
3989
|
+
} = _;
|
|
3990
|
+
v += M, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return R = R +
|
|
3992
|
+
const j = Math.min(...h);
|
|
3993
|
+
return R = R + j, m.colSpan = v, m.rowSpan = R, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
3995
|
rowSpan: R
|
|
3996
3996
|
};
|
|
@@ -4123,7 +4123,7 @@ const qa = {
|
|
|
4123
4123
|
...e
|
|
4124
4124
|
}),
|
|
4125
4125
|
getDefaultOptions: (e) => ({
|
|
4126
|
-
onColumnFiltersChange:
|
|
4126
|
+
onColumnFiltersChange: ve("columnFilters", e),
|
|
4127
4127
|
filterFromLeafRows: !1,
|
|
4128
4128
|
maxLeafRowFilterDepth: 100
|
|
4129
4129
|
}),
|
|
@@ -4252,7 +4252,7 @@ const Ga = (e, n, t) => t.reduce((i, o) => {
|
|
|
4252
4252
|
...e
|
|
4253
4253
|
}),
|
|
4254
4254
|
getDefaultOptions: (e) => ({
|
|
4255
|
-
onGroupingChange:
|
|
4255
|
+
onGroupingChange: ve("grouping", e),
|
|
4256
4256
|
groupedColumnMode: "reorder"
|
|
4257
4257
|
}),
|
|
4258
4258
|
createColumn: (e, n) => {
|
|
@@ -4318,7 +4318,7 @@ const tr = {
|
|
|
4318
4318
|
...e
|
|
4319
4319
|
}),
|
|
4320
4320
|
getDefaultOptions: (e) => ({
|
|
4321
|
-
onColumnOrderChange:
|
|
4321
|
+
onColumnOrderChange: ve("columnOrder", e)
|
|
4322
4322
|
}),
|
|
4323
4323
|
createColumn: (e, n) => {
|
|
4324
4324
|
e.getIndex = $((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
@@ -4358,7 +4358,7 @@ const tr = {
|
|
|
4358
4358
|
...e
|
|
4359
4359
|
}),
|
|
4360
4360
|
getDefaultOptions: (e) => ({
|
|
4361
|
-
onColumnPinningChange:
|
|
4361
|
+
onColumnPinningChange: ve("columnPinning", e)
|
|
4362
4362
|
}),
|
|
4363
4363
|
createColumn: (e, n) => {
|
|
4364
4364
|
e.pin = (t) => {
|
|
@@ -4449,8 +4449,8 @@ const tr = {
|
|
|
4449
4449
|
getDefaultOptions: (e) => ({
|
|
4450
4450
|
columnResizeMode: "onEnd",
|
|
4451
4451
|
columnResizeDirection: "ltr",
|
|
4452
|
-
onColumnSizingChange:
|
|
4453
|
-
onColumnSizingInfoChange:
|
|
4452
|
+
onColumnSizingChange: ve("columnSizing", e),
|
|
4453
|
+
onColumnSizingInfoChange: ve("columnSizingInfo", e)
|
|
4454
4454
|
}),
|
|
4455
4455
|
createColumn: (e, n) => {
|
|
4456
4456
|
e.getSize = () => {
|
|
@@ -4493,25 +4493,25 @@ const tr = {
|
|
|
4493
4493
|
return (a) => {
|
|
4494
4494
|
if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
|
|
4495
4495
|
return;
|
|
4496
|
-
const r = e.getSize(), l = e ? e.getLeafHeaders().map((
|
|
4497
|
-
typeof
|
|
4498
|
-
var M,
|
|
4499
|
-
const
|
|
4500
|
-
return
|
|
4501
|
-
let [
|
|
4502
|
-
c[
|
|
4496
|
+
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, j) => {
|
|
4497
|
+
typeof j == "number" && (n.setColumnSizingInfo((_) => {
|
|
4498
|
+
var M, x;
|
|
4499
|
+
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, L = (j - ((M = _ == null ? void 0 : _.startOffset) != null ? M : 0)) * V, B = Math.max(L / ((x = _ == null ? void 0 : _.startSize) != null ? x : 0), -0.999999);
|
|
4500
|
+
return _.columnSizingStart.forEach((Z) => {
|
|
4501
|
+
let [ce, ue] = Z;
|
|
4502
|
+
c[ce] = Math.round(Math.max(ue + ue * B, 0) * 100) / 100;
|
|
4503
4503
|
}), {
|
|
4504
|
-
...
|
|
4505
|
-
deltaOffset:
|
|
4506
|
-
deltaPercentage:
|
|
4504
|
+
..._,
|
|
4505
|
+
deltaOffset: L,
|
|
4506
|
+
deltaPercentage: B
|
|
4507
4507
|
};
|
|
4508
|
-
}), (n.options.columnResizeMode === "onChange" ||
|
|
4509
|
-
...
|
|
4508
|
+
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((_) => ({
|
|
4509
|
+
..._,
|
|
4510
4510
|
...c
|
|
4511
4511
|
})));
|
|
4512
|
-
}, f = (
|
|
4513
|
-
d("end",
|
|
4514
|
-
...
|
|
4512
|
+
}, f = (h) => d("move", h), g = (h) => {
|
|
4513
|
+
d("end", h), n.setColumnSizingInfo((j) => ({
|
|
4514
|
+
...j,
|
|
4515
4515
|
isResizingColumn: !1,
|
|
4516
4516
|
startOffset: null,
|
|
4517
4517
|
startSize: null,
|
|
@@ -4520,21 +4520,21 @@ const tr = {
|
|
|
4520
4520
|
columnSizingStart: []
|
|
4521
4521
|
}));
|
|
4522
4522
|
}, u = t || typeof document < "u" ? document : null, m = {
|
|
4523
|
-
moveHandler: (
|
|
4524
|
-
upHandler: (
|
|
4525
|
-
u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(
|
|
4523
|
+
moveHandler: (h) => f(h.clientX),
|
|
4524
|
+
upHandler: (h) => {
|
|
4525
|
+
u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(h.clientX);
|
|
4526
4526
|
}
|
|
4527
4527
|
}, v = {
|
|
4528
|
-
moveHandler: (
|
|
4529
|
-
upHandler: (
|
|
4530
|
-
var
|
|
4531
|
-
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler),
|
|
4528
|
+
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4529
|
+
upHandler: (h) => {
|
|
4530
|
+
var j;
|
|
4531
|
+
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((j = h.touches[0]) == null ? void 0 : j.clientX);
|
|
4532
4532
|
}
|
|
4533
4533
|
}, R = or() ? {
|
|
4534
4534
|
passive: !1
|
|
4535
4535
|
} : !1;
|
|
4536
|
-
Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, R), u == null || u.addEventListener("touchend", v.upHandler, R)) : (u == null || u.addEventListener("mousemove", m.moveHandler, R), u == null || u.addEventListener("mouseup", m.upHandler, R)), n.setColumnSizingInfo((
|
|
4537
|
-
...
|
|
4536
|
+
Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, R), u == null || u.addEventListener("touchend", v.upHandler, R)) : (u == null || u.addEventListener("mousemove", m.moveHandler, R), u == null || u.addEventListener("mouseup", m.upHandler, R)), n.setColumnSizingInfo((h) => ({
|
|
4537
|
+
...h,
|
|
4538
4538
|
startOffset: s,
|
|
4539
4539
|
startSize: r,
|
|
4540
4540
|
deltaOffset: 0,
|
|
@@ -4593,7 +4593,7 @@ const ar = {
|
|
|
4593
4593
|
...e
|
|
4594
4594
|
}),
|
|
4595
4595
|
getDefaultOptions: (e) => ({
|
|
4596
|
-
onColumnVisibilityChange:
|
|
4596
|
+
onColumnVisibilityChange: ve("columnVisibility", e)
|
|
4597
4597
|
}),
|
|
4598
4598
|
createColumn: (e, n) => {
|
|
4599
4599
|
e.toggleVisibility = (t) => {
|
|
@@ -4648,7 +4648,7 @@ const rr = {
|
|
|
4648
4648
|
...e
|
|
4649
4649
|
}),
|
|
4650
4650
|
getDefaultOptions: (e) => ({
|
|
4651
|
-
onGlobalFilterChange:
|
|
4651
|
+
onGlobalFilterChange: ve("globalFilter", e),
|
|
4652
4652
|
globalFilterFn: "auto",
|
|
4653
4653
|
getColumnCanGlobalFilter: (n) => {
|
|
4654
4654
|
var t;
|
|
@@ -4681,7 +4681,7 @@ const rr = {
|
|
|
4681
4681
|
...e
|
|
4682
4682
|
}),
|
|
4683
4683
|
getDefaultOptions: (e) => ({
|
|
4684
|
-
onExpandedChange:
|
|
4684
|
+
onExpandedChange: ve("expanded", e),
|
|
4685
4685
|
paginateExpandedRows: !0
|
|
4686
4686
|
}),
|
|
4687
4687
|
createTable: (e) => {
|
|
@@ -4774,7 +4774,7 @@ const rr = {
|
|
|
4774
4774
|
}
|
|
4775
4775
|
}),
|
|
4776
4776
|
getDefaultOptions: (e) => ({
|
|
4777
|
-
onPaginationChange:
|
|
4777
|
+
onPaginationChange: ve("pagination", e)
|
|
4778
4778
|
}),
|
|
4779
4779
|
createTable: (e) => {
|
|
4780
4780
|
let n = !1, t = !1;
|
|
@@ -4854,7 +4854,7 @@ const rr = {
|
|
|
4854
4854
|
...e
|
|
4855
4855
|
}),
|
|
4856
4856
|
getDefaultOptions: (e) => ({
|
|
4857
|
-
onRowPinningChange:
|
|
4857
|
+
onRowPinningChange: ve("rowPinning", e)
|
|
4858
4858
|
}),
|
|
4859
4859
|
createRow: (e, n) => {
|
|
4860
4860
|
e.pin = (t, i, o) => {
|
|
@@ -4955,7 +4955,7 @@ const rr = {
|
|
|
4955
4955
|
...e
|
|
4956
4956
|
}),
|
|
4957
4957
|
getDefaultOptions: (e) => ({
|
|
4958
|
-
onRowSelectionChange:
|
|
4958
|
+
onRowSelectionChange: ve("rowSelection", e),
|
|
4959
4959
|
enableRowSelection: !0,
|
|
4960
4960
|
enableMultiRowSelection: !0,
|
|
4961
4961
|
enableSubRowSelection: !0
|
|
@@ -5152,7 +5152,7 @@ const Ve = {
|
|
|
5152
5152
|
sortUndefined: 1
|
|
5153
5153
|
}),
|
|
5154
5154
|
getDefaultOptions: (e) => ({
|
|
5155
|
-
onSortingChange:
|
|
5155
|
+
onSortingChange: ve("sorting", e),
|
|
5156
5156
|
isMultiSortEvent: (n) => n.shiftKey
|
|
5157
5157
|
}),
|
|
5158
5158
|
createColumn: (e, n) => {
|
|
@@ -5333,9 +5333,9 @@ function yr(e) {
|
|
|
5333
5333
|
_getColumnDefs: () => o.options.columns,
|
|
5334
5334
|
getAllColumns: $(() => [o._getColumnDefs()], (g) => {
|
|
5335
5335
|
const u = function(m, v, R) {
|
|
5336
|
-
return R === void 0 && (R = 0), m.map((
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5336
|
+
return R === void 0 && (R = 0), m.map((h) => {
|
|
5337
|
+
const j = Na(o, h, R, v), _ = h;
|
|
5338
|
+
return j.columns = _.columns ? u(_.columns, j, R + 1) : [], j;
|
|
5339
5339
|
});
|
|
5340
5340
|
};
|
|
5341
5341
|
return u(g);
|
|
@@ -5404,37 +5404,37 @@ function _r() {
|
|
|
5404
5404
|
return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
|
|
5405
5405
|
const f = i[c], g = Rr(s, f);
|
|
5406
5406
|
return Array.from(g.entries()).map((m, v) => {
|
|
5407
|
-
let [R,
|
|
5408
|
-
|
|
5409
|
-
const
|
|
5410
|
-
|
|
5411
|
-
|
|
5407
|
+
let [R, h] = m, j = `${f}:${R}`;
|
|
5408
|
+
j = d ? `${d}>${j}` : j;
|
|
5409
|
+
const _ = r(h, c + 1, j);
|
|
5410
|
+
_.forEach((V) => {
|
|
5411
|
+
V.parentId = j;
|
|
5412
5412
|
});
|
|
5413
|
-
const M = c ? ri(
|
|
5414
|
-
return Object.assign(
|
|
5413
|
+
const M = c ? ri(h, (V) => V.subRows) : h, x = li(e, j, M[0].original, v, c, void 0, d);
|
|
5414
|
+
return Object.assign(x, {
|
|
5415
5415
|
groupingColumnId: f,
|
|
5416
5416
|
groupingValue: R,
|
|
5417
|
-
subRows:
|
|
5417
|
+
subRows: _,
|
|
5418
5418
|
leafRows: M,
|
|
5419
|
-
getValue: (
|
|
5420
|
-
if (i.includes(
|
|
5421
|
-
if (
|
|
5422
|
-
return
|
|
5423
|
-
if (
|
|
5424
|
-
var
|
|
5425
|
-
|
|
5419
|
+
getValue: (V) => {
|
|
5420
|
+
if (i.includes(V)) {
|
|
5421
|
+
if (x._valuesCache.hasOwnProperty(V))
|
|
5422
|
+
return x._valuesCache[V];
|
|
5423
|
+
if (h[0]) {
|
|
5424
|
+
var L;
|
|
5425
|
+
x._valuesCache[V] = (L = h[0].getValue(V)) != null ? L : void 0;
|
|
5426
5426
|
}
|
|
5427
|
-
return
|
|
5427
|
+
return x._valuesCache[V];
|
|
5428
5428
|
}
|
|
5429
|
-
if (
|
|
5430
|
-
return
|
|
5431
|
-
const
|
|
5432
|
-
if (
|
|
5433
|
-
return
|
|
5429
|
+
if (x._groupingValuesCache.hasOwnProperty(V))
|
|
5430
|
+
return x._groupingValuesCache[V];
|
|
5431
|
+
const B = e.getColumn(V), Z = B == null ? void 0 : B.getAggregationFn();
|
|
5432
|
+
if (Z)
|
|
5433
|
+
return x._groupingValuesCache[V] = Z(V, M, h), x._groupingValuesCache[V];
|
|
5434
5434
|
}
|
|
5435
|
-
}),
|
|
5436
|
-
o.push(
|
|
5437
|
-
}),
|
|
5435
|
+
}), _.forEach((V) => {
|
|
5436
|
+
o.push(V), a[V.id] = V;
|
|
5437
|
+
}), x;
|
|
5438
5438
|
});
|
|
5439
5439
|
}, l = r(t.rows, 0);
|
|
5440
5440
|
return l.forEach((s) => {
|
|
@@ -5468,7 +5468,7 @@ function Rr(e, n) {
|
|
|
5468
5468
|
* @license MIT
|
|
5469
5469
|
*/
|
|
5470
5470
|
function Lt(e, n) {
|
|
5471
|
-
return e ? Er(e) ? /* @__PURE__ */
|
|
5471
|
+
return e ? Er(e) ? /* @__PURE__ */ pe.createElement(e, n) : e : null;
|
|
5472
5472
|
}
|
|
5473
5473
|
function Er(e) {
|
|
5474
5474
|
return kr(e) || typeof e == "function" || Fr(e);
|
|
@@ -5491,9 +5491,9 @@ function Pr(e) {
|
|
|
5491
5491
|
// noop
|
|
5492
5492
|
renderFallbackValue: null,
|
|
5493
5493
|
...e
|
|
5494
|
-
}, [t] =
|
|
5494
|
+
}, [t] = pe.useState(() => ({
|
|
5495
5495
|
current: yr(n)
|
|
5496
|
-
})), [i, o] =
|
|
5496
|
+
})), [i, o] = pe.useState(() => t.current.initialState);
|
|
5497
5497
|
return t.current.setOptions((a) => ({
|
|
5498
5498
|
...a,
|
|
5499
5499
|
...e,
|
|
@@ -5516,14 +5516,14 @@ const Ir = ({
|
|
|
5516
5516
|
asc: /* @__PURE__ */ p(Ce, { name: "chevron-up", children: "ascending" }),
|
|
5517
5517
|
desc: /* @__PURE__ */ p(Ce, { name: "chevron-down", children: "descending" })
|
|
5518
5518
|
}[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
|
|
5519
|
-
}, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className:
|
|
5519
|
+
}, Dr = ({ header: e }) => /* @__PURE__ */ p("th", { className: q(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
|
|
5520
5520
|
Se,
|
|
5521
5521
|
{
|
|
5522
5522
|
appearance: "link",
|
|
5523
5523
|
className: "table-header-label p-button--table-header",
|
|
5524
5524
|
onClick: e.column.getToggleSortingHandler(),
|
|
5525
5525
|
type: "button",
|
|
5526
|
-
children: /* @__PURE__ */
|
|
5526
|
+
children: /* @__PURE__ */ U(we, { children: [
|
|
5527
5527
|
Lt(e.column.columnDef.header, e.getContext()),
|
|
5528
5528
|
/* @__PURE__ */ p(Ir, { header: e })
|
|
5529
5529
|
] })
|
|
@@ -5541,7 +5541,7 @@ const Mr = ({
|
|
|
5541
5541
|
isPending: r,
|
|
5542
5542
|
pageSizes: l = [20, 30, 50, 100]
|
|
5543
5543
|
}) => {
|
|
5544
|
-
const s =
|
|
5544
|
+
const s = le(() => l, []), c = le(
|
|
5545
5545
|
() => s.map((u) => ({
|
|
5546
5546
|
label: `${u}/page`,
|
|
5547
5547
|
value: u
|
|
@@ -5551,8 +5551,8 @@ const Mr = ({
|
|
|
5551
5551
|
const { value: m } = u.target;
|
|
5552
5552
|
i(Number(m));
|
|
5553
5553
|
}, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
|
|
5554
|
-
return /* @__PURE__ */
|
|
5555
|
-
/* @__PURE__ */
|
|
5554
|
+
return /* @__PURE__ */ U(Le, { children: [
|
|
5555
|
+
/* @__PURE__ */ U(Le.Left, { children: [
|
|
5556
5556
|
"Showing ",
|
|
5557
5557
|
g(),
|
|
5558
5558
|
" out of ",
|
|
@@ -5560,7 +5560,7 @@ const Mr = ({
|
|
|
5560
5560
|
" ",
|
|
5561
5561
|
o
|
|
5562
5562
|
] }),
|
|
5563
|
-
/* @__PURE__ */
|
|
5563
|
+
/* @__PURE__ */ U(Le.Right, { children: [
|
|
5564
5564
|
/* @__PURE__ */ p(
|
|
5565
5565
|
_o,
|
|
5566
5566
|
{
|
|
@@ -5588,7 +5588,7 @@ const Mr = ({
|
|
|
5588
5588
|
return null;
|
|
5589
5589
|
const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
|
|
5590
5590
|
let i;
|
|
5591
|
-
return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */
|
|
5591
|
+
return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ U("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
|
|
5592
5592
|
/* @__PURE__ */ p(
|
|
5593
5593
|
"input",
|
|
5594
5594
|
{
|
|
@@ -5617,7 +5617,7 @@ const Mr = ({
|
|
|
5617
5617
|
), i = t.filter(
|
|
5618
5618
|
(r) => r.getIsSelected()
|
|
5619
5619
|
).length, o = t.length > 0 && i === t.length, a = i > 0 && !o;
|
|
5620
|
-
return /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ U(
|
|
5621
5621
|
"label",
|
|
5622
5622
|
{
|
|
5623
5623
|
"aria-disabled": !e.getCanSelect(),
|
|
@@ -5647,17 +5647,18 @@ const Mr = ({
|
|
|
5647
5647
|
}, Me = ({
|
|
5648
5648
|
row: e,
|
|
5649
5649
|
disabledTooltip: n,
|
|
5650
|
-
|
|
5650
|
+
isNested: t = !1,
|
|
5651
|
+
...i
|
|
5651
5652
|
}) => {
|
|
5652
5653
|
if (!e)
|
|
5653
5654
|
return null;
|
|
5654
|
-
const
|
|
5655
|
+
const o = typeof n == "string" ? n : n(e);
|
|
5655
5656
|
return /* @__PURE__ */ p(
|
|
5656
5657
|
Mn,
|
|
5657
5658
|
{
|
|
5658
|
-
message: !e.getCanSelect() &&
|
|
5659
|
+
message: !e.getCanSelect() && o,
|
|
5659
5660
|
position: "btm-right",
|
|
5660
|
-
children: /* @__PURE__ */
|
|
5661
|
+
children: /* @__PURE__ */ U(
|
|
5661
5662
|
"label",
|
|
5662
5663
|
{
|
|
5663
5664
|
"aria-disabled": !e.getCanSelect(),
|
|
@@ -5669,9 +5670,9 @@ const Mr = ({
|
|
|
5669
5670
|
className: "p-checkbox__input",
|
|
5670
5671
|
type: "checkbox",
|
|
5671
5672
|
checked: e.getIsSelected(),
|
|
5672
|
-
disabled: !e.getCanSelect(),
|
|
5673
|
+
disabled: !e.getCanSelect() || t,
|
|
5673
5674
|
onChange: e.getToggleSelectedHandler(),
|
|
5674
|
-
...
|
|
5675
|
+
...i
|
|
5675
5676
|
}
|
|
5676
5677
|
),
|
|
5677
5678
|
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
@@ -5692,183 +5693,187 @@ const Wr = ({
|
|
|
5692
5693
|
data: a,
|
|
5693
5694
|
filterCells: r = () => !0,
|
|
5694
5695
|
filterHeaders: l = () => !0,
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5696
|
+
getSubRows: s,
|
|
5697
|
+
groupBy: c,
|
|
5698
|
+
isLoading: d,
|
|
5699
|
+
noData: f,
|
|
5700
|
+
pagination: g,
|
|
5701
|
+
pinGroup: u,
|
|
5702
|
+
sortBy: m,
|
|
5703
|
+
rowSelection: v,
|
|
5704
|
+
setRowSelection: R,
|
|
5705
|
+
variant: h = "full-height",
|
|
5706
|
+
...j
|
|
5705
5707
|
}) => {
|
|
5706
|
-
const
|
|
5707
|
-
if (!n ||
|
|
5708
|
+
const _ = be(null), [M, x] = de("auto"), [V, L] = de(!1), [B, Z] = de(c ?? []), [ce, ue] = de(!0), [ge, I] = de(m ?? []), S = le(() => {
|
|
5709
|
+
if (!n || d)
|
|
5708
5710
|
return i;
|
|
5709
|
-
const
|
|
5711
|
+
const y = [
|
|
5710
5712
|
{
|
|
5711
5713
|
id: "p-generic-table__select",
|
|
5712
5714
|
accessorKey: "id",
|
|
5713
5715
|
enableSorting: !1,
|
|
5714
|
-
header: ({ table:
|
|
5715
|
-
cell: ({ row:
|
|
5716
|
+
header: ({ table: k }) => c ? "" : /* @__PURE__ */ p(Me.All, { table: k }),
|
|
5717
|
+
cell: ({ row: k }) => k.getIsGrouped() ? null : /* @__PURE__ */ p(
|
|
5716
5718
|
Me,
|
|
5717
5719
|
{
|
|
5718
|
-
row:
|
|
5719
|
-
disabledTooltip: t ?? ""
|
|
5720
|
+
row: k,
|
|
5721
|
+
disabledTooltip: t ?? "",
|
|
5722
|
+
isNested: s !== void 0 && !!k.parentId
|
|
5720
5723
|
}
|
|
5721
5724
|
)
|
|
5722
5725
|
},
|
|
5723
5726
|
...i
|
|
5724
5727
|
];
|
|
5725
|
-
return
|
|
5728
|
+
return c ? [
|
|
5726
5729
|
{
|
|
5727
5730
|
id: "p-generic-table__group-select",
|
|
5728
5731
|
accessorKey: "id",
|
|
5729
5732
|
enableSorting: !1,
|
|
5730
|
-
header: ({ table:
|
|
5731
|
-
cell: ({ row:
|
|
5733
|
+
header: ({ table: k }) => /* @__PURE__ */ p(Me.All, { table: k }),
|
|
5734
|
+
cell: ({ row: k }) => k.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: k }) : null
|
|
5732
5735
|
},
|
|
5733
|
-
...
|
|
5734
|
-
] :
|
|
5735
|
-
}, [n, i,
|
|
5736
|
-
for (const
|
|
5737
|
-
const
|
|
5738
|
-
if (
|
|
5739
|
-
if (
|
|
5740
|
-
if (
|
|
5736
|
+
...y
|
|
5737
|
+
] : y;
|
|
5738
|
+
}, [n, i, d, c]), H = le(() => B.length ? [...a].sort((y, k) => {
|
|
5739
|
+
for (const F of B) {
|
|
5740
|
+
const E = y[F] ?? null, D = k[F] ?? null;
|
|
5741
|
+
if (E === null) return 1;
|
|
5742
|
+
if (D === null || E < D) return -1;
|
|
5743
|
+
if (E > D) return 1;
|
|
5741
5744
|
}
|
|
5742
5745
|
return 0;
|
|
5743
|
-
}) : a, [a,
|
|
5744
|
-
if (
|
|
5745
|
-
for (const { value:
|
|
5746
|
-
const
|
|
5747
|
-
if (
|
|
5748
|
-
return
|
|
5749
|
-
if (
|
|
5750
|
-
return
|
|
5746
|
+
}) : a, [a, B]), Y = le(() => H.length ? [...H].sort((y, k) => {
|
|
5747
|
+
if (u != null && u.length && B.length)
|
|
5748
|
+
for (const { value: F, isTop: E } of u) {
|
|
5749
|
+
const D = B[0], P = y[D] ?? null, T = k[D] ?? null;
|
|
5750
|
+
if (P === F && T !== F)
|
|
5751
|
+
return E ? -1 : 1;
|
|
5752
|
+
if (T === F && P !== F)
|
|
5753
|
+
return E ? 1 : -1;
|
|
5751
5754
|
}
|
|
5752
|
-
for (const { id:
|
|
5753
|
-
const
|
|
5754
|
-
if (
|
|
5755
|
-
if (
|
|
5756
|
-
if (
|
|
5757
|
-
return
|
|
5758
|
-
if (
|
|
5759
|
-
return
|
|
5755
|
+
for (const { id: F, desc: E } of ge) {
|
|
5756
|
+
const D = y[F] ?? null, P = k[F] ?? null;
|
|
5757
|
+
if (D === null && P === null) return 0;
|
|
5758
|
+
if (D === null) return E ? -1 : 1;
|
|
5759
|
+
if (P === null || D < P)
|
|
5760
|
+
return E ? 1 : -1;
|
|
5761
|
+
if (D > P)
|
|
5762
|
+
return E ? -1 : 1;
|
|
5760
5763
|
}
|
|
5761
5764
|
return 0;
|
|
5762
|
-
}) : [], [
|
|
5765
|
+
}) : [], [H, ge, u, B]);
|
|
5763
5766
|
An(() => {
|
|
5764
|
-
const
|
|
5765
|
-
const
|
|
5766
|
-
if (!
|
|
5767
|
-
const
|
|
5768
|
-
if (!
|
|
5769
|
-
const
|
|
5770
|
-
|
|
5767
|
+
const y = () => {
|
|
5768
|
+
const E = _.current;
|
|
5769
|
+
if (!E) return;
|
|
5770
|
+
const D = (o == null ? void 0 : o.current) || document.querySelector("main");
|
|
5771
|
+
if (!D) return;
|
|
5772
|
+
const P = D.getBoundingClientRect(), T = E.getBoundingClientRect(), z = P.bottom - T.top, N = E.scrollHeight > z;
|
|
5773
|
+
L(N), x(N ? `${z}px` : "auto");
|
|
5771
5774
|
};
|
|
5772
|
-
|
|
5773
|
-
const
|
|
5774
|
-
return
|
|
5775
|
-
window.removeEventListener("resize",
|
|
5775
|
+
y();
|
|
5776
|
+
const k = new ResizeObserver(y), F = _.current;
|
|
5777
|
+
return F && k.observe(F), window.addEventListener("resize", y), () => {
|
|
5778
|
+
window.removeEventListener("resize", y), F && k.unobserve(F);
|
|
5776
5779
|
};
|
|
5777
|
-
}, [o,
|
|
5778
|
-
const
|
|
5779
|
-
data:
|
|
5780
|
-
columns:
|
|
5780
|
+
}, [o, Y.length, d]);
|
|
5781
|
+
const ee = h === "full-height" && V ? "full-height" : "regular", oe = Pr({
|
|
5782
|
+
data: Y,
|
|
5783
|
+
columns: S,
|
|
5781
5784
|
state: {
|
|
5782
|
-
grouping:
|
|
5783
|
-
expanded:
|
|
5784
|
-
sorting:
|
|
5785
|
-
rowSelection:
|
|
5785
|
+
grouping: B,
|
|
5786
|
+
expanded: ce,
|
|
5787
|
+
sorting: ge,
|
|
5788
|
+
rowSelection: v
|
|
5786
5789
|
},
|
|
5787
5790
|
manualPagination: !0,
|
|
5788
5791
|
autoResetExpanded: !1,
|
|
5789
|
-
onExpandedChange:
|
|
5790
|
-
onSortingChange:
|
|
5791
|
-
onGroupingChange:
|
|
5792
|
-
onRowSelectionChange:
|
|
5792
|
+
onExpandedChange: ue,
|
|
5793
|
+
onSortingChange: I,
|
|
5794
|
+
onGroupingChange: Z,
|
|
5795
|
+
onRowSelectionChange: R,
|
|
5793
5796
|
manualSorting: !0,
|
|
5794
5797
|
enableSorting: !0,
|
|
5795
5798
|
enableExpanding: !0,
|
|
5799
|
+
getSubRows: s,
|
|
5796
5800
|
getExpandedRowModel: Sr(),
|
|
5797
5801
|
getCoreRowModel: br(),
|
|
5798
5802
|
getGroupedRowModel: _r(),
|
|
5799
5803
|
groupedColumnMode: !1,
|
|
5800
5804
|
enableRowSelection: n,
|
|
5801
5805
|
enableMultiRowSelection: n,
|
|
5802
|
-
getRowId: (
|
|
5803
|
-
}),
|
|
5804
|
-
const { getIsGrouped:
|
|
5806
|
+
getRowId: (y) => y.id.toString()
|
|
5807
|
+
}), te = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: S.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), w = () => oe.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: S.length, children: f }) }) : oe.getRowModel().rows.map((y) => {
|
|
5808
|
+
const { getIsGrouped: k, id: F, getVisibleCells: E, parentId: D } = y, P = !k(), T = v !== void 0 && Object.keys(v).includes(F);
|
|
5805
5809
|
return /* @__PURE__ */ p(
|
|
5806
5810
|
"tr",
|
|
5807
5811
|
{
|
|
5808
|
-
"aria-rowindex": parseInt(
|
|
5809
|
-
"aria-selected":
|
|
5810
|
-
className:
|
|
5811
|
-
"p-generic-table__individual-row":
|
|
5812
|
-
"p-generic-table__group-row": !
|
|
5812
|
+
"aria-rowindex": parseInt(F.replace(/\D/g, "") || "0", 10) + 1,
|
|
5813
|
+
"aria-selected": T,
|
|
5814
|
+
className: q({
|
|
5815
|
+
"p-generic-table__individual-row": P,
|
|
5816
|
+
"p-generic-table__group-row": !P,
|
|
5817
|
+
"p-generic-table__nested-row": s !== void 0 && !!D
|
|
5813
5818
|
}),
|
|
5814
5819
|
role: "row",
|
|
5815
|
-
children:
|
|
5820
|
+
children: E().filter((z) => !P && z.column.id === "p-generic-table__group-select" ? !0 : r(y, z.column)).map((z) => /* @__PURE__ */ p("td", { className: q(`${z.column.id}`), children: Lt(z.column.columnDef.cell, z.getContext()) }, z.id))
|
|
5816
5821
|
},
|
|
5817
|
-
|
|
5822
|
+
F
|
|
5818
5823
|
);
|
|
5819
5824
|
});
|
|
5820
|
-
return /* @__PURE__ */
|
|
5825
|
+
return /* @__PURE__ */ U(
|
|
5821
5826
|
"div",
|
|
5822
5827
|
{
|
|
5823
|
-
className:
|
|
5828
|
+
className: q("p-generic-table", e),
|
|
5824
5829
|
"data-testid": "p-generic-table",
|
|
5825
|
-
...
|
|
5830
|
+
...j,
|
|
5826
5831
|
children: [
|
|
5827
|
-
|
|
5832
|
+
g && /* @__PURE__ */ p(
|
|
5828
5833
|
Mr,
|
|
5829
5834
|
{
|
|
5830
|
-
currentPage:
|
|
5831
|
-
dataContext:
|
|
5832
|
-
handlePageSizeChange:
|
|
5833
|
-
isPending:
|
|
5834
|
-
itemsPerPage:
|
|
5835
|
-
setCurrentPage:
|
|
5836
|
-
totalItems:
|
|
5837
|
-
pageSizes:
|
|
5835
|
+
currentPage: g.currentPage,
|
|
5836
|
+
dataContext: g.dataContext,
|
|
5837
|
+
handlePageSizeChange: g.handlePageSizeChange,
|
|
5838
|
+
isPending: g.isPending,
|
|
5839
|
+
itemsPerPage: g.itemsPerPage,
|
|
5840
|
+
setCurrentPage: g.setCurrentPage,
|
|
5841
|
+
totalItems: g.totalItems,
|
|
5842
|
+
pageSizes: g.pageSizes
|
|
5838
5843
|
}
|
|
5839
5844
|
),
|
|
5840
|
-
/* @__PURE__ */
|
|
5845
|
+
/* @__PURE__ */ U(
|
|
5841
5846
|
"table",
|
|
5842
5847
|
{
|
|
5843
|
-
"aria-busy":
|
|
5848
|
+
"aria-busy": d,
|
|
5844
5849
|
"aria-describedby": "generic-table-description",
|
|
5845
|
-
"aria-rowcount":
|
|
5846
|
-
className:
|
|
5847
|
-
"p-generic-table__is-full-height":
|
|
5850
|
+
"aria-rowcount": Y.length + 1,
|
|
5851
|
+
className: q("p-generic-table__table", {
|
|
5852
|
+
"p-generic-table__is-full-height": ee === "full-height",
|
|
5848
5853
|
"p-generic-table__is-selectable": n,
|
|
5849
|
-
"p-generic-table__is-grouped":
|
|
5854
|
+
"p-generic-table__is-grouped": c !== void 0
|
|
5850
5855
|
}),
|
|
5851
5856
|
role: "grid",
|
|
5852
5857
|
children: [
|
|
5853
|
-
/* @__PURE__ */ p("thead", { children:
|
|
5854
|
-
/* @__PURE__ */ p(Dr, { header:
|
|
5855
|
-
|
|
5858
|
+
/* @__PURE__ */ p("thead", { children: oe.getHeaderGroups().map((y) => /* @__PURE__ */ p("tr", { role: "row", children: y.headers.filter(l).map((k, F) => /* @__PURE__ */ U($n, { children: [
|
|
5859
|
+
/* @__PURE__ */ p(Dr, { header: k }),
|
|
5860
|
+
F === 2 ? /* @__PURE__ */ p(
|
|
5856
5861
|
"th",
|
|
5857
5862
|
{
|
|
5858
5863
|
className: "p-generic-table__select-alignment",
|
|
5859
5864
|
role: "columnheader"
|
|
5860
5865
|
}
|
|
5861
5866
|
) : null
|
|
5862
|
-
] },
|
|
5867
|
+
] }, k.id)) }, y.id)) }),
|
|
5863
5868
|
/* @__PURE__ */ p(
|
|
5864
5869
|
"tbody",
|
|
5865
5870
|
{
|
|
5866
|
-
ref:
|
|
5871
|
+
ref: _,
|
|
5867
5872
|
style: {
|
|
5868
5873
|
overflowY: "auto",
|
|
5869
|
-
maxHeight:
|
|
5874
|
+
maxHeight: M
|
|
5870
5875
|
},
|
|
5871
|
-
children:
|
|
5876
|
+
children: d ? te() : w()
|
|
5872
5877
|
}
|
|
5873
5878
|
)
|
|
5874
5879
|
]
|
|
@@ -5946,166 +5951,166 @@ const Wr = ({
|
|
|
5946
5951
|
highlightedIndex: -1,
|
|
5947
5952
|
showingMore: !1,
|
|
5948
5953
|
cursorPosition: 0
|
|
5949
|
-
}), u = be(null), m = be(null), v = be(null), R =
|
|
5954
|
+
}), u = be(null), m = be(null), v = be(null), R = le(() => {
|
|
5950
5955
|
const I = f.showingMore ? Fn.EXPANDED : Fn.DEFAULT, S = l.slice(0, I);
|
|
5951
5956
|
return !f.showingMore && l.length > I ? [...S, { value: "Show more...", type: "more" }] : S;
|
|
5952
|
-
}, [l, f.showingMore]),
|
|
5957
|
+
}, [l, f.showingMore]), h = Q(
|
|
5953
5958
|
(I) => {
|
|
5954
5959
|
g(typeof I == "function" ? (S) => ({ ...S, ...I(S) }) : (S) => ({ ...S, ...I }));
|
|
5955
5960
|
},
|
|
5956
5961
|
[]
|
|
5957
|
-
),
|
|
5962
|
+
), j = Q(
|
|
5958
5963
|
(I) => {
|
|
5959
|
-
u.current && !u.current.contains(I.target) &&
|
|
5964
|
+
u.current && !u.current.contains(I.target) && h({
|
|
5960
5965
|
isVisible: !1,
|
|
5961
5966
|
highlightedIndex: -1
|
|
5962
5967
|
});
|
|
5963
5968
|
},
|
|
5964
|
-
[
|
|
5965
|
-
),
|
|
5969
|
+
[h]
|
|
5970
|
+
), _ = Q(
|
|
5966
5971
|
(I, S) => {
|
|
5967
|
-
const { tokenStart:
|
|
5972
|
+
const { tokenStart: H, tokenEnd: Y } = S;
|
|
5968
5973
|
if (I.type === "filter") {
|
|
5969
|
-
const
|
|
5970
|
-
return t.slice(0,
|
|
5974
|
+
const oe = I.value + xe.COLON + xe.OPEN_PAREN;
|
|
5975
|
+
return t.slice(0, H) + oe + t.slice(Y);
|
|
5971
5976
|
}
|
|
5972
5977
|
if (o.length === 0) {
|
|
5973
|
-
const
|
|
5974
|
-
return t.slice(0,
|
|
5978
|
+
const oe = I.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + I.value;
|
|
5979
|
+
return t.slice(0, H) + oe + t.slice(Y);
|
|
5975
5980
|
}
|
|
5976
|
-
const
|
|
5977
|
-
return t.slice(0,
|
|
5981
|
+
const ee = t.charAt(H - 1) === xe.EQUALS ? I.value : xe.EQUALS + I.value;
|
|
5982
|
+
return t.slice(0, H) + ee + t.slice(Y);
|
|
5978
5983
|
},
|
|
5979
5984
|
[t, o]
|
|
5980
|
-
), M =
|
|
5985
|
+
), M = Q(
|
|
5981
5986
|
(I) => {
|
|
5982
5987
|
const S = R[I];
|
|
5983
5988
|
if (!S) return;
|
|
5984
5989
|
if (S.type === "more") {
|
|
5985
|
-
|
|
5990
|
+
h({ showingMore: !0 });
|
|
5986
5991
|
return;
|
|
5987
5992
|
}
|
|
5988
|
-
const
|
|
5993
|
+
const H = Ze(
|
|
5989
5994
|
t,
|
|
5990
5995
|
f.cursorPosition
|
|
5991
|
-
),
|
|
5992
|
-
|
|
5993
|
-
|
|
5996
|
+
), Y = _(S, H), ee = H.tokenStart + (S.type === "filter" ? S.value.length + 2 : o.length === 0 ? S.type.length + S.value.length + 3 : S.value.length + 1), { context: oe, token: te } = Ze(
|
|
5997
|
+
Y,
|
|
5998
|
+
ee
|
|
5994
5999
|
);
|
|
5995
|
-
a(
|
|
6000
|
+
a(oe), r(te), i(Y), setTimeout(() => {
|
|
5996
6001
|
v.current && (v.current.focus(), v.current.setSelectionRange(
|
|
5997
|
-
|
|
5998
|
-
|
|
6002
|
+
ee,
|
|
6003
|
+
ee
|
|
5999
6004
|
));
|
|
6000
|
-
}, 0),
|
|
6005
|
+
}, 0), h({
|
|
6001
6006
|
highlightedIndex: 0,
|
|
6002
6007
|
showingMore: !1,
|
|
6003
6008
|
isVisible: S.type === "filter",
|
|
6004
|
-
cursorPosition:
|
|
6009
|
+
cursorPosition: ee
|
|
6005
6010
|
});
|
|
6006
6011
|
},
|
|
6007
6012
|
[
|
|
6008
6013
|
R,
|
|
6009
|
-
|
|
6014
|
+
_,
|
|
6010
6015
|
t,
|
|
6011
6016
|
f.cursorPosition,
|
|
6012
6017
|
o,
|
|
6013
6018
|
a,
|
|
6014
6019
|
r,
|
|
6015
6020
|
i,
|
|
6016
|
-
|
|
6021
|
+
h
|
|
6017
6022
|
]
|
|
6018
|
-
),
|
|
6023
|
+
), x = Q(() => {
|
|
6019
6024
|
if (!v.current) return;
|
|
6020
|
-
const I = v.current.selectionStart || 0, { context: S, token:
|
|
6025
|
+
const I = v.current.selectionStart || 0, { context: S, token: H } = Ze(
|
|
6021
6026
|
t,
|
|
6022
6027
|
I
|
|
6023
6028
|
);
|
|
6024
|
-
a(S), r(
|
|
6025
|
-
...
|
|
6029
|
+
a(S), r(H), h((Y) => ({
|
|
6030
|
+
...Y,
|
|
6026
6031
|
isVisible: !Pn(t, I),
|
|
6027
6032
|
cursorPosition: I
|
|
6028
6033
|
}));
|
|
6029
|
-
}, [t, a, r,
|
|
6034
|
+
}, [t, a, r, h]), V = Q(
|
|
6030
6035
|
(I) => {
|
|
6031
6036
|
const { key: S } = I;
|
|
6032
6037
|
if (f.isVisible) {
|
|
6033
|
-
const
|
|
6038
|
+
const H = R.length;
|
|
6034
6039
|
switch (S) {
|
|
6035
6040
|
case "Tab":
|
|
6036
6041
|
case "ArrowDown":
|
|
6037
|
-
I.preventDefault(),
|
|
6038
|
-
highlightedIndex: (f.highlightedIndex + 1) %
|
|
6042
|
+
I.preventDefault(), h({
|
|
6043
|
+
highlightedIndex: (f.highlightedIndex + 1) % H
|
|
6039
6044
|
});
|
|
6040
6045
|
return;
|
|
6041
6046
|
case "ArrowUp":
|
|
6042
|
-
I.preventDefault(),
|
|
6043
|
-
highlightedIndex: f.highlightedIndex <= 0 ?
|
|
6047
|
+
I.preventDefault(), h({
|
|
6048
|
+
highlightedIndex: f.highlightedIndex <= 0 ? H - 1 : f.highlightedIndex - 1
|
|
6044
6049
|
});
|
|
6045
6050
|
return;
|
|
6046
6051
|
case "Enter":
|
|
6047
|
-
I.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) :
|
|
6052
|
+
I.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6048
6053
|
return;
|
|
6049
6054
|
case "Escape":
|
|
6050
|
-
I.preventDefault(),
|
|
6055
|
+
I.preventDefault(), h({
|
|
6051
6056
|
isVisible: !1,
|
|
6052
6057
|
highlightedIndex: -1
|
|
6053
6058
|
});
|
|
6054
6059
|
return;
|
|
6055
6060
|
}
|
|
6056
6061
|
}
|
|
6057
|
-
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(
|
|
6062
|
+
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(x, 0);
|
|
6058
6063
|
},
|
|
6059
6064
|
[
|
|
6060
6065
|
f,
|
|
6061
6066
|
R.length,
|
|
6062
|
-
|
|
6067
|
+
h,
|
|
6063
6068
|
M,
|
|
6064
|
-
|
|
6069
|
+
x
|
|
6065
6070
|
]
|
|
6066
|
-
),
|
|
6071
|
+
), L = Q(
|
|
6067
6072
|
(I) => {
|
|
6068
6073
|
const { key: S } = I;
|
|
6069
|
-
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") &&
|
|
6074
|
+
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && x();
|
|
6070
6075
|
},
|
|
6071
|
-
[
|
|
6072
|
-
),
|
|
6073
|
-
|
|
6076
|
+
[x]
|
|
6077
|
+
), B = Q(() => {
|
|
6078
|
+
h({
|
|
6074
6079
|
isVisible: !0,
|
|
6075
6080
|
highlightedIndex: 0
|
|
6076
6081
|
});
|
|
6077
|
-
}, [
|
|
6082
|
+
}, [h]), Z = Q(
|
|
6078
6083
|
(I) => {
|
|
6079
|
-
var
|
|
6080
|
-
const S = ((
|
|
6084
|
+
var ee;
|
|
6085
|
+
const S = ((ee = v.current) == null ? void 0 : ee.selectionStart) || I.length, { context: H, token: Y } = Ze(
|
|
6081
6086
|
I,
|
|
6082
6087
|
S
|
|
6083
6088
|
);
|
|
6084
|
-
a(
|
|
6089
|
+
a(H), r(Y), i(I), h({
|
|
6085
6090
|
highlightedIndex: 0,
|
|
6086
6091
|
isVisible: !Pn(I, S),
|
|
6087
6092
|
showingMore: !1,
|
|
6088
6093
|
cursorPosition: S
|
|
6089
6094
|
});
|
|
6090
6095
|
},
|
|
6091
|
-
[a, r, i,
|
|
6092
|
-
),
|
|
6093
|
-
setTimeout(
|
|
6094
|
-
}, [
|
|
6095
|
-
|
|
6096
|
+
[a, r, i, h]
|
|
6097
|
+
), ce = Q(() => {
|
|
6098
|
+
setTimeout(x, 0);
|
|
6099
|
+
}, [x]), ue = Q(() => {
|
|
6100
|
+
h({
|
|
6096
6101
|
isVisible: !1,
|
|
6097
6102
|
highlightedIndex: -1
|
|
6098
6103
|
});
|
|
6099
|
-
}, [
|
|
6104
|
+
}, [h]), ge = Q(
|
|
6100
6105
|
(I) => {
|
|
6101
|
-
|
|
6106
|
+
h({ highlightedIndex: I });
|
|
6102
6107
|
},
|
|
6103
|
-
[
|
|
6108
|
+
[h]
|
|
6104
6109
|
);
|
|
6105
|
-
return Ee(() => (document.addEventListener("mousedown",
|
|
6110
|
+
return Ee(() => (document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j)), [j]), /* @__PURE__ */ U(
|
|
6106
6111
|
"div",
|
|
6107
6112
|
{
|
|
6108
|
-
className:
|
|
6113
|
+
className: q("p-query-input", e),
|
|
6109
6114
|
"data-testid": "p-query-input",
|
|
6110
6115
|
ref: u,
|
|
6111
6116
|
...d,
|
|
@@ -6121,12 +6126,12 @@ const Wr = ({
|
|
|
6121
6126
|
id: "query-input",
|
|
6122
6127
|
name: "query-input",
|
|
6123
6128
|
ref: v,
|
|
6124
|
-
onFocus:
|
|
6125
|
-
onChange:
|
|
6126
|
-
onKeyDown:
|
|
6127
|
-
onKeyUp:
|
|
6128
|
-
onClear:
|
|
6129
|
-
onClick:
|
|
6129
|
+
onFocus: B,
|
|
6130
|
+
onChange: Z,
|
|
6131
|
+
onKeyDown: V,
|
|
6132
|
+
onKeyUp: L,
|
|
6133
|
+
onClear: ue,
|
|
6134
|
+
onClick: ce,
|
|
6130
6135
|
"aria-disabled": n,
|
|
6131
6136
|
"aria-expanded": f.isVisible,
|
|
6132
6137
|
"aria-haspopup": "listbox",
|
|
@@ -6141,24 +6146,24 @@ const Wr = ({
|
|
|
6141
6146
|
id: "query-suggestions",
|
|
6142
6147
|
role: "listbox",
|
|
6143
6148
|
"aria-label": "Search suggestions",
|
|
6144
|
-
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */
|
|
6149
|
+
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */ U(
|
|
6145
6150
|
"li",
|
|
6146
6151
|
{
|
|
6147
|
-
className:
|
|
6152
|
+
className: q("p-query-input__item", {
|
|
6148
6153
|
highlight: S === f.highlightedIndex
|
|
6149
6154
|
}),
|
|
6150
6155
|
onClick: () => M(S),
|
|
6151
6156
|
onKeyDown: () => M(S),
|
|
6152
|
-
onMouseEnter: () =>
|
|
6157
|
+
onMouseEnter: () => ge(S),
|
|
6153
6158
|
role: "option",
|
|
6154
6159
|
"aria-selected": S === f.highlightedIndex,
|
|
6155
6160
|
tabIndex: -1,
|
|
6156
6161
|
children: [
|
|
6157
|
-
/* @__PURE__ */
|
|
6162
|
+
/* @__PURE__ */ U("span", { className: "p-query-input__item-label", children: [
|
|
6158
6163
|
/* @__PURE__ */ p(
|
|
6159
6164
|
"span",
|
|
6160
6165
|
{
|
|
6161
|
-
className:
|
|
6166
|
+
className: q({
|
|
6162
6167
|
"u-text--muted": I.type === "more"
|
|
6163
6168
|
}),
|
|
6164
6169
|
children: I.value
|
|
@@ -6210,7 +6215,7 @@ export {
|
|
|
6210
6215
|
zi as Meter,
|
|
6211
6216
|
Kr as MultiSelect,
|
|
6212
6217
|
$a as MultiSelectDropdown,
|
|
6213
|
-
|
|
6218
|
+
re as Navigation,
|
|
6214
6219
|
co as NavigationBar,
|
|
6215
6220
|
Gr as NestedFormGroup,
|
|
6216
6221
|
Co as Pagination,
|