@abyss-project/commons-front-core 21.4.4 → 21.4.5

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 +12 -0
  2. package/dist/{CookieConsentSettings-C0ykq4wO.js → CookieConsentSettings-D6qJrTf0.js} +1 -1
  3. package/dist/{Surface-CGXispdx.js → Surface-kJ0pYDPu.js} +196 -178
  4. package/dist/{Tabs-ClzW7E5h.js → Tabs-GYqe9875.js} +1 -1
  5. package/dist/cookie-consent.js +2 -2
  6. package/dist/{editors-CnlNL7Oo.js → editors-BKkoTems.js} +27 -27
  7. package/dist/editors.js +1 -1
  8. package/dist/hooks/use-rich-intl.hook.d.ts +2 -0
  9. package/dist/{index-DzxQgpVI.js → index-B5m1ExnW.js} +3 -3
  10. package/dist/{index-BtDjHQ_-.js → index-BAcsxuQi.js} +2 -2
  11. package/dist/{index-XOO630d1.js → index-BHMADiJj.js} +3 -3
  12. package/dist/{index-CvMJZ-GZ.js → index-BISl9uEZ.js} +2 -2
  13. package/dist/{index-BU7TazlY.js → index-BKC5knIZ.js} +2 -2
  14. package/dist/{index-BVOFK3Qe.js → index-BRfww3Me.js} +2 -2
  15. package/dist/{index-COfIU9Ha.js → index-BeMy09Ia.js} +2 -2
  16. package/dist/{index-CqU1NLxf.js → index-By_tXOX3.js} +2 -2
  17. package/dist/{index-DgWE_ele.js → index-BzKX2-fH.js} +2 -2
  18. package/dist/{index-l_DrWlvO.js → index-CE-2Fzvx.js} +2 -2
  19. package/dist/{index-BI6iFcQ4.js → index-CHyxyPCF.js} +2 -2
  20. package/dist/{index-6mbLA8S0.js → index-CLiBng7V.js} +2 -2
  21. package/dist/{index-BsVeEo8p.js → index-CdwwSewX.js} +4 -4
  22. package/dist/{index-DH_QoE8c.js → index-CqexA4-e.js} +4 -4
  23. package/dist/{index-BjgmH6Hy.js → index-DBF3n3_7.js} +2 -2
  24. package/dist/{index-CzuHZ4xK.js → index-DTNTq4T2.js} +2 -2
  25. package/dist/{index-4W6C4eVQ.js → index-DU_tE0Bf.js} +1 -1
  26. package/dist/{index-BIklPoHY.js → index-DqMALsky.js} +3 -3
  27. package/dist/{index-CQLqh-gk.js → index-E3p81Gdb.js} +2 -2
  28. package/dist/{index-BXFYoODV.js → index-ElYFRH1k.js} +4 -4
  29. package/dist/{index-BurrDopX.js → index-Wxotqkts.js} +3 -3
  30. package/dist/index.js +4284 -4277
  31. package/dist/translations/en.d.ts +1 -0
  32. package/dist/translations/fr.d.ts +1 -0
  33. package/dist/utils/billing.utils.d.ts +2 -1
  34. package/package.json +3 -3
