@abyss-project/commons-front-core 21.4.1 → 21.4.2

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 (34) hide show
  1. package/CHANGELOG.md +2 -6
  2. package/dist/{CookieConsentSettings-B6_mapf_.js → CookieConsentSettings-B_XrspE_.js} +1 -1
  3. package/dist/{Surface-Dty38Vd5.js → Surface-CDVyoNxU.js} +178 -196
  4. package/dist/{Tabs-oC8_U1sw.js → Tabs-De4uBUrI.js} +1 -1
  5. package/dist/cookie-consent.js +2 -2
  6. package/dist/{editors-CGbV2t_9.js → editors-DNBP4gs1.js} +27 -27
  7. package/dist/editors.js +1 -1
  8. package/dist/hooks/use-rich-intl.hook.d.ts +0 -12
  9. package/dist/{index-Qyz6jmIF.js → index--86h-2PZ.js} +2 -2
  10. package/dist/{index-djoHVWYS.js → index-B3Dmwmm5.js} +4 -4
  11. package/dist/{index-BRVgwP-C.js → index-BCvFVW35.js} +2 -2
  12. package/dist/{index-SFk0rdC7.js → index-BETj39iS.js} +3 -3
  13. package/dist/{index-CfEO6KVf.js → index-BEiq9dc4.js} +4 -4
  14. package/dist/{index-BqZC9q03.js → index-BJ8vRTI1.js} +3 -3
  15. package/dist/{index-CzcYMTZJ.js → index-BN3BClqp.js} +2 -2
  16. package/dist/{index-CtQNu7wR.js → index-BO3ZYOV7.js} +2 -2
  17. package/dist/{index-CxCUDfdG.js → index-BhVg_a05.js} +4 -4
  18. package/dist/{index-CP_XKV0F.js → index-Bi-LgwxF.js} +2 -2
  19. package/dist/{index-zMklYLFy.js → index-BrIJFHn6.js} +2 -2
  20. package/dist/{index-CWvytAy8.js → index-BvqJvLzc.js} +2 -2
  21. package/dist/{index-vhwn5EmA.js → index-CCk-aXzg.js} +3 -3
  22. package/dist/{index-DN6xu5ly.js → index-CJBeVuxk.js} +1 -1
  23. package/dist/{index-Bl4T33V7.js → index-CKuo6Mki.js} +2 -2
  24. package/dist/{index-CxHtLiCg.js → index-Cr361nhQ.js} +3 -3
  25. package/dist/{index-NLO9Ymb8.js → index-D-LJS01M.js} +2 -2
  26. package/dist/{index-C8jyy7rb.js → index-DPLLqacI.js} +2 -2
  27. package/dist/{index-D9x9XA6d.js → index-DyaDxg41.js} +2 -2
  28. package/dist/{index-Bpg9y-oe.js → index-KMimc3Je.js} +2 -2
  29. package/dist/{index-BkZJKFhH.js → index-xXZu-aO2.js} +2 -2
  30. package/dist/index.js +7799 -7801
  31. package/dist/translations/en.d.ts +0 -6
  32. package/dist/translations/fr.d.ts +0 -6
  33. package/dist/utils/billing.utils.d.ts +1 -2
  34. package/package.json +3 -3
