@canonical/maas-react-components 1.33.2 → 1.33.3
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import { useListener as
|
|
5
|
-
function
|
|
1
|
+
import { jsxs as B, jsx as p, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import * as ue from "react";
|
|
3
|
+
import Si, { useRef as Se, useState as de, useEffect as Re, useCallback as Q, cloneElement as Ci, createContext as $n, useId as et, useContext as Ht, useMemo as le, useReducer as An, forwardRef as _i, useImperativeHandle as Ri, Fragment as Mn, useLayoutEffect as On } from "react";
|
|
4
|
+
import { useListener as Ei, Link as ki, Spinner as qt, Tooltip as Gt, Button as Ce, Icon as we, Row as Fi, Col as Pi, Input as Ii, Label as Di, CheckboxInput as $i, useClickOutside as Ai, useOnEscapePressed as Mi, SearchBox as jn, Select as Oi, ICONS as en } from "@canonical/react-components";
|
|
5
|
+
function Bt(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
8
|
var ft = { exports: {} };
|
|
@@ -11,9 +11,9 @@ var ft = { exports: {} };
|
|
|
11
11
|
Licensed under the MIT License (MIT), see
|
|
12
12
|
http://jedwatson.github.io/classnames
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return
|
|
14
|
+
var tn;
|
|
15
|
+
function ji() {
|
|
16
|
+
return tn || (tn = 1, function(e) {
|
|
17
17
|
(function() {
|
|
18
18
|
var n = {}.hasOwnProperty;
|
|
19
19
|
function t() {
|
|
@@ -44,8 +44,8 @@ function Oi() {
|
|
|
44
44
|
})();
|
|
45
45
|
}(ft)), ft.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const
|
|
47
|
+
var Ti = ji();
|
|
48
|
+
const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
49
49
|
caution: "#F99B11",
|
|
50
50
|
light: "#F7F7F7",
|
|
51
51
|
linkFaded: "#D3E4ED",
|
|
@@ -54,15 +54,15 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
54
54
|
positiveFaded: "#B7CCB9",
|
|
55
55
|
positiveMid: "#4DAB4D",
|
|
56
56
|
positive: "#0E8420"
|
|
57
|
-
},
|
|
57
|
+
}, qr = [
|
|
58
58
|
Ie.link,
|
|
59
59
|
Ie.positive,
|
|
60
60
|
Ie.negative,
|
|
61
61
|
Ie.caution
|
|
62
|
-
],
|
|
62
|
+
], zi = Ie.linkFaded, Tn = Ie.caution, It = Ie.light, nn = 2, on = 1, an = (e, n) => {
|
|
63
63
|
var o, a;
|
|
64
64
|
const t = ((a = (o = e == null ? void 0 : e.current) == null ? void 0 : o.getBoundingClientRect()) == null ? void 0 : a.width) || 0;
|
|
65
|
-
return t > n *
|
|
65
|
+
return t > n * nn ? t / n : nn;
|
|
66
66
|
}, Oe = {
|
|
67
67
|
bar: "meter-bar",
|
|
68
68
|
container: "meter-container",
|
|
@@ -70,7 +70,7 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
70
70
|
label: "meter-label",
|
|
71
71
|
meteroverflow: "meter-overflow",
|
|
72
72
|
segments: "meter-segments"
|
|
73
|
-
},
|
|
73
|
+
}, Vi = ({
|
|
74
74
|
className: e,
|
|
75
75
|
children: n,
|
|
76
76
|
data: t,
|
|
@@ -79,30 +79,30 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
79
79
|
size: a = "regular",
|
|
80
80
|
...r
|
|
81
81
|
}) => {
|
|
82
|
-
const l =
|
|
83
|
-
|
|
84
|
-
g(o === "segmented" ?
|
|
82
|
+
const l = Se(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = de(0);
|
|
83
|
+
Re(() => {
|
|
84
|
+
g(o === "segmented" ? an(l, c) : 0);
|
|
85
85
|
}, [c, o]);
|
|
86
86
|
const u = Q(() => {
|
|
87
|
-
g(
|
|
87
|
+
g(an(l, c));
|
|
88
88
|
}, [l, c, g]);
|
|
89
|
-
return
|
|
89
|
+
return Ei(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
|
-
className:
|
|
92
|
+
className: G("p-meter", e, {
|
|
93
93
|
"p-meter--small": a === "small"
|
|
94
94
|
}),
|
|
95
95
|
"aria-label": r == null ? void 0 : r["aria-label"],
|
|
96
96
|
"data-testid": Oe.container,
|
|
97
97
|
ref: l,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */ p(
|
|
100
|
-
|
|
99
|
+
/* @__PURE__ */ p(Ni, { children: /* @__PURE__ */ p(
|
|
100
|
+
Li,
|
|
101
101
|
{
|
|
102
102
|
data: t,
|
|
103
103
|
datumWidths: d,
|
|
104
104
|
maximum: c,
|
|
105
|
-
overColor:
|
|
105
|
+
overColor: Tn,
|
|
106
106
|
segmentWidth: f,
|
|
107
107
|
separatorColor: It
|
|
108
108
|
}
|
|
@@ -111,15 +111,15 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
|
-
},
|
|
114
|
+
}, Ni = ({ children: e }) => /* @__PURE__ */ p(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
117
|
className: "p-meter__bar",
|
|
118
118
|
"data-testid": Oe.bar,
|
|
119
|
-
style: { backgroundColor:
|
|
119
|
+
style: { backgroundColor: zi },
|
|
120
120
|
children: e
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), Li = ({
|
|
123
123
|
data: e,
|
|
124
124
|
datumWidths: n,
|
|
125
125
|
maximum: t,
|
|
@@ -136,18 +136,18 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
136
136
|
background: `repeating-linear-gradient(
|
|
137
137
|
to right,
|
|
138
138
|
transparent 0,
|
|
139
|
-
transparent ${i -
|
|
140
|
-
${It} ${i -
|
|
139
|
+
transparent ${i - on}px,
|
|
140
|
+
${It} ${i - on}px,
|
|
141
141
|
${It} ${i}px
|
|
142
142
|
)`
|
|
143
143
|
});
|
|
144
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ B(ye, { children: [
|
|
145
145
|
o() ? /* @__PURE__ */ p(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: "p-meter__filled",
|
|
149
149
|
"data-testid": Oe.meteroverflow,
|
|
150
|
-
style: { backgroundColor:
|
|
150
|
+
style: { backgroundColor: Tn, width: "100%" }
|
|
151
151
|
}
|
|
152
152
|
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ p(
|
|
153
153
|
"div",
|
|
@@ -167,25 +167,25 @@ const q = /* @__PURE__ */ Gt(ji), Ie = {
|
|
|
167
167
|
}
|
|
168
168
|
)
|
|
169
169
|
] });
|
|
170
|
-
},
|
|
170
|
+
}, Hi = ({
|
|
171
171
|
className: e,
|
|
172
172
|
children: n
|
|
173
173
|
}) => /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
|
-
className:
|
|
176
|
+
className: G("p-meter__label", e),
|
|
177
177
|
"data-testid": Oe.label,
|
|
178
178
|
children: n
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
|
-
|
|
182
|
-
const
|
|
181
|
+
Vi.Label = Hi;
|
|
182
|
+
const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(ki, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), qi = ({
|
|
183
183
|
percentComplete: e
|
|
184
|
-
}) => /* @__PURE__ */
|
|
184
|
+
}) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
|
|
185
185
|
e,
|
|
186
186
|
"% ",
|
|
187
187
|
/* @__PURE__ */ p(qt, { className: "progress-indicator__spinner" })
|
|
188
|
-
] }),
|
|
188
|
+
] }), Gi = ({
|
|
189
189
|
text: e,
|
|
190
190
|
children: n,
|
|
191
191
|
className: t,
|
|
@@ -196,21 +196,21 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
"aria-label": "loading",
|
|
199
|
-
className:
|
|
199
|
+
className: G("p-placeholder", t),
|
|
200
200
|
role: "progressbar",
|
|
201
201
|
style: { animationDelay: `${o}ms` },
|
|
202
202
|
children: /* @__PURE__ */ p("span", { "aria-hidden": "true", children: e || n || "Loading" })
|
|
203
203
|
}
|
|
204
|
-
) : /* @__PURE__ */ p(
|
|
205
|
-
},
|
|
204
|
+
) : /* @__PURE__ */ p(ye, { children: n });
|
|
205
|
+
}, Bi = ({ children: e }) => /* @__PURE__ */ p(ye, { children: e }), Ui = ({
|
|
206
206
|
isCollapsed: e,
|
|
207
207
|
setIsCollapsed: n,
|
|
208
208
|
className: t
|
|
209
209
|
}) => /* @__PURE__ */ p(
|
|
210
|
-
|
|
210
|
+
Gt,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
|
-
message: /* @__PURE__ */
|
|
213
|
+
message: /* @__PURE__ */ B(ye, { children: [
|
|
214
214
|
e ? "expand" : "collapse",
|
|
215
215
|
"( ",
|
|
216
216
|
/* @__PURE__ */ p("code", { children: "[" }),
|
|
@@ -219,83 +219,83 @@ const qr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Ei, { ...t, href:
|
|
|
219
219
|
position: "right",
|
|
220
220
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
221
221
|
children: /* @__PURE__ */ p(
|
|
222
|
-
|
|
222
|
+
Ce,
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
226
|
-
className:
|
|
226
|
+
className: G(
|
|
227
227
|
"is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
|
|
228
228
|
t
|
|
229
229
|
),
|
|
230
230
|
onClick: (i) => {
|
|
231
231
|
n(!e), i.stopPropagation(), i.currentTarget.blur();
|
|
232
232
|
},
|
|
233
|
-
children: /* @__PURE__ */ p(
|
|
233
|
+
children: /* @__PURE__ */ p(we, { light: !0, name: "sidebar-toggle" })
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), Ki = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Qi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Ji = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(we, { className: "p-side-navigation__icon", light: e, name: n }), Zi = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: G("p-side-navigation__item", n, { "has-active-child": t }), children: e }), eo = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: G("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), to = ({
|
|
238
238
|
as: e,
|
|
239
239
|
...n
|
|
240
240
|
}) => /* @__PURE__ */ p(
|
|
241
241
|
e || "a",
|
|
242
242
|
{
|
|
243
|
-
className:
|
|
243
|
+
className: G("p-side-navigation__link", n.className),
|
|
244
244
|
...n
|
|
245
245
|
}
|
|
246
|
-
),
|
|
246
|
+
), no = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: G("p-side-navigation__list", n), children: e }), io = ({
|
|
247
247
|
as: e,
|
|
248
248
|
children: n,
|
|
249
249
|
className: t,
|
|
250
250
|
...i
|
|
251
|
-
}) => /* @__PURE__ */ p(e || "a", { className:
|
|
251
|
+
}) => /* @__PURE__ */ p(e || "a", { className: G("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), oo = ({ children: e }) => Ci(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ao = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
|
|
252
252
|
"div",
|
|
253
253
|
{
|
|
254
|
-
className:
|
|
254
|
+
className: G("p-panel__logo-name is-fading-when-collapsed", {
|
|
255
255
|
"p-panel__logo-name--small": n === "small"
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
258
258
|
}
|
|
259
|
-
),
|
|
259
|
+
), ro = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-navigation__logo-tag", children: e }), lo = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-panel__logo-text", children: e }), so = ({
|
|
260
260
|
children: e,
|
|
261
261
|
className: n,
|
|
262
262
|
onClick: t
|
|
263
263
|
}) => /* @__PURE__ */ p(
|
|
264
|
-
|
|
264
|
+
Ce,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
267
|
-
className:
|
|
267
|
+
className: G(
|
|
268
268
|
"p-side-navigation__button--menu has-icon is-dark",
|
|
269
269
|
n
|
|
270
270
|
),
|
|
271
271
|
onClick: (i) => {
|
|
272
272
|
t && t(i), i.stopPropagation(), i.currentTarget.blur();
|
|
273
273
|
},
|
|
274
|
-
children: /* @__PURE__ */ p(
|
|
274
|
+
children: /* @__PURE__ */ p(ye, { children: e })
|
|
275
275
|
}
|
|
276
|
-
),
|
|
277
|
-
re.Header =
|
|
278
|
-
re.Banner =
|
|
279
|
-
re.Drawer =
|
|
280
|
-
re.Controls =
|
|
281
|
-
re.CollapseToggle =
|
|
282
|
-
re.Content =
|
|
283
|
-
re.Footer =
|
|
284
|
-
re.List =
|
|
285
|
-
re.Item =
|
|
286
|
-
re.Link =
|
|
287
|
-
re.Text =
|
|
288
|
-
re.Icon =
|
|
289
|
-
re.Label =
|
|
290
|
-
re.Logo =
|
|
291
|
-
re.LogoTag =
|
|
292
|
-
re.LogoIcon =
|
|
293
|
-
re.LogoName =
|
|
294
|
-
re.LogoText =
|
|
295
|
-
|
|
296
|
-
const
|
|
276
|
+
), co = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), re = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: G("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: G("p-panel is-dark", n), children: e }) });
|
|
277
|
+
re.Header = Qi;
|
|
278
|
+
re.Banner = Bi;
|
|
279
|
+
re.Drawer = Yi;
|
|
280
|
+
re.Controls = Wi;
|
|
281
|
+
re.CollapseToggle = Ui;
|
|
282
|
+
re.Content = Ki;
|
|
283
|
+
re.Footer = Xi;
|
|
284
|
+
re.List = no;
|
|
285
|
+
re.Item = Zi;
|
|
286
|
+
re.Link = to;
|
|
287
|
+
re.Text = co;
|
|
288
|
+
re.Icon = Ji;
|
|
289
|
+
re.Label = eo;
|
|
290
|
+
re.Logo = io;
|
|
291
|
+
re.LogoTag = ro;
|
|
292
|
+
re.LogoIcon = oo;
|
|
293
|
+
re.LogoName = ao;
|
|
294
|
+
re.LogoText = lo;
|
|
295
|
+
po.MenuButton = so;
|
|
296
|
+
const Ut = $n(null), zn = ({ children: e }) => {
|
|
297
297
|
const n = et();
|
|
298
|
-
return /* @__PURE__ */ p(
|
|
298
|
+
return /* @__PURE__ */ p(Ut.Provider, { value: n, children: /* @__PURE__ */ p(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
role: "group",
|
|
@@ -305,27 +305,27 @@ const Bt = In(null), Tn = ({ children: e }) => {
|
|
|
305
305
|
children: e
|
|
306
306
|
}
|
|
307
307
|
) });
|
|
308
|
-
}, po = ({ children: e }) => {
|
|
309
|
-
const n = Ht(Bt);
|
|
310
|
-
return /* @__PURE__ */ p("label", { id: `${n}_label`, children: e });
|
|
311
308
|
}, uo = ({ children: e }) => {
|
|
312
|
-
const n = Ht(
|
|
309
|
+
const n = Ht(Ut);
|
|
310
|
+
return /* @__PURE__ */ p("label", { id: `${n}_label`, children: e });
|
|
311
|
+
}, go = ({ children: e }) => {
|
|
312
|
+
const n = Ht(Ut);
|
|
313
313
|
return /* @__PURE__ */ p("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
|
|
314
314
|
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
function
|
|
322
|
-
const [n, t] =
|
|
315
|
+
zn.Label = uo;
|
|
316
|
+
zn.Description = go;
|
|
317
|
+
const Kt = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section", children: e }), fo = ({ children: e }) => /* @__PURE__ */ p("h5", { className: "p-form-section__title u-no-padding--top", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("p", { className: "p-form-help-text", children: e }), vo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section__content", children: e });
|
|
318
|
+
Kt.Title = fo;
|
|
319
|
+
Kt.Description = mo;
|
|
320
|
+
Kt.Content = vo;
|
|
321
|
+
function xo(e) {
|
|
322
|
+
const [n, t] = ue.useState(null), i = ue.useRef(null), o = ue.useCallback(() => {
|
|
323
323
|
if (e.current) {
|
|
324
324
|
const a = e.current.getBoundingClientRect();
|
|
325
325
|
t(a);
|
|
326
326
|
}
|
|
327
327
|
}, [e]);
|
|
328
|
-
return
|
|
328
|
+
return ue.useEffect(() => {
|
|
329
329
|
const a = new ResizeObserver(() => {
|
|
330
330
|
i.current && cancelAnimationFrame(i.current), i.current = requestAnimationFrame(o);
|
|
331
331
|
});
|
|
@@ -334,20 +334,20 @@ function vo(e) {
|
|
|
334
334
|
};
|
|
335
335
|
}, [e, o]), n;
|
|
336
336
|
}
|
|
337
|
-
const
|
|
338
|
-
}]),
|
|
339
|
-
const n =
|
|
337
|
+
const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
338
|
+
}]), Ln = ({ children: e }) => {
|
|
339
|
+
const n = ue.useRef(null), t = xo(n), [i, o] = ue.useState(!1);
|
|
340
340
|
return /* @__PURE__ */ p(
|
|
341
341
|
"header",
|
|
342
342
|
{
|
|
343
|
-
className:
|
|
343
|
+
className: G("main-toolbar", {
|
|
344
344
|
"main-toolbar--stacked": i
|
|
345
345
|
}),
|
|
346
346
|
ref: n,
|
|
347
|
-
children: /* @__PURE__ */ p(
|
|
347
|
+
children: /* @__PURE__ */ p(Vn.Provider, { value: t, children: /* @__PURE__ */ p(Nn.Provider, { value: [i, o], children: e }) })
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
},
|
|
350
|
+
}, ho = ({
|
|
351
351
|
as: e,
|
|
352
352
|
children: n,
|
|
353
353
|
className: t,
|
|
@@ -355,16 +355,16 @@ const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
|
|
|
355
355
|
}) => /* @__PURE__ */ p(
|
|
356
356
|
e || "h1",
|
|
357
357
|
{
|
|
358
|
-
className:
|
|
358
|
+
className: G("main-toolbar__title p-heading--4", t),
|
|
359
359
|
"data-testid": "main-toolbar-heading",
|
|
360
360
|
...i,
|
|
361
361
|
children: n
|
|
362
362
|
}
|
|
363
|
-
),
|
|
364
|
-
const n =
|
|
365
|
-
return
|
|
363
|
+
), wo = ({ children: e }) => {
|
|
364
|
+
const n = ue.useContext(Vn), [t, i] = ue.useContext(Nn), o = ue.useRef(null);
|
|
365
|
+
return ue.useEffect(() => {
|
|
366
366
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
367
|
-
}, [i, n, o]), /* @__PURE__ */
|
|
367
|
+
}, [i, n, o]), /* @__PURE__ */ B(ye, { children: [
|
|
368
368
|
/* @__PURE__ */ p(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
@@ -378,7 +378,7 @@ const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
|
|
|
378
378
|
/* @__PURE__ */ p(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
|
-
className:
|
|
381
|
+
className: G("main-toolbar__controls", {
|
|
382
382
|
"main-toolbar__controls--stacked": t
|
|
383
383
|
}),
|
|
384
384
|
children: e
|
|
@@ -386,8 +386,8 @@ const zn = pe.createContext(null), Vn = pe.createContext([!1, () => {
|
|
|
386
386
|
)
|
|
387
387
|
] });
|
|
388
388
|
};
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
Ln.Title = ho;
|
|
390
|
+
Ln.Controls = wo;
|
|
391
391
|
const ot = ({
|
|
392
392
|
children: e,
|
|
393
393
|
className: n,
|
|
@@ -395,36 +395,36 @@ const ot = ({
|
|
|
395
395
|
variant: i = "wide",
|
|
396
396
|
...o
|
|
397
397
|
}) => {
|
|
398
|
-
const a = t || "section", r =
|
|
399
|
-
return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(
|
|
400
|
-
},
|
|
398
|
+
const a = t || "section", r = G("content-section", n);
|
|
399
|
+
return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(Fi, { children: /* @__PURE__ */ p(Pi, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(ye, { children: e }) }) }) });
|
|
400
|
+
}, yo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
|
|
401
401
|
t || "h1",
|
|
402
402
|
{
|
|
403
403
|
...i,
|
|
404
|
-
className:
|
|
404
|
+
className: G("content-section__title p-heading--4", n),
|
|
405
405
|
children: e
|
|
406
406
|
}
|
|
407
|
-
),
|
|
408
|
-
ot.Title =
|
|
409
|
-
ot.Header =
|
|
410
|
-
ot.Content =
|
|
411
|
-
ot.Footer =
|
|
412
|
-
const
|
|
407
|
+
), bo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: G("content-section__header", n), children: e }), So = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: G("content-section__body", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: G("content-section__footer", n), children: e });
|
|
408
|
+
ot.Title = yo;
|
|
409
|
+
ot.Header = bo;
|
|
410
|
+
ot.Content = So;
|
|
411
|
+
ot.Footer = Co;
|
|
412
|
+
const Hn = ({
|
|
413
413
|
children: e,
|
|
414
414
|
className: n,
|
|
415
415
|
isVisible: t
|
|
416
416
|
}) => /* @__PURE__ */ p(
|
|
417
417
|
"div",
|
|
418
418
|
{
|
|
419
|
-
className:
|
|
419
|
+
className: G("fade-in--down", n),
|
|
420
420
|
"aria-hidden": t ? "false" : "true",
|
|
421
421
|
style: { visibility: t ? "visible" : "hidden" },
|
|
422
422
|
children: e
|
|
423
423
|
}
|
|
424
|
-
),
|
|
424
|
+
), Br = ({
|
|
425
425
|
children: e,
|
|
426
426
|
...n
|
|
427
|
-
}) => /* @__PURE__ */ p(
|
|
427
|
+
}) => /* @__PURE__ */ p(Hn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), _o = ({
|
|
428
428
|
className: e,
|
|
429
429
|
currentPage: n,
|
|
430
430
|
error: t,
|
|
@@ -439,23 +439,23 @@ const Ln = ({
|
|
|
439
439
|
"nav",
|
|
440
440
|
{
|
|
441
441
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
442
|
-
className:
|
|
443
|
-
children: /* @__PURE__ */
|
|
442
|
+
className: G("p-pagination", e),
|
|
443
|
+
children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
|
|
444
444
|
/* @__PURE__ */ p(
|
|
445
|
-
|
|
445
|
+
Ce,
|
|
446
446
|
{
|
|
447
447
|
"aria-label": "Previous page",
|
|
448
448
|
className: "p-pagination__link--previous",
|
|
449
449
|
disabled: n === 1 || i,
|
|
450
450
|
onClick: l,
|
|
451
451
|
type: "button",
|
|
452
|
-
children: /* @__PURE__ */ p(
|
|
452
|
+
children: /* @__PURE__ */ p(we, { name: "chevron-down" })
|
|
453
453
|
}
|
|
454
454
|
),
|
|
455
455
|
/* @__PURE__ */ p("strong", { children: "Page " }),
|
|
456
456
|
" ",
|
|
457
457
|
/* @__PURE__ */ p(
|
|
458
|
-
|
|
458
|
+
Ii,
|
|
459
459
|
{
|
|
460
460
|
"aria-label": "page number",
|
|
461
461
|
className: "p-pagination__input",
|
|
@@ -470,24 +470,24 @@ const Ln = ({
|
|
|
470
470
|
}
|
|
471
471
|
),
|
|
472
472
|
" ",
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ B("strong", { className: "u-no-wrap", children: [
|
|
474
474
|
" of ",
|
|
475
475
|
s
|
|
476
476
|
] }),
|
|
477
477
|
/* @__PURE__ */ p(
|
|
478
|
-
|
|
478
|
+
Ce,
|
|
479
479
|
{
|
|
480
480
|
"aria-label": "Next page",
|
|
481
481
|
className: "p-pagination__link--next",
|
|
482
482
|
disabled: n === s || i,
|
|
483
483
|
onClick: r,
|
|
484
484
|
type: "button",
|
|
485
|
-
children: /* @__PURE__ */ p(
|
|
485
|
+
children: /* @__PURE__ */ p(we, { name: "chevron-up" })
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
488
|
] })
|
|
489
489
|
}
|
|
490
|
-
),
|
|
490
|
+
), Ro = ({
|
|
491
491
|
currentPage: e,
|
|
492
492
|
disabled: n,
|
|
493
493
|
paginate: t,
|
|
@@ -495,7 +495,7 @@ const Ln = ({
|
|
|
495
495
|
}) => {
|
|
496
496
|
const [o, a] = de(e), [r, l] = de("");
|
|
497
497
|
return /* @__PURE__ */ p(
|
|
498
|
-
|
|
498
|
+
_o,
|
|
499
499
|
{
|
|
500
500
|
currentPage: o,
|
|
501
501
|
error: r,
|
|
@@ -516,13 +516,13 @@ const Ln = ({
|
|
|
516
516
|
totalPages: i
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
},
|
|
519
|
+
}, Ur = ({ activeStep: e, items: n }) => /* @__PURE__ */ p("ol", { className: "stepper", children: n.map((t, i) => {
|
|
520
520
|
const o = i === e, a = i < e;
|
|
521
521
|
return /* @__PURE__ */ p("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ p(
|
|
522
522
|
"p",
|
|
523
523
|
{
|
|
524
524
|
"aria-label": a ? `${t} (completed)` : t,
|
|
525
|
-
className:
|
|
525
|
+
className: G("stepper__title", {
|
|
526
526
|
"stepper__title--is-active": o,
|
|
527
527
|
"stepper__title--is-complete": a
|
|
528
528
|
}),
|
|
@@ -539,12 +539,12 @@ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
|
|
|
539
539
|
* This source code is licensed under the MIT license found in the
|
|
540
540
|
* LICENSE file in the root directory of this source tree.
|
|
541
541
|
*/
|
|
542
|
-
var
|
|
543
|
-
function
|
|
544
|
-
if (
|
|
545
|
-
|
|
546
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121,
|
|
547
|
-
function
|
|
542
|
+
var rn;
|
|
543
|
+
function Eo() {
|
|
544
|
+
if (rn) return K;
|
|
545
|
+
rn = 1;
|
|
546
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
547
|
+
function F(x) {
|
|
548
548
|
if (typeof x == "object" && x !== null) {
|
|
549
549
|
var V = x.$$typeof;
|
|
550
550
|
switch (V) {
|
|
@@ -574,36 +574,36 @@ function Ro() {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
577
|
+
function A(x) {
|
|
578
|
+
return F(x) === c;
|
|
579
579
|
}
|
|
580
580
|
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
|
|
581
|
-
return
|
|
582
|
-
}, K.isConcurrentMode =
|
|
583
|
-
return
|
|
581
|
+
return A(x) || F(x) === s;
|
|
582
|
+
}, K.isConcurrentMode = A, K.isContextConsumer = function(x) {
|
|
583
|
+
return F(x) === l;
|
|
584
584
|
}, K.isContextProvider = function(x) {
|
|
585
|
-
return
|
|
585
|
+
return F(x) === r;
|
|
586
586
|
}, K.isElement = function(x) {
|
|
587
587
|
return typeof x == "object" && x !== null && x.$$typeof === n;
|
|
588
588
|
}, K.isForwardRef = function(x) {
|
|
589
|
-
return
|
|
589
|
+
return F(x) === d;
|
|
590
590
|
}, K.isFragment = function(x) {
|
|
591
|
-
return
|
|
591
|
+
return F(x) === i;
|
|
592
592
|
}, K.isLazy = function(x) {
|
|
593
|
-
return
|
|
593
|
+
return F(x) === m;
|
|
594
594
|
}, K.isMemo = function(x) {
|
|
595
|
-
return
|
|
595
|
+
return F(x) === u;
|
|
596
596
|
}, K.isPortal = function(x) {
|
|
597
|
-
return
|
|
597
|
+
return F(x) === t;
|
|
598
598
|
}, K.isProfiler = function(x) {
|
|
599
|
-
return
|
|
599
|
+
return F(x) === a;
|
|
600
600
|
}, K.isStrictMode = function(x) {
|
|
601
|
-
return
|
|
601
|
+
return F(x) === o;
|
|
602
602
|
}, K.isSuspense = function(x) {
|
|
603
|
-
return
|
|
603
|
+
return F(x) === f;
|
|
604
604
|
}, K.isValidElementType = function(x) {
|
|
605
|
-
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof ===
|
|
606
|
-
}, K.typeOf =
|
|
605
|
+
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === P || x.$$typeof === h || x.$$typeof === z || x.$$typeof === v);
|
|
606
|
+
}, K.typeOf = F, K;
|
|
607
607
|
}
|
|
608
608
|
var W = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
@@ -614,18 +614,18 @@ var W = {};
|
|
|
614
614
|
* This source code is licensed under the MIT license found in the
|
|
615
615
|
* LICENSE file in the root directory of this source tree.
|
|
616
616
|
*/
|
|
617
|
-
var
|
|
618
|
-
function
|
|
619
|
-
return
|
|
620
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121,
|
|
621
|
-
function
|
|
617
|
+
var ln;
|
|
618
|
+
function ko() {
|
|
619
|
+
return ln || (ln = 1, process.env.NODE_ENV !== "production" && function() {
|
|
620
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
621
|
+
function F(b) {
|
|
622
622
|
return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
623
|
-
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof ===
|
|
623
|
+
b === i || b === c || b === a || b === o || b === f || b === g || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === u || b.$$typeof === r || b.$$typeof === l || b.$$typeof === d || b.$$typeof === P || b.$$typeof === h || b.$$typeof === z || b.$$typeof === v);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function A(b) {
|
|
626
626
|
if (typeof b == "object" && b !== null) {
|
|
627
|
-
var
|
|
628
|
-
switch (
|
|
627
|
+
var ge = b.$$typeof;
|
|
628
|
+
switch (ge) {
|
|
629
629
|
case n:
|
|
630
630
|
var Fe = b.type;
|
|
631
631
|
switch (Fe) {
|
|
@@ -646,70 +646,70 @@ function Eo() {
|
|
|
646
646
|
case r:
|
|
647
647
|
return Te;
|
|
648
648
|
default:
|
|
649
|
-
return
|
|
649
|
+
return ge;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
case t:
|
|
653
|
-
return
|
|
653
|
+
return ge;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var x = s, V = c,
|
|
657
|
+
var x = s, V = c, H = l, J = r, U = n, pe = d, se = i, ve = m, D = u, E = t, q = a, Y = o, Z = f, oe = !1;
|
|
658
658
|
function te(b) {
|
|
659
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(b) ||
|
|
659
|
+
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(b) || A(b) === s;
|
|
660
660
|
}
|
|
661
661
|
function w(b) {
|
|
662
|
-
return
|
|
663
|
-
}
|
|
664
|
-
function y(b) {
|
|
665
|
-
return O(b) === l;
|
|
662
|
+
return A(b) === c;
|
|
666
663
|
}
|
|
667
664
|
function k(b) {
|
|
668
|
-
return
|
|
665
|
+
return A(b) === l;
|
|
669
666
|
}
|
|
670
|
-
function
|
|
667
|
+
function N(b) {
|
|
668
|
+
return A(b) === r;
|
|
669
|
+
}
|
|
670
|
+
function S(b) {
|
|
671
671
|
return typeof b == "object" && b !== null && b.$$typeof === n;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
673
|
+
function R(b) {
|
|
674
|
+
return A(b) === d;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
676
|
+
function y(b) {
|
|
677
|
+
return A(b) === i;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return
|
|
679
|
+
function C(b) {
|
|
680
|
+
return A(b) === m;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
682
|
+
function I(b) {
|
|
683
|
+
return A(b) === u;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
685
|
+
function $(b) {
|
|
686
|
+
return A(b) === t;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return
|
|
688
|
+
function L(b) {
|
|
689
|
+
return A(b) === a;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
return
|
|
691
|
+
function M(b) {
|
|
692
|
+
return A(b) === o;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
694
|
+
function ne(b) {
|
|
695
|
+
return A(b) === f;
|
|
696
696
|
}
|
|
697
|
-
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer =
|
|
697
|
+
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = H, W.ContextProvider = J, W.Element = U, W.ForwardRef = pe, W.Fragment = se, W.Lazy = ve, W.Memo = D, W.Portal = E, W.Profiler = q, W.StrictMode = Y, W.Suspense = Z, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = k, W.isContextProvider = N, W.isElement = S, W.isForwardRef = R, W.isFragment = y, W.isLazy = C, W.isMemo = I, W.isPortal = $, W.isProfiler = L, W.isStrictMode = M, W.isSuspense = ne, W.isValidElementType = F, W.typeOf = A;
|
|
698
698
|
}()), W;
|
|
699
699
|
}
|
|
700
|
-
var
|
|
701
|
-
function
|
|
702
|
-
return
|
|
700
|
+
var sn;
|
|
701
|
+
function qn() {
|
|
702
|
+
return sn || (sn = 1, process.env.NODE_ENV === "production" ? Ke.exports = Eo() : Ke.exports = ko()), Ke.exports;
|
|
703
703
|
}
|
|
704
704
|
/*
|
|
705
705
|
object-assign
|
|
706
706
|
(c) Sindre Sorhus
|
|
707
707
|
@license MIT
|
|
708
708
|
*/
|
|
709
|
-
var mt,
|
|
710
|
-
function
|
|
711
|
-
if (
|
|
712
|
-
|
|
709
|
+
var mt, cn;
|
|
710
|
+
function Fo() {
|
|
711
|
+
if (cn) return mt;
|
|
712
|
+
cn = 1;
|
|
713
713
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
714
714
|
function i(a) {
|
|
715
715
|
if (a == null)
|
|
@@ -752,25 +752,25 @@ function ko() {
|
|
|
752
752
|
return s;
|
|
753
753
|
}, mt;
|
|
754
754
|
}
|
|
755
|
-
var vt,
|
|
756
|
-
function
|
|
757
|
-
if (
|
|
758
|
-
|
|
755
|
+
var vt, pn;
|
|
756
|
+
function Wt() {
|
|
757
|
+
if (pn) return vt;
|
|
758
|
+
pn = 1;
|
|
759
759
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
760
760
|
return vt = e, vt;
|
|
761
761
|
}
|
|
762
|
-
var xt,
|
|
763
|
-
function
|
|
764
|
-
return
|
|
762
|
+
var xt, un;
|
|
763
|
+
function Gn() {
|
|
764
|
+
return un || (un = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
|
|
765
765
|
}
|
|
766
|
-
var ht,
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
|
|
766
|
+
var ht, dn;
|
|
767
|
+
function Po() {
|
|
768
|
+
if (dn) return ht;
|
|
769
|
+
dn = 1;
|
|
770
770
|
var e = function() {
|
|
771
771
|
};
|
|
772
772
|
if (process.env.NODE_ENV !== "production") {
|
|
773
|
-
var n = /* @__PURE__ */
|
|
773
|
+
var n = /* @__PURE__ */ Wt(), t = {}, i = /* @__PURE__ */ Gn();
|
|
774
774
|
e = function(a) {
|
|
775
775
|
var r = "Warning: " + a;
|
|
776
776
|
typeof console < "u" && console.error(r);
|
|
@@ -812,11 +812,11 @@ function Fo() {
|
|
|
812
812
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
813
813
|
}, ht = o, ht;
|
|
814
814
|
}
|
|
815
|
-
var wt,
|
|
816
|
-
function
|
|
817
|
-
if (
|
|
818
|
-
|
|
819
|
-
var e =
|
|
815
|
+
var wt, gn;
|
|
816
|
+
function Io() {
|
|
817
|
+
if (gn) return wt;
|
|
818
|
+
gn = 1;
|
|
819
|
+
var e = qn(), n = Fo(), t = /* @__PURE__ */ Wt(), i = /* @__PURE__ */ Gn(), o = /* @__PURE__ */ Po(), a = function() {
|
|
820
820
|
};
|
|
821
821
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
822
822
|
var s = "Warning: " + l;
|
|
@@ -832,9 +832,9 @@ function Po() {
|
|
|
832
832
|
return wt = function(l, s) {
|
|
833
833
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
834
834
|
function f(w) {
|
|
835
|
-
var
|
|
836
|
-
if (typeof
|
|
837
|
-
return
|
|
835
|
+
var k = w && (c && w[c] || w[d]);
|
|
836
|
+
if (typeof k == "function")
|
|
837
|
+
return k;
|
|
838
838
|
}
|
|
839
839
|
var g = "<<anonymous>>", u = {
|
|
840
840
|
array: h("array"),
|
|
@@ -845,223 +845,223 @@ function Po() {
|
|
|
845
845
|
object: h("object"),
|
|
846
846
|
string: h("string"),
|
|
847
847
|
symbol: h("symbol"),
|
|
848
|
-
any:
|
|
849
|
-
arrayOf:
|
|
850
|
-
element:
|
|
848
|
+
any: z(),
|
|
849
|
+
arrayOf: F,
|
|
850
|
+
element: A(),
|
|
851
851
|
elementType: x(),
|
|
852
852
|
instanceOf: V,
|
|
853
|
-
node:
|
|
854
|
-
objectOf:
|
|
855
|
-
oneOf:
|
|
856
|
-
oneOfType:
|
|
857
|
-
shape:
|
|
858
|
-
exact:
|
|
853
|
+
node: pe(),
|
|
854
|
+
objectOf: J,
|
|
855
|
+
oneOf: H,
|
|
856
|
+
oneOfType: U,
|
|
857
|
+
shape: ve,
|
|
858
|
+
exact: D
|
|
859
859
|
};
|
|
860
|
-
function m(w,
|
|
861
|
-
return w ===
|
|
860
|
+
function m(w, k) {
|
|
861
|
+
return w === k ? w !== 0 || 1 / w === 1 / k : w !== w && k !== k;
|
|
862
862
|
}
|
|
863
|
-
function v(w,
|
|
864
|
-
this.message = w, this.data =
|
|
863
|
+
function v(w, k) {
|
|
864
|
+
this.message = w, this.data = k && typeof k == "object" ? k : {}, this.stack = "";
|
|
865
865
|
}
|
|
866
866
|
v.prototype = Error.prototype;
|
|
867
|
-
function
|
|
867
|
+
function P(w) {
|
|
868
868
|
if (process.env.NODE_ENV !== "production")
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
869
|
+
var k = {}, N = 0;
|
|
870
|
+
function S(y, C, I, $, L, M, ne) {
|
|
871
|
+
if ($ = $ || g, M = M || I, ne !== t) {
|
|
872
872
|
if (s) {
|
|
873
873
|
var b = new Error(
|
|
874
874
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
875
875
|
);
|
|
876
876
|
throw b.name = "Invariant Violation", b;
|
|
877
877
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
878
|
-
var
|
|
879
|
-
!
|
|
880
|
-
|
|
881
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
882
|
-
),
|
|
878
|
+
var ge = $ + ":" + I;
|
|
879
|
+
!k[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
880
|
+
N < 3 && (a(
|
|
881
|
+
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + $ + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
882
|
+
), k[ge] = !0, N++);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
return
|
|
885
|
+
return C[I] == null ? y ? C[I] === null ? new v("The " + L + " `" + M + "` is marked as required " + ("in `" + $ + "`, but its value is `null`.")) : new v("The " + L + " `" + M + "` is marked as required in " + ("`" + $ + "`, but its value is `undefined`.")) : null : w(C, I, $, L, M);
|
|
886
886
|
}
|
|
887
|
-
var
|
|
888
|
-
return
|
|
887
|
+
var R = S.bind(null, !1);
|
|
888
|
+
return R.isRequired = S.bind(null, !0), R;
|
|
889
889
|
}
|
|
890
890
|
function h(w) {
|
|
891
|
-
function
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
891
|
+
function k(N, S, R, y, C, I) {
|
|
892
|
+
var $ = N[S], L = Y($);
|
|
893
|
+
if (L !== w) {
|
|
894
|
+
var M = Z($);
|
|
895
895
|
return new v(
|
|
896
|
-
"Invalid " +
|
|
896
|
+
"Invalid " + y + " `" + C + "` of type " + ("`" + M + "` supplied to `" + R + "`, expected ") + ("`" + w + "`."),
|
|
897
897
|
{ expectedType: w }
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
900
|
return null;
|
|
901
901
|
}
|
|
902
|
-
return
|
|
902
|
+
return P(k);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
904
|
+
function z() {
|
|
905
|
+
return P(r);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
function
|
|
907
|
+
function F(w) {
|
|
908
|
+
function k(N, S, R, y, C) {
|
|
909
909
|
if (typeof w != "function")
|
|
910
|
-
return new v("Property `" +
|
|
911
|
-
var
|
|
912
|
-
if (!Array.isArray(
|
|
913
|
-
var
|
|
914
|
-
return new v("Invalid " +
|
|
910
|
+
return new v("Property `" + C + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
911
|
+
var I = N[S];
|
|
912
|
+
if (!Array.isArray(I)) {
|
|
913
|
+
var $ = Y(I);
|
|
914
|
+
return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected an array."));
|
|
915
915
|
}
|
|
916
|
-
for (var
|
|
917
|
-
var
|
|
918
|
-
if (
|
|
919
|
-
return
|
|
916
|
+
for (var L = 0; L < I.length; L++) {
|
|
917
|
+
var M = w(I, L, R, y, C + "[" + L + "]", t);
|
|
918
|
+
if (M instanceof Error)
|
|
919
|
+
return M;
|
|
920
920
|
}
|
|
921
921
|
return null;
|
|
922
922
|
}
|
|
923
|
-
return
|
|
923
|
+
return P(k);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
function w(
|
|
927
|
-
var
|
|
928
|
-
if (!l(
|
|
929
|
-
var
|
|
930
|
-
return new v("Invalid " +
|
|
925
|
+
function A() {
|
|
926
|
+
function w(k, N, S, R, y) {
|
|
927
|
+
var C = k[N];
|
|
928
|
+
if (!l(C)) {
|
|
929
|
+
var I = Y(C);
|
|
930
|
+
return new v("Invalid " + R + " `" + y + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement."));
|
|
931
931
|
}
|
|
932
932
|
return null;
|
|
933
933
|
}
|
|
934
|
-
return
|
|
934
|
+
return P(w);
|
|
935
935
|
}
|
|
936
936
|
function x() {
|
|
937
|
-
function w(
|
|
938
|
-
var
|
|
939
|
-
if (!e.isValidElementType(
|
|
940
|
-
var
|
|
941
|
-
return new v("Invalid " +
|
|
937
|
+
function w(k, N, S, R, y) {
|
|
938
|
+
var C = k[N];
|
|
939
|
+
if (!e.isValidElementType(C)) {
|
|
940
|
+
var I = Y(C);
|
|
941
|
+
return new v("Invalid " + R + " `" + y + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected a single ReactElement type."));
|
|
942
942
|
}
|
|
943
943
|
return null;
|
|
944
944
|
}
|
|
945
|
-
return
|
|
945
|
+
return P(w);
|
|
946
946
|
}
|
|
947
947
|
function V(w) {
|
|
948
|
-
function
|
|
949
|
-
if (!(
|
|
950
|
-
var
|
|
951
|
-
return new v("Invalid " +
|
|
948
|
+
function k(N, S, R, y, C) {
|
|
949
|
+
if (!(N[S] instanceof w)) {
|
|
950
|
+
var I = w.name || g, $ = te(N[S]);
|
|
951
|
+
return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected ") + ("instance of `" + I + "`."));
|
|
952
952
|
}
|
|
953
953
|
return null;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return P(k);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function H(w) {
|
|
958
958
|
if (!Array.isArray(w))
|
|
959
959
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
960
960
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
961
961
|
) : a("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
962
|
-
function
|
|
963
|
-
for (var
|
|
964
|
-
if (m(
|
|
962
|
+
function k(N, S, R, y, C) {
|
|
963
|
+
for (var I = N[S], $ = 0; $ < w.length; $++)
|
|
964
|
+
if (m(I, w[$]))
|
|
965
965
|
return null;
|
|
966
|
-
var
|
|
967
|
-
var
|
|
968
|
-
return
|
|
966
|
+
var L = JSON.stringify(w, function(ne, b) {
|
|
967
|
+
var ge = Z(b);
|
|
968
|
+
return ge === "symbol" ? String(b) : b;
|
|
969
969
|
});
|
|
970
|
-
return new v("Invalid " +
|
|
970
|
+
return new v("Invalid " + y + " `" + C + "` of value `" + String(I) + "` " + ("supplied to `" + R + "`, expected one of " + L + "."));
|
|
971
971
|
}
|
|
972
|
-
return
|
|
972
|
+
return P(k);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
function
|
|
974
|
+
function J(w) {
|
|
975
|
+
function k(N, S, R, y, C) {
|
|
976
976
|
if (typeof w != "function")
|
|
977
|
-
return new v("Property `" +
|
|
978
|
-
var
|
|
979
|
-
if (
|
|
980
|
-
return new v("Invalid " +
|
|
981
|
-
for (var
|
|
982
|
-
if (i(
|
|
983
|
-
var
|
|
984
|
-
if (
|
|
985
|
-
return
|
|
977
|
+
return new v("Property `" + C + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
978
|
+
var I = N[S], $ = Y(I);
|
|
979
|
+
if ($ !== "object")
|
|
980
|
+
return new v("Invalid " + y + " `" + C + "` of type " + ("`" + $ + "` supplied to `" + R + "`, expected an object."));
|
|
981
|
+
for (var L in I)
|
|
982
|
+
if (i(I, L)) {
|
|
983
|
+
var M = w(I, L, R, y, C + "." + L, t);
|
|
984
|
+
if (M instanceof Error)
|
|
985
|
+
return M;
|
|
986
986
|
}
|
|
987
987
|
return null;
|
|
988
988
|
}
|
|
989
|
-
return
|
|
989
|
+
return P(k);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function U(w) {
|
|
992
992
|
if (!Array.isArray(w))
|
|
993
993
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
994
|
-
for (var
|
|
995
|
-
var
|
|
996
|
-
if (typeof
|
|
994
|
+
for (var k = 0; k < w.length; k++) {
|
|
995
|
+
var N = w[k];
|
|
996
|
+
if (typeof N != "function")
|
|
997
997
|
return a(
|
|
998
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(
|
|
998
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(N) + " at index " + k + "."
|
|
999
999
|
), r;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
for (var
|
|
1003
|
-
var
|
|
1001
|
+
function S(R, y, C, I, $) {
|
|
1002
|
+
for (var L = [], M = 0; M < w.length; M++) {
|
|
1003
|
+
var ne = w[M], b = ne(R, y, C, I, $, t);
|
|
1004
1004
|
if (b == null)
|
|
1005
1005
|
return null;
|
|
1006
|
-
b.data && i(b.data, "expectedType") &&
|
|
1006
|
+
b.data && i(b.data, "expectedType") && L.push(b.data.expectedType);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1009
|
-
return new v("Invalid " +
|
|
1008
|
+
var ge = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
1009
|
+
return new v("Invalid " + I + " `" + $ + "` supplied to " + ("`" + C + "`" + ge + "."));
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return P(S);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
function w(
|
|
1015
|
-
return
|
|
1013
|
+
function pe() {
|
|
1014
|
+
function w(k, N, S, R, y) {
|
|
1015
|
+
return E(k[N]) ? null : new v("Invalid " + R + " `" + y + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1017
|
+
return P(w);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function se(w, k, N, S, R) {
|
|
1020
1020
|
return new v(
|
|
1021
|
-
(w || "React class") + ": " +
|
|
1021
|
+
(w || "React class") + ": " + k + " type `" + N + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
function
|
|
1026
|
-
var
|
|
1027
|
-
if (
|
|
1028
|
-
return new v("Invalid " +
|
|
1029
|
-
for (var
|
|
1030
|
-
var
|
|
1031
|
-
if (typeof
|
|
1032
|
-
return
|
|
1033
|
-
var
|
|
1034
|
-
if (
|
|
1035
|
-
return
|
|
1024
|
+
function ve(w) {
|
|
1025
|
+
function k(N, S, R, y, C) {
|
|
1026
|
+
var I = N[S], $ = Y(I);
|
|
1027
|
+
if ($ !== "object")
|
|
1028
|
+
return new v("Invalid " + y + " `" + C + "` of type `" + $ + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1029
|
+
for (var L in w) {
|
|
1030
|
+
var M = w[L];
|
|
1031
|
+
if (typeof M != "function")
|
|
1032
|
+
return se(R, y, C, L, Z(M));
|
|
1033
|
+
var ne = M(I, L, R, y, C + "." + L, t);
|
|
1034
|
+
if (ne)
|
|
1035
|
+
return ne;
|
|
1036
1036
|
}
|
|
1037
1037
|
return null;
|
|
1038
1038
|
}
|
|
1039
|
-
return
|
|
1039
|
+
return P(k);
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
function
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
return new v("Invalid " +
|
|
1046
|
-
var
|
|
1047
|
-
for (var
|
|
1048
|
-
var
|
|
1049
|
-
if (i(w,
|
|
1050
|
-
return
|
|
1051
|
-
if (!
|
|
1041
|
+
function D(w) {
|
|
1042
|
+
function k(N, S, R, y, C) {
|
|
1043
|
+
var I = N[S], $ = Y(I);
|
|
1044
|
+
if ($ !== "object")
|
|
1045
|
+
return new v("Invalid " + y + " `" + C + "` of type `" + $ + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1046
|
+
var L = n({}, N[S], w);
|
|
1047
|
+
for (var M in L) {
|
|
1048
|
+
var ne = w[M];
|
|
1049
|
+
if (i(w, M) && typeof ne != "function")
|
|
1050
|
+
return se(R, y, C, M, Z(ne));
|
|
1051
|
+
if (!ne)
|
|
1052
1052
|
return new v(
|
|
1053
|
-
"Invalid " +
|
|
1053
|
+
"Invalid " + y + " `" + C + "` key `" + M + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(N[S], null, " ") + `
|
|
1054
1054
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1055
1055
|
);
|
|
1056
|
-
var b =
|
|
1056
|
+
var b = ne(I, M, R, y, C + "." + M, t);
|
|
1057
1057
|
if (b)
|
|
1058
1058
|
return b;
|
|
1059
1059
|
}
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
|
-
return
|
|
1062
|
+
return P(k);
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function E(w) {
|
|
1065
1065
|
switch (typeof w) {
|
|
1066
1066
|
case "number":
|
|
1067
1067
|
case "string":
|
|
@@ -1071,20 +1071,20 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1071
1071
|
return !w;
|
|
1072
1072
|
case "object":
|
|
1073
1073
|
if (Array.isArray(w))
|
|
1074
|
-
return w.every(
|
|
1074
|
+
return w.every(E);
|
|
1075
1075
|
if (w === null || l(w))
|
|
1076
1076
|
return !0;
|
|
1077
|
-
var
|
|
1078
|
-
if (
|
|
1079
|
-
var
|
|
1080
|
-
if (
|
|
1081
|
-
for (; !(
|
|
1082
|
-
if (!S
|
|
1077
|
+
var k = f(w);
|
|
1078
|
+
if (k) {
|
|
1079
|
+
var N = k.call(w), S;
|
|
1080
|
+
if (k !== w.entries) {
|
|
1081
|
+
for (; !(S = N.next()).done; )
|
|
1082
|
+
if (!E(S.value))
|
|
1083
1083
|
return !1;
|
|
1084
1084
|
} else
|
|
1085
|
-
for (; !(
|
|
1086
|
-
var
|
|
1087
|
-
if (
|
|
1085
|
+
for (; !(S = N.next()).done; ) {
|
|
1086
|
+
var R = S.value;
|
|
1087
|
+
if (R && !E(R[1]))
|
|
1088
1088
|
return !1;
|
|
1089
1089
|
}
|
|
1090
1090
|
} else
|
|
@@ -1094,37 +1094,37 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1094
1094
|
return !1;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return w === "symbol" ? !0 :
|
|
1097
|
+
function q(w, k) {
|
|
1098
|
+
return w === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Y(w) {
|
|
1101
|
-
var
|
|
1102
|
-
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" :
|
|
1101
|
+
var k = typeof w;
|
|
1102
|
+
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : q(k, w) ? "symbol" : k;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function Z(w) {
|
|
1105
1105
|
if (typeof w > "u" || w === null)
|
|
1106
1106
|
return "" + w;
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1107
|
+
var k = Y(w);
|
|
1108
|
+
if (k === "object") {
|
|
1109
1109
|
if (w instanceof Date)
|
|
1110
1110
|
return "date";
|
|
1111
1111
|
if (w instanceof RegExp)
|
|
1112
1112
|
return "regexp";
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return k;
|
|
1115
1115
|
}
|
|
1116
1116
|
function oe(w) {
|
|
1117
|
-
var
|
|
1118
|
-
switch (
|
|
1117
|
+
var k = Z(w);
|
|
1118
|
+
switch (k) {
|
|
1119
1119
|
case "array":
|
|
1120
1120
|
case "object":
|
|
1121
|
-
return "an " +
|
|
1121
|
+
return "an " + k;
|
|
1122
1122
|
case "boolean":
|
|
1123
1123
|
case "date":
|
|
1124
1124
|
case "regexp":
|
|
1125
|
-
return "a " +
|
|
1125
|
+
return "a " + k;
|
|
1126
1126
|
default:
|
|
1127
|
-
return
|
|
1127
|
+
return k;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
function te(w) {
|
|
@@ -1133,11 +1133,11 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1133
1133
|
return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
|
|
1134
1134
|
}, wt;
|
|
1135
1135
|
}
|
|
1136
|
-
var yt,
|
|
1137
|
-
function
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1140
|
-
var e = /* @__PURE__ */
|
|
1136
|
+
var yt, fn;
|
|
1137
|
+
function Do() {
|
|
1138
|
+
if (fn) return yt;
|
|
1139
|
+
fn = 1;
|
|
1140
|
+
var e = /* @__PURE__ */ Wt();
|
|
1141
1141
|
function n() {
|
|
1142
1142
|
}
|
|
1143
1143
|
function t() {
|
|
@@ -1181,18 +1181,18 @@ function Io() {
|
|
|
1181
1181
|
return a.PropTypes = a, a;
|
|
1182
1182
|
}, yt;
|
|
1183
1183
|
}
|
|
1184
|
-
var
|
|
1185
|
-
function
|
|
1186
|
-
if (
|
|
1187
|
-
if (
|
|
1188
|
-
var e =
|
|
1189
|
-
Ue.exports = /* @__PURE__ */
|
|
1184
|
+
var mn;
|
|
1185
|
+
function $o() {
|
|
1186
|
+
if (mn) return Ue.exports;
|
|
1187
|
+
if (mn = 1, process.env.NODE_ENV !== "production") {
|
|
1188
|
+
var e = qn(), n = !0;
|
|
1189
|
+
Ue.exports = /* @__PURE__ */ Io()(e.isElement, n);
|
|
1190
1190
|
} else
|
|
1191
|
-
Ue.exports = /* @__PURE__ */
|
|
1191
|
+
Ue.exports = /* @__PURE__ */ Do()();
|
|
1192
1192
|
return Ue.exports;
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1195
|
-
const X = /* @__PURE__ */
|
|
1194
|
+
var Ao = /* @__PURE__ */ $o();
|
|
1195
|
+
const X = /* @__PURE__ */ Bt(Ao);
|
|
1196
1196
|
function De(e, n, t, i) {
|
|
1197
1197
|
function o(a) {
|
|
1198
1198
|
return a instanceof t ? a : new t(function(r) {
|
|
@@ -1220,7 +1220,7 @@ function De(e, n, t, i) {
|
|
|
1220
1220
|
c((i = i.apply(e, n || [])).next());
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1223
|
+
const Mo = /* @__PURE__ */ new Map([
|
|
1224
1224
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
1225
1225
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
1226
1226
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -2424,13 +2424,13 @@ const Ao = /* @__PURE__ */ new Map([
|
|
|
2424
2424
|
["zsh", "text/x-scriptzsh"]
|
|
2425
2425
|
]);
|
|
2426
2426
|
function je(e, n, t) {
|
|
2427
|
-
const i =
|
|
2428
|
-
return typeof i.path != "string" &&
|
|
2427
|
+
const i = Oo(e), { webkitRelativePath: o } = e, a = typeof n == "string" ? n : typeof o == "string" && o.length > 0 ? o : `./${e.name}`;
|
|
2428
|
+
return typeof i.path != "string" && vn(i, "path", a), vn(i, "relativePath", a), i;
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2430
|
+
function Oo(e) {
|
|
2431
2431
|
const { name: n } = e;
|
|
2432
2432
|
if (n && n.lastIndexOf(".") !== -1 && !e.type) {
|
|
2433
|
-
const i = n.split(".").pop().toLowerCase(), o =
|
|
2433
|
+
const i = n.split(".").pop().toLowerCase(), o = Mo.get(i);
|
|
2434
2434
|
o && Object.defineProperty(e, "type", {
|
|
2435
2435
|
value: o,
|
|
2436
2436
|
writable: !1,
|
|
@@ -2440,7 +2440,7 @@ function Mo(e) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function vn(e, n, t) {
|
|
2444
2444
|
Object.defineProperty(e, n, {
|
|
2445
2445
|
value: t,
|
|
2446
2446
|
writable: !1,
|
|
@@ -2448,49 +2448,49 @@ function fn(e, n, t) {
|
|
|
2448
2448
|
enumerable: !0
|
|
2449
2449
|
});
|
|
2450
2450
|
}
|
|
2451
|
-
const
|
|
2451
|
+
const jo = [
|
|
2452
2452
|
// Thumbnail cache files for macOS and Windows
|
|
2453
2453
|
".DS_Store",
|
|
2454
2454
|
// macOs
|
|
2455
2455
|
"Thumbs.db"
|
|
2456
2456
|
// Windows
|
|
2457
2457
|
];
|
|
2458
|
-
function
|
|
2458
|
+
function To(e) {
|
|
2459
2459
|
return De(this, void 0, void 0, function* () {
|
|
2460
|
-
return tt(e) &&
|
|
2460
|
+
return tt(e) && zo(e.dataTransfer) ? Ho(e.dataTransfer, e.type) : Vo(e) ? No(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? Lo(e) : [];
|
|
2461
2461
|
});
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function zo(e) {
|
|
2464
2464
|
return tt(e);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function Vo(e) {
|
|
2467
2467
|
return tt(e) && tt(e.target);
|
|
2468
2468
|
}
|
|
2469
2469
|
function tt(e) {
|
|
2470
2470
|
return typeof e == "object" && e !== null;
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function No(e) {
|
|
2473
2473
|
return Dt(e.target.files).map((n) => je(n));
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Lo(e) {
|
|
2476
2476
|
return De(this, void 0, void 0, function* () {
|
|
2477
2477
|
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => je(t));
|
|
2478
2478
|
});
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function Ho(e, n) {
|
|
2481
2481
|
return De(this, void 0, void 0, function* () {
|
|
2482
2482
|
if (e.items) {
|
|
2483
2483
|
const t = Dt(e.items).filter((o) => o.kind === "file");
|
|
2484
2484
|
if (n !== "drop")
|
|
2485
2485
|
return t;
|
|
2486
|
-
const i = yield Promise.all(t.map(
|
|
2487
|
-
return
|
|
2486
|
+
const i = yield Promise.all(t.map(qo));
|
|
2487
|
+
return xn(Bn(i));
|
|
2488
2488
|
}
|
|
2489
|
-
return
|
|
2489
|
+
return xn(Dt(e.files).map((t) => je(t)));
|
|
2490
2490
|
});
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return e.filter((n) =>
|
|
2492
|
+
function xn(e) {
|
|
2493
|
+
return e.filter((n) => jo.indexOf(n.name) === -1);
|
|
2494
2494
|
}
|
|
2495
2495
|
function Dt(e) {
|
|
2496
2496
|
if (e === null)
|
|
@@ -2502,19 +2502,19 @@ function Dt(e) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
return n;
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function qo(e) {
|
|
2506
2506
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2507
|
-
return
|
|
2507
|
+
return hn(e);
|
|
2508
2508
|
const n = e.webkitGetAsEntry();
|
|
2509
|
-
return n && n.isDirectory ?
|
|
2509
|
+
return n && n.isDirectory ? Un(n) : hn(e, n);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Bn(e) {
|
|
2512
2512
|
return e.reduce((n, t) => [
|
|
2513
2513
|
...n,
|
|
2514
|
-
...Array.isArray(t) ?
|
|
2514
|
+
...Array.isArray(t) ? Bn(t) : [t]
|
|
2515
2515
|
], []);
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function hn(e, n) {
|
|
2518
2518
|
return De(this, void 0, void 0, function* () {
|
|
2519
2519
|
var t;
|
|
2520
2520
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
@@ -2532,19 +2532,19 @@ function vn(e, n) {
|
|
|
2532
2532
|
return je(i, (t = n == null ? void 0 : n.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
2533
2533
|
});
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Go(e) {
|
|
2536
2536
|
return De(this, void 0, void 0, function* () {
|
|
2537
|
-
return e.isDirectory ?
|
|
2537
|
+
return e.isDirectory ? Un(e) : Bo(e);
|
|
2538
2538
|
});
|
|
2539
2539
|
}
|
|
2540
|
-
function
|
|
2540
|
+
function Un(e) {
|
|
2541
2541
|
const n = e.createReader();
|
|
2542
2542
|
return new Promise((t, i) => {
|
|
2543
2543
|
const o = [];
|
|
2544
2544
|
function a() {
|
|
2545
2545
|
n.readEntries((r) => De(this, void 0, void 0, function* () {
|
|
2546
2546
|
if (r.length) {
|
|
2547
|
-
const l = Promise.all(r.map(
|
|
2547
|
+
const l = Promise.all(r.map(Go));
|
|
2548
2548
|
o.push(l), a();
|
|
2549
2549
|
} else
|
|
2550
2550
|
try {
|
|
@@ -2560,7 +2560,7 @@ function Bn(e) {
|
|
|
2560
2560
|
a();
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function Bo(e) {
|
|
2564
2564
|
return De(this, void 0, void 0, function* () {
|
|
2565
2565
|
return new Promise((n, t) => {
|
|
2566
2566
|
e.file((i) => {
|
|
@@ -2572,9 +2572,9 @@ function Go(e) {
|
|
|
2572
2572
|
});
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
|
-
var We = {},
|
|
2576
|
-
function
|
|
2577
|
-
return
|
|
2575
|
+
var We = {}, wn;
|
|
2576
|
+
function Uo() {
|
|
2577
|
+
return wn || (wn = 1, We.__esModule = !0, We.default = function(e, n) {
|
|
2578
2578
|
if (e && n) {
|
|
2579
2579
|
var t = Array.isArray(n) ? n : n.split(",");
|
|
2580
2580
|
if (t.length === 0)
|
|
@@ -2588,22 +2588,22 @@ function Bo() {
|
|
|
2588
2588
|
return !0;
|
|
2589
2589
|
}), We;
|
|
2590
2590
|
}
|
|
2591
|
-
var
|
|
2592
|
-
const bt = /* @__PURE__ */
|
|
2593
|
-
function
|
|
2594
|
-
return
|
|
2591
|
+
var Ko = Uo();
|
|
2592
|
+
const bt = /* @__PURE__ */ Bt(Ko);
|
|
2593
|
+
function yn(e) {
|
|
2594
|
+
return Xo(e) || Yo(e) || Wn(e) || Wo();
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2596
|
+
function Wo() {
|
|
2597
2597
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2598
2598
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Yo(e) {
|
|
2601
2601
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2603
|
+
function Xo(e) {
|
|
2604
2604
|
if (Array.isArray(e)) return $t(e);
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function bn(e, n) {
|
|
2607
2607
|
var t = Object.keys(e);
|
|
2608
2608
|
if (Object.getOwnPropertySymbols) {
|
|
2609
2609
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2613,28 +2613,28 @@ function wn(e, n) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
return t;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function Sn(e) {
|
|
2617
2617
|
for (var n = 1; n < arguments.length; n++) {
|
|
2618
2618
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2619
|
-
n % 2 ?
|
|
2620
|
-
|
|
2621
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
2619
|
+
n % 2 ? bn(Object(t), !0).forEach(function(i) {
|
|
2620
|
+
Kn(e, i, t[i]);
|
|
2621
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : bn(Object(t)).forEach(function(i) {
|
|
2622
2622
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
return e;
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Kn(e, n, t) {
|
|
2628
2628
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
2629
2629
|
}
|
|
2630
2630
|
function He(e, n) {
|
|
2631
|
-
return
|
|
2631
|
+
return Zo(e) || Jo(e, n) || Wn(e, n) || Qo();
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2633
|
+
function Qo() {
|
|
2634
2634
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2635
2635
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function Wn(e, n) {
|
|
2638
2638
|
if (e) {
|
|
2639
2639
|
if (typeof e == "string") return $t(e, n);
|
|
2640
2640
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -2648,7 +2648,7 @@ function $t(e, n) {
|
|
|
2648
2648
|
i[t] = e[t];
|
|
2649
2649
|
return i;
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Jo(e, n) {
|
|
2652
2652
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2653
2653
|
if (t != null) {
|
|
2654
2654
|
var i = [], o = !0, a = !1, r, l;
|
|
@@ -2667,51 +2667,51 @@ function Qo(e, n) {
|
|
|
2667
2667
|
return i;
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function Zo(e) {
|
|
2671
2671
|
if (Array.isArray(e)) return e;
|
|
2672
2672
|
}
|
|
2673
|
-
var
|
|
2673
|
+
var ea = typeof bt == "function" ? bt : bt.default, ta = "file-invalid-type", na = "file-too-large", ia = "file-too-small", oa = "too-many-files", aa = function() {
|
|
2674
2674
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = n.split(","), i = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
2675
2675
|
return {
|
|
2676
|
-
code:
|
|
2676
|
+
code: ta,
|
|
2677
2677
|
message: "File type must be ".concat(i)
|
|
2678
2678
|
};
|
|
2679
|
-
},
|
|
2679
|
+
}, Cn = function(n) {
|
|
2680
2680
|
return {
|
|
2681
|
-
code:
|
|
2681
|
+
code: na,
|
|
2682
2682
|
message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2683
2683
|
};
|
|
2684
|
-
},
|
|
2684
|
+
}, _n = function(n) {
|
|
2685
2685
|
return {
|
|
2686
|
-
code:
|
|
2686
|
+
code: ia,
|
|
2687
2687
|
message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2688
2688
|
};
|
|
2689
|
-
},
|
|
2690
|
-
code:
|
|
2689
|
+
}, ra = {
|
|
2690
|
+
code: oa,
|
|
2691
2691
|
message: "Too many files"
|
|
2692
2692
|
};
|
|
2693
|
-
function
|
|
2694
|
-
var t = e.type === "application/x-moz-file" ||
|
|
2695
|
-
return [t, t ? null :
|
|
2693
|
+
function Yn(e, n) {
|
|
2694
|
+
var t = e.type === "application/x-moz-file" || ea(e, n);
|
|
2695
|
+
return [t, t ? null : aa(n)];
|
|
2696
2696
|
}
|
|
2697
|
-
function
|
|
2697
|
+
function Xn(e, n, t) {
|
|
2698
2698
|
if (Pe(e.size))
|
|
2699
2699
|
if (Pe(n) && Pe(t)) {
|
|
2700
|
-
if (e.size > t) return [!1,
|
|
2701
|
-
if (e.size < n) return [!1,
|
|
2700
|
+
if (e.size > t) return [!1, Cn(t)];
|
|
2701
|
+
if (e.size < n) return [!1, _n(n)];
|
|
2702
2702
|
} else {
|
|
2703
|
-
if (Pe(n) && e.size < n) return [!1,
|
|
2704
|
-
if (Pe(t) && e.size > t) return [!1,
|
|
2703
|
+
if (Pe(n) && e.size < n) return [!1, _n(n)];
|
|
2704
|
+
if (Pe(t) && e.size > t) return [!1, Cn(t)];
|
|
2705
2705
|
}
|
|
2706
2706
|
return [!0, null];
|
|
2707
2707
|
}
|
|
2708
2708
|
function Pe(e) {
|
|
2709
2709
|
return e != null;
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function la(e) {
|
|
2712
2712
|
var n = e.files, t = e.accept, i = e.minSize, o = e.maxSize, a = e.multiple, r = e.maxFiles, l = e.validator;
|
|
2713
2713
|
return !a && n.length > 1 || a && r >= 1 && n.length > r ? !1 : n.every(function(s) {
|
|
2714
|
-
var c =
|
|
2714
|
+
var c = Yn(s, t), d = He(c, 1), f = d[0], g = Xn(s, i, o), u = He(g, 1), m = u[0], v = l ? l(s) : null;
|
|
2715
2715
|
return f && m && !v;
|
|
2716
2716
|
});
|
|
2717
2717
|
}
|
|
@@ -2723,20 +2723,20 @@ function Ye(e) {
|
|
|
2723
2723
|
return n === "Files" || n === "application/x-moz-file";
|
|
2724
2724
|
}) : !!e.target && !!e.target.files;
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function Rn(e) {
|
|
2727
2727
|
e.preventDefault();
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function sa(e) {
|
|
2730
2730
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function ca(e) {
|
|
2733
2733
|
return e.indexOf("Edge/") !== -1;
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function pa() {
|
|
2736
2736
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2737
|
-
return
|
|
2737
|
+
return sa(e) || ca(e);
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function be() {
|
|
2740
2740
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
2741
2741
|
n[t] = arguments[t];
|
|
2742
2742
|
return function(i) {
|
|
@@ -2747,17 +2747,17 @@ function ye() {
|
|
|
2747
2747
|
});
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function ua() {
|
|
2751
2751
|
return "showOpenFilePicker" in window;
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function da(e) {
|
|
2754
2754
|
if (Pe(e)) {
|
|
2755
2755
|
var n = Object.entries(e).filter(function(t) {
|
|
2756
2756
|
var i = He(t, 2), o = i[0], a = i[1], r = !0;
|
|
2757
|
-
return
|
|
2757
|
+
return Qn(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), r = !1), (!Array.isArray(a) || !a.every(Jn)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2758
2758
|
}).reduce(function(t, i) {
|
|
2759
2759
|
var o = He(i, 2), a = o[0], r = o[1];
|
|
2760
|
-
return
|
|
2760
|
+
return Sn(Sn({}, t), {}, Kn({}, a, r));
|
|
2761
2761
|
}, {});
|
|
2762
2762
|
return [{
|
|
2763
2763
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2767,49 +2767,49 @@ function ua(e) {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
return e;
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function ga(e) {
|
|
2771
2771
|
if (Pe(e))
|
|
2772
2772
|
return Object.entries(e).reduce(function(n, t) {
|
|
2773
2773
|
var i = He(t, 2), o = i[0], a = i[1];
|
|
2774
|
-
return [].concat(
|
|
2774
|
+
return [].concat(yn(n), [o], yn(a));
|
|
2775
2775
|
}, []).filter(function(n) {
|
|
2776
|
-
return
|
|
2776
|
+
return Qn(n) || Jn(n);
|
|
2777
2777
|
}).join(",");
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function fa(e) {
|
|
2780
2780
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function ma(e) {
|
|
2783
2783
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Qn(e) {
|
|
2786
2786
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function Jn(e) {
|
|
2789
2789
|
return /^.*\.[\w]+$/.test(e);
|
|
2790
2790
|
}
|
|
2791
|
-
var
|
|
2792
|
-
function
|
|
2793
|
-
return
|
|
2791
|
+
var va = ["children"], xa = ["open"], ha = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], wa = ["refKey", "onChange", "onClick"];
|
|
2792
|
+
function ya(e) {
|
|
2793
|
+
return Ca(e) || Sa(e) || Zn(e) || ba();
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function ba() {
|
|
2796
2796
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2797
2797
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function Sa(e) {
|
|
2800
2800
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function Ca(e) {
|
|
2803
2803
|
if (Array.isArray(e)) return At(e);
|
|
2804
2804
|
}
|
|
2805
2805
|
function St(e, n) {
|
|
2806
|
-
return
|
|
2806
|
+
return Ea(e) || Ra(e, n) || Zn(e, n) || _a();
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function _a() {
|
|
2809
2809
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2810
2810
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2811
2811
|
}
|
|
2812
|
-
function
|
|
2812
|
+
function Zn(e, n) {
|
|
2813
2813
|
if (e) {
|
|
2814
2814
|
if (typeof e == "string") return At(e, n);
|
|
2815
2815
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -2823,7 +2823,7 @@ function At(e, n) {
|
|
|
2823
2823
|
i[t] = e[t];
|
|
2824
2824
|
return i;
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function Ra(e, n) {
|
|
2827
2827
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2828
2828
|
if (t != null) {
|
|
2829
2829
|
var i = [], o = !0, a = !1, r, l;
|
|
@@ -2842,10 +2842,10 @@ function _a(e, n) {
|
|
|
2842
2842
|
return i;
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function Ea(e) {
|
|
2846
2846
|
if (Array.isArray(e)) return e;
|
|
2847
2847
|
}
|
|
2848
|
-
function
|
|
2848
|
+
function En(e, n) {
|
|
2849
2849
|
var t = Object.keys(e);
|
|
2850
2850
|
if (Object.getOwnPropertySymbols) {
|
|
2851
2851
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2855,12 +2855,12 @@ function _n(e, n) {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
return t;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
2858
|
+
function ee(e) {
|
|
2859
2859
|
for (var n = 1; n < arguments.length; n++) {
|
|
2860
2860
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2861
|
-
n % 2 ?
|
|
2861
|
+
n % 2 ? En(Object(t), !0).forEach(function(i) {
|
|
2862
2862
|
Mt(e, i, t[i]);
|
|
2863
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
2863
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : En(Object(t)).forEach(function(i) {
|
|
2864
2864
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
@@ -2871,7 +2871,7 @@ function Mt(e, n, t) {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
function it(e, n) {
|
|
2873
2873
|
if (e == null) return {};
|
|
2874
|
-
var t =
|
|
2874
|
+
var t = ka(e, n), i, o;
|
|
2875
2875
|
if (Object.getOwnPropertySymbols) {
|
|
2876
2876
|
var a = Object.getOwnPropertySymbols(e);
|
|
2877
2877
|
for (o = 0; o < a.length; o++)
|
|
@@ -2879,27 +2879,27 @@ function it(e, n) {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
return t;
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function ka(e, n) {
|
|
2883
2883
|
if (e == null) return {};
|
|
2884
2884
|
var t = {}, i = Object.keys(e), o, a;
|
|
2885
2885
|
for (a = 0; a < i.length; a++)
|
|
2886
2886
|
o = i[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
2887
2887
|
return t;
|
|
2888
2888
|
}
|
|
2889
|
-
var
|
|
2890
|
-
var t = e.children, i = it(e,
|
|
2891
|
-
return
|
|
2889
|
+
var Yt = /* @__PURE__ */ _i(function(e, n) {
|
|
2890
|
+
var t = e.children, i = it(e, va), o = ti(i), a = o.open, r = it(o, xa);
|
|
2891
|
+
return Ri(n, function() {
|
|
2892
2892
|
return {
|
|
2893
2893
|
open: a
|
|
2894
2894
|
};
|
|
2895
|
-
}, [a]), /* @__PURE__ */
|
|
2895
|
+
}, [a]), /* @__PURE__ */ Si.createElement(Mn, null, t(ee(ee({}, r), {}, {
|
|
2896
2896
|
open: a
|
|
2897
2897
|
})));
|
|
2898
2898
|
});
|
|
2899
|
-
|
|
2900
|
-
var
|
|
2899
|
+
Yt.displayName = "Dropzone";
|
|
2900
|
+
var ei = {
|
|
2901
2901
|
disabled: !1,
|
|
2902
|
-
getFilesFromEvent:
|
|
2902
|
+
getFilesFromEvent: To,
|
|
2903
2903
|
maxSize: 1 / 0,
|
|
2904
2904
|
minSize: 0,
|
|
2905
2905
|
multiple: !0,
|
|
@@ -2913,8 +2913,8 @@ var Zn = {
|
|
|
2913
2913
|
useFsAccessApi: !1,
|
|
2914
2914
|
autoFocus: !1
|
|
2915
2915
|
};
|
|
2916
|
-
|
|
2917
|
-
|
|
2916
|
+
Yt.defaultProps = ei;
|
|
2917
|
+
Yt.propTypes = {
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Render function that exposes the dropzone state and prop getter fns
|
|
2920
2920
|
*
|
|
@@ -3091,147 +3091,147 @@ var Ot = {
|
|
|
3091
3091
|
acceptedFiles: [],
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
|
-
function
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n =
|
|
3094
|
+
function ti() {
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ee(ee({}, ei), e), t = n.accept, i = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, r = n.minSize, l = n.multiple, s = n.maxFiles, c = n.onDragEnter, d = n.onDragLeave, f = n.onDragOver, g = n.onDrop, u = n.onDropAccepted, m = n.onDropRejected, v = n.onFileDialogCancel, P = n.onFileDialogOpen, h = n.useFsAccessApi, z = n.autoFocus, F = n.preventDropOnDocument, A = n.noClick, x = n.noKeyboard, V = n.noDrag, H = n.noDragEventsBubbling, J = n.onError, U = n.validator, pe = le(function() {
|
|
3096
|
+
return ga(t);
|
|
3097
|
+
}, [t]), se = le(function() {
|
|
3096
3098
|
return da(t);
|
|
3097
|
-
}, [t]),
|
|
3098
|
-
return
|
|
3099
|
-
}, [
|
|
3100
|
-
return typeof
|
|
3101
|
-
}, [
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
var j = H.current.files;
|
|
3107
|
-
j.length || (te({
|
|
3099
|
+
}, [t]), ve = le(function() {
|
|
3100
|
+
return typeof P == "function" ? P : kn;
|
|
3101
|
+
}, [P]), D = le(function() {
|
|
3102
|
+
return typeof v == "function" ? v : kn;
|
|
3103
|
+
}, [v]), E = Se(null), q = Se(null), Y = An(Fa, Ot), Z = St(Y, 2), oe = Z[0], te = Z[1], w = oe.isFocused, k = oe.isFileDialogActive, N = Se(typeof window < "u" && window.isSecureContext && h && ua()), S = function() {
|
|
3104
|
+
!N.current && k && setTimeout(function() {
|
|
3105
|
+
if (q.current) {
|
|
3106
|
+
var T = q.current.files;
|
|
3107
|
+
T.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
|
-
}),
|
|
3109
|
+
}), D());
|
|
3110
3110
|
}
|
|
3111
3111
|
}, 300);
|
|
3112
3112
|
};
|
|
3113
|
-
|
|
3114
|
-
return window.addEventListener("focus",
|
|
3115
|
-
window.removeEventListener("focus",
|
|
3113
|
+
Re(function() {
|
|
3114
|
+
return window.addEventListener("focus", S, !1), function() {
|
|
3115
|
+
window.removeEventListener("focus", S, !1);
|
|
3116
3116
|
};
|
|
3117
|
-
}, [
|
|
3118
|
-
var
|
|
3119
|
-
|
|
3117
|
+
}, [q, k, D, N]);
|
|
3118
|
+
var R = Se([]), y = function(T) {
|
|
3119
|
+
E.current && E.current.contains(T.target) || (T.preventDefault(), R.current = []);
|
|
3120
3120
|
};
|
|
3121
|
-
|
|
3122
|
-
return
|
|
3123
|
-
|
|
3121
|
+
Re(function() {
|
|
3122
|
+
return F && (document.addEventListener("dragover", Rn, !1), document.addEventListener("drop", y, !1)), function() {
|
|
3123
|
+
F && (document.removeEventListener("dragover", Rn), document.removeEventListener("drop", y));
|
|
3124
3124
|
};
|
|
3125
|
-
}, [
|
|
3126
|
-
return !i &&
|
|
3125
|
+
}, [E, F]), Re(function() {
|
|
3126
|
+
return !i && z && E.current && E.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
}, [
|
|
3132
|
-
|
|
3133
|
-
if (!(nt(
|
|
3134
|
-
var
|
|
3135
|
-
files:
|
|
3136
|
-
accept:
|
|
3128
|
+
}, [E, z, i]);
|
|
3129
|
+
var C = Q(function(_) {
|
|
3130
|
+
J ? J(_) : console.error(_);
|
|
3131
|
+
}, [J]), I = Q(function(_) {
|
|
3132
|
+
_.preventDefault(), _.persist(), Ge(_), R.current = [].concat(ya(R.current), [_.target]), Ye(_) && Promise.resolve(o(_)).then(function(T) {
|
|
3133
|
+
if (!(nt(_) && !H)) {
|
|
3134
|
+
var ie = T.length, ae = ie > 0 && la({
|
|
3135
|
+
files: T,
|
|
3136
|
+
accept: pe,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
3139
3139
|
multiple: l,
|
|
3140
3140
|
maxFiles: s,
|
|
3141
|
-
validator:
|
|
3142
|
-
}),
|
|
3141
|
+
validator: U
|
|
3142
|
+
}), fe = ie > 0 && !ae;
|
|
3143
3143
|
te({
|
|
3144
3144
|
isDragAccept: ae,
|
|
3145
|
-
isDragReject:
|
|
3145
|
+
isDragReject: fe,
|
|
3146
3146
|
isDragActive: !0,
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
|
-
}), c && c(
|
|
3148
|
+
}), c && c(_);
|
|
3149
3149
|
}
|
|
3150
|
-
}).catch(function(
|
|
3151
|
-
return
|
|
3150
|
+
}).catch(function(T) {
|
|
3151
|
+
return C(T);
|
|
3152
3152
|
});
|
|
3153
|
-
}, [o, c,
|
|
3154
|
-
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3153
|
+
}, [o, c, C, H, pe, r, a, l, s, U]), $ = Q(function(_) {
|
|
3154
|
+
_.preventDefault(), _.persist(), Ge(_);
|
|
3155
|
+
var T = Ye(_);
|
|
3156
|
+
if (T && _.dataTransfer)
|
|
3157
3157
|
try {
|
|
3158
|
-
|
|
3158
|
+
_.dataTransfer.dropEffect = "copy";
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
|
-
return
|
|
3162
|
-
}, [f,
|
|
3163
|
-
|
|
3164
|
-
var
|
|
3165
|
-
return
|
|
3166
|
-
}),
|
|
3167
|
-
|
|
3161
|
+
return T && f && f(_), !1;
|
|
3162
|
+
}, [f, H]), L = Q(function(_) {
|
|
3163
|
+
_.preventDefault(), _.persist(), Ge(_);
|
|
3164
|
+
var T = R.current.filter(function(ae) {
|
|
3165
|
+
return E.current && E.current.contains(ae);
|
|
3166
|
+
}), ie = T.indexOf(_.target);
|
|
3167
|
+
ie !== -1 && T.splice(ie, 1), R.current = T, !(T.length > 0) && (te({
|
|
3168
3168
|
type: "setDraggedFiles",
|
|
3169
3169
|
isDragActive: !1,
|
|
3170
3170
|
isDragAccept: !1,
|
|
3171
3171
|
isDragReject: !1
|
|
3172
|
-
}), Ye(
|
|
3173
|
-
}, [
|
|
3174
|
-
var
|
|
3175
|
-
|
|
3176
|
-
var ze =
|
|
3172
|
+
}), Ye(_) && d && d(_));
|
|
3173
|
+
}, [E, d, H]), M = Q(function(_, T) {
|
|
3174
|
+
var ie = [], ae = [];
|
|
3175
|
+
_.forEach(function(fe) {
|
|
3176
|
+
var ze = Yn(fe, pe), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Xn(fe, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = U ? U(fe) : null;
|
|
3177
3177
|
if (lt && pt && !dt)
|
|
3178
|
-
|
|
3178
|
+
ie.push(fe);
|
|
3179
3179
|
else {
|
|
3180
3180
|
var gt = [st, ut];
|
|
3181
3181
|
dt && (gt = gt.concat(dt)), ae.push({
|
|
3182
|
-
file:
|
|
3183
|
-
errors: gt.filter(function(
|
|
3184
|
-
return
|
|
3182
|
+
file: fe,
|
|
3183
|
+
errors: gt.filter(function(bi) {
|
|
3184
|
+
return bi;
|
|
3185
3185
|
})
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
|
-
}), (!l &&
|
|
3188
|
+
}), (!l && ie.length > 1 || l && s >= 1 && ie.length > s) && (ie.forEach(function(fe) {
|
|
3189
3189
|
ae.push({
|
|
3190
|
-
file:
|
|
3191
|
-
errors: [
|
|
3190
|
+
file: fe,
|
|
3191
|
+
errors: [ra]
|
|
3192
3192
|
});
|
|
3193
|
-
}),
|
|
3194
|
-
acceptedFiles:
|
|
3193
|
+
}), ie.splice(0)), te({
|
|
3194
|
+
acceptedFiles: ie,
|
|
3195
3195
|
fileRejections: ae,
|
|
3196
3196
|
isDragReject: ae.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(
|
|
3199
|
-
}, [te, l,
|
|
3200
|
-
|
|
3201
|
-
nt(
|
|
3202
|
-
}).catch(function(
|
|
3203
|
-
return
|
|
3198
|
+
}), g && g(ie, ae, T), ae.length > 0 && m && m(ae, T), ie.length > 0 && u && u(ie, T);
|
|
3199
|
+
}, [te, l, pe, r, a, s, g, u, m, U]), ne = Q(function(_) {
|
|
3200
|
+
_.preventDefault(), _.persist(), Ge(_), R.current = [], Ye(_) && Promise.resolve(o(_)).then(function(T) {
|
|
3201
|
+
nt(_) && !H || M(T, _);
|
|
3202
|
+
}).catch(function(T) {
|
|
3203
|
+
return C(T);
|
|
3204
3204
|
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
3207
|
-
}, [o,
|
|
3208
|
-
if (
|
|
3207
|
+
}, [o, M, C, H]), b = Q(function() {
|
|
3208
|
+
if (N.current) {
|
|
3209
3209
|
te({
|
|
3210
3210
|
type: "openDialog"
|
|
3211
|
-
}),
|
|
3212
|
-
var
|
|
3211
|
+
}), ve();
|
|
3212
|
+
var _ = {
|
|
3213
3213
|
multiple: l,
|
|
3214
|
-
types:
|
|
3214
|
+
types: se
|
|
3215
3215
|
};
|
|
3216
|
-
window.showOpenFilePicker(
|
|
3217
|
-
return o(
|
|
3218
|
-
}).then(function(
|
|
3219
|
-
|
|
3216
|
+
window.showOpenFilePicker(_).then(function(T) {
|
|
3217
|
+
return o(T);
|
|
3218
|
+
}).then(function(T) {
|
|
3219
|
+
M(T, null), te({
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
|
-
}).catch(function(
|
|
3223
|
-
|
|
3222
|
+
}).catch(function(T) {
|
|
3223
|
+
fa(T) ? (D(T), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) :
|
|
3225
|
+
})) : ma(T) ? (N.current = !1, q.current ? (q.current.value = null, q.current.click()) : C(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."))) : C(T);
|
|
3226
3226
|
});
|
|
3227
3227
|
return;
|
|
3228
3228
|
}
|
|
3229
|
-
|
|
3229
|
+
q.current && (te({
|
|
3230
3230
|
type: "openDialog"
|
|
3231
|
-
}),
|
|
3232
|
-
}, [te,
|
|
3233
|
-
!
|
|
3234
|
-
}, [
|
|
3231
|
+
}), ve(), q.current.value = null, q.current.click());
|
|
3232
|
+
}, [te, ve, D, h, M, C, se, l]), ge = Q(function(_) {
|
|
3233
|
+
!E.current || !E.current.isEqualNode(_.target) || (_.key === " " || _.key === "Enter" || _.keyCode === 32 || _.keyCode === 13) && (_.preventDefault(), b());
|
|
3234
|
+
}, [E, b]), Fe = Q(function() {
|
|
3235
3235
|
te({
|
|
3236
3236
|
type: "focus"
|
|
3237
3237
|
});
|
|
@@ -3239,39 +3239,39 @@ function ei() {
|
|
|
3239
3239
|
te({
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
|
-
}, []),
|
|
3243
|
-
|
|
3244
|
-
}, [
|
|
3245
|
-
return i ? null :
|
|
3246
|
-
}, rt = function(
|
|
3247
|
-
return x ? null : $e(
|
|
3248
|
-
}, qe = function(
|
|
3249
|
-
return V ? null : $e(
|
|
3250
|
-
}, Ge = function(
|
|
3251
|
-
|
|
3252
|
-
},
|
|
3242
|
+
}, []), Zt = Q(function() {
|
|
3243
|
+
A || (pa() ? setTimeout(b, 0) : b());
|
|
3244
|
+
}, [A, b]), $e = function(T) {
|
|
3245
|
+
return i ? null : T;
|
|
3246
|
+
}, rt = function(T) {
|
|
3247
|
+
return x ? null : $e(T);
|
|
3248
|
+
}, qe = function(T) {
|
|
3249
|
+
return V ? null : $e(T);
|
|
3250
|
+
}, Ge = function(T) {
|
|
3251
|
+
H && T.stopPropagation();
|
|
3252
|
+
}, hi = le(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3256
|
-
onKeyDown: rt(
|
|
3257
|
-
onFocus: rt(
|
|
3258
|
-
onBlur: rt(
|
|
3259
|
-
onClick: $e(
|
|
3260
|
-
onDragEnter: qe(
|
|
3261
|
-
onDragOver: qe(
|
|
3262
|
-
onDragLeave: qe(
|
|
3263
|
-
onDrop: qe(
|
|
3254
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = _.refKey, ie = T === void 0 ? "ref" : T, ae = _.role, fe = _.onKeyDown, ze = _.onFocus, Ae = _.onBlur, lt = _.onClick, st = _.onDragEnter, ct = _.onDragOver, Be = _.onDragLeave, pt = _.onDrop, ut = it(_, ha);
|
|
3255
|
+
return ee(ee(Mt({
|
|
3256
|
+
onKeyDown: rt(be(fe, ge)),
|
|
3257
|
+
onFocus: rt(be(ze, Fe)),
|
|
3258
|
+
onBlur: rt(be(Ae, Te)),
|
|
3259
|
+
onClick: $e(be(lt, Zt)),
|
|
3260
|
+
onDragEnter: qe(be(st, I)),
|
|
3261
|
+
onDragOver: qe(be(ct, $)),
|
|
3262
|
+
onDragLeave: qe(be(Be, L)),
|
|
3263
|
+
onDrop: qe(be(pt, ne)),
|
|
3264
3264
|
role: typeof ae == "string" && ae !== "" ? ae : "presentation"
|
|
3265
|
-
},
|
|
3265
|
+
}, ie, E), !i && !x ? {
|
|
3266
3266
|
tabIndex: 0
|
|
3267
3267
|
} : {}), ut);
|
|
3268
3268
|
};
|
|
3269
|
-
}, [
|
|
3270
|
-
|
|
3271
|
-
}, []),
|
|
3269
|
+
}, [E, ge, Fe, Te, Zt, I, $, L, ne, x, V, i]), wi = Q(function(_) {
|
|
3270
|
+
_.stopPropagation();
|
|
3271
|
+
}, []), yi = le(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var
|
|
3274
|
-
accept:
|
|
3273
|
+
var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = _.refKey, ie = T === void 0 ? "ref" : T, ae = _.onChange, fe = _.onClick, ze = it(_, wa), Ae = Mt({
|
|
3274
|
+
accept: pe,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
3277
3277
|
style: {
|
|
@@ -3286,61 +3286,61 @@ function ei() {
|
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
|
-
onChange: $e(
|
|
3290
|
-
onClick: $e(
|
|
3289
|
+
onChange: $e(be(ae, ne)),
|
|
3290
|
+
onClick: $e(be(fe, wi)),
|
|
3291
3291
|
tabIndex: -1
|
|
3292
|
-
},
|
|
3293
|
-
return
|
|
3292
|
+
}, ie, q);
|
|
3293
|
+
return ee(ee({}, Ae), ze);
|
|
3294
3294
|
};
|
|
3295
|
-
}, [
|
|
3296
|
-
return
|
|
3295
|
+
}, [q, t, l, ne, i]);
|
|
3296
|
+
return ee(ee({}, oe), {}, {
|
|
3297
3297
|
isFocused: w && !i,
|
|
3298
|
-
getRootProps:
|
|
3299
|
-
getInputProps:
|
|
3300
|
-
rootRef:
|
|
3301
|
-
inputRef:
|
|
3298
|
+
getRootProps: hi,
|
|
3299
|
+
getInputProps: yi,
|
|
3300
|
+
rootRef: E,
|
|
3301
|
+
inputRef: q,
|
|
3302
3302
|
open: $e(b)
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function Fa(e, n) {
|
|
3306
3306
|
switch (n.type) {
|
|
3307
3307
|
case "focus":
|
|
3308
|
-
return
|
|
3308
|
+
return ee(ee({}, e), {}, {
|
|
3309
3309
|
isFocused: !0
|
|
3310
3310
|
});
|
|
3311
3311
|
case "blur":
|
|
3312
|
-
return
|
|
3312
|
+
return ee(ee({}, e), {}, {
|
|
3313
3313
|
isFocused: !1
|
|
3314
3314
|
});
|
|
3315
3315
|
case "openDialog":
|
|
3316
|
-
return
|
|
3316
|
+
return ee(ee({}, Ot), {}, {
|
|
3317
3317
|
isFileDialogActive: !0
|
|
3318
3318
|
});
|
|
3319
3319
|
case "closeDialog":
|
|
3320
|
-
return
|
|
3320
|
+
return ee(ee({}, e), {}, {
|
|
3321
3321
|
isFileDialogActive: !1
|
|
3322
3322
|
});
|
|
3323
3323
|
case "setDraggedFiles":
|
|
3324
|
-
return
|
|
3324
|
+
return ee(ee({}, e), {}, {
|
|
3325
3325
|
isDragActive: n.isDragActive,
|
|
3326
3326
|
isDragAccept: n.isDragAccept,
|
|
3327
3327
|
isDragReject: n.isDragReject
|
|
3328
3328
|
});
|
|
3329
3329
|
case "setFiles":
|
|
3330
|
-
return
|
|
3330
|
+
return ee(ee({}, e), {}, {
|
|
3331
3331
|
acceptedFiles: n.acceptedFiles,
|
|
3332
3332
|
fileRejections: n.fileRejections,
|
|
3333
3333
|
isDragReject: n.isDragReject
|
|
3334
3334
|
});
|
|
3335
3335
|
case "reset":
|
|
3336
|
-
return
|
|
3336
|
+
return ee({}, Ot);
|
|
3337
3337
|
default:
|
|
3338
3338
|
return e;
|
|
3339
3339
|
}
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function kn() {
|
|
3342
3342
|
}
|
|
3343
|
-
const
|
|
3343
|
+
const Pa = () => {
|
|
3344
3344
|
const e = (l, s) => {
|
|
3345
3345
|
switch (s.type) {
|
|
3346
3346
|
case "add-files":
|
|
@@ -3369,7 +3369,7 @@ const Fa = () => {
|
|
|
3369
3369
|
)
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
|
-
}, [{ acceptedFiles: n, fileRejections: t }, i] =
|
|
3372
|
+
}, [{ acceptedFiles: n, fileRejections: t }, i] = An(
|
|
3373
3373
|
e,
|
|
3374
3374
|
{
|
|
3375
3375
|
acceptedFiles: [],
|
|
@@ -3383,7 +3383,7 @@ const Fa = () => {
|
|
|
3383
3383
|
[i]
|
|
3384
3384
|
);
|
|
3385
3385
|
return { acceptedFiles: n, fileRejections: t, onFileUpload: o, removeFile: (l) => i({ type: "remove-accepted", payload: l }), removeRejectedFile: (l) => i({ type: "remove-rejected", payload: l }) };
|
|
3386
|
-
},
|
|
3386
|
+
}, Ia = ({
|
|
3387
3387
|
accept: e,
|
|
3388
3388
|
error: n,
|
|
3389
3389
|
files: t,
|
|
@@ -3396,22 +3396,22 @@ const Fa = () => {
|
|
|
3396
3396
|
removeFile: c,
|
|
3397
3397
|
removeRejectedFile: d
|
|
3398
3398
|
}) => {
|
|
3399
|
-
const { getRootProps: f } =
|
|
3399
|
+
const { getRootProps: f } = ti({
|
|
3400
3400
|
accept: e,
|
|
3401
3401
|
maxFiles: a,
|
|
3402
3402
|
maxSize: r,
|
|
3403
3403
|
onDrop: l
|
|
3404
3404
|
}), g = et();
|
|
3405
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ B(
|
|
3406
3406
|
"div",
|
|
3407
3407
|
{
|
|
3408
|
-
className:
|
|
3408
|
+
className: G("p-form__group p-form-validation", {
|
|
3409
3409
|
"is-error": !!n
|
|
3410
3410
|
}),
|
|
3411
3411
|
children: [
|
|
3412
|
-
o && /* @__PURE__ */ p(
|
|
3412
|
+
o && /* @__PURE__ */ p(Di, { id: g, children: o }),
|
|
3413
3413
|
i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
|
|
3414
|
-
/* @__PURE__ */
|
|
3414
|
+
/* @__PURE__ */ B("div", { className: "p-form__control", children: [
|
|
3415
3415
|
!a || t.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ p(
|
|
3416
3416
|
"div",
|
|
3417
3417
|
{
|
|
@@ -3422,22 +3422,22 @@ const Fa = () => {
|
|
|
3422
3422
|
children: /* @__PURE__ */ p("button", { className: "file-upload__button", type: "button", children: "Drag and drop files here or click to upload" })
|
|
3423
3423
|
}
|
|
3424
3424
|
) }) : null,
|
|
3425
|
-
n ? /* @__PURE__ */
|
|
3425
|
+
n ? /* @__PURE__ */ B("p", { className: "p-form-validation__message", children: [
|
|
3426
3426
|
/* @__PURE__ */ p("strong", { children: "Error: " }),
|
|
3427
3427
|
n
|
|
3428
3428
|
] }) : null,
|
|
3429
|
-
/* @__PURE__ */
|
|
3430
|
-
s && s.map((u) => /* @__PURE__ */
|
|
3431
|
-
/* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
|
|
3430
|
+
s && s.map((u) => /* @__PURE__ */ B("span", { className: "is-error", children: [
|
|
3431
|
+
/* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
|
|
3432
3432
|
u.file.name,
|
|
3433
3433
|
/* @__PURE__ */ p(
|
|
3434
|
-
|
|
3434
|
+
Ce,
|
|
3435
3435
|
{
|
|
3436
3436
|
appearance: "base",
|
|
3437
3437
|
className: "file-upload__file-remove-button",
|
|
3438
3438
|
onClick: () => d(u),
|
|
3439
3439
|
type: "button",
|
|
3440
|
-
children: /* @__PURE__ */ p(
|
|
3440
|
+
children: /* @__PURE__ */ p(we, { name: "close", children: "Remove file" })
|
|
3441
3441
|
}
|
|
3442
3442
|
)
|
|
3443
3443
|
] }),
|
|
@@ -3450,16 +3450,16 @@ const Fa = () => {
|
|
|
3450
3450
|
`${u.file.name}-${m.code}`
|
|
3451
3451
|
))
|
|
3452
3452
|
] }, u.file.name)),
|
|
3453
|
-
t && t.map((u) => /* @__PURE__ */
|
|
3453
|
+
t && t.map((u) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
|
|
3454
3454
|
u.name,
|
|
3455
|
-
u.percentUploaded !== void 0 ? /* @__PURE__ */ p(
|
|
3456
|
-
|
|
3455
|
+
u.percentUploaded !== void 0 ? /* @__PURE__ */ p(qi, { percentComplete: u.percentUploaded }) : /* @__PURE__ */ p(
|
|
3456
|
+
Ce,
|
|
3457
3457
|
{
|
|
3458
3458
|
appearance: "base",
|
|
3459
3459
|
className: "file-upload__file-remove-button",
|
|
3460
3460
|
onClick: () => c(u),
|
|
3461
3461
|
type: "button",
|
|
3462
|
-
children: /* @__PURE__ */ p(
|
|
3462
|
+
children: /* @__PURE__ */ p(we, { name: "close", children: "Remove file" })
|
|
3463
3463
|
}
|
|
3464
3464
|
)
|
|
3465
3465
|
] }, u.name))
|
|
@@ -3468,7 +3468,7 @@ const Fa = () => {
|
|
|
3468
3468
|
]
|
|
3469
3469
|
}
|
|
3470
3470
|
);
|
|
3471
|
-
},
|
|
3471
|
+
}, Kr = ({
|
|
3472
3472
|
accept: e,
|
|
3473
3473
|
error: n,
|
|
3474
3474
|
help: t,
|
|
@@ -3482,9 +3482,9 @@ const Fa = () => {
|
|
|
3482
3482
|
onFileUpload: s,
|
|
3483
3483
|
removeFile: c,
|
|
3484
3484
|
removeRejectedFile: d
|
|
3485
|
-
} =
|
|
3485
|
+
} = Pa();
|
|
3486
3486
|
return /* @__PURE__ */ p(
|
|
3487
|
-
|
|
3487
|
+
Ia,
|
|
3488
3488
|
{
|
|
3489
3489
|
accept: e,
|
|
3490
3490
|
error: n,
|
|
@@ -3499,20 +3499,20 @@ const Fa = () => {
|
|
|
3499
3499
|
removeRejectedFile: d
|
|
3500
3500
|
}
|
|
3501
3501
|
);
|
|
3502
|
-
},
|
|
3502
|
+
}, ni = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), Da = (e) => (n, t) => {
|
|
3503
3503
|
if (e) {
|
|
3504
3504
|
const i = e.has(n.value), o = e.has(t.value);
|
|
3505
3505
|
if (i && !o) return -1;
|
|
3506
3506
|
if (!i && o) return 1;
|
|
3507
3507
|
}
|
|
3508
3508
|
return 0;
|
|
3509
|
-
},
|
|
3509
|
+
}, $a = (e) => {
|
|
3510
3510
|
const n = /* @__PURE__ */ new Map();
|
|
3511
3511
|
return e.forEach((t) => {
|
|
3512
3512
|
const i = t.group || "Ungrouped", o = n.get(i) || [];
|
|
3513
3513
|
o.push(t), n.set(i, o);
|
|
3514
3514
|
}), Array.from(n, ([t, i]) => ({ group: t, items: i }));
|
|
3515
|
-
},
|
|
3515
|
+
}, Aa = ({
|
|
3516
3516
|
items: e,
|
|
3517
3517
|
selectedItems: n,
|
|
3518
3518
|
disabledItems: t,
|
|
@@ -3520,8 +3520,8 @@ const Fa = () => {
|
|
|
3520
3520
|
updateItems: o,
|
|
3521
3521
|
isOpen: a,
|
|
3522
3522
|
footer: r,
|
|
3523
|
-
sortFn: l =
|
|
3524
|
-
groupFn: s =
|
|
3523
|
+
sortFn: l = ni,
|
|
3524
|
+
groupFn: s = $a,
|
|
3525
3525
|
...c
|
|
3526
3526
|
}) => {
|
|
3527
3527
|
const d = le(
|
|
@@ -3531,38 +3531,38 @@ const Fa = () => {
|
|
|
3531
3531
|
() => new Set(t.map((h) => h.value)),
|
|
3532
3532
|
[t]
|
|
3533
3533
|
), [g, u] = de(new Set(d));
|
|
3534
|
-
|
|
3534
|
+
Re(() => {
|
|
3535
3535
|
a && u(new Set(d));
|
|
3536
3536
|
}, [a]);
|
|
3537
3537
|
const m = le(() => e.some((h) => h.group), [e]), v = le(
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3539
3539
|
[e, s]
|
|
3540
|
-
),
|
|
3541
|
-
const { checked:
|
|
3542
|
-
if (
|
|
3543
|
-
const x =
|
|
3540
|
+
), P = (h) => {
|
|
3541
|
+
const { checked: z, value: F } = h.target, A = e.find((x) => `${x.value}` === F);
|
|
3542
|
+
if (A) {
|
|
3543
|
+
const x = z ? [...n, A] : n.filter((V) => `${V.value}` !== F) ?? [];
|
|
3544
3544
|
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */ p(
|
|
3547
|
+
return /* @__PURE__ */ p(Hn, { isVisible: a, className: "put-above", children: /* @__PURE__ */ B("div", { className: "multi-select__dropdown", role: "listbox", ...c, children: [
|
|
3548
3548
|
i || null,
|
|
3549
|
-
v.map(({ group: h, items:
|
|
3549
|
+
v.map(({ group: h, items: z }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
|
|
3550
3550
|
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3551
|
-
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children:
|
|
3552
|
-
|
|
3551
|
+
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: z.sort(l).sort(Da(g)).map((F) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3552
|
+
$i,
|
|
3553
3553
|
{
|
|
3554
|
-
disabled: f.has(
|
|
3555
|
-
label:
|
|
3556
|
-
checked: d.has(
|
|
3557
|
-
value:
|
|
3558
|
-
onChange:
|
|
3554
|
+
disabled: f.has(F.value),
|
|
3555
|
+
label: F.label,
|
|
3556
|
+
checked: d.has(F.value),
|
|
3557
|
+
value: F.value,
|
|
3558
|
+
onChange: P
|
|
3559
3559
|
},
|
|
3560
|
-
|
|
3561
|
-
) },
|
|
3560
|
+
F.value
|
|
3561
|
+
) }, F.value)) })
|
|
3562
3562
|
] }, h)),
|
|
3563
3563
|
r ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: r }) : null
|
|
3564
3564
|
] }) });
|
|
3565
|
-
},
|
|
3565
|
+
}, Wr = ({
|
|
3566
3566
|
disabled: e,
|
|
3567
3567
|
selectedItems: n = [],
|
|
3568
3568
|
label: t,
|
|
@@ -3575,36 +3575,36 @@ const Fa = () => {
|
|
|
3575
3575
|
dropdownFooter: c,
|
|
3576
3576
|
variant: d = "search"
|
|
3577
3577
|
}) => {
|
|
3578
|
-
const f =
|
|
3578
|
+
const f = Ai(() => {
|
|
3579
3579
|
u(!1), v("");
|
|
3580
3580
|
});
|
|
3581
|
-
|
|
3581
|
+
Mi(() => {
|
|
3582
3582
|
u(!1), v("");
|
|
3583
3583
|
});
|
|
3584
3584
|
const [g, u] = de(!1), [m, v] = de("");
|
|
3585
|
-
|
|
3585
|
+
Re(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
3588
|
-
const [
|
|
3589
|
-
const
|
|
3590
|
-
h(
|
|
3591
|
-
},
|
|
3592
|
-
(
|
|
3593
|
-
).sort(
|
|
3594
|
-
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */
|
|
3588
|
+
const [P, h] = de([]), z = n || P, F = (H) => {
|
|
3589
|
+
const J = Array.from(new Set(H));
|
|
3590
|
+
h(J), i && i(J);
|
|
3591
|
+
}, A = et(), x = et(), V = z.filter(
|
|
3592
|
+
(H) => r.some((J) => J.value === H.value)
|
|
3593
|
+
).sort(ni).map((H) => H.label).join(", ");
|
|
3594
|
+
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
|
|
3595
3595
|
d === "search" ? /* @__PURE__ */ p(
|
|
3596
|
-
|
|
3596
|
+
jn,
|
|
3597
3597
|
{
|
|
3598
3598
|
externallyControlled: !0,
|
|
3599
|
-
"aria-controls":
|
|
3599
|
+
"aria-controls": A,
|
|
3600
3600
|
"aria-expanded": g,
|
|
3601
3601
|
id: x,
|
|
3602
3602
|
role: "combobox",
|
|
3603
3603
|
"aria-label": t || o || "Search",
|
|
3604
3604
|
disabled: e,
|
|
3605
3605
|
autoComplete: "off",
|
|
3606
|
-
onChange: (
|
|
3607
|
-
v(
|
|
3606
|
+
onChange: (H) => {
|
|
3607
|
+
v(H), u(!0);
|
|
3608
3608
|
},
|
|
3609
3609
|
onFocus: () => u(!0),
|
|
3610
3610
|
placeholder: o ?? "Search",
|
|
@@ -3619,55 +3619,55 @@ const Fa = () => {
|
|
|
3619
3619
|
role: "combobox",
|
|
3620
3620
|
type: "button",
|
|
3621
3621
|
"aria-label": t || o || "Select items",
|
|
3622
|
-
"aria-controls":
|
|
3622
|
+
"aria-controls": A,
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
u((
|
|
3626
|
+
u((H) => !H);
|
|
3627
3627
|
},
|
|
3628
|
-
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children:
|
|
3628
|
+
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: z.length > 0 ? V : o ?? "Select items" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
3631
|
/* @__PURE__ */ p(
|
|
3632
|
-
|
|
3632
|
+
Aa,
|
|
3633
3633
|
{
|
|
3634
|
-
id:
|
|
3634
|
+
id: A,
|
|
3635
3635
|
isOpen: g,
|
|
3636
3636
|
items: m.length > 0 ? r.filter(
|
|
3637
|
-
(
|
|
3637
|
+
(H) => H.label.toLowerCase().includes(m.toLowerCase())
|
|
3638
3638
|
) : r,
|
|
3639
|
-
selectedItems:
|
|
3639
|
+
selectedItems: z,
|
|
3640
3640
|
disabledItems: l,
|
|
3641
3641
|
header: s,
|
|
3642
|
-
updateItems:
|
|
3643
|
-
footer: c || /* @__PURE__ */
|
|
3642
|
+
updateItems: F,
|
|
3643
|
+
footer: c || /* @__PURE__ */ B(ye, { children: [
|
|
3644
3644
|
/* @__PURE__ */ p(
|
|
3645
|
-
|
|
3645
|
+
Ce,
|
|
3646
3646
|
{
|
|
3647
3647
|
appearance: "link",
|
|
3648
3648
|
onClick: () => {
|
|
3649
|
-
const
|
|
3650
|
-
(
|
|
3651
|
-
(
|
|
3649
|
+
const H = r.filter(
|
|
3650
|
+
(J) => !l.some(
|
|
3651
|
+
(U) => U.value === J.value
|
|
3652
3652
|
)
|
|
3653
3653
|
);
|
|
3654
|
-
|
|
3654
|
+
F([...z, ...H]);
|
|
3655
3655
|
},
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
children: "Select all"
|
|
3658
3658
|
}
|
|
3659
3659
|
),
|
|
3660
3660
|
/* @__PURE__ */ p(
|
|
3661
|
-
|
|
3661
|
+
Ce,
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const
|
|
3666
|
-
(
|
|
3667
|
-
(
|
|
3665
|
+
const H = z.filter(
|
|
3666
|
+
(J) => l.some(
|
|
3667
|
+
(U) => U.value === J.value
|
|
3668
3668
|
)
|
|
3669
3669
|
);
|
|
3670
|
-
|
|
3670
|
+
F(H);
|
|
3671
3671
|
},
|
|
3672
3672
|
type: "button",
|
|
3673
3673
|
children: "Clear"
|
|
@@ -3677,56 +3677,56 @@ const Fa = () => {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
)
|
|
3679
3679
|
] }) });
|
|
3680
|
-
},
|
|
3680
|
+
}, Ma = {
|
|
3681
3681
|
// Mobile or tablet
|
|
3682
3682
|
small: 620
|
|
3683
|
-
},
|
|
3683
|
+
}, ii = $n({ variant: "regular" }), oi = ({
|
|
3684
3684
|
className: e,
|
|
3685
3685
|
children: n,
|
|
3686
3686
|
variant: t,
|
|
3687
3687
|
...i
|
|
3688
|
-
}) => /* @__PURE__ */ p(
|
|
3688
|
+
}) => /* @__PURE__ */ p(ii.Provider, { value: { variant: t }, children: /* @__PURE__ */ p(
|
|
3689
3689
|
"table",
|
|
3690
3690
|
{
|
|
3691
3691
|
...i,
|
|
3692
|
-
className:
|
|
3692
|
+
className: G("p-table-dynamic", e, {
|
|
3693
3693
|
"is-full-height": t === "full-height"
|
|
3694
3694
|
}),
|
|
3695
3695
|
children: n
|
|
3696
3696
|
}
|
|
3697
|
-
) }),
|
|
3697
|
+
) }), Oa = ({ columns: e }) => /* @__PURE__ */ p(ye, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
|
|
3698
3698
|
"td",
|
|
3699
3699
|
{
|
|
3700
|
-
className:
|
|
3701
|
-
children: /* @__PURE__ */ p(
|
|
3700
|
+
className: G(i.id, "u-text-overflow-clip"),
|
|
3701
|
+
children: /* @__PURE__ */ p(Gi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
3702
3702
|
},
|
|
3703
3703
|
o
|
|
3704
|
-
)) }, t)) }),
|
|
3704
|
+
)) }, t)) }), ja = ({
|
|
3705
3705
|
className: e,
|
|
3706
3706
|
table: n
|
|
3707
3707
|
}) => {
|
|
3708
3708
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3709
|
-
return /* @__PURE__ */
|
|
3709
|
+
return /* @__PURE__ */ B(ye, { children: [
|
|
3710
3710
|
/* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3711
|
-
/* @__PURE__ */ p(
|
|
3711
|
+
/* @__PURE__ */ p(ai, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(Oa, { columns: t }) })
|
|
3712
3712
|
] });
|
|
3713
|
-
},
|
|
3713
|
+
}, ai = ({
|
|
3714
3714
|
className: e,
|
|
3715
3715
|
children: n,
|
|
3716
3716
|
style: t,
|
|
3717
3717
|
...i
|
|
3718
3718
|
}) => {
|
|
3719
|
-
const { variant: o } = Ht(
|
|
3719
|
+
const { variant: o } = Ht(ii), a = Se(null), [r, l] = de(null), s = Q(() => {
|
|
3720
3720
|
var d, f;
|
|
3721
|
-
if (window.innerWidth >
|
|
3721
|
+
if (window.innerWidth > Ma.small) {
|
|
3722
3722
|
const g = (f = (d = a.current) == null ? void 0 : d.getBoundingClientRect) == null ? void 0 : f.call(d).top;
|
|
3723
3723
|
g && l(g + 1);
|
|
3724
3724
|
} else
|
|
3725
3725
|
l(null);
|
|
3726
3726
|
}, []);
|
|
3727
|
-
|
|
3727
|
+
On(() => {
|
|
3728
3728
|
s();
|
|
3729
|
-
}, [s]),
|
|
3729
|
+
}, [s]), Re(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
|
|
3730
3730
|
const c = le(() => o === "full-height" && r ? {
|
|
3731
3731
|
height: `calc(100vh - ${r}px)`,
|
|
3732
3732
|
minHeight: `calc(100vh - ${r}px)`,
|
|
@@ -3743,11 +3743,11 @@ const Fa = () => {
|
|
|
3743
3743
|
}
|
|
3744
3744
|
);
|
|
3745
3745
|
};
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
const
|
|
3749
|
-
|
|
3750
|
-
|
|
3746
|
+
oi.Body = ai;
|
|
3747
|
+
oi.Loading = ja;
|
|
3748
|
+
const ri = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), Ta = ({ 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 }) }) }), za = ({ children: e }) => /* @__PURE__ */ p("div", { className: "row", children: /* @__PURE__ */ p("div", { className: "u-align--left col-start-large-4 col-8 col-medium-4", children: /* @__PURE__ */ p("p", { children: e }) }) });
|
|
3749
|
+
ri.Title = Ta;
|
|
3750
|
+
ri.Description = za;
|
|
3751
3751
|
/**
|
|
3752
3752
|
* table-core
|
|
3753
3753
|
*
|
|
@@ -3758,24 +3758,24 @@ ai.Description = Ta;
|
|
|
3758
3758
|
*
|
|
3759
3759
|
* @license MIT
|
|
3760
3760
|
*/
|
|
3761
|
-
function
|
|
3761
|
+
function Ee(e, n) {
|
|
3762
3762
|
return typeof e == "function" ? e(n) : e;
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3764
|
+
function me(e, n) {
|
|
3765
3765
|
return (t) => {
|
|
3766
3766
|
n.setState((i) => ({
|
|
3767
3767
|
...i,
|
|
3768
|
-
[e]:
|
|
3768
|
+
[e]: Ee(t, i[e])
|
|
3769
3769
|
}));
|
|
3770
3770
|
};
|
|
3771
3771
|
}
|
|
3772
3772
|
function at(e) {
|
|
3773
3773
|
return e instanceof Function;
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function Va(e) {
|
|
3776
3776
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
3777
3777
|
}
|
|
3778
|
-
function
|
|
3778
|
+
function li(e, n) {
|
|
3779
3779
|
const t = [], i = (o) => {
|
|
3780
3780
|
o.forEach((a) => {
|
|
3781
3781
|
t.push(a);
|
|
@@ -3785,7 +3785,7 @@ function ri(e, n) {
|
|
|
3785
3785
|
};
|
|
3786
3786
|
return i(e), t;
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3788
|
+
function O(e, n, t) {
|
|
3789
3789
|
let i = [], o;
|
|
3790
3790
|
return (a) => {
|
|
3791
3791
|
let r;
|
|
@@ -3809,7 +3809,7 @@ function $(e, n, t) {
|
|
|
3809
3809
|
return o;
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
function
|
|
3812
|
+
function j(e, n, t, i) {
|
|
3813
3813
|
return {
|
|
3814
3814
|
debug: () => {
|
|
3815
3815
|
var o;
|
|
@@ -3819,7 +3819,7 @@ function A(e, n, t, i) {
|
|
|
3819
3819
|
onChange: i
|
|
3820
3820
|
};
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3822
|
+
function Na(e, n, t, i) {
|
|
3823
3823
|
const o = () => {
|
|
3824
3824
|
var r;
|
|
3825
3825
|
return (r = a.getValue()) != null ? r : e.options.renderFallbackValue;
|
|
@@ -3829,20 +3829,20 @@ function Va(e, n, t, i) {
|
|
|
3829
3829
|
column: t,
|
|
3830
3830
|
getValue: () => n.getValue(i),
|
|
3831
3831
|
renderValue: o,
|
|
3832
|
-
getContext:
|
|
3832
|
+
getContext: O(() => [e, t, n, a], (r, l, s, c) => ({
|
|
3833
3833
|
table: r,
|
|
3834
3834
|
column: l,
|
|
3835
3835
|
row: s,
|
|
3836
3836
|
cell: c,
|
|
3837
3837
|
getValue: c.getValue,
|
|
3838
3838
|
renderValue: c.renderValue
|
|
3839
|
-
}),
|
|
3839
|
+
}), j(e.options, "debugCells", "cell.getContext"))
|
|
3840
3840
|
};
|
|
3841
3841
|
return e._features.forEach((r) => {
|
|
3842
3842
|
r.createCell == null || r.createCell(a, t, n, e);
|
|
3843
3843
|
}, {}), a;
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3845
|
+
function La(e, n, t, i) {
|
|
3846
3846
|
var o, a;
|
|
3847
3847
|
const l = {
|
|
3848
3848
|
...e._getDefaultColumnDef(),
|
|
@@ -3865,25 +3865,25 @@ function Na(e, n, t, i) {
|
|
|
3865
3865
|
depth: t,
|
|
3866
3866
|
columnDef: l,
|
|
3867
3867
|
columns: [],
|
|
3868
|
-
getFlatColumns:
|
|
3868
|
+
getFlatColumns: O(() => [!0], () => {
|
|
3869
3869
|
var g;
|
|
3870
3870
|
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((u) => u.getFlatColumns())];
|
|
3871
|
-
},
|
|
3872
|
-
getLeafColumns:
|
|
3871
|
+
}, j(e.options, "debugColumns", "column.getFlatColumns")),
|
|
3872
|
+
getLeafColumns: O(() => [e._getOrderColumnsFn()], (g) => {
|
|
3873
3873
|
var u;
|
|
3874
3874
|
if ((u = f.columns) != null && u.length) {
|
|
3875
3875
|
let m = f.columns.flatMap((v) => v.getLeafColumns());
|
|
3876
3876
|
return g(m);
|
|
3877
3877
|
}
|
|
3878
3878
|
return [f];
|
|
3879
|
-
},
|
|
3879
|
+
}, j(e.options, "debugColumns", "column.getLeafColumns"))
|
|
3880
3880
|
};
|
|
3881
3881
|
for (const g of e._features)
|
|
3882
3882
|
g.createColumn == null || g.createColumn(f, e);
|
|
3883
3883
|
return f;
|
|
3884
3884
|
}
|
|
3885
|
-
const
|
|
3886
|
-
function
|
|
3885
|
+
const ce = "debugHeaders";
|
|
3886
|
+
function Fn(e, n, t) {
|
|
3887
3887
|
var i;
|
|
3888
3888
|
let a = {
|
|
3889
3889
|
id: (i = t.id) != null ? i : n.id,
|
|
@@ -3912,33 +3912,33 @@ function En(e, n, t) {
|
|
|
3912
3912
|
r.createHeader == null || r.createHeader(a, e);
|
|
3913
3913
|
}), a;
|
|
3914
3914
|
}
|
|
3915
|
-
const
|
|
3915
|
+
const Ha = {
|
|
3916
3916
|
createTable: (e) => {
|
|
3917
|
-
e.getHeaderGroups =
|
|
3917
|
+
e.getHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => {
|
|
3918
3918
|
var a, r;
|
|
3919
3919
|
const l = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
|
|
3920
3920
|
return Xe(n, [...l, ...c, ...s], e);
|
|
3921
|
-
},
|
|
3921
|
+
}, j(e.options, ce, "getHeaderGroups")), e.getCenterHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Xe(n, t, e, "center")), j(e.options, ce, "getCenterHeaderGroups")), e.getLeftHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
|
|
3922
3922
|
var o;
|
|
3923
3923
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3924
3924
|
return Xe(n, a, e, "left");
|
|
3925
|
-
},
|
|
3925
|
+
}, j(e.options, ce, "getLeftHeaderGroups")), e.getRightHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
|
|
3926
3926
|
var o;
|
|
3927
3927
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3928
3928
|
return Xe(n, a, e, "right");
|
|
3929
|
-
},
|
|
3929
|
+
}, j(e.options, ce, "getRightHeaderGroups")), e.getFooterGroups = O(() => [e.getHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getFooterGroups")), e.getLeftFooterGroups = O(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getLeftFooterGroups")), e.getCenterFooterGroups = O(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getCenterFooterGroups")), e.getRightFooterGroups = O(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), j(e.options, ce, "getRightFooterGroups")), e.getFlatHeaders = O(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getFlatHeaders")), e.getLeftFlatHeaders = O(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getLeftFlatHeaders")), e.getCenterFlatHeaders = O(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getCenterFlatHeaders")), e.getRightFlatHeaders = O(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, ce, "getRightFlatHeaders")), e.getCenterLeafHeaders = O(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
3930
3930
|
var i;
|
|
3931
3931
|
return !((i = t.subHeaders) != null && i.length);
|
|
3932
|
-
}),
|
|
3932
|
+
}), j(e.options, ce, "getCenterLeafHeaders")), e.getLeftLeafHeaders = O(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
3933
3933
|
var i;
|
|
3934
3934
|
return !((i = t.subHeaders) != null && i.length);
|
|
3935
|
-
}),
|
|
3935
|
+
}), j(e.options, ce, "getLeftLeafHeaders")), e.getRightLeafHeaders = O(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
3936
3936
|
var i;
|
|
3937
3937
|
return !((i = t.subHeaders) != null && i.length);
|
|
3938
|
-
}),
|
|
3938
|
+
}), j(e.options, ce, "getRightLeafHeaders")), e.getLeafHeaders = O(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
|
|
3939
3939
|
var o, a, r, l, s, c;
|
|
3940
3940
|
return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(r = (l = t[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
|
|
3941
|
-
},
|
|
3941
|
+
}, j(e.options, ce, "getLeafHeaders"));
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
3944
3944
|
function Xe(e, n, t, i) {
|
|
@@ -3958,46 +3958,46 @@ function Xe(e, n, t, i) {
|
|
|
3958
3958
|
id: [i, `${u}`].filter(Boolean).join("_"),
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
|
-
g.forEach((
|
|
3962
|
-
const h = [...v].reverse()[0],
|
|
3963
|
-
let
|
|
3964
|
-
if (
|
|
3965
|
-
h.subHeaders.push(
|
|
3961
|
+
g.forEach((P) => {
|
|
3962
|
+
const h = [...v].reverse()[0], z = P.column.depth === m.depth;
|
|
3963
|
+
let F, A = !1;
|
|
3964
|
+
if (z && P.column.parent ? F = P.column.parent : (F = P.column, A = !0), h && (h == null ? void 0 : h.column) === F)
|
|
3965
|
+
h.subHeaders.push(P);
|
|
3966
3966
|
else {
|
|
3967
|
-
const x =
|
|
3968
|
-
id: [i, u,
|
|
3969
|
-
isPlaceholder:
|
|
3970
|
-
placeholderId:
|
|
3967
|
+
const x = Fn(t, F, {
|
|
3968
|
+
id: [i, u, F.id, P == null ? void 0 : P.id].filter(Boolean).join("_"),
|
|
3969
|
+
isPlaceholder: A,
|
|
3970
|
+
placeholderId: A ? `${v.filter((V) => V.column === F).length}` : void 0,
|
|
3971
3971
|
depth: u,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
3974
|
-
x.subHeaders.push(
|
|
3974
|
+
x.subHeaders.push(P), v.push(x);
|
|
3975
3975
|
}
|
|
3976
|
-
m.headers.push(
|
|
3976
|
+
m.headers.push(P), P.headerGroup = m;
|
|
3977
3977
|
}), s.push(m), u > 0 && c(v, u - 1);
|
|
3978
|
-
}, d = n.map((g, u) =>
|
|
3978
|
+
}, d = n.map((g, u) => Fn(t, g, {
|
|
3979
3979
|
depth: r,
|
|
3980
3980
|
index: u
|
|
3981
3981
|
}));
|
|
3982
3982
|
c(d, r - 1), s.reverse();
|
|
3983
3983
|
const f = (g) => g.filter((m) => m.column.getIsVisible()).map((m) => {
|
|
3984
|
-
let v = 0,
|
|
3985
|
-
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((
|
|
3984
|
+
let v = 0, P = 0, h = [0];
|
|
3985
|
+
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((F) => {
|
|
3986
3986
|
let {
|
|
3987
|
-
colSpan:
|
|
3987
|
+
colSpan: A,
|
|
3988
3988
|
rowSpan: x
|
|
3989
|
-
} =
|
|
3990
|
-
v +=
|
|
3989
|
+
} = F;
|
|
3990
|
+
v += A, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return
|
|
3992
|
+
const z = Math.min(...h);
|
|
3993
|
+
return P = P + z, m.colSpan = v, m.rowSpan = P, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
|
-
rowSpan:
|
|
3995
|
+
rowSpan: P
|
|
3996
3996
|
};
|
|
3997
3997
|
});
|
|
3998
3998
|
return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
|
|
3999
3999
|
}
|
|
4000
|
-
const
|
|
4000
|
+
const si = (e, n, t, i, o, a, r) => {
|
|
4001
4001
|
let l = {
|
|
4002
4002
|
id: n,
|
|
4003
4003
|
index: i,
|
|
@@ -4025,7 +4025,7 @@ const li = (e, n, t, i, o, a, r) => {
|
|
|
4025
4025
|
return (c = l.getValue(s)) != null ? c : e.options.renderFallbackValue;
|
|
4026
4026
|
},
|
|
4027
4027
|
subRows: a ?? [],
|
|
4028
|
-
getLeafRows: () =>
|
|
4028
|
+
getLeafRows: () => li(l.subRows, (s) => s.subRows),
|
|
4029
4029
|
getParentRow: () => l.parentId ? e.getRow(l.parentId, !0) : void 0,
|
|
4030
4030
|
getParentRows: () => {
|
|
4031
4031
|
let s = [], c = l;
|
|
@@ -4036,62 +4036,62 @@ const li = (e, n, t, i, o, a, r) => {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
return s.reverse();
|
|
4038
4038
|
},
|
|
4039
|
-
getAllCells:
|
|
4040
|
-
_getAllCellsByColumnId:
|
|
4039
|
+
getAllCells: O(() => [e.getAllLeafColumns()], (s) => s.map((c) => Na(e, l, c, c.id)), j(e.options, "debugRows", "getAllCells")),
|
|
4040
|
+
_getAllCellsByColumnId: O(() => [l.getAllCells()], (s) => s.reduce((c, d) => (c[d.column.id] = d, c), {}), j(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
4041
4041
|
};
|
|
4042
4042
|
for (let s = 0; s < e._features.length; s++) {
|
|
4043
4043
|
const c = e._features[s];
|
|
4044
4044
|
c == null || c.createRow == null || c.createRow(l, e);
|
|
4045
4045
|
}
|
|
4046
4046
|
return l;
|
|
4047
|
-
},
|
|
4047
|
+
}, qa = {
|
|
4048
4048
|
createColumn: (e, n) => {
|
|
4049
4049
|
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 = () => {
|
|
4050
4050
|
if (e._getFacetedMinMaxValues)
|
|
4051
4051
|
return e._getFacetedMinMaxValues();
|
|
4052
4052
|
};
|
|
4053
4053
|
}
|
|
4054
|
-
},
|
|
4054
|
+
}, ci = (e, n, t) => {
|
|
4055
4055
|
var i, o;
|
|
4056
4056
|
const a = t == null || (i = t.toString()) == null ? void 0 : i.toLowerCase();
|
|
4057
4057
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
4058
4058
|
};
|
|
4059
|
-
si.autoRemove = (e) => he(e);
|
|
4060
|
-
const ci = (e, n, t) => {
|
|
4061
|
-
var i;
|
|
4062
|
-
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
|
|
4063
|
-
};
|
|
4064
4059
|
ci.autoRemove = (e) => he(e);
|
|
4065
4060
|
const pi = (e, n, t) => {
|
|
4066
4061
|
var i;
|
|
4067
|
-
return ((i = e.getValue(n)) == null || (i = i.toString()) == null
|
|
4062
|
+
return !!(!((i = e.getValue(n)) == null || (i = i.toString()) == null) && i.includes(t));
|
|
4068
4063
|
};
|
|
4069
4064
|
pi.autoRemove = (e) => he(e);
|
|
4070
4065
|
const ui = (e, n, t) => {
|
|
4071
4066
|
var i;
|
|
4072
|
-
return (i = e.getValue(n)) == null ? void 0 : i.
|
|
4067
|
+
return ((i = e.getValue(n)) == null || (i = i.toString()) == null ? void 0 : i.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
4073
4068
|
};
|
|
4074
4069
|
ui.autoRemove = (e) => he(e);
|
|
4075
|
-
const di = (e, n, t) =>
|
|
4070
|
+
const di = (e, n, t) => {
|
|
4071
|
+
var i;
|
|
4072
|
+
return (i = e.getValue(n)) == null ? void 0 : i.includes(t);
|
|
4073
|
+
};
|
|
4074
|
+
di.autoRemove = (e) => he(e);
|
|
4075
|
+
const gi = (e, n, t) => !t.some((i) => {
|
|
4076
4076
|
var o;
|
|
4077
4077
|
return !((o = e.getValue(n)) != null && o.includes(i));
|
|
4078
4078
|
});
|
|
4079
|
-
|
|
4080
|
-
const
|
|
4079
|
+
gi.autoRemove = (e) => he(e) || !(e != null && e.length);
|
|
4080
|
+
const fi = (e, n, t) => t.some((i) => {
|
|
4081
4081
|
var o;
|
|
4082
4082
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(i);
|
|
4083
4083
|
});
|
|
4084
|
-
|
|
4085
|
-
const
|
|
4086
|
-
fi.autoRemove = (e) => he(e);
|
|
4087
|
-
const mi = (e, n, t) => e.getValue(n) == t;
|
|
4084
|
+
fi.autoRemove = (e) => he(e) || !(e != null && e.length);
|
|
4085
|
+
const mi = (e, n, t) => e.getValue(n) === t;
|
|
4088
4086
|
mi.autoRemove = (e) => he(e);
|
|
4089
|
-
const
|
|
4087
|
+
const vi = (e, n, t) => e.getValue(n) == t;
|
|
4088
|
+
vi.autoRemove = (e) => he(e);
|
|
4089
|
+
const Xt = (e, n, t) => {
|
|
4090
4090
|
let [i, o] = t;
|
|
4091
4091
|
const a = e.getValue(n);
|
|
4092
4092
|
return a >= i && a <= o;
|
|
4093
4093
|
};
|
|
4094
|
-
|
|
4094
|
+
Xt.resolveFilterValue = (e) => {
|
|
4095
4095
|
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, r = t === null || Number.isNaN(o) ? 1 / 0 : o;
|
|
4096
4096
|
if (a > r) {
|
|
4097
4097
|
const l = a;
|
|
@@ -4099,22 +4099,22 @@ Yt.resolveFilterValue = (e) => {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
return [a, r];
|
|
4101
4101
|
};
|
|
4102
|
-
|
|
4102
|
+
Xt.autoRemove = (e) => he(e) || he(e[0]) && he(e[1]);
|
|
4103
4103
|
const _e = {
|
|
4104
|
-
includesString:
|
|
4105
|
-
includesStringSensitive:
|
|
4106
|
-
equalsString:
|
|
4107
|
-
arrIncludes:
|
|
4108
|
-
arrIncludesAll:
|
|
4109
|
-
arrIncludesSome:
|
|
4110
|
-
equals:
|
|
4111
|
-
weakEquals:
|
|
4112
|
-
inNumberRange:
|
|
4104
|
+
includesString: ci,
|
|
4105
|
+
includesStringSensitive: pi,
|
|
4106
|
+
equalsString: ui,
|
|
4107
|
+
arrIncludes: di,
|
|
4108
|
+
arrIncludesAll: gi,
|
|
4109
|
+
arrIncludesSome: fi,
|
|
4110
|
+
equals: mi,
|
|
4111
|
+
weakEquals: vi,
|
|
4112
|
+
inNumberRange: Xt
|
|
4113
4113
|
};
|
|
4114
4114
|
function he(e) {
|
|
4115
4115
|
return e == null || e === "";
|
|
4116
4116
|
}
|
|
4117
|
-
const
|
|
4117
|
+
const Ga = {
|
|
4118
4118
|
getDefaultColumnDef: () => ({
|
|
4119
4119
|
filterFn: "auto"
|
|
4120
4120
|
}),
|
|
@@ -4123,7 +4123,7 @@ const qa = {
|
|
|
4123
4123
|
...e
|
|
4124
4124
|
}),
|
|
4125
4125
|
getDefaultOptions: (e) => ({
|
|
4126
|
-
onColumnFiltersChange:
|
|
4126
|
+
onColumnFiltersChange: me("columnFilters", e),
|
|
4127
4127
|
filterFromLeafRows: !1,
|
|
4128
4128
|
maxLeafRowFilterDepth: 100
|
|
4129
4129
|
}),
|
|
@@ -4148,8 +4148,8 @@ const qa = {
|
|
|
4148
4148
|
return (t = (i = n.getState().columnFilters) == null ? void 0 : i.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
4149
4149
|
}, e.setFilterValue = (t) => {
|
|
4150
4150
|
n.setColumnFilters((i) => {
|
|
4151
|
-
const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), r =
|
|
4152
|
-
if (
|
|
4151
|
+
const o = e.getFilterFn(), a = i == null ? void 0 : i.find((d) => d.id === e.id), r = Ee(t, a ? a.value : void 0);
|
|
4152
|
+
if (Pn(o, r, e)) {
|
|
4153
4153
|
var l;
|
|
4154
4154
|
return (l = i == null ? void 0 : i.filter((d) => d.id !== e.id)) != null ? l : [];
|
|
4155
4155
|
}
|
|
@@ -4172,11 +4172,11 @@ const qa = {
|
|
|
4172
4172
|
e.setColumnFilters = (n) => {
|
|
4173
4173
|
const t = e.getAllLeafColumns(), i = (o) => {
|
|
4174
4174
|
var a;
|
|
4175
|
-
return (a =
|
|
4175
|
+
return (a = Ee(n, o)) == null ? void 0 : a.filter((r) => {
|
|
4176
4176
|
const l = t.find((s) => s.id === r.id);
|
|
4177
4177
|
if (l) {
|
|
4178
4178
|
const s = l.getFilterFn();
|
|
4179
|
-
if (
|
|
4179
|
+
if (Pn(s, r.value, l))
|
|
4180
4180
|
return !1;
|
|
4181
4181
|
}
|
|
4182
4182
|
return !0;
|
|
@@ -4189,57 +4189,57 @@ const qa = {
|
|
|
4189
4189
|
}, 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());
|
|
4190
4190
|
}
|
|
4191
4191
|
};
|
|
4192
|
-
function
|
|
4192
|
+
function Pn(e, n, t) {
|
|
4193
4193
|
return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
|
|
4194
4194
|
}
|
|
4195
|
-
const
|
|
4195
|
+
const Ba = (e, n, t) => t.reduce((i, o) => {
|
|
4196
4196
|
const a = o.getValue(e);
|
|
4197
4197
|
return i + (typeof a == "number" ? a : 0);
|
|
4198
|
-
}, 0),
|
|
4198
|
+
}, 0), Ua = (e, n, t) => {
|
|
4199
4199
|
let i;
|
|
4200
4200
|
return t.forEach((o) => {
|
|
4201
4201
|
const a = o.getValue(e);
|
|
4202
4202
|
a != null && (i > a || i === void 0 && a >= a) && (i = a);
|
|
4203
4203
|
}), i;
|
|
4204
|
-
},
|
|
4204
|
+
}, Ka = (e, n, t) => {
|
|
4205
4205
|
let i;
|
|
4206
4206
|
return t.forEach((o) => {
|
|
4207
4207
|
const a = o.getValue(e);
|
|
4208
4208
|
a != null && (i < a || i === void 0 && a >= a) && (i = a);
|
|
4209
4209
|
}), i;
|
|
4210
|
-
},
|
|
4210
|
+
}, Wa = (e, n, t) => {
|
|
4211
4211
|
let i, o;
|
|
4212
4212
|
return t.forEach((a) => {
|
|
4213
4213
|
const r = a.getValue(e);
|
|
4214
4214
|
r != null && (i === void 0 ? r >= r && (i = o = r) : (i > r && (i = r), o < r && (o = r)));
|
|
4215
4215
|
}), [i, o];
|
|
4216
|
-
},
|
|
4216
|
+
}, Ya = (e, n) => {
|
|
4217
4217
|
let t = 0, i = 0;
|
|
4218
4218
|
if (n.forEach((o) => {
|
|
4219
4219
|
let a = o.getValue(e);
|
|
4220
4220
|
a != null && (a = +a) >= a && (++t, i += a);
|
|
4221
4221
|
}), t) return i / t;
|
|
4222
|
-
},
|
|
4222
|
+
}, Xa = (e, n) => {
|
|
4223
4223
|
if (!n.length)
|
|
4224
4224
|
return;
|
|
4225
4225
|
const t = n.map((a) => a.getValue(e));
|
|
4226
|
-
if (!
|
|
4226
|
+
if (!Va(t))
|
|
4227
4227
|
return;
|
|
4228
4228
|
if (t.length === 1)
|
|
4229
4229
|
return t[0];
|
|
4230
4230
|
const i = Math.floor(t.length / 2), o = t.sort((a, r) => a - r);
|
|
4231
4231
|
return t.length % 2 !== 0 ? o[i] : (o[i - 1] + o[i]) / 2;
|
|
4232
|
-
},
|
|
4233
|
-
sum:
|
|
4234
|
-
min:
|
|
4235
|
-
max:
|
|
4236
|
-
extent:
|
|
4237
|
-
mean:
|
|
4238
|
-
median:
|
|
4239
|
-
unique:
|
|
4240
|
-
uniqueCount:
|
|
4241
|
-
count:
|
|
4242
|
-
},
|
|
4232
|
+
}, Qa = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), Ja = (e, n) => new Set(n.map((t) => t.getValue(e))).size, Za = (e, n) => n.length, Ct = {
|
|
4233
|
+
sum: Ba,
|
|
4234
|
+
min: Ua,
|
|
4235
|
+
max: Ka,
|
|
4236
|
+
extent: Wa,
|
|
4237
|
+
mean: Ya,
|
|
4238
|
+
median: Xa,
|
|
4239
|
+
unique: Qa,
|
|
4240
|
+
uniqueCount: Ja,
|
|
4241
|
+
count: Za
|
|
4242
|
+
}, er = {
|
|
4243
4243
|
getDefaultColumnDef: () => ({
|
|
4244
4244
|
aggregatedCell: (e) => {
|
|
4245
4245
|
var n, t;
|
|
@@ -4252,7 +4252,7 @@ const Ga = (e, n, t) => t.reduce((i, o) => {
|
|
|
4252
4252
|
...e
|
|
4253
4253
|
}),
|
|
4254
4254
|
getDefaultOptions: (e) => ({
|
|
4255
|
-
onGroupingChange:
|
|
4255
|
+
onGroupingChange: me("grouping", e),
|
|
4256
4256
|
groupedColumnMode: "reorder"
|
|
4257
4257
|
}),
|
|
4258
4258
|
createColumn: (e, n) => {
|
|
@@ -4306,22 +4306,22 @@ const Ga = (e, n, t) => t.reduce((i, o) => {
|
|
|
4306
4306
|
};
|
|
4307
4307
|
}
|
|
4308
4308
|
};
|
|
4309
|
-
function
|
|
4309
|
+
function tr(e, n, t) {
|
|
4310
4310
|
if (!(n != null && n.length) || !t)
|
|
4311
4311
|
return e;
|
|
4312
4312
|
const i = e.filter((a) => !n.includes(a.id));
|
|
4313
4313
|
return t === "remove" ? i : [...n.map((a) => e.find((r) => r.id === a)).filter(Boolean), ...i];
|
|
4314
4314
|
}
|
|
4315
|
-
const
|
|
4315
|
+
const nr = {
|
|
4316
4316
|
getInitialState: (e) => ({
|
|
4317
4317
|
columnOrder: [],
|
|
4318
4318
|
...e
|
|
4319
4319
|
}),
|
|
4320
4320
|
getDefaultOptions: (e) => ({
|
|
4321
|
-
onColumnOrderChange:
|
|
4321
|
+
onColumnOrderChange: me("columnOrder", e)
|
|
4322
4322
|
}),
|
|
4323
4323
|
createColumn: (e, n) => {
|
|
4324
|
-
e.getIndex =
|
|
4324
|
+
e.getIndex = O((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), j(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
4325
4325
|
var i;
|
|
4326
4326
|
return ((i = Ne(n, t)[0]) == null ? void 0 : i.id) === e.id;
|
|
4327
4327
|
}, e.getIsLastColumn = (t) => {
|
|
@@ -4334,7 +4334,7 @@ const tr = {
|
|
|
4334
4334
|
e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
|
|
4335
4335
|
var t;
|
|
4336
4336
|
e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
|
|
4337
|
-
}, e._getOrderColumnsFn =
|
|
4337
|
+
}, e._getOrderColumnsFn = O(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, i) => (o) => {
|
|
4338
4338
|
let a = [];
|
|
4339
4339
|
if (!(n != null && n.length))
|
|
4340
4340
|
a = o;
|
|
@@ -4346,19 +4346,19 @@ const tr = {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
a = [...a, ...l];
|
|
4348
4348
|
}
|
|
4349
|
-
return
|
|
4350
|
-
},
|
|
4349
|
+
return tr(a, t, i);
|
|
4350
|
+
}, j(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4351
4351
|
}
|
|
4352
4352
|
}, _t = () => ({
|
|
4353
4353
|
left: [],
|
|
4354
4354
|
right: []
|
|
4355
|
-
}),
|
|
4355
|
+
}), ir = {
|
|
4356
4356
|
getInitialState: (e) => ({
|
|
4357
4357
|
columnPinning: _t(),
|
|
4358
4358
|
...e
|
|
4359
4359
|
}),
|
|
4360
4360
|
getDefaultOptions: (e) => ({
|
|
4361
|
-
onColumnPinningChange:
|
|
4361
|
+
onColumnPinningChange: me("columnPinning", e)
|
|
4362
4362
|
}),
|
|
4363
4363
|
createColumn: (e, n) => {
|
|
4364
4364
|
e.pin = (t) => {
|
|
@@ -4400,16 +4400,16 @@ const tr = {
|
|
|
4400
4400
|
};
|
|
4401
4401
|
},
|
|
4402
4402
|
createRow: (e, n) => {
|
|
4403
|
-
e.getCenterVisibleCells =
|
|
4403
|
+
e.getCenterVisibleCells = O(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, i, o) => {
|
|
4404
4404
|
const a = [...i ?? [], ...o ?? []];
|
|
4405
4405
|
return t.filter((r) => !a.includes(r.column.id));
|
|
4406
|
-
},
|
|
4406
|
+
}, j(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = O(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
|
|
4407
4407
|
...a,
|
|
4408
4408
|
position: "left"
|
|
4409
|
-
})),
|
|
4409
|
+
})), j(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = O(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, i) => (i ?? []).map((a) => t.find((r) => r.column.id === a)).filter(Boolean).map((a) => ({
|
|
4410
4410
|
...a,
|
|
4411
4411
|
position: "right"
|
|
4412
|
-
})),
|
|
4412
|
+
})), j(n.options, "debugRows", "getRightVisibleCells"));
|
|
4413
4413
|
},
|
|
4414
4414
|
createTable: (e) => {
|
|
4415
4415
|
e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
|
|
@@ -4423,10 +4423,10 @@ const tr = {
|
|
|
4423
4423
|
return !!((o = i.left) != null && o.length || (a = i.right) != null && a.length);
|
|
4424
4424
|
}
|
|
4425
4425
|
return !!((t = i[n]) != null && t.length);
|
|
4426
|
-
}, e.getLeftLeafColumns =
|
|
4426
|
+
}, e.getLeftLeafColumns = O(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), j(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = O(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((i) => n.find((o) => o.id === i)).filter(Boolean), j(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = O(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i) => {
|
|
4427
4427
|
const o = [...t ?? [], ...i ?? []];
|
|
4428
4428
|
return n.filter((a) => !o.includes(a.id));
|
|
4429
|
-
},
|
|
4429
|
+
}, j(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4430
4430
|
}
|
|
4431
4431
|
}, Qe = {
|
|
4432
4432
|
size: 150,
|
|
@@ -4439,7 +4439,7 @@ const tr = {
|
|
|
4439
4439
|
deltaPercentage: null,
|
|
4440
4440
|
isResizingColumn: !1,
|
|
4441
4441
|
columnSizingStart: []
|
|
4442
|
-
}),
|
|
4442
|
+
}), or = {
|
|
4443
4443
|
getDefaultColumnDef: () => Qe,
|
|
4444
4444
|
getInitialState: (e) => ({
|
|
4445
4445
|
columnSizing: {},
|
|
@@ -4449,15 +4449,15 @@ const tr = {
|
|
|
4449
4449
|
getDefaultOptions: (e) => ({
|
|
4450
4450
|
columnResizeMode: "onEnd",
|
|
4451
4451
|
columnResizeDirection: "ltr",
|
|
4452
|
-
onColumnSizingChange:
|
|
4453
|
-
onColumnSizingInfoChange:
|
|
4452
|
+
onColumnSizingChange: me("columnSizing", e),
|
|
4453
|
+
onColumnSizingInfoChange: me("columnSizingInfo", e)
|
|
4454
4454
|
}),
|
|
4455
4455
|
createColumn: (e, n) => {
|
|
4456
4456
|
e.getSize = () => {
|
|
4457
4457
|
var t, i, o;
|
|
4458
4458
|
const a = n.getState().columnSizing[e.id];
|
|
4459
4459
|
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Qe.minSize, (i = a ?? e.columnDef.size) != null ? i : Qe.size), (o = e.columnDef.maxSize) != null ? o : Qe.maxSize);
|
|
4460
|
-
}, e.getStart =
|
|
4460
|
+
}, e.getStart = O((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(0, e.getIndex(t)).reduce((o, a) => o + a.getSize(), 0), j(n.options, "debugColumns", "getStart")), e.getAfter = O((t) => [t, Ne(n, t), n.getState().columnSizing], (t, i) => i.slice(e.getIndex(t) + 1).reduce((o, a) => o + a.getSize(), 0), j(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4461
4461
|
n.setColumnSizing((t) => {
|
|
4462
4462
|
let {
|
|
4463
4463
|
[e.id]: i,
|
|
@@ -4493,25 +4493,25 @@ const tr = {
|
|
|
4493
4493
|
return (a) => {
|
|
4494
4494
|
if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
|
|
4495
4495
|
return;
|
|
4496
|
-
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h,
|
|
4497
|
-
typeof
|
|
4498
|
-
var
|
|
4499
|
-
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
4500
|
-
return
|
|
4501
|
-
let [
|
|
4502
|
-
c[
|
|
4496
|
+
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, z) => {
|
|
4497
|
+
typeof z == "number" && (n.setColumnSizingInfo((F) => {
|
|
4498
|
+
var A, x;
|
|
4499
|
+
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (z - ((A = F == null ? void 0 : F.startOffset) != null ? A : 0)) * V, J = Math.max(H / ((x = F == null ? void 0 : F.startSize) != null ? x : 0), -0.999999);
|
|
4500
|
+
return F.columnSizingStart.forEach((U) => {
|
|
4501
|
+
let [pe, se] = U;
|
|
4502
|
+
c[pe] = Math.round(Math.max(se + se * J, 0) * 100) / 100;
|
|
4503
4503
|
}), {
|
|
4504
|
-
...
|
|
4505
|
-
deltaOffset:
|
|
4506
|
-
deltaPercentage:
|
|
4504
|
+
...F,
|
|
4505
|
+
deltaOffset: H,
|
|
4506
|
+
deltaPercentage: J
|
|
4507
4507
|
};
|
|
4508
|
-
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((
|
|
4509
|
-
...
|
|
4508
|
+
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((F) => ({
|
|
4509
|
+
...F,
|
|
4510
4510
|
...c
|
|
4511
4511
|
})));
|
|
4512
4512
|
}, f = (h) => d("move", h), g = (h) => {
|
|
4513
|
-
d("end", h), n.setColumnSizingInfo((
|
|
4514
|
-
...
|
|
4513
|
+
d("end", h), n.setColumnSizingInfo((z) => ({
|
|
4514
|
+
...z,
|
|
4515
4515
|
isResizingColumn: !1,
|
|
4516
4516
|
startOffset: null,
|
|
4517
4517
|
startSize: null,
|
|
@@ -4527,13 +4527,13 @@ const tr = {
|
|
|
4527
4527
|
}, v = {
|
|
4528
4528
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4529
4529
|
upHandler: (h) => {
|
|
4530
|
-
var
|
|
4531
|
-
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((
|
|
4530
|
+
var z;
|
|
4531
|
+
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((z = h.touches[0]) == null ? void 0 : z.clientX);
|
|
4532
4532
|
}
|
|
4533
|
-
},
|
|
4533
|
+
}, P = ar() ? {
|
|
4534
4534
|
passive: !1
|
|
4535
4535
|
} : !1;
|
|
4536
|
-
Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler,
|
|
4536
|
+
Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, P), u == null || u.addEventListener("touchend", v.upHandler, P)) : (u == null || u.addEventListener("mousemove", m.moveHandler, P), u == null || u.addEventListener("mouseup", m.upHandler, P)), n.setColumnSizingInfo((h) => ({
|
|
4537
4537
|
...h,
|
|
4538
4538
|
startOffset: s,
|
|
4539
4539
|
startSize: r,
|
|
@@ -4568,7 +4568,7 @@ const tr = {
|
|
|
4568
4568
|
}
|
|
4569
4569
|
};
|
|
4570
4570
|
let Je = null;
|
|
4571
|
-
function
|
|
4571
|
+
function ar() {
|
|
4572
4572
|
if (typeof Je == "boolean") return Je;
|
|
4573
4573
|
let e = !1;
|
|
4574
4574
|
try {
|
|
@@ -4587,13 +4587,13 @@ function or() {
|
|
|
4587
4587
|
function Et(e) {
|
|
4588
4588
|
return e.type === "touchstart";
|
|
4589
4589
|
}
|
|
4590
|
-
const
|
|
4590
|
+
const rr = {
|
|
4591
4591
|
getInitialState: (e) => ({
|
|
4592
4592
|
columnVisibility: {},
|
|
4593
4593
|
...e
|
|
4594
4594
|
}),
|
|
4595
4595
|
getDefaultOptions: (e) => ({
|
|
4596
|
-
onColumnVisibilityChange:
|
|
4596
|
+
onColumnVisibilityChange: me("columnVisibility", e)
|
|
4597
4597
|
}),
|
|
4598
4598
|
createColumn: (e, n) => {
|
|
4599
4599
|
e.toggleVisibility = (t) => {
|
|
@@ -4613,10 +4613,10 @@ const ar = {
|
|
|
4613
4613
|
};
|
|
4614
4614
|
},
|
|
4615
4615
|
createRow: (e, n) => {
|
|
4616
|
-
e._getAllVisibleCells =
|
|
4616
|
+
e._getAllVisibleCells = O(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((i) => i.column.getIsVisible()), j(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = O(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, i, o) => [...t, ...i, ...o], j(n.options, "debugRows", "getVisibleCells"));
|
|
4617
4617
|
},
|
|
4618
4618
|
createTable: (e) => {
|
|
4619
|
-
const n = (t, i) =>
|
|
4619
|
+
const n = (t, i) => O(() => [i(), i().filter((o) => o.getIsVisible()).map((o) => o.id).join("_")], (o) => o.filter((a) => a.getIsVisible == null ? void 0 : a.getIsVisible()), j(e.options, "debugColumns", t));
|
|
4620
4620
|
e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
4621
4621
|
var i;
|
|
4622
4622
|
e.setColumnVisibility(t ? {} : (i = e.initialState.columnVisibility) != null ? i : {});
|
|
@@ -4635,20 +4635,20 @@ const ar = {
|
|
|
4635
4635
|
function Ne(e, n) {
|
|
4636
4636
|
return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4637
4637
|
}
|
|
4638
|
-
const
|
|
4638
|
+
const lr = {
|
|
4639
4639
|
createTable: (e) => {
|
|
4640
4640
|
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 = () => {
|
|
4641
4641
|
if (e._getGlobalFacetedMinMaxValues)
|
|
4642
4642
|
return e._getGlobalFacetedMinMaxValues();
|
|
4643
4643
|
};
|
|
4644
4644
|
}
|
|
4645
|
-
},
|
|
4645
|
+
}, sr = {
|
|
4646
4646
|
getInitialState: (e) => ({
|
|
4647
4647
|
globalFilter: void 0,
|
|
4648
4648
|
...e
|
|
4649
4649
|
}),
|
|
4650
4650
|
getDefaultOptions: (e) => ({
|
|
4651
|
-
onGlobalFilterChange:
|
|
4651
|
+
onGlobalFilterChange: me("globalFilter", e),
|
|
4652
4652
|
globalFilterFn: "auto",
|
|
4653
4653
|
getColumnCanGlobalFilter: (n) => {
|
|
4654
4654
|
var t;
|
|
@@ -4675,13 +4675,13 @@ const rr = {
|
|
|
4675
4675
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
4676
4676
|
};
|
|
4677
4677
|
}
|
|
4678
|
-
},
|
|
4678
|
+
}, cr = {
|
|
4679
4679
|
getInitialState: (e) => ({
|
|
4680
4680
|
expanded: {},
|
|
4681
4681
|
...e
|
|
4682
4682
|
}),
|
|
4683
4683
|
getDefaultOptions: (e) => ({
|
|
4684
|
-
onExpandedChange:
|
|
4684
|
+
onExpandedChange: me("expanded", e),
|
|
4685
4685
|
paginateExpandedRows: !0
|
|
4686
4686
|
}),
|
|
4687
4687
|
createTable: (e) => {
|
|
@@ -4765,7 +4765,7 @@ const rr = {
|
|
|
4765
4765
|
}, jt = 0, Tt = 10, kt = () => ({
|
|
4766
4766
|
pageIndex: jt,
|
|
4767
4767
|
pageSize: Tt
|
|
4768
|
-
}),
|
|
4768
|
+
}), pr = {
|
|
4769
4769
|
getInitialState: (e) => ({
|
|
4770
4770
|
...e,
|
|
4771
4771
|
pagination: {
|
|
@@ -4774,7 +4774,7 @@ const rr = {
|
|
|
4774
4774
|
}
|
|
4775
4775
|
}),
|
|
4776
4776
|
getDefaultOptions: (e) => ({
|
|
4777
|
-
onPaginationChange:
|
|
4777
|
+
onPaginationChange: me("pagination", e)
|
|
4778
4778
|
}),
|
|
4779
4779
|
createTable: (e) => {
|
|
4780
4780
|
let n = !1, t = !1;
|
|
@@ -4793,14 +4793,14 @@ const rr = {
|
|
|
4793
4793
|
});
|
|
4794
4794
|
}
|
|
4795
4795
|
}, e.setPagination = (i) => {
|
|
4796
|
-
const o = (a) =>
|
|
4796
|
+
const o = (a) => Ee(i, a);
|
|
4797
4797
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
4798
4798
|
}, e.resetPagination = (i) => {
|
|
4799
4799
|
var o;
|
|
4800
4800
|
e.setPagination(i ? kt() : (o = e.initialState.pagination) != null ? o : kt());
|
|
4801
4801
|
}, e.setPageIndex = (i) => {
|
|
4802
4802
|
e.setPagination((o) => {
|
|
4803
|
-
let a =
|
|
4803
|
+
let a = Ee(i, o.pageIndex);
|
|
4804
4804
|
const r = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
4805
4805
|
return a = Math.max(0, Math.min(a, r)), {
|
|
4806
4806
|
...o,
|
|
@@ -4815,7 +4815,7 @@ const rr = {
|
|
|
4815
4815
|
e.setPageSize(i ? Tt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Tt);
|
|
4816
4816
|
}, e.setPageSize = (i) => {
|
|
4817
4817
|
e.setPagination((o) => {
|
|
4818
|
-
const a = Math.max(1,
|
|
4818
|
+
const a = Math.max(1, Ee(i, o.pageSize)), r = o.pageSize * o.pageIndex, l = Math.floor(r / a);
|
|
4819
4819
|
return {
|
|
4820
4820
|
...o,
|
|
4821
4821
|
pageIndex: l,
|
|
@@ -4824,15 +4824,15 @@ const rr = {
|
|
|
4824
4824
|
});
|
|
4825
4825
|
}, e.setPageCount = (i) => e.setPagination((o) => {
|
|
4826
4826
|
var a;
|
|
4827
|
-
let r =
|
|
4827
|
+
let r = Ee(i, (a = e.options.pageCount) != null ? a : -1);
|
|
4828
4828
|
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
4829
4829
|
...o,
|
|
4830
4830
|
pageCount: r
|
|
4831
4831
|
};
|
|
4832
|
-
}), e.getPageOptions =
|
|
4832
|
+
}), e.getPageOptions = O(() => [e.getPageCount()], (i) => {
|
|
4833
4833
|
let o = [];
|
|
4834
4834
|
return i && i > 0 && (o = [...new Array(i)].fill(null).map((a, r) => r)), o;
|
|
4835
|
-
},
|
|
4835
|
+
}, j(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
4836
4836
|
const {
|
|
4837
4837
|
pageIndex: i
|
|
4838
4838
|
} = e.getState().pagination, o = e.getPageCount();
|
|
@@ -4848,13 +4848,13 @@ const rr = {
|
|
|
4848
4848
|
}, Ft = () => ({
|
|
4849
4849
|
top: [],
|
|
4850
4850
|
bottom: []
|
|
4851
|
-
}),
|
|
4851
|
+
}), ur = {
|
|
4852
4852
|
getInitialState: (e) => ({
|
|
4853
4853
|
rowPinning: Ft(),
|
|
4854
4854
|
...e
|
|
4855
4855
|
}),
|
|
4856
4856
|
getDefaultOptions: (e) => ({
|
|
4857
|
-
onRowPinningChange:
|
|
4857
|
+
onRowPinningChange: me("rowPinning", e)
|
|
4858
4858
|
}),
|
|
4859
4859
|
createRow: (e, n) => {
|
|
4860
4860
|
e.pin = (t, i, o) => {
|
|
@@ -4944,18 +4944,18 @@ const rr = {
|
|
|
4944
4944
|
...r,
|
|
4945
4945
|
position: i
|
|
4946
4946
|
}));
|
|
4947
|
-
}, e.getTopRows =
|
|
4947
|
+
}, e.getTopRows = O(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), j(e.options, "debugRows", "getTopRows")), e.getBottomRows = O(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), j(e.options, "debugRows", "getBottomRows")), e.getCenterRows = O(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, i) => {
|
|
4948
4948
|
const o = /* @__PURE__ */ new Set([...t ?? [], ...i ?? []]);
|
|
4949
4949
|
return n.filter((a) => !o.has(a.id));
|
|
4950
|
-
},
|
|
4950
|
+
}, j(e.options, "debugRows", "getCenterRows"));
|
|
4951
4951
|
}
|
|
4952
|
-
},
|
|
4952
|
+
}, dr = {
|
|
4953
4953
|
getInitialState: (e) => ({
|
|
4954
4954
|
rowSelection: {},
|
|
4955
4955
|
...e
|
|
4956
4956
|
}),
|
|
4957
4957
|
getDefaultOptions: (e) => ({
|
|
4958
|
-
onRowSelectionChange:
|
|
4958
|
+
onRowSelectionChange: me("rowSelection", e),
|
|
4959
4959
|
enableRowSelection: !0,
|
|
4960
4960
|
enableMultiRowSelection: !0,
|
|
4961
4961
|
enableSubRowSelection: !0
|
|
@@ -4986,19 +4986,19 @@ const rr = {
|
|
|
4986
4986
|
return e.getRowModel().rows.forEach((a) => {
|
|
4987
4987
|
zt(o, a.id, i, !0, e);
|
|
4988
4988
|
}), o;
|
|
4989
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel =
|
|
4989
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = O(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4990
4990
|
rows: [],
|
|
4991
4991
|
flatRows: [],
|
|
4992
4992
|
rowsById: {}
|
|
4993
|
-
},
|
|
4993
|
+
}, j(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = O(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4994
4994
|
rows: [],
|
|
4995
4995
|
flatRows: [],
|
|
4996
4996
|
rowsById: {}
|
|
4997
|
-
},
|
|
4997
|
+
}, j(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = O(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Pt(e, t) : {
|
|
4998
4998
|
rows: [],
|
|
4999
4999
|
flatRows: [],
|
|
5000
5000
|
rowsById: {}
|
|
5001
|
-
},
|
|
5001
|
+
}, j(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
5002
5002
|
const n = e.getFilteredRowModel().flatRows, {
|
|
5003
5003
|
rowSelection: t
|
|
5004
5004
|
} = e.getState();
|
|
@@ -5039,7 +5039,7 @@ const rr = {
|
|
|
5039
5039
|
const {
|
|
5040
5040
|
rowSelection: t
|
|
5041
5041
|
} = n.getState();
|
|
5042
|
-
return
|
|
5042
|
+
return Qt(e, t);
|
|
5043
5043
|
}, e.getIsSomeSelected = () => {
|
|
5044
5044
|
const {
|
|
5045
5045
|
rowSelection: t
|
|
@@ -5076,7 +5076,7 @@ function Pt(e, n) {
|
|
|
5076
5076
|
const t = e.getState().rowSelection, i = [], o = {}, a = function(r, l) {
|
|
5077
5077
|
return r.map((s) => {
|
|
5078
5078
|
var c;
|
|
5079
|
-
const d =
|
|
5079
|
+
const d = Qt(s, t);
|
|
5080
5080
|
if (d && (i.push(s), o[s.id] = s), (c = s.subRows) != null && c.length && (s = {
|
|
5081
5081
|
...s,
|
|
5082
5082
|
subRows: a(s.subRows)
|
|
@@ -5090,7 +5090,7 @@ function Pt(e, n) {
|
|
|
5090
5090
|
rowsById: o
|
|
5091
5091
|
};
|
|
5092
5092
|
}
|
|
5093
|
-
function
|
|
5093
|
+
function Qt(e, n) {
|
|
5094
5094
|
var t;
|
|
5095
5095
|
return (t = n[e.id]) != null ? t : !1;
|
|
5096
5096
|
}
|
|
@@ -5099,23 +5099,23 @@ function Vt(e, n, t) {
|
|
|
5099
5099
|
if (!((i = e.subRows) != null && i.length)) return !1;
|
|
5100
5100
|
let o = !0, a = !1;
|
|
5101
5101
|
return e.subRows.forEach((r) => {
|
|
5102
|
-
if (!(a && !o) && (r.getCanSelect() && (
|
|
5102
|
+
if (!(a && !o) && (r.getCanSelect() && (Qt(r, n) ? a = !0 : o = !1), r.subRows && r.subRows.length)) {
|
|
5103
5103
|
const l = Vt(r, n);
|
|
5104
5104
|
l === "all" ? a = !0 : (l === "some" && (a = !0), o = !1);
|
|
5105
5105
|
}
|
|
5106
5106
|
}), o ? "all" : a ? "some" : !1;
|
|
5107
5107
|
}
|
|
5108
|
-
const Nt = /([0-9]+)/gm,
|
|
5108
|
+
const Nt = /([0-9]+)/gm, gr = (e, n, t) => xi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), fr = (e, n, t) => xi(ke(e.getValue(t)), ke(n.getValue(t))), mr = (e, n, t) => Jt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), vr = (e, n, t) => Jt(ke(e.getValue(t)), ke(n.getValue(t))), xr = (e, n, t) => {
|
|
5109
5109
|
const i = e.getValue(t), o = n.getValue(t);
|
|
5110
5110
|
return i > o ? 1 : i < o ? -1 : 0;
|
|
5111
|
-
},
|
|
5112
|
-
function
|
|
5111
|
+
}, hr = (e, n, t) => Jt(e.getValue(t), n.getValue(t));
|
|
5112
|
+
function Jt(e, n) {
|
|
5113
5113
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5114
5114
|
}
|
|
5115
5115
|
function ke(e) {
|
|
5116
5116
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function xi(e, n) {
|
|
5119
5119
|
const t = e.split(Nt).filter(Boolean), i = n.split(Nt).filter(Boolean);
|
|
5120
5120
|
for (; t.length && i.length; ) {
|
|
5121
5121
|
const o = t.shift(), a = i.shift(), r = parseInt(o, 10), l = parseInt(a, 10), s = [r, l].sort();
|
|
@@ -5136,13 +5136,13 @@ function vi(e, n) {
|
|
|
5136
5136
|
return t.length - i.length;
|
|
5137
5137
|
}
|
|
5138
5138
|
const Ve = {
|
|
5139
|
-
alphanumeric:
|
|
5140
|
-
alphanumericCaseSensitive:
|
|
5141
|
-
text:
|
|
5142
|
-
textCaseSensitive:
|
|
5143
|
-
datetime:
|
|
5144
|
-
basic:
|
|
5145
|
-
},
|
|
5139
|
+
alphanumeric: gr,
|
|
5140
|
+
alphanumericCaseSensitive: fr,
|
|
5141
|
+
text: mr,
|
|
5142
|
+
textCaseSensitive: vr,
|
|
5143
|
+
datetime: xr,
|
|
5144
|
+
basic: hr
|
|
5145
|
+
}, wr = {
|
|
5146
5146
|
getInitialState: (e) => ({
|
|
5147
5147
|
sorting: [],
|
|
5148
5148
|
...e
|
|
@@ -5152,7 +5152,7 @@ const Ve = {
|
|
|
5152
5152
|
sortUndefined: 1
|
|
5153
5153
|
}),
|
|
5154
5154
|
getDefaultOptions: (e) => ({
|
|
5155
|
-
onSortingChange:
|
|
5155
|
+
onSortingChange: me("sorting", e),
|
|
5156
5156
|
isMultiSortEvent: (n) => n.shiftKey
|
|
5157
5157
|
}),
|
|
5158
5158
|
createColumn: (e, n) => {
|
|
@@ -5231,30 +5231,30 @@ const Ve = {
|
|
|
5231
5231
|
e.setSorting(n ? [] : (t = (i = e.initialState) == null ? void 0 : i.sorting) != null ? t : []);
|
|
5232
5232
|
}, 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());
|
|
5233
5233
|
}
|
|
5234
|
-
},
|
|
5235
|
-
La,
|
|
5236
|
-
ar,
|
|
5237
|
-
tr,
|
|
5238
|
-
nr,
|
|
5234
|
+
}, yr = [
|
|
5239
5235
|
Ha,
|
|
5240
|
-
qa,
|
|
5241
5236
|
rr,
|
|
5242
|
-
|
|
5237
|
+
nr,
|
|
5238
|
+
ir,
|
|
5239
|
+
qa,
|
|
5240
|
+
Ga,
|
|
5243
5241
|
lr,
|
|
5242
|
+
//depends on ColumnFaceting
|
|
5243
|
+
sr,
|
|
5244
5244
|
//depends on ColumnFiltering
|
|
5245
|
-
|
|
5246
|
-
|
|
5245
|
+
wr,
|
|
5246
|
+
er,
|
|
5247
5247
|
//depends on RowSorting
|
|
5248
|
-
sr,
|
|
5249
5248
|
cr,
|
|
5250
5249
|
pr,
|
|
5251
5250
|
ur,
|
|
5252
|
-
|
|
5251
|
+
dr,
|
|
5252
|
+
or
|
|
5253
5253
|
];
|
|
5254
|
-
function
|
|
5254
|
+
function br(e) {
|
|
5255
5255
|
var n, t;
|
|
5256
5256
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
5257
|
-
const i = [...
|
|
5257
|
+
const i = [...yr, ...(n = e._features) != null ? n : []];
|
|
5258
5258
|
let o = {
|
|
5259
5259
|
_features: i
|
|
5260
5260
|
};
|
|
@@ -5292,7 +5292,7 @@ function yr(e) {
|
|
|
5292
5292
|
o.setState(o.initialState);
|
|
5293
5293
|
},
|
|
5294
5294
|
setOptions: (g) => {
|
|
5295
|
-
const u =
|
|
5295
|
+
const u = Ee(g, o.options);
|
|
5296
5296
|
o.options = r(u);
|
|
5297
5297
|
},
|
|
5298
5298
|
getState: () => o.options.state,
|
|
@@ -5314,7 +5314,7 @@ function yr(e) {
|
|
|
5314
5314
|
throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
|
|
5315
5315
|
return m;
|
|
5316
5316
|
},
|
|
5317
|
-
_getDefaultColumnDef:
|
|
5317
|
+
_getDefaultColumnDef: O(() => [o.options.defaultColumn], (g) => {
|
|
5318
5318
|
var u;
|
|
5319
5319
|
return g = (u = g) != null ? u : {}, {
|
|
5320
5320
|
header: (m) => {
|
|
@@ -5323,29 +5323,29 @@ function yr(e) {
|
|
|
5323
5323
|
},
|
|
5324
5324
|
// footer: props => props.header.column.id,
|
|
5325
5325
|
cell: (m) => {
|
|
5326
|
-
var v,
|
|
5327
|
-
return (v = (
|
|
5326
|
+
var v, P;
|
|
5327
|
+
return (v = (P = m.renderValue()) == null || P.toString == null ? void 0 : P.toString()) != null ? v : null;
|
|
5328
5328
|
},
|
|
5329
5329
|
...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
|
|
5330
5330
|
...g
|
|
5331
5331
|
};
|
|
5332
|
-
},
|
|
5332
|
+
}, j(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5333
5333
|
_getColumnDefs: () => o.options.columns,
|
|
5334
|
-
getAllColumns:
|
|
5335
|
-
const u = function(m, v,
|
|
5336
|
-
return
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5334
|
+
getAllColumns: O(() => [o._getColumnDefs()], (g) => {
|
|
5335
|
+
const u = function(m, v, P) {
|
|
5336
|
+
return P === void 0 && (P = 0), m.map((h) => {
|
|
5337
|
+
const z = La(o, h, P, v), F = h;
|
|
5338
|
+
return z.columns = F.columns ? u(F.columns, z, P + 1) : [], z;
|
|
5339
5339
|
});
|
|
5340
5340
|
};
|
|
5341
5341
|
return u(g);
|
|
5342
|
-
},
|
|
5343
|
-
getAllFlatColumns:
|
|
5344
|
-
_getAllFlatColumnsById:
|
|
5345
|
-
getAllLeafColumns:
|
|
5342
|
+
}, j(e, "debugColumns", "getAllColumns")),
|
|
5343
|
+
getAllFlatColumns: O(() => [o.getAllColumns()], (g) => g.flatMap((u) => u.getFlatColumns()), j(e, "debugColumns", "getAllFlatColumns")),
|
|
5344
|
+
_getAllFlatColumnsById: O(() => [o.getAllFlatColumns()], (g) => g.reduce((u, m) => (u[m.id] = m, u), {}), j(e, "debugColumns", "getAllFlatColumnsById")),
|
|
5345
|
+
getAllLeafColumns: O(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g, u) => {
|
|
5346
5346
|
let m = g.flatMap((v) => v.getLeafColumns());
|
|
5347
5347
|
return u(m);
|
|
5348
|
-
},
|
|
5348
|
+
}, j(e, "debugColumns", "getAllLeafColumns")),
|
|
5349
5349
|
getColumn: (g) => {
|
|
5350
5350
|
const u = o._getAllFlatColumnsById()[g];
|
|
5351
5351
|
return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${g}' does not exist.`), u;
|
|
@@ -5358,8 +5358,8 @@ function yr(e) {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
return o;
|
|
5360
5360
|
}
|
|
5361
|
-
function
|
|
5362
|
-
return (e) =>
|
|
5361
|
+
function Sr() {
|
|
5362
|
+
return (e) => O(() => [e.options.data], (n) => {
|
|
5363
5363
|
const t = {
|
|
5364
5364
|
rows: [],
|
|
5365
5365
|
flatRows: [],
|
|
@@ -5368,7 +5368,7 @@ function br() {
|
|
|
5368
5368
|
a === void 0 && (a = 0);
|
|
5369
5369
|
const l = [];
|
|
5370
5370
|
for (let c = 0; c < o.length; c++) {
|
|
5371
|
-
const d =
|
|
5371
|
+
const d = si(e, e._getRowId(o[c], c, r), o[c], c, a, void 0, r == null ? void 0 : r.id);
|
|
5372
5372
|
if (t.flatRows.push(d), t.rowsById[d.id] = d, l.push(d), e.options.getSubRows) {
|
|
5373
5373
|
var s;
|
|
5374
5374
|
d.originalSubRows = e.options.getSubRows(o[c], c), (s = d.originalSubRows) != null && s.length && (d.subRows = i(d.originalSubRows, a + 1, d));
|
|
@@ -5377,12 +5377,12 @@ function br() {
|
|
|
5377
5377
|
return l;
|
|
5378
5378
|
};
|
|
5379
5379
|
return t.rows = i(n), t;
|
|
5380
|
-
},
|
|
5380
|
+
}, j(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
5383
|
-
return (e) =>
|
|
5382
|
+
function Cr() {
|
|
5383
|
+
return (e) => O(() => [e.getState().expanded, e.getPreExpandedRowModel(), e.options.paginateExpandedRows], (n, t, i) => !t.rows.length || n !== !0 && !Object.keys(n ?? {}).length || !i ? t : _r(t), j(e.options, "debugTable", "getExpandedRowModel"));
|
|
5384
5384
|
}
|
|
5385
|
-
function
|
|
5385
|
+
function _r(e) {
|
|
5386
5386
|
const n = [], t = (i) => {
|
|
5387
5387
|
var o;
|
|
5388
5388
|
n.push(i), (o = i.subRows) != null && o.length && i.getIsExpanded() && i.subRows.forEach(t);
|
|
@@ -5393,8 +5393,8 @@ function Cr(e) {
|
|
|
5393
5393
|
rowsById: e.rowsById
|
|
5394
5394
|
};
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5397
|
-
return (e) =>
|
|
5396
|
+
function Rr() {
|
|
5397
|
+
return (e) => O(() => [e.getState().grouping, e.getPreGroupedRowModel()], (n, t) => {
|
|
5398
5398
|
if (!t.rows.length || !n.length)
|
|
5399
5399
|
return t.rows.forEach((s) => {
|
|
5400
5400
|
s.depth = 0, s.parentId = void 0;
|
|
@@ -5402,37 +5402,37 @@ function _r() {
|
|
|
5402
5402
|
const i = n.filter((s) => e.getColumn(s)), o = [], a = {}, r = function(s, c, d) {
|
|
5403
5403
|
if (c === void 0 && (c = 0), c >= i.length)
|
|
5404
5404
|
return s.map((m) => (m.depth = c, o.push(m), a[m.id] = m, m.subRows && (m.subRows = r(m.subRows, c + 1, m.id)), m));
|
|
5405
|
-
const f = i[c], g =
|
|
5405
|
+
const f = i[c], g = Er(s, f);
|
|
5406
5406
|
return Array.from(g.entries()).map((m, v) => {
|
|
5407
|
-
let [
|
|
5408
|
-
|
|
5409
|
-
const
|
|
5410
|
-
|
|
5411
|
-
V.parentId =
|
|
5407
|
+
let [P, h] = m, z = `${f}:${P}`;
|
|
5408
|
+
z = d ? `${d}>${z}` : z;
|
|
5409
|
+
const F = r(h, c + 1, z);
|
|
5410
|
+
F.forEach((V) => {
|
|
5411
|
+
V.parentId = z;
|
|
5412
5412
|
});
|
|
5413
|
-
const
|
|
5413
|
+
const A = c ? li(h, (V) => V.subRows) : h, x = si(e, z, A[0].original, v, c, void 0, d);
|
|
5414
5414
|
return Object.assign(x, {
|
|
5415
5415
|
groupingColumnId: f,
|
|
5416
|
-
groupingValue:
|
|
5417
|
-
subRows:
|
|
5418
|
-
leafRows:
|
|
5416
|
+
groupingValue: P,
|
|
5417
|
+
subRows: F,
|
|
5418
|
+
leafRows: A,
|
|
5419
5419
|
getValue: (V) => {
|
|
5420
5420
|
if (i.includes(V)) {
|
|
5421
5421
|
if (x._valuesCache.hasOwnProperty(V))
|
|
5422
5422
|
return x._valuesCache[V];
|
|
5423
5423
|
if (h[0]) {
|
|
5424
|
-
var
|
|
5425
|
-
x._valuesCache[V] = (
|
|
5424
|
+
var H;
|
|
5425
|
+
x._valuesCache[V] = (H = h[0].getValue(V)) != null ? H : void 0;
|
|
5426
5426
|
}
|
|
5427
5427
|
return x._valuesCache[V];
|
|
5428
5428
|
}
|
|
5429
5429
|
if (x._groupingValuesCache.hasOwnProperty(V))
|
|
5430
5430
|
return x._groupingValuesCache[V];
|
|
5431
|
-
const
|
|
5432
|
-
if (
|
|
5433
|
-
return x._groupingValuesCache[V] =
|
|
5431
|
+
const J = e.getColumn(V), U = J == null ? void 0 : J.getAggregationFn();
|
|
5432
|
+
if (U)
|
|
5433
|
+
return x._groupingValuesCache[V] = U(V, A, h), x._groupingValuesCache[V];
|
|
5434
5434
|
}
|
|
5435
|
-
}),
|
|
5435
|
+
}), F.forEach((V) => {
|
|
5436
5436
|
o.push(V), a[V.id] = V;
|
|
5437
5437
|
}), x;
|
|
5438
5438
|
});
|
|
@@ -5444,13 +5444,13 @@ function _r() {
|
|
|
5444
5444
|
flatRows: o,
|
|
5445
5445
|
rowsById: a
|
|
5446
5446
|
};
|
|
5447
|
-
},
|
|
5447
|
+
}, j(e.options, "debugTable", "getGroupedRowModel", () => {
|
|
5448
5448
|
e._queue(() => {
|
|
5449
5449
|
e._autoResetExpanded(), e._autoResetPageIndex();
|
|
5450
5450
|
});
|
|
5451
5451
|
}));
|
|
5452
5452
|
}
|
|
5453
|
-
function
|
|
5453
|
+
function Er(e, n) {
|
|
5454
5454
|
const t = /* @__PURE__ */ new Map();
|
|
5455
5455
|
return e.reduce((i, o) => {
|
|
5456
5456
|
const a = `${o.getGroupingValue(n)}`, r = i.get(a);
|
|
@@ -5468,21 +5468,21 @@ function Rr(e, n) {
|
|
|
5468
5468
|
* @license MIT
|
|
5469
5469
|
*/
|
|
5470
5470
|
function Lt(e, n) {
|
|
5471
|
-
return e ?
|
|
5472
|
-
}
|
|
5473
|
-
function Er(e) {
|
|
5474
|
-
return kr(e) || typeof e == "function" || Fr(e);
|
|
5471
|
+
return e ? kr(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
|
|
5475
5472
|
}
|
|
5476
5473
|
function kr(e) {
|
|
5474
|
+
return Fr(e) || typeof e == "function" || Pr(e);
|
|
5475
|
+
}
|
|
5476
|
+
function Fr(e) {
|
|
5477
5477
|
return typeof e == "function" && (() => {
|
|
5478
5478
|
const n = Object.getPrototypeOf(e);
|
|
5479
5479
|
return n.prototype && n.prototype.isReactComponent;
|
|
5480
5480
|
})();
|
|
5481
5481
|
}
|
|
5482
|
-
function
|
|
5482
|
+
function Pr(e) {
|
|
5483
5483
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5485
|
+
function Ir(e) {
|
|
5486
5486
|
const n = {
|
|
5487
5487
|
state: {},
|
|
5488
5488
|
// Dummy state
|
|
@@ -5491,9 +5491,9 @@ function Pr(e) {
|
|
|
5491
5491
|
// noop
|
|
5492
5492
|
renderFallbackValue: null,
|
|
5493
5493
|
...e
|
|
5494
|
-
}, [t] =
|
|
5495
|
-
current:
|
|
5496
|
-
})), [i, o] =
|
|
5494
|
+
}, [t] = ue.useState(() => ({
|
|
5495
|
+
current: br(n)
|
|
5496
|
+
})), [i, o] = ue.useState(() => t.current.initialState);
|
|
5497
5497
|
return t.current.setOptions((a) => ({
|
|
5498
5498
|
...a,
|
|
5499
5499
|
...e,
|
|
@@ -5508,30 +5508,30 @@ function Pr(e) {
|
|
|
5508
5508
|
}
|
|
5509
5509
|
})), t.current;
|
|
5510
5510
|
}
|
|
5511
|
-
const
|
|
5511
|
+
const Dr = ({
|
|
5512
5512
|
header: e
|
|
5513
5513
|
}) => {
|
|
5514
5514
|
var n;
|
|
5515
5515
|
return {
|
|
5516
|
-
asc: /* @__PURE__ */ p(
|
|
5517
|
-
desc: /* @__PURE__ */ p(
|
|
5516
|
+
asc: /* @__PURE__ */ p(we, { name: "chevron-up", children: "ascending" }),
|
|
5517
|
+
desc: /* @__PURE__ */ p(we, { name: "chevron-down", children: "descending" })
|
|
5518
5518
|
}[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
|
|
5519
|
-
},
|
|
5520
|
-
|
|
5519
|
+
}, $r = ({ header: e }) => /* @__PURE__ */ p("th", { className: G(`${e.column.id}`), children: e.column.getCanSort() ? /* @__PURE__ */ p(
|
|
5520
|
+
Ce,
|
|
5521
5521
|
{
|
|
5522
5522
|
appearance: "link",
|
|
5523
5523
|
className: "table-header-label p-button--table-header",
|
|
5524
5524
|
onClick: e.column.getToggleSortingHandler(),
|
|
5525
5525
|
type: "button",
|
|
5526
|
-
children: /* @__PURE__ */
|
|
5526
|
+
children: /* @__PURE__ */ B(ye, { children: [
|
|
5527
5527
|
Lt(e.column.columnDef.header, e.getContext()),
|
|
5528
|
-
/* @__PURE__ */ p(
|
|
5528
|
+
/* @__PURE__ */ p(Dr, { header: e })
|
|
5529
5529
|
] })
|
|
5530
5530
|
}
|
|
5531
|
-
) : Lt(e.column.columnDef.header, e.getContext()) }, e.id), Le = ({ children: e }) => /* @__PURE__ */ p("section", { className: "controls-bar u-flex u-flex--justify-between u-flex--wrap", children: /* @__PURE__ */ p("div", { className: "p-form p-form--inline", children: e }) }),
|
|
5532
|
-
Le.Left =
|
|
5533
|
-
Le.Right =
|
|
5534
|
-
const
|
|
5531
|
+
) : Lt(e.column.columnDef.header, e.getContext()) }, e.id), Le = ({ children: e }) => /* @__PURE__ */ p("section", { className: "controls-bar u-flex u-flex--justify-between u-flex--wrap", children: /* @__PURE__ */ p("div", { className: "p-form p-form--inline", children: e }) }), Ar = ({ children: e }) => /* @__PURE__ */ p("strong", { className: "controls-bar__description", children: e }), Mr = ({ children: e }) => /* @__PURE__ */ p("div", { className: "u-flex u-flex--wrap u-flex--column-x-small controls-bar__right", children: e });
|
|
5532
|
+
Le.Left = Ar;
|
|
5533
|
+
Le.Right = Mr;
|
|
5534
|
+
const Or = ({
|
|
5535
5535
|
currentPage: e,
|
|
5536
5536
|
itemsPerPage: n,
|
|
5537
5537
|
totalItems: t,
|
|
@@ -5551,8 +5551,8 @@ const Mr = ({
|
|
|
5551
5551
|
const { value: m } = u.target;
|
|
5552
5552
|
i(Number(m));
|
|
5553
5553
|
}, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
|
|
5554
|
-
return /* @__PURE__ */
|
|
5555
|
-
/* @__PURE__ */
|
|
5554
|
+
return /* @__PURE__ */ B(Le, { children: [
|
|
5555
|
+
/* @__PURE__ */ B(Le.Left, { children: [
|
|
5556
5556
|
"Showing ",
|
|
5557
5557
|
g(),
|
|
5558
5558
|
" out of ",
|
|
@@ -5560,9 +5560,9 @@ const Mr = ({
|
|
|
5560
5560
|
" ",
|
|
5561
5561
|
o
|
|
5562
5562
|
] }),
|
|
5563
|
-
/* @__PURE__ */
|
|
5563
|
+
/* @__PURE__ */ B(Le.Right, { children: [
|
|
5564
5564
|
/* @__PURE__ */ p(
|
|
5565
|
-
|
|
5565
|
+
Ro,
|
|
5566
5566
|
{
|
|
5567
5567
|
currentPage: e,
|
|
5568
5568
|
disabled: r,
|
|
@@ -5571,7 +5571,7 @@ const Mr = ({
|
|
|
5571
5571
|
}
|
|
5572
5572
|
),
|
|
5573
5573
|
/* @__PURE__ */ p(
|
|
5574
|
-
|
|
5574
|
+
Oi,
|
|
5575
5575
|
{
|
|
5576
5576
|
"aria-label": "Items per page",
|
|
5577
5577
|
className: "u-no-margin--bottom",
|
|
@@ -5583,12 +5583,12 @@ const Mr = ({
|
|
|
5583
5583
|
)
|
|
5584
5584
|
] })
|
|
5585
5585
|
] });
|
|
5586
|
-
},
|
|
5586
|
+
}, jr = ({ table: e, ...n }) => {
|
|
5587
5587
|
if (!e)
|
|
5588
5588
|
return null;
|
|
5589
5589
|
const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
|
|
5590
5590
|
let i;
|
|
5591
|
-
return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */
|
|
5591
|
+
return e.getSelectedRowModel().rows.length === 0 ? i = "false" : e.getSelectedRowModel().rows.length < t.length ? i = "mixed" : i = "true", /* @__PURE__ */ B("label", { className: "p-checkbox--inline p-table-checkbox--all", children: [
|
|
5592
5592
|
/* @__PURE__ */ p(
|
|
5593
5593
|
"input",
|
|
5594
5594
|
{
|
|
@@ -5609,7 +5609,7 @@ const Mr = ({
|
|
|
5609
5609
|
),
|
|
5610
5610
|
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5611
5611
|
] });
|
|
5612
|
-
},
|
|
5612
|
+
}, Tr = ({ row: e, ...n }) => {
|
|
5613
5613
|
if (!e)
|
|
5614
5614
|
return null;
|
|
5615
5615
|
const t = e.subRows.filter(
|
|
@@ -5617,7 +5617,7 @@ const Mr = ({
|
|
|
5617
5617
|
), i = t.filter(
|
|
5618
5618
|
(r) => r.getIsSelected()
|
|
5619
5619
|
).length, o = t.length > 0 && i === t.length, a = i > 0 && !o;
|
|
5620
|
-
return /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ B(
|
|
5621
5621
|
"label",
|
|
5622
5622
|
{
|
|
5623
5623
|
"aria-disabled": !e.getCanSelect(),
|
|
@@ -5654,11 +5654,11 @@ const Mr = ({
|
|
|
5654
5654
|
return null;
|
|
5655
5655
|
const o = typeof n == "string" ? n : n(e);
|
|
5656
5656
|
return /* @__PURE__ */ p(
|
|
5657
|
-
|
|
5657
|
+
Gt,
|
|
5658
5658
|
{
|
|
5659
5659
|
message: !e.getCanSelect() && o,
|
|
5660
5660
|
position: "btm-right",
|
|
5661
|
-
children: /* @__PURE__ */
|
|
5661
|
+
children: /* @__PURE__ */ B(
|
|
5662
5662
|
"label",
|
|
5663
5663
|
{
|
|
5664
5664
|
"aria-disabled": !e.getCanSelect(),
|
|
@@ -5682,9 +5682,9 @@ const Mr = ({
|
|
|
5682
5682
|
}
|
|
5683
5683
|
);
|
|
5684
5684
|
};
|
|
5685
|
-
Me.All =
|
|
5686
|
-
Me.Group =
|
|
5687
|
-
const
|
|
5685
|
+
Me.All = jr;
|
|
5686
|
+
Me.Group = Tr;
|
|
5687
|
+
const Yr = ({
|
|
5688
5688
|
className: e,
|
|
5689
5689
|
canSelect: n = !1,
|
|
5690
5690
|
disabledSelectionTooltip: t,
|
|
@@ -5701,136 +5701,186 @@ const Wr = ({
|
|
|
5701
5701
|
pinGroup: u,
|
|
5702
5702
|
sortBy: m,
|
|
5703
5703
|
rowSelection: v,
|
|
5704
|
-
setRowSelection:
|
|
5705
|
-
|
|
5706
|
-
|
|
5704
|
+
setRowSelection: P,
|
|
5705
|
+
showChevron: h = !1,
|
|
5706
|
+
variant: z = "full-height",
|
|
5707
|
+
...F
|
|
5707
5708
|
}) => {
|
|
5708
|
-
const
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
{
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5709
|
+
const A = Se(null), [x, V] = de("auto"), [H, J] = de(!1), [U, pe] = de(c ?? []), [se, ve] = de(m ?? []), [D, E] = de(!0), q = (S) => {
|
|
5710
|
+
E((R) => {
|
|
5711
|
+
const y = typeof S == "function" ? S(R) : S;
|
|
5712
|
+
if (y === !0) return !0;
|
|
5713
|
+
const C = { ...y };
|
|
5714
|
+
if (R !== !0)
|
|
5715
|
+
for (const I of Object.keys(R))
|
|
5716
|
+
I in C || (C[I] = !1);
|
|
5717
|
+
return C;
|
|
5718
|
+
});
|
|
5719
|
+
};
|
|
5720
|
+
Re(() => {
|
|
5721
|
+
U.length && q((S) => {
|
|
5722
|
+
const y = { ...S === !0 ? {} : { ...S } };
|
|
5723
|
+
for (const C of a) {
|
|
5724
|
+
const I = U.map(($) => `${$}:${C[$]}`).join(">");
|
|
5725
|
+
I in y || (y[I] = !0);
|
|
5726
|
+
}
|
|
5727
|
+
return y;
|
|
5728
|
+
});
|
|
5729
|
+
}, [a, U]);
|
|
5730
|
+
const Y = le(() => {
|
|
5731
|
+
let S = [...i];
|
|
5732
|
+
if (d)
|
|
5733
|
+
return S;
|
|
5734
|
+
if (n) {
|
|
5735
|
+
const R = [
|
|
5736
|
+
{
|
|
5737
|
+
id: "p-generic-table__select",
|
|
5738
|
+
accessorKey: "id",
|
|
5739
|
+
enableSorting: !1,
|
|
5740
|
+
header: ({ table: y }) => c ? "" : /* @__PURE__ */ p(Me.All, { table: y }),
|
|
5741
|
+
cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */ p(
|
|
5742
|
+
Me,
|
|
5743
|
+
{
|
|
5744
|
+
row: y,
|
|
5745
|
+
disabledTooltip: t ?? "",
|
|
5746
|
+
isNested: s !== void 0 && !!y.parentId
|
|
5747
|
+
}
|
|
5748
|
+
)
|
|
5749
|
+
},
|
|
5750
|
+
...S
|
|
5751
|
+
];
|
|
5752
|
+
c ? S = [
|
|
5753
|
+
{
|
|
5754
|
+
id: "p-generic-table__group-select",
|
|
5755
|
+
accessorKey: "id",
|
|
5756
|
+
enableSorting: !1,
|
|
5757
|
+
header: ({ table: y }) => /* @__PURE__ */ p(Me.All, { table: y }),
|
|
5758
|
+
cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: y }) : null
|
|
5759
|
+
},
|
|
5760
|
+
...R
|
|
5761
|
+
] : S = R;
|
|
5762
|
+
}
|
|
5763
|
+
return c && h && (S = [{
|
|
5764
|
+
id: "p-generic-table__group-chevron",
|
|
5765
|
+
accessorKey: "id",
|
|
5766
|
+
enableSorting: !1,
|
|
5767
|
+
header: "",
|
|
5768
|
+
cell: ({ row: y }) => {
|
|
5769
|
+
const C = y.getIsExpanded();
|
|
5770
|
+
return y.getIsGrouped() ? /* @__PURE__ */ p(Gt, { message: C ? "Collapse" : "Expand", position: "btm-right", children: /* @__PURE__ */ p(
|
|
5771
|
+
we,
|
|
5719
5772
|
{
|
|
5720
|
-
|
|
5721
|
-
disabledTooltip: t ?? "",
|
|
5722
|
-
isNested: s !== void 0 && !!k.parentId
|
|
5773
|
+
name: C ? en.chevronUp : en.chevronDown
|
|
5723
5774
|
}
|
|
5724
|
-
)
|
|
5725
|
-
}
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
const E = y[F] ?? null, D = k[F] ?? null;
|
|
5741
|
-
if (E === null) return 1;
|
|
5742
|
-
if (D === null || E < D) return -1;
|
|
5743
|
-
if (E > D) return 1;
|
|
5775
|
+
) }) : null;
|
|
5776
|
+
}
|
|
5777
|
+
}, ...S]), S;
|
|
5778
|
+
}, [
|
|
5779
|
+
n,
|
|
5780
|
+
i,
|
|
5781
|
+
d,
|
|
5782
|
+
c,
|
|
5783
|
+
s,
|
|
5784
|
+
t
|
|
5785
|
+
]), Z = le(() => U.length ? [...a].sort((S, R) => {
|
|
5786
|
+
for (const y of U) {
|
|
5787
|
+
const C = S[y] ?? null, I = R[y] ?? null;
|
|
5788
|
+
if (C === null) return 1;
|
|
5789
|
+
if (I === null || C < I) return -1;
|
|
5790
|
+
if (C > I) return 1;
|
|
5744
5791
|
}
|
|
5745
5792
|
return 0;
|
|
5746
|
-
}) : a, [a,
|
|
5747
|
-
if (u != null && u.length &&
|
|
5748
|
-
for (const { value:
|
|
5749
|
-
const
|
|
5750
|
-
if (
|
|
5751
|
-
return
|
|
5752
|
-
if (
|
|
5753
|
-
return
|
|
5793
|
+
}) : a, [a, U]), oe = le(() => Z.length ? [...Z].sort((S, R) => {
|
|
5794
|
+
if (u != null && u.length && U.length)
|
|
5795
|
+
for (const { value: y, isTop: C } of u) {
|
|
5796
|
+
const I = U[0], $ = S[I] ?? null, L = R[I] ?? null;
|
|
5797
|
+
if ($ === y && L !== y)
|
|
5798
|
+
return C ? -1 : 1;
|
|
5799
|
+
if (L === y && $ !== y)
|
|
5800
|
+
return C ? 1 : -1;
|
|
5754
5801
|
}
|
|
5755
|
-
for (const { id:
|
|
5756
|
-
const
|
|
5757
|
-
if (
|
|
5758
|
-
if (
|
|
5759
|
-
if (
|
|
5760
|
-
return
|
|
5761
|
-
if (
|
|
5762
|
-
return
|
|
5802
|
+
for (const { id: y, desc: C } of se) {
|
|
5803
|
+
const I = S[y] ?? null, $ = R[y] ?? null;
|
|
5804
|
+
if (I === null && $ === null) return 0;
|
|
5805
|
+
if (I === null) return C ? -1 : 1;
|
|
5806
|
+
if ($ === null || I < $)
|
|
5807
|
+
return C ? 1 : -1;
|
|
5808
|
+
if (I > $)
|
|
5809
|
+
return C ? -1 : 1;
|
|
5763
5810
|
}
|
|
5764
5811
|
return 0;
|
|
5765
|
-
}) : [], [
|
|
5766
|
-
|
|
5767
|
-
const
|
|
5768
|
-
const
|
|
5769
|
-
if (!
|
|
5770
|
-
const
|
|
5771
|
-
if (!
|
|
5772
|
-
const
|
|
5773
|
-
|
|
5812
|
+
}) : [], [Z, se, u, U]);
|
|
5813
|
+
On(() => {
|
|
5814
|
+
const S = () => {
|
|
5815
|
+
const C = A.current;
|
|
5816
|
+
if (!C) return;
|
|
5817
|
+
const I = (o == null ? void 0 : o.current) || document.querySelector("main");
|
|
5818
|
+
if (!I) return;
|
|
5819
|
+
const $ = I.getBoundingClientRect(), L = C.getBoundingClientRect(), M = $.bottom - L.top, b = C.scrollHeight > M;
|
|
5820
|
+
J(b), V(b ? `${M}px` : "auto");
|
|
5774
5821
|
};
|
|
5775
|
-
|
|
5776
|
-
const
|
|
5777
|
-
return
|
|
5778
|
-
window.removeEventListener("resize",
|
|
5822
|
+
S();
|
|
5823
|
+
const R = new ResizeObserver(S), y = A.current;
|
|
5824
|
+
return y && R.observe(y), window.addEventListener("resize", S), () => {
|
|
5825
|
+
window.removeEventListener("resize", S), y && R.unobserve(y);
|
|
5779
5826
|
};
|
|
5780
|
-
}, [o,
|
|
5781
|
-
const
|
|
5782
|
-
data:
|
|
5783
|
-
columns:
|
|
5827
|
+
}, [o, oe.length, d]);
|
|
5828
|
+
const te = z === "full-height" && H ? "full-height" : "regular", w = Ir({
|
|
5829
|
+
data: oe,
|
|
5830
|
+
columns: Y,
|
|
5784
5831
|
state: {
|
|
5785
|
-
grouping:
|
|
5786
|
-
expanded:
|
|
5787
|
-
sorting:
|
|
5832
|
+
grouping: U,
|
|
5833
|
+
expanded: D,
|
|
5834
|
+
sorting: se,
|
|
5788
5835
|
rowSelection: v
|
|
5789
5836
|
},
|
|
5790
5837
|
manualPagination: !0,
|
|
5791
5838
|
autoResetExpanded: !1,
|
|
5792
|
-
onExpandedChange:
|
|
5793
|
-
onSortingChange:
|
|
5794
|
-
onGroupingChange:
|
|
5795
|
-
onRowSelectionChange:
|
|
5839
|
+
onExpandedChange: q,
|
|
5840
|
+
onSortingChange: ve,
|
|
5841
|
+
onGroupingChange: pe,
|
|
5842
|
+
onRowSelectionChange: P,
|
|
5796
5843
|
manualSorting: !0,
|
|
5797
5844
|
enableSorting: !0,
|
|
5798
5845
|
enableExpanding: !0,
|
|
5799
5846
|
getSubRows: s,
|
|
5800
|
-
getExpandedRowModel:
|
|
5801
|
-
getCoreRowModel:
|
|
5802
|
-
getGroupedRowModel:
|
|
5847
|
+
getExpandedRowModel: Cr(),
|
|
5848
|
+
getCoreRowModel: Sr(),
|
|
5849
|
+
getGroupedRowModel: Rr(),
|
|
5803
5850
|
groupedColumnMode: !1,
|
|
5804
5851
|
enableRowSelection: n,
|
|
5805
5852
|
enableMultiRowSelection: n,
|
|
5806
|
-
getRowId: (
|
|
5807
|
-
}),
|
|
5808
|
-
const { getIsGrouped:
|
|
5853
|
+
getRowId: (S) => S.id.toString()
|
|
5854
|
+
}), k = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: Y.length, children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) }), N = () => w.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: Y.length, children: f }) }) : w.getRowModel().rows.map((S) => {
|
|
5855
|
+
const { getIsGrouped: R, id: y, getVisibleCells: C, parentId: I } = S, $ = !R(), L = v !== void 0 && Object.keys(v).includes(y);
|
|
5809
5856
|
return /* @__PURE__ */ p(
|
|
5810
5857
|
"tr",
|
|
5811
5858
|
{
|
|
5812
|
-
"aria-rowindex": parseInt(
|
|
5813
|
-
"aria-selected":
|
|
5814
|
-
className:
|
|
5815
|
-
"p-generic-table__individual-row":
|
|
5816
|
-
"p-generic-table__group-row":
|
|
5817
|
-
"p-generic-table__nested-row": s !== void 0 && !!
|
|
5859
|
+
"aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
|
|
5860
|
+
"aria-selected": L,
|
|
5861
|
+
className: G({
|
|
5862
|
+
"p-generic-table__individual-row": $,
|
|
5863
|
+
"p-generic-table__group-row": !$,
|
|
5864
|
+
"p-generic-table__nested-row": s !== void 0 && !!I
|
|
5818
5865
|
}),
|
|
5866
|
+
onClick: () => {
|
|
5867
|
+
$ || S.toggleExpanded();
|
|
5868
|
+
},
|
|
5819
5869
|
role: "row",
|
|
5820
|
-
children:
|
|
5870
|
+
children: C().filter((M) => !$ && (M.column.id === "p-generic-table__group-select" || M.column.id === "p-generic-table__group-chevron") ? !0 : r(S, M.column)).map((M) => /* @__PURE__ */ p("td", { className: G(`${M.column.id}`), children: Lt(M.column.columnDef.cell, M.getContext()) }, M.id))
|
|
5821
5871
|
},
|
|
5822
|
-
|
|
5872
|
+
y
|
|
5823
5873
|
);
|
|
5824
5874
|
});
|
|
5825
|
-
return /* @__PURE__ */
|
|
5875
|
+
return /* @__PURE__ */ B(
|
|
5826
5876
|
"div",
|
|
5827
5877
|
{
|
|
5828
|
-
className:
|
|
5878
|
+
className: G("p-generic-table", e),
|
|
5829
5879
|
"data-testid": "p-generic-table",
|
|
5830
|
-
...
|
|
5880
|
+
...F,
|
|
5831
5881
|
children: [
|
|
5832
5882
|
g && /* @__PURE__ */ p(
|
|
5833
|
-
|
|
5883
|
+
Or,
|
|
5834
5884
|
{
|
|
5835
5885
|
currentPage: g.currentPage,
|
|
5836
5886
|
dataContext: g.dataContext,
|
|
@@ -5842,39 +5892,39 @@ const Wr = ({
|
|
|
5842
5892
|
pageSizes: g.pageSizes
|
|
5843
5893
|
}
|
|
5844
5894
|
),
|
|
5845
|
-
/* @__PURE__ */
|
|
5895
|
+
/* @__PURE__ */ B(
|
|
5846
5896
|
"table",
|
|
5847
5897
|
{
|
|
5848
5898
|
"aria-busy": d,
|
|
5849
|
-
"aria-label":
|
|
5899
|
+
"aria-label": F["aria-label"],
|
|
5850
5900
|
"aria-describedby": "generic-table-description",
|
|
5851
|
-
"aria-rowcount":
|
|
5852
|
-
className:
|
|
5853
|
-
"p-generic-table__is-full-height":
|
|
5901
|
+
"aria-rowcount": oe.length + 1,
|
|
5902
|
+
className: G("p-generic-table__table", {
|
|
5903
|
+
"p-generic-table__is-full-height": te === "full-height",
|
|
5854
5904
|
"p-generic-table__is-selectable": n,
|
|
5855
5905
|
"p-generic-table__is-grouped": c !== void 0
|
|
5856
5906
|
}),
|
|
5857
5907
|
role: "grid",
|
|
5858
5908
|
children: [
|
|
5859
|
-
/* @__PURE__ */ p("thead", { children:
|
|
5860
|
-
/* @__PURE__ */ p(
|
|
5861
|
-
n && c &&
|
|
5909
|
+
/* @__PURE__ */ p("thead", { children: w.getHeaderGroups().map((S) => /* @__PURE__ */ p("tr", { role: "row", children: S.headers.filter(l).map((R, y) => /* @__PURE__ */ B(Mn, { children: [
|
|
5910
|
+
/* @__PURE__ */ p($r, { header: R }),
|
|
5911
|
+
n && c && (!h && y === 2 || h && y === 3) ? /* @__PURE__ */ p(
|
|
5862
5912
|
"th",
|
|
5863
5913
|
{
|
|
5864
5914
|
className: "p-generic-table__select-alignment",
|
|
5865
5915
|
role: "columnheader"
|
|
5866
5916
|
}
|
|
5867
5917
|
) : null
|
|
5868
|
-
] },
|
|
5918
|
+
] }, R.id)) }, S.id)) }),
|
|
5869
5919
|
/* @__PURE__ */ p(
|
|
5870
5920
|
"tbody",
|
|
5871
5921
|
{
|
|
5872
|
-
ref:
|
|
5922
|
+
ref: A,
|
|
5873
5923
|
style: {
|
|
5874
5924
|
overflowY: "auto",
|
|
5875
|
-
maxHeight:
|
|
5925
|
+
maxHeight: x
|
|
5876
5926
|
},
|
|
5877
|
-
children: d ?
|
|
5927
|
+
children: d ? k() : N()
|
|
5878
5928
|
}
|
|
5879
5929
|
)
|
|
5880
5930
|
]
|
|
@@ -5883,10 +5933,10 @@ const Wr = ({
|
|
|
5883
5933
|
]
|
|
5884
5934
|
}
|
|
5885
5935
|
);
|
|
5886
|
-
},
|
|
5936
|
+
}, Xr = ({
|
|
5887
5937
|
row: e
|
|
5888
5938
|
}) => /* @__PURE__ */ p(
|
|
5889
|
-
|
|
5939
|
+
Ce,
|
|
5890
5940
|
{
|
|
5891
5941
|
appearance: "base",
|
|
5892
5942
|
dense: !0,
|
|
@@ -5895,9 +5945,9 @@ const Wr = ({
|
|
|
5895
5945
|
e.toggleExpanded();
|
|
5896
5946
|
},
|
|
5897
5947
|
type: "button",
|
|
5898
|
-
children: e.getIsExpanded() ? /* @__PURE__ */ p(
|
|
5948
|
+
children: e.getIsExpanded() ? /* @__PURE__ */ p(we, { name: "minus", children: "Collapse" }) : /* @__PURE__ */ p(we, { name: "plus", children: "Expand" })
|
|
5899
5949
|
}
|
|
5900
|
-
),
|
|
5950
|
+
), In = {
|
|
5901
5951
|
DEFAULT: 4,
|
|
5902
5952
|
EXPANDED: 15
|
|
5903
5953
|
}, xe = {
|
|
@@ -5907,9 +5957,9 @@ const Wr = ({
|
|
|
5907
5957
|
COLON: ":",
|
|
5908
5958
|
COMMA: ","
|
|
5909
5959
|
}, Ze = (e, n = e.length) => {
|
|
5910
|
-
const t =
|
|
5960
|
+
const t = zr(e, n), { token: i, tokenStart: o, tokenEnd: a } = Vr(e, n);
|
|
5911
5961
|
return { context: t, token: i, tokenStart: o, tokenEnd: a };
|
|
5912
|
-
},
|
|
5962
|
+
}, zr = (e, n) => {
|
|
5913
5963
|
let t = 0;
|
|
5914
5964
|
for (let i = n - 1; i >= 0; i--) {
|
|
5915
5965
|
const o = e[i];
|
|
@@ -5924,17 +5974,17 @@ const Wr = ({
|
|
|
5924
5974
|
}
|
|
5925
5975
|
}
|
|
5926
5976
|
return "";
|
|
5927
|
-
},
|
|
5977
|
+
}, Vr = (e, n) => {
|
|
5928
5978
|
let t = n, i = n;
|
|
5929
5979
|
for (; i < e.length && /[^\s=(),]/.test(e[i]); )
|
|
5930
5980
|
i++;
|
|
5931
5981
|
for (; t > 0 && /[^\s=(),]/.test(e[t - 1]); )
|
|
5932
5982
|
t--;
|
|
5933
5983
|
return { token: e.slice(t, i), tokenStart: t, tokenEnd: i };
|
|
5934
|
-
},
|
|
5984
|
+
}, Dn = (e, n) => {
|
|
5935
5985
|
const t = e.charAt(n - 1);
|
|
5936
5986
|
return n > 0 && (t === xe.CLOSE_PAREN || t === xe.COMMA);
|
|
5937
|
-
},
|
|
5987
|
+
}, Qr = ({
|
|
5938
5988
|
className: e,
|
|
5939
5989
|
disabled: n = !1,
|
|
5940
5990
|
search: t,
|
|
@@ -5952,67 +6002,67 @@ const Wr = ({
|
|
|
5952
6002
|
highlightedIndex: -1,
|
|
5953
6003
|
showingMore: !1,
|
|
5954
6004
|
cursorPosition: 0
|
|
5955
|
-
}), u =
|
|
5956
|
-
const
|
|
5957
|
-
return !f.showingMore && l.length >
|
|
6005
|
+
}), u = Se(null), m = Se(null), v = Se(null), P = le(() => {
|
|
6006
|
+
const D = f.showingMore ? In.EXPANDED : In.DEFAULT, E = l.slice(0, D);
|
|
6007
|
+
return !f.showingMore && l.length > D ? [...E, { value: "Show more...", type: "more" }] : E;
|
|
5958
6008
|
}, [l, f.showingMore]), h = Q(
|
|
5959
|
-
(
|
|
5960
|
-
g(typeof
|
|
6009
|
+
(D) => {
|
|
6010
|
+
g(typeof D == "function" ? (E) => ({ ...E, ...D(E) }) : (E) => ({ ...E, ...D }));
|
|
5961
6011
|
},
|
|
5962
6012
|
[]
|
|
5963
|
-
),
|
|
5964
|
-
(
|
|
5965
|
-
u.current && !u.current.contains(
|
|
6013
|
+
), z = Q(
|
|
6014
|
+
(D) => {
|
|
6015
|
+
u.current && !u.current.contains(D.target) && h({
|
|
5966
6016
|
isVisible: !1,
|
|
5967
6017
|
highlightedIndex: -1
|
|
5968
6018
|
});
|
|
5969
6019
|
},
|
|
5970
6020
|
[h]
|
|
5971
|
-
),
|
|
5972
|
-
(
|
|
5973
|
-
const { tokenStart:
|
|
5974
|
-
if (
|
|
5975
|
-
const oe =
|
|
5976
|
-
return t.slice(0,
|
|
6021
|
+
), F = Q(
|
|
6022
|
+
(D, E) => {
|
|
6023
|
+
const { tokenStart: q, tokenEnd: Y } = E;
|
|
6024
|
+
if (D.type === "filter") {
|
|
6025
|
+
const oe = D.value + xe.COLON + xe.OPEN_PAREN;
|
|
6026
|
+
return t.slice(0, q) + oe + t.slice(Y);
|
|
5977
6027
|
}
|
|
5978
6028
|
if (o.length === 0) {
|
|
5979
|
-
const oe =
|
|
5980
|
-
return t.slice(0,
|
|
6029
|
+
const oe = D.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + D.value;
|
|
6030
|
+
return t.slice(0, q) + oe + t.slice(Y);
|
|
5981
6031
|
}
|
|
5982
|
-
const
|
|
5983
|
-
return t.slice(0,
|
|
6032
|
+
const Z = t.charAt(q - 1) === xe.EQUALS ? D.value : xe.EQUALS + D.value;
|
|
6033
|
+
return t.slice(0, q) + Z + t.slice(Y);
|
|
5984
6034
|
},
|
|
5985
6035
|
[t, o]
|
|
5986
|
-
),
|
|
5987
|
-
(
|
|
5988
|
-
const
|
|
5989
|
-
if (!
|
|
5990
|
-
if (
|
|
6036
|
+
), A = Q(
|
|
6037
|
+
(D) => {
|
|
6038
|
+
const E = P[D];
|
|
6039
|
+
if (!E) return;
|
|
6040
|
+
if (E.type === "more") {
|
|
5991
6041
|
h({ showingMore: !0 });
|
|
5992
6042
|
return;
|
|
5993
6043
|
}
|
|
5994
|
-
const
|
|
6044
|
+
const q = Ze(
|
|
5995
6045
|
t,
|
|
5996
6046
|
f.cursorPosition
|
|
5997
|
-
), Y =
|
|
6047
|
+
), Y = F(E, q), Z = q.tokenStart + (E.type === "filter" ? E.value.length + 2 : o.length === 0 ? E.type.length + E.value.length + 3 : E.value.length + 1), { context: oe, token: te } = Ze(
|
|
5998
6048
|
Y,
|
|
5999
|
-
|
|
6049
|
+
Z
|
|
6000
6050
|
);
|
|
6001
6051
|
a(oe), r(te), i(Y), setTimeout(() => {
|
|
6002
6052
|
v.current && (v.current.focus(), v.current.setSelectionRange(
|
|
6003
|
-
|
|
6004
|
-
|
|
6053
|
+
Z,
|
|
6054
|
+
Z
|
|
6005
6055
|
));
|
|
6006
6056
|
}, 0), h({
|
|
6007
6057
|
highlightedIndex: 0,
|
|
6008
6058
|
showingMore: !1,
|
|
6009
|
-
isVisible:
|
|
6010
|
-
cursorPosition:
|
|
6059
|
+
isVisible: E.type === "filter",
|
|
6060
|
+
cursorPosition: Z
|
|
6011
6061
|
});
|
|
6012
6062
|
},
|
|
6013
6063
|
[
|
|
6014
|
-
|
|
6015
|
-
|
|
6064
|
+
P,
|
|
6065
|
+
F,
|
|
6016
6066
|
t,
|
|
6017
6067
|
f.cursorPosition,
|
|
6018
6068
|
o,
|
|
@@ -6023,101 +6073,101 @@ const Wr = ({
|
|
|
6023
6073
|
]
|
|
6024
6074
|
), x = Q(() => {
|
|
6025
6075
|
if (!v.current) return;
|
|
6026
|
-
const
|
|
6076
|
+
const D = v.current.selectionStart || 0, { context: E, token: q } = Ze(
|
|
6027
6077
|
t,
|
|
6028
|
-
|
|
6078
|
+
D
|
|
6029
6079
|
);
|
|
6030
|
-
a(
|
|
6080
|
+
a(E), r(q), h((Y) => ({
|
|
6031
6081
|
...Y,
|
|
6032
|
-
isVisible: !
|
|
6033
|
-
cursorPosition:
|
|
6082
|
+
isVisible: !Dn(t, D),
|
|
6083
|
+
cursorPosition: D
|
|
6034
6084
|
}));
|
|
6035
6085
|
}, [t, a, r, h]), V = Q(
|
|
6036
|
-
(
|
|
6037
|
-
const { key:
|
|
6086
|
+
(D) => {
|
|
6087
|
+
const { key: E } = D;
|
|
6038
6088
|
if (f.isVisible) {
|
|
6039
|
-
const
|
|
6040
|
-
switch (
|
|
6089
|
+
const q = P.length;
|
|
6090
|
+
switch (E) {
|
|
6041
6091
|
case "Tab":
|
|
6042
6092
|
case "ArrowDown":
|
|
6043
|
-
|
|
6044
|
-
highlightedIndex: (f.highlightedIndex + 1) %
|
|
6093
|
+
D.preventDefault(), h({
|
|
6094
|
+
highlightedIndex: (f.highlightedIndex + 1) % q
|
|
6045
6095
|
});
|
|
6046
6096
|
return;
|
|
6047
6097
|
case "ArrowUp":
|
|
6048
|
-
|
|
6049
|
-
highlightedIndex: f.highlightedIndex <= 0 ?
|
|
6098
|
+
D.preventDefault(), h({
|
|
6099
|
+
highlightedIndex: f.highlightedIndex <= 0 ? q - 1 : f.highlightedIndex - 1
|
|
6050
6100
|
});
|
|
6051
6101
|
return;
|
|
6052
6102
|
case "Enter":
|
|
6053
|
-
|
|
6103
|
+
D.preventDefault(), f.highlightedIndex >= 0 ? A(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6054
6104
|
return;
|
|
6055
6105
|
case "Escape":
|
|
6056
|
-
|
|
6106
|
+
D.preventDefault(), h({
|
|
6057
6107
|
isVisible: !1,
|
|
6058
6108
|
highlightedIndex: -1
|
|
6059
6109
|
});
|
|
6060
6110
|
return;
|
|
6061
6111
|
}
|
|
6062
6112
|
}
|
|
6063
|
-
(
|
|
6113
|
+
(E === "ArrowLeft" || E === "ArrowRight" || E === "Home" || E === "End") && setTimeout(x, 0);
|
|
6064
6114
|
},
|
|
6065
6115
|
[
|
|
6066
6116
|
f,
|
|
6067
|
-
|
|
6117
|
+
P.length,
|
|
6068
6118
|
h,
|
|
6069
|
-
|
|
6119
|
+
A,
|
|
6070
6120
|
x
|
|
6071
6121
|
]
|
|
6072
|
-
),
|
|
6073
|
-
(
|
|
6074
|
-
const { key:
|
|
6075
|
-
(
|
|
6122
|
+
), H = Q(
|
|
6123
|
+
(D) => {
|
|
6124
|
+
const { key: E } = D;
|
|
6125
|
+
(E === "ArrowLeft" || E === "ArrowRight" || E === "Home" || E === "End") && x();
|
|
6076
6126
|
},
|
|
6077
6127
|
[x]
|
|
6078
|
-
),
|
|
6128
|
+
), J = Q(() => {
|
|
6079
6129
|
h({
|
|
6080
6130
|
isVisible: !0,
|
|
6081
6131
|
highlightedIndex: 0
|
|
6082
6132
|
});
|
|
6083
|
-
}, [h]),
|
|
6084
|
-
(
|
|
6085
|
-
var
|
|
6086
|
-
const
|
|
6087
|
-
|
|
6088
|
-
|
|
6133
|
+
}, [h]), U = Q(
|
|
6134
|
+
(D) => {
|
|
6135
|
+
var Z;
|
|
6136
|
+
const E = ((Z = v.current) == null ? void 0 : Z.selectionStart) || D.length, { context: q, token: Y } = Ze(
|
|
6137
|
+
D,
|
|
6138
|
+
E
|
|
6089
6139
|
);
|
|
6090
|
-
a(
|
|
6140
|
+
a(q), r(Y), i(D), h({
|
|
6091
6141
|
highlightedIndex: 0,
|
|
6092
|
-
isVisible: !
|
|
6142
|
+
isVisible: !Dn(D, E),
|
|
6093
6143
|
showingMore: !1,
|
|
6094
|
-
cursorPosition:
|
|
6144
|
+
cursorPosition: E
|
|
6095
6145
|
});
|
|
6096
6146
|
},
|
|
6097
6147
|
[a, r, i, h]
|
|
6098
|
-
),
|
|
6148
|
+
), pe = Q(() => {
|
|
6099
6149
|
setTimeout(x, 0);
|
|
6100
|
-
}, [x]),
|
|
6150
|
+
}, [x]), se = Q(() => {
|
|
6101
6151
|
h({
|
|
6102
6152
|
isVisible: !1,
|
|
6103
6153
|
highlightedIndex: -1
|
|
6104
6154
|
});
|
|
6105
|
-
}, [h]),
|
|
6106
|
-
(
|
|
6107
|
-
h({ highlightedIndex:
|
|
6155
|
+
}, [h]), ve = Q(
|
|
6156
|
+
(D) => {
|
|
6157
|
+
h({ highlightedIndex: D });
|
|
6108
6158
|
},
|
|
6109
6159
|
[h]
|
|
6110
6160
|
);
|
|
6111
|
-
return
|
|
6161
|
+
return Re(() => (document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z)), [z]), /* @__PURE__ */ B(
|
|
6112
6162
|
"div",
|
|
6113
6163
|
{
|
|
6114
|
-
className:
|
|
6164
|
+
className: G("p-query-input", e),
|
|
6115
6165
|
"data-testid": "p-query-input",
|
|
6116
6166
|
ref: u,
|
|
6117
6167
|
...d,
|
|
6118
6168
|
children: [
|
|
6119
6169
|
/* @__PURE__ */ p(
|
|
6120
|
-
|
|
6170
|
+
jn,
|
|
6121
6171
|
{
|
|
6122
6172
|
disabled: n,
|
|
6123
6173
|
placeholder: c,
|
|
@@ -6127,12 +6177,12 @@ const Wr = ({
|
|
|
6127
6177
|
id: "query-input",
|
|
6128
6178
|
name: "query-input",
|
|
6129
6179
|
ref: v,
|
|
6130
|
-
onFocus:
|
|
6131
|
-
onChange:
|
|
6180
|
+
onFocus: J,
|
|
6181
|
+
onChange: U,
|
|
6132
6182
|
onKeyDown: V,
|
|
6133
|
-
onKeyUp:
|
|
6134
|
-
onClear:
|
|
6135
|
-
onClick:
|
|
6183
|
+
onKeyUp: H,
|
|
6184
|
+
onClear: se,
|
|
6185
|
+
onClick: pe,
|
|
6136
6186
|
"aria-disabled": n,
|
|
6137
6187
|
"aria-expanded": f.isVisible,
|
|
6138
6188
|
"aria-haspopup": "listbox",
|
|
@@ -6147,42 +6197,42 @@ const Wr = ({
|
|
|
6147
6197
|
id: "query-suggestions",
|
|
6148
6198
|
role: "listbox",
|
|
6149
6199
|
"aria-label": "Search suggestions",
|
|
6150
|
-
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) :
|
|
6200
|
+
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(qt, { text: "Loading..." }) }) : P.map((D, E) => /* @__PURE__ */ B(
|
|
6151
6201
|
"li",
|
|
6152
6202
|
{
|
|
6153
|
-
className:
|
|
6154
|
-
highlight:
|
|
6203
|
+
className: G("p-query-input__item", {
|
|
6204
|
+
highlight: E === f.highlightedIndex
|
|
6155
6205
|
}),
|
|
6156
|
-
onClick: () =>
|
|
6157
|
-
onKeyDown: () =>
|
|
6158
|
-
onMouseEnter: () =>
|
|
6206
|
+
onClick: () => A(E),
|
|
6207
|
+
onKeyDown: () => A(E),
|
|
6208
|
+
onMouseEnter: () => ve(E),
|
|
6159
6209
|
role: "option",
|
|
6160
|
-
"aria-selected":
|
|
6210
|
+
"aria-selected": E === f.highlightedIndex,
|
|
6161
6211
|
tabIndex: -1,
|
|
6162
6212
|
children: [
|
|
6163
|
-
/* @__PURE__ */
|
|
6213
|
+
/* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
|
|
6164
6214
|
/* @__PURE__ */ p(
|
|
6165
6215
|
"span",
|
|
6166
6216
|
{
|
|
6167
|
-
className:
|
|
6168
|
-
"u-text--muted":
|
|
6217
|
+
className: G({
|
|
6218
|
+
"u-text--muted": D.type === "more"
|
|
6169
6219
|
}),
|
|
6170
|
-
children:
|
|
6220
|
+
children: D.value
|
|
6171
6221
|
}
|
|
6172
6222
|
),
|
|
6173
|
-
|
|
6223
|
+
D.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
|
|
6174
6224
|
] }),
|
|
6175
|
-
|
|
6225
|
+
D.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: D.type })
|
|
6176
6226
|
]
|
|
6177
6227
|
},
|
|
6178
|
-
`${
|
|
6228
|
+
`${D.value}-${E}`
|
|
6179
6229
|
))
|
|
6180
6230
|
}
|
|
6181
6231
|
)
|
|
6182
6232
|
]
|
|
6183
6233
|
}
|
|
6184
6234
|
);
|
|
6185
|
-
},
|
|
6235
|
+
}, Jr = ({ value: e, unit: n }, {
|
|
6186
6236
|
binary: t = !1,
|
|
6187
6237
|
convertTo: i,
|
|
6188
6238
|
decimals: o = 2,
|
|
@@ -6204,30 +6254,30 @@ const Wr = ({
|
|
|
6204
6254
|
};
|
|
6205
6255
|
export {
|
|
6206
6256
|
ot as ContentSection,
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6257
|
+
oi as DynamicTable,
|
|
6258
|
+
Gr as ExternalLink,
|
|
6259
|
+
Ia as FileUpload,
|
|
6260
|
+
Kr as FileUploadContainer,
|
|
6261
|
+
Kt as FormSection,
|
|
6262
|
+
Yr as GenericTable,
|
|
6263
|
+
Xr as GroupRowActions,
|
|
6264
|
+
zn as InputGroup,
|
|
6265
|
+
Ln as MainToolbar,
|
|
6266
|
+
Vi as Meter,
|
|
6267
|
+
Wr as MultiSelect,
|
|
6268
|
+
Aa as MultiSelectDropdown,
|
|
6219
6269
|
re as Navigation,
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6270
|
+
po as NavigationBar,
|
|
6271
|
+
Br as NestedFormGroup,
|
|
6272
|
+
_o as Pagination,
|
|
6273
|
+
Ro as PaginationContainer,
|
|
6274
|
+
Gi as Placeholder,
|
|
6275
|
+
qi as ProgressIndicator,
|
|
6276
|
+
Qr as QueryInput,
|
|
6277
|
+
Ur as Stepper,
|
|
6278
|
+
ri as TableCaption,
|
|
6279
|
+
qr as defaultFilledColors,
|
|
6280
|
+
Jr as formatBytes,
|
|
6231
6281
|
Ie as meterColor,
|
|
6232
6282
|
Oe as testIds
|
|
6233
6283
|
};
|