@canonical/maas-react-components 2.4.0 → 2.5.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 +995 -970
- package/dist/@canonical/maas-react-components.umd.js +16 -16
- package/dist/src/lib/sections/SidePanel/SidePanel.d.ts +6 -1
- package/dist/src/lib/sections/SidePanel/SidePanel.stories.d.ts +2 -0
- package/dist/src/lib/sections/SidePanel/utils.d.ts +22 -0
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as z, jsx as p, Fragment as be } from "react/jsx-runtime";
|
|
2
2
|
import * as ge from "react";
|
|
3
|
-
import Ei, { useRef as fe, useState as pe, useEffect as le, useCallback as U, createContext as
|
|
4
|
-
import { useListener as Di, Link as Ai, Spinner as
|
|
3
|
+
import Ei, { useRef as fe, useState as pe, useEffect as le, useCallback as U, createContext as Bt, useId as nt, useContext as rt, cloneElement as Pi, useMemo as re, useReducer as jn, forwardRef as Fi, useImperativeHandle as Ii, Fragment as Tn, useLayoutEffect as Ut } from "react";
|
|
4
|
+
import { useListener as Di, Link as Ai, Spinner as Kt, Row as $i, Col as Mi, Tooltip as Wt, Button as Ee, Icon as Ce, AppAside as Oi, useOnEscapePressed as zn, Input as ji, Label as Ti, CheckboxInput as zi, useClickOutside as Ni, SearchBox as Nn, Select as Vi, ICONS as $t } from "@canonical/react-components";
|
|
5
5
|
import { useLocation as Li } from "react-router";
|
|
6
|
-
function
|
|
6
|
+
function Yt(e) {
|
|
7
7
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
8
|
}
|
|
9
|
-
var
|
|
9
|
+
var ht = { exports: {} };
|
|
10
10
|
/*!
|
|
11
11
|
Copyright (c) 2018 Jed Watson.
|
|
12
12
|
Licensed under the MIT License (MIT), see
|
|
13
13
|
http://jedwatson.github.io/classnames
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var an;
|
|
16
16
|
function Hi() {
|
|
17
|
-
return
|
|
17
|
+
return an || (an = 1, function(e) {
|
|
18
18
|
(function() {
|
|
19
19
|
var n = {}.hasOwnProperty;
|
|
20
20
|
function t() {
|
|
@@ -43,10 +43,10 @@ function Hi() {
|
|
|
43
43
|
}
|
|
44
44
|
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
45
45
|
})();
|
|
46
|
-
}(
|
|
46
|
+
}(ht)), ht.exports;
|
|
47
47
|
}
|
|
48
48
|
var qi = Hi();
|
|
49
|
-
const
|
|
49
|
+
const L = /* @__PURE__ */ Yt(qi), $e = {
|
|
50
50
|
caution: "#F99B11",
|
|
51
51
|
light: "#F7F7F7",
|
|
52
52
|
linkFaded: "#D3E4ED",
|
|
@@ -55,16 +55,16 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
55
55
|
positiveFaded: "#B7CCB9",
|
|
56
56
|
positiveMid: "#4DAB4D",
|
|
57
57
|
positive: "#0E8420"
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
], Gi =
|
|
58
|
+
}, sl = [
|
|
59
|
+
$e.link,
|
|
60
|
+
$e.positive,
|
|
61
|
+
$e.negative,
|
|
62
|
+
$e.caution
|
|
63
|
+
], Gi = $e.linkFaded, Vn = $e.caution, Mt = $e.light, rn = 2, ln = 1, sn = (e, n) => {
|
|
64
64
|
var o, a;
|
|
65
65
|
const t = ((a = (o = e == null ? void 0 : e.current) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : a.width) || 0;
|
|
66
|
-
return t > n *
|
|
67
|
-
},
|
|
66
|
+
return t > n * rn ? t / n : rn;
|
|
67
|
+
}, Te = {
|
|
68
68
|
bar: "meter-bar",
|
|
69
69
|
container: "meter-container",
|
|
70
70
|
filled: "meter-filled",
|
|
@@ -82,19 +82,19 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
82
82
|
}) => {
|
|
83
83
|
const r = fe(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] = pe(0);
|
|
84
84
|
le(() => {
|
|
85
|
-
g(o === "segmented" ?
|
|
85
|
+
g(o === "segmented" ? sn(r, c) : 0);
|
|
86
86
|
}, [c, o]);
|
|
87
87
|
const u = U(() => {
|
|
88
|
-
g(
|
|
88
|
+
g(sn(r, c));
|
|
89
89
|
}, [r, c, g]);
|
|
90
|
-
return Di(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */
|
|
90
|
+
return Di(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ z(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
|
-
className:
|
|
93
|
+
className: L("p-meter", e, {
|
|
94
94
|
"p-meter--small": a === "small"
|
|
95
95
|
}),
|
|
96
96
|
"aria-label": l == null ? void 0 : l["aria-label"],
|
|
97
|
-
"data-testid":
|
|
97
|
+
"data-testid": Te.container,
|
|
98
98
|
ref: r,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ p(Ui, { children: /* @__PURE__ */ p(
|
|
@@ -103,9 +103,9 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
103
103
|
data: t,
|
|
104
104
|
datumWidths: d,
|
|
105
105
|
maximum: c,
|
|
106
|
-
overColor:
|
|
106
|
+
overColor: Vn,
|
|
107
107
|
segmentWidth: f,
|
|
108
|
-
separatorColor:
|
|
108
|
+
separatorColor: Mt
|
|
109
109
|
}
|
|
110
110
|
) }),
|
|
111
111
|
n
|
|
@@ -116,7 +116,7 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
116
116
|
"div",
|
|
117
117
|
{
|
|
118
118
|
className: "p-meter__bar",
|
|
119
|
-
"data-testid":
|
|
119
|
+
"data-testid": Te.bar,
|
|
120
120
|
style: { backgroundColor: Gi },
|
|
121
121
|
children: e
|
|
122
122
|
}
|
|
@@ -137,24 +137,24 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
137
137
|
background: `repeating-linear-gradient(
|
|
138
138
|
to right,
|
|
139
139
|
transparent 0,
|
|
140
|
-
transparent ${i -
|
|
141
|
-
${
|
|
142
|
-
${
|
|
140
|
+
transparent ${i - ln}px,
|
|
141
|
+
${Mt} ${i - ln}px,
|
|
142
|
+
${Mt} ${i}px
|
|
143
143
|
)`
|
|
144
144
|
});
|
|
145
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ z(be, { children: [
|
|
146
146
|
o() ? /* @__PURE__ */ p(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
className: "p-meter__filled",
|
|
150
|
-
"data-testid":
|
|
151
|
-
style: { backgroundColor:
|
|
150
|
+
"data-testid": Te.meteroverflow,
|
|
151
|
+
style: { backgroundColor: Vn, width: "100%" }
|
|
152
152
|
}
|
|
153
153
|
) : e == null ? void 0 : e.map((r, s) => /* @__PURE__ */ p(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
156
156
|
className: "p-meter__filled",
|
|
157
|
-
"data-testid":
|
|
157
|
+
"data-testid": Te.filled,
|
|
158
158
|
style: a(r, s)
|
|
159
159
|
},
|
|
160
160
|
`meter-${s}`
|
|
@@ -163,7 +163,7 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
163
163
|
"div",
|
|
164
164
|
{
|
|
165
165
|
className: "p-meter__separators",
|
|
166
|
-
"data-testid":
|
|
166
|
+
"data-testid": Te.segments,
|
|
167
167
|
style: l()
|
|
168
168
|
}
|
|
169
169
|
)
|
|
@@ -174,19 +174,19 @@ const V = /* @__PURE__ */ Wt(qi), De = {
|
|
|
174
174
|
}) => /* @__PURE__ */ p(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
|
-
className:
|
|
178
|
-
"data-testid":
|
|
177
|
+
className: L("p-meter__label", e),
|
|
178
|
+
"data-testid": Te.label,
|
|
179
179
|
children: n
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
182
|
Bi.Label = Wi;
|
|
183
|
-
const
|
|
183
|
+
const cl = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ai, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Yi = ({
|
|
184
184
|
percentComplete: e
|
|
185
|
-
}) => /* @__PURE__ */
|
|
185
|
+
}) => /* @__PURE__ */ z("small", { className: "progress-indicator", children: [
|
|
186
186
|
e,
|
|
187
187
|
"% ",
|
|
188
|
-
/* @__PURE__ */ p(
|
|
189
|
-
] }),
|
|
188
|
+
/* @__PURE__ */ p(Kt, { className: "progress-indicator__spinner" })
|
|
189
|
+
] }), _e = ({
|
|
190
190
|
className: e,
|
|
191
191
|
width: n,
|
|
192
192
|
height: t,
|
|
@@ -217,7 +217,7 @@ const ll = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ai, { ...t, href:
|
|
|
217
217
|
"div",
|
|
218
218
|
{
|
|
219
219
|
"aria-label": "loading",
|
|
220
|
-
className:
|
|
220
|
+
className: L("p-placeholder", e),
|
|
221
221
|
role: "progressbar",
|
|
222
222
|
style: { animationDelay: `${d}ms`, width: f, height: t, ...r },
|
|
223
223
|
...s,
|
|
@@ -230,40 +230,40 @@ const ll = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ai, { ...t, href:
|
|
|
230
230
|
"div",
|
|
231
231
|
{
|
|
232
232
|
"aria-label": "loading",
|
|
233
|
-
className:
|
|
233
|
+
className: L("p-placeholder", e),
|
|
234
234
|
role: "progressbar",
|
|
235
235
|
style: { width: c, height: t, ...r },
|
|
236
236
|
...s
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
|
-
},
|
|
239
|
+
}, ke = ({
|
|
240
240
|
children: e,
|
|
241
241
|
className: n,
|
|
242
242
|
as: t,
|
|
243
243
|
variant: i = "wide",
|
|
244
244
|
...o
|
|
245
245
|
}) => {
|
|
246
|
-
const a = t || "section", l =
|
|
246
|
+
const a = t || "section", l = L("content-section", n);
|
|
247
247
|
return /* @__PURE__ */ p(a, { ...o, className: l, children: /* @__PURE__ */ p($i, { children: /* @__PURE__ */ p(Mi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(be, { children: e }) }) }) });
|
|
248
248
|
}, Xi = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
|
|
249
249
|
t || "h1",
|
|
250
250
|
{
|
|
251
251
|
...i,
|
|
252
|
-
className:
|
|
252
|
+
className: L("content-section__title p-heading--4", n),
|
|
253
253
|
children: e
|
|
254
254
|
}
|
|
255
|
-
), Qi = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
const n =
|
|
266
|
-
return /* @__PURE__ */ p(
|
|
255
|
+
), Qi = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: L("content-section__header", n), children: e }), Ji = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: L("content-section__body", n), children: e }), Zi = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: L("content-section__footer", n), children: e });
|
|
256
|
+
ke.Title = Xi;
|
|
257
|
+
ke.Header = Qi;
|
|
258
|
+
ke.Content = Ji;
|
|
259
|
+
ke.Footer = Zi;
|
|
260
|
+
const Xt = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section", children: e }), eo = ({ children: e }) => /* @__PURE__ */ p("h5", { className: "p-form-section__title u-no-padding--top", children: e }), to = ({ children: e }) => /* @__PURE__ */ p("p", { className: "p-form-help-text", children: e }), no = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section__content", children: e });
|
|
261
|
+
Xt.Title = eo;
|
|
262
|
+
Xt.Description = to;
|
|
263
|
+
Xt.Content = no;
|
|
264
|
+
const Qt = Bt(null), Ln = ({ children: e }) => {
|
|
265
|
+
const n = nt();
|
|
266
|
+
return /* @__PURE__ */ p(Qt.Provider, { value: n, children: /* @__PURE__ */ p(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
269
269
|
role: "group",
|
|
@@ -274,10 +274,10 @@ const Xt = Gt(null), Ln = ({ children: e }) => {
|
|
|
274
274
|
}
|
|
275
275
|
) });
|
|
276
276
|
}, io = ({ children: e }) => {
|
|
277
|
-
const n =
|
|
277
|
+
const n = rt(Qt);
|
|
278
278
|
return /* @__PURE__ */ p("label", { id: `${n}_label`, children: e });
|
|
279
279
|
}, oo = ({ children: e }) => {
|
|
280
|
-
const n =
|
|
280
|
+
const n = rt(Qt);
|
|
281
281
|
return /* @__PURE__ */ p("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
|
|
282
282
|
};
|
|
283
283
|
Ln.Label = io;
|
|
@@ -304,7 +304,7 @@ const Hn = ge.createContext(null), qn = ge.createContext([!1, () => {
|
|
|
304
304
|
return /* @__PURE__ */ p(
|
|
305
305
|
"header",
|
|
306
306
|
{
|
|
307
|
-
className:
|
|
307
|
+
className: L("main-toolbar", {
|
|
308
308
|
"main-toolbar--stacked": i
|
|
309
309
|
}),
|
|
310
310
|
ref: n,
|
|
@@ -319,7 +319,7 @@ const Hn = ge.createContext(null), qn = ge.createContext([!1, () => {
|
|
|
319
319
|
}) => /* @__PURE__ */ p(
|
|
320
320
|
e || "h1",
|
|
321
321
|
{
|
|
322
|
-
className:
|
|
322
|
+
className: L("main-toolbar__title p-heading--4", t),
|
|
323
323
|
"data-testid": "main-toolbar-heading",
|
|
324
324
|
...i,
|
|
325
325
|
children: n
|
|
@@ -328,7 +328,7 @@ const Hn = ge.createContext(null), qn = ge.createContext([!1, () => {
|
|
|
328
328
|
const n = ge.useContext(Hn), [t, i] = ge.useContext(qn), o = ge.useRef(null);
|
|
329
329
|
return ge.useEffect(() => {
|
|
330
330
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
331
|
-
}, [i, n, o]), /* @__PURE__ */
|
|
331
|
+
}, [i, n, o]), /* @__PURE__ */ z(be, { children: [
|
|
332
332
|
/* @__PURE__ */ p(
|
|
333
333
|
"div",
|
|
334
334
|
{
|
|
@@ -342,7 +342,7 @@ const Hn = ge.createContext(null), qn = ge.createContext([!1, () => {
|
|
|
342
342
|
/* @__PURE__ */ p(
|
|
343
343
|
"div",
|
|
344
344
|
{
|
|
345
|
-
className:
|
|
345
|
+
className: L("main-toolbar__controls", {
|
|
346
346
|
"main-toolbar__controls--stacked": t
|
|
347
347
|
}),
|
|
348
348
|
children: e
|
|
@@ -357,10 +357,10 @@ const so = ({ children: e }) => /* @__PURE__ */ p(be, { children: e }), co = ({
|
|
|
357
357
|
setIsCollapsed: n,
|
|
358
358
|
className: t
|
|
359
359
|
}) => /* @__PURE__ */ p(
|
|
360
|
-
|
|
360
|
+
Wt,
|
|
361
361
|
{
|
|
362
362
|
className: "p-side-navigation__tooltip-wrapper",
|
|
363
|
-
message: /* @__PURE__ */
|
|
363
|
+
message: /* @__PURE__ */ z(be, { children: [
|
|
364
364
|
e ? "expand" : "collapse",
|
|
365
365
|
"( ",
|
|
366
366
|
/* @__PURE__ */ p("code", { children: "[" }),
|
|
@@ -369,11 +369,11 @@ const so = ({ children: e }) => /* @__PURE__ */ p(be, { children: e }), co = ({
|
|
|
369
369
|
position: "right",
|
|
370
370
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
371
371
|
children: /* @__PURE__ */ p(
|
|
372
|
-
|
|
372
|
+
Ee,
|
|
373
373
|
{
|
|
374
374
|
appearance: "base",
|
|
375
375
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
376
|
-
className:
|
|
376
|
+
className: L(
|
|
377
377
|
"is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
|
|
378
378
|
t
|
|
379
379
|
),
|
|
@@ -384,24 +384,24 @@ const so = ({ children: e }) => /* @__PURE__ */ p(be, { children: e }), co = ({
|
|
|
384
384
|
}
|
|
385
385
|
)
|
|
386
386
|
}
|
|
387
|
-
), po = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), uo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), go = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), fo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), vo = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }),
|
|
387
|
+
), po = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), uo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), go = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), fo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), vo = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Ce, { className: "p-side-navigation__icon", light: e, name: n }), ho = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: L("p-side-navigation__item", n, { "has-active-child": t }), children: e }), xo = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), wo = ({
|
|
388
388
|
as: e,
|
|
389
389
|
...n
|
|
390
390
|
}) => /* @__PURE__ */ p(
|
|
391
391
|
e || "a",
|
|
392
392
|
{
|
|
393
|
-
className:
|
|
393
|
+
className: L("p-side-navigation__link", n.className),
|
|
394
394
|
...n
|
|
395
395
|
}
|
|
396
|
-
), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className:
|
|
396
|
+
), yo = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: L("p-side-navigation__list", n), children: e }), bo = ({
|
|
397
397
|
as: e,
|
|
398
398
|
children: n,
|
|
399
399
|
className: t,
|
|
400
400
|
...i
|
|
401
|
-
}) => /* @__PURE__ */ p(e || "a", { className:
|
|
401
|
+
}) => /* @__PURE__ */ p(e || "a", { className: L("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), So = ({ children: e }) => Pi(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Co = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
|
|
402
402
|
"div",
|
|
403
403
|
{
|
|
404
|
-
className:
|
|
404
|
+
className: L("p-panel__logo-name is-fading-when-collapsed", {
|
|
405
405
|
"p-panel__logo-name--small": n === "small"
|
|
406
406
|
}),
|
|
407
407
|
children: e
|
|
@@ -411,10 +411,10 @@ const so = ({ children: e }) => /* @__PURE__ */ p(be, { children: e }), co = ({
|
|
|
411
411
|
className: n,
|
|
412
412
|
onClick: t
|
|
413
413
|
}) => /* @__PURE__ */ p(
|
|
414
|
-
|
|
414
|
+
Ee,
|
|
415
415
|
{
|
|
416
416
|
appearance: "base",
|
|
417
|
-
className:
|
|
417
|
+
className: L(
|
|
418
418
|
"p-side-navigation__button--menu has-icon is-dark",
|
|
419
419
|
n
|
|
420
420
|
),
|
|
@@ -423,7 +423,7 @@ const so = ({ children: e }) => /* @__PURE__ */ p(be, { children: e }), co = ({
|
|
|
423
423
|
},
|
|
424
424
|
children: /* @__PURE__ */ p(be, { children: e })
|
|
425
425
|
}
|
|
426
|
-
), Eo = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className:
|
|
426
|
+
), Eo = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), ae = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), Po = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: L("p-panel is-dark", n), children: e }) });
|
|
427
427
|
ae.Header = mo;
|
|
428
428
|
ae.Banner = so;
|
|
429
429
|
ae.Drawer = go;
|
|
@@ -432,23 +432,23 @@ ae.CollapseToggle = co;
|
|
|
432
432
|
ae.Content = po;
|
|
433
433
|
ae.Footer = fo;
|
|
434
434
|
ae.List = yo;
|
|
435
|
-
ae.Item =
|
|
435
|
+
ae.Item = ho;
|
|
436
436
|
ae.Link = wo;
|
|
437
437
|
ae.Text = Eo;
|
|
438
438
|
ae.Icon = vo;
|
|
439
|
-
ae.Label =
|
|
439
|
+
ae.Label = xo;
|
|
440
440
|
ae.Logo = bo;
|
|
441
441
|
ae.LogoTag = _o;
|
|
442
442
|
ae.LogoIcon = So;
|
|
443
443
|
ae.LogoName = Co;
|
|
444
444
|
ae.LogoText = Ro;
|
|
445
445
|
Po.MenuButton = ko;
|
|
446
|
-
const Bn =
|
|
447
|
-
const e =
|
|
446
|
+
const Bn = Bt(null), lt = () => {
|
|
447
|
+
const e = rt(Bn);
|
|
448
448
|
if (!e)
|
|
449
449
|
throw new Error("useSidePanel must be used within a SidePanelProvider");
|
|
450
450
|
return e;
|
|
451
|
-
},
|
|
451
|
+
}, pl = ({
|
|
452
452
|
children: e
|
|
453
453
|
}) => {
|
|
454
454
|
const [n, t] = pe({
|
|
@@ -494,7 +494,7 @@ const Bn = Gt(null), rt = () => {
|
|
|
494
494
|
}
|
|
495
495
|
);
|
|
496
496
|
}, Fo = () => {
|
|
497
|
-
const e = Li(), { closeSidePanel: n } =
|
|
497
|
+
const e = Li(), { closeSidePanel: n } = lt();
|
|
498
498
|
le(
|
|
499
499
|
() => {
|
|
500
500
|
n();
|
|
@@ -503,7 +503,7 @@ const Bn = Gt(null), rt = () => {
|
|
|
503
503
|
[e.pathname, e.search, e.hash]
|
|
504
504
|
);
|
|
505
505
|
}, Io = () => {
|
|
506
|
-
const { setSidePanelSize: e } =
|
|
506
|
+
const { setSidePanelSize: e } = lt();
|
|
507
507
|
le(
|
|
508
508
|
() => () => {
|
|
509
509
|
e("regular");
|
|
@@ -512,46 +512,71 @@ const Bn = Gt(null), rt = () => {
|
|
|
512
512
|
[]
|
|
513
513
|
);
|
|
514
514
|
}, Do = () => {
|
|
515
|
-
const { closeSidePanel: e } =
|
|
516
|
-
|
|
515
|
+
const { closeSidePanel: e } = lt();
|
|
516
|
+
zn(() => {
|
|
517
517
|
e();
|
|
518
518
|
});
|
|
519
|
-
},
|
|
519
|
+
}, Ao = () => {
|
|
520
520
|
Do(), Fo(), Io();
|
|
521
|
-
const { isOpen: e, title: n, component: t, props: i, size: o } =
|
|
521
|
+
const { isOpen: e, title: n, component: t, props: i, size: o } = lt();
|
|
522
522
|
return /* @__PURE__ */ p(
|
|
523
523
|
Oi,
|
|
524
524
|
{
|
|
525
525
|
"aria-label": n ?? void 0,
|
|
526
|
-
className:
|
|
526
|
+
className: L({
|
|
527
527
|
"is-narrow": o === "narrow",
|
|
528
528
|
"is-large": o === "large",
|
|
529
529
|
"is-wide": o === "wide"
|
|
530
530
|
}),
|
|
531
531
|
collapsed: !e,
|
|
532
532
|
id: "aside-panel",
|
|
533
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ z(ke, { children: [
|
|
534
534
|
n ? /* @__PURE__ */ p("div", { className: "row section-header section-header--side-panel", children: /* @__PURE__ */ p("div", { className: "col-12", children: /* @__PURE__ */ p("h3", { className: "section-header__title u-flex--no-shrink p-heading--4", children: n }) }) }) : null,
|
|
535
535
|
e && t && /* @__PURE__ */ p(t, { ...i })
|
|
536
536
|
] })
|
|
537
537
|
}
|
|
538
538
|
);
|
|
539
|
-
},
|
|
539
|
+
}, $o = ({ hasTitle: e }) => /* @__PURE__ */ z(ke, { "aria-hidden": "true", className: "aside-skeleton", children: [
|
|
540
|
+
e && /* @__PURE__ */ p(ke.Title, { children: /* @__PURE__ */ p(_e, { height: "2rem", variant: "block", width: "16ch" }) }),
|
|
541
|
+
/* @__PURE__ */ z(ke.Content, { className: "aside-skeleton__form", children: [
|
|
542
|
+
/* @__PURE__ */ z("div", { className: "layout-skeleton__form-description", children: [
|
|
543
|
+
/* @__PURE__ */ p(_e, { height: "1.5rem", variant: "block", width: "100%" }),
|
|
544
|
+
/* @__PURE__ */ p(_e, { height: "1.5rem", variant: "block", width: "70%" })
|
|
545
|
+
] }),
|
|
546
|
+
Array.from({ length: 2 }).map((n, t) => /* @__PURE__ */ z(
|
|
547
|
+
"div",
|
|
548
|
+
{
|
|
549
|
+
className: "layout-skeleton__form-field",
|
|
550
|
+
children: [
|
|
551
|
+
/* @__PURE__ */ p(_e, { height: "1.5rem", variant: "block", width: "14ch" }),
|
|
552
|
+
/* @__PURE__ */ p(_e, { height: "2.5rem", variant: "block", width: "100%" })
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
`aside-skeleton-field-${t}`
|
|
556
|
+
))
|
|
557
|
+
] }),
|
|
558
|
+
/* @__PURE__ */ z(ke.Footer, { className: "aside-skeleton__footer", children: [
|
|
559
|
+
/* @__PURE__ */ p(_e, { height: "2rem", variant: "block", width: "8ch" }),
|
|
560
|
+
/* @__PURE__ */ p(_e, { height: "2rem", variant: "block", width: "10ch" })
|
|
561
|
+
] })
|
|
562
|
+
] });
|
|
563
|
+
Ao.Skeleton = $o;
|
|
564
|
+
const Un = ({
|
|
540
565
|
children: e,
|
|
541
566
|
className: n,
|
|
542
567
|
isVisible: t
|
|
543
568
|
}) => /* @__PURE__ */ p(
|
|
544
569
|
"div",
|
|
545
570
|
{
|
|
546
|
-
className:
|
|
571
|
+
className: L("fade-in--down", n),
|
|
547
572
|
"aria-hidden": t ? "false" : "true",
|
|
548
573
|
style: { visibility: t ? "visible" : "hidden" },
|
|
549
574
|
children: e
|
|
550
575
|
}
|
|
551
|
-
),
|
|
576
|
+
), ul = ({
|
|
552
577
|
children: e,
|
|
553
578
|
...n
|
|
554
|
-
}) => /* @__PURE__ */ p(Un, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }),
|
|
579
|
+
}) => /* @__PURE__ */ p(Un, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), Mo = ({
|
|
555
580
|
className: e,
|
|
556
581
|
currentPage: n,
|
|
557
582
|
error: t,
|
|
@@ -566,10 +591,10 @@ const Bn = Gt(null), rt = () => {
|
|
|
566
591
|
"nav",
|
|
567
592
|
{
|
|
568
593
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
569
|
-
className:
|
|
570
|
-
children: /* @__PURE__ */
|
|
594
|
+
className: L("p-pagination", e),
|
|
595
|
+
children: /* @__PURE__ */ z("span", { className: "p-pagination--items", children: [
|
|
571
596
|
/* @__PURE__ */ p(
|
|
572
|
-
|
|
597
|
+
Ee,
|
|
573
598
|
{
|
|
574
599
|
"aria-label": "Previous page",
|
|
575
600
|
className: "p-pagination__link--previous",
|
|
@@ -598,12 +623,12 @@ const Bn = Gt(null), rt = () => {
|
|
|
598
623
|
}
|
|
599
624
|
),
|
|
600
625
|
" ",
|
|
601
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ z("strong", { className: "u-no-wrap", children: [
|
|
602
627
|
" of ",
|
|
603
628
|
s
|
|
604
629
|
] }),
|
|
605
630
|
/* @__PURE__ */ p(
|
|
606
|
-
|
|
631
|
+
Ee,
|
|
607
632
|
{
|
|
608
633
|
"aria-label": "Next page",
|
|
609
634
|
className: "p-pagination__link--next",
|
|
@@ -615,7 +640,7 @@ const Bn = Gt(null), rt = () => {
|
|
|
615
640
|
)
|
|
616
641
|
] })
|
|
617
642
|
}
|
|
618
|
-
),
|
|
643
|
+
), Oo = ({
|
|
619
644
|
currentPage: e,
|
|
620
645
|
disabled: n,
|
|
621
646
|
paginate: t,
|
|
@@ -623,7 +648,7 @@ const Bn = Gt(null), rt = () => {
|
|
|
623
648
|
}) => {
|
|
624
649
|
const [o, a] = pe(e), [l, r] = pe("");
|
|
625
650
|
return /* @__PURE__ */ p(
|
|
626
|
-
|
|
651
|
+
Mo,
|
|
627
652
|
{
|
|
628
653
|
currentPage: o,
|
|
629
654
|
error: l,
|
|
@@ -644,13 +669,13 @@ const Bn = Gt(null), rt = () => {
|
|
|
644
669
|
totalPages: i
|
|
645
670
|
}
|
|
646
671
|
);
|
|
647
|
-
},
|
|
672
|
+
}, dl = ({ activeStep: e, items: n }) => /* @__PURE__ */ p("ol", { className: "stepper", children: n.map((t, i) => {
|
|
648
673
|
const o = i === e, a = i < e;
|
|
649
674
|
return /* @__PURE__ */ p("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ p(
|
|
650
675
|
"p",
|
|
651
676
|
{
|
|
652
677
|
"aria-label": a ? `${t} (completed)` : t,
|
|
653
|
-
className:
|
|
678
|
+
className: L("stepper__title", {
|
|
654
679
|
"stepper__title--is-active": o,
|
|
655
680
|
"stepper__title--is-complete": a
|
|
656
681
|
}),
|
|
@@ -658,7 +683,7 @@ const Bn = Gt(null), rt = () => {
|
|
|
658
683
|
}
|
|
659
684
|
) }, i);
|
|
660
685
|
}) });
|
|
661
|
-
var
|
|
686
|
+
var We = { exports: {} }, Ye = { exports: {} }, K = {};
|
|
662
687
|
/** @license React v16.13.1
|
|
663
688
|
* react-is.production.min.js
|
|
664
689
|
*
|
|
@@ -667,32 +692,32 @@ var Ke = { exports: {} }, We = { exports: {} }, K = {};
|
|
|
667
692
|
* This source code is licensed under the MIT license found in the
|
|
668
693
|
* LICENSE file in the root directory of this source tree.
|
|
669
694
|
*/
|
|
670
|
-
var
|
|
671
|
-
function
|
|
672
|
-
if (
|
|
673
|
-
|
|
674
|
-
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, l = e ? Symbol.for("react.provider") : 60109, r = 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, S = e ? Symbol.for("react.fundamental") : 60117,
|
|
675
|
-
function w(
|
|
676
|
-
if (typeof
|
|
677
|
-
var F =
|
|
695
|
+
var cn;
|
|
696
|
+
function jo() {
|
|
697
|
+
if (cn) return K;
|
|
698
|
+
cn = 1;
|
|
699
|
+
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, l = e ? Symbol.for("react.provider") : 60109, r = 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, S = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
700
|
+
function w(x) {
|
|
701
|
+
if (typeof x == "object" && x !== null) {
|
|
702
|
+
var F = x.$$typeof;
|
|
678
703
|
switch (F) {
|
|
679
704
|
case n:
|
|
680
|
-
switch (
|
|
705
|
+
switch (x = x.type, x) {
|
|
681
706
|
case s:
|
|
682
707
|
case c:
|
|
683
708
|
case i:
|
|
684
709
|
case a:
|
|
685
710
|
case o:
|
|
686
711
|
case f:
|
|
687
|
-
return
|
|
712
|
+
return x;
|
|
688
713
|
default:
|
|
689
|
-
switch (
|
|
714
|
+
switch (x = x && x.$$typeof, x) {
|
|
690
715
|
case r:
|
|
691
716
|
case d:
|
|
692
717
|
case m:
|
|
693
718
|
case u:
|
|
694
719
|
case l:
|
|
695
|
-
return
|
|
720
|
+
return x;
|
|
696
721
|
default:
|
|
697
722
|
return F;
|
|
698
723
|
}
|
|
@@ -702,35 +727,35 @@ function Mo() {
|
|
|
702
727
|
}
|
|
703
728
|
}
|
|
704
729
|
}
|
|
705
|
-
function E(
|
|
706
|
-
return w(
|
|
730
|
+
function E(x) {
|
|
731
|
+
return w(x) === c;
|
|
707
732
|
}
|
|
708
|
-
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = r, K.ContextProvider = l, 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(
|
|
709
|
-
return E(
|
|
710
|
-
}, K.isConcurrentMode = E, K.isContextConsumer = function(
|
|
711
|
-
return w(
|
|
712
|
-
}, K.isContextProvider = function(
|
|
713
|
-
return w(
|
|
714
|
-
}, K.isElement = function(
|
|
715
|
-
return typeof
|
|
716
|
-
}, K.isForwardRef = function(
|
|
717
|
-
return w(
|
|
718
|
-
}, K.isFragment = function(
|
|
719
|
-
return w(
|
|
720
|
-
}, K.isLazy = function(
|
|
721
|
-
return w(
|
|
722
|
-
}, K.isMemo = function(
|
|
723
|
-
return w(
|
|
724
|
-
}, K.isPortal = function(
|
|
725
|
-
return w(
|
|
726
|
-
}, K.isProfiler = function(
|
|
727
|
-
return w(
|
|
728
|
-
}, K.isStrictMode = function(
|
|
729
|
-
return w(
|
|
730
|
-
}, K.isSuspense = function(
|
|
731
|
-
return w(
|
|
732
|
-
}, K.isValidElementType = function(
|
|
733
|
-
return typeof
|
|
733
|
+
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = r, K.ContextProvider = l, 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) {
|
|
734
|
+
return E(x) || w(x) === s;
|
|
735
|
+
}, K.isConcurrentMode = E, K.isContextConsumer = function(x) {
|
|
736
|
+
return w(x) === r;
|
|
737
|
+
}, K.isContextProvider = function(x) {
|
|
738
|
+
return w(x) === l;
|
|
739
|
+
}, K.isElement = function(x) {
|
|
740
|
+
return typeof x == "object" && x !== null && x.$$typeof === n;
|
|
741
|
+
}, K.isForwardRef = function(x) {
|
|
742
|
+
return w(x) === d;
|
|
743
|
+
}, K.isFragment = function(x) {
|
|
744
|
+
return w(x) === i;
|
|
745
|
+
}, K.isLazy = function(x) {
|
|
746
|
+
return w(x) === m;
|
|
747
|
+
}, K.isMemo = function(x) {
|
|
748
|
+
return w(x) === u;
|
|
749
|
+
}, K.isPortal = function(x) {
|
|
750
|
+
return w(x) === t;
|
|
751
|
+
}, K.isProfiler = function(x) {
|
|
752
|
+
return w(x) === a;
|
|
753
|
+
}, K.isStrictMode = function(x) {
|
|
754
|
+
return w(x) === o;
|
|
755
|
+
}, K.isSuspense = function(x) {
|
|
756
|
+
return w(x) === f;
|
|
757
|
+
}, K.isValidElementType = function(x) {
|
|
758
|
+
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 === l || x.$$typeof === r || x.$$typeof === d || x.$$typeof === S || x.$$typeof === h || x.$$typeof === b || x.$$typeof === v);
|
|
734
759
|
}, K.typeOf = w, K;
|
|
735
760
|
}
|
|
736
761
|
var W = {};
|
|
@@ -742,37 +767,37 @@ var W = {};
|
|
|
742
767
|
* This source code is licensed under the MIT license found in the
|
|
743
768
|
* LICENSE file in the root directory of this source tree.
|
|
744
769
|
*/
|
|
745
|
-
var
|
|
746
|
-
function
|
|
747
|
-
return
|
|
748
|
-
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, l = e ? Symbol.for("react.provider") : 60109, r = 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, S = e ? Symbol.for("react.fundamental") : 60117,
|
|
770
|
+
var pn;
|
|
771
|
+
function To() {
|
|
772
|
+
return pn || (pn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
773
|
+
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, l = e ? Symbol.for("react.provider") : 60109, r = 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, S = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
749
774
|
function w(C) {
|
|
750
775
|
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
751
|
-
C === i || C === c || C === a || C === o || C === f || C === g || typeof C == "object" && C !== null && (C.$$typeof === m || C.$$typeof === u || C.$$typeof === l || C.$$typeof === r || C.$$typeof === d || C.$$typeof === S || C.$$typeof ===
|
|
776
|
+
C === i || C === c || C === a || C === o || C === f || C === g || typeof C == "object" && C !== null && (C.$$typeof === m || C.$$typeof === u || C.$$typeof === l || C.$$typeof === r || C.$$typeof === d || C.$$typeof === S || C.$$typeof === h || C.$$typeof === b || C.$$typeof === v);
|
|
752
777
|
}
|
|
753
778
|
function E(C) {
|
|
754
779
|
if (typeof C == "object" && C !== null) {
|
|
755
780
|
var me = C.$$typeof;
|
|
756
781
|
switch (me) {
|
|
757
782
|
case n:
|
|
758
|
-
var
|
|
759
|
-
switch (
|
|
783
|
+
var De = C.type;
|
|
784
|
+
switch (De) {
|
|
760
785
|
case s:
|
|
761
786
|
case c:
|
|
762
787
|
case i:
|
|
763
788
|
case a:
|
|
764
789
|
case o:
|
|
765
790
|
case f:
|
|
766
|
-
return
|
|
791
|
+
return De;
|
|
767
792
|
default:
|
|
768
|
-
var
|
|
769
|
-
switch (
|
|
793
|
+
var Ne = De && De.$$typeof;
|
|
794
|
+
switch (Ne) {
|
|
770
795
|
case r:
|
|
771
796
|
case d:
|
|
772
797
|
case m:
|
|
773
798
|
case u:
|
|
774
799
|
case l:
|
|
775
|
-
return
|
|
800
|
+
return Ne;
|
|
776
801
|
default:
|
|
777
802
|
return me;
|
|
778
803
|
}
|
|
@@ -782,7 +807,7 @@ function Oo() {
|
|
|
782
807
|
}
|
|
783
808
|
}
|
|
784
809
|
}
|
|
785
|
-
var
|
|
810
|
+
var x = s, F = c, H = r, Y = l, Z = n, ue = d, de = i, xe = m, P = u, R = t, B = a, Q = o, ee = f, se = !1;
|
|
786
811
|
function ne(C) {
|
|
787
812
|
return se || (se = !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.")), y(C) || E(C) === s;
|
|
788
813
|
}
|
|
@@ -801,7 +826,7 @@ function Oo() {
|
|
|
801
826
|
function I(C) {
|
|
802
827
|
return E(C) === d;
|
|
803
828
|
}
|
|
804
|
-
function
|
|
829
|
+
function N(C) {
|
|
805
830
|
return E(C) === i;
|
|
806
831
|
}
|
|
807
832
|
function M(C) {
|
|
@@ -810,34 +835,34 @@ function Oo() {
|
|
|
810
835
|
function T(C) {
|
|
811
836
|
return E(C) === u;
|
|
812
837
|
}
|
|
813
|
-
function
|
|
838
|
+
function q(C) {
|
|
814
839
|
return E(C) === t;
|
|
815
840
|
}
|
|
816
|
-
function
|
|
841
|
+
function G(C) {
|
|
817
842
|
return E(C) === a;
|
|
818
843
|
}
|
|
819
|
-
function
|
|
844
|
+
function V(C) {
|
|
820
845
|
return E(C) === o;
|
|
821
846
|
}
|
|
822
847
|
function te(C) {
|
|
823
848
|
return E(C) === f;
|
|
824
849
|
}
|
|
825
|
-
W.AsyncMode =
|
|
850
|
+
W.AsyncMode = x, W.ConcurrentMode = F, W.ContextConsumer = H, W.ContextProvider = Y, W.Element = Z, W.ForwardRef = ue, W.Fragment = de, W.Lazy = xe, W.Memo = P, W.Portal = R, W.Profiler = B, W.StrictMode = Q, W.Suspense = ee, W.isAsyncMode = ne, W.isConcurrentMode = y, W.isContextConsumer = k, W.isContextProvider = j, W.isElement = O, W.isForwardRef = I, W.isFragment = N, W.isLazy = M, W.isMemo = T, W.isPortal = q, W.isProfiler = G, W.isStrictMode = V, W.isSuspense = te, W.isValidElementType = w, W.typeOf = E;
|
|
826
851
|
}()), W;
|
|
827
852
|
}
|
|
828
|
-
var
|
|
853
|
+
var un;
|
|
829
854
|
function Kn() {
|
|
830
|
-
return
|
|
855
|
+
return un || (un = 1, process.env.NODE_ENV === "production" ? Ye.exports = jo() : Ye.exports = To()), Ye.exports;
|
|
831
856
|
}
|
|
832
857
|
/*
|
|
833
858
|
object-assign
|
|
834
859
|
(c) Sindre Sorhus
|
|
835
860
|
@license MIT
|
|
836
861
|
*/
|
|
837
|
-
var xt,
|
|
838
|
-
function
|
|
839
|
-
if (
|
|
840
|
-
|
|
862
|
+
var xt, dn;
|
|
863
|
+
function zo() {
|
|
864
|
+
if (dn) return xt;
|
|
865
|
+
dn = 1;
|
|
841
866
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
842
867
|
function i(a) {
|
|
843
868
|
if (a == null)
|
|
@@ -880,25 +905,25 @@ function jo() {
|
|
|
880
905
|
return s;
|
|
881
906
|
}, xt;
|
|
882
907
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
885
|
-
if (
|
|
886
|
-
|
|
908
|
+
var wt, gn;
|
|
909
|
+
function Jt() {
|
|
910
|
+
if (gn) return wt;
|
|
911
|
+
gn = 1;
|
|
887
912
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
888
|
-
return
|
|
913
|
+
return wt = e, wt;
|
|
889
914
|
}
|
|
890
|
-
var
|
|
915
|
+
var yt, fn;
|
|
891
916
|
function Wn() {
|
|
892
|
-
return
|
|
917
|
+
return fn || (fn = 1, yt = Function.call.bind(Object.prototype.hasOwnProperty)), yt;
|
|
893
918
|
}
|
|
894
|
-
var
|
|
895
|
-
function
|
|
896
|
-
if (
|
|
897
|
-
|
|
919
|
+
var bt, mn;
|
|
920
|
+
function No() {
|
|
921
|
+
if (mn) return bt;
|
|
922
|
+
mn = 1;
|
|
898
923
|
var e = function() {
|
|
899
924
|
};
|
|
900
925
|
if (process.env.NODE_ENV !== "production") {
|
|
901
|
-
var n = /* @__PURE__ */
|
|
926
|
+
var n = /* @__PURE__ */ Jt(), t = {}, i = /* @__PURE__ */ Wn();
|
|
902
927
|
e = function(a) {
|
|
903
928
|
var l = "Warning: " + a;
|
|
904
929
|
typeof console < "u" && console.error(l);
|
|
@@ -938,13 +963,13 @@ function To() {
|
|
|
938
963
|
}
|
|
939
964
|
return o.resetWarningCache = function() {
|
|
940
965
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
941
|
-
},
|
|
966
|
+
}, bt = o, bt;
|
|
942
967
|
}
|
|
943
|
-
var
|
|
944
|
-
function
|
|
945
|
-
if (
|
|
946
|
-
|
|
947
|
-
var e = Kn(), n =
|
|
968
|
+
var St, vn;
|
|
969
|
+
function Vo() {
|
|
970
|
+
if (vn) return St;
|
|
971
|
+
vn = 1;
|
|
972
|
+
var e = Kn(), n = zo(), t = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ Wn(), o = /* @__PURE__ */ No(), a = function() {
|
|
948
973
|
};
|
|
949
974
|
process.env.NODE_ENV !== "production" && (a = function(r) {
|
|
950
975
|
var s = "Warning: " + r;
|
|
@@ -957,7 +982,7 @@ function zo() {
|
|
|
957
982
|
function l() {
|
|
958
983
|
return null;
|
|
959
984
|
}
|
|
960
|
-
return
|
|
985
|
+
return St = function(r, s) {
|
|
961
986
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
962
987
|
function f(y) {
|
|
963
988
|
var k = y && (c && y[c] || y[d]);
|
|
@@ -965,24 +990,24 @@ function zo() {
|
|
|
965
990
|
return k;
|
|
966
991
|
}
|
|
967
992
|
var g = "<<anonymous>>", u = {
|
|
968
|
-
array:
|
|
969
|
-
bigint:
|
|
970
|
-
bool:
|
|
971
|
-
func:
|
|
972
|
-
number:
|
|
973
|
-
object:
|
|
974
|
-
string:
|
|
975
|
-
symbol:
|
|
993
|
+
array: h("array"),
|
|
994
|
+
bigint: h("bigint"),
|
|
995
|
+
bool: h("boolean"),
|
|
996
|
+
func: h("function"),
|
|
997
|
+
number: h("number"),
|
|
998
|
+
object: h("object"),
|
|
999
|
+
string: h("string"),
|
|
1000
|
+
symbol: h("symbol"),
|
|
976
1001
|
any: b(),
|
|
977
1002
|
arrayOf: w,
|
|
978
1003
|
element: E(),
|
|
979
|
-
elementType:
|
|
1004
|
+
elementType: x(),
|
|
980
1005
|
instanceOf: F,
|
|
981
1006
|
node: ue(),
|
|
982
1007
|
objectOf: Y,
|
|
983
|
-
oneOf:
|
|
1008
|
+
oneOf: H,
|
|
984
1009
|
oneOfType: Z,
|
|
985
|
-
shape:
|
|
1010
|
+
shape: xe,
|
|
986
1011
|
exact: P
|
|
987
1012
|
};
|
|
988
1013
|
function m(y, k) {
|
|
@@ -995,33 +1020,33 @@ function zo() {
|
|
|
995
1020
|
function S(y) {
|
|
996
1021
|
if (process.env.NODE_ENV !== "production")
|
|
997
1022
|
var k = {}, j = 0;
|
|
998
|
-
function O(
|
|
999
|
-
if (
|
|
1023
|
+
function O(N, M, T, q, G, V, te) {
|
|
1024
|
+
if (q = q || g, V = V || T, te !== t) {
|
|
1000
1025
|
if (s) {
|
|
1001
1026
|
var C = new Error(
|
|
1002
1027
|
"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"
|
|
1003
1028
|
);
|
|
1004
1029
|
throw C.name = "Invariant Violation", C;
|
|
1005
1030
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1006
|
-
var me =
|
|
1031
|
+
var me = q + ":" + T;
|
|
1007
1032
|
!k[me] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1008
1033
|
j < 3 && (a(
|
|
1009
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1034
|
+
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + q + "`. 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."
|
|
1010
1035
|
), k[me] = !0, j++);
|
|
1011
1036
|
}
|
|
1012
1037
|
}
|
|
1013
|
-
return M[T] == null ?
|
|
1038
|
+
return M[T] == null ? N ? M[T] === null ? new v("The " + G + " `" + V + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + G + " `" + V + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : y(M, T, q, G, V);
|
|
1014
1039
|
}
|
|
1015
1040
|
var I = O.bind(null, !1);
|
|
1016
1041
|
return I.isRequired = O.bind(null, !0), I;
|
|
1017
1042
|
}
|
|
1018
|
-
function
|
|
1019
|
-
function k(j, O, I,
|
|
1020
|
-
var
|
|
1021
|
-
if (
|
|
1022
|
-
var
|
|
1043
|
+
function h(y) {
|
|
1044
|
+
function k(j, O, I, N, M, T) {
|
|
1045
|
+
var q = j[O], G = Q(q);
|
|
1046
|
+
if (G !== y) {
|
|
1047
|
+
var V = ee(q);
|
|
1023
1048
|
return new v(
|
|
1024
|
-
"Invalid " +
|
|
1049
|
+
"Invalid " + N + " `" + M + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("`" + y + "`."),
|
|
1025
1050
|
{ expectedType: y }
|
|
1026
1051
|
);
|
|
1027
1052
|
}
|
|
@@ -1033,84 +1058,84 @@ function zo() {
|
|
|
1033
1058
|
return S(l);
|
|
1034
1059
|
}
|
|
1035
1060
|
function w(y) {
|
|
1036
|
-
function k(j, O, I,
|
|
1061
|
+
function k(j, O, I, N, M) {
|
|
1037
1062
|
if (typeof y != "function")
|
|
1038
1063
|
return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
1039
1064
|
var T = j[O];
|
|
1040
1065
|
if (!Array.isArray(T)) {
|
|
1041
|
-
var
|
|
1042
|
-
return new v("Invalid " +
|
|
1066
|
+
var q = Q(T);
|
|
1067
|
+
return new v("Invalid " + N + " `" + M + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an array."));
|
|
1043
1068
|
}
|
|
1044
|
-
for (var
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
return
|
|
1069
|
+
for (var G = 0; G < T.length; G++) {
|
|
1070
|
+
var V = y(T, G, I, N, M + "[" + G + "]", t);
|
|
1071
|
+
if (V instanceof Error)
|
|
1072
|
+
return V;
|
|
1048
1073
|
}
|
|
1049
1074
|
return null;
|
|
1050
1075
|
}
|
|
1051
1076
|
return S(k);
|
|
1052
1077
|
}
|
|
1053
1078
|
function E() {
|
|
1054
|
-
function y(k, j, O, I,
|
|
1079
|
+
function y(k, j, O, I, N) {
|
|
1055
1080
|
var M = k[j];
|
|
1056
1081
|
if (!r(M)) {
|
|
1057
1082
|
var T = Q(M);
|
|
1058
|
-
return new v("Invalid " + I + " `" +
|
|
1083
|
+
return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1059
1084
|
}
|
|
1060
1085
|
return null;
|
|
1061
1086
|
}
|
|
1062
1087
|
return S(y);
|
|
1063
1088
|
}
|
|
1064
|
-
function
|
|
1065
|
-
function y(k, j, O, I,
|
|
1089
|
+
function x() {
|
|
1090
|
+
function y(k, j, O, I, N) {
|
|
1066
1091
|
var M = k[j];
|
|
1067
1092
|
if (!e.isValidElementType(M)) {
|
|
1068
1093
|
var T = Q(M);
|
|
1069
|
-
return new v("Invalid " + I + " `" +
|
|
1094
|
+
return new v("Invalid " + I + " `" + N + "` of type " + ("`" + T + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1070
1095
|
}
|
|
1071
1096
|
return null;
|
|
1072
1097
|
}
|
|
1073
1098
|
return S(y);
|
|
1074
1099
|
}
|
|
1075
1100
|
function F(y) {
|
|
1076
|
-
function k(j, O, I,
|
|
1101
|
+
function k(j, O, I, N, M) {
|
|
1077
1102
|
if (!(j[O] instanceof y)) {
|
|
1078
|
-
var T = y.name || g,
|
|
1079
|
-
return new v("Invalid " +
|
|
1103
|
+
var T = y.name || g, q = ne(j[O]);
|
|
1104
|
+
return new v("Invalid " + N + " `" + M + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + T + "`."));
|
|
1080
1105
|
}
|
|
1081
1106
|
return null;
|
|
1082
1107
|
}
|
|
1083
1108
|
return S(k);
|
|
1084
1109
|
}
|
|
1085
|
-
function
|
|
1110
|
+
function H(y) {
|
|
1086
1111
|
if (!Array.isArray(y))
|
|
1087
1112
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1088
1113
|
"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])."
|
|
1089
1114
|
) : a("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
1090
|
-
function k(j, O, I,
|
|
1091
|
-
for (var T = j[O],
|
|
1092
|
-
if (m(T, y[
|
|
1115
|
+
function k(j, O, I, N, M) {
|
|
1116
|
+
for (var T = j[O], q = 0; q < y.length; q++)
|
|
1117
|
+
if (m(T, y[q]))
|
|
1093
1118
|
return null;
|
|
1094
|
-
var
|
|
1119
|
+
var G = JSON.stringify(y, function(te, C) {
|
|
1095
1120
|
var me = ee(C);
|
|
1096
1121
|
return me === "symbol" ? String(C) : C;
|
|
1097
1122
|
});
|
|
1098
|
-
return new v("Invalid " +
|
|
1123
|
+
return new v("Invalid " + N + " `" + M + "` of value `" + String(T) + "` " + ("supplied to `" + I + "`, expected one of " + G + "."));
|
|
1099
1124
|
}
|
|
1100
1125
|
return S(k);
|
|
1101
1126
|
}
|
|
1102
1127
|
function Y(y) {
|
|
1103
|
-
function k(j, O, I,
|
|
1128
|
+
function k(j, O, I, N, M) {
|
|
1104
1129
|
if (typeof y != "function")
|
|
1105
1130
|
return new v("Property `" + M + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
1106
|
-
var T = j[O],
|
|
1107
|
-
if (
|
|
1108
|
-
return new v("Invalid " +
|
|
1109
|
-
for (var
|
|
1110
|
-
if (i(T,
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
return
|
|
1131
|
+
var T = j[O], q = Q(T);
|
|
1132
|
+
if (q !== "object")
|
|
1133
|
+
return new v("Invalid " + N + " `" + M + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an object."));
|
|
1134
|
+
for (var G in T)
|
|
1135
|
+
if (i(T, G)) {
|
|
1136
|
+
var V = y(T, G, I, N, M + "." + G, t);
|
|
1137
|
+
if (V instanceof Error)
|
|
1138
|
+
return V;
|
|
1114
1139
|
}
|
|
1115
1140
|
return null;
|
|
1116
1141
|
}
|
|
@@ -1126,21 +1151,21 @@ function zo() {
|
|
|
1126
1151
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(j) + " at index " + k + "."
|
|
1127
1152
|
), l;
|
|
1128
1153
|
}
|
|
1129
|
-
function O(I,
|
|
1130
|
-
for (var
|
|
1131
|
-
var te = y[
|
|
1154
|
+
function O(I, N, M, T, q) {
|
|
1155
|
+
for (var G = [], V = 0; V < y.length; V++) {
|
|
1156
|
+
var te = y[V], C = te(I, N, M, T, q, t);
|
|
1132
1157
|
if (C == null)
|
|
1133
1158
|
return null;
|
|
1134
|
-
C.data && i(C.data, "expectedType") &&
|
|
1159
|
+
C.data && i(C.data, "expectedType") && G.push(C.data.expectedType);
|
|
1135
1160
|
}
|
|
1136
|
-
var me =
|
|
1137
|
-
return new v("Invalid " + T + " `" +
|
|
1161
|
+
var me = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
1162
|
+
return new v("Invalid " + T + " `" + q + "` supplied to " + ("`" + M + "`" + me + "."));
|
|
1138
1163
|
}
|
|
1139
1164
|
return S(O);
|
|
1140
1165
|
}
|
|
1141
1166
|
function ue() {
|
|
1142
|
-
function y(k, j, O, I,
|
|
1143
|
-
return R(k[j]) ? null : new v("Invalid " + I + " `" +
|
|
1167
|
+
function y(k, j, O, I, N) {
|
|
1168
|
+
return R(k[j]) ? null : new v("Invalid " + I + " `" + N + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1144
1169
|
}
|
|
1145
1170
|
return S(y);
|
|
1146
1171
|
}
|
|
@@ -1149,16 +1174,16 @@ function zo() {
|
|
|
1149
1174
|
(y || "React class") + ": " + k + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
1150
1175
|
);
|
|
1151
1176
|
}
|
|
1152
|
-
function
|
|
1153
|
-
function k(j, O, I,
|
|
1154
|
-
var T = j[O],
|
|
1155
|
-
if (
|
|
1156
|
-
return new v("Invalid " +
|
|
1157
|
-
for (var
|
|
1158
|
-
var
|
|
1159
|
-
if (typeof
|
|
1160
|
-
return de(I,
|
|
1161
|
-
var te =
|
|
1177
|
+
function xe(y) {
|
|
1178
|
+
function k(j, O, I, N, M) {
|
|
1179
|
+
var T = j[O], q = Q(T);
|
|
1180
|
+
if (q !== "object")
|
|
1181
|
+
return new v("Invalid " + N + " `" + M + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1182
|
+
for (var G in y) {
|
|
1183
|
+
var V = y[G];
|
|
1184
|
+
if (typeof V != "function")
|
|
1185
|
+
return de(I, N, M, G, ee(V));
|
|
1186
|
+
var te = V(T, G, I, N, M + "." + G, t);
|
|
1162
1187
|
if (te)
|
|
1163
1188
|
return te;
|
|
1164
1189
|
}
|
|
@@ -1167,21 +1192,21 @@ function zo() {
|
|
|
1167
1192
|
return S(k);
|
|
1168
1193
|
}
|
|
1169
1194
|
function P(y) {
|
|
1170
|
-
function k(j, O, I,
|
|
1171
|
-
var T = j[O],
|
|
1172
|
-
if (
|
|
1173
|
-
return new v("Invalid " +
|
|
1174
|
-
var
|
|
1175
|
-
for (var
|
|
1176
|
-
var te = y[
|
|
1177
|
-
if (i(y,
|
|
1178
|
-
return de(I,
|
|
1195
|
+
function k(j, O, I, N, M) {
|
|
1196
|
+
var T = j[O], q = Q(T);
|
|
1197
|
+
if (q !== "object")
|
|
1198
|
+
return new v("Invalid " + N + " `" + M + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
1199
|
+
var G = n({}, j[O], y);
|
|
1200
|
+
for (var V in G) {
|
|
1201
|
+
var te = y[V];
|
|
1202
|
+
if (i(y, V) && typeof te != "function")
|
|
1203
|
+
return de(I, N, M, V, ee(te));
|
|
1179
1204
|
if (!te)
|
|
1180
1205
|
return new v(
|
|
1181
|
-
"Invalid " +
|
|
1206
|
+
"Invalid " + N + " `" + M + "` key `" + V + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
|
|
1182
1207
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
1183
1208
|
);
|
|
1184
|
-
var C = te(T,
|
|
1209
|
+
var C = te(T, V, I, N, M + "." + V, t);
|
|
1185
1210
|
if (C)
|
|
1186
1211
|
return C;
|
|
1187
1212
|
}
|
|
@@ -1259,18 +1284,18 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
1259
1284
|
return !y.constructor || !y.constructor.name ? g : y.constructor.name;
|
|
1260
1285
|
}
|
|
1261
1286
|
return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
|
|
1262
|
-
},
|
|
1287
|
+
}, St;
|
|
1263
1288
|
}
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1266
|
-
if (
|
|
1267
|
-
|
|
1268
|
-
var e = /* @__PURE__ */
|
|
1289
|
+
var Ct, hn;
|
|
1290
|
+
function Lo() {
|
|
1291
|
+
if (hn) return Ct;
|
|
1292
|
+
hn = 1;
|
|
1293
|
+
var e = /* @__PURE__ */ Jt();
|
|
1269
1294
|
function n() {
|
|
1270
1295
|
}
|
|
1271
1296
|
function t() {
|
|
1272
1297
|
}
|
|
1273
|
-
return t.resetWarningCache = n,
|
|
1298
|
+
return t.resetWarningCache = n, Ct = function() {
|
|
1274
1299
|
function i(l, r, s, c, d, f) {
|
|
1275
1300
|
if (f !== e) {
|
|
1276
1301
|
var g = new Error(
|
|
@@ -1307,21 +1332,21 @@ function No() {
|
|
|
1307
1332
|
resetWarningCache: n
|
|
1308
1333
|
};
|
|
1309
1334
|
return a.PropTypes = a, a;
|
|
1310
|
-
},
|
|
1335
|
+
}, Ct;
|
|
1311
1336
|
}
|
|
1312
1337
|
var xn;
|
|
1313
|
-
function
|
|
1314
|
-
if (xn) return
|
|
1338
|
+
function Ho() {
|
|
1339
|
+
if (xn) return We.exports;
|
|
1315
1340
|
if (xn = 1, process.env.NODE_ENV !== "production") {
|
|
1316
1341
|
var e = Kn(), n = !0;
|
|
1317
|
-
|
|
1342
|
+
We.exports = /* @__PURE__ */ Vo()(e.isElement, n);
|
|
1318
1343
|
} else
|
|
1319
|
-
|
|
1320
|
-
return
|
|
1344
|
+
We.exports = /* @__PURE__ */ Lo()();
|
|
1345
|
+
return We.exports;
|
|
1321
1346
|
}
|
|
1322
|
-
var
|
|
1323
|
-
const X = /* @__PURE__ */
|
|
1324
|
-
function
|
|
1347
|
+
var qo = /* @__PURE__ */ Ho();
|
|
1348
|
+
const X = /* @__PURE__ */ Yt(qo);
|
|
1349
|
+
function Me(e, n, t, i) {
|
|
1325
1350
|
function o(a) {
|
|
1326
1351
|
return a instanceof t ? a : new t(function(l) {
|
|
1327
1352
|
l(a);
|
|
@@ -1348,7 +1373,7 @@ function Ae(e, n, t, i) {
|
|
|
1348
1373
|
c((i = i.apply(e, n || [])).next());
|
|
1349
1374
|
});
|
|
1350
1375
|
}
|
|
1351
|
-
const
|
|
1376
|
+
const Go = /* @__PURE__ */ new Map([
|
|
1352
1377
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1353
1378
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1354
1379
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2551,14 +2576,14 @@ const Ho = /* @__PURE__ */ new Map([
|
|
|
2551
2576
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
2552
2577
|
["zsh", "text/x-scriptzsh"]
|
|
2553
2578
|
]);
|
|
2554
|
-
function
|
|
2555
|
-
const i =
|
|
2556
|
-
return typeof i.path != "string" &&
|
|
2579
|
+
function ze(e, n, t) {
|
|
2580
|
+
const i = Bo(e), { webkitRelativePath: o } = e, a = typeof n == "string" ? n : typeof o == "string" && o.length > 0 ? o : `./${e.name}`;
|
|
2581
|
+
return typeof i.path != "string" && wn(i, "path", a), wn(i, "relativePath", a), i;
|
|
2557
2582
|
}
|
|
2558
|
-
function
|
|
2583
|
+
function Bo(e) {
|
|
2559
2584
|
const { name: n } = e;
|
|
2560
2585
|
if (n && n.lastIndexOf(".") !== -1 && !e.type) {
|
|
2561
|
-
const i = n.split(".").pop().toLowerCase(), o =
|
|
2586
|
+
const i = n.split(".").pop().toLowerCase(), o = Go.get(i);
|
|
2562
2587
|
o && Object.defineProperty(e, "type", {
|
|
2563
2588
|
value: o,
|
|
2564
2589
|
writable: !1,
|
|
@@ -2568,7 +2593,7 @@ function qo(e) {
|
|
|
2568
2593
|
}
|
|
2569
2594
|
return e;
|
|
2570
2595
|
}
|
|
2571
|
-
function
|
|
2596
|
+
function wn(e, n, t) {
|
|
2572
2597
|
Object.defineProperty(e, n, {
|
|
2573
2598
|
value: t,
|
|
2574
2599
|
writable: !1,
|
|
@@ -2576,51 +2601,51 @@ function hn(e, n, t) {
|
|
|
2576
2601
|
enumerable: !0
|
|
2577
2602
|
});
|
|
2578
2603
|
}
|
|
2579
|
-
const
|
|
2604
|
+
const Uo = [
|
|
2580
2605
|
// Thumbnail cache files for macOS and Windows
|
|
2581
2606
|
".DS_Store",
|
|
2582
2607
|
// macOs
|
|
2583
2608
|
"Thumbs.db"
|
|
2584
2609
|
// Windows
|
|
2585
2610
|
];
|
|
2586
|
-
function
|
|
2587
|
-
return
|
|
2588
|
-
return
|
|
2611
|
+
function Ko(e) {
|
|
2612
|
+
return Me(this, void 0, void 0, function* () {
|
|
2613
|
+
return it(e) && Wo(e.dataTransfer) ? Jo(e.dataTransfer, e.type) : Yo(e) ? Xo(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? Qo(e) : [];
|
|
2589
2614
|
});
|
|
2590
2615
|
}
|
|
2591
|
-
function
|
|
2592
|
-
return
|
|
2616
|
+
function Wo(e) {
|
|
2617
|
+
return it(e);
|
|
2593
2618
|
}
|
|
2594
|
-
function
|
|
2595
|
-
return
|
|
2619
|
+
function Yo(e) {
|
|
2620
|
+
return it(e) && it(e.target);
|
|
2596
2621
|
}
|
|
2597
|
-
function
|
|
2622
|
+
function it(e) {
|
|
2598
2623
|
return typeof e == "object" && e !== null;
|
|
2599
2624
|
}
|
|
2600
|
-
function
|
|
2601
|
-
return
|
|
2625
|
+
function Xo(e) {
|
|
2626
|
+
return Ot(e.target.files).map((n) => ze(n));
|
|
2602
2627
|
}
|
|
2603
|
-
function
|
|
2604
|
-
return
|
|
2605
|
-
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) =>
|
|
2628
|
+
function Qo(e) {
|
|
2629
|
+
return Me(this, void 0, void 0, function* () {
|
|
2630
|
+
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => ze(t));
|
|
2606
2631
|
});
|
|
2607
2632
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return
|
|
2633
|
+
function Jo(e, n) {
|
|
2634
|
+
return Me(this, void 0, void 0, function* () {
|
|
2610
2635
|
if (e.items) {
|
|
2611
|
-
const t =
|
|
2636
|
+
const t = Ot(e.items).filter((o) => o.kind === "file");
|
|
2612
2637
|
if (n !== "drop")
|
|
2613
2638
|
return t;
|
|
2614
|
-
const i = yield Promise.all(t.map(
|
|
2615
|
-
return
|
|
2639
|
+
const i = yield Promise.all(t.map(Zo));
|
|
2640
|
+
return yn(Yn(i));
|
|
2616
2641
|
}
|
|
2617
|
-
return
|
|
2642
|
+
return yn(Ot(e.files).map((t) => ze(t)));
|
|
2618
2643
|
});
|
|
2619
2644
|
}
|
|
2620
|
-
function
|
|
2621
|
-
return e.filter((n) =>
|
|
2645
|
+
function yn(e) {
|
|
2646
|
+
return e.filter((n) => Uo.indexOf(n.name) === -1);
|
|
2622
2647
|
}
|
|
2623
|
-
function
|
|
2648
|
+
function Ot(e) {
|
|
2624
2649
|
if (e === null)
|
|
2625
2650
|
return [];
|
|
2626
2651
|
const n = [];
|
|
@@ -2630,11 +2655,11 @@ function Mt(e) {
|
|
|
2630
2655
|
}
|
|
2631
2656
|
return n;
|
|
2632
2657
|
}
|
|
2633
|
-
function
|
|
2658
|
+
function Zo(e) {
|
|
2634
2659
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2635
|
-
return
|
|
2660
|
+
return bn(e);
|
|
2636
2661
|
const n = e.webkitGetAsEntry();
|
|
2637
|
-
return n && n.isDirectory ? Xn(n) :
|
|
2662
|
+
return n && n.isDirectory ? Xn(n) : bn(e, n);
|
|
2638
2663
|
}
|
|
2639
2664
|
function Yn(e) {
|
|
2640
2665
|
return e.reduce((n, t) => [
|
|
@@ -2642,8 +2667,8 @@ function Yn(e) {
|
|
|
2642
2667
|
...Array.isArray(t) ? Yn(t) : [t]
|
|
2643
2668
|
], []);
|
|
2644
2669
|
}
|
|
2645
|
-
function
|
|
2646
|
-
return
|
|
2670
|
+
function bn(e, n) {
|
|
2671
|
+
return Me(this, void 0, void 0, function* () {
|
|
2647
2672
|
var t;
|
|
2648
2673
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2649
2674
|
const a = yield e.getAsFileSystemHandle();
|
|
@@ -2651,18 +2676,18 @@ function yn(e, n) {
|
|
|
2651
2676
|
throw new Error(`${e} is not a File`);
|
|
2652
2677
|
if (a !== void 0) {
|
|
2653
2678
|
const l = yield a.getFile();
|
|
2654
|
-
return l.handle = a,
|
|
2679
|
+
return l.handle = a, ze(l);
|
|
2655
2680
|
}
|
|
2656
2681
|
}
|
|
2657
2682
|
const i = e.getAsFile();
|
|
2658
2683
|
if (!i)
|
|
2659
2684
|
throw new Error(`${e} is not a File`);
|
|
2660
|
-
return
|
|
2685
|
+
return ze(i, (t = n == null ? void 0 : n.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
2661
2686
|
});
|
|
2662
2687
|
}
|
|
2663
|
-
function
|
|
2664
|
-
return
|
|
2665
|
-
return e.isDirectory ? Xn(e) :
|
|
2688
|
+
function ea(e) {
|
|
2689
|
+
return Me(this, void 0, void 0, function* () {
|
|
2690
|
+
return e.isDirectory ? Xn(e) : ta(e);
|
|
2666
2691
|
});
|
|
2667
2692
|
}
|
|
2668
2693
|
function Xn(e) {
|
|
@@ -2670,9 +2695,9 @@ function Xn(e) {
|
|
|
2670
2695
|
return new Promise((t, i) => {
|
|
2671
2696
|
const o = [];
|
|
2672
2697
|
function a() {
|
|
2673
|
-
n.readEntries((l) =>
|
|
2698
|
+
n.readEntries((l) => Me(this, void 0, void 0, function* () {
|
|
2674
2699
|
if (l.length) {
|
|
2675
|
-
const r = Promise.all(l.map(
|
|
2700
|
+
const r = Promise.all(l.map(ea));
|
|
2676
2701
|
o.push(r), a();
|
|
2677
2702
|
} else
|
|
2678
2703
|
try {
|
|
@@ -2688,11 +2713,11 @@ function Xn(e) {
|
|
|
2688
2713
|
a();
|
|
2689
2714
|
});
|
|
2690
2715
|
}
|
|
2691
|
-
function
|
|
2692
|
-
return
|
|
2716
|
+
function ta(e) {
|
|
2717
|
+
return Me(this, void 0, void 0, function* () {
|
|
2693
2718
|
return new Promise((n, t) => {
|
|
2694
2719
|
e.file((i) => {
|
|
2695
|
-
const o =
|
|
2720
|
+
const o = ze(i, e.fullPath);
|
|
2696
2721
|
n(o);
|
|
2697
2722
|
}, (i) => {
|
|
2698
2723
|
t(i);
|
|
@@ -2700,9 +2725,9 @@ function Zo(e) {
|
|
|
2700
2725
|
});
|
|
2701
2726
|
});
|
|
2702
2727
|
}
|
|
2703
|
-
var
|
|
2704
|
-
function
|
|
2705
|
-
return
|
|
2728
|
+
var Xe = {}, Sn;
|
|
2729
|
+
function na() {
|
|
2730
|
+
return Sn || (Sn = 1, Xe.__esModule = !0, Xe.default = function(e, n) {
|
|
2706
2731
|
if (e && n) {
|
|
2707
2732
|
var t = Array.isArray(n) ? n : n.split(",");
|
|
2708
2733
|
if (t.length === 0)
|
|
@@ -2714,24 +2739,24 @@ function ea() {
|
|
|
2714
2739
|
});
|
|
2715
2740
|
}
|
|
2716
2741
|
return !0;
|
|
2717
|
-
}),
|
|
2742
|
+
}), Xe;
|
|
2718
2743
|
}
|
|
2719
|
-
var
|
|
2720
|
-
const
|
|
2721
|
-
function
|
|
2722
|
-
return
|
|
2744
|
+
var ia = na();
|
|
2745
|
+
const _t = /* @__PURE__ */ Yt(ia);
|
|
2746
|
+
function Cn(e) {
|
|
2747
|
+
return ra(e) || aa(e) || Jn(e) || oa();
|
|
2723
2748
|
}
|
|
2724
|
-
function
|
|
2749
|
+
function oa() {
|
|
2725
2750
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2726
2751
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2727
2752
|
}
|
|
2728
|
-
function
|
|
2753
|
+
function aa(e) {
|
|
2729
2754
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2730
2755
|
}
|
|
2731
|
-
function
|
|
2732
|
-
if (Array.isArray(e)) return
|
|
2756
|
+
function ra(e) {
|
|
2757
|
+
if (Array.isArray(e)) return jt(e);
|
|
2733
2758
|
}
|
|
2734
|
-
function
|
|
2759
|
+
function _n(e, n) {
|
|
2735
2760
|
var t = Object.keys(e);
|
|
2736
2761
|
if (Object.getOwnPropertySymbols) {
|
|
2737
2762
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2741,12 +2766,12 @@ function Cn(e, n) {
|
|
|
2741
2766
|
}
|
|
2742
2767
|
return t;
|
|
2743
2768
|
}
|
|
2744
|
-
function
|
|
2769
|
+
function Rn(e) {
|
|
2745
2770
|
for (var n = 1; n < arguments.length; n++) {
|
|
2746
2771
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2747
|
-
n % 2 ?
|
|
2772
|
+
n % 2 ? _n(Object(t), !0).forEach(function(i) {
|
|
2748
2773
|
Qn(e, i, t[i]);
|
|
2749
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
2774
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : _n(Object(t)).forEach(function(i) {
|
|
2750
2775
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2751
2776
|
});
|
|
2752
2777
|
}
|
|
@@ -2755,28 +2780,28 @@ function _n(e) {
|
|
|
2755
2780
|
function Qn(e, n, t) {
|
|
2756
2781
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
2757
2782
|
}
|
|
2758
|
-
function
|
|
2759
|
-
return
|
|
2783
|
+
function Ge(e, n) {
|
|
2784
|
+
return ca(e) || sa(e, n) || Jn(e, n) || la();
|
|
2760
2785
|
}
|
|
2761
|
-
function
|
|
2786
|
+
function la() {
|
|
2762
2787
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2763
2788
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2764
2789
|
}
|
|
2765
2790
|
function Jn(e, n) {
|
|
2766
2791
|
if (e) {
|
|
2767
|
-
if (typeof e == "string") return
|
|
2792
|
+
if (typeof e == "string") return jt(e, n);
|
|
2768
2793
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2769
2794
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
|
|
2770
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
2795
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return jt(e, n);
|
|
2771
2796
|
}
|
|
2772
2797
|
}
|
|
2773
|
-
function
|
|
2798
|
+
function jt(e, n) {
|
|
2774
2799
|
(n == null || n > e.length) && (n = e.length);
|
|
2775
2800
|
for (var t = 0, i = new Array(n); t < n; t++)
|
|
2776
2801
|
i[t] = e[t];
|
|
2777
2802
|
return i;
|
|
2778
2803
|
}
|
|
2779
|
-
function
|
|
2804
|
+
function sa(e, n) {
|
|
2780
2805
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2781
2806
|
if (t != null) {
|
|
2782
2807
|
var i = [], o = !0, a = !1, l, r;
|
|
@@ -2795,74 +2820,74 @@ function ra(e, n) {
|
|
|
2795
2820
|
return i;
|
|
2796
2821
|
}
|
|
2797
2822
|
}
|
|
2798
|
-
function
|
|
2823
|
+
function ca(e) {
|
|
2799
2824
|
if (Array.isArray(e)) return e;
|
|
2800
2825
|
}
|
|
2801
|
-
var
|
|
2826
|
+
var pa = typeof _t == "function" ? _t : _t.default, ua = "file-invalid-type", da = "file-too-large", ga = "file-too-small", fa = "too-many-files", ma = function() {
|
|
2802
2827
|
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];
|
|
2803
2828
|
return {
|
|
2804
|
-
code:
|
|
2829
|
+
code: ua,
|
|
2805
2830
|
message: "File type must be ".concat(i)
|
|
2806
2831
|
};
|
|
2807
|
-
},
|
|
2832
|
+
}, kn = function(n) {
|
|
2808
2833
|
return {
|
|
2809
|
-
code:
|
|
2834
|
+
code: da,
|
|
2810
2835
|
message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2811
2836
|
};
|
|
2812
|
-
},
|
|
2837
|
+
}, En = function(n) {
|
|
2813
2838
|
return {
|
|
2814
|
-
code:
|
|
2839
|
+
code: ga,
|
|
2815
2840
|
message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2816
2841
|
};
|
|
2817
|
-
},
|
|
2818
|
-
code:
|
|
2842
|
+
}, va = {
|
|
2843
|
+
code: fa,
|
|
2819
2844
|
message: "Too many files"
|
|
2820
2845
|
};
|
|
2821
2846
|
function Zn(e, n) {
|
|
2822
|
-
var t = e.type === "application/x-moz-file" ||
|
|
2823
|
-
return [t, t ? null :
|
|
2847
|
+
var t = e.type === "application/x-moz-file" || pa(e, n);
|
|
2848
|
+
return [t, t ? null : ma(n)];
|
|
2824
2849
|
}
|
|
2825
2850
|
function ei(e, n, t) {
|
|
2826
|
-
if (
|
|
2827
|
-
if (
|
|
2828
|
-
if (e.size > t) return [!1,
|
|
2829
|
-
if (e.size < n) return [!1,
|
|
2851
|
+
if (Ae(e.size))
|
|
2852
|
+
if (Ae(n) && Ae(t)) {
|
|
2853
|
+
if (e.size > t) return [!1, kn(t)];
|
|
2854
|
+
if (e.size < n) return [!1, En(n)];
|
|
2830
2855
|
} else {
|
|
2831
|
-
if (
|
|
2832
|
-
if (
|
|
2856
|
+
if (Ae(n) && e.size < n) return [!1, En(n)];
|
|
2857
|
+
if (Ae(t) && e.size > t) return [!1, kn(t)];
|
|
2833
2858
|
}
|
|
2834
2859
|
return [!0, null];
|
|
2835
2860
|
}
|
|
2836
|
-
function
|
|
2861
|
+
function Ae(e) {
|
|
2837
2862
|
return e != null;
|
|
2838
2863
|
}
|
|
2839
|
-
function
|
|
2864
|
+
function ha(e) {
|
|
2840
2865
|
var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, l = e.maxFiles, r = e.validator;
|
|
2841
2866
|
return !a && n.length > 1 || a && l >= 1 && n.length > l ? !1 : n.every(function(s) {
|
|
2842
|
-
var c = Zn(s, t), d =
|
|
2867
|
+
var c = Zn(s, t), d = Ge(c, 1), f = d[0], g = ei(s, i, o), u = Ge(g, 1), m = u[0], v = r ? r(s) : null;
|
|
2843
2868
|
return f && m && !v;
|
|
2844
2869
|
});
|
|
2845
2870
|
}
|
|
2846
|
-
function
|
|
2871
|
+
function ot(e) {
|
|
2847
2872
|
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
|
2848
2873
|
}
|
|
2849
|
-
function
|
|
2874
|
+
function Qe(e) {
|
|
2850
2875
|
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(n) {
|
|
2851
2876
|
return n === "Files" || n === "application/x-moz-file";
|
|
2852
2877
|
}) : !!e.target && !!e.target.files;
|
|
2853
2878
|
}
|
|
2854
|
-
function
|
|
2879
|
+
function Pn(e) {
|
|
2855
2880
|
e.preventDefault();
|
|
2856
2881
|
}
|
|
2857
|
-
function
|
|
2882
|
+
function xa(e) {
|
|
2858
2883
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2859
2884
|
}
|
|
2860
|
-
function
|
|
2885
|
+
function wa(e) {
|
|
2861
2886
|
return e.indexOf("Edge/") !== -1;
|
|
2862
2887
|
}
|
|
2863
|
-
function
|
|
2888
|
+
function ya() {
|
|
2864
2889
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2865
|
-
return
|
|
2890
|
+
return xa(e) || wa(e);
|
|
2866
2891
|
}
|
|
2867
2892
|
function Se() {
|
|
2868
2893
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
@@ -2871,21 +2896,21 @@ function Se() {
|
|
|
2871
2896
|
for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++)
|
|
2872
2897
|
a[l - 1] = arguments[l];
|
|
2873
2898
|
return n.some(function(r) {
|
|
2874
|
-
return !
|
|
2899
|
+
return !ot(i) && r && r.apply(void 0, [i].concat(a)), ot(i);
|
|
2875
2900
|
});
|
|
2876
2901
|
};
|
|
2877
2902
|
}
|
|
2878
|
-
function
|
|
2903
|
+
function ba() {
|
|
2879
2904
|
return "showOpenFilePicker" in window;
|
|
2880
2905
|
}
|
|
2881
|
-
function
|
|
2882
|
-
if (
|
|
2906
|
+
function Sa(e) {
|
|
2907
|
+
if (Ae(e)) {
|
|
2883
2908
|
var n = Object.entries(e).filter(function(t) {
|
|
2884
|
-
var i =
|
|
2909
|
+
var i = Ge(t, 2), o = i[0], a = i[1], l = !0;
|
|
2885
2910
|
return ti(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.')), l = !1), (!Array.isArray(a) || !a.every(ni)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), l = !1), l;
|
|
2886
2911
|
}).reduce(function(t, i) {
|
|
2887
|
-
var o =
|
|
2888
|
-
return
|
|
2912
|
+
var o = Ge(i, 2), a = o[0], l = o[1];
|
|
2913
|
+
return Rn(Rn({}, t), {}, Qn({}, a, l));
|
|
2889
2914
|
}, {});
|
|
2890
2915
|
return [{
|
|
2891
2916
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2895,19 +2920,19 @@ function ya(e) {
|
|
|
2895
2920
|
}
|
|
2896
2921
|
return e;
|
|
2897
2922
|
}
|
|
2898
|
-
function
|
|
2899
|
-
if (
|
|
2923
|
+
function Ca(e) {
|
|
2924
|
+
if (Ae(e))
|
|
2900
2925
|
return Object.entries(e).reduce(function(n, t) {
|
|
2901
|
-
var i =
|
|
2902
|
-
return [].concat(
|
|
2926
|
+
var i = Ge(t, 2), o = i[0], a = i[1];
|
|
2927
|
+
return [].concat(Cn(n), [o], Cn(a));
|
|
2903
2928
|
}, []).filter(function(n) {
|
|
2904
2929
|
return ti(n) || ni(n);
|
|
2905
2930
|
}).join(",");
|
|
2906
2931
|
}
|
|
2907
|
-
function
|
|
2932
|
+
function _a(e) {
|
|
2908
2933
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2909
2934
|
}
|
|
2910
|
-
function
|
|
2935
|
+
function Ra(e) {
|
|
2911
2936
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2912
2937
|
}
|
|
2913
2938
|
function ti(e) {
|
|
@@ -2916,42 +2941,42 @@ function ti(e) {
|
|
|
2916
2941
|
function ni(e) {
|
|
2917
2942
|
return /^.*\.[\w]+$/.test(e);
|
|
2918
2943
|
}
|
|
2919
|
-
var
|
|
2920
|
-
function
|
|
2921
|
-
return
|
|
2944
|
+
var ka = ["children"], Ea = ["open"], Pa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Fa = ["refKey", "onChange", "onClick"];
|
|
2945
|
+
function Ia(e) {
|
|
2946
|
+
return $a(e) || Aa(e) || ii(e) || Da();
|
|
2922
2947
|
}
|
|
2923
|
-
function
|
|
2948
|
+
function Da() {
|
|
2924
2949
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2925
2950
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2926
2951
|
}
|
|
2927
|
-
function
|
|
2952
|
+
function Aa(e) {
|
|
2928
2953
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2929
2954
|
}
|
|
2930
|
-
function
|
|
2931
|
-
if (Array.isArray(e)) return
|
|
2955
|
+
function $a(e) {
|
|
2956
|
+
if (Array.isArray(e)) return Tt(e);
|
|
2932
2957
|
}
|
|
2933
|
-
function
|
|
2934
|
-
return
|
|
2958
|
+
function Rt(e, n) {
|
|
2959
|
+
return ja(e) || Oa(e, n) || ii(e, n) || Ma();
|
|
2935
2960
|
}
|
|
2936
|
-
function
|
|
2961
|
+
function Ma() {
|
|
2937
2962
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2938
2963
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2939
2964
|
}
|
|
2940
2965
|
function ii(e, n) {
|
|
2941
2966
|
if (e) {
|
|
2942
|
-
if (typeof e == "string") return
|
|
2967
|
+
if (typeof e == "string") return Tt(e, n);
|
|
2943
2968
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2944
2969
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
|
|
2945
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
2970
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Tt(e, n);
|
|
2946
2971
|
}
|
|
2947
2972
|
}
|
|
2948
|
-
function
|
|
2973
|
+
function Tt(e, n) {
|
|
2949
2974
|
(n == null || n > e.length) && (n = e.length);
|
|
2950
2975
|
for (var t = 0, i = new Array(n); t < n; t++)
|
|
2951
2976
|
i[t] = e[t];
|
|
2952
2977
|
return i;
|
|
2953
2978
|
}
|
|
2954
|
-
function
|
|
2979
|
+
function Oa(e, n) {
|
|
2955
2980
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2956
2981
|
if (t != null) {
|
|
2957
2982
|
var i = [], o = !0, a = !1, l, r;
|
|
@@ -2970,10 +2995,10 @@ function $a(e, n) {
|
|
|
2970
2995
|
return i;
|
|
2971
2996
|
}
|
|
2972
2997
|
}
|
|
2973
|
-
function
|
|
2998
|
+
function ja(e) {
|
|
2974
2999
|
if (Array.isArray(e)) return e;
|
|
2975
3000
|
}
|
|
2976
|
-
function
|
|
3001
|
+
function Fn(e, n) {
|
|
2977
3002
|
var t = Object.keys(e);
|
|
2978
3003
|
if (Object.getOwnPropertySymbols) {
|
|
2979
3004
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2986,20 +3011,20 @@ function Pn(e, n) {
|
|
|
2986
3011
|
function J(e) {
|
|
2987
3012
|
for (var n = 1; n < arguments.length; n++) {
|
|
2988
3013
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2989
|
-
n % 2 ?
|
|
2990
|
-
|
|
2991
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
3014
|
+
n % 2 ? Fn(Object(t), !0).forEach(function(i) {
|
|
3015
|
+
zt(e, i, t[i]);
|
|
3016
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Fn(Object(t)).forEach(function(i) {
|
|
2992
3017
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2993
3018
|
});
|
|
2994
3019
|
}
|
|
2995
3020
|
return e;
|
|
2996
3021
|
}
|
|
2997
|
-
function
|
|
3022
|
+
function zt(e, n, t) {
|
|
2998
3023
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
2999
3024
|
}
|
|
3000
|
-
function
|
|
3025
|
+
function at(e, n) {
|
|
3001
3026
|
if (e == null) return {};
|
|
3002
|
-
var t =
|
|
3027
|
+
var t = Ta(e, n), i, o;
|
|
3003
3028
|
if (Object.getOwnPropertySymbols) {
|
|
3004
3029
|
var a = Object.getOwnPropertySymbols(e);
|
|
3005
3030
|
for (o = 0; o < a.length; o++)
|
|
@@ -3007,27 +3032,27 @@ function ot(e, n) {
|
|
|
3007
3032
|
}
|
|
3008
3033
|
return t;
|
|
3009
3034
|
}
|
|
3010
|
-
function
|
|
3035
|
+
function Ta(e, n) {
|
|
3011
3036
|
if (e == null) return {};
|
|
3012
3037
|
var t = {}, i = Object.keys(e), o, a;
|
|
3013
3038
|
for (a = 0; a < i.length; a++)
|
|
3014
3039
|
o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
3015
3040
|
return t;
|
|
3016
3041
|
}
|
|
3017
|
-
var
|
|
3018
|
-
var t = e.children, i =
|
|
3042
|
+
var Zt = /* @__PURE__ */ Fi(function(e, n) {
|
|
3043
|
+
var t = e.children, i = at(e, ka), o = ai(i), a = o.open, l = at(o, Ea);
|
|
3019
3044
|
return Ii(n, function() {
|
|
3020
3045
|
return {
|
|
3021
3046
|
open: a
|
|
3022
3047
|
};
|
|
3023
|
-
}, [a]), /* @__PURE__ */ Ei.createElement(
|
|
3048
|
+
}, [a]), /* @__PURE__ */ Ei.createElement(Tn, null, t(J(J({}, l), {}, {
|
|
3024
3049
|
open: a
|
|
3025
3050
|
})));
|
|
3026
3051
|
});
|
|
3027
|
-
|
|
3052
|
+
Zt.displayName = "Dropzone";
|
|
3028
3053
|
var oi = {
|
|
3029
3054
|
disabled: !1,
|
|
3030
|
-
getFilesFromEvent:
|
|
3055
|
+
getFilesFromEvent: Ko,
|
|
3031
3056
|
maxSize: 1 / 0,
|
|
3032
3057
|
minSize: 0,
|
|
3033
3058
|
multiple: !0,
|
|
@@ -3041,8 +3066,8 @@ var oi = {
|
|
|
3041
3066
|
useFsAccessApi: !1,
|
|
3042
3067
|
autoFocus: !1
|
|
3043
3068
|
};
|
|
3044
|
-
|
|
3045
|
-
|
|
3069
|
+
Zt.defaultProps = oi;
|
|
3070
|
+
Zt.propTypes = {
|
|
3046
3071
|
/**
|
|
3047
3072
|
* Render function that exposes the dropzone state and prop getter fns
|
|
3048
3073
|
*
|
|
@@ -3210,7 +3235,7 @@ Jt.propTypes = {
|
|
|
3210
3235
|
*/
|
|
3211
3236
|
validator: X.func
|
|
3212
3237
|
};
|
|
3213
|
-
var
|
|
3238
|
+
var Nt = {
|
|
3214
3239
|
isFocused: !1,
|
|
3215
3240
|
isFileDialogActive: !1,
|
|
3216
3241
|
isDragActive: !1,
|
|
@@ -3220,15 +3245,15 @@ var zt = {
|
|
|
3220
3245
|
fileRejections: []
|
|
3221
3246
|
};
|
|
3222
3247
|
function ai() {
|
|
3223
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, oi), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = 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, S = n.onFileDialogOpen,
|
|
3224
|
-
return
|
|
3248
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = J(J({}, oi), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, l = n.minSize, r = 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, S = n.onFileDialogOpen, h = n.useFsAccessApi, b = n.autoFocus, w = n.preventDropOnDocument, E = n.noClick, x = n.noKeyboard, F = n.noDrag, H = n.noDragEventsBubbling, Y = n.onError, Z = n.validator, ue = re(function() {
|
|
3249
|
+
return Ca(t);
|
|
3225
3250
|
}, [t]), de = re(function() {
|
|
3226
|
-
return
|
|
3227
|
-
}, [t]),
|
|
3228
|
-
return typeof S == "function" ? S :
|
|
3251
|
+
return Sa(t);
|
|
3252
|
+
}, [t]), xe = re(function() {
|
|
3253
|
+
return typeof S == "function" ? S : In;
|
|
3229
3254
|
}, [S]), P = re(function() {
|
|
3230
|
-
return typeof v == "function" ? v :
|
|
3231
|
-
}, [v]), R = fe(null), B = fe(null), Q =
|
|
3255
|
+
return typeof v == "function" ? v : In;
|
|
3256
|
+
}, [v]), R = fe(null), B = fe(null), Q = jn(za, Nt), ee = Rt(Q, 2), se = ee[0], ne = ee[1], y = se.isFocused, k = se.isFileDialogActive, j = fe(typeof window < "u" && window.isSecureContext && h && ba()), O = function() {
|
|
3232
3257
|
!j.current && k && setTimeout(function() {
|
|
3233
3258
|
if (B.current) {
|
|
3234
3259
|
var $ = B.current.files;
|
|
@@ -3243,12 +3268,12 @@ function ai() {
|
|
|
3243
3268
|
window.removeEventListener("focus", O, !1);
|
|
3244
3269
|
};
|
|
3245
3270
|
}, [B, k, P, j]);
|
|
3246
|
-
var I = fe([]),
|
|
3271
|
+
var I = fe([]), N = function($) {
|
|
3247
3272
|
R.current && R.current.contains($.target) || ($.preventDefault(), I.current = []);
|
|
3248
3273
|
};
|
|
3249
3274
|
le(function() {
|
|
3250
|
-
return w && (document.addEventListener("dragover",
|
|
3251
|
-
w && (document.removeEventListener("dragover",
|
|
3275
|
+
return w && (document.addEventListener("dragover", Pn, !1), document.addEventListener("drop", N, !1)), function() {
|
|
3276
|
+
w && (document.removeEventListener("dragover", Pn), document.removeEventListener("drop", N));
|
|
3252
3277
|
};
|
|
3253
3278
|
}, [R, w]), le(function() {
|
|
3254
3279
|
return !i && b && R.current && R.current.focus(), function() {
|
|
@@ -3257,9 +3282,9 @@ function ai() {
|
|
|
3257
3282
|
var M = U(function(_) {
|
|
3258
3283
|
Y ? Y(_) : console.error(_);
|
|
3259
3284
|
}, [Y]), T = U(function(_) {
|
|
3260
|
-
_.preventDefault(), _.persist(),
|
|
3261
|
-
if (!(
|
|
3262
|
-
var ie = $.length, oe = ie > 0 &&
|
|
3285
|
+
_.preventDefault(), _.persist(), Ue(_), I.current = [].concat(Ia(I.current), [_.target]), Qe(_) && Promise.resolve(o(_)).then(function($) {
|
|
3286
|
+
if (!(ot(_) && !H)) {
|
|
3287
|
+
var ie = $.length, oe = ie > 0 && ha({
|
|
3263
3288
|
files: $,
|
|
3264
3289
|
accept: ue,
|
|
3265
3290
|
minSize: l,
|
|
@@ -3278,17 +3303,17 @@ function ai() {
|
|
|
3278
3303
|
}).catch(function($) {
|
|
3279
3304
|
return M($);
|
|
3280
3305
|
});
|
|
3281
|
-
}, [o, c, M,
|
|
3282
|
-
_.preventDefault(), _.persist(),
|
|
3283
|
-
var $ =
|
|
3306
|
+
}, [o, c, M, H, ue, l, a, r, s, Z]), q = U(function(_) {
|
|
3307
|
+
_.preventDefault(), _.persist(), Ue(_);
|
|
3308
|
+
var $ = Qe(_);
|
|
3284
3309
|
if ($ && _.dataTransfer)
|
|
3285
3310
|
try {
|
|
3286
3311
|
_.dataTransfer.dropEffect = "copy";
|
|
3287
3312
|
} catch {
|
|
3288
3313
|
}
|
|
3289
3314
|
return $ && f && f(_), !1;
|
|
3290
|
-
}, [f,
|
|
3291
|
-
_.preventDefault(), _.persist(),
|
|
3315
|
+
}, [f, H]), G = U(function(_) {
|
|
3316
|
+
_.preventDefault(), _.persist(), Ue(_);
|
|
3292
3317
|
var $ = I.current.filter(function(oe) {
|
|
3293
3318
|
return R.current && R.current.contains(oe);
|
|
3294
3319
|
}), ie = $.indexOf(_.target);
|
|
@@ -3297,18 +3322,18 @@ function ai() {
|
|
|
3297
3322
|
isDragActive: !1,
|
|
3298
3323
|
isDragAccept: !1,
|
|
3299
3324
|
isDragReject: !1
|
|
3300
|
-
}),
|
|
3301
|
-
}, [R, d,
|
|
3325
|
+
}), Qe(_) && d && d(_));
|
|
3326
|
+
}, [R, d, H]), V = U(function(_, $) {
|
|
3302
3327
|
var ie = [], oe = [];
|
|
3303
3328
|
_.forEach(function(ve) {
|
|
3304
|
-
var
|
|
3305
|
-
if (
|
|
3329
|
+
var Ve = Zn(ve, ue), je = Rt(Ve, 2), pt = je[0], ut = je[1], dt = ei(ve, l, a), Ke = Rt(dt, 2), gt = Ke[0], ft = Ke[1], mt = Z ? Z(ve) : null;
|
|
3330
|
+
if (pt && gt && !mt)
|
|
3306
3331
|
ie.push(ve);
|
|
3307
3332
|
else {
|
|
3308
|
-
var
|
|
3309
|
-
|
|
3333
|
+
var vt = [ut, ft];
|
|
3334
|
+
mt && (vt = vt.concat(mt)), oe.push({
|
|
3310
3335
|
file: ve,
|
|
3311
|
-
errors:
|
|
3336
|
+
errors: vt.filter(function(ki) {
|
|
3312
3337
|
return ki;
|
|
3313
3338
|
})
|
|
3314
3339
|
});
|
|
@@ -3316,7 +3341,7 @@ function ai() {
|
|
|
3316
3341
|
}), (!r && ie.length > 1 || r && s >= 1 && ie.length > s) && (ie.forEach(function(ve) {
|
|
3317
3342
|
oe.push({
|
|
3318
3343
|
file: ve,
|
|
3319
|
-
errors: [
|
|
3344
|
+
errors: [va]
|
|
3320
3345
|
});
|
|
3321
3346
|
}), ie.splice(0)), ne({
|
|
3322
3347
|
acceptedFiles: ie,
|
|
@@ -3325,18 +3350,18 @@ function ai() {
|
|
|
3325
3350
|
type: "setFiles"
|
|
3326
3351
|
}), g && g(ie, oe, $), oe.length > 0 && m && m(oe, $), ie.length > 0 && u && u(ie, $);
|
|
3327
3352
|
}, [ne, r, ue, l, a, s, g, u, m, Z]), te = U(function(_) {
|
|
3328
|
-
_.preventDefault(), _.persist(),
|
|
3329
|
-
|
|
3353
|
+
_.preventDefault(), _.persist(), Ue(_), I.current = [], Qe(_) && Promise.resolve(o(_)).then(function($) {
|
|
3354
|
+
ot(_) && !H || V($, _);
|
|
3330
3355
|
}).catch(function($) {
|
|
3331
3356
|
return M($);
|
|
3332
3357
|
}), ne({
|
|
3333
3358
|
type: "reset"
|
|
3334
3359
|
});
|
|
3335
|
-
}, [o,
|
|
3360
|
+
}, [o, V, M, H]), C = U(function() {
|
|
3336
3361
|
if (j.current) {
|
|
3337
3362
|
ne({
|
|
3338
3363
|
type: "openDialog"
|
|
3339
|
-
}),
|
|
3364
|
+
}), xe();
|
|
3340
3365
|
var _ = {
|
|
3341
3366
|
multiple: r,
|
|
3342
3367
|
types: de
|
|
@@ -3344,61 +3369,61 @@ function ai() {
|
|
|
3344
3369
|
window.showOpenFilePicker(_).then(function($) {
|
|
3345
3370
|
return o($);
|
|
3346
3371
|
}).then(function($) {
|
|
3347
|
-
|
|
3372
|
+
V($, null), ne({
|
|
3348
3373
|
type: "closeDialog"
|
|
3349
3374
|
});
|
|
3350
3375
|
}).catch(function($) {
|
|
3351
|
-
|
|
3376
|
+
_a($) ? (P($), ne({
|
|
3352
3377
|
type: "closeDialog"
|
|
3353
|
-
})) :
|
|
3378
|
+
})) : Ra($) ? (j.current = !1, B.current ? (B.current.value = null, B.current.click()) : M(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."))) : M($);
|
|
3354
3379
|
});
|
|
3355
3380
|
return;
|
|
3356
3381
|
}
|
|
3357
3382
|
B.current && (ne({
|
|
3358
3383
|
type: "openDialog"
|
|
3359
|
-
}),
|
|
3360
|
-
}, [ne,
|
|
3384
|
+
}), xe(), B.current.value = null, B.current.click());
|
|
3385
|
+
}, [ne, xe, P, h, V, M, de, r]), me = U(function(_) {
|
|
3361
3386
|
!R.current || !R.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), C());
|
|
3362
|
-
}, [R, C]),
|
|
3387
|
+
}, [R, C]), De = U(function() {
|
|
3363
3388
|
ne({
|
|
3364
3389
|
type: "focus"
|
|
3365
3390
|
});
|
|
3366
|
-
}, []),
|
|
3391
|
+
}, []), Ne = U(function() {
|
|
3367
3392
|
ne({
|
|
3368
3393
|
type: "blur"
|
|
3369
3394
|
});
|
|
3370
|
-
}, []),
|
|
3371
|
-
E || (
|
|
3372
|
-
}, [E, C]),
|
|
3395
|
+
}, []), on = U(function() {
|
|
3396
|
+
E || (ya() ? setTimeout(C, 0) : C());
|
|
3397
|
+
}, [E, C]), Oe = function($) {
|
|
3373
3398
|
return i ? null : $;
|
|
3374
|
-
},
|
|
3375
|
-
return
|
|
3376
|
-
}, Ge = function($) {
|
|
3377
|
-
return F ? null : $e($);
|
|
3399
|
+
}, ct = function($) {
|
|
3400
|
+
return x ? null : Oe($);
|
|
3378
3401
|
}, Be = function($) {
|
|
3379
|
-
|
|
3402
|
+
return F ? null : Oe($);
|
|
3403
|
+
}, Ue = function($) {
|
|
3404
|
+
H && $.stopPropagation();
|
|
3380
3405
|
}, Ci = re(function() {
|
|
3381
3406
|
return function() {
|
|
3382
|
-
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.role, ve = _.onKeyDown,
|
|
3383
|
-
return J(J(
|
|
3384
|
-
onKeyDown:
|
|
3385
|
-
onFocus:
|
|
3386
|
-
onBlur:
|
|
3387
|
-
onClick:
|
|
3388
|
-
onDragEnter:
|
|
3389
|
-
onDragOver:
|
|
3390
|
-
onDragLeave:
|
|
3391
|
-
onDrop:
|
|
3407
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.role, ve = _.onKeyDown, Ve = _.onFocus, je = _.onBlur, pt = _.onClick, ut = _.onDragEnter, dt = _.onDragOver, Ke = _.onDragLeave, gt = _.onDrop, ft = at(_, Pa);
|
|
3408
|
+
return J(J(zt({
|
|
3409
|
+
onKeyDown: ct(Se(ve, me)),
|
|
3410
|
+
onFocus: ct(Se(Ve, De)),
|
|
3411
|
+
onBlur: ct(Se(je, Ne)),
|
|
3412
|
+
onClick: Oe(Se(pt, on)),
|
|
3413
|
+
onDragEnter: Be(Se(ut, T)),
|
|
3414
|
+
onDragOver: Be(Se(dt, q)),
|
|
3415
|
+
onDragLeave: Be(Se(Ke, G)),
|
|
3416
|
+
onDrop: Be(Se(gt, te)),
|
|
3392
3417
|
role: typeof oe == "string" && oe !== "" ? oe : "presentation"
|
|
3393
|
-
}, ie, R), !i && !
|
|
3418
|
+
}, ie, R), !i && !x ? {
|
|
3394
3419
|
tabIndex: 0
|
|
3395
|
-
} : {}),
|
|
3420
|
+
} : {}), ft);
|
|
3396
3421
|
};
|
|
3397
|
-
}, [R, me,
|
|
3422
|
+
}, [R, me, De, Ne, on, T, q, G, te, x, F, i]), _i = U(function(_) {
|
|
3398
3423
|
_.stopPropagation();
|
|
3399
3424
|
}, []), Ri = re(function() {
|
|
3400
3425
|
return function() {
|
|
3401
|
-
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.onChange, ve = _.onClick,
|
|
3426
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = _.refKey, ie = $ === void 0 ? "ref" : $, oe = _.onChange, ve = _.onClick, Ve = at(_, Fa), je = zt({
|
|
3402
3427
|
accept: ue,
|
|
3403
3428
|
multiple: r,
|
|
3404
3429
|
type: "file",
|
|
@@ -3414,11 +3439,11 @@ function ai() {
|
|
|
3414
3439
|
width: "1px",
|
|
3415
3440
|
whiteSpace: "nowrap"
|
|
3416
3441
|
},
|
|
3417
|
-
onChange:
|
|
3418
|
-
onClick:
|
|
3442
|
+
onChange: Oe(Se(oe, te)),
|
|
3443
|
+
onClick: Oe(Se(ve, _i)),
|
|
3419
3444
|
tabIndex: -1
|
|
3420
3445
|
}, ie, B);
|
|
3421
|
-
return J(J({},
|
|
3446
|
+
return J(J({}, je), Ve);
|
|
3422
3447
|
};
|
|
3423
3448
|
}, [B, t, r, te, i]);
|
|
3424
3449
|
return J(J({}, se), {}, {
|
|
@@ -3427,10 +3452,10 @@ function ai() {
|
|
|
3427
3452
|
getInputProps: Ri,
|
|
3428
3453
|
rootRef: R,
|
|
3429
3454
|
inputRef: B,
|
|
3430
|
-
open:
|
|
3455
|
+
open: Oe(C)
|
|
3431
3456
|
});
|
|
3432
3457
|
}
|
|
3433
|
-
function
|
|
3458
|
+
function za(e, n) {
|
|
3434
3459
|
switch (n.type) {
|
|
3435
3460
|
case "focus":
|
|
3436
3461
|
return J(J({}, e), {}, {
|
|
@@ -3441,7 +3466,7 @@ function ja(e, n) {
|
|
|
3441
3466
|
isFocused: !1
|
|
3442
3467
|
});
|
|
3443
3468
|
case "openDialog":
|
|
3444
|
-
return J(J({},
|
|
3469
|
+
return J(J({}, Nt), {}, {
|
|
3445
3470
|
isFileDialogActive: !0
|
|
3446
3471
|
});
|
|
3447
3472
|
case "closeDialog":
|
|
@@ -3461,14 +3486,14 @@ function ja(e, n) {
|
|
|
3461
3486
|
isDragReject: n.isDragReject
|
|
3462
3487
|
});
|
|
3463
3488
|
case "reset":
|
|
3464
|
-
return J({},
|
|
3489
|
+
return J({}, Nt);
|
|
3465
3490
|
default:
|
|
3466
3491
|
return e;
|
|
3467
3492
|
}
|
|
3468
3493
|
}
|
|
3469
|
-
function
|
|
3494
|
+
function In() {
|
|
3470
3495
|
}
|
|
3471
|
-
const
|
|
3496
|
+
const Na = () => {
|
|
3472
3497
|
const e = (r, s) => {
|
|
3473
3498
|
switch (s.type) {
|
|
3474
3499
|
case "add-files":
|
|
@@ -3497,7 +3522,7 @@ const Ta = () => {
|
|
|
3497
3522
|
)
|
|
3498
3523
|
};
|
|
3499
3524
|
}
|
|
3500
|
-
}, [{ acceptedFiles: n, fileRejections: t }, i] =
|
|
3525
|
+
}, [{ acceptedFiles: n, fileRejections: t }, i] = jn(
|
|
3501
3526
|
e,
|
|
3502
3527
|
{
|
|
3503
3528
|
acceptedFiles: [],
|
|
@@ -3511,7 +3536,7 @@ const Ta = () => {
|
|
|
3511
3536
|
[i]
|
|
3512
3537
|
);
|
|
3513
3538
|
return { acceptedFiles: n, fileRejections: t, onFileUpload: o, removeFile: (r) => i({ type: "remove-accepted", payload: r }), removeRejectedFile: (r) => i({ type: "remove-rejected", payload: r }) };
|
|
3514
|
-
},
|
|
3539
|
+
}, gl = ({
|
|
3515
3540
|
accept: e,
|
|
3516
3541
|
error: n,
|
|
3517
3542
|
files: t,
|
|
@@ -3524,26 +3549,26 @@ const Ta = () => {
|
|
|
3524
3549
|
onRemoveFile: c,
|
|
3525
3550
|
rejectedFiles: d
|
|
3526
3551
|
}) => {
|
|
3527
|
-
const f =
|
|
3552
|
+
const f = Na(), g = t ?? f.acceptedFiles, u = d ?? f.fileRejections, m = s ?? f.onFileUpload, v = (w) => {
|
|
3528
3553
|
c ? c(w) : "file" in w && "errors" in w ? f.removeRejectedFile(w) : f.removeFile(w);
|
|
3529
|
-
}, { getRootProps: S, getInputProps:
|
|
3554
|
+
}, { getRootProps: S, getInputProps: h } = ai({
|
|
3530
3555
|
accept: e,
|
|
3531
3556
|
maxFiles: a,
|
|
3532
3557
|
maxSize: l,
|
|
3533
3558
|
minSize: r,
|
|
3534
3559
|
onDrop: m
|
|
3535
|
-
}), b =
|
|
3536
|
-
return /* @__PURE__ */
|
|
3560
|
+
}), b = nt();
|
|
3561
|
+
return /* @__PURE__ */ z(
|
|
3537
3562
|
"div",
|
|
3538
3563
|
{
|
|
3539
|
-
className:
|
|
3564
|
+
className: L("p-form__group p-form-validation", {
|
|
3540
3565
|
"is-error": !!n
|
|
3541
3566
|
}),
|
|
3542
3567
|
children: [
|
|
3543
3568
|
o && /* @__PURE__ */ p(Ti, { id: b, children: o }),
|
|
3544
3569
|
i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
|
|
3545
|
-
/* @__PURE__ */
|
|
3546
|
-
!a || g.length + u.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ z("div", { className: "p-form__control", children: [
|
|
3571
|
+
!a || g.length + u.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ z(
|
|
3547
3572
|
"div",
|
|
3548
3573
|
{
|
|
3549
3574
|
...S(),
|
|
@@ -3551,16 +3576,16 @@ const Ta = () => {
|
|
|
3551
3576
|
className: "file-upload",
|
|
3552
3577
|
"data-testid": "file-upload",
|
|
3553
3578
|
children: [
|
|
3554
|
-
/* @__PURE__ */ p("input", { ...
|
|
3579
|
+
/* @__PURE__ */ p("input", { ...h() }),
|
|
3555
3580
|
/* @__PURE__ */ p("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
3556
3581
|
]
|
|
3557
3582
|
}
|
|
3558
3583
|
) }) : null,
|
|
3559
|
-
/* @__PURE__ */
|
|
3560
|
-
u && u.map((w) => /* @__PURE__ */ p("span", { className: "is-error", children: /* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ z("div", { className: "file-upload__files-list", children: [
|
|
3585
|
+
u && u.map((w) => /* @__PURE__ */ p("span", { className: "is-error", children: /* @__PURE__ */ z("div", { className: "file-upload__file is-rejected", children: [
|
|
3561
3586
|
w.file.name,
|
|
3562
3587
|
/* @__PURE__ */ p(
|
|
3563
|
-
|
|
3588
|
+
Ee,
|
|
3564
3589
|
{
|
|
3565
3590
|
appearance: "base",
|
|
3566
3591
|
className: "file-upload__file-remove-button",
|
|
@@ -3570,10 +3595,10 @@ const Ta = () => {
|
|
|
3570
3595
|
}
|
|
3571
3596
|
)
|
|
3572
3597
|
] }) }, w.file.name)),
|
|
3573
|
-
g && g.map((w) => /* @__PURE__ */
|
|
3598
|
+
g && g.map((w) => /* @__PURE__ */ z("div", { className: "file-upload__file", children: [
|
|
3574
3599
|
w.name,
|
|
3575
3600
|
w.percentUploaded !== void 0 ? /* @__PURE__ */ p(Yi, { percentComplete: w.percentUploaded }) : /* @__PURE__ */ p(
|
|
3576
|
-
|
|
3601
|
+
Ee,
|
|
3577
3602
|
{
|
|
3578
3603
|
appearance: "base",
|
|
3579
3604
|
className: "file-upload__file-remove-button",
|
|
@@ -3584,7 +3609,7 @@ const Ta = () => {
|
|
|
3584
3609
|
)
|
|
3585
3610
|
] }, w.name))
|
|
3586
3611
|
] }),
|
|
3587
|
-
n ? /* @__PURE__ */
|
|
3612
|
+
n ? /* @__PURE__ */ z("p", { className: "p-form-validation__message", children: [
|
|
3588
3613
|
/* @__PURE__ */ p("strong", { children: "Error: " }),
|
|
3589
3614
|
n
|
|
3590
3615
|
] }) : null
|
|
@@ -3592,20 +3617,20 @@ const Ta = () => {
|
|
|
3592
3617
|
]
|
|
3593
3618
|
}
|
|
3594
3619
|
);
|
|
3595
|
-
}, ri = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }),
|
|
3620
|
+
}, ri = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Va = (e) => (n, t) => {
|
|
3596
3621
|
if (e) {
|
|
3597
3622
|
const i = e.has(n.value), o = e.has(t.value);
|
|
3598
3623
|
if (i && !o) return -1;
|
|
3599
3624
|
if (!i && o) return 1;
|
|
3600
3625
|
}
|
|
3601
3626
|
return 0;
|
|
3602
|
-
},
|
|
3627
|
+
}, La = (e) => {
|
|
3603
3628
|
const n = /* @__PURE__ */ new Map();
|
|
3604
3629
|
return e.forEach((t) => {
|
|
3605
3630
|
const i = t.group || "Ungrouped", o = n.get(i) || [];
|
|
3606
3631
|
o.push(t), n.set(i, o);
|
|
3607
3632
|
}), Array.from(n, ([t, i]) => ({ group: t, items: i }));
|
|
3608
|
-
},
|
|
3633
|
+
}, Ha = ({
|
|
3609
3634
|
items: e,
|
|
3610
3635
|
selectedItems: n,
|
|
3611
3636
|
disabledItems: t,
|
|
@@ -3614,34 +3639,34 @@ const Ta = () => {
|
|
|
3614
3639
|
isOpen: a,
|
|
3615
3640
|
footer: l,
|
|
3616
3641
|
sortFn: r = ri,
|
|
3617
|
-
groupFn: s =
|
|
3642
|
+
groupFn: s = La,
|
|
3618
3643
|
...c
|
|
3619
3644
|
}) => {
|
|
3620
3645
|
const d = re(
|
|
3621
|
-
() => new Set(n.map((
|
|
3646
|
+
() => new Set(n.map((h) => h.value)),
|
|
3622
3647
|
[n]
|
|
3623
3648
|
), f = re(
|
|
3624
|
-
() => new Set(t.map((
|
|
3649
|
+
() => new Set(t.map((h) => h.value)),
|
|
3625
3650
|
[t]
|
|
3626
3651
|
), [g, u] = pe(new Set(d));
|
|
3627
3652
|
le(() => {
|
|
3628
3653
|
a && u(new Set(d));
|
|
3629
3654
|
}, [a]);
|
|
3630
|
-
const m = re(() => e.some((
|
|
3655
|
+
const m = re(() => e.some((h) => h.group), [e]), v = re(
|
|
3631
3656
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3632
3657
|
[e, s]
|
|
3633
|
-
), S = (
|
|
3634
|
-
const { checked: b, value: w } =
|
|
3658
|
+
), S = (h) => {
|
|
3659
|
+
const { checked: b, value: w } = h.target, E = e.find((x) => `${x.value}` === w);
|
|
3635
3660
|
if (E) {
|
|
3636
|
-
const
|
|
3637
|
-
o(
|
|
3661
|
+
const x = b ? [...n, E] : n.filter((F) => `${F.value}` !== w) ?? [];
|
|
3662
|
+
o(x);
|
|
3638
3663
|
}
|
|
3639
3664
|
};
|
|
3640
|
-
return /* @__PURE__ */ p(Un, { isVisible: a, className: "put-above", children: /* @__PURE__ */
|
|
3665
|
+
return /* @__PURE__ */ p(Un, { isVisible: a, className: "put-above", children: /* @__PURE__ */ z("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
3641
3666
|
i || null,
|
|
3642
|
-
v.map(({ group:
|
|
3643
|
-
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children:
|
|
3644
|
-
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label":
|
|
3667
|
+
v.map(({ group: h, items: b }) => /* @__PURE__ */ z("div", { className: "multi-select__group", children: [
|
|
3668
|
+
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3669
|
+
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: b.sort(r).sort(Va(g)).map((w) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3645
3670
|
zi,
|
|
3646
3671
|
{
|
|
3647
3672
|
disabled: f.has(w.value),
|
|
@@ -3652,10 +3677,10 @@ const Ta = () => {
|
|
|
3652
3677
|
},
|
|
3653
3678
|
w.value
|
|
3654
3679
|
) }, w.value)) })
|
|
3655
|
-
] },
|
|
3680
|
+
] }, h)),
|
|
3656
3681
|
l ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: l }) : null
|
|
3657
3682
|
] }) });
|
|
3658
|
-
},
|
|
3683
|
+
}, fl = ({
|
|
3659
3684
|
disabled: e,
|
|
3660
3685
|
selectedItems: n = [],
|
|
3661
3686
|
label: t,
|
|
@@ -3671,33 +3696,33 @@ const Ta = () => {
|
|
|
3671
3696
|
const f = Ni(() => {
|
|
3672
3697
|
u(!1), v("");
|
|
3673
3698
|
});
|
|
3674
|
-
|
|
3699
|
+
zn(() => {
|
|
3675
3700
|
u(!1), v("");
|
|
3676
3701
|
});
|
|
3677
3702
|
const [g, u] = pe(!1), [m, v] = pe("");
|
|
3678
3703
|
le(() => {
|
|
3679
3704
|
g || v("");
|
|
3680
3705
|
}, [g]);
|
|
3681
|
-
const [S,
|
|
3682
|
-
const Y = Array.from(new Set(
|
|
3683
|
-
|
|
3684
|
-
}, E =
|
|
3685
|
-
(
|
|
3686
|
-
).sort(ri).map((
|
|
3687
|
-
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */
|
|
3706
|
+
const [S, h] = pe([]), b = n || S, w = (H) => {
|
|
3707
|
+
const Y = Array.from(new Set(H));
|
|
3708
|
+
h(Y), i && i(Y);
|
|
3709
|
+
}, E = nt(), x = nt(), F = b.filter(
|
|
3710
|
+
(H) => l.some((Y) => Y.value === H.value)
|
|
3711
|
+
).sort(ri).map((H) => H.label).join(", ");
|
|
3712
|
+
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ z("div", { className: "multi-select", children: [
|
|
3688
3713
|
d === "search" ? /* @__PURE__ */ p(
|
|
3689
|
-
|
|
3714
|
+
Nn,
|
|
3690
3715
|
{
|
|
3691
3716
|
externallyControlled: !0,
|
|
3692
3717
|
"aria-controls": E,
|
|
3693
3718
|
"aria-expanded": g,
|
|
3694
|
-
id:
|
|
3719
|
+
id: x,
|
|
3695
3720
|
role: "combobox",
|
|
3696
3721
|
"aria-label": t || o || "Search",
|
|
3697
3722
|
disabled: e,
|
|
3698
3723
|
autoComplete: "off",
|
|
3699
|
-
onChange: (
|
|
3700
|
-
v(
|
|
3724
|
+
onChange: (H) => {
|
|
3725
|
+
v(H), u(!0);
|
|
3701
3726
|
},
|
|
3702
3727
|
onFocus: () => u(!0),
|
|
3703
3728
|
placeholder: o ?? "Search",
|
|
@@ -3716,51 +3741,51 @@ const Ta = () => {
|
|
|
3716
3741
|
"aria-expanded": g,
|
|
3717
3742
|
className: "multi-select__select-button",
|
|
3718
3743
|
onClick: () => {
|
|
3719
|
-
u((
|
|
3744
|
+
u((H) => !H);
|
|
3720
3745
|
},
|
|
3721
3746
|
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: b.length > 0 ? F : o ?? "Select items" })
|
|
3722
3747
|
}
|
|
3723
3748
|
),
|
|
3724
3749
|
/* @__PURE__ */ p(
|
|
3725
|
-
|
|
3750
|
+
Ha,
|
|
3726
3751
|
{
|
|
3727
3752
|
id: E,
|
|
3728
3753
|
isOpen: g,
|
|
3729
3754
|
items: m.length > 0 ? l.filter(
|
|
3730
|
-
(
|
|
3755
|
+
(H) => H.label.toLowerCase().includes(m.toLowerCase())
|
|
3731
3756
|
) : l,
|
|
3732
3757
|
selectedItems: b,
|
|
3733
3758
|
disabledItems: r,
|
|
3734
3759
|
header: s,
|
|
3735
3760
|
updateItems: w,
|
|
3736
|
-
footer: c || /* @__PURE__ */
|
|
3761
|
+
footer: c || /* @__PURE__ */ z(be, { children: [
|
|
3737
3762
|
/* @__PURE__ */ p(
|
|
3738
|
-
|
|
3763
|
+
Ee,
|
|
3739
3764
|
{
|
|
3740
3765
|
appearance: "link",
|
|
3741
3766
|
onClick: () => {
|
|
3742
|
-
const
|
|
3767
|
+
const H = l.filter(
|
|
3743
3768
|
(Y) => !r.some(
|
|
3744
3769
|
(Z) => Z.value === Y.value
|
|
3745
3770
|
)
|
|
3746
3771
|
);
|
|
3747
|
-
w([...b, ...
|
|
3772
|
+
w([...b, ...H]);
|
|
3748
3773
|
},
|
|
3749
3774
|
type: "button",
|
|
3750
3775
|
children: "Select all"
|
|
3751
3776
|
}
|
|
3752
3777
|
),
|
|
3753
3778
|
/* @__PURE__ */ p(
|
|
3754
|
-
|
|
3779
|
+
Ee,
|
|
3755
3780
|
{
|
|
3756
3781
|
appearance: "link",
|
|
3757
3782
|
onClick: () => {
|
|
3758
|
-
const
|
|
3783
|
+
const H = b.filter(
|
|
3759
3784
|
(Y) => r.some(
|
|
3760
3785
|
(Z) => Z.value === Y.value
|
|
3761
3786
|
)
|
|
3762
3787
|
);
|
|
3763
|
-
w(
|
|
3788
|
+
w(H);
|
|
3764
3789
|
},
|
|
3765
3790
|
type: "button",
|
|
3766
3791
|
children: "Clear"
|
|
@@ -3770,10 +3795,10 @@ const Ta = () => {
|
|
|
3770
3795
|
}
|
|
3771
3796
|
)
|
|
3772
3797
|
] }) });
|
|
3773
|
-
},
|
|
3798
|
+
}, qa = {
|
|
3774
3799
|
// Mobile or tablet
|
|
3775
3800
|
small: 620
|
|
3776
|
-
}, li =
|
|
3801
|
+
}, li = Bt({ variant: "regular" }), si = ({
|
|
3777
3802
|
className: e,
|
|
3778
3803
|
children: n,
|
|
3779
3804
|
variant: t,
|
|
@@ -3782,26 +3807,26 @@ const Ta = () => {
|
|
|
3782
3807
|
"table",
|
|
3783
3808
|
{
|
|
3784
3809
|
...i,
|
|
3785
|
-
className:
|
|
3810
|
+
className: L("p-table-dynamic", e, {
|
|
3786
3811
|
"is-full-height": t === "full-height"
|
|
3787
3812
|
}),
|
|
3788
3813
|
children: n
|
|
3789
3814
|
}
|
|
3790
|
-
) }),
|
|
3815
|
+
) }), Ga = ({ columns: e }) => /* @__PURE__ */ p(be, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
|
|
3791
3816
|
"td",
|
|
3792
3817
|
{
|
|
3793
|
-
className:
|
|
3794
|
-
children: /* @__PURE__ */ p(
|
|
3818
|
+
className: L(i.id, "u-text-overflow-clip"),
|
|
3819
|
+
children: /* @__PURE__ */ p(_e, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
3795
3820
|
},
|
|
3796
3821
|
o
|
|
3797
|
-
)) }, t)) }),
|
|
3822
|
+
)) }, t)) }), Ba = ({
|
|
3798
3823
|
className: e,
|
|
3799
3824
|
table: n
|
|
3800
3825
|
}) => {
|
|
3801
3826
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3802
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ z(be, { children: [
|
|
3803
3828
|
/* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3804
|
-
/* @__PURE__ */ p(ci, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(
|
|
3829
|
+
/* @__PURE__ */ p(ci, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Ga, { columns: t }) })
|
|
3805
3830
|
] });
|
|
3806
3831
|
}, ci = ({
|
|
3807
3832
|
className: e,
|
|
@@ -3809,15 +3834,15 @@ const Ta = () => {
|
|
|
3809
3834
|
style: t,
|
|
3810
3835
|
...i
|
|
3811
3836
|
}) => {
|
|
3812
|
-
const { variant: o } =
|
|
3837
|
+
const { variant: o } = rt(li), a = fe(null), [l, r] = pe(null), s = U(() => {
|
|
3813
3838
|
var d, f;
|
|
3814
|
-
if (window.innerWidth >
|
|
3839
|
+
if (window.innerWidth > qa.small) {
|
|
3815
3840
|
const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
|
|
3816
3841
|
g && r(g + 1);
|
|
3817
3842
|
} else
|
|
3818
3843
|
r(null);
|
|
3819
3844
|
}, []);
|
|
3820
|
-
|
|
3845
|
+
Ut(() => {
|
|
3821
3846
|
s();
|
|
3822
3847
|
}, [s]), le(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
|
|
3823
3848
|
const c = re(() => o === "full-height" && l ? {
|
|
@@ -3837,10 +3862,10 @@ const Ta = () => {
|
|
|
3837
3862
|
);
|
|
3838
3863
|
};
|
|
3839
3864
|
si.Body = ci;
|
|
3840
|
-
si.Loading =
|
|
3841
|
-
const pi = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }),
|
|
3842
|
-
pi.Title =
|
|
3843
|
-
pi.Description =
|
|
3865
|
+
si.Loading = Ba;
|
|
3866
|
+
const pi = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), Ua = ({ 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 }) }) }), Ka = ({ 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 }) }) });
|
|
3867
|
+
pi.Title = Ua;
|
|
3868
|
+
pi.Description = Ka;
|
|
3844
3869
|
/**
|
|
3845
3870
|
* table-core
|
|
3846
3871
|
*
|
|
@@ -3851,21 +3876,21 @@ pi.Description = Ba;
|
|
|
3851
3876
|
*
|
|
3852
3877
|
* @license MIT
|
|
3853
3878
|
*/
|
|
3854
|
-
function
|
|
3879
|
+
function Pe(e, n) {
|
|
3855
3880
|
return typeof e == "function" ? e(n) : e;
|
|
3856
3881
|
}
|
|
3857
|
-
function
|
|
3882
|
+
function he(e, n) {
|
|
3858
3883
|
return (t) => {
|
|
3859
3884
|
n.setState((i) => ({
|
|
3860
3885
|
...i,
|
|
3861
|
-
[e]:
|
|
3886
|
+
[e]: Pe(t, i[e])
|
|
3862
3887
|
}));
|
|
3863
3888
|
};
|
|
3864
3889
|
}
|
|
3865
|
-
function
|
|
3890
|
+
function st(e) {
|
|
3866
3891
|
return e instanceof Function;
|
|
3867
3892
|
}
|
|
3868
|
-
function
|
|
3893
|
+
function Wa(e) {
|
|
3869
3894
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
3870
3895
|
}
|
|
3871
3896
|
function ui(e, n) {
|
|
@@ -3912,7 +3937,7 @@ function A(e, n, t, i) {
|
|
|
3912
3937
|
onChange: i
|
|
3913
3938
|
};
|
|
3914
3939
|
}
|
|
3915
|
-
function
|
|
3940
|
+
function Ya(e, n, t, i) {
|
|
3916
3941
|
const o = () => {
|
|
3917
3942
|
var l;
|
|
3918
3943
|
return (l = a.getValue()) != null ? l : e.options.renderFallbackValue;
|
|
@@ -3935,7 +3960,7 @@ function Ka(e, n, t, i) {
|
|
|
3935
3960
|
l.createCell == null || l.createCell(a, t, n, e);
|
|
3936
3961
|
}, {}), a;
|
|
3937
3962
|
}
|
|
3938
|
-
function
|
|
3963
|
+
function Xa(e, n, t, i) {
|
|
3939
3964
|
var o, a;
|
|
3940
3965
|
const r = {
|
|
3941
3966
|
...e._getDefaultColumnDef(),
|
|
@@ -3976,7 +4001,7 @@ function Wa(e, n, t, i) {
|
|
|
3976
4001
|
return f;
|
|
3977
4002
|
}
|
|
3978
4003
|
const ce = "debugHeaders";
|
|
3979
|
-
function
|
|
4004
|
+
function Dn(e, n, t) {
|
|
3980
4005
|
var i;
|
|
3981
4006
|
let a = {
|
|
3982
4007
|
id: (i = t.id) != null ? i : n.id,
|
|
@@ -4005,20 +4030,20 @@ function In(e, n, t) {
|
|
|
4005
4030
|
l.createHeader == null || l.createHeader(a, e);
|
|
4006
4031
|
}), a;
|
|
4007
4032
|
}
|
|
4008
|
-
const
|
|
4033
|
+
const Qa = {
|
|
4009
4034
|
createTable: (e) => {
|
|
4010
4035
|
e.getHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
|
|
4011
4036
|
var a, l;
|
|
4012
4037
|
const r = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (l = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? l : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
|
|
4013
|
-
return
|
|
4014
|
-
}, A(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = D(() => [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))),
|
|
4038
|
+
return Je(n, [...r, ...c, ...s], e);
|
|
4039
|
+
}, A(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = D(() => [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))), Je(n, t, e, "center")), A(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
|
|
4015
4040
|
var o;
|
|
4016
4041
|
const a = (o = i == null ? void 0 : i.map((l) => t.find((r) => r.id === l)).filter(Boolean)) != null ? o : [];
|
|
4017
|
-
return
|
|
4042
|
+
return Je(n, a, e, "left");
|
|
4018
4043
|
}, A(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = D(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
|
|
4019
4044
|
var o;
|
|
4020
4045
|
const a = (o = i == null ? void 0 : i.map((l) => t.find((r) => r.id === l)).filter(Boolean)) != null ? o : [];
|
|
4021
|
-
return
|
|
4046
|
+
return Je(n, a, e, "right");
|
|
4022
4047
|
}, A(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = D(() => [e.getHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = D(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = D(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = D(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), A(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = D(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = D(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = D(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = D(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), A(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = D(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
4023
4048
|
var i;
|
|
4024
4049
|
return !((i = t.subHeaders) != null && i.length);
|
|
@@ -4034,7 +4059,7 @@ const Ya = {
|
|
|
4034
4059
|
}, A(e.options, ce, "getLeafHeaders"));
|
|
4035
4060
|
}
|
|
4036
4061
|
};
|
|
4037
|
-
function
|
|
4062
|
+
function Je(e, n, t, i) {
|
|
4038
4063
|
var o, a;
|
|
4039
4064
|
let l = 0;
|
|
4040
4065
|
const r = function(g, u) {
|
|
@@ -4052,37 +4077,37 @@ function Qe(e, n, t, i) {
|
|
|
4052
4077
|
headers: []
|
|
4053
4078
|
}, v = [];
|
|
4054
4079
|
g.forEach((S) => {
|
|
4055
|
-
const
|
|
4080
|
+
const h = [...v].reverse()[0], b = S.column.depth === m.depth;
|
|
4056
4081
|
let w, E = !1;
|
|
4057
|
-
if (b && S.column.parent ? w = S.column.parent : (w = S.column, E = !0),
|
|
4058
|
-
|
|
4082
|
+
if (b && S.column.parent ? w = S.column.parent : (w = S.column, E = !0), h && (h == null ? void 0 : h.column) === w)
|
|
4083
|
+
h.subHeaders.push(S);
|
|
4059
4084
|
else {
|
|
4060
|
-
const
|
|
4085
|
+
const x = Dn(t, w, {
|
|
4061
4086
|
id: [i, u, w.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
4062
4087
|
isPlaceholder: E,
|
|
4063
4088
|
placeholderId: E ? `${v.filter((F) => F.column === w).length}` : void 0,
|
|
4064
4089
|
depth: u,
|
|
4065
4090
|
index: v.length
|
|
4066
4091
|
});
|
|
4067
|
-
|
|
4092
|
+
x.subHeaders.push(S), v.push(x);
|
|
4068
4093
|
}
|
|
4069
4094
|
m.headers.push(S), S.headerGroup = m;
|
|
4070
4095
|
}), s.push(m), u > 0 && c(v, u - 1);
|
|
4071
|
-
}, d = n.map((g, u) =>
|
|
4096
|
+
}, d = n.map((g, u) => Dn(t, g, {
|
|
4072
4097
|
depth: l,
|
|
4073
4098
|
index: u
|
|
4074
4099
|
}));
|
|
4075
4100
|
c(d, l - 1), s.reverse();
|
|
4076
4101
|
const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
|
|
4077
|
-
let v = 0, S = 0,
|
|
4078
|
-
m.subHeaders && m.subHeaders.length ? (
|
|
4102
|
+
let v = 0, S = 0, h = [0];
|
|
4103
|
+
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((w) => {
|
|
4079
4104
|
let {
|
|
4080
4105
|
colSpan: E,
|
|
4081
|
-
rowSpan:
|
|
4106
|
+
rowSpan: x
|
|
4082
4107
|
} = w;
|
|
4083
|
-
v += E,
|
|
4108
|
+
v += E, h.push(x);
|
|
4084
4109
|
})) : v = 1;
|
|
4085
|
-
const b = Math.min(...
|
|
4110
|
+
const b = Math.min(...h);
|
|
4086
4111
|
return S = S + b, m.colSpan = v, m.rowSpan = S, {
|
|
4087
4112
|
colSpan: v,
|
|
4088
4113
|
rowSpan: S
|
|
@@ -4129,7 +4154,7 @@ const di = (e, n, t, i, o, a, l) => {
|
|
|
4129
4154
|
}
|
|
4130
4155
|
return s.reverse();
|
|
4131
4156
|
},
|
|
4132
|
-
getAllCells: D(() => [e.getAllLeafColumns()], (s) => s.map((c) =>
|
|
4157
|
+
getAllCells: D(() => [e.getAllLeafColumns()], (s) => s.map((c) => Ya(e, r, c, c.id)), A(e.options, "debugRows", "getAllCells")),
|
|
4133
4158
|
_getAllCellsByColumnId: D(() => [r.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), A(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4134
4159
|
};
|
|
4135
4160
|
for (let s = 0; s < e._features.length; s++) {
|
|
@@ -4137,7 +4162,7 @@ const di = (e, n, t, i, o, a, l) => {
|
|
|
4137
4162
|
c == null || c.createRow == null || c.createRow(r, e);
|
|
4138
4163
|
}
|
|
4139
4164
|
return r;
|
|
4140
|
-
},
|
|
4165
|
+
}, Ja = {
|
|
4141
4166
|
createColumn: (e, n) => {
|
|
4142
4167
|
e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
|
|
4143
4168
|
if (e._getFacetedMinMaxValues)
|
|
@@ -4165,26 +4190,26 @@ const vi = (e, n, t) => {
|
|
|
4165
4190
|
return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
|
|
4166
4191
|
};
|
|
4167
4192
|
vi.autoRemove = (e) => ye(e);
|
|
4168
|
-
const
|
|
4193
|
+
const hi = (e, n, t) => !t.some((i) => {
|
|
4169
4194
|
var o;
|
|
4170
4195
|
return !((o = e.getValue(n)) != null && o.includes(i));
|
|
4171
4196
|
});
|
|
4172
|
-
|
|
4173
|
-
const
|
|
4197
|
+
hi.autoRemove = (e) => ye(e) || !(e != null && e.length);
|
|
4198
|
+
const xi = (e, n, t) => t.some((i) => {
|
|
4174
4199
|
var o;
|
|
4175
4200
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(i);
|
|
4176
4201
|
});
|
|
4177
|
-
|
|
4202
|
+
xi.autoRemove = (e) => ye(e) || !(e != null && e.length);
|
|
4178
4203
|
const wi = (e, n, t) => e.getValue(n) === t;
|
|
4179
4204
|
wi.autoRemove = (e) => ye(e);
|
|
4180
4205
|
const yi = (e, n, t) => e.getValue(n) == t;
|
|
4181
4206
|
yi.autoRemove = (e) => ye(e);
|
|
4182
|
-
const
|
|
4207
|
+
const en = (e, n, t) => {
|
|
4183
4208
|
let [i, o] = t;
|
|
4184
4209
|
const a = e.getValue(n);
|
|
4185
4210
|
return a >= i && a <= o;
|
|
4186
4211
|
};
|
|
4187
|
-
|
|
4212
|
+
en.resolveFilterValue = (e) => {
|
|
4188
4213
|
let [n, t] = e, i = typeof n != "number" ? parseFloat(n) : n, o = typeof t != "number" ? parseFloat(t) : t, a = n === null || Number.isNaN(i) ? -1 / 0 : i, l = t === null || Number.isNaN(o) ? 1 / 0 : o;
|
|
4189
4214
|
if (a > l) {
|
|
4190
4215
|
const r = a;
|
|
@@ -4192,22 +4217,22 @@ Zt.resolveFilterValue = (e) => {
|
|
|
4192
4217
|
}
|
|
4193
4218
|
return [a, l];
|
|
4194
4219
|
};
|
|
4195
|
-
|
|
4196
|
-
const
|
|
4220
|
+
en.autoRemove = (e) => ye(e) || ye(e[0]) && ye(e[1]);
|
|
4221
|
+
const Re = {
|
|
4197
4222
|
includesString: gi,
|
|
4198
4223
|
includesStringSensitive: fi,
|
|
4199
4224
|
equalsString: mi,
|
|
4200
4225
|
arrIncludes: vi,
|
|
4201
|
-
arrIncludesAll:
|
|
4202
|
-
arrIncludesSome:
|
|
4226
|
+
arrIncludesAll: hi,
|
|
4227
|
+
arrIncludesSome: xi,
|
|
4203
4228
|
equals: wi,
|
|
4204
4229
|
weakEquals: yi,
|
|
4205
|
-
inNumberRange:
|
|
4230
|
+
inNumberRange: en
|
|
4206
4231
|
};
|
|
4207
4232
|
function ye(e) {
|
|
4208
4233
|
return e == null || e === "";
|
|
4209
4234
|
}
|
|
4210
|
-
const
|
|
4235
|
+
const Za = {
|
|
4211
4236
|
getDefaultColumnDef: () => ({
|
|
4212
4237
|
filterFn: "auto"
|
|
4213
4238
|
}),
|
|
@@ -4216,19 +4241,19 @@ const Qa = {
|
|
|
4216
4241
|
...e
|
|
4217
4242
|
}),
|
|
4218
4243
|
getDefaultOptions: (e) => ({
|
|
4219
|
-
onColumnFiltersChange:
|
|
4244
|
+
onColumnFiltersChange: he("columnFilters", e),
|
|
4220
4245
|
filterFromLeafRows: !1,
|
|
4221
4246
|
maxLeafRowFilterDepth: 100
|
|
4222
4247
|
}),
|
|
4223
4248
|
createColumn: (e, n) => {
|
|
4224
4249
|
e.getAutoFilterFn = () => {
|
|
4225
4250
|
const t = n.getCoreRowModel().flatRows[0], i = t == null ? void 0 : t.getValue(e.id);
|
|
4226
|
-
return typeof i == "string" ?
|
|
4251
|
+
return typeof i == "string" ? Re.includesString : typeof i == "number" ? Re.inNumberRange : typeof i == "boolean" || i !== null && typeof i == "object" ? Re.equals : Array.isArray(i) ? Re.arrIncludes : Re.weakEquals;
|
|
4227
4252
|
}, e.getFilterFn = () => {
|
|
4228
4253
|
var t, i;
|
|
4229
|
-
return
|
|
4254
|
+
return st(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
|
|
4230
4255
|
// @ts-ignore
|
|
4231
|
-
(t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t :
|
|
4256
|
+
(t = (i = n.options.filterFns) == null ? void 0 : i[e.columnDef.filterFn]) != null ? t : Re[e.columnDef.filterFn]
|
|
4232
4257
|
);
|
|
4233
4258
|
}, e.getCanFilter = () => {
|
|
4234
4259
|
var t, i, o;
|
|
@@ -4241,8 +4266,8 @@ const Qa = {
|
|
|
4241
4266
|
return (t = (i = n.getState().columnFilters) == null ? void 0 : i.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
4242
4267
|
}, e.setFilterValue = (t) => {
|
|
4243
4268
|
n.setColumnFilters((i) => {
|
|
4244
|
-
const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), l =
|
|
4245
|
-
if (
|
|
4269
|
+
const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), l = Pe(t, a ? a.value : void 0);
|
|
4270
|
+
if (An(o, l, e)) {
|
|
4246
4271
|
var r;
|
|
4247
4272
|
return (r = i == null ? void 0 : i.filter((d) => d.id !== e.id)) != null ? r : [];
|
|
4248
4273
|
}
|
|
@@ -4265,11 +4290,11 @@ const Qa = {
|
|
|
4265
4290
|
e.setColumnFilters = (n) => {
|
|
4266
4291
|
const t = e.getAllLeafColumns(), i = (o) => {
|
|
4267
4292
|
var a;
|
|
4268
|
-
return (a =
|
|
4293
|
+
return (a = Pe(n, o)) == null ? void 0 : a.filter((l) => {
|
|
4269
4294
|
const r = t.find((s) => s.id === l.id);
|
|
4270
4295
|
if (r) {
|
|
4271
4296
|
const s = r.getFilterFn();
|
|
4272
|
-
if (
|
|
4297
|
+
if (An(s, l.value, r))
|
|
4273
4298
|
return !1;
|
|
4274
4299
|
}
|
|
4275
4300
|
return !0;
|
|
@@ -4282,57 +4307,57 @@ const Qa = {
|
|
|
4282
4307
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
4283
4308
|
}
|
|
4284
4309
|
};
|
|
4285
|
-
function
|
|
4310
|
+
function An(e, n, t) {
|
|
4286
4311
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
4287
4312
|
}
|
|
4288
|
-
const
|
|
4313
|
+
const er = (e, n, t) => t.reduce((i, o) => {
|
|
4289
4314
|
const a = o.getValue(e);
|
|
4290
4315
|
return i + (typeof a == "number" ? a : 0);
|
|
4291
|
-
}, 0),
|
|
4316
|
+
}, 0), tr = (e, n, t) => {
|
|
4292
4317
|
let i;
|
|
4293
4318
|
return t.forEach((o) => {
|
|
4294
4319
|
const a = o.getValue(e);
|
|
4295
4320
|
a != null && (i > a || i === void 0 && a >= a) && (i = a);
|
|
4296
4321
|
}), i;
|
|
4297
|
-
},
|
|
4322
|
+
}, nr = (e, n, t) => {
|
|
4298
4323
|
let i;
|
|
4299
4324
|
return t.forEach((o) => {
|
|
4300
4325
|
const a = o.getValue(e);
|
|
4301
4326
|
a != null && (i < a || i === void 0 && a >= a) && (i = a);
|
|
4302
4327
|
}), i;
|
|
4303
|
-
},
|
|
4328
|
+
}, ir = (e, n, t) => {
|
|
4304
4329
|
let i, o;
|
|
4305
4330
|
return t.forEach((a) => {
|
|
4306
4331
|
const l = a.getValue(e);
|
|
4307
4332
|
l != null && (i === void 0 ? l >= l && (i = o = l) : (i > l && (i = l), o < l && (o = l)));
|
|
4308
4333
|
}), [i, o];
|
|
4309
|
-
},
|
|
4334
|
+
}, or = (e, n) => {
|
|
4310
4335
|
let t = 0, i = 0;
|
|
4311
4336
|
if (n.forEach((o) => {
|
|
4312
4337
|
let a = o.getValue(e);
|
|
4313
4338
|
a != null && (a = +a) >= a && (++t, i += a);
|
|
4314
4339
|
}), t) return i / t;
|
|
4315
|
-
},
|
|
4340
|
+
}, ar = (e, n) => {
|
|
4316
4341
|
if (!n.length)
|
|
4317
4342
|
return;
|
|
4318
4343
|
const t = n.map((a) => a.getValue(e));
|
|
4319
|
-
if (!
|
|
4344
|
+
if (!Wa(t))
|
|
4320
4345
|
return;
|
|
4321
4346
|
if (t.length === 1)
|
|
4322
4347
|
return t[0];
|
|
4323
4348
|
const i = Math.floor(t.length / 2), o = t.sort((a, l) => a - l);
|
|
4324
4349
|
return t.length % 2 !== 0 ? o[i] : (o[i - 1] + o[i]) / 2;
|
|
4325
|
-
},
|
|
4326
|
-
sum:
|
|
4327
|
-
min:
|
|
4328
|
-
max:
|
|
4329
|
-
extent:
|
|
4330
|
-
mean:
|
|
4331
|
-
median:
|
|
4332
|
-
unique:
|
|
4333
|
-
uniqueCount:
|
|
4334
|
-
count:
|
|
4335
|
-
},
|
|
4350
|
+
}, rr = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), lr = (e, n) => new Set(n.map((t) => t.getValue(e))).size, sr = (e, n) => n.length, kt = {
|
|
4351
|
+
sum: er,
|
|
4352
|
+
min: tr,
|
|
4353
|
+
max: nr,
|
|
4354
|
+
extent: ir,
|
|
4355
|
+
mean: or,
|
|
4356
|
+
median: ar,
|
|
4357
|
+
unique: rr,
|
|
4358
|
+
uniqueCount: lr,
|
|
4359
|
+
count: sr
|
|
4360
|
+
}, cr = {
|
|
4336
4361
|
getDefaultColumnDef: () => ({
|
|
4337
4362
|
aggregatedCell: (e) => {
|
|
4338
4363
|
var n, t;
|
|
@@ -4345,7 +4370,7 @@ const Ja = (e, n, t) => t.reduce((i, o) => {
|
|
|
4345
4370
|
...e
|
|
4346
4371
|
}),
|
|
4347
4372
|
getDefaultOptions: (e) => ({
|
|
4348
|
-
onGroupingChange:
|
|
4373
|
+
onGroupingChange: he("grouping", e),
|
|
4349
4374
|
groupedColumnMode: "reorder"
|
|
4350
4375
|
}),
|
|
4351
4376
|
createColumn: (e, n) => {
|
|
@@ -4368,14 +4393,14 @@ const Ja = (e, n, t) => t.reduce((i, o) => {
|
|
|
4368
4393
|
}, e.getAutoAggregationFn = () => {
|
|
4369
4394
|
const t = n.getCoreRowModel().flatRows[0], i = t == null ? void 0 : t.getValue(e.id);
|
|
4370
4395
|
if (typeof i == "number")
|
|
4371
|
-
return
|
|
4396
|
+
return kt.sum;
|
|
4372
4397
|
if (Object.prototype.toString.call(i) === "[object Date]")
|
|
4373
|
-
return
|
|
4398
|
+
return kt.extent;
|
|
4374
4399
|
}, e.getAggregationFn = () => {
|
|
4375
4400
|
var t, i;
|
|
4376
4401
|
if (!e)
|
|
4377
4402
|
throw new Error();
|
|
4378
|
-
return
|
|
4403
|
+
return st(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (i = n.options.aggregationFns) == null ? void 0 : i[e.columnDef.aggregationFn]) != null ? t : kt[e.columnDef.aggregationFn];
|
|
4379
4404
|
};
|
|
4380
4405
|
},
|
|
4381
4406
|
createTable: (e) => {
|
|
@@ -4399,27 +4424,27 @@ const Ja = (e, n, t) => t.reduce((i, o) => {
|
|
|
4399
4424
|
};
|
|
4400
4425
|
}
|
|
4401
4426
|
};
|
|
4402
|
-
function
|
|
4427
|
+
function pr(e, n, t) {
|
|
4403
4428
|
if (!(n != null && n.length) || !t)
|
|
4404
4429
|
return e;
|
|
4405
4430
|
const i = e.filter((a) => !n.includes(a.id));
|
|
4406
4431
|
return t === "remove" ? i : [...n.map((a) => e.find((l) => l.id === a)).filter(Boolean), ...i];
|
|
4407
4432
|
}
|
|
4408
|
-
const
|
|
4433
|
+
const ur = {
|
|
4409
4434
|
getInitialState: (e) => ({
|
|
4410
4435
|
columnOrder: [],
|
|
4411
4436
|
...e
|
|
4412
4437
|
}),
|
|
4413
4438
|
getDefaultOptions: (e) => ({
|
|
4414
|
-
onColumnOrderChange:
|
|
4439
|
+
onColumnOrderChange: he("columnOrder", e)
|
|
4415
4440
|
}),
|
|
4416
4441
|
createColumn: (e, n) => {
|
|
4417
|
-
e.getIndex = D((t) => [
|
|
4442
|
+
e.getIndex = D((t) => [He(n, t)], (t) => t.findIndex((i) => i.id === e.id), A(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
4418
4443
|
var i;
|
|
4419
|
-
return ((i =
|
|
4444
|
+
return ((i = He(n, t)[0]) == null ? void 0 : i.id) === e.id;
|
|
4420
4445
|
}, e.getIsLastColumn = (t) => {
|
|
4421
4446
|
var i;
|
|
4422
|
-
const o =
|
|
4447
|
+
const o = He(n, t);
|
|
4423
4448
|
return ((i = o[o.length - 1]) == null ? void 0 : i.id) === e.id;
|
|
4424
4449
|
};
|
|
4425
4450
|
},
|
|
@@ -4439,19 +4464,19 @@ const cr = {
|
|
|
4439
4464
|
}
|
|
4440
4465
|
a = [...a, ...r];
|
|
4441
4466
|
}
|
|
4442
|
-
return
|
|
4467
|
+
return pr(a, t, i);
|
|
4443
4468
|
}, A(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4444
4469
|
}
|
|
4445
|
-
},
|
|
4470
|
+
}, Et = () => ({
|
|
4446
4471
|
left: [],
|
|
4447
4472
|
right: []
|
|
4448
|
-
}),
|
|
4473
|
+
}), dr = {
|
|
4449
4474
|
getInitialState: (e) => ({
|
|
4450
|
-
columnPinning:
|
|
4475
|
+
columnPinning: Et(),
|
|
4451
4476
|
...e
|
|
4452
4477
|
}),
|
|
4453
4478
|
getDefaultOptions: (e) => ({
|
|
4454
|
-
onColumnPinningChange:
|
|
4479
|
+
onColumnPinningChange: he("columnPinning", e)
|
|
4455
4480
|
}),
|
|
4456
4481
|
createColumn: (e, n) => {
|
|
4457
4482
|
e.pin = (t) => {
|
|
@@ -4507,7 +4532,7 @@ const cr = {
|
|
|
4507
4532
|
createTable: (e) => {
|
|
4508
4533
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
4509
4534
|
var t, i;
|
|
4510
|
-
return e.setColumnPinning(n ?
|
|
4535
|
+
return e.setColumnPinning(n ? Et() : (t = (i = e.initialState) == null ? void 0 : i.columnPinning) != null ? t : Et());
|
|
4511
4536
|
}, e.getIsSomeColumnsPinned = (n) => {
|
|
4512
4537
|
var t;
|
|
4513
4538
|
const i = e.getState().columnPinning;
|
|
@@ -4521,36 +4546,36 @@ const cr = {
|
|
|
4521
4546
|
return n.filter((a) => !o.includes(a.id));
|
|
4522
4547
|
}, A(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4523
4548
|
}
|
|
4524
|
-
},
|
|
4549
|
+
}, Ze = {
|
|
4525
4550
|
size: 150,
|
|
4526
4551
|
minSize: 20,
|
|
4527
4552
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
4528
|
-
},
|
|
4553
|
+
}, Pt = () => ({
|
|
4529
4554
|
startOffset: null,
|
|
4530
4555
|
startSize: null,
|
|
4531
4556
|
deltaOffset: null,
|
|
4532
4557
|
deltaPercentage: null,
|
|
4533
4558
|
isResizingColumn: !1,
|
|
4534
4559
|
columnSizingStart: []
|
|
4535
|
-
}),
|
|
4536
|
-
getDefaultColumnDef: () =>
|
|
4560
|
+
}), gr = {
|
|
4561
|
+
getDefaultColumnDef: () => Ze,
|
|
4537
4562
|
getInitialState: (e) => ({
|
|
4538
4563
|
columnSizing: {},
|
|
4539
|
-
columnSizingInfo:
|
|
4564
|
+
columnSizingInfo: Pt(),
|
|
4540
4565
|
...e
|
|
4541
4566
|
}),
|
|
4542
4567
|
getDefaultOptions: (e) => ({
|
|
4543
4568
|
columnResizeMode: "onEnd",
|
|
4544
4569
|
columnResizeDirection: "ltr",
|
|
4545
|
-
onColumnSizingChange:
|
|
4546
|
-
onColumnSizingInfoChange:
|
|
4570
|
+
onColumnSizingChange: he("columnSizing", e),
|
|
4571
|
+
onColumnSizingInfoChange: he("columnSizingInfo", e)
|
|
4547
4572
|
}),
|
|
4548
4573
|
createColumn: (e, n) => {
|
|
4549
4574
|
e.getSize = () => {
|
|
4550
4575
|
var t, i, o;
|
|
4551
4576
|
const a = n.getState().columnSizing[e.id];
|
|
4552
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
4553
|
-
}, e.getStart = D((t) => [t,
|
|
4577
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ze.minSize, (i = a ?? e.columnDef.size) != null ? i : Ze.size), (o = e.columnDef.maxSize) != null ? o : Ze.maxSize);
|
|
4578
|
+
}, e.getStart = D((t) => [t, He(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 = D((t) => [t, He(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 = () => {
|
|
4554
4579
|
n.setColumnSizing((t) => {
|
|
4555
4580
|
let {
|
|
4556
4581
|
[e.id]: i,
|
|
@@ -4584,26 +4609,26 @@ const cr = {
|
|
|
4584
4609
|
}, e.getResizeHandler = (t) => {
|
|
4585
4610
|
const i = n.getColumn(e.column.id), o = i == null ? void 0 : i.getCanResize();
|
|
4586
4611
|
return (a) => {
|
|
4587
|
-
if (!i || !o || (a.persist == null || a.persist(),
|
|
4612
|
+
if (!i || !o || (a.persist == null || a.persist(), Ft(a) && a.touches && a.touches.length > 1))
|
|
4588
4613
|
return;
|
|
4589
|
-
const l = e.getSize(), r = e ? e.getLeafHeaders().map((
|
|
4614
|
+
const l = e.getSize(), r = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Ft(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, b) => {
|
|
4590
4615
|
typeof b == "number" && (n.setColumnSizingInfo((w) => {
|
|
4591
|
-
var E,
|
|
4592
|
-
const F = n.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
4616
|
+
var E, x;
|
|
4617
|
+
const F = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (b - ((E = w == null ? void 0 : w.startOffset) != null ? E : 0)) * F, Y = Math.max(H / ((x = w == null ? void 0 : w.startSize) != null ? x : 0), -0.999999);
|
|
4593
4618
|
return w.columnSizingStart.forEach((Z) => {
|
|
4594
4619
|
let [ue, de] = Z;
|
|
4595
4620
|
c[ue] = Math.round(Math.max(de + de * Y, 0) * 100) / 100;
|
|
4596
4621
|
}), {
|
|
4597
4622
|
...w,
|
|
4598
|
-
deltaOffset:
|
|
4623
|
+
deltaOffset: H,
|
|
4599
4624
|
deltaPercentage: Y
|
|
4600
4625
|
};
|
|
4601
|
-
}), (n.options.columnResizeMode === "onChange" ||
|
|
4626
|
+
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((w) => ({
|
|
4602
4627
|
...w,
|
|
4603
4628
|
...c
|
|
4604
4629
|
})));
|
|
4605
|
-
}, f = (
|
|
4606
|
-
d("end",
|
|
4630
|
+
}, f = (h) => d("move", h), g = (h) => {
|
|
4631
|
+
d("end", h), n.setColumnSizingInfo((b) => ({
|
|
4607
4632
|
...b,
|
|
4608
4633
|
isResizingColumn: !1,
|
|
4609
4634
|
startOffset: null,
|
|
@@ -4613,21 +4638,21 @@ const cr = {
|
|
|
4613
4638
|
columnSizingStart: []
|
|
4614
4639
|
}));
|
|
4615
4640
|
}, u = t || typeof document < "u" ? document : null, m = {
|
|
4616
|
-
moveHandler: (
|
|
4617
|
-
upHandler: (
|
|
4618
|
-
u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(
|
|
4641
|
+
moveHandler: (h) => f(h.clientX),
|
|
4642
|
+
upHandler: (h) => {
|
|
4643
|
+
u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(h.clientX);
|
|
4619
4644
|
}
|
|
4620
4645
|
}, v = {
|
|
4621
|
-
moveHandler: (
|
|
4622
|
-
upHandler: (
|
|
4646
|
+
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4647
|
+
upHandler: (h) => {
|
|
4623
4648
|
var b;
|
|
4624
|
-
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler),
|
|
4649
|
+
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((b = h.touches[0]) == null ? void 0 : b.clientX);
|
|
4625
4650
|
}
|
|
4626
|
-
}, S =
|
|
4651
|
+
}, S = fr() ? {
|
|
4627
4652
|
passive: !1
|
|
4628
4653
|
} : !1;
|
|
4629
|
-
|
|
4630
|
-
...
|
|
4654
|
+
Ft(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, S), u == null || u.addEventListener("touchend", v.upHandler, S)) : (u == null || u.addEventListener("mousemove", m.moveHandler, S), u == null || u.addEventListener("mouseup", m.upHandler, S)), n.setColumnSizingInfo((h) => ({
|
|
4655
|
+
...h,
|
|
4631
4656
|
startOffset: s,
|
|
4632
4657
|
startSize: l,
|
|
4633
4658
|
deltaOffset: 0,
|
|
@@ -4644,7 +4669,7 @@ const cr = {
|
|
|
4644
4669
|
e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
|
|
4645
4670
|
}, e.resetHeaderSizeInfo = (n) => {
|
|
4646
4671
|
var t;
|
|
4647
|
-
e.setColumnSizingInfo(n ?
|
|
4672
|
+
e.setColumnSizingInfo(n ? Pt() : (t = e.initialState.columnSizingInfo) != null ? t : Pt());
|
|
4648
4673
|
}, e.getTotalSize = () => {
|
|
4649
4674
|
var n, t;
|
|
4650
4675
|
return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((i, o) => i + o.getSize(), 0)) != null ? n : 0;
|
|
@@ -4660,9 +4685,9 @@ const cr = {
|
|
|
4660
4685
|
};
|
|
4661
4686
|
}
|
|
4662
4687
|
};
|
|
4663
|
-
let
|
|
4664
|
-
function
|
|
4665
|
-
if (typeof
|
|
4688
|
+
let et = null;
|
|
4689
|
+
function fr() {
|
|
4690
|
+
if (typeof et == "boolean") return et;
|
|
4666
4691
|
let e = !1;
|
|
4667
4692
|
try {
|
|
4668
4693
|
const n = {
|
|
@@ -4675,18 +4700,18 @@ function dr() {
|
|
|
4675
4700
|
} catch {
|
|
4676
4701
|
e = !1;
|
|
4677
4702
|
}
|
|
4678
|
-
return
|
|
4703
|
+
return et = e, et;
|
|
4679
4704
|
}
|
|
4680
|
-
function
|
|
4705
|
+
function Ft(e) {
|
|
4681
4706
|
return e.type === "touchstart";
|
|
4682
4707
|
}
|
|
4683
|
-
const
|
|
4708
|
+
const mr = {
|
|
4684
4709
|
getInitialState: (e) => ({
|
|
4685
4710
|
columnVisibility: {},
|
|
4686
4711
|
...e
|
|
4687
4712
|
}),
|
|
4688
4713
|
getDefaultOptions: (e) => ({
|
|
4689
|
-
onColumnVisibilityChange:
|
|
4714
|
+
onColumnVisibilityChange: he("columnVisibility", e)
|
|
4690
4715
|
}),
|
|
4691
4716
|
createColumn: (e, n) => {
|
|
4692
4717
|
e.toggleVisibility = (t) => {
|
|
@@ -4725,23 +4750,23 @@ const gr = {
|
|
|
4725
4750
|
};
|
|
4726
4751
|
}
|
|
4727
4752
|
};
|
|
4728
|
-
function
|
|
4753
|
+
function He(e, n) {
|
|
4729
4754
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4730
4755
|
}
|
|
4731
|
-
const
|
|
4756
|
+
const vr = {
|
|
4732
4757
|
createTable: (e) => {
|
|
4733
4758
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
4734
4759
|
if (e._getGlobalFacetedMinMaxValues)
|
|
4735
4760
|
return e._getGlobalFacetedMinMaxValues();
|
|
4736
4761
|
};
|
|
4737
4762
|
}
|
|
4738
|
-
},
|
|
4763
|
+
}, hr = {
|
|
4739
4764
|
getInitialState: (e) => ({
|
|
4740
4765
|
globalFilter: void 0,
|
|
4741
4766
|
...e
|
|
4742
4767
|
}),
|
|
4743
4768
|
getDefaultOptions: (e) => ({
|
|
4744
|
-
onGlobalFilterChange:
|
|
4769
|
+
onGlobalFilterChange: he("globalFilter", e),
|
|
4745
4770
|
globalFilterFn: "auto",
|
|
4746
4771
|
getColumnCanGlobalFilter: (n) => {
|
|
4747
4772
|
var t;
|
|
@@ -4756,25 +4781,25 @@ const fr = {
|
|
|
4756
4781
|
};
|
|
4757
4782
|
},
|
|
4758
4783
|
createTable: (e) => {
|
|
4759
|
-
e.getGlobalAutoFilterFn = () =>
|
|
4784
|
+
e.getGlobalAutoFilterFn = () => Re.includesString, e.getGlobalFilterFn = () => {
|
|
4760
4785
|
var n, t;
|
|
4761
4786
|
const {
|
|
4762
4787
|
globalFilterFn: i
|
|
4763
4788
|
} = e.options;
|
|
4764
|
-
return
|
|
4789
|
+
return st(i) ? i : i === "auto" ? e.getGlobalAutoFilterFn() : (n = (t = e.options.filterFns) == null ? void 0 : t[i]) != null ? n : Re[i];
|
|
4765
4790
|
}, e.setGlobalFilter = (n) => {
|
|
4766
4791
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
|
|
4767
4792
|
}, e.resetGlobalFilter = (n) => {
|
|
4768
4793
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
4769
4794
|
};
|
|
4770
4795
|
}
|
|
4771
|
-
},
|
|
4796
|
+
}, xr = {
|
|
4772
4797
|
getInitialState: (e) => ({
|
|
4773
4798
|
expanded: {},
|
|
4774
4799
|
...e
|
|
4775
4800
|
}),
|
|
4776
4801
|
getDefaultOptions: (e) => ({
|
|
4777
|
-
onExpandedChange:
|
|
4802
|
+
onExpandedChange: he("expanded", e),
|
|
4778
4803
|
paginateExpandedRows: !0
|
|
4779
4804
|
}),
|
|
4780
4805
|
createTable: (e) => {
|
|
@@ -4855,19 +4880,19 @@ const fr = {
|
|
|
4855
4880
|
};
|
|
4856
4881
|
};
|
|
4857
4882
|
}
|
|
4858
|
-
},
|
|
4859
|
-
pageIndex:
|
|
4860
|
-
pageSize:
|
|
4861
|
-
}),
|
|
4883
|
+
}, Vt = 0, Lt = 10, It = () => ({
|
|
4884
|
+
pageIndex: Vt,
|
|
4885
|
+
pageSize: Lt
|
|
4886
|
+
}), wr = {
|
|
4862
4887
|
getInitialState: (e) => ({
|
|
4863
4888
|
...e,
|
|
4864
4889
|
pagination: {
|
|
4865
|
-
...
|
|
4890
|
+
...It(),
|
|
4866
4891
|
...e == null ? void 0 : e.pagination
|
|
4867
4892
|
}
|
|
4868
4893
|
}),
|
|
4869
4894
|
getDefaultOptions: (e) => ({
|
|
4870
|
-
onPaginationChange:
|
|
4895
|
+
onPaginationChange: he("pagination", e)
|
|
4871
4896
|
}),
|
|
4872
4897
|
createTable: (e) => {
|
|
4873
4898
|
let n = !1, t = !1;
|
|
@@ -4886,14 +4911,14 @@ const fr = {
|
|
|
4886
4911
|
});
|
|
4887
4912
|
}
|
|
4888
4913
|
}, e.setPagination = (i) => {
|
|
4889
|
-
const o = (a) =>
|
|
4914
|
+
const o = (a) => Pe(i, a);
|
|
4890
4915
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
4891
4916
|
}, e.resetPagination = (i) => {
|
|
4892
4917
|
var o;
|
|
4893
|
-
e.setPagination(i ?
|
|
4918
|
+
e.setPagination(i ? It() : (o = e.initialState.pagination) != null ? o : It());
|
|
4894
4919
|
}, e.setPageIndex = (i) => {
|
|
4895
4920
|
e.setPagination((o) => {
|
|
4896
|
-
let a =
|
|
4921
|
+
let a = Pe(i, o.pageIndex);
|
|
4897
4922
|
const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
4898
4923
|
return a = Math.max(0, Math.min(a, l)), {
|
|
4899
4924
|
...o,
|
|
@@ -4902,13 +4927,13 @@ const fr = {
|
|
|
4902
4927
|
});
|
|
4903
4928
|
}, e.resetPageIndex = (i) => {
|
|
4904
4929
|
var o, a;
|
|
4905
|
-
e.setPageIndex(i ?
|
|
4930
|
+
e.setPageIndex(i ? Vt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageIndex) != null ? o : Vt);
|
|
4906
4931
|
}, e.resetPageSize = (i) => {
|
|
4907
4932
|
var o, a;
|
|
4908
|
-
e.setPageSize(i ?
|
|
4933
|
+
e.setPageSize(i ? Lt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Lt);
|
|
4909
4934
|
}, e.setPageSize = (i) => {
|
|
4910
4935
|
e.setPagination((o) => {
|
|
4911
|
-
const a = Math.max(1,
|
|
4936
|
+
const a = Math.max(1, Pe(i, o.pageSize)), l = o.pageSize * o.pageIndex, r = Math.floor(l / a);
|
|
4912
4937
|
return {
|
|
4913
4938
|
...o,
|
|
4914
4939
|
pageIndex: r,
|
|
@@ -4917,7 +4942,7 @@ const fr = {
|
|
|
4917
4942
|
});
|
|
4918
4943
|
}, e.setPageCount = (i) => e.setPagination((o) => {
|
|
4919
4944
|
var a;
|
|
4920
|
-
let l =
|
|
4945
|
+
let l = Pe(i, (a = e.options.pageCount) != null ? a : -1);
|
|
4921
4946
|
return typeof l == "number" && (l = Math.max(-1, l)), {
|
|
4922
4947
|
...o,
|
|
4923
4948
|
pageCount: l
|
|
@@ -4938,16 +4963,16 @@ const fr = {
|
|
|
4938
4963
|
return (i = e.options.rowCount) != null ? i : e.getPrePaginationRowModel().rows.length;
|
|
4939
4964
|
};
|
|
4940
4965
|
}
|
|
4941
|
-
},
|
|
4966
|
+
}, Dt = () => ({
|
|
4942
4967
|
top: [],
|
|
4943
4968
|
bottom: []
|
|
4944
|
-
}),
|
|
4969
|
+
}), yr = {
|
|
4945
4970
|
getInitialState: (e) => ({
|
|
4946
|
-
rowPinning:
|
|
4971
|
+
rowPinning: Dt(),
|
|
4947
4972
|
...e
|
|
4948
4973
|
}),
|
|
4949
4974
|
getDefaultOptions: (e) => ({
|
|
4950
|
-
onRowPinningChange:
|
|
4975
|
+
onRowPinningChange: he("rowPinning", e)
|
|
4951
4976
|
}),
|
|
4952
4977
|
createRow: (e, n) => {
|
|
4953
4978
|
e.pin = (t, i, o) => {
|
|
@@ -5012,7 +5037,7 @@ const fr = {
|
|
|
5012
5037
|
createTable: (e) => {
|
|
5013
5038
|
e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
|
|
5014
5039
|
var t, i;
|
|
5015
|
-
return e.setRowPinning(n ?
|
|
5040
|
+
return e.setRowPinning(n ? Dt() : (t = (i = e.initialState) == null ? void 0 : i.rowPinning) != null ? t : Dt());
|
|
5016
5041
|
}, e.getIsSomeRowsPinned = (n) => {
|
|
5017
5042
|
var t;
|
|
5018
5043
|
const i = e.getState().rowPinning;
|
|
@@ -5042,13 +5067,13 @@ const fr = {
|
|
|
5042
5067
|
return n.filter((a) => !o.has(a.id));
|
|
5043
5068
|
}, A(e.options, "debugRows", "getCenterRows"));
|
|
5044
5069
|
}
|
|
5045
|
-
},
|
|
5070
|
+
}, br = {
|
|
5046
5071
|
getInitialState: (e) => ({
|
|
5047
5072
|
rowSelection: {},
|
|
5048
5073
|
...e
|
|
5049
5074
|
}),
|
|
5050
5075
|
getDefaultOptions: (e) => ({
|
|
5051
|
-
onRowSelectionChange:
|
|
5076
|
+
onRowSelectionChange: he("rowSelection", e),
|
|
5052
5077
|
enableRowSelection: !0,
|
|
5053
5078
|
enableMultiRowSelection: !0,
|
|
5054
5079
|
enableSubRowSelection: !0
|
|
@@ -5077,17 +5102,17 @@ const fr = {
|
|
|
5077
5102
|
...t
|
|
5078
5103
|
};
|
|
5079
5104
|
return e.getRowModel().rows.forEach((a) => {
|
|
5080
|
-
|
|
5105
|
+
Ht(o, a.id, i, !0, e);
|
|
5081
5106
|
}), o;
|
|
5082
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = D(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ?
|
|
5107
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = D(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? At(e, t) : {
|
|
5083
5108
|
rows: [],
|
|
5084
5109
|
flatRows: [],
|
|
5085
5110
|
rowsById: {}
|
|
5086
|
-
}, A(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = D(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ?
|
|
5111
|
+
}, A(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = D(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? At(e, t) : {
|
|
5087
5112
|
rows: [],
|
|
5088
5113
|
flatRows: [],
|
|
5089
5114
|
rowsById: {}
|
|
5090
|
-
}, A(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = D(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ?
|
|
5115
|
+
}, A(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = D(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? At(e, t) : {
|
|
5091
5116
|
rows: [],
|
|
5092
5117
|
flatRows: [],
|
|
5093
5118
|
rowsById: {}
|
|
@@ -5126,23 +5151,23 @@ const fr = {
|
|
|
5126
5151
|
const r = {
|
|
5127
5152
|
...a
|
|
5128
5153
|
};
|
|
5129
|
-
return
|
|
5154
|
+
return Ht(r, e.id, t, (l = i == null ? void 0 : i.selectChildren) != null ? l : !0, n), r;
|
|
5130
5155
|
});
|
|
5131
5156
|
}, e.getIsSelected = () => {
|
|
5132
5157
|
const {
|
|
5133
5158
|
rowSelection: t
|
|
5134
5159
|
} = n.getState();
|
|
5135
|
-
return
|
|
5160
|
+
return tn(e, t);
|
|
5136
5161
|
}, e.getIsSomeSelected = () => {
|
|
5137
5162
|
const {
|
|
5138
5163
|
rowSelection: t
|
|
5139
5164
|
} = n.getState();
|
|
5140
|
-
return
|
|
5165
|
+
return qt(e, t) === "some";
|
|
5141
5166
|
}, e.getIsAllSubRowsSelected = () => {
|
|
5142
5167
|
const {
|
|
5143
5168
|
rowSelection: t
|
|
5144
5169
|
} = n.getState();
|
|
5145
|
-
return
|
|
5170
|
+
return qt(e, t) === "all";
|
|
5146
5171
|
}, e.getCanSelect = () => {
|
|
5147
5172
|
var t;
|
|
5148
5173
|
return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
|
|
@@ -5160,16 +5185,16 @@ const fr = {
|
|
|
5160
5185
|
};
|
|
5161
5186
|
};
|
|
5162
5187
|
}
|
|
5163
|
-
},
|
|
5188
|
+
}, Ht = (e, n, t, i, o) => {
|
|
5164
5189
|
var a;
|
|
5165
5190
|
const l = o.getRow(n, !0);
|
|
5166
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) =>
|
|
5191
|
+
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((r) => delete e[r]), l.getCanSelect() && (e[n] = !0)) : delete e[n], i && (a = l.subRows) != null && a.length && l.getCanSelectSubRows() && l.subRows.forEach((r) => Ht(e, r.id, t, i, o));
|
|
5167
5192
|
};
|
|
5168
|
-
function
|
|
5193
|
+
function At(e, n) {
|
|
5169
5194
|
const t = e.getState().rowSelection, i = [], o = {}, a = function(l, r) {
|
|
5170
5195
|
return l.map((s) => {
|
|
5171
5196
|
var c;
|
|
5172
|
-
const d =
|
|
5197
|
+
const d = tn(s, t);
|
|
5173
5198
|
if (d && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
|
|
5174
5199
|
...s,
|
|
5175
5200
|
subRows: a(s.subRows)
|
|
@@ -5183,33 +5208,33 @@ function Dt(e, n) {
|
|
|
5183
5208
|
rowsById: o
|
|
5184
5209
|
};
|
|
5185
5210
|
}
|
|
5186
|
-
function
|
|
5211
|
+
function tn(e, n) {
|
|
5187
5212
|
var t;
|
|
5188
5213
|
return (t = n[e.id]) != null ? t : !1;
|
|
5189
5214
|
}
|
|
5190
|
-
function
|
|
5215
|
+
function qt(e, n, t) {
|
|
5191
5216
|
var i;
|
|
5192
5217
|
if (!((i = e.subRows) != null && i.length)) return !1;
|
|
5193
5218
|
let o = !0, a = !1;
|
|
5194
5219
|
return e.subRows.forEach((l) => {
|
|
5195
|
-
if (!(a && !o) && (l.getCanSelect() && (
|
|
5196
|
-
const r =
|
|
5220
|
+
if (!(a && !o) && (l.getCanSelect() && (tn(l, n) ? a = !0 : o = !1), l.subRows && l.subRows.length)) {
|
|
5221
|
+
const r = qt(l, n);
|
|
5197
5222
|
r === "all" ? a = !0 : (r === "some" && (a = !0), o = !1);
|
|
5198
5223
|
}
|
|
5199
5224
|
}), o ? "all" : a ? "some" : !1;
|
|
5200
5225
|
}
|
|
5201
|
-
const
|
|
5226
|
+
const Gt = /([0-9]+)/gm, Sr = (e, n, t) => bi(Ie(e.getValue(t)).toLowerCase(), Ie(n.getValue(t)).toLowerCase()), Cr = (e, n, t) => bi(Ie(e.getValue(t)), Ie(n.getValue(t))), _r = (e, n, t) => nn(Ie(e.getValue(t)).toLowerCase(), Ie(n.getValue(t)).toLowerCase()), Rr = (e, n, t) => nn(Ie(e.getValue(t)), Ie(n.getValue(t))), kr = (e, n, t) => {
|
|
5202
5227
|
const i = e.getValue(t), o = n.getValue(t);
|
|
5203
5228
|
return i > o ? 1 : i < o ? -1 : 0;
|
|
5204
|
-
},
|
|
5205
|
-
function
|
|
5229
|
+
}, Er = (e, n, t) => nn(e.getValue(t), n.getValue(t));
|
|
5230
|
+
function nn(e, n) {
|
|
5206
5231
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5207
5232
|
}
|
|
5208
|
-
function
|
|
5233
|
+
function Ie(e) {
|
|
5209
5234
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5210
5235
|
}
|
|
5211
5236
|
function bi(e, n) {
|
|
5212
|
-
const t = e.split(
|
|
5237
|
+
const t = e.split(Gt).filter(Boolean), i = n.split(Gt).filter(Boolean);
|
|
5213
5238
|
for (; t.length && i.length; ) {
|
|
5214
5239
|
const o = t.shift(), a = i.shift(), l = parseInt(o, 10), r = parseInt(a, 10), s = [l, r].sort();
|
|
5215
5240
|
if (isNaN(s[0])) {
|
|
@@ -5228,14 +5253,14 @@ function bi(e, n) {
|
|
|
5228
5253
|
}
|
|
5229
5254
|
return t.length - i.length;
|
|
5230
5255
|
}
|
|
5231
|
-
const
|
|
5232
|
-
alphanumeric:
|
|
5233
|
-
alphanumericCaseSensitive:
|
|
5234
|
-
text:
|
|
5235
|
-
textCaseSensitive:
|
|
5236
|
-
datetime:
|
|
5237
|
-
basic:
|
|
5238
|
-
},
|
|
5256
|
+
const Le = {
|
|
5257
|
+
alphanumeric: Sr,
|
|
5258
|
+
alphanumericCaseSensitive: Cr,
|
|
5259
|
+
text: _r,
|
|
5260
|
+
textCaseSensitive: Rr,
|
|
5261
|
+
datetime: kr,
|
|
5262
|
+
basic: Er
|
|
5263
|
+
}, Pr = {
|
|
5239
5264
|
getInitialState: (e) => ({
|
|
5240
5265
|
sorting: [],
|
|
5241
5266
|
...e
|
|
@@ -5245,7 +5270,7 @@ const Ne = {
|
|
|
5245
5270
|
sortUndefined: 1
|
|
5246
5271
|
}),
|
|
5247
5272
|
getDefaultOptions: (e) => ({
|
|
5248
|
-
onSortingChange:
|
|
5273
|
+
onSortingChange: he("sorting", e),
|
|
5249
5274
|
isMultiSortEvent: (n) => n.shiftKey
|
|
5250
5275
|
}),
|
|
5251
5276
|
createColumn: (e, n) => {
|
|
@@ -5255,11 +5280,11 @@ const Ne = {
|
|
|
5255
5280
|
for (const o of t) {
|
|
5256
5281
|
const a = o == null ? void 0 : o.getValue(e.id);
|
|
5257
5282
|
if (Object.prototype.toString.call(a) === "[object Date]")
|
|
5258
|
-
return
|
|
5259
|
-
if (typeof a == "string" && (i = !0, a.split(
|
|
5260
|
-
return
|
|
5283
|
+
return Le.datetime;
|
|
5284
|
+
if (typeof a == "string" && (i = !0, a.split(Gt).length > 1))
|
|
5285
|
+
return Le.alphanumeric;
|
|
5261
5286
|
}
|
|
5262
|
-
return i ?
|
|
5287
|
+
return i ? Le.text : Le.basic;
|
|
5263
5288
|
}, e.getAutoSortDir = () => {
|
|
5264
5289
|
const t = n.getFilteredRowModel().flatRows[0];
|
|
5265
5290
|
return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
|
|
@@ -5267,7 +5292,7 @@ const Ne = {
|
|
|
5267
5292
|
var t, i;
|
|
5268
5293
|
if (!e)
|
|
5269
5294
|
throw new Error();
|
|
5270
|
-
return
|
|
5295
|
+
return st(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (i = n.options.sortingFns) == null ? void 0 : i[e.columnDef.sortingFn]) != null ? t : Le[e.columnDef.sortingFn];
|
|
5271
5296
|
}, e.toggleSorting = (t, i) => {
|
|
5272
5297
|
const o = e.getNextSortingOrder(), a = typeof t < "u" && t !== null;
|
|
5273
5298
|
n.setSorting((l) => {
|
|
@@ -5324,30 +5349,30 @@ const Ne = {
|
|
|
5324
5349
|
e.setSorting(n ? [] : (t = (i = e.initialState) == null ? void 0 : i.sorting) != null ? t : []);
|
|
5325
5350
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
5326
5351
|
}
|
|
5327
|
-
},
|
|
5328
|
-
Ya,
|
|
5329
|
-
gr,
|
|
5330
|
-
cr,
|
|
5331
|
-
pr,
|
|
5332
|
-
Xa,
|
|
5352
|
+
}, Fr = [
|
|
5333
5353
|
Qa,
|
|
5334
|
-
fr,
|
|
5335
|
-
//depends on ColumnFaceting
|
|
5336
5354
|
mr,
|
|
5355
|
+
ur,
|
|
5356
|
+
dr,
|
|
5357
|
+
Ja,
|
|
5358
|
+
Za,
|
|
5359
|
+
vr,
|
|
5360
|
+
//depends on ColumnFaceting
|
|
5361
|
+
hr,
|
|
5337
5362
|
//depends on ColumnFiltering
|
|
5338
|
-
|
|
5339
|
-
|
|
5363
|
+
Pr,
|
|
5364
|
+
cr,
|
|
5340
5365
|
//depends on RowSorting
|
|
5341
|
-
vr,
|
|
5342
5366
|
xr,
|
|
5343
|
-
hr,
|
|
5344
5367
|
wr,
|
|
5345
|
-
|
|
5368
|
+
yr,
|
|
5369
|
+
br,
|
|
5370
|
+
gr
|
|
5346
5371
|
];
|
|
5347
|
-
function
|
|
5372
|
+
function Ir(e) {
|
|
5348
5373
|
var n, t;
|
|
5349
5374
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
5350
|
-
const i = [...
|
|
5375
|
+
const i = [...Fr, ...(n = e._features) != null ? n : []];
|
|
5351
5376
|
let o = {
|
|
5352
5377
|
_features: i
|
|
5353
5378
|
};
|
|
@@ -5385,7 +5410,7 @@ function Pr(e) {
|
|
|
5385
5410
|
o.setState(o.initialState);
|
|
5386
5411
|
},
|
|
5387
5412
|
setOptions: (g) => {
|
|
5388
|
-
const u =
|
|
5413
|
+
const u = Pe(g, o.options);
|
|
5389
5414
|
o.options = l(u);
|
|
5390
5415
|
},
|
|
5391
5416
|
getState: () => o.options.state,
|
|
@@ -5426,8 +5451,8 @@ function Pr(e) {
|
|
|
5426
5451
|
_getColumnDefs: () => o.options.columns,
|
|
5427
5452
|
getAllColumns: D(() => [o._getColumnDefs()], (g) => {
|
|
5428
5453
|
const u = function(m, v, S) {
|
|
5429
|
-
return S === void 0 && (S = 0), m.map((
|
|
5430
|
-
const b =
|
|
5454
|
+
return S === void 0 && (S = 0), m.map((h) => {
|
|
5455
|
+
const b = Xa(o, h, S, v), w = h;
|
|
5431
5456
|
return b.columns = w.columns ? u(w.columns, b, S + 1) : [], b;
|
|
5432
5457
|
});
|
|
5433
5458
|
};
|
|
@@ -5451,7 +5476,7 @@ function Pr(e) {
|
|
|
5451
5476
|
}
|
|
5452
5477
|
return o;
|
|
5453
5478
|
}
|
|
5454
|
-
function
|
|
5479
|
+
function Dr() {
|
|
5455
5480
|
return (e) => D(() => [e.options.data], (n) => {
|
|
5456
5481
|
const t = {
|
|
5457
5482
|
rows: [],
|
|
@@ -5472,10 +5497,10 @@ function Fr() {
|
|
|
5472
5497
|
return t.rows = i(n), t;
|
|
5473
5498
|
}, A(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
5474
5499
|
}
|
|
5475
|
-
function
|
|
5476
|
-
return (e) => D(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t :
|
|
5500
|
+
function Ar() {
|
|
5501
|
+
return (e) => D(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : $r(t), A(e.options, "debugTable", "getExpandedRowModel"));
|
|
5477
5502
|
}
|
|
5478
|
-
function
|
|
5503
|
+
function $r(e) {
|
|
5479
5504
|
const n = [], t = (i) => {
|
|
5480
5505
|
var o;
|
|
5481
5506
|
n.push(i), (o = i.subRows) != null && o.length && i.getIsExpanded() && i.subRows.forEach(t);
|
|
@@ -5486,7 +5511,7 @@ function Dr(e) {
|
|
|
5486
5511
|
rowsById: e.rowsById
|
|
5487
5512
|
};
|
|
5488
5513
|
}
|
|
5489
|
-
function
|
|
5514
|
+
function Mr() {
|
|
5490
5515
|
return (e) => D(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
|
|
5491
5516
|
if (!t.rows.length || !n.length)
|
|
5492
5517
|
return t.rows.forEach((s) => {
|
|
@@ -5495,39 +5520,39 @@ function Ar() {
|
|
|
5495
5520
|
const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, l = function(s, c, d) {
|
|
5496
5521
|
if (c === void 0 && (c = 0), c >= i.length)
|
|
5497
5522
|
return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = l(m.subRows, c + 1, m.id)), m));
|
|
5498
|
-
const f = i[c], g =
|
|
5523
|
+
const f = i[c], g = Or(s, f);
|
|
5499
5524
|
return Array.from(g.entries()).map((m, v) => {
|
|
5500
|
-
let [S,
|
|
5525
|
+
let [S, h] = m, b = `${f}:${S}`;
|
|
5501
5526
|
b = d ? `${d}>${b}` : b;
|
|
5502
|
-
const w = l(
|
|
5527
|
+
const w = l(h, c + 1, b);
|
|
5503
5528
|
w.forEach((F) => {
|
|
5504
5529
|
F.parentId = b;
|
|
5505
5530
|
});
|
|
5506
|
-
const E = c ? ui(
|
|
5507
|
-
return Object.assign(
|
|
5531
|
+
const E = c ? ui(h, (F) => F.subRows) : h, x = di(e, b, E[0].original, v, c, void 0, d);
|
|
5532
|
+
return Object.assign(x, {
|
|
5508
5533
|
groupingColumnId: f,
|
|
5509
5534
|
groupingValue: S,
|
|
5510
5535
|
subRows: w,
|
|
5511
5536
|
leafRows: E,
|
|
5512
5537
|
getValue: (F) => {
|
|
5513
5538
|
if (i.includes(F)) {
|
|
5514
|
-
if (
|
|
5515
|
-
return
|
|
5516
|
-
if (
|
|
5517
|
-
var
|
|
5518
|
-
|
|
5539
|
+
if (x._valuesCache.hasOwnProperty(F))
|
|
5540
|
+
return x._valuesCache[F];
|
|
5541
|
+
if (h[0]) {
|
|
5542
|
+
var H;
|
|
5543
|
+
x._valuesCache[F] = (H = h[0].getValue(F)) != null ? H : void 0;
|
|
5519
5544
|
}
|
|
5520
|
-
return
|
|
5545
|
+
return x._valuesCache[F];
|
|
5521
5546
|
}
|
|
5522
|
-
if (
|
|
5523
|
-
return
|
|
5547
|
+
if (x._groupingValuesCache.hasOwnProperty(F))
|
|
5548
|
+
return x._groupingValuesCache[F];
|
|
5524
5549
|
const Y = e.getColumn(F), Z = Y == null ? void 0 : Y.getAggregationFn();
|
|
5525
5550
|
if (Z)
|
|
5526
|
-
return
|
|
5551
|
+
return x._groupingValuesCache[F] = Z(F, E, h), x._groupingValuesCache[F];
|
|
5527
5552
|
}
|
|
5528
5553
|
}), w.forEach((F) => {
|
|
5529
5554
|
o.push(F), a[F.id] = F;
|
|
5530
|
-
}),
|
|
5555
|
+
}), x;
|
|
5531
5556
|
});
|
|
5532
5557
|
}, r = l(t.rows, 0);
|
|
5533
5558
|
return r.forEach((s) => {
|
|
@@ -5543,7 +5568,7 @@ function Ar() {
|
|
|
5543
5568
|
});
|
|
5544
5569
|
}));
|
|
5545
5570
|
}
|
|
5546
|
-
function
|
|
5571
|
+
function Or(e, n) {
|
|
5547
5572
|
const t = /* @__PURE__ */ new Map();
|
|
5548
5573
|
return e.reduce((i, o) => {
|
|
5549
5574
|
const a = `${o.getGroupingValue(n)}`, l = i.get(a);
|
|
@@ -5561,21 +5586,21 @@ function $r(e, n) {
|
|
|
5561
5586
|
* @license MIT
|
|
5562
5587
|
*/
|
|
5563
5588
|
function Si(e, n) {
|
|
5564
|
-
return e ?
|
|
5589
|
+
return e ? jr(e) ? /* @__PURE__ */ ge.createElement(e, n) : e : null;
|
|
5565
5590
|
}
|
|
5566
|
-
function
|
|
5567
|
-
return
|
|
5591
|
+
function jr(e) {
|
|
5592
|
+
return Tr(e) || typeof e == "function" || zr(e);
|
|
5568
5593
|
}
|
|
5569
|
-
function
|
|
5594
|
+
function Tr(e) {
|
|
5570
5595
|
return typeof e == "function" && (() => {
|
|
5571
5596
|
const n = Object.getPrototypeOf(e);
|
|
5572
5597
|
return n.prototype && n.prototype.isReactComponent;
|
|
5573
5598
|
})();
|
|
5574
5599
|
}
|
|
5575
|
-
function
|
|
5600
|
+
function zr(e) {
|
|
5576
5601
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
5577
5602
|
}
|
|
5578
|
-
function
|
|
5603
|
+
function Nr(e) {
|
|
5579
5604
|
const n = {
|
|
5580
5605
|
state: {},
|
|
5581
5606
|
// Dummy state
|
|
@@ -5585,7 +5610,7 @@ function Tr(e) {
|
|
|
5585
5610
|
renderFallbackValue: null,
|
|
5586
5611
|
...e
|
|
5587
5612
|
}, [t] = ge.useState(() => ({
|
|
5588
|
-
current:
|
|
5613
|
+
current: Ir(n)
|
|
5589
5614
|
})), [i, o] = ge.useState(() => t.current.initialState);
|
|
5590
5615
|
return t.current.setOptions((a) => ({
|
|
5591
5616
|
...a,
|
|
@@ -5601,7 +5626,7 @@ function Tr(e) {
|
|
|
5601
5626
|
}
|
|
5602
5627
|
})), t.current;
|
|
5603
5628
|
}
|
|
5604
|
-
const
|
|
5629
|
+
const $n = ({
|
|
5605
5630
|
header: e
|
|
5606
5631
|
}) => {
|
|
5607
5632
|
var n;
|
|
@@ -5609,34 +5634,34 @@ const An = ({
|
|
|
5609
5634
|
asc: /* @__PURE__ */ p(Ce, { name: "chevron-up", children: "ascending" }),
|
|
5610
5635
|
desc: /* @__PURE__ */ p(Ce, { name: "chevron-down", children: "descending" })
|
|
5611
5636
|
}[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
|
|
5612
|
-
},
|
|
5637
|
+
}, Vr = ({ header: e }) => {
|
|
5613
5638
|
const n = e.column.getCanSort(), t = e.column.columnDef.meta, i = t == null ? void 0 : t.isInteractiveHeader, o = Si(e.column.columnDef.header, e.getContext());
|
|
5614
5639
|
return /* @__PURE__ */ p(
|
|
5615
5640
|
"th",
|
|
5616
5641
|
{
|
|
5617
5642
|
"aria-hidden": (t == null ? void 0 : t.headerAriaHidden) || void 0,
|
|
5618
5643
|
"aria-label": t == null ? void 0 : t.headerAriaLabel,
|
|
5619
|
-
className:
|
|
5644
|
+
className: L("p-column-header", e.column.id),
|
|
5620
5645
|
children: n && !i ? /* @__PURE__ */ p(
|
|
5621
|
-
|
|
5646
|
+
Ee,
|
|
5622
5647
|
{
|
|
5623
5648
|
appearance: "link",
|
|
5624
5649
|
className: "p-button--column-header",
|
|
5625
5650
|
onClick: e.column.getToggleSortingHandler(),
|
|
5626
5651
|
type: "button",
|
|
5627
|
-
children: /* @__PURE__ */
|
|
5652
|
+
children: /* @__PURE__ */ z(be, { children: [
|
|
5628
5653
|
o,
|
|
5629
|
-
/* @__PURE__ */ p(
|
|
5654
|
+
/* @__PURE__ */ p($n, { header: e })
|
|
5630
5655
|
] })
|
|
5631
5656
|
}
|
|
5632
|
-
) : /* @__PURE__ */
|
|
5657
|
+
) : /* @__PURE__ */ z("span", { className: "p-container--column-header", children: [
|
|
5633
5658
|
o,
|
|
5634
|
-
n && !i && /* @__PURE__ */ p(
|
|
5659
|
+
n && !i && /* @__PURE__ */ p($n, { header: e })
|
|
5635
5660
|
] })
|
|
5636
5661
|
},
|
|
5637
5662
|
e.id
|
|
5638
5663
|
);
|
|
5639
|
-
},
|
|
5664
|
+
}, qe = ({
|
|
5640
5665
|
children: e,
|
|
5641
5666
|
"aria-label": n = "Table controls"
|
|
5642
5667
|
}) => /* @__PURE__ */ p(
|
|
@@ -5646,10 +5671,10 @@ const An = ({
|
|
|
5646
5671
|
className: "controls-bar u-flex u-flex--justify-between u-flex--wrap",
|
|
5647
5672
|
children: /* @__PURE__ */ p("div", { className: "p-form p-form--inline", children: e })
|
|
5648
5673
|
}
|
|
5649
|
-
),
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
const
|
|
5674
|
+
), Lr = ({ children: e }) => /* @__PURE__ */ p("strong", { className: "controls-bar__description", children: e }), Hr = ({ children: e }) => /* @__PURE__ */ p("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
|
|
5675
|
+
qe.Left = Lr;
|
|
5676
|
+
qe.Right = Hr;
|
|
5677
|
+
const qr = ({
|
|
5653
5678
|
currentPage: e,
|
|
5654
5679
|
itemsPerPage: n,
|
|
5655
5680
|
totalItems: t,
|
|
@@ -5669,8 +5694,8 @@ const Lr = ({
|
|
|
5669
5694
|
const { value: m } = u.target;
|
|
5670
5695
|
i(Number(m));
|
|
5671
5696
|
}, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
|
|
5672
|
-
return /* @__PURE__ */
|
|
5673
|
-
/* @__PURE__ */
|
|
5697
|
+
return /* @__PURE__ */ z(qe, { children: [
|
|
5698
|
+
/* @__PURE__ */ z(qe.Left, { children: [
|
|
5674
5699
|
"Showing ",
|
|
5675
5700
|
g(),
|
|
5676
5701
|
" out of ",
|
|
@@ -5678,9 +5703,9 @@ const Lr = ({
|
|
|
5678
5703
|
" ",
|
|
5679
5704
|
o
|
|
5680
5705
|
] }),
|
|
5681
|
-
/* @__PURE__ */
|
|
5706
|
+
/* @__PURE__ */ z(qe.Right, { children: [
|
|
5682
5707
|
/* @__PURE__ */ p(
|
|
5683
|
-
|
|
5708
|
+
Oo,
|
|
5684
5709
|
{
|
|
5685
5710
|
currentPage: e,
|
|
5686
5711
|
disabled: l,
|
|
@@ -5701,7 +5726,7 @@ const Lr = ({
|
|
|
5701
5726
|
)
|
|
5702
5727
|
] })
|
|
5703
5728
|
] });
|
|
5704
|
-
},
|
|
5729
|
+
}, Gr = ({
|
|
5705
5730
|
grouping: e,
|
|
5706
5731
|
initialData: n
|
|
5707
5732
|
}) => {
|
|
@@ -5729,7 +5754,7 @@ const Lr = ({
|
|
|
5729
5754
|
return r;
|
|
5730
5755
|
});
|
|
5731
5756
|
}, [n, e]), { expanded: t, setExpanded: o };
|
|
5732
|
-
},
|
|
5757
|
+
}, Br = ({
|
|
5733
5758
|
groupBy: e,
|
|
5734
5759
|
initialData: n
|
|
5735
5760
|
}) => {
|
|
@@ -5743,7 +5768,7 @@ const Lr = ({
|
|
|
5743
5768
|
return 0;
|
|
5744
5769
|
}) : n, [n, t]);
|
|
5745
5770
|
return { grouping: t, setGrouping: i, groupedData: o };
|
|
5746
|
-
},
|
|
5771
|
+
}, Ur = ({
|
|
5747
5772
|
isLoading: e
|
|
5748
5773
|
}) => {
|
|
5749
5774
|
const n = fe(null), t = fe(null);
|
|
@@ -5760,7 +5785,7 @@ const Lr = ({
|
|
|
5760
5785
|
a.querySelectorAll(l).forEach((r) => {
|
|
5761
5786
|
r.getAttribute("tabindex") !== "-1" && (r.tabIndex = 0);
|
|
5762
5787
|
});
|
|
5763
|
-
}),
|
|
5788
|
+
}), Ut(() => {
|
|
5764
5789
|
const a = n.current;
|
|
5765
5790
|
if (!a || e) {
|
|
5766
5791
|
t.current = null;
|
|
@@ -5779,7 +5804,7 @@ const Lr = ({
|
|
|
5779
5804
|
s && (t.current && t.current !== s && (t.current.tabIndex = -1), s.tabIndex = 0, t.current = s);
|
|
5780
5805
|
}, []), o = U(
|
|
5781
5806
|
(a) => {
|
|
5782
|
-
var S,
|
|
5807
|
+
var S, h, b, w, E;
|
|
5783
5808
|
if (a.key !== "ArrowUp" && a.key !== "ArrowDown" && a.key !== "ArrowLeft" && a.key !== "ArrowRight" && a.key !== "Home" && a.key !== "End")
|
|
5784
5809
|
return;
|
|
5785
5810
|
const l = n.current;
|
|
@@ -5795,36 +5820,36 @@ const Lr = ({
|
|
|
5795
5820
|
if (!f) return;
|
|
5796
5821
|
const g = d.indexOf(f);
|
|
5797
5822
|
if (g === -1) return;
|
|
5798
|
-
const u = (
|
|
5799
|
-
|
|
5823
|
+
const u = (x) => Array.from(
|
|
5824
|
+
x.querySelectorAll(
|
|
5800
5825
|
'td[role="gridcell"][tabindex="-1"]:not(.p-generic-table__group-chevron)'
|
|
5801
5826
|
)
|
|
5802
5827
|
), m = u(f), v = c ? m.indexOf(r) : -1;
|
|
5803
5828
|
switch (a.key) {
|
|
5804
5829
|
case "ArrowUp": {
|
|
5805
5830
|
if (g <= 0) break;
|
|
5806
|
-
const
|
|
5831
|
+
const x = d[g - 1];
|
|
5807
5832
|
if (c && v >= 0) {
|
|
5808
|
-
const F = u(
|
|
5833
|
+
const F = u(x);
|
|
5809
5834
|
if (F.length > 0) {
|
|
5810
5835
|
F[Math.min(v, F.length - 1)].focus();
|
|
5811
5836
|
break;
|
|
5812
5837
|
}
|
|
5813
5838
|
}
|
|
5814
|
-
|
|
5839
|
+
x.focus();
|
|
5815
5840
|
break;
|
|
5816
5841
|
}
|
|
5817
5842
|
case "ArrowDown": {
|
|
5818
5843
|
if (g >= d.length - 1) break;
|
|
5819
|
-
const
|
|
5844
|
+
const x = d[g + 1];
|
|
5820
5845
|
if (c && v >= 0) {
|
|
5821
|
-
const F = u(
|
|
5846
|
+
const F = u(x);
|
|
5822
5847
|
if (F.length > 0) {
|
|
5823
5848
|
F[Math.min(v, F.length - 1)].focus();
|
|
5824
5849
|
break;
|
|
5825
5850
|
}
|
|
5826
5851
|
}
|
|
5827
|
-
|
|
5852
|
+
x.focus();
|
|
5828
5853
|
break;
|
|
5829
5854
|
}
|
|
5830
5855
|
case "ArrowRight":
|
|
@@ -5835,7 +5860,7 @@ const Lr = ({
|
|
|
5835
5860
|
v > 0 ? m[v - 1].focus() : f.focus();
|
|
5836
5861
|
break;
|
|
5837
5862
|
case "Home":
|
|
5838
|
-
c ? (
|
|
5863
|
+
c ? (h = m[0]) == null || h.focus() : a.ctrlKey && ((b = d[0]) == null || b.focus());
|
|
5839
5864
|
break;
|
|
5840
5865
|
case "End":
|
|
5841
5866
|
c ? (w = m[m.length - 1]) == null || w.focus() : a.ctrlKey && ((E = d[d.length - 1]) == null || E.focus());
|
|
@@ -5845,22 +5870,22 @@ const Lr = ({
|
|
|
5845
5870
|
[]
|
|
5846
5871
|
);
|
|
5847
5872
|
return { tableRef: n, handleTableFocus: i, handleTableKeyDown: o };
|
|
5848
|
-
},
|
|
5873
|
+
}, Kr = ({
|
|
5849
5874
|
containerRef: e,
|
|
5850
5875
|
variant: n,
|
|
5851
5876
|
length: t,
|
|
5852
5877
|
isLoading: i
|
|
5853
5878
|
}) => {
|
|
5854
5879
|
const o = fe(null), [a, l] = pe("auto"), [r, s] = pe(!1);
|
|
5855
|
-
return
|
|
5880
|
+
return Ut(() => {
|
|
5856
5881
|
const d = () => {
|
|
5857
5882
|
const u = o.current;
|
|
5858
5883
|
if (!u) return;
|
|
5859
5884
|
const m = (e == null ? void 0 : e.current) || document.querySelector("main");
|
|
5860
5885
|
if (!m) return;
|
|
5861
|
-
const v = m.getBoundingClientRect(), S = u.getBoundingClientRect(),
|
|
5886
|
+
const v = m.getBoundingClientRect(), S = u.getBoundingClientRect(), h = v.bottom - S.top, w = u.scrollHeight > h;
|
|
5862
5887
|
s(w), l(
|
|
5863
|
-
n === "full-height" && w ? `${
|
|
5888
|
+
n === "full-height" && w ? `${h}px` : "auto"
|
|
5864
5889
|
);
|
|
5865
5890
|
};
|
|
5866
5891
|
d();
|
|
@@ -5869,7 +5894,7 @@ const Lr = ({
|
|
|
5869
5894
|
window.removeEventListener("resize", d), g && f.unobserve(g);
|
|
5870
5895
|
};
|
|
5871
5896
|
}, [e, t, i]), { tableBodyRef: o, maxHeight: a, effectiveVariant: n === "full-height" && r ? "full-height" : "regular" };
|
|
5872
|
-
},
|
|
5897
|
+
}, Wr = ({
|
|
5873
5898
|
externalSorting: e,
|
|
5874
5899
|
setExternalSorting: n,
|
|
5875
5900
|
grouping: t,
|
|
@@ -5900,7 +5925,7 @@ const Lr = ({
|
|
|
5900
5925
|
return 0;
|
|
5901
5926
|
}) : [], [i, a, o, t]);
|
|
5902
5927
|
return { sorting: a, setSorting: r, sortedData: s };
|
|
5903
|
-
},
|
|
5928
|
+
}, Yr = ({ table: e, ...n }) => {
|
|
5904
5929
|
const t = fe(null);
|
|
5905
5930
|
if (!e)
|
|
5906
5931
|
return null;
|
|
@@ -5908,7 +5933,7 @@ const Lr = ({
|
|
|
5908
5933
|
return le(() => {
|
|
5909
5934
|
t.current && (t.current.indeterminate = l);
|
|
5910
5935
|
}, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
5911
|
-
/* @__PURE__ */
|
|
5936
|
+
/* @__PURE__ */ z(
|
|
5912
5937
|
"label",
|
|
5913
5938
|
{
|
|
5914
5939
|
className: "p-checkbox--inline p-table-checkbox--all",
|
|
@@ -5935,12 +5960,12 @@ const Lr = ({
|
|
|
5935
5960
|
]
|
|
5936
5961
|
}
|
|
5937
5962
|
);
|
|
5938
|
-
},
|
|
5963
|
+
}, Xr = ({ row: e, ...n }) => {
|
|
5939
5964
|
const t = fe(null);
|
|
5940
5965
|
if (!e)
|
|
5941
5966
|
return (
|
|
5942
5967
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
5943
|
-
/* @__PURE__ */
|
|
5968
|
+
/* @__PURE__ */ z(
|
|
5944
5969
|
"label",
|
|
5945
5970
|
{
|
|
5946
5971
|
className: "p-checkbox--inline p-table-checkbox--group",
|
|
@@ -5969,7 +5994,7 @@ const Lr = ({
|
|
|
5969
5994
|
return le(() => {
|
|
5970
5995
|
t.current && (t.current.indeterminate = l);
|
|
5971
5996
|
}, [l]), // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
5972
|
-
/* @__PURE__ */
|
|
5997
|
+
/* @__PURE__ */ z(
|
|
5973
5998
|
"label",
|
|
5974
5999
|
{
|
|
5975
6000
|
className: "p-checkbox--inline p-table-checkbox--group",
|
|
@@ -5997,7 +6022,7 @@ const Lr = ({
|
|
|
5997
6022
|
]
|
|
5998
6023
|
}
|
|
5999
6024
|
);
|
|
6000
|
-
},
|
|
6025
|
+
}, Fe = ({
|
|
6001
6026
|
row: e,
|
|
6002
6027
|
disabledTooltip: n = "",
|
|
6003
6028
|
isNested: t = !1,
|
|
@@ -6006,7 +6031,7 @@ const Lr = ({
|
|
|
6006
6031
|
if (!e)
|
|
6007
6032
|
return (
|
|
6008
6033
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
6009
|
-
/* @__PURE__ */
|
|
6034
|
+
/* @__PURE__ */ z(
|
|
6010
6035
|
"label",
|
|
6011
6036
|
{
|
|
6012
6037
|
className: "p-checkbox--inline p-table-checkbox",
|
|
@@ -6028,7 +6053,7 @@ const Lr = ({
|
|
|
6028
6053
|
)
|
|
6029
6054
|
);
|
|
6030
6055
|
const o = e.getCanSelect(), a = typeof n == "string" ? n : n(e);
|
|
6031
|
-
return /* @__PURE__ */ p(
|
|
6056
|
+
return /* @__PURE__ */ p(Wt, { message: t ? "Selection is managed by the parent row" : o ? !1 : a, position: "btm-right", children: /* @__PURE__ */ z(
|
|
6032
6057
|
"label",
|
|
6033
6058
|
{
|
|
6034
6059
|
className: "p-checkbox--inline p-table-checkbox",
|
|
@@ -6051,9 +6076,9 @@ const Lr = ({
|
|
|
6051
6076
|
}
|
|
6052
6077
|
) });
|
|
6053
6078
|
};
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
const
|
|
6079
|
+
Fe.All = Yr;
|
|
6080
|
+
Fe.Group = Xr;
|
|
6081
|
+
const Qr = ({
|
|
6057
6082
|
canSelect: e,
|
|
6058
6083
|
initialColumns: n,
|
|
6059
6084
|
groupBy: t,
|
|
@@ -6069,11 +6094,11 @@ const Yr = ({
|
|
|
6069
6094
|
accessorKey: "id",
|
|
6070
6095
|
enableSorting: !1,
|
|
6071
6096
|
meta: { headerAriaLabel: "Row selection" },
|
|
6072
|
-
header: ({ table: s }) => t ? "" : /* @__PURE__ */ p(
|
|
6097
|
+
header: ({ table: s }) => t ? "" : /* @__PURE__ */ p(Fe.All, { table: s }),
|
|
6073
6098
|
cell: ({ row: s }) => {
|
|
6074
6099
|
const c = o.rowSelectionLabelKey && o.rowSelectionLabelKey in s.original ? `select ${s.original[o.rowSelectionLabelKey]}` : "select row";
|
|
6075
6100
|
return s.getIsGrouped() ? null : /* @__PURE__ */ p(
|
|
6076
|
-
|
|
6101
|
+
Fe,
|
|
6077
6102
|
{
|
|
6078
6103
|
"aria-label": c,
|
|
6079
6104
|
disabledTooltip: o.disabledSelectionTooltip ?? "",
|
|
@@ -6093,8 +6118,8 @@ const Yr = ({
|
|
|
6093
6118
|
accessorKey: "id",
|
|
6094
6119
|
enableSorting: !1,
|
|
6095
6120
|
meta: { headerAriaLabel: "Row selection" },
|
|
6096
|
-
header: ({ table: c }) => /* @__PURE__ */ p(
|
|
6097
|
-
cell: ({ row: c }) => c.getIsGrouped() ? /* @__PURE__ */ p(
|
|
6121
|
+
header: ({ table: c }) => /* @__PURE__ */ p(Fe.All, { table: c }),
|
|
6122
|
+
cell: ({ row: c }) => c.getIsGrouped() ? /* @__PURE__ */ p(Fe.Group, { "aria-label": s(c), row: c }) : null
|
|
6098
6123
|
},
|
|
6099
6124
|
...r
|
|
6100
6125
|
];
|
|
@@ -6110,16 +6135,16 @@ const Yr = ({
|
|
|
6110
6135
|
cell: ({ row: s }) => {
|
|
6111
6136
|
const c = s.getIsExpanded();
|
|
6112
6137
|
return s.getIsGrouped() ? /* @__PURE__ */ p(
|
|
6113
|
-
|
|
6138
|
+
Wt,
|
|
6114
6139
|
{
|
|
6115
6140
|
message: c ? "Collapse" : "Expand",
|
|
6116
6141
|
position: "btm-right",
|
|
6117
|
-
children: /* @__PURE__ */ p(Ce, { name: c ?
|
|
6142
|
+
children: /* @__PURE__ */ p(Ce, { name: c ? $t.chevronUp : $t.chevronDown })
|
|
6118
6143
|
}
|
|
6119
6144
|
) : null;
|
|
6120
6145
|
}
|
|
6121
6146
|
}, ...l]), l;
|
|
6122
|
-
},
|
|
6147
|
+
}, Jr = ({
|
|
6123
6148
|
table: e,
|
|
6124
6149
|
columns: n,
|
|
6125
6150
|
filterCells: t,
|
|
@@ -6140,12 +6165,12 @@ const Yr = ({
|
|
|
6140
6165
|
let l = 1;
|
|
6141
6166
|
return e.getRowModel().rows.map((r) => {
|
|
6142
6167
|
l++;
|
|
6143
|
-
const s = l, { getIsGrouped: c, id: d, getVisibleCells: f, parentId: g } = r, u = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(d), v = (
|
|
6144
|
-
|
|
6145
|
-
}, S = (
|
|
6146
|
-
if (
|
|
6147
|
-
|
|
6148
|
-
const b =
|
|
6168
|
+
const s = l, { getIsGrouped: c, id: d, getVisibleCells: f, parentId: g } = r, u = !c(), m = (a == null ? void 0 : a.rowSelection) !== void 0 && Object.keys(a.rowSelection).includes(d), v = (h) => {
|
|
6169
|
+
h.target === h.currentTarget && (h.key === "Enter" || h.key === " ") && (h.preventDefault(), r.toggleExpanded());
|
|
6170
|
+
}, S = (h) => {
|
|
6171
|
+
if (h.target !== h.currentTarget || h.key !== "Enter" && h.key !== " ") return;
|
|
6172
|
+
h.preventDefault();
|
|
6173
|
+
const b = h.currentTarget.querySelector(
|
|
6149
6174
|
"button:not([disabled]), input:not([disabled]), a[href], select:not([disabled]), textarea:not([disabled])"
|
|
6150
6175
|
);
|
|
6151
6176
|
b == null || b.focus();
|
|
@@ -6156,7 +6181,7 @@ const Yr = ({
|
|
|
6156
6181
|
"aria-expanded": u ? void 0 : r.getIsExpanded(),
|
|
6157
6182
|
"aria-rowindex": s,
|
|
6158
6183
|
"aria-selected": m,
|
|
6159
|
-
className:
|
|
6184
|
+
className: L({
|
|
6160
6185
|
"p-generic-table__individual-row": u,
|
|
6161
6186
|
"p-generic-table__group-row": !u,
|
|
6162
6187
|
"p-generic-table__nested-row": i !== void 0 && !!g
|
|
@@ -6165,29 +6190,29 @@ const Yr = ({
|
|
|
6165
6190
|
onKeyDown: u ? S : v,
|
|
6166
6191
|
tabIndex: -1,
|
|
6167
6192
|
role: "row",
|
|
6168
|
-
children: f().filter((
|
|
6193
|
+
children: f().filter((h) => !u && (h.column.id === "p-generic-table__group-select" || h.column.id === "p-generic-table__group-chevron") ? !0 : t(r, h.column)).map((h) => {
|
|
6169
6194
|
var b, w;
|
|
6170
6195
|
return /* @__PURE__ */ p(
|
|
6171
6196
|
"td",
|
|
6172
6197
|
{
|
|
6173
|
-
"aria-hidden":
|
|
6174
|
-
"aria-label": ((w = (b =
|
|
6175
|
-
className:
|
|
6198
|
+
"aria-hidden": h.column.id === "p-generic-table__select" && i !== void 0 && g ? !0 : void 0,
|
|
6199
|
+
"aria-label": ((w = (b = h.column.columnDef.meta) == null ? void 0 : b.cellAriaLabel) == null ? void 0 : w.call(b, r)) ?? void 0,
|
|
6200
|
+
className: L(`${h.column.id}`),
|
|
6176
6201
|
role: "gridcell",
|
|
6177
6202
|
tabIndex: -1,
|
|
6178
|
-
children: Si(
|
|
6203
|
+
children: Si(h.column.columnDef.cell, h.getContext())
|
|
6179
6204
|
},
|
|
6180
|
-
|
|
6205
|
+
h.id
|
|
6181
6206
|
);
|
|
6182
6207
|
})
|
|
6183
6208
|
},
|
|
6184
6209
|
d
|
|
6185
6210
|
);
|
|
6186
6211
|
});
|
|
6187
|
-
},
|
|
6212
|
+
}, Zr = (e, n) => {
|
|
6188
6213
|
const t = e.column.id;
|
|
6189
|
-
return t === "p-generic-table__group-chevron" ? n ? /* @__PURE__ */ p(Ce, { name:
|
|
6190
|
-
},
|
|
6214
|
+
return t === "p-generic-table__group-chevron" ? n ? /* @__PURE__ */ p(Ce, { name: $t.chevronDown }) : null : t === "p-generic-table__group-select" ? n ? /* @__PURE__ */ p(Fe.Group, { "aria-label": "select group" }) : null : t === "p-generic-table__select" ? n ? null : /* @__PURE__ */ p(Fe, { "aria-label": "select row" }) : null;
|
|
6215
|
+
}, el = (e, n, t) => e({ getIsGrouped: () => t }, n), tl = ({
|
|
6191
6216
|
table: e,
|
|
6192
6217
|
columns: n,
|
|
6193
6218
|
filterHeaders: t,
|
|
@@ -6205,7 +6230,7 @@ const Yr = ({
|
|
|
6205
6230
|
className: "p-generic-table__loading",
|
|
6206
6231
|
colSpan: s.length || n.length,
|
|
6207
6232
|
role: "gridcell",
|
|
6208
|
-
children: /* @__PURE__ */ p(
|
|
6233
|
+
children: /* @__PURE__ */ p(Kt, { text: "Loading..." })
|
|
6209
6234
|
}
|
|
6210
6235
|
) });
|
|
6211
6236
|
const c = r.some(
|
|
@@ -6215,29 +6240,29 @@ const Yr = ({
|
|
|
6215
6240
|
{
|
|
6216
6241
|
"aria-expanded": S ? !0 : void 0,
|
|
6217
6242
|
"aria-rowindex": v,
|
|
6218
|
-
className:
|
|
6243
|
+
className: L({
|
|
6219
6244
|
"p-generic-table__group-row": S,
|
|
6220
6245
|
"p-generic-table__individual-row": !S,
|
|
6221
6246
|
"p-generic-table__skeleton-row": !0
|
|
6222
6247
|
}),
|
|
6223
6248
|
role: "row",
|
|
6224
|
-
children: r.filter((
|
|
6225
|
-
const b =
|
|
6226
|
-
return S && (b === "p-generic-table__group-select" || b === "p-generic-table__group-chevron") ? !0 :
|
|
6249
|
+
children: r.filter((h) => {
|
|
6250
|
+
const b = h.column.id;
|
|
6251
|
+
return S && (b === "p-generic-table__group-select" || b === "p-generic-table__group-chevron") ? !0 : el(
|
|
6227
6252
|
i,
|
|
6228
|
-
|
|
6253
|
+
h.column,
|
|
6229
6254
|
S
|
|
6230
6255
|
);
|
|
6231
|
-
}).map((
|
|
6232
|
-
const b =
|
|
6256
|
+
}).map((h) => {
|
|
6257
|
+
const b = h.column.id, w = b.startsWith("p-generic-table__"), E = h.column.columnDef.meta, x = w ? Zr(h, S) : E != null && E.skeleton ? E.skeleton() : /* @__PURE__ */ p(_e, { variant: "block", width: "70%", height: "1.5rem" });
|
|
6233
6258
|
return /* @__PURE__ */ p(
|
|
6234
6259
|
"td",
|
|
6235
6260
|
{
|
|
6236
|
-
className:
|
|
6261
|
+
className: L("p-generic-table__skeleton-cell", b),
|
|
6237
6262
|
role: "gridcell",
|
|
6238
|
-
children:
|
|
6263
|
+
children: x
|
|
6239
6264
|
},
|
|
6240
|
-
`${m}-${
|
|
6265
|
+
`${m}-${h.id}`
|
|
6241
6266
|
);
|
|
6242
6267
|
})
|
|
6243
6268
|
},
|
|
@@ -6255,7 +6280,7 @@ const Yr = ({
|
|
|
6255
6280
|
f.push(d(`skel-${m}-${v}`, ++g, !1));
|
|
6256
6281
|
}
|
|
6257
6282
|
return f;
|
|
6258
|
-
},
|
|
6283
|
+
}, ml = ({
|
|
6259
6284
|
"aria-label": e,
|
|
6260
6285
|
className: n,
|
|
6261
6286
|
columns: t,
|
|
@@ -6273,33 +6298,33 @@ const Yr = ({
|
|
|
6273
6298
|
noData: m,
|
|
6274
6299
|
pagination: v,
|
|
6275
6300
|
pinGroup: S,
|
|
6276
|
-
sorting:
|
|
6301
|
+
sorting: h = [],
|
|
6277
6302
|
selection: b,
|
|
6278
6303
|
setSorting: w,
|
|
6279
6304
|
showChevron: E = !1,
|
|
6280
|
-
variant:
|
|
6305
|
+
variant: x = "full-height",
|
|
6281
6306
|
debug: F = !1,
|
|
6282
|
-
...
|
|
6307
|
+
...H
|
|
6283
6308
|
}) => {
|
|
6284
|
-
const { grouping: Y, setGrouping: Z, groupedData: ue } =
|
|
6309
|
+
const { grouping: Y, setGrouping: Z, groupedData: ue } = Br({
|
|
6285
6310
|
groupBy: c,
|
|
6286
6311
|
initialData: a
|
|
6287
|
-
}), { sortedData: de, sorting:
|
|
6288
|
-
externalSorting:
|
|
6312
|
+
}), { sortedData: de, sorting: xe, setSorting: P } = Wr({
|
|
6313
|
+
externalSorting: h,
|
|
6289
6314
|
setExternalSorting: w,
|
|
6290
6315
|
grouping: Y,
|
|
6291
6316
|
groupedData: ue,
|
|
6292
6317
|
pinGroup: S
|
|
6293
|
-
}), { expanded: R, setExpanded: B } =
|
|
6318
|
+
}), { expanded: R, setExpanded: B } = Gr({
|
|
6294
6319
|
grouping: Y,
|
|
6295
6320
|
initialData: a
|
|
6296
|
-
}), { tableBodyRef: Q, maxHeight: ee, effectiveVariant: se } =
|
|
6321
|
+
}), { tableBodyRef: Q, maxHeight: ee, effectiveVariant: se } = Kr({
|
|
6297
6322
|
containerRef: o,
|
|
6298
|
-
variant:
|
|
6323
|
+
variant: x,
|
|
6299
6324
|
length: de.length,
|
|
6300
6325
|
isLoading: d
|
|
6301
6326
|
}), [ne, y] = pe({}), k = (i == null ? void 0 : i.columnVisibility) ?? ne, j = (i == null ? void 0 : i.setColumnVisibility) ?? y, O = !!b, I = re(
|
|
6302
|
-
() =>
|
|
6327
|
+
() => Qr({
|
|
6303
6328
|
canSelect: O,
|
|
6304
6329
|
initialColumns: t,
|
|
6305
6330
|
groupBy: c,
|
|
@@ -6308,13 +6333,13 @@ const Yr = ({
|
|
|
6308
6333
|
showChevron: E
|
|
6309
6334
|
}),
|
|
6310
6335
|
[O, t, c, s]
|
|
6311
|
-
),
|
|
6336
|
+
), N = Nr({
|
|
6312
6337
|
data: de,
|
|
6313
6338
|
columns: I,
|
|
6314
6339
|
state: {
|
|
6315
6340
|
grouping: Y,
|
|
6316
6341
|
expanded: R,
|
|
6317
|
-
sorting:
|
|
6342
|
+
sorting: xe,
|
|
6318
6343
|
columnVisibility: k,
|
|
6319
6344
|
rowSelection: b == null ? void 0 : b.rowSelection
|
|
6320
6345
|
},
|
|
@@ -6329,24 +6354,24 @@ const Yr = ({
|
|
|
6329
6354
|
enableSorting: !0,
|
|
6330
6355
|
enableExpanding: !0,
|
|
6331
6356
|
getSubRows: s,
|
|
6332
|
-
getExpandedRowModel:
|
|
6333
|
-
getCoreRowModel:
|
|
6334
|
-
getGroupedRowModel:
|
|
6357
|
+
getExpandedRowModel: Ar(),
|
|
6358
|
+
getCoreRowModel: Dr(),
|
|
6359
|
+
getGroupedRowModel: Mr(),
|
|
6335
6360
|
groupedColumnMode: !1,
|
|
6336
6361
|
enableRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
|
|
6337
6362
|
enableMultiRowSelection: (b == null ? void 0 : b.filterSelectable) ?? O,
|
|
6338
|
-
getRowId: (
|
|
6363
|
+
getRowId: (G) => G.id.toString(),
|
|
6339
6364
|
debugAll: F
|
|
6340
|
-
}), { tableRef: M, handleTableFocus: T, handleTableKeyDown:
|
|
6341
|
-
return /* @__PURE__ */
|
|
6365
|
+
}), { tableRef: M, handleTableFocus: T, handleTableKeyDown: q } = Ur({ isLoading: d });
|
|
6366
|
+
return /* @__PURE__ */ z(
|
|
6342
6367
|
"div",
|
|
6343
6368
|
{
|
|
6344
|
-
className:
|
|
6369
|
+
className: L("p-generic-table", n),
|
|
6345
6370
|
"data-testid": "p-generic-table",
|
|
6346
|
-
...
|
|
6371
|
+
...H,
|
|
6347
6372
|
children: [
|
|
6348
6373
|
v && /* @__PURE__ */ p(
|
|
6349
|
-
|
|
6374
|
+
qr,
|
|
6350
6375
|
{
|
|
6351
6376
|
currentPage: v.currentPage,
|
|
6352
6377
|
dataContext: v.dataContext,
|
|
@@ -6358,24 +6383,24 @@ const Yr = ({
|
|
|
6358
6383
|
pageSizes: v.pageSizes
|
|
6359
6384
|
}
|
|
6360
6385
|
),
|
|
6361
|
-
/* @__PURE__ */
|
|
6386
|
+
/* @__PURE__ */ z(
|
|
6362
6387
|
"table",
|
|
6363
6388
|
{
|
|
6364
6389
|
ref: M,
|
|
6365
6390
|
"aria-busy": d,
|
|
6366
6391
|
"aria-label": e,
|
|
6367
|
-
"aria-rowcount": ((v == null ? void 0 : v.totalItems) ??
|
|
6368
|
-
className:
|
|
6392
|
+
"aria-rowcount": ((v == null ? void 0 : v.totalItems) ?? N.getRowModel().rows.length) + 1,
|
|
6393
|
+
className: L("p-generic-table__table", {
|
|
6369
6394
|
"p-generic-table__is-full-height": se === "full-height",
|
|
6370
6395
|
"p-generic-table__is-selectable": O,
|
|
6371
6396
|
"p-generic-table__is-grouped": c !== void 0
|
|
6372
6397
|
}),
|
|
6373
6398
|
onFocus: T,
|
|
6374
|
-
onKeyDown:
|
|
6399
|
+
onKeyDown: q,
|
|
6375
6400
|
role: "treegrid",
|
|
6376
6401
|
children: [
|
|
6377
|
-
/* @__PURE__ */ p("thead", { children:
|
|
6378
|
-
/* @__PURE__ */ p(
|
|
6402
|
+
/* @__PURE__ */ p("thead", { children: N.getHeaderGroups().map((G) => /* @__PURE__ */ p("tr", { "aria-rowindex": 1, role: "row", children: G.headers.filter(r).map((V, te) => /* @__PURE__ */ z(Tn, { children: [
|
|
6403
|
+
/* @__PURE__ */ p(Vr, { header: V }),
|
|
6379
6404
|
O && c && (!E && te === 2 || E && te === 3) ? /* @__PURE__ */ p(
|
|
6380
6405
|
"th",
|
|
6381
6406
|
{
|
|
@@ -6384,7 +6409,7 @@ const Yr = ({
|
|
|
6384
6409
|
role: "columnheader"
|
|
6385
6410
|
}
|
|
6386
6411
|
) : null
|
|
6387
|
-
] },
|
|
6412
|
+
] }, V.id)) }, G.id)) }),
|
|
6388
6413
|
/* @__PURE__ */ p(
|
|
6389
6414
|
"tbody",
|
|
6390
6415
|
{
|
|
@@ -6393,16 +6418,16 @@ const Yr = ({
|
|
|
6393
6418
|
overflowY: "auto",
|
|
6394
6419
|
maxHeight: ee
|
|
6395
6420
|
},
|
|
6396
|
-
children: d ?
|
|
6397
|
-
table:
|
|
6421
|
+
children: d ? tl({
|
|
6422
|
+
table: N,
|
|
6398
6423
|
columns: I,
|
|
6399
6424
|
filterHeaders: r,
|
|
6400
6425
|
filterCells: l,
|
|
6401
6426
|
loadingVariant: f,
|
|
6402
6427
|
skeletonRowCount: g,
|
|
6403
6428
|
skeletonGroupCount: u
|
|
6404
|
-
}) :
|
|
6405
|
-
table:
|
|
6429
|
+
}) : Jr({
|
|
6430
|
+
table: N,
|
|
6406
6431
|
columns: I,
|
|
6407
6432
|
filterCells: l,
|
|
6408
6433
|
getSubRows: s,
|
|
@@ -6417,7 +6442,7 @@ const Yr = ({
|
|
|
6417
6442
|
]
|
|
6418
6443
|
}
|
|
6419
6444
|
);
|
|
6420
|
-
},
|
|
6445
|
+
}, Mn = {
|
|
6421
6446
|
DEFAULT: 4,
|
|
6422
6447
|
EXPANDED: 15
|
|
6423
6448
|
}, we = {
|
|
@@ -6426,10 +6451,10 @@ const Yr = ({
|
|
|
6426
6451
|
EQUALS: "=",
|
|
6427
6452
|
COLON: ":",
|
|
6428
6453
|
COMMA: ","
|
|
6429
|
-
},
|
|
6430
|
-
const t =
|
|
6454
|
+
}, tt = (e, n = e.length) => {
|
|
6455
|
+
const t = nl(e, n), { token: i, tokenStart: o, tokenEnd: a } = il(e, n);
|
|
6431
6456
|
return { context: t, token: i, tokenStart: o, tokenEnd: a };
|
|
6432
|
-
},
|
|
6457
|
+
}, nl = (e, n) => {
|
|
6433
6458
|
let t = 0;
|
|
6434
6459
|
for (let i = n - 1; i >= 0; i--) {
|
|
6435
6460
|
const o = e[i];
|
|
@@ -6444,17 +6469,17 @@ const Yr = ({
|
|
|
6444
6469
|
}
|
|
6445
6470
|
}
|
|
6446
6471
|
return "";
|
|
6447
|
-
},
|
|
6472
|
+
}, il = (e, n) => {
|
|
6448
6473
|
let t = n, i = n;
|
|
6449
6474
|
for (; i < e.length && /[^\s=(),]/.test(e[i]); )
|
|
6450
6475
|
i++;
|
|
6451
6476
|
for (; t > 0 && /[^\s=(),]/.test(e[t - 1]); )
|
|
6452
6477
|
t--;
|
|
6453
6478
|
return { token: e.slice(t, i), tokenStart: t, tokenEnd: i };
|
|
6454
|
-
},
|
|
6479
|
+
}, On = (e, n) => {
|
|
6455
6480
|
const t = e.charAt(n - 1);
|
|
6456
6481
|
return n > 0 && (t === we.CLOSE_PAREN || t === we.COMMA);
|
|
6457
|
-
},
|
|
6482
|
+
}, vl = ({
|
|
6458
6483
|
className: e,
|
|
6459
6484
|
disabled: n = !1,
|
|
6460
6485
|
search: t,
|
|
@@ -6473,21 +6498,21 @@ const Yr = ({
|
|
|
6473
6498
|
showingMore: !1,
|
|
6474
6499
|
cursorPosition: 0
|
|
6475
6500
|
}), u = fe(null), m = fe(null), v = fe(null), S = re(() => {
|
|
6476
|
-
const P = f.showingMore ?
|
|
6501
|
+
const P = f.showingMore ? Mn.EXPANDED : Mn.DEFAULT, R = r.slice(0, P);
|
|
6477
6502
|
return !f.showingMore && r.length > P ? [...R, { value: "Show more...", type: "more" }] : R;
|
|
6478
|
-
}, [r, f.showingMore]),
|
|
6503
|
+
}, [r, f.showingMore]), h = U(
|
|
6479
6504
|
(P) => {
|
|
6480
6505
|
g(typeof P == "function" ? (R) => ({ ...R, ...P(R) }) : (R) => ({ ...R, ...P }));
|
|
6481
6506
|
},
|
|
6482
6507
|
[]
|
|
6483
6508
|
), b = U(
|
|
6484
6509
|
(P) => {
|
|
6485
|
-
u.current && !u.current.contains(P.target) &&
|
|
6510
|
+
u.current && !u.current.contains(P.target) && h({
|
|
6486
6511
|
isVisible: !1,
|
|
6487
6512
|
highlightedIndex: -1
|
|
6488
6513
|
});
|
|
6489
6514
|
},
|
|
6490
|
-
[
|
|
6515
|
+
[h]
|
|
6491
6516
|
), w = U(
|
|
6492
6517
|
(P, R) => {
|
|
6493
6518
|
const { tokenStart: B, tokenEnd: Q } = R;
|
|
@@ -6508,13 +6533,13 @@ const Yr = ({
|
|
|
6508
6533
|
const R = S[P];
|
|
6509
6534
|
if (!R) return;
|
|
6510
6535
|
if (R.type === "more") {
|
|
6511
|
-
|
|
6536
|
+
h({ showingMore: !0 });
|
|
6512
6537
|
return;
|
|
6513
6538
|
}
|
|
6514
|
-
const B =
|
|
6539
|
+
const B = tt(
|
|
6515
6540
|
t,
|
|
6516
6541
|
f.cursorPosition
|
|
6517
|
-
), Q = w(R, B), ee = B.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: se, token: ne } =
|
|
6542
|
+
), Q = w(R, B), ee = B.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: se, token: ne } = tt(
|
|
6518
6543
|
Q,
|
|
6519
6544
|
ee
|
|
6520
6545
|
);
|
|
@@ -6523,7 +6548,7 @@ const Yr = ({
|
|
|
6523
6548
|
ee,
|
|
6524
6549
|
ee
|
|
6525
6550
|
));
|
|
6526
|
-
}, 0),
|
|
6551
|
+
}, 0), h({
|
|
6527
6552
|
highlightedIndex: 0,
|
|
6528
6553
|
showingMore: !1,
|
|
6529
6554
|
isVisible: R.type === "filter",
|
|
@@ -6539,20 +6564,20 @@ const Yr = ({
|
|
|
6539
6564
|
a,
|
|
6540
6565
|
l,
|
|
6541
6566
|
i,
|
|
6542
|
-
|
|
6567
|
+
h
|
|
6543
6568
|
]
|
|
6544
|
-
),
|
|
6569
|
+
), x = U(() => {
|
|
6545
6570
|
if (!v.current) return;
|
|
6546
|
-
const P = v.current.selectionStart || 0, { context: R, token: B } =
|
|
6571
|
+
const P = v.current.selectionStart || 0, { context: R, token: B } = tt(
|
|
6547
6572
|
t,
|
|
6548
6573
|
P
|
|
6549
6574
|
);
|
|
6550
|
-
a(R), l(B),
|
|
6575
|
+
a(R), l(B), h((Q) => ({
|
|
6551
6576
|
...Q,
|
|
6552
|
-
isVisible: !
|
|
6577
|
+
isVisible: !On(t, P),
|
|
6553
6578
|
cursorPosition: P
|
|
6554
6579
|
}));
|
|
6555
|
-
}, [t, a, l,
|
|
6580
|
+
}, [t, a, l, h]), F = U(
|
|
6556
6581
|
(P) => {
|
|
6557
6582
|
const { key: R } = P;
|
|
6558
6583
|
if (f.isVisible) {
|
|
@@ -6560,84 +6585,84 @@ const Yr = ({
|
|
|
6560
6585
|
switch (R) {
|
|
6561
6586
|
case "Tab":
|
|
6562
6587
|
case "ArrowDown":
|
|
6563
|
-
P.preventDefault(),
|
|
6588
|
+
P.preventDefault(), h({
|
|
6564
6589
|
highlightedIndex: (f.highlightedIndex + 1) % B
|
|
6565
6590
|
});
|
|
6566
6591
|
return;
|
|
6567
6592
|
case "ArrowUp":
|
|
6568
|
-
P.preventDefault(),
|
|
6593
|
+
P.preventDefault(), h({
|
|
6569
6594
|
highlightedIndex: f.highlightedIndex <= 0 ? B - 1 : f.highlightedIndex - 1
|
|
6570
6595
|
});
|
|
6571
6596
|
return;
|
|
6572
6597
|
case "Enter":
|
|
6573
|
-
P.preventDefault(), f.highlightedIndex >= 0 ? E(f.highlightedIndex) :
|
|
6598
|
+
P.preventDefault(), f.highlightedIndex >= 0 ? E(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6574
6599
|
return;
|
|
6575
6600
|
case "Escape":
|
|
6576
|
-
P.preventDefault(),
|
|
6601
|
+
P.preventDefault(), h({
|
|
6577
6602
|
isVisible: !1,
|
|
6578
6603
|
highlightedIndex: -1
|
|
6579
6604
|
});
|
|
6580
6605
|
return;
|
|
6581
6606
|
}
|
|
6582
6607
|
}
|
|
6583
|
-
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(
|
|
6608
|
+
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(x, 0);
|
|
6584
6609
|
},
|
|
6585
6610
|
[
|
|
6586
6611
|
f,
|
|
6587
6612
|
S.length,
|
|
6588
|
-
|
|
6613
|
+
h,
|
|
6589
6614
|
E,
|
|
6590
|
-
|
|
6615
|
+
x
|
|
6591
6616
|
]
|
|
6592
|
-
),
|
|
6617
|
+
), H = U(
|
|
6593
6618
|
(P) => {
|
|
6594
6619
|
const { key: R } = P;
|
|
6595
|
-
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") &&
|
|
6620
|
+
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && x();
|
|
6596
6621
|
},
|
|
6597
|
-
[
|
|
6622
|
+
[x]
|
|
6598
6623
|
), Y = U(() => {
|
|
6599
|
-
|
|
6624
|
+
h({
|
|
6600
6625
|
isVisible: !0,
|
|
6601
6626
|
highlightedIndex: 0
|
|
6602
6627
|
});
|
|
6603
|
-
}, [
|
|
6628
|
+
}, [h]), Z = U(
|
|
6604
6629
|
(P) => {
|
|
6605
6630
|
var ee;
|
|
6606
|
-
const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || P.length, { context: B, token: Q } =
|
|
6631
|
+
const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || P.length, { context: B, token: Q } = tt(
|
|
6607
6632
|
P,
|
|
6608
6633
|
R
|
|
6609
6634
|
);
|
|
6610
|
-
a(B), l(Q), i(P),
|
|
6635
|
+
a(B), l(Q), i(P), h({
|
|
6611
6636
|
highlightedIndex: 0,
|
|
6612
|
-
isVisible: !
|
|
6637
|
+
isVisible: !On(P, R),
|
|
6613
6638
|
showingMore: !1,
|
|
6614
6639
|
cursorPosition: R
|
|
6615
6640
|
});
|
|
6616
6641
|
},
|
|
6617
|
-
[a, l, i,
|
|
6642
|
+
[a, l, i, h]
|
|
6618
6643
|
), ue = U(() => {
|
|
6619
|
-
setTimeout(
|
|
6620
|
-
}, [
|
|
6621
|
-
|
|
6644
|
+
setTimeout(x, 0);
|
|
6645
|
+
}, [x]), de = U(() => {
|
|
6646
|
+
h({
|
|
6622
6647
|
isVisible: !1,
|
|
6623
6648
|
highlightedIndex: -1
|
|
6624
6649
|
});
|
|
6625
|
-
}, [
|
|
6650
|
+
}, [h]), xe = U(
|
|
6626
6651
|
(P) => {
|
|
6627
|
-
|
|
6652
|
+
h({ highlightedIndex: P });
|
|
6628
6653
|
},
|
|
6629
|
-
[
|
|
6654
|
+
[h]
|
|
6630
6655
|
);
|
|
6631
|
-
return le(() => (document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b)), [b]), /* @__PURE__ */
|
|
6656
|
+
return le(() => (document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b)), [b]), /* @__PURE__ */ z(
|
|
6632
6657
|
"div",
|
|
6633
6658
|
{
|
|
6634
|
-
className:
|
|
6659
|
+
className: L("p-query-input", e),
|
|
6635
6660
|
"data-testid": "p-query-input",
|
|
6636
6661
|
ref: u,
|
|
6637
6662
|
...d,
|
|
6638
6663
|
children: [
|
|
6639
6664
|
/* @__PURE__ */ p(
|
|
6640
|
-
|
|
6665
|
+
Nn,
|
|
6641
6666
|
{
|
|
6642
6667
|
disabled: n,
|
|
6643
6668
|
placeholder: c,
|
|
@@ -6650,7 +6675,7 @@ const Yr = ({
|
|
|
6650
6675
|
onFocus: Y,
|
|
6651
6676
|
onChange: Z,
|
|
6652
6677
|
onKeyDown: F,
|
|
6653
|
-
onKeyUp:
|
|
6678
|
+
onKeyUp: H,
|
|
6654
6679
|
onClear: de,
|
|
6655
6680
|
onClick: ue,
|
|
6656
6681
|
"aria-disabled": n,
|
|
@@ -6667,24 +6692,24 @@ const Yr = ({
|
|
|
6667
6692
|
id: "query-suggestions",
|
|
6668
6693
|
role: "listbox",
|
|
6669
6694
|
"aria-label": "Search suggestions",
|
|
6670
|
-
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(
|
|
6695
|
+
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(Kt, { text: "Loading..." }) }) : S.map((P, R) => /* @__PURE__ */ z(
|
|
6671
6696
|
"li",
|
|
6672
6697
|
{
|
|
6673
|
-
className:
|
|
6698
|
+
className: L("p-query-input__item", {
|
|
6674
6699
|
highlight: R === f.highlightedIndex
|
|
6675
6700
|
}),
|
|
6676
6701
|
onClick: () => E(R),
|
|
6677
6702
|
onKeyDown: () => E(R),
|
|
6678
|
-
onMouseEnter: () =>
|
|
6703
|
+
onMouseEnter: () => xe(R),
|
|
6679
6704
|
role: "option",
|
|
6680
6705
|
"aria-selected": R === f.highlightedIndex,
|
|
6681
6706
|
tabIndex: -1,
|
|
6682
6707
|
children: [
|
|
6683
|
-
/* @__PURE__ */
|
|
6708
|
+
/* @__PURE__ */ z("span", { className: "p-query-input__item-label", children: [
|
|
6684
6709
|
/* @__PURE__ */ p(
|
|
6685
6710
|
"span",
|
|
6686
6711
|
{
|
|
6687
|
-
className:
|
|
6712
|
+
className: L({
|
|
6688
6713
|
"u-text--muted": P.type === "more"
|
|
6689
6714
|
}),
|
|
6690
6715
|
children: P.value
|
|
@@ -6702,7 +6727,7 @@ const Yr = ({
|
|
|
6702
6727
|
]
|
|
6703
6728
|
}
|
|
6704
6729
|
);
|
|
6705
|
-
},
|
|
6730
|
+
}, hl = ({ value: e, unit: n }, {
|
|
6706
6731
|
binary: t = !1,
|
|
6707
6732
|
convertTo: i,
|
|
6708
6733
|
decimals: o = 2,
|
|
@@ -6723,32 +6748,32 @@ const Yr = ({
|
|
|
6723
6748
|
};
|
|
6724
6749
|
};
|
|
6725
6750
|
export {
|
|
6726
|
-
|
|
6751
|
+
ke as ContentSection,
|
|
6727
6752
|
si as DynamicTable,
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6753
|
+
cl as ExternalLink,
|
|
6754
|
+
gl as FileUpload,
|
|
6755
|
+
Xt as FormSection,
|
|
6756
|
+
ml as GenericTable,
|
|
6732
6757
|
Ln as InputGroup,
|
|
6733
6758
|
Gn as MainToolbar,
|
|
6734
6759
|
Bi as Meter,
|
|
6735
|
-
|
|
6736
|
-
|
|
6760
|
+
fl as MultiSelect,
|
|
6761
|
+
Ha as MultiSelectDropdown,
|
|
6737
6762
|
ae as Navigation,
|
|
6738
6763
|
Po as NavigationBar,
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6764
|
+
ul as NestedFormGroup,
|
|
6765
|
+
Mo as Pagination,
|
|
6766
|
+
Oo as PaginationContainer,
|
|
6767
|
+
_e as Placeholder,
|
|
6743
6768
|
Yi as ProgressIndicator,
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6769
|
+
vl as QueryInput,
|
|
6770
|
+
Ao as SidePanel,
|
|
6771
|
+
pl as SidePanelContextProvider,
|
|
6772
|
+
dl as Stepper,
|
|
6748
6773
|
pi as TableCaption,
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6774
|
+
sl as defaultFilledColors,
|
|
6775
|
+
hl as formatBytes,
|
|
6776
|
+
$e as meterColor,
|
|
6777
|
+
Te as testIds,
|
|
6778
|
+
lt as useSidePanel
|
|
6754
6779
|
};
|