@@ -1,17 +1,17 @@
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";
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";
3
3
  import { useIntl as G } from "react-intl";
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 = {
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 = {
15
15
  dark: {
16
16
  1: c(0.155, 0.034),
17
17
  2: c(0.17, 0.036),
@@ -40,10 +40,10 @@ const be = 266, c = (e, t) => ({ l: e, c: t, h: be }), St = {
40
40
  11: c(0.42, 0.045),
41
41
  12: c(0.22, 0.045)
42
42
  }
43
- }, Rt = {
43
+ }, Ot = {
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
- }, Ct = {
46
+ }, _t = {
47
47
  caption: 11,
48
48
  small: 12,
49
49
  body: 13,
@@ -53,20 +53,20 @@ const be = 266, c = (e, t) => ({ l: e, c: t, h: be }), St = {
53
53
  pageTitle: 22,
54
54
  figure: 26,
55
55
  mobileLargeTitle: 30
56
- }, te = {
56
+ }, oe = {
57
57
  regular: 400,
58
58
  medium: 500,
59
59
  semibold: 600,
60
60
  bold: 700
61
- }, Nt = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], Ot = {
61
+ }, It = [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64], wt = {
62
62
  sm: 4,
63
63
  md: 6,
64
64
  lg: 12
65
- }, _t = {
65
+ }, Dt = {
66
66
  fast: 120,
67
67
  base: 180,
68
68
  slow: 260
69
- }, It = {
69
+ }, Lt = {
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 be = 266, c = (e, t) => ({ l: e, c: t, h: be }), St = {
75
75
  md: 768,
76
76
  lg: 1200,
77
77
  xl: 1600
78
- }, wt = {
78
+ }, kt = {
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 oe = {
84
+ const re = {
85
85
  tablet: H.md,
86
86
  desktop: H.lg
87
- }, Ee = 0.05, x = (e) => `(min-width:${oe[e]}px)`, M = (e) => `(max-width:${oe[e] - Ee}px)`, k = {
87
+ }, Re = 0.05, x = (e) => `(min-width:${re[e]}px)`, M = (e) => `(max-width:${re[e] - Re}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 oe = {
112
112
  )}`;
113
113
  }
114
114
  }
115
- }, Te = 0.14, a = (e) => `${e}px`, L = (e) => `1px solid ${e}`, Dt = (e) => me(e, Te), Se = (e) => ({
115
+ }, Ne = 0.14, a = (e) => `${e}px`, L = (e) => `1px solid ${e}`, Pt = (e) => fe(e, Ne), Ce = (e) => ({
116
116
  outline: `2px solid ${e.design.tokens["focus.ring"]}`,
117
117
  outlineOffset: "2px"
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) => ({
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
119
  [k.down(R.Tablet)]: {
120
120
  minHeight: a(e.design.densityValues.touchTarget)
121
121
  }
122
- }), Re = (e) => ({
122
+ }), Oe = (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
- }), Ce = (e, t, o = "fast") => t.map(
127
+ }), _e = (e, t, o = "fast") => t.map(
128
128
  (r) => `${r} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
- ).join(", "), Ne = () => {
130
- const e = V(k.up(R.Desktop), {
129
+ ).join(", "), Ie = () => {
130
+ const e = q(k.up(R.Desktop), {
131
131
  noSsr: !0
132
- }), t = V(k.down(R.Tablet), {
132
+ }), t = q(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}))`, Oe = 0.3, _e = le(!1), xt = () => ce(_e), Ie = p("div")({
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")({
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}))`, Oe = 0.3, _e =
143
143
  maxHeight: "100%",
144
144
  display: "flex",
145
145
  outline: "none"
146
- }), we = p("div")(({ theme: e }) => {
146
+ }), ke = 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}))`, Oe = 0.3, _e =
166
166
  outline: "none",
167
167
  position: "relative"
168
168
  };
169
- }), De = p(Q)(({ theme: e }) => ({
169
+ }), Pe = p(Z)(({ 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
- ...Re(e)
174
- })), Le = p("div")(({ theme: e }) => {
173
+ ...Oe(e)
174
+ })), xe = 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}))`, Oe = 0.3, _e =
183
183
  touchAction: "none",
184
184
  cursor: "grab"
185
185
  };
186
- }), ke = p("span")(({ theme: e }) => {
186
+ }), Me = 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}))`, Oe = 0.3, _e =
191
191
  borderRadius: a(o.sm),
192
192
  backgroundColor: t["border.strong"]
193
193
  };
