@canonical/maas-react-components 1.24.0 → 1.25.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 +115 -96
- package/dist/@canonical/maas-react-components.umd.js +11 -11
- package/dist/src/lib/components/FadeInDown/FadeInDown.d.ts +1 -0
- package/dist/src/lib/components/FileUpload/FileUpload.d.ts +1 -0
- package/dist/src/lib/components/FileUpload/FileUpload.stories.d.ts +1 -1
- package/dist/src/lib/components/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/src/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -1
- package/dist/src/lib/components/NestedFormGroup/NestedFormGroup.d.ts +1 -0
- package/dist/src/lib/components/Pagination/Pagination.d.ts +1 -0
- package/dist/src/lib/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/src/lib/elements/Meter/Meter.d.ts +1 -0
- package/dist/src/lib/elements/Placeholder/Placeholder.d.ts +13 -0
- package/dist/src/lib/elements/Placeholder/Placeholder.stories.d.ts +6 -0
- package/dist/src/lib/elements/Placeholder/Placeholder.test.d.ts +1 -0
- package/dist/src/lib/elements/Placeholder/index.d.ts +1 -0
- package/dist/src/lib/elements/ProgressIndicator/ProgressIndicator.d.ts +1 -0
- package/dist/src/lib/elements/index.d.ts +1 -0
- package/dist/src/lib/sections/ContentSection/ContentSection.d.ts +1 -0
- package/dist/src/lib/sections/ContentSection/ContentSection.stories.d.ts +1 -1
- package/dist/src/lib/sections/FormSection/FormSection.d.ts +1 -0
- package/dist/src/lib/sections/MainToolbar/MainToolbar.d.ts +1 -0
- package/dist/src/lib/sections/MainToolbar/MainToolbar.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Banner/Banner.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/CollapseToggle/CollapseToggle.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Content/Content.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Controls/Controls.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Footer/Footer.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Header/Header.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Icon/Icon.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Item/Item.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Label/Label.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Link/Link.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/List/List.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Logo/Logo.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoIcon/LogoIcon.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoName/LogoName.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoTag/LogoTag.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/MenuButton/MenuButton.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Navigation.d.ts +1 -0
- package/dist/src/lib/utils/formatBytes/formatBytes.stories.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as K, jsx as l, Fragment as
|
|
1
|
+
import { jsxs as K, jsx as l, Fragment as Se } from "react/jsx-runtime";
|
|
2
2
|
import * as oe from "react";
|
|
3
|
-
import pt, { useRef as
|
|
3
|
+
import pt, { useRef as De, useState as ge, useEffect as _e, useCallback as Q, cloneElement as dt, createContext as mt, useId as ke, useContext as Mr, useMemo as se, useReducer as Lr, forwardRef as vt, useImperativeHandle as yt, Fragment as gt } from "react";
|
|
4
4
|
import { useListener as bt, Link as ht, Spinner as _t, Tooltip as Et, Button as fe, Icon as we, Row as wt, Col as St, Input as Ct, Label as Tt, CheckboxInput as xt, useClickOutside as Ot, useOnEscapePressed as Dt, SearchBox as At } from "@canonical/react-components";
|
|
5
5
|
function Br(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -42,7 +42,7 @@ var zr = { exports: {} };
|
|
|
42
42
|
})();
|
|
43
43
|
})(zr);
|
|
44
44
|
var Pt = zr.exports;
|
|
45
|
-
const
|
|
45
|
+
const L = /* @__PURE__ */ Br(Pt);
|
|
46
46
|
const ye = {
|
|
47
47
|
caution: "#F99B11",
|
|
48
48
|
light: "#F7F7F7",
|
|
@@ -77,7 +77,7 @@ const ye = {
|
|
|
77
77
|
size: o = "regular",
|
|
78
78
|
...s
|
|
79
79
|
}) => {
|
|
80
|
-
const i =
|
|
80
|
+
const i = De(null), f = t == null ? void 0 : t.reduce((C, S) => C + S.value, 0), c = n || f, v = t.map((C) => C.value / c * 100), [g, h] = ge(0);
|
|
81
81
|
_e(() => {
|
|
82
82
|
h(a === "segmented" ? yr(i, c) : 0);
|
|
83
83
|
}, [c, a]);
|
|
@@ -87,7 +87,7 @@ const ye = {
|
|
|
87
87
|
return bt(window, b, "resize", !0, a === "segmented"), /* @__PURE__ */ K(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
className:
|
|
90
|
+
className: L("p-meter", e, {
|
|
91
91
|
"p-meter--small": o === "small"
|
|
92
92
|
}),
|
|
93
93
|
"aria-label": s == null ? void 0 : s["aria-label"],
|
|
@@ -139,7 +139,7 @@ const ye = {
|
|
|
139
139
|
${tr} ${n}px
|
|
140
140
|
)`
|
|
141
141
|
});
|
|
142
|
-
return /* @__PURE__ */ K(
|
|
142
|
+
return /* @__PURE__ */ K(Se, { children: [
|
|
143
143
|
a() ? /* @__PURE__ */ l(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -171,7 +171,7 @@ const ye = {
|
|
|
171
171
|
}) => /* @__PURE__ */ l(
|
|
172
172
|
"div",
|
|
173
173
|
{
|
|
174
|
-
className:
|
|
174
|
+
className: L("p-meter__label", e),
|
|
175
175
|
"data-testid": Ee.label,
|
|
176
176
|
children: r
|
|
177
177
|
}
|
|
@@ -184,7 +184,25 @@ const kt = ({
|
|
|
184
184
|
e,
|
|
185
185
|
"% ",
|
|
186
186
|
/* @__PURE__ */ l(_t, { className: "progress-indicator__spinner" })
|
|
187
|
-
] })
|
|
187
|
+
] });
|
|
188
|
+
const Po = ({
|
|
189
|
+
text: e,
|
|
190
|
+
children: r,
|
|
191
|
+
className: t,
|
|
192
|
+
isPending: n = !1
|
|
193
|
+
}) => {
|
|
194
|
+
const a = Math.floor(Math.random() * 750);
|
|
195
|
+
return n ? /* @__PURE__ */ l(
|
|
196
|
+
"span",
|
|
197
|
+
{
|
|
198
|
+
"aria-label": "loading",
|
|
199
|
+
className: L("p-placeholder", t),
|
|
200
|
+
role: "progressbar",
|
|
201
|
+
style: { animationDelay: `${a}ms` },
|
|
202
|
+
children: /* @__PURE__ */ l("span", { "aria-hidden": "true", children: e || r || "Loading" })
|
|
203
|
+
}
|
|
204
|
+
) : /* @__PURE__ */ l(Se, { children: r });
|
|
205
|
+
}, $t = ({ children: e }) => /* @__PURE__ */ l(Se, { children: e }), Mt = ({
|
|
188
206
|
isCollapsed: e,
|
|
189
207
|
setIsCollapsed: r,
|
|
190
208
|
className: t
|
|
@@ -192,7 +210,7 @@ const kt = ({
|
|
|
192
210
|
Et,
|
|
193
211
|
{
|
|
194
212
|
className: "p-side-navigation__tooltip-wrapper",
|
|
195
|
-
message: /* @__PURE__ */ K(
|
|
213
|
+
message: /* @__PURE__ */ K(Se, { children: [
|
|
196
214
|
e ? "expand" : "collapse",
|
|
197
215
|
"( ",
|
|
198
216
|
/* @__PURE__ */ l("code", { children: "[" }),
|
|
@@ -205,7 +223,7 @@ const kt = ({
|
|
|
205
223
|
{
|
|
206
224
|
appearance: "base",
|
|
207
225
|
"aria-label": `${e ? "expand" : "collapse"} main navigation`,
|
|
208
|
-
className:
|
|
226
|
+
className: L(
|
|
209
227
|
"is-dense has-icon is-dark u-no-margin l-navigation-collapse-toggle",
|
|
210
228
|
t
|
|
211
229
|
),
|
|
@@ -216,24 +234,24 @@ const kt = ({
|
|
|
216
234
|
}
|
|
217
235
|
)
|
|
218
236
|
}
|
|
219
|
-
), Lt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__content", children: /* @__PURE__ */ l("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Bt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__controls u-no-margin--top", children: e }), zt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ l("div", { className: "p-panel is-dark", children: e }) }), Wt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__footer", children: e }), Yt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__header", children: e }), qt = ({ light: e = !0, name: r }) => /* @__PURE__ */ l(we, { className: "p-side-navigation__icon", light: e, name: r }), Ut = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ l("li", { className:
|
|
237
|
+
), Lt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__content", children: /* @__PURE__ */ l("nav", { className: "p-side-navigation--icons is-dark", children: e }) }), Bt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__controls u-no-margin--top", children: e }), zt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "l-navigation__drawer", children: /* @__PURE__ */ l("div", { className: "p-panel is-dark", children: e }) }), Wt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__footer", children: e }), Yt = ({ children: e }) => /* @__PURE__ */ l("div", { className: "p-panel__header", children: e }), qt = ({ light: e = !0, name: r }) => /* @__PURE__ */ l(we, { className: "p-side-navigation__icon", light: e, name: r }), Ut = ({ children: e, className: r, hasActiveChild: t }) => /* @__PURE__ */ l("li", { className: L("p-side-navigation__item", r, { "has-active-child": t }), children: e }), Kt = ({ children: e, id: r, variant: t = "base" }) => /* @__PURE__ */ l("span", { className: L("p-side-navigation__label", { "p-side-navigation__label--group": t === "group" }), id: r, children: e }), Ht = ({
|
|
220
238
|
as: e,
|
|
221
239
|
...r
|
|
222
240
|
}) => /* @__PURE__ */ l(
|
|
223
241
|
e || "a",
|
|
224
242
|
{
|
|
225
|
-
className:
|
|
243
|
+
className: L("p-side-navigation__link", r.className),
|
|
226
244
|
...r
|
|
227
245
|
}
|
|
228
|
-
), Gt = ({ children: e, className: r }) => /* @__PURE__ */ l("ul", { className:
|
|
246
|
+
), Gt = ({ children: e, className: r }) => /* @__PURE__ */ l("ul", { className: L("p-side-navigation__list", r), children: e }), Vt = ({
|
|
229
247
|
as: e,
|
|
230
248
|
children: r,
|
|
231
249
|
className: t,
|
|
232
250
|
...n
|
|
233
|
-
}) => /* @__PURE__ */ l(e || "a", { className:
|
|
251
|
+
}) => /* @__PURE__ */ l(e || "a", { className: L("p-panel__logo", t), ...n, children: /* @__PURE__ */ l("div", { className: "p-navigation__tagged-logo", children: r }) }), Jt = ({ children: e }) => dt(e, { className: "p-panel__logo-icon p-navigation__logo-icon" }), Zt = ({ children: e, variant: r = "base" }) => /* @__PURE__ */ l(
|
|
234
252
|
"div",
|
|
235
253
|
{
|
|
236
|
-
className:
|
|
254
|
+
className: L("p-panel__logo-name is-fading-when-collapsed", {
|
|
237
255
|
"p-panel__logo-name--small": r === "small"
|
|
238
256
|
}),
|
|
239
257
|
children: e
|
|
@@ -246,7 +264,7 @@ const kt = ({
|
|
|
246
264
|
fe,
|
|
247
265
|
{
|
|
248
266
|
appearance: "base",
|
|
249
|
-
className:
|
|
267
|
+
className: L(
|
|
250
268
|
"p-side-navigation__button--menu has-icon is-dark",
|
|
251
269
|
r
|
|
252
270
|
),
|
|
@@ -256,7 +274,7 @@ const kt = ({
|
|
|
256
274
|
children: e
|
|
257
275
|
}
|
|
258
276
|
), rn = ({ children: e }) => /* @__PURE__ */ l("span", { className: "p-side-navigation__text", children: e });
|
|
259
|
-
const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ l("header", { "aria-label": "main navigation", className:
|
|
277
|
+
const H = ({ children: e, className: r, isCollapsed: t }) => /* @__PURE__ */ l("header", { "aria-label": "main navigation", className: L("l-navigation is-maas", r, { "is-collapsed": t, "is-pinned": !t }), children: e }), tn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { "aria-label": "navigation", className: "l-navigation-bar", children: /* @__PURE__ */ l("div", { className: L("p-panel is-dark", r), children: e }) });
|
|
260
278
|
H.Header = Yt;
|
|
261
279
|
H.Banner = $t;
|
|
262
280
|
H.Drawer = zt;
|
|
@@ -323,7 +341,7 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
323
341
|
return /* @__PURE__ */ l(
|
|
324
342
|
"header",
|
|
325
343
|
{
|
|
326
|
-
className:
|
|
344
|
+
className: L("main-toolbar", {
|
|
327
345
|
"main-toolbar--stacked": n
|
|
328
346
|
}),
|
|
329
347
|
ref: r,
|
|
@@ -338,7 +356,7 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
338
356
|
}) => /* @__PURE__ */ l(
|
|
339
357
|
e || "h1",
|
|
340
358
|
{
|
|
341
|
-
className:
|
|
359
|
+
className: L("main-toolbar__title p-heading--4", t),
|
|
342
360
|
"data-testid": "main-toolbar-heading",
|
|
343
361
|
...n,
|
|
344
362
|
children: r
|
|
@@ -347,7 +365,7 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
347
365
|
const r = oe.useContext(qr), [t, n] = oe.useContext(Ur), a = oe.useRef(null);
|
|
348
366
|
return oe.useEffect(() => {
|
|
349
367
|
!a.current || !r || n(a.current.getBoundingClientRect().width > r.width);
|
|
350
|
-
}, [n, r, a]), /* @__PURE__ */ K(
|
|
368
|
+
}, [n, r, a]), /* @__PURE__ */ K(Se, { children: [
|
|
351
369
|
/* @__PURE__ */ l(
|
|
352
370
|
"div",
|
|
353
371
|
{
|
|
@@ -361,7 +379,7 @@ const qr = oe.createContext(null), Ur = oe.createContext([!1, () => {
|
|
|
361
379
|
/* @__PURE__ */ l(
|
|
362
380
|
"div",
|
|
363
381
|
{
|
|
364
|
-
className:
|
|
382
|
+
className: L("main-toolbar__controls", {
|
|
365
383
|
"main-toolbar__controls--stacked": t
|
|
366
384
|
}),
|
|
367
385
|
children: e
|
|
@@ -378,16 +396,16 @@ const Be = ({
|
|
|
378
396
|
variant: n = "wide",
|
|
379
397
|
...a
|
|
380
398
|
}) => {
|
|
381
|
-
const o = t || "section", s =
|
|
399
|
+
const o = t || "section", s = L("content-section", r);
|
|
382
400
|
return /* @__PURE__ */ l(o, { ...a, className: s, children: /* @__PURE__ */ l(wt, { children: /* @__PURE__ */ l(St, { size: n === "narrow" ? 6 : 12, children: e }) }) });
|
|
383
401
|
}, pn = ({ children: e, className: r, as: t, ...n }) => /* @__PURE__ */ l(
|
|
384
402
|
t || "h1",
|
|
385
403
|
{
|
|
386
404
|
...n,
|
|
387
|
-
className:
|
|
405
|
+
className: L("content-section__title p-heading--4", r),
|
|
388
406
|
children: e
|
|
389
407
|
}
|
|
390
|
-
), dn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { className:
|
|
408
|
+
), dn = ({ children: e, className: r }) => /* @__PURE__ */ l("header", { className: L("content-section__header", r), children: e }), mn = ({ children: e, className: r }) => /* @__PURE__ */ l("div", { className: L("content-section__body", r), children: e }), vn = ({ children: e, className: r }) => /* @__PURE__ */ l("footer", { className: L("content-section__footer", r), children: e });
|
|
391
409
|
Be.Title = pn;
|
|
392
410
|
Be.Header = dn;
|
|
393
411
|
Be.Content = mn;
|
|
@@ -399,12 +417,12 @@ const Hr = ({
|
|
|
399
417
|
}) => /* @__PURE__ */ l(
|
|
400
418
|
"div",
|
|
401
419
|
{
|
|
402
|
-
className:
|
|
420
|
+
className: L("fade-in--down", r),
|
|
403
421
|
"aria-hidden": t ? "false" : "true",
|
|
404
422
|
style: { visibility: t ? "visible" : "hidden" },
|
|
405
423
|
children: e
|
|
406
424
|
}
|
|
407
|
-
),
|
|
425
|
+
), Ro = ({
|
|
408
426
|
children: e,
|
|
409
427
|
...r
|
|
410
428
|
}) => /* @__PURE__ */ l(Hr, { isVisible: !r["aria-hidden"], children: /* @__PURE__ */ l("div", { className: "p-form__nested-group", ...r, children: e }) });
|
|
@@ -423,7 +441,7 @@ const yn = ({
|
|
|
423
441
|
"nav",
|
|
424
442
|
{
|
|
425
443
|
"aria-label": (c == null ? void 0 : c["aria-label"]) || "pagination",
|
|
426
|
-
className:
|
|
444
|
+
className: L("p-pagination", e),
|
|
427
445
|
children: /* @__PURE__ */ K("span", { className: "p-pagination--items", children: [
|
|
428
446
|
/* @__PURE__ */ l(
|
|
429
447
|
fe,
|
|
@@ -471,7 +489,7 @@ const yn = ({
|
|
|
471
489
|
)
|
|
472
490
|
] })
|
|
473
491
|
}
|
|
474
|
-
),
|
|
492
|
+
), Fo = ({
|
|
475
493
|
currentPage: e,
|
|
476
494
|
disabled: r,
|
|
477
495
|
paginate: t,
|
|
@@ -501,13 +519,13 @@ const yn = ({
|
|
|
501
519
|
}
|
|
502
520
|
);
|
|
503
521
|
};
|
|
504
|
-
const
|
|
522
|
+
const Io = ({ activeStep: e, items: r }) => /* @__PURE__ */ l("ol", { className: "stepper", children: r.map((t, n) => {
|
|
505
523
|
const a = n === e, o = n < e;
|
|
506
524
|
return /* @__PURE__ */ l("li", { "aria-label": t, className: "stepper__item", children: /* @__PURE__ */ l(
|
|
507
525
|
"p",
|
|
508
526
|
{
|
|
509
527
|
"aria-label": o ? `${t} (completed)` : t,
|
|
510
|
-
className:
|
|
528
|
+
className: L("stepper__title", {
|
|
511
529
|
"stepper__title--is-active": a,
|
|
512
530
|
"stepper__title--is-complete": o
|
|
513
531
|
}),
|
|
@@ -529,7 +547,7 @@ function gn() {
|
|
|
529
547
|
if (gr)
|
|
530
548
|
return I;
|
|
531
549
|
gr = 1;
|
|
532
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121,
|
|
550
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
533
551
|
function A(p) {
|
|
534
552
|
if (typeof p == "object" && p !== null) {
|
|
535
553
|
var X = p.$$typeof;
|
|
@@ -588,7 +606,7 @@ function gn() {
|
|
|
588
606
|
}, I.isSuspense = function(p) {
|
|
589
607
|
return A(p) === g;
|
|
590
608
|
}, I.isValidElementType = function(p) {
|
|
591
|
-
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === b || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof ===
|
|
609
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === c || p === o || p === a || p === g || p === h || typeof p == "object" && p !== null && (p.$$typeof === C || p.$$typeof === b || p.$$typeof === s || p.$$typeof === i || p.$$typeof === v || p.$$typeof === B || p.$$typeof === N || p.$$typeof === U || p.$$typeof === S);
|
|
592
610
|
}, I.typeOf = A, I;
|
|
593
611
|
}
|
|
594
612
|
var j = {};
|
|
@@ -603,10 +621,10 @@ var j = {};
|
|
|
603
621
|
var br;
|
|
604
622
|
function bn() {
|
|
605
623
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
606
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121,
|
|
624
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, C = e ? Symbol.for("react.lazy") : 60116, S = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, N = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
607
625
|
function A(d) {
|
|
608
626
|
return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
609
|
-
d === n || d === c || d === o || d === a || d === g || d === h || typeof d == "object" && d !== null && (d.$$typeof === C || d.$$typeof === b || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof ===
|
|
627
|
+
d === n || d === c || d === o || d === a || d === g || d === h || typeof d == "object" && d !== null && (d.$$typeof === C || d.$$typeof === b || d.$$typeof === s || d.$$typeof === i || d.$$typeof === v || d.$$typeof === B || d.$$typeof === N || d.$$typeof === U || d.$$typeof === S);
|
|
610
628
|
}
|
|
611
629
|
function k(d) {
|
|
612
630
|
if (typeof d == "object" && d !== null) {
|
|
@@ -623,14 +641,14 @@ function bn() {
|
|
|
623
641
|
case g:
|
|
624
642
|
return me;
|
|
625
643
|
default:
|
|
626
|
-
var
|
|
627
|
-
switch (
|
|
644
|
+
var xe = me && me.$$typeof;
|
|
645
|
+
switch (xe) {
|
|
628
646
|
case i:
|
|
629
647
|
case v:
|
|
630
648
|
case C:
|
|
631
649
|
case b:
|
|
632
650
|
case s:
|
|
633
|
-
return
|
|
651
|
+
return xe;
|
|
634
652
|
default:
|
|
635
653
|
return re;
|
|
636
654
|
}
|
|
@@ -854,7 +872,7 @@ function En() {
|
|
|
854
872
|
this.message = u, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
855
873
|
}
|
|
856
874
|
S.prototype = Error.prototype;
|
|
857
|
-
function
|
|
875
|
+
function B(u) {
|
|
858
876
|
if (process.env.NODE_ENV !== "production")
|
|
859
877
|
var y = {}, T = 0;
|
|
860
878
|
function x(P, w, O, R, F, D, q) {
|
|
@@ -889,10 +907,10 @@ function En() {
|
|
|
889
907
|
}
|
|
890
908
|
return null;
|
|
891
909
|
}
|
|
892
|
-
return
|
|
910
|
+
return B(y);
|
|
893
911
|
}
|
|
894
912
|
function U() {
|
|
895
|
-
return
|
|
913
|
+
return B(s);
|
|
896
914
|
}
|
|
897
915
|
function A(u) {
|
|
898
916
|
function y(T, x, E, P, w) {
|
|
@@ -910,7 +928,7 @@ function En() {
|
|
|
910
928
|
}
|
|
911
929
|
return null;
|
|
912
930
|
}
|
|
913
|
-
return
|
|
931
|
+
return B(y);
|
|
914
932
|
}
|
|
915
933
|
function k() {
|
|
916
934
|
function u(y, T, x, E, P) {
|
|
@@ -921,7 +939,7 @@ function En() {
|
|
|
921
939
|
}
|
|
922
940
|
return null;
|
|
923
941
|
}
|
|
924
|
-
return
|
|
942
|
+
return B(u);
|
|
925
943
|
}
|
|
926
944
|
function p() {
|
|
927
945
|
function u(y, T, x, E, P) {
|
|
@@ -932,7 +950,7 @@ function En() {
|
|
|
932
950
|
}
|
|
933
951
|
return null;
|
|
934
952
|
}
|
|
935
|
-
return
|
|
953
|
+
return B(u);
|
|
936
954
|
}
|
|
937
955
|
function X(u) {
|
|
938
956
|
function y(T, x, E, P, w) {
|
|
@@ -942,7 +960,7 @@ function En() {
|
|
|
942
960
|
}
|
|
943
961
|
return null;
|
|
944
962
|
}
|
|
945
|
-
return
|
|
963
|
+
return B(y);
|
|
946
964
|
}
|
|
947
965
|
function $(u) {
|
|
948
966
|
if (!Array.isArray(u))
|
|
@@ -959,7 +977,7 @@ function En() {
|
|
|
959
977
|
});
|
|
960
978
|
return new S("Invalid " + P + " `" + w + "` of value `" + String(O) + "` " + ("supplied to `" + E + "`, expected one of " + F + "."));
|
|
961
979
|
}
|
|
962
|
-
return
|
|
980
|
+
return B(y);
|
|
963
981
|
}
|
|
964
982
|
function J(u) {
|
|
965
983
|
function y(T, x, E, P, w) {
|
|
@@ -976,7 +994,7 @@ function En() {
|
|
|
976
994
|
}
|
|
977
995
|
return null;
|
|
978
996
|
}
|
|
979
|
-
return
|
|
997
|
+
return B(y);
|
|
980
998
|
}
|
|
981
999
|
function ee(u) {
|
|
982
1000
|
if (!Array.isArray(u))
|
|
@@ -998,13 +1016,13 @@ function En() {
|
|
|
998
1016
|
var re = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
999
1017
|
return new S("Invalid " + O + " `" + R + "` supplied to " + ("`" + w + "`" + re + "."));
|
|
1000
1018
|
}
|
|
1001
|
-
return
|
|
1019
|
+
return B(x);
|
|
1002
1020
|
}
|
|
1003
1021
|
function ce() {
|
|
1004
1022
|
function u(y, T, x, E, P) {
|
|
1005
1023
|
return W(y[T]) ? null : new S("Invalid " + E + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
1006
1024
|
}
|
|
1007
|
-
return
|
|
1025
|
+
return B(u);
|
|
1008
1026
|
}
|
|
1009
1027
|
function pe(u, y, T, x, E) {
|
|
1010
1028
|
return new S(
|
|
@@ -1026,7 +1044,7 @@ function En() {
|
|
|
1026
1044
|
}
|
|
1027
1045
|
return null;
|
|
1028
1046
|
}
|
|
1029
|
-
return
|
|
1047
|
+
return B(y);
|
|
1030
1048
|
}
|
|
1031
1049
|
function le(u) {
|
|
1032
1050
|
function y(T, x, E, P, w) {
|
|
@@ -1049,7 +1067,7 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
|
1049
1067
|
}
|
|
1050
1068
|
return null;
|
|
1051
1069
|
}
|
|
1052
|
-
return
|
|
1070
|
+
return B(y);
|
|
1053
1071
|
}
|
|
1054
1072
|
function W(u) {
|
|
1055
1073
|
switch (typeof u) {
|
|
@@ -1179,7 +1197,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
1179
1197
|
nr.exports = wn()();
|
|
1180
1198
|
var Tn = nr.exports;
|
|
1181
1199
|
const M = /* @__PURE__ */ Br(Tn);
|
|
1182
|
-
function
|
|
1200
|
+
function Ce(e, r, t, n) {
|
|
1183
1201
|
function a(o) {
|
|
1184
1202
|
return o instanceof t ? o : new t(function(s) {
|
|
1185
1203
|
s(o);
|
|
@@ -1206,7 +1224,7 @@ function Se(e, r, t, n) {
|
|
|
1206
1224
|
c((n = n.apply(e, r || [])).next());
|
|
1207
1225
|
});
|
|
1208
1226
|
}
|
|
1209
|
-
function
|
|
1227
|
+
function Te(e, r) {
|
|
1210
1228
|
var t = { label: 0, sent: function() {
|
|
1211
1229
|
if (o[0] & 1)
|
|
1212
1230
|
throw o[1];
|
|
@@ -1414,8 +1432,8 @@ var Dn = [
|
|
|
1414
1432
|
// Windows
|
|
1415
1433
|
];
|
|
1416
1434
|
function An(e) {
|
|
1417
|
-
return
|
|
1418
|
-
return
|
|
1435
|
+
return Ce(this, void 0, void 0, function() {
|
|
1436
|
+
return Te(this, function(r) {
|
|
1419
1437
|
return $e(e) && Pn(e.dataTransfer) ? [2, jn(e.dataTransfer, e.type)] : Rn(e) ? [2, Fn(e)] : Array.isArray(e) && e.every(function(t) {
|
|
1420
1438
|
return "getFile" in t && typeof t.getFile == "function";
|
|
1421
1439
|
}) ? [2, In(e)] : [2, []];
|
|
@@ -1437,9 +1455,9 @@ function Fn(e) {
|
|
|
1437
1455
|
});
|
|
1438
1456
|
}
|
|
1439
1457
|
function In(e) {
|
|
1440
|
-
return
|
|
1458
|
+
return Ce(this, void 0, void 0, function() {
|
|
1441
1459
|
var r;
|
|
1442
|
-
return
|
|
1460
|
+
return Te(this, function(t) {
|
|
1443
1461
|
switch (t.label) {
|
|
1444
1462
|
case 0:
|
|
1445
1463
|
return [4, Promise.all(e.map(function(n) {
|
|
@@ -1454,9 +1472,9 @@ function In(e) {
|
|
|
1454
1472
|
});
|
|
1455
1473
|
}
|
|
1456
1474
|
function jn(e, r) {
|
|
1457
|
-
return
|
|
1475
|
+
return Ce(this, void 0, void 0, function() {
|
|
1458
1476
|
var t, n;
|
|
1459
|
-
return
|
|
1477
|
+
return Te(this, function(a) {
|
|
1460
1478
|
switch (a.label) {
|
|
1461
1479
|
case 0:
|
|
1462
1480
|
return e.items ? (t = or(e.items).filter(function(o) {
|
|
@@ -1505,8 +1523,8 @@ function Ar(e) {
|
|
|
1505
1523
|
return Promise.resolve(t);
|
|
1506
1524
|
}
|
|
1507
1525
|
function kn(e) {
|
|
1508
|
-
return
|
|
1509
|
-
return
|
|
1526
|
+
return Ce(this, void 0, void 0, function() {
|
|
1527
|
+
return Te(this, function(r) {
|
|
1510
1528
|
return [2, e.isDirectory ? Zr(e) : $n(e)];
|
|
1511
1529
|
});
|
|
1512
1530
|
});
|
|
@@ -1518,9 +1536,9 @@ function Zr(e) {
|
|
|
1518
1536
|
function o() {
|
|
1519
1537
|
var s = this;
|
|
1520
1538
|
r.readEntries(function(i) {
|
|
1521
|
-
return
|
|
1539
|
+
return Ce(s, void 0, void 0, function() {
|
|
1522
1540
|
var f, c, v;
|
|
1523
|
-
return
|
|
1541
|
+
return Te(this, function(g) {
|
|
1524
1542
|
switch (g.label) {
|
|
1525
1543
|
case 0:
|
|
1526
1544
|
if (i.length)
|
|
@@ -1552,8 +1570,8 @@ function Zr(e) {
|
|
|
1552
1570
|
});
|
|
1553
1571
|
}
|
|
1554
1572
|
function $n(e) {
|
|
1555
|
-
return
|
|
1556
|
-
return
|
|
1573
|
+
return Ce(this, void 0, void 0, function() {
|
|
1574
|
+
return Te(this, function(r) {
|
|
1557
1575
|
return [2, new Promise(function(t, n) {
|
|
1558
1576
|
e.file(function(a) {
|
|
1559
1577
|
var o = Pe(a, e.fullPath);
|
|
@@ -1614,7 +1632,7 @@ function Fr(e) {
|
|
|
1614
1632
|
function Xr(e, r, t) {
|
|
1615
1633
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
1616
1634
|
}
|
|
1617
|
-
function
|
|
1635
|
+
function Ae(e, r) {
|
|
1618
1636
|
return qn(e) || Yn(e, r) || Qr(e, r) || Wn();
|
|
1619
1637
|
}
|
|
1620
1638
|
function Wn() {
|
|
@@ -1708,7 +1726,7 @@ function ve(e) {
|
|
|
1708
1726
|
function Zn(e) {
|
|
1709
1727
|
var r = e.files, t = e.accept, n = e.minSize, a = e.maxSize, o = e.multiple, s = e.maxFiles, i = e.validator;
|
|
1710
1728
|
return !o && r.length > 1 || o && s >= 1 && r.length > s ? !1 : r.every(function(f) {
|
|
1711
|
-
var c = et(f, t), v =
|
|
1729
|
+
var c = et(f, t), v = Ae(c, 1), g = v[0], h = rt(f, n, a), b = Ae(h, 1), C = b[0], S = i ? i(f) : null;
|
|
1712
1730
|
return g && C && !S;
|
|
1713
1731
|
});
|
|
1714
1732
|
}
|
|
@@ -1750,10 +1768,10 @@ function ro() {
|
|
|
1750
1768
|
function to(e) {
|
|
1751
1769
|
if (ve(e)) {
|
|
1752
1770
|
var r = Object.entries(e).filter(function(t) {
|
|
1753
|
-
var n =
|
|
1771
|
+
var n = Ae(t, 2), a = n[0], o = n[1], s = !0;
|
|
1754
1772
|
return tt(a) || (console.warn('Skipped "'.concat(a, '" 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.')), s = !1), (!Array.isArray(o) || !o.every(nt)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), s = !1), s;
|
|
1755
1773
|
}).reduce(function(t, n) {
|
|
1756
|
-
var a =
|
|
1774
|
+
var a = Ae(n, 2), o = a[0], s = a[1];
|
|
1757
1775
|
return Fr(Fr({}, t), {}, Xr({}, o, s));
|
|
1758
1776
|
}, {});
|
|
1759
1777
|
return [{
|
|
@@ -1767,7 +1785,7 @@ function to(e) {
|
|
|
1767
1785
|
function no(e) {
|
|
1768
1786
|
if (ve(e))
|
|
1769
1787
|
return Object.entries(e).reduce(function(r, t) {
|
|
1770
|
-
var n =
|
|
1788
|
+
var n = Ae(t, 2), a = n[0], o = n[1];
|
|
1771
1789
|
return [].concat(Pr(r), [a], Pr(o));
|
|
1772
1790
|
}, []).filter(function(r) {
|
|
1773
1791
|
return tt(r) || nt(r);
|
|
@@ -2098,15 +2116,15 @@ var cr = {
|
|
|
2098
2116
|
fileRejections: []
|
|
2099
2117
|
};
|
|
2100
2118
|
function it() {
|
|
2101
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles, c = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, C = r.onDropRejected, S = r.onFileDialogCancel,
|
|
2119
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = z(z({}, at), e), t = r.accept, n = r.disabled, a = r.getFilesFromEvent, o = r.maxSize, s = r.minSize, i = r.multiple, f = r.maxFiles, c = r.onDragEnter, v = r.onDragLeave, g = r.onDragOver, h = r.onDrop, b = r.onDropAccepted, C = r.onDropRejected, S = r.onFileDialogCancel, B = r.onFileDialogOpen, N = r.useFsAccessApi, U = r.autoFocus, A = r.preventDropOnDocument, k = r.noClick, p = r.noKeyboard, X = r.noDrag, $ = r.noDragEventsBubbling, J = r.onError, ee = r.validator, ce = se(function() {
|
|
2102
2120
|
return no(t);
|
|
2103
2121
|
}, [t]), pe = se(function() {
|
|
2104
2122
|
return to(t);
|
|
2105
2123
|
}, [t]), de = se(function() {
|
|
2106
|
-
return typeof
|
|
2107
|
-
}, [
|
|
2124
|
+
return typeof B == "function" ? B : $r;
|
|
2125
|
+
}, [B]), le = se(function() {
|
|
2108
2126
|
return typeof S == "function" ? S : $r;
|
|
2109
|
-
}, [S]), W =
|
|
2127
|
+
}, [S]), W = De(null), Z = De(null), ne = Lr(ho, cr), ae = rr(ne, 2), ue = ae[0], G = ae[1], u = ue.isFocused, y = ue.isFileDialogActive, T = De(typeof window < "u" && window.isSecureContext && N && ro()), x = function() {
|
|
2110
2128
|
!T.current && y && setTimeout(function() {
|
|
2111
2129
|
if (Z.current) {
|
|
2112
2130
|
var _ = Z.current.files;
|
|
@@ -2121,7 +2139,7 @@ function it() {
|
|
|
2121
2139
|
window.removeEventListener("focus", x, !1);
|
|
2122
2140
|
};
|
|
2123
2141
|
}, [Z, y, le, T]);
|
|
2124
|
-
var E =
|
|
2142
|
+
var E = De([]), P = function(_) {
|
|
2125
2143
|
W.current && W.current.contains(_.target) || (_.preventDefault(), E.current = []);
|
|
2126
2144
|
};
|
|
2127
2145
|
_e(function() {
|
|
@@ -2179,7 +2197,7 @@ function it() {
|
|
|
2179
2197
|
}, [W, v, $]), D = Q(function(m, _) {
|
|
2180
2198
|
var Y = [], V = [];
|
|
2181
2199
|
m.forEach(function(te) {
|
|
2182
|
-
var
|
|
2200
|
+
var Oe = et(te, ce), he = rr(Oe, 2), We = he[0], Ye = he[1], qe = rt(te, s, o), Ie = rr(qe, 2), Ue = Ie[0], Ke = Ie[1], He = ee ? ee(te) : null;
|
|
2183
2201
|
if (We && Ue && !He)
|
|
2184
2202
|
Y.push(te);
|
|
2185
2203
|
else {
|
|
@@ -2240,7 +2258,7 @@ function it() {
|
|
|
2240
2258
|
G({
|
|
2241
2259
|
type: "focus"
|
|
2242
2260
|
});
|
|
2243
|
-
}, []),
|
|
2261
|
+
}, []), xe = Q(function() {
|
|
2244
2262
|
G({
|
|
2245
2263
|
type: "blur"
|
|
2246
2264
|
});
|
|
@@ -2256,11 +2274,11 @@ function it() {
|
|
|
2256
2274
|
$ && _.stopPropagation();
|
|
2257
2275
|
}, ct = se(function() {
|
|
2258
2276
|
return function() {
|
|
2259
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown,
|
|
2277
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.role, te = m.onKeyDown, Oe = m.onFocus, he = m.onBlur, We = m.onClick, Ye = m.onDragEnter, qe = m.onDragOver, Ie = m.onDragLeave, Ue = m.onDrop, Ke = Le(m, co);
|
|
2260
2278
|
return z(z(sr({
|
|
2261
2279
|
onKeyDown: ze(ie(te, re)),
|
|
2262
|
-
onFocus: ze(ie(
|
|
2263
|
-
onBlur: ze(ie(he,
|
|
2280
|
+
onFocus: ze(ie(Oe, me)),
|
|
2281
|
+
onBlur: ze(ie(he, xe)),
|
|
2264
2282
|
onClick: be(ie(We, dr)),
|
|
2265
2283
|
onDragEnter: Re(ie(Ye, O)),
|
|
2266
2284
|
onDragOver: Re(ie(qe, R)),
|
|
@@ -2271,11 +2289,11 @@ function it() {
|
|
|
2271
2289
|
tabIndex: 0
|
|
2272
2290
|
} : {}), Ke);
|
|
2273
2291
|
};
|
|
2274
|
-
}, [W, re, me,
|
|
2292
|
+
}, [W, re, me, xe, dr, O, R, F, q, p, X, n]), lt = Q(function(m) {
|
|
2275
2293
|
m.stopPropagation();
|
|
2276
2294
|
}, []), ut = se(function() {
|
|
2277
2295
|
return function() {
|
|
2278
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick,
|
|
2296
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ = m.refKey, Y = _ === void 0 ? "ref" : _, V = m.onChange, te = m.onClick, Oe = Le(m, lo), he = sr({
|
|
2279
2297
|
accept: ce,
|
|
2280
2298
|
multiple: i,
|
|
2281
2299
|
type: "file",
|
|
@@ -2286,7 +2304,7 @@ function it() {
|
|
|
2286
2304
|
onClick: be(ie(te, lt)),
|
|
2287
2305
|
tabIndex: -1
|
|
2288
2306
|
}, Y, Z);
|
|
2289
|
-
return z(z({}, he),
|
|
2307
|
+
return z(z({}, he), Oe);
|
|
2290
2308
|
};
|
|
2291
2309
|
}, [Z, t, i, q, n]);
|
|
2292
2310
|
return z(z({}, ue), {}, {
|
|
@@ -2400,7 +2418,7 @@ const _o = () => {
|
|
|
2400
2418
|
return /* @__PURE__ */ K(
|
|
2401
2419
|
"div",
|
|
2402
2420
|
{
|
|
2403
|
-
className:
|
|
2421
|
+
className: L("p-form__group p-form-validation", {
|
|
2404
2422
|
"is-error": !!r
|
|
2405
2423
|
}),
|
|
2406
2424
|
children: [
|
|
@@ -2463,7 +2481,7 @@ const _o = () => {
|
|
|
2463
2481
|
]
|
|
2464
2482
|
}
|
|
2465
2483
|
);
|
|
2466
|
-
},
|
|
2484
|
+
}, jo = ({
|
|
2467
2485
|
accept: e,
|
|
2468
2486
|
error: r,
|
|
2469
2487
|
help: t,
|
|
@@ -2535,7 +2553,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2535
2553
|
const C = se(() => e.some((N) => N.group), [e]), S = se(
|
|
2536
2554
|
() => C ? f(e) : [{ group: "Ungrouped", items: e }],
|
|
2537
2555
|
[e, f]
|
|
2538
|
-
),
|
|
2556
|
+
), B = (N) => {
|
|
2539
2557
|
const { checked: U, value: A } = N.target, k = e.find((p) => `${p.value}` === A);
|
|
2540
2558
|
if (k) {
|
|
2541
2559
|
const p = U ? [...r, k] : r.filter((X) => `${X.value}` !== A) ?? [];
|
|
@@ -2553,14 +2571,14 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2553
2571
|
label: A.label,
|
|
2554
2572
|
checked: v.has(A.value),
|
|
2555
2573
|
value: A.value,
|
|
2556
|
-
onChange:
|
|
2574
|
+
onChange: B
|
|
2557
2575
|
},
|
|
2558
2576
|
A.value
|
|
2559
2577
|
) }, A.value)) })
|
|
2560
2578
|
] }, N)),
|
|
2561
2579
|
s ? /* @__PURE__ */ l("div", { className: "multi-select__footer", children: s }) : null
|
|
2562
2580
|
] }) });
|
|
2563
|
-
},
|
|
2581
|
+
}, No = ({
|
|
2564
2582
|
disabled: e,
|
|
2565
2583
|
selectedItems: r = [],
|
|
2566
2584
|
label: t,
|
|
@@ -2583,7 +2601,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2583
2601
|
_e(() => {
|
|
2584
2602
|
h || S("");
|
|
2585
2603
|
}, [h]);
|
|
2586
|
-
const [
|
|
2604
|
+
const [B, N] = ge([]), U = r || B, A = ($) => {
|
|
2587
2605
|
const J = Array.from(new Set($));
|
|
2588
2606
|
N(J), n && n(J);
|
|
2589
2607
|
}, k = ke(), p = ke(), X = U.filter(
|
|
@@ -2638,7 +2656,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2638
2656
|
disabledItems: i,
|
|
2639
2657
|
header: f,
|
|
2640
2658
|
updateItems: A,
|
|
2641
|
-
footer: c || /* @__PURE__ */ K(
|
|
2659
|
+
footer: c || /* @__PURE__ */ K(Se, { children: [
|
|
2642
2660
|
/* @__PURE__ */ l(
|
|
2643
2661
|
fe,
|
|
2644
2662
|
{
|
|
@@ -2675,7 +2693,7 @@ const st = (e, r) => e.label.localeCompare(r.label, "en", { numeric: !0 }), wo =
|
|
|
2675
2693
|
}
|
|
2676
2694
|
)
|
|
2677
2695
|
] }) });
|
|
2678
|
-
},
|
|
2696
|
+
}, ko = ({ value: e, unit: r }, {
|
|
2679
2697
|
binary: t = !1,
|
|
2680
2698
|
convertTo: n,
|
|
2681
2699
|
decimals: a = 2,
|
|
@@ -2699,22 +2717,23 @@ export {
|
|
|
2699
2717
|
Be as ContentSection,
|
|
2700
2718
|
Ao as ExternalLink,
|
|
2701
2719
|
Eo as FileUpload,
|
|
2702
|
-
|
|
2720
|
+
jo as FileUploadContainer,
|
|
2703
2721
|
ur as FormSection,
|
|
2704
2722
|
Yr as InputGroup,
|
|
2705
2723
|
Kr as MainToolbar,
|
|
2706
2724
|
Ft as Meter,
|
|
2707
|
-
|
|
2725
|
+
No as MultiSelect,
|
|
2708
2726
|
Co as MultiSelectDropdown,
|
|
2709
2727
|
H as Navigation,
|
|
2710
2728
|
tn as NavigationBar,
|
|
2711
|
-
|
|
2729
|
+
Ro as NestedFormGroup,
|
|
2712
2730
|
yn as Pagination,
|
|
2713
|
-
|
|
2731
|
+
Fo as PaginationContainer,
|
|
2732
|
+
Po as Placeholder,
|
|
2714
2733
|
kt as ProgressIndicator,
|
|
2715
|
-
|
|
2734
|
+
Io as Stepper,
|
|
2716
2735
|
Do as defaultFilledColors,
|
|
2717
|
-
|
|
2736
|
+
ko as formatBytes,
|
|
2718
2737
|
ye as meterColor,
|
|
2719
2738
|
Ee as testIds
|
|
2720
2739
|
};
|