@canonical/maas-react-components 1.31.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 +963 -916
- package/dist/@canonical/maas-react-components.umd.js +13 -13
- package/dist/maas-react-components.css +1 -1
- package/dist/src/lib/components/GenericTable/GenericTable.d.ts +9 -5
- package/dist/src/lib/components/GenericTable/GenericTable.stories.d.ts +13 -2
- package/dist/src/lib/components/GenericTable/TableCheckbox/TableCheckbox.d.ts +4 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as U, jsx as p, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as pe from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useListener as
|
|
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
|
+
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;
|
|
7
7
|
}
|
|
@@ -59,7 +59,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
59
59
|
Ie.positive,
|
|
60
60
|
Ie.negative,
|
|
61
61
|
Ie.caution
|
|
62
|
-
], Ti = Ie.linkFaded,
|
|
62
|
+
], Ti = Ie.linkFaded, jn = Ie.caution, It = Ie.light, en = 2, tn = 1, nn = (e, n) => {
|
|
63
63
|
var o, a;
|
|
64
64
|
const t = ((a = (o = e == null ? void 0 : e.current) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : a.width) || 0;
|
|
65
65
|
return t > n * en ? t / n : en;
|
|
@@ -79,14 +79,14 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
79
79
|
size: a = "regular",
|
|
80
80
|
...r
|
|
81
81
|
}) => {
|
|
82
|
-
const l =
|
|
82
|
+
const l = be(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
|
|
83
83
|
Ee(() => {
|
|
84
84
|
g(o === "segmented" ? nn(l, c) : 0);
|
|
85
85
|
}, [c, o]);
|
|
86
86
|
const u = Q(() => {
|
|
87
87
|
g(nn(l, c));
|
|
88
88
|
}, [l, c, g]);
|
|
89
|
-
return
|
|
89
|
+
return Ri(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ U(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
92
|
className: q("p-meter", e, {
|
|
@@ -102,7 +102,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
102
102
|
data: t,
|
|
103
103
|
datumWidths: d,
|
|
104
104
|
maximum: c,
|
|
105
|
-
overColor:
|
|
105
|
+
overColor: jn,
|
|
106
106
|
segmentWidth: f,
|
|
107
107
|
separatorColor: It
|
|
108
108
|
}
|
|
@@ -147,7 +147,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
147
147
|
{
|
|
148
148
|
className: "p-meter__filled",
|
|
149
149
|
"data-testid": Oe.meteroverflow,
|
|
150
|
-
style: { backgroundColor:
|
|
150
|
+
style: { backgroundColor: jn, width: "100%" }
|
|
151
151
|
}
|
|
152
152
|
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ p(
|
|
153
153
|
"div",
|
|
@@ -179,7 +179,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
zi.Label = Li;
|
|
182
|
-
const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(
|
|
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
184
|
}) => /* @__PURE__ */ U("small", { className: "progress-indicator", children: [
|
|
185
185
|
e,
|
|
@@ -207,7 +207,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
|
|
|
207
207
|
setIsCollapsed: n,
|
|
208
208
|
className: t
|
|
209
209
|
}) => /* @__PURE__ */ p(
|
|
210
|
-
|
|
210
|
+
Mn,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
213
|
message: /* @__PURE__ */ U(we, { children: [
|
|
@@ -219,7 +219,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
|
|
|
219
219
|
position: "right",
|
|
220
220
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
221
221
|
children: /* @__PURE__ */ p(
|
|
222
|
-
|
|
222
|
+
Se,
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
@@ -261,7 +261,7 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...t, href:
|
|
|
261
261
|
className: n,
|
|
262
262
|
onClick: t
|
|
263
263
|
}) => /* @__PURE__ */ p(
|
|
264
|
-
|
|
264
|
+
Se,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
267
267
|
className: q(
|
|
@@ -273,27 +273,27 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ri, { ...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
|
-
const Bt = In(null),
|
|
296
|
+
const Bt = In(null), Tn = ({ children: e }) => {
|
|
297
297
|
const n = et();
|
|
298
298
|
return /* @__PURE__ */ p(Bt.Provider, { value: n, children: /* @__PURE__ */ p(
|
|
299
299
|
"div",
|
|
@@ -312,8 +312,8 @@ const Bt = In(null), jn = ({ children: e }) => {
|
|
|
312
312
|
const n = Ht(Bt);
|
|
313
313
|
return /* @__PURE__ */ p("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
|
|
314
314
|
};
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
Tn.Label = po;
|
|
316
|
+
Tn.Description = uo;
|
|
317
317
|
const Ut = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section", children: e }), go = ({ children: e }) => /* @__PURE__ */ p("h5", { className: "p-form-section__title u-no-padding--top", children: e }), fo = ({ children: e }) => /* @__PURE__ */ p("p", { className: "p-form-help-text", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section__content", children: e });
|
|
318
318
|
Ut.Title = go;
|
|
319
319
|
Ut.Description = fo;
|
|
@@ -334,8 +334,8 @@ function vo(e) {
|
|
|
334
334
|
};
|
|
335
335
|
}, [e, o]), n;
|
|
336
336
|
}
|
|
337
|
-
const
|
|
338
|
-
}]),
|
|
337
|
+
const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
|
|
338
|
+
}]), Nn = ({ children: e }) => {
|
|
339
339
|
const n = pe.useRef(null), t = vo(n), [i, o] = pe.useState(!1);
|
|
340
340
|
return /* @__PURE__ */ p(
|
|
341
341
|
"header",
|
|
@@ -344,7 +344,7 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
|
|
|
344
344
|
"main-toolbar--stacked": i
|
|
345
345
|
}),
|
|
346
346
|
ref: n,
|
|
347
|
-
children: /* @__PURE__ */ p(
|
|
347
|
+
children: /* @__PURE__ */ p(zn.Provider, { value: t, children: /* @__PURE__ */ p(Vn.Provider, { value: [i, o], children: e }) })
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
350
|
}, xo = ({
|
|
@@ -361,7 +361,7 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
|
|
|
361
361
|
children: n
|
|
362
362
|
}
|
|
363
363
|
), ho = ({ children: e }) => {
|
|
364
|
-
const n = pe.useContext(
|
|
364
|
+
const n = pe.useContext(zn), [t, i] = pe.useContext(Vn), o = pe.useRef(null);
|
|
365
365
|
return pe.useEffect(() => {
|
|
366
366
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
367
367
|
}, [i, n, o]), /* @__PURE__ */ U(we, { children: [
|
|
@@ -386,8 +386,8 @@ const Tn = pe.createContext(null), zn = pe.createContext([!1, () => {
|
|
|
386
386
|
)
|
|
387
387
|
] });
|
|
388
388
|
};
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
Nn.Title = xo;
|
|
390
|
+
Nn.Controls = ho;
|
|
391
391
|
const ot = ({
|
|
392
392
|
children: e,
|
|
393
393
|
className: n,
|
|
@@ -404,12 +404,12 @@ const ot = ({
|
|
|
404
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: q("content-section__header", n), children: e }),
|
|
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
|
-
ot.Content =
|
|
411
|
-
ot.Footer =
|
|
412
|
-
const
|
|
410
|
+
ot.Content = bo;
|
|
411
|
+
ot.Footer = So;
|
|
412
|
+
const Ln = ({
|
|
413
413
|
children: e,
|
|
414
414
|
className: n,
|
|
415
415
|
isVisible: t
|
|
@@ -424,7 +424,7 @@ const Nn = ({
|
|
|
424
424
|
), Gr = ({
|
|
425
425
|
children: e,
|
|
426
426
|
...n
|
|
427
|
-
}) => /* @__PURE__ */ p(
|
|
427
|
+
}) => /* @__PURE__ */ p(Ln, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), Co = ({
|
|
428
428
|
className: e,
|
|
429
429
|
currentPage: n,
|
|
430
430
|
error: t,
|
|
@@ -442,7 +442,7 @@ const Nn = ({
|
|
|
442
442
|
className: q("p-pagination", e),
|
|
443
443
|
children: /* @__PURE__ */ U("span", { className: "p-pagination--items", children: [
|
|
444
444
|
/* @__PURE__ */ p(
|
|
445
|
-
|
|
445
|
+
Se,
|
|
446
446
|
{
|
|
447
447
|
"aria-label": "Previous page",
|
|
448
448
|
className: "p-pagination__link--previous",
|
|
@@ -475,7 +475,7 @@ const Nn = ({
|
|
|
475
475
|
s
|
|
476
476
|
] }),
|
|
477
477
|
/* @__PURE__ */ p(
|
|
478
|
-
|
|
478
|
+
Se,
|
|
479
479
|
{
|
|
480
480
|
"aria-label": "Next page",
|
|
481
481
|
className: "p-pagination__link--next",
|
|
@@ -543,67 +543,67 @@ var on;
|
|
|
543
543
|
function Ro() {
|
|
544
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,
|
|
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
|
|
578
|
-
return
|
|
577
|
+
function M(x) {
|
|
578
|
+
return _(x) === c;
|
|
579
579
|
}
|
|
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(
|
|
581
|
-
return
|
|
582
|
-
}, K.isConcurrentMode =
|
|
583
|
-
return
|
|
584
|
-
}, K.isContextProvider = function(
|
|
585
|
-
return
|
|
586
|
-
}, K.isElement = function(
|
|
587
|
-
return typeof
|
|
588
|
-
}, K.isForwardRef = function(
|
|
589
|
-
return
|
|
590
|
-
}, K.isFragment = function(
|
|
591
|
-
return
|
|
592
|
-
}, K.isLazy = function(
|
|
593
|
-
return
|
|
594
|
-
}, K.isMemo = function(
|
|
595
|
-
return
|
|
596
|
-
}, K.isPortal = function(
|
|
597
|
-
return
|
|
598
|
-
}, K.isProfiler = function(
|
|
599
|
-
return
|
|
600
|
-
}, K.isStrictMode = function(
|
|
601
|
-
return
|
|
602
|
-
}, K.isSuspense = function(
|
|
603
|
-
return
|
|
604
|
-
}, K.isValidElementType = function(
|
|
605
|
-
return typeof
|
|
606
|
-
}, K.typeOf =
|
|
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
608
|
var W = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
@@ -617,17 +617,17 @@ var W = {};
|
|
|
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,
|
|
621
|
-
function
|
|
622
|
-
return typeof
|
|
623
|
-
|
|
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
|
+
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 === h || b.$$typeof === j || b.$$typeof === v);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
if (typeof
|
|
627
|
-
var fe =
|
|
625
|
+
function M(b) {
|
|
626
|
+
if (typeof b == "object" && b !== null) {
|
|
627
|
+
var fe = b.$$typeof;
|
|
628
628
|
switch (fe) {
|
|
629
629
|
case n:
|
|
630
|
-
var Fe =
|
|
630
|
+
var Fe = b.type;
|
|
631
631
|
switch (Fe) {
|
|
632
632
|
case s:
|
|
633
633
|
case c:
|
|
@@ -654,51 +654,51 @@ function Eo() {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var
|
|
658
|
-
function
|
|
659
|
-
return
|
|
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
|
+
function te(b) {
|
|
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
|
|
662
|
-
return
|
|
661
|
+
function w(b) {
|
|
662
|
+
return M(b) === c;
|
|
663
663
|
}
|
|
664
|
-
function y(
|
|
665
|
-
return
|
|
664
|
+
function y(b) {
|
|
665
|
+
return M(b) === l;
|
|
666
666
|
}
|
|
667
|
-
function k(
|
|
668
|
-
return
|
|
667
|
+
function k(b) {
|
|
668
|
+
return M(b) === r;
|
|
669
669
|
}
|
|
670
|
-
function F(
|
|
671
|
-
return typeof
|
|
670
|
+
function F(b) {
|
|
671
|
+
return typeof b == "object" && b !== null && b.$$typeof === n;
|
|
672
672
|
}
|
|
673
|
-
function E(
|
|
674
|
-
return
|
|
673
|
+
function E(b) {
|
|
674
|
+
return M(b) === d;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
676
|
+
function D(b) {
|
|
677
|
+
return M(b) === i;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return
|
|
679
|
+
function P(b) {
|
|
680
|
+
return M(b) === m;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
682
|
+
function T(b) {
|
|
683
|
+
return M(b) === u;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
685
|
+
function z(b) {
|
|
686
|
+
return M(b) === t;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return
|
|
688
|
+
function G(b) {
|
|
689
|
+
return M(b) === a;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
return
|
|
691
|
+
function N(b) {
|
|
692
|
+
return M(b) === o;
|
|
693
693
|
}
|
|
694
|
-
function ie(
|
|
695
|
-
return
|
|
694
|
+
function ie(b) {
|
|
695
|
+
return M(b) === f;
|
|
696
696
|
}
|
|
697
|
-
W.AsyncMode =
|
|
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
698
|
}()), W;
|
|
699
699
|
}
|
|
700
700
|
var rn;
|
|
701
|
-
function
|
|
701
|
+
function Hn() {
|
|
702
702
|
return rn || (rn = 1, process.env.NODE_ENV === "production" ? Ke.exports = Ro() : Ke.exports = Eo()), Ke.exports;
|
|
703
703
|
}
|
|
704
704
|
/*
|
|
@@ -760,7 +760,7 @@ function Kt() {
|
|
|
760
760
|
return vt = e, vt;
|
|
761
761
|
}
|
|
762
762
|
var xt, cn;
|
|
763
|
-
function
|
|
763
|
+
function qn() {
|
|
764
764
|
return cn || (cn = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
|
|
765
765
|
}
|
|
766
766
|
var ht, pn;
|
|
@@ -770,7 +770,7 @@ function Fo() {
|
|
|
770
770
|
var e = function() {
|
|
771
771
|
};
|
|
772
772
|
if (process.env.NODE_ENV !== "production") {
|
|
773
|
-
var n = /* @__PURE__ */ Kt(), t = {}, i = /* @__PURE__ */
|
|
773
|
+
var n = /* @__PURE__ */ Kt(), t = {}, i = /* @__PURE__ */ qn();
|
|
774
774
|
e = function(a) {
|
|
775
775
|
var r = "Warning: " + a;
|
|
776
776
|
typeof console < "u" && console.error(r);
|
|
@@ -816,7 +816,7 @@ var wt, un;
|
|
|
816
816
|
function Po() {
|
|
817
817
|
if (un) return wt;
|
|
818
818
|
un = 1;
|
|
819
|
-
var e =
|
|
819
|
+
var e = Hn(), n = ko(), t = /* @__PURE__ */ Kt(), i = /* @__PURE__ */ qn(), o = /* @__PURE__ */ Fo(), a = function() {
|
|
820
820
|
};
|
|
821
821
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
822
822
|
var s = "Warning: " + l;
|
|
@@ -831,260 +831,260 @@ 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:
|
|
850
|
-
element:
|
|
851
|
-
elementType:
|
|
852
|
-
instanceOf:
|
|
853
|
-
node:
|
|
854
|
-
objectOf:
|
|
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
|
+
element: M(),
|
|
851
|
+
elementType: x(),
|
|
852
|
+
instanceOf: V,
|
|
853
|
+
node: ce(),
|
|
854
|
+
objectOf: B,
|
|
855
855
|
oneOf: L,
|
|
856
|
-
oneOfType:
|
|
856
|
+
oneOfType: Z,
|
|
857
857
|
shape: ge,
|
|
858
|
-
exact:
|
|
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
|
|
867
|
+
function R(w) {
|
|
868
868
|
if (process.env.NODE_ENV !== "production")
|
|
869
869
|
var y = {}, k = 0;
|
|
870
|
-
function F(
|
|
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
|
-
var
|
|
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
|
-
throw
|
|
876
|
+
throw b.name = "Invariant Violation", b;
|
|
877
877
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
878
|
-
var fe =
|
|
878
|
+
var fe = z + ":" + T;
|
|
879
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 `" +
|
|
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
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
887
|
var E = F.bind(null, !1);
|
|
888
888
|
return E.isRequired = F.bind(null, !0), E;
|
|
889
889
|
}
|
|
890
|
-
function w
|
|
891
|
-
function y(k, F, E,
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
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
|
-
return
|
|
902
|
+
return R(y);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
904
|
+
function j() {
|
|
905
|
+
return R(r);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
function y(k, F, E,
|
|
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
|
|
918
|
-
if (
|
|
919
|
-
return
|
|
916
|
+
for (var G = 0; G < T.length; G++) {
|
|
917
|
+
var N = w(T, G, E, D, P + "[" + G + "]", t);
|
|
918
|
+
if (N instanceof Error)
|
|
919
|
+
return N;
|
|
920
920
|
}
|
|
921
921
|
return null;
|
|
922
922
|
}
|
|
923
|
-
return
|
|
923
|
+
return R(y);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
function
|
|
927
|
-
var
|
|
928
|
-
if (!l(
|
|
929
|
-
var
|
|
930
|
-
return new v("Invalid " + E + " `" +
|
|
925
|
+
function M() {
|
|
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
|
|
934
|
+
return R(w);
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
function
|
|
938
|
-
var
|
|
939
|
-
if (!e.isValidElementType(
|
|
940
|
-
var
|
|
941
|
-
return new v("Invalid " + E + " `" +
|
|
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
|
|
945
|
+
return R(w);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
function y(k, F, E,
|
|
949
|
-
if (!(k[F] instanceof
|
|
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
|
-
return
|
|
955
|
+
return R(y);
|
|
956
956
|
}
|
|
957
|
-
function L(
|
|
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, F, E,
|
|
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 fe =
|
|
968
|
-
return fe === "symbol" ? String(
|
|
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
|
-
return
|
|
972
|
+
return R(y);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
function y(k, F, E,
|
|
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
|
|
984
|
-
if (
|
|
985
|
-
return
|
|
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
|
+
if (N instanceof Error)
|
|
985
|
+
return N;
|
|
986
986
|
}
|
|
987
987
|
return null;
|
|
988
988
|
}
|
|
989
|
-
return
|
|
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 F(E,
|
|
1002
|
-
for (var
|
|
1003
|
-
var ie =
|
|
1004
|
-
if (
|
|
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
|
+
if (b == null)
|
|
1005
1005
|
return null;
|
|
1006
|
-
|
|
1006
|
+
b.data && i(b.data, "expectedType") && G.push(b.data.expectedType);
|
|
1007
1007
|
}
|
|
1008
|
-
var fe =
|
|
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
|
|
1011
|
+
return R(F);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
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
|
|
1017
|
+
return R(w);
|
|
1018
1018
|
}
|
|
1019
|
-
function ue(
|
|
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 ge(
|
|
1025
|
-
function y(k, F, E,
|
|
1026
|
-
var
|
|
1027
|
-
if (
|
|
1028
|
-
return new v("Invalid " +
|
|
1029
|
-
for (var
|
|
1030
|
-
var
|
|
1031
|
-
if (typeof
|
|
1032
|
-
return ue(E,
|
|
1033
|
-
var ie =
|
|
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
|
+
if (typeof N != "function")
|
|
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
|
}
|
|
1037
1037
|
return null;
|
|
1038
1038
|
}
|
|
1039
|
-
return
|
|
1039
|
+
return R(y);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
function y(k, F, E,
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
return new v("Invalid " +
|
|
1046
|
-
var
|
|
1047
|
-
for (var
|
|
1048
|
-
var ie =
|
|
1049
|
-
if (i(
|
|
1050
|
-
return ue(E,
|
|
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
|
|
1057
|
-
if (
|
|
1058
|
-
return
|
|
1056
|
+
var b = ie(T, N, E, D, P + "." + N, t);
|
|
1057
|
+
if (b)
|
|
1058
|
+
return b;
|
|
1059
1059
|
}
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
|
-
return
|
|
1062
|
+
return R(y);
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
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 !==
|
|
1079
|
+
var k = y.call(w), F;
|
|
1080
|
+
if (y !== w.entries) {
|
|
1081
1081
|
for (; !(F = k.next()).done; )
|
|
1082
|
-
if (!
|
|
1082
|
+
if (!S(F.value))
|
|
1083
1083
|
return !1;
|
|
1084
1084
|
} else
|
|
1085
1085
|
for (; !(F = k.next()).done; ) {
|
|
1086
1086
|
var E = F.value;
|
|
1087
|
-
if (E && !
|
|
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 Y(
|
|
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 = 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
|
|
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;
|
|
@@ -1185,7 +1185,7 @@ var gn;
|
|
|
1185
1185
|
function Do() {
|
|
1186
1186
|
if (gn) return Ue.exports;
|
|
1187
1187
|
if (gn = 1, process.env.NODE_ENV !== "production") {
|
|
1188
|
-
var e =
|
|
1188
|
+
var e = Hn(), n = !0;
|
|
1189
1189
|
Ue.exports = /* @__PURE__ */ Po()(e.isElement, n);
|
|
1190
1190
|
} else
|
|
1191
1191
|
Ue.exports = /* @__PURE__ */ Io()();
|
|
@@ -2484,7 +2484,7 @@ function Lo(e, n) {
|
|
|
2484
2484
|
if (n !== "drop")
|
|
2485
2485
|
return t;
|
|
2486
2486
|
const i = yield Promise.all(t.map(Ho));
|
|
2487
|
-
return mn(
|
|
2487
|
+
return mn(Gn(i));
|
|
2488
2488
|
}
|
|
2489
2489
|
return mn(Dt(e.files).map((t) => je(t)));
|
|
2490
2490
|
});
|
|
@@ -2506,12 +2506,12 @@ function Ho(e) {
|
|
|
2506
2506
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2507
2507
|
return vn(e);
|
|
2508
2508
|
const n = e.webkitGetAsEntry();
|
|
2509
|
-
return n && n.isDirectory ?
|
|
2509
|
+
return n && n.isDirectory ? Bn(n) : vn(e, n);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Gn(e) {
|
|
2512
2512
|
return e.reduce((n, t) => [
|
|
2513
2513
|
...n,
|
|
2514
|
-
...Array.isArray(t) ?
|
|
2514
|
+
...Array.isArray(t) ? Gn(t) : [t]
|
|
2515
2515
|
], []);
|
|
2516
2516
|
}
|
|
2517
2517
|
function vn(e, n) {
|
|
@@ -2534,10 +2534,10 @@ function vn(e, n) {
|
|
|
2534
2534
|
}
|
|
2535
2535
|
function qo(e) {
|
|
2536
2536
|
return De(this, void 0, void 0, function* () {
|
|
2537
|
-
return e.isDirectory ?
|
|
2537
|
+
return e.isDirectory ? Bn(e) : Go(e);
|
|
2538
2538
|
});
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function Bn(e) {
|
|
2541
2541
|
const n = e.createReader();
|
|
2542
2542
|
return new Promise((t, i) => {
|
|
2543
2543
|
const o = [];
|
|
@@ -2589,9 +2589,9 @@ function Bo() {
|
|
|
2589
2589
|
}), We;
|
|
2590
2590
|
}
|
|
2591
2591
|
var Uo = Bo();
|
|
2592
|
-
const
|
|
2592
|
+
const bt = /* @__PURE__ */ Gt(Uo);
|
|
2593
2593
|
function hn(e) {
|
|
2594
|
-
return Yo(e) || Wo(e) ||
|
|
2594
|
+
return Yo(e) || Wo(e) || Kn(e) || Ko();
|
|
2595
2595
|
}
|
|
2596
2596
|
function Ko() {
|
|
2597
2597
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -2617,24 +2617,24 @@ function yn(e) {
|
|
|
2617
2617
|
for (var n = 1; n < arguments.length; n++) {
|
|
2618
2618
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2619
2619
|
n % 2 ? wn(Object(t), !0).forEach(function(i) {
|
|
2620
|
-
|
|
2620
|
+
Un(e, i, t[i]);
|
|
2621
2621
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : wn(Object(t)).forEach(function(i) {
|
|
2622
2622
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
return e;
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Un(e, n, t) {
|
|
2628
2628
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
2629
2629
|
}
|
|
2630
2630
|
function He(e, n) {
|
|
2631
|
-
return Jo(e) || Qo(e, n) ||
|
|
2631
|
+
return Jo(e) || Qo(e, n) || Kn(e, n) || Xo();
|
|
2632
2632
|
}
|
|
2633
2633
|
function Xo() {
|
|
2634
2634
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2635
2635
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function Kn(e, n) {
|
|
2638
2638
|
if (e) {
|
|
2639
2639
|
if (typeof e == "string") return $t(e, n);
|
|
2640
2640
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -2670,18 +2670,18 @@ function Qo(e, n) {
|
|
|
2670
2670
|
function Jo(e) {
|
|
2671
2671
|
if (Array.isArray(e)) return e;
|
|
2672
2672
|
}
|
|
2673
|
-
var Zo = typeof
|
|
2673
|
+
var Zo = typeof bt == "function" ? bt : bt.default, ea = "file-invalid-type", ta = "file-too-large", na = "file-too-small", ia = "too-many-files", oa = function() {
|
|
2674
2674
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = n.split(","), i = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
2675
2675
|
return {
|
|
2676
2676
|
code: ea,
|
|
2677
2677
|
message: "File type must be ".concat(i)
|
|
2678
2678
|
};
|
|
2679
|
-
},
|
|
2679
|
+
}, bn = function(n) {
|
|
2680
2680
|
return {
|
|
2681
2681
|
code: ta,
|
|
2682
2682
|
message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2683
2683
|
};
|
|
2684
|
-
},
|
|
2684
|
+
}, Sn = function(n) {
|
|
2685
2685
|
return {
|
|
2686
2686
|
code: na,
|
|
2687
2687
|
message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
@@ -2690,18 +2690,18 @@ var Zo = typeof St == "function" ? St : St.default, ea = "file-invalid-type", ta
|
|
|
2690
2690
|
code: ia,
|
|
2691
2691
|
message: "Too many files"
|
|
2692
2692
|
};
|
|
2693
|
-
function
|
|
2693
|
+
function Wn(e, n) {
|
|
2694
2694
|
var t = e.type === "application/x-moz-file" || Zo(e, n);
|
|
2695
2695
|
return [t, t ? null : oa(n)];
|
|
2696
2696
|
}
|
|
2697
|
-
function
|
|
2697
|
+
function Yn(e, n, t) {
|
|
2698
2698
|
if (Pe(e.size))
|
|
2699
2699
|
if (Pe(n) && Pe(t)) {
|
|
2700
|
-
if (e.size > t) return [!1,
|
|
2701
|
-
if (e.size < n) return [!1,
|
|
2700
|
+
if (e.size > t) return [!1, bn(t)];
|
|
2701
|
+
if (e.size < n) return [!1, Sn(n)];
|
|
2702
2702
|
} else {
|
|
2703
|
-
if (Pe(n) && e.size < n) return [!1,
|
|
2704
|
-
if (Pe(t) && e.size > t) return [!1,
|
|
2703
|
+
if (Pe(n) && e.size < n) return [!1, Sn(n)];
|
|
2704
|
+
if (Pe(t) && e.size > t) return [!1, bn(t)];
|
|
2705
2705
|
}
|
|
2706
2706
|
return [!0, null];
|
|
2707
2707
|
}
|
|
@@ -2711,7 +2711,7 @@ function Pe(e) {
|
|
|
2711
2711
|
function ra(e) {
|
|
2712
2712
|
var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, r = e.maxFiles, l = e.validator;
|
|
2713
2713
|
return !a && n.length > 1 || a && r >= 1 && n.length > r ? !1 : n.every(function(s) {
|
|
2714
|
-
var c =
|
|
2714
|
+
var c = Wn(s, t), d = He(c, 1), f = d[0], g = Yn(s, i, o), u = He(g, 1), m = u[0], v = l ? l(s) : null;
|
|
2715
2715
|
return f && m && !v;
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
@@ -2754,10 +2754,10 @@ function ua(e) {
|
|
|
2754
2754
|
if (Pe(e)) {
|
|
2755
2755
|
var n = Object.entries(e).filter(function(t) {
|
|
2756
2756
|
var i = He(t, 2), o = i[0], a = i[1], r = !0;
|
|
2757
|
-
return
|
|
2757
|
+
return Xn(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(a) || !a.every(Qn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2758
2758
|
}).reduce(function(t, i) {
|
|
2759
2759
|
var o = He(i, 2), a = o[0], r = o[1];
|
|
2760
|
-
return yn(yn({}, t), {},
|
|
2760
|
+
return yn(yn({}, t), {}, Un({}, a, r));
|
|
2761
2761
|
}, {});
|
|
2762
2762
|
return [{
|
|
2763
2763
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2773,7 +2773,7 @@ function da(e) {
|
|
|
2773
2773
|
var i = He(t, 2), o = i[0], a = i[1];
|
|
2774
2774
|
return [].concat(hn(n), [o], hn(a));
|
|
2775
2775
|
}, []).filter(function(n) {
|
|
2776
|
-
return
|
|
2776
|
+
return Xn(n) || Qn(n);
|
|
2777
2777
|
}).join(",");
|
|
2778
2778
|
}
|
|
2779
2779
|
function ga(e) {
|
|
@@ -2782,34 +2782,34 @@ function ga(e) {
|
|
|
2782
2782
|
function fa(e) {
|
|
2783
2783
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Xn(e) {
|
|
2786
2786
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function Qn(e) {
|
|
2789
2789
|
return /^.*\.[\w]+$/.test(e);
|
|
2790
2790
|
}
|
|
2791
2791
|
var ma = ["children"], va = ["open"], xa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ha = ["refKey", "onChange", "onClick"];
|
|
2792
2792
|
function wa(e) {
|
|
2793
|
-
return
|
|
2793
|
+
return Sa(e) || ba(e) || Jn(e) || ya();
|
|
2794
2794
|
}
|
|
2795
2795
|
function ya() {
|
|
2796
2796
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2797
2797
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function ba(e) {
|
|
2800
2800
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function Sa(e) {
|
|
2803
2803
|
if (Array.isArray(e)) return At(e);
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2806
|
-
return Ra(e) || _a(e, n) ||
|
|
2805
|
+
function St(e, n) {
|
|
2806
|
+
return Ra(e) || _a(e, n) || Jn(e, n) || Ca();
|
|
2807
2807
|
}
|
|
2808
2808
|
function Ca() {
|
|
2809
2809
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2810
2810
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function Jn(e, n) {
|
|
2813
2813
|
if (e) {
|
|
2814
2814
|
if (typeof e == "string") return At(e, n);
|
|
2815
2815
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -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) {
|
|
@@ -2886,18 +2886,18 @@ function Ea(e, n) {
|
|
|
2886
2886
|
o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
2887
2887
|
return t;
|
|
2888
2888
|
}
|
|
2889
|
-
var Wt = /* @__PURE__ */
|
|
2890
|
-
var t = e.children, i = it(e, ma), o =
|
|
2891
|
-
return
|
|
2889
|
+
var Wt = /* @__PURE__ */ Ci(function(e, n) {
|
|
2890
|
+
var t = e.children, i = it(e, ma), o = ei(i), a = o.open, r = it(o, va);
|
|
2891
|
+
return _i(n, function() {
|
|
2892
2892
|
return {
|
|
2893
2893
|
open: a
|
|
2894
2894
|
};
|
|
2895
|
-
}, [a]), /* @__PURE__ */
|
|
2895
|
+
}, [a]), /* @__PURE__ */ bi.createElement($n, null, t(J(J({}, r), {}, {
|
|
2896
2896
|
open: a
|
|
2897
2897
|
})));
|
|
2898
2898
|
});
|
|
2899
2899
|
Wt.displayName = "Dropzone";
|
|
2900
|
-
var
|
|
2900
|
+
var Zn = {
|
|
2901
2901
|
disabled: !1,
|
|
2902
2902
|
getFilesFromEvent: jo,
|
|
2903
2903
|
maxSize: 1 / 0,
|
|
@@ -2913,7 +2913,7 @@ var Jn = {
|
|
|
2913
2913
|
useFsAccessApi: !1,
|
|
2914
2914
|
autoFocus: !1
|
|
2915
2915
|
};
|
|
2916
|
-
Wt.defaultProps =
|
|
2916
|
+
Wt.defaultProps = Zn;
|
|
2917
2917
|
Wt.propTypes = {
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -3091,22 +3091,22 @@ var Ot = {
|
|
|
3091
3091
|
acceptedFiles: [],
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
|
-
function
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n =
|
|
3094
|
+
function ei() {
|
|
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
3097
|
}, [t]), ue = le(function() {
|
|
3098
3098
|
return ua(t);
|
|
3099
3099
|
}, [t]), ge = le(function() {
|
|
3100
|
-
return typeof
|
|
3101
|
-
}, [
|
|
3100
|
+
return typeof R == "function" ? R : Rn;
|
|
3101
|
+
}, [R]), I = le(function() {
|
|
3102
3102
|
return typeof v == "function" ? v : Rn;
|
|
3103
|
-
}, [v]),
|
|
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
|
|
3107
|
-
|
|
3105
|
+
if (H.current) {
|
|
3106
|
+
var O = H.current.files;
|
|
3107
|
+
O.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
|
-
}),
|
|
3109
|
+
}), I());
|
|
3110
3110
|
}
|
|
3111
3111
|
}, 300);
|
|
3112
3112
|
};
|
|
@@ -3114,164 +3114,164 @@ function Zn() {
|
|
|
3114
3114
|
return window.addEventListener("focus", F, !1), function() {
|
|
3115
3115
|
window.removeEventListener("focus", F, !1);
|
|
3116
3116
|
};
|
|
3117
|
-
}, [
|
|
3118
|
-
var E =
|
|
3119
|
-
|
|
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
|
-
}, [
|
|
3126
|
-
return !i &&
|
|
3125
|
+
}, [S, _]), Ee(function() {
|
|
3126
|
+
return !i && j && S.current && S.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
}, [
|
|
3132
|
-
C.preventDefault(), C.persist(), Ge(C), E.current = [].concat(wa(E.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(
|
|
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
3133
|
if (!(nt(C) && !L)) {
|
|
3134
|
-
var ne =
|
|
3135
|
-
files:
|
|
3136
|
-
accept:
|
|
3134
|
+
var ne = O.length, ae = ne > 0 && ra({
|
|
3135
|
+
files: O,
|
|
3136
|
+
accept: ce,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
3139
3139
|
multiple: l,
|
|
3140
3140
|
maxFiles: s,
|
|
3141
|
-
validator:
|
|
3142
|
-
}), me = ne > 0 && !
|
|
3143
|
-
|
|
3144
|
-
isDragAccept:
|
|
3141
|
+
validator: Z
|
|
3142
|
+
}), me = ne > 0 && !ae;
|
|
3143
|
+
te({
|
|
3144
|
+
isDragAccept: ae,
|
|
3145
3145
|
isDragReject: me,
|
|
3146
3146
|
isDragActive: !0,
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
3148
|
}), c && c(C);
|
|
3149
3149
|
}
|
|
3150
|
-
}).catch(function(
|
|
3151
|
-
return O
|
|
3150
|
+
}).catch(function(O) {
|
|
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
|
-
var
|
|
3156
|
-
if (
|
|
3155
|
+
var O = Ye(C);
|
|
3156
|
+
if (O && C.dataTransfer)
|
|
3157
3157
|
try {
|
|
3158
3158
|
C.dataTransfer.dropEffect = "copy";
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
|
-
return
|
|
3162
|
-
}, [f, L]),
|
|
3161
|
+
return O && f && f(C), !1;
|
|
3162
|
+
}, [f, L]), G = Q(function(C) {
|
|
3163
3163
|
C.preventDefault(), C.persist(), Ge(C);
|
|
3164
|
-
var
|
|
3165
|
-
return
|
|
3166
|
-
}), ne =
|
|
3167
|
-
ne !== -1 &&
|
|
3164
|
+
var O = E.current.filter(function(ae) {
|
|
3165
|
+
return S.current && S.current.contains(ae);
|
|
3166
|
+
}), ne = O.indexOf(C.target);
|
|
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
|
-
}, [
|
|
3174
|
-
var ne = [],
|
|
3173
|
+
}, [S, d, L]), N = Q(function(C, O) {
|
|
3174
|
+
var ne = [], ae = [];
|
|
3175
3175
|
C.forEach(function(me) {
|
|
3176
|
-
var ze =
|
|
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
3178
|
ne.push(me);
|
|
3179
3179
|
else {
|
|
3180
3180
|
var gt = [st, ut];
|
|
3181
|
-
dt && (gt = gt.concat(dt)),
|
|
3181
|
+
dt && (gt = gt.concat(dt)), ae.push({
|
|
3182
3182
|
file: me,
|
|
3183
|
-
errors: gt.filter(function(
|
|
3184
|
-
return
|
|
3183
|
+
errors: gt.filter(function(yi) {
|
|
3184
|
+
return yi;
|
|
3185
3185
|
})
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
3188
|
}), (!l && ne.length > 1 || l && s >= 1 && ne.length > s) && (ne.forEach(function(me) {
|
|
3189
|
-
|
|
3189
|
+
ae.push({
|
|
3190
3190
|
file: me,
|
|
3191
3191
|
errors: [aa]
|
|
3192
3192
|
});
|
|
3193
|
-
}), ne.splice(0)),
|
|
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
|
-
}, [
|
|
3200
|
-
C.preventDefault(), C.persist(), Ge(C), E.current = [], Ye(C) && Promise.resolve(o(C)).then(function(
|
|
3201
|
-
nt(C) && !L ||
|
|
3202
|
-
}).catch(function(
|
|
3203
|
-
return O
|
|
3204
|
-
}),
|
|
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
|
+
}).catch(function(O) {
|
|
3203
|
+
return P(O);
|
|
3204
|
+
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
3207
|
-
}, [o,
|
|
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
3214
|
types: ue
|
|
3215
3215
|
};
|
|
3216
|
-
window.showOpenFilePicker(C).then(function(
|
|
3217
|
-
return o(
|
|
3218
|
-
}).then(function(
|
|
3219
|
-
|
|
3216
|
+
window.showOpenFilePicker(C).then(function(O) {
|
|
3217
|
+
return o(O);
|
|
3218
|
+
}).then(function(O) {
|
|
3219
|
+
N(O, null), te({
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
|
-
}).catch(function(
|
|
3223
|
-
ga(
|
|
3222
|
+
}).catch(function(O) {
|
|
3223
|
+
ga(O) ? (I(O), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) : fa(
|
|
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
|
-
}), ge(),
|
|
3232
|
-
}, [
|
|
3233
|
-
!
|
|
3234
|
-
}, [
|
|
3235
|
-
|
|
3231
|
+
}), ge(), H.current.value = null, H.current.click());
|
|
3232
|
+
}, [te, ge, I, h, N, P, ue, l]), fe = Q(function(C) {
|
|
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 = Q(function() {
|
|
3235
|
+
te({
|
|
3236
3236
|
type: "focus"
|
|
3237
3237
|
});
|
|
3238
3238
|
}, []), Te = Q(function() {
|
|
3239
|
-
|
|
3239
|
+
te({
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
3242
|
}, []), Jt = Q(function() {
|
|
3243
|
-
|
|
3244
|
-
}, [
|
|
3245
|
-
return i ? null :
|
|
3246
|
-
}, rt = function(
|
|
3247
|
-
return
|
|
3248
|
-
}, qe = function(
|
|
3249
|
-
return
|
|
3250
|
-
}, Ge = function(
|
|
3251
|
-
L &&
|
|
3252
|
-
},
|
|
3243
|
+
M || (ca() ? setTimeout(b, 0) : b());
|
|
3244
|
+
}, [M, b]), $e = function(O) {
|
|
3245
|
+
return i ? null : O;
|
|
3246
|
+
}, rt = function(O) {
|
|
3247
|
+
return x ? null : $e(O);
|
|
3248
|
+
}, qe = function(O) {
|
|
3249
|
+
return V ? null : $e(O);
|
|
3250
|
+
}, Ge = function(O) {
|
|
3251
|
+
L && O.stopPropagation();
|
|
3252
|
+
}, xi = le(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
3255
|
-
return
|
|
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
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,
|
|
3264
|
+
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
3265
|
+
}, ne, S), !i && !x ? {
|
|
3266
3266
|
tabIndex: 0
|
|
3267
3267
|
} : {}), ut);
|
|
3268
3268
|
};
|
|
3269
|
-
}, [
|
|
3269
|
+
}, [S, fe, Fe, Te, Jt, T, z, G, ie, x, V, i]), hi = Q(function(C) {
|
|
3270
3270
|
C.stopPropagation();
|
|
3271
|
-
}, []),
|
|
3271
|
+
}, []), wi = le(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
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 Zn() {
|
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
|
-
onChange: $e(ye(
|
|
3290
|
-
onClick: $e(ye(me,
|
|
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:
|
|
3298
|
-
getRootProps:
|
|
3299
|
-
getInputProps:
|
|
3300
|
-
rootRef:
|
|
3301
|
-
inputRef:
|
|
3302
|
-
open: $e(
|
|
3295
|
+
}, [H, t, l, ie, i]);
|
|
3296
|
+
return J(J({}, oe), {}, {
|
|
3297
|
+
isFocused: w && !i,
|
|
3298
|
+
getRootProps: xi,
|
|
3299
|
+
getInputProps: wi,
|
|
3300
|
+
rootRef: S,
|
|
3301
|
+
inputRef: H,
|
|
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
|
}
|
|
@@ -3396,7 +3396,7 @@ const Fa = () => {
|
|
|
3396
3396
|
removeFile: c,
|
|
3397
3397
|
removeRejectedFile: d
|
|
3398
3398
|
}) => {
|
|
3399
|
-
const { getRootProps: f } =
|
|
3399
|
+
const { getRootProps: f } = ei({
|
|
3400
3400
|
accept: e,
|
|
3401
3401
|
maxFiles: a,
|
|
3402
3402
|
maxSize: r,
|
|
@@ -3431,7 +3431,7 @@ const Fa = () => {
|
|
|
3431
3431
|
/* @__PURE__ */ U("div", { className: "file-upload__file is-rejected", children: [
|
|
3432
3432
|
u.file.name,
|
|
3433
3433
|
/* @__PURE__ */ p(
|
|
3434
|
-
|
|
3434
|
+
Se,
|
|
3435
3435
|
{
|
|
3436
3436
|
appearance: "base",
|
|
3437
3437
|
className: "file-upload__file-remove-button",
|
|
@@ -3453,7 +3453,7 @@ const Fa = () => {
|
|
|
3453
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,
|
|
3457
3457
|
{
|
|
3458
3458
|
appearance: "base",
|
|
3459
3459
|
className: "file-upload__file-remove-button",
|
|
@@ -3499,7 +3499,7 @@ const Fa = () => {
|
|
|
3499
3499
|
removeRejectedFile: d
|
|
3500
3500
|
}
|
|
3501
3501
|
);
|
|
3502
|
-
},
|
|
3502
|
+
}, ti = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Ia = (e) => (n, t) => {
|
|
3503
3503
|
if (e) {
|
|
3504
3504
|
const i = e.has(n.value), o = e.has(t.value);
|
|
3505
3505
|
if (i && !o) return -1;
|
|
@@ -3520,46 +3520,46 @@ const Fa = () => {
|
|
|
3520
3520
|
updateItems: o,
|
|
3521
3521
|
isOpen: a,
|
|
3522
3522
|
footer: r,
|
|
3523
|
-
sortFn: l =
|
|
3523
|
+
sortFn: l = ti,
|
|
3524
3524
|
groupFn: s = Da,
|
|
3525
3525
|
...c
|
|
3526
3526
|
}) => {
|
|
3527
3527
|
const d = le(
|
|
3528
|
-
() => new Set(n.map((
|
|
3528
|
+
() => new Set(n.map((h) => h.value)),
|
|
3529
3529
|
[n]
|
|
3530
3530
|
), f = le(
|
|
3531
|
-
() => new Set(t.map((
|
|
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 = le(() => e.some((
|
|
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
|
-
),
|
|
3541
|
-
const { checked:
|
|
3542
|
-
if (
|
|
3543
|
-
const
|
|
3544
|
-
o(
|
|
3540
|
+
), R = (h) => {
|
|
3541
|
+
const { checked: j, value: _ } = h.target, M = e.find((x) => `${x.value}` === _);
|
|
3542
|
+
if (M) {
|
|
3543
|
+
const x = j ? [...n, M] : n.filter((V) => `${V.value}` !== _) ?? [];
|
|
3544
|
+
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */ p(
|
|
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:
|
|
3558
|
-
onChange:
|
|
3554
|
+
disabled: f.has(_.value),
|
|
3555
|
+
label: _.label,
|
|
3556
|
+
checked: d.has(_.value),
|
|
3557
|
+
value: _.value,
|
|
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,20 +3585,20 @@ const Fa = () => {
|
|
|
3585
3585
|
Ee(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
3588
|
-
const [
|
|
3589
|
-
const
|
|
3590
|
-
|
|
3591
|
-
},
|
|
3592
|
-
(L) => r.some((
|
|
3593
|
-
).sort(
|
|
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
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
|
-
"aria-controls":
|
|
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,
|
|
@@ -3619,55 +3619,55 @@ const Fa = () => {
|
|
|
3619
3619
|
role: "combobox",
|
|
3620
3620
|
type: "button",
|
|
3621
3621
|
"aria-label": t || o || "Select items",
|
|
3622
|
-
"aria-controls":
|
|
3622
|
+
"aria-controls": M,
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
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(
|
|
3632
3632
|
$a,
|
|
3633
3633
|
{
|
|
3634
|
-
id:
|
|
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:
|
|
3642
|
+
updateItems: _,
|
|
3643
3643
|
footer: c || /* @__PURE__ */ U(we, { children: [
|
|
3644
3644
|
/* @__PURE__ */ p(
|
|
3645
|
-
|
|
3645
|
+
Se,
|
|
3646
3646
|
{
|
|
3647
3647
|
appearance: "link",
|
|
3648
3648
|
onClick: () => {
|
|
3649
3649
|
const L = r.filter(
|
|
3650
|
-
(
|
|
3651
|
-
(
|
|
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"
|
|
3658
3658
|
}
|
|
3659
3659
|
),
|
|
3660
3660
|
/* @__PURE__ */ p(
|
|
3661
|
-
|
|
3661
|
+
Se,
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const L =
|
|
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"
|
|
@@ -3680,12 +3680,12 @@ const Fa = () => {
|
|
|
3680
3680
|
}, Aa = {
|
|
3681
3681
|
// Mobile or tablet
|
|
3682
3682
|
small: 620
|
|
3683
|
-
},
|
|
3683
|
+
}, ni = In({ variant: "regular" }), ii = ({
|
|
3684
3684
|
className: e,
|
|
3685
3685
|
children: n,
|
|
3686
3686
|
variant: t,
|
|
3687
3687
|
...i
|
|
3688
|
-
}) => /* @__PURE__ */ p(
|
|
3688
|
+
}) => /* @__PURE__ */ p(ni.Provider, { value: { variant: t }, children: /* @__PURE__ */ p(
|
|
3689
3689
|
"table",
|
|
3690
3690
|
{
|
|
3691
3691
|
...i,
|
|
@@ -3708,15 +3708,15 @@ const Fa = () => {
|
|
|
3708
3708
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3709
3709
|
return /* @__PURE__ */ U(we, { children: [
|
|
3710
3710
|
/* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3711
|
-
/* @__PURE__ */ p(
|
|
3711
|
+
/* @__PURE__ */ p(oi, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ma, { columns: t }) })
|
|
3712
3712
|
] });
|
|
3713
|
-
},
|
|
3713
|
+
}, oi = ({
|
|
3714
3714
|
className: e,
|
|
3715
3715
|
children: n,
|
|
3716
3716
|
style: t,
|
|
3717
3717
|
...i
|
|
3718
3718
|
}) => {
|
|
3719
|
-
const { variant: o } = Ht(
|
|
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;
|
|
@@ -3743,11 +3743,11 @@ const Fa = () => {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
);
|
|
3745
3745
|
};
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
const
|
|
3749
|
-
|
|
3750
|
-
|
|
3746
|
+
ii.Body = oi;
|
|
3747
|
+
ii.Loading = Oa;
|
|
3748
|
+
const ai = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), ja = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "col-start-large-4 u-align--left col-8 col-medium-4", children: /* @__PURE__ */ p("p", { className: "p-heading--4 u-no-margin--bottom", children: e }) }) }), Ta = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ p("p", { children: e }) }) });
|
|
3749
|
+
ai.Title = ja;
|
|
3750
|
+
ai.Description = Ta;
|
|
3751
3751
|
/**
|
|
3752
3752
|
* table-core
|
|
3753
3753
|
*
|
|
@@ -3775,7 +3775,7 @@ function at(e) {
|
|
|
3775
3775
|
function za(e) {
|
|
3776
3776
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function ri(e, n) {
|
|
3779
3779
|
const t = [], i = (o) => {
|
|
3780
3780
|
o.forEach((a) => {
|
|
3781
3781
|
t.push(a);
|
|
@@ -3785,7 +3785,7 @@ function ai(e, n) {
|
|
|
3785
3785
|
};
|
|
3786
3786
|
return i(e), t;
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3788
|
+
function $(e, n, t) {
|
|
3789
3789
|
let i = [], o;
|
|
3790
3790
|
return (a) => {
|
|
3791
3791
|
let r;
|
|
@@ -3809,7 +3809,7 @@ function D(e, n, t) {
|
|
|
3809
3809
|
return o;
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
function
|
|
3812
|
+
function A(e, n, t, i) {
|
|
3813
3813
|
return {
|
|
3814
3814
|
debug: () => {
|
|
3815
3815
|
var o;
|
|
@@ -3829,14 +3829,14 @@ function Va(e, n, t, i) {
|
|
|
3829
3829
|
column: t,
|
|
3830
3830
|
getValue: () => n.getValue(i),
|
|
3831
3831
|
renderValue: o,
|
|
3832
|
-
getContext:
|
|
3832
|
+
getContext: $(() => [e, t, n, a], (r, l, s, c) => ({
|
|
3833
3833
|
table: r,
|
|
3834
3834
|
column: l,
|
|
3835
3835
|
row: s,
|
|
3836
3836
|
cell: c,
|
|
3837
3837
|
getValue: c.getValue,
|
|
3838
3838
|
renderValue: c.renderValue
|
|
3839
|
-
}),
|
|
3839
|
+
}), A(e.options, "debugCells", "cell.getContext"))
|
|
3840
3840
|
};
|
|
3841
3841
|
return e._features.forEach((r) => {
|
|
3842
3842
|
r.createCell == null || r.createCell(a, t, n, e);
|
|
@@ -3865,24 +3865,24 @@ function Na(e, n, t, i) {
|
|
|
3865
3865
|
depth: t,
|
|
3866
3866
|
columnDef: l,
|
|
3867
3867
|
columns: [],
|
|
3868
|
-
getFlatColumns:
|
|
3868
|
+
getFlatColumns: $(() => [!0], () => {
|
|
3869
3869
|
var g;
|
|
3870
3870
|
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((u) => u.getFlatColumns())];
|
|
3871
|
-
},
|
|
3872
|
-
getLeafColumns:
|
|
3871
|
+
}, A(e.options, "debugColumns", "column.getFlatColumns")),
|
|
3872
|
+
getLeafColumns: $(() => [e._getOrderColumnsFn()], (g) => {
|
|
3873
3873
|
var u;
|
|
3874
3874
|
if ((u = f.columns) != null && u.length) {
|
|
3875
3875
|
let m = f.columns.flatMap((v) => v.getLeafColumns());
|
|
3876
3876
|
return g(m);
|
|
3877
3877
|
}
|
|
3878
3878
|
return [f];
|
|
3879
|
-
},
|
|
3879
|
+
}, A(e.options, "debugColumns", "column.getLeafColumns"))
|
|
3880
3880
|
};
|
|
3881
3881
|
for (const g of e._features)
|
|
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 = {
|
|
@@ -3914,31 +3914,31 @@ function En(e, n, t) {
|
|
|
3914
3914
|
}
|
|
3915
3915
|
const La = {
|
|
3916
3916
|
createTable: (e) => {
|
|
3917
|
-
e.getHeaderGroups =
|
|
3917
|
+
e.getHeaderGroups = $(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
3941
|
+
}, A(e.options, se, "getLeafHeaders"));
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
3944
|
function Xe(e, n, t, i) {
|
|
@@ -3958,22 +3958,22 @@ function Xe(e, n, t, i) {
|
|
|
3958
3958
|
id: [i, `${u}`].filter(Boolean).join("_"),
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
|
-
g.forEach((
|
|
3962
|
-
const
|
|
3963
|
-
let
|
|
3964
|
-
if (
|
|
3965
|
-
|
|
3961
|
+
g.forEach((R) => {
|
|
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,
|
|
3969
|
-
isPlaceholder:
|
|
3970
|
-
placeholderId:
|
|
3967
|
+
const x = En(t, _, {
|
|
3968
|
+
id: [i, u, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
|
|
3969
|
+
isPlaceholder: M,
|
|
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
|
-
m.headers.push(
|
|
3976
|
+
m.headers.push(R), R.headerGroup = m;
|
|
3977
3977
|
}), s.push(m), u > 0 && c(v, u - 1);
|
|
3978
3978
|
}, d = n.map((g, u) => En(t, g, {
|
|
3979
3979
|
depth: r,
|
|
@@ -3981,23 +3981,23 @@ 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,
|
|
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
|
-
colSpan:
|
|
3988
|
-
rowSpan:
|
|
3989
|
-
} =
|
|
3990
|
-
v +=
|
|
3987
|
+
colSpan: M,
|
|
3988
|
+
rowSpan: x
|
|
3989
|
+
} = _;
|
|
3990
|
+
v += M, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return
|
|
3992
|
+
const j = Math.min(...h);
|
|
3993
|
+
return R = R + j, m.colSpan = v, m.rowSpan = R, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
|
-
rowSpan:
|
|
3995
|
+
rowSpan: R
|
|
3996
3996
|
};
|
|
3997
3997
|
});
|
|
3998
3998
|
return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
|
|
3999
3999
|
}
|
|
4000
|
-
const
|
|
4000
|
+
const li = (e, n, t, i, o, a, r) => {
|
|
4001
4001
|
let l = {
|
|
4002
4002
|
id: n,
|
|
4003
4003
|
index: i,
|
|
@@ -4025,7 +4025,7 @@ const ri = (e, n, t, i, o, a, r) => {
|
|
|
4025
4025
|
return (c = l.getValue(s)) != null ? c : e.options.renderFallbackValue;
|
|
4026
4026
|
},
|
|
4027
4027
|
subRows: a ?? [],
|
|
4028
|
-
getLeafRows: () =>
|
|
4028
|
+
getLeafRows: () => ri(l.subRows, (s) => s.subRows),
|
|
4029
4029
|
getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
|
|
4030
4030
|
getParentRows: () => {
|
|
4031
4031
|
let s = [], c = l;
|
|
@@ -4036,8 +4036,8 @@ const ri = (e, n, t, i, o, a, r) => {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
return s.reverse();
|
|
4038
4038
|
},
|
|
4039
|
-
getAllCells:
|
|
4040
|
-
_getAllCellsByColumnId:
|
|
4039
|
+
getAllCells: $(() => [e.getAllLeafColumns()], (s) => s.map((c) => Va(e, l, c, c.id)), A(e.options, "debugRows", "getAllCells")),
|
|
4040
|
+
_getAllCellsByColumnId: $(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4041
4041
|
};
|
|
4042
4042
|
for (let s = 0; s < e._features.length; s++) {
|
|
4043
4043
|
const c = e._features[s];
|
|
@@ -4051,41 +4051,41 @@ const ri = (e, n, t, i, o, a, r) => {
|
|
|
4051
4051
|
return e._getFacetedMinMaxValues();
|
|
4052
4052
|
};
|
|
4053
4053
|
}
|
|
4054
|
-
},
|
|
4054
|
+
}, si = (e, n, t) => {
|
|
4055
4055
|
var i, o;
|
|
4056
4056
|
const a = t == null || (i = t.toString()) == null ? void 0 : i.toLowerCase();
|
|
4057
4057
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
4058
4058
|
};
|
|
4059
|
-
li.autoRemove = (e) => he(e);
|
|
4060
|
-
const si = (e, n, t) => {
|
|
4061
|
-
var i;
|
|
4062
|
-
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
|
|
4063
|
-
};
|
|
4064
4059
|
si.autoRemove = (e) => he(e);
|
|
4065
4060
|
const ci = (e, n, t) => {
|
|
4066
4061
|
var i;
|
|
4067
|
-
return ((i = e.getValue(n)) == null || (i = i.toString()) == null
|
|
4062
|
+
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
|
|
4068
4063
|
};
|
|
4069
4064
|
ci.autoRemove = (e) => he(e);
|
|
4070
4065
|
const pi = (e, n, t) => {
|
|
4071
4066
|
var i;
|
|
4072
|
-
return (i = e.getValue(n)) == null ? void 0 : i.
|
|
4067
|
+
return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
4073
4068
|
};
|
|
4074
4069
|
pi.autoRemove = (e) => he(e);
|
|
4075
|
-
const ui = (e, n, t) =>
|
|
4070
|
+
const ui = (e, n, t) => {
|
|
4071
|
+
var i;
|
|
4072
|
+
return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
|
|
4073
|
+
};
|
|
4074
|
+
ui.autoRemove = (e) => he(e);
|
|
4075
|
+
const di = (e, n, t) => !t.some((i) => {
|
|
4076
4076
|
var o;
|
|
4077
4077
|
return !((o = e.getValue(n)) != null && o.includes(i));
|
|
4078
4078
|
});
|
|
4079
|
-
|
|
4080
|
-
const
|
|
4079
|
+
di.autoRemove = (e) => he(e) || !(e != null && e.length);
|
|
4080
|
+
const gi = (e, n, t) => t.some((i) => {
|
|
4081
4081
|
var o;
|
|
4082
4082
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(i);
|
|
4083
4083
|
});
|
|
4084
|
-
|
|
4085
|
-
const
|
|
4086
|
-
gi.autoRemove = (e) => he(e);
|
|
4087
|
-
const fi = (e, n, t) => e.getValue(n) == t;
|
|
4084
|
+
gi.autoRemove = (e) => he(e) || !(e != null && e.length);
|
|
4085
|
+
const fi = (e, n, t) => e.getValue(n) === t;
|
|
4088
4086
|
fi.autoRemove = (e) => he(e);
|
|
4087
|
+
const mi = (e, n, t) => e.getValue(n) == t;
|
|
4088
|
+
mi.autoRemove = (e) => he(e);
|
|
4089
4089
|
const Yt = (e, n, t) => {
|
|
4090
4090
|
let [i, o] = t;
|
|
4091
4091
|
const a = e.getValue(n);
|
|
@@ -4101,14 +4101,14 @@ Yt.resolveFilterValue = (e) => {
|
|
|
4101
4101
|
};
|
|
4102
4102
|
Yt.autoRemove = (e) => he(e) || he(e[0]) && he(e[1]);
|
|
4103
4103
|
const _e = {
|
|
4104
|
-
includesString:
|
|
4105
|
-
includesStringSensitive:
|
|
4106
|
-
equalsString:
|
|
4107
|
-
arrIncludes:
|
|
4108
|
-
arrIncludesAll:
|
|
4109
|
-
arrIncludesSome:
|
|
4110
|
-
equals:
|
|
4111
|
-
weakEquals:
|
|
4104
|
+
includesString: si,
|
|
4105
|
+
includesStringSensitive: ci,
|
|
4106
|
+
equalsString: pi,
|
|
4107
|
+
arrIncludes: ui,
|
|
4108
|
+
arrIncludesAll: di,
|
|
4109
|
+
arrIncludesSome: gi,
|
|
4110
|
+
equals: fi,
|
|
4111
|
+
weakEquals: mi,
|
|
4112
4112
|
inNumberRange: Yt
|
|
4113
4113
|
};
|
|
4114
4114
|
function he(e) {
|
|
@@ -4321,7 +4321,7 @@ const tr = {
|
|
|
4321
4321
|
onColumnOrderChange: ve("columnOrder", e)
|
|
4322
4322
|
}),
|
|
4323
4323
|
createColumn: (e, n) => {
|
|
4324
|
-
e.getIndex =
|
|
4324
|
+
e.getIndex = $((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
4325
4325
|
var i;
|
|
4326
4326
|
return ((i = Ne(n, t)[0]) == null ? void 0 : i.id) === e.id;
|
|
4327
4327
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -4334,7 +4334,7 @@ const tr = {
|
|
|
4334
4334
|
e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
|
|
4335
4335
|
var t;
|
|
4336
4336
|
e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
4337
|
-
}, e._getOrderColumnsFn =
|
|
4337
|
+
}, e._getOrderColumnsFn = $(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
|
|
4338
4338
|
let a = [];
|
|
4339
4339
|
if (!(n != null && n.length))
|
|
4340
4340
|
a = o;
|
|
@@ -4347,7 +4347,7 @@ const tr = {
|
|
|
4347
4347
|
a = [...a, ...l];
|
|
4348
4348
|
}
|
|
4349
4349
|
return er(a, t, i);
|
|
4350
|
-
},
|
|
4350
|
+
}, A(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4351
4351
|
}
|
|
4352
4352
|
}, _t = () => ({
|
|
4353
4353
|
left: [],
|
|
@@ -4400,16 +4400,16 @@ const tr = {
|
|
|
4400
4400
|
};
|
|
4401
4401
|
},
|
|
4402
4402
|
createRow: (e, n) => {
|
|
4403
|
-
e.getCenterVisibleCells =
|
|
4403
|
+
e.getCenterVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
|
|
4404
4404
|
const a = [...i ?? [], ...o ?? []];
|
|
4405
4405
|
return t.filter((r) => !a.includes(r.column.id));
|
|
4406
|
-
},
|
|
4406
|
+
}, A(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
|
|
4407
4407
|
...a,
|
|
4408
4408
|
position: "left"
|
|
4409
|
-
})),
|
|
4409
|
+
})), A(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = $(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
|
|
4410
4410
|
...a,
|
|
4411
4411
|
position: "right"
|
|
4412
|
-
})),
|
|
4412
|
+
})), A(n.options, "debugRows", "getRightVisibleCells"));
|
|
4413
4413
|
},
|
|
4414
4414
|
createTable: (e) => {
|
|
4415
4415
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -4423,10 +4423,10 @@ const tr = {
|
|
|
4423
4423
|
return !!((o = i.left) != null && o.length || (a = i.right) != null && a.length);
|
|
4424
4424
|
}
|
|
4425
4425
|
return !!((t = i[n]) != null && t.length);
|
|
4426
|
-
}, e.getLeftLeafColumns =
|
|
4426
|
+
}, e.getLeftLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), A(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), A(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = $(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
|
|
4427
4427
|
const o = [...t ?? [], ...i ?? []];
|
|
4428
4428
|
return n.filter((a) => !o.includes(a.id));
|
|
4429
|
-
},
|
|
4429
|
+
}, A(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4430
4430
|
}
|
|
4431
4431
|
}, Qe = {
|
|
4432
4432
|
size: 150,
|
|
@@ -4457,7 +4457,7 @@ const tr = {
|
|
|
4457
4457
|
var t, i, o;
|
|
4458
4458
|
const a = n.getState().columnSizing[e.id];
|
|
4459
4459
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Qe.minSize, (i = a ?? e.columnDef.size) != null ? i : Qe.size), (o = e.columnDef.maxSize) != null ? o : Qe.maxSize);
|
|
4460
|
-
}, e.getStart =
|
|
4460
|
+
}, e.getStart = $((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), A(n.options, "debugColumns", "getStart")), e.getAfter = $((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), A(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4461
4461
|
n.setColumnSizing((t) => {
|
|
4462
4462
|
let {
|
|
4463
4463
|
[e.id]: i,
|
|
@@ -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
|
|
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
|
-
...
|
|
4504
|
+
..._,
|
|
4505
4505
|
deltaOffset: L,
|
|
4506
|
-
deltaPercentage:
|
|
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,
|
|
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,
|
|
@@ -4613,10 +4613,10 @@ const ar = {
|
|
|
4613
4613
|
};
|
|
4614
4614
|
},
|
|
4615
4615
|
createRow: (e, n) => {
|
|
4616
|
-
e._getAllVisibleCells =
|
|
4616
|
+
e._getAllVisibleCells = $(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), A(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = $(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], A(n.options, "debugRows", "getVisibleCells"));
|
|
4617
4617
|
},
|
|
4618
4618
|
createTable: (e) => {
|
|
4619
|
-
const n = (t, i) =>
|
|
4619
|
+
const n = (t, i) => $(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), A(e.options, "debugColumns", t));
|
|
4620
4620
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
4621
4621
|
var i;
|
|
4622
4622
|
e.setColumnVisibility(t ? {} : (i = e.initialState.columnVisibility) != null ? i : {});
|
|
@@ -4829,10 +4829,10 @@ const rr = {
|
|
|
4829
4829
|
...o,
|
|
4830
4830
|
pageCount: r
|
|
4831
4831
|
};
|
|
4832
|
-
}), e.getPageOptions =
|
|
4832
|
+
}), e.getPageOptions = $(() => [e.getPageCount()], (i) => {
|
|
4833
4833
|
let o = [];
|
|
4834
4834
|
return i && i > 0 && (o = [...new Array(i)].fill(null).map((a, r) => r)), o;
|
|
4835
|
-
},
|
|
4835
|
+
}, A(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
4836
4836
|
const {
|
|
4837
4837
|
pageIndex: i
|
|
4838
4838
|
} = e.getState().pagination, o = e.getPageCount();
|
|
@@ -4944,10 +4944,10 @@ const rr = {
|
|
|
4944
4944
|
...r,
|
|
4945
4945
|
position: i
|
|
4946
4946
|
}));
|
|
4947
|
-
}, e.getTopRows =
|
|
4947
|
+
}, e.getTopRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), A(e.options, "debugRows", "getTopRows")), e.getBottomRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), A(e.options, "debugRows", "getBottomRows")), e.getCenterRows = $(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
|
|
4948
4948
|
const o = /* @__PURE__ */ new Set([...t ?? [], ...i ?? []]);
|
|
4949
4949
|
return n.filter((a) => !o.has(a.id));
|
|
4950
|
-
},
|
|
4950
|
+
}, A(e.options, "debugRows", "getCenterRows"));
|
|
4951
4951
|
}
|
|
4952
4952
|
}, ur = {
|
|
4953
4953
|
getInitialState: (e) => ({
|
|
@@ -4986,19 +4986,19 @@ const rr = {
|
|
|
4986
4986
|
return e.getRowModel().rows.forEach((a) => {
|
|
4987
4987
|
zt(o, a.id, i, !0, e);
|
|
4988
4988
|
}), o;
|
|
4989
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
4989
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = $(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4990
4990
|
rows: [],
|
|
4991
4991
|
flatRows: [],
|
|
4992
4992
|
rowsById: {}
|
|
4993
|
-
},
|
|
4993
|
+
}, A(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = $(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4994
4994
|
rows: [],
|
|
4995
4995
|
flatRows: [],
|
|
4996
4996
|
rowsById: {}
|
|
4997
|
-
},
|
|
4997
|
+
}, A(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = $(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4998
4998
|
rows: [],
|
|
4999
4999
|
flatRows: [],
|
|
5000
5000
|
rowsById: {}
|
|
5001
|
-
},
|
|
5001
|
+
}, A(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
5002
5002
|
const n = e.getFilteredRowModel().flatRows, {
|
|
5003
5003
|
rowSelection: t
|
|
5004
5004
|
} = e.getState();
|
|
@@ -5105,7 +5105,7 @@ function Vt(e, n, t) {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
}), o ? "all" : a ? "some" : !1;
|
|
5107
5107
|
}
|
|
5108
|
-
const Nt = /([0-9]+)/gm, dr = (e, n, t) =>
|
|
5108
|
+
const Nt = /([0-9]+)/gm, dr = (e, n, t) => vi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), gr = (e, n, t) => vi(ke(e.getValue(t)), ke(n.getValue(t))), fr = (e, n, t) => Qt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), mr = (e, n, t) => Qt(ke(e.getValue(t)), ke(n.getValue(t))), vr = (e, n, t) => {
|
|
5109
5109
|
const i = e.getValue(t), o = n.getValue(t);
|
|
5110
5110
|
return i > o ? 1 : i < o ? -1 : 0;
|
|
5111
5111
|
}, xr = (e, n, t) => Qt(e.getValue(t), n.getValue(t));
|
|
@@ -5115,7 +5115,7 @@ function Qt(e, n) {
|
|
|
5115
5115
|
function ke(e) {
|
|
5116
5116
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function vi(e, n) {
|
|
5119
5119
|
const t = e.split(Nt).filter(Boolean), i = n.split(Nt).filter(Boolean);
|
|
5120
5120
|
for (; t.length && i.length; ) {
|
|
5121
5121
|
const o = t.shift(), a = i.shift(), r = parseInt(o, 10), l = parseInt(a, 10), s = [r, l].sort();
|
|
@@ -5314,7 +5314,7 @@ function yr(e) {
|
|
|
5314
5314
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
5315
5315
|
return m;
|
|
5316
5316
|
},
|
|
5317
|
-
_getDefaultColumnDef:
|
|
5317
|
+
_getDefaultColumnDef: $(() => [o.options.defaultColumn], (g) => {
|
|
5318
5318
|
var u;
|
|
5319
5319
|
return g = (u = g) != null ? u : {}, {
|
|
5320
5320
|
header: (m) => {
|
|
@@ -5323,29 +5323,29 @@ function yr(e) {
|
|
|
5323
5323
|
},
|
|
5324
5324
|
// footer: props => props.header.column.id,
|
|
5325
5325
|
cell: (m) => {
|
|
5326
|
-
var v,
|
|
5327
|
-
return (v = (
|
|
5326
|
+
var v, R;
|
|
5327
|
+
return (v = (R = m.renderValue()) == null || R.toString == null ? void 0 : R.toString()) != null ? v : null;
|
|
5328
5328
|
},
|
|
5329
5329
|
...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
|
|
5330
5330
|
...g
|
|
5331
5331
|
};
|
|
5332
|
-
},
|
|
5332
|
+
}, A(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5333
5333
|
_getColumnDefs: () => o.options.columns,
|
|
5334
|
-
getAllColumns:
|
|
5335
|
-
const u = function(m, v,
|
|
5336
|
-
return
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5334
|
+
getAllColumns: $(() => [o._getColumnDefs()], (g) => {
|
|
5335
|
+
const u = function(m, v, R) {
|
|
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);
|
|
5342
|
-
},
|
|
5343
|
-
getAllFlatColumns:
|
|
5344
|
-
_getAllFlatColumnsById:
|
|
5345
|
-
getAllLeafColumns:
|
|
5342
|
+
}, A(e, "debugColumns", "getAllColumns")),
|
|
5343
|
+
getAllFlatColumns: $(() => [o.getAllColumns()], (g) => g.flatMap((u) => u.getFlatColumns()), A(e, "debugColumns", "getAllFlatColumns")),
|
|
5344
|
+
_getAllFlatColumnsById: $(() => [o.getAllFlatColumns()], (g) => g.reduce((u, m) => (u[m.id] = m, u), {}), A(e, "debugColumns", "getAllFlatColumnsById")),
|
|
5345
|
+
getAllLeafColumns: $(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, u) => {
|
|
5346
5346
|
let m = g.flatMap((v) => v.getLeafColumns());
|
|
5347
5347
|
return u(m);
|
|
5348
|
-
},
|
|
5348
|
+
}, A(e, "debugColumns", "getAllLeafColumns")),
|
|
5349
5349
|
getColumn: (g) => {
|
|
5350
5350
|
const u = o._getAllFlatColumnsById()[g];
|
|
5351
5351
|
return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${g}' does not exist.`), u;
|
|
@@ -5358,8 +5358,8 @@ function yr(e) {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
return o;
|
|
5360
5360
|
}
|
|
5361
|
-
function
|
|
5362
|
-
return (e) =>
|
|
5361
|
+
function br() {
|
|
5362
|
+
return (e) => $(() => [e.options.data], (n) => {
|
|
5363
5363
|
const t = {
|
|
5364
5364
|
rows: [],
|
|
5365
5365
|
flatRows: [],
|
|
@@ -5368,7 +5368,7 @@ function Sr() {
|
|
|
5368
5368
|
a === void 0 && (a = 0);
|
|
5369
5369
|
const l = [];
|
|
5370
5370
|
for (let c = 0; c < o.length; c++) {
|
|
5371
|
-
const d =
|
|
5371
|
+
const d = li(e, e._getRowId(o[c], c, r), o[c], c, a, void 0, r == null ? void 0 : r.id);
|
|
5372
5372
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
5373
5373
|
var s;
|
|
5374
5374
|
d.originalSubRows = e.options.getSubRows(o[c], c), (s = d.originalSubRows) != null && s.length && (d.subRows = i(d.originalSubRows, a + 1, d));
|
|
@@ -5377,10 +5377,10 @@ function Sr() {
|
|
|
5377
5377
|
return l;
|
|
5378
5378
|
};
|
|
5379
5379
|
return t.rows = i(n), t;
|
|
5380
|
-
},
|
|
5380
|
+
}, A(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5383
|
-
return (e) =>
|
|
5382
|
+
function Sr() {
|
|
5383
|
+
return (e) => $(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : Cr(t), A(e.options, "debugTable", "getExpandedRowModel"));
|
|
5384
5384
|
}
|
|
5385
5385
|
function Cr(e) {
|
|
5386
5386
|
const n = [], t = (i) => {
|
|
@@ -5394,7 +5394,7 @@ function Cr(e) {
|
|
|
5394
5394
|
};
|
|
5395
5395
|
}
|
|
5396
5396
|
function _r() {
|
|
5397
|
-
return (e) =>
|
|
5397
|
+
return (e) => $(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
|
|
5398
5398
|
if (!t.rows.length || !n.length)
|
|
5399
5399
|
return t.rows.forEach((s) => {
|
|
5400
5400
|
s.depth = 0, s.parentId = void 0;
|
|
@@ -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 [
|
|
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
|
|
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
|
-
groupingValue:
|
|
5417
|
-
subRows:
|
|
5418
|
-
leafRows:
|
|
5419
|
-
getValue: (
|
|
5420
|
-
if (i.includes(
|
|
5421
|
-
if (
|
|
5422
|
-
return
|
|
5423
|
-
if (
|
|
5416
|
+
groupingValue: R,
|
|
5417
|
+
subRows: _,
|
|
5418
|
+
leafRows: M,
|
|
5419
|
+
getValue: (V) => {
|
|
5420
|
+
if (i.includes(V)) {
|
|
5421
|
+
if (x._valuesCache.hasOwnProperty(V))
|
|
5422
|
+
return x._valuesCache[V];
|
|
5423
|
+
if (h[0]) {
|
|
5424
5424
|
var L;
|
|
5425
|
-
|
|
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) => {
|
|
@@ -5444,7 +5444,7 @@ function _r() {
|
|
|
5444
5444
|
flatRows: o,
|
|
5445
5445
|
rowsById: a
|
|
5446
5446
|
};
|
|
5447
|
-
},
|
|
5447
|
+
}, A(e.options, "debugTable", "getGroupedRowModel", () => {
|
|
5448
5448
|
e._queue(() => {
|
|
5449
5449
|
e._autoResetExpanded(), e._autoResetPageIndex();
|
|
5450
5450
|
});
|
|
@@ -5517,7 +5517,7 @@ const Ir = ({
|
|
|
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
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",
|
|
@@ -5586,18 +5586,23 @@ const Mr = ({
|
|
|
5586
5586
|
}, Or = ({ table: e, ...n }) => {
|
|
5587
5587
|
if (!e)
|
|
5588
5588
|
return null;
|
|
5589
|
-
|
|
5590
|
-
|
|
5589
|
+
const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
|
|
5590
|
+
let i;
|
|
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: [
|
|
5591
5592
|
/* @__PURE__ */ p(
|
|
5592
5593
|
"input",
|
|
5593
5594
|
{
|
|
5594
|
-
"aria-checked":
|
|
5595
|
+
"aria-checked": i,
|
|
5595
5596
|
"aria-label": "select all",
|
|
5596
5597
|
className: "p-checkbox__input",
|
|
5598
|
+
disabled: t.length === 0,
|
|
5597
5599
|
type: "checkbox",
|
|
5598
|
-
checked:
|
|
5600
|
+
checked: i === "true",
|
|
5599
5601
|
onChange: () => {
|
|
5600
|
-
e.
|
|
5602
|
+
const o = e.getCoreRowModel().rows.filter((r) => r.getCanSelect()), a = o.every(
|
|
5603
|
+
(r) => r.getIsSelected()
|
|
5604
|
+
);
|
|
5605
|
+
o.forEach((r) => r.toggleSelected(!a));
|
|
5601
5606
|
},
|
|
5602
5607
|
...n
|
|
5603
5608
|
}
|
|
@@ -5607,172 +5612,214 @@ const Mr = ({
|
|
|
5607
5612
|
}, jr = ({ row: e, ...n }) => {
|
|
5608
5613
|
if (!e)
|
|
5609
5614
|
return null;
|
|
5610
|
-
const t =
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5615
|
+
const t = e.subRows.filter(
|
|
5616
|
+
(r) => r.getCanSelect()
|
|
5617
|
+
), i = t.filter(
|
|
5618
|
+
(r) => r.getIsSelected()
|
|
5619
|
+
).length, o = t.length > 0 && i === t.length, a = i > 0 && !o;
|
|
5620
|
+
return /* @__PURE__ */ U(
|
|
5621
|
+
"label",
|
|
5622
|
+
{
|
|
5623
|
+
"aria-disabled": !e.getCanSelect(),
|
|
5624
|
+
className: "p-checkbox--inline p-table-checkbox--group",
|
|
5625
|
+
children: [
|
|
5626
|
+
/* @__PURE__ */ p(
|
|
5627
|
+
"input",
|
|
5628
|
+
{
|
|
5629
|
+
"aria-checked": a ? "mixed" : void 0,
|
|
5630
|
+
className: "p-checkbox__input",
|
|
5631
|
+
type: "checkbox",
|
|
5632
|
+
checked: o,
|
|
5633
|
+
disabled: !e.getCanSelect() && t.length === 0,
|
|
5634
|
+
onChange: () => {
|
|
5635
|
+
const r = !o;
|
|
5636
|
+
t.forEach(
|
|
5637
|
+
(l) => l.toggleSelected(r)
|
|
5638
|
+
);
|
|
5639
|
+
},
|
|
5640
|
+
...n
|
|
5641
|
+
}
|
|
5642
|
+
),
|
|
5643
|
+
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5644
|
+
]
|
|
5645
|
+
}
|
|
5646
|
+
);
|
|
5632
5647
|
}, Me = ({
|
|
5633
5648
|
row: e,
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5649
|
+
disabledTooltip: n,
|
|
5650
|
+
isNested: t = !1,
|
|
5651
|
+
...i
|
|
5652
|
+
}) => {
|
|
5653
|
+
if (!e)
|
|
5654
|
+
return null;
|
|
5655
|
+
const o = typeof n == "string" ? n : n(e);
|
|
5656
|
+
return /* @__PURE__ */ p(
|
|
5657
|
+
Mn,
|
|
5638
5658
|
{
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5659
|
+
message: !e.getCanSelect() && o,
|
|
5660
|
+
position: "btm-right",
|
|
5661
|
+
children: /* @__PURE__ */ U(
|
|
5662
|
+
"label",
|
|
5663
|
+
{
|
|
5664
|
+
"aria-disabled": !e.getCanSelect(),
|
|
5665
|
+
className: "p-checkbox--inline p-table-checkbox",
|
|
5666
|
+
children: [
|
|
5667
|
+
/* @__PURE__ */ p(
|
|
5668
|
+
"input",
|
|
5669
|
+
{
|
|
5670
|
+
className: "p-checkbox__input",
|
|
5671
|
+
type: "checkbox",
|
|
5672
|
+
checked: e.getIsSelected(),
|
|
5673
|
+
disabled: !e.getCanSelect() || t,
|
|
5674
|
+
onChange: e.getToggleSelectedHandler(),
|
|
5675
|
+
...i
|
|
5676
|
+
}
|
|
5677
|
+
),
|
|
5678
|
+
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5679
|
+
]
|
|
5680
|
+
}
|
|
5681
|
+
)
|
|
5645
5682
|
}
|
|
5646
|
-
)
|
|
5647
|
-
|
|
5648
|
-
] }) : null;
|
|
5683
|
+
);
|
|
5684
|
+
};
|
|
5649
5685
|
Me.All = Or;
|
|
5650
5686
|
Me.Group = jr;
|
|
5651
5687
|
const Wr = ({
|
|
5652
5688
|
className: e,
|
|
5653
5689
|
canSelect: n = !1,
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5690
|
+
disabledSelectionTooltip: t,
|
|
5691
|
+
columns: i,
|
|
5692
|
+
containerRef: o,
|
|
5693
|
+
data: a,
|
|
5694
|
+
filterCells: r = () => !0,
|
|
5695
|
+
filterHeaders: l = () => !0,
|
|
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
|
|
5669
5707
|
}) => {
|
|
5670
|
-
const
|
|
5671
|
-
if (!n ||
|
|
5672
|
-
return
|
|
5673
|
-
const
|
|
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)
|
|
5710
|
+
return i;
|
|
5711
|
+
const y = [
|
|
5674
5712
|
{
|
|
5675
5713
|
id: "p-generic-table__select",
|
|
5676
5714
|
accessorKey: "id",
|
|
5677
5715
|
enableSorting: !1,
|
|
5678
|
-
header: ({ table:
|
|
5679
|
-
cell: ({ row:
|
|
5716
|
+
header: ({ table: k }) => c ? "" : /* @__PURE__ */ p(Me.All, { table: k }),
|
|
5717
|
+
cell: ({ row: k }) => k.getIsGrouped() ? null : /* @__PURE__ */ p(
|
|
5718
|
+
Me,
|
|
5719
|
+
{
|
|
5720
|
+
row: k,
|
|
5721
|
+
disabledTooltip: t ?? "",
|
|
5722
|
+
isNested: s !== void 0 && !!k.parentId
|
|
5723
|
+
}
|
|
5724
|
+
)
|
|
5680
5725
|
},
|
|
5681
|
-
...
|
|
5726
|
+
...i
|
|
5682
5727
|
];
|
|
5683
|
-
return
|
|
5728
|
+
return c ? [
|
|
5684
5729
|
{
|
|
5685
5730
|
id: "p-generic-table__group-select",
|
|
5686
5731
|
accessorKey: "id",
|
|
5687
5732
|
enableSorting: !1,
|
|
5688
|
-
header: ({ table:
|
|
5689
|
-
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
|
|
5690
5735
|
},
|
|
5691
|
-
...
|
|
5692
|
-
] :
|
|
5693
|
-
}, [n,
|
|
5694
|
-
for (const
|
|
5695
|
-
const
|
|
5696
|
-
if (
|
|
5697
|
-
if (
|
|
5698
|
-
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;
|
|
5699
5744
|
}
|
|
5700
5745
|
return 0;
|
|
5701
|
-
}) :
|
|
5702
|
-
if (
|
|
5703
|
-
for (const { value:
|
|
5704
|
-
const
|
|
5705
|
-
if (
|
|
5706
|
-
return
|
|
5707
|
-
if (
|
|
5708
|
-
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;
|
|
5709
5754
|
}
|
|
5710
|
-
for (const { id:
|
|
5711
|
-
const
|
|
5712
|
-
if (
|
|
5713
|
-
if (
|
|
5714
|
-
if (
|
|
5715
|
-
return
|
|
5716
|
-
if (
|
|
5717
|
-
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;
|
|
5718
5763
|
}
|
|
5719
5764
|
return 0;
|
|
5720
|
-
}) : [], [
|
|
5765
|
+
}) : [], [H, ge, u, B]);
|
|
5721
5766
|
An(() => {
|
|
5722
|
-
const
|
|
5723
|
-
const
|
|
5724
|
-
if (!
|
|
5725
|
-
const
|
|
5726
|
-
if (!
|
|
5727
|
-
const
|
|
5728
|
-
|
|
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");
|
|
5729
5774
|
};
|
|
5730
|
-
|
|
5731
|
-
const
|
|
5732
|
-
return
|
|
5733
|
-
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);
|
|
5734
5779
|
};
|
|
5735
|
-
}, [
|
|
5736
|
-
const
|
|
5737
|
-
data:
|
|
5738
|
-
columns:
|
|
5780
|
+
}, [o, Y.length, d]);
|
|
5781
|
+
const ee = h === "full-height" && V ? "full-height" : "regular", oe = Pr({
|
|
5782
|
+
data: Y,
|
|
5783
|
+
columns: S,
|
|
5739
5784
|
state: {
|
|
5740
|
-
grouping:
|
|
5741
|
-
expanded:
|
|
5742
|
-
sorting:
|
|
5743
|
-
rowSelection:
|
|
5785
|
+
grouping: B,
|
|
5786
|
+
expanded: ce,
|
|
5787
|
+
sorting: ge,
|
|
5788
|
+
rowSelection: v
|
|
5744
5789
|
},
|
|
5745
5790
|
manualPagination: !0,
|
|
5746
5791
|
autoResetExpanded: !1,
|
|
5747
|
-
onExpandedChange:
|
|
5748
|
-
onSortingChange:
|
|
5749
|
-
onGroupingChange:
|
|
5750
|
-
onRowSelectionChange:
|
|
5792
|
+
onExpandedChange: ue,
|
|
5793
|
+
onSortingChange: I,
|
|
5794
|
+
onGroupingChange: Z,
|
|
5795
|
+
onRowSelectionChange: R,
|
|
5751
5796
|
manualSorting: !0,
|
|
5752
5797
|
enableSorting: !0,
|
|
5753
5798
|
enableExpanding: !0,
|
|
5754
|
-
|
|
5755
|
-
|
|
5799
|
+
getSubRows: s,
|
|
5800
|
+
getExpandedRowModel: Sr(),
|
|
5801
|
+
getCoreRowModel: br(),
|
|
5756
5802
|
getGroupedRowModel: _r(),
|
|
5757
5803
|
groupedColumnMode: !1,
|
|
5758
5804
|
enableRowSelection: n,
|
|
5759
5805
|
enableMultiRowSelection: n,
|
|
5760
|
-
getRowId: (
|
|
5761
|
-
}), te = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan:
|
|
5762
|
-
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);
|
|
5763
5809
|
return /* @__PURE__ */ p(
|
|
5764
5810
|
"tr",
|
|
5765
5811
|
{
|
|
5766
|
-
"aria-rowindex": parseInt(
|
|
5767
|
-
"aria-selected":
|
|
5812
|
+
"aria-rowindex": parseInt(F.replace(/\D/g, "") || "0", 10) + 1,
|
|
5813
|
+
"aria-selected": T,
|
|
5768
5814
|
className: q({
|
|
5769
|
-
"p-generic-table__individual-row":
|
|
5770
|
-
"p-generic-table__group-row": !
|
|
5815
|
+
"p-generic-table__individual-row": P,
|
|
5816
|
+
"p-generic-table__group-row": !P,
|
|
5817
|
+
"p-generic-table__nested-row": s !== void 0 && !!D
|
|
5771
5818
|
}),
|
|
5772
5819
|
role: "row",
|
|
5773
|
-
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))
|
|
5774
5821
|
},
|
|
5775
|
-
|
|
5822
|
+
F
|
|
5776
5823
|
);
|
|
5777
5824
|
});
|
|
5778
5825
|
return /* @__PURE__ */ U(
|
|
@@ -5780,53 +5827,53 @@ const Wr = ({
|
|
|
5780
5827
|
{
|
|
5781
5828
|
className: q("p-generic-table", e),
|
|
5782
5829
|
"data-testid": "p-generic-table",
|
|
5783
|
-
...
|
|
5830
|
+
...j,
|
|
5784
5831
|
children: [
|
|
5785
|
-
|
|
5832
|
+
g && /* @__PURE__ */ p(
|
|
5786
5833
|
Mr,
|
|
5787
5834
|
{
|
|
5788
|
-
currentPage:
|
|
5789
|
-
dataContext:
|
|
5790
|
-
handlePageSizeChange:
|
|
5791
|
-
isPending:
|
|
5792
|
-
itemsPerPage:
|
|
5793
|
-
setCurrentPage:
|
|
5794
|
-
totalItems:
|
|
5795
|
-
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
|
|
5796
5843
|
}
|
|
5797
5844
|
),
|
|
5798
5845
|
/* @__PURE__ */ U(
|
|
5799
5846
|
"table",
|
|
5800
5847
|
{
|
|
5801
|
-
"aria-busy":
|
|
5848
|
+
"aria-busy": d,
|
|
5802
5849
|
"aria-describedby": "generic-table-description",
|
|
5803
|
-
"aria-rowcount":
|
|
5850
|
+
"aria-rowcount": Y.length + 1,
|
|
5804
5851
|
className: q("p-generic-table__table", {
|
|
5805
|
-
"p-generic-table__is-full-height":
|
|
5852
|
+
"p-generic-table__is-full-height": ee === "full-height",
|
|
5806
5853
|
"p-generic-table__is-selectable": n,
|
|
5807
|
-
"p-generic-table__is-grouped":
|
|
5854
|
+
"p-generic-table__is-grouped": c !== void 0
|
|
5808
5855
|
}),
|
|
5809
5856
|
role: "grid",
|
|
5810
5857
|
children: [
|
|
5811
|
-
/* @__PURE__ */ p("thead", { children:
|
|
5812
|
-
/* @__PURE__ */ p(Dr, { header:
|
|
5813
|
-
|
|
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(
|
|
5814
5861
|
"th",
|
|
5815
5862
|
{
|
|
5816
5863
|
className: "p-generic-table__select-alignment",
|
|
5817
5864
|
role: "columnheader"
|
|
5818
5865
|
}
|
|
5819
5866
|
) : null
|
|
5820
|
-
] },
|
|
5867
|
+
] }, k.id)) }, y.id)) }),
|
|
5821
5868
|
/* @__PURE__ */ p(
|
|
5822
5869
|
"tbody",
|
|
5823
5870
|
{
|
|
5824
|
-
ref:
|
|
5871
|
+
ref: _,
|
|
5825
5872
|
style: {
|
|
5826
5873
|
overflowY: "auto",
|
|
5827
|
-
maxHeight:
|
|
5874
|
+
maxHeight: M
|
|
5828
5875
|
},
|
|
5829
|
-
children:
|
|
5876
|
+
children: d ? te() : w()
|
|
5830
5877
|
}
|
|
5831
5878
|
)
|
|
5832
5879
|
]
|
|
@@ -5838,7 +5885,7 @@ const Wr = ({
|
|
|
5838
5885
|
}, Yr = ({
|
|
5839
5886
|
row: e
|
|
5840
5887
|
}) => /* @__PURE__ */ p(
|
|
5841
|
-
|
|
5888
|
+
Se,
|
|
5842
5889
|
{
|
|
5843
5890
|
appearance: "base",
|
|
5844
5891
|
dense: !0,
|
|
@@ -5904,163 +5951,163 @@ const Wr = ({
|
|
|
5904
5951
|
highlightedIndex: -1,
|
|
5905
5952
|
showingMore: !1,
|
|
5906
5953
|
cursorPosition: 0
|
|
5907
|
-
}), u =
|
|
5908
|
-
const
|
|
5909
|
-
return !f.showingMore && l.length >
|
|
5910
|
-
}, [l, f.showingMore]),
|
|
5911
|
-
(
|
|
5912
|
-
g(typeof
|
|
5954
|
+
}), u = be(null), m = be(null), v = be(null), R = le(() => {
|
|
5955
|
+
const I = f.showingMore ? Fn.EXPANDED : Fn.DEFAULT, S = l.slice(0, I);
|
|
5956
|
+
return !f.showingMore && l.length > I ? [...S, { value: "Show more...", type: "more" }] : S;
|
|
5957
|
+
}, [l, f.showingMore]), h = Q(
|
|
5958
|
+
(I) => {
|
|
5959
|
+
g(typeof I == "function" ? (S) => ({ ...S, ...I(S) }) : (S) => ({ ...S, ...I }));
|
|
5913
5960
|
},
|
|
5914
5961
|
[]
|
|
5915
|
-
),
|
|
5916
|
-
(
|
|
5917
|
-
u.current && !u.current.contains(
|
|
5962
|
+
), j = Q(
|
|
5963
|
+
(I) => {
|
|
5964
|
+
u.current && !u.current.contains(I.target) && h({
|
|
5918
5965
|
isVisible: !1,
|
|
5919
5966
|
highlightedIndex: -1
|
|
5920
5967
|
});
|
|
5921
5968
|
},
|
|
5922
|
-
[
|
|
5923
|
-
),
|
|
5924
|
-
(
|
|
5925
|
-
const { tokenStart:
|
|
5926
|
-
if (
|
|
5927
|
-
const
|
|
5928
|
-
return t.slice(0,
|
|
5969
|
+
[h]
|
|
5970
|
+
), _ = Q(
|
|
5971
|
+
(I, S) => {
|
|
5972
|
+
const { tokenStart: H, tokenEnd: Y } = S;
|
|
5973
|
+
if (I.type === "filter") {
|
|
5974
|
+
const oe = I.value + xe.COLON + xe.OPEN_PAREN;
|
|
5975
|
+
return t.slice(0, H) + oe + t.slice(Y);
|
|
5929
5976
|
}
|
|
5930
5977
|
if (o.length === 0) {
|
|
5931
|
-
const
|
|
5932
|
-
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);
|
|
5933
5980
|
}
|
|
5934
|
-
const
|
|
5935
|
-
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);
|
|
5936
5983
|
},
|
|
5937
5984
|
[t, o]
|
|
5938
|
-
),
|
|
5939
|
-
(
|
|
5940
|
-
const
|
|
5941
|
-
if (!
|
|
5942
|
-
if (
|
|
5943
|
-
|
|
5985
|
+
), M = Q(
|
|
5986
|
+
(I) => {
|
|
5987
|
+
const S = R[I];
|
|
5988
|
+
if (!S) return;
|
|
5989
|
+
if (S.type === "more") {
|
|
5990
|
+
h({ showingMore: !0 });
|
|
5944
5991
|
return;
|
|
5945
5992
|
}
|
|
5946
|
-
const
|
|
5993
|
+
const H = Ze(
|
|
5947
5994
|
t,
|
|
5948
5995
|
f.cursorPosition
|
|
5949
|
-
), Y =
|
|
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(
|
|
5950
5997
|
Y,
|
|
5951
|
-
|
|
5998
|
+
ee
|
|
5952
5999
|
);
|
|
5953
|
-
a(
|
|
6000
|
+
a(oe), r(te), i(Y), setTimeout(() => {
|
|
5954
6001
|
v.current && (v.current.focus(), v.current.setSelectionRange(
|
|
5955
|
-
|
|
5956
|
-
|
|
6002
|
+
ee,
|
|
6003
|
+
ee
|
|
5957
6004
|
));
|
|
5958
|
-
}, 0),
|
|
6005
|
+
}, 0), h({
|
|
5959
6006
|
highlightedIndex: 0,
|
|
5960
6007
|
showingMore: !1,
|
|
5961
|
-
isVisible:
|
|
5962
|
-
cursorPosition:
|
|
6008
|
+
isVisible: S.type === "filter",
|
|
6009
|
+
cursorPosition: ee
|
|
5963
6010
|
});
|
|
5964
6011
|
},
|
|
5965
6012
|
[
|
|
5966
|
-
_,
|
|
5967
6013
|
R,
|
|
6014
|
+
_,
|
|
5968
6015
|
t,
|
|
5969
6016
|
f.cursorPosition,
|
|
5970
6017
|
o,
|
|
5971
6018
|
a,
|
|
5972
6019
|
r,
|
|
5973
6020
|
i,
|
|
5974
|
-
|
|
6021
|
+
h
|
|
5975
6022
|
]
|
|
5976
|
-
),
|
|
6023
|
+
), x = Q(() => {
|
|
5977
6024
|
if (!v.current) return;
|
|
5978
|
-
const
|
|
6025
|
+
const I = v.current.selectionStart || 0, { context: S, token: H } = Ze(
|
|
5979
6026
|
t,
|
|
5980
|
-
|
|
6027
|
+
I
|
|
5981
6028
|
);
|
|
5982
|
-
a(
|
|
6029
|
+
a(S), r(H), h((Y) => ({
|
|
5983
6030
|
...Y,
|
|
5984
|
-
isVisible: !Pn(t,
|
|
5985
|
-
cursorPosition:
|
|
6031
|
+
isVisible: !Pn(t, I),
|
|
6032
|
+
cursorPosition: I
|
|
5986
6033
|
}));
|
|
5987
|
-
}, [t, a, r,
|
|
5988
|
-
(
|
|
5989
|
-
const { key:
|
|
6034
|
+
}, [t, a, r, h]), V = Q(
|
|
6035
|
+
(I) => {
|
|
6036
|
+
const { key: S } = I;
|
|
5990
6037
|
if (f.isVisible) {
|
|
5991
|
-
const
|
|
5992
|
-
switch (
|
|
6038
|
+
const H = R.length;
|
|
6039
|
+
switch (S) {
|
|
5993
6040
|
case "Tab":
|
|
5994
6041
|
case "ArrowDown":
|
|
5995
|
-
|
|
5996
|
-
highlightedIndex: (f.highlightedIndex + 1) %
|
|
6042
|
+
I.preventDefault(), h({
|
|
6043
|
+
highlightedIndex: (f.highlightedIndex + 1) % H
|
|
5997
6044
|
});
|
|
5998
6045
|
return;
|
|
5999
6046
|
case "ArrowUp":
|
|
6000
|
-
|
|
6001
|
-
highlightedIndex: f.highlightedIndex <= 0 ?
|
|
6047
|
+
I.preventDefault(), h({
|
|
6048
|
+
highlightedIndex: f.highlightedIndex <= 0 ? H - 1 : f.highlightedIndex - 1
|
|
6002
6049
|
});
|
|
6003
6050
|
return;
|
|
6004
6051
|
case "Enter":
|
|
6005
|
-
|
|
6052
|
+
I.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6006
6053
|
return;
|
|
6007
6054
|
case "Escape":
|
|
6008
|
-
|
|
6055
|
+
I.preventDefault(), h({
|
|
6009
6056
|
isVisible: !1,
|
|
6010
6057
|
highlightedIndex: -1
|
|
6011
6058
|
});
|
|
6012
6059
|
return;
|
|
6013
6060
|
}
|
|
6014
6061
|
}
|
|
6015
|
-
(
|
|
6062
|
+
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && setTimeout(x, 0);
|
|
6016
6063
|
},
|
|
6017
6064
|
[
|
|
6018
6065
|
f,
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6066
|
+
R.length,
|
|
6067
|
+
h,
|
|
6068
|
+
M,
|
|
6069
|
+
x
|
|
6023
6070
|
]
|
|
6024
6071
|
), L = Q(
|
|
6025
|
-
(
|
|
6026
|
-
const { key:
|
|
6027
|
-
(
|
|
6072
|
+
(I) => {
|
|
6073
|
+
const { key: S } = I;
|
|
6074
|
+
(S === "ArrowLeft" || S === "ArrowRight" || S === "Home" || S === "End") && x();
|
|
6028
6075
|
},
|
|
6029
|
-
[
|
|
6030
|
-
),
|
|
6031
|
-
|
|
6076
|
+
[x]
|
|
6077
|
+
), B = Q(() => {
|
|
6078
|
+
h({
|
|
6032
6079
|
isVisible: !0,
|
|
6033
6080
|
highlightedIndex: 0
|
|
6034
6081
|
});
|
|
6035
|
-
}, [
|
|
6036
|
-
(
|
|
6037
|
-
var
|
|
6038
|
-
const
|
|
6039
|
-
|
|
6040
|
-
|
|
6082
|
+
}, [h]), Z = Q(
|
|
6083
|
+
(I) => {
|
|
6084
|
+
var ee;
|
|
6085
|
+
const S = ((ee = v.current) == null ? void 0 : ee.selectionStart) || I.length, { context: H, token: Y } = Ze(
|
|
6086
|
+
I,
|
|
6087
|
+
S
|
|
6041
6088
|
);
|
|
6042
|
-
a(
|
|
6089
|
+
a(H), r(Y), i(I), h({
|
|
6043
6090
|
highlightedIndex: 0,
|
|
6044
|
-
isVisible: !Pn(
|
|
6091
|
+
isVisible: !Pn(I, S),
|
|
6045
6092
|
showingMore: !1,
|
|
6046
|
-
cursorPosition:
|
|
6093
|
+
cursorPosition: S
|
|
6047
6094
|
});
|
|
6048
6095
|
},
|
|
6049
|
-
[a, r, i,
|
|
6050
|
-
),
|
|
6051
|
-
setTimeout(
|
|
6052
|
-
}, [
|
|
6053
|
-
|
|
6096
|
+
[a, r, i, h]
|
|
6097
|
+
), ce = Q(() => {
|
|
6098
|
+
setTimeout(x, 0);
|
|
6099
|
+
}, [x]), ue = Q(() => {
|
|
6100
|
+
h({
|
|
6054
6101
|
isVisible: !1,
|
|
6055
6102
|
highlightedIndex: -1
|
|
6056
6103
|
});
|
|
6057
|
-
}, [
|
|
6058
|
-
(
|
|
6059
|
-
|
|
6104
|
+
}, [h]), ge = Q(
|
|
6105
|
+
(I) => {
|
|
6106
|
+
h({ highlightedIndex: I });
|
|
6060
6107
|
},
|
|
6061
|
-
[
|
|
6108
|
+
[h]
|
|
6062
6109
|
);
|
|
6063
|
-
return Ee(() => (document.addEventListener("mousedown",
|
|
6110
|
+
return Ee(() => (document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j)), [j]), /* @__PURE__ */ U(
|
|
6064
6111
|
"div",
|
|
6065
6112
|
{
|
|
6066
6113
|
className: q("p-query-input", e),
|
|
@@ -6069,7 +6116,7 @@ const Wr = ({
|
|
|
6069
6116
|
...d,
|
|
6070
6117
|
children: [
|
|
6071
6118
|
/* @__PURE__ */ p(
|
|
6072
|
-
|
|
6119
|
+
On,
|
|
6073
6120
|
{
|
|
6074
6121
|
disabled: n,
|
|
6075
6122
|
placeholder: c,
|
|
@@ -6079,12 +6126,12 @@ const Wr = ({
|
|
|
6079
6126
|
id: "query-input",
|
|
6080
6127
|
name: "query-input",
|
|
6081
6128
|
ref: v,
|
|
6082
|
-
onFocus:
|
|
6083
|
-
onChange:
|
|
6084
|
-
onKeyDown:
|
|
6129
|
+
onFocus: B,
|
|
6130
|
+
onChange: Z,
|
|
6131
|
+
onKeyDown: V,
|
|
6085
6132
|
onKeyUp: L,
|
|
6086
6133
|
onClear: ue,
|
|
6087
|
-
onClick:
|
|
6134
|
+
onClick: ce,
|
|
6088
6135
|
"aria-disabled": n,
|
|
6089
6136
|
"aria-expanded": f.isVisible,
|
|
6090
6137
|
"aria-haspopup": "listbox",
|
|
@@ -6099,17 +6146,17 @@ const Wr = ({
|
|
|
6099
6146
|
id: "query-suggestions",
|
|
6100
6147
|
role: "listbox",
|
|
6101
6148
|
"aria-label": "Search suggestions",
|
|
6102
|
-
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) :
|
|
6149
|
+
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : R.map((I, S) => /* @__PURE__ */ U(
|
|
6103
6150
|
"li",
|
|
6104
6151
|
{
|
|
6105
6152
|
className: q("p-query-input__item", {
|
|
6106
|
-
highlight:
|
|
6153
|
+
highlight: S === f.highlightedIndex
|
|
6107
6154
|
}),
|
|
6108
|
-
onClick: () =>
|
|
6109
|
-
onKeyDown: () =>
|
|
6110
|
-
onMouseEnter: () => ge(
|
|
6155
|
+
onClick: () => M(S),
|
|
6156
|
+
onKeyDown: () => M(S),
|
|
6157
|
+
onMouseEnter: () => ge(S),
|
|
6111
6158
|
role: "option",
|
|
6112
|
-
"aria-selected":
|
|
6159
|
+
"aria-selected": S === f.highlightedIndex,
|
|
6113
6160
|
tabIndex: -1,
|
|
6114
6161
|
children: [
|
|
6115
6162
|
/* @__PURE__ */ U("span", { className: "p-query-input__item-label", children: [
|
|
@@ -6117,17 +6164,17 @@ const Wr = ({
|
|
|
6117
6164
|
"span",
|
|
6118
6165
|
{
|
|
6119
6166
|
className: q({
|
|
6120
|
-
"u-text--muted":
|
|
6167
|
+
"u-text--muted": I.type === "more"
|
|
6121
6168
|
}),
|
|
6122
|
-
children:
|
|
6169
|
+
children: I.value
|
|
6123
6170
|
}
|
|
6124
6171
|
),
|
|
6125
|
-
|
|
6172
|
+
I.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
|
|
6126
6173
|
] }),
|
|
6127
|
-
|
|
6174
|
+
I.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: I.type })
|
|
6128
6175
|
]
|
|
6129
6176
|
},
|
|
6130
|
-
`${
|
|
6177
|
+
`${I.value}-${S}`
|
|
6131
6178
|
))
|
|
6132
6179
|
}
|
|
6133
6180
|
)
|
|
@@ -6156,19 +6203,19 @@ const Wr = ({
|
|
|
6156
6203
|
};
|
|
6157
6204
|
export {
|
|
6158
6205
|
ot as ContentSection,
|
|
6159
|
-
|
|
6206
|
+
ii as DynamicTable,
|
|
6160
6207
|
qr as ExternalLink,
|
|
6161
6208
|
Pa as FileUpload,
|
|
6162
6209
|
Ur as FileUploadContainer,
|
|
6163
6210
|
Ut as FormSection,
|
|
6164
6211
|
Wr as GenericTable,
|
|
6165
6212
|
Yr as GroupRowActions,
|
|
6166
|
-
|
|
6167
|
-
|
|
6213
|
+
Tn as InputGroup,
|
|
6214
|
+
Nn as MainToolbar,
|
|
6168
6215
|
zi as Meter,
|
|
6169
6216
|
Kr as MultiSelect,
|
|
6170
6217
|
$a as MultiSelectDropdown,
|
|
6171
|
-
|
|
6218
|
+
re as Navigation,
|
|
6172
6219
|
co as NavigationBar,
|
|
6173
6220
|
Gr as NestedFormGroup,
|
|
6174
6221
|
Co as Pagination,
|
|
@@ -6177,7 +6224,7 @@ export {
|
|
|
6177
6224
|
Hi as ProgressIndicator,
|
|
6178
6225
|
Xr as QueryInput,
|
|
6179
6226
|
Br as Stepper,
|
|
6180
|
-
|
|
6227
|
+
ai as TableCaption,
|
|
6181
6228
|
Hr as defaultFilledColors,
|
|
6182
6229
|
Qr as formatBytes,
|
|
6183
6230
|
Ie as meterColor,
|