@abyss-project/commons-front-core 1.0.147 → 2.0.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 (50) hide show
  1. package/dist/{CookieConsentSettings.component-Dkw8Ye0E.js → CookieConsentSettings.component-Dqbo9N8Y.js} +234 -124
  2. package/dist/components/Inputs/ColorPalette/ColorPalette.component.d.ts +1 -0
  3. package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -2
  4. package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -2
  5. package/dist/components/PdfEditor/hooks/use-pdf-document.d.ts +6 -1
  6. package/dist/components/PdfEditor/operations/actions.d.ts +1 -0
  7. package/dist/components/PdfEditor/operations/compute-page-order.d.ts +4 -0
  8. package/dist/components/PdfEditor/operations/extract.d.ts +2 -0
  9. package/dist/components/PdfEditor/operations/extract.spec.d.ts +1 -0
  10. package/dist/components/PdfEditor/operations/rasterize.d.ts +3 -0
  11. package/dist/components/PdfEditor/operations/redact.d.ts +9 -0
  12. package/dist/components/PdfEditor/operations/redact.spec.d.ts +1 -0
  13. package/dist/components/PdfEditor/tools/RedactTool.d.ts +2 -0
  14. package/dist/components/PdfEditor/tools/ShapeTool.d.ts +17 -0
  15. package/dist/components/PdfEditor/tools/TextTool.d.ts +11 -1
  16. package/dist/components/PdfEditor/tools/Toolbar.d.ts +11 -0
  17. package/dist/components/PdfEditor/tools/tool-options-ui.d.ts +4 -0
  18. package/dist/components/PdfEditor/types.d.ts +55 -3
  19. package/dist/components/PdfEditor/viewer/PageOverlay.d.ts +7 -2
  20. package/dist/components/PdfEditor/viewer/PdfCanvas.d.ts +4 -0
  21. package/dist/components/PdfEditor/viewer/ViewerControls.d.ts +2 -0
  22. package/dist/components/Support/types.d.ts +2 -0
  23. package/dist/cookie-consent.js +1 -1
  24. package/dist/hooks/use-rich-intl.hook.d.ts +140 -22
  25. package/dist/{index-C2KsBRfQ.js → index--KPqynn_.js} +2 -2
  26. package/dist/{index-BW9Bye_5.js → index-AykyIzzG.js} +3 -3
  27. package/dist/{index-BqukycfU.js → index-B3gKqf-p.js} +3 -3
  28. package/dist/{index-BL7GRhPa.js → index-BCVRYGLI.js} +4 -4
  29. package/dist/{index-DCjRpdx3.js → index-BcInTypv.js} +4 -4
  30. package/dist/{index-B3Q0CXvH.js → index-BdWnB1rS.js} +2 -2
  31. package/dist/{index-BHkn2ltL.js → index-BiREoCYc.js} +2 -2
  32. package/dist/{index-GG9dANvs.js → index-CL4h9Xoy.js} +4 -4
  33. package/dist/{index-DCJSXRWb.js → index-CSpwXL74.js} +1 -1
  34. package/dist/{index-CrfvkYYN.js → index-CTVUhat-.js} +2 -2
  35. package/dist/{index-HwfQ82MI.js → index-Ca_vS7os.js} +2 -2
  36. package/dist/{index-Dn-WBCKE.js → index-Cil-O_44.js} +2 -2
  37. package/dist/{index-DFfm18gp.js → index-CoY-Eqah.js} +2 -2
  38. package/dist/{index-DayoEcuw.js → index-DON7Q_3s.js} +2 -2
  39. package/dist/{index-EZoUoL9o.js → index-DZG8q-Mp.js} +3 -3
  40. package/dist/{index-2CKJrPca.js → index-Db-3tPxk.js} +2 -2
  41. package/dist/{index-D8zo5pJ7.js → index-Df71mOHZ.js} +3 -3
  42. package/dist/{index-Cx0vAIWv.js → index-DpUTQu7B.js} +2 -2
  43. package/dist/{index-xJbVPHgr.js → index-QwHRQNwT.js} +2 -2
  44. package/dist/{index-CaN4t0Xc.js → index-VEVfBSFw.js} +2 -2
  45. package/dist/{index-BOsYmSCD.js → index-a9_oOlg4.js} +32963 -31311
  46. package/dist/{index-DBRSsvnV.js → index-ldQTy6Xb.js} +2 -2
  47. package/dist/index.js +2 -2
  48. package/dist/translations/en.d.ts +66 -11
  49. package/dist/translations/fr.d.ts +66 -11
  50. package/package.json +143 -139
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as g, Fragment as $ } from "react/jsx-runtime";
2
- import { useCallback as O, useMemo as x, useState as b, useEffect as z, createContext as Q, useContext as ee } from "react";
3
- import { Paper as te, Stack as P, Box as I, Typography as m, Button as C, Dialog as oe, DialogTitle as ie, DialogContent as re, FormControlLabel as R, Checkbox as v, DialogActions as se, Card as ae, CardContent as ne } from "@mui/material";
2
+ import { useCallback as N, useMemo as x, useState as b, useEffect as z, createContext as Q, useContext as ee } from "react";
3
+ import { Paper as te, Stack as D, Box as I, Typography as m, Button as O, Dialog as oe, DialogTitle as ie, DialogContent as re, FormControlLabel as R, Checkbox as v, DialogActions as ae, Card as se, CardContent as ne } from "@mui/material";
4
4
  import { useIntl as le } from "react-intl";
5
5
  import { UserLanguage as y, enTranslation as ce, frTranslation as de, AbyssCore as k } from "@abyss-project/main";
6
6
  import { useQuery as ue, useMutation as pe } from "@tanstack/react-query";
