@abyss-project/commons-front-core 21.7.0 → 21.8.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 (47) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/catalog/captures-plan.ts +1 -0
  3. package/catalog/catalog-entries.ts +4 -0
  4. package/catalog/pages/DateTimeField.tsx +55 -0
  5. package/catalog/pages/ModalFullScreen.tsx +78 -0
  6. package/catalog/pages/index.ts +4 -0
  7. package/dist/{CookieConsentSettings-BrCSm1XE.js → CookieConsentSettings-DmdpkY4W.js} +1 -1
  8. package/dist/{Surface-D72TnJbC.js → Surface-Bz9IlYzh.js} +552 -450
  9. package/dist/{Tabs-DVLY2xcX.js → Tabs-BCsiGmjM.js} +1 -1
  10. package/dist/components/inputs/DateTimeField/DateTimeField.d.ts +22 -0
  11. package/dist/components/inputs/DateTimeField/DateTimeField.spec.d.ts +1 -0
  12. package/dist/components/inputs/date-localization.d.ts +2 -1
  13. package/dist/components/inputs/index.d.ts +1 -0
  14. package/dist/components/layers/Modal/Modal.d.ts +20 -5
  15. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +11 -2
  16. package/dist/components/structure/AppShell/ShellNavigation.spec.d.ts +1 -0
  17. package/dist/components/structure/AppShell/use-reveal-active-entry.d.ts +10 -0
  18. package/dist/cookie-consent.js +2 -2
  19. package/dist/{editors-e2Ub2tja.js → editors-ROEvrYr4.js} +27 -27
  20. package/dist/editors.js +1 -1
  21. package/dist/hooks/use-rich-intl.hook.d.ts +10 -0
  22. package/dist/{index-BQQDVuBk.js → index-5A2mIQ9G.js} +4 -4
  23. package/dist/{index-Delldxwj.js → index-BNlYqNm9.js} +3 -3
  24. package/dist/{index-u1nOu-io.js → index-BRaIFAIi.js} +4 -4
  25. package/dist/{index-BBPqIUfY.js → index-BVTeKL8H.js} +3 -3
  26. package/dist/{index-dl-FmtUS.js → index-BlYhAWr_.js} +1 -1
  27. package/dist/{index-D9dkSnz4.js → index-Btj0N4JN.js} +2 -2
  28. package/dist/{index-CCRG32M5.js → index-BuPLdG_9.js} +2 -2
  29. package/dist/{index-DmcHGNWF.js → index-BzT36p42.js} +4 -4
  30. package/dist/{index-Dl-asA62.js → index-CXgXyfY3.js} +2 -2
  31. package/dist/{index-DVZlrW-W.js → index-C_j0gA3H.js} +2 -2
  32. package/dist/{index-C3_b7Tvv.js → index-CeZseajO.js} +2 -2
  33. package/dist/{index-Rxl7Ly4v.js → index-Clxj6idW.js} +2 -2
  34. package/dist/{index-C7azTLVR.js → index-CpA0L8Ml.js} +2 -2
  35. package/dist/{index-DjMG8gzD.js → index-Cq_z0w7j.js} +3 -3
  36. package/dist/{index-fnqZ2bHM.js → index-D9WfqtNo.js} +2 -2
  37. package/dist/{index-DErr8t0U.js → index-DccwknnA.js} +2 -2
  38. package/dist/{index-CXpH_nma.js → index-DoQsEkVC.js} +3 -3
  39. package/dist/{index-BFJmgYfI.js → index-DxotIOMC.js} +2 -2
  40. package/dist/{index-BpaOna7B.js → index-L5J7_NGN.js} +2 -2
  41. package/dist/{index-B31D2APk.js → index-M8pctP26.js} +2 -2
  42. package/dist/{index-Co9YsCOx.js → index-z_gfRs5k.js} +2 -2
  43. package/dist/index.js +8962 -8888
  44. package/dist/translations/en.d.ts +5 -0
  45. package/dist/translations/fr.d.ts +5 -0
  46. package/package.json +1 -1
  47. package/test-results/catalog/.last-run.json +4 -0
@@ -1,49 +1,49 @@
1
- import { jsx as d, jsxs as C } from "react/jsx-runtime";
2
- import { createContext as ue, useContext as pe, useId as B, useRef as j, useState as q, useCallback as Q, useMemo as me, forwardRef as he } from "react";
3
- import { useIntl as G } from "react-intl";
4
- import ge from "@mui/material/Dialog";
5
- import Z from "@mui/material/IconButton";
6
- import { alpha as fe, styled as p, useTheme as ve } from "@mui/material/styles";
7
- import ee from "@mui/icons-material/Close";
8
- import V from "@mui/material/useMediaQuery";
9
- import ye from "@mui/material/Modal";
10
- import Ae from "@mui/material/Slide";
11
- import { enTranslation as be, frTranslation as Ee } from "@abyss-project/main";
12
- import { l as te } from "./lazy-value-Co76vxsM.js";
13
- var Te = /* @__PURE__ */ ((e) => (e.Dark = "dark", e.Light = "light", e))(Te || {});
14
- const Se = 266, c = (e, t) => ({ l: e, c: t, h: Se }), Ct = {
1
+ import { jsx as c, jsxs as C } from "react/jsx-runtime";
2
+ import { createContext as ge, useContext as fe, useId as G, useRef as H, useState as W, useCallback as te, useMemo as ve, forwardRef as ye } from "react";
3
+ import { useIntl as Y } from "react-intl";
4
+ import Ae from "@mui/material/Dialog";
5
+ import j from "@mui/material/IconButton";
6
+ import { alpha as be, styled as u, useTheme as Ee } from "@mui/material/styles";
7
+ import z from "@mui/icons-material/Close";
8
+ import K from "@mui/material/useMediaQuery";
9
+ import Te from "@mui/material/Modal";
10
+ import Se from "@mui/material/Slide";
11
+ import { enTranslation as Re, frTranslation as Ne } from "@abyss-project/main";
12
+ import { l as oe } from "./lazy-value-Co76vxsM.js";
13
+ var Ce = /* @__PURE__ */ ((e) => (e.Dark = "dark", e.Light = "light", e))(Ce || {});
14
+ const Oe = 266, d = (e, o) => ({ l: e, c: o, h: Oe }), Lt = {
15
15
  dark: {
16
- 1: c(0.155, 0.034),
17
- 2: c(0.17, 0.036),
18
- 3: c(0.2, 0.04),
19
- 4: c(0.24, 0.042),
20
- 5: c(0.265, 0.042),
21
- 6: c(0.295, 0.042),
22
- 7: c(0.37, 0.045),
23
- 8: c(0.54, 0.045),
24
- 9: c(0.63, 0.035),
25
- 10: c(0.72, 0.03),
26
- 11: c(0.79, 0.03),
27
- 12: c(0.96, 0.01)
16
+ 1: d(0.155, 0.034),
17
+ 2: d(0.17, 0.036),
18
+ 3: d(0.2, 0.04),
19
+ 4: d(0.24, 0.042),
20
+ 5: d(0.265, 0.042),
21
+ 6: d(0.295, 0.042),
22
+ 7: d(0.37, 0.045),
23
+ 8: d(0.54, 0.045),
24
+ 9: d(0.63, 0.035),
25
+ 10: d(0.72, 0.03),
26
+ 11: d(0.79, 0.03),
27
+ 12: d(0.96, 0.01)
28
28
  },
29
29
  light: {
30
- 1: c(0.995, 3e-3),
31
- 2: c(0.975, 8e-3),
32
- 3: c(0.96, 0.012),
33
- 4: c(0.935, 0.016),
34
- 5: c(0.91, 0.018),
35
- 6: c(0.885, 0.02),
36
- 7: c(0.8, 0.03),
37
- 8: c(0.6, 0.035),
38
- 9: c(0.5, 0.04),
39
- 10: c(0.46, 0.042),
40
- 11: c(0.42, 0.045),
41
- 12: c(0.22, 0.045)
30
+ 1: d(0.995, 3e-3),
31
+ 2: d(0.975, 8e-3),
32
+ 3: d(0.96, 0.012),
33
+ 4: d(0.935, 0.016),
34
+ 5: d(0.91, 0.018),
35
+ 6: d(0.885, 0.02),
36
+ 7: d(0.8, 0.03),
37
+ 8: d(0.6, 0.035),
38
+ 9: d(0.5, 0.04),
39
+ 10: d(0.46, 0.042),
40
+ 11: d(0.42, 0.045),
41
+ 12: d(0.22, 0.045)
42
42
  }
43
- }, Ot = {
43
+ }, kt = {
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
- }, _t = {
46
+ }, Pt = {
47
47
  caption: 11,
48
48
  small: 12,
49
49
  body: 13,
@@ -53,89 +53,89 @@ const Se = 266, c = (e, t) => ({ l: e, c: t, h: Se }), Ct = {
53
53
  pageTitle: 22,
54
54
  figure: 26,
55
55
  mobileLargeTitle: 30
56
- }, oe = {
56
+ }, re = {
57
57
  regular: 400,
58
58
  medium: 500,
59
59
  semibold: 600,
60
60
  bold: 700
61
- }, It = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], wt = {
61
+ }, xt = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], Mt = {
62
62
  sm: 4,
63
63
  md: 6,
64
64
  lg: 12
65
- }, Dt = {
65
+ }, Ut = {
66
66
  fast: 120,
67
67
  base: 180,
68
68
  slow: 260
69
- }, Lt = {
69
+ }, Ft = {
70
70
  standard: "cubic-bezier(0.2, 0, 0, 1)",
71
71
  sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
72
- }, H = {
72
+ }, X = {
73
73
  xs: 0,
74
74
  sm: 480,
75
75
  md: 768,
76
76
  lg: 1200,
77
77
  xl: 1600
78
- }, kt = {
78
+ }, Bt = {
79
79
  comfortable: { row: 40, control: 32 },
80
80
  compact: { row: 30, control: 28 },
81
81
  touchTarget: 44
82
82
  };
