@abyss-project/commons-front-core 13.0.0 → 13.1.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/catalog/pages/ToolIcon.tsx +48 -48
- package/dist/{AbyssCookieConsentProvider-D5jeL5KA.js → AbyssCookieConsentProvider-DJTKl58k.js} +142 -138
- package/dist/{CookieConsentSettings.component-C69wpa-v.js → CookieConsentSettings.component-ZF6umBSH.js} +1 -1
- package/dist/{Tabs-CwVEV4SO.js → Tabs-CYy30PTc.js} +308 -308
- package/dist/assets/logo/index.d.ts +1 -0
- package/dist/components/layers/ProductTour/product-tour-geometry.d.ts +6 -3
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-DkGGYH91.js → design-theme-jAV6pBoh.js} +1476 -1471
- package/dist/{editors-DkiY6BfJ.js → editors-Cs01hAfK.js} +26 -26
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +12 -0
- package/dist/hooks/use-service-tour.hook.d.ts +6 -5
- package/dist/{index-DVsMyd7m.js → index-B4BTrYji.js} +2 -2
- package/dist/{index-B52OKB4p.js → index-BB97MmlB.js} +3 -3
- package/dist/{index-BoCgQirm.js → index-BG_7wul8.js} +2 -2
- package/dist/{index-CgIjHnfl.js → index-BJ-WRVfA.js} +2 -2
- package/dist/{index-DW0z3W_H.js → index-BLWFMNK1.js} +1 -1
- package/dist/{index-PHSTFO70.js → index-BOB-FVdo.js} +3 -3
- package/dist/{index-CXGI5k75.js → index-BQ-RHsS9.js} +4 -4
- package/dist/{index-Cl1BSx17.js → index-BSpED9Jn.js} +2 -2
- package/dist/{index-CtMx42h6.js → index-BYymsRFa.js} +2 -2
- package/dist/{index-DMiPquK5.js → index-Bw9dFzxv.js} +2 -2
- package/dist/{index-orVFXDIv.js → index-BxEgyF6L.js} +3 -3
- package/dist/{index-Bh7buNbj.js → index-C64fovtn.js} +2 -2
- package/dist/{index-Cg6Mv7QT.js → index-C918Bygt.js} +2 -2
- package/dist/{index-DSjH42Mo.js → index-CHGLrOHZ.js} +3 -3
- package/dist/{index-CwdirjZn.js → index-CQIcz4k-.js} +2 -2
- package/dist/{index-CvRSR1eE.js → index-CQhfq-e2.js} +2 -2
- package/dist/{index-DmCRAN1O.js → index-CWzTvLyx.js} +2 -2
- package/dist/{index-D1YeCKtd.js → index-Ce0hJGR7.js} +4 -4
- package/dist/{index-2l12Iu8k.js → index-CgdrkQAf.js} +2 -2
- package/dist/{index-BacMl_If.js → index-DfzHovEF.js} +2 -2
- package/dist/{index-KH3KmoUw.js → index-YnJVcsc6.js} +4 -4
- package/dist/index.js +2923 -2881
- package/dist/legacy.js +622 -617
- package/dist/theme/tokens/domain.d.ts +1 -0
- package/dist/translations/en.d.ts +2 -0
- package/dist/translations/fr.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import { jsx as i, jsxs as v, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { useId as E, useRef as j, useState as I, cloneElement as
|
|
3
|
-
import { alpha as
|
|
2
|
+
import { useId as E, useRef as j, useState as I, cloneElement as St, useMemo as ye, useCallback as Q, useEffect as G, forwardRef as It, createContext as Be, useContext as Ne, useLayoutEffect as _e } from "react";
|
|
3
|
+
import { alpha as Tt, styled as a, useTheme as Ve, getContrastRatio as $e } from "@mui/material/styles";
|
|
4
4
|
import ce from "@mui/material/FormControl";
|
|
5
5
|
import de from "@mui/material/FormHelperText";
|
|
6
6
|
import je from "@mui/material/InputLabel";
|
|
7
7
|
import Fe from "@mui/material/MenuItem";
|
|
8
|
-
import
|
|
9
|
-
import { visuallyHidden as
|
|
8
|
+
import $t from "@mui/material/Select";
|
|
9
|
+
import { visuallyHidden as Ft } from "@mui/utils";
|
|
10
10
|
import { useIntl as z } from "react-intl";
|
|
11
|
-
import { b as Me, S as
|
|
11
|
+
import { b as Me, S as Mt, f as M, i as Rt, a as Wt, r as Ot, u as At, A as Et, E as zt } from "./AbyssCloud-IuD91X6C.js";
|
|
12
12
|
import Ge from "@mui/material/ButtonBase";
|
|
13
13
|
import ve from "@mui/material/OutlinedInput";
|
|
14
|
-
import
|
|
14
|
+
import Dt from "@mui/material/InputAdornment";
|
|
15
15
|
import Z from "@mui/material/Button";
|
|
16
|
-
import { byteSizeIEC as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
16
|
+
import { byteSizeIEC as Lt } from "@abyss-project/main";
|
|
17
|
+
import Pt from "@mui/icons-material/FileUploadOutlined";
|
|
18
|
+
import Ht, { autocompleteClasses as Re } from "@mui/material/Autocomplete";
|
|
19
19
|
import We from "@mui/material/CircularProgress";
|
|
20
20
|
import ee from "@mui/material/IconButton";
|
|
21
21
|
import Oe from "@mui/material/Tooltip";
|
|
22
22
|
import Ae from "@mui/icons-material/CloudOutlined";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import Bt from "@mui/icons-material/CloudOffOutlined";
|
|
24
|
+
import Nt from "@mui/icons-material/FileDownloadOutlined";
|
|
25
25
|
import Ue from "@mui/icons-material/FolderOpenOutlined";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { isMuiElement as
|
|
30
|
-
import
|
|
26
|
+
import _t from "@mui/icons-material/OpenInNewRounded";
|
|
27
|
+
import Vt from "@mui/icons-material/RefreshRounded";
|
|
28
|
+
import jt from "@mui/material/FormLabel";
|
|
29
|
+
import { isMuiElement as Gt } from "@mui/material/utils";
|
|
30
|
+
import Ut from "@mui/icons-material/CheckCircleOutline";
|
|
31
31
|
import ue from "@mui/icons-material/Close";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
32
|
+
import qt from "@mui/icons-material/ErrorOutline";
|
|
33
|
+
import Kt from "@mui/icons-material/InfoOutlined";
|
|
34
|
+
import Yt from "@mui/icons-material/WarningAmber";
|
|
35
|
+
import Xt from "@mui/material/Checkbox";
|
|
36
|
+
import Qt from "@mui/icons-material/DescriptionOutlined";
|
|
37
|
+
import Zt from "@mui/icons-material/FolderOutlined";
|
|
38
|
+
import Jt from "@mui/icons-material/ChevronRightRounded";
|
|
39
|
+
import en from "@mui/material/Popover";
|
|
40
|
+
import tn from "@mui/material/Alert";
|
|
41
|
+
import nn from "@mui/material/TextField";
|
|
42
|
+
import on from "@mui/material/Dialog";
|
|
43
43
|
import Ee from "@mui/material/useMediaQuery";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import { Link as
|
|
44
|
+
import rn from "@mui/material/Modal";
|
|
45
|
+
import sn from "@mui/material/Slide";
|
|
46
|
+
import { Link as an } from "react-router-dom";
|
|
47
47
|
var $ = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))($ || {});
|
|
48
48
|
const qe = {
|
|
49
49
|
tablet: Me.md,
|
|
50
50
|
desktop: Me.lg
|
|
51
|
-
},
|
|
51
|
+
}, ln = 0.05, fe = (e) => `(min-width:${qe[e]}px)`, me = (e) => `(max-width:${qe[e] - ln}px)`, B = {
|
|
52
52
|
/** From the start of `tier` up. */
|
|
53
53
|
up: (e) => `@media ${fe(e)}`,
|
|
54
54
|
/** Below the start of `tier`. */
|
|
@@ -76,21 +76,21 @@ const qe = {
|
|
|
76
76
|
)}`;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
}, o = (e) => `${e}px`, R = (e) => `1px solid ${e}`, ge = (e) =>
|
|
79
|
+
}, o = (e) => `${e}px`, R = (e) => `1px solid ${e}`, ge = (e) => Tt(e, Mt), te = (e) => ({
|
|
80
80
|
outline: `2px solid ${e.design.tokens["focus.ring"]}`,
|
|
81
81
|
outlineOffset: "2px"
|
|
82
|
-
}),
|
|
82
|
+
}), Zr = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Jr = (e) => e.design.densityValues[e.design.density].row, Ke = (e) => ({
|
|
83
83
|
[B.down($.Tablet)]: {
|
|
84
84
|
minHeight: o(e.design.densityValues.touchTarget)
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), Ye = (e) => ({
|
|
87
87
|
[B.down($.Tablet)]: {
|
|
88
88
|
minWidth: o(e.design.densityValues.touchTarget),
|
|
89
89
|
minHeight: o(e.design.densityValues.touchTarget)
|
|
90
90
|
}
|
|
91
91
|
}), oe = (e, t, n = "fast") => t.map(
|
|
92
92
|
(r) => `${r} ${e.design.durations[n]}ms ${e.design.easings.standard}`
|
|
93
|
-
).join(", "),
|
|
93
|
+
).join(", "), Xe = () => {
|
|
94
94
|
const e = Ee(B.up($.Desktop), {
|
|
95
95
|
noSsr: !0
|
|
96
96
|
}), t = Ee(B.down($.Tablet), {
|
|
@@ -134,7 +134,7 @@ const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn =
|
|
|
134
134
|
position: "absolute",
|
|
135
135
|
top: o(e.design.space[1]),
|
|
136
136
|
right: se(J.Right, e.design.space[2]),
|
|
137
|
-
...
|
|
137
|
+
...Ye(e)
|
|
138
138
|
})), pn = a("div")(({ theme: e }) => {
|
|
139
139
|
const { space: t, densityValues: n } = e.design;
|
|
140
140
|
return {
|
|
@@ -174,7 +174,7 @@ const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn =
|
|
|
174
174
|
overflowY: "auto",
|
|
175
175
|
overscrollBehavior: "contain"
|
|
176
176
|
});
|
|
177
|
-
function
|
|
177
|
+
function Qe({
|
|
178
178
|
open: e,
|
|
179
179
|
onClose: t,
|
|
180
180
|
title: n,
|
|
@@ -194,8 +194,8 @@ function Xe({
|
|
|
194
194
|
}, k = () => {
|
|
195
195
|
m.current = null, b(!1), h(0);
|
|
196
196
|
};
|
|
197
|
-
return /* @__PURE__ */ i(
|
|
198
|
-
|
|
197
|
+
return /* @__PURE__ */ i(rn, { open: e, onClose: () => t(), children: /* @__PURE__ */ i(
|
|
198
|
+
sn,
|
|
199
199
|
{
|
|
200
200
|
in: e,
|
|
201
201
|
direction: "up",
|
|
@@ -238,7 +238,7 @@ function Xe({
|
|
|
238
238
|
) });
|
|
239
239
|
}
|
|
240
240
|
var xe = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(xe || {});
|
|
241
|
-
const bn = a(
|
|
241
|
+
const bn = a(on)(({ theme: e }) => {
|
|
242
242
|
const { tokens: t, fonts: n, space: r } = e.design;
|
|
243
243
|
return {
|
|
244
244
|
"& .MuiDialog-paper": {
|
|
@@ -307,7 +307,7 @@ const bn = a(nn)(({ theme: e }) => {
|
|
|
307
307
|
marginTop: o(e.design.space[4]),
|
|
308
308
|
"& > *": { flex: "1 1 0" }
|
|
309
309
|
}));
|
|
310
|
-
function
|
|
310
|
+
function Ze({
|
|
311
311
|
open: e,
|
|
312
312
|
onClose: t,
|
|
313
313
|
title: n,
|
|
@@ -316,9 +316,9 @@ function Qe({
|
|
|
316
316
|
actions: c,
|
|
317
317
|
children: l
|
|
318
318
|
}) {
|
|
319
|
-
const d = z(), g =
|
|
319
|
+
const d = z(), g = Xe() === $.Mobile, m = E(), p = E();
|
|
320
320
|
return g ? /* @__PURE__ */ v(
|
|
321
|
-
|
|
321
|
+
Qe,
|
|
322
322
|
{
|
|
323
323
|
open: e,
|
|
324
324
|
onClose: t,
|
|
@@ -360,7 +360,7 @@ function Qe({
|
|
|
360
360
|
}
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
|
-
const Tn = a(
|
|
363
|
+
const Tn = a(jt)(({ theme: e }) => ({
|
|
364
364
|
display: "block",
|
|
365
365
|
maxWidth: "100%",
|
|
366
366
|
marginBottom: o(e.design.space[2]),
|
|
@@ -372,17 +372,17 @@ const Tn = a(Vt)(({ theme: e }) => ({
|
|
|
372
372
|
"&.Mui-error": { color: e.design.tokens["status.danger"] },
|
|
373
373
|
"&.Mui-disabled": { color: e.design.tokens["text.muted"] }
|
|
374
374
|
}));
|
|
375
|
-
function
|
|
375
|
+
function Je({
|
|
376
376
|
label: e,
|
|
377
377
|
help: t,
|
|
378
378
|
error: n,
|
|
379
379
|
required: r = !1,
|
|
380
380
|
children: s
|
|
381
381
|
}) {
|
|
382
|
-
const c = E(), l = s.props.id ?? c, d = `${l}-label`, g = t !== void 0 ? `${l}-help` : void 0, m = n !== void 0 ? `${l}-error` : void 0, p = [s.props["aria-describedby"], g, m].filter((y) => y !== void 0 && y !== "").join(" ") || void 0, h =
|
|
382
|
+
const c = E(), l = s.props.id ?? c, d = `${l}-label`, g = t !== void 0 ? `${l}-help` : void 0, m = n !== void 0 ? `${l}-error` : void 0, p = [s.props["aria-describedby"], g, m].filter((y) => y !== void 0 && y !== "").join(" ") || void 0, h = St(s, {
|
|
383
383
|
id: l,
|
|
384
384
|
"aria-describedby": p,
|
|
385
|
-
...
|
|
385
|
+
...Gt(s, ["Select"]) && { labelId: d }
|
|
386
386
|
});
|
|
387
387
|
return /* @__PURE__ */ v(ce, { fullWidth: !0, error: n !== void 0, required: r, children: [
|
|
388
388
|
/* @__PURE__ */ i(Tn, { id: d, htmlFor: l, children: e }),
|
|
@@ -391,8 +391,8 @@ function Ze({
|
|
|
391
391
|
n !== void 0 && /* @__PURE__ */ i(de, { id: m, children: n })
|
|
392
392
|
] });
|
|
393
393
|
}
|
|
394
|
-
var
|
|
395
|
-
const
|
|
394
|
+
var et = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e))(et || {});
|
|
395
|
+
const tt = {
|
|
396
396
|
info: { solid: "status.info", soft: "status.info.soft" },
|
|
397
397
|
success: {
|
|
398
398
|
solid: "status.success",
|
|
@@ -407,14 +407,14 @@ const et = {
|
|
|
407
407
|
soft: "status.danger.soft"
|
|
408
408
|
}
|
|
409
409
|
}, $n = {
|
|
410
|
-
info:
|
|
411
|
-
success:
|
|
412
|
-
warning:
|
|
413
|
-
danger:
|
|
410
|
+
info: Kt,
|
|
411
|
+
success: Ut,
|
|
412
|
+
warning: Yt,
|
|
413
|
+
danger: qt
|
|
414
414
|
}, Fn = a("div", {
|
|
415
415
|
shouldForwardProp: (e) => e !== "severity"
|
|
416
416
|
})(({ theme: e, severity: t }) => {
|
|
417
|
-
const { tokens: n, space: r, radii: s, fonts: c, typeScale: l } = e.design, { solid: d, soft: g } =
|
|
417
|
+
const { tokens: n, space: r, radii: s, fonts: c, typeScale: l } = e.design, { solid: d, soft: g } = tt[t];
|
|
418
418
|
return {
|
|
419
419
|
display: "flex",
|
|
420
420
|
alignItems: "flex-start",
|
|
@@ -438,7 +438,7 @@ const et = {
|
|
|
438
438
|
flex: "none",
|
|
439
439
|
// Centered on the first line of text.
|
|
440
440
|
paddingTop: o(r[1] / 2),
|
|
441
|
-
color: n[
|
|
441
|
+
color: n[tt[t].solid],
|
|
442
442
|
"& svg": {
|
|
443
443
|
width: o(r[4] + r[1]),
|
|
444
444
|
height: o(r[4] + r[1])
|
|
@@ -472,8 +472,8 @@ const et = {
|
|
|
472
472
|
display: "flex",
|
|
473
473
|
flex: "none",
|
|
474
474
|
alignItems: "center"
|
|
475
|
-
});
|
|
476
|
-
function
|
|
475
|
+
}), En = a(ee)(({ theme: e }) => Ye(e));
|
|
476
|
+
function zn({
|
|
477
477
|
severity: e,
|
|
478
478
|
title: t,
|
|
479
479
|
children: n,
|
|
@@ -499,7 +499,7 @@ function En({
|
|
|
499
499
|
r !== void 0 && /* @__PURE__ */ i(An, { children: r })
|
|
500
500
|
] }),
|
|
501
501
|
s !== void 0 && /* @__PURE__ */ i(
|
|
502
|
-
|
|
502
|
+
En,
|
|
503
503
|
{
|
|
504
504
|
size: "small",
|
|
505
505
|
"aria-label": l.formatMessage({ id: "ds.states.callout.close" }),
|
|
@@ -511,12 +511,12 @@ function En({
|
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
|
-
const X = (e) => e.id ?? e.name,
|
|
514
|
+
const X = (e) => e.id ?? e.name, nt = (e, t, n) => (t === void 0 || e.sizeOctet <= t) && Rt(e, n), ot = (e, t, n) => [
|
|
515
515
|
...(e.childFile ?? []).filter(
|
|
516
|
-
(r) =>
|
|
516
|
+
(r) => nt(r, t, n)
|
|
517
517
|
),
|
|
518
518
|
...(e.childFolder ?? []).flatMap(
|
|
519
|
-
(r) =>
|
|
519
|
+
(r) => ot(r, t, n)
|
|
520
520
|
)
|
|
521
521
|
], he = a("div", {
|
|
522
522
|
shouldForwardProp: (e) => e !== "selected"
|
|
@@ -533,7 +533,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
533
533
|
color: n["text.primary"],
|
|
534
534
|
...Ke(e)
|
|
535
535
|
};
|
|
536
|
-
}),
|
|
536
|
+
}), rt = (e) => {
|
|
537
537
|
const { tokens: t, space: n, radii: r, fonts: s } = e.design;
|
|
538
538
|
return {
|
|
539
539
|
flex: "1 1 auto",
|
|
@@ -556,7 +556,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
556
556
|
"&:hover": { backgroundColor: t["bg.hover"] },
|
|
557
557
|
"&:focus-visible": te(e)
|
|
558
558
|
};
|
|
559
|
-
},
|
|
559
|
+
}, it = a("button")(({ theme: e }) => rt(e)), Dn = a("label")(({ theme: e }) => rt(e)), st = a("span", {
|
|
560
560
|
shouldForwardProp: (e) => e !== "strong"
|
|
561
561
|
})(({ strong: e }) => ({
|
|
562
562
|
flex: "1 1 auto",
|
|
@@ -565,7 +565,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
565
565
|
textOverflow: "ellipsis",
|
|
566
566
|
whiteSpace: "nowrap",
|
|
567
567
|
fontWeight: e ? M.medium : M.regular
|
|
568
|
-
})),
|
|
568
|
+
})), at = a("span")(({ theme: e }) => {
|
|
569
569
|
const { tokens: t, space: n, radii: r } = e.design;
|
|
570
570
|
return {
|
|
571
571
|
display: "inline-flex",
|
|
@@ -580,7 +580,7 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
580
580
|
"& svg": { width: o(n[5]), height: o(n[5]) },
|
|
581
581
|
"& img": { width: "100%", height: "100%", objectFit: "cover" }
|
|
582
582
|
};
|
|
583
|
-
}),
|
|
583
|
+
}), Ln = a(Jt, {
|
|
584
584
|
shouldForwardProp: (e) => e !== "open"
|
|
585
585
|
})(({ theme: e, open: t }) => ({
|
|
586
586
|
flex: "none",
|
|
@@ -589,35 +589,35 @@ const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
589
589
|
color: e.design.tokens["text.muted"],
|
|
590
590
|
transform: t ? "rotate(90deg)" : "none",
|
|
591
591
|
transition: oe(e, ["transform"])
|
|
592
|
-
})),
|
|
592
|
+
})), lt = a(Xt)(({ theme: e }) => ({
|
|
593
593
|
[B.down($.Tablet)]: {
|
|
594
594
|
padding: o(
|
|
595
595
|
(e.design.densityValues.touchTarget - e.design.space[5]) / 2
|
|
596
596
|
)
|
|
597
597
|
}
|
|
598
|
-
})),
|
|
598
|
+
})), Pn = a("ul")(({ theme: e }) => ({
|
|
599
599
|
margin: 0,
|
|
600
600
|
padding: 0,
|
|
601
601
|
listStyle: "none",
|
|
602
602
|
borderLeft: R(e.design.tokens["border.subtle"]),
|
|
603
603
|
marginLeft: o(e.design.space[3])
|
|
604
604
|
})), ze = a("li")({ listStyle: "none" });
|
|
605
|
-
function
|
|
605
|
+
function dt({
|
|
606
606
|
folders: e,
|
|
607
607
|
files: t,
|
|
608
608
|
context: n
|
|
609
609
|
}) {
|
|
610
610
|
return /* @__PURE__ */ v(ne, { children: [
|
|
611
|
-
e.map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(
|
|
612
|
-
t.filter((r) =>
|
|
611
|
+
e.map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Nn, { folder: r, context: n }) }, r.id ?? r.name)),
|
|
612
|
+
t.filter((r) => nt(r, n.maxSize, n.accept)).map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Bn, { file: r, context: n }) }, X(r)))
|
|
613
613
|
] });
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Hn({
|
|
616
616
|
file: e,
|
|
617
617
|
getFileThumbnailUrl: t
|
|
618
618
|
}) {
|
|
619
619
|
const [n, r] = I(!1), s = e.thumbnailPublicAccessId !== null && !e.isEncrypt && !n ? t(e.thumbnailPublicAccessId) : null;
|
|
620
|
-
return /* @__PURE__ */ i(
|
|
620
|
+
return /* @__PURE__ */ i(at, { "aria-hidden": !0, children: s !== null ? /* @__PURE__ */ i(
|
|
621
621
|
"img",
|
|
622
622
|
{
|
|
623
623
|
src: s,
|
|
@@ -625,25 +625,25 @@ function Pn({
|
|
|
625
625
|
draggable: !1,
|
|
626
626
|
onError: () => r(!0)
|
|
627
627
|
}
|
|
628
|
-
) : /* @__PURE__ */ i(
|
|
628
|
+
) : /* @__PURE__ */ i(Qt, {}) });
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Bn({
|
|
631
631
|
file: e,
|
|
632
632
|
context: t
|
|
633
633
|
}) {
|
|
634
634
|
const n = E(), r = t.selectedIds.has(X(e)), s = () => r ? t.unselect([e]) : t.select([e]), c = /* @__PURE__ */ v(ne, { children: [
|
|
635
635
|
/* @__PURE__ */ i(
|
|
636
|
-
|
|
636
|
+
Hn,
|
|
637
637
|
{
|
|
638
638
|
file: e,
|
|
639
639
|
getFileThumbnailUrl: t.getFileThumbnailUrl
|
|
640
640
|
}
|
|
641
641
|
),
|
|
642
|
-
/* @__PURE__ */ i(
|
|
642
|
+
/* @__PURE__ */ i(st, { strong: r, title: e.name, children: e.name })
|
|
643
643
|
] });
|
|
644
644
|
return t.multiple ? /* @__PURE__ */ v(he, { selected: r, children: [
|
|
645
645
|
/* @__PURE__ */ i(
|
|
646
|
-
|
|
646
|
+
lt,
|
|
647
647
|
{
|
|
648
648
|
id: n,
|
|
649
649
|
size: "small",
|
|
@@ -651,20 +651,20 @@ function Hn({
|
|
|
651
651
|
onChange: s
|
|
652
652
|
}
|
|
653
653
|
),
|
|
654
|
-
/* @__PURE__ */ i(
|
|
655
|
-
] }) : /* @__PURE__ */ i(he, { selected: r, children: /* @__PURE__ */ i(
|
|
654
|
+
/* @__PURE__ */ i(Dn, { htmlFor: n, children: c })
|
|
655
|
+
] }) : /* @__PURE__ */ i(he, { selected: r, children: /* @__PURE__ */ i(it, { type: "button", "aria-pressed": r, onClick: s, children: c }) });
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Nn({
|
|
658
658
|
folder: e,
|
|
659
659
|
context: t
|
|
660
660
|
}) {
|
|
661
|
-
const n = z(), r = E(), [s, c] = I(!1), l =
|
|
661
|
+
const n = z(), r = E(), [s, c] = I(!1), l = ot(e, t.maxSize, t.accept), d = l.filter(
|
|
662
662
|
(m) => t.selectedIds.has(X(m))
|
|
663
663
|
).length, g = l.length > 0 && d === l.length;
|
|
664
664
|
return /* @__PURE__ */ v(ne, { children: [
|
|
665
665
|
/* @__PURE__ */ v(he, { selected: g, children: [
|
|
666
666
|
t.multiple && /* @__PURE__ */ i(
|
|
667
|
-
|
|
667
|
+
lt,
|
|
668
668
|
{
|
|
669
669
|
size: "small",
|
|
670
670
|
checked: g,
|
|
@@ -680,22 +680,22 @@ function Bn({
|
|
|
680
680
|
}
|
|
681
681
|
),
|
|
682
682
|
/* @__PURE__ */ v(
|
|
683
|
-
|
|
683
|
+
it,
|
|
684
684
|
{
|
|
685
685
|
type: "button",
|
|
686
686
|
"aria-expanded": s,
|
|
687
687
|
"aria-controls": s ? r : void 0,
|
|
688
688
|
onClick: () => c(!s),
|
|
689
689
|
children: [
|
|
690
|
-
/* @__PURE__ */ i(
|
|
691
|
-
/* @__PURE__ */ i(
|
|
692
|
-
/* @__PURE__ */ i(
|
|
690
|
+
/* @__PURE__ */ i(Ln, { open: s, "aria-hidden": !0 }),
|
|
691
|
+
/* @__PURE__ */ i(at, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(Zt, {}) }),
|
|
692
|
+
/* @__PURE__ */ i(st, { strong: g, title: e.name, children: e.name })
|
|
693
693
|
]
|
|
694
694
|
}
|
|
695
695
|
)
|
|
696
696
|
] }),
|
|
697
|
-
s && /* @__PURE__ */ i(
|
|
698
|
-
|
|
697
|
+
s && /* @__PURE__ */ i(Pn, { id: r, children: /* @__PURE__ */ i(
|
|
698
|
+
dt,
|
|
699
699
|
{
|
|
700
700
|
folders: e.childFolder ?? [],
|
|
701
701
|
files: e.childFile ?? [],
|
|
@@ -709,12 +709,12 @@ const De = "shared", Le = {
|
|
|
709
709
|
"perso-in-org": 1,
|
|
710
710
|
project: 2,
|
|
711
711
|
personal: 3
|
|
712
|
-
},
|
|
712
|
+
}, _n = a("div")(({ theme: e }) => ({
|
|
713
713
|
display: "flex",
|
|
714
714
|
flexDirection: "column",
|
|
715
715
|
gap: o(e.design.space[3]),
|
|
716
716
|
minWidth: 0
|
|
717
|
-
})),
|
|
717
|
+
})), Vn = a("div")(({ theme: e }) => ({
|
|
718
718
|
display: "flex",
|
|
719
719
|
alignItems: "flex-end",
|
|
720
720
|
gap: o(e.design.space[2]),
|
|
@@ -722,11 +722,11 @@ const De = "shared", Le = {
|
|
|
722
722
|
// The Space field takes the room the two icon buttons leave.
|
|
723
723
|
[`& > .${Re.root}`]: { flex: "1 1 auto", minWidth: 0 },
|
|
724
724
|
[`& > :not(.${Re.root})`]: { flex: "none" }
|
|
725
|
-
})),
|
|
725
|
+
})), jn = a("p")(({ theme: e }) => ({
|
|
726
726
|
margin: 0,
|
|
727
727
|
fontSize: o(e.design.typeScale.small),
|
|
728
728
|
color: e.design.tokens["text.muted"]
|
|
729
|
-
})),
|
|
729
|
+
})), Gn = a("ul")(({ theme: e }) => {
|
|
730
730
|
const { tokens: t, space: n, radii: r } = e.design;
|
|
731
731
|
return {
|
|
732
732
|
margin: 0,
|
|
@@ -755,7 +755,7 @@ const De = "shared", Le = {
|
|
|
755
755
|
color: t["text.muted"]
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
}),
|
|
758
|
+
}), Un = a("span")(({ theme: e }) => {
|
|
759
759
|
const { tokens: t, space: n, radii: r } = e.design;
|
|
760
760
|
return {
|
|
761
761
|
display: "inline-flex",
|
|
@@ -768,38 +768,38 @@ const De = "shared", Le = {
|
|
|
768
768
|
color: t["status.warning"],
|
|
769
769
|
"& svg": { width: o(n[6]), height: o(n[6]) }
|
|
770
770
|
};
|
|
771
|
-
}),
|
|
771
|
+
}), qn = a("p")(({ theme: e }) => ({
|
|
772
772
|
margin: 0,
|
|
773
773
|
fontWeight: M.semibold,
|
|
774
774
|
color: e.design.tokens["text.primary"]
|
|
775
|
-
})),
|
|
775
|
+
})), Kn = a("p")({ margin: 0 }), Yn = a("div")(({ theme: e }) => ({
|
|
776
776
|
display: "flex",
|
|
777
777
|
flexWrap: "wrap",
|
|
778
778
|
alignItems: "center",
|
|
779
779
|
justifyContent: "space-between",
|
|
780
780
|
gap: o(e.design.space[3])
|
|
781
|
-
})),
|
|
781
|
+
})), Xn = a("span")(({ theme: e }) => ({
|
|
782
782
|
fontSize: o(e.design.typeScale.body),
|
|
783
783
|
color: e.design.tokens["text.secondary"]
|
|
784
|
-
})),
|
|
784
|
+
})), Qn = a("li")(({ theme: e }) => ({
|
|
785
785
|
display: "flex",
|
|
786
786
|
alignItems: "center",
|
|
787
787
|
gap: o(e.design.space[2]),
|
|
788
788
|
...Ke(e)
|
|
789
|
-
})),
|
|
789
|
+
})), Zn = a("span")({
|
|
790
790
|
display: "flex",
|
|
791
791
|
flexDirection: "column",
|
|
792
792
|
minWidth: 0
|
|
793
|
-
}),
|
|
793
|
+
}), Jn = a("span")({
|
|
794
794
|
overflow: "hidden",
|
|
795
795
|
textOverflow: "ellipsis",
|
|
796
796
|
whiteSpace: "nowrap"
|
|
797
|
-
}),
|
|
797
|
+
}), eo = a("span")(({ theme: e }) => ({
|
|
798
798
|
fontSize: o(e.design.typeScale.caption),
|
|
799
799
|
color: e.design.tokens["text.muted"],
|
|
800
800
|
// A narrow screen wraps it: the scope and the organization tell same-named Spaces apart.
|
|
801
801
|
overflowWrap: "anywhere"
|
|
802
|
-
})),
|
|
802
|
+
})), ct = a("span")(({ theme: e }) => {
|
|
803
803
|
const { tokens: t, space: n, radii: r } = e.design;
|
|
804
804
|
return {
|
|
805
805
|
display: "inline-flex",
|
|
@@ -812,9 +812,9 @@ const De = "shared", Le = {
|
|
|
812
812
|
color: t["accent.text"],
|
|
813
813
|
"& > svg": { width: o(n[4]), height: o(n[4]) }
|
|
814
814
|
};
|
|
815
|
-
}),
|
|
815
|
+
}), to = a(ct)(({ theme: e }) => ({
|
|
816
816
|
marginRight: o(e.design.space[2])
|
|
817
|
-
})),
|
|
817
|
+
})), no = a("li")({ listStyle: "none" }), oo = a("div")(({ theme: e }) => {
|
|
818
818
|
const { space: t, tokens: n, typeScale: r } = e.design;
|
|
819
819
|
return {
|
|
820
820
|
padding: `${o(t[2])} ${o(t[3])} ${o(t[1])}`,
|
|
@@ -824,8 +824,8 @@ const De = "shared", Le = {
|
|
|
824
824
|
textTransform: "uppercase",
|
|
825
825
|
color: n["text.muted"]
|
|
826
826
|
};
|
|
827
|
-
}),
|
|
828
|
-
function
|
|
827
|
+
}), ro = a("ul")({ margin: 0, padding: 0 });
|
|
828
|
+
function io({
|
|
829
829
|
cloudPicker: e,
|
|
830
830
|
onImport: t,
|
|
831
831
|
multiple: n = !1,
|
|
@@ -873,7 +873,7 @@ function ro({
|
|
|
873
873
|
space: V,
|
|
874
874
|
sectionKey: O,
|
|
875
875
|
sectionLabel: H,
|
|
876
|
-
label: (L == null ? void 0 : L.label) ??
|
|
876
|
+
label: (L == null ? void 0 : L.label) ?? Ot(V, u),
|
|
877
877
|
subtitle: L == null ? void 0 : L.subtitle,
|
|
878
878
|
avatar: L == null ? void 0 : L.avatar
|
|
879
879
|
};
|
|
@@ -919,9 +919,9 @@ function ro({
|
|
|
919
919
|
/* Failed */
|
|
920
920
|
);
|
|
921
921
|
}
|
|
922
|
-
}, []),
|
|
922
|
+
}, []), yt = j(y);
|
|
923
923
|
G(() => {
|
|
924
|
-
|
|
924
|
+
yt.current();
|
|
925
925
|
}, []), G(() => {
|
|
926
926
|
if (x && q.some((S) => S.space.id === x.id))
|
|
927
927
|
return;
|
|
@@ -932,20 +932,20 @@ function ro({
|
|
|
932
932
|
}, [q, x]), G(() => {
|
|
933
933
|
x && le(x);
|
|
934
934
|
}, [x, le]);
|
|
935
|
-
const
|
|
935
|
+
const vt = async () => {
|
|
936
936
|
if (_(!1), !await y()) {
|
|
937
937
|
_(!0);
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
940
|
x && await le(x);
|
|
941
|
-
},
|
|
941
|
+
}, xt = async () => {
|
|
942
942
|
re(!0);
|
|
943
943
|
try {
|
|
944
944
|
await b();
|
|
945
945
|
} finally {
|
|
946
946
|
re(!1);
|
|
947
947
|
}
|
|
948
|
-
},
|
|
948
|
+
}, wt = {
|
|
949
949
|
multiple: n,
|
|
950
950
|
maxSize: r,
|
|
951
951
|
accept: s,
|
|
@@ -966,7 +966,7 @@ function ro({
|
|
|
966
966
|
(S) => S.filter((N) => !T.has(X(N)))
|
|
967
967
|
);
|
|
968
968
|
}
|
|
969
|
-
},
|
|
969
|
+
}, kt = g !== null && m !== null, ke = /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
|
|
970
970
|
We,
|
|
971
971
|
{
|
|
972
972
|
size: 32,
|
|
@@ -975,15 +975,15 @@ function ro({
|
|
|
975
975
|
})
|
|
976
976
|
}
|
|
977
977
|
) });
|
|
978
|
-
if (!
|
|
978
|
+
if (!kt && (p || !h))
|
|
979
979
|
return ke;
|
|
980
980
|
if (q.length === 0)
|
|
981
981
|
return /* @__PURE__ */ v(ie, { children: [
|
|
982
|
-
/* @__PURE__ */ i(
|
|
983
|
-
/* @__PURE__ */ i(
|
|
982
|
+
/* @__PURE__ */ i(Un, { "aria-hidden": !0, children: /* @__PURE__ */ i(Bt, {}) }),
|
|
983
|
+
/* @__PURE__ */ i(qn, { children: u.formatMessage({
|
|
984
984
|
id: "ds.business.cloud-import.create-error.title"
|
|
985
985
|
}) }),
|
|
986
|
-
/* @__PURE__ */ i(
|
|
986
|
+
/* @__PURE__ */ i(Kn, { children: u.formatMessage({
|
|
987
987
|
id: "ds.business.cloud-import.create-error.description"
|
|
988
988
|
}) }),
|
|
989
989
|
/* @__PURE__ */ i(
|
|
@@ -992,7 +992,7 @@ function ro({
|
|
|
992
992
|
variant: "contained",
|
|
993
993
|
startIcon: /* @__PURE__ */ i(Ae, { "aria-hidden": !0 }),
|
|
994
994
|
loading: W || p,
|
|
995
|
-
onClick: () => void
|
|
995
|
+
onClick: () => void xt(),
|
|
996
996
|
children: u.formatMessage({
|
|
997
997
|
id: "ds.business.cloud-import.create-error.create-button"
|
|
998
998
|
})
|
|
@@ -1001,7 +1001,7 @@ function ro({
|
|
|
1001
1001
|
] });
|
|
1002
1002
|
if (K === null)
|
|
1003
1003
|
return ke;
|
|
1004
|
-
const
|
|
1004
|
+
const Ct = Wt(
|
|
1005
1005
|
c,
|
|
1006
1006
|
K.space,
|
|
1007
1007
|
K.sectionKey === De
|
|
@@ -1010,18 +1010,18 @@ function ro({
|
|
|
1010
1010
|
}), Se = u.formatMessage({
|
|
1011
1011
|
id: "ds.business.cloud-import.open-in-cloud"
|
|
1012
1012
|
}), Ie = (w) => w.avatar ?? /* @__PURE__ */ i(Ae, {});
|
|
1013
|
-
return /* @__PURE__ */ v(
|
|
1013
|
+
return /* @__PURE__ */ v(_n, { children: [
|
|
1014
1014
|
ae && /* @__PURE__ */ i(
|
|
1015
|
-
|
|
1015
|
+
zn,
|
|
1016
1016
|
{
|
|
1017
|
-
severity:
|
|
1017
|
+
severity: et.Danger,
|
|
1018
1018
|
onClose: () => _(!1),
|
|
1019
1019
|
children: u.formatMessage({ id: "ds.business.cloud-import.refresh-error" })
|
|
1020
1020
|
}
|
|
1021
1021
|
),
|
|
1022
|
-
/* @__PURE__ */ v(
|
|
1022
|
+
/* @__PURE__ */ v(Vn, { children: [
|
|
1023
1023
|
/* @__PURE__ */ i(
|
|
1024
|
-
|
|
1024
|
+
Ht,
|
|
1025
1025
|
{
|
|
1026
1026
|
fullWidth: !0,
|
|
1027
1027
|
disableClearable: !0,
|
|
@@ -1039,19 +1039,19 @@ function ro({
|
|
|
1039
1039
|
)
|
|
1040
1040
|
);
|
|
1041
1041
|
},
|
|
1042
|
-
renderGroup: (w) => /* @__PURE__ */ v(
|
|
1043
|
-
/* @__PURE__ */ i(
|
|
1044
|
-
/* @__PURE__ */ i(
|
|
1042
|
+
renderGroup: (w) => /* @__PURE__ */ v(no, { children: [
|
|
1043
|
+
/* @__PURE__ */ i(oo, { children: w.group }),
|
|
1044
|
+
/* @__PURE__ */ i(ro, { children: w.children })
|
|
1045
1045
|
] }, w.key),
|
|
1046
|
-
renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(
|
|
1047
|
-
/* @__PURE__ */ i(
|
|
1048
|
-
/* @__PURE__ */ v(
|
|
1049
|
-
/* @__PURE__ */ i(
|
|
1050
|
-
S.subtitle !== void 0 && /* @__PURE__ */ i(
|
|
1046
|
+
renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(Qn, { ...T, children: [
|
|
1047
|
+
/* @__PURE__ */ i(ct, { "aria-hidden": !0, children: Ie(S) }),
|
|
1048
|
+
/* @__PURE__ */ v(Zn, { children: [
|
|
1049
|
+
/* @__PURE__ */ i(Jn, { children: S.label }),
|
|
1050
|
+
S.subtitle !== void 0 && /* @__PURE__ */ i(eo, { children: S.subtitle })
|
|
1051
1051
|
] })
|
|
1052
1052
|
] }, w),
|
|
1053
1053
|
renderInput: (w) => /* @__PURE__ */ i(
|
|
1054
|
-
|
|
1054
|
+
Je,
|
|
1055
1055
|
{
|
|
1056
1056
|
label: u.formatMessage({
|
|
1057
1057
|
id: "ds.business.cloud-import.space-label"
|
|
@@ -1063,7 +1063,7 @@ function ro({
|
|
|
1063
1063
|
id: w.id,
|
|
1064
1064
|
fullWidth: !0,
|
|
1065
1065
|
inputProps: w.inputProps,
|
|
1066
|
-
startAdornment: /* @__PURE__ */ i(
|
|
1066
|
+
startAdornment: /* @__PURE__ */ i(to, { "aria-hidden": !0, children: Ie(K) })
|
|
1067
1067
|
}
|
|
1068
1068
|
)
|
|
1069
1069
|
}
|
|
@@ -1075,23 +1075,23 @@ function ro({
|
|
|
1075
1075
|
{
|
|
1076
1076
|
"aria-label": Ce,
|
|
1077
1077
|
disabled: F === "loading" || p,
|
|
1078
|
-
onClick: () => void
|
|
1079
|
-
children: /* @__PURE__ */ i(
|
|
1078
|
+
onClick: () => void vt(),
|
|
1079
|
+
children: /* @__PURE__ */ i(Vt, { "aria-hidden": !0 })
|
|
1080
1080
|
}
|
|
1081
1081
|
) }) }),
|
|
1082
1082
|
/* @__PURE__ */ i(Oe, { title: Se, children: /* @__PURE__ */ i(
|
|
1083
1083
|
ee,
|
|
1084
1084
|
{
|
|
1085
1085
|
component: "a",
|
|
1086
|
-
href:
|
|
1086
|
+
href: Ct,
|
|
1087
1087
|
target: "_blank",
|
|
1088
1088
|
rel: "noreferrer",
|
|
1089
1089
|
"aria-label": Se,
|
|
1090
|
-
children: /* @__PURE__ */ i(
|
|
1090
|
+
children: /* @__PURE__ */ i(_t, { "aria-hidden": !0 })
|
|
1091
1091
|
}
|
|
1092
1092
|
) })
|
|
1093
1093
|
] }),
|
|
1094
|
-
/* @__PURE__ */ i(
|
|
1094
|
+
/* @__PURE__ */ i(jn, { children: u.formatMessage({ id: "ds.business.cloud-import.filtered-hint" }) }),
|
|
1095
1095
|
F === "loading" && /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
|
|
1096
1096
|
We,
|
|
1097
1097
|
{
|
|
@@ -1116,23 +1116,23 @@ function ro({
|
|
|
1116
1116
|
/* @__PURE__ */ i(Ue, { "aria-hidden": !0 }),
|
|
1117
1117
|
u.formatMessage({ id: "ds.business.cloud-import.empty-space" })
|
|
1118
1118
|
] }) : /* @__PURE__ */ i(
|
|
1119
|
-
|
|
1119
|
+
Gn,
|
|
1120
1120
|
{
|
|
1121
1121
|
"aria-label": u.formatMessage({
|
|
1122
1122
|
id: "ds.business.cloud-import.tree-label"
|
|
1123
1123
|
}),
|
|
1124
1124
|
children: /* @__PURE__ */ i(
|
|
1125
|
-
|
|
1125
|
+
dt,
|
|
1126
1126
|
{
|
|
1127
1127
|
folders: C.folders,
|
|
1128
1128
|
files: C.files,
|
|
1129
|
-
context:
|
|
1129
|
+
context: wt
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
1132
1132
|
}
|
|
1133
1133
|
)),
|
|
1134
|
-
/* @__PURE__ */ v(
|
|
1135
|
-
/* @__PURE__ */ i(
|
|
1134
|
+
/* @__PURE__ */ v(Yn, { children: [
|
|
1135
|
+
/* @__PURE__ */ i(Xn, { role: "status", children: u.formatMessage(
|
|
1136
1136
|
{ id: "ds.business.cloud-import.selected" },
|
|
1137
1137
|
{ count: U.length }
|
|
1138
1138
|
) }),
|
|
@@ -1140,7 +1140,7 @@ function ro({
|
|
|
1140
1140
|
Z,
|
|
1141
1141
|
{
|
|
1142
1142
|
variant: "contained",
|
|
1143
|
-
startIcon: /* @__PURE__ */ i(
|
|
1143
|
+
startIcon: /* @__PURE__ */ i(Nt, { "aria-hidden": !0 }),
|
|
1144
1144
|
disabled: U.length === 0,
|
|
1145
1145
|
onClick: () => t(K.space, U),
|
|
1146
1146
|
children: u.formatMessage({ id: "ds.business.cloud-import.import" })
|
|
@@ -1149,7 +1149,7 @@ function ro({
|
|
|
1149
1149
|
] })
|
|
1150
1150
|
] });
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function so({
|
|
1153
1153
|
open: e,
|
|
1154
1154
|
onClose: t,
|
|
1155
1155
|
onImport: n,
|
|
@@ -1160,14 +1160,14 @@ function io({
|
|
|
1160
1160
|
}) {
|
|
1161
1161
|
const d = z();
|
|
1162
1162
|
return /* @__PURE__ */ i(
|
|
1163
|
-
|
|
1163
|
+
Ze,
|
|
1164
1164
|
{
|
|
1165
1165
|
open: e,
|
|
1166
1166
|
onClose: t,
|
|
1167
1167
|
size: xe.Medium,
|
|
1168
1168
|
title: d.formatMessage({ id: "ds.business.cloud-import.title" }),
|
|
1169
1169
|
children: e && /* @__PURE__ */ i(
|
|
1170
|
-
|
|
1170
|
+
io,
|
|
1171
1171
|
{
|
|
1172
1172
|
cloudPicker: r,
|
|
1173
1173
|
multiple: s,
|
|
@@ -1181,7 +1181,7 @@ function io({
|
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1184
|
+
const ao = /* @__PURE__ */ new Set(["a", "button"]), lo = a("div", {
|
|
1185
1185
|
shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
|
|
1186
1186
|
})(({ theme: e, ownerState: t }) => {
|
|
1187
1187
|
const { tokens: n, radii: r, space: s } = e.design;
|
|
@@ -1205,7 +1205,7 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
|
|
|
1205
1205
|
"&:focus-visible": te(e)
|
|
1206
1206
|
}
|
|
1207
1207
|
};
|
|
1208
|
-
}),
|
|
1208
|
+
}), ei = It(function({
|
|
1209
1209
|
interactive: t = !1,
|
|
1210
1210
|
padding: n = 4,
|
|
1211
1211
|
component: r = "div",
|
|
@@ -1215,14 +1215,14 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
|
|
|
1215
1215
|
tabIndex: d,
|
|
1216
1216
|
...g
|
|
1217
1217
|
}, m) {
|
|
1218
|
-
const p = t && typeof r == "string" && !
|
|
1218
|
+
const p = t && typeof r == "string" && !ao.has(r), h = Q(
|
|
1219
1219
|
(b) => {
|
|
1220
1220
|
typeof m == "function" ? m(b) : m !== null && (m.current = b);
|
|
1221
1221
|
},
|
|
1222
1222
|
[m]
|
|
1223
1223
|
);
|
|
1224
1224
|
return /* @__PURE__ */ i(
|
|
1225
|
-
|
|
1225
|
+
lo,
|
|
1226
1226
|
{
|
|
1227
1227
|
ref: h,
|
|
1228
1228
|
as: r,
|
|
@@ -1237,15 +1237,15 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
);
|
|
1239
1239
|
});
|
|
1240
|
-
var
|
|
1241
|
-
const
|
|
1240
|
+
var ut = /* @__PURE__ */ ((e) => (e.Medium = "medium", e.Compact = "compact", e))(ut || {});
|
|
1241
|
+
const co = Be(
|
|
1242
1242
|
"medium"
|
|
1243
1243
|
/* Medium */
|
|
1244
|
-
),
|
|
1244
|
+
), uo = a(ce)(({ theme: e }) => ({
|
|
1245
1245
|
// Three times the largest spacing step: room for a label and the arrow.
|
|
1246
1246
|
minWidth: o(e.design.space[10] * 3),
|
|
1247
1247
|
maxWidth: "100%"
|
|
1248
|
-
})),
|
|
1248
|
+
})), go = a(je)(({ theme: e }) => ({
|
|
1249
1249
|
position: "relative",
|
|
1250
1250
|
transform: "none",
|
|
1251
1251
|
maxWidth: "100%",
|
|
@@ -1258,12 +1258,12 @@ const lo = Be(
|
|
|
1258
1258
|
"&.Mui-focused": { color: e.design.tokens["text.secondary"] },
|
|
1259
1259
|
"&.Mui-error": { color: e.design.tokens["status.danger"] },
|
|
1260
1260
|
"&.Mui-disabled": { color: e.design.tokens["text.muted"] }
|
|
1261
|
-
})),
|
|
1261
|
+
})), po = a("span")(({ theme: e }) => ({
|
|
1262
1262
|
display: "flex",
|
|
1263
1263
|
alignItems: "center",
|
|
1264
1264
|
gap: o(e.design.space[2]),
|
|
1265
1265
|
minWidth: 0
|
|
1266
|
-
})),
|
|
1266
|
+
})), fo = a("i", {
|
|
1267
1267
|
shouldForwardProp: (e) => e !== "token"
|
|
1268
1268
|
})(({ theme: e, token: t }) => ({
|
|
1269
1269
|
flex: "none",
|
|
@@ -1271,11 +1271,11 @@ const lo = Be(
|
|
|
1271
1271
|
height: o(e.design.space[2]),
|
|
1272
1272
|
borderRadius: o(e.design.radii.sm / 2),
|
|
1273
1273
|
backgroundColor: e.design.tokens[t]
|
|
1274
|
-
})),
|
|
1274
|
+
})), mo = a("span")({
|
|
1275
1275
|
display: "flex",
|
|
1276
1276
|
flexDirection: "column",
|
|
1277
1277
|
minWidth: 0
|
|
1278
|
-
}),
|
|
1278
|
+
}), ho = a("span")(({ theme: e }) => ({
|
|
1279
1279
|
fontSize: o(e.design.typeScale.caption),
|
|
1280
1280
|
color: e.design.tokens["text.muted"],
|
|
1281
1281
|
whiteSpace: "normal"
|
|
@@ -1283,10 +1283,10 @@ const lo = Be(
|
|
|
1283
1283
|
overflow: "hidden",
|
|
1284
1284
|
textOverflow: "ellipsis",
|
|
1285
1285
|
whiteSpace: "nowrap"
|
|
1286
|
-
}),
|
|
1286
|
+
}), bo = a(be)(({ theme: e }) => ({
|
|
1287
1287
|
color: e.design.tokens["text.muted"]
|
|
1288
1288
|
}));
|
|
1289
|
-
function
|
|
1289
|
+
function ti({
|
|
1290
1290
|
label: e,
|
|
1291
1291
|
options: t,
|
|
1292
1292
|
value: n,
|
|
@@ -1296,19 +1296,19 @@ function ei({
|
|
|
1296
1296
|
error: l,
|
|
1297
1297
|
size: d
|
|
1298
1298
|
}) {
|
|
1299
|
-
const g = z(), m = Ne(
|
|
1299
|
+
const g = z(), m = Ne(co), p = (d ?? m) === ut.Compact, h = p ? uo : ce, y = E(), b = `${y}-label`, f = `${y}-helper`, u = new Map(t.map((k) => [k.value, k]));
|
|
1300
1300
|
return /* @__PURE__ */ v(h, { fullWidth: !p, disabled: c, error: !!l, children: [
|
|
1301
1301
|
/* @__PURE__ */ i(
|
|
1302
|
-
|
|
1302
|
+
go,
|
|
1303
1303
|
{
|
|
1304
1304
|
id: b,
|
|
1305
1305
|
shrink: !0,
|
|
1306
|
-
style: p ?
|
|
1306
|
+
style: p ? Ft : void 0,
|
|
1307
1307
|
children: e
|
|
1308
1308
|
}
|
|
1309
1309
|
),
|
|
1310
1310
|
/* @__PURE__ */ v(
|
|
1311
|
-
|
|
1311
|
+
$t,
|
|
1312
1312
|
{
|
|
1313
1313
|
labelId: b,
|
|
1314
1314
|
multiple: s,
|
|
@@ -1316,7 +1316,7 @@ function ei({
|
|
|
1316
1316
|
displayEmpty: !0,
|
|
1317
1317
|
renderValue: (k) => {
|
|
1318
1318
|
const C = Array.isArray(k) ? k : [k];
|
|
1319
|
-
return p && C.length === 0 ? /* @__PURE__ */ i(
|
|
1319
|
+
return p && C.length === 0 ? /* @__PURE__ */ i(bo, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(be, { children: C.map((P) => {
|
|
1320
1320
|
var F;
|
|
1321
1321
|
return ((F = u.get(P)) == null ? void 0 : F.label) ?? P;
|
|
1322
1322
|
}).join(", ") });
|
|
@@ -1325,12 +1325,12 @@ function ei({
|
|
|
1325
1325
|
onChange: (k) => r(k.target.value),
|
|
1326
1326
|
children: [
|
|
1327
1327
|
t.length === 0 && /* @__PURE__ */ i(Fe, { disabled: !0, value: "", children: g.formatMessage({ id: "ds.inputs.rich-select.empty" }) }),
|
|
1328
|
-
t.map((k) => /* @__PURE__ */ i(Fe, { value: k.value, children: /* @__PURE__ */ v(
|
|
1329
|
-
k.tone && /* @__PURE__ */ i(
|
|
1328
|
+
t.map((k) => /* @__PURE__ */ i(Fe, { value: k.value, children: /* @__PURE__ */ v(po, { children: [
|
|
1329
|
+
k.tone && /* @__PURE__ */ i(fo, { token: k.tone }),
|
|
1330
1330
|
k.icon,
|
|
1331
|
-
/* @__PURE__ */ v(
|
|
1331
|
+
/* @__PURE__ */ v(mo, { children: [
|
|
1332
1332
|
/* @__PURE__ */ i(be, { children: k.label }),
|
|
1333
|
-
k.description && /* @__PURE__ */ i(
|
|
1333
|
+
k.description && /* @__PURE__ */ i(ho, { children: k.description })
|
|
1334
1334
|
] })
|
|
1335
1335
|
] }) }, k.value))
|
|
1336
1336
|
]
|
|
@@ -1339,7 +1339,7 @@ function ei({
|
|
|
1339
1339
|
l && /* @__PURE__ */ i(de, { id: f, children: l })
|
|
1340
1340
|
] });
|
|
1341
1341
|
}
|
|
1342
|
-
const
|
|
1342
|
+
const ni = { l: 0.72, c: 0.12 }, oi = [
|
|
1343
1343
|
266,
|
|
1344
1344
|
296,
|
|
1345
1345
|
326,
|
|
@@ -1352,7 +1352,7 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
|
|
|
1352
1352
|
176,
|
|
1353
1353
|
206,
|
|
1354
1354
|
236
|
|
1355
|
-
],
|
|
1355
|
+
], gt = [
|
|
1356
1356
|
"#81a2f0",
|
|
1357
1357
|
"#ab94e7",
|
|
1358
1358
|
"#cb89cd",
|
|
@@ -1365,25 +1365,25 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
|
|
|
1365
1365
|
"#37bda2",
|
|
1366
1366
|
"#18b9c9",
|
|
1367
1367
|
"#4eb0e5"
|
|
1368
|
-
],
|
|
1369
|
-
const t =
|
|
1368
|
+
], ri = "#767676", ii = gt[6], si = "#111a2f", ai = "#5674be", yo = /^#?([0-9a-f]{6})$/i, Y = (e) => {
|
|
1369
|
+
const t = yo.exec(e.trim());
|
|
1370
1370
|
return t ? `#${t[1].toLowerCase()}` : null;
|
|
1371
|
-
},
|
|
1371
|
+
}, vo = a("div")(({ theme: e }) => ({
|
|
1372
1372
|
display: "flex",
|
|
1373
1373
|
alignItems: "center",
|
|
1374
1374
|
gap: o(e.design.space[3])
|
|
1375
|
-
})),
|
|
1375
|
+
})), xo = a("span")(({ theme: e }) => ({
|
|
1376
1376
|
flex: "none",
|
|
1377
1377
|
width: o(e.design.densityValues[e.design.density].control),
|
|
1378
1378
|
height: o(e.design.densityValues[e.design.density].control),
|
|
1379
1379
|
borderRadius: o(e.design.radii.md),
|
|
1380
1380
|
border: R(e.design.tokens["border.control"])
|
|
1381
|
-
})),
|
|
1381
|
+
})), wo = a("div")(({ theme: e }) => ({
|
|
1382
1382
|
display: "flex",
|
|
1383
1383
|
flexWrap: "wrap",
|
|
1384
1384
|
gap: o(e.design.space[2]),
|
|
1385
1385
|
marginTop: o(e.design.space[2])
|
|
1386
|
-
})),
|
|
1386
|
+
})), ko = a(Ge)(({ theme: e }) => {
|
|
1387
1387
|
const { densityValues: t, density: n, space: r } = e.design, s = t[n].control - r[2];
|
|
1388
1388
|
return {
|
|
1389
1389
|
width: o(s),
|
|
@@ -1399,11 +1399,11 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
|
|
|
1399
1399
|
}
|
|
1400
1400
|
};
|
|
1401
1401
|
});
|
|
1402
|
-
function
|
|
1402
|
+
function li({
|
|
1403
1403
|
label: e,
|
|
1404
1404
|
value: t,
|
|
1405
1405
|
onChange: n,
|
|
1406
|
-
swatches: r =
|
|
1406
|
+
swatches: r = gt
|
|
1407
1407
|
}) {
|
|
1408
1408
|
const s = z(), c = E(), [l, d] = I(t), g = l !== "" && Y(l) === null;
|
|
1409
1409
|
G(() => {
|
|
@@ -1418,9 +1418,9 @@ function ai({
|
|
|
1418
1418
|
}, p = Y(t);
|
|
1419
1419
|
return /* @__PURE__ */ v(ce, { fullWidth: !0, error: g, children: [
|
|
1420
1420
|
/* @__PURE__ */ i(je, { htmlFor: `${c}-hex`, children: e }),
|
|
1421
|
-
/* @__PURE__ */ v(
|
|
1421
|
+
/* @__PURE__ */ v(vo, { children: [
|
|
1422
1422
|
/* @__PURE__ */ i(
|
|
1423
|
-
|
|
1423
|
+
xo,
|
|
1424
1424
|
{
|
|
1425
1425
|
"aria-hidden": "true",
|
|
1426
1426
|
style: { backgroundColor: p ?? void 0 }
|
|
@@ -1444,12 +1444,12 @@ function ai({
|
|
|
1444
1444
|
] }),
|
|
1445
1445
|
g && /* @__PURE__ */ i(de, { id: `${c}-error`, children: s.formatMessage({ id: "ds.inputs.color.invalid" }) }),
|
|
1446
1446
|
/* @__PURE__ */ i(
|
|
1447
|
-
|
|
1447
|
+
wo,
|
|
1448
1448
|
{
|
|
1449
1449
|
role: "group",
|
|
1450
1450
|
"aria-label": s.formatMessage({ id: "ds.inputs.color.swatches" }),
|
|
1451
1451
|
children: r.map((h) => /* @__PURE__ */ i(
|
|
1452
|
-
|
|
1452
|
+
ko,
|
|
1453
1453
|
{
|
|
1454
1454
|
"aria-pressed": Y(h) === p,
|
|
1455
1455
|
"aria-label": h,
|
|
@@ -1462,10 +1462,10 @@ function ai({
|
|
|
1462
1462
|
)
|
|
1463
1463
|
] });
|
|
1464
1464
|
}
|
|
1465
|
-
const
|
|
1465
|
+
const Co = 6, So = a("div", {
|
|
1466
1466
|
shouldForwardProp: (e) => e !== "edges"
|
|
1467
1467
|
})(({ theme: e, edges: t }) => {
|
|
1468
|
-
const { tokens: n, radii: r, space: s } = e.design, c = o(s[1] *
|
|
1468
|
+
const { tokens: n, radii: r, space: s } = e.design, c = o(s[1] * Co), l = n["text.primary"], d = t.start ? `transparent, ${l} ${c}` : l, g = t.end ? `${l} calc(100% - ${c}), transparent` : l;
|
|
1469
1469
|
return {
|
|
1470
1470
|
maskImage: t.start || t.end ? `linear-gradient(to right, ${d}, ${g})` : "none",
|
|
1471
1471
|
display: "inline-flex",
|
|
@@ -1490,7 +1490,7 @@ const ko = 6, Co = a("div", {
|
|
|
1490
1490
|
backgroundColor: "transparent"
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
|
-
}),
|
|
1493
|
+
}), Io = a(Ge)(({ theme: e }) => {
|
|
1494
1494
|
const { tokens: t, space: n, typeScale: r, fonts: s, densityValues: c, radii: l } = e.design;
|
|
1495
1495
|
return {
|
|
1496
1496
|
flex: "none",
|
|
@@ -1522,12 +1522,12 @@ const ko = 6, Co = a("div", {
|
|
|
1522
1522
|
'&[aria-checked="true"]': { backgroundColor: t["bg.raised"] }
|
|
1523
1523
|
}
|
|
1524
1524
|
};
|
|
1525
|
-
}),
|
|
1525
|
+
}), To = a("span")(({ theme: e }) => ({
|
|
1526
1526
|
fontFamily: e.design.fonts.mono,
|
|
1527
1527
|
fontSize: o(e.design.typeScale.caption),
|
|
1528
1528
|
color: e.design.tokens["text.muted"]
|
|
1529
1529
|
}));
|
|
1530
|
-
function
|
|
1530
|
+
function di({
|
|
1531
1531
|
options: e,
|
|
1532
1532
|
value: t,
|
|
1533
1533
|
onChange: n,
|
|
@@ -1571,7 +1571,7 @@ function li({
|
|
|
1571
1571
|
0
|
|
1572
1572
|
);
|
|
1573
1573
|
return /* @__PURE__ */ i(
|
|
1574
|
-
|
|
1574
|
+
So,
|
|
1575
1575
|
{
|
|
1576
1576
|
ref: s,
|
|
1577
1577
|
role: "radiogroup",
|
|
@@ -1582,7 +1582,7 @@ function li({
|
|
|
1582
1582
|
children: e.map((p, h) => {
|
|
1583
1583
|
const y = p.value === t;
|
|
1584
1584
|
return /* @__PURE__ */ v(
|
|
1585
|
-
|
|
1585
|
+
Io,
|
|
1586
1586
|
{
|
|
1587
1587
|
role: "radio",
|
|
1588
1588
|
"aria-checked": y,
|
|
@@ -1590,7 +1590,7 @@ function li({
|
|
|
1590
1590
|
onClick: () => n(p.value),
|
|
1591
1591
|
children: [
|
|
1592
1592
|
p.label,
|
|
1593
|
-
p.count !== void 0 && /* @__PURE__ */ i(
|
|
1593
|
+
p.count !== void 0 && /* @__PURE__ */ i(To, { children: p.count })
|
|
1594
1594
|
]
|
|
1595
1595
|
},
|
|
1596
1596
|
p.value
|
|
@@ -1599,9 +1599,9 @@ function li({
|
|
|
1599
1599
|
}
|
|
1600
1600
|
);
|
|
1601
1601
|
}
|
|
1602
|
-
const
|
|
1602
|
+
const $o = [32, 160, 8239, 8201].map(
|
|
1603
1603
|
(e) => String.fromCharCode(e)
|
|
1604
|
-
),
|
|
1604
|
+
), Fo = (e) => {
|
|
1605
1605
|
var n, r;
|
|
1606
1606
|
const t = new Intl.NumberFormat(e).formatToParts(11111.1);
|
|
1607
1607
|
return {
|
|
@@ -1609,7 +1609,7 @@ const To = [32, 160, 8239, 8201].map(
|
|
|
1609
1609
|
decimal: ((r = t.find((s) => s.type === "decimal")) == null ? void 0 : r.value) ?? "."
|
|
1610
1610
|
};
|
|
1611
1611
|
}, Pe = (e, t) => {
|
|
1612
|
-
const r = [t.group,
|
|
1612
|
+
const r = [t.group, ...$o].reduce(
|
|
1613
1613
|
(c, l) => c.split(l).join(""),
|
|
1614
1614
|
e.trim()
|
|
1615
1615
|
).replace(",", ".");
|
|
@@ -1618,7 +1618,7 @@ const To = [32, 160, 8239, 8201].map(
|
|
|
1618
1618
|
const s = Number.parseFloat(r);
|
|
1619
1619
|
return Number.isFinite(s) ? s : null;
|
|
1620
1620
|
};
|
|
1621
|
-
function
|
|
1621
|
+
function ci({
|
|
1622
1622
|
label: e,
|
|
1623
1623
|
value: t,
|
|
1624
1624
|
onChange: n,
|
|
@@ -1628,7 +1628,7 @@ function di({
|
|
|
1628
1628
|
adornment: l
|
|
1629
1629
|
}) {
|
|
1630
1630
|
const d = z(), g = ye(
|
|
1631
|
-
() =>
|
|
1631
|
+
() => Fo(d.locale),
|
|
1632
1632
|
[d.locale]
|
|
1633
1633
|
), m = Q(
|
|
1634
1634
|
(u) => u === null ? "" : d.formatNumber(u, {
|
|
@@ -1639,7 +1639,7 @@ function di({
|
|
|
1639
1639
|
), [p, h] = I(!1), [y, b] = I(() => m(t));
|
|
1640
1640
|
return G(() => {
|
|
1641
1641
|
p || b(m(t));
|
|
1642
|
-
}, [t, p, m]), /* @__PURE__ */ i(
|
|
1642
|
+
}, [t, p, m]), /* @__PURE__ */ i(Je, { label: e, children: /* @__PURE__ */ i(
|
|
1643
1643
|
ve,
|
|
1644
1644
|
{
|
|
1645
1645
|
disabled: c,
|
|
@@ -1658,20 +1658,20 @@ function di({
|
|
|
1658
1658
|
let u = Pe(y, g);
|
|
1659
1659
|
u !== null && (u = Number.parseFloat(Math.max(u, s).toFixed(r))), n(u), b(m(u));
|
|
1660
1660
|
},
|
|
1661
|
-
endAdornment: l ? /* @__PURE__ */ i(
|
|
1661
|
+
endAdornment: l ? /* @__PURE__ */ i(Dt, { position: "end", children: l }) : void 0
|
|
1662
1662
|
}
|
|
1663
1663
|
) });
|
|
1664
1664
|
}
|
|
1665
|
-
const
|
|
1665
|
+
const Mo = a("div")(({ theme: e }) => ({
|
|
1666
1666
|
display: "flex",
|
|
1667
1667
|
flexDirection: "column",
|
|
1668
1668
|
gap: o(e.design.space[2]),
|
|
1669
1669
|
minWidth: 0
|
|
1670
|
-
})),
|
|
1670
|
+
})), Ro = a("span")(({ theme: e }) => ({
|
|
1671
1671
|
fontSize: o(e.design.typeScale.small),
|
|
1672
1672
|
fontWeight: M.medium,
|
|
1673
1673
|
color: e.design.tokens["text.secondary"]
|
|
1674
|
-
})),
|
|
1674
|
+
})), Wo = a("div", {
|
|
1675
1675
|
shouldForwardProp: (e) => e !== "active"
|
|
1676
1676
|
})(({ theme: e, active: t }) => {
|
|
1677
1677
|
const { tokens: n, space: r, radii: s } = e.design;
|
|
@@ -1693,7 +1693,7 @@ const Fo = a("div")(({ theme: e }) => ({
|
|
|
1693
1693
|
transition: oe(e, ["border-color", "background-color"]),
|
|
1694
1694
|
"&:hover": { borderColor: n.accent }
|
|
1695
1695
|
};
|
|
1696
|
-
}),
|
|
1696
|
+
}), Oo = a("span")(({ theme: e }) => {
|
|
1697
1697
|
const { tokens: t, space: n } = e.design;
|
|
1698
1698
|
return {
|
|
1699
1699
|
display: "inline-flex",
|
|
@@ -1706,30 +1706,30 @@ const Fo = a("div")(({ theme: e }) => ({
|
|
|
1706
1706
|
color: t["accent.text"],
|
|
1707
1707
|
"& svg": { width: o(n[5]), height: o(n[5]) }
|
|
1708
1708
|
};
|
|
1709
|
-
}),
|
|
1709
|
+
}), Ao = a("span")(({ theme: e }) => ({
|
|
1710
1710
|
fontSize: o(e.design.typeScale.body),
|
|
1711
1711
|
[B.down($.Tablet)]: { display: "none" }
|
|
1712
|
-
})),
|
|
1712
|
+
})), Eo = a("div")(({ theme: e }) => ({
|
|
1713
1713
|
display: "flex",
|
|
1714
1714
|
flexWrap: "wrap",
|
|
1715
1715
|
alignItems: "center",
|
|
1716
1716
|
justifyContent: "space-between",
|
|
1717
1717
|
gap: o(e.design.space[2])
|
|
1718
|
-
})),
|
|
1718
|
+
})), zo = a("span")(({ theme: e }) => ({
|
|
1719
1719
|
fontSize: o(e.design.typeScale.small),
|
|
1720
1720
|
color: e.design.tokens["text.muted"]
|
|
1721
|
-
})),
|
|
1721
|
+
})), Do = a("p")(({ theme: e }) => ({
|
|
1722
1722
|
margin: 0,
|
|
1723
1723
|
fontSize: o(e.design.typeScale.small),
|
|
1724
1724
|
color: e.design.tokens["status.danger"]
|
|
1725
|
-
})),
|
|
1725
|
+
})), Lo = a("img")(({ theme: e }) => ({
|
|
1726
1726
|
width: o(e.design.space[4]),
|
|
1727
1727
|
height: o(e.design.space[4])
|
|
1728
|
-
})),
|
|
1729
|
-
const { value: t, unit: n } =
|
|
1728
|
+
})), Po = (e) => {
|
|
1729
|
+
const { value: t, unit: n } = Lt(e);
|
|
1730
1730
|
return `${t} ${n}`;
|
|
1731
1731
|
};
|
|
1732
|
-
function
|
|
1732
|
+
function ui({
|
|
1733
1733
|
onDrop: e,
|
|
1734
1734
|
multiple: t = !0,
|
|
1735
1735
|
accept: n,
|
|
@@ -1739,13 +1739,13 @@ function ci({
|
|
|
1739
1739
|
cloudImport: l,
|
|
1740
1740
|
children: d
|
|
1741
1741
|
}) {
|
|
1742
|
-
const g = z(), m = E(), p = E(), [h, y] = I(null), [b, f] = I(!1), u = r === void 0 ? null :
|
|
1742
|
+
const g = z(), m = E(), p = E(), [h, y] = I(null), [b, f] = I(!1), u = r === void 0 ? null : Po(r), x = s ?? (u === null ? null : g.formatMessage(
|
|
1743
1743
|
{ id: "ds.inputs.drop-zone.max-size" },
|
|
1744
1744
|
{ size: u, multiple: String(t) }
|
|
1745
1745
|
)), k = (A, W) => {
|
|
1746
1746
|
const re = r === void 0 ? [] : A.filter((_) => _.size > r), ae = A.filter((_) => !re.includes(_));
|
|
1747
1747
|
W.some(
|
|
1748
|
-
(_) => _.errors.some((q) => q.code ===
|
|
1748
|
+
(_) => _.errors.some((q) => q.code === zt.TooManyFiles)
|
|
1749
1749
|
) ? y(
|
|
1750
1750
|
"too-many"
|
|
1751
1751
|
/* TooMany */
|
|
@@ -1756,7 +1756,7 @@ function ci({
|
|
|
1756
1756
|
A.length === 1 ? "too-big" : "some-too-big"
|
|
1757
1757
|
/* SomeTooBig */
|
|
1758
1758
|
) : y(null), ae.length > 0 && e(ae);
|
|
1759
|
-
}, { getRootProps: C, getInputProps: P, isDragActive: F, open: D } =
|
|
1759
|
+
}, { getRootProps: C, getInputProps: P, isDragActive: F, open: D } = At({
|
|
1760
1760
|
onDrop: k,
|
|
1761
1761
|
multiple: t,
|
|
1762
1762
|
accept: n,
|
|
@@ -1768,18 +1768,18 @@ function ci({
|
|
|
1768
1768
|
{ multiple: String(t) }
|
|
1769
1769
|
);
|
|
1770
1770
|
return /* @__PURE__ */ v(
|
|
1771
|
-
|
|
1771
|
+
Mo,
|
|
1772
1772
|
{
|
|
1773
1773
|
role: "group",
|
|
1774
1774
|
"aria-labelledby": c !== void 0 ? m : void 0,
|
|
1775
1775
|
"aria-describedby": x !== null ? p : void 0,
|
|
1776
1776
|
children: [
|
|
1777
|
-
c !== void 0 && /* @__PURE__ */ i(
|
|
1778
|
-
/* @__PURE__ */ v(
|
|
1777
|
+
c !== void 0 && /* @__PURE__ */ i(Ro, { id: m, children: c }),
|
|
1778
|
+
/* @__PURE__ */ v(Wo, { ...C({ onClick: D }), active: F, children: [
|
|
1779
1779
|
/* @__PURE__ */ i("input", { ...P({ "aria-hidden": !0 }) }),
|
|
1780
1780
|
d ?? /* @__PURE__ */ v(ne, { children: [
|
|
1781
|
-
/* @__PURE__ */ i(
|
|
1782
|
-
/* @__PURE__ */ i(
|
|
1781
|
+
/* @__PURE__ */ i(Oo, { "aria-hidden": !0, children: /* @__PURE__ */ i(Pt, {}) }),
|
|
1782
|
+
/* @__PURE__ */ i(Ao, { children: g.formatMessage(
|
|
1783
1783
|
{
|
|
1784
1784
|
id: F ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
|
|
1785
1785
|
},
|
|
@@ -1797,24 +1797,24 @@ function ci({
|
|
|
1797
1797
|
}
|
|
1798
1798
|
)
|
|
1799
1799
|
] }),
|
|
1800
|
-
(l !== void 0 || x !== null) && /* @__PURE__ */ v(
|
|
1800
|
+
(l !== void 0 || x !== null) && /* @__PURE__ */ v(Eo, { children: [
|
|
1801
1801
|
l !== void 0 && /* @__PURE__ */ i(
|
|
1802
1802
|
Z,
|
|
1803
1803
|
{
|
|
1804
1804
|
variant: "text",
|
|
1805
|
-
startIcon: /* @__PURE__ */ i(
|
|
1805
|
+
startIcon: /* @__PURE__ */ i(Lo, { src: Et, alt: "" }),
|
|
1806
1806
|
onClick: () => f(!0),
|
|
1807
1807
|
children: g.formatMessage({ id: "ds.inputs.drop-zone.cloud" })
|
|
1808
1808
|
}
|
|
1809
1809
|
),
|
|
1810
|
-
x !== null && /* @__PURE__ */ i(
|
|
1810
|
+
x !== null && /* @__PURE__ */ i(zo, { id: p, children: x })
|
|
1811
1811
|
] }),
|
|
1812
|
-
/* @__PURE__ */ i(
|
|
1812
|
+
/* @__PURE__ */ i(Do, { role: "alert", children: h !== null && g.formatMessage(
|
|
1813
1813
|
{ id: `ds.inputs.drop-zone.${h}` },
|
|
1814
1814
|
{ size: u ?? "" }
|
|
1815
1815
|
) }),
|
|
1816
1816
|
l !== void 0 && /* @__PURE__ */ i(
|
|
1817
|
-
|
|
1817
|
+
so,
|
|
1818
1818
|
{
|
|
1819
1819
|
open: b,
|
|
1820
1820
|
onClose: () => f(!1),
|
|
@@ -1832,22 +1832,22 @@ function ci({
|
|
|
1832
1832
|
}
|
|
1833
1833
|
);
|
|
1834
1834
|
}
|
|
1835
|
-
var
|
|
1836
|
-
const
|
|
1835
|
+
var Ho = /* @__PURE__ */ ((e) => (e.Default = "default", e.Danger = "danger", e.Warning = "warning", e))(Ho || {});
|
|
1836
|
+
const Bo = a("form")(({ theme: e }) => ({
|
|
1837
1837
|
display: "flex",
|
|
1838
1838
|
flexDirection: "column",
|
|
1839
1839
|
gap: o(e.design.space[4]),
|
|
1840
1840
|
color: e.design.tokens["text.secondary"],
|
|
1841
1841
|
overflowWrap: "anywhere"
|
|
1842
|
-
})),
|
|
1842
|
+
})), No = (e, t) => {
|
|
1843
1843
|
const { paper: n } = e.design.tokens, r = e.design.tokens["paper.on"];
|
|
1844
1844
|
return $e(t, n) >= $e(t, r) ? n : r;
|
|
1845
|
-
},
|
|
1845
|
+
}, _o = {
|
|
1846
1846
|
default: "primary",
|
|
1847
1847
|
danger: "error",
|
|
1848
1848
|
warning: "warning"
|
|
1849
1849
|
};
|
|
1850
|
-
function
|
|
1850
|
+
function Vo({
|
|
1851
1851
|
open: e,
|
|
1852
1852
|
title: t,
|
|
1853
1853
|
body: n,
|
|
@@ -1882,7 +1882,7 @@ function _o({
|
|
|
1882
1882
|
W.preventDefault(), U();
|
|
1883
1883
|
};
|
|
1884
1884
|
return /* @__PURE__ */ i(
|
|
1885
|
-
|
|
1885
|
+
Ze,
|
|
1886
1886
|
{
|
|
1887
1887
|
open: e,
|
|
1888
1888
|
onClose: D,
|
|
@@ -1905,13 +1905,13 @@ function _o({
|
|
|
1905
1905
|
type: "submit",
|
|
1906
1906
|
form: p,
|
|
1907
1907
|
variant: "contained",
|
|
1908
|
-
color:
|
|
1908
|
+
color: _o[s],
|
|
1909
1909
|
disabled: !P,
|
|
1910
1910
|
loading: b,
|
|
1911
1911
|
autoFocus: c === void 0 && !F,
|
|
1912
1912
|
sx: s === "warning" ? {
|
|
1913
1913
|
"&:not(.Mui-disabled)": {
|
|
1914
|
-
color:
|
|
1914
|
+
color: No(
|
|
1915
1915
|
m,
|
|
1916
1916
|
m.design.tokens["status.warning"]
|
|
1917
1917
|
)
|
|
@@ -1921,10 +1921,10 @@ function _o({
|
|
|
1921
1921
|
}
|
|
1922
1922
|
)
|
|
1923
1923
|
] }),
|
|
1924
|
-
children: /* @__PURE__ */ v(
|
|
1924
|
+
children: /* @__PURE__ */ v(Bo, { id: p, onSubmit: A, noValidate: !0, children: [
|
|
1925
1925
|
/* @__PURE__ */ i("div", { children: n }),
|
|
1926
1926
|
c !== void 0 && /* @__PURE__ */ i(
|
|
1927
|
-
|
|
1927
|
+
nn,
|
|
1928
1928
|
{
|
|
1929
1929
|
label: g.formatMessage(
|
|
1930
1930
|
{ id: "ds.layers.confirm-dialog.type-to-confirm" },
|
|
@@ -1938,13 +1938,13 @@ function _o({
|
|
|
1938
1938
|
fullWidth: !0
|
|
1939
1939
|
}
|
|
1940
1940
|
),
|
|
1941
|
-
u && /* @__PURE__ */ i(
|
|
1941
|
+
u && /* @__PURE__ */ i(tn, { severity: "error", children: g.formatMessage({ id: "ds.layers.confirm-dialog.failed" }) })
|
|
1942
1942
|
] })
|
|
1943
1943
|
}
|
|
1944
1944
|
);
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1947
|
-
const
|
|
1946
|
+
var jo = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(jo || {});
|
|
1947
|
+
const Go = 320, Uo = a("div")(({ theme: e }) => {
|
|
1948
1948
|
const { tokens: t, space: n } = e.design;
|
|
1949
1949
|
return {
|
|
1950
1950
|
flex: "none",
|
|
@@ -1955,47 +1955,47 @@ const jo = 320, Go = a("div")(({ theme: e }) => {
|
|
|
1955
1955
|
padding: `${o(n[2])} ${o(n[2])} ${o(n[2])} ${o(n[4])}`,
|
|
1956
1956
|
borderBottom: R(t["border.subtle"])
|
|
1957
1957
|
};
|
|
1958
|
-
}),
|
|
1958
|
+
}), qo = a("h2")(({ theme: e }) => ({
|
|
1959
1959
|
margin: 0,
|
|
1960
1960
|
minWidth: 0,
|
|
1961
1961
|
color: e.design.tokens["text.primary"],
|
|
1962
1962
|
fontSize: o(e.design.typeScale.body),
|
|
1963
1963
|
fontWeight: M.semibold,
|
|
1964
1964
|
overflowWrap: "anywhere"
|
|
1965
|
-
})),
|
|
1965
|
+
})), pt = a("div")(({ theme: e }) => ({
|
|
1966
1966
|
display: "flex",
|
|
1967
1967
|
flexDirection: "column",
|
|
1968
1968
|
gap: o(e.design.space[3]),
|
|
1969
1969
|
fontSize: o(e.design.typeScale.body)
|
|
1970
|
-
})),
|
|
1970
|
+
})), Ko = a(pt)(({ theme: e }) => ({
|
|
1971
1971
|
padding: o(e.design.space[4])
|
|
1972
1972
|
}));
|
|
1973
|
-
function
|
|
1973
|
+
function gi({
|
|
1974
1974
|
anchorEl: e,
|
|
1975
1975
|
open: t,
|
|
1976
1976
|
onClose: n,
|
|
1977
1977
|
title: r,
|
|
1978
1978
|
placement: s = "bottom-start",
|
|
1979
|
-
width: c =
|
|
1979
|
+
width: c = Go,
|
|
1980
1980
|
children: l
|
|
1981
1981
|
}) {
|
|
1982
|
-
const d = z(), g = E(), m =
|
|
1982
|
+
const d = z(), g = E(), m = Xe() === $.Mobile, p = d.formatMessage({
|
|
1983
1983
|
id: "ds.layers.anchored-panel.close"
|
|
1984
1984
|
}), h = t && e !== null;
|
|
1985
1985
|
if (m)
|
|
1986
1986
|
return /* @__PURE__ */ i(
|
|
1987
|
-
|
|
1987
|
+
Qe,
|
|
1988
1988
|
{
|
|
1989
1989
|
open: h,
|
|
1990
1990
|
onClose: n,
|
|
1991
1991
|
title: r,
|
|
1992
1992
|
closeLabel: p,
|
|
1993
|
-
children: /* @__PURE__ */ i(
|
|
1993
|
+
children: /* @__PURE__ */ i(pt, { children: l })
|
|
1994
1994
|
}
|
|
1995
1995
|
);
|
|
1996
1996
|
const y = s === "bottom-end" ? "right" : "left";
|
|
1997
1997
|
return /* @__PURE__ */ v(
|
|
1998
|
-
|
|
1998
|
+
en,
|
|
1999
1999
|
{
|
|
2000
2000
|
anchorEl: e,
|
|
2001
2001
|
open: h,
|
|
@@ -2017,17 +2017,17 @@ function ui({
|
|
|
2017
2017
|
}
|
|
2018
2018
|
},
|
|
2019
2019
|
children: [
|
|
2020
|
-
/* @__PURE__ */ v(
|
|
2021
|
-
/* @__PURE__ */ i(
|
|
2020
|
+
/* @__PURE__ */ v(Uo, { children: [
|
|
2021
|
+
/* @__PURE__ */ i(qo, { id: g, children: r }),
|
|
2022
2022
|
/* @__PURE__ */ i(ee, { "aria-label": p, onClick: n, children: /* @__PURE__ */ i(ue, { "aria-hidden": !0 }) })
|
|
2023
2023
|
] }),
|
|
2024
|
-
/* @__PURE__ */ i(
|
|
2024
|
+
/* @__PURE__ */ i(Ko, { children: l })
|
|
2025
2025
|
]
|
|
2026
2026
|
}
|
|
2027
2027
|
);
|
|
2028
2028
|
}
|
|
2029
|
-
const
|
|
2030
|
-
function
|
|
2029
|
+
const ft = Be(null);
|
|
2030
|
+
function pi({ children: e }) {
|
|
2031
2031
|
const [t, n] = I([]), [r, s] = I(null), c = j(0), l = j([]);
|
|
2032
2032
|
l.current = t;
|
|
2033
2033
|
const d = t.length > 0 ? t[0] : null;
|
|
@@ -2047,11 +2047,11 @@ function gi({ children: e }) {
|
|
|
2047
2047
|
), m = (h) => {
|
|
2048
2048
|
d !== null && (d.resolve(h), n((y) => y.filter((b) => b !== d)));
|
|
2049
2049
|
}, p = ye(() => ({ confirm: g }), [g]);
|
|
2050
|
-
return /* @__PURE__ */ v(
|
|
2050
|
+
return /* @__PURE__ */ v(ft.Provider, { value: p, children: [
|
|
2051
2051
|
e,
|
|
2052
2052
|
r !== null && // A new key per request: each one starts from an empty confirmation field.
|
|
2053
2053
|
/* @__PURE__ */ i(
|
|
2054
|
-
|
|
2054
|
+
Vo,
|
|
2055
2055
|
{
|
|
2056
2056
|
open: d === r,
|
|
2057
2057
|
...r.options,
|
|
@@ -2062,18 +2062,18 @@ function gi({ children: e }) {
|
|
|
2062
2062
|
)
|
|
2063
2063
|
] });
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2066
|
-
const e = Ne(
|
|
2065
|
+
function fi() {
|
|
2066
|
+
const e = Ne(ft);
|
|
2067
2067
|
if (e === null)
|
|
2068
2068
|
throw new Error(
|
|
2069
2069
|
"useConfirmDialog must be called inside a ConfirmDialogProvider"
|
|
2070
2070
|
);
|
|
2071
2071
|
return e;
|
|
2072
2072
|
}
|
|
2073
|
-
const
|
|
2073
|
+
const Yo = 1, Xo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, Qo = (e, t, n) => {
|
|
2074
2074
|
const [r, s] = I(!1), c = Q(() => {
|
|
2075
2075
|
const l = e.current;
|
|
2076
|
-
l !== null && s(
|
|
2076
|
+
l !== null && s(Xo(l, t) > Yo);
|
|
2077
2077
|
}, [e, t]);
|
|
2078
2078
|
return _e(c, [c, n]), G(() => {
|
|
2079
2079
|
const l = e.current;
|
|
@@ -2086,19 +2086,19 @@ const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight
|
|
|
2086
2086
|
};
|
|
2087
2087
|
}, [e, c, n]), r;
|
|
2088
2088
|
};
|
|
2089
|
-
var
|
|
2090
|
-
const
|
|
2089
|
+
var Zo = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(Zo || {});
|
|
2090
|
+
const Jo = 2, er = /* @__PURE__ */ new Set(["Enter", " "]), tr = a("div", {
|
|
2091
2091
|
shouldForwardProp: (e) => e !== "variant"
|
|
2092
2092
|
})(({ theme: e, variant: t }) => ({
|
|
2093
2093
|
minWidth: 0,
|
|
2094
2094
|
...t === "primary" && {
|
|
2095
2095
|
borderBottom: R(e.design.tokens["border.subtle"])
|
|
2096
2096
|
}
|
|
2097
|
-
})),
|
|
2097
|
+
})), mt = 32, nr = a("div", {
|
|
2098
2098
|
shouldForwardProp: (e) => e !== "variant" && e !== "fade"
|
|
2099
2099
|
})(({ theme: e, variant: t, fade: n }) => {
|
|
2100
2100
|
const s = `linear-gradient(to right, ${e.design.tokens["text.primary"]} calc(100% - ${o(
|
|
2101
|
-
|
|
2101
|
+
mt
|
|
2102
2102
|
)}), transparent)`;
|
|
2103
2103
|
return {
|
|
2104
2104
|
position: "relative",
|
|
@@ -2110,7 +2110,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2110
2110
|
"&::-webkit-scrollbar": { display: "none" },
|
|
2111
2111
|
...n && { maskImage: s, WebkitMaskImage: s }
|
|
2112
2112
|
};
|
|
2113
|
-
}),
|
|
2113
|
+
}), ht = (e, t) => {
|
|
2114
2114
|
const { tokens: n, space: r, radii: s, typeScale: c, fonts: l, densityValues: d, density: g } = e.design, m = {
|
|
2115
2115
|
position: "relative",
|
|
2116
2116
|
display: "inline-flex",
|
|
@@ -2150,7 +2150,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2150
2150
|
left: 0,
|
|
2151
2151
|
right: 0,
|
|
2152
2152
|
bottom: 0,
|
|
2153
|
-
height: o(
|
|
2153
|
+
height: o(Jo),
|
|
2154
2154
|
backgroundColor: n.accent
|
|
2155
2155
|
},
|
|
2156
2156
|
...p
|
|
@@ -2171,7 +2171,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2171
2171
|
},
|
|
2172
2172
|
...p
|
|
2173
2173
|
};
|
|
2174
|
-
},
|
|
2174
|
+
}, bt = (e) => e !== "variant", or = a(an, { shouldForwardProp: bt })(({ theme: e, variant: t }) => ht(e, t)), rr = a("button", { shouldForwardProp: bt })(({ theme: e, variant: t }) => ht(e, t)), ir = a("span")(({ theme: e }) => {
|
|
2175
2175
|
const { tokens: t, space: n, radii: r, fonts: s, typeScale: c } = e.design;
|
|
2176
2176
|
return {
|
|
2177
2177
|
display: "inline-flex",
|
|
@@ -2186,17 +2186,17 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2186
2186
|
color: t["text.muted"]
|
|
2187
2187
|
};
|
|
2188
2188
|
}), He = (e, t) => {
|
|
2189
|
-
const n = t.offsetLeft, r = n + t.offsetWidth +
|
|
2189
|
+
const n = t.offsetLeft, r = n + t.offsetWidth + mt;
|
|
2190
2190
|
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
|
|
2191
2191
|
};
|
|
2192
|
-
function
|
|
2192
|
+
function mi({
|
|
2193
2193
|
items: e,
|
|
2194
2194
|
value: t,
|
|
2195
2195
|
onChange: n,
|
|
2196
2196
|
variant: r,
|
|
2197
2197
|
"aria-label": s
|
|
2198
2198
|
}) {
|
|
2199
|
-
const c = z(), l = j(null), d = e.filter((f) => f.hidden !== !0), g =
|
|
2199
|
+
const c = z(), l = j(null), d = e.filter((f) => f.hidden !== !0), g = Qo(l, "horizontal", d.length), m = Q(
|
|
2200
2200
|
() => {
|
|
2201
2201
|
var f;
|
|
2202
2202
|
return Array.from(
|
|
@@ -2221,7 +2221,7 @@ function fi({
|
|
|
2221
2221
|
const u = m(), x = u.findIndex((C) => C === document.activeElement);
|
|
2222
2222
|
if (x < 0)
|
|
2223
2223
|
return;
|
|
2224
|
-
if (
|
|
2224
|
+
if (er.has(f.key)) {
|
|
2225
2225
|
f.key === " " && u[x] instanceof HTMLAnchorElement && (f.preventDefault(), u[x].click());
|
|
2226
2226
|
return;
|
|
2227
2227
|
}
|
|
@@ -2247,8 +2247,8 @@ function fi({
|
|
|
2247
2247
|
d.findIndex((f) => f.value === t),
|
|
2248
2248
|
0
|
|
2249
2249
|
);
|
|
2250
|
-
return /* @__PURE__ */ i(
|
|
2251
|
-
|
|
2250
|
+
return /* @__PURE__ */ i(tr, { variant: r, children: /* @__PURE__ */ i(
|
|
2251
|
+
nr,
|
|
2252
2252
|
{
|
|
2253
2253
|
ref: l,
|
|
2254
2254
|
role: "tablist",
|
|
@@ -2260,7 +2260,7 @@ function fi({
|
|
|
2260
2260
|
children: d.map((f, u) => {
|
|
2261
2261
|
const x = f.value === t, k = /* @__PURE__ */ v(ne, { children: [
|
|
2262
2262
|
f.label,
|
|
2263
|
-
f.badge !== void 0 && /* @__PURE__ */ i(
|
|
2263
|
+
f.badge !== void 0 && /* @__PURE__ */ i(ir, { children: typeof f.badge == "number" ? c.formatNumber(f.badge) : f.badge })
|
|
2264
2264
|
] }), C = {
|
|
2265
2265
|
role: "tab",
|
|
2266
2266
|
"aria-selected": x,
|
|
@@ -2270,7 +2270,7 @@ function fi({
|
|
|
2270
2270
|
onClick: () => n == null ? void 0 : n(f.value)
|
|
2271
2271
|
};
|
|
2272
2272
|
return f.to !== void 0 ? /* @__PURE__ */ i(
|
|
2273
|
-
|
|
2273
|
+
or,
|
|
2274
2274
|
{
|
|
2275
2275
|
to: f.to,
|
|
2276
2276
|
"aria-current": x ? "page" : void 0,
|
|
@@ -2278,58 +2278,58 @@ function fi({
|
|
|
2278
2278
|
children: k
|
|
2279
2279
|
},
|
|
2280
2280
|
f.value
|
|
2281
|
-
) : /* @__PURE__ */ i(
|
|
2281
|
+
) : /* @__PURE__ */ i(rr, { type: "button", ...C, children: k }, f.value);
|
|
2282
2282
|
})
|
|
2283
2283
|
}
|
|
2284
2284
|
) });
|
|
2285
2285
|
}
|
|
2286
2286
|
export {
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2287
|
+
jo as A,
|
|
2288
|
+
Qe as B,
|
|
2289
|
+
zn as C,
|
|
2290
2290
|
$ as D,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2291
|
+
gi as E,
|
|
2292
|
+
Je as F,
|
|
2293
|
+
pi as G,
|
|
2294
|
+
fi as H,
|
|
2295
|
+
so as I,
|
|
2296
|
+
mi as J,
|
|
2297
|
+
ni as K,
|
|
2298
|
+
oi as L,
|
|
2299
|
+
Ze as M,
|
|
2300
|
+
ci as N,
|
|
2301
|
+
gt as O,
|
|
2302
|
+
ri as P,
|
|
2303
|
+
ii as Q,
|
|
2304
|
+
co as R,
|
|
2305
2305
|
J as S,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2306
|
+
Zo as T,
|
|
2307
|
+
si as U,
|
|
2308
|
+
ai as V,
|
|
2309
2309
|
xe as a,
|
|
2310
2310
|
dn as b,
|
|
2311
2311
|
oe as c,
|
|
2312
2312
|
B as d,
|
|
2313
|
-
|
|
2313
|
+
et as e,
|
|
2314
2314
|
te as f,
|
|
2315
|
-
|
|
2315
|
+
ei as g,
|
|
2316
2316
|
R as h,
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2317
|
+
Ye as i,
|
|
2318
|
+
Zr as j,
|
|
2319
|
+
Qo as k,
|
|
2320
|
+
ut as l,
|
|
2321
|
+
io as m,
|
|
2322
|
+
ti as n,
|
|
2323
2323
|
Y as o,
|
|
2324
2324
|
o as p,
|
|
2325
|
-
|
|
2326
|
-
|
|
2325
|
+
li as q,
|
|
2326
|
+
Jr as r,
|
|
2327
2327
|
ge as s,
|
|
2328
2328
|
Ke as t,
|
|
2329
|
-
|
|
2330
|
-
|
|
2329
|
+
Xe as u,
|
|
2330
|
+
di as v,
|
|
2331
2331
|
se as w,
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2332
|
+
ui as x,
|
|
2333
|
+
Ho as y,
|
|
2334
|
+
Vo as z
|
|
2335
2335
|
};
|