@@ -125,7 +125,7 @@ const q = {
125
125
  // yellow
126
126
  "#C084FC"
127
127
  // purple
128
- ], G = [
128
+ ], F = [
129
129
  ...M,
130
130
  "#E879F9",
131
131
  // fuchsia
@@ -176,15 +176,15 @@ const q = {
176
176
  // sky
177
177
  "#3b82f6"
178
178
  // blue
179
- ], Ie = (e) => M[e % M.length], Ne = (e) => G[e % G.length], qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
179
+ ], Ie = (e) => M[e % M.length], Ce = (e) => F[e % F.length], qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
180
180
  __proto__: null,
181
181
  amber: W,
182
182
  chipColors: Te,
183
183
  colorPool: M,
184
- colorPoolExtended: G,
184
+ colorPoolExtended: F,
185
185
  cyan: ge,
186
186
  getPoolColor: Ie,
187
- getPoolColorExtended: Ne,
187
+ getPoolColorExtended: Ce,
188
188
  green: Ee,
189
189
  indigo: q,
190
190
  neutral: me,
@@ -192,7 +192,7 @@ const q = {
192
192
  red: Ae,
193
193
  social: he,
194
194
  tagColorPool: fe
195
- }, Symbol.toStringTag, { value: "Module" })), Oe = {
195
+ }, Symbol.toStringTag, { value: "Module" })), Ne = {
196
196
  "space-display-name": {
197
197
  personal: "Mon Cloud",
198
198
  "perso-in-org": "Mon Cloud (dans org)",
@@ -212,20 +212,22 @@ const q = {
212
212
  select: "Sélection",
213
213
  text: "Ajouter du texte",
214
214
  draw: "Dessiner",
215
+ shape: "Formes",
216
+ highlight: "Surligner",
217
+ redact: "Caviarder",
215
218
  signature: "Signature",
216
219
  eraser: "Gomme",
217
220
  "fill-fields": "Remplir les champs",
221
+ insert: "Insérer",
218
222
  undo: "Annuler",
219
223
  redo: "Rétablir",
220
224
  download: "Télécharger",
221
225
  "save-to-cloud": "Enregistrer sur AbyssCloud",
222
- "quick-sigs": "Signatures enregistrées",
223
- "quick-texts": "Blocs de texte",
224
226
  "toggle-pages": "Afficher/masquer les pages",
227
+ document: "Actions document",
225
228
  aria: {
226
229
  tools: "Outils d’édition",
227
- history: "Annuler et rétablir",
228
- "quick-signatures": "Signatures enregistrées"
230
+ history: "Annuler et rétablir"
229
231
  }
230
232
  },
231
233
  sidebar: {
@@ -241,10 +243,12 @@ const q = {
241
243
  "page-indicator": "Page {current} sur {total}"
242
244
  },
243
245
  insert: {
246
+ "image-device": "Image depuis l’appareil",
247
+ "image-cloud": "Image depuis AbyssCloud",
248
+ "saved-title": "Mes éléments enregistrés",
249
+ personal: "Personnel",
244
250
  button: "Insérer des pages",
245
251
  reading: "Lecture du PDF…",
246
- "from-file": "Depuis un fichier",
247
- "from-cloud": "Depuis AbyssCloud",
248
252
  "only-pdf": "Seuls les fichiers PDF peuvent être insérés."
249
253
  },
250
254
  "insert-dialog": {
@@ -259,21 +263,70 @@ const q = {
259
263
  cancel: "Annuler",
260
264
  delete: "Supprimer"
261
265
  },
266
+ placement: {
267
+ hint: "Cliquez sur la page pour placer.",
268
+ cancel: "Annuler"
269
+ },
262
270
  error: {
263
271
  "load-failed": "Impossible de charger le PDF : {message}",
264
- "export-failed": "Échec de l'export : {message}"
265
- },
272
+ "export-failed": "Échec de l'export : {message}",
273
+ "try-another": "Essayer un autre fichier"
274
+ },
275
+ document: {
276
+ "blank-page": "Ajouter une page blanche",
277
+ "page-numbers": "Ajouter les numéros de page",
278
+ watermark: "Ajouter un filigrane",
279
+ extract: "Extraire / scinder des pages",
280
+ compress: "Compresser / optimiser",
281
+ protect: "Protéger par mot de passe"
282
+ },
283
+ password: {
284
+ title: "Protéger par un mot de passe",
285
+ help: "Le PDF téléchargé sera chiffré. Ce mot de passe sera requis pour l’ouvrir.",
286
+ label: "Mot de passe",
287
+ confirm: "Protéger et télécharger"
288
+ },
289
+ compress: {
290
+ saved: "Compressé : {pct}% plus léger.",
291
+ "already-optimal": "Déjà optimal, taille d’origine conservée."
292
+ },
293
+ unlock: {
294
+ title: "Ce PDF est protégé par un mot de passe",
295
+ help: "Saisissez le mot de passe pour l’ouvrir et le modifier. La copie téléchargée ne sera plus protégée, sauf si vous la protégez à nouveau.",
296
+ confirm: "Déverrouiller",
297
+ wrong: "Mot de passe incorrect. Réessayez."
298
+ },
299
+ watermark: {
300
+ title: "Ajouter un filigrane",
301
+ label: "Texte du filigrane",
302
+ apply: "Appliquer à toutes les pages"
303
+ },
304
+ extract: {
305
+ title: "Extraire des pages vers un nouveau PDF",
306
+ confirm: "{count, plural, one {Extraire # page} other {Extraire # pages}}"
307
+ },
308
+ loading: "Chargement de votre PDF…",
266
309
  text: {
267
- hint: "Cliquez n'importe où sur la page pour ajouter du texte. Entrée ou clic en dehors pour valider. Double-clic pour modifier, glisser pour déplacer.",
268
- placeholder: "Saisir…"
310
+ "hint-short": "Cliquez sur la page pour ajouter du texte.",
311
+ placeholder: "Saisir…",
312
+ size: "Taille",
313
+ font: "Police"
269
314
  },
270
315
  draw: {
271
- hint: "Cliquez et glissez sur la page pour dessiner.",
272
- "stroke-width": "Épaisseur : {width}px",
273
316
  color: "Couleur",
274
317
  width: "Trait",
275
318
  "custom-color": "Couleur personnalisée"
276
319
  },
320
+ shape: {
321
+ kind: "Forme",
322
+ fill: "Remplissage",
323
+ "fill-none": "Aucun",
324
+ "fill-on": "Rempli"
325
+ },
326
+ redact: {
327
+ hint: "Glissez sur ce que vous voulez masquer définitivement.",
328
+ warning: "Rastérise la page, supprime sa couche de texte"
329
+ },
277
330
  signature: {
278
331
  "placement-hint": "Cliquez sur la page pour placer votre signature.",
279
332
  "add-hint": "Ajoutez une signature, puis cliquez sur la page pour la placer.",
@@ -303,8 +356,7 @@ const q = {
303
356
  saved: {
304
357
  "scope-label": "Espace",
305
358
  scope: {
306
- personal: "Mon espace",
307
- organization: "Organisation"
359
+ personal: "Mon espace"
308
360
  },
309
361
  group: {
310
362
  personal: "Personnel",
@@ -321,13 +373,11 @@ const q = {
321
373
  empty: "Aucun asset enregistré pour ce scope."
322
374
  },
323
375
  upload: {
324
- hint: "Déposez une image PNG ou JPEG ici, ou cliquez pour parcourir.",
325
376
  title: "Déposez votre signature ici",
326
377
  browse: "ou cliquez pour parcourir",
327
378
  replace: "Remplacer l'image",
328
379
  reading: "Lecture de l'image…",
329
- cancel: "Annuler",
330
- "max-size": "Max 2 Mo",
380
+ "max-size": "Max 2 Mo · PNG, JPEG",
331
381
  error: {
332
382
  "invalid-type": "Seules les images PNG ou JPEG sont supportées.",
333
383
  "too-large": "L'image ne doit pas dépasser 2 Mo.",
@@ -354,7 +404,7 @@ const q = {
354
404
  delete: "Supprimer la page",
355
405
  "confirm-delete": {
356
406
  title: "Supprimer cette page ?",
357
- description: "Cette action ne peut pas être annulée — mais vous pouvez la défaire depuis la barre d'outils.",
407
+ description: "Cette action est définitive, mais vous pouvez la défaire depuis la barre d'outils.",
358
408
  confirm: "Supprimer"
359
409
  }
360
410
  }
@@ -1276,9 +1326,14 @@ const q = {
1276
1326
  ABYSS_CONSOLE: "Abyss Console",
1277
1327
  ABYSS_GAME_ODYSSEY: "Abyss Game Odyssey",
1278
1328
  ABYSS_TOOLS: "Abyss Tools"
1329
+ },
1330
+ context: {
1331
+ extraction: {
1332
+ view: "Voir l'extraction"
1333
+ }
1279
1334
  }
1280
1335
  }
1281
- }, Ce = {
1336
+ }, Oe = {
1282
1337
  "space-display-name": {
1283
1338
  personal: "My Cloud",
1284
1339
  "perso-in-org": "My Cloud (in org)",
@@ -1298,20 +1353,22 @@ const q = {
1298
1353
  select: "Select",
1299
1354
  text: "Add text",
1300
1355
  draw: "Draw",
1356
+ shape: "Shapes",
1357
+ highlight: "Highlight",
1358
+ redact: "Redact",
1301
1359
  signature: "Signature",
1302
1360
  eraser: "Eraser",
1303
1361
  "fill-fields": "Fill fields",
1362
+ insert: "Insert",
1304
1363
  undo: "Undo",
1305
1364
  redo: "Redo",
1306
1365
  download: "Download",
1307
1366
  "save-to-cloud": "Save to AbyssCloud",
1308
- "quick-sigs": "Saved signatures",
1309
- "quick-texts": "Text blocks",
1310
1367
  "toggle-pages": "Toggle pages panel",
1368
+ document: "Document actions",
1311
1369
  aria: {
1312
1370
  tools: "Editing tools",
1313
- history: "Undo and redo",
1314
- "quick-signatures": "Saved signatures"
1371
+ history: "Undo and redo"
1315
1372
  }
1316
1373
  },
1317
1374
  sidebar: {
@@ -1327,10 +1384,12 @@ const q = {
1327
1384
  "page-indicator": "Page {current} of {total}"
1328
1385
  },
1329
1386
  insert: {
1387
+ "image-device": "Image from device",
1388
+ "image-cloud": "Image from AbyssCloud",
1389
+ "saved-title": "Your saved items",
1390
+ personal: "Personal",
1330
1391
  button: "Insert pages",
1331
1392
  reading: "Reading PDF…",
1332
- "from-file": "From file",
1333
- "from-cloud": "From AbyssCloud",
1334
1393
  "only-pdf": "Only PDF files can be inserted."
1335
1394
  },
1336
1395
  "insert-dialog": {
@@ -1345,21 +1404,70 @@ const q = {
1345
1404
  cancel: "Cancel",
1346
1405
  delete: "Delete"
1347
1406
  },
1407
+ placement: {
1408
+ hint: "Click the page to place.",
1409
+ cancel: "Cancel"
1410
+ },
1348
1411
  error: {
1349
1412
  "load-failed": "Failed to load PDF: {message}",
1350
- "export-failed": "Export failed: {message}"
1351
- },
1413
+ "export-failed": "Export failed: {message}",
1414
+ "try-another": "Try another file"
1415
+ },
1416
+ document: {
1417
+ "blank-page": "Add blank page",
1418
+ "page-numbers": "Add page numbers",
1419
+ watermark: "Add watermark",
1420
+ extract: "Extract / split pages",
1421
+ compress: "Compress / optimize",
1422
+ protect: "Protect with password"
1423
+ },
1424
+ password: {
1425
+ title: "Protect with a password",
1426
+ help: "The downloaded PDF will be encrypted. Anyone opening it will need this password.",
1427
+ label: "Password",
1428
+ confirm: "Protect & download"
1429
+ },
1430
+ compress: {
1431
+ saved: "Compressed: {pct}% smaller.",
1432
+ "already-optimal": "Already optimal, kept the original size."
1433
+ },
1434
+ unlock: {
1435
+ title: "This PDF is password-protected",
1436
+ help: "Enter the password to open and edit it. The downloaded copy will no longer be protected unless you re-protect it.",
1437
+ confirm: "Unlock",
1438
+ wrong: "Wrong password. Please try again."
1439
+ },
1440
+ watermark: {
1441
+ title: "Add a watermark",
1442
+ label: "Watermark text",
1443
+ apply: "Apply to all pages"
1444
+ },
1445
+ extract: {
1446
+ title: "Extract pages to a new PDF",
1447
+ confirm: "{count, plural, one {Extract # page} other {Extract # pages}}"
1448
+ },
1449
+ loading: "Loading your PDF…",
1352
1450
  text: {
1353
- hint: "Click anywhere on the page to add text. Press Enter or click outside to confirm. Double-click to edit, drag to move.",
1354
- placeholder: "Type…"
1451
+ "hint-short": "Click the page to add text.",
1452
+ placeholder: "Type…",
1453
+ size: "Size",
1454
+ font: "Font"
1355
1455
  },
1356
1456
  draw: {
1357
- hint: "Click and drag on the page to draw.",
1358
- "stroke-width": "Stroke width: {width}px",
1359
1457
  color: "Color",
1360
1458
  width: "Width",
1361
1459
  "custom-color": "Custom color"
1362
1460
  },
1461
+ shape: {
1462
+ kind: "Shape",
1463
+ fill: "Fill",
1464
+ "fill-none": "None",
1465
+ "fill-on": "Filled"
1466
+ },
1467
+ redact: {
1468
+ hint: "Drag over anything you want to permanently black out.",
1469
+ warning: "Rasterizes the page, removes its text layer"
1470
+ },
1363
1471
  signature: {
1364
1472
  "placement-hint": "Click on the page to place your signature.",
1365
1473
  "add-hint": "Add a signature, then click on the page to place it.",
@@ -1389,8 +1497,7 @@ const q = {
1389
1497
  saved: {
1390
1498
  "scope-label": "Scope",
1391
1499
  scope: {
1392
- personal: "My space",
1393
- organization: "Organization"
1500
+ personal: "My space"
1394
1501
  },
1395
1502
  group: {
1396
1503
  personal: "Personal",
@@ -1407,13 +1514,11 @@ const q = {
1407
1514
  empty: "No saved assets for this scope yet."
1408
1515
  },
1409
1516
  upload: {
1410
- hint: "Drop a PNG or JPEG signature here, or click to browse.",
1411
1517
  title: "Drop your signature image here",
1412
1518
  browse: "or click to browse",
1413
1519
  replace: "Replace image",
1414
1520
  reading: "Reading image…",
1415
- cancel: "Cancel",
1416
- "max-size": "Max 2 MB",
1521
+ "max-size": "Max 2 MB · PNG, JPEG",
1417
1522
  error: {
1418
1523
  "invalid-type": "Only PNG or JPEG images are supported.",
1419
1524
  "too-large": "Image must be 2 MB or smaller.",
@@ -1440,7 +1545,7 @@ const q = {
1440
1545
  delete: "Delete page",
1441
1546
  "confirm-delete": {
1442
1547
  title: "Delete this page?",
1443
- description: "This action cannot be undone — but you can undo it from the toolbar.",
1548
+ description: "This action is permanent, but you can undo it from the toolbar.",
1444
1549
  confirm: "Delete"
1445
1550
  }
1446
1551
  }
@@ -2343,6 +2448,11 @@ const q = {
2343
2448
  ABYSS_CONSOLE: "Abyss Console",
2344
2449
  ABYSS_GAME_ODYSSEY: "Abyss Game Odyssey",
2345
2450
  ABYSS_TOOLS: "Abyss Tools"
2451
+ },
2452
+ context: {
2453
+ extraction: {
2454
+ view: "View extraction"
2455
+ }
2346
2456
  }
2347
2457
  },
2348
2458
  family: {
@@ -2368,36 +2478,36 @@ const q = {
2368
2478
  var U, B;
2369
2479
  function ye() {
2370
2480
  if (B) return U;
2371
- B = 1, U = o, o.flatten = o, o.unflatten = a;
2481
+ B = 1, U = o, o.flatten = o, o.unflatten = s;
2372
2482
  function e(r) {
2373
2483
  return r && r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
2374
2484
  }
2375
2485
  function t(r) {
2376
2486
  return r;
2377
2487
  }
2378
- function o(r, s) {
2379
- s = s || {};
2380
- const u = s.delimiter || ".", p = s.maxDepth, A = s.transformKey || t, f = {};
2381
- function n(h, N, T) {
2488
+ function o(r, a) {
2489
+ a = a || {};
2490
+ const u = a.delimiter || ".", p = a.maxDepth, A = a.transformKey || t, f = {};
2491
+ function n(h, C, T) {
2382
2492
  T = T || 1, Object.keys(h).forEach(function(c) {
2383
- const l = h[c], d = s.safe && Array.isArray(l), E = Object.prototype.toString.call(l), S = e(l), D = E === "[object Object]" || E === "[object Array]", _ = N ? N + u + A(c) : A(c);
2384
- if (!d && !S && D && Object.keys(l).length && (!s.maxDepth || T < p))
2493
+ const l = h[c], d = a.safe && Array.isArray(l), E = Object.prototype.toString.call(l), S = e(l), P = E === "[object Object]" || E === "[object Array]", _ = C ? C + u + A(c) : A(c);
2494
+ if (!d && !S && P && Object.keys(l).length && (!a.maxDepth || T < p))
2385
2495
  return n(l, _, T + 1);
2386
2496
  f[_] = l;
2387
2497
  });
2388
2498
  }
2389
2499
  return n(r), f;
2390
2500
  }
2391
- function a(r, s) {
2392
- s = s || {};
2393
- const u = s.delimiter || ".", p = s.overwrite || !1, A = s.transformKey || t, f = {};
2501
+ function s(r, a) {
2502
+ a = a || {};
2503
+ const u = a.delimiter || ".", p = a.overwrite || !1, A = a.transformKey || t, f = {};
2394
2504
  if (e(r) || Object.prototype.toString.call(r) !== "[object Object]")
2395
2505
  return r;
2396
2506
  function h(c) {
2397
2507
  const l = Number(c);
2398
- return isNaN(l) || c.indexOf(".") !== -1 || s.object ? c : l;
2508
+ return isNaN(l) || c.indexOf(".") !== -1 || a.object ? c : l;
2399
2509
  }
2400
- function N(c, l, d) {
2510
+ function C(c, l, d) {
2401
2511
  return Object.keys(d).reduce(function(E, S) {
2402
2512
  return E[c + u + S] = d[S], E;
2403
2513
  }, l);
@@ -2413,10 +2523,10 @@ function ye() {
2413
2523
  }
2414
2524
  return r = Object.keys(r).reduce(function(c, l) {
2415
2525
  const d = Object.prototype.toString.call(r[l]);
2416
- return !(d === "[object Object]" || d === "[object Array]") || T(r[l]) ? (c[l] = r[l], c) : N(
2526
+ return !(d === "[object Object]" || d === "[object Array]") || T(r[l]) ? (c[l] = r[l], c) : C(
2417
2527
  l,
2418
2528
  c,
2419
- o(r[l], s)
2529
+ o(r[l], a)
2420
2530
  );
2421
2531
  }, {}), Object.keys(r).forEach(function(c) {
2422
2532
  const l = c.split(u).map(A);
@@ -2424,20 +2534,20 @@ function ye() {
2424
2534
  for (; E !== void 0; ) {
2425
2535
  if (d === "__proto__")
2426
2536
  return;
2427
- const D = Object.prototype.toString.call(S[d]), _ = D === "[object Object]" || D === "[object Array]";
2537
+ const P = Object.prototype.toString.call(S[d]), _ = P === "[object Object]" || P === "[object Array]";
2428
2538
  if (!p && !_ && typeof S[d] < "u")
2429
2539
  return;
2430
- (p && !_ || !p && S[d] == null) && (S[d] = typeof E == "number" && !s.object ? [] : {}), S = S[d], l.length > 0 && (d = h(l.shift()), E = h(l[0]));
2540
+ (p && !_ || !p && S[d] == null) && (S[d] = typeof E == "number" && !a.object ? [] : {}), S = S[d], l.length > 0 && (d = h(l.shift()), E = h(l[0]));
2431
2541
  }
2432
- S[d] = a(r[c], s);
2542
+ S[d] = s(r[c], a);
2433
2543
  }), f;
2434
2544
  }
2435
2545
  return U;
2436
2546
  }
2437
2547
  var w = ye();
2438
2548
  const j = {
2439
- [y.FRENCH]: { ...Oe, common: de },
2440
- [y.ENGLISH]: { ...Ce, common: ce }
2549
+ [y.FRENCH]: { ...Ne, common: de },
2550
+ [y.ENGLISH]: { ...Oe, common: ce }
2441
2551
  }, We = {
2442
2552
  [y.FRENCH]: w.flatten(j[y.FRENCH]),
2443
2553
  [y.ENGLISH]: w.flatten(j[y.ENGLISH])
@@ -2448,13 +2558,13 @@ const j = {
2448
2558
  primary: (...e) => /* @__PURE__ */ i("span", { style: { color: q[500] }, children: e }),
2449
2559
  focus: (...e) => /* @__PURE__ */ i("span", { style: { color: W[400] }, children: e })
2450
2560
  }, K = () => {
2451
- const e = le(), t = O(
2452
- (o, a) => e.formatMessage(o, { ...be, ...a }),
2561
+ const e = le(), t = N(
2562
+ (o, s) => e.formatMessage(o, { ...be, ...s }),
2453
2563
  [e]
2454
2564
  );
2455
2565
  return x(() => {
2456
- const { formatMessage: o, ...a } = e;
2457
- return { ...a, formatRichMessage: t };
2566
+ const { formatMessage: o, ...s } = e;
2567
+ return { ...s, formatRichMessage: t };
2458
2568
  }, [e, t]);
2459
2569
  }, L = "abyssCookieConsent", J = 365, Re = J * 24 * 60 * 60, ve = () => typeof window > "u" ? !1 : window.location.protocol === "https:", X = (e, t) => {
2460
2570
  const o = ["Path=/", `Max-Age=${t}`, "SameSite=Lax"];
@@ -2467,8 +2577,8 @@ const j = {
2467
2577
  return null;
2468
2578
  const t = e.slice(L.length + 1);
2469
2579
  try {
2470
- const o = atob(decodeURIComponent(t)), a = JSON.parse(o);
2471
- return typeof a.a != "boolean" || typeof a.m != "boolean" || typeof a.d != "string" || typeof a.v != "string" ? null : a;
2580
+ const o = atob(decodeURIComponent(t)), s = JSON.parse(o);
2581
+ return typeof s.a != "boolean" || typeof s.m != "boolean" || typeof s.d != "string" || typeof s.v != "string" ? null : s;
2472
2582
  } catch {
2473
2583
  return null;
2474
2584
  }
@@ -2477,34 +2587,34 @@ const j = {
2477
2587
  return;
2478
2588
  const o = btoa(JSON.stringify(e));
2479
2589
  document.cookie = `${L}=${o}; ${X(t, Re)}`;
2480
- }, De = (e = {}) => {
2590
+ }, Pe = (e = {}) => {
2481
2591
  typeof document > "u" || (document.cookie = `${L}=; ${X(e, 0)}`);
2482
2592
  };
2483
- var F = /* @__PURE__ */ ((e) => (e.NOOP = "noop", e.ADOPT_DB = "adopt-db", e.PUSH_COOKIE = "push-cookie", e))(F || {});
2484
- const Y = (e) => ({
2593
+ var G = /* @__PURE__ */ ((e) => (e.NOOP = "noop", e.ADOPT_DB = "adopt-db", e.PUSH_COOKIE = "push-cookie", e))(G || {});
2594
+ const V = (e) => ({
2485
2595
  essentials: !0,
2486
2596
  analytics: e.analytics,
2487
2597
  marketing: e.marketing,
2488
2598
  decidedAt: typeof e.decidedAt == "string" ? e.decidedAt : new Date(e.decidedAt).toISOString(),
2489
2599
  consentVersion: e.consentVersion
2490
- }), Pe = (e, t) => {
2600
+ }), De = (e, t) => {
2491
2601
  if (!e && !t)
2492
2602
  return { action: "noop", value: null };
2493
2603
  if (!e && t)
2494
- return { action: "adopt-db", value: Y(t) };
2604
+ return { action: "adopt-db", value: V(t) };
2495
2605
  if (e && !t)
2496
2606
  return { action: "push-cookie", value: e };
2497
- const o = new Date(e.decidedAt).getTime(), a = new Date(
2607
+ const o = new Date(e.decidedAt).getTime(), s = new Date(
2498
2608
  typeof t.decidedAt == "string" ? t.decidedAt : t.decidedAt.toISOString()
2499
2609
  ).getTime();
2500
- return a > o ? { action: "adopt-db", value: Y(t) } : o > a ? { action: "push-cookie", value: e } : { action: "noop", value: e };
2610
+ return s > o ? { action: "adopt-db", value: V(t) } : o > s ? { action: "push-cookie", value: e } : { action: "noop", value: e };
2501
2611
  }, Me = J * 24 * 60 * 60 * 1e3, Le = (e) => ({
2502
2612
  essentials: !0,
2503
2613
  analytics: e.a,
2504
2614
  marketing: e.m,
2505
2615
  decidedAt: e.d,
2506
2616
  consentVersion: e.v
2507
- }), V = (e) => ({
2617
+ }), Y = (e) => ({
2508
2618
  a: e.analytics,
2509
2619
  m: e.marketing,
2510
2620
  d: e.decidedAt,
@@ -2512,13 +2622,13 @@ const Y = (e) => ({
2512
2622
  }), Ue = (e, t, o) => {
2513
2623
  if (o.v !== t)
2514
2624
  return !1;
2515
- const a = new Date(e).getTime();
2516
- return Number.isNaN(a) ? !1 : Date.now() - a < Me;
2517
- }, Ge = (e) => {
2625
+ const s = new Date(e).getTime();
2626
+ return Number.isNaN(s) ? !1 : Date.now() - s < Me;
2627
+ }, Fe = (e) => {
2518
2628
  const t = _e();
2519
2629
  return !t || !Ue(t.d, e, t) ? null : Le(t);
2520
- }, Fe = (e) => {
2521
- const [t, o] = b(() => Ge(e.consentVersion)), a = ue({
2630
+ }, Ge = (e) => {
2631
+ const [t, o] = b(() => Fe(e.consentVersion)), s = ue({
2522
2632
  queryKey: ["cookie-consent", "me"],
2523
2633
  queryFn: async () => (await k.sdk.user.cookieConsent.get()).data.consent,
2524
2634
  enabled: e.isAuthenticated,
@@ -2531,37 +2641,37 @@ const Y = (e) => ({
2531
2641
  decidedAt: n.decidedAt,
2532
2642
  consentVersion: n.consentVersion
2533
2643
  })).data.consent
2534
- }), s = O(
2644
+ }), a = N(
2535
2645
  (n) => {
2536
- H(V(n), { domain: e.domain }), o(n), e.isAuthenticated && r.mutate(n);
2646
+ H(Y(n), { domain: e.domain }), o(n), e.isAuthenticated && r.mutate(n);
2537
2647
  },
2538
2648
  [e.domain, e.isAuthenticated, r]
2539
2649
  );
2540
2650
  z(() => {
2541
- if (!e.isAuthenticated || a.isLoading || a.isError)
2651
+ if (!e.isAuthenticated || s.isLoading || s.isError)
2542
2652
  return;
2543
- const n = Pe(t, a.data ?? null);
2544
- n.action === F.ADOPT_DB && n.value ? (H(V(n.value), { domain: e.domain }), o(n.value)) : n.action === F.PUSH_COOKIE && n.value && r.mutate(n.value);
2545
- }, [e.isAuthenticated, a.isLoading, a.isError, a.data]);
2546
- const u = O(() => {
2547
- s({
2653
+ const n = De(t, s.data ?? null);
2654
+ n.action === G.ADOPT_DB && n.value ? (H(Y(n.value), { domain: e.domain }), o(n.value)) : n.action === G.PUSH_COOKIE && n.value && r.mutate(n.value);
2655
+ }, [e.isAuthenticated, s.isLoading, s.isError, s.data]);
2656
+ const u = N(() => {
2657
+ a({
2548
2658
  essentials: !0,
2549
2659
  analytics: !0,
2550
2660
  marketing: !0,
2551
2661
  decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
2552
2662
  consentVersion: e.consentVersion
2553
2663
  });
2554
- }, [e.consentVersion, s]), p = O(() => {
2555
- s({
2664
+ }, [e.consentVersion, a]), p = N(() => {
2665
+ a({
2556
2666
  essentials: !0,
2557
2667
  analytics: !1,
2558
2668
  marketing: !1,
2559
2669
  decidedAt: (/* @__PURE__ */ new Date()).toISOString(),
2560
2670
  consentVersion: e.consentVersion
2561
2671
  });
2562
- }, [e.consentVersion, s]), A = O(
2672
+ }, [e.consentVersion, a]), A = N(
2563
2673
  (n) => {
2564
- s({
2674
+ a({
2565
2675
  essentials: !0,
2566
2676
  analytics: n.analytics,
2567
2677
  marketing: n.marketing,
@@ -2569,14 +2679,14 @@ const Y = (e) => ({
2569
2679
  consentVersion: e.consentVersion
2570
2680
  });
2571
2681
  },
2572
- [e.consentVersion, s]
2573
- ), f = O(() => {
2574
- De({ domain: e.domain }), o(null);
2682
+ [e.consentVersion, a]
2683
+ ), f = N(() => {
2684
+ Pe({ domain: e.domain }), o(null);
2575
2685
  }, [e.domain]);
2576
2686
  return { consent: t, isResolved: t !== null, acceptAll: u, rejectAll: p, save: A, reset: f };
2577
2687
  }, ke = ({ api: e, privacyLinkHref: t }) => {
2578
- const o = K(), { acceptAll: a, rejectAll: r, save: s } = e, [u, p] = b(!1), [A, f] = b(!1), [n, h] = b(!1), N = () => {
2579
- s({ analytics: A, marketing: n }), p(!1);
2688
+ const o = K(), { acceptAll: s, rejectAll: r, save: a } = e, [u, p] = b(!1), [A, f] = b(!1), [n, h] = b(!1), C = () => {
2689
+ a({ analytics: A, marketing: n }), p(!1);
2580
2690
  };
2581
2691
  return /* @__PURE__ */ g($, { children: [
2582
2692
  /* @__PURE__ */ i(
@@ -2598,23 +2708,23 @@ const Y = (e) => ({
2598
2708
  },
2599
2709
  role: "dialog",
2600
2710
  "aria-labelledby": "cookie-consent-title",
2601
- children: /* @__PURE__ */ g(P, { direction: { xs: "column", md: "row" }, spacing: 2, alignItems: { xs: "stretch", md: "center" }, children: [
2711
+ children: /* @__PURE__ */ g(D, { direction: { xs: "column", md: "row" }, spacing: 2, alignItems: { xs: "stretch", md: "center" }, children: [
2602
2712
  /* @__PURE__ */ g(I, { sx: { flex: 1 }, children: [
2603
2713
  /* @__PURE__ */ i(m, { id: "cookie-consent-title", variant: "subtitle1", fontWeight: 700, gutterBottom: !0, children: o.formatRichMessage({ id: "cookies.banner.title" }) }),
2604
2714
  /* @__PURE__ */ i(m, { variant: "body2", color: "text.secondary", children: o.formatRichMessage({ id: "cookies.banner.description" }) }),
2605
2715
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", sx: { mt: 1, display: "block" }, children: /* @__PURE__ */ i("a", { href: t, style: { color: "inherit" }, rel: "noreferrer", children: o.formatRichMessage({ id: "cookies.banner.privacy-link" }) }) })
2606
2716
  ] }),
2607
- /* @__PURE__ */ g(P, { direction: { xs: "column", sm: "row" }, spacing: 1, sx: { flexShrink: 0 }, children: [
2608
- /* @__PURE__ */ i(C, { variant: "text", onClick: r, children: o.formatRichMessage({ id: "cookies.action.reject-all" }) }),
2609
- /* @__PURE__ */ i(C, { variant: "outlined", onClick: () => p(!0), children: o.formatRichMessage({ id: "cookies.action.configure" }) }),
2610
- /* @__PURE__ */ i(C, { variant: "contained", onClick: a, children: o.formatRichMessage({ id: "cookies.action.accept-all" }) })
2717
+ /* @__PURE__ */ g(D, { direction: { xs: "column", sm: "row" }, spacing: 1, sx: { flexShrink: 0 }, children: [
2718
+ /* @__PURE__ */ i(O, { variant: "text", onClick: r, children: o.formatRichMessage({ id: "cookies.action.reject-all" }) }),
2719
+ /* @__PURE__ */ i(O, { variant: "outlined", onClick: () => p(!0), children: o.formatRichMessage({ id: "cookies.action.configure" }) }),
2720
+ /* @__PURE__ */ i(O, { variant: "contained", onClick: s, children: o.formatRichMessage({ id: "cookies.action.accept-all" }) })
2611
2721
  ] })
2612
2722
  ] })
2613
2723
  }
2614
2724
  ),
2615
2725
  /* @__PURE__ */ g(oe, { open: u, onClose: () => p(!1), maxWidth: "sm", fullWidth: !0, children: [
2616
2726
  /* @__PURE__ */ i(ie, { children: o.formatRichMessage({ id: "cookies.configure.title" }) }),
2617
- /* @__PURE__ */ i(re, { children: /* @__PURE__ */ g(P, { spacing: 2, sx: { pt: 1 }, children: [
2727
+ /* @__PURE__ */ i(re, { children: /* @__PURE__ */ g(D, { spacing: 2, sx: { pt: 1 }, children: [
2618
2728
  /* @__PURE__ */ i(
2619
2729
  R,
2620
2730
  {
@@ -2646,9 +2756,9 @@ const Y = (e) => ({
2646
2756
  }
2647
2757
  )
2648
2758
  ] }) }),
2649
- /* @__PURE__ */ g(se, { children: [
2650
- /* @__PURE__ */ i(C, { onClick: () => p(!1), children: o.formatRichMessage({ id: "cookies.action.cancel" }) }),
2651
- /* @__PURE__ */ i(C, { onClick: N, variant: "contained", children: o.formatRichMessage({ id: "cookies.action.save" }) })
2759
+ /* @__PURE__ */ g(ae, { children: [
2760
+ /* @__PURE__ */ i(O, { onClick: () => p(!1), children: o.formatRichMessage({ id: "cookies.action.cancel" }) }),
2761
+ /* @__PURE__ */ i(O, { onClick: C, variant: "contained", children: o.formatRichMessage({ id: "cookies.action.save" }) })
2652
2762
  ] })
2653
2763
  ] })
2654
2764
  ] });
@@ -2661,20 +2771,20 @@ const Y = (e) => ({
2661
2771
  children: e,
2662
2772
  consentVersion: t,
2663
2773
  isAuthenticated: o,
2664
- domain: a,
2774
+ domain: s,
2665
2775
  privacyLinkHref: r = we,
2666
- renderBanner: s
2776
+ renderBanner: a
2667
2777
  }) => {
2668
- const u = Fe({ isAuthenticated: o, consentVersion: t, domain: a }), p = x(() => u.isResolved ? null : s ? s(u) : /* @__PURE__ */ i(ke, { api: u, privacyLinkHref: r }), [u, r, s]);
2778
+ const u = Ge({ isAuthenticated: o, consentVersion: t, domain: s }), p = x(() => u.isResolved ? null : a ? a(u) : /* @__PURE__ */ i(ke, { api: u, privacyLinkHref: r }), [u, r, a]);
2669
2779
  return /* @__PURE__ */ g(Z.Provider, { value: u, children: [
2670
2780
  e,
2671
2781
  p
2672
2782
  ] });
2673
2783
  }, Je = () => {
2674
- const e = K(), { consent: t, save: o } = Be(), [a, r] = b((t == null ? void 0 : t.analytics) ?? !1), [s, u] = b((t == null ? void 0 : t.marketing) ?? !1);
2784
+ const e = K(), { consent: t, save: o } = Be(), [s, r] = b((t == null ? void 0 : t.analytics) ?? !1), [a, u] = b((t == null ? void 0 : t.marketing) ?? !1);
2675
2785
  return z(() => {
2676
2786
  t && (r(t.analytics), u(t.marketing));
2677
- }, [t == null ? void 0 : t.analytics, t == null ? void 0 : t.marketing]), /* @__PURE__ */ i(ae, { sx: { borderRadius: 3 }, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ g(P, { spacing: 2, children: [
2787
+ }, [t == null ? void 0 : t.analytics, t == null ? void 0 : t.marketing]), /* @__PURE__ */ i(se, { sx: { borderRadius: 3 }, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ g(D, { spacing: 2, children: [
2678
2788
  /* @__PURE__ */ i(m, { variant: "h6", children: e.formatRichMessage({ id: "cookies.configure.title" }) }),
2679
2789
  /* @__PURE__ */ i(
2680
2790
  R,
@@ -2689,7 +2799,7 @@ const Y = (e) => ({
2689
2799
  /* @__PURE__ */ i(
2690
2800
  R,
2691
2801
  {
2692
- control: /* @__PURE__ */ i(v, { checked: a, onChange: (p, A) => r(A) }),
2802
+ control: /* @__PURE__ */ i(v, { checked: s, onChange: (p, A) => r(A) }),
2693
2803
  label: /* @__PURE__ */ g(I, { children: [
2694
2804
  /* @__PURE__ */ i(m, { variant: "body2", fontWeight: 600, children: e.formatRichMessage({ id: "cookies.category.analytics.title" }) }),
2695
2805
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", children: e.formatRichMessage({ id: "cookies.category.analytics.description" }) })
@@ -2699,29 +2809,29 @@ const Y = (e) => ({
2699
2809
  /* @__PURE__ */ i(
2700
2810
  R,
2701
2811
  {
2702
- control: /* @__PURE__ */ i(v, { checked: s, onChange: (p, A) => u(A) }),
2812
+ control: /* @__PURE__ */ i(v, { checked: a, onChange: (p, A) => u(A) }),
2703
2813
  label: /* @__PURE__ */ g(I, { children: [
2704
2814
  /* @__PURE__ */ i(m, { variant: "body2", fontWeight: 600, children: e.formatRichMessage({ id: "cookies.category.marketing.title" }) }),
2705
2815
  /* @__PURE__ */ i(m, { variant: "caption", color: "text.secondary", children: e.formatRichMessage({ id: "cookies.category.marketing.description" }) })
2706
2816
  ] })
2707
2817
  }
2708
2818
  ),
2709
- /* @__PURE__ */ i(I, { children: /* @__PURE__ */ i(C, { variant: "contained", onClick: () => o({ analytics: a, marketing: s }), children: e.formatRichMessage({ id: "cookies.action.save" }) }) })
2819
+ /* @__PURE__ */ i(I, { children: /* @__PURE__ */ i(O, { variant: "contained", onClick: () => o({ analytics: s, marketing: a }), children: e.formatRichMessage({ id: "cookies.action.save" }) }) })
2710
2820
  ] }) }) });
2711
2821
  };
2712
2822
  export {
2713
2823
  Ke as A,
2714
2824
  be as B,
2715
2825
  ke as C,
2716
- Ce as D,
2717
- Oe as E,
2718
- F as R,
2826
+ Oe as D,
2827
+ Ne as E,
2828
+ G as R,
2719
2829
  J as V,
2720
2830
  Je as a,
2721
- Fe as b,
2831
+ Ge as b,
2722
2832
  L as c,
2723
- De as d,
2724
- Pe as e,
2833
+ Pe as d,
2834
+ De as e,
2725
2835
  We as f,
2726
2836
  Ae as g,
2727
2837
  W as h,
@@ -2736,11 +2846,11 @@ export {
2736
2846
  M as q,
2737
2847
  _e as r,
2738
2848
  he as s,
2739
- G as t,
2849
+ F as t,
2740
2850
  Be as u,
2741
2851
  fe as v,
2742
2852
  H as w,
2743
2853
  Ie as x,
2744
- Ne as y,
2854
+ Ce as y,
2745
2855
  j as z
2746
2856
  };