@abyss-project/commons-front-core 14.0.0 → 15.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 +1 -1
- package/dist/{CookieConsentSettings-DyJGEnVA.js → CookieConsentSettings-B7NfjgaI.js} +1 -1
- package/dist/{Surface-B_J_I_1i.js → Surface-BEhoEhyC.js} +214 -84
- package/dist/{Tabs-_TzugjHZ.js → Tabs-DJ9_ZFjM.js} +649 -644
- package/dist/auth/components/AuthFlow/auth-flow.types.d.ts +2 -0
- package/dist/auth/components/AuthFlow/steps/MfaEnrollmentStep.component.d.ts +2 -0
- package/dist/auth/components/AuthFlow/steps/MfaStep.component.d.ts +10 -4
- package/dist/auth/components/AuthFlow/steps/PasskeyNudgeStep.component.d.ts +3 -1
- package/dist/auth/components/MfaRequirementBanner/MfaRequirementBanner.component.d.ts +3 -1
- package/dist/auth/components/SecuritySettings/SecuritySettings.component.d.ts +1 -1
- package/dist/auth/components/SecuritySettings/sections/PasskeysSection.component.d.ts +6 -1
- package/dist/auth/components/SecuritySettings/sections/RecoveryCodesSection.component.d.ts +3 -1
- package/dist/auth/components/SecuritySettings/sections/TrustedDevicesSection.component.d.ts +6 -0
- package/dist/auth/components/index.d.ts +1 -0
- package/dist/auth/components/shared/SingleDevicePasskeyAdvice.component.d.ts +13 -0
- package/dist/auth/components/shared/passkey-ceremonies.d.ts +6 -1
- package/dist/auth/components/shared/support-contact.d.ts +2 -0
- package/dist/auth/components/test-support/auth-sdk.mock.d.ts +5 -0
- package/dist/auth/components/test-support/auth-test-harness.d.ts +3 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/business/Support/AbyssServiceSelect.component.d.ts +26 -0
- package/dist/components/business/Support/SupportActionButtons.component.d.ts +7 -0
- package/dist/components/business/Support/SupportActivityLog.component.d.ts +7 -0
- package/dist/components/business/Support/SupportAttachmentsPanel.component.d.ts +7 -0
- package/dist/components/business/Support/SupportCategoryChip.component.d.ts +12 -0
- package/dist/components/business/Support/SupportCategoryGroupCards.component.d.ts +2 -0
- package/dist/components/business/Support/SupportCategorySelect.component.d.ts +21 -0
- package/dist/components/business/Support/SupportCreateTextField.d.ts +17 -0
- package/dist/components/business/Support/SupportMessageAttachment.component.d.ts +9 -0
- package/dist/components/business/Support/SupportMessageInput.component.d.ts +7 -0
- package/dist/components/business/Support/SupportMessageLink.component.d.ts +8 -0
- package/dist/components/business/Support/SupportMessageThread.component.d.ts +8 -0
- package/dist/components/business/Support/SupportPill.d.ts +18 -0
- package/dist/components/business/Support/SupportPriorityChip.component.d.ts +3 -0
- package/dist/components/business/Support/SupportSidebar.component.d.ts +7 -0
- package/dist/components/business/Support/SupportStatusBadge.component.d.ts +3 -0
- package/dist/components/business/Support/SupportStatusTimeline.component.d.ts +15 -0
- package/dist/components/business/Support/SupportSystemMessage.component.d.ts +11 -0
- package/dist/components/business/Support/SupportSystemMessage.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTagEditor.d.ts +15 -0
- package/dist/components/business/Support/SupportTicketCreateForm.component.d.ts +2 -0
- package/dist/components/business/Support/SupportTicketCreateForm.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketCreateStepper.component.d.ts +2 -0
- package/dist/components/business/Support/SupportTicketCreateStepper.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketDetail.component.d.ts +8 -0
- package/dist/components/business/Support/SupportTicketDetail.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketDetail.mobile-layout.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketList.component.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketList.week-preset.spec.d.ts +1 -0
- package/dist/components/business/Support/SupportTicketListFilterBar.d.ts +15 -0
- package/dist/components/business/Support/SupportTopBar.component.d.ts +7 -0
- package/dist/components/business/Support/support-action.d.ts +17 -0
- package/dist/components/business/Support/support-action.logic.d.ts +12 -0
- package/dist/components/business/Support/support-action.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-attachment.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-author.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-create-stepper.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-create.logic.d.ts +28 -0
- package/dist/components/business/Support/support-create.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-message-anchor.d.ts +4 -0
- package/dist/components/business/Support/support-message-input.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-service.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-status-timeline.logic.spec.d.ts +1 -0
- package/dist/components/business/Support/support-tone.d.ts +11 -0
- package/dist/components/business/Support/test-support/support-detail.fixtures.d.ts +7 -0
- package/dist/components/business/Support/test-support/support-thread.fixtures.d.ts +9 -0
- package/dist/{legacy/components → components/business}/Support/types.d.ts +13 -4
- package/dist/components/business/Support/use-support-create-error-message.hook.d.ts +4 -0
- package/dist/components/business/index.d.ts +20 -0
- package/dist/components/inputs/ExpressionSearch/ExpressionSearch.d.ts +6 -1
- package/dist/components/inputs/SegmentedControl/SegmentedControl.d.ts +9 -1
- package/dist/cookie-consent.js +2 -2
- package/dist/design-theme-N9jJSXdK.js +27605 -0
- package/dist/{editors-C6Rocm6M.js → editors-QM76tqZI.js} +29 -29
- package/dist/editors.js +1 -1
- package/dist/hooks/use-rich-intl.hook.d.ts +130 -0
- package/dist/{index-DGoR-pBV.js → index-3-SmpH5N.js} +4 -4
- package/dist/{index-CuYK_i3Q.js → index-4b2f7sdW.js} +2 -2
- package/dist/{index-C1I7MW-q.js → index-5OVR3WNo.js} +3 -3
- package/dist/{index-CDWJlhuZ.js → index-BKAfoA1a.js} +2 -2
- package/dist/{AbyssCloud-B3rMelRi.js → index-C27b790L.js} +1448 -1017
- package/dist/{index-u-EAOYOb.js → index-C6jhogFt.js} +2 -2
- package/dist/{index-BI4ooqu1.js → index-CM5COMvb.js} +2 -2
- package/dist/{index-5AavH8Oo.js → index-COUUAr5G.js} +1 -1
- package/dist/{index-CKJMsjnV.js → index-CQU0eEXk.js} +4 -4
- package/dist/{index-DjAZPCEQ.js → index-Ce0rv5wr.js} +3 -3
- package/dist/{index-C1GCQ2Ke.js → index-D1M_muSg.js} +2 -2
- package/dist/{index-Cskjr11h.js → index-D8ncJrf1.js} +2 -2
- package/dist/{index-BElPTqLa.js → index-DA-HUFp6.js} +2 -2
- package/dist/{index-UjGNADrL.js → index-DCk0q3d7.js} +3 -3
- package/dist/{index-B58_3EoW.js → index-DW3SBSsW.js} +2 -2
- package/dist/{index-TshVV9T4.js → index-DYXAfA_s.js} +2 -2
- package/dist/{index-CDI4_t7D.js → index-DmAoL9-1.js} +4 -4
- package/dist/{index-Czhx2OUB.js → index-Taee9VIc.js} +2 -2
- package/dist/{index-Cwgj3j50.js → index-jZGexiyT.js} +3 -3
- package/dist/{index-Dutd4cJm.js → index-mmrA4ErC.js} +2 -2
- package/dist/{index-BYDMmzla.js → index-nKbvjf2P.js} +2 -2
- package/dist/{index-Dym_r-do.js → index-pX3CTxFd.js} +2 -2
- package/dist/index.js +13954 -9324
- package/dist/legacy/components/index.d.ts +0 -1
- package/dist/legacy/legacy-support-removed.spec.d.ts +1 -0
- package/dist/legacy.js +5634 -11703
- package/dist/theme/index.d.ts +1 -1
- package/dist/translations/en.d.ts +65 -0
- package/dist/translations/fr.d.ts +65 -0
- package/package.json +3 -3
- package/dist/clsx-D8ItxkrZ.js +0 -446
- package/dist/design-theme-D5L0JNbX.js +0 -26599
- package/dist/legacy/components/Support/AbyssServiceSelect.component.d.ts +0 -37
- package/dist/legacy/components/Support/SupportActionButtons.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportActivityLog.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportAttachmentsPanel.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportCategoryChip.component.d.ts +0 -9
- package/dist/legacy/components/Support/SupportCategoryGroupCards.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportCategorySelect.component.d.ts +0 -22
- package/dist/legacy/components/Support/SupportMessageInput.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportMessageThread.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportPriorityChip.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportSidebar.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportStatusBadge.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportStatusTimeline.component.d.ts +0 -10
- package/dist/legacy/components/Support/SupportTicketCreateForm.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTicketCreateStepper.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTicketDetail.component.d.ts +0 -3
- package/dist/legacy/components/Support/SupportTopBar.component.d.ts +0 -3
- package/dist/legacy/components/Support/index.d.ts +0 -18
- /package/dist/{legacy/components/Support/SupportCategoryPick.component.spec.d.ts → auth/components/AuthFlow/steps/MfaStep.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportMessageLink.component.spec.d.ts → components/business/Support/AbyssServiceSelect.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportSystemMessage.component.spec.d.ts → components/business/Support/SupportActivityLog.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportTicketDetail.mobile-layout.spec.d.ts → components/business/Support/SupportAttachmentsPanel.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/SupportTicketList.week-preset.spec.d.ts → components/business/Support/SupportBadges.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-attachment.logic.spec.d.ts → components/business/Support/SupportCategoryGroupCards.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-author.logic.spec.d.ts → components/business/Support/SupportCategorySelect.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-create-stepper.logic.spec.d.ts → components/business/Support/SupportMessageInput.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-message-input.logic.spec.d.ts → components/business/Support/SupportMessageLink.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-service.logic.spec.d.ts → components/business/Support/SupportMessageThread.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components/Support/support-status-timeline.logic.spec.d.ts → components/business/Support/SupportSidebar.component.spec.d.ts} +0 -0
- /package/dist/{legacy/components → components/business}/Support/SupportTicketList.component.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-attachment.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-author.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-category.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-create-stepper.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-message-input.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-service.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-status-timeline.logic.d.ts +0 -0
- /package/dist/{legacy/components → components/business}/Support/support-system-message.logic.d.ts +0 -0
|
@@ -2,46 +2,46 @@ import { jsxs as x, jsx as i, Fragment as J } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as D, cloneElement as fn, useState as I, useMemo as ge, useRef as Y, useCallback as Q, useEffect as B, createContext as Ee, useContext as ze, useLayoutEffect as Ae } from "react";
|
|
3
3
|
import le from "@mui/material/FormControl";
|
|
4
4
|
import se from "@mui/material/FormHelperText";
|
|
5
|
-
import
|
|
5
|
+
import Le from "@mui/material/InputLabel";
|
|
6
6
|
import xe from "@mui/material/MenuItem";
|
|
7
7
|
import mn from "@mui/material/Select";
|
|
8
8
|
import { styled as d, useTheme as hn, getContrastRatio as Ce } from "@mui/material/styles";
|
|
9
9
|
import { visuallyHidden as bn } from "@mui/utils";
|
|
10
|
-
import { useIntl as
|
|
11
|
-
import { a as R, p as o, h as A, d as Z, D as K, c as yn, t as
|
|
12
|
-
import
|
|
13
|
-
import fe from "@mui/material/OutlinedInput";
|
|
14
|
-
import xn from "@mui/material/InputAdornment";
|
|
15
|
-
import { i as Cn, b as kn, r as Sn, u as In, A as Fn, E as Mn } from "./AbyssCloud-B3rMelRi.js";
|
|
10
|
+
import { useIntl as L } from "react-intl";
|
|
11
|
+
import { a as R, p as o, h as A, d as Z, D as K, c as yn, t as $e, s as de, e as oe, g as te, M as De, b as Pe, i as vn, B as wn } from "./Surface-BEhoEhyC.js";
|
|
12
|
+
import { i as xn, b as Cn, r as kn, u as Sn, A as In, E as Fn } from "./index-C27b790L.js";
|
|
16
13
|
import X from "@mui/material/Button";
|
|
17
|
-
import { byteSizeIEC as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
14
|
+
import { byteSizeIEC as Mn } from "@abyss-project/main";
|
|
15
|
+
import Wn from "@mui/icons-material/FileUploadOutlined";
|
|
16
|
+
import On, { autocompleteClasses as ke } from "@mui/material/Autocomplete";
|
|
20
17
|
import Se from "@mui/material/CircularProgress";
|
|
21
18
|
import ae from "@mui/material/IconButton";
|
|
19
|
+
import fe from "@mui/material/OutlinedInput";
|
|
22
20
|
import Ie from "@mui/material/Tooltip";
|
|
23
21
|
import Fe from "@mui/icons-material/CloudOutlined";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
22
|
+
import Tn from "@mui/icons-material/CloudOffOutlined";
|
|
23
|
+
import Rn from "@mui/icons-material/FileDownloadOutlined";
|
|
24
|
+
import He from "@mui/icons-material/FolderOpenOutlined";
|
|
25
|
+
import En from "@mui/icons-material/OpenInNewRounded";
|
|
26
|
+
import zn from "@mui/icons-material/RefreshRounded";
|
|
27
|
+
import An from "@mui/icons-material/CheckCircleOutline";
|
|
28
|
+
import Ne from "@mui/icons-material/Close";
|
|
29
|
+
import Ln from "@mui/icons-material/ErrorOutline";
|
|
30
|
+
import $n from "@mui/icons-material/InfoOutlined";
|
|
31
|
+
import Dn from "@mui/icons-material/WarningAmber";
|
|
32
|
+
import Pn from "@mui/material/Checkbox";
|
|
33
|
+
import Hn from "@mui/icons-material/DescriptionOutlined";
|
|
34
|
+
import Nn from "@mui/icons-material/FolderOutlined";
|
|
35
|
+
import _n from "@mui/icons-material/ChevronRightRounded";
|
|
36
|
+
import Bn from "@mui/material/Alert";
|
|
37
|
+
import Vn from "@mui/material/TextField";
|
|
38
|
+
import jn from "@mui/material/Popover";
|
|
39
|
+
import _e from "@mui/material/ButtonBase";
|
|
40
|
+
import Gn from "@mui/material/InputAdornment";
|
|
41
|
+
import qn from "@mui/material/FormLabel";
|
|
42
|
+
import { isMuiElement as Un } from "@mui/material/utils";
|
|
43
43
|
import { Link as Kn } from "react-router-dom";
|
|
44
|
-
const Yn = d(
|
|
44
|
+
const Yn = d(qn)(({ theme: e }) => ({
|
|
45
45
|
display: "block",
|
|
46
46
|
maxWidth: "100%",
|
|
47
47
|
marginBottom: o(e.design.space[2]),
|
|
@@ -60,16 +60,16 @@ function Be({
|
|
|
60
60
|
required: r = !1,
|
|
61
61
|
children: s
|
|
62
62
|
}) {
|
|
63
|
-
const c = D(), a = s.props.id ?? c, l = `${a}-label`,
|
|
63
|
+
const c = D(), a = s.props.id ?? c, l = `${a}-label`, f = n !== void 0 ? `${a}-help` : void 0, v = t != null && t !== !1 && t !== "", b = v && t !== !0, g = b ? `${a}-error` : void 0, h = [s.props["aria-describedby"], f, g].filter((p) => p !== void 0 && p !== "").join(" ") || void 0, m = fn(s, {
|
|
64
64
|
id: a,
|
|
65
65
|
"aria-describedby": h,
|
|
66
|
-
...
|
|
66
|
+
...Un(s, ["Select"]) && { labelId: l }
|
|
67
67
|
});
|
|
68
|
-
return /* @__PURE__ */ x(le, { fullWidth: !0, error:
|
|
68
|
+
return /* @__PURE__ */ x(le, { fullWidth: !0, error: v, required: r, children: [
|
|
69
69
|
/* @__PURE__ */ i(Yn, { id: l, htmlFor: a, children: e }),
|
|
70
|
-
|
|
71
|
-
n !== void 0 && /* @__PURE__ */ i(se, { id:
|
|
72
|
-
|
|
70
|
+
m,
|
|
71
|
+
n !== void 0 && /* @__PURE__ */ i(se, { id: f, error: !1, children: n }),
|
|
72
|
+
b && /* @__PURE__ */ i(se, { id: g, children: t })
|
|
73
73
|
] });
|
|
74
74
|
}
|
|
75
75
|
var Ve = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Danger = "danger", e))(Ve || {});
|
|
@@ -88,14 +88,14 @@ const je = {
|
|
|
88
88
|
soft: "status.danger.soft"
|
|
89
89
|
}
|
|
90
90
|
}, Xn = {
|
|
91
|
-
info:
|
|
92
|
-
success:
|
|
93
|
-
warning:
|
|
94
|
-
danger:
|
|
91
|
+
info: $n,
|
|
92
|
+
success: An,
|
|
93
|
+
warning: Dn,
|
|
94
|
+
danger: Ln
|
|
95
95
|
}, Qn = d("div", {
|
|
96
96
|
shouldForwardProp: (e) => e !== "severity"
|
|
97
97
|
})(({ theme: e, severity: n }) => {
|
|
98
|
-
const { tokens: t, space: r, radii: s, fonts: c, typeScale: a } = e.design, { solid: l, soft:
|
|
98
|
+
const { tokens: t, space: r, radii: s, fonts: c, typeScale: a } = e.design, { solid: l, soft: f } = je[n];
|
|
99
99
|
return {
|
|
100
100
|
display: "flex",
|
|
101
101
|
alignItems: "flex-start",
|
|
@@ -103,7 +103,7 @@ const je = {
|
|
|
103
103
|
minWidth: 0,
|
|
104
104
|
boxSizing: "border-box",
|
|
105
105
|
padding: `${o(r[3])} ${o(r[3])} ${o(r[3])} ${o(r[4])}`,
|
|
106
|
-
backgroundColor: t[
|
|
106
|
+
backgroundColor: t[f],
|
|
107
107
|
border: A(t[l]),
|
|
108
108
|
borderRadius: o(s.md),
|
|
109
109
|
color: t["text.primary"],
|
|
@@ -162,7 +162,7 @@ function rt({
|
|
|
162
162
|
onClose: s,
|
|
163
163
|
icon: c
|
|
164
164
|
}) {
|
|
165
|
-
const a =
|
|
165
|
+
const a = L(), l = D(), f = Xn[e];
|
|
166
166
|
return /* @__PURE__ */ x(
|
|
167
167
|
Qn,
|
|
168
168
|
{
|
|
@@ -171,7 +171,7 @@ function rt({
|
|
|
171
171
|
"aria-labelledby": n !== void 0 ? l : void 0,
|
|
172
172
|
"data-severity": e,
|
|
173
173
|
children: [
|
|
174
|
-
/* @__PURE__ */ i(Zn, { severity: e, "aria-hidden": !0, children: c ?? /* @__PURE__ */ i(
|
|
174
|
+
/* @__PURE__ */ i(Zn, { severity: e, "aria-hidden": !0, children: c ?? /* @__PURE__ */ i(f, {}) }),
|
|
175
175
|
/* @__PURE__ */ x(Jn, { children: [
|
|
176
176
|
/* @__PURE__ */ x(et, { children: [
|
|
177
177
|
n !== void 0 && /* @__PURE__ */ i(nt, { id: l, children: n }),
|
|
@@ -185,14 +185,14 @@ function rt({
|
|
|
185
185
|
size: "small",
|
|
186
186
|
"aria-label": a.formatMessage({ id: "ds.states.callout.close" }),
|
|
187
187
|
onClick: s,
|
|
188
|
-
children: /* @__PURE__ */ i(
|
|
188
|
+
children: /* @__PURE__ */ i(Ne, { "aria-hidden": !0 })
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
const U = (e) => e.id ?? e.name, Ge = (e, n, t) => (n === void 0 || e.sizeOctet <= n) &&
|
|
195
|
+
const U = (e) => e.id ?? e.name, Ge = (e, n, t) => (n === void 0 || e.sizeOctet <= n) && xn(e, t), qe = (e, n, t) => [
|
|
196
196
|
...(e.childFile ?? []).filter(
|
|
197
197
|
(r) => Ge(r, n, t)
|
|
198
198
|
),
|
|
@@ -212,7 +212,7 @@ const U = (e) => e.id ?? e.name, Ge = (e, n, t) => (n === void 0 || e.sizeOctet
|
|
|
212
212
|
backgroundColor: n ? de(t.accent) : "transparent",
|
|
213
213
|
fontSize: o(l.body),
|
|
214
214
|
color: t["text.primary"],
|
|
215
|
-
|
|
215
|
+
...$e(e)
|
|
216
216
|
};
|
|
217
217
|
}), Ue = (e) => {
|
|
218
218
|
const { tokens: n, space: t, radii: r, fonts: s } = e.design;
|
|
@@ -261,7 +261,7 @@ const U = (e) => e.id ?? e.name, Ge = (e, n, t) => (n === void 0 || e.sizeOctet
|
|
|
261
261
|
"& svg": { width: o(t[5]), height: o(t[5]) },
|
|
262
262
|
"& img": { width: "100%", height: "100%", objectFit: "cover" }
|
|
263
263
|
};
|
|
264
|
-
}), st = d(
|
|
264
|
+
}), st = d(_n, {
|
|
265
265
|
shouldForwardProp: (e) => e !== "open"
|
|
266
266
|
})(({ theme: e, open: n }) => ({
|
|
267
267
|
flex: "none",
|
|
@@ -270,7 +270,7 @@ const U = (e) => e.id ?? e.name, Ge = (e, n, t) => (n === void 0 || e.sizeOctet
|
|
|
270
270
|
color: e.design.tokens["text.muted"],
|
|
271
271
|
transform: n ? "rotate(90deg)" : "none",
|
|
272
272
|
transition: oe(e, ["transform"])
|
|
273
|
-
})), Qe = d(
|
|
273
|
+
})), Qe = d(Pn)(({ theme: e }) => ({
|
|
274
274
|
[Z.down(K.Tablet)]: {
|
|
275
275
|
padding: o(
|
|
276
276
|
(e.design.densityValues.touchTarget - e.design.space[5]) / 2
|
|
@@ -306,7 +306,7 @@ function lt({
|
|
|
306
306
|
draggable: !1,
|
|
307
307
|
onError: () => r(!0)
|
|
308
308
|
}
|
|
309
|
-
) : /* @__PURE__ */ i(
|
|
309
|
+
) : /* @__PURE__ */ i(Hn, {}) });
|
|
310
310
|
}
|
|
311
311
|
function dt({
|
|
312
312
|
file: e,
|
|
@@ -339,19 +339,19 @@ function ct({
|
|
|
339
339
|
folder: e,
|
|
340
340
|
context: n
|
|
341
341
|
}) {
|
|
342
|
-
const t =
|
|
343
|
-
(
|
|
344
|
-
).length,
|
|
342
|
+
const t = L(), r = D(), [s, c] = I(!1), a = qe(e, n.maxSize, n.accept), l = a.filter(
|
|
343
|
+
(v) => n.selectedIds.has(U(v))
|
|
344
|
+
).length, f = a.length > 0 && l === a.length;
|
|
345
345
|
return /* @__PURE__ */ x(J, { children: [
|
|
346
|
-
/* @__PURE__ */ x(ue, { selected:
|
|
346
|
+
/* @__PURE__ */ x(ue, { selected: f, children: [
|
|
347
347
|
n.multiple && /* @__PURE__ */ i(
|
|
348
348
|
Qe,
|
|
349
349
|
{
|
|
350
350
|
size: "small",
|
|
351
|
-
checked:
|
|
352
|
-
indeterminate: l > 0 && !
|
|
351
|
+
checked: f,
|
|
352
|
+
indeterminate: l > 0 && !f,
|
|
353
353
|
disabled: a.length === 0,
|
|
354
|
-
onChange: () =>
|
|
354
|
+
onChange: () => f ? n.unselect(a) : n.select(a),
|
|
355
355
|
inputProps: {
|
|
356
356
|
"aria-label": t.formatMessage(
|
|
357
357
|
{ id: "ds.business.cloud-import.select-folder" },
|
|
@@ -369,8 +369,8 @@ function ct({
|
|
|
369
369
|
onClick: () => c(!s),
|
|
370
370
|
children: [
|
|
371
371
|
/* @__PURE__ */ i(st, { open: s, "aria-hidden": !0 }),
|
|
372
|
-
/* @__PURE__ */ i(Xe, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(
|
|
373
|
-
/* @__PURE__ */ i(Ye, { strong:
|
|
372
|
+
/* @__PURE__ */ i(Xe, { "aria-hidden": !0, children: s ? /* @__PURE__ */ i(He, {}) : /* @__PURE__ */ i(Nn, {}) }),
|
|
373
|
+
/* @__PURE__ */ i(Ye, { strong: f, title: e.name, children: e.name })
|
|
374
374
|
]
|
|
375
375
|
}
|
|
376
376
|
)
|
|
@@ -466,7 +466,7 @@ const We = "shared", Oe = {
|
|
|
466
466
|
display: "flex",
|
|
467
467
|
alignItems: "center",
|
|
468
468
|
gap: o(e.design.space[2]),
|
|
469
|
-
|
|
469
|
+
...$e(e)
|
|
470
470
|
})), xt = d("span")({
|
|
471
471
|
display: "flex",
|
|
472
472
|
flexDirection: "column",
|
|
@@ -517,23 +517,23 @@ function Wt({
|
|
|
517
517
|
abyssCloudUrl: c,
|
|
518
518
|
getFileThumbnailUrl: a,
|
|
519
519
|
getSpaceDisplay: l,
|
|
520
|
-
clouds:
|
|
521
|
-
cloudShares:
|
|
522
|
-
isLoading:
|
|
523
|
-
hasError:
|
|
520
|
+
clouds: f,
|
|
521
|
+
cloudShares: v,
|
|
522
|
+
isLoading: b,
|
|
523
|
+
hasError: g,
|
|
524
524
|
refresh: h,
|
|
525
|
-
onCreateCloud:
|
|
525
|
+
onCreateCloud: m,
|
|
526
526
|
fetchCloudRepository: p
|
|
527
|
-
} = e, u =
|
|
527
|
+
} = e, u = L(), [y, C] = I(null), [F, P] = I(null), [O, H] = I(
|
|
528
528
|
"loading"
|
|
529
529
|
/* Loading */
|
|
530
530
|
), [V, T] = I([]), [M, ee] = I(!1), [re, N] = I(!1), j = ge(() => {
|
|
531
|
-
const
|
|
531
|
+
const w = [], S = /* @__PURE__ */ new Map(), k = u.formatMessage({
|
|
532
532
|
id: "ds.business.cloud-import.section-organization"
|
|
533
533
|
});
|
|
534
|
-
for (const W of
|
|
534
|
+
for (const W of f ?? []) {
|
|
535
535
|
if (!W.organizationId) {
|
|
536
|
-
|
|
536
|
+
w.push(W);
|
|
537
537
|
continue;
|
|
538
538
|
}
|
|
539
539
|
const z = l == null ? void 0 : l(W), _ = S.get(W.organizationId) ?? {
|
|
@@ -548,20 +548,20 @@ function Wt({
|
|
|
548
548
|
const E = Oe[l(z).scope ?? "personal"], we = Oe[l(_).scope ?? "personal"];
|
|
549
549
|
return E !== we ? E - we : l(z).label.localeCompare(l(_).label);
|
|
550
550
|
});
|
|
551
|
-
const
|
|
551
|
+
const $ = (W, z) => (_) => {
|
|
552
552
|
const E = l == null ? void 0 : l(_);
|
|
553
553
|
return {
|
|
554
554
|
space: _,
|
|
555
555
|
sectionKey: W,
|
|
556
556
|
sectionLabel: z,
|
|
557
|
-
label: (E == null ? void 0 : E.label) ??
|
|
557
|
+
label: (E == null ? void 0 : E.label) ?? kn(_, u),
|
|
558
558
|
subtitle: E == null ? void 0 : E.subtitle,
|
|
559
559
|
avatar: E == null ? void 0 : E.avatar
|
|
560
560
|
};
|
|
561
561
|
};
|
|
562
562
|
return [
|
|
563
|
-
...
|
|
564
|
-
|
|
563
|
+
...w.map(
|
|
564
|
+
$(
|
|
565
565
|
"personal",
|
|
566
566
|
u.formatMessage({
|
|
567
567
|
id: "ds.business.cloud-import.section-personal"
|
|
@@ -569,27 +569,27 @@ function Wt({
|
|
|
569
569
|
)
|
|
570
570
|
),
|
|
571
571
|
...[...S].flatMap(
|
|
572
|
-
([W, z]) => z.items.map(
|
|
572
|
+
([W, z]) => z.items.map($(`org:${W}`, z.name))
|
|
573
573
|
),
|
|
574
|
-
...(
|
|
575
|
-
|
|
574
|
+
...(v ?? []).map(
|
|
575
|
+
$(
|
|
576
576
|
We,
|
|
577
577
|
u.formatMessage({ id: "ds.business.cloud-import.section-shared" })
|
|
578
578
|
)
|
|
579
579
|
)
|
|
580
580
|
];
|
|
581
|
-
}, [
|
|
581
|
+
}, [f, v, l, u]), G = j.find((w) => w.space.id === (y == null ? void 0 : y.id)) ?? null, ce = Y(0), me = Y(p);
|
|
582
582
|
me.current = p;
|
|
583
|
-
const ie = Q(async (
|
|
583
|
+
const ie = Q(async (w) => {
|
|
584
584
|
const S = ++ce.current;
|
|
585
585
|
H(
|
|
586
586
|
"loading"
|
|
587
587
|
/* Loading */
|
|
588
588
|
), T([]);
|
|
589
589
|
try {
|
|
590
|
-
if (
|
|
590
|
+
if (w.id === void 0)
|
|
591
591
|
throw new Error("A Space without an id has no tree");
|
|
592
|
-
const k = await me.current(
|
|
592
|
+
const k = await me.current(w.id);
|
|
593
593
|
S === ce.current && (P(k), H(
|
|
594
594
|
"ready"
|
|
595
595
|
/* Ready */
|
|
@@ -604,25 +604,25 @@ function Wt({
|
|
|
604
604
|
B(() => {
|
|
605
605
|
ln.current();
|
|
606
606
|
}, []), B(() => {
|
|
607
|
-
if (
|
|
607
|
+
if (y && j.some((k) => k.space.id === y.id))
|
|
608
608
|
return;
|
|
609
|
-
const
|
|
609
|
+
const w = j.map((k) => k.space), S = w.find(
|
|
610
610
|
(k) => !!k.userId && !k.organizationId && !k.projectId
|
|
611
611
|
);
|
|
612
|
-
C(S ??
|
|
613
|
-
}, [j,
|
|
614
|
-
|
|
615
|
-
}, [
|
|
612
|
+
C(S ?? w[0] ?? null);
|
|
613
|
+
}, [j, y]), B(() => {
|
|
614
|
+
y && ie(y);
|
|
615
|
+
}, [y, ie]);
|
|
616
616
|
const dn = async () => {
|
|
617
617
|
if (N(!1), !await h()) {
|
|
618
618
|
N(!0);
|
|
619
619
|
return;
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
y && await ie(y);
|
|
622
622
|
}, cn = async () => {
|
|
623
623
|
ee(!0);
|
|
624
624
|
try {
|
|
625
|
-
await
|
|
625
|
+
await m();
|
|
626
626
|
} finally {
|
|
627
627
|
ee(!1);
|
|
628
628
|
}
|
|
@@ -632,22 +632,22 @@ function Wt({
|
|
|
632
632
|
accept: s,
|
|
633
633
|
selectedIds: new Set(V.map(U)),
|
|
634
634
|
getFileThumbnailUrl: a,
|
|
635
|
-
select: (
|
|
635
|
+
select: (w) => T((S) => {
|
|
636
636
|
if (!t)
|
|
637
|
-
return
|
|
637
|
+
return w.slice(0, 1);
|
|
638
638
|
const k = new Set(S.map(U));
|
|
639
639
|
return [
|
|
640
640
|
...S,
|
|
641
|
-
...
|
|
641
|
+
...w.filter(($) => !k.has(U($)))
|
|
642
642
|
];
|
|
643
643
|
}),
|
|
644
|
-
unselect: (
|
|
645
|
-
const S = new Set(
|
|
644
|
+
unselect: (w) => {
|
|
645
|
+
const S = new Set(w.map(U));
|
|
646
646
|
T(
|
|
647
|
-
(k) => k.filter((
|
|
647
|
+
(k) => k.filter(($) => !S.has(U($)))
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
}, pn =
|
|
650
|
+
}, pn = f !== null && v !== null, he = /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(
|
|
651
651
|
Se,
|
|
652
652
|
{
|
|
653
653
|
size: 32,
|
|
@@ -656,11 +656,11 @@ function Wt({
|
|
|
656
656
|
})
|
|
657
657
|
}
|
|
658
658
|
) });
|
|
659
|
-
if (!pn && (
|
|
659
|
+
if (!pn && (b || !g))
|
|
660
660
|
return he;
|
|
661
661
|
if (j.length === 0)
|
|
662
662
|
return /* @__PURE__ */ x(ne, { children: [
|
|
663
|
-
/* @__PURE__ */ i(mt, { "aria-hidden": !0, children: /* @__PURE__ */ i(
|
|
663
|
+
/* @__PURE__ */ i(mt, { "aria-hidden": !0, children: /* @__PURE__ */ i(Tn, {}) }),
|
|
664
664
|
/* @__PURE__ */ i(ht, { children: u.formatMessage({
|
|
665
665
|
id: "ds.business.cloud-import.create-error.title"
|
|
666
666
|
}) }),
|
|
@@ -672,7 +672,7 @@ function Wt({
|
|
|
672
672
|
{
|
|
673
673
|
variant: "contained",
|
|
674
674
|
startIcon: /* @__PURE__ */ i(Fe, { "aria-hidden": !0 }),
|
|
675
|
-
loading: M ||
|
|
675
|
+
loading: M || b,
|
|
676
676
|
onClick: () => void cn(),
|
|
677
677
|
children: u.formatMessage({
|
|
678
678
|
id: "ds.business.cloud-import.create-error.create-button"
|
|
@@ -682,7 +682,7 @@ function Wt({
|
|
|
682
682
|
] });
|
|
683
683
|
if (G === null)
|
|
684
684
|
return he;
|
|
685
|
-
const gn =
|
|
685
|
+
const gn = Cn(
|
|
686
686
|
c,
|
|
687
687
|
G.space,
|
|
688
688
|
G.sectionKey === We
|
|
@@ -690,7 +690,7 @@ function Wt({
|
|
|
690
690
|
id: "ds.business.cloud-import.refresh"
|
|
691
691
|
}), ye = u.formatMessage({
|
|
692
692
|
id: "ds.business.cloud-import.open-in-cloud"
|
|
693
|
-
}), ve = (
|
|
693
|
+
}), ve = (w) => w.avatar ?? /* @__PURE__ */ i(Fe, {});
|
|
694
694
|
return /* @__PURE__ */ x(ut, { children: [
|
|
695
695
|
re && /* @__PURE__ */ i(
|
|
696
696
|
rt,
|
|
@@ -702,36 +702,36 @@ function Wt({
|
|
|
702
702
|
),
|
|
703
703
|
/* @__PURE__ */ x(pt, { children: [
|
|
704
704
|
/* @__PURE__ */ i(
|
|
705
|
-
|
|
705
|
+
On,
|
|
706
706
|
{
|
|
707
707
|
fullWidth: !0,
|
|
708
708
|
disableClearable: !0,
|
|
709
709
|
options: j,
|
|
710
710
|
value: G,
|
|
711
|
-
groupBy: (
|
|
712
|
-
getOptionLabel: (
|
|
713
|
-
isOptionEqualToValue: (
|
|
714
|
-
onChange: (
|
|
715
|
-
filterOptions: (
|
|
711
|
+
groupBy: (w) => w.sectionLabel,
|
|
712
|
+
getOptionLabel: (w) => w.label,
|
|
713
|
+
isOptionEqualToValue: (w, S) => w.space.id === S.space.id,
|
|
714
|
+
onChange: (w, S) => C(S.space),
|
|
715
|
+
filterOptions: (w, { inputValue: S }) => {
|
|
716
716
|
const k = S.trim().toLowerCase();
|
|
717
|
-
return k === "" || k === G.label.toLowerCase() ?
|
|
718
|
-
(
|
|
717
|
+
return k === "" || k === G.label.toLowerCase() ? w : w.filter(
|
|
718
|
+
($) => [$.label, $.subtitle ?? ""].some(
|
|
719
719
|
(W) => W.toLowerCase().includes(k)
|
|
720
720
|
)
|
|
721
721
|
);
|
|
722
722
|
},
|
|
723
|
-
renderGroup: (
|
|
724
|
-
/* @__PURE__ */ i(Ft, { children:
|
|
725
|
-
/* @__PURE__ */ i(Mt, { children:
|
|
726
|
-
] },
|
|
727
|
-
renderOption: ({ key:
|
|
723
|
+
renderGroup: (w) => /* @__PURE__ */ x(It, { children: [
|
|
724
|
+
/* @__PURE__ */ i(Ft, { children: w.group }),
|
|
725
|
+
/* @__PURE__ */ i(Mt, { children: w.children })
|
|
726
|
+
] }, w.key),
|
|
727
|
+
renderOption: ({ key: w, ...S }, k) => /* @__PURE__ */ x(wt, { ...S, children: [
|
|
728
728
|
/* @__PURE__ */ i(Je, { "aria-hidden": !0, children: ve(k) }),
|
|
729
729
|
/* @__PURE__ */ x(xt, { children: [
|
|
730
730
|
/* @__PURE__ */ i(Ct, { children: k.label }),
|
|
731
731
|
k.subtitle !== void 0 && /* @__PURE__ */ i(kt, { children: k.subtitle })
|
|
732
732
|
] })
|
|
733
|
-
] },
|
|
734
|
-
renderInput: (
|
|
733
|
+
] }, w),
|
|
734
|
+
renderInput: (w) => /* @__PURE__ */ i(
|
|
735
735
|
Be,
|
|
736
736
|
{
|
|
737
737
|
label: u.formatMessage({
|
|
@@ -740,10 +740,10 @@ function Wt({
|
|
|
740
740
|
children: /* @__PURE__ */ i(
|
|
741
741
|
fe,
|
|
742
742
|
{
|
|
743
|
-
...
|
|
744
|
-
id:
|
|
743
|
+
...w.InputProps,
|
|
744
|
+
id: w.id,
|
|
745
745
|
fullWidth: !0,
|
|
746
|
-
inputProps:
|
|
746
|
+
inputProps: w.inputProps,
|
|
747
747
|
startAdornment: /* @__PURE__ */ i(St, { "aria-hidden": !0, children: ve(G) })
|
|
748
748
|
}
|
|
749
749
|
)
|
|
@@ -755,9 +755,9 @@ function Wt({
|
|
|
755
755
|
ae,
|
|
756
756
|
{
|
|
757
757
|
"aria-label": be,
|
|
758
|
-
disabled: O === "loading" ||
|
|
758
|
+
disabled: O === "loading" || b,
|
|
759
759
|
onClick: () => void dn(),
|
|
760
|
-
children: /* @__PURE__ */ i(
|
|
760
|
+
children: /* @__PURE__ */ i(zn, { "aria-hidden": !0 })
|
|
761
761
|
}
|
|
762
762
|
) }) }),
|
|
763
763
|
/* @__PURE__ */ i(Ie, { title: ye, children: /* @__PURE__ */ i(
|
|
@@ -768,7 +768,7 @@ function Wt({
|
|
|
768
768
|
target: "_blank",
|
|
769
769
|
rel: "noreferrer",
|
|
770
770
|
"aria-label": ye,
|
|
771
|
-
children: /* @__PURE__ */ i(
|
|
771
|
+
children: /* @__PURE__ */ i(En, { "aria-hidden": !0 })
|
|
772
772
|
}
|
|
773
773
|
) })
|
|
774
774
|
] }),
|
|
@@ -794,7 +794,7 @@ function Wt({
|
|
|
794
794
|
)
|
|
795
795
|
] }),
|
|
796
796
|
O === "ready" && F !== null && (F.folders.length === 0 && F.files.length === 0 ? /* @__PURE__ */ x(ne, { children: [
|
|
797
|
-
/* @__PURE__ */ i(
|
|
797
|
+
/* @__PURE__ */ i(He, { "aria-hidden": !0 }),
|
|
798
798
|
u.formatMessage({ id: "ds.business.cloud-import.empty-space" })
|
|
799
799
|
] }) : /* @__PURE__ */ i(
|
|
800
800
|
ft,
|
|
@@ -821,7 +821,7 @@ function Wt({
|
|
|
821
821
|
X,
|
|
822
822
|
{
|
|
823
823
|
variant: "contained",
|
|
824
|
-
startIcon: /* @__PURE__ */ i(
|
|
824
|
+
startIcon: /* @__PURE__ */ i(Rn, { "aria-hidden": !0 }),
|
|
825
825
|
disabled: V.length === 0,
|
|
826
826
|
onClick: () => n(G.space, V),
|
|
827
827
|
children: u.formatMessage({ id: "ds.business.cloud-import.import" })
|
|
@@ -839,7 +839,7 @@ function Ot({
|
|
|
839
839
|
maxSize: c,
|
|
840
840
|
accept: a
|
|
841
841
|
}) {
|
|
842
|
-
const l =
|
|
842
|
+
const l = L();
|
|
843
843
|
return /* @__PURE__ */ i(
|
|
844
844
|
De,
|
|
845
845
|
{
|
|
@@ -854,8 +854,8 @@ function Ot({
|
|
|
854
854
|
multiple: s,
|
|
855
855
|
maxSize: c,
|
|
856
856
|
accept: a,
|
|
857
|
-
onImport: (
|
|
858
|
-
t(
|
|
857
|
+
onImport: (f, v) => {
|
|
858
|
+
t(f, v), n();
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
861
|
)
|
|
@@ -870,7 +870,7 @@ const Tt = Ee(
|
|
|
870
870
|
// Three times the largest spacing step: room for a label and the arrow.
|
|
871
871
|
minWidth: o(e.design.space[10] * 3),
|
|
872
872
|
maxWidth: "100%"
|
|
873
|
-
})), Et = d(
|
|
873
|
+
})), Et = d(Le)(({ theme: e }) => ({
|
|
874
874
|
position: "relative",
|
|
875
875
|
transform: "none",
|
|
876
876
|
maxWidth: "100%",
|
|
@@ -896,11 +896,11 @@ const Tt = Ee(
|
|
|
896
896
|
height: o(e.design.space[2]),
|
|
897
897
|
borderRadius: o(e.design.radii.sm / 2),
|
|
898
898
|
backgroundColor: e.design.tokens[n]
|
|
899
|
-
})),
|
|
899
|
+
})), Lt = d("span")({
|
|
900
900
|
display: "flex",
|
|
901
901
|
flexDirection: "column",
|
|
902
902
|
minWidth: 0
|
|
903
|
-
}),
|
|
903
|
+
}), $t = d("span")(({ theme: e }) => ({
|
|
904
904
|
fontSize: o(e.design.typeScale.caption),
|
|
905
905
|
color: e.design.tokens["text.muted"],
|
|
906
906
|
whiteSpace: "normal"
|
|
@@ -921,27 +921,27 @@ function hr({
|
|
|
921
921
|
error: a,
|
|
922
922
|
size: l
|
|
923
923
|
}) {
|
|
924
|
-
const
|
|
925
|
-
return /* @__PURE__ */ x(
|
|
924
|
+
const f = L(), v = ze(Tt), b = (l ?? v) === en.Compact, g = b ? Rt : le, h = D(), m = `${h}-label`, p = `${h}-helper`, u = new Map(n.map((C) => [C.value, C]));
|
|
925
|
+
return /* @__PURE__ */ x(g, { fullWidth: !b, disabled: c, error: !!a, children: [
|
|
926
926
|
/* @__PURE__ */ i(
|
|
927
927
|
Et,
|
|
928
928
|
{
|
|
929
|
-
id:
|
|
929
|
+
id: m,
|
|
930
930
|
shrink: !0,
|
|
931
|
-
style:
|
|
931
|
+
style: b ? bn : void 0,
|
|
932
932
|
children: e
|
|
933
933
|
}
|
|
934
934
|
),
|
|
935
935
|
/* @__PURE__ */ x(
|
|
936
936
|
mn,
|
|
937
937
|
{
|
|
938
|
-
labelId:
|
|
938
|
+
labelId: m,
|
|
939
939
|
multiple: s,
|
|
940
940
|
value: t,
|
|
941
941
|
displayEmpty: !0,
|
|
942
942
|
renderValue: (C) => {
|
|
943
943
|
const F = Array.isArray(C) ? C : [C];
|
|
944
|
-
return
|
|
944
|
+
return b && F.length === 0 ? /* @__PURE__ */ i(Dt, { "aria-hidden": !0, children: e }) : /* @__PURE__ */ i(pe, { children: F.map((P) => {
|
|
945
945
|
var O;
|
|
946
946
|
return ((O = u.get(P)) == null ? void 0 : O.label) ?? P;
|
|
947
947
|
}).join(", ") });
|
|
@@ -949,13 +949,13 @@ function hr({
|
|
|
949
949
|
"aria-describedby": a ? p : void 0,
|
|
950
950
|
onChange: (C) => r(C.target.value),
|
|
951
951
|
children: [
|
|
952
|
-
n.length === 0 && /* @__PURE__ */ i(xe, { disabled: !0, value: "", children:
|
|
952
|
+
n.length === 0 && /* @__PURE__ */ i(xe, { disabled: !0, value: "", children: f.formatMessage({ id: "ds.inputs.rich-select.empty" }) }),
|
|
953
953
|
n.map((C) => /* @__PURE__ */ i(xe, { value: C.value, children: /* @__PURE__ */ x(zt, { children: [
|
|
954
954
|
C.tone && /* @__PURE__ */ i(At, { token: C.tone }),
|
|
955
955
|
C.icon,
|
|
956
|
-
/* @__PURE__ */ x(
|
|
956
|
+
/* @__PURE__ */ x(Lt, { children: [
|
|
957
957
|
/* @__PURE__ */ i(pe, { children: C.label }),
|
|
958
|
-
C.description && /* @__PURE__ */ i(
|
|
958
|
+
C.description && /* @__PURE__ */ i($t, { children: C.description })
|
|
959
959
|
] })
|
|
960
960
|
] }) }, C.value))
|
|
961
961
|
]
|
|
@@ -964,339 +964,16 @@ function hr({
|
|
|
964
964
|
a && /* @__PURE__ */ i(se, { id: p, children: a })
|
|
965
965
|
] });
|
|
966
966
|
}
|
|
967
|
-
const
|
|
968
|
-
266,
|
|
969
|
-
296,
|
|
970
|
-
326,
|
|
971
|
-
356,
|
|
972
|
-
26,
|
|
973
|
-
56,
|
|
974
|
-
86,
|
|
975
|
-
116,
|
|
976
|
-
146,
|
|
977
|
-
176,
|
|
978
|
-
206,
|
|
979
|
-
236
|
|
980
|
-
], nn = [
|
|
981
|
-
"#81a2f0",
|
|
982
|
-
"#ab94e7",
|
|
983
|
-
"#cb89cd",
|
|
984
|
-
"#e084a7",
|
|
985
|
-
"#e6867d",
|
|
986
|
-
"#de9056",
|
|
987
|
-
"#c69f41",
|
|
988
|
-
"#a1ae50",
|
|
989
|
-
"#70b976",
|
|
990
|
-
"#37bda2",
|
|
991
|
-
"#18b9c9",
|
|
992
|
-
"#4eb0e5"
|
|
993
|
-
], vr = "#767676", wr = nn[6], xr = "#111a2f", Cr = "#5674be", Pt = /^#?([0-9a-f]{6})$/i, q = (e) => {
|
|
994
|
-
const n = Pt.exec(e.trim());
|
|
995
|
-
return n ? `#${n[1].toLowerCase()}` : null;
|
|
996
|
-
}, Ht = d("div")(({ theme: e }) => ({
|
|
997
|
-
display: "flex",
|
|
998
|
-
alignItems: "center",
|
|
999
|
-
gap: o(e.design.space[3])
|
|
1000
|
-
})), Nt = d("span")(({ theme: e }) => ({
|
|
1001
|
-
flex: "none",
|
|
1002
|
-
width: o(e.design.densityValues[e.design.density].control),
|
|
1003
|
-
height: o(e.design.densityValues[e.design.density].control),
|
|
1004
|
-
borderRadius: o(e.design.radii.md),
|
|
1005
|
-
border: A(e.design.tokens["border.control"])
|
|
1006
|
-
})), _t = d("div")(({ theme: e }) => ({
|
|
1007
|
-
display: "flex",
|
|
1008
|
-
flexWrap: "wrap",
|
|
1009
|
-
gap: o(e.design.space[2]),
|
|
1010
|
-
marginTop: o(e.design.space[2])
|
|
1011
|
-
})), Bt = d(He)(({ theme: e }) => {
|
|
1012
|
-
const { densityValues: n, density: t, space: r } = e.design, s = n[t].control - r[2];
|
|
1013
|
-
return {
|
|
1014
|
-
width: o(s),
|
|
1015
|
-
height: o(s),
|
|
1016
|
-
borderRadius: o(e.design.radii.sm),
|
|
1017
|
-
border: A(e.design.tokens["border.control"]),
|
|
1018
|
-
// The chosen swatch carries the ring of the design system (`focus.ring` is the accent).
|
|
1019
|
-
'&[aria-pressed="true"]': te(e),
|
|
1020
|
-
"&.Mui-focusVisible": te(e),
|
|
1021
|
-
[Z.down(K.Tablet)]: {
|
|
1022
|
-
width: o(e.design.densityValues.touchTarget),
|
|
1023
|
-
height: o(e.design.densityValues.touchTarget)
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
});
|
|
1027
|
-
function kr({
|
|
1028
|
-
label: e,
|
|
1029
|
-
value: n,
|
|
1030
|
-
onChange: t,
|
|
1031
|
-
swatches: r = nn
|
|
1032
|
-
}) {
|
|
1033
|
-
const s = $(), c = D(), [a, l] = I(n), g = a !== "" && q(a) === null;
|
|
1034
|
-
B(() => {
|
|
1035
|
-
l(
|
|
1036
|
-
(m) => q(m) === q(n) ? m : n
|
|
1037
|
-
);
|
|
1038
|
-
}, [n]);
|
|
1039
|
-
const b = (m) => {
|
|
1040
|
-
l(m);
|
|
1041
|
-
const h = q(m);
|
|
1042
|
-
h !== null && h !== q(n) && t(h);
|
|
1043
|
-
}, f = q(n);
|
|
1044
|
-
return /* @__PURE__ */ x(le, { fullWidth: !0, error: g, children: [
|
|
1045
|
-
/* @__PURE__ */ i($e, { htmlFor: `${c}-hex`, children: e }),
|
|
1046
|
-
/* @__PURE__ */ x(Ht, { children: [
|
|
1047
|
-
/* @__PURE__ */ i(
|
|
1048
|
-
Nt,
|
|
1049
|
-
{
|
|
1050
|
-
"aria-hidden": "true",
|
|
1051
|
-
style: { backgroundColor: f ?? void 0 }
|
|
1052
|
-
}
|
|
1053
|
-
),
|
|
1054
|
-
/* @__PURE__ */ i(
|
|
1055
|
-
fe,
|
|
1056
|
-
{
|
|
1057
|
-
id: `${c}-hex`,
|
|
1058
|
-
fullWidth: !0,
|
|
1059
|
-
value: a,
|
|
1060
|
-
error: g,
|
|
1061
|
-
inputProps: {
|
|
1062
|
-
"aria-describedby": g ? `${c}-error` : void 0,
|
|
1063
|
-
spellCheck: !1,
|
|
1064
|
-
autoComplete: "off"
|
|
1065
|
-
},
|
|
1066
|
-
onChange: (m) => b(m.target.value)
|
|
1067
|
-
}
|
|
1068
|
-
)
|
|
1069
|
-
] }),
|
|
1070
|
-
g && /* @__PURE__ */ i(se, { id: `${c}-error`, children: s.formatMessage({ id: "ds.inputs.color.invalid" }) }),
|
|
1071
|
-
/* @__PURE__ */ i(
|
|
1072
|
-
_t,
|
|
1073
|
-
{
|
|
1074
|
-
role: "group",
|
|
1075
|
-
"aria-label": s.formatMessage({ id: "ds.inputs.color.swatches" }),
|
|
1076
|
-
children: r.map((m) => /* @__PURE__ */ i(
|
|
1077
|
-
Bt,
|
|
1078
|
-
{
|
|
1079
|
-
"aria-pressed": q(m) === f,
|
|
1080
|
-
"aria-label": m,
|
|
1081
|
-
style: { backgroundColor: m },
|
|
1082
|
-
onClick: () => t(q(m) ?? m)
|
|
1083
|
-
},
|
|
1084
|
-
m
|
|
1085
|
-
))
|
|
1086
|
-
}
|
|
1087
|
-
)
|
|
1088
|
-
] });
|
|
1089
|
-
}
|
|
1090
|
-
const Vt = 6, jt = d("div", {
|
|
1091
|
-
shouldForwardProp: (e) => e !== "edges"
|
|
1092
|
-
})(({ theme: e, edges: n }) => {
|
|
1093
|
-
const { tokens: t, radii: r, space: s } = e.design, c = o(s[1] * Vt), a = t["text.primary"], l = n.start ? `transparent, ${a} ${c}` : a, g = n.end ? `${a} calc(100% - ${c}), transparent` : a;
|
|
1094
|
-
return {
|
|
1095
|
-
maskImage: n.start || n.end ? `linear-gradient(to right, ${l}, ${g})` : "none",
|
|
1096
|
-
display: "inline-flex",
|
|
1097
|
-
maxWidth: "100%",
|
|
1098
|
-
minWidth: 0,
|
|
1099
|
-
border: A(t["border.subtle"]),
|
|
1100
|
-
borderRadius: o(r.md),
|
|
1101
|
-
overflowX: "auto",
|
|
1102
|
-
overflowY: "hidden",
|
|
1103
|
-
backgroundColor: t["bg.surface"],
|
|
1104
|
-
// Below 768 px each segment keeps a 44 px target: the band wraps onto more rows rather than
|
|
1105
|
-
// hiding segments behind a sideways scroll. A rule between neighbours would then start the
|
|
1106
|
-
// second row with a stray line and leave the rows unsplit: the band loses its border and each
|
|
1107
|
-
// segment draws its own, apart by a gap in both directions.
|
|
1108
|
-
[Z.down(K.Tablet)]: {
|
|
1109
|
-
flexWrap: "wrap",
|
|
1110
|
-
rowGap: o(s[1]),
|
|
1111
|
-
columnGap: o(s[1]),
|
|
1112
|
-
overflowX: "visible",
|
|
1113
|
-
maskImage: "none",
|
|
1114
|
-
border: "none",
|
|
1115
|
-
backgroundColor: "transparent"
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
|
-
}), Gt = d(He)(({ theme: e }) => {
|
|
1119
|
-
const { tokens: n, space: t, typeScale: r, fonts: s, densityValues: c, radii: a } = e.design;
|
|
1120
|
-
return {
|
|
1121
|
-
flex: "none",
|
|
1122
|
-
gap: o(t[2]),
|
|
1123
|
-
minHeight: o(c[e.design.density].control),
|
|
1124
|
-
paddingLeft: o(t[3]),
|
|
1125
|
-
paddingRight: o(t[3]),
|
|
1126
|
-
fontFamily: s.sans,
|
|
1127
|
-
fontSize: o(r.body),
|
|
1128
|
-
whiteSpace: "nowrap",
|
|
1129
|
-
color: n["text.secondary"],
|
|
1130
|
-
transition: oe(e, ["background-color", "color"]),
|
|
1131
|
-
"& + &": { borderLeft: A(n["border.subtle"]) },
|
|
1132
|
-
'&[aria-checked="true"]': {
|
|
1133
|
-
backgroundColor: n["bg.raised"],
|
|
1134
|
-
color: n["text.primary"],
|
|
1135
|
-
fontWeight: R.medium
|
|
1136
|
-
},
|
|
1137
|
-
"&:hover": { backgroundColor: n["bg.hover"] },
|
|
1138
|
-
"&.Mui-focusVisible": { ...te(e), outlineOffset: "-2px" },
|
|
1139
|
-
// A short label (« 1 h », « 7 j ») would leave a segment narrower than a finger. Each segment
|
|
1140
|
-
// is its own bordered tile once the band wraps.
|
|
1141
|
-
[Z.down(K.Tablet)]: {
|
|
1142
|
-
minWidth: o(c.touchTarget),
|
|
1143
|
-
minHeight: o(c.touchTarget),
|
|
1144
|
-
border: A(n["border.subtle"]),
|
|
1145
|
-
borderRadius: o(a.md),
|
|
1146
|
-
backgroundColor: n["bg.surface"],
|
|
1147
|
-
'&[aria-checked="true"]': { backgroundColor: n["bg.raised"] }
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
|
-
}), qt = d("span")(({ theme: e }) => ({
|
|
1151
|
-
fontFamily: e.design.fonts.mono,
|
|
1152
|
-
fontSize: o(e.design.typeScale.caption),
|
|
1153
|
-
color: e.design.tokens["text.muted"]
|
|
1154
|
-
}));
|
|
1155
|
-
function Sr({
|
|
1156
|
-
options: e,
|
|
1157
|
-
value: n,
|
|
1158
|
-
onChange: t,
|
|
1159
|
-
ariaLabel: r
|
|
1160
|
-
}) {
|
|
1161
|
-
const s = Y(null), [c, a] = I({ start: !1, end: !1 }), l = Q(() => {
|
|
1162
|
-
const f = s.current;
|
|
1163
|
-
if (!f)
|
|
1164
|
-
return;
|
|
1165
|
-
const m = f.scrollLeft > 0, h = f.scrollLeft + f.clientWidth < f.scrollWidth - 1;
|
|
1166
|
-
a(
|
|
1167
|
-
(y) => y.start === m && y.end === h ? y : { start: m, end: h }
|
|
1168
|
-
);
|
|
1169
|
-
}, []);
|
|
1170
|
-
B(() => (l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l)), [l, e]);
|
|
1171
|
-
const g = (f) => {
|
|
1172
|
-
var y, p;
|
|
1173
|
-
const m = e.findIndex((u) => u.value === n);
|
|
1174
|
-
let h;
|
|
1175
|
-
switch (f.key) {
|
|
1176
|
-
case "ArrowRight":
|
|
1177
|
-
case "ArrowDown":
|
|
1178
|
-
h = (m + 1) % e.length;
|
|
1179
|
-
break;
|
|
1180
|
-
case "ArrowLeft":
|
|
1181
|
-
case "ArrowUp":
|
|
1182
|
-
h = (m - 1 + e.length) % e.length;
|
|
1183
|
-
break;
|
|
1184
|
-
case "Home":
|
|
1185
|
-
h = 0;
|
|
1186
|
-
break;
|
|
1187
|
-
case "End":
|
|
1188
|
-
h = e.length - 1;
|
|
1189
|
-
break;
|
|
1190
|
-
default:
|
|
1191
|
-
return;
|
|
1192
|
-
}
|
|
1193
|
-
f.preventDefault(), t(e[h].value), (p = (y = s.current) == null ? void 0 : y.querySelectorAll('[role="radio"]')[h]) == null || p.focus();
|
|
1194
|
-
}, b = Math.max(
|
|
1195
|
-
e.findIndex((f) => f.value === n),
|
|
1196
|
-
0
|
|
1197
|
-
);
|
|
1198
|
-
return /* @__PURE__ */ i(
|
|
1199
|
-
jt,
|
|
1200
|
-
{
|
|
1201
|
-
ref: s,
|
|
1202
|
-
role: "radiogroup",
|
|
1203
|
-
"aria-label": r,
|
|
1204
|
-
edges: c,
|
|
1205
|
-
onKeyDown: g,
|
|
1206
|
-
onScroll: l,
|
|
1207
|
-
children: e.map((f, m) => {
|
|
1208
|
-
const h = f.value === n;
|
|
1209
|
-
return /* @__PURE__ */ x(
|
|
1210
|
-
Gt,
|
|
1211
|
-
{
|
|
1212
|
-
role: "radio",
|
|
1213
|
-
"aria-checked": h,
|
|
1214
|
-
tabIndex: m === b ? 0 : -1,
|
|
1215
|
-
onClick: () => t(f.value),
|
|
1216
|
-
children: [
|
|
1217
|
-
f.label,
|
|
1218
|
-
f.count !== void 0 && /* @__PURE__ */ i(qt, { children: f.count })
|
|
1219
|
-
]
|
|
1220
|
-
},
|
|
1221
|
-
f.value
|
|
1222
|
-
);
|
|
1223
|
-
})
|
|
1224
|
-
}
|
|
1225
|
-
);
|
|
1226
|
-
}
|
|
1227
|
-
const Ut = [32, 160, 8239, 8201].map(
|
|
1228
|
-
(e) => String.fromCharCode(e)
|
|
1229
|
-
), Kt = (e) => {
|
|
1230
|
-
var t, r;
|
|
1231
|
-
const n = new Intl.NumberFormat(e).formatToParts(11111.1);
|
|
1232
|
-
return {
|
|
1233
|
-
group: ((t = n.find((s) => s.type === "group")) == null ? void 0 : t.value) ?? " ",
|
|
1234
|
-
decimal: ((r = n.find((s) => s.type === "decimal")) == null ? void 0 : r.value) ?? "."
|
|
1235
|
-
};
|
|
1236
|
-
}, Te = (e, n) => {
|
|
1237
|
-
const r = [n.group, ...Ut].reduce(
|
|
1238
|
-
(c, a) => c.split(a).join(""),
|
|
1239
|
-
e.trim()
|
|
1240
|
-
).replace(",", ".");
|
|
1241
|
-
if (r === "" || !/^-?\d*\.?\d+$|^-?\d+\.$/.test(r))
|
|
1242
|
-
return null;
|
|
1243
|
-
const s = Number.parseFloat(r);
|
|
1244
|
-
return Number.isFinite(s) ? s : null;
|
|
1245
|
-
};
|
|
1246
|
-
function Ir({
|
|
1247
|
-
label: e,
|
|
1248
|
-
value: n,
|
|
1249
|
-
onChange: t,
|
|
1250
|
-
decimals: r = 0,
|
|
1251
|
-
min: s = 0,
|
|
1252
|
-
disabled: c,
|
|
1253
|
-
adornment: a
|
|
1254
|
-
}) {
|
|
1255
|
-
const l = $(), g = ge(
|
|
1256
|
-
() => Kt(l.locale),
|
|
1257
|
-
[l.locale]
|
|
1258
|
-
), b = Q(
|
|
1259
|
-
(u) => u === null ? "" : l.formatNumber(u, {
|
|
1260
|
-
minimumFractionDigits: r,
|
|
1261
|
-
maximumFractionDigits: r
|
|
1262
|
-
}),
|
|
1263
|
-
[l, r]
|
|
1264
|
-
), [f, m] = I(!1), [h, y] = I(() => b(n));
|
|
1265
|
-
return B(() => {
|
|
1266
|
-
f || y(b(n));
|
|
1267
|
-
}, [n, f, b]), /* @__PURE__ */ i(Be, { label: e, children: /* @__PURE__ */ i(
|
|
1268
|
-
fe,
|
|
1269
|
-
{
|
|
1270
|
-
disabled: c,
|
|
1271
|
-
value: h,
|
|
1272
|
-
inputProps: { inputMode: "decimal" },
|
|
1273
|
-
onFocus: () => {
|
|
1274
|
-
m(!0), n !== null && y(String(n).replace(".", g.decimal));
|
|
1275
|
-
},
|
|
1276
|
-
onChange: (u) => {
|
|
1277
|
-
y(u.target.value);
|
|
1278
|
-
const w = Te(u.target.value, g);
|
|
1279
|
-
w !== null ? t(w) : u.target.value === "" && t(null);
|
|
1280
|
-
},
|
|
1281
|
-
onBlur: () => {
|
|
1282
|
-
m(!1);
|
|
1283
|
-
let u = Te(h, g);
|
|
1284
|
-
u !== null && (u = Number.parseFloat(Math.max(u, s).toFixed(r))), t(u), y(b(u));
|
|
1285
|
-
},
|
|
1286
|
-
endAdornment: a ? /* @__PURE__ */ i(xn, { position: "end", children: a }) : void 0
|
|
1287
|
-
}
|
|
1288
|
-
) });
|
|
1289
|
-
}
|
|
1290
|
-
const Yt = d("div")(({ theme: e }) => ({
|
|
967
|
+
const Pt = d("div")(({ theme: e }) => ({
|
|
1291
968
|
display: "flex",
|
|
1292
969
|
flexDirection: "column",
|
|
1293
970
|
gap: o(e.design.space[2]),
|
|
1294
971
|
minWidth: 0
|
|
1295
|
-
})),
|
|
972
|
+
})), Ht = d("span")(({ theme: e }) => ({
|
|
1296
973
|
fontSize: o(e.design.typeScale.small),
|
|
1297
974
|
fontWeight: R.medium,
|
|
1298
975
|
color: e.design.tokens["text.secondary"]
|
|
1299
|
-
})),
|
|
976
|
+
})), Nt = d("div", {
|
|
1300
977
|
shouldForwardProp: (e) => e !== "active"
|
|
1301
978
|
})(({ theme: e, active: n }) => {
|
|
1302
979
|
const { tokens: t, space: r, radii: s } = e.design;
|
|
@@ -1318,7 +995,7 @@ const Yt = d("div")(({ theme: e }) => ({
|
|
|
1318
995
|
transition: oe(e, ["border-color", "background-color"]),
|
|
1319
996
|
"&:hover": { borderColor: t.accent }
|
|
1320
997
|
};
|
|
1321
|
-
}),
|
|
998
|
+
}), _t = d("span")(({ theme: e }) => {
|
|
1322
999
|
const { tokens: n, space: t } = e.design;
|
|
1323
1000
|
return {
|
|
1324
1001
|
display: "inline-flex",
|
|
@@ -1331,30 +1008,30 @@ const Yt = d("div")(({ theme: e }) => ({
|
|
|
1331
1008
|
color: n["accent.text"],
|
|
1332
1009
|
"& svg": { width: o(t[5]), height: o(t[5]) }
|
|
1333
1010
|
};
|
|
1334
|
-
}),
|
|
1011
|
+
}), Bt = d("span")(({ theme: e }) => ({
|
|
1335
1012
|
fontSize: o(e.design.typeScale.body),
|
|
1336
1013
|
[Z.down(K.Tablet)]: { display: "none" }
|
|
1337
|
-
})),
|
|
1014
|
+
})), Vt = d("div")(({ theme: e }) => ({
|
|
1338
1015
|
display: "flex",
|
|
1339
1016
|
flexWrap: "wrap",
|
|
1340
1017
|
alignItems: "center",
|
|
1341
1018
|
justifyContent: "space-between",
|
|
1342
1019
|
gap: o(e.design.space[2])
|
|
1343
|
-
})),
|
|
1020
|
+
})), jt = d("span")(({ theme: e }) => ({
|
|
1344
1021
|
fontSize: o(e.design.typeScale.small),
|
|
1345
1022
|
color: e.design.tokens["text.muted"]
|
|
1346
|
-
})),
|
|
1023
|
+
})), Gt = d("p")(({ theme: e }) => ({
|
|
1347
1024
|
margin: 0,
|
|
1348
1025
|
fontSize: o(e.design.typeScale.small),
|
|
1349
1026
|
color: e.design.tokens["status.danger"]
|
|
1350
|
-
})),
|
|
1027
|
+
})), qt = d("img")(({ theme: e }) => ({
|
|
1351
1028
|
width: o(e.design.space[4]),
|
|
1352
1029
|
height: o(e.design.space[4])
|
|
1353
|
-
})),
|
|
1354
|
-
const { value: n, unit: t } =
|
|
1030
|
+
})), Ut = (e) => {
|
|
1031
|
+
const { value: n, unit: t } = Mn(e);
|
|
1355
1032
|
return `${n} ${t}`;
|
|
1356
1033
|
};
|
|
1357
|
-
function
|
|
1034
|
+
function br({
|
|
1358
1035
|
onDrop: e,
|
|
1359
1036
|
multiple: n = !0,
|
|
1360
1037
|
accept: t,
|
|
@@ -1364,13 +1041,13 @@ function Fr({
|
|
|
1364
1041
|
cloudImport: a,
|
|
1365
1042
|
children: l
|
|
1366
1043
|
}) {
|
|
1367
|
-
const
|
|
1044
|
+
const f = L(), v = D(), b = D(), [g, h] = I(null), [m, p] = I(!1), u = r === void 0 ? null : Ut(r), y = s ?? (u === null ? null : f.formatMessage(
|
|
1368
1045
|
{ id: "ds.inputs.drop-zone.max-size" },
|
|
1369
1046
|
{ size: u, multiple: String(n) }
|
|
1370
1047
|
)), C = (T, M) => {
|
|
1371
1048
|
const ee = r === void 0 ? [] : T.filter((N) => N.size > r), re = T.filter((N) => !ee.includes(N));
|
|
1372
1049
|
M.some(
|
|
1373
|
-
(N) => N.errors.some((j) => j.code ===
|
|
1050
|
+
(N) => N.errors.some((j) => j.code === Fn.TooManyFiles)
|
|
1374
1051
|
) ? h(
|
|
1375
1052
|
"too-many"
|
|
1376
1053
|
/* TooMany */
|
|
@@ -1381,30 +1058,30 @@ function Fr({
|
|
|
1381
1058
|
T.length === 1 ? "too-big" : "some-too-big"
|
|
1382
1059
|
/* SomeTooBig */
|
|
1383
1060
|
) : h(null), re.length > 0 && e(re);
|
|
1384
|
-
}, { getRootProps: F, getInputProps: P, isDragActive: O, open: H } =
|
|
1061
|
+
}, { getRootProps: F, getInputProps: P, isDragActive: O, open: H } = Sn({
|
|
1385
1062
|
onDrop: C,
|
|
1386
1063
|
multiple: n,
|
|
1387
1064
|
accept: t,
|
|
1388
1065
|
// The zone itself is not a control: the button inside is, for the keyboard and screen readers.
|
|
1389
1066
|
noClick: !0,
|
|
1390
1067
|
noKeyboard: !0
|
|
1391
|
-
}), V =
|
|
1068
|
+
}), V = f.formatMessage(
|
|
1392
1069
|
{ id: "ds.inputs.drop-zone.browse" },
|
|
1393
1070
|
{ multiple: String(n) }
|
|
1394
1071
|
);
|
|
1395
1072
|
return /* @__PURE__ */ x(
|
|
1396
|
-
|
|
1073
|
+
Pt,
|
|
1397
1074
|
{
|
|
1398
1075
|
role: "group",
|
|
1399
|
-
"aria-labelledby": c !== void 0 ?
|
|
1400
|
-
"aria-describedby":
|
|
1076
|
+
"aria-labelledby": c !== void 0 ? v : void 0,
|
|
1077
|
+
"aria-describedby": y !== null ? b : void 0,
|
|
1401
1078
|
children: [
|
|
1402
|
-
c !== void 0 && /* @__PURE__ */ i(
|
|
1403
|
-
/* @__PURE__ */ x(
|
|
1079
|
+
c !== void 0 && /* @__PURE__ */ i(Ht, { id: v, children: c }),
|
|
1080
|
+
/* @__PURE__ */ x(Nt, { ...F({ onClick: H }), active: O, children: [
|
|
1404
1081
|
/* @__PURE__ */ i("input", { ...P({ "aria-hidden": !0 }) }),
|
|
1405
1082
|
l ?? /* @__PURE__ */ x(J, { children: [
|
|
1406
|
-
/* @__PURE__ */ i(
|
|
1407
|
-
/* @__PURE__ */ i(
|
|
1083
|
+
/* @__PURE__ */ i(_t, { "aria-hidden": !0, children: /* @__PURE__ */ i(Wn, {}) }),
|
|
1084
|
+
/* @__PURE__ */ i(Bt, { children: f.formatMessage(
|
|
1408
1085
|
{
|
|
1409
1086
|
id: O ? "ds.inputs.drop-zone.release" : "ds.inputs.drop-zone.prompt"
|
|
1410
1087
|
},
|
|
@@ -1422,26 +1099,26 @@ function Fr({
|
|
|
1422
1099
|
}
|
|
1423
1100
|
)
|
|
1424
1101
|
] }),
|
|
1425
|
-
(a !== void 0 ||
|
|
1102
|
+
(a !== void 0 || y !== null) && /* @__PURE__ */ x(Vt, { children: [
|
|
1426
1103
|
a !== void 0 && /* @__PURE__ */ i(
|
|
1427
1104
|
X,
|
|
1428
1105
|
{
|
|
1429
1106
|
variant: "text",
|
|
1430
|
-
startIcon: /* @__PURE__ */ i(
|
|
1107
|
+
startIcon: /* @__PURE__ */ i(qt, { src: In, alt: "" }),
|
|
1431
1108
|
onClick: () => p(!0),
|
|
1432
|
-
children:
|
|
1109
|
+
children: f.formatMessage({ id: "ds.inputs.drop-zone.cloud" })
|
|
1433
1110
|
}
|
|
1434
1111
|
),
|
|
1435
|
-
|
|
1112
|
+
y !== null && /* @__PURE__ */ i(jt, { id: b, children: y })
|
|
1436
1113
|
] }),
|
|
1437
|
-
/* @__PURE__ */ i(
|
|
1438
|
-
{ id: `ds.inputs.drop-zone.${
|
|
1114
|
+
g !== null && /* @__PURE__ */ i(Gt, { role: "alert", children: f.formatMessage(
|
|
1115
|
+
{ id: `ds.inputs.drop-zone.${g}` },
|
|
1439
1116
|
{ size: u ?? "" }
|
|
1440
1117
|
) }),
|
|
1441
1118
|
a !== void 0 && /* @__PURE__ */ i(
|
|
1442
1119
|
Ot,
|
|
1443
1120
|
{
|
|
1444
|
-
open:
|
|
1121
|
+
open: m,
|
|
1445
1122
|
onClose: () => p(!1),
|
|
1446
1123
|
onImport: a.onImport,
|
|
1447
1124
|
cloudPicker: a,
|
|
@@ -1457,22 +1134,22 @@ function Fr({
|
|
|
1457
1134
|
}
|
|
1458
1135
|
);
|
|
1459
1136
|
}
|
|
1460
|
-
var
|
|
1461
|
-
const
|
|
1137
|
+
var Kt = /* @__PURE__ */ ((e) => (e.Default = "default", e.Danger = "danger", e.Warning = "warning", e))(Kt || {});
|
|
1138
|
+
const Yt = d("form")(({ theme: e }) => ({
|
|
1462
1139
|
display: "flex",
|
|
1463
1140
|
flexDirection: "column",
|
|
1464
1141
|
gap: o(e.design.space[4]),
|
|
1465
1142
|
color: e.design.tokens["text.secondary"],
|
|
1466
1143
|
overflowWrap: "anywhere"
|
|
1467
|
-
})),
|
|
1144
|
+
})), Xt = (e, n) => {
|
|
1468
1145
|
const { paper: t } = e.design.tokens, r = e.design.tokens["paper.on"];
|
|
1469
1146
|
return Ce(n, t) >= Ce(n, r) ? t : r;
|
|
1470
|
-
},
|
|
1147
|
+
}, Qt = {
|
|
1471
1148
|
default: "primary",
|
|
1472
1149
|
danger: "error",
|
|
1473
1150
|
warning: "warning"
|
|
1474
1151
|
};
|
|
1475
|
-
function
|
|
1152
|
+
function Zt({
|
|
1476
1153
|
open: e,
|
|
1477
1154
|
title: n,
|
|
1478
1155
|
body: t,
|
|
@@ -1482,25 +1159,25 @@ function co({
|
|
|
1482
1159
|
onConfirm: a,
|
|
1483
1160
|
onCancel: l
|
|
1484
1161
|
}) {
|
|
1485
|
-
const
|
|
1486
|
-
e !== C && (F(e), e && (h(""),
|
|
1487
|
-
const P = !
|
|
1488
|
-
|
|
1162
|
+
const f = L(), v = hn(), b = D(), [g, h] = I(""), [m, p] = I(!1), [u, y] = I(!1), [C, F] = I(e);
|
|
1163
|
+
e !== C && (F(e), e && (h(""), y(!1)));
|
|
1164
|
+
const P = !m && (c === void 0 || g === c), O = s !== "default", H = () => {
|
|
1165
|
+
m || l();
|
|
1489
1166
|
}, V = () => {
|
|
1490
1167
|
if (!P)
|
|
1491
1168
|
return;
|
|
1492
|
-
|
|
1169
|
+
y(!1);
|
|
1493
1170
|
let M;
|
|
1494
1171
|
try {
|
|
1495
1172
|
M = a();
|
|
1496
1173
|
} catch {
|
|
1497
|
-
|
|
1174
|
+
y(!0);
|
|
1498
1175
|
return;
|
|
1499
1176
|
}
|
|
1500
1177
|
M instanceof Promise && (p(!0), M.then(
|
|
1501
1178
|
() => p(!1),
|
|
1502
1179
|
() => {
|
|
1503
|
-
p(!1),
|
|
1180
|
+
p(!1), y(!0);
|
|
1504
1181
|
}
|
|
1505
1182
|
));
|
|
1506
1183
|
}, T = (M) => {
|
|
@@ -1518,27 +1195,27 @@ function co({
|
|
|
1518
1195
|
X,
|
|
1519
1196
|
{
|
|
1520
1197
|
variant: "outlined",
|
|
1521
|
-
disabled:
|
|
1198
|
+
disabled: m,
|
|
1522
1199
|
autoFocus: c === void 0 && O,
|
|
1523
1200
|
onClick: H,
|
|
1524
|
-
children:
|
|
1201
|
+
children: f.formatMessage({ id: "ds.layers.confirm-dialog.cancel" })
|
|
1525
1202
|
}
|
|
1526
1203
|
),
|
|
1527
1204
|
/* @__PURE__ */ i(
|
|
1528
1205
|
X,
|
|
1529
1206
|
{
|
|
1530
1207
|
type: "submit",
|
|
1531
|
-
form:
|
|
1208
|
+
form: b,
|
|
1532
1209
|
variant: "contained",
|
|
1533
|
-
color:
|
|
1210
|
+
color: Qt[s],
|
|
1534
1211
|
disabled: !P,
|
|
1535
|
-
loading:
|
|
1212
|
+
loading: m,
|
|
1536
1213
|
autoFocus: c === void 0 && !O,
|
|
1537
1214
|
sx: s === "warning" ? {
|
|
1538
1215
|
"&:not(.Mui-disabled)": {
|
|
1539
|
-
color:
|
|
1540
|
-
|
|
1541
|
-
|
|
1216
|
+
color: Xt(
|
|
1217
|
+
v,
|
|
1218
|
+
v.design.tokens["status.warning"]
|
|
1542
1219
|
)
|
|
1543
1220
|
}
|
|
1544
1221
|
} : void 0,
|
|
@@ -1546,84 +1223,128 @@ function co({
|
|
|
1546
1223
|
}
|
|
1547
1224
|
)
|
|
1548
1225
|
] }),
|
|
1549
|
-
children: /* @__PURE__ */ x(
|
|
1226
|
+
children: /* @__PURE__ */ x(Yt, { id: b, onSubmit: T, noValidate: !0, children: [
|
|
1550
1227
|
/* @__PURE__ */ i("div", { children: t }),
|
|
1551
1228
|
c !== void 0 && /* @__PURE__ */ i(
|
|
1552
|
-
|
|
1229
|
+
Vn,
|
|
1553
1230
|
{
|
|
1554
|
-
label:
|
|
1231
|
+
label: f.formatMessage(
|
|
1555
1232
|
{ id: "ds.layers.confirm-dialog.type-to-confirm" },
|
|
1556
1233
|
{ text: c }
|
|
1557
1234
|
),
|
|
1558
|
-
value:
|
|
1235
|
+
value: g,
|
|
1559
1236
|
onChange: (M) => h(M.target.value),
|
|
1560
|
-
disabled:
|
|
1237
|
+
disabled: m,
|
|
1561
1238
|
autoFocus: !0,
|
|
1562
1239
|
autoComplete: "off",
|
|
1563
1240
|
fullWidth: !0
|
|
1564
1241
|
}
|
|
1565
1242
|
),
|
|
1566
|
-
u && /* @__PURE__ */ i(
|
|
1243
|
+
u && /* @__PURE__ */ i(Bn, { severity: "error", children: f.formatMessage({ id: "ds.layers.confirm-dialog.failed" }) })
|
|
1567
1244
|
] })
|
|
1568
1245
|
}
|
|
1569
1246
|
);
|
|
1570
1247
|
}
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1248
|
+
const nn = Ee(null);
|
|
1249
|
+
function yr({ children: e }) {
|
|
1250
|
+
const [n, t] = I([]), [r, s] = I(null), c = Y(0), a = Y([]);
|
|
1251
|
+
a.current = n;
|
|
1252
|
+
const l = n.length > 0 ? n[0] : null;
|
|
1253
|
+
l !== null && l !== r && s(l), B(
|
|
1254
|
+
() => () => {
|
|
1255
|
+
a.current.forEach((g) => g.resolve(!1));
|
|
1256
|
+
},
|
|
1257
|
+
[]
|
|
1258
|
+
);
|
|
1259
|
+
const f = Q(
|
|
1260
|
+
(g) => new Promise((h) => {
|
|
1261
|
+
c.current += 1;
|
|
1262
|
+
const m = { id: c.current, options: g, resolve: h };
|
|
1263
|
+
t((p) => [...p, m]);
|
|
1264
|
+
}),
|
|
1265
|
+
[]
|
|
1266
|
+
), v = (g) => {
|
|
1267
|
+
l !== null && (l.resolve(g), t((h) => h.filter((m) => m !== l)));
|
|
1268
|
+
}, b = ge(() => ({ confirm: f }), [f]);
|
|
1269
|
+
return /* @__PURE__ */ x(nn.Provider, { value: b, children: [
|
|
1270
|
+
e,
|
|
1271
|
+
r !== null && // A new key per request: each one starts from an empty confirmation field.
|
|
1272
|
+
/* @__PURE__ */ i(
|
|
1273
|
+
Zt,
|
|
1274
|
+
{
|
|
1275
|
+
open: l === r,
|
|
1276
|
+
...r.options,
|
|
1277
|
+
onConfirm: () => v(!0),
|
|
1278
|
+
onCancel: () => v(!1)
|
|
1279
|
+
},
|
|
1280
|
+
r.id
|
|
1281
|
+
)
|
|
1282
|
+
] });
|
|
1283
|
+
}
|
|
1284
|
+
function vr() {
|
|
1285
|
+
const e = ze(nn);
|
|
1286
|
+
if (e === null)
|
|
1287
|
+
throw new Error(
|
|
1288
|
+
"useConfirmDialog must be called inside a ConfirmDialogProvider"
|
|
1289
|
+
);
|
|
1290
|
+
return e;
|
|
1291
|
+
}
|
|
1292
|
+
var Jt = /* @__PURE__ */ ((e) => (e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e))(Jt || {});
|
|
1293
|
+
const eo = 320, no = d("div")(({ theme: e }) => {
|
|
1294
|
+
const { tokens: n, space: t } = e.design;
|
|
1295
|
+
return {
|
|
1296
|
+
flex: "none",
|
|
1297
|
+
display: "flex",
|
|
1298
|
+
alignItems: "center",
|
|
1299
|
+
justifyContent: "space-between",
|
|
1300
|
+
gap: o(t[3]),
|
|
1301
|
+
padding: `${o(t[2])} ${o(t[2])} ${o(t[2])} ${o(t[4])}`,
|
|
1302
|
+
borderBottom: A(n["border.subtle"])
|
|
1303
|
+
};
|
|
1304
|
+
}), to = d("h2")(({ theme: e }) => ({
|
|
1305
|
+
margin: 0,
|
|
1306
|
+
minWidth: 0,
|
|
1307
|
+
color: e.design.tokens["text.primary"],
|
|
1308
|
+
fontSize: o(e.design.typeScale.body),
|
|
1309
|
+
fontWeight: R.semibold,
|
|
1310
|
+
overflowWrap: "anywhere"
|
|
1311
|
+
})), tn = d("div")(({ theme: e }) => ({
|
|
1312
|
+
display: "flex",
|
|
1313
|
+
flexDirection: "column",
|
|
1593
1314
|
gap: o(e.design.space[3]),
|
|
1594
1315
|
fontSize: o(e.design.typeScale.body)
|
|
1595
|
-
})),
|
|
1316
|
+
})), oo = d(tn)(({ theme: e }) => ({
|
|
1596
1317
|
padding: o(e.design.space[4])
|
|
1597
1318
|
}));
|
|
1598
|
-
function
|
|
1319
|
+
function wr({
|
|
1599
1320
|
anchorEl: e,
|
|
1600
1321
|
open: n,
|
|
1601
1322
|
onClose: t,
|
|
1602
1323
|
title: r,
|
|
1603
1324
|
placement: s = "bottom-start",
|
|
1604
|
-
width: c =
|
|
1325
|
+
width: c = eo,
|
|
1605
1326
|
children: a
|
|
1606
1327
|
}) {
|
|
1607
|
-
const l =
|
|
1328
|
+
const l = L(), f = D(), v = vn() === K.Mobile, b = l.formatMessage({
|
|
1608
1329
|
id: "ds.layers.anchored-panel.close"
|
|
1609
|
-
}),
|
|
1610
|
-
if (
|
|
1330
|
+
}), g = n && e !== null;
|
|
1331
|
+
if (v)
|
|
1611
1332
|
return /* @__PURE__ */ i(
|
|
1612
1333
|
wn,
|
|
1613
1334
|
{
|
|
1614
|
-
open:
|
|
1335
|
+
open: g,
|
|
1615
1336
|
onClose: t,
|
|
1616
1337
|
title: r,
|
|
1617
|
-
closeLabel:
|
|
1338
|
+
closeLabel: b,
|
|
1618
1339
|
children: /* @__PURE__ */ i(tn, { children: a })
|
|
1619
1340
|
}
|
|
1620
1341
|
);
|
|
1621
1342
|
const h = s === "bottom-end" ? "right" : "left";
|
|
1622
1343
|
return /* @__PURE__ */ x(
|
|
1623
|
-
|
|
1344
|
+
jn,
|
|
1624
1345
|
{
|
|
1625
1346
|
anchorEl: e,
|
|
1626
|
-
open:
|
|
1347
|
+
open: g,
|
|
1627
1348
|
onClose: () => t(),
|
|
1628
1349
|
anchorOrigin: { vertical: "bottom", horizontal: h },
|
|
1629
1350
|
transformOrigin: { vertical: "top", horizontal: h },
|
|
@@ -1631,69 +1352,353 @@ function Mr({
|
|
|
1631
1352
|
paper: {
|
|
1632
1353
|
role: "dialog",
|
|
1633
1354
|
"aria-modal": !0,
|
|
1634
|
-
"aria-labelledby":
|
|
1635
|
-
sx: (
|
|
1355
|
+
"aria-labelledby": f,
|
|
1356
|
+
sx: (m) => ({
|
|
1636
1357
|
width: o(c),
|
|
1637
|
-
maxWidth: `calc(100vw - ${o(
|
|
1638
|
-
marginTop: o(
|
|
1639
|
-
color:
|
|
1640
|
-
fontFamily:
|
|
1358
|
+
maxWidth: `calc(100vw - ${o(m.design.space[4] * 2)})`,
|
|
1359
|
+
marginTop: o(m.design.space[1]),
|
|
1360
|
+
color: m.design.tokens["text.primary"],
|
|
1361
|
+
fontFamily: m.design.fonts.sans
|
|
1641
1362
|
})
|
|
1642
1363
|
}
|
|
1643
1364
|
},
|
|
1644
1365
|
children: [
|
|
1645
|
-
/* @__PURE__ */ x(
|
|
1646
|
-
/* @__PURE__ */ i(
|
|
1647
|
-
/* @__PURE__ */ i(ae, { "aria-label":
|
|
1366
|
+
/* @__PURE__ */ x(no, { children: [
|
|
1367
|
+
/* @__PURE__ */ i(to, { id: f, children: r }),
|
|
1368
|
+
/* @__PURE__ */ i(ae, { "aria-label": b, onClick: t, children: /* @__PURE__ */ i(Ne, { "aria-hidden": !0 }) })
|
|
1648
1369
|
] }),
|
|
1649
|
-
/* @__PURE__ */ i(
|
|
1370
|
+
/* @__PURE__ */ i(oo, { children: a })
|
|
1650
1371
|
]
|
|
1651
1372
|
}
|
|
1652
1373
|
);
|
|
1653
1374
|
}
|
|
1654
|
-
const
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1375
|
+
const xr = { l: 0.72, c: 0.12 }, Cr = [
|
|
1376
|
+
266,
|
|
1377
|
+
296,
|
|
1378
|
+
326,
|
|
1379
|
+
356,
|
|
1380
|
+
26,
|
|
1381
|
+
56,
|
|
1382
|
+
86,
|
|
1383
|
+
116,
|
|
1384
|
+
146,
|
|
1385
|
+
176,
|
|
1386
|
+
206,
|
|
1387
|
+
236
|
|
1388
|
+
], on = [
|
|
1389
|
+
"#81a2f0",
|
|
1390
|
+
"#ab94e7",
|
|
1391
|
+
"#cb89cd",
|
|
1392
|
+
"#e084a7",
|
|
1393
|
+
"#e6867d",
|
|
1394
|
+
"#de9056",
|
|
1395
|
+
"#c69f41",
|
|
1396
|
+
"#a1ae50",
|
|
1397
|
+
"#70b976",
|
|
1398
|
+
"#37bda2",
|
|
1399
|
+
"#18b9c9",
|
|
1400
|
+
"#4eb0e5"
|
|
1401
|
+
], kr = "#767676", Sr = on[6], Ir = "#111a2f", Fr = "#5674be", ro = /^#?([0-9a-f]{6})$/i, q = (e) => {
|
|
1402
|
+
const n = ro.exec(e.trim());
|
|
1403
|
+
return n ? `#${n[1].toLowerCase()}` : null;
|
|
1404
|
+
}, io = d("div")(({ theme: e }) => ({
|
|
1405
|
+
display: "flex",
|
|
1406
|
+
alignItems: "center",
|
|
1407
|
+
gap: o(e.design.space[3])
|
|
1408
|
+
})), so = d("span")(({ theme: e }) => ({
|
|
1409
|
+
flex: "none",
|
|
1410
|
+
width: o(e.design.densityValues[e.design.density].control),
|
|
1411
|
+
height: o(e.design.densityValues[e.design.density].control),
|
|
1412
|
+
borderRadius: o(e.design.radii.md),
|
|
1413
|
+
border: A(e.design.tokens["border.control"])
|
|
1414
|
+
})), ao = d("div")(({ theme: e }) => ({
|
|
1415
|
+
display: "flex",
|
|
1416
|
+
flexWrap: "wrap",
|
|
1417
|
+
gap: o(e.design.space[2]),
|
|
1418
|
+
marginTop: o(e.design.space[2])
|
|
1419
|
+
})), lo = d(_e)(({ theme: e }) => {
|
|
1420
|
+
const { densityValues: n, density: t, space: r } = e.design, s = n[t].control - r[2];
|
|
1421
|
+
return {
|
|
1422
|
+
width: o(s),
|
|
1423
|
+
height: o(s),
|
|
1424
|
+
borderRadius: o(e.design.radii.sm),
|
|
1425
|
+
border: A(e.design.tokens["border.control"]),
|
|
1426
|
+
// The chosen swatch carries the ring of the design system (`focus.ring` is the accent).
|
|
1427
|
+
'&[aria-pressed="true"]': te(e),
|
|
1428
|
+
"&.Mui-focusVisible": te(e),
|
|
1429
|
+
[Z.down(K.Tablet)]: {
|
|
1430
|
+
width: o(e.design.densityValues.touchTarget),
|
|
1431
|
+
height: o(e.design.densityValues.touchTarget)
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
});
|
|
1435
|
+
function Mr({
|
|
1436
|
+
label: e,
|
|
1437
|
+
value: n,
|
|
1438
|
+
onChange: t,
|
|
1439
|
+
swatches: r = on
|
|
1440
|
+
}) {
|
|
1441
|
+
const s = L(), c = D(), [a, l] = I(n), f = a !== "" && q(a) === null;
|
|
1442
|
+
B(() => {
|
|
1443
|
+
l(
|
|
1444
|
+
(g) => q(g) === q(n) ? g : n
|
|
1445
|
+
);
|
|
1446
|
+
}, [n]);
|
|
1447
|
+
const v = (g) => {
|
|
1448
|
+
l(g);
|
|
1449
|
+
const h = q(g);
|
|
1450
|
+
h !== null && h !== q(n) && t(h);
|
|
1451
|
+
}, b = q(n);
|
|
1452
|
+
return /* @__PURE__ */ x(le, { fullWidth: !0, error: f, children: [
|
|
1453
|
+
/* @__PURE__ */ i(Le, { htmlFor: `${c}-hex`, children: e }),
|
|
1454
|
+
/* @__PURE__ */ x(io, { children: [
|
|
1455
|
+
/* @__PURE__ */ i(
|
|
1456
|
+
so,
|
|
1457
|
+
{
|
|
1458
|
+
"aria-hidden": "true",
|
|
1459
|
+
style: { backgroundColor: b ?? void 0 }
|
|
1460
|
+
}
|
|
1461
|
+
),
|
|
1462
|
+
/* @__PURE__ */ i(
|
|
1463
|
+
fe,
|
|
1464
|
+
{
|
|
1465
|
+
id: `${c}-hex`,
|
|
1466
|
+
fullWidth: !0,
|
|
1467
|
+
value: a,
|
|
1468
|
+
error: f,
|
|
1469
|
+
inputProps: {
|
|
1470
|
+
"aria-describedby": f ? `${c}-error` : void 0,
|
|
1471
|
+
spellCheck: !1,
|
|
1472
|
+
autoComplete: "off"
|
|
1473
|
+
},
|
|
1474
|
+
onChange: (g) => v(g.target.value)
|
|
1475
|
+
}
|
|
1476
|
+
)
|
|
1477
|
+
] }),
|
|
1478
|
+
f && /* @__PURE__ */ i(se, { id: `${c}-error`, children: s.formatMessage({ id: "ds.inputs.color.invalid" }) }),
|
|
1678
1479
|
/* @__PURE__ */ i(
|
|
1679
|
-
|
|
1480
|
+
ao,
|
|
1680
1481
|
{
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1482
|
+
role: "group",
|
|
1483
|
+
"aria-label": s.formatMessage({ id: "ds.inputs.color.swatches" }),
|
|
1484
|
+
children: r.map((g) => /* @__PURE__ */ i(
|
|
1485
|
+
lo,
|
|
1486
|
+
{
|
|
1487
|
+
"aria-pressed": q(g) === b,
|
|
1488
|
+
"aria-label": g,
|
|
1489
|
+
style: { backgroundColor: g },
|
|
1490
|
+
onClick: () => t(q(g) ?? g)
|
|
1491
|
+
},
|
|
1492
|
+
g
|
|
1493
|
+
))
|
|
1494
|
+
}
|
|
1687
1495
|
)
|
|
1688
1496
|
] });
|
|
1689
1497
|
}
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1498
|
+
const co = 6, uo = d("div", {
|
|
1499
|
+
shouldForwardProp: (e) => e !== "edges"
|
|
1500
|
+
})(({ theme: e, edges: n }) => {
|
|
1501
|
+
const { tokens: t, radii: r, space: s } = e.design, c = o(s[1] * co), a = t["text.primary"], l = n.start ? `transparent, ${a} ${c}` : a, f = n.end ? `${a} calc(100% - ${c}), transparent` : a;
|
|
1502
|
+
return {
|
|
1503
|
+
maskImage: n.start || n.end ? `linear-gradient(to right, ${l}, ${f})` : "none",
|
|
1504
|
+
display: "inline-flex",
|
|
1505
|
+
maxWidth: "100%",
|
|
1506
|
+
minWidth: 0,
|
|
1507
|
+
border: A(t["border.subtle"]),
|
|
1508
|
+
borderRadius: o(r.md),
|
|
1509
|
+
overflowX: "auto",
|
|
1510
|
+
overflowY: "hidden",
|
|
1511
|
+
backgroundColor: t["bg.surface"],
|
|
1512
|
+
// Below 768 px each segment keeps a 44 px target: the band wraps onto more rows rather than
|
|
1513
|
+
// hiding segments behind a sideways scroll. A rule between neighbours would then start the
|
|
1514
|
+
// second row with a stray line and leave the rows unsplit: the band loses its border and each
|
|
1515
|
+
// segment draws its own, apart by a gap in both directions.
|
|
1516
|
+
[Z.down(K.Tablet)]: {
|
|
1517
|
+
flexWrap: "wrap",
|
|
1518
|
+
rowGap: o(s[1]),
|
|
1519
|
+
columnGap: o(s[1]),
|
|
1520
|
+
overflowX: "visible",
|
|
1521
|
+
maskImage: "none",
|
|
1522
|
+
border: "none",
|
|
1523
|
+
backgroundColor: "transparent"
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
}), po = d(_e)(({ theme: e }) => {
|
|
1527
|
+
const { tokens: n, space: t, typeScale: r, fonts: s, densityValues: c, radii: a } = e.design;
|
|
1528
|
+
return {
|
|
1529
|
+
flex: "none",
|
|
1530
|
+
gap: o(t[2]),
|
|
1531
|
+
minHeight: o(c[e.design.density].control),
|
|
1532
|
+
paddingLeft: o(t[3]),
|
|
1533
|
+
paddingRight: o(t[3]),
|
|
1534
|
+
fontFamily: s.sans,
|
|
1535
|
+
fontSize: o(r.body),
|
|
1536
|
+
whiteSpace: "nowrap",
|
|
1537
|
+
color: n["text.secondary"],
|
|
1538
|
+
transition: oe(e, ["background-color", "color"]),
|
|
1539
|
+
"& + &": { borderLeft: A(n["border.subtle"]) },
|
|
1540
|
+
'&[aria-checked="true"]': {
|
|
1541
|
+
backgroundColor: n["bg.raised"],
|
|
1542
|
+
color: n["text.primary"],
|
|
1543
|
+
fontWeight: R.medium
|
|
1544
|
+
},
|
|
1545
|
+
"&:hover": { backgroundColor: n["bg.hover"] },
|
|
1546
|
+
"&.Mui-focusVisible": { ...te(e), outlineOffset: "-2px" },
|
|
1547
|
+
// A short label (« 1 h », « 7 j ») would leave a segment narrower than a finger. Each segment
|
|
1548
|
+
// is its own bordered tile once the band wraps.
|
|
1549
|
+
[Z.down(K.Tablet)]: {
|
|
1550
|
+
minWidth: o(c.touchTarget),
|
|
1551
|
+
minHeight: o(c.touchTarget),
|
|
1552
|
+
border: A(n["border.subtle"]),
|
|
1553
|
+
borderRadius: o(a.md),
|
|
1554
|
+
backgroundColor: n["bg.surface"],
|
|
1555
|
+
'&[aria-checked="true"]': { backgroundColor: n["bg.raised"] }
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
}), go = d("span")(({ theme: e }) => ({
|
|
1559
|
+
fontFamily: e.design.fonts.mono,
|
|
1560
|
+
fontSize: o(e.design.typeScale.caption),
|
|
1561
|
+
color: e.design.tokens["text.muted"]
|
|
1562
|
+
}));
|
|
1563
|
+
function Wr({
|
|
1564
|
+
options: e,
|
|
1565
|
+
value: n,
|
|
1566
|
+
onChange: t,
|
|
1567
|
+
ariaLabel: r,
|
|
1568
|
+
testId: s
|
|
1569
|
+
}) {
|
|
1570
|
+
const c = Y(null), [a, l] = I({ start: !1, end: !1 }), f = Q(() => {
|
|
1571
|
+
const g = c.current;
|
|
1572
|
+
if (!g)
|
|
1573
|
+
return;
|
|
1574
|
+
const h = g.scrollLeft > 0, m = g.scrollLeft + g.clientWidth < g.scrollWidth - 1;
|
|
1575
|
+
l(
|
|
1576
|
+
(p) => p.start === h && p.end === m ? p : { start: h, end: m }
|
|
1695
1577
|
);
|
|
1696
|
-
|
|
1578
|
+
}, []);
|
|
1579
|
+
B(() => (f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f)), [f, e]);
|
|
1580
|
+
const v = (g) => {
|
|
1581
|
+
var p, u;
|
|
1582
|
+
const h = e.findIndex((y) => y.value === n);
|
|
1583
|
+
let m;
|
|
1584
|
+
switch (g.key) {
|
|
1585
|
+
case "ArrowRight":
|
|
1586
|
+
case "ArrowDown":
|
|
1587
|
+
m = (h + 1) % e.length;
|
|
1588
|
+
break;
|
|
1589
|
+
case "ArrowLeft":
|
|
1590
|
+
case "ArrowUp":
|
|
1591
|
+
m = (h - 1 + e.length) % e.length;
|
|
1592
|
+
break;
|
|
1593
|
+
case "Home":
|
|
1594
|
+
m = 0;
|
|
1595
|
+
break;
|
|
1596
|
+
case "End":
|
|
1597
|
+
m = e.length - 1;
|
|
1598
|
+
break;
|
|
1599
|
+
default:
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
g.preventDefault(), t(e[m].value), (u = (p = c.current) == null ? void 0 : p.querySelectorAll('[role="radio"]')[m]) == null || u.focus();
|
|
1603
|
+
}, b = Math.max(
|
|
1604
|
+
e.findIndex((g) => g.value === n),
|
|
1605
|
+
0
|
|
1606
|
+
);
|
|
1607
|
+
return /* @__PURE__ */ i(
|
|
1608
|
+
uo,
|
|
1609
|
+
{
|
|
1610
|
+
ref: c,
|
|
1611
|
+
role: "radiogroup",
|
|
1612
|
+
"aria-label": r,
|
|
1613
|
+
"data-testid": s,
|
|
1614
|
+
edges: a,
|
|
1615
|
+
onKeyDown: v,
|
|
1616
|
+
onScroll: f,
|
|
1617
|
+
children: e.map((g, h) => {
|
|
1618
|
+
const m = g.value === n;
|
|
1619
|
+
return /* @__PURE__ */ x(
|
|
1620
|
+
po,
|
|
1621
|
+
{
|
|
1622
|
+
role: "radio",
|
|
1623
|
+
"aria-checked": m,
|
|
1624
|
+
"aria-label": g.ariaLabel,
|
|
1625
|
+
lang: g.lang,
|
|
1626
|
+
"data-testid": g.testId,
|
|
1627
|
+
tabIndex: h === b ? 0 : -1,
|
|
1628
|
+
onClick: () => t(g.value),
|
|
1629
|
+
children: [
|
|
1630
|
+
g.label,
|
|
1631
|
+
g.count !== void 0 && /* @__PURE__ */ i(go, { children: g.count })
|
|
1632
|
+
]
|
|
1633
|
+
},
|
|
1634
|
+
g.value
|
|
1635
|
+
);
|
|
1636
|
+
})
|
|
1637
|
+
}
|
|
1638
|
+
);
|
|
1639
|
+
}
|
|
1640
|
+
const fo = [32, 160, 8239, 8201].map(
|
|
1641
|
+
(e) => String.fromCharCode(e)
|
|
1642
|
+
), mo = (e) => {
|
|
1643
|
+
var t, r;
|
|
1644
|
+
const n = new Intl.NumberFormat(e).formatToParts(11111.1);
|
|
1645
|
+
return {
|
|
1646
|
+
group: ((t = n.find((s) => s.type === "group")) == null ? void 0 : t.value) ?? " ",
|
|
1647
|
+
decimal: ((r = n.find((s) => s.type === "decimal")) == null ? void 0 : r.value) ?? "."
|
|
1648
|
+
};
|
|
1649
|
+
}, Te = (e, n) => {
|
|
1650
|
+
const r = [n.group, ...fo].reduce(
|
|
1651
|
+
(c, a) => c.split(a).join(""),
|
|
1652
|
+
e.trim()
|
|
1653
|
+
).replace(",", ".");
|
|
1654
|
+
if (r === "" || !/^-?\d*\.?\d+$|^-?\d+\.$/.test(r))
|
|
1655
|
+
return null;
|
|
1656
|
+
const s = Number.parseFloat(r);
|
|
1657
|
+
return Number.isFinite(s) ? s : null;
|
|
1658
|
+
};
|
|
1659
|
+
function Or({
|
|
1660
|
+
label: e,
|
|
1661
|
+
value: n,
|
|
1662
|
+
onChange: t,
|
|
1663
|
+
decimals: r = 0,
|
|
1664
|
+
min: s = 0,
|
|
1665
|
+
disabled: c,
|
|
1666
|
+
adornment: a
|
|
1667
|
+
}) {
|
|
1668
|
+
const l = L(), f = ge(
|
|
1669
|
+
() => mo(l.locale),
|
|
1670
|
+
[l.locale]
|
|
1671
|
+
), v = Q(
|
|
1672
|
+
(u) => u === null ? "" : l.formatNumber(u, {
|
|
1673
|
+
minimumFractionDigits: r,
|
|
1674
|
+
maximumFractionDigits: r
|
|
1675
|
+
}),
|
|
1676
|
+
[l, r]
|
|
1677
|
+
), [b, g] = I(!1), [h, m] = I(() => v(n));
|
|
1678
|
+
return B(() => {
|
|
1679
|
+
b || m(v(n));
|
|
1680
|
+
}, [n, b, v]), /* @__PURE__ */ i(Be, { label: e, children: /* @__PURE__ */ i(
|
|
1681
|
+
fe,
|
|
1682
|
+
{
|
|
1683
|
+
disabled: c,
|
|
1684
|
+
value: h,
|
|
1685
|
+
inputProps: { inputMode: "decimal" },
|
|
1686
|
+
onFocus: () => {
|
|
1687
|
+
g(!0), n !== null && m(String(n).replace(".", f.decimal));
|
|
1688
|
+
},
|
|
1689
|
+
onChange: (u) => {
|
|
1690
|
+
m(u.target.value);
|
|
1691
|
+
const y = Te(u.target.value, f);
|
|
1692
|
+
y !== null ? t(y) : u.target.value === "" && t(null);
|
|
1693
|
+
},
|
|
1694
|
+
onBlur: () => {
|
|
1695
|
+
g(!1);
|
|
1696
|
+
let u = Te(h, f);
|
|
1697
|
+
u !== null && (u = Number.parseFloat(Math.max(u, s).toFixed(r))), t(u), m(v(u));
|
|
1698
|
+
},
|
|
1699
|
+
endAdornment: a ? /* @__PURE__ */ i(Gn, { position: "end", children: a }) : void 0
|
|
1700
|
+
}
|
|
1701
|
+
) });
|
|
1697
1702
|
}
|
|
1698
1703
|
const ho = 1, bo = (e, n) => n === "vertical" ? e.scrollHeight - e.clientHeight - e.scrollTop : e.scrollWidth - e.clientWidth - e.scrollLeft, yo = (e, n, t) => {
|
|
1699
1704
|
const [r, s] = I(!1), c = Q(() => {
|
|
@@ -1706,7 +1711,7 @@ const ho = 1, bo = (e, n) => n === "vertical" ? e.scrollHeight - e.clientHeight
|
|
|
1706
1711
|
return;
|
|
1707
1712
|
a.addEventListener("scroll", c, { passive: !0 });
|
|
1708
1713
|
const l = typeof ResizeObserver > "u" ? null : new ResizeObserver(c);
|
|
1709
|
-
return l !== null && (l.observe(a), Array.from(a.children).forEach((
|
|
1714
|
+
return l !== null && (l.observe(a), Array.from(a.children).forEach((f) => l.observe(f))), () => {
|
|
1710
1715
|
a.removeEventListener("scroll", c), l == null || l.disconnect();
|
|
1711
1716
|
};
|
|
1712
1717
|
}, [e, c, t]), r;
|
|
@@ -1736,7 +1741,7 @@ const wo = 2, xo = /* @__PURE__ */ new Set(["Enter", " "]), Co = d("div", {
|
|
|
1736
1741
|
...t && { maskImage: s, WebkitMaskImage: s }
|
|
1737
1742
|
};
|
|
1738
1743
|
}), sn = (e, n) => {
|
|
1739
|
-
const { tokens: t, space: r, radii: s, typeScale: c, fonts: a, densityValues: l, density:
|
|
1744
|
+
const { tokens: t, space: r, radii: s, typeScale: c, fonts: a, densityValues: l, density: f } = e.design, v = {
|
|
1740
1745
|
position: "relative",
|
|
1741
1746
|
display: "inline-flex",
|
|
1742
1747
|
alignItems: "center",
|
|
@@ -1759,14 +1764,14 @@ const wo = 2, xo = /* @__PURE__ */ new Set(["Enter", " "]), Co = d("div", {
|
|
|
1759
1764
|
},
|
|
1760
1765
|
// Inside the scrolling row, an outer ring would be clipped: it is drawn inside the tab.
|
|
1761
1766
|
"&:focus-visible": { ...te(e), outlineOffset: "-2px" }
|
|
1762
|
-
},
|
|
1767
|
+
}, b = {
|
|
1763
1768
|
[Z.down(K.Tablet)]: {
|
|
1764
1769
|
minHeight: o(l.touchTarget)
|
|
1765
1770
|
}
|
|
1766
1771
|
};
|
|
1767
1772
|
return n === "primary" ? {
|
|
1768
|
-
...
|
|
1769
|
-
minHeight: o(l[
|
|
1773
|
+
...v,
|
|
1774
|
+
minHeight: o(l[f].control + r[2]),
|
|
1770
1775
|
padding: `0 ${o(r[3])}`,
|
|
1771
1776
|
fontSize: o(c.body),
|
|
1772
1777
|
'&[aria-selected="true"]::after': {
|
|
@@ -1778,9 +1783,9 @@ const wo = 2, xo = /* @__PURE__ */ new Set(["Enter", " "]), Co = d("div", {
|
|
|
1778
1783
|
height: o(wo),
|
|
1779
1784
|
backgroundColor: t.accent
|
|
1780
1785
|
},
|
|
1781
|
-
...
|
|
1786
|
+
...b
|
|
1782
1787
|
} : {
|
|
1783
|
-
...
|
|
1788
|
+
...v,
|
|
1784
1789
|
minHeight: o(l.compact.control),
|
|
1785
1790
|
padding: `0 ${o(r[3])}`,
|
|
1786
1791
|
borderRadius: o(s.md),
|
|
@@ -1794,7 +1799,7 @@ const wo = 2, xo = /* @__PURE__ */ new Set(["Enter", " "]), Co = d("div", {
|
|
|
1794
1799
|
fontWeight: R.medium,
|
|
1795
1800
|
backgroundColor: t["bg.raised"]
|
|
1796
1801
|
},
|
|
1797
|
-
...
|
|
1802
|
+
...b
|
|
1798
1803
|
};
|
|
1799
1804
|
}, an = (e) => e !== "variant", So = d(Kn, { shouldForwardProp: an })(({ theme: e, variant: n }) => sn(e, n)), Io = d("button", { shouldForwardProp: an })(({ theme: e, variant: n }) => sn(e, n)), Fo = d("span")(({ theme: e }) => {
|
|
1800
1805
|
const { tokens: n, space: t, radii: r, fonts: s, typeScale: c } = e.design;
|
|
@@ -1821,7 +1826,7 @@ function Tr({
|
|
|
1821
1826
|
variant: r,
|
|
1822
1827
|
"aria-label": s
|
|
1823
1828
|
}) {
|
|
1824
|
-
const c =
|
|
1829
|
+
const c = L(), a = Y(null), l = e.filter((p) => p.hidden !== !0), f = yo(a, "horizontal", l.length), v = Q(
|
|
1825
1830
|
() => {
|
|
1826
1831
|
var p;
|
|
1827
1832
|
return Array.from(
|
|
@@ -1829,34 +1834,34 @@ function Tr({
|
|
|
1829
1834
|
);
|
|
1830
1835
|
},
|
|
1831
1836
|
[]
|
|
1832
|
-
),
|
|
1837
|
+
), b = Q(() => {
|
|
1833
1838
|
const p = a.current, u = p == null ? void 0 : p.querySelector('[aria-selected="true"]');
|
|
1834
1839
|
p && u && Re(p, u);
|
|
1835
1840
|
}, []);
|
|
1836
|
-
Ae(
|
|
1837
|
-
const
|
|
1841
|
+
Ae(b, [b, n]);
|
|
1842
|
+
const g = l.map((p) => p.value).join("|");
|
|
1838
1843
|
B(() => {
|
|
1839
1844
|
const p = a.current;
|
|
1840
1845
|
if (p === null || typeof ResizeObserver > "u")
|
|
1841
1846
|
return;
|
|
1842
|
-
const u = new ResizeObserver(
|
|
1843
|
-
return u.observe(p), Array.from(p.children).forEach((
|
|
1844
|
-
}, [
|
|
1847
|
+
const u = new ResizeObserver(b);
|
|
1848
|
+
return u.observe(p), Array.from(p.children).forEach((y) => u.observe(y)), () => u.disconnect();
|
|
1849
|
+
}, [b, g]);
|
|
1845
1850
|
const h = (p) => {
|
|
1846
|
-
const u =
|
|
1847
|
-
if (
|
|
1851
|
+
const u = v(), y = u.findIndex((F) => F === document.activeElement);
|
|
1852
|
+
if (y < 0)
|
|
1848
1853
|
return;
|
|
1849
1854
|
if (xo.has(p.key)) {
|
|
1850
|
-
p.key === " " && u[
|
|
1855
|
+
p.key === " " && u[y] instanceof HTMLAnchorElement && (p.preventDefault(), u[y].click());
|
|
1851
1856
|
return;
|
|
1852
1857
|
}
|
|
1853
1858
|
let C;
|
|
1854
1859
|
switch (p.key) {
|
|
1855
1860
|
case "ArrowRight":
|
|
1856
|
-
C = (
|
|
1861
|
+
C = (y + 1) % u.length;
|
|
1857
1862
|
break;
|
|
1858
1863
|
case "ArrowLeft":
|
|
1859
|
-
C = (
|
|
1864
|
+
C = (y - 1 + u.length) % u.length;
|
|
1860
1865
|
break;
|
|
1861
1866
|
case "Home":
|
|
1862
1867
|
C = 0;
|
|
@@ -1868,7 +1873,7 @@ function Tr({
|
|
|
1868
1873
|
return;
|
|
1869
1874
|
}
|
|
1870
1875
|
p.preventDefault(), u[C].focus(), a.current && Re(a.current, u[C]);
|
|
1871
|
-
},
|
|
1876
|
+
}, m = Math.max(
|
|
1872
1877
|
l.findIndex((p) => p.value === n),
|
|
1873
1878
|
0
|
|
1874
1879
|
);
|
|
@@ -1879,17 +1884,17 @@ function Tr({
|
|
|
1879
1884
|
role: "tablist",
|
|
1880
1885
|
"aria-label": s,
|
|
1881
1886
|
variant: r,
|
|
1882
|
-
fade:
|
|
1883
|
-
"data-overflowing":
|
|
1887
|
+
fade: f,
|
|
1888
|
+
"data-overflowing": f || void 0,
|
|
1884
1889
|
onKeyDown: h,
|
|
1885
1890
|
children: l.map((p, u) => {
|
|
1886
|
-
const
|
|
1891
|
+
const y = p.value === n, C = /* @__PURE__ */ x(J, { children: [
|
|
1887
1892
|
p.label,
|
|
1888
1893
|
p.badge !== void 0 && /* @__PURE__ */ i(Fo, { children: typeof p.badge == "number" ? c.formatNumber(p.badge) : p.badge })
|
|
1889
1894
|
] }), F = {
|
|
1890
1895
|
role: "tab",
|
|
1891
|
-
"aria-selected":
|
|
1892
|
-
tabIndex: u ===
|
|
1896
|
+
"aria-selected": y,
|
|
1897
|
+
tabIndex: u === m ? 0 : -1,
|
|
1893
1898
|
"data-testid": p.testId,
|
|
1894
1899
|
variant: r,
|
|
1895
1900
|
onClick: () => t == null ? void 0 : t(p.value)
|
|
@@ -1898,7 +1903,7 @@ function Tr({
|
|
|
1898
1903
|
So,
|
|
1899
1904
|
{
|
|
1900
1905
|
to: p.to,
|
|
1901
|
-
"aria-current":
|
|
1906
|
+
"aria-current": y ? "page" : void 0,
|
|
1902
1907
|
...F,
|
|
1903
1908
|
children: C
|
|
1904
1909
|
},
|
|
@@ -1909,33 +1914,33 @@ function Tr({
|
|
|
1909
1914
|
) });
|
|
1910
1915
|
}
|
|
1911
1916
|
export {
|
|
1912
|
-
|
|
1917
|
+
wr as A,
|
|
1913
1918
|
rt as C,
|
|
1914
|
-
|
|
1919
|
+
br as D,
|
|
1915
1920
|
Be as F,
|
|
1916
1921
|
Ot as I,
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1922
|
+
Or as N,
|
|
1923
|
+
hr as R,
|
|
1924
|
+
Wr as S,
|
|
1920
1925
|
vo as T,
|
|
1921
1926
|
Ve as a,
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1927
|
+
Tt as b,
|
|
1928
|
+
en as c,
|
|
1929
|
+
Kt as d,
|
|
1930
|
+
yo as e,
|
|
1931
|
+
Zt as f,
|
|
1932
|
+
Wt as g,
|
|
1928
1933
|
Mr as h,
|
|
1929
|
-
|
|
1930
|
-
|
|
1934
|
+
Jt as i,
|
|
1935
|
+
yr as j,
|
|
1931
1936
|
Tr as k,
|
|
1932
|
-
|
|
1933
|
-
|
|
1937
|
+
xr as l,
|
|
1938
|
+
Cr as m,
|
|
1934
1939
|
q as n,
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1940
|
+
on as o,
|
|
1941
|
+
kr as p,
|
|
1942
|
+
Sr as q,
|
|
1943
|
+
Ir as r,
|
|
1944
|
+
Fr as s,
|
|
1945
|
+
vr as u
|
|
1941
1946
|
};
|