@@ -1,17 +1,17 @@
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 V, useCallback as Q, useMemo as me, forwardRef as he } from "react";
1
+ import { jsx as d, jsxs as N } from "react/jsx-runtime";
2
+ import { createContext as le, useContext as ce, useId as B, useRef as j, useState as q, useCallback as $, useMemo as de, forwardRef as ue } from "react";
3
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 ye } from "@mui/material/styles";
7
- import ee from "@mui/icons-material/Close";
8
- import q from "@mui/material/useMediaQuery";
9
- import ve 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 = {
4
+ import pe from "@mui/material/Dialog";
5
+ import Q from "@mui/material/IconButton";
6
+ import { alpha as me, styled as p, useTheme as he } from "@mui/material/styles";
7
+ import Z from "@mui/icons-material/Close";
8
+ import V from "@mui/material/useMediaQuery";
9
+ import ge from "@mui/material/Modal";
10
+ import fe from "@mui/material/Slide";
11
+ import { enTranslation as ye, frTranslation as ve } from "@abyss-project/main";
12
+ import { l as ee } from "./lazy-value-Co76vxsM.js";
13
+ var Ae = /* @__PURE__ */ ((e) => (e.Dark = "dark", e.Light = "light", e))(Ae || {});
14
+ const be = 266, c = (e, t) => ({ l: e, c: t, h: be }), St = {
15
15
  dark: {
16
16
  1: c(0.155, 0.034),
17
17
  2: c(0.17, 0.036),
@@ -40,10 +40,10 @@ const Se = 266, c = (e, t) => ({ l: e, c: t, h: Se }), Ct = {
40
40
  11: c(0.42, 0.045),
41
41
  12: c(0.22, 0.045)
42
42
  }
43
- }, Ot = {
43
+ }, Rt = {
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
+ }, Ct = {
47
47
  caption: 11,
48
48
  small: 12,
49
49
  body: 13,
@@ -53,20 +53,20 @@ 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
+ }, te = {
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
+ }, Nt = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], Ot = {
62
62
  sm: 4,
63
63
  md: 6,
64
64
  lg: 12
65
- }, Dt = {
65
+ }, _t = {
66
66
  fast: 120,
67
67
  base: 180,
68
68
  slow: 260
69
- }, Lt = {
69
+ }, It = {
70
70
  standard: "cubic-bezier(0.2, 0, 0, 1)",
71
71
  sheet: "cubic-bezier(0.32, 0.72, 0, 1)"
72
72
  }, H = {
@@ -75,16 +75,16 @@ const Se = 266, c = (e, t) => ({ l: e, c: t, h: Se }), Ct = {
75
75
  md: 768,
76
76
  lg: 1200,
77
77
  xl: 1600
78
- }, kt = {
78
+ }, wt = {
79
79
  comfortable: { row: 40, control: 32 },
80
80
  compact: { row: 30, control: 28 },
81
81
  touchTarget: 44
82
82
  };
83
83
  var R = /* @__PURE__ */ ((e) => (e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(R || {});
84
- const re = {
84
+ const oe = {
85
85
  tablet: H.md,
86
86
  desktop: H.lg
87
- }, Re = 0.05, x = (e) => `(min-width:${re[e]}px)`, M = (e) => `(max-width:${re[e] - Re}px)`, k = {
87
+ }, Ee = 0.05, x = (e) => `(min-width:${oe[e]}px)`, M = (e) => `(max-width:${oe[e] - Ee}px)`, k = {
88
88
  /** From the start of `tier` up. */
89
89
  up: (e) => `@media ${x(e)}`,
90
90
  /** Below the start of `tier`. */
@@ -112,30 +112,30 @@ const re = {
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
+ }, Te = 0.14, a = (e) => `${e}px`, L = (e) => `1px solid ${e}`, Dt = (e) => me(e, Te), Se = (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) => ({
118
+ }), Lt = (e, t) => t === "small" ? e.design.densityValues.compact.control : e.design.densityValues[e.design.density].control, kt = (e) => e.design.densityValues[e.design.density].row, Pt = (e) => ({
119
119
  [k.down(R.Tablet)]: {
120
120
  minHeight: a(e.design.densityValues.touchTarget)
121
121
  }
122
- }), Oe = (e) => ({
122
+ }), Re = (e) => ({
123
123
  [k.down(R.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(
127
+ }), Ce = (e, t, o = "fast") => t.map(
128
128
  (r) => `${r} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
- ).join(", "), Ie = () => {
130
- const e = q(k.up(R.Desktop), {
129
+ ).join(", "), Ne = () => {
130
+ const e = V(k.up(R.Desktop), {
131
131
  noSsr: !0
132
- }), t = q(k.down(R.Tablet), {
132
+ }), t = V(k.down(R.Tablet), {
133
133
  noSsr: !0
134
134
  });
135
135
  return e ? R.Desktop : t ? R.Mobile : R.Tablet;
136
136
  };
137
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")({
138
+ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, Oe = 0.3, _e = le(!1), xt = () => ce(_e), Ie = p("div")({
139
139
  position: "absolute",
140
140
  left: 0,
141
141
  right: 0,
@@ -143,7 +143,7 @@ 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 }) => {
146
+ }), we = p("div")(({ theme: e }) => {
147
147
  const { tokens: t, radii: o, space: r, elevations: i, fonts: n } = e.design;
148
148
  return {
149
149
  flex: "1 1 auto",
@@ -166,12 +166,12 @@ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De =
166
166
  outline: "none",
167
167
  position: "relative"
168
168
  };
169
- }), Pe = p(Z)(({ theme: e }) => ({
169
+ }), De = p(Q)(({ theme: e }) => ({
170
170
  position: "absolute",
171
171
  top: a(e.design.space[1]),
172
172
  right: D(I.Right, e.design.space[2]),
173
- ...Oe(e)
174
- })), xe = p("div")(({ theme: e }) => {
173
+ ...Re(e)
174
+ })), Le = p("div")(({ theme: e }) => {
175
175
  const { space: t, densityValues: o } = e.design;
176
176
  return {
177
177
  flex: "none",
@@ -183,7 +183,7 @@ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De =
183
183
  touchAction: "none",
184
184
  cursor: "grab"
185
185
  };
186
- }), Me = p("span")(({ theme: e }) => {
186
+ }), ke = p("span")(({ theme: e }) => {
187
187
  const { tokens: t, radii: o, space: r } = e.design;
188
188
  return {
189
189
  width: a(r[8]),
@@ -191,7 +191,7 @@ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De =
191
191
  borderRadius: a(o.sm),
192
192
  backgroundColor: t["border.strong"]
193
193
  };
194
- }), Ue = p("h2", {
194
+ }), Pe = p("h2", {
195
195
  shouldForwardProp: (e) => e !== "besideClose"
196
196
  })(({ theme: e, besideClose: t }) => {
197
197
  const { typeScale: o, densityValues: r, space: i } = e.design;
@@ -201,24 +201,24 @@ const D = (e, t) => `calc(${a(t)} + env(safe-area-inset-${e}))`, we = 0.3, De =
201
201
  // Clear of the close button in the corner.
202
202
  paddingRight: t ? a(r.touchTarget + i[2]) : void 0,
203
203
  fontSize: a(o.sectionTitle),
204
- fontWeight: oe.semibold,
204
+ fontWeight: te.semibold,
205
205
  overflowWrap: "anywhere"
206
206
  };
207
- }), Fe = p("span")(({ theme: e }) => ({
207
+ }), xe = p("span")(({ theme: e }) => ({
208
208
  display: "inline-flex",
209
209
  verticalAlign: "middle",
210
210
  marginRight: a(e.design.space[2])
211
- })), Be = p("div")({
211
+ })), Me = p("div")({
212
212
  flex: "1 1 auto",
213
213
  minHeight: 0,
214
214
  overflowY: "auto",
215
215
  overscrollBehavior: "contain"
216
- }), Ge = p("div")(({ theme: e }) => ({
216
+ }), Ue = p("div")(({ theme: e }) => ({
217
217
  flex: "none",
218
218
  paddingTop: a(e.design.space[3]),
219
219
  borderTop: L(e.design.tokens["border.subtle"])
220
220
  }));
221
- function ze({
221
+ function Fe({
222
222
  open: e,
223
223
  onClose: t,
224
224
  title: o,
@@ -227,7 +227,7 @@ function ze({
227
227
  footer: n,
228
228
  children: v
229
229
  }) {
230
- const y = ye(), A = G(), f = B(), T = j(null), m = j(null), [N, u] = V(0), [l, s] = V(!1), h = (S) => {
230
+ const y = he(), A = G(), f = B(), T = j(null), m = j(null), [C, u] = q(0), [l, s] = q(!1), h = (S) => {
231
231
  S.currentTarget.setPointerCapture(S.pointerId), m.current = S.clientY, s(!0);
232
232
  }, b = (S) => {
233
233
  m.current !== null && u(Math.max(0, S.clientY - m.current));
@@ -235,20 +235,20 @@ function ze({
235
235
  var Y;
236
236
  if (m.current === null)
237
237
  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, s(!1), u(0), z > 0 && de >= z * we && t();
238
+ const se = Math.max(0, S.clientY - m.current), z = ((Y = T.current) == null ? void 0 : Y.getBoundingClientRect().height) ?? 0;
239
+ m.current = null, s(!1), u(0), z > 0 && se >= z * Oe && t();
240
240
  }, _ = () => {
241
241
  m.current = null, s(!1), u(0);
242
242
  };
243
- return /* @__PURE__ */ d(ve, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
244
- Ae,
243
+ return /* @__PURE__ */ d(ge, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
244
+ fe,
245
245
  {
246
246
  in: e,
247
247
  direction: "up",
248
248
  timeout: y.design.durations.slow,
249
249
  easing: y.design.easings.sheet,
250
- children: /* @__PURE__ */ d(Le, { children: /* @__PURE__ */ C(
251
- ke,
250
+ children: /* @__PURE__ */ d(Ie, { children: /* @__PURE__ */ N(
251
+ we,
252
252
  {
253
253
  ref: T,
254
254
  role: "dialog",
@@ -260,12 +260,12 @@ function ze({
260
260
  // No transform at rest: a transformed panel is the containing block of whatever is
261
261
  // `position: fixed` inside it (the cookie banner hosted by the sheet), and would anchor it to
262
262
  // the panel instead of the viewport.
263
- transform: N === 0 && !l ? "none" : `translateY(${a(N)})`,
263
+ transform: C === 0 && !l ? "none" : `translateY(${a(C)})`,
264
264
  transition: l ? "none" : `transform ${y.design.durations.base}ms ${y.design.easings.sheet}`
265
265
  },
266
266
  children: [
267
- /* @__PURE__ */ C(
268
- xe,
267
+ /* @__PURE__ */ N(
268
+ Le,
269
269
  {
270
270
  "data-testid": "bottom-sheet-drag-zone",
271
271
  onPointerDown: h,
@@ -273,26 +273,26 @@ function ze({
273
273
  onPointerUp: E,
274
274
  onPointerCancel: _,
275
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 }),
276
+ /* @__PURE__ */ d(ke, { "aria-hidden": "true" }),
277
+ o ? /* @__PURE__ */ N(Pe, { id: f, besideClose: i !== void 0, children: [
278
+ r !== void 0 && /* @__PURE__ */ d(xe, { "aria-hidden": "true", children: r }),
279
279
  o
280
280
  ] }) : null
281
281
  ]
282
282
  }
283
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: v }),
286
- n !== void 0 && /* @__PURE__ */ d(Ge, { children: n })
284
+ i !== void 0 && /* @__PURE__ */ d(De, { "aria-label": i, onClick: () => t(), children: /* @__PURE__ */ d(Z, { "aria-hidden": !0 }) }),
285
+ /* @__PURE__ */ d(Me, { children: v }),
286
+ n !== void 0 && /* @__PURE__ */ d(Ue, { children: n })
287
287
  ]
288
288
  }
289
289
  ) })
290
290
  }
291
291
  ) });
292
292
  }
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 Ve = p(ge)(({ theme: e }) => {
293
+ const Mt = "--abyss-toast-clearance", Ut = "--abyss-cookie-banner-modal-clearance", Ft = "--abyss-toast-dialog-foot-clearance", Be = "data-abyss-dialog-foot";
294
+ var Ge = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Medium = "md", e.Large = "lg", e))(Ge || {});
295
+ const ze = p(pe)(({ theme: e }) => {
296
296
  const { tokens: t, fonts: o, space: r } = e.design;
297
297
  return {
298
298
  "& .MuiDialog-paper": {
@@ -307,7 +307,7 @@ const Ve = p(ge)(({ theme: e }) => {
307
307
  width: `calc(100% - ${a(r[7])})`
308
308
  }
309
309
  };
310
- }), qe = p("div")(({ theme: e }) => {
310
+ }), Ye = p("div")(({ theme: e }) => {
311
311
  const { tokens: t, space: o } = e.design;
312
312
  return {
313
313
  flex: "none",
@@ -318,20 +318,20 @@ const Ve = p(ge)(({ theme: e }) => {
318
318
  padding: `${a(o[4])} ${a(o[5])}`,
319
319
  borderBottom: L(t["border.subtle"])
320
320
  };
321
- }), He = p("div")({ minWidth: 0 }), We = p("div")(({ theme: e }) => ({
321
+ }), je = p("div")({ minWidth: 0 }), qe = p("div")(({ theme: e }) => ({
322
322
  minWidth: 0,
323
323
  display: "flex",
324
324
  alignItems: "flex-start",
325
325
  gap: a(e.design.space[3])
326
- })), Ke = p("span")({
326
+ })), Ve = p("span")({
327
327
  flex: "none",
328
328
  display: "inline-flex"
329
- }), Xe = p("h2")(({ theme: e }) => ({
329
+ }), He = p("h2")(({ theme: e }) => ({
330
330
  margin: 0,
331
331
  fontSize: a(e.design.typeScale.sectionTitle),
332
- fontWeight: oe.semibold,
332
+ fontWeight: te.semibold,
333
333
  overflowWrap: "anywhere"
334
- })), Je = p("p")(({ theme: e }) => {
334
+ })), We = p("p")(({ theme: e }) => {
335
335
  const { tokens: t, space: o, typeScale: r } = e.design;
336
336
  return {
337
337
  margin: `${a(o[1])} 0 0`,
@@ -339,13 +339,13 @@ const Ve = p(ge)(({ theme: e }) => {
339
339
  fontSize: a(r.body),
340
340
  overflowWrap: "anywhere"
341
341
  };
342
- }), $e = p("div")(({ theme: e }) => ({
342
+ }), Ke = p("div")(({ theme: e }) => ({
343
343
  flex: "1 1 auto",
344
344
  minHeight: 0,
345
345
  overflowY: "auto",
346
346
  padding: a(e.design.space[5]),
347
347
  fontSize: a(e.design.typeScale.body)
348
- })), Qe = p("div")(({ theme: e }) => {
348
+ })), Xe = p("div")(({ theme: e }) => {
349
349
  const { tokens: t, space: o } = e.design;
350
350
  return {
351
351
  flex: "none",
@@ -357,18 +357,18 @@ const Ve = p(ge)(({ theme: e }) => {
357
357
  padding: `${a(o[3])} ${a(o[5])}`,
358
358
  borderTop: L(t["border.subtle"])
359
359
  };
360
- }), Ze = p("p")(({ theme: e }) => ({
360
+ }), Je = p("p")(({ theme: e }) => ({
361
361
  margin: `0 0 ${a(e.design.space[3])}`,
362
362
  color: e.design.tokens["text.muted"],
363
363
  fontSize: a(e.design.typeScale.bodyMobile),
364
364
  overflowWrap: "anywhere"
365
- })), et = p("div")(({ theme: e }) => ({
365
+ })), $e = p("div")(({ theme: e }) => ({
366
366
  display: "flex",
367
367
  flexWrap: "wrap",
368
368
  gap: a(e.design.space[2]),
369
369
  "& > *": { flex: "1 1 0" }
370
370
  }));
371
- function Yt({
371
+ function Bt({
372
372
  open: e,
373
373
  onClose: t,
374
374
  title: o,
@@ -378,23 +378,23 @@ function Yt({
378
378
  actions: v,
379
379
  children: y
380
380
  }) {
381
- const A = G(), f = Ie() === R.Mobile, T = B(), m = B();
382
- return f ? /* @__PURE__ */ C(
383
- ze,
381
+ const A = G(), f = Ne() === R.Mobile, T = B(), m = B();
382
+ return f ? /* @__PURE__ */ N(
383
+ Fe,
384
384
  {
385
385
  open: e,
386
386
  onClose: t,
387
387
  title: o,
388
388
  titleIcon: r,
389
389
  closeLabel: A.formatMessage({ id: "ds.layers.modal.close" }),
390
- footer: v !== void 0 ? /* @__PURE__ */ d(et, { [Ye]: "", children: v }) : void 0,
390
+ footer: v !== void 0 ? /* @__PURE__ */ d($e, { [Be]: "", children: v }) : void 0,
391
391
  children: [
392
- i !== void 0 && /* @__PURE__ */ d(Ze, { children: i }),
392
+ i !== void 0 && /* @__PURE__ */ d(Je, { children: i }),
393
393
  y
394
394
  ]
395
395
  }
396
- ) : /* @__PURE__ */ C(
397
- Ve,
396
+ ) : /* @__PURE__ */ N(
397
+ ze,
398
398
  {
399
399
  open: e,
400
400
  onClose: () => t(),
@@ -403,30 +403,30 @@ function Yt({
403
403
  "aria-labelledby": T,
404
404
  "aria-describedby": i !== void 0 ? m : void 0,
405
405
  children: [
406
- /* @__PURE__ */ C(qe, { children: [
407
- /* @__PURE__ */ C(We, { children: [
408
- r !== void 0 && /* @__PURE__ */ d(Ke, { "aria-hidden": "true", children: r }),
409
- /* @__PURE__ */ C(He, { children: [
410
- /* @__PURE__ */ d(Xe, { id: T, children: o }),
411
- i !== void 0 && /* @__PURE__ */ d(Je, { id: m, children: i })
406
+ /* @__PURE__ */ N(Ye, { children: [
407
+ /* @__PURE__ */ N(qe, { children: [
408
+ r !== void 0 && /* @__PURE__ */ d(Ve, { "aria-hidden": "true", children: r }),
409
+ /* @__PURE__ */ N(je, { children: [
410
+ /* @__PURE__ */ d(He, { id: T, children: o }),
411
+ i !== void 0 && /* @__PURE__ */ d(We, { id: m, children: i })
412
412
  ] })
413
413
  ] }),
414
414
  /* @__PURE__ */ d(
415
- Z,
415
+ Q,
416
416
  {
417
417
  "aria-label": A.formatMessage({ id: "ds.layers.modal.close" }),
418
418
  onClick: t,
419
- children: /* @__PURE__ */ d(ee, { "aria-hidden": !0 })
419
+ children: /* @__PURE__ */ d(Z, { "aria-hidden": !0 })
420
420
  }
421
421
  )
422
422
  ] }),
423
- /* @__PURE__ */ d($e, { children: y }),
424
- v !== void 0 && /* @__PURE__ */ d(Qe, { children: v })
423
+ /* @__PURE__ */ d(Ke, { children: y }),
424
+ v !== void 0 && /* @__PURE__ */ d(Xe, { children: v })
425
425
  ]
426
426
  }
427
427
  );
428
428
  }
429
- const W = (e) => e, ie = {
429
+ const W = (e) => e, re = {
430
430
  fr: W({
431
431
  PROJECTS_COUNT: "Projets",
432
432
  MEMBERS_COUNT: "Membres",
@@ -562,8 +562,8 @@ const W = (e) => e, ie = {
562
562
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "System resnapshots / month"
563
563
  })
564
564
  };
565
- 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 || {}), ne = /* @__PURE__ */ ((e) => (e.VIEW = "VIEW", e.EDIT = "EDIT", e.MANAGE = "MANAGE", e))(ne || {});
566
- const tt = (e) => e.toLowerCase().replace(/_/g, "-"), jt = Object.values(ae).map(tt), Vt = (e) => typeof e == "string" && Object.values(ne).includes(e) ? e : "unknown", K = (e) => e, P = {
565
+ var ie = /* @__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))(ie || {});
566
+ const Qe = (e) => e.toLowerCase().replace(/_/g, "-"), Gt = Object.values(ie).map(Qe), K = (e) => e, P = {
567
567
  fr: K({
568
568
  labels: {
569
569
  draw: "un dessin",
@@ -626,27 +626,14 @@ const tt = (e) => e.toLowerCase().replace(/_/g, "-"), jt = Object.values(ae).map
626
626
  },
627
627
  withName: '{label} "{name}"'
628
628
  })
629
- }, X = (e) => e, se = {
630
- fr: X({
631
- VIEW: "accès en lecture",
632
- EDIT: "accès en édition",
633
- MANAGE: "accès en gestion",
634
- unknown: "accès partagé"
635
- }),
636
- en: X({
637
- VIEW: "view access",
638
- EDIT: "edit access",
639
- MANAGE: "manage access",
640
- unknown: "shared access"
641
- })
642
629
  };
643
630
  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 || {});
644
- const ot = {
631
+ const Ze = {
645
632
  [w.FREEMIUM]: O.FREEMIUM,
646
633
  [w.DEFAULT]: "paid",
647
634
  [w.SYSTEM]: O.INTERNAL,
648
635
  [w.CUSTOM]: O.CUSTOM
649
- }, 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, qt = (e, t) => {
636
+ }, et = new Set(Object.values(O)), U = (e) => e ? e.tier === w.CUSTOM ? O.CUSTOM : e.catalogKey && et.has(e.catalogKey) ? e.catalogKey : Ze[e.tier] ?? "paid" : O.FREEMIUM, zt = (e, t) => {
650
637
  const o = (y) => {
651
638
  const A = e[`${y}Tier`];
652
639
  if (typeof A != "string")
@@ -658,8 +645,8 @@ const ot = {
658
645
  };
659
646
  }, r = {}, i = o("plan"), n = o("oldPlan"), v = o("newPlan");
660
647
  return i && (r.planName = t(U(i))), n && (r.oldPlanName = t(U(n))), v && (r.newPlanName = t(U(v))), r;
661
- }, J = (e) => e, g = {
662
- fr: J({
648
+ }, X = (e) => e, g = {
649
+ fr: X({
663
650
  freemium: "Gratuit",
664
651
  starter: "Starter",
665
652
  pro: "Pro",
@@ -671,7 +658,7 @@ const ot = {
671
658
  custom: "Plan personnalisé",
672
659
  paid: "Plan payant"
673
660
  }),
674
- en: J({
661
+ en: X({
675
662
  freemium: "Free",
676
663
  starter: "Starter",
677
664
  pro: "Pro",
@@ -683,7 +670,7 @@ const ot = {
683
670
  custom: "Custom plan",
684
671
  paid: "Paid plan"
685
672
  })
686
- }, it = {
673
+ }, tt = {
687
674
  banner: {
688
675
  title: "Compte de démonstration",
689
676
  summary: "{label} · expire le {date}",
@@ -698,8 +685,8 @@ const ot = {
698
685
  }
699
686
  },
700
687
  blocked: "Indisponible en démo"
701
- }, at = {
702
- demo: it,
688
+ }, ot = {
689
+ demo: tt,
703
690
  "space-display-name": {
704
691
  personal: "Mon Cloud",
705
692
  "perso-in-org": "Mon Cloud (dans org)",
@@ -778,7 +765,7 @@ const ot = {
778
765
  },
779
766
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
780
767
  // source (the invoices, their PDF and the overage e-mail read it too).
781
- metric: ie.fr
768
+ metric: re.fr
782
769
  },
783
770
  "error-page": {
784
771
  title: "Une erreur est survenue",
@@ -1070,7 +1057,7 @@ const ot = {
1070
1057
  },
1071
1058
  "content-shared": {
1072
1059
  title: "{sharedByUserName} a partagé {contentLabel} avec vous",
1073
- body: "« {contentTitle} » — {permission}"
1060
+ body: '"{contentTitle}" — permission {permission}'
1074
1061
  },
1075
1062
  "invitation-org-member": {
1076
1063
  title: "{inviterAlias} vous invite à rejoindre {organizationName}",
@@ -1089,9 +1076,7 @@ const ot = {
1089
1076
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
1090
1077
  // their single source (#833), read by the API e-mails too.
1091
1078
  label: P.fr.labels,
1092
- "label-with-name": P.fr.withName,
1093
- // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
1094
- permission: se.fr
1079
+ "label-with-name": P.fr.withName
1095
1080
  },
1096
1081
  "pending-invitations": {
1097
1082
  label: "Invitations en attente",
@@ -3087,7 +3072,7 @@ const ot = {
3087
3072
  show: "Afficher le mot de passe",
3088
3073
  hide: "Masquer le mot de passe"
3089
3074
  }
3090
- }, nt = {
3075
+ }, rt = {
3091
3076
  banner: {
3092
3077
  title: "Demo account",
3093
3078
  summary: "{label} · expires on {date}",
@@ -3102,8 +3087,8 @@ const ot = {
3102
3087
  }
3103
3088
  },
3104
3089
  blocked: "Unavailable in demo"
3105
- }, st = {
3106
- demo: nt,
3090
+ }, it = {
3091
+ demo: rt,
3107
3092
  "space-display-name": {
3108
3093
  personal: "My Cloud",
3109
3094
  "perso-in-org": "My Cloud (in org)",
@@ -3182,7 +3167,7 @@ const ot = {
3182
3167
  },
3183
3168
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
3184
3169
  // source (the invoices, their PDF and the overage e-mail read it too).
3185
- metric: ie.en
3170
+ metric: re.en
3186
3171
  },
3187
3172
  "error-page": {
3188
3173
  title: "Something went wrong",
@@ -3474,7 +3459,7 @@ const ot = {
3474
3459
  },
3475
3460
  "content-shared": {
3476
3461
  title: "{sharedByUserName} shared {contentLabel} with you",
3477
- body: '"{contentTitle}" — {permission}'
3462
+ body: '"{contentTitle}" — {permission} permission'
3478
3463
  },
3479
3464
  "invitation-org-member": {
3480
3465
  title: "{inviterAlias} invited you to join {organizationName}",
@@ -3493,9 +3478,7 @@ const ot = {
3493
3478
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
3494
3479
  // their single source (#833), read by the API e-mails too.
3495
3480
  label: P.en.labels,
3496
- "label-with-name": P.en.withName,
3497
- // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
3498
- permission: se.en
3481
+ "label-with-name": P.en.withName
3499
3482
  },
3500
3483
  "pending-invitations": {
3501
3484
  label: "Pending invitations",
@@ -5492,10 +5475,10 @@ const ot = {
5492
5475
  hide: "Hide password"
5493
5476
  }
5494
5477
  };
5495
- var F, $;
5496
- function lt() {
5497
- if ($) return F;
5498
- $ = 1, F = o, o.flatten = o, o.unflatten = r;
5478
+ var F, J;
5479
+ function at() {
5480
+ if (J) return F;
5481
+ J = 1, F = o, o.flatten = o, o.unflatten = r;
5499
5482
  function e(i) {
5500
5483
  return i && i.constructor && typeof i.constructor.isBuffer == "function" && i.constructor.isBuffer(i);
5501
5484
  }
@@ -5505,9 +5488,9 @@ function lt() {
5505
5488
  function o(i, n) {
5506
5489
  n = n || {};
5507
5490
  const v = n.delimiter || ".", y = n.maxDepth, A = n.transformKey || t, f = {};
5508
- function T(m, N, u) {
5491
+ function T(m, C, u) {
5509
5492
  u = u || 1, Object.keys(m).forEach(function(l) {
5510
- const s = m[l], h = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), E = e(s), _ = b === "[object Object]" || b === "[object Array]", S = N ? N + v + A(l) : A(l);
5493
+ const s = m[l], h = n.safe && Array.isArray(s), b = Object.prototype.toString.call(s), E = e(s), _ = b === "[object Object]" || b === "[object Array]", S = C ? C + v + A(l) : A(l);
5511
5494
  if (!h && !E && _ && Object.keys(s).length && (!n.maxDepth || u < y))
5512
5495
  return T(s, S, u + 1);
5513
5496
  f[S] = s;
@@ -5524,7 +5507,7 @@ function lt() {
5524
5507
  const s = Number(l);
5525
5508
  return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
5526
5509
  }
5527
- function N(l, s, h) {
5510
+ function C(l, s, h) {
5528
5511
  return Object.keys(h).reduce(function(b, E) {
5529
5512
  return b[l + v + E] = h[E], b;
5530
5513
  }, s);
@@ -5540,7 +5523,7 @@ function lt() {
5540
5523
  }
5541
5524
  return i = Object.keys(i).reduce(function(l, s) {
5542
5525
  const h = Object.prototype.toString.call(i[s]);
5543
- return !(h === "[object Object]" || h === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) : N(
5526
+ return !(h === "[object Object]" || h === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) : C(
5544
5527
  s,
5545
5528
  l,
5546
5529
  o(i[s], n)
@@ -5561,40 +5544,40 @@ function lt() {
5561
5544
  }
5562
5545
  return F;
5563
5546
  }
5564
- var le = lt();
5565
- const ce = {
5566
- fr: { ...at, common: Ee },
5567
- en: { ...st, common: be }
5568
- }, ct = te(
5569
- () => le.flatten(ce.fr)
5570
- ), dt = te(
5571
- () => le.flatten(ce.en)
5572
- ), Ht = {
5547
+ var ae = at();
5548
+ const ne = {
5549
+ fr: { ...ot, common: ve },
5550
+ en: { ...it, common: ye }
5551
+ }, nt = ee(
5552
+ () => ae.flatten(ne.fr)
5553
+ ), st = ee(
5554
+ () => ae.flatten(ne.en)
5555
+ ), Yt = {
5573
5556
  get fr() {
5574
- return ct();
5557
+ return nt();
5575
5558
  },
5576
5559
  get en() {
5577
- return dt();
5560
+ return st();
5578
5561
  }
5579
- }, ut = {
5562
+ }, lt = {
5580
5563
  break: /* @__PURE__ */ d("br", {}),
5581
5564
  bold: (...e) => /* @__PURE__ */ d("strong", { children: e }),
5582
5565
  italic: (...e) => /* @__PURE__ */ d("i", { children: e }),
5583
5566
  primary: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5584
5567
  focus: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5585
- }, Wt = () => {
5586
- const e = G(), t = Q(
5568
+ }, jt = () => {
5569
+ const e = G(), t = $(
5587
5570
  (o, r) => e.formatMessage(o, {
5588
- ...ut,
5571
+ ...lt,
5589
5572
  ...r
5590
5573
  }),
5591
5574
  [e]
5592
5575
  );
5593
- return me(() => {
5576
+ return de(() => {
5594
5577
  const { formatMessage: o, ...r } = e;
5595
5578
  return { ...r, formatRichMessage: t };
5596
5579
  }, [e, t]);
5597
- }, pt = /* @__PURE__ */ new Set(["a", "button"]), mt = p("div", {
5580
+ }, ct = /* @__PURE__ */ new Set(["a", "button"]), dt = p("div", {
5598
5581
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
5599
5582
  })(({ theme: e, ownerState: t }) => {
5600
5583
  const { tokens: o, radii: r, space: i } = e.design;
@@ -5613,12 +5596,12 @@ const ce = {
5613
5596
  font: "inherit",
5614
5597
  textAlign: "inherit",
5615
5598
  textDecoration: "none",
5616
- transition: _e(e, ["border-color"]),
5599
+ transition: Ce(e, ["border-color"]),
5617
5600
  "&:hover": { borderColor: o["border.strong"] },
5618
- "&:focus-visible": Ce(e)
5601
+ "&:focus-visible": Se(e)
5619
5602
  }
5620
5603
  };
5621
- }), Kt = he(function({
5604
+ }), qt = ue(function({
5622
5605
  interactive: t = !1,
5623
5606
  padding: o = 4,
5624
5607
  component: r = "div",
@@ -5628,14 +5611,14 @@ const ce = {
5628
5611
  tabIndex: y,
5629
5612
  ...A
5630
5613
  }, f) {
5631
- const T = t && typeof r == "string" && !pt.has(r), m = Q(
5614
+ const T = t && typeof r == "string" && !ct.has(r), m = $(
5632
5615
  (u) => {
5633
5616
  typeof f == "function" ? f(u) : f !== null && (f.current = u);
5634
5617
  },
5635
5618
  [f]
5636
5619
  );
5637
5620
  return /* @__PURE__ */ d(
5638
- mt,
5621
+ dt,
5639
5622
  {
5640
5623
  ref: m,
5641
5624
  as: r,
@@ -5651,53 +5634,52 @@ const ce = {
5651
5634
  );
5652
5635
  });
5653
5636
  export {
5654
- Dt as A,
5655
- ze as B,
5656
- Lt as C,
5637
+ _t as A,
5638
+ Fe as B,
5639
+ It as C,
5657
5640
  R as D,
5658
5641
  H as E,
5659
- _t as F,
5660
- Mt as G,
5661
- zt as H,
5662
- Ye as I,
5642
+ Ct as F,
5643
+ kt as G,
5644
+ Ft as H,
5645
+ Be as I,
5663
5646
  U as J,
5664
- qt as K,
5665
- Vt as L,
5666
- Gt as M,
5667
- jt as N,
5668
- nt as O,
5669
- it as P,
5670
- kt as Q,
5671
- ce as R,
5647
+ zt as K,
5648
+ Gt as L,
5649
+ Ut as M,
5650
+ rt as N,
5651
+ tt as O,
5652
+ wt as P,
5653
+ ne as Q,
5654
+ lt as R,
5672
5655
  I as S,
5673
- Bt as T,
5674
- ut as U,
5675
- st as V,
5676
- at as W,
5677
- oe as a,
5678
- Kt as b,
5679
- Yt as c,
5656
+ Mt as T,
5657
+ it as U,
5658
+ ot as V,
5659
+ te as a,
5660
+ qt as b,
5661
+ Bt as c,
5680
5662
  k as d,
5681
- je as e,
5682
- Ht as f,
5683
- _e as g,
5663
+ Ge as e,
5664
+ Yt as f,
5665
+ Ce as g,
5684
5666
  L as h,
5685
- Ce as i,
5686
- Ie as j,
5687
- xt as k,
5688
- Oe as l,
5689
- De as m,
5690
- Ft as n,
5691
- we as o,
5667
+ Se as i,
5668
+ Ne as j,
5669
+ Lt as k,
5670
+ Re as l,
5671
+ _e as m,
5672
+ xt as n,
5673
+ Oe as o,
5692
5674
  a as p,
5693
- It as q,
5694
- Te as r,
5695
- Pt as s,
5696
- Ut as t,
5697
- Wt as u,
5698
- Ne as v,
5675
+ Nt as q,
5676
+ Ae as r,
5677
+ Dt as s,
5678
+ Pt as t,
5679
+ jt as u,
5680
+ Te as v,
5699
5681
  D as w,
5700
- Ct as x,
5701
- wt as y,
5702
- Ot as z
5682
+ St as x,
5683
+ Ot as y,
5684
+ Rt as z
5703
5685
  };