@abyss-project/commons-front-core 16.1.0 → 16.2.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +8 -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-DM0P2po1.js → CookieConsentSettings-CTAyLGkm.js} +1 -1
  14. package/dist/{Surface-DW78GtlG.js → Surface-76bwVL_Z.js} +370 -323
  15. package/dist/{Tabs-DGh_2Lgc.js → Tabs-D2bdAWGo.js} +384 -376
  16. package/dist/components/data/FacetPanel/FacetPanel.d.ts +5 -0
  17. package/dist/components/editors/MarkdownEditor/MarkdownEditor.d.ts +6 -0
  18. package/dist/components/index.d.ts +1 -0
  19. package/dist/components/inputs/ComboboxField/ComboboxField.d.ts +190 -0
  20. package/dist/components/inputs/ComboboxField/ComboboxField.spec.d.ts +1 -0
  21. package/dist/components/inputs/SegmentedControl/SegmentedControl.d.ts +8 -0
  22. package/dist/components/inputs/index.d.ts +1 -0
  23. package/dist/components/layers/Menu/Menu.d.ts +11 -1
  24. package/dist/components/layers/Modal/Modal.d.ts +3 -1
  25. package/dist/components/meaning/StatusBadge/StatusBadge.d.ts +25 -3
  26. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +3 -1
  27. package/dist/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +43 -0
  28. package/dist/components/navigation/Breadcrumbs/Breadcrumbs.spec.d.ts +1 -0
  29. package/dist/components/navigation/index.d.ts +1 -0
  30. package/dist/components/structure/Accordion/Accordion.d.ts +65 -0
  31. package/dist/components/structure/Accordion/Accordion.spec.d.ts +1 -0
  32. package/dist/components/structure/PageHeader/PageHeader.d.ts +3 -5
  33. package/dist/components/structure/index.d.ts +1 -0
  34. package/dist/components/structure/test-support/structure-test-harness.d.ts +6 -1
  35. package/dist/cookie-consent.js +2 -2
  36. package/dist/{design-theme-BNfby4u0.js → design-theme-B1PgRGnU.js} +2 -2
  37. package/dist/{editors-CoA-ElkI.js → editors-NTlXfUf3.js} +6328 -6308
  38. package/dist/editors.js +1 -1
  39. package/dist/hooks/index.d.ts +1 -0
  40. package/dist/hooks/use-optimistic-mutation.hook.d.ts +41 -0
  41. package/dist/hooks/use-optimistic-mutation.hook.spec.d.ts +1 -0
  42. package/dist/hooks/use-rich-intl.hook.d.ts +26 -0
  43. package/dist/{index-CpJ_UF5V.js → index-7ovesCC_.js} +2 -2
  44. package/dist/{index-MEKGvAmO.js → index-BEm81V4i.js} +3 -3
  45. package/dist/{index-Dl1yghiT.js → index-BH6GeV66.js} +2 -2
  46. package/dist/{index-BX4GOdlN.js → index-BHFYCrDl.js} +4 -4
  47. package/dist/{index-Dgongfv-.js → index-BIQNTPCh.js} +2 -2
  48. package/dist/{index-DF-LePxe.js → index-BKbESj9f.js} +2 -2
  49. package/dist/{index-BIX2oQnD.js → index-Bt3EOSkY.js} +4 -4
  50. package/dist/{index-BPIERrcr.js → index-C-pVBVRm.js} +3 -3
  51. package/dist/{index-9AhVX_o8.js → index-CHsTUwr0.js} +1 -1
  52. package/dist/{index-jHXiCbzE.js → index-D-75Bwy8.js} +2 -2
  53. package/dist/{index-SJdLMrNS.js → index-DDsn4UyZ.js} +2 -2
  54. package/dist/{index-ebpXyaXh.js → index-DGKfXQr5.js} +2 -2
  55. package/dist/{index-B4W3BpjI.js → index-DTfxCpd4.js} +4 -4
  56. package/dist/{index-DSRCuEE1.js → index-DXSxiqo1.js} +2 -2
  57. package/dist/{index-DakS19sw.js → index-DeB1ImKD.js} +2 -2
  58. package/dist/{index-C2MJfXbp.js → index-DloK9ass.js} +2 -2
  59. package/dist/{index-BXY3SD83.js → index-DmtNuZcU.js} +2 -2
  60. package/dist/{index-CMyVfh9D.js → index-Dr3sF4q3.js} +2 -2
  61. package/dist/{index-DJ4F-yGQ.js → index-MiIytQo8.js} +3 -3
  62. package/dist/{index-BNnh8uiO.js → index-VntY82At.js} +2 -2
  63. package/dist/{index--WDnqvkI.js → index-rHl9uQvG.js} +3 -3
  64. package/dist/index.js +7435 -6704
  65. package/dist/legacy.js +1014 -921
  66. package/dist/translations/en.d.ts +13 -0
  67. package/dist/translations/fr.d.ts +13 -0
  68. package/package.json +4 -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",
