@canonical/maas-react-components 1.34.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as B, jsx as
|
|
1
|
+
import { jsxs as B, jsx as p, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import * as ue from "react";
|
|
3
|
-
import
|
|
4
|
-
import { useListener as
|
|
5
|
-
function
|
|
3
|
+
import Ci, { useRef as be, useState as ge, useEffect as Ce, useCallback as X, cloneElement as _i, createContext as $n, useId as et, useContext as Lt, useMemo as se, useReducer as An, forwardRef as Ri, useImperativeHandle as Ei, Fragment as Mn, useLayoutEffect as On } from "react";
|
|
4
|
+
import { useListener as ki, Link as Fi, Spinner as Ht, Tooltip as qt, Button as _e, Icon as Re, Row as Pi, Col as Ii, Input as Di, Label as $i, CheckboxInput as Ai, useClickOutside as Mi, useOnEscapePressed as Oi, SearchBox as jn, Select as ji, ICONS as Zt } from "@canonical/react-components";
|
|
5
|
+
function Gt(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 en;
|
|
15
|
+
function Ti() {
|
|
16
|
+
return en || (en = 1, function(e) {
|
|
17
17
|
(function() {
|
|
18
18
|
var n = {}.hasOwnProperty;
|
|
19
19
|
function t() {
|
|
@@ -44,8 +44,8 @@ function ji() {
|
|
|
44
44
|
})();
|
|
45
45
|
}(ft)), ft.exports;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const q = /* @__PURE__ */
|
|
47
|
+
var zi = Ti();
|
|
48
|
+
const q = /* @__PURE__ */ Gt(zi), Ie = {
|
|
49
49
|
caution: "#F99B11",
|
|
50
50
|
light: "#F7F7F7",
|
|
51
51
|
linkFaded: "#D3E4ED",
|
|
@@ -59,10 +59,10 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
59
59
|
Ie.positive,
|
|
60
60
|
Ie.negative,
|
|
61
61
|
Ie.caution
|
|
62
|
-
],
|
|
62
|
+
], Vi = Ie.linkFaded, Tn = Ie.caution, It = Ie.light, tn = 2, nn = 1, on = (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 * tn ? t / n : tn;
|
|
66
66
|
}, Oe = {
|
|
67
67
|
bar: "meter-bar",
|
|
68
68
|
container: "meter-container",
|
|
@@ -70,7 +70,7 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
70
70
|
label: "meter-label",
|
|
71
71
|
meteroverflow: "meter-overflow",
|
|
72
72
|
segments: "meter-segments"
|
|
73
|
-
},
|
|
73
|
+
}, Ni = ({
|
|
74
74
|
className: e,
|
|
75
75
|
children: n,
|
|
76
76
|
data: t,
|
|
@@ -81,12 +81,12 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
81
81
|
}) => {
|
|
82
82
|
const l = be(null), s = t == null ? void 0 : t.reduce((m, v) => m + v.value, 0), c = i || s, d = t.map((m) => m.value / c * 100), [f, g] = ge(0);
|
|
83
83
|
Ce(() => {
|
|
84
|
-
g(o === "segmented" ?
|
|
84
|
+
g(o === "segmented" ? on(l, c) : 0);
|
|
85
85
|
}, [c, o]);
|
|
86
|
-
const
|
|
87
|
-
g(
|
|
86
|
+
const u = X(() => {
|
|
87
|
+
g(on(l, c));
|
|
88
88
|
}, [l, c, g]);
|
|
89
|
-
return
|
|
89
|
+
return ki(window, u, "resize", !0, o === "segmented"), /* @__PURE__ */ B(
|
|
90
90
|
"div",
|
|
91
91
|
{
|
|
92
92
|
className: q("p-meter", e, {
|
|
@@ -96,8 +96,8 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
96
96
|
"data-testid": Oe.container,
|
|
97
97
|
ref: l,
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
99
|
+
/* @__PURE__ */ p(Li, { children: /* @__PURE__ */ p(
|
|
100
|
+
Hi,
|
|
101
101
|
{
|
|
102
102
|
data: t,
|
|
103
103
|
datumWidths: d,
|
|
@@ -111,15 +111,15 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
|
-
},
|
|
114
|
+
}, Li = ({ 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: Vi },
|
|
120
120
|
children: e
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), Hi = ({
|
|
123
123
|
data: e,
|
|
124
124
|
datumWidths: n,
|
|
125
125
|
maximum: t,
|
|
@@ -136,20 +136,20 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
136
136
|
background: `repeating-linear-gradient(
|
|
137
137
|
to right,
|
|
138
138
|
transparent 0,
|
|
139
|
-
transparent ${i -
|
|
140
|
-
${It} ${i -
|
|
139
|
+
transparent ${i - nn}px,
|
|
140
|
+
${It} ${i - nn}px,
|
|
141
141
|
${It} ${i}px
|
|
142
142
|
)`
|
|
143
143
|
});
|
|
144
144
|
return /* @__PURE__ */ B(we, { children: [
|
|
145
|
-
o() ? /* @__PURE__ */
|
|
145
|
+
o() ? /* @__PURE__ */ p(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: "p-meter__filled",
|
|
149
149
|
"data-testid": Oe.meteroverflow,
|
|
150
150
|
style: { backgroundColor: Tn, width: "100%" }
|
|
151
151
|
}
|
|
152
|
-
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */
|
|
152
|
+
) : e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ p(
|
|
153
153
|
"div",
|
|
154
154
|
{
|
|
155
155
|
className: "p-meter__filled",
|
|
@@ -158,7 +158,7 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
158
158
|
},
|
|
159
159
|
`meter-${s}`
|
|
160
160
|
)),
|
|
161
|
-
i > 0 && /* @__PURE__ */
|
|
161
|
+
i > 0 && /* @__PURE__ */ p(
|
|
162
162
|
"div",
|
|
163
163
|
{
|
|
164
164
|
className: "p-meter__separators",
|
|
@@ -167,10 +167,10 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
167
167
|
}
|
|
168
168
|
)
|
|
169
169
|
] });
|
|
170
|
-
},
|
|
170
|
+
}, qi = ({
|
|
171
171
|
className: e,
|
|
172
172
|
children: n
|
|
173
|
-
}) => /* @__PURE__ */
|
|
173
|
+
}) => /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: q("p-meter__label", e),
|
|
@@ -178,47 +178,47 @@ const q = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
178
178
|
children: n
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
|
-
|
|
182
|
-
const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */
|
|
181
|
+
Ni.Label = qi;
|
|
182
|
+
const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ p(Fi, { ...t, href: n, rel: "noreferrer noopener", target: "_blank", children: e }), Gi = ({
|
|
183
183
|
percentComplete: e
|
|
184
184
|
}) => /* @__PURE__ */ B("small", { className: "progress-indicator", children: [
|
|
185
185
|
e,
|
|
186
186
|
"% ",
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
] }),
|
|
187
|
+
/* @__PURE__ */ p(Ht, { className: "progress-indicator__spinner" })
|
|
188
|
+
] }), Bi = ({
|
|
189
189
|
text: e,
|
|
190
190
|
children: n,
|
|
191
191
|
className: t,
|
|
192
192
|
isPending: i = !1
|
|
193
193
|
}) => {
|
|
194
194
|
const o = Math.floor(Math.random() * 750);
|
|
195
|
-
return i ? /* @__PURE__ */
|
|
195
|
+
return i ? /* @__PURE__ */ p(
|
|
196
196
|
"span",
|
|
197
197
|
{
|
|
198
198
|
"aria-label": "loading",
|
|
199
199
|
className: q("p-placeholder", t),
|
|
200
200
|
role: "progressbar",
|
|
201
201
|
style: { animationDelay: `${o}ms` },
|
|
202
|
-
children: /* @__PURE__ */
|
|
202
|
+
children: /* @__PURE__ */ p("span", { "aria-hidden": "true", children: e || n || "Loading" })
|
|
203
203
|
}
|
|
204
|
-
) : /* @__PURE__ */
|
|
205
|
-
},
|
|
204
|
+
) : /* @__PURE__ */ p(we, { children: n });
|
|
205
|
+
}, Ui = ({ children: e }) => /* @__PURE__ */ p(we, { children: e }), Ki = ({
|
|
206
206
|
isCollapsed: e,
|
|
207
207
|
setIsCollapsed: n,
|
|
208
208
|
className: t
|
|
209
|
-
}) => /* @__PURE__ */
|
|
210
|
-
|
|
209
|
+
}) => /* @__PURE__ */ p(
|
|
210
|
+
qt,
|
|
211
211
|
{
|
|
212
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
213
213
|
message: /* @__PURE__ */ B(we, { children: [
|
|
214
214
|
e ? "expand" : "collapse",
|
|
215
215
|
"( ",
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ p("code", { children: "[" }),
|
|
217
217
|
" )"
|
|
218
218
|
] }),
|
|
219
219
|
position: "right",
|
|
220
220
|
tooltipClassName: "p-side-navigation__tooltip",
|
|
221
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ p(
|
|
222
222
|
_e,
|
|
223
223
|
{
|
|
224
224
|
appearance: "base",
|
|
@@ -230,25 +230,25 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
|
|
|
230
230
|
onClick: (i) => {
|
|
231
231
|
n(!e), i.stopPropagation(), i.currentTarget.blur();
|
|
232
232
|
},
|
|
233
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ p(Re, { light: !0, name: "sidebar-toggle" })
|
|
234
234
|
}
|
|
235
235
|
)
|
|
236
236
|
}
|
|
237
|
-
),
|
|
237
|
+
), Wi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__content", children: /* @__PURE__ */ p("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Yi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__controls u-no-margin--top", children: e }), Xi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ p("div", { className: "p-panel is-dark", children: e }) }), Qi = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__footer", children: e }), Ji = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-panel__header", children: e }), Zi = ({ light: e = !0, name: n }) => /* @__PURE__ */ p(Re, { className: "p-side-navigation__icon", light: e, name: n }), eo = ({ children: e, className: n, hasActiveChild: t }) => /* @__PURE__ */ p("li", { className: q("p-side-navigation__item", n, { "has-active-child": t }), children: e }), to = ({ children: e, id: n, variant: t = "base" }) => /* @__PURE__ */ p("span", { className: q("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: n, children: e }), no = ({
|
|
238
238
|
as: e,
|
|
239
239
|
...n
|
|
240
|
-
}) => /* @__PURE__ */
|
|
240
|
+
}) => /* @__PURE__ */ p(
|
|
241
241
|
e || "a",
|
|
242
242
|
{
|
|
243
243
|
className: q("p-side-navigation__link", n.className),
|
|
244
244
|
...n
|
|
245
245
|
}
|
|
246
|
-
),
|
|
246
|
+
), io = ({ children: e, className: n }) => /* @__PURE__ */ p("ul", { className: q("p-side-navigation__list", n), children: e }), oo = ({
|
|
247
247
|
as: e,
|
|
248
248
|
children: n,
|
|
249
249
|
className: t,
|
|
250
250
|
...i
|
|
251
|
-
}) => /* @__PURE__ */
|
|
251
|
+
}) => /* @__PURE__ */ p(e || "a", { className: q("p-panel__logo", t), ...i, children: /* @__PURE__ */ p("div", { className: "p-navigation__tagged-logo", children: n }) }), ao = ({ children: e }) => _i(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), ro = ({ children: e, variant: n = "base" }) => /* @__PURE__ */ p(
|
|
252
252
|
"div",
|
|
253
253
|
{
|
|
254
254
|
className: q("p-panel__logo-name is-fading-when-collapsed", {
|
|
@@ -256,11 +256,11 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
|
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
258
258
|
}
|
|
259
|
-
),
|
|
259
|
+
), lo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-navigation__logo-tag", children: e }), so = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-panel__logo-text", children: e }), co = ({
|
|
260
260
|
children: e,
|
|
261
261
|
className: n,
|
|
262
262
|
onClick: t
|
|
263
|
-
}) => /* @__PURE__ */
|
|
263
|
+
}) => /* @__PURE__ */ p(
|
|
264
264
|
_e,
|
|
265
265
|
{
|
|
266
266
|
appearance: "base",
|
|
@@ -271,31 +271,31 @@ const Gr = ({ children: e, to: n, ...t }) => /* @__PURE__ */ u(ki, { ...t, href:
|
|
|
271
271
|
onClick: (i) => {
|
|
272
272
|
t && t(i), i.stopPropagation(), i.currentTarget.blur();
|
|
273
273
|
},
|
|
274
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ p(we, { children: e })
|
|
275
275
|
}
|
|
276
|
-
),
|
|
277
|
-
le.Header =
|
|
278
|
-
le.Banner =
|
|
279
|
-
le.Drawer =
|
|
280
|
-
le.Controls =
|
|
281
|
-
le.CollapseToggle =
|
|
282
|
-
le.Content =
|
|
283
|
-
le.Footer =
|
|
284
|
-
le.List =
|
|
285
|
-
le.Item =
|
|
286
|
-
le.Link =
|
|
287
|
-
le.Text =
|
|
288
|
-
le.Icon =
|
|
289
|
-
le.Label =
|
|
290
|
-
le.Logo =
|
|
291
|
-
le.LogoTag =
|
|
292
|
-
le.LogoIcon =
|
|
293
|
-
le.LogoName =
|
|
294
|
-
le.LogoText =
|
|
295
|
-
|
|
296
|
-
const
|
|
276
|
+
), po = ({ children: e }) => /* @__PURE__ */ p("span", { className: "p-side-navigation__text", children: e }), le = ({ children: e, className: n, isCollapsed: t }) => /* @__PURE__ */ p("header", { "aria-label": "main navigation", className: q("l-navigation is-maas", n, { "is-collapsed": t, "is-pinned": !t }), children: e }), uo = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ p("div", { className: q("p-panel is-dark", n), children: e }) });
|
|
277
|
+
le.Header = Ji;
|
|
278
|
+
le.Banner = Ui;
|
|
279
|
+
le.Drawer = Xi;
|
|
280
|
+
le.Controls = Yi;
|
|
281
|
+
le.CollapseToggle = Ki;
|
|
282
|
+
le.Content = Wi;
|
|
283
|
+
le.Footer = Qi;
|
|
284
|
+
le.List = io;
|
|
285
|
+
le.Item = eo;
|
|
286
|
+
le.Link = no;
|
|
287
|
+
le.Text = po;
|
|
288
|
+
le.Icon = Zi;
|
|
289
|
+
le.Label = to;
|
|
290
|
+
le.Logo = oo;
|
|
291
|
+
le.LogoTag = lo;
|
|
292
|
+
le.LogoIcon = ao;
|
|
293
|
+
le.LogoName = ro;
|
|
294
|
+
le.LogoText = so;
|
|
295
|
+
uo.MenuButton = co;
|
|
296
|
+
const Bt = $n(null), zn = ({ children: e }) => {
|
|
297
297
|
const n = et();
|
|
298
|
-
return /* @__PURE__ */
|
|
298
|
+
return /* @__PURE__ */ p(Bt.Provider, { value: n, children: /* @__PURE__ */ p(
|
|
299
299
|
"div",
|
|
300
300
|
{
|
|
301
301
|
role: "group",
|
|
@@ -305,20 +305,20 @@ const Ut = $n(null), zn = ({ children: e }) => {
|
|
|
305
305
|
children: e
|
|
306
306
|
}
|
|
307
307
|
) });
|
|
308
|
-
}, uo = ({ children: e }) => {
|
|
309
|
-
const n = Ht(Ut);
|
|
310
|
-
return /* @__PURE__ */ u("label", { id: `${n}_label`, children: e });
|
|
311
308
|
}, go = ({ children: e }) => {
|
|
312
|
-
const n =
|
|
313
|
-
return /* @__PURE__ */
|
|
309
|
+
const n = Lt(Bt);
|
|
310
|
+
return /* @__PURE__ */ p("label", { id: `${n}_label`, children: e });
|
|
311
|
+
}, fo = ({ children: e }) => {
|
|
312
|
+
const n = Lt(Bt);
|
|
313
|
+
return /* @__PURE__ */ p("p", { className: "p-form-help-text", id: `${n}_description`, children: e });
|
|
314
314
|
};
|
|
315
|
-
zn.Label =
|
|
316
|
-
zn.Description =
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
function
|
|
315
|
+
zn.Label = go;
|
|
316
|
+
zn.Description = fo;
|
|
317
|
+
const Ut = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section", children: e }), mo = ({ children: e }) => /* @__PURE__ */ p("h5", { className: "p-form-section__title u-no-padding--top", children: e }), vo = ({ children: e }) => /* @__PURE__ */ p("p", { className: "p-form-help-text", children: e }), xo = ({ children: e }) => /* @__PURE__ */ p("div", { className: "p-form-section__content", children: e });
|
|
318
|
+
Ut.Title = mo;
|
|
319
|
+
Ut.Description = vo;
|
|
320
|
+
Ut.Content = xo;
|
|
321
|
+
function ho(e) {
|
|
322
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();
|
|
@@ -336,23 +336,23 @@ function xo(e) {
|
|
|
336
336
|
}
|
|
337
337
|
const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
338
338
|
}]), Ln = ({ children: e }) => {
|
|
339
|
-
const n = ue.useRef(null), t =
|
|
340
|
-
return /* @__PURE__ */
|
|
339
|
+
const n = ue.useRef(null), t = ho(n), [i, o] = ue.useState(!1);
|
|
340
|
+
return /* @__PURE__ */ p(
|
|
341
341
|
"header",
|
|
342
342
|
{
|
|
343
343
|
className: q("main-toolbar", {
|
|
344
344
|
"main-toolbar--stacked": i
|
|
345
345
|
}),
|
|
346
346
|
ref: n,
|
|
347
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ p(Vn.Provider, { value: t, children: /* @__PURE__ */ p(Nn.Provider, { value: [i, o], children: e }) })
|
|
348
348
|
}
|
|
349
349
|
);
|
|
350
|
-
},
|
|
350
|
+
}, wo = ({
|
|
351
351
|
as: e,
|
|
352
352
|
children: n,
|
|
353
353
|
className: t,
|
|
354
354
|
...i
|
|
355
|
-
}) => /* @__PURE__ */
|
|
355
|
+
}) => /* @__PURE__ */ p(
|
|
356
356
|
e || "h1",
|
|
357
357
|
{
|
|
358
358
|
className: q("main-toolbar__title p-heading--4", t),
|
|
@@ -360,12 +360,12 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
360
360
|
...i,
|
|
361
361
|
children: n
|
|
362
362
|
}
|
|
363
|
-
),
|
|
363
|
+
), yo = ({ children: e }) => {
|
|
364
364
|
const n = ue.useContext(Vn), [t, i] = ue.useContext(Nn), o = ue.useRef(null);
|
|
365
365
|
return ue.useEffect(() => {
|
|
366
366
|
!o.current || !n || i(o.current.getBoundingClientRect().width > n.width);
|
|
367
367
|
}, [i, n, o]), /* @__PURE__ */ B(we, { children: [
|
|
368
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ p(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
371
371
|
"aria-hidden": "true",
|
|
@@ -375,7 +375,7 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
375
375
|
children: e
|
|
376
376
|
}
|
|
377
377
|
),
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ p(
|
|
379
379
|
"div",
|
|
380
380
|
{
|
|
381
381
|
className: q("main-toolbar__controls", {
|
|
@@ -386,8 +386,8 @@ const Vn = ue.createContext(null), Nn = ue.createContext([!1, () => {
|
|
|
386
386
|
)
|
|
387
387
|
] });
|
|
388
388
|
};
|
|
389
|
-
Ln.Title =
|
|
390
|
-
Ln.Controls =
|
|
389
|
+
Ln.Title = wo;
|
|
390
|
+
Ln.Controls = yo;
|
|
391
391
|
const ot = ({
|
|
392
392
|
children: e,
|
|
393
393
|
className: n,
|
|
@@ -396,24 +396,24 @@ const ot = ({
|
|
|
396
396
|
...o
|
|
397
397
|
}) => {
|
|
398
398
|
const a = t || "section", r = q("content-section", n);
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
},
|
|
399
|
+
return /* @__PURE__ */ p(a, { ...o, className: r, children: /* @__PURE__ */ p(Pi, { children: /* @__PURE__ */ p(Ii, { size: i === "narrow" ? 6 : 12, children: /* @__PURE__ */ p(we, { children: e }) }) }) });
|
|
400
|
+
}, bo = ({ children: e, className: n, as: t, ...i }) => /* @__PURE__ */ p(
|
|
401
401
|
t || "h1",
|
|
402
402
|
{
|
|
403
403
|
...i,
|
|
404
404
|
className: q("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 =
|
|
407
|
+
), So = ({ children: e, className: n }) => /* @__PURE__ */ p("header", { className: q("content-section__header", n), children: e }), Co = ({ children: e, className: n }) => /* @__PURE__ */ p("div", { className: q("content-section__body", n), children: e }), _o = ({ children: e, className: n }) => /* @__PURE__ */ p("footer", { className: q("content-section__footer", n), children: e });
|
|
408
|
+
ot.Title = bo;
|
|
409
|
+
ot.Header = So;
|
|
410
|
+
ot.Content = Co;
|
|
411
|
+
ot.Footer = _o;
|
|
412
412
|
const Hn = ({
|
|
413
413
|
children: e,
|
|
414
414
|
className: n,
|
|
415
415
|
isVisible: t
|
|
416
|
-
}) => /* @__PURE__ */
|
|
416
|
+
}) => /* @__PURE__ */ p(
|
|
417
417
|
"div",
|
|
418
418
|
{
|
|
419
419
|
className: q("fade-in--down", n),
|
|
@@ -424,7 +424,7 @@ const Hn = ({
|
|
|
424
424
|
), Br = ({
|
|
425
425
|
children: e,
|
|
426
426
|
...n
|
|
427
|
-
}) => /* @__PURE__ */
|
|
427
|
+
}) => /* @__PURE__ */ p(Hn, { isVisible: !n["aria-hidden"], children: /* @__PURE__ */ p("div", { className: "p-form__nested-group", ...n, children: e }) }), Ro = ({
|
|
428
428
|
className: e,
|
|
429
429
|
currentPage: n,
|
|
430
430
|
error: t,
|
|
@@ -435,13 +435,13 @@ const Hn = ({
|
|
|
435
435
|
onPreviousClick: l,
|
|
436
436
|
totalPages: s,
|
|
437
437
|
...c
|
|
438
|
-
}) => /* @__PURE__ */
|
|
438
|
+
}) => /* @__PURE__ */ p(
|
|
439
439
|
"nav",
|
|
440
440
|
{
|
|
441
441
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
442
442
|
className: q("p-pagination", e),
|
|
443
443
|
children: /* @__PURE__ */ B("span", { className: "p-pagination--items", children: [
|
|
444
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ p(
|
|
445
445
|
_e,
|
|
446
446
|
{
|
|
447
447
|
"aria-label": "Previous page",
|
|
@@ -449,13 +449,13 @@ const Hn = ({
|
|
|
449
449
|
disabled: n === 1 || i,
|
|
450
450
|
onClick: l,
|
|
451
451
|
type: "button",
|
|
452
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ p(Re, { name: "chevron-down" })
|
|
453
453
|
}
|
|
454
454
|
),
|
|
455
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ p("strong", { children: "Page " }),
|
|
456
456
|
" ",
|
|
457
|
-
/* @__PURE__ */
|
|
458
|
-
|
|
457
|
+
/* @__PURE__ */ p(
|
|
458
|
+
Di,
|
|
459
459
|
{
|
|
460
460
|
"aria-label": "page number",
|
|
461
461
|
className: "p-pagination__input",
|
|
@@ -474,7 +474,7 @@ const Hn = ({
|
|
|
474
474
|
" of ",
|
|
475
475
|
s
|
|
476
476
|
] }),
|
|
477
|
-
/* @__PURE__ */
|
|
477
|
+
/* @__PURE__ */ p(
|
|
478
478
|
_e,
|
|
479
479
|
{
|
|
480
480
|
"aria-label": "Next page",
|
|
@@ -482,20 +482,20 @@ const Hn = ({
|
|
|
482
482
|
disabled: n === s || i,
|
|
483
483
|
onClick: r,
|
|
484
484
|
type: "button",
|
|
485
|
-
children: /* @__PURE__ */
|
|
485
|
+
children: /* @__PURE__ */ p(Re, { name: "chevron-up" })
|
|
486
486
|
}
|
|
487
487
|
)
|
|
488
488
|
] })
|
|
489
489
|
}
|
|
490
|
-
),
|
|
490
|
+
), Eo = ({
|
|
491
491
|
currentPage: e,
|
|
492
492
|
disabled: n,
|
|
493
493
|
paginate: t,
|
|
494
494
|
totalPages: i
|
|
495
495
|
}) => {
|
|
496
496
|
const [o, a] = ge(e), [r, l] = ge("");
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
|
|
497
|
+
return /* @__PURE__ */ p(
|
|
498
|
+
Ro,
|
|
499
499
|
{
|
|
500
500
|
currentPage: o,
|
|
501
501
|
error: r,
|
|
@@ -504,8 +504,8 @@ const Hn = ({
|
|
|
504
504
|
a(e), l("");
|
|
505
505
|
},
|
|
506
506
|
onInputChange: (g) => {
|
|
507
|
-
const { value:
|
|
508
|
-
|
|
507
|
+
const { value: u, valueAsNumber: m } = g.target;
|
|
508
|
+
u ? (a(m), m > i || m < 1 ? l(`${m} is not a valid page number.`) : (l(""), t(m))) : l("Enter a page number.");
|
|
509
509
|
},
|
|
510
510
|
onNextClick: () => {
|
|
511
511
|
a((g) => Number(g) + 1), t(Number(e) + 1);
|
|
@@ -516,9 +516,9 @@ const Hn = ({
|
|
|
516
516
|
totalPages: i
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
|
-
}, Ur = ({ activeStep: e, items: n }) => /* @__PURE__ */
|
|
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
|
-
return /* @__PURE__ */
|
|
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,
|
|
@@ -539,11 +539,11 @@ 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,
|
|
542
|
+
var an;
|
|
543
|
+
function ko() {
|
|
544
|
+
if (an) return K;
|
|
545
|
+
an = 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, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
547
547
|
function k(x) {
|
|
548
548
|
if (typeof x == "object" && x !== null) {
|
|
549
549
|
var V = x.$$typeof;
|
|
@@ -562,7 +562,7 @@ function Eo() {
|
|
|
562
562
|
case l:
|
|
563
563
|
case d:
|
|
564
564
|
case m:
|
|
565
|
-
case
|
|
565
|
+
case u:
|
|
566
566
|
case r:
|
|
567
567
|
return x;
|
|
568
568
|
default:
|
|
@@ -577,7 +577,7 @@ function Eo() {
|
|
|
577
577
|
function M(x) {
|
|
578
578
|
return k(x) === c;
|
|
579
579
|
}
|
|
580
|
-
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo =
|
|
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
581
|
return M(x) || k(x) === s;
|
|
582
582
|
}, K.isConcurrentMode = M, K.isContextConsumer = function(x) {
|
|
583
583
|
return k(x) === l;
|
|
@@ -592,7 +592,7 @@ function Eo() {
|
|
|
592
592
|
}, K.isLazy = function(x) {
|
|
593
593
|
return k(x) === m;
|
|
594
594
|
}, K.isMemo = function(x) {
|
|
595
|
-
return k(x) ===
|
|
595
|
+
return k(x) === u;
|
|
596
596
|
}, K.isPortal = function(x) {
|
|
597
597
|
return k(x) === t;
|
|
598
598
|
}, K.isProfiler = function(x) {
|
|
@@ -602,7 +602,7 @@ function Eo() {
|
|
|
602
602
|
}, K.isSuspense = function(x) {
|
|
603
603
|
return k(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 ===
|
|
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 === E || x.$$typeof === h || x.$$typeof === A || x.$$typeof === v);
|
|
606
606
|
}, K.typeOf = k, K;
|
|
607
607
|
}
|
|
608
608
|
var W = {};
|
|
@@ -614,13 +614,13 @@ 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,
|
|
617
|
+
var rn;
|
|
618
|
+
function Fo() {
|
|
619
|
+
return rn || (rn = 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, E = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, A = e ? Symbol.for("react.scope") : 60119;
|
|
621
621
|
function k(S) {
|
|
622
622
|
return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
623
|
-
S === i || S === c || S === a || S === o || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof ===
|
|
623
|
+
S === i || S === c || S === a || S === o || S === f || S === g || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === u || S.$$typeof === r || S.$$typeof === l || S.$$typeof === d || S.$$typeof === E || S.$$typeof === h || S.$$typeof === A || S.$$typeof === v);
|
|
624
624
|
}
|
|
625
625
|
function M(S) {
|
|
626
626
|
if (typeof S == "object" && S !== null) {
|
|
@@ -642,7 +642,7 @@ function ko() {
|
|
|
642
642
|
case l:
|
|
643
643
|
case d:
|
|
644
644
|
case m:
|
|
645
|
-
case
|
|
645
|
+
case u:
|
|
646
646
|
case r:
|
|
647
647
|
return Te;
|
|
648
648
|
default:
|
|
@@ -654,7 +654,7 @@ function ko() {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var x = s, V = c, H = l, Q = r, ie = n, Z = d, de = i, fe = m, D =
|
|
657
|
+
var x = s, V = c, H = l, Q = r, ie = n, Z = d, de = i, fe = m, D = u, R = t, G = a, J = o, ee = f, ae = !1;
|
|
658
658
|
function te(S) {
|
|
659
659
|
return ae || (ae = !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(S) || M(S) === s;
|
|
660
660
|
}
|
|
@@ -680,7 +680,7 @@ function ko() {
|
|
|
680
680
|
return M(S) === m;
|
|
681
681
|
}
|
|
682
682
|
function F(S) {
|
|
683
|
-
return M(S) ===
|
|
683
|
+
return M(S) === u;
|
|
684
684
|
}
|
|
685
685
|
function P(S) {
|
|
686
686
|
return M(S) === t;
|
|
@@ -697,19 +697,19 @@ function ko() {
|
|
|
697
697
|
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = H, W.ContextProvider = Q, W.Element = ie, W.ForwardRef = Z, W.Fragment = de, W.Lazy = fe, W.Memo = D, W.Portal = R, W.Profiler = G, W.StrictMode = J, W.Suspense = ee, W.isAsyncMode = te, W.isConcurrentMode = w, W.isContextConsumer = _, W.isContextProvider = N, W.isElement = L, W.isForwardRef = b, W.isFragment = I, W.isLazy = y, W.isMemo = F, W.isPortal = P, W.isProfiler = $, W.isStrictMode = z, W.isSuspense = U, W.isValidElementType = k, W.typeOf = M;
|
|
698
698
|
}()), W;
|
|
699
699
|
}
|
|
700
|
-
var
|
|
700
|
+
var ln;
|
|
701
701
|
function qn() {
|
|
702
|
-
return
|
|
702
|
+
return ln || (ln = 1, process.env.NODE_ENV === "production" ? Ke.exports = ko() : Ke.exports = Fo()), 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, sn;
|
|
710
|
+
function Po() {
|
|
711
|
+
if (sn) return mt;
|
|
712
|
+
sn = 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 Fo() {
|
|
|
752
752
|
return s;
|
|
753
753
|
}, mt;
|
|
754
754
|
}
|
|
755
|
-
var vt,
|
|
756
|
-
function
|
|
757
|
-
if (
|
|
758
|
-
|
|
755
|
+
var vt, cn;
|
|
756
|
+
function Kt() {
|
|
757
|
+
if (cn) return vt;
|
|
758
|
+
cn = 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,
|
|
762
|
+
var xt, pn;
|
|
763
763
|
function Gn() {
|
|
764
|
-
return
|
|
764
|
+
return pn || (pn = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
|
|
765
765
|
}
|
|
766
|
-
var ht,
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
|
|
766
|
+
var ht, un;
|
|
767
|
+
function Io() {
|
|
768
|
+
if (un) return ht;
|
|
769
|
+
un = 1;
|
|
770
770
|
var e = function() {
|
|
771
771
|
};
|
|
772
772
|
if (process.env.NODE_ENV !== "production") {
|
|
773
|
-
var n = /* @__PURE__ */
|
|
773
|
+
var n = /* @__PURE__ */ Kt(), t = {}, i = /* @__PURE__ */ Gn();
|
|
774
774
|
e = function(a) {
|
|
775
775
|
var r = "Warning: " + a;
|
|
776
776
|
typeof console < "u" && console.error(r);
|
|
@@ -800,9 +800,9 @@ function Po() {
|
|
|
800
800
|
(s || "React class") + ": type specification of " + l + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
801
801
|
), f instanceof Error && !(f.message in t)) {
|
|
802
802
|
t[f.message] = !0;
|
|
803
|
-
var
|
|
803
|
+
var u = c ? c() : "";
|
|
804
804
|
e(
|
|
805
|
-
"Failed " + l + " type: " + f.message + (
|
|
805
|
+
"Failed " + l + " type: " + f.message + (u ?? "")
|
|
806
806
|
);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -812,11 +812,11 @@ function Po() {
|
|
|
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 = qn(), n =
|
|
815
|
+
var wt, dn;
|
|
816
|
+
function Do() {
|
|
817
|
+
if (dn) return wt;
|
|
818
|
+
dn = 1;
|
|
819
|
+
var e = qn(), n = Po(), t = /* @__PURE__ */ Kt(), i = /* @__PURE__ */ Gn(), o = /* @__PURE__ */ Io(), a = function() {
|
|
820
820
|
};
|
|
821
821
|
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
822
822
|
var s = "Warning: " + l;
|
|
@@ -836,7 +836,7 @@ function Io() {
|
|
|
836
836
|
if (typeof _ == "function")
|
|
837
837
|
return _;
|
|
838
838
|
}
|
|
839
|
-
var g = "<<anonymous>>",
|
|
839
|
+
var g = "<<anonymous>>", u = {
|
|
840
840
|
array: h("array"),
|
|
841
841
|
bigint: h("bigint"),
|
|
842
842
|
bool: h("boolean"),
|
|
@@ -1130,14 +1130,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1130
1130
|
function te(w) {
|
|
1131
1131
|
return !w.constructor || !w.constructor.name ? g : w.constructor.name;
|
|
1132
1132
|
}
|
|
1133
|
-
return
|
|
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, gn;
|
|
1137
|
+
function $o() {
|
|
1138
|
+
if (gn) return yt;
|
|
1139
|
+
gn = 1;
|
|
1140
|
+
var e = /* @__PURE__ */ Kt();
|
|
1141
1141
|
function n() {
|
|
1142
1142
|
}
|
|
1143
1143
|
function t() {
|
|
@@ -1181,18 +1181,18 @@ function Do() {
|
|
|
1181
1181
|
return a.PropTypes = a, a;
|
|
1182
1182
|
}, yt;
|
|
1183
1183
|
}
|
|
1184
|
-
var
|
|
1185
|
-
function
|
|
1186
|
-
if (
|
|
1187
|
-
if (
|
|
1184
|
+
var fn;
|
|
1185
|
+
function Ao() {
|
|
1186
|
+
if (fn) return Ue.exports;
|
|
1187
|
+
if (fn = 1, process.env.NODE_ENV !== "production") {
|
|
1188
1188
|
var e = qn(), n = !0;
|
|
1189
|
-
Ue.exports = /* @__PURE__ */
|
|
1189
|
+
Ue.exports = /* @__PURE__ */ Do()(e.isElement, n);
|
|
1190
1190
|
} else
|
|
1191
|
-
Ue.exports = /* @__PURE__ */
|
|
1191
|
+
Ue.exports = /* @__PURE__ */ $o()();
|
|
1192
1192
|
return Ue.exports;
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1195
|
-
const Y = /* @__PURE__ */
|
|
1194
|
+
var Mo = /* @__PURE__ */ Ao();
|
|
1195
|
+
const Y = /* @__PURE__ */ Gt(Mo);
|
|
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 Oo = /* @__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 Mo = /* @__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 = jo(e), { webkitRelativePath: o } = e, a = typeof n == "string" ? n : typeof o == "string" && o.length > 0 ? o : `./${e.name}`;
|
|
2428
|
+
return typeof i.path != "string" && mn(i, "path", a), mn(i, "relativePath", a), i;
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2430
|
+
function jo(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 = Oo.get(i);
|
|
2434
2434
|
o && Object.defineProperty(e, "type", {
|
|
2435
2435
|
value: o,
|
|
2436
2436
|
writable: !1,
|
|
@@ -2440,7 +2440,7 @@ function Oo(e) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function mn(e, n, t) {
|
|
2444
2444
|
Object.defineProperty(e, n, {
|
|
2445
2445
|
value: t,
|
|
2446
2446
|
writable: !1,
|
|
@@ -2448,49 +2448,49 @@ function vn(e, n, t) {
|
|
|
2448
2448
|
enumerable: !0
|
|
2449
2449
|
});
|
|
2450
2450
|
}
|
|
2451
|
-
const
|
|
2451
|
+
const To = [
|
|
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 zo(e) {
|
|
2459
2459
|
return De(this, void 0, void 0, function* () {
|
|
2460
|
-
return tt(e) &&
|
|
2460
|
+
return tt(e) && Vo(e.dataTransfer) ? qo(e.dataTransfer, e.type) : No(e) ? Lo(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? Ho(e) : [];
|
|
2461
2461
|
});
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2463
|
+
function Vo(e) {
|
|
2464
2464
|
return tt(e);
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function No(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 Lo(e) {
|
|
2473
2473
|
return Dt(e.target.files).map((n) => je(n));
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Ho(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 qo(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(Go));
|
|
2487
|
+
return vn(Bn(i));
|
|
2488
2488
|
}
|
|
2489
|
-
return
|
|
2489
|
+
return vn(Dt(e.files).map((t) => je(t)));
|
|
2490
2490
|
});
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2493
|
-
return e.filter((n) =>
|
|
2492
|
+
function vn(e) {
|
|
2493
|
+
return e.filter((n) => To.indexOf(n.name) === -1);
|
|
2494
2494
|
}
|
|
2495
2495
|
function Dt(e) {
|
|
2496
2496
|
if (e === null)
|
|
@@ -2502,11 +2502,11 @@ function Dt(e) {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
return n;
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function Go(e) {
|
|
2506
2506
|
if (typeof e.webkitGetAsEntry != "function")
|
|
2507
|
-
return
|
|
2507
|
+
return xn(e);
|
|
2508
2508
|
const n = e.webkitGetAsEntry();
|
|
2509
|
-
return n && n.isDirectory ? Un(n) :
|
|
2509
|
+
return n && n.isDirectory ? Un(n) : xn(e, n);
|
|
2510
2510
|
}
|
|
2511
2511
|
function Bn(e) {
|
|
2512
2512
|
return e.reduce((n, t) => [
|
|
@@ -2514,7 +2514,7 @@ function Bn(e) {
|
|
|
2514
2514
|
...Array.isArray(t) ? Bn(t) : [t]
|
|
2515
2515
|
], []);
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function xn(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,9 +2532,9 @@ function hn(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 Bo(e) {
|
|
2536
2536
|
return De(this, void 0, void 0, function* () {
|
|
2537
|
-
return e.isDirectory ? Un(e) :
|
|
2537
|
+
return e.isDirectory ? Un(e) : Uo(e);
|
|
2538
2538
|
});
|
|
2539
2539
|
}
|
|
2540
2540
|
function Un(e) {
|
|
@@ -2544,7 +2544,7 @@ function Un(e) {
|
|
|
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(Bo));
|
|
2548
2548
|
o.push(l), a();
|
|
2549
2549
|
} else
|
|
2550
2550
|
try {
|
|
@@ -2560,7 +2560,7 @@ function Un(e) {
|
|
|
2560
2560
|
a();
|
|
2561
2561
|
});
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function Uo(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 Bo(e) {
|
|
|
2572
2572
|
});
|
|
2573
2573
|
});
|
|
2574
2574
|
}
|
|
2575
|
-
var We = {},
|
|
2576
|
-
function
|
|
2577
|
-
return
|
|
2575
|
+
var We = {}, hn;
|
|
2576
|
+
function Ko() {
|
|
2577
|
+
return hn || (hn = 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 Uo() {
|
|
|
2588
2588
|
return !0;
|
|
2589
2589
|
}), We;
|
|
2590
2590
|
}
|
|
2591
|
-
var
|
|
2592
|
-
const bt = /* @__PURE__ */
|
|
2593
|
-
function
|
|
2594
|
-
return
|
|
2591
|
+
var Wo = Ko();
|
|
2592
|
+
const bt = /* @__PURE__ */ Gt(Wo);
|
|
2593
|
+
function wn(e) {
|
|
2594
|
+
return Qo(e) || Xo(e) || Wn(e) || Yo();
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2596
|
+
function Yo() {
|
|
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 Xo(e) {
|
|
2601
2601
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2603
|
+
function Qo(e) {
|
|
2604
2604
|
if (Array.isArray(e)) return $t(e);
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function yn(e, n) {
|
|
2607
2607
|
var t = Object.keys(e);
|
|
2608
2608
|
if (Object.getOwnPropertySymbols) {
|
|
2609
2609
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2613,12 +2613,12 @@ function bn(e, n) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
return t;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function bn(e) {
|
|
2617
2617
|
for (var n = 1; n < arguments.length; n++) {
|
|
2618
2618
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
2619
|
-
n % 2 ?
|
|
2619
|
+
n % 2 ? yn(Object(t), !0).forEach(function(i) {
|
|
2620
2620
|
Kn(e, i, t[i]);
|
|
2621
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
2621
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : yn(Object(t)).forEach(function(i) {
|
|
2622
2622
|
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
@@ -2628,9 +2628,9 @@ 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 ea(e) || Zo(e, n) || Wn(e, n) || Jo();
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2633
|
+
function Jo() {
|
|
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
|
}
|
|
@@ -2648,7 +2648,7 @@ function $t(e, n) {
|
|
|
2648
2648
|
i[t] = e[t];
|
|
2649
2649
|
return i;
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2651
|
+
function Zo(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 Jo(e, n) {
|
|
|
2667
2667
|
return i;
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function ea(e) {
|
|
2671
2671
|
if (Array.isArray(e)) return e;
|
|
2672
2672
|
}
|
|
2673
|
-
var
|
|
2673
|
+
var ta = typeof bt == "function" ? bt : bt.default, na = "file-invalid-type", ia = "file-too-large", oa = "file-too-small", aa = "too-many-files", ra = 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: na,
|
|
2677
2677
|
message: "File type must be ".concat(i)
|
|
2678
2678
|
};
|
|
2679
|
-
},
|
|
2679
|
+
}, Sn = function(n) {
|
|
2680
2680
|
return {
|
|
2681
|
-
code:
|
|
2681
|
+
code: ia,
|
|
2682
2682
|
message: "File is larger than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2683
2683
|
};
|
|
2684
|
-
},
|
|
2684
|
+
}, Cn = function(n) {
|
|
2685
2685
|
return {
|
|
2686
|
-
code:
|
|
2686
|
+
code: oa,
|
|
2687
2687
|
message: "File is smaller than ".concat(n, " ").concat(n === 1 ? "byte" : "bytes")
|
|
2688
2688
|
};
|
|
2689
|
-
},
|
|
2690
|
-
code:
|
|
2689
|
+
}, la = {
|
|
2690
|
+
code: aa,
|
|
2691
2691
|
message: "Too many files"
|
|
2692
2692
|
};
|
|
2693
2693
|
function Yn(e, n) {
|
|
2694
|
-
var t = e.type === "application/x-moz-file" ||
|
|
2695
|
-
return [t, t ? null :
|
|
2694
|
+
var t = e.type === "application/x-moz-file" || ta(e, n);
|
|
2695
|
+
return [t, t ? null : ra(n)];
|
|
2696
2696
|
}
|
|
2697
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, Sn(t)];
|
|
2701
|
+
if (e.size < n) return [!1, Cn(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, Cn(n)];
|
|
2704
|
+
if (Pe(t) && e.size > t) return [!1, Sn(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 sa(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 = Yn(s, t), d = He(c, 1), f = d[0], g = Xn(s, i, o),
|
|
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,18 +2723,18 @@ 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 _n(e) {
|
|
2727
2727
|
e.preventDefault();
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function ca(e) {
|
|
2730
2730
|
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function pa(e) {
|
|
2733
2733
|
return e.indexOf("Edge/") !== -1;
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function ua() {
|
|
2736
2736
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2737
|
-
return
|
|
2737
|
+
return ca(e) || pa(e);
|
|
2738
2738
|
}
|
|
2739
2739
|
function ye() {
|
|
2740
2740
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
@@ -2747,17 +2747,17 @@ function ye() {
|
|
|
2747
2747
|
});
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function da() {
|
|
2751
2751
|
return "showOpenFilePicker" in window;
|
|
2752
2752
|
}
|
|
2753
|
-
function
|
|
2753
|
+
function ga(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
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 bn(bn({}, t), {}, Kn({}, a, r));
|
|
2761
2761
|
}, {});
|
|
2762
2762
|
return [{
|
|
2763
2763
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2767,19 +2767,19 @@ function da(e) {
|
|
|
2767
2767
|
}
|
|
2768
2768
|
return e;
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function fa(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(wn(n), [o], wn(a));
|
|
2775
2775
|
}, []).filter(function(n) {
|
|
2776
2776
|
return Qn(n) || Jn(n);
|
|
2777
2777
|
}).join(",");
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function ma(e) {
|
|
2780
2780
|
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function va(e) {
|
|
2783
2783
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
2784
2784
|
}
|
|
2785
2785
|
function Qn(e) {
|
|
@@ -2788,24 +2788,24 @@ function Qn(e) {
|
|
|
2788
2788
|
function Jn(e) {
|
|
2789
2789
|
return /^.*\.[\w]+$/.test(e);
|
|
2790
2790
|
}
|
|
2791
|
-
var
|
|
2792
|
-
function
|
|
2793
|
-
return
|
|
2791
|
+
var xa = ["children"], ha = ["open"], wa = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], ya = ["refKey", "onChange", "onClick"];
|
|
2792
|
+
function ba(e) {
|
|
2793
|
+
return _a(e) || Ca(e) || Zn(e) || Sa();
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function Sa() {
|
|
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 Ca(e) {
|
|
2800
2800
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
2801
2801
|
}
|
|
2802
|
-
function
|
|
2802
|
+
function _a(e) {
|
|
2803
2803
|
if (Array.isArray(e)) return At(e);
|
|
2804
2804
|
}
|
|
2805
2805
|
function St(e, n) {
|
|
2806
|
-
return
|
|
2806
|
+
return ka(e) || Ea(e, n) || Zn(e, n) || Ra();
|
|
2807
2807
|
}
|
|
2808
|
-
function
|
|
2808
|
+
function Ra() {
|
|
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
|
}
|
|
@@ -2823,7 +2823,7 @@ function At(e, n) {
|
|
|
2823
2823
|
i[t] = e[t];
|
|
2824
2824
|
return i;
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function Ea(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 Ra(e, n) {
|
|
|
2842
2842
|
return i;
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function ka(e) {
|
|
2846
2846
|
if (Array.isArray(e)) return e;
|
|
2847
2847
|
}
|
|
2848
|
-
function
|
|
2848
|
+
function Rn(e, n) {
|
|
2849
2849
|
var t = Object.keys(e);
|
|
2850
2850
|
if (Object.getOwnPropertySymbols) {
|
|
2851
2851
|
var i = Object.getOwnPropertySymbols(e);
|
|
@@ -2858,9 +2858,9 @@ function En(e, n) {
|
|
|
2858
2858
|
function ne(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 ? Rn(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)) : Rn(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 = Fa(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 Fa(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 Wt = /* @__PURE__ */ Ri(function(e, n) {
|
|
2890
|
+
var t = e.children, i = it(e, xa), o = ti(i), a = o.open, r = it(o, ha);
|
|
2891
|
+
return Ei(n, function() {
|
|
2892
2892
|
return {
|
|
2893
2893
|
open: a
|
|
2894
2894
|
};
|
|
2895
|
-
}, [a]), /* @__PURE__ */
|
|
2895
|
+
}, [a]), /* @__PURE__ */ Ci.createElement(Mn, null, t(ne(ne({}, r), {}, {
|
|
2896
2896
|
open: a
|
|
2897
2897
|
})));
|
|
2898
2898
|
});
|
|
2899
|
-
|
|
2899
|
+
Wt.displayName = "Dropzone";
|
|
2900
2900
|
var ei = {
|
|
2901
2901
|
disabled: !1,
|
|
2902
|
-
getFilesFromEvent:
|
|
2902
|
+
getFilesFromEvent: zo,
|
|
2903
2903
|
maxSize: 1 / 0,
|
|
2904
2904
|
minSize: 0,
|
|
2905
2905
|
multiple: !0,
|
|
@@ -2913,8 +2913,8 @@ var ei = {
|
|
|
2913
2913
|
useFsAccessApi: !1,
|
|
2914
2914
|
autoFocus: !1
|
|
2915
2915
|
};
|
|
2916
|
-
|
|
2917
|
-
|
|
2916
|
+
Wt.defaultProps = ei;
|
|
2917
|
+
Wt.propTypes = {
|
|
2918
2918
|
/**
|
|
2919
2919
|
* Render function that exposes the dropzone state and prop getter fns
|
|
2920
2920
|
*
|
|
@@ -3092,15 +3092,15 @@ var Ot = {
|
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
3094
|
function ti() {
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ne(ne({}, 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,
|
|
3096
|
-
return
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = ne(ne({}, 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, E = n.onFileDialogOpen, h = n.useFsAccessApi, A = n.autoFocus, k = n.preventDropOnDocument, M = n.noClick, x = n.noKeyboard, V = n.noDrag, H = n.noDragEventsBubbling, Q = n.onError, ie = n.validator, Z = se(function() {
|
|
3096
|
+
return fa(t);
|
|
3097
3097
|
}, [t]), de = se(function() {
|
|
3098
|
-
return
|
|
3098
|
+
return ga(t);
|
|
3099
3099
|
}, [t]), fe = se(function() {
|
|
3100
|
-
return typeof E == "function" ? E :
|
|
3100
|
+
return typeof E == "function" ? E : En;
|
|
3101
3101
|
}, [E]), D = se(function() {
|
|
3102
|
-
return typeof v == "function" ? v :
|
|
3103
|
-
}, [v]), R = be(null), G = be(null), J = An(
|
|
3102
|
+
return typeof v == "function" ? v : En;
|
|
3103
|
+
}, [v]), R = be(null), G = be(null), J = An(Pa, Ot), ee = St(J, 2), ae = ee[0], te = ee[1], w = ae.isFocused, _ = ae.isFileDialogActive, N = be(typeof window < "u" && window.isSecureContext && h && da()), L = function() {
|
|
3104
3104
|
!N.current && _ && setTimeout(function() {
|
|
3105
3105
|
if (G.current) {
|
|
3106
3106
|
var T = G.current.files;
|
|
@@ -3119,8 +3119,8 @@ function ti() {
|
|
|
3119
3119
|
R.current && R.current.contains(T.target) || (T.preventDefault(), b.current = []);
|
|
3120
3120
|
};
|
|
3121
3121
|
Ce(function() {
|
|
3122
|
-
return k && (document.addEventListener("dragover",
|
|
3123
|
-
k && (document.removeEventListener("dragover",
|
|
3122
|
+
return k && (document.addEventListener("dragover", _n, !1), document.addEventListener("drop", I, !1)), function() {
|
|
3123
|
+
k && (document.removeEventListener("dragover", _n), document.removeEventListener("drop", I));
|
|
3124
3124
|
};
|
|
3125
3125
|
}, [R, k]), Ce(function() {
|
|
3126
3126
|
return !i && A && R.current && R.current.focus(), function() {
|
|
@@ -3129,9 +3129,9 @@ function ti() {
|
|
|
3129
3129
|
var y = X(function(C) {
|
|
3130
3130
|
Q ? Q(C) : console.error(C);
|
|
3131
3131
|
}, [Q]), F = X(function(C) {
|
|
3132
|
-
C.preventDefault(), C.persist(), Ge(C), b.current = [].concat(
|
|
3132
|
+
C.preventDefault(), C.persist(), Ge(C), b.current = [].concat(ba(b.current), [C.target]), Ye(C) && Promise.resolve(o(C)).then(function(T) {
|
|
3133
3133
|
if (!(nt(C) && !H)) {
|
|
3134
|
-
var oe = T.length, re = oe > 0 &&
|
|
3134
|
+
var oe = T.length, re = oe > 0 && sa({
|
|
3135
3135
|
files: T,
|
|
3136
3136
|
accept: Z,
|
|
3137
3137
|
minSize: r,
|
|
@@ -3180,23 +3180,23 @@ function ti() {
|
|
|
3180
3180
|
var gt = [st, ut];
|
|
3181
3181
|
dt && (gt = gt.concat(dt)), re.push({
|
|
3182
3182
|
file: me,
|
|
3183
|
-
errors: gt.filter(function(
|
|
3184
|
-
return
|
|
3183
|
+
errors: gt.filter(function(Si) {
|
|
3184
|
+
return Si;
|
|
3185
3185
|
})
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
3188
|
}), (!l && oe.length > 1 || l && s >= 1 && oe.length > s) && (oe.forEach(function(me) {
|
|
3189
3189
|
re.push({
|
|
3190
3190
|
file: me,
|
|
3191
|
-
errors: [
|
|
3191
|
+
errors: [la]
|
|
3192
3192
|
});
|
|
3193
3193
|
}), oe.splice(0)), te({
|
|
3194
3194
|
acceptedFiles: oe,
|
|
3195
3195
|
fileRejections: re,
|
|
3196
3196
|
isDragReject: re.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(oe, re, T), re.length > 0 && m && m(re, T), oe.length > 0 &&
|
|
3199
|
-
}, [te, l, Z, r, a, s, g,
|
|
3198
|
+
}), g && g(oe, re, T), re.length > 0 && m && m(re, T), oe.length > 0 && u && u(oe, T);
|
|
3199
|
+
}, [te, l, Z, r, a, s, g, u, m, ie]), U = X(function(C) {
|
|
3200
3200
|
C.preventDefault(), C.persist(), Ge(C), b.current = [], Ye(C) && Promise.resolve(o(C)).then(function(T) {
|
|
3201
3201
|
nt(C) && !H || z(T, C);
|
|
3202
3202
|
}).catch(function(T) {
|
|
@@ -3220,9 +3220,9 @@ function ti() {
|
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
3222
|
}).catch(function(T) {
|
|
3223
|
-
|
|
3223
|
+
ma(T) ? (D(T), te({
|
|
3224
3224
|
type: "closeDialog"
|
|
3225
|
-
})) :
|
|
3225
|
+
})) : va(T) ? (N.current = !1, G.current ? (G.current.value = null, G.current.click()) : y(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."))) : y(T);
|
|
3226
3226
|
});
|
|
3227
3227
|
return;
|
|
3228
3228
|
}
|
|
@@ -3239,8 +3239,8 @@ function ti() {
|
|
|
3239
3239
|
te({
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
|
-
}, []),
|
|
3243
|
-
M || (
|
|
3242
|
+
}, []), Jt = X(function() {
|
|
3243
|
+
M || (ua() ? setTimeout(S, 0) : S());
|
|
3244
3244
|
}, [M, S]), $e = function(T) {
|
|
3245
3245
|
return i ? null : T;
|
|
3246
3246
|
}, rt = function(T) {
|
|
@@ -3249,14 +3249,14 @@ function ti() {
|
|
|
3249
3249
|
return V ? null : $e(T);
|
|
3250
3250
|
}, Ge = function(T) {
|
|
3251
3251
|
H && T.stopPropagation();
|
|
3252
|
-
},
|
|
3252
|
+
}, wi = se(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C,
|
|
3254
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = C.role, me = C.onKeyDown, ze = C.onFocus, Ae = C.onBlur, lt = C.onClick, st = C.onDragEnter, ct = C.onDragOver, Be = C.onDragLeave, pt = C.onDrop, ut = it(C, wa);
|
|
3255
3255
|
return ne(ne(Mt({
|
|
3256
3256
|
onKeyDown: rt(ye(me, ce)),
|
|
3257
3257
|
onFocus: rt(ye(ze, Fe)),
|
|
3258
3258
|
onBlur: rt(ye(Ae, Te)),
|
|
3259
|
-
onClick: $e(ye(lt,
|
|
3259
|
+
onClick: $e(ye(lt, Jt)),
|
|
3260
3260
|
onDragEnter: qe(ye(st, F)),
|
|
3261
3261
|
onDragOver: qe(ye(ct, P)),
|
|
3262
3262
|
onDragLeave: qe(ye(Be, $)),
|
|
@@ -3266,11 +3266,11 @@ function ti() {
|
|
|
3266
3266
|
tabIndex: 0
|
|
3267
3267
|
} : {}), ut);
|
|
3268
3268
|
};
|
|
3269
|
-
}, [R, ce, Fe, Te,
|
|
3269
|
+
}, [R, ce, Fe, Te, Jt, F, P, $, U, x, V, i]), yi = X(function(C) {
|
|
3270
3270
|
C.stopPropagation();
|
|
3271
|
-
}, []),
|
|
3271
|
+
}, []), bi = se(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = C.onChange, me = C.onClick, ze = it(C,
|
|
3273
|
+
var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, T = C.refKey, oe = T === void 0 ? "ref" : T, re = C.onChange, me = C.onClick, ze = it(C, ya), Ae = Mt({
|
|
3274
3274
|
accept: Z,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
@@ -3287,7 +3287,7 @@ function ti() {
|
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
3289
|
onChange: $e(ye(re, U)),
|
|
3290
|
-
onClick: $e(ye(me,
|
|
3290
|
+
onClick: $e(ye(me, yi)),
|
|
3291
3291
|
tabIndex: -1
|
|
3292
3292
|
}, oe, G);
|
|
3293
3293
|
return ne(ne({}, Ae), ze);
|
|
@@ -3295,14 +3295,14 @@ function ti() {
|
|
|
3295
3295
|
}, [G, t, l, U, i]);
|
|
3296
3296
|
return ne(ne({}, ae), {}, {
|
|
3297
3297
|
isFocused: w && !i,
|
|
3298
|
-
getRootProps:
|
|
3299
|
-
getInputProps:
|
|
3298
|
+
getRootProps: wi,
|
|
3299
|
+
getInputProps: bi,
|
|
3300
3300
|
rootRef: R,
|
|
3301
3301
|
inputRef: G,
|
|
3302
3302
|
open: $e(S)
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function Pa(e, n) {
|
|
3306
3306
|
switch (n.type) {
|
|
3307
3307
|
case "focus":
|
|
3308
3308
|
return ne(ne({}, e), {}, {
|
|
@@ -3338,9 +3338,9 @@ function Fa(e, n) {
|
|
|
3338
3338
|
return e;
|
|
3339
3339
|
}
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function En() {
|
|
3342
3342
|
}
|
|
3343
|
-
const
|
|
3343
|
+
const Ia = () => {
|
|
3344
3344
|
const e = (l, s) => {
|
|
3345
3345
|
switch (s.type) {
|
|
3346
3346
|
case "add-files":
|
|
@@ -3383,7 +3383,7 @@ const Pa = () => {
|
|
|
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
|
+
}, Da = ({
|
|
3387
3387
|
accept: e,
|
|
3388
3388
|
error: n,
|
|
3389
3389
|
files: t,
|
|
@@ -3409,60 +3409,60 @@ const Pa = () => {
|
|
|
3409
3409
|
"is-error": !!n
|
|
3410
3410
|
}),
|
|
3411
3411
|
children: [
|
|
3412
|
-
o && /* @__PURE__ */
|
|
3413
|
-
i && /* @__PURE__ */
|
|
3412
|
+
o && /* @__PURE__ */ p($i, { id: g, children: o }),
|
|
3413
|
+
i && /* @__PURE__ */ p("p", { className: "p-form-help-text", children: i }),
|
|
3414
3414
|
/* @__PURE__ */ B("div", { className: "p-form__control", children: [
|
|
3415
|
-
!a || t.length < a ? /* @__PURE__ */
|
|
3415
|
+
!a || t.length < a ? /* @__PURE__ */ p("div", { className: "file-upload__wrapper", children: /* @__PURE__ */ p(
|
|
3416
3416
|
"div",
|
|
3417
3417
|
{
|
|
3418
3418
|
...f(),
|
|
3419
3419
|
"aria-labelledby": o ? g : void 0,
|
|
3420
3420
|
className: "file-upload",
|
|
3421
3421
|
"data-testid": "file-upload",
|
|
3422
|
-
children: /* @__PURE__ */
|
|
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
3425
|
n ? /* @__PURE__ */ B("p", { className: "p-form-validation__message", children: [
|
|
3426
|
-
/* @__PURE__ */
|
|
3426
|
+
/* @__PURE__ */ p("strong", { children: "Error: " }),
|
|
3427
3427
|
n
|
|
3428
3428
|
] }) : null,
|
|
3429
3429
|
/* @__PURE__ */ B("div", { className: "file-upload__files-list", children: [
|
|
3430
|
-
s && s.map((
|
|
3430
|
+
s && s.map((u) => /* @__PURE__ */ B("span", { className: "is-error", children: [
|
|
3431
3431
|
/* @__PURE__ */ B("div", { className: "file-upload__file is-rejected", children: [
|
|
3432
|
-
|
|
3433
|
-
/* @__PURE__ */
|
|
3432
|
+
u.file.name,
|
|
3433
|
+
/* @__PURE__ */ p(
|
|
3434
3434
|
_e,
|
|
3435
3435
|
{
|
|
3436
3436
|
appearance: "base",
|
|
3437
3437
|
className: "file-upload__file-remove-button",
|
|
3438
|
-
onClick: () => d(
|
|
3438
|
+
onClick: () => d(u),
|
|
3439
3439
|
type: "button",
|
|
3440
|
-
children: /* @__PURE__ */
|
|
3440
|
+
children: /* @__PURE__ */ p(Re, { name: "close", children: "Remove file" })
|
|
3441
3441
|
}
|
|
3442
3442
|
)
|
|
3443
3443
|
] }),
|
|
3444
|
-
|
|
3444
|
+
u.errors.map((m) => /* @__PURE__ */ p(
|
|
3445
3445
|
"p",
|
|
3446
3446
|
{
|
|
3447
3447
|
className: "p-form-validation__message",
|
|
3448
3448
|
children: m.message
|
|
3449
3449
|
},
|
|
3450
|
-
`${
|
|
3450
|
+
`${u.file.name}-${m.code}`
|
|
3451
3451
|
))
|
|
3452
|
-
] },
|
|
3453
|
-
t && t.map((
|
|
3454
|
-
|
|
3455
|
-
|
|
3452
|
+
] }, u.file.name)),
|
|
3453
|
+
t && t.map((u) => /* @__PURE__ */ B("div", { className: "file-upload__file", children: [
|
|
3454
|
+
u.name,
|
|
3455
|
+
u.percentUploaded !== void 0 ? /* @__PURE__ */ p(Gi, { percentComplete: u.percentUploaded }) : /* @__PURE__ */ p(
|
|
3456
3456
|
_e,
|
|
3457
3457
|
{
|
|
3458
3458
|
appearance: "base",
|
|
3459
3459
|
className: "file-upload__file-remove-button",
|
|
3460
|
-
onClick: () => c(
|
|
3460
|
+
onClick: () => c(u),
|
|
3461
3461
|
type: "button",
|
|
3462
|
-
children: /* @__PURE__ */
|
|
3462
|
+
children: /* @__PURE__ */ p(Re, { name: "close", children: "Remove file" })
|
|
3463
3463
|
}
|
|
3464
3464
|
)
|
|
3465
|
-
] },
|
|
3465
|
+
] }, u.name))
|
|
3466
3466
|
] })
|
|
3467
3467
|
] })
|
|
3468
3468
|
]
|
|
@@ -3482,9 +3482,9 @@ const Pa = () => {
|
|
|
3482
3482
|
onFileUpload: s,
|
|
3483
3483
|
removeFile: c,
|
|
3484
3484
|
removeRejectedFile: d
|
|
3485
|
-
} =
|
|
3486
|
-
return /* @__PURE__ */
|
|
3487
|
-
|
|
3485
|
+
} = Ia();
|
|
3486
|
+
return /* @__PURE__ */ p(
|
|
3487
|
+
Da,
|
|
3488
3488
|
{
|
|
3489
3489
|
accept: e,
|
|
3490
3490
|
error: n,
|
|
@@ -3499,20 +3499,20 @@ const Pa = () => {
|
|
|
3499
3499
|
removeRejectedFile: d
|
|
3500
3500
|
}
|
|
3501
3501
|
);
|
|
3502
|
-
}, ni = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }),
|
|
3502
|
+
}, ni = (e, n) => e.label.localeCompare(n.label, "en", { numeric: !0 }), $a = (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
|
+
}, Aa = (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
|
+
}, Ma = ({
|
|
3516
3516
|
items: e,
|
|
3517
3517
|
selectedItems: n,
|
|
3518
3518
|
disabledItems: t,
|
|
@@ -3521,7 +3521,7 @@ const Pa = () => {
|
|
|
3521
3521
|
isOpen: a,
|
|
3522
3522
|
footer: r,
|
|
3523
3523
|
sortFn: l = ni,
|
|
3524
|
-
groupFn: s =
|
|
3524
|
+
groupFn: s = Aa,
|
|
3525
3525
|
...c
|
|
3526
3526
|
}) => {
|
|
3527
3527
|
const d = se(
|
|
@@ -3530,9 +3530,9 @@ const Pa = () => {
|
|
|
3530
3530
|
), f = se(
|
|
3531
3531
|
() => new Set(t.map((h) => h.value)),
|
|
3532
3532
|
[t]
|
|
3533
|
-
), [g,
|
|
3533
|
+
), [g, u] = ge(new Set(d));
|
|
3534
3534
|
Ce(() => {
|
|
3535
|
-
a &&
|
|
3535
|
+
a && u(new Set(d));
|
|
3536
3536
|
}, [a]);
|
|
3537
3537
|
const m = se(() => e.some((h) => h.group), [e]), v = se(
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
@@ -3544,12 +3544,12 @@ const Pa = () => {
|
|
|
3544
3544
|
o(x);
|
|
3545
3545
|
}
|
|
3546
3546
|
};
|
|
3547
|
-
return /* @__PURE__ */
|
|
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
3549
|
v.map(({ group: h, items: A }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
|
|
3550
|
-
m ? /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
|
|
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: A.sort(l).sort($a(g)).map((k) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3552
|
+
Ai,
|
|
3553
3553
|
{
|
|
3554
3554
|
disabled: f.has(k.value),
|
|
3555
3555
|
label: k.label,
|
|
@@ -3560,7 +3560,7 @@ const Pa = () => {
|
|
|
3560
3560
|
k.value
|
|
3561
3561
|
) }, k.value)) })
|
|
3562
3562
|
] }, h)),
|
|
3563
|
-
r ? /* @__PURE__ */
|
|
3563
|
+
r ? /* @__PURE__ */ p("div", { className: "multi-select__footer", children: r }) : null
|
|
3564
3564
|
] }) });
|
|
3565
3565
|
}, Wr = ({
|
|
3566
3566
|
disabled: e,
|
|
@@ -3575,13 +3575,13 @@ const Pa = () => {
|
|
|
3575
3575
|
dropdownFooter: c,
|
|
3576
3576
|
variant: d = "search"
|
|
3577
3577
|
}) => {
|
|
3578
|
-
const f =
|
|
3579
|
-
|
|
3578
|
+
const f = Mi(() => {
|
|
3579
|
+
u(!1), v("");
|
|
3580
3580
|
});
|
|
3581
|
-
|
|
3582
|
-
|
|
3581
|
+
Oi(() => {
|
|
3582
|
+
u(!1), v("");
|
|
3583
3583
|
});
|
|
3584
|
-
const [g,
|
|
3584
|
+
const [g, u] = ge(!1), [m, v] = ge("");
|
|
3585
3585
|
Ce(() => {
|
|
3586
3586
|
g || v("");
|
|
3587
3587
|
}, [g]);
|
|
@@ -3591,8 +3591,8 @@ const Pa = () => {
|
|
|
3591
3591
|
}, M = et(), x = et(), V = A.filter(
|
|
3592
3592
|
(H) => r.some((Q) => Q.value === H.value)
|
|
3593
3593
|
).sort(ni).map((H) => H.label).join(", ");
|
|
3594
|
-
return /* @__PURE__ */
|
|
3595
|
-
d === "search" ? /* @__PURE__ */
|
|
3594
|
+
return /* @__PURE__ */ p("div", { ref: f, children: /* @__PURE__ */ B("div", { className: "multi-select", children: [
|
|
3595
|
+
d === "search" ? /* @__PURE__ */ p(
|
|
3596
3596
|
jn,
|
|
3597
3597
|
{
|
|
3598
3598
|
externallyControlled: !0,
|
|
@@ -3604,16 +3604,16 @@ const Pa = () => {
|
|
|
3604
3604
|
disabled: e,
|
|
3605
3605
|
autoComplete: "off",
|
|
3606
3606
|
onChange: (H) => {
|
|
3607
|
-
v(H),
|
|
3607
|
+
v(H), u(!0);
|
|
3608
3608
|
},
|
|
3609
|
-
onFocus: () =>
|
|
3609
|
+
onFocus: () => u(!0),
|
|
3610
3610
|
placeholder: o ?? "Search",
|
|
3611
3611
|
required: a,
|
|
3612
3612
|
type: "text",
|
|
3613
3613
|
value: m,
|
|
3614
3614
|
className: "multi-select__input"
|
|
3615
3615
|
}
|
|
3616
|
-
) : /* @__PURE__ */
|
|
3616
|
+
) : /* @__PURE__ */ p(
|
|
3617
3617
|
"button",
|
|
3618
3618
|
{
|
|
3619
3619
|
role: "combobox",
|
|
@@ -3623,13 +3623,13 @@ const Pa = () => {
|
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
|
|
3626
|
+
u((H) => !H);
|
|
3627
3627
|
},
|
|
3628
|
-
children: /* @__PURE__ */
|
|
3628
|
+
children: /* @__PURE__ */ p("span", { className: "multi-select__condensed-text", children: A.length > 0 ? V : o ?? "Select items" })
|
|
3629
3629
|
}
|
|
3630
3630
|
),
|
|
3631
|
-
/* @__PURE__ */
|
|
3632
|
-
|
|
3631
|
+
/* @__PURE__ */ p(
|
|
3632
|
+
Ma,
|
|
3633
3633
|
{
|
|
3634
3634
|
id: M,
|
|
3635
3635
|
isOpen: g,
|
|
@@ -3641,7 +3641,7 @@ const Pa = () => {
|
|
|
3641
3641
|
header: s,
|
|
3642
3642
|
updateItems: k,
|
|
3643
3643
|
footer: c || /* @__PURE__ */ B(we, { children: [
|
|
3644
|
-
/* @__PURE__ */
|
|
3644
|
+
/* @__PURE__ */ p(
|
|
3645
3645
|
_e,
|
|
3646
3646
|
{
|
|
3647
3647
|
appearance: "link",
|
|
@@ -3657,7 +3657,7 @@ const Pa = () => {
|
|
|
3657
3657
|
children: "Select all"
|
|
3658
3658
|
}
|
|
3659
3659
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ p(
|
|
3661
3661
|
_e,
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
@@ -3677,7 +3677,7 @@ const Pa = () => {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
)
|
|
3679
3679
|
] }) });
|
|
3680
|
-
},
|
|
3680
|
+
}, Oa = {
|
|
3681
3681
|
// Mobile or tablet
|
|
3682
3682
|
small: 620
|
|
3683
3683
|
}, ii = $n({ variant: "regular" }), oi = ({
|
|
@@ -3685,7 +3685,7 @@ const Pa = () => {
|
|
|
3685
3685
|
children: n,
|
|
3686
3686
|
variant: t,
|
|
3687
3687
|
...i
|
|
3688
|
-
}) => /* @__PURE__ */
|
|
3688
|
+
}) => /* @__PURE__ */ p(ii.Provider, { value: { variant: t }, children: /* @__PURE__ */ p(
|
|
3689
3689
|
"table",
|
|
3690
3690
|
{
|
|
3691
3691
|
...i,
|
|
@@ -3694,21 +3694,21 @@ const Pa = () => {
|
|
|
3694
3694
|
}),
|
|
3695
3695
|
children: n
|
|
3696
3696
|
}
|
|
3697
|
-
) }),
|
|
3697
|
+
) }), ja = ({ columns: e }) => /* @__PURE__ */ p(we, { children: Array.from({ length: 10 }, (n, t) => /* @__PURE__ */ p("tr", { "aria-hidden": "true", children: e.map((i, o) => /* @__PURE__ */ p(
|
|
3698
3698
|
"td",
|
|
3699
3699
|
{
|
|
3700
3700
|
className: q(i.id, "u-text-overflow-clip"),
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3701
|
+
children: /* @__PURE__ */ p(Bi, { isPending: !0, text: "XXXxxxx.xxxxxxxxx" })
|
|
3702
3702
|
},
|
|
3703
3703
|
o
|
|
3704
|
-
)) }, t)) }),
|
|
3704
|
+
)) }, t)) }), Ta = ({
|
|
3705
3705
|
className: e,
|
|
3706
3706
|
table: n
|
|
3707
3707
|
}) => {
|
|
3708
3708
|
const t = n ? n.getAllColumns() : Array.from({ length: 10 }).fill({ id: "" });
|
|
3709
3709
|
return /* @__PURE__ */ B(we, { children: [
|
|
3710
|
-
/* @__PURE__ */
|
|
3711
|
-
/* @__PURE__ */
|
|
3710
|
+
/* @__PURE__ */ p("caption", { className: "u-visually-hidden", children: "Loading..." }),
|
|
3711
|
+
/* @__PURE__ */ p(ai, { "aria-busy": "true", className: e, children: /* @__PURE__ */ p(ja, { columns: t }) })
|
|
3712
3712
|
] });
|
|
3713
3713
|
}, ai = ({
|
|
3714
3714
|
className: e,
|
|
@@ -3716,9 +3716,9 @@ const Pa = () => {
|
|
|
3716
3716
|
style: t,
|
|
3717
3717
|
...i
|
|
3718
3718
|
}) => {
|
|
3719
|
-
const { variant: o } =
|
|
3719
|
+
const { variant: o } = Lt(ii), a = be(null), [r, l] = ge(null), s = X(() => {
|
|
3720
3720
|
var d, f;
|
|
3721
|
-
if (window.innerWidth >
|
|
3721
|
+
if (window.innerWidth > Oa.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
|
|
@@ -3732,7 +3732,7 @@ const Pa = () => {
|
|
|
3732
3732
|
minHeight: `calc(100vh - ${r}px)`,
|
|
3733
3733
|
...t
|
|
3734
3734
|
} : t, [o, r, t]);
|
|
3735
|
-
return /* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ p(
|
|
3736
3736
|
"tbody",
|
|
3737
3737
|
{
|
|
3738
3738
|
className: e,
|
|
@@ -3744,10 +3744,10 @@ const Pa = () => {
|
|
|
3744
3744
|
);
|
|
3745
3745
|
};
|
|
3746
3746
|
oi.Body = ai;
|
|
3747
|
-
oi.Loading =
|
|
3748
|
-
const ri = ({ children: e }) => /* @__PURE__ */
|
|
3749
|
-
ri.Title =
|
|
3750
|
-
ri.Description =
|
|
3747
|
+
oi.Loading = Ta;
|
|
3748
|
+
const ri = ({ children: e }) => /* @__PURE__ */ p("caption", { children: /* @__PURE__ */ p("div", { className: "p-strip", children: e }) }), za = ({ 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 }) }) }), Va = ({ 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 = za;
|
|
3750
|
+
ri.Description = Va;
|
|
3751
3751
|
/**
|
|
3752
3752
|
* table-core
|
|
3753
3753
|
*
|
|
@@ -3772,7 +3772,7 @@ function ve(e, n) {
|
|
|
3772
3772
|
function at(e) {
|
|
3773
3773
|
return e instanceof Function;
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function Na(e) {
|
|
3776
3776
|
return Array.isArray(e) && e.every((n) => typeof n == "number");
|
|
3777
3777
|
}
|
|
3778
3778
|
function li(e, n) {
|
|
@@ -3796,12 +3796,12 @@ function O(e, n, t) {
|
|
|
3796
3796
|
i = l;
|
|
3797
3797
|
let c;
|
|
3798
3798
|
if (t.key && t.debug && (c = Date.now()), o = n(...l), t == null || t.onChange == null || t.onChange(o), t.key && t.debug && t != null && t.debug()) {
|
|
3799
|
-
const d = Math.round((Date.now() - r) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16,
|
|
3799
|
+
const d = Math.round((Date.now() - r) * 100) / 100, f = Math.round((Date.now() - c) * 100) / 100, g = f / 16, u = (m, v) => {
|
|
3800
3800
|
for (m = String(m); m.length < v; )
|
|
3801
3801
|
m = " " + m;
|
|
3802
3802
|
return m;
|
|
3803
3803
|
};
|
|
3804
|
-
console.info(`%c⏱ ${
|
|
3804
|
+
console.info(`%c⏱ ${u(f, 5)} /${u(d, 5)} ms`, `
|
|
3805
3805
|
font-size: .6rem;
|
|
3806
3806
|
font-weight: bold;
|
|
3807
3807
|
color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
|
|
@@ -3819,7 +3819,7 @@ function j(e, n, t, i) {
|
|
|
3819
3819
|
onChange: i
|
|
3820
3820
|
};
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3822
|
+
function La(e, n, t, i) {
|
|
3823
3823
|
const o = () => {
|
|
3824
3824
|
var r;
|
|
3825
3825
|
return (r = a.getValue()) != null ? r : e.options.renderFallbackValue;
|
|
@@ -3842,7 +3842,7 @@ function Na(e, n, t, i) {
|
|
|
3842
3842
|
r.createCell == null || r.createCell(a, t, n, e);
|
|
3843
3843
|
}, {}), a;
|
|
3844
3844
|
}
|
|
3845
|
-
function
|
|
3845
|
+
function Ha(e, n, t, i) {
|
|
3846
3846
|
var o, a;
|
|
3847
3847
|
const l = {
|
|
3848
3848
|
...e._getDefaultColumnDef(),
|
|
@@ -3850,12 +3850,12 @@ function La(e, n, t, i) {
|
|
|
3850
3850
|
}, s = l.accessorKey;
|
|
3851
3851
|
let c = (o = (a = l.id) != null ? a : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? o : typeof l.header == "string" ? l.header : void 0, d;
|
|
3852
3852
|
if (l.accessorFn ? d = l.accessorFn : s && (s.includes(".") ? d = (g) => {
|
|
3853
|
-
let
|
|
3853
|
+
let u = g;
|
|
3854
3854
|
for (const v of s.split(".")) {
|
|
3855
3855
|
var m;
|
|
3856
|
-
|
|
3856
|
+
u = (m = u) == null ? void 0 : m[v], process.env.NODE_ENV !== "production" && u === void 0 && console.warn(`"${v}" in deeply nested key "${s}" returned undefined.`);
|
|
3857
3857
|
}
|
|
3858
|
-
return
|
|
3858
|
+
return u;
|
|
3859
3859
|
} : d = (g) => g[l.accessorKey]), !c)
|
|
3860
3860
|
throw process.env.NODE_ENV !== "production" ? new Error(l.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
|
|
3861
3861
|
let f = {
|
|
@@ -3867,11 +3867,11 @@ function La(e, n, t, i) {
|
|
|
3867
3867
|
columns: [],
|
|
3868
3868
|
getFlatColumns: O(() => [!0], () => {
|
|
3869
3869
|
var g;
|
|
3870
|
-
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((
|
|
3870
|
+
return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((u) => u.getFlatColumns())];
|
|
3871
3871
|
}, j(e.options, "debugColumns", "column.getFlatColumns")),
|
|
3872
3872
|
getLeafColumns: O(() => [e._getOrderColumnsFn()], (g) => {
|
|
3873
|
-
var
|
|
3874
|
-
if ((
|
|
3873
|
+
var u;
|
|
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
|
}
|
|
@@ -3883,7 +3883,7 @@ function La(e, n, t, i) {
|
|
|
3883
3883
|
return f;
|
|
3884
3884
|
}
|
|
3885
3885
|
const pe = "debugHeaders";
|
|
3886
|
-
function
|
|
3886
|
+
function kn(e, n, t) {
|
|
3887
3887
|
var i;
|
|
3888
3888
|
let a = {
|
|
3889
3889
|
id: (i = t.id) != null ? i : n.id,
|
|
@@ -3912,7 +3912,7 @@ function Fn(e, n, t) {
|
|
|
3912
3912
|
r.createHeader == null || r.createHeader(a, e);
|
|
3913
3913
|
}), a;
|
|
3914
3914
|
}
|
|
3915
|
-
const
|
|
3915
|
+
const qa = {
|
|
3916
3916
|
createTable: (e) => {
|
|
3917
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;
|
|
@@ -3944,18 +3944,18 @@ const Ha = {
|
|
|
3944
3944
|
function Xe(e, n, t, i) {
|
|
3945
3945
|
var o, a;
|
|
3946
3946
|
let r = 0;
|
|
3947
|
-
const l = function(g,
|
|
3948
|
-
|
|
3947
|
+
const l = function(g, u) {
|
|
3948
|
+
u === void 0 && (u = 1), r = Math.max(r, u), g.filter((m) => m.getIsVisible()).forEach((m) => {
|
|
3949
3949
|
var v;
|
|
3950
|
-
(v = m.columns) != null && v.length && l(m.columns,
|
|
3950
|
+
(v = m.columns) != null && v.length && l(m.columns, u + 1);
|
|
3951
3951
|
}, 0);
|
|
3952
3952
|
};
|
|
3953
3953
|
l(e);
|
|
3954
3954
|
let s = [];
|
|
3955
|
-
const c = (g,
|
|
3955
|
+
const c = (g, u) => {
|
|
3956
3956
|
const m = {
|
|
3957
|
-
depth:
|
|
3958
|
-
id: [i, `${
|
|
3957
|
+
depth: u,
|
|
3958
|
+
id: [i, `${u}`].filter(Boolean).join("_"),
|
|
3959
3959
|
headers: []
|
|
3960
3960
|
}, v = [];
|
|
3961
3961
|
g.forEach((E) => {
|
|
@@ -3964,20 +3964,20 @@ function Xe(e, n, t, i) {
|
|
|
3964
3964
|
if (A && E.column.parent ? k = E.column.parent : (k = E.column, M = !0), h && (h == null ? void 0 : h.column) === k)
|
|
3965
3965
|
h.subHeaders.push(E);
|
|
3966
3966
|
else {
|
|
3967
|
-
const x =
|
|
3968
|
-
id: [i,
|
|
3967
|
+
const x = kn(t, k, {
|
|
3968
|
+
id: [i, u, k.id, E == null ? void 0 : E.id].filter(Boolean).join("_"),
|
|
3969
3969
|
isPlaceholder: M,
|
|
3970
3970
|
placeholderId: M ? `${v.filter((V) => V.column === k).length}` : void 0,
|
|
3971
|
-
depth:
|
|
3971
|
+
depth: u,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
3974
3974
|
x.subHeaders.push(E), v.push(x);
|
|
3975
3975
|
}
|
|
3976
3976
|
m.headers.push(E), E.headerGroup = m;
|
|
3977
|
-
}), s.push(m),
|
|
3978
|
-
}, d = n.map((g,
|
|
3977
|
+
}), s.push(m), u > 0 && c(v, u - 1);
|
|
3978
|
+
}, d = n.map((g, u) => kn(t, g, {
|
|
3979
3979
|
depth: r,
|
|
3980
|
-
index:
|
|
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) => {
|
|
@@ -4036,7 +4036,7 @@ const si = (e, n, t, i, o, a, r) => {
|
|
|
4036
4036
|
}
|
|
4037
4037
|
return s.reverse();
|
|
4038
4038
|
},
|
|
4039
|
-
getAllCells: O(() => [e.getAllLeafColumns()], (s) => s.map((c) =>
|
|
4039
|
+
getAllCells: O(() => [e.getAllLeafColumns()], (s) => s.map((c) => La(e, l, c, c.id)), j(e.options, "debugRows", "getAllCells")),
|
|
4040
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++) {
|
|
@@ -4044,7 +4044,7 @@ const si = (e, n, t, i, o, a, r) => {
|
|
|
4044
4044
|
c == null || c.createRow == null || c.createRow(l, e);
|
|
4045
4045
|
}
|
|
4046
4046
|
return l;
|
|
4047
|
-
},
|
|
4047
|
+
}, Ga = {
|
|
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)
|
|
@@ -4086,12 +4086,12 @@ const mi = (e, n, t) => e.getValue(n) === t;
|
|
|
4086
4086
|
mi.autoRemove = (e) => he(e);
|
|
4087
4087
|
const vi = (e, n, t) => e.getValue(n) == t;
|
|
4088
4088
|
vi.autoRemove = (e) => he(e);
|
|
4089
|
-
const
|
|
4089
|
+
const Yt = (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
|
+
Yt.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,7 +4099,7 @@ Xt.resolveFilterValue = (e) => {
|
|
|
4099
4099
|
}
|
|
4100
4100
|
return [a, r];
|
|
4101
4101
|
};
|
|
4102
|
-
|
|
4102
|
+
Yt.autoRemove = (e) => he(e) || he(e[0]) && he(e[1]);
|
|
4103
4103
|
const Se = {
|
|
4104
4104
|
includesString: ci,
|
|
4105
4105
|
includesStringSensitive: pi,
|
|
@@ -4109,12 +4109,12 @@ const Se = {
|
|
|
4109
4109
|
arrIncludesSome: fi,
|
|
4110
4110
|
equals: mi,
|
|
4111
4111
|
weakEquals: vi,
|
|
4112
|
-
inNumberRange:
|
|
4112
|
+
inNumberRange: Yt
|
|
4113
4113
|
};
|
|
4114
4114
|
function he(e) {
|
|
4115
4115
|
return e == null || e === "";
|
|
4116
4116
|
}
|
|
4117
|
-
const
|
|
4117
|
+
const Ba = {
|
|
4118
4118
|
getDefaultColumnDef: () => ({
|
|
4119
4119
|
filterFn: "auto"
|
|
4120
4120
|
}),
|
|
@@ -4149,7 +4149,7 @@ const Ga = {
|
|
|
4149
4149
|
}, e.setFilterValue = (t) => {
|
|
4150
4150
|
n.setColumnFilters((i) => {
|
|
4151
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 (
|
|
4152
|
+
if (Fn(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
|
}
|
|
@@ -4176,7 +4176,7 @@ const Ga = {
|
|
|
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 (Fn(s, r.value, l))
|
|
4180
4180
|
return !1;
|
|
4181
4181
|
}
|
|
4182
4182
|
return !0;
|
|
@@ -4189,57 +4189,57 @@ const Ga = {
|
|
|
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 Fn(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 Ua = (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), Ka = (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
|
+
}, Wa = (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
|
+
}, Ya = (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
|
+
}, Xa = (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
|
+
}, Qa = (e, n) => {
|
|
4223
4223
|
if (!n.length)
|
|
4224
4224
|
return;
|
|
4225
4225
|
const t = n.map((a) => a.getValue(e));
|
|
4226
|
-
if (!
|
|
4226
|
+
if (!Na(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
|
+
}, Ja = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), Za = (e, n) => new Set(n.map((t) => t.getValue(e))).size, er = (e, n) => n.length, Ct = {
|
|
4233
|
+
sum: Ua,
|
|
4234
|
+
min: Ka,
|
|
4235
|
+
max: Wa,
|
|
4236
|
+
extent: Ya,
|
|
4237
|
+
mean: Xa,
|
|
4238
|
+
median: Qa,
|
|
4239
|
+
unique: Ja,
|
|
4240
|
+
uniqueCount: Za,
|
|
4241
|
+
count: er
|
|
4242
|
+
}, tr = {
|
|
4243
4243
|
getDefaultColumnDef: () => ({
|
|
4244
4244
|
aggregatedCell: (e) => {
|
|
4245
4245
|
var n, t;
|
|
@@ -4306,13 +4306,13 @@ const Ba = (e, n, t) => t.reduce((i, o) => {
|
|
|
4306
4306
|
};
|
|
4307
4307
|
}
|
|
4308
4308
|
};
|
|
4309
|
-
function
|
|
4309
|
+
function nr(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 ir = {
|
|
4316
4316
|
getInitialState: (e) => ({
|
|
4317
4317
|
columnOrder: [],
|
|
4318
4318
|
...e
|
|
@@ -4346,13 +4346,13 @@ const nr = {
|
|
|
4346
4346
|
}
|
|
4347
4347
|
a = [...a, ...l];
|
|
4348
4348
|
}
|
|
4349
|
-
return
|
|
4349
|
+
return nr(a, t, i);
|
|
4350
4350
|
}, j(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4351
4351
|
}
|
|
4352
4352
|
}, _t = () => ({
|
|
4353
4353
|
left: [],
|
|
4354
4354
|
right: []
|
|
4355
|
-
}),
|
|
4355
|
+
}), or = {
|
|
4356
4356
|
getInitialState: (e) => ({
|
|
4357
4357
|
columnPinning: _t(),
|
|
4358
4358
|
...e
|
|
@@ -4439,7 +4439,7 @@ const nr = {
|
|
|
4439
4439
|
deltaPercentage: null,
|
|
4440
4440
|
isResizingColumn: !1,
|
|
4441
4441
|
columnSizingStart: []
|
|
4442
|
-
}),
|
|
4442
|
+
}), ar = {
|
|
4443
4443
|
getDefaultColumnDef: () => Qe,
|
|
4444
4444
|
getInitialState: (e) => ({
|
|
4445
4445
|
columnSizing: {},
|
|
@@ -4519,21 +4519,21 @@ const nr = {
|
|
|
4519
4519
|
deltaPercentage: null,
|
|
4520
4520
|
columnSizingStart: []
|
|
4521
4521
|
}));
|
|
4522
|
-
},
|
|
4522
|
+
}, u = t || typeof document < "u" ? document : null, m = {
|
|
4523
4523
|
moveHandler: (h) => f(h.clientX),
|
|
4524
4524
|
upHandler: (h) => {
|
|
4525
|
-
|
|
4525
|
+
u == null || u.removeEventListener("mousemove", m.moveHandler), u == null || u.removeEventListener("mouseup", m.upHandler), g(h.clientX);
|
|
4526
4526
|
}
|
|
4527
4527
|
}, v = {
|
|
4528
4528
|
moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
|
|
4529
4529
|
upHandler: (h) => {
|
|
4530
4530
|
var A;
|
|
4531
|
-
|
|
4531
|
+
u == null || u.removeEventListener("touchmove", v.moveHandler), u == null || u.removeEventListener("touchend", v.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((A = h.touches[0]) == null ? void 0 : A.clientX);
|
|
4532
4532
|
}
|
|
4533
|
-
}, E =
|
|
4533
|
+
}, E = rr() ? {
|
|
4534
4534
|
passive: !1
|
|
4535
4535
|
} : !1;
|
|
4536
|
-
Et(a) ? (
|
|
4536
|
+
Et(a) ? (u == null || u.addEventListener("touchmove", v.moveHandler, E), u == null || u.addEventListener("touchend", v.upHandler, E)) : (u == null || u.addEventListener("mousemove", m.moveHandler, E), u == null || u.addEventListener("mouseup", m.upHandler, E)), n.setColumnSizingInfo((h) => ({
|
|
4537
4537
|
...h,
|
|
4538
4538
|
startOffset: s,
|
|
4539
4539
|
startSize: r,
|
|
@@ -4568,7 +4568,7 @@ const nr = {
|
|
|
4568
4568
|
}
|
|
4569
4569
|
};
|
|
4570
4570
|
let Je = null;
|
|
4571
|
-
function
|
|
4571
|
+
function rr() {
|
|
4572
4572
|
if (typeof Je == "boolean") return Je;
|
|
4573
4573
|
let e = !1;
|
|
4574
4574
|
try {
|
|
@@ -4587,7 +4587,7 @@ function ar() {
|
|
|
4587
4587
|
function Et(e) {
|
|
4588
4588
|
return e.type === "touchstart";
|
|
4589
4589
|
}
|
|
4590
|
-
const
|
|
4590
|
+
const lr = {
|
|
4591
4591
|
getInitialState: (e) => ({
|
|
4592
4592
|
columnVisibility: {},
|
|
4593
4593
|
...e
|
|
@@ -4635,14 +4635,14 @@ const rr = {
|
|
|
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 sr = {
|
|
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
|
+
}, cr = {
|
|
4646
4646
|
getInitialState: (e) => ({
|
|
4647
4647
|
globalFilter: void 0,
|
|
4648
4648
|
...e
|
|
@@ -4675,7 +4675,7 @@ const lr = {
|
|
|
4675
4675
|
e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
|
|
4676
4676
|
};
|
|
4677
4677
|
}
|
|
4678
|
-
},
|
|
4678
|
+
}, pr = {
|
|
4679
4679
|
getInitialState: (e) => ({
|
|
4680
4680
|
expanded: {},
|
|
4681
4681
|
...e
|
|
@@ -4765,7 +4765,7 @@ const lr = {
|
|
|
4765
4765
|
}, jt = 0, Tt = 10, kt = () => ({
|
|
4766
4766
|
pageIndex: jt,
|
|
4767
4767
|
pageSize: Tt
|
|
4768
|
-
}),
|
|
4768
|
+
}), ur = {
|
|
4769
4769
|
getInitialState: (e) => ({
|
|
4770
4770
|
...e,
|
|
4771
4771
|
pagination: {
|
|
@@ -4848,7 +4848,7 @@ const lr = {
|
|
|
4848
4848
|
}, Ft = () => ({
|
|
4849
4849
|
top: [],
|
|
4850
4850
|
bottom: []
|
|
4851
|
-
}),
|
|
4851
|
+
}), dr = {
|
|
4852
4852
|
getInitialState: (e) => ({
|
|
4853
4853
|
rowPinning: Ft(),
|
|
4854
4854
|
...e
|
|
@@ -4879,9 +4879,9 @@ const lr = {
|
|
|
4879
4879
|
};
|
|
4880
4880
|
}
|
|
4881
4881
|
if (t === "top") {
|
|
4882
|
-
var
|
|
4882
|
+
var u, m;
|
|
4883
4883
|
return {
|
|
4884
|
-
top: [...((
|
|
4884
|
+
top: [...((u = s == null ? void 0 : s.top) != null ? u : []).filter((v) => !(l != null && l.has(v))), ...Array.from(l)],
|
|
4885
4885
|
bottom: ((m = s == null ? void 0 : s.bottom) != null ? m : []).filter((v) => !(l != null && l.has(v)))
|
|
4886
4886
|
};
|
|
4887
4887
|
}
|
|
@@ -4949,7 +4949,7 @@ const lr = {
|
|
|
4949
4949
|
return n.filter((a) => !o.has(a.id));
|
|
4950
4950
|
}, j(e.options, "debugRows", "getCenterRows"));
|
|
4951
4951
|
}
|
|
4952
|
-
},
|
|
4952
|
+
}, gr = {
|
|
4953
4953
|
getInitialState: (e) => ({
|
|
4954
4954
|
rowSelection: {},
|
|
4955
4955
|
...e
|
|
@@ -5039,7 +5039,7 @@ const lr = {
|
|
|
5039
5039
|
const {
|
|
5040
5040
|
rowSelection: t
|
|
5041
5041
|
} = n.getState();
|
|
5042
|
-
return
|
|
5042
|
+
return Xt(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 = Xt(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 Xt(e, n) {
|
|
5094
5094
|
var t;
|
|
5095
5095
|
return (t = n[e.id]) != null ? t : !1;
|
|
5096
5096
|
}
|
|
@@ -5099,17 +5099,17 @@ 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() && (Xt(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, fr = (e, n, t) => xi(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), mr = (e, n, t) => xi(ke(e.getValue(t)), ke(n.getValue(t))), vr = (e, n, t) => Qt(ke(e.getValue(t)).toLowerCase(), ke(n.getValue(t)).toLowerCase()), xr = (e, n, t) => Qt(ke(e.getValue(t)), ke(n.getValue(t))), hr = (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
|
+
}, wr = (e, n, t) => Qt(e.getValue(t), n.getValue(t));
|
|
5112
|
+
function Qt(e, n) {
|
|
5113
5113
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5114
5114
|
}
|
|
5115
5115
|
function ke(e) {
|
|
@@ -5136,13 +5136,13 @@ function xi(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: fr,
|
|
5140
|
+
alphanumericCaseSensitive: mr,
|
|
5141
|
+
text: vr,
|
|
5142
|
+
textCaseSensitive: xr,
|
|
5143
|
+
datetime: hr,
|
|
5144
|
+
basic: wr
|
|
5145
|
+
}, yr = {
|
|
5146
5146
|
getInitialState: (e) => ({
|
|
5147
5147
|
sorting: [],
|
|
5148
5148
|
...e
|
|
@@ -5178,7 +5178,7 @@ const Ve = {
|
|
|
5178
5178
|
}, e.toggleSorting = (t, i) => {
|
|
5179
5179
|
const o = e.getNextSortingOrder(), a = typeof t < "u" && t !== null;
|
|
5180
5180
|
n.setSorting((r) => {
|
|
5181
|
-
const l = r == null ? void 0 : r.find((
|
|
5181
|
+
const l = r == null ? void 0 : r.find((u) => u.id === e.id), s = r == null ? void 0 : r.findIndex((u) => u.id === e.id);
|
|
5182
5182
|
let c = [], d, f = a ? t : o === "desc";
|
|
5183
5183
|
if (r != null && r.length && e.getCanMultiSort() && i ? l ? d = "toggle" : d = "add" : r != null && r.length && s !== r.length - 1 ? d = "replace" : l ? d = "toggle" : d = "replace", d === "toggle" && (a || o || (d = "remove")), d === "add") {
|
|
5184
5184
|
var g;
|
|
@@ -5186,10 +5186,10 @@ const Ve = {
|
|
|
5186
5186
|
id: e.id,
|
|
5187
5187
|
desc: f
|
|
5188
5188
|
}], c.splice(0, c.length - ((g = n.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
|
|
5189
|
-
} else d === "toggle" ? c = r.map((
|
|
5190
|
-
...
|
|
5189
|
+
} else d === "toggle" ? c = r.map((u) => u.id === e.id ? {
|
|
5190
|
+
...u,
|
|
5191
5191
|
desc: f
|
|
5192
|
-
} :
|
|
5192
|
+
} : u) : d === "remove" ? c = r.filter((u) => u.id !== e.id) : c = [{
|
|
5193
5193
|
id: e.id,
|
|
5194
5194
|
desc: f
|
|
5195
5195
|
}];
|
|
@@ -5231,34 +5231,34 @@ 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
|
-
Ha,
|
|
5236
|
-
rr,
|
|
5237
|
-
nr,
|
|
5238
|
-
ir,
|
|
5234
|
+
}, br = [
|
|
5239
5235
|
qa,
|
|
5240
|
-
Ga,
|
|
5241
5236
|
lr,
|
|
5242
|
-
|
|
5237
|
+
ir,
|
|
5238
|
+
or,
|
|
5239
|
+
Ga,
|
|
5240
|
+
Ba,
|
|
5243
5241
|
sr,
|
|
5242
|
+
//depends on ColumnFaceting
|
|
5243
|
+
cr,
|
|
5244
5244
|
//depends on ColumnFiltering
|
|
5245
|
-
|
|
5246
|
-
|
|
5245
|
+
yr,
|
|
5246
|
+
tr,
|
|
5247
5247
|
//depends on RowSorting
|
|
5248
|
-
cr,
|
|
5249
5248
|
pr,
|
|
5250
5249
|
ur,
|
|
5251
5250
|
dr,
|
|
5252
|
-
|
|
5251
|
+
gr,
|
|
5252
|
+
ar
|
|
5253
5253
|
];
|
|
5254
|
-
function
|
|
5254
|
+
function Sr(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 = [...br, ...(n = e._features) != null ? n : []];
|
|
5258
5258
|
let o = {
|
|
5259
5259
|
_features: i
|
|
5260
5260
|
};
|
|
5261
|
-
const a = o._features.reduce((g,
|
|
5261
|
+
const a = o._features.reduce((g, u) => Object.assign(g, u.getDefaultOptions == null ? void 0 : u.getDefaultOptions(o)), {}), r = (g) => o.options.mergeOptions ? o.options.mergeOptions(a, g) : {
|
|
5262
5262
|
...a,
|
|
5263
5263
|
...g
|
|
5264
5264
|
};
|
|
@@ -5267,8 +5267,8 @@ function br(e) {
|
|
|
5267
5267
|
...(t = e.initialState) != null ? t : {}
|
|
5268
5268
|
};
|
|
5269
5269
|
o._features.forEach((g) => {
|
|
5270
|
-
var
|
|
5271
|
-
s = (
|
|
5270
|
+
var u;
|
|
5271
|
+
s = (u = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? u : s;
|
|
5272
5272
|
});
|
|
5273
5273
|
const c = [];
|
|
5274
5274
|
let d = !1;
|
|
@@ -5284,39 +5284,39 @@ function br(e) {
|
|
|
5284
5284
|
for (; c.length; )
|
|
5285
5285
|
c.shift()();
|
|
5286
5286
|
d = !1;
|
|
5287
|
-
}).catch((
|
|
5288
|
-
throw
|
|
5287
|
+
}).catch((u) => setTimeout(() => {
|
|
5288
|
+
throw u;
|
|
5289
5289
|
})));
|
|
5290
5290
|
},
|
|
5291
5291
|
reset: () => {
|
|
5292
5292
|
o.setState(o.initialState);
|
|
5293
5293
|
},
|
|
5294
5294
|
setOptions: (g) => {
|
|
5295
|
-
const
|
|
5296
|
-
o.options = r(
|
|
5295
|
+
const u = Ee(g, o.options);
|
|
5296
|
+
o.options = r(u);
|
|
5297
5297
|
},
|
|
5298
5298
|
getState: () => o.options.state,
|
|
5299
5299
|
setState: (g) => {
|
|
5300
5300
|
o.options.onStateChange == null || o.options.onStateChange(g);
|
|
5301
5301
|
},
|
|
5302
|
-
_getRowId: (g,
|
|
5302
|
+
_getRowId: (g, u, m) => {
|
|
5303
5303
|
var v;
|
|
5304
|
-
return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g,
|
|
5304
|
+
return (v = o.options.getRowId == null ? void 0 : o.options.getRowId(g, u, m)) != null ? v : `${m ? [m.id, u].join(".") : u}`;
|
|
5305
5305
|
},
|
|
5306
5306
|
getCoreRowModel: () => (o._getCoreRowModel || (o._getCoreRowModel = o.options.getCoreRowModel(o)), o._getCoreRowModel()),
|
|
5307
5307
|
// The final calls start at the bottom of the model,
|
|
5308
5308
|
// expanded rows, which then work their way up
|
|
5309
5309
|
getRowModel: () => o.getPaginationRowModel(),
|
|
5310
5310
|
//in next version, we should just pass in the row model as the optional 2nd arg
|
|
5311
|
-
getRow: (g,
|
|
5312
|
-
let m = (
|
|
5311
|
+
getRow: (g, u) => {
|
|
5312
|
+
let m = (u ? o.getPrePaginationRowModel() : o.getRowModel()).rowsById[g];
|
|
5313
5313
|
if (!m && (m = o.getCoreRowModel().rowsById[g], !m))
|
|
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
5317
|
_getDefaultColumnDef: O(() => [o.options.defaultColumn], (g) => {
|
|
5318
|
-
var
|
|
5319
|
-
return g = (
|
|
5318
|
+
var u;
|
|
5319
|
+
return g = (u = g) != null ? u : {}, {
|
|
5320
5320
|
header: (m) => {
|
|
5321
5321
|
const v = m.header.column.columnDef;
|
|
5322
5322
|
return v.accessorKey ? v.accessorKey : v.accessorFn ? v.id : null;
|
|
@@ -5332,33 +5332,33 @@ function br(e) {
|
|
|
5332
5332
|
}, j(e, "debugColumns", "_getDefaultColumnDef")),
|
|
5333
5333
|
_getColumnDefs: () => o.options.columns,
|
|
5334
5334
|
getAllColumns: O(() => [o._getColumnDefs()], (g) => {
|
|
5335
|
-
const
|
|
5335
|
+
const u = function(m, v, E) {
|
|
5336
5336
|
return E === void 0 && (E = 0), m.map((h) => {
|
|
5337
|
-
const A =
|
|
5338
|
-
return A.columns = k.columns ?
|
|
5337
|
+
const A = Ha(o, h, E, v), k = h;
|
|
5338
|
+
return A.columns = k.columns ? u(k.columns, A, E + 1) : [], A;
|
|
5339
5339
|
});
|
|
5340
5340
|
};
|
|
5341
|
-
return
|
|
5341
|
+
return u(g);
|
|
5342
5342
|
}, j(e, "debugColumns", "getAllColumns")),
|
|
5343
|
-
getAllFlatColumns: O(() => [o.getAllColumns()], (g) => g.flatMap((
|
|
5344
|
-
_getAllFlatColumnsById: O(() => [o.getAllFlatColumns()], (g) => g.reduce((
|
|
5345
|
-
getAllLeafColumns: O(() => [o.getAllColumns(), o._getOrderColumnsFn()], (g,
|
|
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
|
-
return
|
|
5347
|
+
return u(m);
|
|
5348
5348
|
}, j(e, "debugColumns", "getAllLeafColumns")),
|
|
5349
5349
|
getColumn: (g) => {
|
|
5350
|
-
const
|
|
5351
|
-
return process.env.NODE_ENV !== "production" && !
|
|
5350
|
+
const u = o._getAllFlatColumnsById()[g];
|
|
5351
|
+
return process.env.NODE_ENV !== "production" && !u && console.error(`[Table] Column with id '${g}' does not exist.`), u;
|
|
5352
5352
|
}
|
|
5353
5353
|
};
|
|
5354
5354
|
Object.assign(o, f);
|
|
5355
5355
|
for (let g = 0; g < o._features.length; g++) {
|
|
5356
|
-
const
|
|
5357
|
-
|
|
5356
|
+
const u = o._features[g];
|
|
5357
|
+
u == null || u.createTable == null || u.createTable(o);
|
|
5358
5358
|
}
|
|
5359
5359
|
return o;
|
|
5360
5360
|
}
|
|
5361
|
-
function
|
|
5361
|
+
function Cr() {
|
|
5362
5362
|
return (e) => O(() => [e.options.data], (n) => {
|
|
5363
5363
|
const t = {
|
|
5364
5364
|
rows: [],
|
|
@@ -5379,10 +5379,10 @@ function Sr() {
|
|
|
5379
5379
|
return t.rows = i(n), t;
|
|
5380
5380
|
}, j(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
5381
5381
|
}
|
|
5382
|
-
function
|
|
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 :
|
|
5382
|
+
function _r() {
|
|
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 : Rr(t), j(e.options, "debugTable", "getExpandedRowModel"));
|
|
5384
5384
|
}
|
|
5385
|
-
function
|
|
5385
|
+
function Rr(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,7 +5393,7 @@ function _r(e) {
|
|
|
5393
5393
|
rowsById: e.rowsById
|
|
5394
5394
|
};
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5396
|
+
function Er() {
|
|
5397
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) => {
|
|
@@ -5402,7 +5402,7 @@ function Rr() {
|
|
|
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 = kr(s, f);
|
|
5406
5406
|
return Array.from(g.entries()).map((m, v) => {
|
|
5407
5407
|
let [E, h] = m, A = `${f}:${E}`;
|
|
5408
5408
|
A = d ? `${d}>${A}` : A;
|
|
@@ -5450,7 +5450,7 @@ function Rr() {
|
|
|
5450
5450
|
});
|
|
5451
5451
|
}));
|
|
5452
5452
|
}
|
|
5453
|
-
function
|
|
5453
|
+
function kr(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);
|
|
@@ -5467,22 +5467,22 @@ function Er(e, n) {
|
|
|
5467
5467
|
*
|
|
5468
5468
|
* @license MIT
|
|
5469
5469
|
*/
|
|
5470
|
-
function
|
|
5471
|
-
return e ?
|
|
5472
|
-
}
|
|
5473
|
-
function kr(e) {
|
|
5474
|
-
return Fr(e) || typeof e == "function" || Pr(e);
|
|
5470
|
+
function hi(e, n) {
|
|
5471
|
+
return e ? Fr(e) ? /* @__PURE__ */ ue.createElement(e, n) : e : null;
|
|
5475
5472
|
}
|
|
5476
5473
|
function Fr(e) {
|
|
5474
|
+
return Pr(e) || typeof e == "function" || Ir(e);
|
|
5475
|
+
}
|
|
5476
|
+
function Pr(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 Ir(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 Dr(e) {
|
|
5486
5486
|
const n = {
|
|
5487
5487
|
state: {},
|
|
5488
5488
|
// Dummy state
|
|
@@ -5492,7 +5492,7 @@ function Ir(e) {
|
|
|
5492
5492
|
renderFallbackValue: null,
|
|
5493
5493
|
...e
|
|
5494
5494
|
}, [t] = ue.useState(() => ({
|
|
5495
|
-
current:
|
|
5495
|
+
current: Sr(n)
|
|
5496
5496
|
})), [i, o] = ue.useState(() => t.current.initialState);
|
|
5497
5497
|
return t.current.setOptions((a) => ({
|
|
5498
5498
|
...a,
|
|
@@ -5508,27 +5508,34 @@ function Ir(e) {
|
|
|
5508
5508
|
}
|
|
5509
5509
|
})), t.current;
|
|
5510
5510
|
}
|
|
5511
|
-
const
|
|
5511
|
+
const Pn = ({
|
|
5512
5512
|
header: e
|
|
5513
5513
|
}) => {
|
|
5514
5514
|
var n;
|
|
5515
5515
|
return {
|
|
5516
|
-
asc: /* @__PURE__ */
|
|
5517
|
-
desc: /* @__PURE__ */
|
|
5516
|
+
asc: /* @__PURE__ */ p(Re, { name: "chevron-up", children: "ascending" }),
|
|
5517
|
+
desc: /* @__PURE__ */ p(Re, { name: "chevron-down", children: "descending" })
|
|
5518
5518
|
}[(n = e == null ? void 0 : e.column) == null ? void 0 : n.getIsSorted()] ?? null;
|
|
5519
|
-
}, $r = ({ header: e }) =>
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5519
|
+
}, $r = ({ header: e }) => {
|
|
5520
|
+
var o;
|
|
5521
|
+
const n = e.column.getCanSort(), t = (o = e.column.columnDef.meta) == null ? void 0 : o.isInteractiveHeader, i = hi(e.column.columnDef.header, e.getContext());
|
|
5522
|
+
return /* @__PURE__ */ p("th", { className: q("p-column-header", e.column.id), children: n && !t ? /* @__PURE__ */ p(
|
|
5523
|
+
_e,
|
|
5524
|
+
{
|
|
5525
|
+
appearance: "link",
|
|
5526
|
+
className: "p-button--column-header",
|
|
5527
|
+
onClick: e.column.getToggleSortingHandler(),
|
|
5528
|
+
type: "button",
|
|
5529
|
+
children: /* @__PURE__ */ B(we, { children: [
|
|
5530
|
+
i,
|
|
5531
|
+
/* @__PURE__ */ p(Pn, { header: e })
|
|
5532
|
+
] })
|
|
5533
|
+
}
|
|
5534
|
+
) : /* @__PURE__ */ B("span", { className: "p-container--column-header", children: [
|
|
5535
|
+
i,
|
|
5536
|
+
n && !t && /* @__PURE__ */ p(Pn, { header: e })
|
|
5537
|
+
] }) }, e.id);
|
|
5538
|
+
}, 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
5539
|
Le.Left = Ar;
|
|
5533
5540
|
Le.Right = Mr;
|
|
5534
5541
|
const Or = ({
|
|
@@ -5542,13 +5549,13 @@ const Or = ({
|
|
|
5542
5549
|
pageSizes: l = [20, 30, 50, 100]
|
|
5543
5550
|
}) => {
|
|
5544
5551
|
const s = se(() => l, []), c = se(
|
|
5545
|
-
() => s.map((
|
|
5546
|
-
label: `${
|
|
5547
|
-
value:
|
|
5552
|
+
() => s.map((u) => ({
|
|
5553
|
+
label: `${u}/page`,
|
|
5554
|
+
value: u
|
|
5548
5555
|
})),
|
|
5549
5556
|
[s]
|
|
5550
|
-
), d = Math.ceil(t / n), f = (
|
|
5551
|
-
const { value: m } =
|
|
5557
|
+
), d = Math.ceil(t / n), f = (u) => {
|
|
5558
|
+
const { value: m } = u.target;
|
|
5552
5559
|
i(Number(m));
|
|
5553
5560
|
}, g = () => e === d ? n - (d * n - t) : e < d ? n : 0;
|
|
5554
5561
|
return /* @__PURE__ */ B(Le, { children: [
|
|
@@ -5561,8 +5568,8 @@ const Or = ({
|
|
|
5561
5568
|
o
|
|
5562
5569
|
] }),
|
|
5563
5570
|
/* @__PURE__ */ B(Le.Right, { children: [
|
|
5564
|
-
/* @__PURE__ */
|
|
5565
|
-
|
|
5571
|
+
/* @__PURE__ */ p(
|
|
5572
|
+
Eo,
|
|
5566
5573
|
{
|
|
5567
5574
|
currentPage: e,
|
|
5568
5575
|
disabled: r,
|
|
@@ -5570,8 +5577,8 @@ const Or = ({
|
|
|
5570
5577
|
totalPages: d
|
|
5571
5578
|
}
|
|
5572
5579
|
),
|
|
5573
|
-
/* @__PURE__ */
|
|
5574
|
-
|
|
5580
|
+
/* @__PURE__ */ p(
|
|
5581
|
+
ji,
|
|
5575
5582
|
{
|
|
5576
5583
|
"aria-label": "Items per page",
|
|
5577
5584
|
className: "u-no-margin--bottom",
|
|
@@ -5589,7 +5596,7 @@ const Or = ({
|
|
|
5589
5596
|
const t = e.getCoreRowModel().rows.filter((o) => o.getCanSelect());
|
|
5590
5597
|
let i;
|
|
5591
5598
|
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
|
-
/* @__PURE__ */
|
|
5599
|
+
/* @__PURE__ */ p(
|
|
5593
5600
|
"input",
|
|
5594
5601
|
{
|
|
5595
5602
|
"aria-checked": i,
|
|
@@ -5607,7 +5614,7 @@ const Or = ({
|
|
|
5607
5614
|
...n
|
|
5608
5615
|
}
|
|
5609
5616
|
),
|
|
5610
|
-
/* @__PURE__ */
|
|
5617
|
+
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5611
5618
|
] });
|
|
5612
5619
|
}, Tr = ({ row: e, ...n }) => {
|
|
5613
5620
|
if (!e)
|
|
@@ -5623,7 +5630,7 @@ const Or = ({
|
|
|
5623
5630
|
"aria-disabled": !e.getCanSelect(),
|
|
5624
5631
|
className: "p-checkbox--inline p-table-checkbox--group",
|
|
5625
5632
|
children: [
|
|
5626
|
-
/* @__PURE__ */
|
|
5633
|
+
/* @__PURE__ */ p(
|
|
5627
5634
|
"input",
|
|
5628
5635
|
{
|
|
5629
5636
|
"aria-checked": a ? "mixed" : void 0,
|
|
@@ -5640,7 +5647,7 @@ const Or = ({
|
|
|
5640
5647
|
...n
|
|
5641
5648
|
}
|
|
5642
5649
|
),
|
|
5643
|
-
/* @__PURE__ */
|
|
5650
|
+
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5644
5651
|
]
|
|
5645
5652
|
}
|
|
5646
5653
|
);
|
|
@@ -5653,8 +5660,8 @@ const Or = ({
|
|
|
5653
5660
|
if (!e)
|
|
5654
5661
|
return null;
|
|
5655
5662
|
const o = typeof n == "string" ? n : n(e);
|
|
5656
|
-
return /* @__PURE__ */
|
|
5657
|
-
|
|
5663
|
+
return /* @__PURE__ */ p(
|
|
5664
|
+
qt,
|
|
5658
5665
|
{
|
|
5659
5666
|
message: !e.getCanSelect() && o,
|
|
5660
5667
|
position: "btm-right",
|
|
@@ -5664,7 +5671,7 @@ const Or = ({
|
|
|
5664
5671
|
"aria-disabled": !e.getCanSelect(),
|
|
5665
5672
|
className: "p-checkbox--inline p-table-checkbox",
|
|
5666
5673
|
children: [
|
|
5667
|
-
/* @__PURE__ */
|
|
5674
|
+
/* @__PURE__ */ p(
|
|
5668
5675
|
"input",
|
|
5669
5676
|
{
|
|
5670
5677
|
className: "p-checkbox__input",
|
|
@@ -5675,7 +5682,7 @@ const Or = ({
|
|
|
5675
5682
|
...i
|
|
5676
5683
|
}
|
|
5677
5684
|
),
|
|
5678
|
-
/* @__PURE__ */
|
|
5685
|
+
/* @__PURE__ */ p("span", { className: "p-checkbox__label" })
|
|
5679
5686
|
]
|
|
5680
5687
|
}
|
|
5681
5688
|
)
|
|
@@ -5698,7 +5705,7 @@ const Yr = ({
|
|
|
5698
5705
|
isLoading: d,
|
|
5699
5706
|
noData: f,
|
|
5700
5707
|
pagination: g,
|
|
5701
|
-
pinGroup:
|
|
5708
|
+
pinGroup: u,
|
|
5702
5709
|
sorting: m = [],
|
|
5703
5710
|
setSorting: v,
|
|
5704
5711
|
rowSelection: E,
|
|
@@ -5738,8 +5745,8 @@ const Yr = ({
|
|
|
5738
5745
|
id: "p-generic-table__select",
|
|
5739
5746
|
accessorKey: "id",
|
|
5740
5747
|
enableSorting: !1,
|
|
5741
|
-
header: ({ table: y }) => c ? "" : /* @__PURE__ */
|
|
5742
|
-
cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */
|
|
5748
|
+
header: ({ table: y }) => c ? "" : /* @__PURE__ */ p(Me.All, { table: y }),
|
|
5749
|
+
cell: ({ row: y }) => y.getIsGrouped() ? null : /* @__PURE__ */ p(
|
|
5743
5750
|
Me,
|
|
5744
5751
|
{
|
|
5745
5752
|
row: y,
|
|
@@ -5755,8 +5762,8 @@ const Yr = ({
|
|
|
5755
5762
|
id: "p-generic-table__group-select",
|
|
5756
5763
|
accessorKey: "id",
|
|
5757
5764
|
enableSorting: !1,
|
|
5758
|
-
header: ({ table: y }) => /* @__PURE__ */
|
|
5759
|
-
cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */
|
|
5765
|
+
header: ({ table: y }) => /* @__PURE__ */ p(Me.All, { table: y }),
|
|
5766
|
+
cell: ({ row: y }) => y.getIsGrouped() ? /* @__PURE__ */ p(Me.Group, { row: y }) : null
|
|
5760
5767
|
},
|
|
5761
5768
|
...I
|
|
5762
5769
|
] : b = I;
|
|
@@ -5768,12 +5775,12 @@ const Yr = ({
|
|
|
5768
5775
|
header: "",
|
|
5769
5776
|
cell: ({ row: y }) => {
|
|
5770
5777
|
const F = y.getIsExpanded();
|
|
5771
|
-
return y.getIsGrouped() ? /* @__PURE__ */
|
|
5772
|
-
|
|
5778
|
+
return y.getIsGrouped() ? /* @__PURE__ */ p(
|
|
5779
|
+
qt,
|
|
5773
5780
|
{
|
|
5774
5781
|
message: F ? "Collapse" : "Expand",
|
|
5775
5782
|
position: "btm-right",
|
|
5776
|
-
children: /* @__PURE__ */
|
|
5783
|
+
children: /* @__PURE__ */ p(Re, { name: F ? Zt.chevronUp : Zt.chevronDown })
|
|
5777
5784
|
}
|
|
5778
5785
|
) : null;
|
|
5779
5786
|
}
|
|
@@ -5794,8 +5801,8 @@ const Yr = ({
|
|
|
5794
5801
|
}
|
|
5795
5802
|
return 0;
|
|
5796
5803
|
}) : a, [a, Z]), te = se(() => ae.length ? [...ae].sort((b, I) => {
|
|
5797
|
-
if (
|
|
5798
|
-
for (const { value: y, isTop: F } of
|
|
5804
|
+
if (u != null && u.length && Z.length)
|
|
5805
|
+
for (const { value: y, isTop: F } of u) {
|
|
5799
5806
|
const P = Z[0], $ = b[P] ?? null, z = I[P] ?? null;
|
|
5800
5807
|
if ($ === y && z !== y)
|
|
5801
5808
|
return F ? -1 : 1;
|
|
@@ -5812,7 +5819,7 @@ const Yr = ({
|
|
|
5812
5819
|
return F ? -1 : 1;
|
|
5813
5820
|
}
|
|
5814
5821
|
return 0;
|
|
5815
|
-
}) : [], [ae, fe,
|
|
5822
|
+
}) : [], [ae, fe, u, Z]);
|
|
5816
5823
|
On(() => {
|
|
5817
5824
|
const b = () => {
|
|
5818
5825
|
const F = x.current;
|
|
@@ -5830,7 +5837,7 @@ const Yr = ({
|
|
|
5830
5837
|
window.removeEventListener("resize", b), y && I.unobserve(y);
|
|
5831
5838
|
};
|
|
5832
5839
|
}, [o, te.length, d]);
|
|
5833
|
-
const w = k === "full-height" && Q ? "full-height" : "regular", _ =
|
|
5840
|
+
const w = k === "full-height" && Q ? "full-height" : "regular", _ = Dr({
|
|
5834
5841
|
data: te,
|
|
5835
5842
|
columns: ee,
|
|
5836
5843
|
state: {
|
|
@@ -5851,16 +5858,16 @@ const Yr = ({
|
|
|
5851
5858
|
enableSorting: !0,
|
|
5852
5859
|
enableExpanding: !0,
|
|
5853
5860
|
getSubRows: s,
|
|
5854
|
-
getExpandedRowModel:
|
|
5855
|
-
getCoreRowModel:
|
|
5856
|
-
getGroupedRowModel:
|
|
5861
|
+
getExpandedRowModel: _r(),
|
|
5862
|
+
getCoreRowModel: Cr(),
|
|
5863
|
+
getGroupedRowModel: Er(),
|
|
5857
5864
|
groupedColumnMode: !1,
|
|
5858
5865
|
enableRowSelection: n,
|
|
5859
5866
|
enableMultiRowSelection: n,
|
|
5860
5867
|
getRowId: (b) => b.id.toString()
|
|
5861
|
-
}), N = () => /* @__PURE__ */
|
|
5868
|
+
}), N = () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__loading", colSpan: ee.length, children: /* @__PURE__ */ p(Ht, { text: "Loading..." }) }) }), L = () => _.getRowModel().rows.length < 1 ? /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { className: "p-generic-table__no-data", colSpan: ee.length, children: f }) }) : _.getRowModel().rows.map((b) => {
|
|
5862
5869
|
const { getIsGrouped: I, id: y, getVisibleCells: F, parentId: P } = b, $ = !I(), z = E !== void 0 && Object.keys(E).includes(y);
|
|
5863
|
-
return /* @__PURE__ */
|
|
5870
|
+
return /* @__PURE__ */ p(
|
|
5864
5871
|
"tr",
|
|
5865
5872
|
{
|
|
5866
5873
|
"aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
|
|
@@ -5874,7 +5881,7 @@ const Yr = ({
|
|
|
5874
5881
|
$ || b.toggleExpanded();
|
|
5875
5882
|
},
|
|
5876
5883
|
role: "row",
|
|
5877
|
-
children: F().filter((U) => !$ && (U.column.id === "p-generic-table__group-select" || U.column.id === "p-generic-table__group-chevron") ? !0 : r(b, U.column)).map((U) => /* @__PURE__ */
|
|
5884
|
+
children: F().filter((U) => !$ && (U.column.id === "p-generic-table__group-select" || U.column.id === "p-generic-table__group-chevron") ? !0 : r(b, U.column)).map((U) => /* @__PURE__ */ p("td", { className: q(`${U.column.id}`), children: hi(U.column.columnDef.cell, U.getContext()) }, U.id))
|
|
5878
5885
|
},
|
|
5879
5886
|
y
|
|
5880
5887
|
);
|
|
@@ -5886,7 +5893,7 @@ const Yr = ({
|
|
|
5886
5893
|
"data-testid": "p-generic-table",
|
|
5887
5894
|
...M,
|
|
5888
5895
|
children: [
|
|
5889
|
-
g && /* @__PURE__ */
|
|
5896
|
+
g && /* @__PURE__ */ p(
|
|
5890
5897
|
Or,
|
|
5891
5898
|
{
|
|
5892
5899
|
currentPage: g.currentPage,
|
|
@@ -5913,9 +5920,9 @@ const Yr = ({
|
|
|
5913
5920
|
}),
|
|
5914
5921
|
role: "grid",
|
|
5915
5922
|
children: [
|
|
5916
|
-
/* @__PURE__ */
|
|
5917
|
-
/* @__PURE__ */
|
|
5918
|
-
n && c && (!A && y === 2 || A && y === 3) ? /* @__PURE__ */
|
|
5923
|
+
/* @__PURE__ */ p("thead", { children: _.getHeaderGroups().map((b) => /* @__PURE__ */ p("tr", { role: "row", children: b.headers.filter(l).map((I, y) => /* @__PURE__ */ B(Mn, { children: [
|
|
5924
|
+
/* @__PURE__ */ p($r, { header: I }),
|
|
5925
|
+
n && c && (!A && y === 2 || A && y === 3) ? /* @__PURE__ */ p(
|
|
5919
5926
|
"th",
|
|
5920
5927
|
{
|
|
5921
5928
|
className: "p-generic-table__select-alignment",
|
|
@@ -5923,7 +5930,7 @@ const Yr = ({
|
|
|
5923
5930
|
}
|
|
5924
5931
|
) : null
|
|
5925
5932
|
] }, I.id)) }, b.id)) }),
|
|
5926
|
-
/* @__PURE__ */
|
|
5933
|
+
/* @__PURE__ */ p(
|
|
5927
5934
|
"tbody",
|
|
5928
5935
|
{
|
|
5929
5936
|
ref: x,
|
|
@@ -5995,7 +6002,7 @@ const Yr = ({
|
|
|
5995
6002
|
highlightedIndex: -1,
|
|
5996
6003
|
showingMore: !1,
|
|
5997
6004
|
cursorPosition: 0
|
|
5998
|
-
}),
|
|
6005
|
+
}), u = be(null), m = be(null), v = be(null), E = se(() => {
|
|
5999
6006
|
const D = f.showingMore ? In.EXPANDED : In.DEFAULT, R = l.slice(0, D);
|
|
6000
6007
|
return !f.showingMore && l.length > D ? [...R, { value: "Show more...", type: "more" }] : R;
|
|
6001
6008
|
}, [l, f.showingMore]), h = X(
|
|
@@ -6005,7 +6012,7 @@ const Yr = ({
|
|
|
6005
6012
|
[]
|
|
6006
6013
|
), A = X(
|
|
6007
6014
|
(D) => {
|
|
6008
|
-
|
|
6015
|
+
u.current && !u.current.contains(D.target) && h({
|
|
6009
6016
|
isVisible: !1,
|
|
6010
6017
|
highlightedIndex: -1
|
|
6011
6018
|
});
|
|
@@ -6156,10 +6163,10 @@ const Yr = ({
|
|
|
6156
6163
|
{
|
|
6157
6164
|
className: q("p-query-input", e),
|
|
6158
6165
|
"data-testid": "p-query-input",
|
|
6159
|
-
ref:
|
|
6166
|
+
ref: u,
|
|
6160
6167
|
...d,
|
|
6161
6168
|
children: [
|
|
6162
|
-
/* @__PURE__ */
|
|
6169
|
+
/* @__PURE__ */ p(
|
|
6163
6170
|
jn,
|
|
6164
6171
|
{
|
|
6165
6172
|
disabled: n,
|
|
@@ -6182,7 +6189,7 @@ const Yr = ({
|
|
|
6182
6189
|
"aria-owns": "query-suggestions"
|
|
6183
6190
|
}
|
|
6184
6191
|
),
|
|
6185
|
-
f.isVisible && l.length > 0 && /* @__PURE__ */
|
|
6192
|
+
f.isVisible && l.length > 0 && /* @__PURE__ */ p(
|
|
6186
6193
|
"ul",
|
|
6187
6194
|
{
|
|
6188
6195
|
className: "p-query-input__list",
|
|
@@ -6190,7 +6197,7 @@ const Yr = ({
|
|
|
6190
6197
|
id: "query-suggestions",
|
|
6191
6198
|
role: "listbox",
|
|
6192
6199
|
"aria-label": "Search suggestions",
|
|
6193
|
-
children: s ? /* @__PURE__ */
|
|
6200
|
+
children: s ? /* @__PURE__ */ p("div", { className: "p-query-input__loading", children: /* @__PURE__ */ p(Ht, { text: "Loading..." }) }) : E.map((D, R) => /* @__PURE__ */ B(
|
|
6194
6201
|
"li",
|
|
6195
6202
|
{
|
|
6196
6203
|
className: q("p-query-input__item", {
|
|
@@ -6204,7 +6211,7 @@ const Yr = ({
|
|
|
6204
6211
|
tabIndex: -1,
|
|
6205
6212
|
children: [
|
|
6206
6213
|
/* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
|
|
6207
|
-
/* @__PURE__ */
|
|
6214
|
+
/* @__PURE__ */ p(
|
|
6208
6215
|
"span",
|
|
6209
6216
|
{
|
|
6210
6217
|
className: q({
|
|
@@ -6213,9 +6220,9 @@ const Yr = ({
|
|
|
6213
6220
|
children: D.value
|
|
6214
6221
|
}
|
|
6215
6222
|
),
|
|
6216
|
-
D.type === "filter" && /* @__PURE__ */
|
|
6223
|
+
D.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
|
|
6217
6224
|
] }),
|
|
6218
|
-
D.type !== "more" && /* @__PURE__ */
|
|
6225
|
+
D.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: D.type })
|
|
6219
6226
|
]
|
|
6220
6227
|
},
|
|
6221
6228
|
`${D.value}-${R}`
|
|
@@ -6235,13 +6242,13 @@ const Yr = ({
|
|
|
6235
6242
|
if (l === 0)
|
|
6236
6243
|
return { value: 0, unit: i || "B" };
|
|
6237
6244
|
const s = t ? 1024 : 1e3, c = t ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"] : ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], d = c.findIndex((v) => v === n) || 0, f = l * Math.pow(s, d), g = i ? c.findIndex((v) => v === i) : Math.floor(Math.log(f) / Math.log(s));
|
|
6238
|
-
let
|
|
6239
|
-
if (
|
|
6245
|
+
let u = f / Math.pow(s, g);
|
|
6246
|
+
if (u % 1 !== 0) {
|
|
6240
6247
|
const v = Math.pow(10, o);
|
|
6241
|
-
|
|
6248
|
+
u = Math[a](u * v) / v;
|
|
6242
6249
|
}
|
|
6243
6250
|
return {
|
|
6244
|
-
value: r ? -
|
|
6251
|
+
value: r ? -u : u,
|
|
6245
6252
|
unit: c[g]
|
|
6246
6253
|
};
|
|
6247
6254
|
};
|
|
@@ -6249,22 +6256,22 @@ export {
|
|
|
6249
6256
|
ot as ContentSection,
|
|
6250
6257
|
oi as DynamicTable,
|
|
6251
6258
|
Gr as ExternalLink,
|
|
6252
|
-
|
|
6259
|
+
Da as FileUpload,
|
|
6253
6260
|
Kr as FileUploadContainer,
|
|
6254
|
-
|
|
6261
|
+
Ut as FormSection,
|
|
6255
6262
|
Yr as GenericTable,
|
|
6256
6263
|
zn as InputGroup,
|
|
6257
6264
|
Ln as MainToolbar,
|
|
6258
|
-
|
|
6265
|
+
Ni as Meter,
|
|
6259
6266
|
Wr as MultiSelect,
|
|
6260
|
-
|
|
6267
|
+
Ma as MultiSelectDropdown,
|
|
6261
6268
|
le as Navigation,
|
|
6262
|
-
|
|
6269
|
+
uo as NavigationBar,
|
|
6263
6270
|
Br as NestedFormGroup,
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6271
|
+
Ro as Pagination,
|
|
6272
|
+
Eo as PaginationContainer,
|
|
6273
|
+
Bi as Placeholder,
|
|
6274
|
+
Gi as ProgressIndicator,
|
|
6268
6275
|
Xr as QueryInput,
|
|
6269
6276
|
Ur as Stepper,
|
|
6270
6277
|
ri as TableCaption,
|