@canonical/maas-react-components 1.33.4 → 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.
- package/dist/@canonical/maas-react-components.es.js +1222 -1212
- package/dist/@canonical/maas-react-components.umd.js +16 -16
- package/dist/maas-react-components.css +1 -1
- package/dist/src/lib/components/GenericTable/GenericTable.d.ts +6 -4
- package/dist/src/lib/components/GenericTable/GenericTable.stories.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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 G = /* @__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 G = /* @__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,
|
|
@@ -79,25 +79,25 @@ const G = /* @__PURE__ */ Bt(Ti), Ie = {
|
|
|
79
79
|
size: a = "regular",
|
|
80
80
|
...r
|
|
81
81
|
}) => {
|
|
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] =
|
|
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
|
-
className:
|
|
92
|
+
className: q("p-meter", e, {
|
|
93
93
|
"p-meter--small": a === "small"
|
|
94
94
|
}),
|
|
95
95
|
"aria-label": r == null ? void 0 : r["aria-label"],
|
|
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 G = /* @__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 G = /* @__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 G = /* @__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,135 +167,135 @@ const G = /* @__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
|
-
className:
|
|
176
|
+
className: q("p-meter__label", e),
|
|
177
177
|
"data-testid": Oe.label,
|
|
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
|
-
className:
|
|
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",
|
|
225
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
226
|
-
className:
|
|
226
|
+
className: q(
|
|
227
227
|
"is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
|
|
228
228
|
t
|
|
229
229
|
),
|
|
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
|
-
className:
|
|
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
|
-
className:
|
|
254
|
+
className: q("p-panel__logo-name is-fading-when-collapsed", {
|
|
255
255
|
"p-panel__logo-name--small": n === "small"
|
|
256
256
|
}),
|
|
257
257
|
children: e
|
|
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",
|
|
267
|
-
className:
|
|
267
|
+
className: q(
|
|
268
268
|
"p-side-navigation__button--menu has-icon is-dark",
|
|
269
269
|
n
|
|
270
270
|
),
|
|
271
271
|
onClick: (i) => {
|
|
272
272
|
t && t(i), i.stopPropagation(), i.currentTarget.blur();
|
|
273
273
|
},
|
|
274
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ p(we, { children: e })
|
|
275
275
|
}
|
|
276
|
-
),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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,36 +336,36 @@ 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
|
-
className:
|
|
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
|
-
className:
|
|
358
|
+
className: q("main-toolbar__title p-heading--4", t),
|
|
359
359
|
"data-testid": "main-toolbar-heading",
|
|
360
360
|
...i,
|
|
361
361
|
children: n
|
|
362
362
|
}
|
|
363
|
-
),
|
|
363
|
+
), 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,10 +375,10 @@ 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
|
-
className:
|
|
381
|
+
className: q("main-toolbar__controls", {
|
|
382
382
|
"main-toolbar__controls--stacked": t
|
|
383
383
|
}),
|
|
384
384
|
children: e
|
|
@@ -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,
|
|
@@ -395,28 +395,28 @@ const ot = ({
|
|
|
395
395
|
variant: i = "wide",
|
|
396
396
|
...o
|
|
397
397
|
}) => {
|
|
398
|
-
const a = t || "section", r =
|
|
399
|
-
return /* @__PURE__ */
|
|
400
|
-
},
|
|
398
|
+
const a = t || "section", r = q("content-section", n);
|
|
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
|
-
className:
|
|
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
|
-
className:
|
|
419
|
+
className: q("fade-in--down", n),
|
|
420
420
|
"aria-hidden": t ? "false" : "true",
|
|
421
421
|
style: { visibility: t ? "visible" : "hidden" },
|
|
422
422
|
children: e
|
|
@@ -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
|
-
className:
|
|
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
|
-
const [o, a] =
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
|
|
496
|
+
const [o, a] = ge(e), [r, l] = ge("");
|
|
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,13 +516,13 @@ 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,
|
|
525
|
-
className:
|
|
525
|
+
className: q("stepper__title", {
|
|
526
526
|
"stepper__title--is-active": o,
|
|
527
527
|
"stepper__title--is-complete": a
|
|
528
528
|
}),
|
|
@@ -539,12 +539,12 @@ var Ue = { exports: {} }, Ke = { exports: {} }, K = {};
|
|
|
539
539
|
* This source code is licensed under the MIT license found in the
|
|
540
540
|
* LICENSE file in the root directory of this source tree.
|
|
541
541
|
*/
|
|
542
|
-
var
|
|
543
|
-
function
|
|
544
|
-
if (
|
|
545
|
-
|
|
546
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, r = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120,
|
|
547
|
-
function
|
|
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
|
+
function k(x) {
|
|
548
548
|
if (typeof x == "object" && x !== null) {
|
|
549
549
|
var V = x.$$typeof;
|
|
550
550
|
switch (V) {
|
|
@@ -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:
|
|
@@ -574,36 +574,36 @@ function Eo() {
|
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
577
|
+
function M(x) {
|
|
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 =
|
|
581
|
-
return
|
|
582
|
-
}, K.isConcurrentMode =
|
|
583
|
-
return
|
|
580
|
+
return K.AsyncMode = s, K.ConcurrentMode = c, K.ContextConsumer = l, K.ContextProvider = r, K.Element = n, K.ForwardRef = d, K.Fragment = i, K.Lazy = m, K.Memo = u, K.Portal = t, K.Profiler = a, K.StrictMode = o, K.Suspense = f, K.isAsyncMode = function(x) {
|
|
581
|
+
return M(x) || k(x) === s;
|
|
582
|
+
}, K.isConcurrentMode = M, K.isContextConsumer = function(x) {
|
|
583
|
+
return k(x) === l;
|
|
584
584
|
}, K.isContextProvider = function(x) {
|
|
585
|
-
return
|
|
585
|
+
return k(x) === r;
|
|
586
586
|
}, K.isElement = function(x) {
|
|
587
587
|
return typeof x == "object" && x !== null && x.$$typeof === n;
|
|
588
588
|
}, K.isForwardRef = function(x) {
|
|
589
|
-
return
|
|
589
|
+
return k(x) === d;
|
|
590
590
|
}, K.isFragment = function(x) {
|
|
591
|
-
return
|
|
591
|
+
return k(x) === i;
|
|
592
592
|
}, K.isLazy = function(x) {
|
|
593
|
-
return
|
|
593
|
+
return k(x) === m;
|
|
594
594
|
}, K.isMemo = function(x) {
|
|
595
|
-
return
|
|
595
|
+
return k(x) === u;
|
|
596
596
|
}, K.isPortal = function(x) {
|
|
597
|
-
return
|
|
597
|
+
return k(x) === t;
|
|
598
598
|
}, K.isProfiler = function(x) {
|
|
599
|
-
return
|
|
599
|
+
return k(x) === a;
|
|
600
600
|
}, K.isStrictMode = function(x) {
|
|
601
|
-
return
|
|
601
|
+
return k(x) === o;
|
|
602
602
|
}, K.isSuspense = function(x) {
|
|
603
|
-
return
|
|
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 ===
|
|
606
|
-
}, K.typeOf =
|
|
605
|
+
return typeof x == "string" || typeof x == "function" || x === i || x === c || x === a || x === o || x === f || x === g || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === u || x.$$typeof === r || x.$$typeof === l || x.$$typeof === d || x.$$typeof === E || x.$$typeof === h || x.$$typeof === A || x.$$typeof === v);
|
|
606
|
+
}, K.typeOf = k, K;
|
|
607
607
|
}
|
|
608
608
|
var W = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
@@ -614,20 +614,20 @@ 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,
|
|
621
|
-
function
|
|
622
|
-
return typeof
|
|
623
|
-
|
|
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
|
+
function k(S) {
|
|
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 === 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
|
-
function
|
|
626
|
-
if (typeof
|
|
627
|
-
var
|
|
628
|
-
switch (
|
|
625
|
+
function M(S) {
|
|
626
|
+
if (typeof S == "object" && S !== null) {
|
|
627
|
+
var ce = S.$$typeof;
|
|
628
|
+
switch (ce) {
|
|
629
629
|
case n:
|
|
630
|
-
var Fe =
|
|
630
|
+
var Fe = S.type;
|
|
631
631
|
switch (Fe) {
|
|
632
632
|
case s:
|
|
633
633
|
case c:
|
|
@@ -642,74 +642,74 @@ 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:
|
|
649
|
-
return
|
|
649
|
+
return ce;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
case t:
|
|
653
|
-
return
|
|
653
|
+
return ce;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
var x = s, V = c, H = l,
|
|
658
|
-
function te(
|
|
659
|
-
return
|
|
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
|
+
function te(S) {
|
|
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
|
}
|
|
661
|
-
function w(
|
|
662
|
-
return
|
|
661
|
+
function w(S) {
|
|
662
|
+
return M(S) === c;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
664
|
+
function _(S) {
|
|
665
|
+
return M(S) === l;
|
|
666
666
|
}
|
|
667
|
-
function N(
|
|
668
|
-
return
|
|
667
|
+
function N(S) {
|
|
668
|
+
return M(S) === r;
|
|
669
669
|
}
|
|
670
|
-
function S
|
|
671
|
-
return typeof
|
|
670
|
+
function L(S) {
|
|
671
|
+
return typeof S == "object" && S !== null && S.$$typeof === n;
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
673
|
+
function b(S) {
|
|
674
|
+
return M(S) === d;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
676
|
+
function I(S) {
|
|
677
|
+
return M(S) === i;
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return
|
|
679
|
+
function y(S) {
|
|
680
|
+
return M(S) === m;
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return
|
|
682
|
+
function F(S) {
|
|
683
|
+
return M(S) === u;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
685
|
+
function P(S) {
|
|
686
|
+
return M(S) === t;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return
|
|
688
|
+
function $(S) {
|
|
689
|
+
return M(S) === a;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
return
|
|
691
|
+
function z(S) {
|
|
692
|
+
return M(S) === o;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
694
|
+
function U(S) {
|
|
695
|
+
return M(S) === f;
|
|
696
696
|
}
|
|
697
|
-
W.AsyncMode = x, W.ConcurrentMode = V, W.ContextConsumer = H, W.ContextProvider =
|
|
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;
|
|
@@ -832,11 +832,11 @@ function Io() {
|
|
|
832
832
|
return wt = function(l, s) {
|
|
833
833
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
834
834
|
function f(w) {
|
|
835
|
-
var
|
|
836
|
-
if (typeof
|
|
837
|
-
return
|
|
835
|
+
var _ = w && (c && w[c] || w[d]);
|
|
836
|
+
if (typeof _ == "function")
|
|
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"),
|
|
@@ -845,223 +845,223 @@ function Io() {
|
|
|
845
845
|
object: h("object"),
|
|
846
846
|
string: h("string"),
|
|
847
847
|
symbol: h("symbol"),
|
|
848
|
-
any:
|
|
849
|
-
arrayOf:
|
|
850
|
-
element:
|
|
848
|
+
any: A(),
|
|
849
|
+
arrayOf: k,
|
|
850
|
+
element: M(),
|
|
851
851
|
elementType: x(),
|
|
852
852
|
instanceOf: V,
|
|
853
|
-
node:
|
|
854
|
-
objectOf:
|
|
853
|
+
node: Z(),
|
|
854
|
+
objectOf: Q,
|
|
855
855
|
oneOf: H,
|
|
856
|
-
oneOfType:
|
|
857
|
-
shape:
|
|
856
|
+
oneOfType: ie,
|
|
857
|
+
shape: fe,
|
|
858
858
|
exact: D
|
|
859
859
|
};
|
|
860
|
-
function m(w,
|
|
861
|
-
return w ===
|
|
860
|
+
function m(w, _) {
|
|
861
|
+
return w === _ ? w !== 0 || 1 / w === 1 / _ : w !== w && _ !== _;
|
|
862
862
|
}
|
|
863
|
-
function v(w,
|
|
864
|
-
this.message = w, this.data =
|
|
863
|
+
function v(w, _) {
|
|
864
|
+
this.message = w, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
|
|
865
865
|
}
|
|
866
866
|
v.prototype = Error.prototype;
|
|
867
|
-
function
|
|
867
|
+
function E(w) {
|
|
868
868
|
if (process.env.NODE_ENV !== "production")
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
-
if (
|
|
869
|
+
var _ = {}, N = 0;
|
|
870
|
+
function L(I, y, F, P, $, z, U) {
|
|
871
|
+
if (P = P || g, z = z || F, U !== t) {
|
|
872
872
|
if (s) {
|
|
873
|
-
var
|
|
873
|
+
var S = new Error(
|
|
874
874
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
875
875
|
);
|
|
876
|
-
throw
|
|
876
|
+
throw S.name = "Invariant Violation", S;
|
|
877
877
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
878
|
-
var
|
|
879
|
-
!
|
|
878
|
+
var ce = P + ":" + F;
|
|
879
|
+
!_[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
880
880
|
N < 3 && (a(
|
|
881
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
882
|
-
),
|
|
881
|
+
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + P + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
882
|
+
), _[ce] = !0, N++);
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
return
|
|
885
|
+
return y[F] == null ? I ? y[F] === null ? new v("The " + $ + " `" + z + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new v("The " + $ + " `" + z + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : w(y, F, P, $, z);
|
|
886
886
|
}
|
|
887
|
-
var
|
|
888
|
-
return
|
|
887
|
+
var b = L.bind(null, !1);
|
|
888
|
+
return b.isRequired = L.bind(null, !0), b;
|
|
889
889
|
}
|
|
890
890
|
function h(w) {
|
|
891
|
-
function
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
891
|
+
function _(N, L, b, I, y, F) {
|
|
892
|
+
var P = N[L], $ = J(P);
|
|
893
|
+
if ($ !== w) {
|
|
894
|
+
var z = ee(P);
|
|
895
895
|
return new v(
|
|
896
|
-
"Invalid " +
|
|
896
|
+
"Invalid " + I + " `" + y + "` of type " + ("`" + z + "` supplied to `" + b + "`, expected ") + ("`" + w + "`."),
|
|
897
897
|
{ expectedType: w }
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
900
|
return null;
|
|
901
901
|
}
|
|
902
|
-
return
|
|
902
|
+
return E(_);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
return
|
|
904
|
+
function A() {
|
|
905
|
+
return E(r);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
908
|
-
function
|
|
907
|
+
function k(w) {
|
|
908
|
+
function _(N, L, b, I, y) {
|
|
909
909
|
if (typeof w != "function")
|
|
910
|
-
return new v("Property `" +
|
|
911
|
-
var
|
|
912
|
-
if (!Array.isArray(
|
|
913
|
-
var
|
|
914
|
-
return new v("Invalid " +
|
|
910
|
+
return new v("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside arrayOf.");
|
|
911
|
+
var F = N[L];
|
|
912
|
+
if (!Array.isArray(F)) {
|
|
913
|
+
var P = J(F);
|
|
914
|
+
return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected an array."));
|
|
915
915
|
}
|
|
916
|
-
for (var
|
|
917
|
-
var
|
|
918
|
-
if (
|
|
919
|
-
return
|
|
916
|
+
for (var $ = 0; $ < F.length; $++) {
|
|
917
|
+
var z = w(F, $, b, I, y + "[" + $ + "]", t);
|
|
918
|
+
if (z instanceof Error)
|
|
919
|
+
return z;
|
|
920
920
|
}
|
|
921
921
|
return null;
|
|
922
922
|
}
|
|
923
|
-
return
|
|
923
|
+
return E(_);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
function w(
|
|
927
|
-
var
|
|
928
|
-
if (!l(
|
|
929
|
-
var
|
|
930
|
-
return new v("Invalid " +
|
|
925
|
+
function M() {
|
|
926
|
+
function w(_, N, L, b, I) {
|
|
927
|
+
var y = _[N];
|
|
928
|
+
if (!l(y)) {
|
|
929
|
+
var F = J(y);
|
|
930
|
+
return new v("Invalid " + b + " `" + I + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
931
931
|
}
|
|
932
932
|
return null;
|
|
933
933
|
}
|
|
934
|
-
return
|
|
934
|
+
return E(w);
|
|
935
935
|
}
|
|
936
936
|
function x() {
|
|
937
|
-
function w(
|
|
938
|
-
var
|
|
939
|
-
if (!e.isValidElementType(
|
|
940
|
-
var
|
|
941
|
-
return new v("Invalid " +
|
|
937
|
+
function w(_, N, L, b, I) {
|
|
938
|
+
var y = _[N];
|
|
939
|
+
if (!e.isValidElementType(y)) {
|
|
940
|
+
var F = J(y);
|
|
941
|
+
return new v("Invalid " + b + " `" + I + "` of type " + ("`" + F + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
942
942
|
}
|
|
943
943
|
return null;
|
|
944
944
|
}
|
|
945
|
-
return
|
|
945
|
+
return E(w);
|
|
946
946
|
}
|
|
947
947
|
function V(w) {
|
|
948
|
-
function
|
|
949
|
-
if (!(N[
|
|
950
|
-
var
|
|
951
|
-
return new v("Invalid " +
|
|
948
|
+
function _(N, L, b, I, y) {
|
|
949
|
+
if (!(N[L] instanceof w)) {
|
|
950
|
+
var F = w.name || g, P = te(N[L]);
|
|
951
|
+
return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected ") + ("instance of `" + F + "`."));
|
|
952
952
|
}
|
|
953
953
|
return null;
|
|
954
954
|
}
|
|
955
|
-
return
|
|
955
|
+
return E(_);
|
|
956
956
|
}
|
|
957
957
|
function H(w) {
|
|
958
958
|
if (!Array.isArray(w))
|
|
959
959
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
960
960
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
961
961
|
) : a("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
962
|
-
function
|
|
963
|
-
for (var
|
|
964
|
-
if (m(
|
|
962
|
+
function _(N, L, b, I, y) {
|
|
963
|
+
for (var F = N[L], P = 0; P < w.length; P++)
|
|
964
|
+
if (m(F, w[P]))
|
|
965
965
|
return null;
|
|
966
|
-
var
|
|
967
|
-
var
|
|
968
|
-
return
|
|
966
|
+
var $ = JSON.stringify(w, function(U, S) {
|
|
967
|
+
var ce = ee(S);
|
|
968
|
+
return ce === "symbol" ? String(S) : S;
|
|
969
969
|
});
|
|
970
|
-
return new v("Invalid " +
|
|
970
|
+
return new v("Invalid " + I + " `" + y + "` of value `" + String(F) + "` " + ("supplied to `" + b + "`, expected one of " + $ + "."));
|
|
971
971
|
}
|
|
972
|
-
return
|
|
972
|
+
return E(_);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
function
|
|
974
|
+
function Q(w) {
|
|
975
|
+
function _(N, L, b, I, y) {
|
|
976
976
|
if (typeof w != "function")
|
|
977
|
-
return new v("Property `" +
|
|
978
|
-
var
|
|
979
|
-
if (
|
|
980
|
-
return new v("Invalid " +
|
|
981
|
-
for (var
|
|
982
|
-
if (i(
|
|
983
|
-
var
|
|
984
|
-
if (
|
|
985
|
-
return
|
|
977
|
+
return new v("Property `" + y + "` of component `" + b + "` has invalid PropType notation inside objectOf.");
|
|
978
|
+
var F = N[L], P = J(F);
|
|
979
|
+
if (P !== "object")
|
|
980
|
+
return new v("Invalid " + I + " `" + y + "` of type " + ("`" + P + "` supplied to `" + b + "`, expected an object."));
|
|
981
|
+
for (var $ in F)
|
|
982
|
+
if (i(F, $)) {
|
|
983
|
+
var z = w(F, $, b, I, y + "." + $, t);
|
|
984
|
+
if (z instanceof Error)
|
|
985
|
+
return z;
|
|
986
986
|
}
|
|
987
987
|
return null;
|
|
988
988
|
}
|
|
989
|
-
return
|
|
989
|
+
return E(_);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function ie(w) {
|
|
992
992
|
if (!Array.isArray(w))
|
|
993
993
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
994
|
-
for (var
|
|
995
|
-
var N = w[
|
|
994
|
+
for (var _ = 0; _ < w.length; _++) {
|
|
995
|
+
var N = w[_];
|
|
996
996
|
if (typeof N != "function")
|
|
997
997
|
return a(
|
|
998
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
998
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(N) + " at index " + _ + "."
|
|
999
999
|
), r;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
for (var
|
|
1003
|
-
var
|
|
1004
|
-
if (
|
|
1001
|
+
function L(b, I, y, F, P) {
|
|
1002
|
+
for (var $ = [], z = 0; z < w.length; z++) {
|
|
1003
|
+
var U = w[z], S = U(b, I, y, F, P, t);
|
|
1004
|
+
if (S == null)
|
|
1005
1005
|
return null;
|
|
1006
|
-
|
|
1006
|
+
S.data && i(S.data, "expectedType") && $.push(S.data.expectedType);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1009
|
-
return new v("Invalid " +
|
|
1008
|
+
var ce = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
1009
|
+
return new v("Invalid " + F + " `" + P + "` supplied to " + ("`" + y + "`" + ce + "."));
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return E(L);
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
function w(
|
|
1015
|
-
return
|
|
1013
|
+
function Z() {
|
|
1014
|
+
function w(_, N, L, b, I) {
|
|
1015
|
+
return R(_[N]) ? null : new v("Invalid " + b + " `" + I + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1017
|
+
return E(w);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function de(w, _, N, L, b) {
|
|
1020
1020
|
return new v(
|
|
1021
|
-
(w || "React class") + ": " +
|
|
1021
|
+
(w || "React class") + ": " + _ + " type `" + N + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + b + "`."
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
function
|
|
1026
|
-
var
|
|
1027
|
-
if (
|
|
1028
|
-
return new v("Invalid " +
|
|
1029
|
-
for (var
|
|
1030
|
-
var
|
|
1031
|
-
if (typeof
|
|
1032
|
-
return
|
|
1033
|
-
var
|
|
1034
|
-
if (
|
|
1035
|
-
return
|
|
1024
|
+
function fe(w) {
|
|
1025
|
+
function _(N, L, b, I, y) {
|
|
1026
|
+
var F = N[L], P = J(F);
|
|
1027
|
+
if (P !== "object")
|
|
1028
|
+
return new v("Invalid " + I + " `" + y + "` of type `" + P + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
1029
|
+
for (var $ in w) {
|
|
1030
|
+
var z = w[$];
|
|
1031
|
+
if (typeof z != "function")
|
|
1032
|
+
return de(b, I, y, $, ee(z));
|
|
1033
|
+
var U = z(F, $, b, I, y + "." + $, t);
|
|
1034
|
+
if (U)
|
|
1035
|
+
return U;
|
|
1036
1036
|
}
|
|
1037
1037
|
return null;
|
|
1038
1038
|
}
|
|
1039
|
-
return
|
|
1039
|
+
return E(_);
|
|
1040
1040
|
}
|
|
1041
1041
|
function D(w) {
|
|
1042
|
-
function
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
return new v("Invalid " +
|
|
1046
|
-
var
|
|
1047
|
-
for (var
|
|
1048
|
-
var
|
|
1049
|
-
if (i(w,
|
|
1050
|
-
return
|
|
1051
|
-
if (!
|
|
1042
|
+
function _(N, L, b, I, y) {
|
|
1043
|
+
var F = N[L], P = J(F);
|
|
1044
|
+
if (P !== "object")
|
|
1045
|
+
return new v("Invalid " + I + " `" + y + "` of type `" + P + "` " + ("supplied to `" + b + "`, expected `object`."));
|
|
1046
|
+
var $ = n({}, N[L], w);
|
|
1047
|
+
for (var z in $) {
|
|
1048
|
+
var U = w[z];
|
|
1049
|
+
if (i(w, z) && typeof U != "function")
|
|
1050
|
+
return de(b, I, y, z, ee(U));
|
|
1051
|
+
if (!U)
|
|
1052
1052
|
return new v(
|
|
1053
|
-
"Invalid " +
|
|
1053
|
+
"Invalid " + I + " `" + y + "` key `" + z + "` supplied to `" + b + "`.\nBad object: " + JSON.stringify(N[L], null, " ") + `
|
|
1054
1054
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1055
1055
|
);
|
|
1056
|
-
var
|
|
1057
|
-
if (
|
|
1058
|
-
return
|
|
1056
|
+
var S = U(F, z, b, I, y + "." + z, t);
|
|
1057
|
+
if (S)
|
|
1058
|
+
return S;
|
|
1059
1059
|
}
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
|
-
return
|
|
1062
|
+
return E(_);
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function R(w) {
|
|
1065
1065
|
switch (typeof w) {
|
|
1066
1066
|
case "number":
|
|
1067
1067
|
case "string":
|
|
@@ -1071,20 +1071,20 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1071
1071
|
return !w;
|
|
1072
1072
|
case "object":
|
|
1073
1073
|
if (Array.isArray(w))
|
|
1074
|
-
return w.every(
|
|
1074
|
+
return w.every(R);
|
|
1075
1075
|
if (w === null || l(w))
|
|
1076
1076
|
return !0;
|
|
1077
|
-
var
|
|
1078
|
-
if (
|
|
1079
|
-
var N =
|
|
1080
|
-
if (
|
|
1081
|
-
for (; !(
|
|
1082
|
-
if (!
|
|
1077
|
+
var _ = f(w);
|
|
1078
|
+
if (_) {
|
|
1079
|
+
var N = _.call(w), L;
|
|
1080
|
+
if (_ !== w.entries) {
|
|
1081
|
+
for (; !(L = N.next()).done; )
|
|
1082
|
+
if (!R(L.value))
|
|
1083
1083
|
return !1;
|
|
1084
1084
|
} else
|
|
1085
|
-
for (; !(
|
|
1086
|
-
var
|
|
1087
|
-
if (
|
|
1085
|
+
for (; !(L = N.next()).done; ) {
|
|
1086
|
+
var b = L.value;
|
|
1087
|
+
if (b && !R(b[1]))
|
|
1088
1088
|
return !1;
|
|
1089
1089
|
}
|
|
1090
1090
|
} else
|
|
@@ -1094,50 +1094,50 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1094
1094
|
return !1;
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return w === "symbol" ? !0 :
|
|
1097
|
+
function G(w, _) {
|
|
1098
|
+
return w === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
var
|
|
1102
|
-
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" :
|
|
1100
|
+
function J(w) {
|
|
1101
|
+
var _ = typeof w;
|
|
1102
|
+
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : G(_, w) ? "symbol" : _;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function ee(w) {
|
|
1105
1105
|
if (typeof w > "u" || w === null)
|
|
1106
1106
|
return "" + w;
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1107
|
+
var _ = J(w);
|
|
1108
|
+
if (_ === "object") {
|
|
1109
1109
|
if (w instanceof Date)
|
|
1110
1110
|
return "date";
|
|
1111
1111
|
if (w instanceof RegExp)
|
|
1112
1112
|
return "regexp";
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return _;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
var
|
|
1118
|
-
switch (
|
|
1116
|
+
function ae(w) {
|
|
1117
|
+
var _ = ee(w);
|
|
1118
|
+
switch (_) {
|
|
1119
1119
|
case "array":
|
|
1120
1120
|
case "object":
|
|
1121
|
-
return "an " +
|
|
1121
|
+
return "an " + _;
|
|
1122
1122
|
case "boolean":
|
|
1123
1123
|
case "date":
|
|
1124
1124
|
case "regexp":
|
|
1125
|
-
return "a " +
|
|
1125
|
+
return "a " + _;
|
|
1126
1126
|
default:
|
|
1127
|
-
return
|
|
1127
|
+
return _;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
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
|
|
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);
|
|
@@ -2855,12 +2855,12 @@ function En(e, n) {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
return t;
|
|
2857
2857
|
}
|
|
2858
|
-
function
|
|
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
|
*
|
|
@@ -2930,7 +2930,7 @@ Yt.propTypes = {
|
|
|
2930
2930
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2931
2931
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2932
2932
|
*/
|
|
2933
|
-
children:
|
|
2933
|
+
children: Y.func,
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Set accepted file types.
|
|
2936
2936
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2938,90 +2938,90 @@ Yt.propTypes = {
|
|
|
2938
2938
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2939
2939
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2940
2940
|
*/
|
|
2941
|
-
accept:
|
|
2941
|
+
accept: Y.objectOf(Y.arrayOf(Y.string)),
|
|
2942
2942
|
/**
|
|
2943
2943
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2944
2944
|
*/
|
|
2945
|
-
multiple:
|
|
2945
|
+
multiple: Y.bool,
|
|
2946
2946
|
/**
|
|
2947
2947
|
* If false, allow dropped items to take over the current browser window
|
|
2948
2948
|
*/
|
|
2949
|
-
preventDropOnDocument:
|
|
2949
|
+
preventDropOnDocument: Y.bool,
|
|
2950
2950
|
/**
|
|
2951
2951
|
* If true, disables click to open the native file selection dialog
|
|
2952
2952
|
*/
|
|
2953
|
-
noClick:
|
|
2953
|
+
noClick: Y.bool,
|
|
2954
2954
|
/**
|
|
2955
2955
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2956
2956
|
* Note that it also stops tracking the focus state.
|
|
2957
2957
|
*/
|
|
2958
|
-
noKeyboard:
|
|
2958
|
+
noKeyboard: Y.bool,
|
|
2959
2959
|
/**
|
|
2960
2960
|
* If true, disables drag 'n' drop
|
|
2961
2961
|
*/
|
|
2962
|
-
noDrag:
|
|
2962
|
+
noDrag: Y.bool,
|
|
2963
2963
|
/**
|
|
2964
2964
|
* If true, stops drag event propagation to parents
|
|
2965
2965
|
*/
|
|
2966
|
-
noDragEventsBubbling:
|
|
2966
|
+
noDragEventsBubbling: Y.bool,
|
|
2967
2967
|
/**
|
|
2968
2968
|
* Minimum file size (in bytes)
|
|
2969
2969
|
*/
|
|
2970
|
-
minSize:
|
|
2970
|
+
minSize: Y.number,
|
|
2971
2971
|
/**
|
|
2972
2972
|
* Maximum file size (in bytes)
|
|
2973
2973
|
*/
|
|
2974
|
-
maxSize:
|
|
2974
|
+
maxSize: Y.number,
|
|
2975
2975
|
/**
|
|
2976
2976
|
* Maximum accepted number of files
|
|
2977
2977
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2978
2978
|
*/
|
|
2979
|
-
maxFiles:
|
|
2979
|
+
maxFiles: Y.number,
|
|
2980
2980
|
/**
|
|
2981
2981
|
* Enable/disable the dropzone
|
|
2982
2982
|
*/
|
|
2983
|
-
disabled:
|
|
2983
|
+
disabled: Y.bool,
|
|
2984
2984
|
/**
|
|
2985
2985
|
* Use this to provide a custom file aggregator
|
|
2986
2986
|
*
|
|
2987
2987
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2988
2988
|
*/
|
|
2989
|
-
getFilesFromEvent:
|
|
2989
|
+
getFilesFromEvent: Y.func,
|
|
2990
2990
|
/**
|
|
2991
2991
|
* Cb for when closing the file dialog with no selection
|
|
2992
2992
|
*/
|
|
2993
|
-
onFileDialogCancel:
|
|
2993
|
+
onFileDialogCancel: Y.func,
|
|
2994
2994
|
/**
|
|
2995
2995
|
* Cb for when opening the file dialog
|
|
2996
2996
|
*/
|
|
2997
|
-
onFileDialogOpen:
|
|
2997
|
+
onFileDialogOpen: Y.func,
|
|
2998
2998
|
/**
|
|
2999
2999
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
3000
3000
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
3001
3001
|
*/
|
|
3002
|
-
useFsAccessApi:
|
|
3002
|
+
useFsAccessApi: Y.bool,
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Set to true to focus the root element on render
|
|
3005
3005
|
*/
|
|
3006
|
-
autoFocus:
|
|
3006
|
+
autoFocus: Y.bool,
|
|
3007
3007
|
/**
|
|
3008
3008
|
* Cb for when the `dragenter` event occurs.
|
|
3009
3009
|
*
|
|
3010
3010
|
* @param {DragEvent} event
|
|
3011
3011
|
*/
|
|
3012
|
-
onDragEnter:
|
|
3012
|
+
onDragEnter: Y.func,
|
|
3013
3013
|
/**
|
|
3014
3014
|
* Cb for when the `dragleave` event occurs
|
|
3015
3015
|
*
|
|
3016
3016
|
* @param {DragEvent} event
|
|
3017
3017
|
*/
|
|
3018
|
-
onDragLeave:
|
|
3018
|
+
onDragLeave: Y.func,
|
|
3019
3019
|
/**
|
|
3020
3020
|
* Cb for when the `dragover` event occurs
|
|
3021
3021
|
*
|
|
3022
3022
|
* @param {DragEvent} event
|
|
3023
3023
|
*/
|
|
3024
|
-
onDragOver:
|
|
3024
|
+
onDragOver: Y.func,
|
|
3025
3025
|
/**
|
|
3026
3026
|
* Cb for when the `drop` event occurs.
|
|
3027
3027
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -3052,7 +3052,7 @@ Yt.propTypes = {
|
|
|
3052
3052
|
* @param {FileRejection[]} fileRejections
|
|
3053
3053
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
3054
3054
|
*/
|
|
3055
|
-
onDrop:
|
|
3055
|
+
onDrop: Y.func,
|
|
3056
3056
|
/**
|
|
3057
3057
|
* Cb for when the `drop` event occurs.
|
|
3058
3058
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -3060,7 +3060,7 @@ Yt.propTypes = {
|
|
|
3060
3060
|
* @param {File[]} files
|
|
3061
3061
|
* @param {(DragEvent|Event)} event
|
|
3062
3062
|
*/
|
|
3063
|
-
onDropAccepted:
|
|
3063
|
+
onDropAccepted: Y.func,
|
|
3064
3064
|
/**
|
|
3065
3065
|
* Cb for when the `drop` event occurs.
|
|
3066
3066
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -3068,19 +3068,19 @@ Yt.propTypes = {
|
|
|
3068
3068
|
* @param {FileRejection[]} fileRejections
|
|
3069
3069
|
* @param {(DragEvent|Event)} event
|
|
3070
3070
|
*/
|
|
3071
|
-
onDropRejected:
|
|
3071
|
+
onDropRejected: Y.func,
|
|
3072
3072
|
/**
|
|
3073
3073
|
* Cb for when there's some error from any of the promises.
|
|
3074
3074
|
*
|
|
3075
3075
|
* @param {Error} error
|
|
3076
3076
|
*/
|
|
3077
|
-
onError:
|
|
3077
|
+
onError: Y.func,
|
|
3078
3078
|
/**
|
|
3079
3079
|
* Custom validation function. It must return null if there's no errors.
|
|
3080
3080
|
* @param {File} file
|
|
3081
3081
|
* @returns {FileError|FileError[]|null}
|
|
3082
3082
|
*/
|
|
3083
|
-
validator:
|
|
3083
|
+
validator: Y.func
|
|
3084
3084
|
};
|
|
3085
3085
|
var Ot = {
|
|
3086
3086
|
isFocused: !1,
|
|
@@ -3092,186 +3092,186 @@ var Ot = {
|
|
|
3092
3092
|
fileRejections: []
|
|
3093
3093
|
};
|
|
3094
3094
|
function ti() {
|
|
3095
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n =
|
|
3095
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = 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
|
+
}, [t]), de = se(function() {
|
|
3096
3098
|
return ga(t);
|
|
3097
|
-
}, [t]),
|
|
3098
|
-
return
|
|
3099
|
-
}, [
|
|
3100
|
-
return typeof
|
|
3101
|
-
}, [
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
var z = q.current.files;
|
|
3107
|
-
z.length || (te({
|
|
3099
|
+
}, [t]), fe = se(function() {
|
|
3100
|
+
return typeof E == "function" ? E : En;
|
|
3101
|
+
}, [E]), D = se(function() {
|
|
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
|
+
!N.current && _ && setTimeout(function() {
|
|
3105
|
+
if (G.current) {
|
|
3106
|
+
var T = G.current.files;
|
|
3107
|
+
T.length || (te({
|
|
3108
3108
|
type: "closeDialog"
|
|
3109
3109
|
}), D());
|
|
3110
3110
|
}
|
|
3111
3111
|
}, 300);
|
|
3112
3112
|
};
|
|
3113
3113
|
Ce(function() {
|
|
3114
|
-
return window.addEventListener("focus",
|
|
3115
|
-
window.removeEventListener("focus",
|
|
3114
|
+
return window.addEventListener("focus", L, !1), function() {
|
|
3115
|
+
window.removeEventListener("focus", L, !1);
|
|
3116
3116
|
};
|
|
3117
|
-
}, [
|
|
3118
|
-
var
|
|
3119
|
-
|
|
3117
|
+
}, [G, _, D, N]);
|
|
3118
|
+
var b = be([]), I = function(T) {
|
|
3119
|
+
R.current && R.current.contains(T.target) || (T.preventDefault(), b.current = []);
|
|
3120
3120
|
};
|
|
3121
3121
|
Ce(function() {
|
|
3122
|
-
return
|
|
3123
|
-
|
|
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
|
-
}, [
|
|
3126
|
-
return !i &&
|
|
3125
|
+
}, [R, k]), Ce(function() {
|
|
3126
|
+
return !i && A && R.current && R.current.focus(), function() {
|
|
3127
3127
|
};
|
|
3128
|
-
}, [
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
}, [
|
|
3132
|
-
|
|
3133
|
-
if (!(nt(
|
|
3134
|
-
var
|
|
3135
|
-
files:
|
|
3136
|
-
accept:
|
|
3128
|
+
}, [R, A, i]);
|
|
3129
|
+
var y = X(function(C) {
|
|
3130
|
+
Q ? Q(C) : console.error(C);
|
|
3131
|
+
}, [Q]), F = X(function(C) {
|
|
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
|
+
if (!(nt(C) && !H)) {
|
|
3134
|
+
var oe = T.length, re = oe > 0 && sa({
|
|
3135
|
+
files: T,
|
|
3136
|
+
accept: Z,
|
|
3137
3137
|
minSize: r,
|
|
3138
3138
|
maxSize: a,
|
|
3139
3139
|
multiple: l,
|
|
3140
3140
|
maxFiles: s,
|
|
3141
|
-
validator:
|
|
3142
|
-
}),
|
|
3141
|
+
validator: ie
|
|
3142
|
+
}), me = oe > 0 && !re;
|
|
3143
3143
|
te({
|
|
3144
|
-
isDragAccept:
|
|
3145
|
-
isDragReject:
|
|
3144
|
+
isDragAccept: re,
|
|
3145
|
+
isDragReject: me,
|
|
3146
3146
|
isDragActive: !0,
|
|
3147
3147
|
type: "setDraggedFiles"
|
|
3148
|
-
}), c && c(
|
|
3148
|
+
}), c && c(C);
|
|
3149
3149
|
}
|
|
3150
|
-
}).catch(function(
|
|
3151
|
-
return
|
|
3150
|
+
}).catch(function(T) {
|
|
3151
|
+
return y(T);
|
|
3152
3152
|
});
|
|
3153
|
-
}, [o, c,
|
|
3154
|
-
|
|
3155
|
-
var
|
|
3156
|
-
if (
|
|
3153
|
+
}, [o, c, y, H, Z, r, a, l, s, ie]), P = X(function(C) {
|
|
3154
|
+
C.preventDefault(), C.persist(), Ge(C);
|
|
3155
|
+
var T = Ye(C);
|
|
3156
|
+
if (T && C.dataTransfer)
|
|
3157
3157
|
try {
|
|
3158
|
-
|
|
3158
|
+
C.dataTransfer.dropEffect = "copy";
|
|
3159
3159
|
} catch {
|
|
3160
3160
|
}
|
|
3161
|
-
return
|
|
3162
|
-
}, [f, H]),
|
|
3163
|
-
|
|
3164
|
-
var
|
|
3165
|
-
return
|
|
3166
|
-
}),
|
|
3167
|
-
|
|
3161
|
+
return T && f && f(C), !1;
|
|
3162
|
+
}, [f, H]), $ = X(function(C) {
|
|
3163
|
+
C.preventDefault(), C.persist(), Ge(C);
|
|
3164
|
+
var T = b.current.filter(function(re) {
|
|
3165
|
+
return R.current && R.current.contains(re);
|
|
3166
|
+
}), oe = T.indexOf(C.target);
|
|
3167
|
+
oe !== -1 && T.splice(oe, 1), b.current = T, !(T.length > 0) && (te({
|
|
3168
3168
|
type: "setDraggedFiles",
|
|
3169
3169
|
isDragActive: !1,
|
|
3170
3170
|
isDragAccept: !1,
|
|
3171
3171
|
isDragReject: !1
|
|
3172
|
-
}), Ye(
|
|
3173
|
-
}, [
|
|
3174
|
-
var
|
|
3175
|
-
|
|
3176
|
-
var ze = Yn(
|
|
3172
|
+
}), Ye(C) && d && d(C));
|
|
3173
|
+
}, [R, d, H]), z = X(function(C, T) {
|
|
3174
|
+
var oe = [], re = [];
|
|
3175
|
+
C.forEach(function(me) {
|
|
3176
|
+
var ze = Yn(me, Z), Ae = St(ze, 2), lt = Ae[0], st = Ae[1], ct = Xn(me, r, a), Be = St(ct, 2), pt = Be[0], ut = Be[1], dt = ie ? ie(me) : null;
|
|
3177
3177
|
if (lt && pt && !dt)
|
|
3178
|
-
|
|
3178
|
+
oe.push(me);
|
|
3179
3179
|
else {
|
|
3180
3180
|
var gt = [st, ut];
|
|
3181
|
-
dt && (gt = gt.concat(dt)),
|
|
3182
|
-
file:
|
|
3183
|
-
errors: gt.filter(function(
|
|
3184
|
-
return
|
|
3181
|
+
dt && (gt = gt.concat(dt)), re.push({
|
|
3182
|
+
file: me,
|
|
3183
|
+
errors: gt.filter(function(Si) {
|
|
3184
|
+
return Si;
|
|
3185
3185
|
})
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
|
-
}), (!l &&
|
|
3189
|
-
|
|
3190
|
-
file:
|
|
3191
|
-
errors: [
|
|
3188
|
+
}), (!l && oe.length > 1 || l && s >= 1 && oe.length > s) && (oe.forEach(function(me) {
|
|
3189
|
+
re.push({
|
|
3190
|
+
file: me,
|
|
3191
|
+
errors: [la]
|
|
3192
3192
|
});
|
|
3193
|
-
}),
|
|
3194
|
-
acceptedFiles:
|
|
3195
|
-
fileRejections:
|
|
3196
|
-
isDragReject:
|
|
3193
|
+
}), oe.splice(0)), te({
|
|
3194
|
+
acceptedFiles: oe,
|
|
3195
|
+
fileRejections: re,
|
|
3196
|
+
isDragReject: re.length > 0,
|
|
3197
3197
|
type: "setFiles"
|
|
3198
|
-
}), g && g(
|
|
3199
|
-
}, [te, l,
|
|
3200
|
-
|
|
3201
|
-
nt(
|
|
3202
|
-
}).catch(function(
|
|
3203
|
-
return
|
|
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
|
+
C.preventDefault(), C.persist(), Ge(C), b.current = [], Ye(C) && Promise.resolve(o(C)).then(function(T) {
|
|
3201
|
+
nt(C) && !H || z(T, C);
|
|
3202
|
+
}).catch(function(T) {
|
|
3203
|
+
return y(T);
|
|
3204
3204
|
}), te({
|
|
3205
3205
|
type: "reset"
|
|
3206
3206
|
});
|
|
3207
|
-
}, [o,
|
|
3207
|
+
}, [o, z, y, H]), S = X(function() {
|
|
3208
3208
|
if (N.current) {
|
|
3209
3209
|
te({
|
|
3210
3210
|
type: "openDialog"
|
|
3211
|
-
}),
|
|
3212
|
-
var
|
|
3211
|
+
}), fe();
|
|
3212
|
+
var C = {
|
|
3213
3213
|
multiple: l,
|
|
3214
|
-
types:
|
|
3214
|
+
types: de
|
|
3215
3215
|
};
|
|
3216
|
-
window.showOpenFilePicker(
|
|
3217
|
-
return o(
|
|
3218
|
-
}).then(function(
|
|
3219
|
-
|
|
3216
|
+
window.showOpenFilePicker(C).then(function(T) {
|
|
3217
|
+
return o(T);
|
|
3218
|
+
}).then(function(T) {
|
|
3219
|
+
z(T, null), te({
|
|
3220
3220
|
type: "closeDialog"
|
|
3221
3221
|
});
|
|
3222
|
-
}).catch(function(
|
|
3223
|
-
|
|
3222
|
+
}).catch(function(T) {
|
|
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
|
}
|
|
3229
|
-
|
|
3229
|
+
G.current && (te({
|
|
3230
3230
|
type: "openDialog"
|
|
3231
|
-
}),
|
|
3232
|
-
}, [te,
|
|
3233
|
-
!
|
|
3234
|
-
}, [
|
|
3231
|
+
}), fe(), G.current.value = null, G.current.click());
|
|
3232
|
+
}, [te, fe, D, h, z, y, de, l]), ce = X(function(C) {
|
|
3233
|
+
!R.current || !R.current.isEqualNode(C.target) || (C.key === " " || C.key === "Enter" || C.keyCode === 32 || C.keyCode === 13) && (C.preventDefault(), S());
|
|
3234
|
+
}, [R, S]), Fe = X(function() {
|
|
3235
3235
|
te({
|
|
3236
3236
|
type: "focus"
|
|
3237
3237
|
});
|
|
3238
|
-
}, []), Te =
|
|
3238
|
+
}, []), Te = X(function() {
|
|
3239
3239
|
te({
|
|
3240
3240
|
type: "blur"
|
|
3241
3241
|
});
|
|
3242
|
-
}, []),
|
|
3243
|
-
|
|
3244
|
-
}, [
|
|
3245
|
-
return i ? null :
|
|
3246
|
-
}, rt = function(
|
|
3247
|
-
return x ? null : $e(
|
|
3248
|
-
}, qe = function(
|
|
3249
|
-
return V ? null : $e(
|
|
3250
|
-
}, Ge = function(
|
|
3251
|
-
H &&
|
|
3252
|
-
},
|
|
3242
|
+
}, []), Jt = X(function() {
|
|
3243
|
+
M || (ua() ? setTimeout(S, 0) : S());
|
|
3244
|
+
}, [M, S]), $e = function(T) {
|
|
3245
|
+
return i ? null : T;
|
|
3246
|
+
}, rt = function(T) {
|
|
3247
|
+
return x ? null : $e(T);
|
|
3248
|
+
}, qe = function(T) {
|
|
3249
|
+
return V ? null : $e(T);
|
|
3250
|
+
}, Ge = function(T) {
|
|
3251
|
+
H && T.stopPropagation();
|
|
3252
|
+
}, wi = se(function() {
|
|
3253
3253
|
return function() {
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3256
|
-
onKeyDown: rt(ye(
|
|
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
|
+
return ne(ne(Mt({
|
|
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,
|
|
3260
|
-
onDragEnter: qe(ye(st,
|
|
3261
|
-
onDragOver: qe(ye(ct,
|
|
3262
|
-
onDragLeave: qe(ye(Be,
|
|
3263
|
-
onDrop: qe(ye(pt,
|
|
3264
|
-
role: typeof
|
|
3265
|
-
},
|
|
3259
|
+
onClick: $e(ye(lt, Jt)),
|
|
3260
|
+
onDragEnter: qe(ye(st, F)),
|
|
3261
|
+
onDragOver: qe(ye(ct, P)),
|
|
3262
|
+
onDragLeave: qe(ye(Be, $)),
|
|
3263
|
+
onDrop: qe(ye(pt, U)),
|
|
3264
|
+
role: typeof re == "string" && re !== "" ? re : "presentation"
|
|
3265
|
+
}, oe, R), !i && !x ? {
|
|
3266
3266
|
tabIndex: 0
|
|
3267
3267
|
} : {}), ut);
|
|
3268
3268
|
};
|
|
3269
|
-
}, [
|
|
3270
|
-
|
|
3271
|
-
}, []),
|
|
3269
|
+
}, [R, ce, Fe, Te, Jt, F, P, $, U, x, V, i]), yi = X(function(C) {
|
|
3270
|
+
C.stopPropagation();
|
|
3271
|
+
}, []), bi = se(function() {
|
|
3272
3272
|
return function() {
|
|
3273
|
-
var
|
|
3274
|
-
accept:
|
|
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
|
+
accept: Z,
|
|
3275
3275
|
multiple: l,
|
|
3276
3276
|
type: "file",
|
|
3277
3277
|
style: {
|
|
@@ -3286,61 +3286,61 @@ function ti() {
|
|
|
3286
3286
|
width: "1px",
|
|
3287
3287
|
whiteSpace: "nowrap"
|
|
3288
3288
|
},
|
|
3289
|
-
onChange: $e(ye(
|
|
3290
|
-
onClick: $e(ye(
|
|
3289
|
+
onChange: $e(ye(re, U)),
|
|
3290
|
+
onClick: $e(ye(me, yi)),
|
|
3291
3291
|
tabIndex: -1
|
|
3292
|
-
},
|
|
3293
|
-
return
|
|
3292
|
+
}, oe, G);
|
|
3293
|
+
return ne(ne({}, Ae), ze);
|
|
3294
3294
|
};
|
|
3295
|
-
}, [
|
|
3296
|
-
return
|
|
3295
|
+
}, [G, t, l, U, i]);
|
|
3296
|
+
return ne(ne({}, ae), {}, {
|
|
3297
3297
|
isFocused: w && !i,
|
|
3298
|
-
getRootProps:
|
|
3299
|
-
getInputProps:
|
|
3300
|
-
rootRef:
|
|
3301
|
-
inputRef:
|
|
3302
|
-
open: $e(
|
|
3298
|
+
getRootProps: wi,
|
|
3299
|
+
getInputProps: bi,
|
|
3300
|
+
rootRef: R,
|
|
3301
|
+
inputRef: G,
|
|
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
|
-
return
|
|
3308
|
+
return ne(ne({}, e), {}, {
|
|
3309
3309
|
isFocused: !0
|
|
3310
3310
|
});
|
|
3311
3311
|
case "blur":
|
|
3312
|
-
return
|
|
3312
|
+
return ne(ne({}, e), {}, {
|
|
3313
3313
|
isFocused: !1
|
|
3314
3314
|
});
|
|
3315
3315
|
case "openDialog":
|
|
3316
|
-
return
|
|
3316
|
+
return ne(ne({}, Ot), {}, {
|
|
3317
3317
|
isFileDialogActive: !0
|
|
3318
3318
|
});
|
|
3319
3319
|
case "closeDialog":
|
|
3320
|
-
return
|
|
3320
|
+
return ne(ne({}, e), {}, {
|
|
3321
3321
|
isFileDialogActive: !1
|
|
3322
3322
|
});
|
|
3323
3323
|
case "setDraggedFiles":
|
|
3324
|
-
return
|
|
3324
|
+
return ne(ne({}, e), {}, {
|
|
3325
3325
|
isDragActive: n.isDragActive,
|
|
3326
3326
|
isDragAccept: n.isDragAccept,
|
|
3327
3327
|
isDragReject: n.isDragReject
|
|
3328
3328
|
});
|
|
3329
3329
|
case "setFiles":
|
|
3330
|
-
return
|
|
3330
|
+
return ne(ne({}, e), {}, {
|
|
3331
3331
|
acceptedFiles: n.acceptedFiles,
|
|
3332
3332
|
fileRejections: n.fileRejections,
|
|
3333
3333
|
isDragReject: n.isDragReject
|
|
3334
3334
|
});
|
|
3335
3335
|
case "reset":
|
|
3336
|
-
return
|
|
3336
|
+
return ne({}, Ot);
|
|
3337
3337
|
default:
|
|
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":
|
|
@@ -3375,7 +3375,7 @@ const Pa = () => {
|
|
|
3375
3375
|
acceptedFiles: [],
|
|
3376
3376
|
fileRejections: []
|
|
3377
3377
|
}
|
|
3378
|
-
), o =
|
|
3378
|
+
), o = X(
|
|
3379
3379
|
(l, s) => i({
|
|
3380
3380
|
type: "add-files",
|
|
3381
3381
|
payload: { acceptedFiles: l, fileRejections: s }
|
|
@@ -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,
|
|
@@ -3405,64 +3405,64 @@ const Pa = () => {
|
|
|
3405
3405
|
return /* @__PURE__ */ B(
|
|
3406
3406
|
"div",
|
|
3407
3407
|
{
|
|
3408
|
-
className:
|
|
3408
|
+
className: q("p-form__group p-form-validation", {
|
|
3409
3409
|
"is-error": !!n
|
|
3410
3410
|
}),
|
|
3411
3411
|
children: [
|
|
3412
|
-
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,46 +3521,46 @@ 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
|
-
const d =
|
|
3527
|
+
const d = se(
|
|
3528
3528
|
() => new Set(n.map((h) => h.value)),
|
|
3529
3529
|
[n]
|
|
3530
|
-
), f =
|
|
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
|
-
const m =
|
|
3537
|
+
const m = se(() => e.some((h) => h.group), [e]), v = se(
|
|
3538
3538
|
() => m ? s(e) : [{ group: "Ungrouped", items: e }],
|
|
3539
3539
|
[e, s]
|
|
3540
|
-
),
|
|
3541
|
-
const { checked:
|
|
3542
|
-
if (
|
|
3543
|
-
const x =
|
|
3540
|
+
), E = (h) => {
|
|
3541
|
+
const { checked: A, value: k } = h.target, M = e.find((x) => `${x.value}` === k);
|
|
3542
|
+
if (M) {
|
|
3543
|
+
const x = A ? [...n, M] : n.filter((V) => `${V.value}` !== k) ?? [];
|
|
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
|
-
v.map(({ group: h, items:
|
|
3550
|
-
m ? /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
|
|
3549
|
+
v.map(({ group: h, items: A }) => /* @__PURE__ */ B("div", { className: "multi-select__group", children: [
|
|
3550
|
+
m ? /* @__PURE__ */ p("h5", { className: "multi-select__dropdown-header", children: h }) : null,
|
|
3551
|
+
/* @__PURE__ */ p("ul", { className: "multi-select__dropdown-list", "aria-label": h, children: A.sort(l).sort($a(g)).map((k) => /* @__PURE__ */ p("li", { className: "multi-select__dropdown-item", children: /* @__PURE__ */ p(
|
|
3552
|
+
Ai,
|
|
3553
3553
|
{
|
|
3554
|
-
disabled: f.has(
|
|
3555
|
-
label:
|
|
3556
|
-
checked: d.has(
|
|
3557
|
-
value:
|
|
3558
|
-
onChange:
|
|
3554
|
+
disabled: f.has(k.value),
|
|
3555
|
+
label: k.label,
|
|
3556
|
+
checked: d.has(k.value),
|
|
3557
|
+
value: k.value,
|
|
3558
|
+
onChange: E
|
|
3559
3559
|
},
|
|
3560
|
-
|
|
3561
|
-
) },
|
|
3560
|
+
k.value
|
|
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,28 +3575,28 @@ 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]);
|
|
3588
|
-
const [
|
|
3589
|
-
const
|
|
3590
|
-
h(
|
|
3591
|
-
},
|
|
3592
|
-
(H) => r.some((
|
|
3588
|
+
const [E, h] = ge([]), A = n || E, k = (H) => {
|
|
3589
|
+
const Q = Array.from(new Set(H));
|
|
3590
|
+
h(Q), i && i(Q);
|
|
3591
|
+
}, M = et(), x = et(), V = A.filter(
|
|
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,
|
|
3599
|
-
"aria-controls":
|
|
3599
|
+
"aria-controls": M,
|
|
3600
3600
|
"aria-expanded": g,
|
|
3601
3601
|
id: x,
|
|
3602
3602
|
role: "combobox",
|
|
@@ -3604,70 +3604,70 @@ 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",
|
|
3620
3620
|
type: "button",
|
|
3621
3621
|
"aria-label": t || o || "Select items",
|
|
3622
|
-
"aria-controls":
|
|
3622
|
+
"aria-controls": M,
|
|
3623
3623
|
"aria-expanded": g,
|
|
3624
3624
|
className: "multi-select__select-button",
|
|
3625
3625
|
onClick: () => {
|
|
3626
|
-
|
|
3626
|
+
u((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
|
-
id:
|
|
3634
|
+
id: M,
|
|
3635
3635
|
isOpen: g,
|
|
3636
3636
|
items: m.length > 0 ? r.filter(
|
|
3637
3637
|
(H) => H.label.toLowerCase().includes(m.toLowerCase())
|
|
3638
3638
|
) : r,
|
|
3639
|
-
selectedItems:
|
|
3639
|
+
selectedItems: A,
|
|
3640
3640
|
disabledItems: l,
|
|
3641
3641
|
header: s,
|
|
3642
|
-
updateItems:
|
|
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",
|
|
3648
3648
|
onClick: () => {
|
|
3649
3649
|
const H = r.filter(
|
|
3650
|
-
(
|
|
3651
|
-
(
|
|
3650
|
+
(Q) => !l.some(
|
|
3651
|
+
(ie) => ie.value === Q.value
|
|
3652
3652
|
)
|
|
3653
3653
|
);
|
|
3654
|
-
|
|
3654
|
+
k([...A, ...H]);
|
|
3655
3655
|
},
|
|
3656
3656
|
type: "button",
|
|
3657
3657
|
children: "Select all"
|
|
3658
3658
|
}
|
|
3659
3659
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
3660
|
+
/* @__PURE__ */ p(
|
|
3661
3661
|
_e,
|
|
3662
3662
|
{
|
|
3663
3663
|
appearance: "link",
|
|
3664
3664
|
onClick: () => {
|
|
3665
|
-
const H =
|
|
3666
|
-
(
|
|
3667
|
-
(
|
|
3665
|
+
const H = A.filter(
|
|
3666
|
+
(Q) => l.some(
|
|
3667
|
+
(ie) => ie.value === Q.value
|
|
3668
3668
|
)
|
|
3669
3669
|
);
|
|
3670
|
-
|
|
3670
|
+
k(H);
|
|
3671
3671
|
},
|
|
3672
3672
|
type: "button",
|
|
3673
3673
|
children: "Clear"
|
|
@@ -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,30 +3685,30 @@ 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,
|
|
3692
|
-
className:
|
|
3692
|
+
className: q("p-table-dynamic", e, {
|
|
3693
3693
|
"is-full-height": t === "full-height"
|
|
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
|
-
className:
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3700
|
+
className: q(i.id, "u-text-overflow-clip"),
|
|
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
|
|
@@ -3727,12 +3727,12 @@ const Pa = () => {
|
|
|
3727
3727
|
On(() => {
|
|
3728
3728
|
s();
|
|
3729
3729
|
}, [s]), Ce(() => (window.addEventListener("resize", s), () => window.removeEventListener("resize", s)), [s]);
|
|
3730
|
-
const c =
|
|
3730
|
+
const c = se(() => o === "full-height" && r ? {
|
|
3731
3731
|
height: `calc(100vh - ${r}px)`,
|
|
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
|
*
|
|
@@ -3761,7 +3761,7 @@ ri.Description = za;
|
|
|
3761
3761
|
function Ee(e, n) {
|
|
3762
3762
|
return typeof e == "function" ? e(n) : e;
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3764
|
+
function ve(e, n) {
|
|
3765
3765
|
return (t) => {
|
|
3766
3766
|
n.setState((i) => ({
|
|
3767
3767
|
...i,
|
|
@@ -3772,7 +3772,7 @@ function me(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
|
}
|
|
@@ -3882,8 +3882,8 @@ function La(e, n, t, i) {
|
|
|
3882
3882
|
g.createColumn == null || g.createColumn(f, e);
|
|
3883
3883
|
return f;
|
|
3884
3884
|
}
|
|
3885
|
-
const
|
|
3886
|
-
function
|
|
3885
|
+
const pe = "debugHeaders";
|
|
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,87 +3912,87 @@ 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;
|
|
3919
3919
|
const l = (a = i == null ? void 0 : i.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? a : [], s = (r = o == null ? void 0 : o.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? r : [], c = t.filter((f) => !(i != null && i.includes(f.id)) && !(o != null && o.includes(f.id)));
|
|
3920
3920
|
return Xe(n, [...l, ...c, ...s], e);
|
|
3921
|
-
}, j(e.options,
|
|
3921
|
+
}, j(e.options, pe, "getHeaderGroups")), e.getCenterHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, i, o) => (t = t.filter((a) => !(i != null && i.includes(a.id)) && !(o != null && o.includes(a.id))), Xe(n, t, e, "center")), j(e.options, pe, "getCenterHeaderGroups")), e.getLeftHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, i) => {
|
|
3922
3922
|
var o;
|
|
3923
3923
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3924
3924
|
return Xe(n, a, e, "left");
|
|
3925
|
-
}, j(e.options,
|
|
3925
|
+
}, j(e.options, pe, "getLeftHeaderGroups")), e.getRightHeaderGroups = O(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, i) => {
|
|
3926
3926
|
var o;
|
|
3927
3927
|
const a = (o = i == null ? void 0 : i.map((r) => t.find((l) => l.id === r)).filter(Boolean)) != null ? o : [];
|
|
3928
3928
|
return Xe(n, a, e, "right");
|
|
3929
|
-
}, j(e.options,
|
|
3929
|
+
}, j(e.options, pe, "getRightHeaderGroups")), e.getFooterGroups = O(() => [e.getHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getFooterGroups")), e.getLeftFooterGroups = O(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getLeftFooterGroups")), e.getCenterFooterGroups = O(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getCenterFooterGroups")), e.getRightFooterGroups = O(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), j(e.options, pe, "getRightFooterGroups")), e.getFlatHeaders = O(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getFlatHeaders")), e.getLeftFlatHeaders = O(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getLeftFlatHeaders")), e.getCenterFlatHeaders = O(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getCenterFlatHeaders")), e.getRightFlatHeaders = O(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), j(e.options, pe, "getRightFlatHeaders")), e.getCenterLeafHeaders = O(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
3930
3930
|
var i;
|
|
3931
3931
|
return !((i = t.subHeaders) != null && i.length);
|
|
3932
|
-
}), j(e.options,
|
|
3932
|
+
}), j(e.options, pe, "getCenterLeafHeaders")), e.getLeftLeafHeaders = O(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
|
|
3933
3933
|
var i;
|
|
3934
3934
|
return !((i = t.subHeaders) != null && i.length);
|
|
3935
|
-
}), j(e.options,
|
|
3935
|
+
}), j(e.options, pe, "getLeftLeafHeaders")), e.getRightLeafHeaders = O(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
|
|
3936
3936
|
var i;
|
|
3937
3937
|
return !((i = t.subHeaders) != null && i.length);
|
|
3938
|
-
}), j(e.options,
|
|
3938
|
+
}), j(e.options, pe, "getRightLeafHeaders")), e.getLeafHeaders = O(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, i) => {
|
|
3939
3939
|
var o, a, r, l, s, c;
|
|
3940
3940
|
return [...(o = (a = n[0]) == null ? void 0 : a.headers) != null ? o : [], ...(r = (l = t[0]) == null ? void 0 : l.headers) != null ? r : [], ...(s = (c = i[0]) == null ? void 0 : c.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
|
|
3941
|
-
}, j(e.options,
|
|
3941
|
+
}, j(e.options, pe, "getLeafHeaders"));
|
|
3942
3942
|
}
|
|
3943
3943
|
};
|
|
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
|
-
g.forEach((
|
|
3962
|
-
const h = [...v].reverse()[0],
|
|
3963
|
-
let
|
|
3964
|
-
if (
|
|
3965
|
-
h.subHeaders.push(
|
|
3961
|
+
g.forEach((E) => {
|
|
3962
|
+
const h = [...v].reverse()[0], A = E.column.depth === m.depth;
|
|
3963
|
+
let k, M = !1;
|
|
3964
|
+
if (A && E.column.parent ? k = E.column.parent : (k = E.column, M = !0), h && (h == null ? void 0 : h.column) === k)
|
|
3965
|
+
h.subHeaders.push(E);
|
|
3966
3966
|
else {
|
|
3967
|
-
const x =
|
|
3968
|
-
id: [i,
|
|
3969
|
-
isPlaceholder:
|
|
3970
|
-
placeholderId:
|
|
3971
|
-
depth:
|
|
3967
|
+
const x = kn(t, k, {
|
|
3968
|
+
id: [i, u, k.id, E == null ? void 0 : E.id].filter(Boolean).join("_"),
|
|
3969
|
+
isPlaceholder: M,
|
|
3970
|
+
placeholderId: M ? `${v.filter((V) => V.column === k).length}` : void 0,
|
|
3971
|
+
depth: u,
|
|
3972
3972
|
index: v.length
|
|
3973
3973
|
});
|
|
3974
|
-
x.subHeaders.push(
|
|
3974
|
+
x.subHeaders.push(E), v.push(x);
|
|
3975
3975
|
}
|
|
3976
|
-
m.headers.push(
|
|
3977
|
-
}), s.push(m),
|
|
3978
|
-
}, d = n.map((g,
|
|
3976
|
+
m.headers.push(E), E.headerGroup = m;
|
|
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) => {
|
|
3984
|
-
let v = 0,
|
|
3985
|
-
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((
|
|
3984
|
+
let v = 0, E = 0, h = [0];
|
|
3985
|
+
m.subHeaders && m.subHeaders.length ? (h = [], f(m.subHeaders).forEach((k) => {
|
|
3986
3986
|
let {
|
|
3987
|
-
colSpan:
|
|
3987
|
+
colSpan: M,
|
|
3988
3988
|
rowSpan: x
|
|
3989
|
-
} =
|
|
3990
|
-
v +=
|
|
3989
|
+
} = k;
|
|
3990
|
+
v += M, h.push(x);
|
|
3991
3991
|
})) : v = 1;
|
|
3992
|
-
const
|
|
3993
|
-
return
|
|
3992
|
+
const A = Math.min(...h);
|
|
3993
|
+
return E = E + A, m.colSpan = v, m.rowSpan = E, {
|
|
3994
3994
|
colSpan: v,
|
|
3995
|
-
rowSpan:
|
|
3995
|
+
rowSpan: E
|
|
3996
3996
|
};
|
|
3997
3997
|
});
|
|
3998
3998
|
return f((o = (a = s[0]) == null ? void 0 : a.headers) != null ? o : []), s;
|
|
@@ -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
|
}),
|
|
@@ -4123,7 +4123,7 @@ const Ga = {
|
|
|
4123
4123
|
...e
|
|
4124
4124
|
}),
|
|
4125
4125
|
getDefaultOptions: (e) => ({
|
|
4126
|
-
onColumnFiltersChange:
|
|
4126
|
+
onColumnFiltersChange: ve("columnFilters", e),
|
|
4127
4127
|
filterFromLeafRows: !1,
|
|
4128
4128
|
maxLeafRowFilterDepth: 100
|
|
4129
4129
|
}),
|
|
@@ -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;
|
|
@@ -4252,7 +4252,7 @@ const Ba = (e, n, t) => t.reduce((i, o) => {
|
|
|
4252
4252
|
...e
|
|
4253
4253
|
}),
|
|
4254
4254
|
getDefaultOptions: (e) => ({
|
|
4255
|
-
onGroupingChange:
|
|
4255
|
+
onGroupingChange: ve("grouping", e),
|
|
4256
4256
|
groupedColumnMode: "reorder"
|
|
4257
4257
|
}),
|
|
4258
4258
|
createColumn: (e, n) => {
|
|
@@ -4306,19 +4306,19 @@ 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
|
|
4319
4319
|
}),
|
|
4320
4320
|
getDefaultOptions: (e) => ({
|
|
4321
|
-
onColumnOrderChange:
|
|
4321
|
+
onColumnOrderChange: ve("columnOrder", e)
|
|
4322
4322
|
}),
|
|
4323
4323
|
createColumn: (e, n) => {
|
|
4324
4324
|
e.getIndex = O((t) => [Ne(n, t)], (t) => t.findIndex((i) => i.id === e.id), j(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
|
|
@@ -4346,19 +4346,19 @@ 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
|
|
4359
4359
|
}),
|
|
4360
4360
|
getDefaultOptions: (e) => ({
|
|
4361
|
-
onColumnPinningChange:
|
|
4361
|
+
onColumnPinningChange: ve("columnPinning", e)
|
|
4362
4362
|
}),
|
|
4363
4363
|
createColumn: (e, n) => {
|
|
4364
4364
|
e.pin = (t) => {
|
|
@@ -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: {},
|
|
@@ -4449,8 +4449,8 @@ const nr = {
|
|
|
4449
4449
|
getDefaultOptions: (e) => ({
|
|
4450
4450
|
columnResizeMode: "onEnd",
|
|
4451
4451
|
columnResizeDirection: "ltr",
|
|
4452
|
-
onColumnSizingChange:
|
|
4453
|
-
onColumnSizingInfoChange:
|
|
4452
|
+
onColumnSizingChange: ve("columnSizing", e),
|
|
4453
|
+
onColumnSizingInfoChange: ve("columnSizingInfo", e)
|
|
4454
4454
|
}),
|
|
4455
4455
|
createColumn: (e, n) => {
|
|
4456
4456
|
e.getSize = () => {
|
|
@@ -4493,25 +4493,25 @@ const nr = {
|
|
|
4493
4493
|
return (a) => {
|
|
4494
4494
|
if (!i || !o || (a.persist == null || a.persist(), Et(a) && a.touches && a.touches.length > 1))
|
|
4495
4495
|
return;
|
|
4496
|
-
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h,
|
|
4497
|
-
typeof
|
|
4498
|
-
var
|
|
4499
|
-
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (
|
|
4500
|
-
return
|
|
4501
|
-
let [
|
|
4502
|
-
c[
|
|
4496
|
+
const r = e.getSize(), l = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[i.id, i.getSize()]], s = Et(a) ? Math.round(a.touches[0].clientX) : a.clientX, c = {}, d = (h, A) => {
|
|
4497
|
+
typeof A == "number" && (n.setColumnSizingInfo((k) => {
|
|
4498
|
+
var M, x;
|
|
4499
|
+
const V = n.options.columnResizeDirection === "rtl" ? -1 : 1, H = (A - ((M = k == null ? void 0 : k.startOffset) != null ? M : 0)) * V, Q = Math.max(H / ((x = k == null ? void 0 : k.startSize) != null ? x : 0), -0.999999);
|
|
4500
|
+
return k.columnSizingStart.forEach((ie) => {
|
|
4501
|
+
let [Z, de] = ie;
|
|
4502
|
+
c[Z] = Math.round(Math.max(de + de * Q, 0) * 100) / 100;
|
|
4503
4503
|
}), {
|
|
4504
|
-
...
|
|
4504
|
+
...k,
|
|
4505
4505
|
deltaOffset: H,
|
|
4506
|
-
deltaPercentage:
|
|
4506
|
+
deltaPercentage: Q
|
|
4507
4507
|
};
|
|
4508
|
-
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((
|
|
4509
|
-
...
|
|
4508
|
+
}), (n.options.columnResizeMode === "onChange" || h === "end") && n.setColumnSizing((k) => ({
|
|
4509
|
+
...k,
|
|
4510
4510
|
...c
|
|
4511
4511
|
})));
|
|
4512
4512
|
}, f = (h) => d("move", h), g = (h) => {
|
|
4513
|
-
d("end", h), n.setColumnSizingInfo((
|
|
4514
|
-
...
|
|
4513
|
+
d("end", h), n.setColumnSizingInfo((A) => ({
|
|
4514
|
+
...A,
|
|
4515
4515
|
isResizingColumn: !1,
|
|
4516
4516
|
startOffset: null,
|
|
4517
4517
|
startSize: null,
|
|
@@ -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
|
-
var
|
|
4531
|
-
|
|
4530
|
+
var A;
|
|
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
|
-
},
|
|
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,13 +4587,13 @@ 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
|
|
4594
4594
|
}),
|
|
4595
4595
|
getDefaultOptions: (e) => ({
|
|
4596
|
-
onColumnVisibilityChange:
|
|
4596
|
+
onColumnVisibilityChange: ve("columnVisibility", e)
|
|
4597
4597
|
}),
|
|
4598
4598
|
createColumn: (e, n) => {
|
|
4599
4599
|
e.toggleVisibility = (t) => {
|
|
@@ -4635,20 +4635,20 @@ 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
|
|
4649
4649
|
}),
|
|
4650
4650
|
getDefaultOptions: (e) => ({
|
|
4651
|
-
onGlobalFilterChange:
|
|
4651
|
+
onGlobalFilterChange: ve("globalFilter", e),
|
|
4652
4652
|
globalFilterFn: "auto",
|
|
4653
4653
|
getColumnCanGlobalFilter: (n) => {
|
|
4654
4654
|
var t;
|
|
@@ -4675,13 +4675,13 @@ 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
|
|
4682
4682
|
}),
|
|
4683
4683
|
getDefaultOptions: (e) => ({
|
|
4684
|
-
onExpandedChange:
|
|
4684
|
+
onExpandedChange: ve("expanded", e),
|
|
4685
4685
|
paginateExpandedRows: !0
|
|
4686
4686
|
}),
|
|
4687
4687
|
createTable: (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: {
|
|
@@ -4774,7 +4774,7 @@ const lr = {
|
|
|
4774
4774
|
}
|
|
4775
4775
|
}),
|
|
4776
4776
|
getDefaultOptions: (e) => ({
|
|
4777
|
-
onPaginationChange:
|
|
4777
|
+
onPaginationChange: ve("pagination", e)
|
|
4778
4778
|
}),
|
|
4779
4779
|
createTable: (e) => {
|
|
4780
4780
|
let n = !1, t = !1;
|
|
@@ -4848,13 +4848,13 @@ 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
|
|
4855
4855
|
}),
|
|
4856
4856
|
getDefaultOptions: (e) => ({
|
|
4857
|
-
onRowPinningChange:
|
|
4857
|
+
onRowPinningChange: ve("rowPinning", e)
|
|
4858
4858
|
}),
|
|
4859
4859
|
createRow: (e, n) => {
|
|
4860
4860
|
e.pin = (t, i, o) => {
|
|
@@ -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,13 +4949,13 @@ 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
|
|
4956
4956
|
}),
|
|
4957
4957
|
getDefaultOptions: (e) => ({
|
|
4958
|
-
onRowSelectionChange:
|
|
4958
|
+
onRowSelectionChange: ve("rowSelection", e),
|
|
4959
4959
|
enableRowSelection: !0,
|
|
4960
4960
|
enableMultiRowSelection: !0,
|
|
4961
4961
|
enableSubRowSelection: !0
|
|
@@ -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
|
|
@@ -5152,7 +5152,7 @@ const Ve = {
|
|
|
5152
5152
|
sortUndefined: 1
|
|
5153
5153
|
}),
|
|
5154
5154
|
getDefaultOptions: (e) => ({
|
|
5155
|
-
onSortingChange:
|
|
5155
|
+
onSortingChange: ve("sorting", e),
|
|
5156
5156
|
isMultiSortEvent: (n) => n.shiftKey
|
|
5157
5157
|
}),
|
|
5158
5158
|
createColumn: (e, n) => {
|
|
@@ -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,47 +5284,47 @@ 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;
|
|
5323
5323
|
},
|
|
5324
5324
|
// footer: props => props.header.column.id,
|
|
5325
5325
|
cell: (m) => {
|
|
5326
|
-
var v,
|
|
5327
|
-
return (v = (
|
|
5326
|
+
var v, E;
|
|
5327
|
+
return (v = (E = m.renderValue()) == null || E.toString == null ? void 0 : E.toString()) != null ? v : null;
|
|
5328
5328
|
},
|
|
5329
5329
|
...o._features.reduce((m, v) => Object.assign(m, v.getDefaultColumnDef == null ? void 0 : v.getDefaultColumnDef()), {}),
|
|
5330
5330
|
...g
|
|
@@ -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
|
|
5336
|
-
return
|
|
5337
|
-
const
|
|
5338
|
-
return
|
|
5335
|
+
const u = function(m, v, E) {
|
|
5336
|
+
return E === void 0 && (E = 0), m.map((h) => {
|
|
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,20 +5402,20 @@ 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
|
-
let [
|
|
5408
|
-
|
|
5409
|
-
const
|
|
5410
|
-
|
|
5411
|
-
V.parentId =
|
|
5407
|
+
let [E, h] = m, A = `${f}:${E}`;
|
|
5408
|
+
A = d ? `${d}>${A}` : A;
|
|
5409
|
+
const k = r(h, c + 1, A);
|
|
5410
|
+
k.forEach((V) => {
|
|
5411
|
+
V.parentId = A;
|
|
5412
5412
|
});
|
|
5413
|
-
const
|
|
5413
|
+
const M = c ? li(h, (V) => V.subRows) : h, x = si(e, A, M[0].original, v, c, void 0, d);
|
|
5414
5414
|
return Object.assign(x, {
|
|
5415
5415
|
groupingColumnId: f,
|
|
5416
|
-
groupingValue:
|
|
5417
|
-
subRows:
|
|
5418
|
-
leafRows:
|
|
5416
|
+
groupingValue: E,
|
|
5417
|
+
subRows: k,
|
|
5418
|
+
leafRows: M,
|
|
5419
5419
|
getValue: (V) => {
|
|
5420
5420
|
if (i.includes(V)) {
|
|
5421
5421
|
if (x._valuesCache.hasOwnProperty(V))
|
|
@@ -5428,11 +5428,11 @@ function Rr() {
|
|
|
5428
5428
|
}
|
|
5429
5429
|
if (x._groupingValuesCache.hasOwnProperty(V))
|
|
5430
5430
|
return x._groupingValuesCache[V];
|
|
5431
|
-
const
|
|
5432
|
-
if (
|
|
5433
|
-
return x._groupingValuesCache[V] =
|
|
5431
|
+
const Q = e.getColumn(V), ie = Q == null ? void 0 : Q.getAggregationFn();
|
|
5432
|
+
if (ie)
|
|
5433
|
+
return x._groupingValuesCache[V] = ie(V, M, h), x._groupingValuesCache[V];
|
|
5434
5434
|
}
|
|
5435
|
-
}),
|
|
5435
|
+
}), k.forEach((V) => {
|
|
5436
5436
|
o.push(V), a[V.id] = V;
|
|
5437
5437
|
}), x;
|
|
5438
5438
|
});
|
|
@@ -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 = ({
|
|
@@ -5541,14 +5548,14 @@ const Or = ({
|
|
|
5541
5548
|
isPending: r,
|
|
5542
5549
|
pageSizes: l = [20, 30, 50, 100]
|
|
5543
5550
|
}) => {
|
|
5544
|
-
const s =
|
|
5545
|
-
() => s.map((
|
|
5546
|
-
label: `${
|
|
5547
|
-
value:
|
|
5551
|
+
const s = se(() => l, []), c = se(
|
|
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,47 +5705,48 @@ const Yr = ({
|
|
|
5698
5705
|
isLoading: d,
|
|
5699
5706
|
noData: f,
|
|
5700
5707
|
pagination: g,
|
|
5701
|
-
pinGroup:
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
+
pinGroup: u,
|
|
5709
|
+
sorting: m = [],
|
|
5710
|
+
setSorting: v,
|
|
5711
|
+
rowSelection: E,
|
|
5712
|
+
setRowSelection: h,
|
|
5713
|
+
showChevron: A = !1,
|
|
5714
|
+
variant: k = "full-height",
|
|
5715
|
+
...M
|
|
5708
5716
|
}) => {
|
|
5709
|
-
const
|
|
5710
|
-
|
|
5711
|
-
const y = typeof
|
|
5717
|
+
const x = be(null), [V, H] = ge("auto"), [Q, ie] = ge(!1), [Z, de] = ge(c ?? []), [fe, D] = ge(m ?? []), [R, G] = ge(!0), J = (b) => {
|
|
5718
|
+
G((I) => {
|
|
5719
|
+
const y = typeof b == "function" ? b(I) : b;
|
|
5712
5720
|
if (y === !0) return !0;
|
|
5713
|
-
const
|
|
5714
|
-
if (
|
|
5715
|
-
for (const
|
|
5716
|
-
|
|
5717
|
-
return
|
|
5721
|
+
const F = { ...y };
|
|
5722
|
+
if (I !== !0)
|
|
5723
|
+
for (const P of Object.keys(I))
|
|
5724
|
+
P in F || (F[P] = !1);
|
|
5725
|
+
return F;
|
|
5718
5726
|
});
|
|
5719
5727
|
};
|
|
5720
5728
|
Ce(() => {
|
|
5721
|
-
|
|
5722
|
-
const y = { ...
|
|
5723
|
-
for (const
|
|
5724
|
-
const
|
|
5725
|
-
|
|
5729
|
+
Z.length && J((b) => {
|
|
5730
|
+
const y = { ...b === !0 ? {} : { ...b } };
|
|
5731
|
+
for (const F of a) {
|
|
5732
|
+
const P = Z.map(($) => `${$}:${F[$]}`).join(">");
|
|
5733
|
+
P in y || (y[P] = !0);
|
|
5726
5734
|
}
|
|
5727
5735
|
return y;
|
|
5728
5736
|
});
|
|
5729
|
-
}, [a,
|
|
5730
|
-
const
|
|
5731
|
-
let
|
|
5737
|
+
}, [a, Z]);
|
|
5738
|
+
const ee = se(() => {
|
|
5739
|
+
let b = [...i];
|
|
5732
5740
|
if (d)
|
|
5733
|
-
return
|
|
5741
|
+
return b;
|
|
5734
5742
|
if (n) {
|
|
5735
|
-
const
|
|
5743
|
+
const I = [
|
|
5736
5744
|
{
|
|
5737
5745
|
id: "p-generic-table__select",
|
|
5738
5746
|
accessorKey: "id",
|
|
5739
5747
|
enableSorting: !1,
|
|
5740
|
-
header: ({ table: y }) => c ? "" : /* @__PURE__ */
|
|
5741
|
-
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(
|
|
5742
5750
|
Me,
|
|
5743
5751
|
{
|
|
5744
5752
|
row: y,
|
|
@@ -5747,36 +5755,36 @@ const Yr = ({
|
|
|
5747
5755
|
}
|
|
5748
5756
|
)
|
|
5749
5757
|
},
|
|
5750
|
-
...
|
|
5758
|
+
...b
|
|
5751
5759
|
];
|
|
5752
|
-
c ?
|
|
5760
|
+
c ? b = [
|
|
5753
5761
|
{
|
|
5754
5762
|
id: "p-generic-table__group-select",
|
|
5755
5763
|
accessorKey: "id",
|
|
5756
5764
|
enableSorting: !1,
|
|
5757
|
-
header: ({ table: y }) => /* @__PURE__ */
|
|
5758
|
-
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
|
|
5759
5767
|
},
|
|
5760
|
-
...
|
|
5761
|
-
] :
|
|
5768
|
+
...I
|
|
5769
|
+
] : b = I;
|
|
5762
5770
|
}
|
|
5763
|
-
return c &&
|
|
5771
|
+
return c && A && (b = [{
|
|
5764
5772
|
id: "p-generic-table__group-chevron",
|
|
5765
5773
|
accessorKey: "id",
|
|
5766
5774
|
enableSorting: !1,
|
|
5767
5775
|
header: "",
|
|
5768
5776
|
cell: ({ row: y }) => {
|
|
5769
|
-
const
|
|
5770
|
-
return y.getIsGrouped() ? /* @__PURE__ */
|
|
5771
|
-
|
|
5777
|
+
const F = y.getIsExpanded();
|
|
5778
|
+
return y.getIsGrouped() ? /* @__PURE__ */ p(
|
|
5779
|
+
qt,
|
|
5772
5780
|
{
|
|
5773
|
-
message:
|
|
5781
|
+
message: F ? "Collapse" : "Expand",
|
|
5774
5782
|
position: "btm-right",
|
|
5775
|
-
children: /* @__PURE__ */
|
|
5783
|
+
children: /* @__PURE__ */ p(Re, { name: F ? Zt.chevronUp : Zt.chevronDown })
|
|
5776
5784
|
}
|
|
5777
5785
|
) : null;
|
|
5778
5786
|
}
|
|
5779
|
-
}, ...
|
|
5787
|
+
}, ...b]), b;
|
|
5780
5788
|
}, [
|
|
5781
5789
|
n,
|
|
5782
5790
|
i,
|
|
@@ -5784,94 +5792,96 @@ const Yr = ({
|
|
|
5784
5792
|
c,
|
|
5785
5793
|
s,
|
|
5786
5794
|
t
|
|
5787
|
-
]),
|
|
5788
|
-
for (const y of
|
|
5789
|
-
const
|
|
5790
|
-
if (
|
|
5791
|
-
if (
|
|
5792
|
-
if (
|
|
5795
|
+
]), ae = se(() => Z.length ? [...a].sort((b, I) => {
|
|
5796
|
+
for (const y of Z) {
|
|
5797
|
+
const F = b[y] ?? null, P = I[y] ?? null;
|
|
5798
|
+
if (F === null) return 1;
|
|
5799
|
+
if (P === null || F < P) return -1;
|
|
5800
|
+
if (F > P) return 1;
|
|
5793
5801
|
}
|
|
5794
5802
|
return 0;
|
|
5795
|
-
}) : a, [a,
|
|
5796
|
-
if (
|
|
5797
|
-
for (const { value: y, isTop:
|
|
5798
|
-
const
|
|
5799
|
-
if ($ === y &&
|
|
5800
|
-
return
|
|
5801
|
-
if (
|
|
5802
|
-
return
|
|
5803
|
+
}) : a, [a, Z]), te = se(() => ae.length ? [...ae].sort((b, I) => {
|
|
5804
|
+
if (u != null && u.length && Z.length)
|
|
5805
|
+
for (const { value: y, isTop: F } of u) {
|
|
5806
|
+
const P = Z[0], $ = b[P] ?? null, z = I[P] ?? null;
|
|
5807
|
+
if ($ === y && z !== y)
|
|
5808
|
+
return F ? -1 : 1;
|
|
5809
|
+
if (z === y && $ !== y)
|
|
5810
|
+
return F ? 1 : -1;
|
|
5803
5811
|
}
|
|
5804
|
-
for (const { id: y, desc:
|
|
5805
|
-
const
|
|
5806
|
-
if (
|
|
5807
|
-
if (
|
|
5808
|
-
if ($ === null ||
|
|
5809
|
-
return
|
|
5810
|
-
if (
|
|
5811
|
-
return
|
|
5812
|
+
for (const { id: y, desc: F } of fe) {
|
|
5813
|
+
const P = b[y] ?? null, $ = I[y] ?? null;
|
|
5814
|
+
if (P === null && $ === null) return 0;
|
|
5815
|
+
if (P === null) return F ? -1 : 1;
|
|
5816
|
+
if ($ === null || P < $)
|
|
5817
|
+
return F ? 1 : -1;
|
|
5818
|
+
if (P > $)
|
|
5819
|
+
return F ? -1 : 1;
|
|
5812
5820
|
}
|
|
5813
5821
|
return 0;
|
|
5814
|
-
}) : [], [
|
|
5822
|
+
}) : [], [ae, fe, u, Z]);
|
|
5815
5823
|
On(() => {
|
|
5816
|
-
const
|
|
5817
|
-
const
|
|
5818
|
-
if (!
|
|
5819
|
-
const
|
|
5820
|
-
if (!
|
|
5821
|
-
const $ =
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
+
const b = () => {
|
|
5825
|
+
const F = x.current;
|
|
5826
|
+
if (!F) return;
|
|
5827
|
+
const P = (o == null ? void 0 : o.current) || document.querySelector("main");
|
|
5828
|
+
if (!P) return;
|
|
5829
|
+
const $ = P.getBoundingClientRect(), z = F.getBoundingClientRect(), U = $.bottom - z.top, ce = F.scrollHeight > U;
|
|
5830
|
+
ie(ce), H(
|
|
5831
|
+
k === "full-height" && ce ? `${U}px` : "auto"
|
|
5824
5832
|
);
|
|
5825
5833
|
};
|
|
5826
|
-
|
|
5827
|
-
const
|
|
5828
|
-
return y &&
|
|
5829
|
-
window.removeEventListener("resize",
|
|
5834
|
+
b();
|
|
5835
|
+
const I = new ResizeObserver(b), y = x.current;
|
|
5836
|
+
return y && I.observe(y), window.addEventListener("resize", b), () => {
|
|
5837
|
+
window.removeEventListener("resize", b), y && I.unobserve(y);
|
|
5830
5838
|
};
|
|
5831
|
-
}, [o,
|
|
5832
|
-
const
|
|
5833
|
-
data:
|
|
5834
|
-
columns:
|
|
5839
|
+
}, [o, te.length, d]);
|
|
5840
|
+
const w = k === "full-height" && Q ? "full-height" : "regular", _ = Dr({
|
|
5841
|
+
data: te,
|
|
5842
|
+
columns: ee,
|
|
5835
5843
|
state: {
|
|
5836
|
-
grouping:
|
|
5837
|
-
expanded:
|
|
5838
|
-
sorting:
|
|
5839
|
-
rowSelection:
|
|
5844
|
+
grouping: Z,
|
|
5845
|
+
expanded: R,
|
|
5846
|
+
sorting: fe,
|
|
5847
|
+
rowSelection: E
|
|
5840
5848
|
},
|
|
5841
5849
|
manualPagination: !0,
|
|
5842
5850
|
autoResetExpanded: !1,
|
|
5843
|
-
onExpandedChange:
|
|
5844
|
-
onSortingChange:
|
|
5845
|
-
|
|
5846
|
-
|
|
5851
|
+
onExpandedChange: J,
|
|
5852
|
+
onSortingChange: (b) => {
|
|
5853
|
+
D(b), v && v(b);
|
|
5854
|
+
},
|
|
5855
|
+
onGroupingChange: de,
|
|
5856
|
+
onRowSelectionChange: h,
|
|
5847
5857
|
manualSorting: !0,
|
|
5848
5858
|
enableSorting: !0,
|
|
5849
5859
|
enableExpanding: !0,
|
|
5850
5860
|
getSubRows: s,
|
|
5851
|
-
getExpandedRowModel:
|
|
5852
|
-
getCoreRowModel:
|
|
5853
|
-
getGroupedRowModel:
|
|
5861
|
+
getExpandedRowModel: _r(),
|
|
5862
|
+
getCoreRowModel: Cr(),
|
|
5863
|
+
getGroupedRowModel: Er(),
|
|
5854
5864
|
groupedColumnMode: !1,
|
|
5855
5865
|
enableRowSelection: n,
|
|
5856
5866
|
enableMultiRowSelection: n,
|
|
5857
|
-
getRowId: (
|
|
5858
|
-
}),
|
|
5859
|
-
const { getIsGrouped:
|
|
5860
|
-
return /* @__PURE__ */
|
|
5867
|
+
getRowId: (b) => b.id.toString()
|
|
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) => {
|
|
5869
|
+
const { getIsGrouped: I, id: y, getVisibleCells: F, parentId: P } = b, $ = !I(), z = E !== void 0 && Object.keys(E).includes(y);
|
|
5870
|
+
return /* @__PURE__ */ p(
|
|
5861
5871
|
"tr",
|
|
5862
5872
|
{
|
|
5863
5873
|
"aria-rowindex": parseInt(y.replace(/\D/g, "") || "0", 10) + 1,
|
|
5864
|
-
"aria-selected":
|
|
5865
|
-
className:
|
|
5874
|
+
"aria-selected": z,
|
|
5875
|
+
className: q({
|
|
5866
5876
|
"p-generic-table__individual-row": $,
|
|
5867
5877
|
"p-generic-table__group-row": !$,
|
|
5868
|
-
"p-generic-table__nested-row": s !== void 0 && !!
|
|
5878
|
+
"p-generic-table__nested-row": s !== void 0 && !!P
|
|
5869
5879
|
}),
|
|
5870
5880
|
onClick: () => {
|
|
5871
|
-
$ ||
|
|
5881
|
+
$ || b.toggleExpanded();
|
|
5872
5882
|
},
|
|
5873
5883
|
role: "row",
|
|
5874
|
-
children:
|
|
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))
|
|
5875
5885
|
},
|
|
5876
5886
|
y
|
|
5877
5887
|
);
|
|
@@ -5879,11 +5889,11 @@ const Yr = ({
|
|
|
5879
5889
|
return /* @__PURE__ */ B(
|
|
5880
5890
|
"div",
|
|
5881
5891
|
{
|
|
5882
|
-
className:
|
|
5892
|
+
className: q("p-generic-table", e),
|
|
5883
5893
|
"data-testid": "p-generic-table",
|
|
5884
|
-
...
|
|
5894
|
+
...M,
|
|
5885
5895
|
children: [
|
|
5886
|
-
g && /* @__PURE__ */
|
|
5896
|
+
g && /* @__PURE__ */ p(
|
|
5887
5897
|
Or,
|
|
5888
5898
|
{
|
|
5889
5899
|
currentPage: g.currentPage,
|
|
@@ -5900,35 +5910,35 @@ const Yr = ({
|
|
|
5900
5910
|
"table",
|
|
5901
5911
|
{
|
|
5902
5912
|
"aria-busy": d,
|
|
5903
|
-
"aria-label":
|
|
5913
|
+
"aria-label": M["aria-label"],
|
|
5904
5914
|
"aria-describedby": "generic-table-description",
|
|
5905
|
-
"aria-rowcount":
|
|
5906
|
-
className:
|
|
5907
|
-
"p-generic-table__is-full-height":
|
|
5915
|
+
"aria-rowcount": te.length + 1,
|
|
5916
|
+
className: q("p-generic-table__table", {
|
|
5917
|
+
"p-generic-table__is-full-height": w === "full-height",
|
|
5908
5918
|
"p-generic-table__is-selectable": n,
|
|
5909
5919
|
"p-generic-table__is-grouped": c !== void 0
|
|
5910
5920
|
}),
|
|
5911
5921
|
role: "grid",
|
|
5912
5922
|
children: [
|
|
5913
|
-
/* @__PURE__ */
|
|
5914
|
-
/* @__PURE__ */
|
|
5915
|
-
n && c && (!
|
|
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(
|
|
5916
5926
|
"th",
|
|
5917
5927
|
{
|
|
5918
5928
|
className: "p-generic-table__select-alignment",
|
|
5919
5929
|
role: "columnheader"
|
|
5920
5930
|
}
|
|
5921
5931
|
) : null
|
|
5922
|
-
] },
|
|
5923
|
-
/* @__PURE__ */
|
|
5932
|
+
] }, I.id)) }, b.id)) }),
|
|
5933
|
+
/* @__PURE__ */ p(
|
|
5924
5934
|
"tbody",
|
|
5925
5935
|
{
|
|
5926
|
-
ref:
|
|
5936
|
+
ref: x,
|
|
5927
5937
|
style: {
|
|
5928
5938
|
overflowY: "auto",
|
|
5929
|
-
maxHeight:
|
|
5939
|
+
maxHeight: V
|
|
5930
5940
|
},
|
|
5931
|
-
children: d ?
|
|
5941
|
+
children: d ? N() : L()
|
|
5932
5942
|
}
|
|
5933
5943
|
)
|
|
5934
5944
|
]
|
|
@@ -5987,72 +5997,72 @@ const Yr = ({
|
|
|
5987
5997
|
placeholder: c,
|
|
5988
5998
|
...d
|
|
5989
5999
|
}) => {
|
|
5990
|
-
const [f, g] =
|
|
6000
|
+
const [f, g] = ge({
|
|
5991
6001
|
isVisible: !1,
|
|
5992
6002
|
highlightedIndex: -1,
|
|
5993
6003
|
showingMore: !1,
|
|
5994
6004
|
cursorPosition: 0
|
|
5995
|
-
}),
|
|
5996
|
-
const D = f.showingMore ? In.EXPANDED : In.DEFAULT,
|
|
5997
|
-
return !f.showingMore && l.length > D ? [...
|
|
5998
|
-
}, [l, f.showingMore]), h =
|
|
6005
|
+
}), u = be(null), m = be(null), v = be(null), E = se(() => {
|
|
6006
|
+
const D = f.showingMore ? In.EXPANDED : In.DEFAULT, R = l.slice(0, D);
|
|
6007
|
+
return !f.showingMore && l.length > D ? [...R, { value: "Show more...", type: "more" }] : R;
|
|
6008
|
+
}, [l, f.showingMore]), h = X(
|
|
5999
6009
|
(D) => {
|
|
6000
|
-
g(typeof D == "function" ? (
|
|
6010
|
+
g(typeof D == "function" ? (R) => ({ ...R, ...D(R) }) : (R) => ({ ...R, ...D }));
|
|
6001
6011
|
},
|
|
6002
6012
|
[]
|
|
6003
|
-
),
|
|
6013
|
+
), A = X(
|
|
6004
6014
|
(D) => {
|
|
6005
|
-
|
|
6015
|
+
u.current && !u.current.contains(D.target) && h({
|
|
6006
6016
|
isVisible: !1,
|
|
6007
6017
|
highlightedIndex: -1
|
|
6008
6018
|
});
|
|
6009
6019
|
},
|
|
6010
6020
|
[h]
|
|
6011
|
-
),
|
|
6012
|
-
(D,
|
|
6013
|
-
const { tokenStart:
|
|
6021
|
+
), k = X(
|
|
6022
|
+
(D, R) => {
|
|
6023
|
+
const { tokenStart: G, tokenEnd: J } = R;
|
|
6014
6024
|
if (D.type === "filter") {
|
|
6015
|
-
const
|
|
6016
|
-
return t.slice(0,
|
|
6025
|
+
const ae = D.value + xe.COLON + xe.OPEN_PAREN;
|
|
6026
|
+
return t.slice(0, G) + ae + t.slice(J);
|
|
6017
6027
|
}
|
|
6018
6028
|
if (o.length === 0) {
|
|
6019
|
-
const
|
|
6020
|
-
return t.slice(0,
|
|
6029
|
+
const ae = D.type + xe.COLON + xe.OPEN_PAREN + xe.EQUALS + D.value;
|
|
6030
|
+
return t.slice(0, G) + ae + t.slice(J);
|
|
6021
6031
|
}
|
|
6022
|
-
const
|
|
6023
|
-
return t.slice(0,
|
|
6032
|
+
const ee = t.charAt(G - 1) === xe.EQUALS ? D.value : xe.EQUALS + D.value;
|
|
6033
|
+
return t.slice(0, G) + ee + t.slice(J);
|
|
6024
6034
|
},
|
|
6025
6035
|
[t, o]
|
|
6026
|
-
),
|
|
6036
|
+
), M = X(
|
|
6027
6037
|
(D) => {
|
|
6028
|
-
const
|
|
6029
|
-
if (!
|
|
6030
|
-
if (
|
|
6038
|
+
const R = E[D];
|
|
6039
|
+
if (!R) return;
|
|
6040
|
+
if (R.type === "more") {
|
|
6031
6041
|
h({ showingMore: !0 });
|
|
6032
6042
|
return;
|
|
6033
6043
|
}
|
|
6034
|
-
const
|
|
6044
|
+
const G = Ze(
|
|
6035
6045
|
t,
|
|
6036
6046
|
f.cursorPosition
|
|
6037
|
-
),
|
|
6038
|
-
|
|
6039
|
-
|
|
6047
|
+
), J = k(R, G), ee = G.tokenStart + (R.type === "filter" ? R.value.length + 2 : o.length === 0 ? R.type.length + R.value.length + 3 : R.value.length + 1), { context: ae, token: te } = Ze(
|
|
6048
|
+
J,
|
|
6049
|
+
ee
|
|
6040
6050
|
);
|
|
6041
|
-
a(
|
|
6051
|
+
a(ae), r(te), i(J), setTimeout(() => {
|
|
6042
6052
|
v.current && (v.current.focus(), v.current.setSelectionRange(
|
|
6043
|
-
|
|
6044
|
-
|
|
6053
|
+
ee,
|
|
6054
|
+
ee
|
|
6045
6055
|
));
|
|
6046
6056
|
}, 0), h({
|
|
6047
6057
|
highlightedIndex: 0,
|
|
6048
6058
|
showingMore: !1,
|
|
6049
|
-
isVisible:
|
|
6050
|
-
cursorPosition:
|
|
6059
|
+
isVisible: R.type === "filter",
|
|
6060
|
+
cursorPosition: ee
|
|
6051
6061
|
});
|
|
6052
6062
|
},
|
|
6053
6063
|
[
|
|
6054
|
-
|
|
6055
|
-
|
|
6064
|
+
E,
|
|
6065
|
+
k,
|
|
6056
6066
|
t,
|
|
6057
6067
|
f.cursorPosition,
|
|
6058
6068
|
o,
|
|
@@ -6061,36 +6071,36 @@ const Yr = ({
|
|
|
6061
6071
|
i,
|
|
6062
6072
|
h
|
|
6063
6073
|
]
|
|
6064
|
-
), x =
|
|
6074
|
+
), x = X(() => {
|
|
6065
6075
|
if (!v.current) return;
|
|
6066
|
-
const D = v.current.selectionStart || 0, { context:
|
|
6076
|
+
const D = v.current.selectionStart || 0, { context: R, token: G } = Ze(
|
|
6067
6077
|
t,
|
|
6068
6078
|
D
|
|
6069
6079
|
);
|
|
6070
|
-
a(
|
|
6071
|
-
...
|
|
6080
|
+
a(R), r(G), h((J) => ({
|
|
6081
|
+
...J,
|
|
6072
6082
|
isVisible: !Dn(t, D),
|
|
6073
6083
|
cursorPosition: D
|
|
6074
6084
|
}));
|
|
6075
|
-
}, [t, a, r, h]), V =
|
|
6085
|
+
}, [t, a, r, h]), V = X(
|
|
6076
6086
|
(D) => {
|
|
6077
|
-
const { key:
|
|
6087
|
+
const { key: R } = D;
|
|
6078
6088
|
if (f.isVisible) {
|
|
6079
|
-
const
|
|
6080
|
-
switch (
|
|
6089
|
+
const G = E.length;
|
|
6090
|
+
switch (R) {
|
|
6081
6091
|
case "Tab":
|
|
6082
6092
|
case "ArrowDown":
|
|
6083
6093
|
D.preventDefault(), h({
|
|
6084
|
-
highlightedIndex: (f.highlightedIndex + 1) %
|
|
6094
|
+
highlightedIndex: (f.highlightedIndex + 1) % G
|
|
6085
6095
|
});
|
|
6086
6096
|
return;
|
|
6087
6097
|
case "ArrowUp":
|
|
6088
6098
|
D.preventDefault(), h({
|
|
6089
|
-
highlightedIndex: f.highlightedIndex <= 0 ?
|
|
6099
|
+
highlightedIndex: f.highlightedIndex <= 0 ? G - 1 : f.highlightedIndex - 1
|
|
6090
6100
|
});
|
|
6091
6101
|
return;
|
|
6092
6102
|
case "Enter":
|
|
6093
|
-
D.preventDefault(), f.highlightedIndex >= 0 ?
|
|
6103
|
+
D.preventDefault(), f.highlightedIndex >= 0 ? M(f.highlightedIndex) : h({ isVisible: !1 });
|
|
6094
6104
|
return;
|
|
6095
6105
|
case "Escape":
|
|
6096
6106
|
D.preventDefault(), h({
|
|
@@ -6100,63 +6110,63 @@ const Yr = ({
|
|
|
6100
6110
|
return;
|
|
6101
6111
|
}
|
|
6102
6112
|
}
|
|
6103
|
-
(
|
|
6113
|
+
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && setTimeout(x, 0);
|
|
6104
6114
|
},
|
|
6105
6115
|
[
|
|
6106
6116
|
f,
|
|
6107
|
-
|
|
6117
|
+
E.length,
|
|
6108
6118
|
h,
|
|
6109
|
-
|
|
6119
|
+
M,
|
|
6110
6120
|
x
|
|
6111
6121
|
]
|
|
6112
|
-
), H =
|
|
6122
|
+
), H = X(
|
|
6113
6123
|
(D) => {
|
|
6114
|
-
const { key:
|
|
6115
|
-
(
|
|
6124
|
+
const { key: R } = D;
|
|
6125
|
+
(R === "ArrowLeft" || R === "ArrowRight" || R === "Home" || R === "End") && x();
|
|
6116
6126
|
},
|
|
6117
6127
|
[x]
|
|
6118
|
-
),
|
|
6128
|
+
), Q = X(() => {
|
|
6119
6129
|
h({
|
|
6120
6130
|
isVisible: !0,
|
|
6121
6131
|
highlightedIndex: 0
|
|
6122
6132
|
});
|
|
6123
|
-
}, [h]),
|
|
6133
|
+
}, [h]), ie = X(
|
|
6124
6134
|
(D) => {
|
|
6125
|
-
var
|
|
6126
|
-
const
|
|
6135
|
+
var ee;
|
|
6136
|
+
const R = ((ee = v.current) == null ? void 0 : ee.selectionStart) || D.length, { context: G, token: J } = Ze(
|
|
6127
6137
|
D,
|
|
6128
|
-
|
|
6138
|
+
R
|
|
6129
6139
|
);
|
|
6130
|
-
a(
|
|
6140
|
+
a(G), r(J), i(D), h({
|
|
6131
6141
|
highlightedIndex: 0,
|
|
6132
|
-
isVisible: !Dn(D,
|
|
6142
|
+
isVisible: !Dn(D, R),
|
|
6133
6143
|
showingMore: !1,
|
|
6134
|
-
cursorPosition:
|
|
6144
|
+
cursorPosition: R
|
|
6135
6145
|
});
|
|
6136
6146
|
},
|
|
6137
6147
|
[a, r, i, h]
|
|
6138
|
-
),
|
|
6148
|
+
), Z = X(() => {
|
|
6139
6149
|
setTimeout(x, 0);
|
|
6140
|
-
}, [x]),
|
|
6150
|
+
}, [x]), de = X(() => {
|
|
6141
6151
|
h({
|
|
6142
6152
|
isVisible: !1,
|
|
6143
6153
|
highlightedIndex: -1
|
|
6144
6154
|
});
|
|
6145
|
-
}, [h]),
|
|
6155
|
+
}, [h]), fe = X(
|
|
6146
6156
|
(D) => {
|
|
6147
6157
|
h({ highlightedIndex: D });
|
|
6148
6158
|
},
|
|
6149
6159
|
[h]
|
|
6150
6160
|
);
|
|
6151
|
-
return Ce(() => (document.addEventListener("mousedown",
|
|
6161
|
+
return Ce(() => (document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A)), [A]), /* @__PURE__ */ B(
|
|
6152
6162
|
"div",
|
|
6153
6163
|
{
|
|
6154
|
-
className:
|
|
6164
|
+
className: q("p-query-input", e),
|
|
6155
6165
|
"data-testid": "p-query-input",
|
|
6156
|
-
ref:
|
|
6166
|
+
ref: u,
|
|
6157
6167
|
...d,
|
|
6158
6168
|
children: [
|
|
6159
|
-
/* @__PURE__ */
|
|
6169
|
+
/* @__PURE__ */ p(
|
|
6160
6170
|
jn,
|
|
6161
6171
|
{
|
|
6162
6172
|
disabled: n,
|
|
@@ -6167,19 +6177,19 @@ const Yr = ({
|
|
|
6167
6177
|
id: "query-input",
|
|
6168
6178
|
name: "query-input",
|
|
6169
6179
|
ref: v,
|
|
6170
|
-
onFocus:
|
|
6171
|
-
onChange:
|
|
6180
|
+
onFocus: Q,
|
|
6181
|
+
onChange: ie,
|
|
6172
6182
|
onKeyDown: V,
|
|
6173
6183
|
onKeyUp: H,
|
|
6174
|
-
onClear:
|
|
6175
|
-
onClick:
|
|
6184
|
+
onClear: de,
|
|
6185
|
+
onClick: Z,
|
|
6176
6186
|
"aria-disabled": n,
|
|
6177
6187
|
"aria-expanded": f.isVisible,
|
|
6178
6188
|
"aria-haspopup": "listbox",
|
|
6179
6189
|
"aria-owns": "query-suggestions"
|
|
6180
6190
|
}
|
|
6181
6191
|
),
|
|
6182
|
-
f.isVisible && l.length > 0 && /* @__PURE__ */
|
|
6192
|
+
f.isVisible && l.length > 0 && /* @__PURE__ */ p(
|
|
6183
6193
|
"ul",
|
|
6184
6194
|
{
|
|
6185
6195
|
className: "p-query-input__list",
|
|
@@ -6187,35 +6197,35 @@ const Yr = ({
|
|
|
6187
6197
|
id: "query-suggestions",
|
|
6188
6198
|
role: "listbox",
|
|
6189
6199
|
"aria-label": "Search suggestions",
|
|
6190
|
-
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(
|
|
6191
6201
|
"li",
|
|
6192
6202
|
{
|
|
6193
|
-
className:
|
|
6194
|
-
highlight:
|
|
6203
|
+
className: q("p-query-input__item", {
|
|
6204
|
+
highlight: R === f.highlightedIndex
|
|
6195
6205
|
}),
|
|
6196
|
-
onClick: () =>
|
|
6197
|
-
onKeyDown: () =>
|
|
6198
|
-
onMouseEnter: () =>
|
|
6206
|
+
onClick: () => M(R),
|
|
6207
|
+
onKeyDown: () => M(R),
|
|
6208
|
+
onMouseEnter: () => fe(R),
|
|
6199
6209
|
role: "option",
|
|
6200
|
-
"aria-selected":
|
|
6210
|
+
"aria-selected": R === f.highlightedIndex,
|
|
6201
6211
|
tabIndex: -1,
|
|
6202
6212
|
children: [
|
|
6203
6213
|
/* @__PURE__ */ B("span", { className: "p-query-input__item-label", children: [
|
|
6204
|
-
/* @__PURE__ */
|
|
6214
|
+
/* @__PURE__ */ p(
|
|
6205
6215
|
"span",
|
|
6206
6216
|
{
|
|
6207
|
-
className:
|
|
6217
|
+
className: q({
|
|
6208
6218
|
"u-text--muted": D.type === "more"
|
|
6209
6219
|
}),
|
|
6210
6220
|
children: D.value
|
|
6211
6221
|
}
|
|
6212
6222
|
),
|
|
6213
|
-
D.type === "filter" && /* @__PURE__ */
|
|
6223
|
+
D.type === "filter" && /* @__PURE__ */ p("span", { className: "u-text--muted", children: ":()" })
|
|
6214
6224
|
] }),
|
|
6215
|
-
D.type !== "more" && /* @__PURE__ */
|
|
6225
|
+
D.type !== "more" && /* @__PURE__ */ p("span", { className: "u-text--muted u-align-text--right", children: D.type })
|
|
6216
6226
|
]
|
|
6217
6227
|
},
|
|
6218
|
-
`${D.value}-${
|
|
6228
|
+
`${D.value}-${R}`
|
|
6219
6229
|
))
|
|
6220
6230
|
}
|
|
6221
6231
|
)
|
|
@@ -6232,13 +6242,13 @@ const Yr = ({
|
|
|
6232
6242
|
if (l === 0)
|
|
6233
6243
|
return { value: 0, unit: i || "B" };
|
|
6234
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));
|
|
6235
|
-
let
|
|
6236
|
-
if (
|
|
6245
|
+
let u = f / Math.pow(s, g);
|
|
6246
|
+
if (u % 1 !== 0) {
|
|
6237
6247
|
const v = Math.pow(10, o);
|
|
6238
|
-
|
|
6248
|
+
u = Math[a](u * v) / v;
|
|
6239
6249
|
}
|
|
6240
6250
|
return {
|
|
6241
|
-
value: r ? -
|
|
6251
|
+
value: r ? -u : u,
|
|
6242
6252
|
unit: c[g]
|
|
6243
6253
|
};
|
|
6244
6254
|
};
|
|
@@ -6246,22 +6256,22 @@ export {
|
|
|
6246
6256
|
ot as ContentSection,
|
|
6247
6257
|
oi as DynamicTable,
|
|
6248
6258
|
Gr as ExternalLink,
|
|
6249
|
-
|
|
6259
|
+
Da as FileUpload,
|
|
6250
6260
|
Kr as FileUploadContainer,
|
|
6251
|
-
|
|
6261
|
+
Ut as FormSection,
|
|
6252
6262
|
Yr as GenericTable,
|
|
6253
6263
|
zn as InputGroup,
|
|
6254
6264
|
Ln as MainToolbar,
|
|
6255
|
-
|
|
6265
|
+
Ni as Meter,
|
|
6256
6266
|
Wr as MultiSelect,
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6267
|
+
Ma as MultiSelectDropdown,
|
|
6268
|
+
le as Navigation,
|
|
6269
|
+
uo as NavigationBar,
|
|
6260
6270
|
Br as NestedFormGroup,
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6271
|
+
Ro as Pagination,
|
|
6272
|
+
Eo as PaginationContainer,
|
|
6273
|
+
Bi as Placeholder,
|
|
6274
|
+
Gi as ProgressIndicator,
|
|
6265
6275
|
Xr as QueryInput,
|
|
6266
6276
|
Ur as Stepper,
|
|
6267
6277
|
ri as TableCaption,
|