@abyss-project/commons-front-core 11.1.2 → 13.0.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/README.md +2 -2
- package/catalog/pages/LineChart.tsx +19 -2
- package/catalog/pages/StatTile.tsx +16 -0
- package/catalog/pages/ToolIcon.tsx +48 -48
- package/dist/{AbyssCookieConsentProvider-PchfQjs2.js → AbyssCookieConsentProvider-D5jeL5KA.js} +1402 -1800
- package/dist/{CookieConsentSettings.component-D8G0H6Wl.js → CookieConsentSettings.component-C69wpa-v.js} +1 -1
- package/dist/{Tabs-CZQ1JYlW.js → Tabs-CwVEV4SO.js} +162 -142
- package/dist/assets/logo/index.d.ts +9 -7
- package/dist/auth/client/abyss-login.d.ts +2 -2
- package/dist/auth/components/AuthHeroLayout/AuthHeroLayout.component.d.ts +2 -2
- package/dist/components/data/LineChart/LineChart.d.ts +10 -2
- package/dist/components/data/StatTile/StatTile.d.ts +5 -3
- package/dist/components/inputs/DateField/DateField.d.ts +7 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/{design-theme-DPp0aQVa.js → design-theme-DkGGYH91.js} +5250 -5224
- package/dist/{sortable.esm-BYVnqZQ-.js → editors-DkiY6BfJ.js} +31061 -26291
- package/dist/editors.js +4 -5272
- package/dist/hooks/use-rich-intl.hook.d.ts +36 -414
- package/dist/{index-z9-0V3EC.js → index-2l12Iu8k.js} +2 -2
- package/dist/{index-B2ZxOr31.js → index-B52OKB4p.js} +3 -3
- package/dist/{index-C7XhFFZA.js → index-BacMl_If.js} +2 -2
- package/dist/{index-CBIn4IuA.js → index-Bh7buNbj.js} +2 -2
- package/dist/{index-Bv63SeVQ.js → index-BoCgQirm.js} +2 -2
- package/dist/{index-DNhK2v38.js → index-CXGI5k75.js} +4 -4
- package/dist/{index-DzXd6CTA.js → index-Cg6Mv7QT.js} +2 -2
- package/dist/{index-DWi7OlB1.js → index-CgIjHnfl.js} +2 -2
- package/dist/{index-ZXDv7i0D.js → index-Cl1BSx17.js} +2 -2
- package/dist/{index-Bo9YtyKq.js → index-CtMx42h6.js} +2 -2
- package/dist/{index-yAKnJ5ME.js → index-CvRSR1eE.js} +2 -2
- package/dist/{index-RIO2UT1x.js → index-CwdirjZn.js} +2 -2
- package/dist/{index-C2CPAKkL.js → index-D1YeCKtd.js} +4 -4
- package/dist/{index-ByTOd2ak.js → index-DMiPquK5.js} +2 -2
- package/dist/{index-CS0JFqYy.js → index-DSjH42Mo.js} +3 -3
- package/dist/{index-CaWs53z9.js → index-DVsMyd7m.js} +2 -2
- package/dist/{index-CE5F7UaD.js → index-DW0z3W_H.js} +1 -1
- package/dist/{index-DVg7Zewe.js → index-DmCRAN1O.js} +2 -2
- package/dist/{index-CjAqdRJ0.js → index-KH3KmoUw.js} +4 -4
- package/dist/{index-CVp3TsdG.js → index-PHSTFO70.js} +3 -3
- package/dist/{index-DY51R82n.js → index-orVFXDIv.js} +3 -3
- package/dist/index.js +4491 -4467
- package/dist/isSymbol-CubIld3H.js +446 -0
- package/dist/legacy/components/Inputs/index.d.ts +0 -1
- package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +1 -1
- package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +10 -8
- package/dist/legacy/components/Support/support-service.logic.d.ts +6 -0
- package/dist/legacy/components/Support/types.d.ts +7 -7
- package/dist/legacy/components/index.d.ts +0 -1
- package/dist/legacy.js +6158 -12073
- package/dist/theme/tokens/domain.d.ts +5 -2
- package/dist/theme/tokens/product-marks.spec.d.ts +1 -0
- package/dist/translations/en.d.ts +7 -206
- package/dist/translations/fr.d.ts +7 -206
- package/dist/translations/product-naming.spec.d.ts +1 -0
- package/dist/utils/project-link-wording.utils.d.ts +2 -2
- package/package.json +4 -4
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +0 -14
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/crepe-theme.d.ts +0 -7
- package/dist/legacy/components/Inputs/AbyssMarkdownEditor/index.d.ts +0 -1
- package/dist/legacy/components/PdfEditor/PdfEditor.d.ts +0 -3
- package/dist/legacy/components/PdfEditor/index.d.ts +0 -3
- package/dist/legacy/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/signature/SignaturePicker.d.ts +0 -19
- package/dist/legacy/components/PdfEditor/signature/SignatureSaveButton.d.ts +0 -12
- package/dist/legacy/components/PdfEditor/signature/SignatureSavedList.d.ts +0 -13
- package/dist/legacy/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/signature/resolve-asset.d.ts +0 -20
- package/dist/legacy/components/PdfEditor/tools/DrawTool.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/tools/FillFieldsTool.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/tools/RedactTool.d.ts +0 -8
- package/dist/legacy/components/PdfEditor/tools/ShapeTool.d.ts +0 -17
- package/dist/legacy/components/PdfEditor/tools/SignatureTool.d.ts +0 -15
- package/dist/legacy/components/PdfEditor/tools/TextTool.d.ts +0 -12
- package/dist/legacy/components/PdfEditor/tools/Toolbar.d.ts +0 -44
- package/dist/legacy/components/PdfEditor/tools/tool-options-ui.d.ts +0 -5
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesButton.d.ts +0 -9
- package/dist/legacy/components/PdfEditor/viewer/InsertPagesDialog.d.ts +0 -10
- package/dist/legacy/components/PdfEditor/viewer/PageOverlay.d.ts +0 -38
- package/dist/legacy/components/PdfEditor/viewer/PageSidebar.d.ts +0 -15
- package/dist/legacy/components/PdfEditor/viewer/PageThumbnail.d.ts +0 -17
- package/dist/legacy/components/PdfEditor/viewer/PdfCanvas.d.ts +0 -26
- package/dist/legacy/components/PdfEditor/viewer/ViewerControls.d.ts +0 -21
- /package/dist/legacy/components/{Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.spec.d.ts → Support/support-service.logic.spec.d.ts} +0 -0
- /package/dist/legacy/{components/PdfEditor/signature/resolve-asset.spec.d.ts → legacy-editors-removed.spec.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
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 Ct, useMemo as ye, useCallback as
|
|
2
|
+
import { useId as E, useRef as j, useState as I, cloneElement as Ct, useMemo as ye, useCallback as Q, useEffect as G, forwardRef as St, createContext as Be, useContext as Ne, useLayoutEffect as _e } from "react";
|
|
3
3
|
import { alpha as It, 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";
|
|
@@ -33,8 +33,8 @@ import Ut from "@mui/icons-material/ErrorOutline";
|
|
|
33
33
|
import qt from "@mui/icons-material/InfoOutlined";
|
|
34
34
|
import Kt from "@mui/icons-material/WarningAmber";
|
|
35
35
|
import Yt from "@mui/material/Checkbox";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
36
|
+
import Xt from "@mui/icons-material/DescriptionOutlined";
|
|
37
|
+
import Qt from "@mui/icons-material/FolderOutlined";
|
|
38
38
|
import Zt from "@mui/icons-material/ChevronRightRounded";
|
|
39
39
|
import Jt from "@mui/material/Popover";
|
|
40
40
|
import en from "@mui/material/Alert";
|
|
@@ -44,11 +44,11 @@ import Ee from "@mui/material/useMediaQuery";
|
|
|
44
44
|
import on from "@mui/material/Modal";
|
|
45
45
|
import rn from "@mui/material/Slide";
|
|
46
46
|
import { Link as sn } from "react-router-dom";
|
|
47
|
-
var
|
|
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
|
-
}, an = 0.05, fe = (e) => `(min-width:${qe[e]}px)`, me = (e) => `(max-width:${qe[e] - an}px)`,
|
|
51
|
+
}, an = 0.05, fe = (e) => `(min-width:${qe[e]}px)`, me = (e) => `(max-width:${qe[e] - an}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,27 +76,27 @@ const qe = {
|
|
|
76
76
|
)}`;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
}, o = (e) => `${e}px`,
|
|
79
|
+
}, o = (e) => `${e}px`, R = (e) => `1px solid ${e}`, ge = (e) => It(e, Ft), te = (e) => ({
|
|
80
80
|
outline: `2px solid ${e.design.tokens["focus.ring"]}`,
|
|
81
81
|
outlineOffset: "2px"
|
|
82
|
-
}),
|
|
83
|
-
[
|
|
82
|
+
}), Qr = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Zr = (e) => e.design.densityValues[e.design.density].row, Ke = (e) => ({
|
|
83
|
+
[B.down($.Tablet)]: {
|
|
84
84
|
minHeight: o(e.design.densityValues.touchTarget)
|
|
85
85
|
}
|
|
86
86
|
}), ln = (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
93
|
).join(", "), Ye = () => {
|
|
94
|
-
const e = Ee(
|
|
94
|
+
const e = Ee(B.up($.Desktop), {
|
|
95
95
|
noSsr: !0
|
|
96
|
-
}), t = Ee(
|
|
96
|
+
}), t = Ee(B.down($.Tablet), {
|
|
97
97
|
noSsr: !0
|
|
98
98
|
});
|
|
99
|
-
return e ?
|
|
99
|
+
return e ? $.Desktop : t ? $.Mobile : $.Tablet;
|
|
100
100
|
};
|
|
101
101
|
var J = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(J || {});
|
|
102
102
|
const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn = a("div")({
|
|
@@ -123,7 +123,7 @@ const se = (e, t) => `calc(${o(t)} + env(safe-area-inset-${e}))`, dn = 0.3, cn =
|
|
|
123
123
|
backgroundColor: t["bg.surface"],
|
|
124
124
|
color: t["text.primary"],
|
|
125
125
|
fontFamily: c.sans,
|
|
126
|
-
borderTop:
|
|
126
|
+
borderTop: R(t["border.strong"]),
|
|
127
127
|
borderTopLeftRadius: o(n.lg),
|
|
128
128
|
borderTopRightRadius: o(n.lg),
|
|
129
129
|
boxShadow: s.modal,
|
|
@@ -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 Xe({
|
|
178
178
|
open: e,
|
|
179
179
|
onClose: t,
|
|
180
180
|
title: n,
|
|
@@ -189,8 +189,8 @@ function Qe({
|
|
|
189
189
|
var D;
|
|
190
190
|
if (m.current === null)
|
|
191
191
|
return;
|
|
192
|
-
const P = Math.max(0, C.clientY - m.current),
|
|
193
|
-
m.current = null, b(!1), h(0),
|
|
192
|
+
const P = Math.max(0, C.clientY - m.current), F = ((D = g.current) == null ? void 0 : D.getBoundingClientRect().height) ?? 0;
|
|
193
|
+
m.current = null, b(!1), h(0), F > 0 && P >= F * dn && t();
|
|
194
194
|
}, k = () => {
|
|
195
195
|
m.current = null, b(!1), h(0);
|
|
196
196
|
};
|
|
@@ -262,7 +262,7 @@ const bn = a(nn)(({ theme: e }) => {
|
|
|
262
262
|
alignItems: "flex-start",
|
|
263
263
|
gap: o(n[4]),
|
|
264
264
|
padding: `${o(n[4])} ${o(n[5])}`,
|
|
265
|
-
borderBottom:
|
|
265
|
+
borderBottom: R(t["border.subtle"])
|
|
266
266
|
};
|
|
267
267
|
}), vn = a("div")({ minWidth: 0 }), xn = a("h2")(({ theme: e }) => ({
|
|
268
268
|
margin: 0,
|
|
@@ -293,7 +293,7 @@ const bn = a(nn)(({ theme: e }) => {
|
|
|
293
293
|
alignItems: "center",
|
|
294
294
|
gap: o(n[3]),
|
|
295
295
|
padding: `${o(n[3])} ${o(n[5])}`,
|
|
296
|
-
borderTop:
|
|
296
|
+
borderTop: R(t["border.subtle"])
|
|
297
297
|
};
|
|
298
298
|
}), Sn = a("p")(({ theme: e }) => ({
|
|
299
299
|
margin: `0 0 ${o(e.design.space[3])}`,
|
|
@@ -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 Qe({
|
|
311
311
|
open: e,
|
|
312
312
|
onClose: t,
|
|
313
313
|
title: n,
|
|
@@ -316,9 +316,9 @@ function Xe({
|
|
|
316
316
|
actions: c,
|
|
317
317
|
children: l
|
|
318
318
|
}) {
|
|
319
|
-
const d = z(), g = Ye() ===
|
|
319
|
+
const d = z(), g = Ye() === $.Mobile, m = E(), p = E();
|
|
320
320
|
return g ? /* @__PURE__ */ v(
|
|
321
|
-
|
|
321
|
+
Xe,
|
|
322
322
|
{
|
|
323
323
|
open: e,
|
|
324
324
|
onClose: t,
|
|
@@ -423,7 +423,7 @@ const et = {
|
|
|
423
423
|
boxSizing: "border-box",
|
|
424
424
|
padding: `${o(r[3])} ${o(r[3])} ${o(r[3])} ${o(r[4])}`,
|
|
425
425
|
backgroundColor: n[g],
|
|
426
|
-
border:
|
|
426
|
+
border: R(n[d]),
|
|
427
427
|
borderRadius: o(s.md),
|
|
428
428
|
color: n["text.primary"],
|
|
429
429
|
fontFamily: c.sans,
|
|
@@ -452,7 +452,7 @@ const et = {
|
|
|
452
452
|
columnGap: o(e.design.space[4]),
|
|
453
453
|
rowGap: o(e.design.space[2]),
|
|
454
454
|
minWidth: 0,
|
|
455
|
-
[
|
|
455
|
+
[B.down($.Tablet)]: {
|
|
456
456
|
flexDirection: "column",
|
|
457
457
|
alignItems: "flex-start"
|
|
458
458
|
}
|
|
@@ -511,7 +511,7 @@ function En({
|
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
|
-
const
|
|
514
|
+
const X = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet <= t) && Mt(e, n), nt = (e, t, n) => [
|
|
515
515
|
...(e.childFile ?? []).filter(
|
|
516
516
|
(r) => tt(r, t, n)
|
|
517
517
|
),
|
|
@@ -590,7 +590,7 @@ const Q = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
590
590
|
transform: t ? "rotate(90deg)" : "none",
|
|
591
591
|
transition: oe(e, ["transform"])
|
|
592
592
|
})), at = a(Yt)(({ theme: e }) => ({
|
|
593
|
-
[
|
|
593
|
+
[B.down($.Tablet)]: {
|
|
594
594
|
padding: o(
|
|
595
595
|
(e.design.densityValues.touchTarget - e.design.space[5]) / 2
|
|
596
596
|
)
|
|
@@ -599,7 +599,7 @@ const Q = (e) => e.id ?? e.name, tt = (e, t, n) => (t === void 0 || e.sizeOctet
|
|
|
599
599
|
margin: 0,
|
|
600
600
|
padding: 0,
|
|
601
601
|
listStyle: "none",
|
|
602
|
-
borderLeft:
|
|
602
|
+
borderLeft: R(e.design.tokens["border.subtle"]),
|
|
603
603
|
marginLeft: o(e.design.space[3])
|
|
604
604
|
})), ze = a("li")({ listStyle: "none" });
|
|
605
605
|
function lt({
|
|
@@ -609,7 +609,7 @@ function lt({
|
|
|
609
609
|
}) {
|
|
610
610
|
return /* @__PURE__ */ v(ne, { children: [
|
|
611
611
|
e.map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Bn, { folder: r, context: n }) }, r.id ?? r.name)),
|
|
612
|
-
t.filter((r) => tt(r, n.maxSize, n.accept)).map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Hn, { file: r, context: n }) },
|
|
612
|
+
t.filter((r) => tt(r, n.maxSize, n.accept)).map((r) => /* @__PURE__ */ i(ze, { children: /* @__PURE__ */ i(Hn, { file: r, context: n }) }, X(r)))
|
|
613
613
|
] });
|
|
614
614
|
}
|
|
615
615
|
function Pn({
|
|
@@ -625,13 +625,13 @@ function Pn({
|
|
|
625
625
|
draggable: !1,
|
|
626
626
|
onError: () => r(!0)
|
|
627
627
|
}
|
|
628
|
-
) : /* @__PURE__ */ i(
|
|
628
|
+
) : /* @__PURE__ */ i(Xt, {}) });
|
|
629
629
|
}
|
|
630
630
|
function Hn({
|
|
631
631
|
file: e,
|
|
632
632
|
context: t
|
|
633
633
|
}) {
|
|
634
|
-
const n = E(), r = t.selectedIds.has(
|
|
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
|
Pn,
|
|
637
637
|
{
|
|
@@ -659,7 +659,7 @@ function Bn({
|
|
|
659
659
|
context: t
|
|
660
660
|
}) {
|
|
661
661
|
const n = z(), r = E(), [s, c] = I(!1), l = nt(e, t.maxSize, t.accept), d = l.filter(
|
|
662
|
-
(m) => t.selectedIds.has(
|
|
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: [
|
|
@@ -688,7 +688,7 @@ function Bn({
|
|
|
688
688
|
onClick: () => c(!s),
|
|
689
689
|
children: [
|
|
690
690
|
/* @__PURE__ */ i(Dn, { open: s, "aria-hidden": !0 }),
|
|
691
|
-
/* @__PURE__ */ i(st, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(
|
|
691
|
+
/* @__PURE__ */ i(st, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(Ue, {}) : /* @__PURE__ */ i(Qt, {}) }),
|
|
692
692
|
/* @__PURE__ */ i(it, { strong: g, title: e.name, children: e.name })
|
|
693
693
|
]
|
|
694
694
|
}
|
|
@@ -733,7 +733,7 @@ const De = "shared", Le = {
|
|
|
733
733
|
padding: o(n[1]),
|
|
734
734
|
listStyle: "none",
|
|
735
735
|
minHeight: o(n[10] * 3),
|
|
736
|
-
border:
|
|
736
|
+
border: R(t["border.subtle"]),
|
|
737
737
|
borderRadius: o(r.md)
|
|
738
738
|
};
|
|
739
739
|
}), ie = a("div")(({ theme: e }) => {
|
|
@@ -781,12 +781,12 @@ const De = "shared", Le = {
|
|
|
781
781
|
})), Yn = a("span")(({ theme: e }) => ({
|
|
782
782
|
fontSize: o(e.design.typeScale.body),
|
|
783
783
|
color: e.design.tokens["text.secondary"]
|
|
784
|
-
})),
|
|
784
|
+
})), Xn = 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
|
+
})), Qn = a("span")({
|
|
790
790
|
display: "flex",
|
|
791
791
|
flexDirection: "column",
|
|
792
792
|
minWidth: 0
|
|
@@ -843,35 +843,35 @@ function ro({
|
|
|
843
843
|
refresh: y,
|
|
844
844
|
onCreateCloud: b,
|
|
845
845
|
fetchCloudRepository: f
|
|
846
|
-
} = e, u = z(), [x, k] = I(null), [C, P] = I(null), [
|
|
846
|
+
} = e, u = z(), [x, k] = I(null), [C, P] = I(null), [F, D] = I(
|
|
847
847
|
"loading"
|
|
848
848
|
/* Loading */
|
|
849
|
-
), [U, A] = I([]), [
|
|
849
|
+
), [U, A] = I([]), [W, re] = I(!1), [ae, _] = I(!1), q = ye(() => {
|
|
850
850
|
const w = [], T = /* @__PURE__ */ new Map(), S = u.formatMessage({
|
|
851
851
|
id: "ds.business.cloud-import.section-organization"
|
|
852
852
|
});
|
|
853
|
-
for (const
|
|
854
|
-
if (!
|
|
855
|
-
w.push(
|
|
853
|
+
for (const O of g ?? []) {
|
|
854
|
+
if (!O.organizationId) {
|
|
855
|
+
w.push(O);
|
|
856
856
|
continue;
|
|
857
857
|
}
|
|
858
|
-
const H = d == null ? void 0 : d(
|
|
858
|
+
const H = d == null ? void 0 : d(O), V = T.get(O.organizationId) ?? {
|
|
859
859
|
name: (H == null ? void 0 : H.organizationName) ?? S,
|
|
860
860
|
items: []
|
|
861
861
|
};
|
|
862
|
-
V.items.push(
|
|
862
|
+
V.items.push(O), T.set(O.organizationId, V);
|
|
863
863
|
}
|
|
864
864
|
if (d)
|
|
865
|
-
for (const
|
|
866
|
-
|
|
865
|
+
for (const O of T.values())
|
|
866
|
+
O.items.sort((H, V) => {
|
|
867
867
|
const L = Le[d(H).scope ?? "personal"], Te = Le[d(V).scope ?? "personal"];
|
|
868
868
|
return L !== Te ? L - Te : d(H).label.localeCompare(d(V).label);
|
|
869
869
|
});
|
|
870
|
-
const
|
|
870
|
+
const N = (O, H) => (V) => {
|
|
871
871
|
const L = d == null ? void 0 : d(V);
|
|
872
872
|
return {
|
|
873
873
|
space: V,
|
|
874
|
-
sectionKey:
|
|
874
|
+
sectionKey: O,
|
|
875
875
|
sectionLabel: H,
|
|
876
876
|
label: (L == null ? void 0 : L.label) ?? Wt(V, u),
|
|
877
877
|
subtitle: L == null ? void 0 : L.subtitle,
|
|
@@ -880,7 +880,7 @@ function ro({
|
|
|
880
880
|
};
|
|
881
881
|
return [
|
|
882
882
|
...w.map(
|
|
883
|
-
|
|
883
|
+
N(
|
|
884
884
|
"personal",
|
|
885
885
|
u.formatMessage({
|
|
886
886
|
id: "ds.business.cloud-import.section-personal"
|
|
@@ -888,10 +888,10 @@ function ro({
|
|
|
888
888
|
)
|
|
889
889
|
),
|
|
890
890
|
...[...T].flatMap(
|
|
891
|
-
([
|
|
891
|
+
([O, H]) => H.items.map(N(`org:${O}`, H.name))
|
|
892
892
|
),
|
|
893
893
|
...(m ?? []).map(
|
|
894
|
-
|
|
894
|
+
N(
|
|
895
895
|
De,
|
|
896
896
|
u.formatMessage({ id: "ds.business.cloud-import.section-shared" })
|
|
897
897
|
)
|
|
@@ -899,7 +899,7 @@ function ro({
|
|
|
899
899
|
];
|
|
900
900
|
}, [g, m, d, u]), K = q.find((w) => w.space.id === (x == null ? void 0 : x.id)) ?? null, pe = j(0), we = j(f);
|
|
901
901
|
we.current = f;
|
|
902
|
-
const le =
|
|
902
|
+
const le = Q(async (w) => {
|
|
903
903
|
const T = ++pe.current;
|
|
904
904
|
D(
|
|
905
905
|
"loading"
|
|
@@ -949,21 +949,21 @@ function ro({
|
|
|
949
949
|
multiple: n,
|
|
950
950
|
maxSize: r,
|
|
951
951
|
accept: s,
|
|
952
|
-
selectedIds: new Set(U.map(
|
|
952
|
+
selectedIds: new Set(U.map(X)),
|
|
953
953
|
getFileThumbnailUrl: l,
|
|
954
954
|
select: (w) => A((T) => {
|
|
955
955
|
if (!n)
|
|
956
956
|
return w.slice(0, 1);
|
|
957
|
-
const S = new Set(T.map(
|
|
957
|
+
const S = new Set(T.map(X));
|
|
958
958
|
return [
|
|
959
959
|
...T,
|
|
960
|
-
...w.filter((
|
|
960
|
+
...w.filter((N) => !S.has(X(N)))
|
|
961
961
|
];
|
|
962
962
|
}),
|
|
963
963
|
unselect: (w) => {
|
|
964
|
-
const T = new Set(w.map(
|
|
964
|
+
const T = new Set(w.map(X));
|
|
965
965
|
A(
|
|
966
|
-
(S) => S.filter((
|
|
966
|
+
(S) => S.filter((N) => !T.has(X(N)))
|
|
967
967
|
);
|
|
968
968
|
}
|
|
969
969
|
}, wt = g !== null && m !== null, ke = /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
|
|
@@ -991,7 +991,7 @@ function ro({
|
|
|
991
991
|
{
|
|
992
992
|
variant: "contained",
|
|
993
993
|
startIcon: /* @__PURE__ */ i(Ae, { "aria-hidden": !0 }),
|
|
994
|
-
loading:
|
|
994
|
+
loading: W || p,
|
|
995
995
|
onClick: () => void vt(),
|
|
996
996
|
children: u.formatMessage({
|
|
997
997
|
id: "ds.business.cloud-import.create-error.create-button"
|
|
@@ -1034,8 +1034,8 @@ function ro({
|
|
|
1034
1034
|
filterOptions: (w, { inputValue: T }) => {
|
|
1035
1035
|
const S = T.trim().toLowerCase();
|
|
1036
1036
|
return S === "" || S === K.label.toLowerCase() ? w : w.filter(
|
|
1037
|
-
(
|
|
1038
|
-
(
|
|
1037
|
+
(N) => [N.label, N.subtitle ?? ""].some(
|
|
1038
|
+
(O) => O.toLowerCase().includes(S)
|
|
1039
1039
|
)
|
|
1040
1040
|
);
|
|
1041
1041
|
},
|
|
@@ -1043,9 +1043,9 @@ function ro({
|
|
|
1043
1043
|
/* @__PURE__ */ i(no, { children: w.group }),
|
|
1044
1044
|
/* @__PURE__ */ i(oo, { children: w.children })
|
|
1045
1045
|
] }, w.key),
|
|
1046
|
-
renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(
|
|
1046
|
+
renderOption: ({ key: w, ...T }, S) => /* @__PURE__ */ v(Xn, { ...T, children: [
|
|
1047
1047
|
/* @__PURE__ */ i(dt, { "aria-hidden": !0, children: Ie(S) }),
|
|
1048
|
-
/* @__PURE__ */ v(
|
|
1048
|
+
/* @__PURE__ */ v(Qn, { children: [
|
|
1049
1049
|
/* @__PURE__ */ i(Zn, { children: S.label }),
|
|
1050
1050
|
S.subtitle !== void 0 && /* @__PURE__ */ i(Jn, { children: S.subtitle })
|
|
1051
1051
|
] })
|
|
@@ -1074,7 +1074,7 @@ function ro({
|
|
|
1074
1074
|
ee,
|
|
1075
1075
|
{
|
|
1076
1076
|
"aria-label": Ce,
|
|
1077
|
-
disabled:
|
|
1077
|
+
disabled: F === "loading" || p,
|
|
1078
1078
|
onClick: () => void yt(),
|
|
1079
1079
|
children: /* @__PURE__ */ i(_t, { "aria-hidden": !0 })
|
|
1080
1080
|
}
|
|
@@ -1092,7 +1092,7 @@ function ro({
|
|
|
1092
1092
|
) })
|
|
1093
1093
|
] }),
|
|
1094
1094
|
/* @__PURE__ */ i(Vn, { 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
|
{
|
|
1098
1098
|
size: 24,
|
|
@@ -1101,7 +1101,7 @@ function ro({
|
|
|
1101
1101
|
})
|
|
1102
1102
|
}
|
|
1103
1103
|
) }),
|
|
1104
|
-
|
|
1104
|
+
F === "failed" && /* @__PURE__ */ v(ie, { role: "alert", children: [
|
|
1105
1105
|
u.formatMessage({ id: "ds.business.cloud-import.tree-error" }),
|
|
1106
1106
|
/* @__PURE__ */ i(
|
|
1107
1107
|
Z,
|
|
@@ -1112,7 +1112,7 @@ function ro({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
)
|
|
1114
1114
|
] }),
|
|
1115
|
-
|
|
1115
|
+
F === "ready" && C !== null && (C.folders.length === 0 && C.files.length === 0 ? /* @__PURE__ */ v(ie, { children: [
|
|
1116
1116
|
/* @__PURE__ */ i(Ue, { "aria-hidden": !0 }),
|
|
1117
1117
|
u.formatMessage({ id: "ds.business.cloud-import.empty-space" })
|
|
1118
1118
|
] }) : /* @__PURE__ */ i(
|
|
@@ -1160,7 +1160,7 @@ function io({
|
|
|
1160
1160
|
}) {
|
|
1161
1161
|
const d = z();
|
|
1162
1162
|
return /* @__PURE__ */ i(
|
|
1163
|
-
|
|
1163
|
+
Qe,
|
|
1164
1164
|
{
|
|
1165
1165
|
open: e,
|
|
1166
1166
|
onClose: t,
|
|
@@ -1191,7 +1191,7 @@ const so = /* @__PURE__ */ new Set(["a", "button"]), ao = a("div", {
|
|
|
1191
1191
|
minWidth: 0,
|
|
1192
1192
|
boxSizing: "border-box",
|
|
1193
1193
|
backgroundColor: n["bg.surface"],
|
|
1194
|
-
border:
|
|
1194
|
+
border: R(n["border.subtle"]),
|
|
1195
1195
|
borderRadius: o(r.md),
|
|
1196
1196
|
padding: o(s[t.padding]),
|
|
1197
1197
|
color: n["text.primary"],
|
|
@@ -1215,7 +1215,7 @@ 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" && !so.has(r), h =
|
|
1218
|
+
const p = t && typeof r == "string" && !so.has(r), h = Q(
|
|
1219
1219
|
(b) => {
|
|
1220
1220
|
typeof m == "function" ? m(b) : m !== null && (m.current = b);
|
|
1221
1221
|
},
|
|
@@ -1317,8 +1317,8 @@ function ei({
|
|
|
1317
1317
|
renderValue: (k) => {
|
|
1318
1318
|
const C = Array.isArray(k) ? k : [k];
|
|
1319
1319
|
return p && C.length === 0 ? /* @__PURE__ */ i(ho, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(be, { children: C.map((P) => {
|
|
1320
|
-
var
|
|
1321
|
-
return ((
|
|
1320
|
+
var F;
|
|
1321
|
+
return ((F = u.get(P)) == null ? void 0 : F.label) ?? P;
|
|
1322
1322
|
}).join(", ") });
|
|
1323
1323
|
},
|
|
1324
1324
|
"aria-describedby": l ? f : void 0,
|
|
@@ -1377,7 +1377,7 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
|
|
|
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
|
-
border:
|
|
1380
|
+
border: R(e.design.tokens["border.control"])
|
|
1381
1381
|
})), xo = a("div")(({ theme: e }) => ({
|
|
1382
1382
|
display: "flex",
|
|
1383
1383
|
flexWrap: "wrap",
|
|
@@ -1389,11 +1389,11 @@ const ti = { l: 0.72, c: 0.12 }, ni = [
|
|
|
1389
1389
|
width: o(s),
|
|
1390
1390
|
height: o(s),
|
|
1391
1391
|
borderRadius: o(e.design.radii.sm),
|
|
1392
|
-
border:
|
|
1392
|
+
border: R(e.design.tokens["border.control"]),
|
|
1393
1393
|
// The chosen swatch carries the ring of the design system (`focus.ring` is the accent).
|
|
1394
1394
|
'&[aria-pressed="true"]': te(e),
|
|
1395
1395
|
"&.Mui-focusVisible": te(e),
|
|
1396
|
-
[
|
|
1396
|
+
[B.down($.Tablet)]: {
|
|
1397
1397
|
width: o(e.design.densityValues.touchTarget),
|
|
1398
1398
|
height: o(e.design.densityValues.touchTarget)
|
|
1399
1399
|
}
|
|
@@ -1471,14 +1471,27 @@ const ko = 6, Co = a("div", {
|
|
|
1471
1471
|
display: "inline-flex",
|
|
1472
1472
|
maxWidth: "100%",
|
|
1473
1473
|
minWidth: 0,
|
|
1474
|
-
border:
|
|
1474
|
+
border: R(n["border.subtle"]),
|
|
1475
1475
|
borderRadius: o(r.md),
|
|
1476
1476
|
overflowX: "auto",
|
|
1477
1477
|
overflowY: "hidden",
|
|
1478
|
-
backgroundColor: n["bg.surface"]
|
|
1478
|
+
backgroundColor: n["bg.surface"],
|
|
1479
|
+
// Below 768 px each segment keeps a 44 px target: the band wraps onto more rows rather than
|
|
1480
|
+
// hiding segments behind a sideways scroll. A rule between neighbours would then start the
|
|
1481
|
+
// second row with a stray line and leave the rows unsplit: the band loses its border and each
|
|
1482
|
+
// segment draws its own, apart by a gap in both directions.
|
|
1483
|
+
[B.down($.Tablet)]: {
|
|
1484
|
+
flexWrap: "wrap",
|
|
1485
|
+
rowGap: o(s[1]),
|
|
1486
|
+
columnGap: o(s[1]),
|
|
1487
|
+
overflowX: "visible",
|
|
1488
|
+
maskImage: "none",
|
|
1489
|
+
border: "none",
|
|
1490
|
+
backgroundColor: "transparent"
|
|
1491
|
+
}
|
|
1479
1492
|
};
|
|
1480
1493
|
}), So = a(Ge)(({ theme: e }) => {
|
|
1481
|
-
const { tokens: t, space: n, typeScale: r, fonts: s, densityValues: c } = e.design;
|
|
1494
|
+
const { tokens: t, space: n, typeScale: r, fonts: s, densityValues: c, radii: l } = e.design;
|
|
1482
1495
|
return {
|
|
1483
1496
|
flex: "none",
|
|
1484
1497
|
gap: o(n[2]),
|
|
@@ -1490,7 +1503,7 @@ const ko = 6, Co = a("div", {
|
|
|
1490
1503
|
whiteSpace: "nowrap",
|
|
1491
1504
|
color: t["text.secondary"],
|
|
1492
1505
|
transition: oe(e, ["background-color", "color"]),
|
|
1493
|
-
"& + &": { borderLeft:
|
|
1506
|
+
"& + &": { borderLeft: R(t["border.subtle"]) },
|
|
1494
1507
|
'&[aria-checked="true"]': {
|
|
1495
1508
|
backgroundColor: t["bg.raised"],
|
|
1496
1509
|
color: t["text.primary"],
|
|
@@ -1498,8 +1511,15 @@ const ko = 6, Co = a("div", {
|
|
|
1498
1511
|
},
|
|
1499
1512
|
"&:hover": { backgroundColor: t["bg.hover"] },
|
|
1500
1513
|
"&.Mui-focusVisible": { ...te(e), outlineOffset: "-2px" },
|
|
1501
|
-
|
|
1502
|
-
|
|
1514
|
+
// A short label (« 1 h », « 7 j ») would leave a segment narrower than a finger. Each segment
|
|
1515
|
+
// is its own bordered tile once the band wraps.
|
|
1516
|
+
[B.down($.Tablet)]: {
|
|
1517
|
+
minWidth: o(c.touchTarget),
|
|
1518
|
+
minHeight: o(c.touchTarget),
|
|
1519
|
+
border: R(t["border.subtle"]),
|
|
1520
|
+
borderRadius: o(l.md),
|
|
1521
|
+
backgroundColor: t["bg.surface"],
|
|
1522
|
+
'&[aria-checked="true"]': { backgroundColor: t["bg.raised"] }
|
|
1503
1523
|
}
|
|
1504
1524
|
};
|
|
1505
1525
|
}), Io = a("span")(({ theme: e }) => ({
|
|
@@ -1513,7 +1533,7 @@ function li({
|
|
|
1513
1533
|
onChange: n,
|
|
1514
1534
|
ariaLabel: r
|
|
1515
1535
|
}) {
|
|
1516
|
-
const s = j(null), [c, l] = I({ start: !1, end: !1 }), d =
|
|
1536
|
+
const s = j(null), [c, l] = I({ start: !1, end: !1 }), d = Q(() => {
|
|
1517
1537
|
const p = s.current;
|
|
1518
1538
|
if (!p)
|
|
1519
1539
|
return;
|
|
@@ -1610,7 +1630,7 @@ function di({
|
|
|
1610
1630
|
const d = z(), g = ye(
|
|
1611
1631
|
() => $o(d.locale),
|
|
1612
1632
|
[d.locale]
|
|
1613
|
-
), m =
|
|
1633
|
+
), m = Q(
|
|
1614
1634
|
(u) => u === null ? "" : d.formatNumber(u, {
|
|
1615
1635
|
minimumFractionDigits: r,
|
|
1616
1636
|
maximumFractionDigits: r
|
|
@@ -1688,7 +1708,7 @@ const Fo = a("div")(({ theme: e }) => ({
|
|
|
1688
1708
|
};
|
|
1689
1709
|
}), Oo = a("span")(({ theme: e }) => ({
|
|
1690
1710
|
fontSize: o(e.design.typeScale.body),
|
|
1691
|
-
[
|
|
1711
|
+
[B.down($.Tablet)]: { display: "none" }
|
|
1692
1712
|
})), Ao = a("div")(({ theme: e }) => ({
|
|
1693
1713
|
display: "flex",
|
|
1694
1714
|
flexWrap: "wrap",
|
|
@@ -1722,21 +1742,21 @@ function ci({
|
|
|
1722
1742
|
const g = z(), m = E(), p = E(), [h, y] = I(null), [b, f] = I(!1), u = r === void 0 ? null : Lo(r), x = s ?? (u === null ? null : g.formatMessage(
|
|
1723
1743
|
{ id: "ds.inputs.drop-zone.max-size" },
|
|
1724
1744
|
{ size: u, multiple: String(t) }
|
|
1725
|
-
)), k = (A,
|
|
1745
|
+
)), k = (A, W) => {
|
|
1726
1746
|
const re = r === void 0 ? [] : A.filter((_) => _.size > r), ae = A.filter((_) => !re.includes(_));
|
|
1727
|
-
|
|
1747
|
+
W.some(
|
|
1728
1748
|
(_) => _.errors.some((q) => q.code === Et.TooManyFiles)
|
|
1729
1749
|
) ? y(
|
|
1730
1750
|
"too-many"
|
|
1731
1751
|
/* TooMany */
|
|
1732
|
-
) :
|
|
1752
|
+
) : W.length > 0 ? y(
|
|
1733
1753
|
"rejected-type"
|
|
1734
1754
|
/* Rejected */
|
|
1735
1755
|
) : re.length > 0 ? y(
|
|
1736
1756
|
A.length === 1 ? "too-big" : "some-too-big"
|
|
1737
1757
|
/* SomeTooBig */
|
|
1738
1758
|
) : y(null), ae.length > 0 && e(ae);
|
|
1739
|
-
}, { getRootProps: C, getInputProps: P, isDragActive:
|
|
1759
|
+
}, { getRootProps: C, getInputProps: P, isDragActive: F, open: D } = Ot({
|
|
1740
1760
|
onDrop: k,
|
|
1741
1761
|
multiple: t,
|
|
1742
1762
|
accept: n,
|
|
@@ -1755,13 +1775,13 @@ function ci({
|
|
|
1755
1775
|
"aria-describedby": x !== null ? p : void 0,
|
|
1756
1776
|
children: [
|
|
1757
1777
|
c !== void 0 && /* @__PURE__ */ i(Mo, { id: m, children: c }),
|
|
1758
|
-
/* @__PURE__ */ v(Ro, { ...C({ onClick: D }), active:
|
|
1778
|
+
/* @__PURE__ */ v(Ro, { ...C({ onClick: D }), active: F, children: [
|
|
1759
1779
|
/* @__PURE__ */ i("input", { ...P({ "aria-hidden": !0 }) }),
|
|
1760
1780
|
d ?? /* @__PURE__ */ v(ne, { children: [
|
|
1761
1781
|
/* @__PURE__ */ i(Wo, { "aria-hidden": !0, children: /* @__PURE__ */ i(Lt, {}) }),
|
|
1762
1782
|
/* @__PURE__ */ i(Oo, { children: g.formatMessage(
|
|
1763
1783
|
{
|
|
1764
|
-
id:
|
|
1784
|
+
id: F ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
|
|
1765
1785
|
},
|
|
1766
1786
|
{ multiple: String(t) }
|
|
1767
1787
|
) })
|
|
@@ -1802,9 +1822,9 @@ function ci({
|
|
|
1802
1822
|
cloudPicker: l,
|
|
1803
1823
|
multiple: t,
|
|
1804
1824
|
maxSize: r,
|
|
1805
|
-
accept: n === void 0 ? void 0 : Object.entries(n).flatMap(([A,
|
|
1825
|
+
accept: n === void 0 ? void 0 : Object.entries(n).flatMap(([A, W]) => [
|
|
1806
1826
|
A,
|
|
1807
|
-
...
|
|
1827
|
+
...W
|
|
1808
1828
|
])
|
|
1809
1829
|
}
|
|
1810
1830
|
)
|
|
@@ -1839,30 +1859,30 @@ function _o({
|
|
|
1839
1859
|
}) {
|
|
1840
1860
|
const g = z(), m = Ve(), p = E(), [h, y] = I(""), [b, f] = I(!1), [u, x] = I(!1), [k, C] = I(e);
|
|
1841
1861
|
e !== k && (C(e), e && (y(""), x(!1)));
|
|
1842
|
-
const P = !b && (c === void 0 || h === c),
|
|
1862
|
+
const P = !b && (c === void 0 || h === c), F = s !== "default", D = () => {
|
|
1843
1863
|
b || d();
|
|
1844
1864
|
}, U = () => {
|
|
1845
1865
|
if (!P)
|
|
1846
1866
|
return;
|
|
1847
1867
|
x(!1);
|
|
1848
|
-
let
|
|
1868
|
+
let W;
|
|
1849
1869
|
try {
|
|
1850
|
-
|
|
1870
|
+
W = l();
|
|
1851
1871
|
} catch {
|
|
1852
1872
|
x(!0);
|
|
1853
1873
|
return;
|
|
1854
1874
|
}
|
|
1855
|
-
|
|
1875
|
+
W instanceof Promise && (f(!0), W.then(
|
|
1856
1876
|
() => f(!1),
|
|
1857
1877
|
() => {
|
|
1858
1878
|
f(!1), x(!0);
|
|
1859
1879
|
}
|
|
1860
1880
|
));
|
|
1861
|
-
}, A = (
|
|
1862
|
-
|
|
1881
|
+
}, A = (W) => {
|
|
1882
|
+
W.preventDefault(), U();
|
|
1863
1883
|
};
|
|
1864
1884
|
return /* @__PURE__ */ i(
|
|
1865
|
-
|
|
1885
|
+
Qe,
|
|
1866
1886
|
{
|
|
1867
1887
|
open: e,
|
|
1868
1888
|
onClose: D,
|
|
@@ -1874,7 +1894,7 @@ function _o({
|
|
|
1874
1894
|
{
|
|
1875
1895
|
variant: "outlined",
|
|
1876
1896
|
disabled: b,
|
|
1877
|
-
autoFocus: c === void 0 &&
|
|
1897
|
+
autoFocus: c === void 0 && F,
|
|
1878
1898
|
onClick: D,
|
|
1879
1899
|
children: g.formatMessage({ id: "ds.layers.confirm-dialog.cancel" })
|
|
1880
1900
|
}
|
|
@@ -1888,7 +1908,7 @@ function _o({
|
|
|
1888
1908
|
color: No[s],
|
|
1889
1909
|
disabled: !P,
|
|
1890
1910
|
loading: b,
|
|
1891
|
-
autoFocus: c === void 0 &&
|
|
1911
|
+
autoFocus: c === void 0 && !F,
|
|
1892
1912
|
sx: s === "warning" ? {
|
|
1893
1913
|
"&:not(.Mui-disabled)": {
|
|
1894
1914
|
color: Bo(
|
|
@@ -1911,7 +1931,7 @@ function _o({
|
|
|
1911
1931
|
{ text: c }
|
|
1912
1932
|
),
|
|
1913
1933
|
value: h,
|
|
1914
|
-
onChange: (
|
|
1934
|
+
onChange: (W) => y(W.target.value),
|
|
1915
1935
|
disabled: b,
|
|
1916
1936
|
autoFocus: !0,
|
|
1917
1937
|
autoComplete: "off",
|
|
@@ -1933,7 +1953,7 @@ const jo = 320, Go = a("div")(({ theme: e }) => {
|
|
|
1933
1953
|
justifyContent: "space-between",
|
|
1934
1954
|
gap: o(n[3]),
|
|
1935
1955
|
padding: `${o(n[2])} ${o(n[2])} ${o(n[2])} ${o(n[4])}`,
|
|
1936
|
-
borderBottom:
|
|
1956
|
+
borderBottom: R(t["border.subtle"])
|
|
1937
1957
|
};
|
|
1938
1958
|
}), Uo = a("h2")(({ theme: e }) => ({
|
|
1939
1959
|
margin: 0,
|
|
@@ -1959,12 +1979,12 @@ function ui({
|
|
|
1959
1979
|
width: c = jo,
|
|
1960
1980
|
children: l
|
|
1961
1981
|
}) {
|
|
1962
|
-
const d = z(), g = E(), m = Ye() ===
|
|
1982
|
+
const d = z(), g = E(), m = Ye() === $.Mobile, p = d.formatMessage({
|
|
1963
1983
|
id: "ds.layers.anchored-panel.close"
|
|
1964
1984
|
}), h = t && e !== null;
|
|
1965
1985
|
if (m)
|
|
1966
1986
|
return /* @__PURE__ */ i(
|
|
1967
|
-
|
|
1987
|
+
Xe,
|
|
1968
1988
|
{
|
|
1969
1989
|
open: h,
|
|
1970
1990
|
onClose: n,
|
|
@@ -2017,7 +2037,7 @@ function gi({ children: e }) {
|
|
|
2017
2037
|
},
|
|
2018
2038
|
[]
|
|
2019
2039
|
);
|
|
2020
|
-
const g =
|
|
2040
|
+
const g = Q(
|
|
2021
2041
|
(h) => new Promise((y) => {
|
|
2022
2042
|
c.current += 1;
|
|
2023
2043
|
const b = { id: c.current, options: h, resolve: y };
|
|
@@ -2050,8 +2070,8 @@ function pi() {
|
|
|
2050
2070
|
);
|
|
2051
2071
|
return e;
|
|
2052
2072
|
}
|
|
2053
|
-
const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft,
|
|
2054
|
-
const [r, s] = I(!1), c =
|
|
2073
|
+
const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, Xo = (e, t, n) => {
|
|
2074
|
+
const [r, s] = I(!1), c = Q(() => {
|
|
2055
2075
|
const l = e.current;
|
|
2056
2076
|
l !== null && s(Yo(l, t) > Ko);
|
|
2057
2077
|
}, [e, t]);
|
|
@@ -2066,13 +2086,13 @@ const Ko = 1, Yo = (e, t) => t === "vertical" ? e.scrollHeight - e.clientHeight
|
|
|
2066
2086
|
};
|
|
2067
2087
|
}, [e, c, n]), r;
|
|
2068
2088
|
};
|
|
2069
|
-
var
|
|
2089
|
+
var Qo = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e))(Qo || {});
|
|
2070
2090
|
const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
2071
2091
|
shouldForwardProp: (e) => e !== "variant"
|
|
2072
2092
|
})(({ theme: e, variant: t }) => ({
|
|
2073
2093
|
minWidth: 0,
|
|
2074
2094
|
...t === "primary" && {
|
|
2075
|
-
borderBottom:
|
|
2095
|
+
borderBottom: R(e.design.tokens["border.subtle"])
|
|
2076
2096
|
}
|
|
2077
2097
|
})), ft = 32, tr = a("div", {
|
|
2078
2098
|
shouldForwardProp: (e) => e !== "variant" && e !== "fade"
|
|
@@ -2115,7 +2135,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2115
2135
|
// Inside the scrolling row, an outer ring would be clipped: it is drawn inside the tab.
|
|
2116
2136
|
"&:focus-visible": { ...te(e), outlineOffset: "-2px" }
|
|
2117
2137
|
}, p = {
|
|
2118
|
-
[
|
|
2138
|
+
[B.down($.Tablet)]: {
|
|
2119
2139
|
minHeight: o(d.touchTarget)
|
|
2120
2140
|
}
|
|
2121
2141
|
};
|
|
@@ -2158,7 +2178,7 @@ const Zo = 2, Jo = /* @__PURE__ */ new Set(["Enter", " "]), er = a("div", {
|
|
|
2158
2178
|
alignItems: "center",
|
|
2159
2179
|
padding: `0 ${o(n[1])}`,
|
|
2160
2180
|
borderRadius: o(r.sm),
|
|
2161
|
-
border:
|
|
2181
|
+
border: R(t["border.subtle"]),
|
|
2162
2182
|
fontFamily: s.mono,
|
|
2163
2183
|
fontSize: o(c.caption),
|
|
2164
2184
|
fontWeight: M.regular,
|
|
@@ -2176,7 +2196,7 @@ function fi({
|
|
|
2176
2196
|
variant: r,
|
|
2177
2197
|
"aria-label": s
|
|
2178
2198
|
}) {
|
|
2179
|
-
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 = Xo(l, "horizontal", d.length), m = Q(
|
|
2180
2200
|
() => {
|
|
2181
2201
|
var f;
|
|
2182
2202
|
return Array.from(
|
|
@@ -2184,7 +2204,7 @@ function fi({
|
|
|
2184
2204
|
);
|
|
2185
2205
|
},
|
|
2186
2206
|
[]
|
|
2187
|
-
), p =
|
|
2207
|
+
), p = Q(() => {
|
|
2188
2208
|
const f = l.current, u = f == null ? void 0 : f.querySelector('[aria-selected="true"]');
|
|
2189
2209
|
f && u && He(f, u);
|
|
2190
2210
|
}, []);
|
|
@@ -2264,52 +2284,52 @@ function fi({
|
|
|
2264
2284
|
) });
|
|
2265
2285
|
}
|
|
2266
2286
|
export {
|
|
2267
|
-
|
|
2268
|
-
|
|
2287
|
+
Vo as A,
|
|
2288
|
+
Xe as B,
|
|
2269
2289
|
En as C,
|
|
2270
|
-
|
|
2271
|
-
|
|
2290
|
+
$ as D,
|
|
2291
|
+
ui as E,
|
|
2272
2292
|
Ze as F,
|
|
2273
|
-
|
|
2274
|
-
|
|
2293
|
+
gi as G,
|
|
2294
|
+
pi as H,
|
|
2275
2295
|
io as I,
|
|
2276
|
-
|
|
2296
|
+
fi as J,
|
|
2277
2297
|
ti as K,
|
|
2278
2298
|
ni as L,
|
|
2279
|
-
|
|
2299
|
+
Qe as M,
|
|
2280
2300
|
di as N,
|
|
2281
2301
|
ut as O,
|
|
2282
2302
|
oi as P,
|
|
2283
2303
|
ri as Q,
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2304
|
+
lo as R,
|
|
2305
|
+
J as S,
|
|
2306
|
+
Qo as T,
|
|
2287
2307
|
ii as U,
|
|
2288
2308
|
si as V,
|
|
2289
2309
|
xe as a,
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2310
|
+
dn as b,
|
|
2311
|
+
oe as c,
|
|
2312
|
+
B as d,
|
|
2313
|
+
Je as e,
|
|
2314
|
+
te as f,
|
|
2315
|
+
Jr as g,
|
|
2316
|
+
R as h,
|
|
2317
|
+
Qr as i,
|
|
2318
|
+
ln as j,
|
|
2319
|
+
Xo as k,
|
|
2320
|
+
ct as l,
|
|
2321
|
+
ro as m,
|
|
2322
|
+
ei as n,
|
|
2323
|
+
Y as o,
|
|
2304
2324
|
o as p,
|
|
2305
|
-
|
|
2306
|
-
|
|
2325
|
+
ai as q,
|
|
2326
|
+
Zr as r,
|
|
2307
2327
|
ge as s,
|
|
2308
2328
|
Ke as t,
|
|
2309
|
-
|
|
2310
|
-
|
|
2329
|
+
Ye as u,
|
|
2330
|
+
li as v,
|
|
2311
2331
|
se as w,
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2332
|
+
ci as x,
|
|
2333
|
+
Po as y,
|
|
2334
|
+
_o as z
|
|
2315
2335
|
};
|