@@ -2190,6 +2218,12 @@ const xe = {
2190
2218
  close: "Fermer le panneau"
2191
2219
  }
2192
2220
  },
2221
+ navigation: {
2222
+ breadcrumbs: {
2223
+ label: "Fil d’Ariane",
2224
+ expand: "Afficher les niveaux masqués"
2225
+ }
2226
+ },
2193
2227
  mobile: {
2194
2228
  shell: {
2195
2229
  back: "Retour",
@@ -2755,7 +2789,7 @@ const xe = {
2755
2789
  show: "Afficher le mot de passe",
2756
2790
  hide: "Masquer le mot de passe"
2757
2791
  }
2758
- }, He = {
2792
+ }, We = {
2759
2793
  banner: {
2760
2794
  title: "Demo account",
2761
2795
  summary: "{label} · expires on {date}",
@@ -2770,8 +2804,8 @@ const xe = {
2770
2804
  }
2771
2805
  },
2772
2806
  blocked: "Unavailable in demo"
2773
- }, Ve = {
2774
- demo: He,
2807
+ }, Ke = {
2808
+ demo: We,
2775
2809
  "space-display-name": {
2776
2810
  personal: "My Cloud",
2777
2811
  "perso-in-org": "My Cloud (in org)",
@@ -2861,7 +2895,7 @@ const xe = {
2861
2895
  },
2862
2896
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
2863
2897
  // source (the invoices, their PDF and the overage e-mail read it too).
2864
- metric: ee.en
2898
+ metric: te.en
2865
2899
  },
2866
2900
  "error-page": {
2867
2901
  title: "Something went wrong",
@@ -3512,40 +3546,40 @@ const xe = {
3512
3546
  // Plan names come from @abyss-project/main's `plan-name` table, their single source.
3513
3547
  plan: {
3514
3548
  freemium: {
3515
- name: h.en.freemium,
3549
+ name: m.en.freemium,
3516
3550
  description: "Get started with no commitment"
3517
3551
  },
3518
3552
  starter: {
3519
- name: h.en.starter,
3553
+ name: m.en.starter,
3520
3554
  description: "For individuals and small teams"
3521
3555
  },
3522
3556
  pro: {
3523
- name: h.en.pro,
3557
+ name: m.en.pro,
3524
3558
  description: "For professional teams"
3525
3559
  },
3526
3560
  enterprise: {
3527
- name: h.en.enterprise,
3561
+ name: m.en.enterprise,
3528
3562
  description: "For large organizations"
3529
3563
  },
3530
3564
  internal: {
3531
- name: h.en.internal,
3565
+ name: m.en.internal,
3532
3566
  description: "Abyss internal use"
3533
3567
  },
3534
3568
  "family-free": {
3535
- name: h.en["family-free"],
3569
+ name: m.en["family-free"],
3536
3570
  description: "Up to 6 members, shared spaces"
3537
3571
  },
3538
3572
  "family-paid": {
3539
- name: h.en["family-paid"],
3573
+ name: m.en["family-paid"],
3540
3574
  description: "Up to 12 members + a bonus on your personal quotas"
3541
3575
  },
3542
3576
  demo: {
3543
- name: h.en.demo,
3577
+ name: m.en.demo,
3544
3578
  description: "Demo account: every service included"
3545
3579
  },
3546
3580
  // Names only: a bespoke plan and a paid plan outside the catalog have no catalog pitch.
3547
- custom: { name: h.en.custom },
3548
- paid: { name: h.en.paid }
3581
+ custom: { name: m.en.custom },
3582
+ paid: { name: m.en.paid }
3549
3583
  },
3550
3584
  "plan-feature": {
3551
3585
  PROJECTS_COUNT: "{unlimited, select, true {Unlimited projects} other {{limit} projects}}",
@@ -4295,6 +4329,13 @@ const xe = {
4295
4329
  "entity-image-field": {
4296
4330
  uploading: "Uploading the image…"
4297
4331
  },
4332
+ combobox: {
4333
+ loading: "Searching…",
4334
+ empty: "No result",
4335
+ clear: "Clear",
4336
+ open: "Open the list",
4337
+ close: "Close the list"
4338
+ },
4298
4339
  "user-picker": {
4299
4340
  loading: "Searching…",
4300
4341
  clear: "Clear",
@@ -4384,6 +4425,12 @@ const xe = {
4384
4425
  close: "Close panel"
4385
4426
  }
4386
4427
  },
4428
+ navigation: {
4429
+ breadcrumbs: {
4430
+ label: "Breadcrumb",
4431
+ expand: "Show hidden levels"
4432
+ }
4433
+ },
4387
4434
  mobile: {
4388
4435
  shell: {
4389
4436
  back: "Back",
@@ -4950,112 +4997,112 @@ const xe = {
4950
4997
  hide: "Hide password"
4951
4998
  }
4952
4999
  };
4953
- var G, W;
4954
- function je() {
4955
- if (W) return G;
4956
- W = 1, G = o, o.flatten = o, o.unflatten = i;
4957
- function e(a) {
4958
- 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);
4959
5006
  }
4960
- function t(a) {
4961
- return a;
5007
+ function t(r) {
5008
+ return r;
4962
5009
  }
4963
- function o(a, n) {
5010
+ function o(r, n) {
4964
5011
  n = n || {};
4965
- const y = n.delimiter || ".", A = n.maxDepth, E = n.transformKey || t, l = {};
4966
- function S(b, C, u) {
4967
- u = u || 1, Object.keys(b).forEach(function(d) {
4968
- 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);
4969
- if (!m && !g && I && Object.keys(s).length && (!n.maxDepth || u < A))
4970
- return S(s, N, u + 1);
4971
- 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;
4972
5019
  });
4973
5020
  }
4974
- return S(a), l;
5021
+ return A(r), f;
4975
5022
  }
4976
- function i(a, n) {
5023
+ function i(r, n) {
4977
5024
  n = n || {};
4978
- const y = n.delimiter || ".", A = n.overwrite || !1, E = n.transformKey || t, l = {};
4979
- if (e(a) || Object.prototype.toString.call(a) !== "[object Object]")
4980
- return a;
4981
- function b(d) {
4982
- const s = Number(d);
4983
- 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;
4984
5031
  }
4985
- function C(d, s, m) {
4986
- return Object.keys(m).reduce(function(v, g) {
4987
- 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;
4988
5035
  }, s);
4989
5036
  }
4990
- function u(d) {
4991
- const s = Object.prototype.toString.call(d), m = s === "[object Array]", v = s === "[object Object]";
4992
- if (d) {
4993
- if (m)
4994
- return !d.length;
4995
- if (v)
4996
- 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;
4997
5044
  } else return !0;
4998
5045
  }
4999
- return a = Object.keys(a).reduce(function(d, s) {
5000
- const m = Object.prototype.toString.call(a[s]);
5001
- 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(
5002
5049
  s,
5003
- d,
5004
- o(a[s], n)
5050
+ l,
5051
+ o(r[s], n)
5005
5052
  );
5006
- }, {}), Object.keys(a).forEach(function(d) {
5007
- const s = d.split(y).map(E);
5008
- let m = b(s.shift()), v = b(s[0]), g = l;
5009
- for (; v !== void 0; ) {
5010
- 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__")
5011
5058
  return;
5012
- const I = Object.prototype.toString.call(g[m]), N = I === "[object Object]" || I === "[object Array]";
5013
- 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")
5014
5061
  return;
5015
- (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]));
5016
5063
  }
5017
- g[m] = i(a[d], n);
5018
- }), l;
5064
+ S[p] = i(r[l], n);
5065
+ }), f;
5019
5066
  }
5020
5067
  return G;
5021
5068
  }
5022
- var te = je();
5023
- const oe = {
5024
- fr: { ...Ye, common: ue },
5025
- en: { ...Ve, common: de }
5026
- }, qe = $(
5027
- () => te.flatten(oe.fr)
5028
- ), We = $(
5029
- () => te.flatten(oe.en)
5030
- ), 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 = {
5031
5078
  get fr() {
5032
- return qe();
5079
+ return Je();
5033
5080
  },
5034
5081
  get en() {
5035
- return We();
5082
+ return $e();
5036
5083
  }
5037
- }, Ke = {
5038
- break: /* @__PURE__ */ p("br", {}),
5039
- bold: (...e) => /* @__PURE__ */ p("strong", { children: e }),
5040
- italic: (...e) => /* @__PURE__ */ p("i", { children: e }),
5041
- primary: (...e) => /* @__PURE__ */ p("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5042
- focus: (...e) => /* @__PURE__ */ p("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5043
- }, Nt = () => {
5044
- 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(
5045
5092
  (o, i) => e.formatMessage(o, {
5046
- ...Ke,
5093
+ ...Qe,
5047
5094
  ...i
5048
5095
  }),
5049
5096
  [e]
5050
5097
  );
5051
- return ie(() => {
5098
+ return re(() => {
5052
5099
  const { formatMessage: o, ...i } = e;
5053
5100
  return { ...i, formatRichMessage: t };
5054
5101
  }, [e, t]);
5055
- }, Xe = /* @__PURE__ */ new Set(["a", "button"]), Je = f("div", {
5102
+ }, Ze = /* @__PURE__ */ new Set(["a", "button"]), et = g("div", {
5056
5103
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
5057
5104
  })(({ theme: e, ownerState: t }) => {
5058
- const { tokens: o, radii: i, space: a } = e.design;
5105
+ const { tokens: o, radii: i, space: r } = e.design;
5059
5106
  return {
5060
5107
  display: "flex",
5061
5108
  flexDirection: "column",
@@ -5063,91 +5110,91 @@ const oe = {
5063
5110
  boxSizing: "border-box",
5064
5111
  backgroundColor: o["bg.surface"],
5065
5112
  border: L(o["border.subtle"]),
5066
- borderRadius: r(i.md),
5067
- padding: r(a[t.padding]),
5113
+ borderRadius: a(i.md),
5114
+ padding: a(r[t.padding]),
5068
5115
  color: o["text.primary"],
5069
5116
  ...t.interactive && {
5070
5117
  cursor: "pointer",
5071
5118
  font: "inherit",
5072
5119
  textAlign: "inherit",
5073
5120
  textDecoration: "none",
5074
- transition: ye(e, ["border-color"]),
5121
+ transition: ve(e, ["border-color"]),
5075
5122
  "&:hover": { borderColor: o["border.strong"] },
5076
- "&:focus-visible": fe(e)
5123
+ "&:focus-visible": Ae(e)
5077
5124
  }
5078
5125
  };
5079
- }), Ct = re(function({
5126
+ }), _t = ae(function({
5080
5127
  interactive: t = !1,
5081
5128
  padding: o = 4,
5082
5129
  component: i = "div",
5083
- children: a,
5130
+ children: r,
5084
5131
  onKeyDown: n,
5085
- role: y,
5086
- tabIndex: A,
5087
- ...E
5088
- }, l) {
5089
- 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(
5090
5137
  (u) => {
5091
- typeof l == "function" ? l(u) : l !== null && (l.current = u);
5138
+ typeof f == "function" ? f(u) : f !== null && (f.current = u);
5092
5139
  },
5093
- [l]
5140
+ [f]
5094
5141
  );
5095
- return /* @__PURE__ */ p(
5096
- Je,
5142
+ return /* @__PURE__ */ d(
5143
+ et,
5097
5144
  {
5098
- ref: b,
5145
+ ref: E,
5099
5146
  as: i,
5100
5147
  ownerState: { interactive: t, padding: o },
5101
- role: y ?? (S ? "button" : void 0),
5102
- tabIndex: A ?? (S ? 0 : void 0),
5148
+ role: h ?? (A ? "button" : void 0),
5149
+ tabIndex: y ?? (A ? 0 : void 0),
5103
5150
  onKeyDown: (u) => {
5104
- 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());
5105
5152
  },
5106
- ...E,
5107
- children: a
5153
+ ...v,
5154
+ children: r
5108
5155
  }
5109
5156
  );
5110
5157
  });
5111
5158
  export {
5112
- He as A,
5113
- Oe as B,
5114
- ze as C,
5115
- T as D,
5116
- oe as E,
5117
- Ve as F,
5118
- Ye as G,
5119
- ct as H,
5120
- 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,
5121
5168
  U as J,
5122
- St as K,
5123
- bt as M,
5124
- Ke as R,
5125
- Ct as S,
5126
- pe as T,
5127
- Q as a,
5128
- _e as b,
5129
- 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,
5130
5177
  D as d,
5131
- ye as e,
5132
- Tt as f,
5133
- fe as g,
5178
+ ve as e,
5179
+ It as f,
5180
+ Ae as g,
5134
5181
  L as h,
5135
5182
  Ee as i,
5136
5183
  _ as j,
5137
- ve as k,
5138
- pt as l,
5139
- ut as m,
5140
- dt as n,
5141
- he as o,
5142
- r as p,
5143
- Et as q,
5144
- mt as r,
5145
- At as s,
5146
- vt as t,
5147
- Nt as u,
5148
- 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,
5149
5196
  P as w,
5150
- V as x,
5151
- gt as y,
5152
- ht as z
5197
+ j as x,
5198
+ yt as y,
5199
+ vt as z
5153
5200
  };