@abyss-project/commons-front-core 16.0.0 → 16.1.1

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/catalog/captures-plan.ts +1 -0
  3. package/catalog/catalog-entries.ts +4 -0
  4. package/catalog/pages/Accordion.tsx +93 -0
  5. package/catalog/pages/Breadcrumbs.tsx +61 -0
  6. package/catalog/pages/ComboboxField.tsx +220 -0
  7. package/catalog/pages/Menu.tsx +3 -1
  8. package/catalog/pages/Modal.tsx +3 -1
  9. package/catalog/pages/SegmentedControl.tsx +18 -4
  10. package/catalog/pages/StatusBadge.tsx +37 -18
  11. package/catalog/pages/index.ts +6 -0
  12. package/catalog/specs/write-capture-index.ts +1 -0
  13. package/dist/{CookieConsentSettings-B7NfjgaI.js → CookieConsentSettings-CTAyLGkm.js} +1 -1
  14. package/dist/{Surface-BEhoEhyC.js → Surface-76bwVL_Z.js} +376 -323
  15. package/dist/{Tabs-DJ9_ZFjM.js → Tabs-D2bdAWGo.js} +384 -376
  16. package/dist/components/data/DataTable/DataTableDesktop.d.ts +1 -1
  17. package/dist/components/data/DataTable/DataTableMobile.d.ts +1 -1
  18. package/dist/components/data/DataTable/data-table.types.d.ts +5 -0
  19. package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +22 -1
  20. package/dist/components/editors/MarkdownEditor/index.d.ts +1 -1
  21. package/dist/components/index.d.ts +1 -0
  22. package/dist/components/inputs/ComboboxField/ComboboxField.d.ts +190 -0
  23. package/dist/components/inputs/ComboboxField/ComboboxField.spec.d.ts +1 -0
  24. package/dist/components/inputs/DropTargetOverlay/DropTargetOverlay.d.ts +12 -0
  25. package/dist/components/inputs/DropTargetOverlay/DropTargetOverlay.spec.d.ts +1 -0
  26. package/dist/components/inputs/SegmentedControl/SegmentedControl.d.ts +8 -0
  27. package/dist/components/inputs/index.d.ts +2 -0
  28. package/dist/components/layers/Menu/Menu.d.ts +11 -1
  29. package/dist/components/layers/Modal/Modal.d.ts +3 -1
  30. package/dist/components/meaning/StatusBadge/StatusBadge.d.ts +25 -3
  31. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +3 -1
  32. package/dist/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +43 -0
  33. package/dist/components/navigation/Breadcrumbs/Breadcrumbs.spec.d.ts +1 -0
  34. package/dist/components/navigation/index.d.ts +1 -0
  35. package/dist/components/structure/Accordion/Accordion.d.ts +65 -0
  36. package/dist/components/structure/Accordion/Accordion.spec.d.ts +1 -0
  37. package/dist/components/structure/PageHeader/PageHeader.d.ts +3 -5
  38. package/dist/components/structure/index.d.ts +1 -0
  39. package/dist/components/structure/test-support/structure-test-harness.d.ts +6 -1
  40. package/dist/cookie-consent.js +2 -2
  41. package/dist/{design-theme-N9jJSXdK.js → design-theme-B1PgRGnU.js} +96 -91
  42. package/dist/{editors-QM76tqZI.js → editors-C2rcatuM.js} +6654 -6626
  43. package/dist/editors.js +1 -1
  44. package/dist/hooks/index.d.ts +1 -0
  45. package/dist/hooks/use-file-drop-target.hook.d.ts +34 -0
  46. package/dist/hooks/use-rich-intl.hook.d.ts +64 -0
  47. package/dist/{index-pX3CTxFd.js → index-3lv992-d.js} +2 -2
  48. package/dist/{index-COUUAr5G.js → index-4Yy0aUgK.js} +1 -1
  49. package/dist/{index-mmrA4ErC.js → index-BFmuZ1fy.js} +2 -2
  50. package/dist/{index-3-SmpH5N.js → index-BQDShLfx.js} +4 -4
  51. package/dist/{index-D8ncJrf1.js → index-BT4II8Xn.js} +2 -2
  52. package/dist/{index-5OVR3WNo.js → index-CNEoRNth.js} +3 -3
  53. package/dist/{index-4b2f7sdW.js → index-CSuco3OH.js} +2 -2
  54. package/dist/{index-D1M_muSg.js → index-CV-IfV6z.js} +2 -2
  55. package/dist/{index-CM5COMvb.js → index-CY7TSo5q.js} +2 -2
  56. package/dist/{index-DA-HUFp6.js → index-Cv2nccBd.js} +2 -2
  57. package/dist/{index-C6jhogFt.js → index-CwT2qdxO.js} +2 -2
  58. package/dist/{index-jZGexiyT.js → index-D0JsaNEm.js} +3 -3
  59. package/dist/{index-nKbvjf2P.js → index-Dc4AUxs3.js} +2 -2
  60. package/dist/{index-DW3SBSsW.js → index-Dn53bUXz.js} +2 -2
  61. package/dist/{index-DCk0q3d7.js → index-DoXNSm4g.js} +3 -3
  62. package/dist/{index-Taee9VIc.js → index-Ds9SlbVU.js} +2 -2
  63. package/dist/{index-DmAoL9-1.js → index-N01-gzsR.js} +4 -4
  64. package/dist/{index-DYXAfA_s.js → index-PFLipTVz.js} +2 -2
  65. package/dist/{index-Ce0rv5wr.js → index-vvVLoC4J.js} +3 -3
  66. package/dist/{index-BKAfoA1a.js → index-wZeZLKGl.js} +2 -2
  67. package/dist/{index-CQU0eEXk.js → index-zLjfdiAC.js} +4 -4
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.js +8049 -7142
  70. package/dist/legacy/theme/create-theme.d.ts +7 -1
  71. package/dist/legacy/theme/create-theme.spec.d.ts +1 -0
  72. package/dist/legacy.js +1319 -1216
  73. package/dist/motion/Appear.d.ts +25 -0
  74. package/dist/motion/AppearList.d.ts +31 -0
  75. package/dist/motion/index.d.ts +4 -0
  76. package/dist/motion/motion.d.ts +24 -0
  77. package/dist/motion/motion.spec.d.ts +1 -0
  78. package/dist/motion/use-added-keys.hook.d.ts +7 -0
  79. package/dist/motion/use-added-keys.hook.spec.d.ts +1 -0
  80. package/dist/theme/AbyssThemeProvider.d.ts +2 -1
  81. package/dist/theme/DesignCssVariables.d.ts +2 -1
  82. package/dist/theme/augmentation.d.ts +2 -1
  83. package/dist/theme/create-abyss-theme.d.ts +4 -1
  84. package/dist/theme/design-theme.d.ts +1 -1
  85. package/dist/theme/index.d.ts +2 -1
  86. package/dist/theme/reduced-motion.d.ts +7 -0
  87. package/dist/theme/reduced-motion.spec.d.ts +1 -0
  88. package/dist/translations/en.d.ts +16 -0
  89. package/dist/translations/fr.d.ts +16 -0
  90. package/package.json +3 -3
@@ -1,17 +1,17 @@
1
- import { jsx as p, jsxs as O } from "react/jsx-runtime";
2
- import { useId as F, useRef as z, useState as Y, useCallback as K, useMemo as ie, forwardRef as re } from "react";
1
+ import { jsx as d, jsxs as R } from "react/jsx-runtime";
2
+ import { useId as F, useRef as Y, useState as H, useCallback as X, useMemo as re, forwardRef as ae } from "react";
3
3
  import { useIntl as x } from "react-intl";