194
- }), Pe = p("h2", {
194
+ }), Ue = 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}))`, Oe = 0.3, _e =
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: te.semibold,
204
+ fontWeight: oe.semibold,
205
205
  overflowWrap: "anywhere"
206
206
  };
207
- }), xe = p("span")(({ theme: e }) => ({
207
+ }), Fe = p("span")(({ theme: e }) => ({
208
208
  display: "inline-flex",
209
209
  verticalAlign: "middle",
210
210
  marginRight: a(e.design.space[2])
211
- })), Me = p("div")({
211
+ })), Be = p("div")({
212
212
  flex: "1 1 auto",
213
213
  minHeight: 0,
214
214
  overflowY: "auto",
215
215
  overscrollBehavior: "contain"
216
- }), Ue = p("div")(({ theme: e }) => ({
216
+ }), Ge = 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 Fe({
221
+ function ze({
222
222
  open: e,
223
223
  onClose: t,
224
224
  title: o,
@@ -227,7 +227,7 @@ function Fe({
227
227
  footer: n,
228
228
  children: v
229
229
  }) {
230
- const y = he(), A = G(), f = B(), T = j(null), m = j(null), [C, u] = q(0), [l, s] = q(!1), h = (S) => {
230
+ const y = ye(), A = G(), f = B(), T = j(null), m = j(null), [N, u] = V(0), [l, s] = V(!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 Fe({
235
235
  var Y;
236
236
  if (m.current === null)
237
237
  return;
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();
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();
240
240
  }, _ = () => {
241
241
  m.current = null, s(!1), u(0);
242
242
  };
243
- return /* @__PURE__ */ d(ge, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
244
- fe,
243
+ return /* @__PURE__ */ d(ve, { open: e, onClose: () => t(), children: /* @__PURE__ */ d(
244
+ Ae,
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(Ie, { children: /* @__PURE__ */ N(
251
- we,
250
+ children: /* @__PURE__ */ d(Le, { children: /* @__PURE__ */ C(
251
+ ke,
252
252
  {
253
253
  ref: T,
254
254
  role: "dialog",
@@ -260,12 +260,12 @@ function Fe({
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: C === 0 && !l ? "none" : `translateY(${a(C)})`,
263
+ transform: N === 0 && !l ? "none" : `translateY(${a(N)})`,
264
264
  transition: l ? "none" : `transform ${y.design.durations.base}ms ${y.design.easings.sheet}`
265
265
  },
266
266
  children: [
267
- /* @__PURE__ */ N(
268
- Le,
267
+ /* @__PURE__ */ C(
268
+ xe,
269
269
  {
270
270
  "data-testid": "bottom-sheet-drag-zone",
271
271
  onPointerDown: h,
@@ -273,26 +273,26 @@ function Fe({
273
273
  onPointerUp: E,
274
274
  onPointerCancel: _,
275
275
  children: [
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 }),
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
279
  o
280
280
  ] }) : null
281
281
  ]
282
282
  }
283
283
  ),
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 })
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 })
287
287
  ]
288
288
  }
289
289
  ) })
290
290
  }
291
291
  ) });
292
292
  }
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 }) => {
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 }) => {
296
296
  const { tokens: t, fonts: o, space: r } = e.design;
297
297
  return {
298
298
  "& .MuiDialog-paper": {
@@ -307,7 +307,7 @@ const ze = p(pe)(({ theme: e }) => {
307
307
  width: `calc(100% - ${a(r[7])})`
308
308
  }
309
309
  };
310
- }), Ye = p("div")(({ theme: e }) => {
310
+ }), qe = 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 ze = p(pe)(({ theme: e }) => {
318
318
  padding: `${a(o[4])} ${a(o[5])}`,
319
319
  borderBottom: L(t["border.subtle"])
320
320
  };
321
- }), je = p("div")({ minWidth: 0 }), qe = p("div")(({ theme: e }) => ({
321
+ }), He = p("div")({ minWidth: 0 }), We = 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
- })), Ve = p("span")({
326
+ })), Ke = p("span")({
327
327
  flex: "none",
328
328
  display: "inline-flex"
329
- }), He = p("h2")(({ theme: e }) => ({
329
+ }), Xe = p("h2")(({ theme: e }) => ({
330
330
  margin: 0,
331
331
  fontSize: a(e.design.typeScale.sectionTitle),
332
- fontWeight: te.semibold,
332
+ fontWeight: oe.semibold,
333
333
  overflowWrap: "anywhere"
334
- })), We = p("p")(({ theme: e }) => {
334
+ })), Je = 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 ze = p(pe)(({ theme: e }) => {
339
339
  fontSize: a(r.body),
340
340
  overflowWrap: "anywhere"
341
341
  };
342
- }), Ke = p("div")(({ theme: e }) => ({
342
+ }), $e = 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
- })), Xe = p("div")(({ theme: e }) => {
348
+ })), Qe = p("div")(({ theme: e }) => {
349
349
  const { tokens: t, space: o } = e.design;
350
350
  return {
351
351
  flex: "none",
@@ -357,12 +357,12 @@ const ze = p(pe)(({ theme: e }) => {
357
357
  padding: `${a(o[3])} ${a(o[5])}`,
358
358
  borderTop: L(t["border.subtle"])
359
359
  };
360
- }), Je = p("p")(({ theme: e }) => ({
360
+ }), Ze = 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
- })), $e = p("div")(({ theme: e }) => ({
365
+ })), et = p("div")(({ theme: e }) => ({
366
366
  display: "flex",
367
367
  flexWrap: "wrap",
368
368
  gap: a(e.design.space[2]),
@@ -370,7 +370,7 @@ const ze = p(pe)(({ theme: e }) => {
370
370
  // stacks them, each growing to the full width.
371
371
  "& > *": { flex: "1 1 auto", minWidth: "fit-content" }
372
372
  }));
373
- function Bt({
373
+ function Yt({
374
374
  open: e,
375
375
  onClose: t,
376
376
  title: o,
@@ -380,23 +380,23 @@ function Bt({
380
380
  actions: v,
381
381
  children: y
382
382
  }) {
383
- const A = G(), f = Ne() === R.Mobile, T = B(), m = B();
384
- return f ? /* @__PURE__ */ N(
385
- Fe,
383
+ const A = G(), f = Ie() === R.Mobile, T = B(), m = B();
384
+ return f ? /* @__PURE__ */ C(
385
+ ze,
386
386
  {
387
387
  open: e,
388
388
  onClose: t,
389
389
  title: o,
390
390
  titleIcon: r,
391
391
  closeLabel: A.formatMessage({ id: "ds.layers.modal.close" }),
392
- footer: v !== void 0 ? /* @__PURE__ */ d($e, { [Be]: "", children: v }) : void 0,
392
+ footer: v !== void 0 ? /* @__PURE__ */ d(et, { [Ye]: "", children: v }) : void 0,
393
393
  children: [
394
- i !== void 0 && /* @__PURE__ */ d(Je, { children: i }),
394
+ i !== void 0 && /* @__PURE__ */ d(Ze, { children: i }),
395
395
  y
396
396
  ]
397
397
  }
398
- ) : /* @__PURE__ */ N(
399
- ze,
398
+ ) : /* @__PURE__ */ C(
399
+ Ve,
400
400
  {
401
401
  open: e,
402
402
  onClose: () => t(),
@@ -405,30 +405,30 @@ function Bt({
405
405
  "aria-labelledby": T,
406
406
  "aria-describedby": i !== void 0 ? m : void 0,
407
407
  children: [
408
- /* @__PURE__ */ N(Ye, { children: [
409
- /* @__PURE__ */ N(qe, { children: [
410
- r !== void 0 && /* @__PURE__ */ d(Ve, { "aria-hidden": "true", children: r }),
411
- /* @__PURE__ */ N(je, { children: [
412
- /* @__PURE__ */ d(He, { id: T, children: o }),
413
- i !== void 0 && /* @__PURE__ */ d(We, { id: m, children: i })
408
+ /* @__PURE__ */ C(qe, { 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 })
414
414
  ] })
415
415
  ] }),
416
416
  /* @__PURE__ */ d(
417
- Q,
417
+ Z,
418
418
  {
419
419
  "aria-label": A.formatMessage({ id: "ds.layers.modal.close" }),
420
420
  onClick: t,
421
- children: /* @__PURE__ */ d(Z, { "aria-hidden": !0 })
421
+ children: /* @__PURE__ */ d(ee, { "aria-hidden": !0 })
422
422
  }
423
423
  )
424
424
  ] }),
425
- /* @__PURE__ */ d(Ke, { children: y }),
426
- v !== void 0 && /* @__PURE__ */ d(Xe, { children: v })
425
+ /* @__PURE__ */ d($e, { children: y }),
426
+ v !== void 0 && /* @__PURE__ */ d(Qe, { children: v })
427
427
  ]
428
428
  }
429
429
  );
430
430
  }
431
- const W = (e) => e, re = {
431
+ const W = (e) => e, ie = {
432
432
  fr: W({
433
433
  PROJECTS_COUNT: "Projets",
434
434
  MEMBERS_COUNT: "Membres",
@@ -564,8 +564,8 @@ const W = (e) => e, re = {
564
564
  BANKING_SYSTEM_RESNAPSHOTS_MONTH: "System resnapshots / month"
565
565
  })
566
566
  };
567
- 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 || {});
568
- const Qe = (e) => e.toLowerCase().replace(/_/g, "-"), Gt = Object.values(ie).map(Qe), K = (e) => e, P = {
567
+ 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 || {});
568
+ 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 = {
569
569
  fr: K({
570
570
  labels: {
571
571
  draw: "un dessin",
@@ -628,14 +628,27 @@ const Qe = (e) => e.toLowerCase().replace(/_/g, "-"), Gt = Object.values(ie).map
628
628
  },
629
629
  withName: '{label} "{name}"'
630
630
  })
631
+ }, X = (e) => e, se = {
632
+ fr: X({
633
+ VIEW: "accès en lecture",
634
+ EDIT: "accès en édition",
635
+ MANAGE: "accès en gestion",
636
+ unknown: "accès partagé"
637
+ }),
638
+ en: X({
639
+ VIEW: "view access",
640
+ EDIT: "edit access",
641
+ MANAGE: "manage access",
642
+ unknown: "shared access"
643
+ })
631
644
  };
632
645
  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 || {});
633
- const Ze = {
646
+ const ot = {
634
647
  [w.FREEMIUM]: O.FREEMIUM,
635
648
  [w.DEFAULT]: "paid",
636
649
  [w.SYSTEM]: O.INTERNAL,
637
650
  [w.CUSTOM]: O.CUSTOM
638
- }, 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) => {
651
+ }, 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) => {
639
652
  const o = (y) => {
640
653
  const A = e[`${y}Tier`];
641
654
  if (typeof A != "string")
@@ -647,8 +660,8 @@ const Ze = {
647
660
  };
648
661
  }, r = {}, i = o("plan"), n = o("oldPlan"), v = o("newPlan");
649
662
  return i && (r.planName = t(U(i))), n && (r.oldPlanName = t(U(n))), v && (r.newPlanName = t(U(v))), r;
650
- }, X = (e) => e, g = {
651
- fr: X({
663
+ }, J = (e) => e, g = {
664
+ fr: J({
652
665
  freemium: "Gratuit",
653
666
  starter: "Starter",
654
667
  pro: "Pro",
@@ -660,7 +673,7 @@ const Ze = {
660
673
  custom: "Plan personnalisé",
661
674
  paid: "Plan payant"
662
675
  }),
663
- en: X({
676
+ en: J({
664
677
  freemium: "Free",
665
678
  starter: "Starter",
666
679
  pro: "Pro",
@@ -672,7 +685,7 @@ const Ze = {
672
685
  custom: "Custom plan",
673
686
  paid: "Paid plan"
674
687
  })
675
- }, tt = {
688
+ }, it = {
676
689
  banner: {
677
690
  title: "Compte de démonstration",
678
691
  summary: "{label} · expire le {date}",
@@ -687,8 +700,8 @@ const Ze = {
687
700
  }
688
701
  },
689
702
  blocked: "Indisponible en démo"
690
- }, ot = {
691
- demo: tt,
703
+ }, at = {
704
+ demo: it,
692
705
  "space-display-name": {
693
706
  personal: "Mon Cloud",
694
707
  "perso-in-org": "Mon Cloud (dans org)",
@@ -767,7 +780,7 @@ const Ze = {
767
780
  },
768
781
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
769
782
  // source (the invoices, their PDF and the overage e-mail read it too).
770
- metric: re.fr
783
+ metric: ie.fr
771
784
  },
772
785
  "error-page": {
773
786
  title: "Une erreur est survenue",
@@ -1059,7 +1072,7 @@ const Ze = {
1059
1072
  },
1060
1073
  "content-shared": {
1061
1074
  title: "{sharedByUserName} a partagé {contentLabel} avec vous",
1062
- body: '"{contentTitle}" — permission {permission}'
1075
+ body: "« {contentTitle} » — {permission}"
1063
1076
  },
1064
1077
  "invitation-org-member": {
1065
1078
  title: "{inviterAlias} vous invite à rejoindre {organizationName}",
@@ -1078,7 +1091,9 @@ const Ze = {
1078
1091
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
1079
1092
  // their single source (#833), read by the API e-mails too.
1080
1093
  label: P.fr.labels,
1081
- "label-with-name": P.fr.withName
1094
+ "label-with-name": P.fr.withName,
1095
+ // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
1096
+ permission: se.fr
1082
1097
  },
1083
1098
  "pending-invitations": {
1084
1099
  label: "Invitations en attente",
@@ -3074,7 +3089,7 @@ const Ze = {
3074
3089
  show: "Afficher le mot de passe",
3075
3090
  hide: "Masquer le mot de passe"
3076
3091
  }
3077
- }, rt = {
3092
+ }, nt = {
3078
3093
  banner: {
3079
3094
  title: "Demo account",
3080
3095
  summary: "{label} · expires on {date}",
@@ -3089,8 +3104,8 @@ const Ze = {
3089
3104
  }
3090
3105
  },
3091
3106
  blocked: "Unavailable in demo"
3092
- }, it = {
3093
- demo: rt,
3107
+ }, st = {
3108
+ demo: nt,
3094
3109
  "space-display-name": {
3095
3110
  personal: "My Cloud",
3096
3111
  "perso-in-org": "My Cloud (in org)",
@@ -3169,7 +3184,7 @@ const Ze = {
3169
3184
  },
3170
3185
  // Metric names come from @abyss-project/main's `billing-metric-label` table, their single
3171
3186
  // source (the invoices, their PDF and the overage e-mail read it too).
3172
- metric: re.en
3187
+ metric: ie.en
3173
3188
  },
3174
3189
  "error-page": {
3175
3190
  title: "Something went wrong",
@@ -3461,7 +3476,7 @@ const Ze = {
3461
3476
  },
3462
3477
  "content-shared": {
3463
3478
  title: "{sharedByUserName} shared {contentLabel} with you",
3464
- body: '"{contentTitle}" — {permission} permission'
3479
+ body: '"{contentTitle}" — {permission}'
3465
3480
  },
3466
3481
  "invitation-org-member": {
3467
3482
  title: "{inviterAlias} invited you to join {organizationName}",
@@ -3480,7 +3495,9 @@ const Ze = {
3480
3495
  // The labels of a shared content come from @abyss-project/main's `content-share-label` table,
3481
3496
  // their single source (#833), read by the API e-mails too.
3482
3497
  label: P.en.labels,
3483
- "label-with-name": P.en.withName
3498
+ "label-with-name": P.en.withName,
3499
+ // Same entry, same shape: `content-share.permission.<value>`, `unknown` for any other (#834).
3500
+ permission: se.en
3484
3501
  },
3485
3502
  "pending-invitations": {
3486
3503
  label: "Pending invitations",
@@ -5477,10 +5494,10 @@ const Ze = {
5477
5494
  hide: "Hide password"
5478
5495
  }
5479
5496
  };
5480
- var F, J;
5481
- function at() {
5482
- if (J) return F;
5483
- J = 1, F = o, o.flatten = o, o.unflatten = r;
5497
+ var F, $;
5498
+ function lt() {
5499
+ if ($) return F;
5500
+ $ = 1, F = o, o.flatten = o, o.unflatten = r;
5484
5501
  function e(i) {
5485
5502
  return i && i.constructor && typeof i.constructor.isBuffer == "function" && i.constructor.isBuffer(i);
5486
5503
  }
@@ -5490,9 +5507,9 @@ function at() {
5490
5507
  function o(i, n) {
5491
5508
  n = n || {};
5492
5509
  const v = n.delimiter || ".", y = n.maxDepth, A = n.transformKey || t, f = {};
5493
- function T(m, C, u) {
5510
+ function T(m, N, u) {
5494
5511
  u = u || 1, Object.keys(m).forEach(function(l) {
5495
- 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);
5512
+ 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);
5496
5513
  if (!h && !E && _ && Object.keys(s).length && (!n.maxDepth || u < y))
5497
5514
  return T(s, S, u + 1);
5498
5515
  f[S] = s;
@@ -5509,7 +5526,7 @@ function at() {
5509
5526
  const s = Number(l);
5510
5527
  return isNaN(s) || l.indexOf(".") !== -1 || n.object ? l : s;
5511
5528
  }
5512
- function C(l, s, h) {
5529
+ function N(l, s, h) {
5513
5530
  return Object.keys(h).reduce(function(b, E) {
5514
5531
  return b[l + v + E] = h[E], b;
5515
5532
  }, s);
@@ -5525,7 +5542,7 @@ function at() {
5525
5542
  }
5526
5543
  return i = Object.keys(i).reduce(function(l, s) {
5527
5544
  const h = Object.prototype.toString.call(i[s]);
5528
- return !(h === "[object Object]" || h === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) : C(
5545
+ return !(h === "[object Object]" || h === "[object Array]") || u(i[s]) ? (l[s] = i[s], l) : N(
5529
5546
  s,
5530
5547
  l,
5531
5548
  o(i[s], n)
@@ -5546,40 +5563,40 @@ function at() {
5546
5563
  }
5547
5564
  return F;
5548
5565
  }
5549
- var ae = at();
5550
- const ne = {
5551
- fr: { ...ot, common: ve },
5552
- en: { ...it, common: ye }
5553
- }, nt = ee(
5554
- () => ae.flatten(ne.fr)
5555
- ), st = ee(
5556
- () => ae.flatten(ne.en)
5557
- ), Yt = {
5566
+ var le = lt();
5567
+ const ce = {
5568
+ fr: { ...at, common: Ee },
5569
+ en: { ...st, common: be }
5570
+ }, ct = te(
5571
+ () => le.flatten(ce.fr)
5572
+ ), dt = te(
5573
+ () => le.flatten(ce.en)
5574
+ ), Ht = {
5558
5575
  get fr() {
5559
- return nt();
5576
+ return ct();
5560
5577
  },
5561
5578
  get en() {
5562
- return st();
5579
+ return dt();
5563
5580
  }
5564
- }, lt = {
5581
+ }, ut = {
5565
5582
  break: /* @__PURE__ */ d("br", {}),
5566
5583
  bold: (...e) => /* @__PURE__ */ d("strong", { children: e }),
5567
5584
  italic: (...e) => /* @__PURE__ */ d("i", { children: e }),
5568
5585
  primary: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-accent-text)" }, children: e }),
5569
5586
  focus: (...e) => /* @__PURE__ */ d("span", { style: { color: "var(--abyss-status-warning)" }, children: e })
5570
- }, jt = () => {
5571
- const e = G(), t = $(
5587
+ }, Wt = () => {
5588
+ const e = G(), t = Q(
5572
5589
  (o, r) => e.formatMessage(o, {
5573
- ...lt,
5590
+ ...ut,
5574
5591
  ...r
5575
5592
  }),
5576
5593
  [e]
5577
5594
  );
5578
- return de(() => {
5595
+ return me(() => {
5579
5596
  const { formatMessage: o, ...r } = e;
5580
5597
  return { ...r, formatRichMessage: t };
5581
5598
  }, [e, t]);
5582
- }, ct = /* @__PURE__ */ new Set(["a", "button"]), dt = p("div", {
5599
+ }, pt = /* @__PURE__ */ new Set(["a", "button"]), mt = p("div", {
5583
5600
  shouldForwardProp: (e) => e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as"
5584
5601
  })(({ theme: e, ownerState: t }) => {
5585
5602
  const { tokens: o, radii: r, space: i } = e.design;
@@ -5598,12 +5615,12 @@ const ne = {
5598
5615
  font: "inherit",
5599
5616
  textAlign: "inherit",
5600
5617
  textDecoration: "none",
5601
- transition: Ce(e, ["border-color"]),
5618
+ transition: _e(e, ["border-color"]),
5602
5619
  "&:hover": { borderColor: o["border.strong"] },
5603
- "&:focus-visible": Se(e)
5620
+ "&:focus-visible": Ce(e)
5604
5621
  }
5605
5622
  };
5606
- }), qt = ue(function({
5623
+ }), Kt = he(function({
5607
5624
  interactive: t = !1,
5608
5625
  padding: o = 4,
5609
5626
  component: r = "div",
@@ -5613,14 +5630,14 @@ const ne = {
5613
5630
  tabIndex: y,
5614
5631
  ...A
5615
5632
  }, f) {
5616
- const T = t && typeof r == "string" && !ct.has(r), m = $(
5633
+ const T = t && typeof r == "string" && !pt.has(r), m = Q(
5617
5634
  (u) => {
5618
5635
  typeof f == "function" ? f(u) : f !== null && (f.current = u);
5619
5636
  },
5620
5637
  [f]
5621
5638
  );
5622
5639
  return /* @__PURE__ */ d(
5623
- dt,
5640
+ mt,
5624
5641
  {
5625
5642
  ref: m,
5626
5643
  as: r,
@@ -5636,52 +5653,53 @@ const ne = {
5636
5653
  );
5637
5654
  });
5638
5655
  export {
5639
- _t as A,
5640
- Fe as B,
5641
- It as C,
5656
+ Dt as A,
5657
+ ze as B,
5658
+ Lt as C,
5642
5659
  R as D,
5643
5660
  H as E,
5644
- Ct as F,
5645
- kt as G,
5646
- Ft as H,
5647
- Be as I,
5661
+ _t as F,
5662
+ Mt as G,
5663
+ zt as H,
5664
+ Ye as I,
5648
5665
  U as J,
5649
- zt as K,
5650
- Gt as L,
5651
- Ut as M,
5652
- rt as N,
5653
- tt as O,
5654
- wt as P,
5655
- ne as Q,
5656
- lt as R,
5666
+ qt as K,
5667
+ Vt as L,
5668
+ Gt as M,
5669
+ jt as N,
5670
+ nt as O,
5671
+ it as P,
5672
+ kt as Q,
5673
+ ce as R,
5657
5674
  I as S,
5658
- Mt as T,
5659
- it as U,
5660
- ot as V,
5661
- te as a,
5662
- qt as b,
5663
- Bt as c,
5675
+ Bt as T,
5676
+ ut as U,
5677
+ st as V,
5678
+ at as W,
5679
+ oe as a,
5680
+ Kt as b,
5681
+ Yt as c,
5664
5682
  k as d,
5665
- Ge as e,
5666
- Yt as f,
5667
- Ce as g,
5683
+ je as e,
5684
+ Ht as f,
5685
+ _e as g,
5668
5686
  L as h,
5669
- Se as i,
5670
- Ne as j,
5671
- Lt as k,
5672
- Re as l,
5673
- _e as m,
5674
- xt as n,
5675
- Oe as o,
5687
+ Ce as i,
5688
+ Ie as j,
5689
+ xt as k,
5690
+ Oe as l,
5691
+ De as m,
5692
+ Ft as n,
5693
+ we as o,
5676
5694
  a as p,
5677
- Nt as q,
5678
- Ae as r,
5679
- Dt as s,
5680
- Pt as t,
5681
- jt as u,
5682
- Te as v,
5695
+ It as q,
5696
+ Te as r,
5697
+ Pt as s,
5698
+ Ut as t,
5699
+ Wt as u,
5700
+ Ne as v,
5683
5701
  D as w,
5684
- St as x,
5685
- Ot as y,
5686
- Rt as z
5702
+ Ct as x,
5703
+ wt as y,
5704
+ Ot as z
5687
5705
  };