83
- var R = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(R || {});
84
- const re = {
85
- tablet: H.md,
86
- desktop: H.lg
87
- }, Re = 0.05, x = (e) => `(min-width:${re[e]}px)`, M = (e) => `(max-width:${re[e] - Re}px)`, k = {
83
+ var O = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(O || {});
84
+ const ie = {
85
+ tablet: X.md,
86
+ desktop: X.lg
87
+ }, _e = 0.05, M = (e) => `(min-width:${ie[e]}px)`, U = (e) => `(max-width:${ie[e] - _e}px)`, P = {
88
88
  /** From the start of `tier` up. */
89
- up: (e) => `@media ${x(e)}`,
89
+ up: (e) => `@media ${M(e)}`,
90
90
  /** Below the start of `tier`. */
91
- down: (e) => `@media ${M(e)}`,
91
+ down: (e) => `@media ${U(e)}`,
92
92
  /** The widths of `tier` only. */
93
93
  only: (e) => {
94
94
  switch (e) {
95
95
  case "mobile":
96
- return `@media ${M(
96
+ return `@media ${U(
97
97
  "tablet"
98
98
  /* Tablet */
99
99
  )}`;
100
100
  case "tablet":
101
- return `@media ${x(
101
+ return `@media ${M(
102
102
  "tablet"
103
103
  /* Tablet */
104
- )} and ${M(
104
+ )} and ${U(
105
105
  "desktop"
106
106
  /* Desktop */
107
107
  )}`;
108
108
  case "desktop":
109
- return `@media ${x(
109
+ return `@media ${M(
110
110
  "desktop"
111
111
  /* Desktop */
112
112
  )}`;
113
113
  }
114
114
  }
115
- }, Ne = 0.14, a = (e) => `${e}px`, L = (e) => `1px solid ${e}`, Pt = (e) => fe(e, Ne), Ce = (e) => ({
115
+ }, Ie = 0.14, a = (e) => `${e}px`, k = (e) => `1px solid ${e}`, Gt = (e) => be(e, Ie), we = (e) => ({
116
116
  outline: `2px solid ${e.design.tokens["focus.ring"]}`,
117
117
  outlineOffset: "2px"
118
- }), xt = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Mt = (e) => e.design.densityValues[e.design.density].row, Ut = (e) => ({
119
- [k.down(R.Tablet)]: {
118
+ }), zt = (e, o) => o === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, Yt = (e) => e.design.densityValues[e.design.density].row, jt = (e) => ({
119
+ [P.down(O.Tablet)]: {
120
120
  minHeight: a(e.design.densityValues.touchTarget)
121
121
  }
122
- }), Oe = (e) => ({
123
- [k.down(R.Tablet)]: {
122
+ }), ae = (e) => ({
123
+ [P.down(O.Tablet)]: {
124
124
  minWidth: a(e.design.densityValues.touchTarget),
125
125
  minHeight: a(e.design.densityValues.touchTarget)
126
126
  }
127
- }), _e = (e, t, o = "fast") => t.map(
128
- (r) => `${r} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
- ).join(", "), Ie = () => {
130
- const e = V(k.up(R.Desktop), {
127
+ }), De = (e, o, i = "fast") => o.map(
128
+ (t) => `${t} ${e.design.durations[i]}ms ${e.design.easings.standard}`
129
+ ).join(", "), Le = () => {
130
+ const e = K(P.up(O.Desktop), {
131
131
  noSsr: !0
132
- }), t = V(k.down(R.Tablet), {
132
+ }), o = K(P.down(O.Tablet), {
133
133
  noSsr: !0
134
134
  });
135
- return e ? R.Desktop : t ? R.Mobile : R.Tablet;
135
+ return e ? O.Desktop : o ? O.Mobile : O.Tablet;
136
136
  };
137
- var I = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(I || {});
138
- const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De = ue(!1), Ft = () => pe(De), Le = p("div")({
137
+ var S = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e.Left = "left", e.Right = "right", e))(S || {});
138
+ const N = (e, o) => `calc(${a(o)} + env(safe-area-inset-${e}))`, ke = 0.3, Pe = ge(!1), qt = () => fe(Pe), xe = u("div")({
139
139
  position: "absolute",
140
140
  left: 0,
141
141
  right: 0,
@@ -143,226 +143,306 @@ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De =
143
143
  maxHeight: "100%",
144
144
  display: "flex",
145
145
  outline: "none"
146
- }), ke = p("div")(({ theme: e }) => {
147
- const { tokens: t, radii: o, space: r, elevations: i, fonts: s } = e.design;
146
+ }), Me = u("div")(({ theme: e }) => {
147
+ const { tokens: o, radii: i, space: t, elevations: r, fonts: n } = e.design;
148
148
  return {
149
149
  flex: "1 1 auto",
150
150
  minWidth: 0,
151
- maxHeight: `calc(100vh - ${D(I.Top, r[8])})`,
151
+ maxHeight: `calc(100vh - ${N(S.Top, t[8])})`,
152
152
  display: "flex",
153
153
  flexDirection: "column",
154
- gap: a(r[3]),
155
- paddingTop: a(r[2]),
156
- paddingBottom: D(I.Bottom, r[6]),
157
- paddingLeft: D(I.Left, r[4]),
158
- paddingRight: D(I.Right, r[4]),
159
- backgroundColor: t["bg.surface"],
160
- color: t["text.primary"],
161
- fontFamily: s.sans,
162
- borderTop: L(t["border.strong"]),
163
- borderTopLeftRadius: a(o.lg),
164
- borderTopRightRadius: a(o.lg),
165
- boxShadow: i.modal,
154
+ gap: a(t[3]),
155
+ paddingTop: a(t[2]),
156
+ paddingBottom: N(S.Bottom, t[6]),
157
+ paddingLeft: N(S.Left, t[4]),
158
+ paddingRight: N(S.Right, t[4]),
159
+ backgroundColor: o["bg.surface"],
160
+ color: o["text.primary"],
161
+ fontFamily: n.sans,
162
+ borderTop: k(o["border.strong"]),
163
+ borderTopLeftRadius: a(i.lg),
164
+ borderTopRightRadius: a(i.lg),
165
+ boxShadow: r.modal,
166
166
  outline: "none",
167
167
  position: "relative"
168
168
  };
169
- }), Pe = p(Z)(({ theme: e }) => ({
169
+ }), Ue = u(j)(({ theme: e }) => ({
170
170
  position: "absolute",
171
171
  top: a(e.design.space[1]),
172
- right: D(I.Right, e.design.space[2]),
173
- ...Oe(e)
174
- })), xe = p("div")(({ theme: e }) => {
175
- const { space: t, densityValues: o } = e.design;
172
+ right: N(S.Right, e.design.space[2]),
173
+ ...ae(e)
174
+ })), Fe = u("div")(({ theme: e }) => ({
175
+ flex: "none",
176
+ alignSelf: "flex-end",
177
+ display: "flex",
178
+ alignItems: "center",
179
+ gap: a(e.design.space[1])
180
+ })), Be = u(j)(
181
+ ({ theme: e }) => ae(e)
182
+ ), Ge = u("div")(({ theme: e }) => {
183
+ const { space: o, densityValues: i } = e.design;
176
184
  return {
177
185
  flex: "none",
178
186
  display: "flex",
179
187
  flexDirection: "column",
180
188
  alignItems: "center",
181
- gap: a(t[2]),
182
- minHeight: a(o.touchTarget / 2),
189
+ gap: a(o[2]),
190
+ minHeight: a(i.touchTarget / 2),
183
191
  touchAction: "none",
184
192
  cursor: "grab"
185
193
  };
186
- }), Me = p("span")(({ theme: e }) => {
187
- const { tokens: t, radii: o, space: r } = e.design;
194
+ }), ze = u("span")(({ theme: e }) => {
195
+ const { tokens: o, radii: i, space: t } = e.design;
188
196
  return {
189
- width: a(r[8]),
190
- height: a(r[1]),
191
- borderRadius: a(o.sm),
192
- backgroundColor: t["border.strong"]
197
+ width: a(t[8]),
198
+ height: a(t[1]),
199
+ borderRadius: a(i.sm),
200
+ backgroundColor: o["border.strong"]
193
201
  };
194
- }), Ue = p("h2", {
202
+ }), Ye = u("h2", {
195
203
  shouldForwardProp: (e) => e !== "besideClose"
196
- })(({ theme: e, besideClose: t }) => {
197
- const { typeScale: o, densityValues: r, space: i } = e.design;
204
+ })(({ theme: e, besideClose: o }) => {
205
+ const { typeScale: i, densityValues: t, space: r } = e.design;
198
206
  return {
199
207
  alignSelf: "stretch",
200
208
  margin: 0,
201
209
  // Clear of the close button in the corner.
202
- paddingRight: t ? a(r.touchTarget + i[2]) : void 0,
203
- fontSize: a(o.sectionTitle),
204
- fontWeight: oe.semibold,
210
+ paddingRight: o ? a(t.touchTarget + r[2]) : void 0,
211
+ fontSize: a(i.sectionTitle),
212
+ fontWeight: re.semibold,
205
213
  overflowWrap: "anywhere"
206
214
  };
207
- }), Fe = p("span")(({ theme: e }) => ({
215
+ }), je = u("span")(({ theme: e }) => ({
208
216
  display: "inline-flex",
209
217
  verticalAlign: "middle",
210
218
  marginRight: a(e.design.space[2])
211
- })), Be = p("div")({
219
+ })), qe = u("div")({
212
220
  flex: "1 1 auto",
213
221
  minHeight: 0,
214
222
  overflowY: "auto",
215
223
  overscrollBehavior: "contain"
216
- }), Ge = p("div")(({ theme: e }) => ({
224
+ }), Ve = u("div")(({ theme: e }) => ({
217
225
  flex: "none",
218
226
  paddingTop: a(e.design.space[3]),
219
- borderTop: L(e.design.tokens["border.subtle"])
227
+ borderTop: k(e.design.tokens["border.subtle"])
220
228
  }));
221
- function ze({
229
+ function He({
222
230
  open: e,
223
- onClose: t,
224
- title: o,
225
- titleIcon: r,
226
- closeLabel: i,
227
- footer: s,
228
- children: y
231
+ onClose: o,
232
+ title: i,
233
+ titleIcon: t,
234
+ closeLabel: r,
235
+ footer: n,
236
+ headerActions: f,
237
+ closeDisabled: v = !1,
238
+ onKeyDown: y,
239
+ children: h
229
240
  }) {
230
- const v = ve(), A = G(), f = B(), T = j(null), m = j(null), [N, u] = q(0), [l, n] = q(!1), h = (S) => {
231
- S.currentTarget.setPointerCapture(S.pointerId), m.current = S.clientY, n(!0);
232
- }, b = (S) => {
233
- m.current !== null && u(Math.max(0, S.clientY - m.current));
234
- }, E = (S) => {
235
- var Y;
236
- if (m.current === null)
241
+ const E = Ee(), R = Y(), A = G(), p = H(null), l = H(null), [s, m] = W(0), [T, b] = W(!1), D = (I) => {
242
+ v || (I.currentTarget.setPointerCapture(I.pointerId), l.current = I.clientY, b(!0));
243
+ }, _ = (I) => {
244
+ l.current !== null && m(Math.max(0, I.clientY - l.current));
245
+ }, pe = (I) => {
246
+ var V;
247
+ if (l.current === null)
237
248
  return;
238
- const de = Math.max(0, S.clientY - m.current), z = ((Y = T.current) == null ? void 0 : Y.getBoundingClientRect().height) ?? 0;
239
- m.current = null, n(!1), u(0), z > 0 && de >= z * we && t();
240
- }, _ = () => {
241
- m.current = null, n(!1), u(0);
249
+ const he = Math.max(0, I.clientY - l.current), q = ((V = p.current) == null ? void 0 : V.getBoundingClientRect().height) ?? 0;
250
+ l.current = null, b(!1), m(0), !v && q > 0 && he >= q * ke && o();
251
+ }, me = () => {
252
+ l.current = null, b(!1), m(0);
242
253
  };
243
- return /* @__PURE__ */ d(ye, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
244
- Ae,
254
+ return /* @__PURE__ */ c(
255
+ Te,
245
256
  {
246
- in: e,
247
- direction: "up",
248
- timeout: v.design.durations.slow,
249
- easing: v.design.easings.sheet,
250
- children: /* @__PURE__ */ d(Le, { children: /* @__PURE__ */ C(
251
- ke,
257
+ open: e,
258
+ onClose: v ? void 0 : () => o(),
259
+ ...y !== void 0 && { onKeyDown: y },
260
+ children: /* @__PURE__ */ c(
261
+ Se,
252
262
  {
253
- ref: T,
254
- role: "dialog",
255
- "aria-modal": "true",
256
- "aria-labelledby": o ? f : void 0,
257
- "aria-label": o ? void 0 : A.formatMessage({ id: "ds.mobile.bottom-sheet.label" }),
258
- tabIndex: -1,
259
- style: {
260
- // No transform at rest: a transformed panel is the containing block of whatever is
261
- // `position: fixed` inside it (the cookie banner hosted by the sheet), and would anchor it to
262
- // the panel instead of the viewport.
263
- transform: N === 0 && !l ? "none" : `translateY(${a(N)})`,
264
- transition: l ? "none" : `transform ${v.design.durations.base}ms ${v.design.easings.sheet}`
265
- },
266
- children: [
267
- /* @__PURE__ */ C(
268
- xe,
269
- {
270
- "data-testid": "bottom-sheet-drag-zone",
271
- onPointerDown: h,
272
- onPointerMove: b,
273
- onPointerUp: E,
274
- onPointerCancel: _,
275
- children: [
276
- /* @__PURE__ */ d(Me, { "aria-hidden": "true" }),
277
- o ? /* @__PURE__ */ C(Ue, { id: f, besideClose: i !== void 0, children: [
278
- r !== void 0 && /* @__PURE__ */ d(Fe, { "aria-hidden": "true", children: r }),
279
- o
280
- ] }) : null
281
- ]
282
- }
283
- ),
284
- i !== void 0 && /* @__PURE__ */ d(Pe, { "aria-label": i, onClick: () => t(), children: /* @__PURE__ */ d(ee, { "aria-hidden": !0 }) }),
285
- /* @__PURE__ */ d(Be, { children: y }),
286
- s !== void 0 && /* @__PURE__ */ d(Ge, { children: s })
287
- ]
263
+ in: e,
264
+ direction: "up",
265
+ timeout: E.design.durations.slow,
266
+ easing: E.design.easings.sheet,
267
+ children: /* @__PURE__ */ c(xe, { children: /* @__PURE__ */ C(
268
+ Me,
269
+ {
270
+ ref: p,
271
+ role: "dialog",
272
+ "aria-modal": "true",
273
+ "aria-labelledby": i ? A : void 0,
274
+ "aria-label": i ? void 0 : R.formatMessage({ id: "ds.mobile.bottom-sheet.label" }),
275
+ tabIndex: -1,
276
+ style: {
277
+ // No transform at rest: a transformed panel is the containing block of whatever is
278
+ // `position: fixed` inside it (the cookie banner hosted by the sheet), and would anchor it to
279
+ // the panel instead of the viewport.
280
+ transform: s === 0 && !T ? "none" : `translateY(${a(s)})`,
281
+ transition: T ? "none" : `transform ${E.design.durations.base}ms ${E.design.easings.sheet}`
282
+ },
283
+ children: [
284
+ /* @__PURE__ */ C(
285
+ Ge,
286
+ {
287
+ "data-testid": "bottom-sheet-drag-zone",
288
+ onPointerDown: D,
289
+ onPointerMove: _,
290
+ onPointerUp: pe,
291
+ onPointerCancel: me,
292
+ children: [
293
+ /* @__PURE__ */ c(ze, { "aria-hidden": "true" }),
294
+ i ? /* @__PURE__ */ C(
295
+ Ye,
296
+ {
297
+ id: A,
298
+ besideClose: r !== void 0 && f === void 0,
299
+ children: [
300
+ t !== void 0 && /* @__PURE__ */ c(je, { "aria-hidden": "true", children: t }),
301
+ i
302
+ ]
303
+ }
304
+ ) : null
305
+ ]
306
+ }
307
+ ),
308
+ f !== void 0 ? /* @__PURE__ */ C(Fe, { children: [
309
+ f,
310
+ r !== void 0 && /* @__PURE__ */ c(
311
+ Be,
312
+ {
313
+ "aria-label": r,
314
+ disabled: v,
315
+ onClick: () => o(),
316
+ children: /* @__PURE__ */ c(z, { "aria-hidden": !0 })
317
+ }
318
+ )
319
+ ] }) : r !== void 0 && /* @__PURE__ */ c(
320
+ Ue,
321
+ {
322
+ "aria-label": r,
323
+ disabled: v,
324
+ onClick: () => o(),
325
+ children: /* @__PURE__ */ c(z, { "aria-hidden": !0 })
326
+ }
327
+ ),
328
+ /* @__PURE__ */ c(qe, { children: h }),
329
+ n !== void 0 && /* @__PURE__ */ c(Ve, { children: n })
330
+ ]
331
+ }
332
+ ) })
288
333
  }
289
- ) })
334
+ )
290
335
  }
291
- ) });
336
+ );
292
337
  }
293
- const Bt = "--abyss-toast-clearance", Gt = "--abyss-cookie-banner-modal-clearance", zt = "--abyss-toast-dialog-foot-clearance", Ye = "data-abyss-dialog-foot";
294
- var je = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(je || {});
295
- const qe = p(ge)(({ theme: e }) => {
296
- const { tokens: t, fonts: o, space: r } = e.design;
338
+ const Vt = "--abyss-toast-clearance", Ht = "--abyss-cookie-banner-modal-clearance", Wt = "--abyss-toast-dialog-foot-clearance", We = "data-abyss-dialog-foot";
339
+ var Ke = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e.FullScreen = "fullscreen", e))(Ke || {});
340
+ const Xe = u(Ae)(({ theme: e, fullScreen: o }) => {
341
+ const { tokens: i, fonts: t, space: r } = e.design;
297
342
  return {
298
343
  "& .MuiDialog-paper": {
299
- margin: a(r[4]),
300
- maxHeight: `calc(100% - ${a(r[7])})`,
301
- backgroundColor: t["bg.surface"],
302
- color: t["text.primary"],
303
- fontFamily: o.sans,
344
+ margin: o ? 0 : a(r[4]),
345
+ maxHeight: o ? "100%" : `calc(100% - ${a(r[7])})`,
346
+ borderRadius: o ? 0 : void 0,
347
+ // Edge to edge: the hairline that lifts a floating modal off the scrim has nothing to frame here.
348
+ border: o ? "none" : void 0,
349
+ backgroundColor: i["bg.surface"],
350
+ color: i["text.primary"],
351
+ fontFamily: t.sans,
304
352
  overflow: "hidden"
305
353
  },
306
354
  "& .MuiDialog-paperFullWidth": {
307
355
  width: `calc(100% - ${a(r[7])})`
308
356
  }
309
357
  };
310
- }), Ve = p("div")(({ theme: e }) => {
311
- const { tokens: t, space: o } = e.design;
358
+ }), Je = u("div", {
359
+ shouldForwardProp: (e) => e !== "fill"
360
+ })(({ theme: e, fill: o }) => {
361
+ const { tokens: i, space: t } = e.design;
312
362
  return {
313
363
  flex: "none",
314
364
  display: "flex",
315
365
  justifyContent: "space-between",
316
366
  alignItems: "flex-start",
317
- gap: a(o[4]),
318
- padding: `${a(o[4])} ${a(o[5])}`,
319
- borderBottom: L(t["border.subtle"])
367
+ gap: a(t[4]),
368
+ ...o ? {
369
+ paddingTop: N(S.Top, t[4]),
370
+ paddingBottom: a(t[4]),
371
+ paddingLeft: N(S.Left, t[5]),
372
+ paddingRight: N(S.Right, t[5])
373
+ } : { padding: `${a(t[4])} ${a(t[5])}` },
374
+ borderBottom: k(i["border.subtle"])
320
375
  };
321
- }), He = p("div")({ minWidth: 0 }), We = p("div")(({ theme: e }) => ({
376
+ }), $e = u("div")({ minWidth: 0 }), Qe = u("div")(({ theme: e }) => ({
377
+ flex: "none",
378
+ display: "flex",
379
+ alignItems: "center",
380
+ gap: a(e.design.space[1])
381
+ })), Ze = u("div")(({ theme: e }) => ({
322
382
  minWidth: 0,
323
383
  display: "flex",
324
384
  alignItems: "flex-start",
325
385
  gap: a(e.design.space[3])
326
- })), Ke = p("span")({
386
+ })), et = u("span")({
327
387
  flex: "none",
328
388
  display: "inline-flex"
329
- }), Xe = p("h2")(({ theme: e }) => ({
389
+ }), tt = u("h2")(({ theme: e }) => ({
330
390
  margin: 0,
331
391
  fontSize: a(e.design.typeScale.sectionTitle),
332
- fontWeight: oe.semibold,
392
+ fontWeight: re.semibold,
333
393
  overflowWrap: "anywhere"
334
- })), Je = p("p")(({ theme: e }) => {
335
- const { tokens: t, space: o, typeScale: r } = e.design;
394
+ })), ot = u("p")(({ theme: e }) => {
395
+ const { tokens: o, space: i, typeScale: t } = e.design;
336
396
  return {
337
- margin: `${a(o[1])} 0 0`,
338
- color: t["text.muted"],
339
- fontSize: a(r.body),
397
+ margin: `${a(i[1])} 0 0`,
398
+ color: o["text.muted"],
399
+ fontSize: a(t.body),
340
400
  overflowWrap: "anywhere"
341
401
  };
342
- }), $e = p("div")(({ theme: e }) => ({
343
- flex: "1 1 auto",
344
- minHeight: 0,
345
- overflowY: "auto",
346
- padding: a(e.design.space[5]),
347
- fontSize: a(e.design.typeScale.body)
348
- })), Qe = p("div")(({ theme: e }) => {
349
- const { tokens: t, space: o } = e.design;
402
+ }), rt = u("div", {
403
+ shouldForwardProp: (e) => e !== "fill" && e !== "footed"
404
+ })(({ theme: e, fill: o, footed: i }) => {
405
+ const { space: t, typeScale: r } = e.design;
406
+ return {
407
+ flex: o ? 1 : "1 1 auto",
408
+ minHeight: 0,
409
+ overflowY: "auto",
410
+ fontSize: a(r.body),
411
+ ...o ? {
412
+ display: "flex",
413
+ flexDirection: "column",
414
+ position: "relative",
415
+ padding: 0,
416
+ paddingLeft: N(S.Left, 0),
417
+ paddingRight: N(S.Right, 0),
418
+ paddingBottom: i ? 0 : N(S.Bottom, 0)
419
+ } : { padding: a(t[5]) }
420
+ };
421
+ }), it = u("div", {
422
+ shouldForwardProp: (e) => e !== "fill"
423
+ })(({ theme: e, fill: o }) => {
424
+ const { tokens: i, space: t } = e.design;
350
425
  return {
351
426
  flex: "none",
352
427
  display: "flex",
353
428
  flexWrap: "wrap",
354
429
  justifyContent: "flex-end",
355
430
  alignItems: "center",
356
- gap: a(o[3]),
357
- padding: `${a(o[3])} ${a(o[5])}`,
358
- borderTop: L(t["border.subtle"])
431
+ gap: a(t[3]),
432
+ ...o ? {
433
+ paddingTop: a(t[3]),
434
+ paddingBottom: N(S.Bottom, t[3]),
435
+ paddingLeft: N(S.Left, t[5]),
436
+ paddingRight: N(S.Right, t[5])
437
+ } : { padding: `${a(t[3])} ${a(t[5])}` },
438
+ borderTop: k(i["border.subtle"])
359
439
  };
360
- }), Ze = p("p")(({ theme: e }) => ({
440
+ }), at = u("p")(({ theme: e }) => ({
361
441
  margin: `0 0 ${a(e.design.space[3])}`,
362
442
  color: e.design.tokens["text.muted"],
363
443
  fontSize: a(e.design.typeScale.bodyMobile),
364
444
  overflowWrap: "anywhere"
365
- })), et = p("div")(({ theme: e }) => ({
445
+ })), st = u("div")(({ theme: e }) => ({
366
446
  display: "flex",
367
447
  flexWrap: "wrap",
368
448
  gap: a(e.design.space[2]),
@@ -370,66 +450,78 @@ const qe = p(ge)(({ theme: e }) => {
370
450
  // stacks them, each growing to the full width.
371
451
  "& > *": { flex: "1 1 auto", minWidth: "fit-content" }
372
452
  }));
373
- function Yt({
453
+ function Kt({
374
454
  open: e,
375
- onClose: t,
376
- title: o,
377
- titleIcon: r,
378
- description: i,
379
- size: s = "md",
380
- actions: y,
381
- children: v
455
+ onClose: o,
456
+ title: i,
457
+ titleIcon: t,
458
+ description: r,
459
+ size: n = "md",
460
+ actions: f,
461
+ headerActions: v,
462
+ closeDisabled: y = !1,
463
+ onKeyDown: h,
464
+ children: E
382
465
  }) {
383
- const A = G(), f = Ie() === R.Mobile, T = B(), m = B();
384
- return f ? /* @__PURE__ */ C(
385
- ze,
466
+ const R = Y(), A = n === "fullscreen", p = Le() === O.Mobile && !A, l = G(), s = G();
467
+ return p ? /* @__PURE__ */ C(
468
+ He,
386
469
  {
387
470
  open: e,
388
- onClose: t,
389
- title: o,
390
- titleIcon: r,
391
- closeLabel: A.formatMessage({ id: "ds.layers.modal.close" }),
392
- footer: y !== void 0 ? /* @__PURE__ */ d(et, { [Ye]: "", children: y }) : void 0,
471
+ onClose: o,
472
+ title: i,
473
+ titleIcon: t,
474
+ closeLabel: R.formatMessage({ id: "ds.layers.modal.close" }),
475
+ headerActions: v,
476
+ closeDisabled: y,
477
+ onKeyDown: h,
478
+ footer: f !== void 0 ? /* @__PURE__ */ c(st, { [We]: "", children: f }) : void 0,
393
479
  children: [
394
- i !== void 0 && /* @__PURE__ */ d(Ze, { children: i }),
395
- v
480
+ r !== void 0 && /* @__PURE__ */ c(at, { children: r }),
481
+ E
396
482
  ]
397
483
  }
398
484
  ) : /* @__PURE__ */ C(
399
- qe,
485
+ Xe,
400
486
  {
401
487
  open: e,
402
- onClose: () => t(),
403
- maxWidth: s,
404
- fullWidth: !0,
405
- "aria-labelledby": T,
406
- "aria-describedby": i !== void 0 ? m : void 0,
488
+ onClose: y ? void 0 : () => o(),
489
+ ...h !== void 0 && { onKeyDown: h },
490
+ fullScreen: A,
491
+ maxWidth: A ? !1 : n,
492
+ fullWidth: !A,
493
+ "aria-labelledby": l,
494
+ "aria-describedby": r !== void 0 ? s : void 0,
407
495
  children: [
408
- /* @__PURE__ */ C(Ve, { children: [
409
- /* @__PURE__ */ C(We, { children: [
410
- r !== void 0 && /* @__PURE__ */ d(Ke, { "aria-hidden": "true", children: r }),
411
- /* @__PURE__ */ C(He, { children: [
412
- /* @__PURE__ */ d(Xe, { id: T, children: o }),
413
- i !== void 0 && /* @__PURE__ */ d(Je, { id: m, children: i })
496
+ /* @__PURE__ */ C(Je, { fill: A, children: [
497
+ /* @__PURE__ */ C(Ze, { children: [
498
+ t !== void 0 && /* @__PURE__ */ c(et, { "aria-hidden": "true", children: t }),
499
+ /* @__PURE__ */ C($e, { children: [
500
+ /* @__PURE__ */ c(tt, { id: l, children: i }),
501
+ r !== void 0 && /* @__PURE__ */ c(ot, { id: s, children: r })
414
502
  ] })
415
503
  ] }),
416
- /* @__PURE__ */ d(
417
- Z,
418
- {
419
- "aria-label": A.formatMessage({ id: "ds.layers.modal.close" }),
420
- onClick: t,
421
- children: /* @__PURE__ */ d(ee, { "aria-hidden": !0 })
422
- }
423
- )
504
+ /* @__PURE__ */ C(Qe, { children: [
505
+ v,
506
+ /* @__PURE__ */ c(
507
+ j,
508
+ {
509
+ "aria-label": R.formatMessage({ id: "ds.layers.modal.close" }),
510
+ disabled: y,
511
+ onClick: o,
512
+ children: /* @__PURE__ */ c(z, { "aria-hidden": !0 })
513
+ }
514
+ )
515
+ ] })
424
516
  ] }),
425
- /* @__PURE__ */ d($e, { children: v }),
426
- y !== void 0 && /* @__PURE__ */ d(Qe, { children: y })
517
+ /* @__PURE__ */ c(rt, { fill: A, footed: f !== void 0, children: E }),
518
+ f !== void 0 && /* @__PURE__ */ c(it, { fill: A, children: f })
427
519
  ]
428
520
  }
429
521
  );
430
522
  }
431
- const W = (e) => e, ie = {
432
- fr: W({
523
+ const J = (e) => e, se = {
524
+ fr: J({
433
525
  PROJECTS_COUNT: "Projets",
434
526
  MEMBERS_COUNT: "Membres",
435
527
  TEAM_COUNT: "Équipes",
@@ -497,7 +589,7 @@ const W = (e) => e, ie = {
497
589
  BANKING_PSD2_REFRESHES_MONTH: "Rafraîchissements PSD2 / mois",
498
590
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "Recalculs système / mois"
499
591
  }),
500
- en: W({
592
+ en: J({
501
593
  PROJECTS_COUNT: "Projects",
502
594
  MEMBERS_COUNT: "Members",
503
595
  TEAM_COUNT: "Teams",
@@ -566,9 +658,9 @@ const W = (e) => e, ie = {
566
658
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "System resnapshots / month"
567
659
  })
568
660
  };
569
- var ae = /* @__PURE__ */ ((e) => (e.DRAW = "draw", e.BOARD = "board", e.ATLAS = "atlas", e.RETROSPECTIVE = "retrospective", e.SHORT_LINK = "short_link", e.SPACE = "SPACE", e.FOLDER = "FOLDER", e.FILE = "FILE", e.CLOUD_FOLDER = "cloud_folder", e.CLOUD_GALLERY = "cloud_gallery", e.FORM = "form", e.SPOTLIGHT_PROJECT = "spotlight_project", e.EVENT = "event", e.REPORT = "report", e.BANKING_ORG = "banking_org", e.ASSET = "asset", e.WRAPPED_REPORT = "wrapped_report", e.DAILY_DIGEST = "daily_digest", e.ANALYTICS_SNAPSHOT = "analytics_snapshot", e.BANKING_VIEW_ACCOUNT = "banking_view_account", e.EXTRACTION_FILE = "extraction_file", e.EXTRACTION_TEMPLATE = "extraction_template", e.EXTRACTION_RESULT = "extraction_result", e.BEAM = "beam", e.BANKING_SCORE_SHARE_SET = "banking_score_share_set", e))(ae || {}), se = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.EDIT = "EDIT", e.MANAGE = "MANAGE", e))(se || {});
570
- const tt = (e) => e.toLowerCase().replace(/_/g, "-"), jt = Object.values(ae).map(tt), qt = (e) => typeof e == "string" && Object.values(se).includes(e) ? e : "unknown", K = (e) => e, P = {
571
- fr: K({
661
+ var ne = /* @__PURE__ */ ((e) => (e.DRAW = "draw", e.BOARD = "board", e.ATLAS = "atlas", e.RETROSPECTIVE = "retrospective", e.SHORT_LINK = "short_link", e.SPACE = "SPACE", e.FOLDER = "FOLDER", e.FILE = "FILE", e.CLOUD_FOLDER = "cloud_folder", e.CLOUD_GALLERY = "cloud_gallery", e.FORM = "form", e.SPOTLIGHT_PROJECT = "spotlight_project", e.EVENT = "event", e.REPORT = "report", e.BANKING_ORG = "banking_org", e.ASSET = "asset", e.WRAPPED_REPORT = "wrapped_report", e.DAILY_DIGEST = "daily_digest", e.ANALYTICS_SNAPSHOT = "analytics_snapshot", e.BANKING_VIEW_ACCOUNT = "banking_view_account", e.EXTRACTION_FILE = "extraction_file", e.EXTRACTION_TEMPLATE = "extraction_template", e.EXTRACTION_RESULT = "extraction_result", e.BEAM = "beam", e.BANKING_SCORE_SHARE_SET = "banking_score_share_set", e))(ne || {}), le = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.EDIT = "EDIT", e.MANAGE = "MANAGE", e))(le || {});
662
+ const nt = (e) => e.toLowerCase().replace(/_/g, "-"), Xt = Object.values(ne).map(nt), Jt = (e) => typeof e == "string" && Object.values(le).includes(e) ? e : "unknown", $ = (e) => e, x = {
663
+ fr: $({
572
664
  labels: {
573
665
  draw: "un dessin",
574
666
  board: "un tableau",
@@ -599,7 +691,7 @@ const tt = (e) => e.toLowerCase().replace(/_/g, "-"), jt = Object.values(ae).map
599
691
  },
600
692
  withName: "{label} « {name} »"
601
693
  }),
602
- en: K({
694
+ en: $({
603
695
  labels: {
604
696
  draw: "a drawing",
605
697
  board: "a board",
@@ -630,40 +722,40 @@ const tt = (e) => e.toLowerCase().replace(/_/g, "-"), jt = Object.values(ae).map
630
722
  },
631
723
  withName: '{label} "{name}"'
632
724
  })
633
- }, X = (e) => e, ne = {
634
- fr: X({
725
+ }, Q = (e) => e, ce = {
726
+ fr: Q({
635
727
  VIEW: "accès en lecture",
636
728
  EDIT: "accès en édition",
637
729
  MANAGE: "accès en gestion",
638
730
  unknown: "accès partagé"
639
731
  }),
640
- en: X({
732
+ en: Q({
641
733
  VIEW: "view access",
642
734
  EDIT: "edit access",
643
735
  MANAGE: "manage access",
644
736
  unknown: "shared access"
645
737
  })
646
738
  };
647
- 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 || {});
648
- const ot = {
649
- [w.FREEMIUM]: O.FREEMIUM,
650
- [w.DEFAULT]: "paid",
651
- [w.SYSTEM]: O.INTERNAL,
652
- [w.CUSTOM]: O.CUSTOM
653
- }, rt = new Set(Object.values(O)), U = (e) => e ? e.tier === w.CUSTOM ? O.CUSTOM : e.catalogKey && rt.has(e.catalogKey) ? e.catalogKey : ot[e.tier] ?? "paid" : O.FREEMIUM, Vt = (e, t) => {
654
- const o = (v) => {
655
- const A = e[`${v}Tier`];
656
- if (typeof A != "string")
739
+ var L = /* @__PURE__ */ ((e) => (e.FREEMIUM = "FREEMIUM", e.DEFAULT = "DEFAULT", e.CUSTOM = "CUSTOM", e.SYSTEM = "SYSTEM", e))(L || {}), w = /* @__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))(w || {});
740
+ const lt = {
741
+ [L.FREEMIUM]: w.FREEMIUM,
742
+ [L.DEFAULT]: "paid",
743
+ [L.SYSTEM]: w.INTERNAL,
744
+ [L.CUSTOM]: w.CUSTOM
745
+ }, ct = new Set(Object.values(w)), F = (e) => e ? e.tier === L.CUSTOM ? w.CUSTOM : e.catalogKey && ct.has(e.catalogKey) ? e.catalogKey : lt[e.tier] ?? "paid" : w.FREEMIUM, $t = (e, o) => {
746
+ const i = (v) => {
747
+ const y = e[`${v}Tier`];
748
+ if (typeof y != "string")
657
749
  return null;
658
- const f = e[`${v}CatalogKey`];
750
+ const h = e[`${v}CatalogKey`];
659
751
  return {
660
- tier: A,
661
- catalogKey: typeof f == "string" ? f : null
752
+ tier: y,
753
+ catalogKey: typeof h == "string" ? h : null
662
754
  };
663
- }, r = {}, i = o("plan"), s = o("oldPlan"), y = o("newPlan");
664
- return i && (r.planName = t(U(i))), s && (r.oldPlanName = t(U(s))), y && (r.newPlanName = t(U(y))), r;
665
- }, J = (e) => e, g = {
666
- fr: J({
755
+ }, t = {}, r = i("plan"), n = i("oldPlan"), f = i("newPlan");
756
+ return r && (t.planName = o(F(r))), n && (t.oldPlanName = o(F(n))), f && (t.newPlanName = o(F(f))), t;
757
+ }, Z = (e) => e, g = {
758
+ fr: Z({
667
759
  freemium: "Gratuit",
668
760
  starter: "Starter",
669
761
  pro: "Pro",
@@ -675,7 +767,7 @@ const ot = {
675
767
  custom: "Plan personnalisé",
676
768
  paid: "Plan payant"
677
769
  }),
678
- en: J({
770
+ en: Z({
679
771
  freemium: "Free",
680
772
  starter: "Starter",
681
773
  pro: "Pro",
@@ -687,7 +779,7 @@ const ot = {
687
779
  custom: "Custom plan",
688
780
  paid: "Paid plan"
689
781
  })
690
- }, it = {
782
+ }, dt = {
691
783
  banner: {
692
784
  title: "Compte de démonstration",
693
785
  summary: "{label} · expire le {date}",
@@ -702,8 +794,8 @@ const ot = {
702
794
  }
703
795
  },
704
796
  blocked: "Indisponible en démo"
705
- }, at = {
706
- demo: it,
797
+ }, ut = {
798
+ demo: dt,
707
799
  "space-display-name": {
708
800
  personal: "Mon Cloud",
709
801
  "perso-in-org": "Mon Cloud (dans org)",
@@ -782,7 +874,7 @@ const ot = {
782
874
  },
783
875
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
784
876
  // source (the invoices, their PDF and the overage e-mail read it too).
785
- metric: ie.fr
877
+ metric: se.fr
786
878
  },
787
879
  "error-page": {
788
880
  title: "Une erreur est survenue",
@@ -1092,10 +1184,10 @@ const ot = {
1092
1184
  "content-share": {
1093
1185
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
1094
1186
  // their single source (#833), read by the API e-mails too.
1095
- label: P.fr.labels,
1096
- "label-with-name": P.fr.withName,
1187
+ label: x.fr.labels,
1188
+ "label-with-name": x.fr.withName,
1097
1189
  // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
1098
- permission: ne.fr
1190
+ permission: ce.fr
1099
1191
  },
1100
1192
  "pending-invitations": {
1101
1193
  label: "Invitations en attente",
@@ -2405,6 +2497,11 @@ const ot = {
2405
2497
  "before-min": "Date trop ancienne",
2406
2498
  "after-max": "Date trop lointaine"
2407
2499
  },
2500
+ "date-time": {
2501
+ invalid: "Date et heure invalides",
2502
+ "before-min": "Date et heure trop anciennes",
2503
+ "after-max": "Date et heure trop lointaines"
2504
+ },
2408
2505
  "date-range": {
2409
2506
  from: "Du",
2410
2507
  to: "Au",
@@ -3120,7 +3217,7 @@ const ot = {
3120
3217
  show: "Afficher le mot de passe",
3121
3218
  hide: "Masquer le mot de passe"
3122
3219
  }
3123
- }, st = {
3220
+ }, pt = {
3124
3221
  banner: {
3125
3222
  title: "Demo account",
3126
3223
  summary: "{label} · expires on {date}",
@@ -3135,8 +3232,8 @@ const ot = {
3135
3232
  }
3136
3233
  },
3137
3234
  blocked: "Unavailable in demo"
3138
- }, nt = {
3139
- demo: st,
3235
+ }, mt = {
3236
+ demo: pt,
3140
3237
  "space-display-name": {
3141
3238
  personal: "My Cloud",
3142
3239
  "perso-in-org": "My Cloud (in org)",
@@ -3215,7 +3312,7 @@ const ot = {
3215
3312
  },
3216
3313
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
3217
3314
  // source (the invoices, their PDF and the overage e-mail read it too).
3218
- metric: ie.en
3315
+ metric: se.en
3219
3316
  },
3220
3317
  "error-page": {
3221
3318
  title: "Something went wrong",
@@ -3525,10 +3622,10 @@ const ot = {
3525
3622
  "content-share": {
3526
3623
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
3527
3624
  // their single source (#833), read by the API e-mails too.
3528
- label: P.en.labels,
3529
- "label-with-name": P.en.withName,
3625
+ label: x.en.labels,
3626
+ "label-with-name": x.en.withName,
3530
3627
  // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
3531
- permission: ne.en
3628
+ permission: ce.en
3532
3629
  },
3533
3630
  "pending-invitations": {
3534
3631
  label: "Pending invitations",
@@ -4838,6 +4935,11 @@ const ot = {
4838
4935
  "before-min": "Date is too early",
4839
4936
  "after-max": "Date is too late"
4840
4937
  },
4938
+ "date-time": {
4939
+ invalid: "Invalid date and time",
4940
+ "before-min": "Date and time are too early",
4941
+ "after-max": "Date and time are too late"
4942
+ },
4841
4943
  "date-range": {
4842
4944
  from: "From",
4843
4945
  to: "To",
@@ -5554,212 +5656,212 @@ const ot = {
5554
5656
  hide: "Hide password"
5555
5657
  }
5556
5658
  };
5557
- var F, $;
5558
- function lt() {
5559
- if ($) return F;
5560
- $ = 1, F = o, o.flatten = o, o.unflatten = r;
5561
- function e(i) {
5562
- return i && i.constructor && typeof i.constructor.isBuffer == "function" && i.constructor.isBuffer(i);
5659
+ var B, ee;
5660
+ function ht() {
5661
+ if (ee) return B;
5662
+ ee = 1, B = i, i.flatten = i, i.unflatten = t;
5663
+ function e(r) {
5664
+ return r && r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
5563
5665
  }
5564
- function t(i) {
5565
- return i;
5666
+ function o(r) {
5667
+ return r;
5566
5668
  }
5567
- function o(i, s) {
5568
- s = s || {};
5569
- const y = s.delimiter || ".", v = s.maxDepth, A = s.transformKey || t, f = {};
5570
- function T(m, N, u) {
5571
- u = u || 1, Object.keys(m).forEach(function(l) {
5572
- const n = m[l], h = s.safe && Array.isArray(n), b = Object.prototype.toString.call(n), E = e(n), _ = b === "[object Object]" || b === "[object Array]", S = N ? N + y + A(l) : A(l);
5573
- if (!h && !E && _ && Object.keys(n).length && (!s.maxDepth || u < v))
5574
- return T(n, S, u + 1);
5575
- f[S] = n;
5669
+ function i(r, n) {
5670
+ n = n || {};
5671
+ const f = n.delimiter || ".", v = n.maxDepth, y = n.transformKey || o, h = {};
5672
+ function E(R, A, p) {
5673
+ p = p || 1, Object.keys(R).forEach(function(l) {
5674
+ const s = R[l], m = n.safe && Array.isArray(s), T = Object.prototype.toString.call(s), b = e(s), D = T === "[object Object]" || T === "[object Array]", _ = A ? A + f + y(l) : y(l);
5675
+ if (!m && !b && D && Object.keys(s).length && (!n.maxDepth || p < v))
5676
+ return E(s, _, p + 1);
5677
+ h[_] = s;
5576
5678
  });
5577
5679
  }
5578
- return T(i), f;
5680
+ return E(r), h;
5579
5681
  }
5580
- function r(i, s) {
5581
- s = s || {};
5582
- const y = s.delimiter || ".", v = s.overwrite || !1, A = s.transformKey || t, f = {};
5583
- if (e(i) || Object.prototype.toString.call(i) !== "[object Object]")
5584
- return i;
5585
- function m(l) {
5586
- const n = Number(l);
5587
- return isNaN(n) || l.indexOf(".") !== -1 || s.object ? l : n;
5682
+ function t(r, n) {
5683
+ n = n || {};
5684
+ const f = n.delimiter || ".", v = n.overwrite || !1, y = n.transformKey || o, h = {};
5685
+ if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
5686
+ return r;
5687
+ function R(l) {
5688
+ const s = Number(l);
5689
+ return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
5588
5690
  }
5589
- function N(l, n, h) {
5590
- return Object.keys(h).reduce(function(b, E) {
5591
- return b[l + y + E] = h[E], b;
5592
- }, n);
5691
+ function A(l, s, m) {
5692
+ return Object.keys(m).reduce(function(T, b) {
5693
+ return T[l + f + b] = m[b], T;
5694
+ }, s);
5593
5695
  }
5594
- function u(l) {
5595
- const n = Object.prototype.toString.call(l), h = n === "[object Array]", b = n === "[object Object]";
5696
+ function p(l) {
5697
+ const s = Object.prototype.toString.call(l), m = s === "[object Array]", T = s === "[object Object]";
5596
5698
  if (l) {
5597
- if (h)
5699
+ if (m)
5598
5700
  return !l.length;
5599
- if (b)
5701
+ if (T)
5600
5702
  return !Object.keys(l).length;
5601
5703
  } else return !0;
5602
5704
  }
5603
- return i = Object.keys(i).reduce(function(l, n) {
5604
- const h = Object.prototype.toString.call(i[n]);
5605
- return !(h === "[object Object]" || h === "[object Array]") || u(i[n]) ? (l[n] = i[n], l) : N(
5606
- n,
5705
+ return r = Object.keys(r).reduce(function(l, s) {
5706
+ const m = Object.prototype.toString.call(r[s]);
5707
+ return !(m === "[object Object]" || m === "[object Array]") || p(r[s]) ? (l[s] = r[s], l) : A(
5708
+ s,
5607
5709
  l,
5608
- o(i[n], s)
5710
+ i(r[s], n)
5609
5711
  );
5610
- }, {}), Object.keys(i).forEach(function(l) {
5611
- const n = l.split(y).map(A);
5612
- let h = m(n.shift()), b = m(n[0]), E = f;
5613
- for (; b !== void 0; ) {
5614
- if (h === "__proto__")
5712
+ }, {}), Object.keys(r).forEach(function(l) {
5713
+ const s = l.split(f).map(y);
5714
+ let m = R(s.shift()), T = R(s[0]), b = h;
5715
+ for (; T !== void 0; ) {
5716
+ if (m === "__proto__")
5615
5717
  return;
5616
- const _ = Object.prototype.toString.call(E[h]), S = _ === "[object Object]" || _ === "[object Array]";
5617
- if (!v && !S && typeof E[h] < "u")
5718
+ const D = Object.prototype.toString.call(b[m]), _ = D === "[object Object]" || D === "[object Array]";
5719
+ if (!v && !_ && typeof b[m] < "u")
5618
5720
  return;
5619
- (v && !S || !v && E[h] == null) && (E[h] = typeof b == "number" && !s.object ? [] : {}), E = E[h], n.length > 0 && (h = m(n.shift()), b = m(n[0]));
5721
+ (v && !_ || !v && b[m] == null) && (b[m] = typeof T == "number" && !n.object ? [] : {}), b = b[m], s.length > 0 && (m = R(s.shift()), T = R(s[0]));
5620
5722
  }
5621
- E[h] = r(i[l], s);
5622
- }), f;
5723
+ b[m] = t(r[l], n);
5724
+ }), h;
5623
5725
  }
5624
- return F;
5726
+ return B;
5625
5727
  }
5626
- var le = lt();
5627
- const ce = {
5628
- fr: { ...at, common: Ee },
5629
- en: { ...nt, common: be }
5630
- }, ct = te(
5631
- () => le.flatten(ce.fr)
5632
- ), dt = te(
5633
- () => le.flatten(ce.en)
5634
- ), Ht = {
5728
+ var de = ht();
5729
+ const ue = {
5730
+ fr: { ...ut, common: Ne },
5731
+ en: { ...mt, common: Re }
5732
+ }, gt = oe(
5733
+ () => de.flatten(ue.fr)
5734
+ ), ft = oe(
5735
+ () => de.flatten(ue.en)
5736
+ ), Qt = {
5635
5737
  get fr() {
5636
- return ct();
5738
+ return gt();
5637
5739
  },
5638
5740
  get en() {
5639
- return dt();
5741
+ return ft();
5640
5742
  }
5641
- }, ut = {
5642
- break: /* @__PURE__ */ d("br", {}),
5643
- bold: (...e) => /* @__PURE__ */ d("strong", { children: e }),
5644
- italic: (...e) => /* @__PURE__ */ d("i", { children: e }),
5645
- primary: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5646
- focus: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5647
- }, Wt = () => {
5648
- const e = G(), t = Q(
5649
- (o, r) => e.formatMessage(o, {
5650
- ...ut,
5651
- ...r
5743
+ }, vt = {
5744
+ break: /* @__PURE__ */ c("br", {}),
5745
+ bold: (...e) => /* @__PURE__ */ c("strong", { children: e }),
5746
+ italic: (...e) => /* @__PURE__ */ c("i", { children: e }),
5747
+ primary: (...e) => /* @__PURE__ */ c("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5748
+ focus: (...e) => /* @__PURE__ */ c("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5749
+ }, Zt = () => {
5750
+ const e = Y(), o = te(
5751
+ (i, t) => e.formatMessage(i, {
5752
+ ...vt,
5753
+ ...t
5652
5754
  }),
5653
5755
  [e]
5654
5756
  );
5655
- return me(() => {
5656
- const { formatMessage: o, ...r } = e;
5657
- return { ...r, formatRichMessage: t };
5658
- }, [e, t]);
5659
- }, pt = /* @__PURE__ */ new Set(["a", "button"]), mt = p("div", {
5757
+ return ve(() => {
5758
+ const { formatMessage: i, ...t } = e;
5759
+ return { ...t, formatRichMessage: o };
5760
+ }, [e, o]);
5761
+ }, yt = /* @__PURE__ */ new Set(["a", "button"]), At = u("div", {
5660
5762
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
5661
- })(({ theme: e, ownerState: t }) => {
5662
- const { tokens: o, radii: r, space: i } = e.design;
5763
+ })(({ theme: e, ownerState: o }) => {
5764
+ const { tokens: i, radii: t, space: r } = e.design;
5663
5765
  return {
5664
5766
  display: "flex",
5665
5767
  flexDirection: "column",
5666
5768
  minWidth: 0,
5667
5769
  boxSizing: "border-box",
5668
- backgroundColor: o["bg.surface"],
5669
- border: L(o["border.subtle"]),
5670
- borderRadius: a(r.md),
5671
- padding: a(i[t.padding]),
5672
- color: o["text.primary"],
5673
- ...t.interactive && {
5770
+ backgroundColor: i["bg.surface"],
5771
+ border: k(i["border.subtle"]),
5772
+ borderRadius: a(t.md),
5773
+ padding: a(r[o.padding]),
5774
+ color: i["text.primary"],
5775
+ ...o.interactive && {
5674
5776
  cursor: "pointer",
5675
5777
  font: "inherit",
5676
5778
  textAlign: "inherit",
5677
5779
  textDecoration: "none",
5678
- transition: _e(e, ["border-color"]),
5679
- "&:hover": { borderColor: o["border.strong"] },
5680
- "&:focus-visible": Ce(e)
5780
+ transition: De(e, ["border-color"]),
5781
+ "&:hover": { borderColor: i["border.strong"] },
5782
+ "&:focus-visible": we(e)
5681
5783
  }
5682
5784
  };
5683
- }), Kt = he(function({
5684
- interactive: t = !1,
5685
- padding: o = 4,
5686
- component: r = "div",
5687
- children: i,
5688
- onKeyDown: s,
5689
- role: y,
5785
+ }), eo = ye(function({
5786
+ interactive: o = !1,
5787
+ padding: i = 4,
5788
+ component: t = "div",
5789
+ children: r,
5790
+ onKeyDown: n,
5791
+ role: f,
5690
5792
  tabIndex: v,
5691
- ...A
5692
- }, f) {
5693
- const T = t && typeof r == "string" && !pt.has(r), m = Q(
5694
- (u) => {
5695
- typeof f == "function" ? f(u) : f !== null && (f.current = u);
5793
+ ...y
5794
+ }, h) {
5795
+ const E = o && typeof t == "string" && !yt.has(t), R = te(
5796
+ (p) => {
5797
+ typeof h == "function" ? h(p) : h !== null && (h.current = p);
5696
5798
  },
5697
- [f]
5799
+ [h]
5698
5800
  );
5699
- return /* @__PURE__ */ d(
5700
- mt,
5801
+ return /* @__PURE__ */ c(
5802
+ At,
5701
5803
  {
5702
- ref: m,
5703
- as: r,
5704
- ownerState: { interactive: t, padding: o },
5705
- role: y ?? (T ? "button" : void 0),
5706
- tabIndex: v ?? (T ? 0 : void 0),
5707
- onKeyDown: (u) => {
5708
- s == null || s(u), T && !u.defaultPrevented && u.target === u.currentTarget && (u.key === "Enter" || u.key === " ") && (u.preventDefault(), u.currentTarget.click());
5709
- },
5710
- ...A,
5711
- children: i
5804
+ ref: R,
5805
+ as: t,
5806
+ ownerState: { interactive: o, padding: i },
5807
+ role: f ?? (E ? "button" : void 0),
5808
+ tabIndex: v ?? (E ? 0 : void 0),
5809
+ onKeyDown: (p) => {
5810
+ n == null || n(p), E && !p.defaultPrevented && p.target === p.currentTarget && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), p.currentTarget.click());
5811
+ },
5812
+ ...y,
5813
+ children: r
5712
5814
  }
5713
5815
  );
5714
5816
  });
5715
5817
  export {
5716
- Dt as A,
5717
- ze as B,
5718
- Lt as C,
5719
- R as D,
5720
- H as E,
5721
- _t as F,
5722
- Mt as G,
5723
- zt as H,
5724
- Ye as I,
5725
- U as J,
5726
- Vt as K,
5727
- qt as L,
5728
- Gt as M,
5729
- jt as N,
5730
- st as O,
5731
- it as P,
5732
- kt as Q,
5733
- ce as R,
5734
- I as S,
5735
- Bt as T,
5736
- ut as U,
5737
- nt as V,
5738
- at as W,
5739
- oe as a,
5740
- Kt as b,
5741
- Yt as c,
5742
- k as d,
5743
- je as e,
5744
- Ht as f,
5745
- _e as g,
5746
- L as h,
5747
- Ce as i,
5748
- Ie as j,
5749
- xt as k,
5750
- Oe as l,
5751
- De as m,
5752
- Ft as n,
5753
- we as o,
5818
+ Ut as A,
5819
+ He as B,
5820
+ Ft as C,
5821
+ O as D,
5822
+ X as E,
5823
+ Pt as F,
5824
+ Yt as G,
5825
+ Wt as H,
5826
+ We as I,
5827
+ F as J,
5828
+ $t as K,
5829
+ Jt as L,
5830
+ Ht as M,
5831
+ Xt as N,
5832
+ pt as O,
5833
+ dt as P,
5834
+ Bt as Q,
5835
+ ue as R,
5836
+ S,
5837
+ Vt as T,
5838
+ vt as U,
5839
+ mt as V,
5840
+ ut as W,
5841
+ re as a,
5842
+ eo as b,
5843
+ Kt as c,
5844
+ P as d,
5845
+ Ke as e,
5846
+ Qt as f,
5847
+ De as g,
5848
+ k as h,
5849
+ we as i,
5850
+ Le as j,
5851
+ zt as k,
5852
+ ae as l,
5853
+ Pe as m,
5854
+ qt as n,
5855
+ ke as o,
5754
5856
  a as p,
5755
- It as q,
5756
- Te as r,
5757
- Pt as s,
5758
- Ut as t,
5759
- Wt as u,
5760
- Ne as v,
5761
- D as w,
5762
- Ct as x,
5763
- wt as y,
5764
- Ot as z
5857
+ xt as q,
5858
+ Ce as r,
5859
+ Gt as s,
5860
+ jt as t,
5861
+ Zt as u,
5862
+ Ie as v,
5863
+ N as w,
5864
+ Lt as x,
5865
+ Mt as y,
5866
+ kt as z
5765
5867
  };