4
- import ae from "@mui/material/Dialog";
5
- import X from "@mui/material/IconButton";
6
- import { alpha as ne, styled as f, useTheme as se } from "@mui/material/styles";
7
- import J from "@mui/icons-material/Close";
8
- import H from "@mui/material/useMediaQuery";
9
- import le from "@mui/material/Modal";
10
- import ce from "@mui/material/Slide";
11
- import { enTranslation as de, frTranslation as ue } from "@abyss-project/main";
12
- import { l as $ } from "./lazy-value-Co76vxsM.js";
13
- var pe = /* @__PURE__ */ ((e) => (e.Dark = "dark", e.Light = "light", e))(pe || {});
14
- const me = 266, c = (e, t) => ({ l: e, c: t, h: me }), ct = {
4
+ import ne from "@mui/material/Dialog";
5
+ import J from "@mui/material/IconButton";
6
+ import { alpha as se, styled as g, useTheme as le } from "@mui/material/styles";
7
+ import $ from "@mui/icons-material/Close";
8
+ import V from "@mui/material/useMediaQuery";
9
+ import ce from "@mui/material/Modal";
10
+ import de from "@mui/material/Slide";
11
+ import { enTranslation as ue, frTranslation as pe } from "@abyss-project/main";
12
+ import { l as Q } from "./lazy-value-Co76vxsM.js";
13
+ var me = /* @__PURE__ */ ((e) => (e.Dark = "dark", e.Light = "light", e))(me || {});
14
+ const ge = 266, c = (e, t) => ({ l: e, c: t, h: ge }), mt = {
15
15
  dark: {
16
16
  1: c(0.155, 0.034),
17
17
  2: c(0.17, 0.036),
@@ -40,10 +40,10 @@ const me = 266, c = (e, t) => ({ l: e, c: t, h: me }), ct = {
40
40
  11: c(0.42, 0.045),
41
41
  12: c(0.22, 0.045)
42
42
  }
43
- }, dt = {
43
+ }, gt = {
44
44
  sans: '"Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
45
45
  mono: '"Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace'
46
- }, ut = {
46
+ }, ht = {
47
47
  caption: 11,
48
48
  small: 12,
49
49
  body: 13,
@@ -53,38 +53,38 @@ const me = 266, c = (e, t) => ({ l: e, c: t, h: me }), ct = {
53
53
  pageTitle: 22,
54
54
  figure: 26,
55
55
  mobileLargeTitle: 30
56
- }, Q = {
56
+ }, Z = {
57
57
  regular: 400,
58
58
  medium: 500,
59
59
  semibold: 600,
60
60
  bold: 700
61
- }, pt = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], mt = {
61
+ }, ft = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], At = {
62
62
  sm: 4,
63
63
  md: 6,
64
64
  lg: 12
65
- }, gt = {
65
+ }, yt = {
66
66
  fast: 120,
67
67
  base: 180,
68
68
  slow: 260
69
- }, ht = {
69
+ }, vt = {
70
70
  standard: "cubic-bezier(0.2, 0, 0, 1)",
71
71
  sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
72
- }, V = {
72
+ }, j = {
73
73
  xs: 0,
74
74
  sm: 480,
75
75
  md: 768,
76
76
  lg: 1200,
77
77
  xl: 1600
78
- }, ft = {
78
+ }, Et = {
79
79
  comfortable: { row: 40, control: 32 },
80
80
  compact: { row: 30, control: 28 },
81
81
  touchTarget: 44
82
82
  };
83
- var T = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(T || {});
84
- const Z = {
85
- tablet: V.md,
86
- desktop: V.lg
87
- }, ge = 0.05, k = (e) => `(min-width:${Z[e]}px)`, M = (e) => `(max-width:${Z[e] - ge}px)`, D = {
83
+ var C = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(C || {});
84
+ const ee = {
85
+ tablet: j.md,
86
+ desktop: j.lg
87
+ }, he = 0.05, k = (e) => `(min-width:${ee[e]}px)`, M = (e) => `(max-width:${ee[e] - he}px)`, D = {
88
88
  /** From the start of `tier` up. */
89
89
  up: (e) => `@media ${k(e)}`,
90
90
  /** Below the start of `tier`. */
@@ -112,30 +112,30 @@ const Z = {
112
112
  )}`;
113
113
  }
114
114
  }
115
- }, he = 0.14, r = (e) => `${e}px`, L = (e) => `1px solid ${e}`, At = (e) => ne(e, he), fe = (e) => ({
115
+ }, fe = 0.14, a = (e) => `${e}px`, L = (e) => `1px solid ${e}`, bt = (e) => se(e, fe), Ae = (e) => ({
116
116
  outline: `2px solid ${e.design.tokens["focus.ring"]}`,
117
117
  outlineOffset: "2px"
118
- }), yt = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Et = (e) => e.design.densityValues[e.design.density].row, vt = (e) => ({
119
- [D.down(T.Tablet)]: {
120
- minHeight: r(e.design.densityValues.touchTarget)
118
+ }), St = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Tt = (e) => e.design.densityValues[e.design.density].row, Nt = (e) => ({
119
+ [D.down(C.Tablet)]: {
120
+ minHeight: a(e.design.densityValues.touchTarget)
121
121
  }
122
- }), Ae = (e) => ({
123
- [D.down(T.Tablet)]: {
124
- minWidth: r(e.design.densityValues.touchTarget),
125
- minHeight: r(e.design.densityValues.touchTarget)
122
+ }), ye = (e) => ({
123
+ [D.down(C.Tablet)]: {
124
+ minWidth: a(e.design.densityValues.touchTarget),
125
+ minHeight: a(e.design.densityValues.touchTarget)
126
126
  }
127
- }), ye = (e, t, o = "fast") => t.map(
127
+ }), ve = (e, t, o = "fast") => t.map(
128
128
  (i) => `${i} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
129
  ).join(", "), Ee = () => {
130
- const e = H(D.up(T.Desktop), {
130
+ const e = V(D.up(C.Desktop), {
131
131
  noSsr: !0
132
- }), t = H(D.down(T.Tablet), {
132
+ }), t = V(D.down(C.Tablet), {
133
133
  noSsr: !0
134
134
  });
135
- return e ? T.Desktop : t ? T.Mobile : T.Tablet;
135
+ return e ? C.Desktop : t ? C.Mobile : C.Tablet;
136
136
  };
137
137
  var _ = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(_ || {});
138
- const P = (e, t) => `calc(${r(t)} + env(safe-area-inset-${e}))`, ve = 0.3, be = f("div")({
138
+ const P = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, be = 0.3, Se = g("div")({
139
139
  position: "absolute",
140
140
  left: 0,
141
141
  right: 0,
@@ -143,16 +143,16 @@ const P = (e, t) => `calc(${r(t)} + env(safe-area-inset-${e}))`, ve = 0.3, be =
143
143
  maxHeight: "100%",
144
144
  display: "flex",
145
145
  outline: "none"
146
- }), Se = f("div")(({ theme: e }) => {
147
- const { tokens: t, radii: o, space: i, elevations: a, fonts: n } = e.design;
146
+ }), Te = g("div")(({ theme: e }) => {
147
+ const { tokens: t, radii: o, space: i, elevations: r, fonts: n } = e.design;
148
148
  return {
149
149
  flex: "1 1 auto",
150
150
  minWidth: 0,
151
151
  maxHeight: `calc(100vh - ${P(_.Top, i[8])})`,
152
152
  display: "flex",
153
153
  flexDirection: "column",
154
- gap: r(i[3]),
155
- paddingTop: r(i[2]),
154
+ gap: a(i[3]),
155
+ paddingTop: a(i[2]),
156
156
  paddingBottom: P(_.Bottom, i[6]),
157
157
  paddingLeft: P(_.Left, i[4]),
158
158
  paddingRight: P(_.Right, i[4]),
@@ -160,166 +160,182 @@ const P = (e, t) => `calc(${r(t)} + env(safe-area-inset-${e}))`, ve = 0.3, be =
160
160
  color: t["text.primary"],
161
161
  fontFamily: n.sans,
162
162
  borderTop: L(t["border.strong"]),
163
- borderTopLeftRadius: r(o.lg),
164
- borderTopRightRadius: r(o.lg),
165
- boxShadow: a.modal,
163
+ borderTopLeftRadius: a(o.lg),
164
+ borderTopRightRadius: a(o.lg),
165
+ boxShadow: r.modal,
166
166
  outline: "none",
167
167
  position: "relative"
168
168
  };
169
- }), Te = f(X)(({ theme: e }) => ({
169
+ }), Ne = g(J)(({ theme: e }) => ({
170
170
  position: "absolute",
171
- top: r(e.design.space[1]),
171
+ top: a(e.design.space[1]),
172
172
  right: P(_.Right, e.design.space[2]),
173
- ...Ae(e)
174
- })), Ne = f("div")(({ theme: e }) => {
173
+ ...ye(e)
174
+ })), Ce = g("div")(({ theme: e }) => {
175
175
  const { space: t, densityValues: o } = e.design;
176
176
  return {
177
177
  flex: "none",
178
178
  display: "flex",
179
179
  flexDirection: "column",
180
180
  alignItems: "center",
181
- gap: r(t[2]),
182
- minHeight: r(o.touchTarget / 2),
181
+ gap: a(t[2]),
182
+ minHeight: a(o.touchTarget / 2),
183
183
  touchAction: "none",
184
184
  cursor: "grab"
185
185
  };
186
- }), Ce = f("span")(({ theme: e }) => {
186
+ }), Re = g("span")(({ theme: e }) => {
187
187
  const { tokens: t, radii: o, space: i } = e.design;
188
188
  return {
189
- width: r(i[8]),
190
- height: r(i[1]),
191
- borderRadius: r(o.sm),
189
+ width: a(i[8]),
190
+ height: a(i[1]),
191
+ borderRadius: a(o.sm),
192
192
  backgroundColor: t["border.strong"]
193
193
  };
194
- }), Re = f("h2", {
194
+ }), Ie = g("h2", {
195
195
  shouldForwardProp: (e) => e !== "besideClose"
196
196
  })(({ theme: e, besideClose: t }) => {
197
- const { typeScale: o, densityValues: i, space: a } = e.design;
197
+ const { typeScale: o, densityValues: i, space: r } = e.design;
198
198
  return {
199
199
  alignSelf: "stretch",
200
200
  margin: 0,
201
201
  // Clear of the close button in the corner.
202
- paddingRight: t ? r(i.touchTarget + a[2]) : void 0,
203
- fontSize: r(o.sectionTitle),
204
- fontWeight: Q.semibold,
202
+ paddingRight: t ? a(i.touchTarget + r[2]) : void 0,
203
+ fontSize: a(o.sectionTitle),
204
+ fontWeight: Z.semibold,
205
205
  overflowWrap: "anywhere"
206
206
  };
207
- }), Ie = f("div")({
207
+ }), Oe = g("span")(({ theme: e }) => ({
208
+ display: "inline-flex",
209
+ verticalAlign: "middle",
210
+ marginRight: a(e.design.space[2])
211
+ })), _e = g("div")({
208
212
  flex: "1 1 auto",
209
213
  minHeight: 0,
210
214
  overflowY: "auto",
211
215
  overscrollBehavior: "contain"
212
216
  });
213
- function Oe({
217
+ function we({
214
218
  open: e,
215
219
  onClose: t,
216
220
  title: o,
217
- closeLabel: i,
218
- children: a
221
+ titleIcon: i,
222
+ closeLabel: r,
223
+ children: n
219
224
  }) {
220
- const n = se(), y = x(), A = F(), E = z(null), l = z(null), [S, b] = Y(0), [C, u] = Y(!1), d = (g) => {
221
- g.currentTarget.setPointerCapture(g.pointerId), l.current = g.clientY, u(!0);
222
- }, s = (g) => {
223
- l.current !== null && b(Math.max(0, g.clientY - l.current));
224
- }, m = (g) => {
225
- var B;
226
- if (l.current === null)
225
+ const h = le(), y = x(), v = F(), f = Y(null), A = Y(null), [E, N] = H(0), [u, l] = H(!1), s = (T) => {
226
+ T.currentTarget.setPointerCapture(T.pointerId), A.current = T.clientY, l(!0);
227
+ }, p = (T) => {
228
+ A.current !== null && N(Math.max(0, T.clientY - A.current));
229
+ }, b = (T) => {
230
+ var z;
231
+ if (A.current === null)
227
232
  return;
228
- const I = Math.max(0, g.clientY - l.current), N = ((B = E.current) == null ? void 0 : B.getBoundingClientRect().height) ?? 0;
229
- l.current = null, u(!1), b(0), N > 0 && I >= N * ve && t();
230
- }, v = () => {
231
- l.current = null, u(!1), b(0);
233
+ const I = Math.max(0, T.clientY - A.current), B = ((z = f.current) == null ? void 0 : z.getBoundingClientRect().height) ?? 0;
234
+ A.current = null, l(!1), N(0), B > 0 && I >= B * be && t();
235
+ }, S = () => {
236
+ A.current = null, l(!1), N(0);
232
237
  };
233
- return /* @__PURE__ */ p(le, { open: e, onClose: () => t(), children: /* @__PURE__ */ p(
234
- ce,
238
+ return /* @__PURE__ */ d(ce, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
239
+ de,
235
240
  {
236
241
  in: e,
237
242
  direction: "up",
238
- timeout: n.design.durations.slow,
239
- easing: n.design.easings.sheet,
240
- children: /* @__PURE__ */ p(be, { children: /* @__PURE__ */ O(
241
- Se,
243
+ timeout: h.design.durations.slow,
244
+ easing: h.design.easings.sheet,
245
+ children: /* @__PURE__ */ d(Se, { children: /* @__PURE__ */ R(
246
+ Te,
242
247
  {
243
- ref: E,
248
+ ref: f,
244
249
  role: "dialog",
245
250
  "aria-modal": "true",
246
- "aria-labelledby": o ? A : void 0,
251
+ "aria-labelledby": o ? v : void 0,
247
252
  "aria-label": o ? void 0 : y.formatMessage({ id: "ds.mobile.bottom-sheet.label" }),
248
253
  tabIndex: -1,
249
254
  style: {
250
- transform: `translateY(${r(S)})`,
251
- transition: C ? "none" : `transform ${n.design.durations.base}ms ${n.design.easings.sheet}`
255
+ transform: `translateY(${a(E)})`,
256
+ transition: u ? "none" : `transform ${h.design.durations.base}ms ${h.design.easings.sheet}`
252
257
  },
253
258
  children: [
254
- /* @__PURE__ */ O(
255
- Ne,
259
+ /* @__PURE__ */ R(
260
+ Ce,
256
261
  {
257
262
  "data-testid": "bottom-sheet-drag-zone",
258
- onPointerDown: d,
259
- onPointerMove: s,
260
- onPointerUp: m,
261
- onPointerCancel: v,
263
+ onPointerDown: s,
264
+ onPointerMove: p,
265
+ onPointerUp: b,
266
+ onPointerCancel: S,
262
267
  children: [
263
- /* @__PURE__ */ p(Ce, { "aria-hidden": "true" }),
264
- o ? /* @__PURE__ */ p(Re, { id: A, besideClose: i !== void 0, children: o }) : null
268
+ /* @__PURE__ */ d(Re, { "aria-hidden": "true" }),
269
+ o ? /* @__PURE__ */ R(Ie, { id: v, besideClose: r !== void 0, children: [
270
+ i !== void 0 && /* @__PURE__ */ d(Oe, { "aria-hidden": "true", children: i }),
271
+ o
272
+ ] }) : null
265
273
  ]
266
274
  }
267
275
  ),
268
- i !== void 0 && /* @__PURE__ */ p(Te, { "aria-label": i, onClick: () => t(), children: /* @__PURE__ */ p(J, { "aria-hidden": !0 }) }),
269
- /* @__PURE__ */ p(Ie, { children: a })
276
+ r !== void 0 && /* @__PURE__ */ d(Ne, { "aria-label": r, onClick: () => t(), children: /* @__PURE__ */ d($, { "aria-hidden": !0 }) }),
277
+ /* @__PURE__ */ d(_e, { children: n })
270
278
  ]
271
279
  }
272
280
  ) })
273
281
  }
274
282
  ) });
275
283
  }
276
- var _e = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(_e || {});
277
- const we = f(ae)(({ theme: e }) => {
284
+ var Pe = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(Pe || {});
285
+ const De = g(ne)(({ theme: e }) => {
278
286
  const { tokens: t, fonts: o, space: i } = e.design;
279
287
  return {
280
288
  "& .MuiDialog-paper": {
281
- margin: r(i[4]),
282
- maxHeight: `calc(100% - ${r(i[7])})`,
289
+ margin: a(i[4]),
290
+ maxHeight: `calc(100% - ${a(i[7])})`,
283
291
  backgroundColor: t["bg.surface"],
284
292
  color: t["text.primary"],
285
293
  fontFamily: o.sans,
286
294
  overflow: "hidden"
287
295
  },
288
296
  "& .MuiDialog-paperFullWidth": {
289
- width: `calc(100% - ${r(i[7])})`
297
+ width: `calc(100% - ${a(i[7])})`
290
298
  }
291
299
  };
292
- }), Pe = f("div")(({ theme: e }) => {
300
+ }), Le = g("div")(({ theme: e }) => {
293
301
  const { tokens: t, space: o } = e.design;
294
302
  return {
295
303
  flex: "none",
296
304
  display: "flex",
297
305
  justifyContent: "space-between",
298
306
  alignItems: "flex-start",
299
- gap: r(o[4]),
300
- padding: `${r(o[4])} ${r(o[5])}`,
307
+ gap: a(o[4]),
308
+ padding: `${a(o[4])} ${a(o[5])}`,
301
309
  borderBottom: L(t["border.subtle"])
302
310
  };
303
- }), De = f("div")({ minWidth: 0 }), Le = f("h2")(({ theme: e }) => ({
311
+ }), ke = g("div")({ minWidth: 0 }), Me = g("div")(({ theme: e }) => ({
312
+ minWidth: 0,
313
+ display: "flex",
314
+ alignItems: "flex-start",
315
+ gap: a(e.design.space[3])
316
+ })), Ue = g("span")({
317
+ flex: "none",
318
+ display: "inline-flex"
319
+ }), Ge = g("h2")(({ theme: e }) => ({
304
320
  margin: 0,
305
- fontSize: r(e.design.typeScale.sectionTitle),
306
- fontWeight: Q.semibold,
321
+ fontSize: a(e.design.typeScale.sectionTitle),
322
+ fontWeight: Z.semibold,
307
323
  overflowWrap: "anywhere"
308
- })), ke = f("p")(({ theme: e }) => {
324
+ })), Fe = g("p")(({ theme: e }) => {
309
325
  const { tokens: t, space: o, typeScale: i } = e.design;
310
326
  return {
311
- margin: `${r(o[1])} 0 0`,
327
+ margin: `${a(o[1])} 0 0`,
312
328
  color: t["text.muted"],
313
- fontSize: r(i.body),
329
+ fontSize: a(i.body),
314
330
  overflowWrap: "anywhere"
315
331
  };
316
- }), Me = f("div")(({ theme: e }) => ({
332
+ }), xe = g("div")(({ theme: e }) => ({
317
333
  flex: "1 1 auto",
318
334
  minHeight: 0,
319
335
  overflowY: "auto",
320
- padding: r(e.design.space[5]),
321
- fontSize: r(e.design.typeScale.body)
322
- })), Ue = f("div")(({ theme: e }) => {
336
+ padding: a(e.design.space[5]),
337
+ fontSize: a(e.design.typeScale.body)
338
+ })), Be = g("div")(({ theme: e }) => {
323
339
  const { tokens: t, space: o } = e.design;
324
340
  return {
325
341
  flex: "none",
@@ -327,77 +343,82 @@ const we = f(ae)(({ theme: e }) => {
327
343
  flexWrap: "wrap",
328
344
  justifyContent: "flex-end",
329
345
  alignItems: "center",
330
- gap: r(o[3]),
331
- padding: `${r(o[3])} ${r(o[5])}`,
346
+ gap: a(o[3]),
347
+ padding: `${a(o[3])} ${a(o[5])}`,
332
348
  borderTop: L(t["border.subtle"])
333
349
  };
334
- }), Ge = f("p")(({ theme: e }) => ({
335
- margin: `0 0 ${r(e.design.space[3])}`,
350
+ }), ze = g("p")(({ theme: e }) => ({
351
+ margin: `0 0 ${a(e.design.space[3])}`,
336
352
  color: e.design.tokens["text.muted"],
337
- fontSize: r(e.design.typeScale.bodyMobile),
353
+ fontSize: a(e.design.typeScale.bodyMobile),
338
354
  overflowWrap: "anywhere"
339
- })), Fe = f("div")(({ theme: e }) => ({
355
+ })), Ye = g("div")(({ theme: e }) => ({
340
356
  display: "flex",
341
357
  flexWrap: "wrap",
342
- gap: r(e.design.space[2]),
343
- marginTop: r(e.design.space[4]),
358
+ gap: a(e.design.space[2]),
359
+ marginTop: a(e.design.space[4]),
344
360
  "& > *": { flex: "1 1 0" }
345
361
  }));
346
- function bt({
362
+ function Ct({
347
363
  open: e,
348
364
  onClose: t,
349
365
  title: o,
350
- description: i,
351
- size: a = "md",
352
- actions: n,
366
+ titleIcon: i,
367
+ description: r,
368
+ size: n = "md",
369
+ actions: h,
353
370
  children: y
354
371
  }) {
355
- const A = x(), E = Ee() === T.Mobile, l = F(), S = F();
356
- return E ? /* @__PURE__ */ O(
357
- Oe,
372
+ const v = x(), f = Ee() === C.Mobile, A = F(), E = F();
373
+ return f ? /* @__PURE__ */ R(
374
+ we,
358
375
  {
359
376
  open: e,
360
377
  onClose: t,
361
378
  title: o,
362
- closeLabel: A.formatMessage({ id: "ds.layers.modal.close" }),
379
+ titleIcon: i,
380
+ closeLabel: v.formatMessage({ id: "ds.layers.modal.close" }),
363
381
  children: [
364
- i !== void 0 && /* @__PURE__ */ p(Ge, { children: i }),
382
+ r !== void 0 && /* @__PURE__ */ d(ze, { children: r }),
365
383
  y,
366
- n !== void 0 && /* @__PURE__ */ p(Fe, { children: n })
384
+ h !== void 0 && /* @__PURE__ */ d(Ye, { children: h })
367
385
  ]
368
386
  }
369
- ) : /* @__PURE__ */ O(
370
- we,
387
+ ) : /* @__PURE__ */ R(
388
+ De,
371
389
  {
372
390
  open: e,
373
391
  onClose: () => t(),
374
- maxWidth: a,
392
+ maxWidth: n,
375
393
  fullWidth: !0,
376
- "aria-labelledby": l,
377
- "aria-describedby": i !== void 0 ? S : void 0,
394
+ "aria-labelledby": A,
395
+ "aria-describedby": r !== void 0 ? E : void 0,
378
396
  children: [
379
- /* @__PURE__ */ O(Pe, { children: [
380
- /* @__PURE__ */ O(De, { children: [
381
- /* @__PURE__ */ p(Le, { id: l, children: o }),
382
- i !== void 0 && /* @__PURE__ */ p(ke, { id: S, children: i })
397
+ /* @__PURE__ */ R(Le, { children: [
398
+ /* @__PURE__ */ R(Me, { children: [
399
+ i !== void 0 && /* @__PURE__ */ d(Ue, { "aria-hidden": "true", children: i }),
400
+ /* @__PURE__ */ R(ke, { children: [
401
+ /* @__PURE__ */ d(Ge, { id: A, children: o }),
402
+ r !== void 0 && /* @__PURE__ */ d(Fe, { id: E, children: r })
403
+ ] })
383
404
  ] }),
384
- /* @__PURE__ */ p(
385
- X,
405
+ /* @__PURE__ */ d(
406
+ J,
386
407
  {
387
- "aria-label": A.formatMessage({ id: "ds.layers.modal.close" }),
408
+ "aria-label": v.formatMessage({ id: "ds.layers.modal.close" }),
388
409
  onClick: t,
389
- children: /* @__PURE__ */ p(J, { "aria-hidden": !0 })
410
+ children: /* @__PURE__ */ d($, { "aria-hidden": !0 })
390
411
  }
391
412
  )
392
413
  ] }),
393
- /* @__PURE__ */ p(Me, { children: y }),
394
- n !== void 0 && /* @__PURE__ */ p(Ue, { children: n })
414
+ /* @__PURE__ */ d(xe, { children: y }),
415
+ h !== void 0 && /* @__PURE__ */ d(Be, { children: h })
395
416
  ]
396
417
  }
397
418
  );
398
419
  }
399
- const j = (e) => e, ee = {
400
- fr: j({
420
+ const q = (e) => e, te = {
421
+ fr: q({
401
422
  PROJECTS_COUNT: "Projets",
402
423
  MEMBERS_COUNT: "Membres",
403
424
  TEAM_COUNT: "Équipes",
@@ -457,7 +478,7 @@ const j = (e) => e, ee = {
457
478
  BANKING_PSD2_REFRESHES_MONTH: "Rafraîchissements PSD2 / mois",
458
479
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "Recalculs système / mois"
459
480
  }),
460
- en: j({
481
+ en: q({
461
482
  PROJECTS_COUNT: "Projects",
462
483
  MEMBERS_COUNT: "Members",
463
484
  TEAM_COUNT: "Teams",
@@ -518,26 +539,26 @@ const j = (e) => e, ee = {
518
539
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "System resnapshots / month"
519
540
  })
520
541
  };
521
- var w = /* @__PURE__ */ ((e) => (e.FREEMIUM = "FREEMIUM", e.DEFAULT = "DEFAULT", e.CUSTOM = "CUSTOM", e.SYSTEM = "SYSTEM", e))(w || {}), R = /* @__PURE__ */ ((e) => (e.FREEMIUM = "freemium", e.STARTER = "starter", e.PRO = "pro", e.ENTERPRISE = "enterprise", e.CUSTOM = "custom", e.INTERNAL = "internal", e.FAMILY_FREE = "family-free", e.FAMILY_PAID = "family-paid", e.DEMO = "demo", e))(R || {});
522
- const xe = {
523
- [w.FREEMIUM]: R.FREEMIUM,
542
+ var w = /* @__PURE__ */ ((e) => (e.FREEMIUM = "FREEMIUM", e.DEFAULT = "DEFAULT", e.CUSTOM = "CUSTOM", e.SYSTEM = "SYSTEM", e))(w || {}), O = /* @__PURE__ */ ((e) => (e.FREEMIUM = "freemium", e.STARTER = "starter", e.PRO = "pro", e.ENTERPRISE = "enterprise", e.CUSTOM = "custom", e.INTERNAL = "internal", e.FAMILY_FREE = "family-free", e.FAMILY_PAID = "family-paid", e.DEMO = "demo", e))(O || {});
543
+ const He = {
544
+ [w.FREEMIUM]: O.FREEMIUM,
524
545
  [w.DEFAULT]: "paid",
525
- [w.SYSTEM]: R.INTERNAL,
526
- [w.CUSTOM]: R.CUSTOM
527
- }, Be = new Set(Object.values(R)), U = (e) => e ? e.tier === w.CUSTOM ? R.CUSTOM : e.catalogKey && Be.has(e.catalogKey) ? e.catalogKey : xe[e.tier] ?? "paid" : R.FREEMIUM, St = (e, t) => {
528
- const o = (A) => {
529
- const E = e[`${A}Tier`];
530
- if (typeof E != "string")
546
+ [w.SYSTEM]: O.INTERNAL,
547
+ [w.CUSTOM]: O.CUSTOM
548
+ }, Ve = new Set(Object.values(O)), U = (e) => e ? e.tier === w.CUSTOM ? O.CUSTOM : e.catalogKey && Ve.has(e.catalogKey) ? e.catalogKey : He[e.tier] ?? "paid" : O.FREEMIUM, Rt = (e, t) => {
549
+ const o = (y) => {
550
+ const v = e[`${y}Tier`];
551
+ if (typeof v != "string")
531
552
  return null;
532
- const l = e[`${A}CatalogKey`];
553
+ const f = e[`${y}CatalogKey`];
533
554
  return {
534
- tier: E,
535
- catalogKey: typeof l == "string" ? l : null
555
+ tier: v,
556
+ catalogKey: typeof f == "string" ? f : null
536
557
  };
537
- }, i = {}, a = o("plan"), n = o("oldPlan"), y = o("newPlan");
538
- return a && (i.planName = t(U(a))), n && (i.oldPlanName = t(U(n))), y && (i.newPlanName = t(U(y))), i;
539
- }, q = (e) => e, h = {
540
- fr: q({
558
+ }, i = {}, r = o("plan"), n = o("oldPlan"), h = o("newPlan");
559
+ return r && (i.planName = t(U(r))), n && (i.oldPlanName = t(U(n))), h && (i.newPlanName = t(U(h))), i;
560
+ }, W = (e) => e, m = {
561
+ fr: W({
541
562
  freemium: "Gratuit",
542
563
  starter: "Starter",
543
564
  pro: "Pro",
@@ -549,7 +570,7 @@ const xe = {
549
570
  custom: "Plan personnalisé",
550
571
  paid: "Plan payant"
551
572
  }),
552
- en: q({
573
+ en: W({
553
574
  freemium: "Free",
554
575
  starter: "Starter",
555
576
  pro: "Pro",
@@ -561,7 +582,7 @@ const xe = {
561
582
  custom: "Custom plan",
562
583
  paid: "Paid plan"
563
584
  })
564
- }, ze = {
585
+ }, je = {
565
586
  banner: {
566
587
  title: "Compte de démonstration",
567
588
  summary: "{label} · expire le {date}",
@@ -576,8 +597,8 @@ const xe = {
576
597
  }
577
598
  },
578
599
  blocked: "Indisponible en démo"
579
- }, Ye = {
580
- demo: ze,
600
+ }, qe = {
601
+ demo: je,
581
602
  "space-display-name": {
582
603
  personal: "Mon Cloud",
583
604
  "perso-in-org": "Mon Cloud (dans org)",
@@ -667,7 +688,7 @@ const xe = {
667
688
  },
668
689
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
669
690
  // source (the invoices, their PDF and the overage e-mail read it too).
670
- metric: ee.fr
691
+ metric: te.fr
671
692
  },
672
693
  "error-page": {
673
694
  title: "Une erreur est survenue",
@@ -1318,40 +1339,40 @@ const xe = {
1318
1339
  // Plan names come from @abyss-project/main's `plan-name` table, their single source.
1319
1340
  plan: {
1320
1341
  freemium: {
1321
- name: h.fr.freemium,
1342
+ name: m.fr.freemium,
1322
1343
  description: "Pour démarrer sans engagement"
1323
1344
  },
1324
1345
  starter: {
1325
- name: h.fr.starter,
1346
+ name: m.fr.starter,
1326
1347
  description: "Pour les individus et petites équipes"
1327
1348
  },
1328
1349
  pro: {
1329
- name: h.fr.pro,
1350
+ name: m.fr.pro,
1330
1351
  description: "Pour les équipes professionnelles"
1331
1352
  },
1332
1353
  enterprise: {
1333
- name: h.fr.enterprise,
1354
+ name: m.fr.enterprise,
1334
1355
  description: "Pour les grandes organisations"
1335
1356
  },
1336
1357
  internal: {
1337
- name: h.fr.internal,
1358
+ name: m.fr.internal,
1338
1359
  description: "Usage interne Abyss"
1339
1360
  },
1340
1361
  "family-free": {
1341
- name: h.fr["family-free"],
1362
+ name: m.fr["family-free"],
1342
1363
  description: "Jusqu'à 6 membres, espaces partagés"
1343
1364
  },
1344
1365
  "family-paid": {
1345
- name: h.fr["family-paid"],
1366
+ name: m.fr["family-paid"],
1346
1367
  description: "Jusqu'à 12 membres + bonus sur vos quotas perso"
1347
1368
  },
1348
1369
  demo: {
1349
- name: h.fr.demo,
1370
+ name: m.fr.demo,
1350
1371
  description: "Compte de démonstration : tous les services inclus"
1351
1372
  },
1352
1373
  // Names only: a bespoke plan and a paid plan outside the catalog have no catalog pitch.
1353
- custom: { name: h.fr.custom },
1354
- paid: { name: h.fr.paid }
1374
+ custom: { name: m.fr.custom },
1375
+ paid: { name: m.fr.paid }
1355
1376
  },
1356
1377
  "plan-feature": {
1357
1378
  PROJECTS_COUNT: "{unlimited, select, true {Projets illimités} other {{limit} projets}}",
@@ -2101,6 +2122,13 @@ const xe = {
2101
2122
  "entity-image-field": {
2102
2123
  uploading: "Envoi de l’image…"
2103
2124
  },
2125
+ combobox: {
2126
+ loading: "Recherche…",
2127
+ empty: "Aucun résultat",
2128
+ clear: "Effacer",
2129
+ open: "Ouvrir la liste",
2130
+ close: "Fermer la liste"
2131
+ },
2104
2132
  "user-picker": {
2105
2133
  loading: "Recherche…",
2106
2134
  clear: "Effacer",
@@ -2131,6 +2159,9 @@ const xe = {
2131
2159
  "too-many": "Déposez un seul fichier à la fois.",
2132
2160
  "rejected-type": "Ce type de fichier n’est pas accepté ici."
2133
2161
  },
2162
+ "drop-target": {
2163
+ label: "Déposez pour ajouter à {target}"
2164
+ },
2134
2165
  "import-button": {
2135
2166
  file: "Mon ordinateur",
2136
2167
  url: "Lien URL",
@@ -2187,6 +2218,12 @@ const xe = {
2187
2218
  close: "Fermer le panneau"
2188
2219
  }
2189
2220
  },
2221
+ navigation: {
2222
+ breadcrumbs: {
2223
+ label: "Fil d’Ariane",
2224
+ expand: "Afficher les niveaux masqués"
2225
+ }
2226
+ },
2190
2227
  mobile: {
2191
2228
  shell: {
2192
2229
  back: "Retour",
@@ -2752,7 +2789,7 @@ const xe = {
2752
2789
  show: "Afficher le mot de passe",
2753
2790
  hide: "Masquer le mot de passe"
2754
2791
  }
2755
- }, He = {
2792
+ }, We = {
2756
2793
  banner: {
2757
2794
  title: "Demo account",
2758
2795
  summary: "{label} · expires on {date}",
@@ -2767,8 +2804,8 @@ const xe = {
2767
2804
  }
2768
2805
  },
2769
2806
  blocked: "Unavailable in demo"
2770
- }, Ve = {
2771
- demo: He,
2807
+ }, Ke = {
2808
+ demo: We,
2772
2809
  "space-display-name": {
2773
2810
  personal: "My Cloud",
2774
2811
  "perso-in-org": "My Cloud (in org)",
@@ -2858,7 +2895,7 @@ const xe = {
2858
2895
  },
2859
2896
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
2860
2897
  // source (the invoices, their PDF and the overage e-mail read it too).
2861
- metric: ee.en
2898
+ metric: te.en
2862
2899
  },
2863
2900
  "error-page": {
2864
2901
  title: "Something went wrong",
@@ -3509,40 +3546,40 @@ const xe = {
3509
3546
  // Plan names come from @abyss-project/main's `plan-name` table, their single source.
3510
3547
  plan: {
3511
3548
  freemium: {
3512
- name: h.en.freemium,
3549
+ name: m.en.freemium,
3513
3550
  description: "Get started with no commitment"
3514
3551
  },
3515
3552
  starter: {
3516
- name: h.en.starter,
3553
+ name: m.en.starter,
3517
3554
  description: "For individuals and small teams"
3518
3555
  },
3519
3556
  pro: {
3520
- name: h.en.pro,
3557
+ name: m.en.pro,
3521
3558
  description: "For professional teams"
3522
3559
  },
3523
3560
  enterprise: {
3524
- name: h.en.enterprise,
3561
+ name: m.en.enterprise,
3525
3562
  description: "For large organizations"
3526
3563
  },
3527
3564
  internal: {
3528
- name: h.en.internal,
3565
+ name: m.en.internal,
3529
3566
  description: "Abyss internal use"
3530
3567
  },
3531
3568
  "family-free": {
3532
- name: h.en["family-free"],
3569
+ name: m.en["family-free"],
3533
3570
  description: "Up to 6 members, shared spaces"
3534
3571
  },
3535
3572
  "family-paid": {
3536
- name: h.en["family-paid"],
3573
+ name: m.en["family-paid"],
3537
3574
  description: "Up to 12 members + a bonus on your personal quotas"
3538
3575
  },
3539
3576
  demo: {
3540
- name: h.en.demo,
3577
+ name: m.en.demo,
3541
3578
  description: "Demo account: every service included"
3542
3579
  },
3543
3580
  // Names only: a bespoke plan and a paid plan outside the catalog have no catalog pitch.
3544
- custom: { name: h.en.custom },
3545
- paid: { name: h.en.paid }
3581
+ custom: { name: m.en.custom },
3582
+ paid: { name: m.en.paid }
3546
3583
  },
3547
3584
  "plan-feature": {
3548
3585
  PROJECTS_COUNT: "{unlimited, select, true {Unlimited projects} other {{limit} projects}}",
@@ -4292,6 +4329,13 @@ const xe = {
4292
4329
  "entity-image-field": {
4293
4330
  uploading: "Uploading the image…"
4294
4331
  },
4332
+ combobox: {
4333
+ loading: "Searching…",
4334
+ empty: "No result",
4335
+ clear: "Clear",
4336
+ open: "Open the list",
4337
+ close: "Close the list"
4338
+ },
4295
4339
  "user-picker": {
4296
4340
  loading: "Searching…",
4297
4341
  clear: "Clear",
@@ -4322,6 +4366,9 @@ const xe = {
4322
4366
  "too-many": "Drop a single file at a time.",
4323
4367
  "rejected-type": "This file type is not accepted here."
4324
4368
  },
4369
+ "drop-target": {
4370
+ label: "Drop to add to {target}"
4371
+ },
4325
4372
  "import-button": {
4326
4373
  file: "My computer",
4327
4374
  url: "URL link",
@@ -4378,6 +4425,12 @@ const xe = {
4378
4425
  close: "Close panel"
4379
4426
  }
4380
4427
  },
4428
+ navigation: {
4429
+ breadcrumbs: {
4430
+ label: "Breadcrumb",
4431
+ expand: "Show hidden levels"
4432
+ }
4433
+ },
4381
4434
  mobile: {
4382
4435
  shell: {
4383
4436
  back: "Back",
@@ -4944,112 +4997,112 @@ const xe = {
4944
4997
  hide: "Hide password"
4945
4998
  }
4946
4999
  };
4947
- var G, W;
4948
- function je() {
4949
- if (W) return G;
4950
- W = 1, G = o, o.flatten = o, o.unflatten = i;
4951
- function e(a) {
4952
- return a && a.constructor && typeof a.constructor.isBuffer == "function" && a.constructor.isBuffer(a);
5000
+ var G, K;
5001
+ function Xe() {
5002
+ if (K) return G;
5003
+ K = 1, G = o, o.flatten = o, o.unflatten = i;
5004
+ function e(r) {
5005
+ return r && r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
4953
5006
  }
4954
- function t(a) {
4955
- return a;
5007
+ function t(r) {
5008
+ return r;
4956
5009
  }
4957
- function o(a, n) {
5010
+ function o(r, n) {
4958
5011
  n = n || {};
4959
- const y = n.delimiter || ".", A = n.maxDepth, E = n.transformKey || t, l = {};
4960
- function S(b, C, u) {
4961
- u = u || 1, Object.keys(b).forEach(function(d) {
4962
- const s = b[d], m = n.safe && Array.isArray(s), v = Object.prototype.toString.call(s), g = e(s), I = v === "[object Object]" || v === "[object Array]", N = C ? C + y + E(d) : E(d);
4963
- if (!m && !g && I && Object.keys(s).length && (!n.maxDepth || u < A))
4964
- return S(s, N, u + 1);
4965
- l[N] = s;
5012
+ const h = n.delimiter || ".", y = n.maxDepth, v = n.transformKey || t, f = {};
5013
+ function A(E, N, u) {
5014
+ u = u || 1, Object.keys(E).forEach(function(l) {
5015
+ const s = E[l], p = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), S = e(s), T = b === "[object Object]" || b === "[object Array]", I = N ? N + h + v(l) : v(l);
5016
+ if (!p && !S && T && Object.keys(s).length && (!n.maxDepth || u < y))
5017
+ return A(s, I, u + 1);
5018
+ f[I] = s;
4966
5019
  });
4967
5020
  }
4968
- return S(a), l;
5021
+ return A(r), f;
4969
5022
  }
4970
- function i(a, n) {
5023
+ function i(r, n) {
4971
5024
  n = n || {};
4972
- const y = n.delimiter || ".", A = n.overwrite || !1, E = n.transformKey || t, l = {};
4973
- if (e(a) || Object.prototype.toString.call(a) !== "[object Object]")
4974
- return a;
4975
- function b(d) {
4976
- const s = Number(d);
4977
- return isNaN(s) || d.indexOf(".") !== -1 || n.object ? d : s;
5025
+ const h = n.delimiter || ".", y = n.overwrite || !1, v = n.transformKey || t, f = {};
5026
+ if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
5027
+ return r;
5028
+ function E(l) {
5029
+ const s = Number(l);
5030
+ return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
4978
5031
  }
4979
- function C(d, s, m) {
4980
- return Object.keys(m).reduce(function(v, g) {
4981
- return v[d + y + g] = m[g], v;
5032
+ function N(l, s, p) {
5033
+ return Object.keys(p).reduce(function(b, S) {
5034
+ return b[l + h + S] = p[S], b;
4982
5035
  }, s);
4983
5036
  }
4984
- function u(d) {
4985
- const s = Object.prototype.toString.call(d), m = s === "[object Array]", v = s === "[object Object]";
4986
- if (d) {
4987
- if (m)
4988
- return !d.length;
4989
- if (v)
4990
- return !Object.keys(d).length;
5037
+ function u(l) {
5038
+ const s = Object.prototype.toString.call(l), p = s === "[object Array]", b = s === "[object Object]";
5039
+ if (l) {
5040
+ if (p)
5041
+ return !l.length;
5042
+ if (b)
5043
+ return !Object.keys(l).length;
4991
5044
  } else return !0;
4992
5045
  }
4993
- return a = Object.keys(a).reduce(function(d, s) {
4994
- const m = Object.prototype.toString.call(a[s]);
4995
- return !(m === "[object Object]" || m === "[object Array]") || u(a[s]) ? (d[s] = a[s], d) : C(
5046
+ return r = Object.keys(r).reduce(function(l, s) {
5047
+ const p = Object.prototype.toString.call(r[s]);
5048
+ return !(p === "[object Object]" || p === "[object Array]") || u(r[s]) ? (l[s] = r[s], l) : N(
4996
5049
  s,
4997
- d,
4998
- o(a[s], n)
5050
+ l,
5051
+ o(r[s], n)
4999
5052
  );
5000
- }, {}), Object.keys(a).forEach(function(d) {
5001
- const s = d.split(y).map(E);
5002
- let m = b(s.shift()), v = b(s[0]), g = l;
5003
- for (; v !== void 0; ) {
5004
- if (m === "__proto__")
5053
+ }, {}), Object.keys(r).forEach(function(l) {
5054
+ const s = l.split(h).map(v);
5055
+ let p = E(s.shift()), b = E(s[0]), S = f;
5056
+ for (; b !== void 0; ) {
5057
+ if (p === "__proto__")
5005
5058
  return;
5006
- const I = Object.prototype.toString.call(g[m]), N = I === "[object Object]" || I === "[object Array]";
5007
- if (!A && !N && typeof g[m] < "u")
5059
+ const T = Object.prototype.toString.call(S[p]), I = T === "[object Object]" || T === "[object Array]";
5060
+ if (!y && !I && typeof S[p] < "u")
5008
5061
  return;
5009
- (A && !N || !A && g[m] == null) && (g[m] = typeof v == "number" && !n.object ? [] : {}), g = g[m], s.length > 0 && (m = b(s.shift()), v = b(s[0]));
5062
+ (y && !I || !y && S[p] == null) && (S[p] = typeof b == "number" && !n.object ? [] : {}), S = S[p], s.length > 0 && (p = E(s.shift()), b = E(s[0]));
5010
5063
  }
5011
- g[m] = i(a[d], n);
5012
- }), l;
5064
+ S[p] = i(r[l], n);
5065
+ }), f;
5013
5066
  }
5014
5067
  return G;
5015
5068
  }
5016
- var te = je();
5017
- const oe = {
5018
- fr: { ...Ye, common: ue },
5019
- en: { ...Ve, common: de }
5020
- }, qe = $(
5021
- () => te.flatten(oe.fr)
5022
- ), We = $(
5023
- () => te.flatten(oe.en)
5024
- ), Tt = {
5069
+ var oe = Xe();
5070
+ const ie = {
5071
+ fr: { ...qe, common: pe },
5072
+ en: { ...Ke, common: ue }
5073
+ }, Je = Q(
5074
+ () => oe.flatten(ie.fr)
5075
+ ), $e = Q(
5076
+ () => oe.flatten(ie.en)
5077
+ ), It = {
5025
5078
  get fr() {
5026
- return qe();
5079
+ return Je();
5027
5080
  },
5028
5081
  get en() {
5029
- return We();
5082
+ return $e();
5030
5083
  }
5031
- }, Ke = {
5032
- break: /* @__PURE__ */ p("br", {}),
5033
- bold: (...e) => /* @__PURE__ */ p("strong", { children: e }),
5034
- italic: (...e) => /* @__PURE__ */ p("i", { children: e }),
5035
- primary: (...e) => /* @__PURE__ */ p("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5036
- focus: (...e) => /* @__PURE__ */ p("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5037
- }, Nt = () => {
5038
- const e = x(), t = K(
5084
+ }, Qe = {
5085
+ break: /* @__PURE__ */ d("br", {}),
5086
+ bold: (...e) => /* @__PURE__ */ d("strong", { children: e }),
5087
+ italic: (...e) => /* @__PURE__ */ d("i", { children: e }),
5088
+ primary: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5089
+ focus: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5090
+ }, Ot = () => {
5091
+ const e = x(), t = X(
5039
5092
  (o, i) => e.formatMessage(o, {
5040
- ...Ke,
5093
+ ...Qe,
5041
5094
  ...i
5042
5095
  }),
5043
5096
  [e]
5044
5097
  );
5045
- return ie(() => {
5098
+ return re(() => {
5046
5099
  const { formatMessage: o, ...i } = e;
5047
5100
  return { ...i, formatRichMessage: t };
5048
5101
  }, [e, t]);
5049
- }, Xe = /* @__PURE__ */ new Set(["a", "button"]), Je = f("div", {
5102
+ }, Ze = /* @__PURE__ */ new Set(["a", "button"]), et = g("div", {
5050
5103
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
5051
5104
  })(({ theme: e, ownerState: t }) => {
5052
- const { tokens: o, radii: i, space: a } = e.design;
5105
+ const { tokens: o, radii: i, space: r } = e.design;
5053
5106
  return {
5054
5107
  display: "flex",
5055
5108
  flexDirection: "column",
@@ -5057,91 +5110,91 @@ const oe = {
5057
5110
  boxSizing: "border-box",
5058
5111
  backgroundColor: o["bg.surface"],
5059
5112
  border: L(o["border.subtle"]),
5060
- borderRadius: r(i.md),
5061
- padding: r(a[t.padding]),
5113
+ borderRadius: a(i.md),
5114
+ padding: a(r[t.padding]),
5062
5115
  color: o["text.primary"],
5063
5116
  ...t.interactive && {
5064
5117
  cursor: "pointer",
5065
5118
  font: "inherit",
5066
5119
  textAlign: "inherit",
5067
5120
  textDecoration: "none",
5068
- transition: ye(e, ["border-color"]),
5121
+ transition: ve(e, ["border-color"]),
5069
5122
  "&:hover": { borderColor: o["border.strong"] },
5070
- "&:focus-visible": fe(e)
5123
+ "&:focus-visible": Ae(e)
5071
5124
  }
5072
5125
  };
5073
- }), Ct = re(function({
5126
+ }), _t = ae(function({
5074
5127
  interactive: t = !1,
5075
5128
  padding: o = 4,
5076
5129
  component: i = "div",
5077
- children: a,
5130
+ children: r,
5078
5131
  onKeyDown: n,
5079
- role: y,
5080
- tabIndex: A,
5081
- ...E
5082
- }, l) {
5083
- const S = t && typeof i == "string" && !Xe.has(i), b = K(
5132
+ role: h,
5133
+ tabIndex: y,
5134
+ ...v
5135
+ }, f) {
5136
+ const A = t && typeof i == "string" && !Ze.has(i), E = X(
5084
5137
  (u) => {
5085
- typeof l == "function" ? l(u) : l !== null && (l.current = u);
5138
+ typeof f == "function" ? f(u) : f !== null && (f.current = u);
5086
5139
  },
5087
- [l]
5140
+ [f]
5088
5141
  );
5089
- return /* @__PURE__ */ p(
5090
- Je,
5142
+ return /* @__PURE__ */ d(
5143
+ et,
5091
5144
  {
5092
- ref: b,
5145
+ ref: E,
5093
5146
  as: i,
5094
5147
  ownerState: { interactive: t, padding: o },
5095
- role: y ?? (S ? "button" : void 0),
5096
- tabIndex: A ?? (S ? 0 : void 0),
5148
+ role: h ?? (A ? "button" : void 0),
5149
+ tabIndex: y ?? (A ? 0 : void 0),
5097
5150
  onKeyDown: (u) => {
5098
- n == null || n(u), S && !u.defaultPrevented && u.target === u.currentTarget && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
5151
+ n == null || n(u), A && !u.defaultPrevented && u.target === u.currentTarget && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
5099
5152
  },
5100
- ...E,
5101
- children: a
5153
+ ...v,
5154
+ children: r
5102
5155
  }
5103
5156
  );
5104
5157
  });
5105
5158
  export {
5106
- He as A,
5107
- Oe as B,
5108
- ze as C,
5109
- T as D,
5110
- oe as E,
5111
- Ve as F,
5112
- Ye as G,
5113
- ct as H,
5114
- ft as I,
5159
+ We as A,
5160
+ we as B,
5161
+ je as C,
5162
+ C as D,
5163
+ ie as E,
5164
+ Ke as F,
5165
+ qe as G,
5166
+ mt as H,
5167
+ Et as I,
5115
5168
  U as J,
5116
- St as K,
5117
- bt as M,
5118
- Ke as R,
5119
- Ct as S,
5120
- pe as T,
5121
- Q as a,
5122
- _e as b,
5123
- Ae as c,
5169
+ Rt as K,
5170
+ Ct as M,
5171
+ Qe as R,
5172
+ _t as S,
5173
+ me as T,
5174
+ Z as a,
5175
+ Pe as b,
5176
+ ye as c,
5124
5177
  D as d,
5125
- ye as e,
5126
- Tt as f,
5127
- fe as g,
5178
+ ve as e,
5179
+ It as f,
5180
+ Ae as g,
5128
5181
  L as h,
5129
5182
  Ee as i,
5130
5183
  _ as j,
5131
- ve as k,
5132
- pt as l,
5133
- ut as m,
5134
- dt as n,
5135
- he as o,
5136
- r as p,
5137
- Et as q,
5138
- mt as r,
5139
- At as s,
5140
- vt as t,
5141
- Nt as u,
5142
- yt as v,
5184
+ be as k,
5185
+ ft as l,
5186
+ St as m,
5187
+ ht as n,
5188
+ gt as o,
5189
+ a as p,
5190
+ fe as q,
5191
+ At as r,
5192
+ bt as s,
5193
+ Nt as t,
5194
+ Ot as u,
5195
+ Tt as v,
5143
5196
  P as w,
5144
- V as x,
5145
- gt as y,
5146
- ht as z
5197
+ j as x,
5198
+ yt as y,
5199
+ vt as z
5147
5200
  };